azure_mgmt_container_instance 0.17.1 → 0.17.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (218) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_groups.rb +14 -0
  3. data/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +1 -1
  4. data/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_logs.rb +2 -0
  5. data/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +1 -1
  6. data/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/container_groups.rb +14 -0
  7. data/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +1 -1
  8. data/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/container_logs.rb +2 -0
  9. data/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +1 -1
  10. data/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/operations.rb +2 -0
  11. data/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/container_group_usage.rb +2 -0
  12. data/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/container_groups.rb +14 -0
  13. data/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +1 -1
  14. data/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/container_logs.rb +2 -0
  15. data/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +1 -1
  16. data/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/operations.rb +2 -0
  17. data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_group_usage.rb +2 -0
  18. data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_groups.rb +16 -0
  19. data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +1 -1
  20. data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_logs.rb +2 -0
  21. data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +1 -1
  22. data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/operations.rb +2 -0
  23. data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/start_container.rb +2 -0
  24. data/lib/2018-04-01/generated/azure_mgmt_container_instance/container_group_usage.rb +2 -0
  25. data/lib/2018-04-01/generated/azure_mgmt_container_instance/container_groups.rb +16 -0
  26. data/lib/2018-04-01/generated/azure_mgmt_container_instance/container_instance_management_client.rb +1 -1
  27. data/lib/2018-04-01/generated/azure_mgmt_container_instance/container_logs.rb +2 -0
  28. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +1 -1
  29. data/lib/2018-04-01/generated/azure_mgmt_container_instance/operations.rb +2 -0
  30. data/lib/2018-04-01/generated/azure_mgmt_container_instance/start_container.rb +2 -0
  31. data/lib/2018-06-01/generated/azure_mgmt_container_instance/container_group_usage.rb +2 -0
  32. data/lib/2018-06-01/generated/azure_mgmt_container_instance/container_groups.rb +241 -0
  33. data/lib/2018-06-01/generated/azure_mgmt_container_instance/container_instance_management_client.rb +1 -1
  34. data/lib/2018-06-01/generated/azure_mgmt_container_instance/container_operations.rb +4 -0
  35. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +1 -1
  36. data/lib/2018-06-01/generated/azure_mgmt_container_instance/operations.rb +2 -0
  37. data/lib/2018-09-01/generated/azure_mgmt_container_instance.rb +74 -0
  38. data/lib/2018-09-01/generated/azure_mgmt_container_instance/container_group_usage.rb +115 -0
  39. data/lib/2018-09-01/generated/azure_mgmt_container_instance/container_groups.rb +1225 -0
  40. data/lib/2018-09-01/generated/azure_mgmt_container_instance/container_instance_management_client.rb +145 -0
  41. data/lib/2018-09-01/generated/azure_mgmt_container_instance/container_operations.rb +262 -0
  42. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/azure_file_volume.rb +84 -0
  43. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container.rb +192 -0
  44. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_exec.rb +54 -0
  45. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_exec_request.rb +58 -0
  46. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_exec_request_terminal_size.rb +57 -0
  47. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_exec_response.rb +57 -0
  48. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group.rb +242 -0
  49. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_diagnostics.rb +47 -0
  50. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_ip_address_type.rb +16 -0
  51. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +99 -0
  52. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_network_profile.rb +46 -0
  53. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_network_protocol.rb +16 -0
  54. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb +69 -0
  55. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_restart_policy.rb +17 -0
  56. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_http_get.rb +68 -0
  57. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_instance_operations_origin.rb +16 -0
  58. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_network_protocol.rb +16 -0
  59. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_port.rb +58 -0
  60. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_probe.rb +114 -0
  61. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb +95 -0
  62. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_state.rb +94 -0
  63. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/environment_variable.rb +68 -0
  64. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/event.rb +101 -0
  65. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/git_repo_volume.rb +72 -0
  66. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/image_registry_credential.rb +69 -0
  67. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/ip_address.rb +101 -0
  68. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/log_analytics.rb +88 -0
  69. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/log_analytics_log_type.rb +16 -0
  70. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/logs.rb +46 -0
  71. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/operating_system_types.rb +16 -0
  72. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/operation.rb +70 -0
  73. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/operation_display.rb +79 -0
  74. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/operation_list_result.rb +67 -0
  75. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/port.rb +58 -0
  76. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/resource.rb +110 -0
  77. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/resource_limits.rb +57 -0
  78. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/resource_requests.rb +57 -0
  79. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/resource_requirements.rb +61 -0
  80. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/usage.rb +84 -0
  81. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/usage_list_result.rb +56 -0
  82. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/usage_name.rb +59 -0
  83. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/volume.rb +100 -0
  84. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/volume_mount.rb +70 -0
  85. data/lib/2018-09-01/generated/azure_mgmt_container_instance/module_definition.rb +9 -0
  86. data/lib/2018-09-01/generated/azure_mgmt_container_instance/operations.rb +109 -0
  87. data/lib/2018-10-01/generated/azure_mgmt_container_instance.rb +86 -0
  88. data/lib/2018-10-01/generated/azure_mgmt_container_instance/container_group_usage.rb +115 -0
  89. data/lib/2018-10-01/generated/azure_mgmt_container_instance/container_groups.rb +1354 -0
  90. data/lib/2018-10-01/generated/azure_mgmt_container_instance/container_instance_management_client.rb +344 -0
  91. data/lib/2018-10-01/generated/azure_mgmt_container_instance/container_operations.rb +262 -0
  92. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/azure_file_volume.rb +84 -0
  93. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/cached_images.rb +68 -0
  94. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/cached_images_list_result.rb +66 -0
  95. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/capabilities.rb +108 -0
  96. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/capabilities_capabilities.rb +71 -0
  97. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/capabilities_list_result.rb +66 -0
  98. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container.rb +192 -0
  99. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_exec.rb +54 -0
  100. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_exec_request.rb +58 -0
  101. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_exec_request_terminal_size.rb +57 -0
  102. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_exec_response.rb +57 -0
  103. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group.rb +268 -0
  104. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_diagnostics.rb +47 -0
  105. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_identity.rb +102 -0
  106. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_identity_user_assigned_identities_value.rb +61 -0
  107. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_ip_address_type.rb +16 -0
  108. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +99 -0
  109. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_network_profile.rb +46 -0
  110. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_network_protocol.rb +16 -0
  111. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb +69 -0
  112. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_restart_policy.rb +17 -0
  113. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_http_get.rb +68 -0
  114. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_instance_operations_origin.rb +16 -0
  115. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_network_protocol.rb +16 -0
  116. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_port.rb +58 -0
  117. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_probe.rb +114 -0
  118. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb +95 -0
  119. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_state.rb +94 -0
  120. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/dns_configuration.rb +77 -0
  121. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/environment_variable.rb +68 -0
  122. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/event.rb +101 -0
  123. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/git_repo_volume.rb +72 -0
  124. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/gpu_resource.rb +58 -0
  125. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/gpu_sku.rb +17 -0
  126. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/image_registry_credential.rb +69 -0
  127. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/ip_address.rb +102 -0
  128. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/log_analytics.rb +88 -0
  129. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/log_analytics_log_type.rb +16 -0
  130. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/logs.rb +46 -0
  131. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/operating_system_types.rb +16 -0
  132. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/operation.rb +81 -0
  133. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/operation_display.rb +79 -0
  134. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/operation_list_result.rb +67 -0
  135. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/port.rb +58 -0
  136. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/resource.rb +110 -0
  137. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/resource_identity_type.rb +18 -0
  138. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/resource_limits.rb +69 -0
  139. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/resource_requests.rb +69 -0
  140. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/resource_requirements.rb +61 -0
  141. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/usage.rb +84 -0
  142. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/usage_list_result.rb +56 -0
  143. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/usage_name.rb +59 -0
  144. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/volume.rb +100 -0
  145. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/volume_mount.rb +70 -0
  146. data/lib/2018-10-01/generated/azure_mgmt_container_instance/module_definition.rb +9 -0
  147. data/lib/2018-10-01/generated/azure_mgmt_container_instance/operations.rb +109 -0
  148. data/lib/2018-10-01/generated/azure_mgmt_container_instance/service_association_link.rb +121 -0
  149. data/lib/2019-12-01/generated/azure_mgmt_container_instance.rb +90 -0
  150. data/lib/2019-12-01/generated/azure_mgmt_container_instance/container_groups.rb +1404 -0
  151. data/lib/2019-12-01/generated/azure_mgmt_container_instance/container_instance_management_client.rb +145 -0
  152. data/lib/2019-12-01/generated/azure_mgmt_container_instance/containers.rb +262 -0
  153. data/lib/2019-12-01/generated/azure_mgmt_container_instance/location.rb +552 -0
  154. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/azure_file_volume.rb +84 -0
  155. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/cached_images.rb +57 -0
  156. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/cached_images_list_result.rb +98 -0
  157. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/capabilities.rb +108 -0
  158. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/capabilities_capabilities.rb +71 -0
  159. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/capabilities_list_result.rb +98 -0
  160. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/container.rb +192 -0
  161. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_exec.rb +54 -0
  162. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_exec_request.rb +58 -0
  163. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_exec_request_terminal_size.rb +57 -0
  164. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_exec_response.rb +57 -0
  165. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_group.rb +314 -0
  166. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_group_diagnostics.rb +47 -0
  167. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_group_identity.rb +102 -0
  168. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_group_identity_user_assigned_identities_value.rb +61 -0
  169. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_group_ip_address_type.rb +16 -0
  170. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +99 -0
  171. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_group_network_profile.rb +46 -0
  172. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_group_network_protocol.rb +16 -0
  173. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb +69 -0
  174. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_group_restart_policy.rb +17 -0
  175. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_group_sku.rb +16 -0
  176. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_http_get.rb +68 -0
  177. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_instance_operations_origin.rb +16 -0
  178. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_network_protocol.rb +16 -0
  179. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_port.rb +58 -0
  180. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_probe.rb +114 -0
  181. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb +95 -0
  182. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_state.rb +99 -0
  183. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/dns_configuration.rb +77 -0
  184. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/encryption_properties.rb +68 -0
  185. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/environment_variable.rb +68 -0
  186. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/event.rb +107 -0
  187. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/git_repo_volume.rb +72 -0
  188. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/gpu_resource.rb +58 -0
  189. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/gpu_sku.rb +17 -0
  190. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/image_registry_credential.rb +69 -0
  191. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/init_container_definition.rb +133 -0
  192. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/init_container_properties_definition_instance_view.rb +96 -0
  193. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/ip_address.rb +102 -0
  194. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/log_analytics.rb +88 -0
  195. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/log_analytics_log_type.rb +16 -0
  196. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/logs.rb +46 -0
  197. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/operating_system_types.rb +16 -0
  198. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/operation.rb +81 -0
  199. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/operation_display.rb +79 -0
  200. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/operation_list_result.rb +99 -0
  201. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/port.rb +58 -0
  202. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/resource.rb +110 -0
  203. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/resource_identity_type.rb +18 -0
  204. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/resource_limits.rb +69 -0
  205. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/resource_requests.rb +69 -0
  206. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/resource_requirements.rb +61 -0
  207. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/scheme.rb +16 -0
  208. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/usage.rb +84 -0
  209. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/usage_list_result.rb +56 -0
  210. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/usage_name.rb +59 -0
  211. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/volume.rb +100 -0
  212. data/lib/2019-12-01/generated/azure_mgmt_container_instance/models/volume_mount.rb +70 -0
  213. data/lib/2019-12-01/generated/azure_mgmt_container_instance/module_definition.rb +9 -0
  214. data/lib/2019-12-01/generated/azure_mgmt_container_instance/operations.rb +219 -0
  215. data/lib/azure_mgmt_container_instance.rb +5 -2
  216. data/lib/profiles/latest/modules/containerinstance_profile_module.rb +183 -107
  217. data/lib/version.rb +1 -1
  218. metadata +183 -5
