azure_mgmt_container_instance 0.17.2 → 0.17.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd9f9904cfe678bd4beab309bb6f0c6e6707bc14
4
- data.tar.gz: da7411a7e75f117096f3bd6654da79cee2c77782
3
+ metadata.gz: 85fc297665aa92461d1d09f9a840e6961351eb53
4
+ data.tar.gz: e4744dcd75b5c3fbbd5da73d8ec3205ea5a03748
5
5
  SHA512:
6
- metadata.gz: 9b77de706009f1dbe54402037f684b0f993900d513d952407d8f2ec28123f07733ab019d54d921e95f7d4e6b96160c8828bd8af62371badac60454d9e0dd61b7
7
- data.tar.gz: b26ec2ddfbef810078d0bbb7aba280c227e4d685091220b646a31cfc69d955d968314846d363e7031dc167c0581aeb0f5d58249fa8828afb2aece307ba2e2464
6
+ metadata.gz: f35c37be4216b1bd701b5649c65aec7517d32d9fde51fba4d1575c49a54364d7a7df02e680bb9aefe1d532eecb04da6818d0efa34d2901eaa971bae5da998087
7
+ data.tar.gz: 5390859e19a6e90e6cb421dedb308f6b2cf1187a513a2396324a8634ea3e67fe66eeb829519e0ea5325dbd1eb2ebeb0cf2ab44c5758c9a99cca9f3ba233af46b
@@ -130,7 +130,7 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview
130
130
  #
131
131
  def add_telemetry
132
132
  sdk_information = 'azure_mgmt_container_instance'
133
- sdk_information = "#{sdk_information}/0.17.2"
133
+ sdk_information = "#{sdk_information}/0.17.3"
134
134
  add_user_agent_information(sdk_information)
135
135
  end
136
136
  end
@@ -134,7 +134,7 @@ module Azure::ContainerInstance::Mgmt::V2017_10_01_preview
134
134
  #
135
135
  def add_telemetry
136
136
  sdk_information = 'azure_mgmt_container_instance'
137
- sdk_information = "#{sdk_information}/0.17.2"
137
+ sdk_information = "#{sdk_information}/0.17.3"
138
138
  add_user_agent_information(sdk_information)
139
139
  end
140
140
  end
@@ -138,7 +138,7 @@ module Azure::ContainerInstance::Mgmt::V2017_12_01_preview
138
138
  #
139
139
  def add_telemetry
140
140
  sdk_information = 'azure_mgmt_container_instance'
141
- sdk_information = "#{sdk_information}/0.17.2"
141
+ sdk_information = "#{sdk_information}/0.17.3"
142
142
  add_user_agent_information(sdk_information)
143
143
  end
144
144
  end
@@ -142,7 +142,7 @@ module Azure::ContainerInstance::Mgmt::V2018_02_01_preview
142
142
  #
143
143
  def add_telemetry
144
144
  sdk_information = 'azure_mgmt_container_instance'
145
- sdk_information = "#{sdk_information}/0.17.2"
145
+ sdk_information = "#{sdk_information}/0.17.3"
146
146
  add_user_agent_information(sdk_information)
147
147
  end
148
148
  end
@@ -142,7 +142,7 @@ module Azure::ContainerInstance::Mgmt::V2018_04_01
142
142
  #
143
143
  def add_telemetry
144
144
  sdk_information = 'azure_mgmt_container_instance'
145
- sdk_information = "#{sdk_information}/0.17.2"
145
+ sdk_information = "#{sdk_information}/0.17.3"
146
146
  add_user_agent_information(sdk_information)
147
147
  end
148
148
  end
@@ -138,7 +138,7 @@ module Azure::ContainerInstance::Mgmt::V2018_06_01
138
138
  #
139
139
  def add_telemetry
140
140
  sdk_information = 'azure_mgmt_container_instance'
141
- sdk_information = "#{sdk_information}/0.17.2"
141
+ sdk_information = "#{sdk_information}/0.17.3"
142
142
  add_user_agent_information(sdk_information)
143
143
  end
144
144
  end
@@ -138,7 +138,7 @@ module Azure::ContainerInstance::Mgmt::V2018_09_01
138
138
  #
139
139
  def add_telemetry
140
140
  sdk_information = 'azure_mgmt_container_instance'
141
- sdk_information = "#{sdk_information}/0.17.2"
141
+ sdk_information = "#{sdk_information}/0.17.3"
142
142
  add_user_agent_information(sdk_information)
143
143
  end
144
144
  end
@@ -728,6 +728,46 @@ module Azure::ContainerInstance::Mgmt::V2018_10_01
728
728
  promise.execute
729
729
  end
730
730
 
