azure_mgmt_container_instance 0.17.0 → 0.17.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +1 -1
- data/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +1 -1
- data/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/resource.rb +9 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +1 -1
- data/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +1 -1
- data/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/resource.rb +9 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +1 -1
- data/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +1 -1
- data/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/resource.rb +9 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +1 -1
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +1 -1
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource.rb +9 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/container_instance_management_client.rb +1 -1
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +1 -1
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/resource.rb +9 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/container_groups.rb +221 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/container_instance_management_client.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/resource.rb +9 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance.rb +74 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/container_group_usage.rb +113 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/container_groups.rb +1205 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/container_instance_management_client.rb +145 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/container_operations.rb +258 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/azure_file_volume.rb +84 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container.rb +192 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_exec.rb +54 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_exec_request.rb +58 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_exec_request_terminal_size.rb +57 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_exec_response.rb +57 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group.rb +242 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_diagnostics.rb +47 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_ip_address_type.rb +16 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +99 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_network_profile.rb +46 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_network_protocol.rb +16 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb +69 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_restart_policy.rb +17 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_http_get.rb +68 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_instance_operations_origin.rb +16 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_network_protocol.rb +16 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_port.rb +58 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_probe.rb +114 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb +95 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_state.rb +94 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/environment_variable.rb +68 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/event.rb +101 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/git_repo_volume.rb +72 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/image_registry_credential.rb +69 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/ip_address.rb +101 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/log_analytics.rb +88 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/log_analytics_log_type.rb +16 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/logs.rb +46 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/operating_system_types.rb +16 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/operation.rb +70 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/operation_display.rb +79 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/operation_list_result.rb +67 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/port.rb +58 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/resource.rb +110 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/resource_limits.rb +57 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/resource_requests.rb +57 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/resource_requirements.rb +61 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/usage.rb +84 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/usage_list_result.rb +56 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/usage_name.rb +59 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/volume.rb +100 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/volume_mount.rb +70 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/module_definition.rb +9 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_instance/operations.rb +107 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance.rb +81 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/container_group_usage.rb +113 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/container_groups.rb +1332 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/container_instance_management_client.rb +149 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/container_operations.rb +258 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/azure_file_volume.rb +84 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container.rb +192 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_exec.rb +54 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_exec_request.rb +58 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_exec_request_terminal_size.rb +57 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_exec_response.rb +57 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group.rb +268 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_diagnostics.rb +47 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_identity.rb +102 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_identity_user_assigned_identities_value.rb +61 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_ip_address_type.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +99 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_network_profile.rb +46 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_network_protocol.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb +69 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_restart_policy.rb +17 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_http_get.rb +68 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_instance_operations_origin.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_network_protocol.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_port.rb +58 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_probe.rb +114 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb +95 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_state.rb +94 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/dns_configuration.rb +77 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/environment_variable.rb +68 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/event.rb +101 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/git_repo_volume.rb +72 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/gpu_resource.rb +58 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/gpu_sku.rb +17 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/image_registry_credential.rb +69 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/ip_address.rb +102 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/log_analytics.rb +88 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/log_analytics_log_type.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/logs.rb +46 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/operating_system_types.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/operation.rb +70 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/operation_display.rb +79 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/operation_list_result.rb +67 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/port.rb +58 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/resource.rb +110 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/resource_identity_type.rb +18 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/resource_limits.rb +69 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/resource_requests.rb +69 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/resource_requirements.rb +61 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/usage.rb +84 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/usage_list_result.rb +56 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/usage_name.rb +59 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/volume.rb +100 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/volume_mount.rb +70 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/module_definition.rb +9 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/operations.rb +107 -0
- data/lib/2018-10-01/generated/azure_mgmt_container_instance/service_association_link.rb +119 -0
- data/lib/azure_mgmt_container_instance.rb +2 -0
- data/lib/profiles/latest/modules/containerinstance_profile_module.rb +139 -101
- data/lib/version.rb +1 -1
- metadata +112 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f5aa37255243de0fd2305718b6602ede37076dcb1d040273a451fc286327cd52
|
4
|
+
data.tar.gz: c7a2f249e74f6edbe841a36cd05d3d9c5eff5b6ee83b0c87498c4a470ad7001c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdea23bdfdd6f0bc224eceb23ac750d0c8cf3b37e55071d3525db105198142393e565743917a9252a821e459a2b8e992e3519556931e04e6a77fa4506af2a963
|
7
|
+
data.tar.gz: 635445a1ce9d0448602f57b1e67c3782ed366a4ab7a122306e5f8b59a2f81bb075be896f9223158f7ea14b229e7194c884801fdeb841bb68f9e28ff3f3ad3493
|
@@ -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.
|
133
|
+
sdk_information = "#{sdk_information}/0.17.5"
|
134
134
|
add_user_agent_information(sdk_information)
|
135
135
|
end
|
136
136
|
end
|
@@ -31,7 +31,7 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview
|
|
31
31
|
def get_all_items
|
32
32
|
items = @value
|
33
33
|
page = self
|
34
|
-
while page.next_link != nil do
|
34
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
35
35
|
page = page.get_next_page
|
36
36
|
items.concat(page.value)
|
37
37
|
end
|
@@ -28,6 +28,15 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview
|
|
28
28
|
attr_accessor :tags
|
29
29
|
|
30
30
|
|
31
|
+
# @return [String] the name of the resource group of the resource.
|
32
|
+
def resource_group
|
33
|
+
unless self.id.nil?
|
34
|
+
groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
|
35
|
+
groups.captures[0].strip if groups
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
|
31
40
|
#
|
32
41
|
# Mapper for Resource class as Ruby Hash.
|
33
42
|
# This will be used for serialization/deserialization.
|
@@ -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.
|
137
|
+
sdk_information = "#{sdk_information}/0.17.5"
|
138
138
|
add_user_agent_information(sdk_information)
|
139
139
|
end
|
140
140
|
end
|
@@ -31,7 +31,7 @@ module Azure::ContainerInstance::Mgmt::V2017_10_01_preview
|
|
31
31
|
def get_all_items
|
32
32
|
items = @value
|
33
33
|
page = self
|
34
|
-
while page.next_link != nil do
|
34
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
35
35
|
page = page.get_next_page
|
36
36
|
items.concat(page.value)
|
37
37
|
end
|
@@ -28,6 +28,15 @@ module Azure::ContainerInstance::Mgmt::V2017_10_01_preview
|
|
28
28
|
attr_accessor :tags
|
29
29
|
|
30
30
|
|
31
|
+
# @return [String] the name of the resource group of the resource.
|
32
|
+
def resource_group
|
33
|
+
unless self.id.nil?
|
34
|
+
groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
|
35
|
+
groups.captures[0].strip if groups
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
|
31
40
|
#
|
32
41
|
# Mapper for Resource class as Ruby Hash.
|
33
42
|
# This will be used for serialization/deserialization.
|
@@ -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.
|
141
|
+
sdk_information = "#{sdk_information}/0.17.5"
|
142
142
|
add_user_agent_information(sdk_information)
|
143
143
|
end
|
144
144
|
end
|
@@ -31,7 +31,7 @@ module Azure::ContainerInstance::Mgmt::V2017_12_01_preview
|
|
31
31
|
def get_all_items
|
32
32
|
items = @value
|
33
33
|
page = self
|
34
|
-
while page.next_link != nil do
|
34
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
35
35
|
page = page.get_next_page
|
36
36
|
items.concat(page.value)
|
37
37
|
end
|
@@ -28,6 +28,15 @@ module Azure::ContainerInstance::Mgmt::V2017_12_01_preview
|
|
28
28
|
attr_accessor :tags
|
29
29
|
|
30
30
|
|
31
|
+
# @return [String] the name of the resource group of the resource.
|
32
|
+
def resource_group
|
33
|
+
unless self.id.nil?
|
34
|
+
groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
|
35
|
+
groups.captures[0].strip if groups
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
|
31
40
|
#
|
32
41
|
# Mapper for Resource class as Ruby Hash.
|
33
42
|
# This will be used for serialization/deserialization.
|
@@ -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.
|
145
|
+
sdk_information = "#{sdk_information}/0.17.5"
|
146
146
|
add_user_agent_information(sdk_information)
|
147
147
|
end
|
148
148
|
end
|
@@ -31,7 +31,7 @@ module Azure::ContainerInstance::Mgmt::V2018_02_01_preview
|
|
31
31
|
def get_all_items
|
32
32
|
items = @value
|
33
33
|
page = self
|
34
|
-
while page.next_link != nil do
|
34
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
35
35
|
page = page.get_next_page
|
36
36
|
items.concat(page.value)
|
37
37
|
end
|
@@ -28,6 +28,15 @@ module Azure::ContainerInstance::Mgmt::V2018_02_01_preview
|
|
28
28
|
attr_accessor :tags
|
29
29
|
|
30
30
|
|
31
|
+
# @return [String] the name of the resource group of the resource.
|
32
|
+
def resource_group
|
33
|
+
unless self.id.nil?
|
34
|
+
groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
|
35
|
+
groups.captures[0].strip if groups
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
|
31
40
|
#
|
32
41
|
# Mapper for Resource class as Ruby Hash.
|
33
42
|
# This will be used for serialization/deserialization.
|
data/lib/2018-04-01/generated/azure_mgmt_container_instance/container_instance_management_client.rb
CHANGED
@@ -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.
|
145
|
+
sdk_information = "#{sdk_information}/0.17.5"
|
146
146
|
add_user_agent_information(sdk_information)
|
147
147
|
end
|
148
148
|
end
|
data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_group_list_result.rb
CHANGED
@@ -31,7 +31,7 @@ module Azure::ContainerInstance::Mgmt::V2018_04_01
|
|
31
31
|
def get_all_items
|
32
32
|
items = @value
|
33
33
|
page = self
|
34
|
-
while page.next_link != nil do
|
34
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
35
35
|
page = page.get_next_page
|
36
36
|
items.concat(page.value)
|
37
37
|
end
|
@@ -28,6 +28,15 @@ module Azure::ContainerInstance::Mgmt::V2018_04_01
|
|
28
28
|
attr_accessor :tags
|
29
29
|
|
30
30
|
|
31
|
+
# @return [String] the name of the resource group of the resource.
|
32
|
+
def resource_group
|
33
|
+
unless self.id.nil?
|
34
|
+
groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
|
35
|
+
groups.captures[0].strip if groups
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
|
31
40
|
#
|
32
41
|
# Mapper for Resource class as Ruby Hash.
|
33
42
|
# This will be used for serialization/deserialization.
|
@@ -597,6 +597,137 @@ module Azure::ContainerInstance::Mgmt::V2018_06_01
|
|
597
597
|
promise.execute
|
598
598
|
end
|
599
599
|
|
600
|
+
#
|
601
|
+
# Restarts all containers in a container group.
|
602
|
+
#
|
603
|
+
# Restarts all containers in a contaienr group in place. If container image has
|
604
|
+
# updates, new image will be downloaded.
|
605
|
+
#
|
606
|
+
# @param resource_group_name [String] The name of the resource group.
|
607
|
+
# @param container_group_name [String] The name of the container group.
|
608
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
609
|
+
# will be added to the HTTP request.
|
610
|
+
#
|
611
|
+
def restart(resource_group_name, container_group_name, custom_headers:nil)
|
612
|
+
response = restart_async(resource_group_name, container_group_name, custom_headers:custom_headers).value!
|
613
|
+
nil
|
614
|
+
end
|
615
|
+
|
616
|
+
#
|
617
|
+
# @param resource_group_name [String] The name of the resource group.
|
618
|
+
# @param container_group_name [String] The name of the container group.
|
619
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
620
|
+
# will be added to the HTTP request.
|
621
|
+
#
|
622
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
623
|
+
# response.
|
624
|
+
#
|
625
|
+
def restart_async(resource_group_name, container_group_name, custom_headers:nil)
|
626
|
+
# Send request
|
627
|
+
promise = begin_restart_async(resource_group_name, container_group_name, custom_headers:custom_headers)
|
628
|
+
|
629
|
+
promise = promise.then do |response|
|
630
|
+
# Defining deserialization method.
|
631
|
+
deserialize_method = lambda do |parsed_response|
|
632
|
+
end
|
633
|
+
|
634
|
+
# Waiting for response.
|
635
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
636
|
+
end
|
637
|
+
|
638
|
+
promise
|
639
|
+
end
|
640
|
+
|
641
|
+
#
|
642
|
+
# Stops all containers in a container group.
|
643
|
+
#
|
644
|
+
# Stops all containers in a contaienr group. Compute resources will be
|
645
|
+
# deallocated and billing will stop.
|
646
|
+
#
|
647
|
+
# @param resource_group_name [String] The name of the resource group.
|
648
|
+
# @param container_group_name [String] The name of the container group.
|
649
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
650
|
+
# will be added to the HTTP request.
|
651
|
+
#
|
652
|
+
#
|
653
|
+
def stop(resource_group_name, container_group_name, custom_headers:nil)
|
654
|
+
response = stop_async(resource_group_name, container_group_name, custom_headers:custom_headers).value!
|
655
|
+
nil
|
656
|
+
end
|
657
|
+
|
658
|
+
#
|
659
|
+
# Stops all containers in a container group.
|
660
|
+
#
|
661
|
+
# Stops all containers in a contaienr group. Compute resources will be
|
662
|
+
# deallocated and billing will stop.
|
663
|
+
#
|
664
|
+
# @param resource_group_name [String] The name of the resource group.
|
665
|
+
# @param container_group_name [String] The name of the container group.
|
666
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
667
|
+
# will be added to the HTTP request.
|
668
|
+
#
|
669
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
670
|
+
#
|
671
|
+
def stop_with_http_info(resource_group_name, container_group_name, custom_headers:nil)
|
672
|
+
stop_async(resource_group_name, container_group_name, custom_headers:custom_headers).value!
|
673
|
+
end
|
674
|
+
|
675
|
+
#
|
676
|
+
# Stops all containers in a container group.
|
677
|
+
#
|
678
|
+
# Stops all containers in a contaienr group. Compute resources will be
|
679
|
+
# deallocated and billing will stop.
|
680
|
+
#
|
681
|
+
# @param resource_group_name [String] The name of the resource group.
|
682
|
+
# @param container_group_name [String] The name of the container group.
|
683
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
684
|
+
# to the HTTP request.
|
685
|
+
#
|
686
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
687
|
+
#
|
688
|
+
def stop_async(resource_group_name, container_group_name, custom_headers:nil)
|
689
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
690
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
691
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
692
|
+
fail ArgumentError, 'container_group_name is nil' if container_group_name.nil?
|
693
|
+
|
694
|
+
|
695
|
+
request_headers = {}
|
696
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
697
|
+
|
698
|
+
# Set Headers
|
699
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
700
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
701
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/stop'
|
702
|
+
|
703
|
+
request_url = @base_url || @client.base_url
|
704
|
+
|
705
|
+
options = {
|
706
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
707
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'containerGroupName' => container_group_name},
|
708
|
+
query_params: {'api-version' => @client.api_version},
|
709
|
+
headers: request_headers.merge(custom_headers || {}),
|
710
|
+
base_url: request_url
|
711
|
+
}
|
712
|
+
promise = @client.make_request_async(:post, path_template, options)
|
713
|
+
|
714
|
+
promise = promise.then do |result|
|
715
|
+
http_response = result.response
|
716
|
+
status_code = http_response.status
|
717
|
+
response_content = http_response.body
|
718
|
+
unless status_code == 204
|
719
|
+
error_model = JSON.load(response_content)
|
720
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
721
|
+
end
|
722
|
+
|
723
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
724
|
+
|
725
|
+
result
|
726
|
+
end
|
727
|
+
|
728
|
+
promise.execute
|
729
|
+
end
|
730
|
+
|
600
731
|
#
|
601
732
|
# Create or update container groups.
|
602
733
|
#
|
@@ -719,6 +850,96 @@ module Azure::ContainerInstance::Mgmt::V2018_06_01
|
|
719
850
|
promise.execute
|
720
851
|
end
|
721
852
|
|
853
|
+
#
|
854
|
+
# Restarts all containers in a container group.
|
855
|
+
#
|
856
|
+
# Restarts all containers in a contaienr group in place. If container image has
|
857
|
+
# updates, new image will be downloaded.
|
858
|
+
#
|
859
|
+
# @param resource_group_name [String] The name of the resource group.
|
860
|
+
# @param container_group_name [String] The name of the container group.
|
861
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
862
|
+
# will be added to the HTTP request.
|
863
|
+
#
|
864
|
+
#
|
865
|
+
def begin_restart(resource_group_name, container_group_name, custom_headers:nil)
|
866
|
+
response = begin_restart_async(resource_group_name, container_group_name, custom_headers:custom_headers).value!
|
867
|
+
nil
|
868
|
+
end
|
869
|
+
|
870
|
+
#
|
871
|
+
# Restarts all containers in a container group.
|
872
|
+
#
|
873
|
+
# Restarts all containers in a contaienr group in place. If container image has
|
874
|
+
# updates, new image will be downloaded.
|
875
|
+
#
|
876
|
+
# @param resource_group_name [String] The name of the resource group.
|
877
|
+
# @param container_group_name [String] The name of the container group.
|
878
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
879
|
+
# will be added to the HTTP request.
|
880
|
+
#
|
881
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
882
|
+
#
|
883
|
+
def begin_restart_with_http_info(resource_group_name, container_group_name, custom_headers:nil)
|
884
|
+
begin_restart_async(resource_group_name, container_group_name, custom_headers:custom_headers).value!
|
885
|
+
end
|
886
|
+
|
887
|
+
#
|
888
|
+
# Restarts all containers in a container group.
|
889
|
+
#
|
890
|
+
# Restarts all containers in a contaienr group in place. If container image has
|
891
|
+
# updates, new image will be downloaded.
|
892
|
+
#
|
893
|
+
# @param resource_group_name [String] The name of the resource group.
|
894
|
+
# @param container_group_name [String] The name of the container group.
|
895
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
896
|
+
# to the HTTP request.
|
897
|
+
#
|
898
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
899
|
+
#
|
900
|
+
def begin_restart_async(resource_group_name, container_group_name, custom_headers:nil)
|
901
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
902
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
903
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
904
|
+
fail ArgumentError, 'container_group_name is nil' if container_group_name.nil?
|
905
|
+
|
906
|
+
|
907
|
+
request_headers = {}
|
908
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
909
|
+
|
910
|
+
# Set Headers
|
911
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
912
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
913
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/restart'
|
914
|
+
|
915
|
+
request_url = @base_url || @client.base_url
|
916
|
+
|
917
|
+
options = {
|
918
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
919
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'containerGroupName' => container_group_name},
|
920
|
+
query_params: {'api-version' => @client.api_version},
|
921
|
+
headers: request_headers.merge(custom_headers || {}),
|
922
|
+
base_url: request_url
|
923
|
+
}
|
924
|
+
promise = @client.make_request_async(:post, path_template, options)
|
925
|
+
|
926
|
+
promise = promise.then do |result|
|
927
|
+
http_response = result.response
|
928
|
+
status_code = http_response.status
|
929
|
+
response_content = http_response.body
|
930
|
+
unless status_code == 204
|
931
|
+
error_model = JSON.load(response_content)
|
932
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
933
|
+
end
|
934
|
+
|
935
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
936
|
+
|
937
|
+
result
|
938
|
+
end
|
939
|
+
|
940
|
+
promise.execute
|
941
|
+
end
|
942
|
+
|
722
943
|
#
|
723
944
|
# Get a list of container groups in the specified subscription.
|
724
945
|
#
|
data/lib/2018-06-01/generated/azure_mgmt_container_instance/container_instance_management_client.rb
CHANGED
@@ -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.
|
141
|
+
sdk_information = "#{sdk_information}/0.17.5"
|
142
142
|
add_user_agent_information(sdk_information)
|
143
143
|
end
|
144
144
|
end
|
data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_group_list_result.rb
CHANGED
@@ -31,7 +31,7 @@ module Azure::ContainerInstance::Mgmt::V2018_06_01
|
|
31
31
|
def get_all_items
|
32
32
|
items = @value
|
33
33
|
page = self
|
34
|
-
while page.next_link != nil do
|
34
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
35
35
|
page = page.get_next_page
|
36
36
|
items.concat(page.value)
|
37
37
|
end
|