@@ -0,0 +1,86 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '2018-10-01/generated/azure_mgmt_container_instance/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::ContainerInstance::Mgmt::V2018_10_01
23
+ autoload :ContainerGroups, '2018-10-01/generated/azure_mgmt_container_instance/container_groups.rb'
24
+ autoload :Operations, '2018-10-01/generated/azure_mgmt_container_instance/operations.rb'
25
+ autoload :ContainerGroupUsage, '2018-10-01/generated/azure_mgmt_container_instance/container_group_usage.rb'
26
+ autoload :ContainerOperations, '2018-10-01/generated/azure_mgmt_container_instance/container_operations.rb'
27
+ autoload :ServiceAssociationLink, '2018-10-01/generated/azure_mgmt_container_instance/service_association_link.rb'
28
+ autoload :ContainerInstanceManagementClient, '2018-10-01/generated/azure_mgmt_container_instance/container_instance_management_client.rb'
29
+
30
+ module Models
31
+ autoload :LogAnalytics, '2018-10-01/generated/azure_mgmt_container_instance/models/log_analytics.rb'
32
+ autoload :ContainerPort, '2018-10-01/generated/azure_mgmt_container_instance/models/container_port.rb'
33
+ autoload :ContainerGroupDiagnostics, '2018-10-01/generated/azure_mgmt_container_instance/models/container_group_diagnostics.rb'
34
+ autoload :ContainerState, '2018-10-01/generated/azure_mgmt_container_instance/models/container_state.rb'
35
+ autoload :ContainerGroupNetworkProfile, '2018-10-01/generated/azure_mgmt_container_instance/models/container_group_network_profile.rb'
36
+ autoload :ContainerPropertiesInstanceView, '2018-10-01/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb'
37
+ autoload :DnsConfiguration, '2018-10-01/generated/azure_mgmt_container_instance/models/dns_configuration.rb'
38
+ autoload :ResourceRequests, '2018-10-01/generated/azure_mgmt_container_instance/models/resource_requests.rb'
39
+ autoload :ResourceLimits, '2018-10-01/generated/azure_mgmt_container_instance/models/resource_limits.rb'
40
+ autoload :VolumeMount, '2018-10-01/generated/azure_mgmt_container_instance/models/volume_mount.rb'
41
+ autoload :OperationDisplay, '2018-10-01/generated/azure_mgmt_container_instance/models/operation_display.rb'
42
+ autoload :ContainerHttpGet, '2018-10-01/generated/azure_mgmt_container_instance/models/container_http_get.rb'
43
+ autoload :Operation, '2018-10-01/generated/azure_mgmt_container_instance/models/operation.rb'
44
+ autoload :Container, '2018-10-01/generated/azure_mgmt_container_instance/models/container.rb'
45
+ autoload :OperationListResult, '2018-10-01/generated/azure_mgmt_container_instance/models/operation_list_result.rb'
46
+ autoload :GitRepoVolume, '2018-10-01/generated/azure_mgmt_container_instance/models/git_repo_volume.rb'
47
+ autoload :UsageName, '2018-10-01/generated/azure_mgmt_container_instance/models/usage_name.rb'
48
+ autoload :ContainerGroupIdentityUserAssignedIdentitiesValue, '2018-10-01/generated/azure_mgmt_container_instance/models/container_group_identity_user_assigned_identities_value.rb'
49
+ autoload :Usage, '2018-10-01/generated/azure_mgmt_container_instance/models/usage.rb'
50
+ autoload :ImageRegistryCredential, '2018-10-01/generated/azure_mgmt_container_instance/models/image_registry_credential.rb'
51
+ autoload :UsageListResult, '2018-10-01/generated/azure_mgmt_container_instance/models/usage_list_result.rb'
52
+ autoload :IpAddress, '2018-10-01/generated/azure_mgmt_container_instance/models/ip_address.rb'
53
+ autoload :ContainerGroupListResult, '2018-10-01/generated/azure_mgmt_container_instance/models/container_group_list_result.rb'
54
+ autoload :EnvironmentVariable, '2018-10-01/generated/azure_mgmt_container_instance/models/environment_variable.rb'
55
+ autoload :Logs, '2018-10-01/generated/azure_mgmt_container_instance/models/logs.rb'
56
+ autoload :GpuResource, '2018-10-01/generated/azure_mgmt_container_instance/models/gpu_resource.rb'
57
+ autoload :ContainerExecRequestTerminalSize, '2018-10-01/generated/azure_mgmt_container_instance/models/container_exec_request_terminal_size.rb'
58
+ autoload :ContainerExec, '2018-10-01/generated/azure_mgmt_container_instance/models/container_exec.rb'
59
+ autoload :ContainerExecRequest, '2018-10-01/generated/azure_mgmt_container_instance/models/container_exec_request.rb'
60
+ autoload :AzureFileVolume, '2018-10-01/generated/azure_mgmt_container_instance/models/azure_file_volume.rb'
61
+ autoload :ContainerExecResponse, '2018-10-01/generated/azure_mgmt_container_instance/models/container_exec_response.rb'
62
+ autoload :ContainerGroupIdentity, '2018-10-01/generated/azure_mgmt_container_instance/models/container_group_identity.rb'
63
+ autoload :Resource, '2018-10-01/generated/azure_mgmt_container_instance/models/resource.rb'
64
+ autoload :ContainerGroupPropertiesInstanceView, '2018-10-01/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb'
65
+ autoload :CachedImages, '2018-10-01/generated/azure_mgmt_container_instance/models/cached_images.rb'
66
+ autoload :ResourceRequirements, '2018-10-01/generated/azure_mgmt_container_instance/models/resource_requirements.rb'
67
+ autoload :CachedImagesListResult, '2018-10-01/generated/azure_mgmt_container_instance/models/cached_images_list_result.rb'
68
+ autoload :Volume, '2018-10-01/generated/azure_mgmt_container_instance/models/volume.rb'
69
+ autoload :CapabilitiesCapabilities, '2018-10-01/generated/azure_mgmt_container_instance/models/capabilities_capabilities.rb'
70
+ autoload :Event, '2018-10-01/generated/azure_mgmt_container_instance/models/event.rb'
71
+ autoload :Capabilities, '2018-10-01/generated/azure_mgmt_container_instance/models/capabilities.rb'
72
+ autoload :Port, '2018-10-01/generated/azure_mgmt_container_instance/models/port.rb'
73
+ autoload :CapabilitiesListResult, '2018-10-01/generated/azure_mgmt_container_instance/models/capabilities_list_result.rb'
74
+ autoload :ContainerProbe, '2018-10-01/generated/azure_mgmt_container_instance/models/container_probe.rb'
75
+ autoload :ContainerGroup, '2018-10-01/generated/azure_mgmt_container_instance/models/container_group.rb'
76
+ autoload :ContainerNetworkProtocol, '2018-10-01/generated/azure_mgmt_container_instance/models/container_network_protocol.rb'
77
+ autoload :GpuSku, '2018-10-01/generated/azure_mgmt_container_instance/models/gpu_sku.rb'
78
+ autoload :ResourceIdentityType, '2018-10-01/generated/azure_mgmt_container_instance/models/resource_identity_type.rb'
79
+ autoload :ContainerGroupRestartPolicy, '2018-10-01/generated/azure_mgmt_container_instance/models/container_group_restart_policy.rb'
80
+ autoload :ContainerGroupNetworkProtocol, '2018-10-01/generated/azure_mgmt_container_instance/models/container_group_network_protocol.rb'
81
+ autoload :ContainerGroupIpAddressType, '2018-10-01/generated/azure_mgmt_container_instance/models/container_group_ip_address_type.rb'
82
+ autoload :OperatingSystemTypes, '2018-10-01/generated/azure_mgmt_container_instance/models/operating_system_types.rb'
83
+ autoload :LogAnalyticsLogType, '2018-10-01/generated/azure_mgmt_container_instance/models/log_analytics_log_type.rb'
84
+ autoload :ContainerInstanceOperationsOrigin, '2018-10-01/generated/azure_mgmt_container_instance/models/container_instance_operations_origin.rb'
85
+ end
86
+ end
@@ -0,0 +1,115 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ContainerInstance::Mgmt::V2018_10_01
7
+ #
8
+ # ContainerGroupUsage
9
+ #
10
+ class ContainerGroupUsage
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the ContainerGroupUsage class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [ContainerInstanceManagementClient] reference to the ContainerInstanceManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Get the usage for a subscription
26
+ #
27
+ # @param location [String] The identifier for the physical azure location.
28
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
29
+ # will be added to the HTTP request.
30
+ #
31
+ # @return [UsageListResult] operation results.
32
+ #
33
+ def list(location, custom_headers:nil)
34
+ response = list_async(location, custom_headers:custom_headers).value!
35
+ response.body unless response.nil?
36
+ end
37
+
38
+ #
39
+ # Get the usage for a subscription
40
+ #
41
+ # @param location [String] The identifier for the physical azure location.
42
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
43
+ # will be added to the HTTP request.
44
+ #
45
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
46
+ #
47
+ def list_with_http_info(location, custom_headers:nil)
48
+ list_async(location, custom_headers:custom_headers).value!
49
+ end
50
+
51
+ #
52
+ # Get the usage for a subscription
53
+ #
54
+ # @param location [String] The identifier for the physical azure location.
55
+ # @param [Hash{String => String}] A hash of custom headers that will be added
56
+ # to the HTTP request.
57
+ #
58
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
59
+ #
60
+ def list_async(location, custom_headers:nil)
61
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
62
+ fail ArgumentError, 'location is nil' if location.nil?
63
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
64
+
65
+
66
+ request_headers = {}
67
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
68
+
69
+ # Set Headers
70
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
71
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
72
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/usages'
73
+
74
+ request_url = @base_url || @client.base_url
75
+
76
+ options = {
77
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
78
+ path_params: {'subscriptionId' => @client.subscription_id,'location' => location},
79
+ query_params: {'api-version' => @client.api_version},
80
+ headers: request_headers.merge(custom_headers || {}),
81
+ base_url: request_url
82
+ }
83
+ promise = @client.make_request_async(:get, path_template, options)
84
+
85
+ promise = promise.then do |result|
86
+ http_response = result.response
87
+ status_code = http_response.status
88
+ response_content = http_response.body
89
+ unless status_code == 200
90
+ error_model = JSON.load(response_content)
91
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
92
+ end
93
+
94
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
95
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
96
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
97
+ # Deserialize Response
98
+ if status_code == 200
99
+ begin
100
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
101
+ result_mapper = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::UsageListResult.mapper()
102
+ result.body = @client.deserialize(result_mapper, parsed_response)
103
+ rescue Exception => e
104
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
105
+ end
106
+ end
107
+
108
+ result
109
+ end
110
+
111
+ promise.execute
112
+ end
113
+
114
+ end
115
+ end
@@ -0,0 +1,1354 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ContainerInstance::Mgmt::V2018_10_01
7
+ #
8
+ # ContainerGroups
9
+ #
10
+ class ContainerGroups
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the ContainerGroups class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [ContainerInstanceManagementClient] reference to the ContainerInstanceManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Get a list of container groups in the specified subscription.
26
+ #
27
+ # Get a list of container groups in the specified subscription. This operation
28
+ # returns properties of each container group including containers, image
29
+ # registry credentials, restart policy, IP address type, OS type, state, and
30
+ # volumes.
31
+ #
32
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
33
+ # will be added to the HTTP request.
34
+ #
35
+ # @return [Array<ContainerGroup>] operation results.
36
+ #
37
+ def list(custom_headers:nil)
38
+ first_page = list_as_lazy(custom_headers:custom_headers)
39
+ first_page.get_all_items
40
+ end
41
+
42
+ #
43
+ # Get a list of container groups in the specified subscription.
44
+ #
45
+ # Get a list of container groups in the specified subscription. This operation
46
+ # returns properties of each container group including containers, image
47
+ # registry credentials, restart policy, IP address type, OS type, state, and
48
+ # volumes.
49
+ #
50
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
51
+ # will be added to the HTTP request.
52
+ #
53
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
54
+ #
55
+ def list_with_http_info(custom_headers:nil)
56
+ list_async(custom_headers:custom_headers).value!
57
+ end
58
+
59
+ #
60
+ # Get a list of container groups in the specified subscription.
61
+ #
62
+ # Get a list of container groups in the specified subscription. This operation
63
+ # returns properties of each container group including containers, image
64
+ # registry credentials, restart policy, IP address type, OS type, state, and
65
+ # volumes.
66
+ #
67
+ # @param [Hash{String => String}] A hash of custom headers that will be added
68
+ # to the HTTP request.
69
+ #
70
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
71
+ #
72
+ def list_async(custom_headers:nil)
73
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
74
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
75
+
76
+
77
+ request_headers = {}
78
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
79
+
80
+ # Set Headers
81
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
82
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
83
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroups'
84
+
85
+ request_url = @base_url || @client.base_url
86
+
87
+ options = {
88
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
89
+ path_params: {'subscriptionId' => @client.subscription_id},
90
+ query_params: {'api-version' => @client.api_version},
91
+ headers: request_headers.merge(custom_headers || {}),
92
+ base_url: request_url
93
+ }
94
+ promise = @client.make_request_async(:get, path_template, options)
95
+
96
+ promise = promise.then do |result|
97
+ http_response = result.response
98
+ status_code = http_response.status
99
+ response_content = http_response.body
100
+ unless status_code == 200
101
+ error_model = JSON.load(response_content)
102
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
103
+ end
104
+
105
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
106
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
107
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
108
+ # Deserialize Response
109
+ if status_code == 200
110
+ begin
111
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
112
+ result_mapper = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupListResult.mapper()
113
+ result.body = @client.deserialize(result_mapper, parsed_response)
114
+ rescue Exception => e
115
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
116
+ end
117
+ end
118
+
119
+ result
120
+ end
121
+
122
+ promise.execute
123
+ end
124
+
125
+ #
126
+ # Get a list of container groups in the specified subscription and resource
127
+ # group.
128
+ #
129
+ # Get a list of container groups in a specified subscription and resource
130
+ # group. This operation returns properties of each container group including
131
+ # containers, image registry credentials, restart policy, IP address type, OS
132
+ # type, state, and volumes.
133
+ #
134
+ # @param resource_group_name [String] The name of the resource group.
135
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
136
+ # will be added to the HTTP request.
137
+ #
138
+ # @return [Array<ContainerGroup>] operation results.
139
+ #
140
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
141
+ first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
142
+ first_page.get_all_items
143
+ end
144
+
145
+ #
146
+ # Get a list of container groups in the specified subscription and resource
147
+ # group.
148
+ #
149
+ # Get a list of container groups in a specified subscription and resource
150
+ # group. This operation returns properties of each container group including
151
+ # containers, image registry credentials, restart policy, IP address type, OS
152
+ # type, state, and volumes.
153
+ #
154
+ # @param resource_group_name [String] The name of the resource group.
155
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
156
+ # will be added to the HTTP request.
157
+ #
158
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
159
+ #
160
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
161
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
162
+ end
163
+
164
+ #
165
+ # Get a list of container groups in the specified subscription and resource
166
+ # group.
167
+ #
168
+ # Get a list of container groups in a specified subscription and resource
169
+ # group. This operation returns properties of each container group including
170
+ # containers, image registry credentials, restart policy, IP address type, OS
171
+ # type, state, and volumes.
172
+ #
173
+ # @param resource_group_name [String] The name of the resource group.
174
+ # @param [Hash{String => String}] A hash of custom headers that will be added
175
+ # to the HTTP request.
176
+ #
177
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
178
+ #
179
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
180
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
181
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
182
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
183
+
184
+
185
+ request_headers = {}
186
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
187
+
188
+ # Set Headers
189
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
190
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
191
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups'
192
+
193
+ request_url = @base_url || @client.base_url
194
+
195
+ options = {
196
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
197
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
198
+ query_params: {'api-version' => @client.api_version},
199
+ headers: request_headers.merge(custom_headers || {}),
200
+ base_url: request_url
201
+ }
202
+ promise = @client.make_request_async(:get, path_template, options)
203
+
204
+ promise = promise.then do |result|
205
+ http_response = result.response
206
+ status_code = http_response.status
207
+ response_content = http_response.body
208
+ unless status_code == 200
209
+ error_model = JSON.load(response_content)
210
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
211
+ end
212
+
213
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
214
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
215
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
216
+ # Deserialize Response
217
+ if status_code == 200
218
+ begin
219
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
220
+ result_mapper = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupListResult.mapper()
221
+ result.body = @client.deserialize(result_mapper, parsed_response)
222
+ rescue Exception => e
223
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
224
+ end
225
+ end
226
+
227
+ result
228
+ end
229
+
230
+ promise.execute
231
+ end
232
+
233
+ #
234
+ # Get the properties of the specified container group.
235
+ #
236
+ # Gets the properties of the specified container group in the specified
237
+ # subscription and resource group. The operation returns the properties of each
238
+ # container group including containers, image registry credentials, restart
239
+ # policy, IP address type, OS type, state, and volumes.
240
+ #
241
+ # @param resource_group_name [String] The name of the resource group.
242
+ # @param container_group_name [String] The name of the container group.
243
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
244
+ # will be added to the HTTP request.
245
+ #
246
+ # @return [ContainerGroup] operation results.
247
+ #
248
+ def get(resource_group_name, container_group_name, custom_headers:nil)
249
+ response = get_async(resource_group_name, container_group_name, custom_headers:custom_headers).value!
250
+ response.body unless response.nil?
251
+ end
252
+
253
+ #
254
+ # Get the properties of the specified container group.
255
+ #
256
+ # Gets the properties of the specified container group in the specified
257
+ # subscription and resource group. The operation returns the properties of each
258
+ # container group including containers, image registry credentials, restart
259
+ # policy, IP address type, OS type, state, and volumes.
260
+ #
261
+ # @param resource_group_name [String] The name of the resource group.
262
+ # @param container_group_name [String] The name of the container group.
263
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
264
+ # will be added to the HTTP request.
265
+ #
266
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
267
+ #
268
+ def get_with_http_info(resource_group_name, container_group_name, custom_headers:nil)
269
+ get_async(resource_group_name, container_group_name, custom_headers:custom_headers).value!
270
+ end
271
+
272
+ #
273
+ # Get the properties of the specified container group.
274
+ #
275
+ # Gets the properties of the specified container group in the specified
276
+ # subscription and resource group. The operation returns the properties of each
277
+ # container group including containers, image registry credentials, restart
278
+ # policy, IP address type, OS type, state, and volumes.
279
+ #
280
+ # @param resource_group_name [String] The name of the resource group.
281
+ # @param container_group_name [String] The name of the container group.
282
+ # @param [Hash{String => String}] A hash of custom headers that will be added
283
+ # to the HTTP request.
284
+ #
285
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
286
+ #
287
+ def get_async(resource_group_name, container_group_name, custom_headers:nil)
288
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
289
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
290
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
291
+ fail ArgumentError, 'container_group_name is nil' if container_group_name.nil?
292
+
293
+
294
+ request_headers = {}
295
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
296
+
297
+ # Set Headers
298
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
299
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
300
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}'
301
+
302
+ request_url = @base_url || @client.base_url
303
+
304
+ options = {
305
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
306
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'containerGroupName' => container_group_name},
307
+ query_params: {'api-version' => @client.api_version},
308
+ headers: request_headers.merge(custom_headers || {}),
309
+ base_url: request_url
310
+ }
311
+ promise = @client.make_request_async(:get, path_template, options)
312
+
313
+ promise = promise.then do |result|
314
+ http_response = result.response
315
+ status_code = http_response.status
316
+ response_content = http_response.body
317
+ unless status_code == 200
318
+ error_model = JSON.load(response_content)
319
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
320
+ end
321
+
322
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
323
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
324
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
325
+ # Deserialize Response
326
+ if status_code == 200
327
+ begin
328
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
329
+ result_mapper = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroup.mapper()
330
+ result.body = @client.deserialize(result_mapper, parsed_response)
331
+ rescue Exception => e
332
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
333
+ end
334
+ end
335
+
336
+ result
337
+ end
338
+
339
+ promise.execute
340
+ end
341
+
342
+ #
343
+ # Create or update container groups.
344
+ #
345
+ # Create or update container groups with specified configurations.
346
+ #
347
+ # @param resource_group_name [String] The name of the resource group.
348
+ # @param container_group_name [String] The name of the container group.
349
+ # @param container_group [ContainerGroup] The properties of the container group
350
+ # to be created or updated.
351
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
352
+ # will be added to the HTTP request.
353
+ #
354
+ # @return [ContainerGroup] operation results.
355
+ #
356
+ def create_or_update(resource_group_name, container_group_name, container_group, custom_headers:nil)
357
+ response = create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers:custom_headers).value!
358
+ response.body unless response.nil?
359
+ end
360
+
361
+ #
362
+ # @param resource_group_name [String] The name of the resource group.
363
+ # @param container_group_name [String] The name of the container group.
364
+ # @param container_group [ContainerGroup] The properties of the container group
365
+ # to be created or updated.
366
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
367
+ # will be added to the HTTP request.
368
+ #
369
+ # @return [Concurrent::Promise] promise which provides async access to http
370
+ # response.
371
+ #
372
+ def create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers:nil)
373
+ # Send request
374
+ promise = begin_create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers:custom_headers)
375
+
376
+ promise = promise.then do |response|
377
+ # Defining deserialization method.
378
+ deserialize_method = lambda do |parsed_response|
379
+ result_mapper = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroup.mapper()
380
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
381
+ end
382
+
383
+ # Waiting for response.
384
+ @client.get_long_running_operation_result(response, deserialize_method)
385
+ end
386
+
387
+ promise
388
+ end
389
+
390
+ #
391
+ # Update container groups.
392
+ #
393
+ # Updates container group tags with specified values.
394
+ #
395
+ # @param resource_group_name [String] The name of the resource group.
396
+ # @param container_group_name [String] The name of the container group.
397
+ # @param resource [Resource] The container group resource with just the tags to
398
+ # be updated.
399
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
400
+ # will be added to the HTTP request.
401
+ #
402
+ # @return [ContainerGroup] operation results.
403
+ #
404
+ def update(resource_group_name, container_group_name, resource, custom_headers:nil)
405
+ response = update_async(resource_group_name, container_group_name, resource, custom_headers:custom_headers).value!
406
+ response.body unless response.nil?
407
+ end
408
+
409
+ #
410
+ # Update container groups.
411
+ #
412
+ # Updates container group tags with specified values.
413
+ #
414
+ # @param resource_group_name [String] The name of the resource group.
415
+ # @param container_group_name [String] The name of the container group.
416
+ # @param resource [Resource] The container group resource with just the tags to
417
+ # be updated.
418
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
419
+ # will be added to the HTTP request.
420
+ #
421
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
422
+ #
423
+ def update_with_http_info(resource_group_name, container_group_name, resource, custom_headers:nil)
424
+ update_async(resource_group_name, container_group_name, resource, custom_headers:custom_headers).value!
425
+ end
426
+
427
+ #
428
+ # Update container groups.
429
+ #
430
+ # Updates container group tags with specified values.
431
+ #
432
+ # @param resource_group_name [String] The name of the resource group.
433
+ # @param container_group_name [String] The name of the container group.
434
+ # @param resource [Resource] The container group resource with just the tags to
435
+ # be updated.
436
+ # @param [Hash{String => String}] A hash of custom headers that will be added
437
+ # to the HTTP request.
438
+ #
439
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
440
+ #
441
+ def update_async(resource_group_name, container_group_name, resource, custom_headers:nil)
442
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
443
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
444
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
445
+ fail ArgumentError, 'container_group_name is nil' if container_group_name.nil?
446
+ fail ArgumentError, 'resource is nil' if resource.nil?
447
+
448
+
449
+ request_headers = {}
450
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
451
+
452
+ # Set Headers
453
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
454
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
455
+
456
+ # Serialize Request
457
+ request_mapper = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::Resource.mapper()
458
+ request_content = @client.serialize(request_mapper, resource)
459
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
460
+
461
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}'
462
+
463
+ request_url = @base_url || @client.base_url
464
+
465
+ options = {
466
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
467
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'containerGroupName' => container_group_name},
468
+ query_params: {'api-version' => @client.api_version},
469
+ body: request_content,
470
+ headers: request_headers.merge(custom_headers || {}),
471
+ base_url: request_url
472
+ }
473
+ promise = @client.make_request_async(:patch, path_template, options)
474
+
475
+ promise = promise.then do |result|
476
+ http_response = result.response
477
+ status_code = http_response.status
478
+ response_content = http_response.body
479
+ unless status_code == 200
480
+ error_model = JSON.load(response_content)
481
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
482
+ end
483
+
484
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
485
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
486
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
487
+ # Deserialize Response
488
+ if status_code == 200
489
+ begin
490
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
491
+ result_mapper = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroup.mapper()
492
+ result.body = @client.deserialize(result_mapper, parsed_response)
493
+ rescue Exception => e
494
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
495
+ end
496
+ end
497
+
498
+ result
499
+ end
500
+
501
+ promise.execute
502
+ end
503
+
504
+ #
505
+ # Delete the specified container group.
506
+ #
507
+ # Delete the specified container group in the specified subscription and
508
+ # resource group. The operation does not delete other resources provided by the
509
+ # user, such as volumes.
510
+ #
511
+ # @param resource_group_name [String] The name of the resource group.
512
+ # @param container_group_name [String] The name of the container group.
513
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
514
+ # will be added to the HTTP request.
515
+ #
516
+ # @return [ContainerGroup] operation results.
517
+ #
518
+ def delete(resource_group_name, container_group_name, custom_headers:nil)
519
+ response = delete_async(resource_group_name, container_group_name, custom_headers:custom_headers).value!
520
+ response.body unless response.nil?
521
+ end
522
+
523
+ #
524
+ # Delete the specified container group.
525
+ #
526
+ # Delete the specified container group in the specified subscription and
527
+ # resource group. The operation does not delete other resources provided by the
528
+ # user, such as volumes.
529
+ #
530
+ # @param resource_group_name [String] The name of the resource group.
531
+ # @param container_group_name [String] The name of the container group.
532
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
533
+ # will be added to the HTTP request.
534
+ #
535
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
536
+ #
537
+ def delete_with_http_info(resource_group_name, container_group_name, custom_headers:nil)
538
+ delete_async(resource_group_name, container_group_name, custom_headers:custom_headers).value!
539
+ end
540
+
541
+ #
542
+ # Delete the specified container group.
543
+ #
544
+ # Delete the specified container group in the specified subscription and
545
+ # resource group. The operation does not delete other resources provided by the
546
+ # user, such as volumes.
547
+ #
548
+ # @param resource_group_name [String] The name of the resource group.
549
+ # @param container_group_name [String] The name of the container group.
550
+ # @param [Hash{String => String}] A hash of custom headers that will be added
551
+ # to the HTTP request.
552
+ #
553
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
554
+ #
555
+ def delete_async(resource_group_name, container_group_name, custom_headers:nil)
556
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
557
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
558
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
559
+ fail ArgumentError, 'container_group_name is nil' if container_group_name.nil?
560
+
561
+
562
+ request_headers = {}
563
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
564
+
565
+ # Set Headers
566
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
567
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
568
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}'
569
+
570
+ request_url = @base_url || @client.base_url
571
+
572
+ options = {
573
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
574
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'containerGroupName' => container_group_name},
575
+ query_params: {'api-version' => @client.api_version},
576
+ headers: request_headers.merge(custom_headers || {}),
577
+ base_url: request_url
578
+ }
579
+ promise = @client.make_request_async(:delete, path_template, options)
580
+
581
+ promise = promise.then do |result|
582
+ http_response = result.response
583
+ status_code = http_response.status
584
+ response_content = http_response.body
585
+ unless status_code == 200 || status_code == 204
586
+ error_model = JSON.load(response_content)
587
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
588
+ end
589
+
590
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
591
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
592
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
593
+ # Deserialize Response
594
+ if status_code == 200
595
+ begin
596
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
597
+ result_mapper = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroup.mapper()
598
+ result.body = @client.deserialize(result_mapper, parsed_response)
599
+ rescue Exception => e
600
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
601
+ end
602
+ end
603
+
604
+ result
605
+ end
606
+
607
+ promise.execute
608
+ end
609
+
610
+ #
611
+ # Restarts all containers in a container group.
612
+ #
613
+ # Restarts all containers in a container group in place. If container image has
614
+ # updates, new image will be downloaded.
615
+ #
616
+ # @param resource_group_name [String] The name of the resource group.
617
+ # @param container_group_name [String] The name of the container group.
618
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
619
+ # will be added to the HTTP request.
620
+ #
621
+ def restart(resource_group_name, container_group_name, custom_headers:nil)
622
+ response = restart_async(resource_group_name, container_group_name, custom_headers:custom_headers).value!
623
+ nil
624
+ end
625
+
626
+ #
627
+ # @param resource_group_name [String] The name of the resource group.
628
+ # @param container_group_name [String] The name of the container group.
629
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
630
+ # will be added to the HTTP request.
631
+ #
632
+ # @return [Concurrent::Promise] promise which provides async access to http
633
+ # response.
634
+ #
635
+ def restart_async(resource_group_name, container_group_name, custom_headers:nil)
636
+ # Send request
637
+ promise = begin_restart_async(resource_group_name, container_group_name, custom_headers:custom_headers)
638
+
639
+ promise = promise.then do |response|
640
+ # Defining deserialization method.
641
+ deserialize_method = lambda do |parsed_response|
642
+ end
643
+
644
+ # Waiting for response.
645
+ @client.get_long_running_operation_result(response, deserialize_method)
646
+ end
647
+
648
+ promise
649
+ end
650
+
651
+ #
652
+ # Stops all containers in a container group.
653
+ #
654
+ # Stops all containers in a container group. Compute resources will be
655
+ # deallocated and billing will stop.
656
+ #
657
+ # @param resource_group_name [String] The name of the resource group.
658
+ # @param container_group_name [String] The name of the container group.
659
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
660
+ # will be added to the HTTP request.
661
+ #
662
+ #
663
+ def stop(resource_group_name, container_group_name, custom_headers:nil)
664
+ response = stop_async(resource_group_name, container_group_name, custom_headers:custom_headers).value!
665
+ nil
666
+ end
667
+
668
+ #
669
+ # Stops all containers in a container group.
670
+ #
671
+ # Stops all containers in a container group. Compute resources will be
672
+ # deallocated and billing will stop.
673
+ #
674
+ # @param resource_group_name [String] The name of the resource group.
675
+ # @param container_group_name [String] The name of the container group.
676
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
677
+ # will be added to the HTTP request.
678
+ #
679
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
680
+ #
681
+ def stop_with_http_info(resource_group_name, container_group_name, custom_headers:nil)
682
+ stop_async(resource_group_name, container_group_name, custom_headers:custom_headers).value!
683
+ end
684
+
685
+ #
686
+ # Stops all containers in a container group.
687
+ #
688
+ # Stops all containers in a container group. Compute resources will be
689
+ # deallocated and billing will stop.
690
+ #
691
+ # @param resource_group_name [String] The name of the resource group.
692
+ # @param container_group_name [String] The name of the container group.
693
+ # @param [Hash{String => String}] A hash of custom headers that will be added
694
+ # to the HTTP request.
695
+ #
696
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
697
+ #
698
+ def stop_async(resource_group_name, container_group_name, custom_headers:nil)
699
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
700
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
701
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
702
+ fail ArgumentError, 'container_group_name is nil' if container_group_name.nil?
703
+
704
+
705
+ request_headers = {}
706
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
707
+
708
+ # Set Headers
709
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
710
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
711
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/stop'
712
+
713
+ request_url = @base_url || @client.base_url
714
+
715
+ options = {
716
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
717
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'containerGroupName' => container_group_name},
718
+ query_params: {'api-version' => @client.api_version},
719
+ headers: request_headers.merge(custom_headers || {}),
720
+ base_url: request_url
721
+ }
722
+ promise = @client.make_request_async(:post, path_template, options)
723
+
724
+ promise = promise.then do |result|
725
+ http_response = result.response
726
+ status_code = http_response.status
727
+ response_content = http_response.body
728
+ unless status_code == 204
729
+ error_model = JSON.load(response_content)
730
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
731
+ end
732
+
733
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
734
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
735
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
736
+
737
+ result
738
+ end
739
+
740
+ promise.execute
741
+ end
742
+
743
+ #
744
+ # Starts all containers in a container group.
745
+ #
746
+ # Starts all containers in a container group.
747
+ #
748
+ # @param resource_group_name [String] The name of the resource group.
749
+ # @param container_group_name [String] The name of the container group.
750
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
751
+ # will be added to the HTTP request.
752
+ #
753
+ def start(resource_group_name, container_group_name, custom_headers:nil)
754
+ response = start_async(resource_group_name, container_group_name, custom_headers:custom_headers).value!
755
+ nil
756
+ end
757
+
758
+ #
759
+ # @param resource_group_name [String] The name of the resource group.
760
+ # @param container_group_name [String] The name of the container group.
761
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
762
+ # will be added to the HTTP request.
763
+ #
764
+ # @return [Concurrent::Promise] promise which provides async access to http
765
+ # response.
766
+ #
767
+ def start_async(resource_group_name, container_group_name, custom_headers:nil)
768
+ # Send request
769
+ promise = begin_start_async(resource_group_name, container_group_name, custom_headers:custom_headers)
770
+
771
+ promise = promise.then do |response|
772
+ # Defining deserialization method.
773
+ deserialize_method = lambda do |parsed_response|
774
+ end
775
+
776
+ # Waiting for response.
777
+ @client.get_long_running_operation_result(response, deserialize_method)
778
+ end
779
+
780
+ promise
781
+ end
782
+
783
+ #
784
+ # Create or update container groups.
785
+ #
786
+ # Create or update container groups with specified configurations.
787
+ #
788
+ # @param resource_group_name [String] The name of the resource group.
789
+ # @param container_group_name [String] The name of the container group.
790
+ # @param container_group [ContainerGroup] The properties of the container group
791
+ # to be created or updated.
792
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
793
+ # will be added to the HTTP request.
794
+ #
795
+ # @return [ContainerGroup] operation results.
796
+ #
797
+ def begin_create_or_update(resource_group_name, container_group_name, container_group, custom_headers:nil)
798
+ response = begin_create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers:custom_headers).value!
799
+ response.body unless response.nil?
800
+ end
801
+
802
+ #
803
+ # Create or update container groups.
804
+ #
805
+ # Create or update container groups with specified configurations.
806
+ #
807
+ # @param resource_group_name [String] The name of the resource group.
808
+ # @param container_group_name [String] The name of the container group.
809
+ # @param container_group [ContainerGroup] The properties of the container group
810
+ # to be created or updated.
811
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
812
+ # will be added to the HTTP request.
813
+ #
814
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
815
+ #
816
+ def begin_create_or_update_with_http_info(resource_group_name, container_group_name, container_group, custom_headers:nil)
817
+ begin_create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers:custom_headers).value!
818
+ end
819
+
820
+ #
821
+ # Create or update container groups.
822
+ #
823
+ # Create or update container groups with specified configurations.
824
+ #
825
+ # @param resource_group_name [String] The name of the resource group.
826
+ # @param container_group_name [String] The name of the container group.
827
+ # @param container_group [ContainerGroup] The properties of the container group
828
+ # to be created or updated.
829
+ # @param [Hash{String => String}] A hash of custom headers that will be added
830
+ # to the HTTP request.
831
+ #
832
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
833
+ #
834
+ def begin_create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers:nil)
835
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
836
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
837
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
838
+ fail ArgumentError, 'container_group_name is nil' if container_group_name.nil?
839
+ fail ArgumentError, 'container_group is nil' if container_group.nil?
840
+
841
+
842
+ request_headers = {}
843
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
844
+
845
+ # Set Headers
846
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
847
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
848
+
849
+ # Serialize Request
850
+ request_mapper = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroup.mapper()
851
+ request_content = @client.serialize(request_mapper, container_group)
852
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
853
+
854
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}'
855
+
856
+ request_url = @base_url || @client.base_url
857
+
858
+ options = {
859
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
860
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'containerGroupName' => container_group_name},
861
+ query_params: {'api-version' => @client.api_version},
862
+ body: request_content,
863
+ headers: request_headers.merge(custom_headers || {}),
864
+ base_url: request_url
865
+ }
866
+ promise = @client.make_request_async(:put, path_template, options)
867
+
868
+ promise = promise.then do |result|
869
+ http_response = result.response
870
+ status_code = http_response.status
871
+ response_content = http_response.body
872
+ unless status_code == 200 || status_code == 201
873
+ error_model = JSON.load(response_content)
874
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
875
+ end
876
+
877
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
878
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
879
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
880
+ # Deserialize Response
881
+ if status_code == 200
882
+ begin
883
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
884
+ result_mapper = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroup.mapper()
885
+ result.body = @client.deserialize(result_mapper, parsed_response)
886
+ rescue Exception => e
887
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
888
+ end
889
+ end
890
+ # Deserialize Response
891
+ if status_code == 201
892
+ begin
893
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
894
+ result_mapper = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroup.mapper()
895
+ result.body = @client.deserialize(result_mapper, parsed_response)
896
+ rescue Exception => e
897
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
898
+ end
899
+ end
900
+
901
+ result
902
+ end
903
+
904
+ promise.execute
905
+ end
906
+
907
+ #
908
+ # Restarts all containers in a container group.
909
+ #
910
+ # Restarts all containers in a container group in place. If container image has
911
+ # updates, new image will be downloaded.
912
+ #
913
+ # @param resource_group_name [String] The name of the resource group.
914
+ # @param container_group_name [String] The name of the container group.
915
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
916
+ # will be added to the HTTP request.
917
+ #
918
+ #
919
+ def begin_restart(resource_group_name, container_group_name, custom_headers:nil)
920
+ response = begin_restart_async(resource_group_name, container_group_name, custom_headers:custom_headers).value!
921
+ nil
922
+ end
923
+
924
+ #
925
+ # Restarts all containers in a container group.
926
+ #
927
+ # Restarts all containers in a container group in place. If container image has
928
+ # updates, new image will be downloaded.
929
+ #
930
+ # @param resource_group_name [String] The name of the resource group.
931
+ # @param container_group_name [String] The name of the container group.
932
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
933
+ # will be added to the HTTP request.
934
+ #
935
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
936
+ #
937
+ def begin_restart_with_http_info(resource_group_name, container_group_name, custom_headers:nil)
938
+ begin_restart_async(resource_group_name, container_group_name, custom_headers:custom_headers).value!
939
+ end
940
+
941
+ #
942
+ # Restarts all containers in a container group.
943
+ #
944
+ # Restarts all containers in a container group in place. If container image has
945
+ # updates, new image will be downloaded.
946
+ #
947
+ # @param resource_group_name [String] The name of the resource group.
948
+ # @param container_group_name [String] The name of the container group.
949
+ # @param [Hash{String => String}] A hash of custom headers that will be added
950
+ # to the HTTP request.
951
+ #
952
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
953
+ #
954
+ def begin_restart_async(resource_group_name, container_group_name, custom_headers:nil)
955
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
956
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
957
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
958
+ fail ArgumentError, 'container_group_name is nil' if container_group_name.nil?
959
+
960
+
961
+ request_headers = {}
962
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
963
+
964
+ # Set Headers
965
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
966
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
967
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/restart'
968
+
969
+ request_url = @base_url || @client.base_url
970
+
971
+ options = {
972
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
973
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'containerGroupName' => container_group_name},
974
+ query_params: {'api-version' => @client.api_version},
975
+ headers: request_headers.merge(custom_headers || {}),
976
+ base_url: request_url
977
+ }
978
+ promise = @client.make_request_async(:post, path_template, options)
979
+
980
+ promise = promise.then do |result|
981
+ http_response = result.response
982
+ status_code = http_response.status
983
+ response_content = http_response.body
984
+ unless status_code == 204
985
+ error_model = JSON.load(response_content)
986
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
987
+ end
988
+
989
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
990
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
991
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
992
+
993
+ result
994
+ end
995
+
996
+ promise.execute
997
+ end
998
+
999
+ #
1000
+ # Starts all containers in a container group.
1001
+ #
1002
+ # Starts all containers in a container group.
1003
+ #
1004
+ # @param resource_group_name [String] The name of the resource group.
1005
+ # @param container_group_name [String] The name of the container group.
1006
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1007
+ # will be added to the HTTP request.
1008
+ #
1009
+ #
1010
+ def begin_start(resource_group_name, container_group_name, custom_headers:nil)
1011
+ response = begin_start_async(resource_group_name, container_group_name, custom_headers:custom_headers).value!
1012
+ nil
1013
+ end
1014
+
1015
+ #
1016
+ # Starts all containers in a container group.
1017
+ #
1018
+ # Starts all containers in a container group.
1019
+ #
1020
+ # @param resource_group_name [String] The name of the resource group.
1021
+ # @param container_group_name [String] The name of the container group.
1022
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1023
+ # will be added to the HTTP request.
1024
+ #
1025
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1026
+ #
1027
+ def begin_start_with_http_info(resource_group_name, container_group_name, custom_headers:nil)
1028
+ begin_start_async(resource_group_name, container_group_name, custom_headers:custom_headers).value!
1029
+ end
1030
+
1031
+ #
1032
+ # Starts all containers in a container group.
1033
+ #
1034
+ # Starts all containers in a container group.
1035
+ #
1036
+ # @param resource_group_name [String] The name of the resource group.
1037
+ # @param container_group_name [String] The name of the container group.
1038
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1039
+ # to the HTTP request.
1040
+ #
1041
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1042
+ #
1043
+ def begin_start_async(resource_group_name, container_group_name, custom_headers:nil)
1044
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1045
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1046
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1047
+ fail ArgumentError, 'container_group_name is nil' if container_group_name.nil?
1048
+
1049
+
1050
+ request_headers = {}
1051
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1052
+
1053
+ # Set Headers
1054
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1055
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1056
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/start'
1057
+
1058
+ request_url = @base_url || @client.base_url
1059
+
1060
+ options = {
1061
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1062
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'containerGroupName' => container_group_name},
1063
+ query_params: {'api-version' => @client.api_version},
1064
+ headers: request_headers.merge(custom_headers || {}),
1065
+ base_url: request_url
1066
+ }
1067
+ promise = @client.make_request_async(:post, path_template, options)
1068
+
1069
+ promise = promise.then do |result|
1070
+ http_response = result.response
1071
+ status_code = http_response.status
1072
+ response_content = http_response.body
1073
+ unless status_code == 204
1074
+ error_model = JSON.load(response_content)
1075
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1076
+ end
1077
+
1078
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1079
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1080
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1081
+
1082
+ result
1083
+ end
1084
+
1085
+ promise.execute
1086
+ end
1087
+
1088
+ #
1089
+ # Get a list of container groups in the specified subscription.
1090
+ #
1091
+ # Get a list of container groups in the specified subscription. This operation
1092
+ # returns properties of each container group including containers, image
1093
+ # registry credentials, restart policy, IP address type, OS type, state, and
1094
+ # volumes.
1095
+ #
1096
+ # @param next_page_link [String] The NextLink from the previous successful call
1097
+ # to List operation.
1098
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1099
+ # will be added to the HTTP request.
1100
+ #
1101
+ # @return [ContainerGroupListResult] operation results.
1102
+ #
1103
+ def list_next(next_page_link, custom_headers:nil)
1104
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1105
+ response.body unless response.nil?
1106
+ end
1107
+
1108
+ #
1109
+ # Get a list of container groups in the specified subscription.
1110
+ #
1111
+ # Get a list of container groups in the specified subscription. This operation
1112
+ # returns properties of each container group including containers, image
1113
+ # registry credentials, restart policy, IP address type, OS type, state, and
1114
+ # volumes.
1115
+ #
1116
+ # @param next_page_link [String] The NextLink from the previous successful call
1117
+ # to List operation.
1118
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1119
+ # will be added to the HTTP request.
1120
+ #
1121
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1122
+ #
1123
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1124
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1125
+ end
1126
+
1127
+ #
1128
+ # Get a list of container groups in the specified subscription.
1129
+ #
1130
+ # Get a list of container groups in the specified subscription. This operation
1131
+ # returns properties of each container group including containers, image
1132
+ # registry credentials, restart policy, IP address type, OS type, state, and
1133
+ # volumes.
1134
+ #
1135
+ # @param next_page_link [String] The NextLink from the previous successful call
1136
+ # to List operation.
1137
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1138
+ # to the HTTP request.
1139
+ #
1140
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1141
+ #
1142
+ def list_next_async(next_page_link, custom_headers:nil)
1143
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1144
+
1145
+
1146
+ request_headers = {}
1147
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1148
+
1149
+ # Set Headers
1150
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1151
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1152
+ path_template = '{nextLink}'
1153
+
1154
+ request_url = @base_url || @client.base_url
1155
+
1156
+ options = {
1157
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1158
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1159
+ headers: request_headers.merge(custom_headers || {}),
1160
+ base_url: request_url
1161
+ }
1162
+ promise = @client.make_request_async(:get, path_template, options)
1163
+
1164
+ promise = promise.then do |result|
1165
+ http_response = result.response
1166
+ status_code = http_response.status
1167
+ response_content = http_response.body
1168
+ unless status_code == 200
1169
+ error_model = JSON.load(response_content)
1170
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1171
+ end
1172
+
1173
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1174
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1175
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1176
+ # Deserialize Response
1177
+ if status_code == 200
1178
+ begin
1179
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1180
+ result_mapper = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupListResult.mapper()
1181
+ result.body = @client.deserialize(result_mapper, parsed_response)
1182
+ rescue Exception => e
1183
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1184
+ end
1185
+ end
1186
+
1187
+ result
1188
+ end
1189
+
1190
+ promise.execute
1191
+ end
1192
+
1193
+ #
1194
+ # Get a list of container groups in the specified subscription and resource
1195
+ # group.
1196
+ #
1197
+ # Get a list of container groups in a specified subscription and resource
1198
+ # group. This operation returns properties of each container group including
1199
+ # containers, image registry credentials, restart policy, IP address type, OS
1200
+ # type, state, and volumes.
1201
+ #
1202
+ # @param next_page_link [String] The NextLink from the previous successful call
1203
+ # to List operation.
1204
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1205
+ # will be added to the HTTP request.
1206
+ #
1207
+ # @return [ContainerGroupListResult] operation results.
1208
+ #
1209
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
1210
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1211
+ response.body unless response.nil?
1212
+ end
1213
+
1214
+ #
1215
+ # Get a list of container groups in the specified subscription and resource
1216
+ # group.
1217
+ #
1218
+ # Get a list of container groups in a specified subscription and resource
1219
+ # group. This operation returns properties of each container group including
1220
+ # containers, image registry credentials, restart policy, IP address type, OS
1221
+ # type, state, and volumes.
1222
+ #
1223
+ # @param next_page_link [String] The NextLink from the previous successful call
1224
+ # to List operation.
1225
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1226
+ # will be added to the HTTP request.
1227
+ #
1228
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1229
+ #
1230
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
1231
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1232
+ end
1233
+
1234
+ #
1235
+ # Get a list of container groups in the specified subscription and resource
1236
+ # group.
1237
+ #
1238
+ # Get a list of container groups in a specified subscription and resource
1239
+ # group. This operation returns properties of each container group including
1240
+ # containers, image registry credentials, restart policy, IP address type, OS
1241
+ # type, state, and volumes.
1242
+ #
1243
+ # @param next_page_link [String] The NextLink from the previous successful call
1244
+ # to List operation.
1245
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1246
+ # to the HTTP request.
1247
+ #
1248
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1249
+ #
1250
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
1251
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1252
+
1253
+
1254
+ request_headers = {}
1255
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1256
+
1257
+ # Set Headers
1258
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1259
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1260
+ path_template = '{nextLink}'
1261
+
1262
+ request_url = @base_url || @client.base_url
1263
+
1264
+ options = {
1265
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1266
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1267
+ headers: request_headers.merge(custom_headers || {}),
1268
+ base_url: request_url
1269
+ }
1270
+ promise = @client.make_request_async(:get, path_template, options)
1271
+
1272
+ promise = promise.then do |result|
1273
+ http_response = result.response
1274
+ status_code = http_response.status
1275
+ response_content = http_response.body
1276
+ unless status_code == 200
1277
+ error_model = JSON.load(response_content)
1278
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1279
+ end
1280
+
1281
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1282
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1283
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1284
+ # Deserialize Response
1285
+ if status_code == 200
1286
+ begin
1287
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1288
+ result_mapper = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupListResult.mapper()
1289
+ result.body = @client.deserialize(result_mapper, parsed_response)
1290
+ rescue Exception => e
1291
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1292
+ end
1293
+ end
1294
+
1295
+ result
1296
+ end
1297
+
1298
+ promise.execute
1299
+ end
1300
+
1301
+ #
1302
+ # Get a list of container groups in the specified subscription.
1303
+ #
1304
+ # Get a list of container groups in the specified subscription. This operation
1305
+ # returns properties of each container group including containers, image
1306
+ # registry credentials, restart policy, IP address type, OS type, state, and
1307
+ # volumes.
1308
+ #
1309
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1310
+ # will be added to the HTTP request.
1311
+ #
1312
+ # @return [ContainerGroupListResult] which provide lazy access to pages of the
1313
+ # response.
1314
+ #
1315
+ def list_as_lazy(custom_headers:nil)
1316
+ response = list_async(custom_headers:custom_headers).value!
1317
+ unless response.nil?
1318
+ page = response.body
1319
+ page.next_method = Proc.new do |next_page_link|
1320
+ list_next_async(next_page_link, custom_headers:custom_headers)
1321
+ end
1322
+ page
1323
+ end
1324
+ end
1325
+
1326
+ #
1327
+ # Get a list of container groups in the specified subscription and resource
1328
+ # group.
1329
+ #
1330
+ # Get a list of container groups in a specified subscription and resource
1331
+ # group. This operation returns properties of each container group including
1332
+ # containers, image registry credentials, restart policy, IP address type, OS
1333
+ # type, state, and volumes.
1334
+ #
1335
+ # @param resource_group_name [String] The name of the resource group.
1336
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1337
+ # will be added to the HTTP request.
1338
+ #
1339
+ # @return [ContainerGroupListResult] which provide lazy access to pages of the
1340
+ # response.
1341
+ #
1342
+ def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
1343
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
1344
+ unless response.nil?
1345
+ page = response.body
1346
+ page.next_method = Proc.new do |next_page_link|
1347
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
1348
+ end
1349
+ page
1350
+ end
1351
+ end
1352
+
1353
+ end
1354
+ end