azure_mgmt_container_instance 0.16.0 → 0.17.0
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 +4 -4
- data/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +7 -6
- data/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +7 -6
- data/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +7 -6
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance.rb +18 -14
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_groups.rb +120 -71
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +11 -6
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_exec_request.rb +58 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_exec_request_terminal_size.rb +57 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_exec_response.rb +57 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/start_container.rb +144 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance.rb +67 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/container_group_usage.rb +113 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/container_groups.rb +984 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/container_instance_management_client.rb +149 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/container_logs.rb +139 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/azure_file_volume.rb +84 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container.rb +168 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_exec_request.rb +58 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_exec_request_terminal_size.rb +57 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_exec_response.rb +59 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_group.rb +216 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +99 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_group_network_protocol.rb +16 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb +69 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_group_restart_policy.rb +17 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_instance_operations_origin.rb +16 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_network_protocol.rb +16 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_port.rb +58 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb +95 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_state.rb +99 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/environment_variable.rb +57 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/event.rb +107 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/git_repo_volume.rb +72 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/image_registry_credential.rb +69 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/ip_address.rb +103 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/logs.rb +47 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/operating_system_types.rb +16 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/operation.rb +72 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/operation_display.rb +83 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/operation_list_result.rb +67 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/port.rb +58 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/resource.rb +101 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/resource_limits.rb +57 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/resource_requests.rb +57 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/resource_requirements.rb +61 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/usage.rb +84 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/usage_list_result.rb +56 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/usage_name.rb +59 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/volume.rb +100 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/volume_mount.rb +70 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/module_definition.rb +9 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/operations.rb +107 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/start_container.rb +144 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance.rb +71 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/container_group_usage.rb +113 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/container_groups.rb +984 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/container_instance_management_client.rb +145 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/container_operations.rb +258 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/azure_file_volume.rb +84 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container.rb +192 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_exec.rb +54 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_exec_request.rb +58 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_exec_request_terminal_size.rb +57 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_exec_response.rb +57 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_group.rb +229 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_group_diagnostics.rb +47 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +99 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_group_network_protocol.rb +16 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb +69 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_group_restart_policy.rb +17 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_http_get.rb +68 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_instance_operations_origin.rb +16 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_network_protocol.rb +16 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_port.rb +58 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_probe.rb +114 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb +95 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_state.rb +94 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/environment_variable.rb +68 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/event.rb +101 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/git_repo_volume.rb +72 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/image_registry_credential.rb +69 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/ip_address.rb +103 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/log_analytics.rb +57 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/logs.rb +46 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/operating_system_types.rb +16 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/operation.rb +70 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/operation_display.rb +79 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/operation_list_result.rb +67 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/port.rb +58 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/resource.rb +101 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/resource_limits.rb +57 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/resource_requests.rb +57 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/resource_requirements.rb +61 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/usage.rb +84 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/usage_list_result.rb +56 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/usage_name.rb +59 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/volume.rb +100 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/volume_mount.rb +70 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/module_definition.rb +9 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/operations.rb +107 -0
- data/lib/azure_mgmt_container_instance.rb +3 -1
- data/lib/profiles/latest/modules/containerinstance_profile_module.rb +116 -84
- data/lib/version.rb +1 -1
- metadata +98 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 34cb2c89a2fb522cb3533b539d5e543e7f1e285a
|
|
4
|
+
data.tar.gz: 99dcfda16fec49f876586bb5f714c31d57056cc1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4b5d3f2b56fe47d3abcb6632fa994d99c2c2780d19e536bd12649654c567859287447a72222401b94286c2462226256c863ee34957dcf88785c11386376d2c39
|
|
7
|
+
data.tar.gz: eec0082e3152a28a21b2d1df1af00499179ba910708edc3498c8a72615642a67d2320c5b36813449cc03103d0301eef8f28fb04655c6978392401508be0fe34f
|
|
@@ -25,15 +25,16 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview
|
|
|
25
25
|
# @return [String] Client API version
|
|
26
26
|
attr_reader :api_version
|
|
27
27
|
|
|
28
|
-
# @return [String]
|
|
28
|
+
# @return [String] The preferred language for the response.
|
|
29
29
|
attr_accessor :accept_language
|
|
30
30
|
|
|
31
|
-
# @return [Integer]
|
|
32
|
-
#
|
|
31
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
|
32
|
+
# Operations. Default value is 30.
|
|
33
33
|
attr_accessor :long_running_operation_retry_timeout
|
|
34
34
|
|
|
35
|
-
# @return [Boolean]
|
|
36
|
-
#
|
|
35
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
|
36
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
|
37
|
+
# generated and included in each request. Default is true.
|
|
37
38
|
attr_accessor :generate_client_request_id
|
|
38
39
|
|
|
39
40
|
# @return [ContainerGroups] container_groups
|
|
@@ -129,7 +130,7 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview
|
|
|
129
130
|
#
|
|
130
131
|
def add_telemetry
|
|
131
132
|
sdk_information = 'azure_mgmt_container_instance'
|
|
132
|
-
sdk_information = "#{sdk_information}/0.
|
|
133
|
+
sdk_information = "#{sdk_information}/0.17.0"
|
|
133
134
|
add_user_agent_information(sdk_information)
|
|
134
135
|
end
|
|
135
136
|
end
|
|
@@ -25,15 +25,16 @@ module Azure::ContainerInstance::Mgmt::V2017_10_01_preview
|
|
|
25
25
|
# @return [String] Client API version
|
|
26
26
|
attr_reader :api_version
|
|
27
27
|
|
|
28
|
-
# @return [String]
|
|
28
|
+
# @return [String] The preferred language for the response.
|
|
29
29
|
attr_accessor :accept_language
|
|
30
30
|
|
|
31
|
-
# @return [Integer]
|
|
32
|
-
#
|
|
31
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
|
32
|
+
# Operations. Default value is 30.
|
|
33
33
|
attr_accessor :long_running_operation_retry_timeout
|
|
34
34
|
|
|
35
|
-
# @return [Boolean]
|
|
36
|
-
#
|
|
35
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
|
36
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
|
37
|
+
# generated and included in each request. Default is true.
|
|
37
38
|
attr_accessor :generate_client_request_id
|
|
38
39
|
|
|
39
40
|
# @return [ContainerGroups] container_groups
|
|
@@ -133,7 +134,7 @@ module Azure::ContainerInstance::Mgmt::V2017_10_01_preview
|
|
|
133
134
|
#
|
|
134
135
|
def add_telemetry
|
|
135
136
|
sdk_information = 'azure_mgmt_container_instance'
|
|
136
|
-
sdk_information = "#{sdk_information}/0.
|
|
137
|
+
sdk_information = "#{sdk_information}/0.17.0"
|
|
137
138
|
add_user_agent_information(sdk_information)
|
|
138
139
|
end
|
|
139
140
|
end
|
|
@@ -25,15 +25,16 @@ module Azure::ContainerInstance::Mgmt::V2017_12_01_preview
|
|
|
25
25
|
# @return [String] Client API version
|
|
26
26
|
attr_reader :api_version
|
|
27
27
|
|
|
28
|
-
# @return [String]
|
|
28
|
+
# @return [String] The preferred language for the response.
|
|
29
29
|
attr_accessor :accept_language
|
|
30
30
|
|
|
31
|
-
# @return [Integer]
|
|
32
|
-
#
|
|
31
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
|
32
|
+
# Operations. Default value is 30.
|
|
33
33
|
attr_accessor :long_running_operation_retry_timeout
|
|
34
34
|
|
|
35
|
-
# @return [Boolean]
|
|
36
|
-
#
|
|
35
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
|
36
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
|
37
|
+
# generated and included in each request. Default is true.
|
|
37
38
|
attr_accessor :generate_client_request_id
|
|
38
39
|
|
|
39
40
|
# @return [ContainerGroups] container_groups
|
|
@@ -137,7 +138,7 @@ module Azure::ContainerInstance::Mgmt::V2017_12_01_preview
|
|
|
137
138
|
#
|
|
138
139
|
def add_telemetry
|
|
139
140
|
sdk_information = 'azure_mgmt_container_instance'
|
|
140
|
-
sdk_information = "#{sdk_information}/0.
|
|
141
|
+
sdk_information = "#{sdk_information}/0.17.0"
|
|
141
142
|
add_user_agent_information(sdk_information)
|
|
142
143
|
end
|
|
143
144
|
end
|
|
@@ -24,34 +24,38 @@ module Azure::ContainerInstance::Mgmt::V2018_02_01_preview
|
|
|
24
24
|
autoload :Operations, '2018-02-01-preview/generated/azure_mgmt_container_instance/operations.rb'
|
|
25
25
|
autoload :ContainerGroupUsage, '2018-02-01-preview/generated/azure_mgmt_container_instance/container_group_usage.rb'
|
|
26
26
|
autoload :ContainerLogs, '2018-02-01-preview/generated/azure_mgmt_container_instance/container_logs.rb'
|
|
27
|
+
autoload :StartContainer, '2018-02-01-preview/generated/azure_mgmt_container_instance/start_container.rb'
|
|
27
28
|
autoload :ContainerInstanceManagementClient, '2018-02-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb'
|
|
28
29
|
|
|
29
30
|
module Models
|
|
30
|
-
autoload :ImageRegistryCredential, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/image_registry_credential.rb'
|
|
31
|
-
autoload :Port, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/port.rb'
|
|
32
|
-
autoload :EnvironmentVariable, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/environment_variable.rb'
|
|
33
31
|
autoload :IpAddress, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/ip_address.rb'
|
|
34
|
-
autoload :
|
|
32
|
+
autoload :ContainerPort, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_port.rb'
|
|
35
33
|
autoload :ContainerGroupPropertiesInstanceView, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb'
|
|
34
|
+
autoload :ContainerState, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_state.rb'
|
|
35
|
+
autoload :Event, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/event.rb'
|
|
36
36
|
autoload :ResourceRequests, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource_requests.rb'
|
|
37
|
-
autoload :ResourceLimits, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource_limits.rb'
|
|
38
|
-
autoload :VolumeMount, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/volume_mount.rb'
|
|
39
37
|
autoload :OperationDisplay, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/operation_display.rb'
|
|
40
|
-
autoload :
|
|
38
|
+
autoload :ResourceRequirements, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource_requirements.rb'
|
|
41
39
|
autoload :Operation, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/operation.rb'
|
|
42
|
-
autoload :
|
|
40
|
+
autoload :Container, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/container.rb'
|
|
43
41
|
autoload :OperationListResult, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/operation_list_result.rb'
|
|
44
|
-
autoload :
|
|
42
|
+
autoload :GitRepoVolume, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/git_repo_volume.rb'
|
|
45
43
|
autoload :UsageName, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/usage_name.rb'
|
|
46
|
-
autoload :
|
|
44
|
+
autoload :ImageRegistryCredential, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/image_registry_credential.rb'
|
|
47
45
|
autoload :Usage, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/usage.rb'
|
|
48
|
-
autoload :
|
|
46
|
+
autoload :EnvironmentVariable, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/environment_variable.rb'
|
|
49
47
|
autoload :UsageListResult, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/usage_list_result.rb'
|
|
50
|
-
autoload :
|
|
48
|
+
autoload :ResourceLimits, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource_limits.rb'
|
|
51
49
|
autoload :ContainerGroupListResult, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb'
|
|
52
|
-
autoload :
|
|
50
|
+
autoload :AzureFileVolume, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/azure_file_volume.rb'
|
|
53
51
|
autoload :Logs, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/logs.rb'
|
|
54
|
-
autoload :
|
|
52
|
+
autoload :Port, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/port.rb'
|
|
53
|
+
autoload :ContainerExecRequestTerminalSize, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_exec_request_terminal_size.rb'
|
|
54
|
+
autoload :VolumeMount, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/volume_mount.rb'
|
|
55
|
+
autoload :ContainerExecRequest, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_exec_request.rb'
|
|
56
|
+
autoload :ContainerPropertiesInstanceView, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb'
|
|
57
|
+
autoload :ContainerExecResponse, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_exec_response.rb'
|
|
58
|
+
autoload :Volume, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/volume.rb'
|
|
55
59
|
autoload :Resource, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource.rb'
|
|
56
60
|
autoload :ContainerGroup, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_group.rb'
|
|
57
61
|
autoload :ContainerNetworkProtocol, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_network_protocol.rb'
|
|
@@ -352,10 +352,6 @@ module Azure::ContainerInstance::Mgmt::V2018_02_01_preview
|
|
|
352
352
|
response.body unless response.nil?
|
|
353
353
|
end
|
|
354
354
|
|
|
355
|
-
#
|
|
356
|
-
# Create or update container groups.
|
|
357
|
-
#
|
|
358
|
-
# Create or update container groups with specified configurations.
|
|
359
355
|
#
|
|
360
356
|
# @param resource_group_name [String] The name of the resource group.
|
|
361
357
|
# @param container_group_name [String] The name of the container group.
|
|
@@ -364,32 +360,84 @@ module Azure::ContainerInstance::Mgmt::V2018_02_01_preview
|
|
|
364
360
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
365
361
|
# will be added to the HTTP request.
|
|
366
362
|
#
|
|
363
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
|
364
|
+
# response.
|
|
365
|
+
#
|
|
366
|
+
def create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers:nil)
|
|
367
|
+
# Send request
|
|
368
|
+
promise = begin_create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers:custom_headers)
|
|
369
|
+
|
|
370
|
+
promise = promise.then do |response|
|
|
371
|
+
# Defining deserialization method.
|
|
372
|
+
deserialize_method = lambda do |parsed_response|
|
|
373
|
+
result_mapper = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroup.mapper()
|
|
374
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
# Waiting for response.
|
|
378
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
promise
|
|
382
|
+
end
|
|
383
|
+
|
|
384
|
+
#
|
|
385
|
+
# Update container groups.
|
|
386
|
+
#
|
|
387
|
+
# Updates container group tags with specified values.
|
|
388
|
+
#
|
|
389
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
390
|
+
# @param container_group_name [String] The name of the container group.
|
|
391
|
+
# @param resource [Resource] The container group resource with just the tags to
|
|
392
|
+
# be updated.
|
|
393
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
394
|
+
# will be added to the HTTP request.
|
|
395
|
+
#
|
|
396
|
+
# @return [ContainerGroup] operation results.
|
|
397
|
+
#
|
|
398
|
+
def update(resource_group_name, container_group_name, resource, custom_headers:nil)
|
|
399
|
+
response = update_async(resource_group_name, container_group_name, resource, custom_headers:custom_headers).value!
|
|
400
|
+
response.body unless response.nil?
|
|
401
|
+
end
|
|
402
|
+
|
|
403
|
+
#
|
|
404
|
+
# Update container groups.
|
|
405
|
+
#
|
|
406
|
+
# Updates container group tags with specified values.
|
|
407
|
+
#
|
|
408
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
409
|
+
# @param container_group_name [String] The name of the container group.
|
|
410
|
+
# @param resource [Resource] The container group resource with just the tags to
|
|
411
|
+
# be updated.
|
|
412
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
413
|
+
# will be added to the HTTP request.
|
|
414
|
+
#
|
|
367
415
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
368
416
|
#
|
|
369
|
-
def
|
|
370
|
-
|
|
417
|
+
def update_with_http_info(resource_group_name, container_group_name, resource, custom_headers:nil)
|
|
418
|
+
update_async(resource_group_name, container_group_name, resource, custom_headers:custom_headers).value!
|
|
371
419
|
end
|
|
372
420
|
|
|
373
421
|
#
|
|
374
|
-
#
|
|
422
|
+
# Update container groups.
|
|
375
423
|
#
|
|
376
|
-
#
|
|
424
|
+
# Updates container group tags with specified values.
|
|
377
425
|
#
|
|
378
426
|
# @param resource_group_name [String] The name of the resource group.
|
|
379
427
|
# @param container_group_name [String] The name of the container group.
|
|
380
|
-
# @param
|
|
381
|
-
#
|
|
428
|
+
# @param resource [Resource] The container group resource with just the tags to
|
|
429
|
+
# be updated.
|
|
382
430
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
383
431
|
# to the HTTP request.
|
|
384
432
|
#
|
|
385
433
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
386
434
|
#
|
|
387
|
-
def
|
|
435
|
+
def update_async(resource_group_name, container_group_name, resource, custom_headers:nil)
|
|
388
436
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
389
437
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
390
438
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
391
439
|
fail ArgumentError, 'container_group_name is nil' if container_group_name.nil?
|
|
392
|
-
fail ArgumentError, '
|
|
440
|
+
fail ArgumentError, 'resource is nil' if resource.nil?
|
|
393
441
|
|
|
394
442
|
|
|
395
443
|
request_headers = {}
|
|
@@ -400,8 +448,8 @@ module Azure::ContainerInstance::Mgmt::V2018_02_01_preview
|
|
|
400
448
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
401
449
|
|
|
402
450
|
# Serialize Request
|
|
403
|
-
request_mapper = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::
|
|
404
|
-
request_content = @client.serialize(request_mapper,
|
|
451
|
+
request_mapper = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Resource.mapper()
|
|
452
|
+
request_content = @client.serialize(request_mapper, resource)
|
|
405
453
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
|
406
454
|
|
|
407
455
|
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}'
|
|
@@ -416,13 +464,13 @@ module Azure::ContainerInstance::Mgmt::V2018_02_01_preview
|
|
|
416
464
|
headers: request_headers.merge(custom_headers || {}),
|
|
417
465
|
base_url: request_url
|
|
418
466
|
}
|
|
419
|
-
promise = @client.make_request_async(:
|
|
467
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
|
420
468
|
|
|
421
469
|
promise = promise.then do |result|
|
|
422
470
|
http_response = result.response
|
|
423
471
|
status_code = http_response.status
|
|
424
472
|
response_content = http_response.body
|
|
425
|
-
unless status_code == 200
|
|
473
|
+
unless status_code == 200
|
|
426
474
|
error_model = JSON.load(response_content)
|
|
427
475
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
428
476
|
end
|
|
@@ -438,16 +486,6 @@ module Azure::ContainerInstance::Mgmt::V2018_02_01_preview
|
|
|
438
486
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
439
487
|
end
|
|
440
488
|
end
|
|
441
|
-
# Deserialize Response
|
|
442
|
-
if status_code == 201
|
|
443
|
-
begin
|
|
444
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
445
|
-
result_mapper = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroup.mapper()
|
|
446
|
-
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
447
|
-
rescue Exception => e
|
|
448
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
449
|
-
end
|
|
450
|
-
end
|
|
451
489
|
|
|
452
490
|
result
|
|
453
491
|
end
|
|
@@ -456,57 +494,57 @@ module Azure::ContainerInstance::Mgmt::V2018_02_01_preview
|
|
|
456
494
|
end
|
|
457
495
|
|
|
458
496
|
#
|
|
459
|
-
#
|
|
497
|
+
# Delete the specified container group.
|
|
460
498
|
#
|
|
461
|
-
#
|
|
499
|
+
# Delete the specified container group in the specified subscription and
|
|
500
|
+
# resource group. The operation does not delete other resources provided by the
|
|
501
|
+
# user, such as volumes.
|
|
462
502
|
#
|
|
463
503
|
# @param resource_group_name [String] The name of the resource group.
|
|
464
504
|
# @param container_group_name [String] The name of the container group.
|
|
465
|
-
# @param resource [Resource] The container group resource with just the tags to
|
|
466
|
-
# be updated.
|
|
467
505
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
468
506
|
# will be added to the HTTP request.
|
|
469
507
|
#
|
|
470
508
|
# @return [ContainerGroup] operation results.
|
|
471
509
|
#
|
|
472
|
-
def
|
|
473
|
-
response =
|
|
510
|
+
def delete(resource_group_name, container_group_name, custom_headers:nil)
|
|
511
|
+
response = delete_async(resource_group_name, container_group_name, custom_headers:custom_headers).value!
|
|
474
512
|
response.body unless response.nil?
|
|
475
513
|
end
|
|
476
514
|
|
|
477
515
|
#
|
|
478
|
-
#
|
|
516
|
+
# Delete the specified container group.
|
|
479
517
|
#
|
|
480
|
-
#
|
|
518
|
+
# Delete the specified container group in the specified subscription and
|
|
519
|
+
# resource group. The operation does not delete other resources provided by the
|
|
520
|
+
# user, such as volumes.
|
|
481
521
|
#
|
|
482
522
|
# @param resource_group_name [String] The name of the resource group.
|
|
483
523
|
# @param container_group_name [String] The name of the container group.
|
|
484
|
-
# @param resource [Resource] The container group resource with just the tags to
|
|
485
|
-
# be updated.
|
|
486
524
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
487
525
|
# will be added to the HTTP request.
|
|
488
526
|
#
|
|
489
527
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
490
528
|
#
|
|
491
|
-
def
|
|
492
|
-
|
|
529
|
+
def delete_with_http_info(resource_group_name, container_group_name, custom_headers:nil)
|
|
530
|
+
delete_async(resource_group_name, container_group_name, custom_headers:custom_headers).value!
|
|
493
531
|
end
|
|
494
532
|
|
|
495
533
|
#
|
|
496
|
-
#
|
|
534
|
+
# Delete the specified container group.
|
|
497
535
|
#
|
|
498
|
-
#
|
|
536
|
+
# Delete the specified container group in the specified subscription and
|
|
537
|
+
# resource group. The operation does not delete other resources provided by the
|
|
538
|
+
# user, such as volumes.
|
|
499
539
|
#
|
|
500
540
|
# @param resource_group_name [String] The name of the resource group.
|
|
501
541
|
# @param container_group_name [String] The name of the container group.
|
|
502
|
-
# @param resource [Resource] The container group resource with just the tags to
|
|
503
|
-
# be updated.
|
|
504
542
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
505
543
|
# to the HTTP request.
|
|
506
544
|
#
|
|
507
545
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
508
546
|
#
|
|
509
|
-
def
|
|
547
|
+
def delete_async(resource_group_name, container_group_name, custom_headers:nil)
|
|
510
548
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
511
549
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
512
550
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
@@ -519,12 +557,6 @@ module Azure::ContainerInstance::Mgmt::V2018_02_01_preview
|
|
|
519
557
|
# Set Headers
|
|
520
558
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
521
559
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
522
|
-
|
|
523
|
-
# Serialize Request
|
|
524
|
-
request_mapper = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Resource.mapper()
|
|
525
|
-
request_content = @client.serialize(request_mapper, resource)
|
|
526
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
|
527
|
-
|
|
528
560
|
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}'
|
|
529
561
|
|
|
530
562
|
request_url = @base_url || @client.base_url
|
|
@@ -533,17 +565,16 @@ module Azure::ContainerInstance::Mgmt::V2018_02_01_preview
|
|
|
533
565
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
534
566
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'containerGroupName' => container_group_name},
|
|
535
567
|
query_params: {'api-version' => @client.api_version},
|
|
536
|
-
body: request_content,
|
|
537
568
|
headers: request_headers.merge(custom_headers || {}),
|
|
538
569
|
base_url: request_url
|
|
539
570
|
}
|
|
540
|
-
promise = @client.make_request_async(:
|
|
571
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
|
541
572
|
|
|
542
573
|
promise = promise.then do |result|
|
|
543
574
|
http_response = result.response
|
|
544
575
|
status_code = http_response.status
|
|
545
576
|
response_content = http_response.body
|
|
546
|
-
unless status_code == 200
|
|
577
|
+
unless status_code == 200 || status_code == 204
|
|
547
578
|
error_model = JSON.load(response_content)
|
|
548
579
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
549
580
|
end
|
|
@@ -567,61 +598,62 @@ module Azure::ContainerInstance::Mgmt::V2018_02_01_preview
|
|
|
567
598
|
end
|
|
568
599
|
|
|
569
600
|
#
|
|
570
|
-
#
|
|
601
|
+
# Create or update container groups.
|
|
571
602
|
#
|
|
572
|
-
#
|
|
573
|
-
# resource group. The operation does not delete other resources provided by the
|
|
574
|
-
# user, such as volumes.
|
|
603
|
+
# Create or update container groups with specified configurations.
|
|
575
604
|
#
|
|
576
605
|
# @param resource_group_name [String] The name of the resource group.
|
|
577
606
|
# @param container_group_name [String] The name of the container group.
|
|
607
|
+
# @param container_group [ContainerGroup] The properties of the container group
|
|
608
|
+
# to be created or updated.
|
|
578
609
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
579
610
|
# will be added to the HTTP request.
|
|
580
611
|
#
|
|
581
612
|
# @return [ContainerGroup] operation results.
|
|
582
613
|
#
|
|
583
|
-
def
|
|
584
|
-
response =
|
|
614
|
+
def begin_create_or_update(resource_group_name, container_group_name, container_group, custom_headers:nil)
|
|
615
|
+
response = begin_create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers:custom_headers).value!
|
|
585
616
|
response.body unless response.nil?
|
|
586
617
|
end
|
|
587
618
|
|
|
588
619
|
#
|
|
589
|
-
#
|
|
620
|
+
# Create or update container groups.
|
|
590
621
|
#
|
|
591
|
-
#
|
|
592
|
-
# resource group. The operation does not delete other resources provided by the
|
|
593
|
-
# user, such as volumes.
|
|
622
|
+
# Create or update container groups with specified configurations.
|
|
594
623
|
#
|
|
595
624
|
# @param resource_group_name [String] The name of the resource group.
|
|
596
625
|
# @param container_group_name [String] The name of the container group.
|
|
626
|
+
# @param container_group [ContainerGroup] The properties of the container group
|
|
627
|
+
# to be created or updated.
|
|
597
628
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
598
629
|
# will be added to the HTTP request.
|
|
599
630
|
#
|
|
600
631
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
601
632
|
#
|
|
602
|
-
def
|
|
603
|
-
|
|
633
|
+
def begin_create_or_update_with_http_info(resource_group_name, container_group_name, container_group, custom_headers:nil)
|
|
634
|
+
begin_create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers:custom_headers).value!
|
|
604
635
|
end
|
|
605
636
|
|
|
606
637
|
#
|
|
607
|
-
#
|
|
638
|
+
# Create or update container groups.
|
|
608
639
|
#
|
|
609
|
-
#
|
|
610
|
-
# resource group. The operation does not delete other resources provided by the
|
|
611
|
-
# user, such as volumes.
|
|
640
|
+
# Create or update container groups with specified configurations.
|
|
612
641
|
#
|
|
613
642
|
# @param resource_group_name [String] The name of the resource group.
|
|
614
643
|
# @param container_group_name [String] The name of the container group.
|
|
644
|
+
# @param container_group [ContainerGroup] The properties of the container group
|
|
645
|
+
# to be created or updated.
|
|
615
646
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
616
647
|
# to the HTTP request.
|
|
617
648
|
#
|
|
618
649
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
619
650
|
#
|
|
620
|
-
def
|
|
651
|
+
def begin_create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers:nil)
|
|
621
652
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
622
653
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
623
654
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
624
655
|
fail ArgumentError, 'container_group_name is nil' if container_group_name.nil?
|
|
656
|
+
fail ArgumentError, 'container_group is nil' if container_group.nil?
|
|
625
657
|
|
|
626
658
|
|
|
627
659
|
request_headers = {}
|
|
@@ -630,6 +662,12 @@ module Azure::ContainerInstance::Mgmt::V2018_02_01_preview
|
|
|
630
662
|
# Set Headers
|
|
631
663
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
632
664
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
665
|
+
|
|
666
|
+
# Serialize Request
|
|
667
|
+
request_mapper = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroup.mapper()
|
|
668
|
+
request_content = @client.serialize(request_mapper, container_group)
|
|
669
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
|
670
|
+
|
|
633
671
|
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}'
|
|
634
672
|
|
|
635
673
|
request_url = @base_url || @client.base_url
|
|
@@ -638,16 +676,17 @@ module Azure::ContainerInstance::Mgmt::V2018_02_01_preview
|
|
|
638
676
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
639
677
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'containerGroupName' => container_group_name},
|
|
640
678
|
query_params: {'api-version' => @client.api_version},
|
|
679
|
+
body: request_content,
|
|
641
680
|
headers: request_headers.merge(custom_headers || {}),
|
|
642
681
|
base_url: request_url
|
|
643
682
|
}
|
|
644
|
-
promise = @client.make_request_async(:
|
|
683
|
+
promise = @client.make_request_async(:put, path_template, options)
|
|
645
684
|
|
|
646
685
|
promise = promise.then do |result|
|
|
647
686
|
http_response = result.response
|
|
648
687
|
status_code = http_response.status
|
|
649
688
|
response_content = http_response.body
|
|
650
|
-
unless status_code == 200 || status_code ==
|
|
689
|
+
unless status_code == 200 || status_code == 201
|
|
651
690
|
error_model = JSON.load(response_content)
|
|
652
691
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
653
692
|
end
|
|
@@ -663,6 +702,16 @@ module Azure::ContainerInstance::Mgmt::V2018_02_01_preview
|
|
|
663
702
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
664
703
|
end
|
|
665
704
|
end
|
|
705
|
+
# Deserialize Response
|
|
706
|
+
if status_code == 201
|
|
707
|
+
begin
|
|
708
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
709
|
+
result_mapper = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroup.mapper()
|
|
710
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
711
|
+
rescue Exception => e
|
|
712
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
713
|
+
end
|
|
714
|
+
end
|
|
666
715
|
|
|
667
716
|
result
|
|
668
717
|
end
|