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.
Files changed (131) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +1 -1
  3. data/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +1 -1
  4. data/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/resource.rb +9 -0
  5. data/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +1 -1
  6. data/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +1 -1
  7. data/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/resource.rb +9 -0
  8. data/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +1 -1
  9. data/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +1 -1
  10. data/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/resource.rb +9 -0
  11. data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +1 -1
  12. data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +1 -1
  13. data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource.rb +9 -0
  14. data/lib/2018-04-01/generated/azure_mgmt_container_instance/container_instance_management_client.rb +1 -1
  15. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +1 -1
  16. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/resource.rb +9 -0
  17. data/lib/2018-06-01/generated/azure_mgmt_container_instance/container_groups.rb +221 -0
  18. data/lib/2018-06-01/generated/azure_mgmt_container_instance/container_instance_management_client.rb +1 -1
  19. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +1 -1
  20. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/resource.rb +9 -0
  21. data/lib/2018-09-01/generated/azure_mgmt_container_instance.rb +74 -0
  22. data/lib/2018-09-01/generated/azure_mgmt_container_instance/container_group_usage.rb +113 -0
  23. data/lib/2018-09-01/generated/azure_mgmt_container_instance/container_groups.rb +1205 -0
  24. data/lib/2018-09-01/generated/azure_mgmt_container_instance/container_instance_management_client.rb +145 -0
  25. data/lib/2018-09-01/generated/azure_mgmt_container_instance/container_operations.rb +258 -0
  26. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/azure_file_volume.rb +84 -0
  27. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container.rb +192 -0
  28. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_exec.rb +54 -0
  29. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_exec_request.rb +58 -0
  30. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_exec_request_terminal_size.rb +57 -0
  31. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_exec_response.rb +57 -0
  32. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group.rb +242 -0
  33. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_diagnostics.rb +47 -0
  34. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_ip_address_type.rb +16 -0
  35. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +99 -0
  36. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_network_profile.rb +46 -0
  37. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_network_protocol.rb +16 -0
  38. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb +69 -0
  39. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_restart_policy.rb +17 -0
  40. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_http_get.rb +68 -0
  41. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_instance_operations_origin.rb +16 -0
  42. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_network_protocol.rb +16 -0
  43. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_port.rb +58 -0
  44. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_probe.rb +114 -0
  45. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb +95 -0
  46. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_state.rb +94 -0
  47. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/environment_variable.rb +68 -0
  48. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/event.rb +101 -0
  49. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/git_repo_volume.rb +72 -0
  50. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/image_registry_credential.rb +69 -0
  51. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/ip_address.rb +101 -0
  52. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/log_analytics.rb +88 -0
  53. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/log_analytics_log_type.rb +16 -0
  54. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/logs.rb +46 -0
  55. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/operating_system_types.rb +16 -0
  56. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/operation.rb +70 -0
  57. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/operation_display.rb +79 -0
  58. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/operation_list_result.rb +67 -0
  59. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/port.rb +58 -0
  60. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/resource.rb +110 -0
  61. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/resource_limits.rb +57 -0
  62. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/resource_requests.rb +57 -0
  63. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/resource_requirements.rb +61 -0
  64. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/usage.rb +84 -0
  65. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/usage_list_result.rb +56 -0
  66. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/usage_name.rb +59 -0
  67. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/volume.rb +100 -0
  68. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/volume_mount.rb +70 -0
  69. data/lib/2018-09-01/generated/azure_mgmt_container_instance/module_definition.rb +9 -0
  70. data/lib/2018-09-01/generated/azure_mgmt_container_instance/operations.rb +107 -0
  71. data/lib/2018-10-01/generated/azure_mgmt_container_instance.rb +81 -0
  72. data/lib/2018-10-01/generated/azure_mgmt_container_instance/container_group_usage.rb +113 -0
  73. data/lib/2018-10-01/generated/azure_mgmt_container_instance/container_groups.rb +1332 -0
  74. data/lib/2018-10-01/generated/azure_mgmt_container_instance/container_instance_management_client.rb +149 -0
  75. data/lib/2018-10-01/generated/azure_mgmt_container_instance/container_operations.rb +258 -0
  76. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/azure_file_volume.rb +84 -0
  77. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container.rb +192 -0
  78. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_exec.rb +54 -0
  79. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_exec_request.rb +58 -0
  80. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_exec_request_terminal_size.rb +57 -0
  81. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_exec_response.rb +57 -0
  82. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group.rb +268 -0
  83. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_diagnostics.rb +47 -0
  84. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_identity.rb +102 -0
  85. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_identity_user_assigned_identities_value.rb +61 -0
  86. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_ip_address_type.rb +16 -0
  87. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +99 -0
  88. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_network_profile.rb +46 -0
  89. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_network_protocol.rb +16 -0
  90. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb +69 -0
  91. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_restart_policy.rb +17 -0
  92. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_http_get.rb +68 -0
  93. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_instance_operations_origin.rb +16 -0
  94. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_network_protocol.rb +16 -0
  95. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_port.rb +58 -0
  96. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_probe.rb +114 -0
  97. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb +95 -0
  98. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_state.rb +94 -0
  99. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/dns_configuration.rb +77 -0
  100. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/environment_variable.rb +68 -0
  101. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/event.rb +101 -0
  102. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/git_repo_volume.rb +72 -0
  103. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/gpu_resource.rb +58 -0
  104. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/gpu_sku.rb +17 -0
  105. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/image_registry_credential.rb +69 -0
  106. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/ip_address.rb +102 -0
  107. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/log_analytics.rb +88 -0
  108. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/log_analytics_log_type.rb +16 -0
  109. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/logs.rb +46 -0
  110. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/operating_system_types.rb +16 -0
  111. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/operation.rb +70 -0
  112. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/operation_display.rb +79 -0
  113. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/operation_list_result.rb +67 -0
  114. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/port.rb +58 -0
  115. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/resource.rb +110 -0
  116. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/resource_identity_type.rb +18 -0
  117. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/resource_limits.rb +69 -0
  118. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/resource_requests.rb +69 -0
  119. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/resource_requirements.rb +61 -0
  120. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/usage.rb +84 -0
  121. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/usage_list_result.rb +56 -0
  122. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/usage_name.rb +59 -0
  123. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/volume.rb +100 -0
  124. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/volume_mount.rb +70 -0
  125. data/lib/2018-10-01/generated/azure_mgmt_container_instance/module_definition.rb +9 -0
  126. data/lib/2018-10-01/generated/azure_mgmt_container_instance/operations.rb +107 -0
  127. data/lib/2018-10-01/generated/azure_mgmt_container_instance/service_association_link.rb +119 -0
  128. data/lib/azure_mgmt_container_instance.rb +2 -0
  129. data/lib/profiles/latest/modules/containerinstance_profile_module.rb +139 -101
  130. data/lib/version.rb +1 -1
  131. metadata +112 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 34cb2c89a2fb522cb3533b539d5e543e7f1e285a
4
- data.tar.gz: 99dcfda16fec49f876586bb5f714c31d57056cc1
2
+ SHA256:
3
+ metadata.gz: f5aa37255243de0fd2305718b6602ede37076dcb1d040273a451fc286327cd52
4
+ data.tar.gz: c7a2f249e74f6edbe841a36cd05d3d9c5eff5b6ee83b0c87498c4a470ad7001c
5
5
  SHA512:
6
- metadata.gz: 4b5d3f2b56fe47d3abcb6632fa994d99c2c2780d19e536bd12649654c567859287447a72222401b94286c2462226256c863ee34957dcf88785c11386376d2c39
7
- data.tar.gz: eec0082e3152a28a21b2d1df1af00499179ba910708edc3498c8a72615642a67d2320c5b36813449cc03103d0301eef8f28fb04655c6978392401508be0fe34f
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.0"
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.0"
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.0"
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.0"
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.
@@ -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.0"
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_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
  #
@@ -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.0"
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::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