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,145 @@
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_09_01
7
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class ContainerInstanceManagementClient < MsRestAzure::AzureServiceClient
11
+ include MsRestAzure
12
+ include MsRestAzure::Serialization
13
+
14
+ # @return [String] the base URI of the service.
15
+ attr_accessor :base_url
16
+
17
+ # @return Credentials needed for the client to connect to Azure.
18
+ attr_reader :credentials
19
+
20
+ # @return [String] Subscription credentials which uniquely identify
21
+ # Microsoft Azure subscription. The subscription ID forms part of the URI
22
+ # for every service call.
23
+ attr_accessor :subscription_id
24
+
25
+ # @return [String] Client API version
26
+ attr_reader :api_version
27
+
28
+ # @return [String] The preferred language for the response.
29
+ attr_accessor :accept_language
30
+
31
+ # @return [Integer] The retry timeout in seconds for Long Running
32
+ # Operations. Default value is 30.
33
+ attr_accessor :long_running_operation_retry_timeout
34
+
35
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
36
+ # generated. When set to true a unique x-ms-client-request-id value is
37
+ # generated and included in each request. Default is true.
38
+ attr_accessor :generate_client_request_id
39
+
40
+ # @return [ContainerGroups] container_groups
41
+ attr_reader :container_groups
42
+
43
+ # @return [Operations] operations
44
+ attr_reader :operations
45
+
46
+ # @return [ContainerGroupUsage] container_group_usage
47
+ attr_reader :container_group_usage
48
+
49
+ # @return [ContainerOperations] container_operations
50
+ attr_reader :container_operations
51
+
52
+ #
53
+ # Creates initializes a new instance of the ContainerInstanceManagementClient class.
54
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
55
+ # @param base_url [String] the base URI of the service.
56
+ # @param options [Array] filters to be applied to the HTTP requests.
57
+ #
58
+ def initialize(credentials = nil, base_url = nil, options = nil)
59
+ super(credentials, options)
60
+ @base_url = base_url || 'https://management.azure.com'
61
+
62
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
63
+ @credentials = credentials
64
+
65
+ @container_groups = ContainerGroups.new(self)
66
+ @operations = Operations.new(self)
67
+ @container_group_usage = ContainerGroupUsage.new(self)
68
+ @container_operations = ContainerOperations.new(self)
69
+ @api_version = '2018-09-01'
70
+ @accept_language = 'en-US'
71
+ @long_running_operation_retry_timeout = 30
72
+ @generate_client_request_id = true
73
+ add_telemetry
74
+ end
75
+
76
+ #
77
+ # Makes a request and returns the body of the response.
78
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
79
+ # @param path [String] the path, relative to {base_url}.
80
+ # @param options [Hash{String=>String}] specifying any request options like :body.
81
+ # @return [Hash{String=>String}] containing the body of the response.
82
+ # Example:
83
+ #
84
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
85
+ # path = "/path"
86
+ # options = {
87
+ # body: request_content,
88
+ # query_params: {'api-version' => '2016-02-01'}
89
+ # }
90
+ # result = @client.make_request(:put, path, options)
91
+ #
92
+ def make_request(method, path, options = {})
93
+ result = make_request_with_http_info(method, path, options)
94
+ result.body unless result.nil?
95
+ end
96
+
97
+ #
98
+ # Makes a request and returns the operation response.
99
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
100
+ # @param path [String] the path, relative to {base_url}.
101
+ # @param options [Hash{String=>String}] specifying any request options like :body.
102
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
103
+ #
104
+ def make_request_with_http_info(method, path, options = {})
105
+ result = make_request_async(method, path, options).value!
106
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
107
+ result
108
+ end
109
+
110
+ #
111
+ # Makes a request asynchronously.
112
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
113
+ # @param path [String] the path, relative to {base_url}.
114
+ # @param options [Hash{String=>String}] specifying any request options like :body.
115
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
116
+ #
117
+ def make_request_async(method, path, options = {})
118
+ fail ArgumentError, 'method is nil' if method.nil?
119
+ fail ArgumentError, 'path is nil' if path.nil?
120
+
121
+ request_url = options[:base_url] || @base_url
122
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
123
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
124
+ end
125
+
126
+ request_headers = @request_headers
127
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
128
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
129
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
130
+
131
+ super(request_url, method, path, options)
132
+ end
133
+
134
+
135
+ private
136
+ #
137
+ # Adds telemetry information.
138
+ #
139
+ def add_telemetry
140
+ sdk_information = 'azure_mgmt_container_instance'
141
+ sdk_information = "#{sdk_information}/0.17.6"
142
+ add_user_agent_information(sdk_information)
143
+ end
144
+ end
145
+ end
@@ -0,0 +1,262 @@
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_09_01
7
+ #
8
+ # ContainerOperations
9
+ #
10
+ class ContainerOperations
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the ContainerOperations 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 logs for a specified container instance.
26
+ #
27
+ # Get the logs for a specified container instance in a specified resource group
28
+ # and container group.
29
+ #
30
+ # @param resource_group_name [String] The name of the resource group.
31
+ # @param container_group_name [String] The name of the container group.
32
+ # @param container_name [String] The name of the container instance.
33
+ # @param tail [Integer] The number of lines to show from the tail of the
34
+ # container instance log. If not provided, all available logs are shown up to
35
+ # 4mb.
36
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
37
+ # will be added to the HTTP request.
38
+ #
39
+ # @return [Logs] operation results.
40
+ #
41
+ def list_logs(resource_group_name, container_group_name, container_name, tail:nil, custom_headers:nil)
42
+ response = list_logs_async(resource_group_name, container_group_name, container_name, tail:tail, custom_headers:custom_headers).value!
43
+ response.body unless response.nil?
44
+ end
45
+
46
+ #
47
+ # Get the logs for a specified container instance.
48
+ #
49
+ # Get the logs for a specified container instance in a specified resource group
50
+ # and container group.
51
+ #
52
+ # @param resource_group_name [String] The name of the resource group.
53
+ # @param container_group_name [String] The name of the container group.
54
+ # @param container_name [String] The name of the container instance.
55
+ # @param tail [Integer] The number of lines to show from the tail of the
56
+ # container instance log. If not provided, all available logs are shown up to
57
+ # 4mb.
58
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
59
+ # will be added to the HTTP request.
60
+ #
61
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
62
+ #
63
+ def list_logs_with_http_info(resource_group_name, container_group_name, container_name, tail:nil, custom_headers:nil)
64
+ list_logs_async(resource_group_name, container_group_name, container_name, tail:tail, custom_headers:custom_headers).value!
65
+ end
66
+
67
+ #
68
+ # Get the logs for a specified container instance.
69
+ #
70
+ # Get the logs for a specified container instance in a specified resource group
71
+ # and container group.
72
+ #
73
+ # @param resource_group_name [String] The name of the resource group.
74
+ # @param container_group_name [String] The name of the container group.
75
+ # @param container_name [String] The name of the container instance.
76
+ # @param tail [Integer] The number of lines to show from the tail of the
77
+ # container instance log. If not provided, all available logs are shown up to
78
+ # 4mb.
79
+ # @param [Hash{String => String}] A hash of custom headers that will be added
80
+ # to the HTTP request.
81
+ #
82
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
83
+ #
84
+ def list_logs_async(resource_group_name, container_group_name, container_name, tail:nil, custom_headers:nil)
85
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
86
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
87
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
88
+ fail ArgumentError, 'container_group_name is nil' if container_group_name.nil?
89
+ fail ArgumentError, 'container_name is nil' if container_name.nil?
90
+
91
+
92
+ request_headers = {}
93
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
94
+
95
+ # Set Headers
96
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
97
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
98
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/logs'
99
+
100
+ request_url = @base_url || @client.base_url
101
+
102
+ options = {
103
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
104
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'containerGroupName' => container_group_name,'containerName' => container_name},
105
+ query_params: {'api-version' => @client.api_version,'tail' => tail},
106
+ headers: request_headers.merge(custom_headers || {}),
107
+ base_url: request_url
108
+ }
109
+ promise = @client.make_request_async(:get, path_template, options)
110
+
111
+ promise = promise.then do |result|
112
+ http_response = result.response
113
+ status_code = http_response.status
114
+ response_content = http_response.body
115
+ unless status_code == 200
116
+ error_model = JSON.load(response_content)
117
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
118
+ end
119
+
120
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
121
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
122
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
123
+ # Deserialize Response
124
+ if status_code == 200
125
+ begin
126
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
127
+ result_mapper = Azure::ContainerInstance::Mgmt::V2018_09_01::Models::Logs.mapper()
128
+ result.body = @client.deserialize(result_mapper, parsed_response)
129
+ rescue Exception => e
130
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
131
+ end
132
+ end
133
+
134
+ result
135
+ end
136
+
137
+ promise.execute
138
+ end
139
+
140
+ #
141
+ # Executes a command in a specific container instance.
142
+ #
143
+ # Executes a command for a specific container instance in a specified resource
144
+ # group and container group.
145
+ #
146
+ # @param resource_group_name [String] The name of the resource group.
147
+ # @param container_group_name [String] The name of the container group.
148
+ # @param container_name [String] The name of the container instance.
149
+ # @param container_exec_request [ContainerExecRequest] The request for the exec
150
+ # command.
151
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
152
+ # will be added to the HTTP request.
153
+ #
154
+ # @return [ContainerExecResponse] operation results.
155
+ #
156
+ def execute_command(resource_group_name, container_group_name, container_name, container_exec_request, custom_headers:nil)
157
+ response = execute_command_async(resource_group_name, container_group_name, container_name, container_exec_request, custom_headers:custom_headers).value!
158
+ response.body unless response.nil?
159
+ end
160
+
161
+ #
162
+ # Executes a command in a specific container instance.
163
+ #
164
+ # Executes a command for a specific container instance in a specified resource
165
+ # group and container group.
166
+ #
167
+ # @param resource_group_name [String] The name of the resource group.
168
+ # @param container_group_name [String] The name of the container group.
169
+ # @param container_name [String] The name of the container instance.
170
+ # @param container_exec_request [ContainerExecRequest] The request for the exec
171
+ # command.
172
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
173
+ # will be added to the HTTP request.
174
+ #
175
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
176
+ #
177
+ def execute_command_with_http_info(resource_group_name, container_group_name, container_name, container_exec_request, custom_headers:nil)
178
+ execute_command_async(resource_group_name, container_group_name, container_name, container_exec_request, custom_headers:custom_headers).value!
179
+ end
180
+
181
+ #
182
+ # Executes a command in a specific container instance.
183
+ #
184
+ # Executes a command for a specific container instance in a specified resource
185
+ # group and container group.
186
+ #
187
+ # @param resource_group_name [String] The name of the resource group.
188
+ # @param container_group_name [String] The name of the container group.
189
+ # @param container_name [String] The name of the container instance.
190
+ # @param container_exec_request [ContainerExecRequest] The request for the exec
191
+ # command.
192
+ # @param [Hash{String => String}] A hash of custom headers that will be added
193
+ # to the HTTP request.
194
+ #
195
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
196
+ #
197
+ def execute_command_async(resource_group_name, container_group_name, container_name, container_exec_request, custom_headers:nil)
198
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
199
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
200
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
201
+ fail ArgumentError, 'container_group_name is nil' if container_group_name.nil?
202
+ fail ArgumentError, 'container_name is nil' if container_name.nil?
203
+ fail ArgumentError, 'container_exec_request is nil' if container_exec_request.nil?
204
+
205
+
206
+ request_headers = {}
207
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
208
+
209
+ # Set Headers
210
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
211
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
212
+
213
+ # Serialize Request
214
+ request_mapper = Azure::ContainerInstance::Mgmt::V2018_09_01::Models::ContainerExecRequest.mapper()
215
+ request_content = @client.serialize(request_mapper, container_exec_request)
216
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
217
+
218
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/exec'
219
+
220
+ request_url = @base_url || @client.base_url
221
+
222
+ options = {
223
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
224
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'containerGroupName' => container_group_name,'containerName' => container_name},
225
+ query_params: {'api-version' => @client.api_version},
226
+ body: request_content,
227
+ headers: request_headers.merge(custom_headers || {}),
228
+ base_url: request_url
229
+ }
230
+ promise = @client.make_request_async(:post, path_template, options)
231
+
232
+ promise = promise.then do |result|
233
+ http_response = result.response
234
+ status_code = http_response.status
235
+ response_content = http_response.body
236
+ unless status_code == 200
237
+ error_model = JSON.load(response_content)
238
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
239
+ end
240
+
241
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
242
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
243
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
244
+ # Deserialize Response
245
+ if status_code == 200
246
+ begin
247
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
248
+ result_mapper = Azure::ContainerInstance::Mgmt::V2018_09_01::Models::ContainerExecResponse.mapper()
249
+ result.body = @client.deserialize(result_mapper, parsed_response)
250
+ rescue Exception => e
251
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
252
+ end
253
+ end
254
+
255
+ result
256
+ end
257
+
258
+ promise.execute
259
+ end
260
+
261
+ end
262
+ end
@@ -0,0 +1,84 @@
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_09_01
7
+ module Models
8
+ #
9
+ # The properties of the Azure File volume. Azure File shares are mounted as
10
+ # volumes.
11
+ #
12
+ class AzureFileVolume
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] The name of the Azure File share to be mounted as a
17
+ # volume.
18
+ attr_accessor :share_name
19
+
20
+ # @return [Boolean] The flag indicating whether the Azure File shared
21
+ # mounted as a volume is read-only.
22
+ attr_accessor :read_only
23
+
24
+ # @return [String] The name of the storage account that contains the
25
+ # Azure File share.
26
+ attr_accessor :storage_account_name
27
+
28
+ # @return [String] The storage account access key used to access the
29
+ # Azure File share.
30
+ attr_accessor :storage_account_key
31
+
32
+
33
+ #
34
+ # Mapper for AzureFileVolume class as Ruby Hash.
35
+ # This will be used for serialization/deserialization.
36
+ #
37
+ def self.mapper()
38
+ {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'AzureFileVolume',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'AzureFileVolume',
45
+ model_properties: {
46
+ share_name: {
47
+ client_side_validation: true,
48
+ required: true,
49
+ serialized_name: 'shareName',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ read_only: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ serialized_name: 'readOnly',
58
+ type: {
59
+ name: 'Boolean'
60
+ }
61
+ },
62
+ storage_account_name: {
63
+ client_side_validation: true,
64
+ required: true,
65
+ serialized_name: 'storageAccountName',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ },
70
+ storage_account_key: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ serialized_name: 'storageAccountKey',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+ end
82
+ end
83
+ end
84
+ end