731
+ #
732
+ # Starts all containers in a container group.
733
+ #
734
+ # Starts all containers in a container group.
735
+ #
736
+ # @param resource_group_name [String] The name of the resource group.
737
+ # @param container_group_name [String] The name of the container group.
738
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
739
+ # will be added to the HTTP request.
740
+ #
741
+ def start(resource_group_name, container_group_name, custom_headers:nil)
742
+ response = start_async(resource_group_name, container_group_name, custom_headers:custom_headers).value!
743
+ nil
744
+ end
745
+
746
+ #
747
+ # @param resource_group_name [String] The name of the resource group.
748
+ # @param container_group_name [String] The name of the container group.
749
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
750
+ # will be added to the HTTP request.
751
+ #
752
+ # @return [Concurrent::Promise] promise which provides async access to http
753
+ # response.
754
+ #
755
+ def start_async(resource_group_name, container_group_name, custom_headers:nil)
756
+ # Send request
757
+ promise = begin_start_async(resource_group_name, container_group_name, custom_headers:custom_headers)
758
+
759
+ promise = promise.then do |response|
760
+ # Defining deserialization method.
761
+ deserialize_method = lambda do |parsed_response|
762
+ end
763
+
764
+ # Waiting for response.
765
+ @client.get_long_running_operation_result(response, deserialize_method)
766
+ end
767
+
768
+ promise
769
+ end
770
+
731
771
  #
732
772
  # Create or update container groups.
733
773
  #
@@ -940,6 +980,93 @@ module Azure::ContainerInstance::Mgmt::V2018_10_01
940
980
  promise.execute
941
981
  end
942
982
 
983
+ #
984
+ # Starts all containers in a container group.
985
+ #
986
+ # Starts all containers in a container group.
987
+ #
988
+ # @param resource_group_name [String] The name of the resource group.
989
+ # @param container_group_name [String] The name of the container group.
990
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
991
+ # will be added to the HTTP request.
992
+ #
993
+ #
994
+ def begin_start(resource_group_name, container_group_name, custom_headers:nil)
995
+ response = begin_start_async(resource_group_name, container_group_name, custom_headers:custom_headers).value!
996
+ nil
997
+ end
998
+
999
+ #
1000
+ # Starts all containers in a container group.
1001
+ #
1002
+ # Starts all containers in a container group.
1003
+ #
1004
+ # @param resource_group_name [String] The name of the resource group.
1005
+ # @param container_group_name [String] The name of the container group.
1006
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1007
+ # will be added to the HTTP request.
1008
+ #
1009
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1010
+ #
1011
+ def begin_start_with_http_info(resource_group_name, container_group_name, custom_headers:nil)
1012
+ begin_start_async(resource_group_name, container_group_name, custom_headers:custom_headers).value!
1013
+ end
1014
+
1015
+ #
1016
+ # Starts all containers in a container group.
1017
+ #
1018
+ # Starts all containers in a container group.
1019
+ #
1020
+ # @param resource_group_name [String] The name of the resource group.
1021
+ # @param container_group_name [String] The name of the container group.
1022
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1023
+ # to the HTTP request.
1024
+ #
1025
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1026
+ #
1027
+ def begin_start_async(resource_group_name, container_group_name, custom_headers:nil)
1028
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1029
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1030
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1031
+ fail ArgumentError, 'container_group_name is nil' if container_group_name.nil?
1032
+
1033
+
1034
+ request_headers = {}
1035
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1036
+
1037
+ # Set Headers
1038
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1039
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1040
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/start'
1041
+
1042
+ request_url = @base_url || @client.base_url
1043
+
1044
+ options = {
1045
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1046
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'containerGroupName' => container_group_name},
1047
+ query_params: {'api-version' => @client.api_version},
1048
+ headers: request_headers.merge(custom_headers || {}),
1049
+ base_url: request_url
1050
+ }
1051
+ promise = @client.make_request_async(:post, path_template, options)
1052
+
1053
+ promise = promise.then do |result|
1054
+ http_response = result.response
1055
+ status_code = http_response.status
1056
+ response_content = http_response.body
1057
+ unless status_code == 204
1058
+ error_model = JSON.load(response_content)
1059
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1060
+ end
1061
+
1062
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1063
+
1064
+ result
1065
+ end
1066
+
1067
+ promise.execute
1068
+ end
1069
+
943
1070
  #
944
1071
  # Get a list of container groups in the specified subscription.
945
1072
  #
@@ -142,7 +142,7 @@ module Azure::ContainerInstance::Mgmt::V2018_10_01
142
142
  #
143
143
  def add_telemetry
144
144
  sdk_information = 'azure_mgmt_container_instance'
145
- sdk_information = "#{sdk_information}/0.17.2"
145
+ sdk_information = "#{sdk_information}/0.17.3"
146
146
  add_user_agent_information(sdk_information)
147
147
  end
148
148
  end
data/lib/version.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module Azure::ContainerInstance::Mgmt
6
- VERSION = '0.17.2'
6
+ VERSION = '0.17.3'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_container_instance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.2
4
+ version: 0.17.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-06 00:00:00.000000000 Z
11
+ date: 2018-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler