azure_mgmt_batch 0.17.2 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (471) hide show
  1. checksums.yaml +5 -5
  2. data/LICENSE.txt +20 -20
  3. data/lib/2015-12-01/generated/azure_mgmt_batch.rb +0 -0
  4. data/lib/2015-12-01/generated/azure_mgmt_batch/application_operations.rb +12 -0
  5. data/lib/2015-12-01/generated/azure_mgmt_batch/application_package_operations.rb +8 -0
  6. data/lib/2015-12-01/generated/azure_mgmt_batch/batch_account_operations.rb +22 -0
  7. data/lib/2015-12-01/generated/azure_mgmt_batch/batch_management_client.rb +1 -1
  8. data/lib/2015-12-01/generated/azure_mgmt_batch/location.rb +2 -0
  9. data/lib/2015-12-01/generated/azure_mgmt_batch/models/account_key_type.rb +0 -0
  10. data/lib/2015-12-01/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +0 -0
  11. data/lib/2015-12-01/generated/azure_mgmt_batch/models/add_application_parameters.rb +0 -0
  12. data/lib/2015-12-01/generated/azure_mgmt_batch/models/application.rb +0 -0
  13. data/lib/2015-12-01/generated/azure_mgmt_batch/models/application_package.rb +0 -0
  14. data/lib/2015-12-01/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +0 -0
  15. data/lib/2015-12-01/generated/azure_mgmt_batch/models/auto_storage_properties.rb +0 -0
  16. data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_account.rb +0 -0
  17. data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +0 -0
  18. data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_account_keys.rb +0 -0
  19. data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_account_list_result.rb +0 -0
  20. data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +0 -0
  21. data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +0 -0
  22. data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_location_quota.rb +0 -0
  23. data/lib/2015-12-01/generated/azure_mgmt_batch/models/list_applications_result.rb +0 -0
  24. data/lib/2015-12-01/generated/azure_mgmt_batch/models/package_state.rb +0 -0
  25. data/lib/2015-12-01/generated/azure_mgmt_batch/models/provisioning_state.rb +0 -0
  26. data/lib/2015-12-01/generated/azure_mgmt_batch/models/resource.rb +0 -0
  27. data/lib/2015-12-01/generated/azure_mgmt_batch/models/update_application_parameters.rb +0 -0
  28. data/lib/2015-12-01/generated/azure_mgmt_batch/module_definition.rb +0 -0
  29. data/lib/2017-01-01/generated/azure_mgmt_batch.rb +0 -0
  30. data/lib/2017-01-01/generated/azure_mgmt_batch/application_operations.rb +12 -0
  31. data/lib/2017-01-01/generated/azure_mgmt_batch/application_package_operations.rb +8 -0
  32. data/lib/2017-01-01/generated/azure_mgmt_batch/batch_account_operations.rb +22 -0
  33. data/lib/2017-01-01/generated/azure_mgmt_batch/batch_management_client.rb +1 -1
  34. data/lib/2017-01-01/generated/azure_mgmt_batch/location.rb +2 -0
  35. data/lib/2017-01-01/generated/azure_mgmt_batch/models/account_key_type.rb +0 -0
  36. data/lib/2017-01-01/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +0 -0
  37. data/lib/2017-01-01/generated/azure_mgmt_batch/models/add_application_parameters.rb +0 -0
  38. data/lib/2017-01-01/generated/azure_mgmt_batch/models/application.rb +0 -0
  39. data/lib/2017-01-01/generated/azure_mgmt_batch/models/application_package.rb +0 -0
  40. data/lib/2017-01-01/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +0 -0
  41. data/lib/2017-01-01/generated/azure_mgmt_batch/models/auto_storage_properties.rb +0 -0
  42. data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account.rb +0 -0
  43. data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +0 -0
  44. data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_keys.rb +0 -0
  45. data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_list_result.rb +0 -0
  46. data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +0 -0
  47. data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +0 -0
  48. data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_location_quota.rb +0 -0
  49. data/lib/2017-01-01/generated/azure_mgmt_batch/models/key_vault_reference.rb +0 -0
  50. data/lib/2017-01-01/generated/azure_mgmt_batch/models/list_applications_result.rb +0 -0
  51. data/lib/2017-01-01/generated/azure_mgmt_batch/models/package_state.rb +0 -0
  52. data/lib/2017-01-01/generated/azure_mgmt_batch/models/pool_allocation_mode.rb +0 -0
  53. data/lib/2017-01-01/generated/azure_mgmt_batch/models/provisioning_state.rb +0 -0
  54. data/lib/2017-01-01/generated/azure_mgmt_batch/models/resource.rb +0 -0
  55. data/lib/2017-01-01/generated/azure_mgmt_batch/models/update_application_parameters.rb +0 -0
  56. data/lib/2017-01-01/generated/azure_mgmt_batch/module_definition.rb +0 -0
  57. data/lib/2017-05-01/generated/azure_mgmt_batch.rb +0 -0
  58. data/lib/2017-05-01/generated/azure_mgmt_batch/application_operations.rb +12 -0
  59. data/lib/2017-05-01/generated/azure_mgmt_batch/application_package_operations.rb +8 -0
  60. data/lib/2017-05-01/generated/azure_mgmt_batch/batch_account_operations.rb +22 -0
  61. data/lib/2017-05-01/generated/azure_mgmt_batch/batch_management_client.rb +1 -1
  62. data/lib/2017-05-01/generated/azure_mgmt_batch/location.rb +4 -0
  63. data/lib/2017-05-01/generated/azure_mgmt_batch/models/account_key_type.rb +0 -0
  64. data/lib/2017-05-01/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +0 -0
  65. data/lib/2017-05-01/generated/azure_mgmt_batch/models/application.rb +0 -0
  66. data/lib/2017-05-01/generated/azure_mgmt_batch/models/application_create_parameters.rb +0 -0
  67. data/lib/2017-05-01/generated/azure_mgmt_batch/models/application_package.rb +0 -0
  68. data/lib/2017-05-01/generated/azure_mgmt_batch/models/application_update_parameters.rb +0 -0
  69. data/lib/2017-05-01/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +0 -0
  70. data/lib/2017-05-01/generated/azure_mgmt_batch/models/auto_storage_properties.rb +0 -0
  71. data/lib/2017-05-01/generated/azure_mgmt_batch/models/batch_account.rb +0 -0
  72. data/lib/2017-05-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +0 -0
  73. data/lib/2017-05-01/generated/azure_mgmt_batch/models/batch_account_keys.rb +0 -0
  74. data/lib/2017-05-01/generated/azure_mgmt_batch/models/batch_account_list_result.rb +0 -0
  75. data/lib/2017-05-01/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +0 -0
  76. data/lib/2017-05-01/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +0 -0
  77. data/lib/2017-05-01/generated/azure_mgmt_batch/models/batch_location_quota.rb +0 -0
  78. data/lib/2017-05-01/generated/azure_mgmt_batch/models/check_name_availability_parameters.rb +0 -0
  79. data/lib/2017-05-01/generated/azure_mgmt_batch/models/check_name_availability_result.rb +0 -0
  80. data/lib/2017-05-01/generated/azure_mgmt_batch/models/key_vault_reference.rb +0 -0
  81. data/lib/2017-05-01/generated/azure_mgmt_batch/models/list_applications_result.rb +0 -0
  82. data/lib/2017-05-01/generated/azure_mgmt_batch/models/name_availability_reason.rb +0 -0
  83. data/lib/2017-05-01/generated/azure_mgmt_batch/models/operation.rb +0 -0
  84. data/lib/2017-05-01/generated/azure_mgmt_batch/models/operation_display.rb +0 -0
  85. data/lib/2017-05-01/generated/azure_mgmt_batch/models/operation_list_result.rb +0 -0
  86. data/lib/2017-05-01/generated/azure_mgmt_batch/models/package_state.rb +0 -0
  87. data/lib/2017-05-01/generated/azure_mgmt_batch/models/pool_allocation_mode.rb +0 -0
  88. data/lib/2017-05-01/generated/azure_mgmt_batch/models/provisioning_state.rb +0 -0
  89. data/lib/2017-05-01/generated/azure_mgmt_batch/models/resource.rb +0 -0
  90. data/lib/2017-05-01/generated/azure_mgmt_batch/module_definition.rb +0 -0
  91. data/lib/2017-05-01/generated/azure_mgmt_batch/operations.rb +4 -0
  92. data/lib/2017-09-01/generated/azure_mgmt_batch.rb +0 -0
  93. data/lib/2017-09-01/generated/azure_mgmt_batch/application_operations.rb +12 -0
  94. data/lib/2017-09-01/generated/azure_mgmt_batch/application_package_operations.rb +8 -0
  95. data/lib/2017-09-01/generated/azure_mgmt_batch/batch_account_operations.rb +22 -0
  96. data/lib/2017-09-01/generated/azure_mgmt_batch/batch_management_client.rb +1 -1
  97. data/lib/2017-09-01/generated/azure_mgmt_batch/certificate_operations.rb +14 -0
  98. data/lib/2017-09-01/generated/azure_mgmt_batch/location.rb +4 -0
  99. data/lib/2017-09-01/generated/azure_mgmt_batch/models/account_key_type.rb +0 -0
  100. data/lib/2017-09-01/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +0 -0
  101. data/lib/2017-09-01/generated/azure_mgmt_batch/models/allocation_state.rb +0 -0
  102. data/lib/2017-09-01/generated/azure_mgmt_batch/models/application.rb +0 -0
  103. data/lib/2017-09-01/generated/azure_mgmt_batch/models/application_create_parameters.rb +0 -0
  104. data/lib/2017-09-01/generated/azure_mgmt_batch/models/application_package.rb +0 -0
  105. data/lib/2017-09-01/generated/azure_mgmt_batch/models/application_package_reference.rb +0 -0
  106. data/lib/2017-09-01/generated/azure_mgmt_batch/models/application_update_parameters.rb +0 -0
  107. data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_scale_run.rb +0 -0
  108. data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_scale_run_error.rb +0 -0
  109. data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_scale_settings.rb +0 -0
  110. data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +0 -0
  111. data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_storage_properties.rb +0 -0
  112. data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_user_scope.rb +0 -0
  113. data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_user_specification.rb +0 -0
  114. data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account.rb +0 -0
  115. data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +0 -0
  116. data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_keys.rb +0 -0
  117. data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_list_result.rb +0 -0
  118. data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +0 -0
  119. data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +0 -0
  120. data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_location_quota.rb +0 -0
  121. data/lib/2017-09-01/generated/azure_mgmt_batch/models/caching_type.rb +0 -0
  122. data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate.rb +0 -0
  123. data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_base_properties.rb +0 -0
  124. data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_create_or_update_parameters.rb +0 -0
  125. data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_format.rb +0 -0
  126. data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_provisioning_state.rb +0 -0
  127. data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_reference.rb +0 -0
  128. data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_store_location.rb +0 -0
  129. data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_visibility.rb +0 -0
  130. data/lib/2017-09-01/generated/azure_mgmt_batch/models/check_name_availability_parameters.rb +0 -0
  131. data/lib/2017-09-01/generated/azure_mgmt_batch/models/check_name_availability_result.rb +0 -0
  132. data/lib/2017-09-01/generated/azure_mgmt_batch/models/cloud_service_configuration.rb +0 -0
  133. data/lib/2017-09-01/generated/azure_mgmt_batch/models/compute_node_deallocation_option.rb +0 -0
  134. data/lib/2017-09-01/generated/azure_mgmt_batch/models/compute_node_fill_type.rb +0 -0
  135. data/lib/2017-09-01/generated/azure_mgmt_batch/models/data_disk.rb +0 -0
  136. data/lib/2017-09-01/generated/azure_mgmt_batch/models/delete_certificate_error.rb +0 -0
  137. data/lib/2017-09-01/generated/azure_mgmt_batch/models/deployment_configuration.rb +0 -0
  138. data/lib/2017-09-01/generated/azure_mgmt_batch/models/elevation_level.rb +0 -0
  139. data/lib/2017-09-01/generated/azure_mgmt_batch/models/environment_setting.rb +0 -0
  140. data/lib/2017-09-01/generated/azure_mgmt_batch/models/fixed_scale_settings.rb +0 -0
  141. data/lib/2017-09-01/generated/azure_mgmt_batch/models/image_reference.rb +0 -0
  142. data/lib/2017-09-01/generated/azure_mgmt_batch/models/inbound_endpoint_protocol.rb +0 -0
  143. data/lib/2017-09-01/generated/azure_mgmt_batch/models/inbound_nat_pool.rb +0 -0
  144. data/lib/2017-09-01/generated/azure_mgmt_batch/models/inter_node_communication_state.rb +0 -0
  145. data/lib/2017-09-01/generated/azure_mgmt_batch/models/key_vault_reference.rb +0 -0
  146. data/lib/2017-09-01/generated/azure_mgmt_batch/models/linux_user_configuration.rb +0 -0
  147. data/lib/2017-09-01/generated/azure_mgmt_batch/models/list_applications_result.rb +0 -0
  148. data/lib/2017-09-01/generated/azure_mgmt_batch/models/list_certificates_result.rb +0 -0
  149. data/lib/2017-09-01/generated/azure_mgmt_batch/models/list_pools_result.rb +0 -0
  150. data/lib/2017-09-01/generated/azure_mgmt_batch/models/metadata_item.rb +0 -0
  151. data/lib/2017-09-01/generated/azure_mgmt_batch/models/name_availability_reason.rb +0 -0
  152. data/lib/2017-09-01/generated/azure_mgmt_batch/models/network_configuration.rb +0 -0
  153. data/lib/2017-09-01/generated/azure_mgmt_batch/models/network_security_group_rule.rb +0 -0
  154. data/lib/2017-09-01/generated/azure_mgmt_batch/models/network_security_group_rule_access.rb +0 -0
  155. data/lib/2017-09-01/generated/azure_mgmt_batch/models/operation.rb +0 -0
  156. data/lib/2017-09-01/generated/azure_mgmt_batch/models/operation_display.rb +0 -0
  157. data/lib/2017-09-01/generated/azure_mgmt_batch/models/operation_list_result.rb +0 -0
  158. data/lib/2017-09-01/generated/azure_mgmt_batch/models/osdisk.rb +0 -0
  159. data/lib/2017-09-01/generated/azure_mgmt_batch/models/package_state.rb +0 -0
  160. data/lib/2017-09-01/generated/azure_mgmt_batch/models/pool.rb +0 -0
  161. data/lib/2017-09-01/generated/azure_mgmt_batch/models/pool_allocation_mode.rb +0 -0
  162. data/lib/2017-09-01/generated/azure_mgmt_batch/models/pool_endpoint_configuration.rb +0 -0
  163. data/lib/2017-09-01/generated/azure_mgmt_batch/models/pool_provisioning_state.rb +0 -0
  164. data/lib/2017-09-01/generated/azure_mgmt_batch/models/provisioning_state.rb +0 -0
  165. data/lib/2017-09-01/generated/azure_mgmt_batch/models/proxy_resource.rb +0 -0
  166. data/lib/2017-09-01/generated/azure_mgmt_batch/models/resize_error.rb +0 -0
  167. data/lib/2017-09-01/generated/azure_mgmt_batch/models/resize_operation_status.rb +0 -0
  168. data/lib/2017-09-01/generated/azure_mgmt_batch/models/resource.rb +0 -0
  169. data/lib/2017-09-01/generated/azure_mgmt_batch/models/resource_file.rb +0 -0
  170. data/lib/2017-09-01/generated/azure_mgmt_batch/models/scale_settings.rb +0 -0
  171. data/lib/2017-09-01/generated/azure_mgmt_batch/models/start_task.rb +0 -0
  172. data/lib/2017-09-01/generated/azure_mgmt_batch/models/storage_account_type.rb +0 -0
  173. data/lib/2017-09-01/generated/azure_mgmt_batch/models/task_scheduling_policy.rb +0 -0
  174. data/lib/2017-09-01/generated/azure_mgmt_batch/models/user_account.rb +0 -0
  175. data/lib/2017-09-01/generated/azure_mgmt_batch/models/user_identity.rb +0 -0
  176. data/lib/2017-09-01/generated/azure_mgmt_batch/models/virtual_machine_configuration.rb +0 -0
  177. data/lib/2017-09-01/generated/azure_mgmt_batch/models/windows_configuration.rb +0 -0
  178. data/lib/2017-09-01/generated/azure_mgmt_batch/module_definition.rb +0 -0
  179. data/lib/2017-09-01/generated/azure_mgmt_batch/operations.rb +4 -0
  180. data/lib/2017-09-01/generated/azure_mgmt_batch/pool_operations.rb +16 -0
  181. data/lib/2018-12-01/generated/azure_mgmt_batch.rb +116 -0
  182. data/lib/2018-12-01/generated/azure_mgmt_batch/application_operations.rb +696 -0
  183. data/lib/2018-12-01/generated/azure_mgmt_batch/application_package_operations.rb +737 -0
  184. data/lib/2018-12-01/generated/azure_mgmt_batch/batch_account_operations.rb +1295 -0
  185. data/lib/2018-12-01/generated/azure_mgmt_batch/batch_management_client.rb +156 -0
  186. data/lib/2018-12-01/generated/azure_mgmt_batch/certificate_operations.rb +1023 -0
  187. data/lib/2018-12-01/generated/azure_mgmt_batch/location.rb +225 -0
  188. data/lib/2018-12-01/generated/azure_mgmt_batch/models/account_key_type.rb +16 -0
  189. data/lib/2018-12-01/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +46 -0
  190. data/lib/2018-12-01/generated/azure_mgmt_batch/models/allocation_state.rb +17 -0
  191. data/lib/2018-12-01/generated/azure_mgmt_batch/models/application.rb +107 -0
  192. data/lib/2018-12-01/generated/azure_mgmt_batch/models/application_package.rb +137 -0
  193. data/lib/2018-12-01/generated/azure_mgmt_batch/models/application_package_reference.rb +64 -0
  194. data/lib/2018-12-01/generated/azure_mgmt_batch/models/auto_scale_run.rb +74 -0
  195. data/lib/2018-12-01/generated/azure_mgmt_batch/models/auto_scale_run_error.rb +80 -0
  196. data/lib/2018-12-01/generated/azure_mgmt_batch/models/auto_scale_settings.rb +61 -0
  197. data/lib/2018-12-01/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +47 -0
  198. data/lib/2018-12-01/generated/azure_mgmt_batch/models/auto_storage_properties.rb +56 -0
  199. data/lib/2018-12-01/generated/azure_mgmt_batch/models/auto_user_scope.rb +16 -0
  200. data/lib/2018-12-01/generated/azure_mgmt_batch/models/auto_user_specification.rb +66 -0
  201. data/lib/2018-12-01/generated/azure_mgmt_batch/models/batch_account.rb +208 -0
  202. data/lib/2018-12-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +110 -0
  203. data/lib/2018-12-01/generated/azure_mgmt_batch/models/batch_account_keys.rb +71 -0
  204. data/lib/2018-12-01/generated/azure_mgmt_batch/models/batch_account_list_result.rb +99 -0
  205. data/lib/2018-12-01/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +48 -0
  206. data/lib/2018-12-01/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +68 -0
  207. data/lib/2018-12-01/generated/azure_mgmt_batch/models/batch_location_quota.rb +48 -0
  208. data/lib/2018-12-01/generated/azure_mgmt_batch/models/caching_type.rb +17 -0
  209. data/lib/2018-12-01/generated/azure_mgmt_batch/models/certificate.rb +192 -0
  210. data/lib/2018-12-01/generated/azure_mgmt_batch/models/certificate_base_properties.rb +75 -0
  211. data/lib/2018-12-01/generated/azure_mgmt_batch/models/certificate_create_or_update_parameters.rb +135 -0
  212. data/lib/2018-12-01/generated/azure_mgmt_batch/models/certificate_format.rb +16 -0
  213. data/lib/2018-12-01/generated/azure_mgmt_batch/models/certificate_provisioning_state.rb +17 -0
  214. data/lib/2018-12-01/generated/azure_mgmt_batch/models/certificate_reference.rb +112 -0
  215. data/lib/2018-12-01/generated/azure_mgmt_batch/models/certificate_store_location.rb +16 -0
  216. data/lib/2018-12-01/generated/azure_mgmt_batch/models/certificate_visibility.rb +17 -0
  217. data/lib/2018-12-01/generated/azure_mgmt_batch/models/check_name_availability_parameters.rb +61 -0
  218. data/lib/2018-12-01/generated/azure_mgmt_batch/models/check_name_availability_result.rb +78 -0
  219. data/lib/2018-12-01/generated/azure_mgmt_batch/models/cloud_service_configuration.rb +67 -0
  220. data/lib/2018-12-01/generated/azure_mgmt_batch/models/compute_node_deallocation_option.rb +18 -0
  221. data/lib/2018-12-01/generated/azure_mgmt_batch/models/compute_node_fill_type.rb +16 -0
  222. data/lib/2018-12-01/generated/azure_mgmt_batch/models/container_configuration.rb +95 -0
  223. data/lib/2018-12-01/generated/azure_mgmt_batch/models/container_registry.rb +70 -0
  224. data/lib/2018-12-01/generated/azure_mgmt_batch/models/data_disk.rb +101 -0
  225. data/lib/2018-12-01/generated/azure_mgmt_batch/models/delete_certificate_error.rb +92 -0
  226. data/lib/2018-12-01/generated/azure_mgmt_batch/models/deployment_configuration.rb +66 -0
  227. data/lib/2018-12-01/generated/azure_mgmt_batch/models/elevation_level.rb +16 -0
  228. data/lib/2018-12-01/generated/azure_mgmt_batch/models/environment_setting.rb +58 -0
  229. data/lib/2018-12-01/generated/azure_mgmt_batch/models/fixed_scale_settings.rb +93 -0
  230. data/lib/2018-12-01/generated/azure_mgmt_batch/models/image_reference.rb +108 -0
  231. data/lib/2018-12-01/generated/azure_mgmt_batch/models/inbound_endpoint_protocol.rb +16 -0
  232. data/lib/2018-12-01/generated/azure_mgmt_batch/models/inbound_nat_pool.rb +141 -0
  233. data/lib/2018-12-01/generated/azure_mgmt_batch/models/inter_node_communication_state.rb +16 -0
  234. data/lib/2018-12-01/generated/azure_mgmt_batch/models/key_vault_reference.rb +59 -0
  235. data/lib/2018-12-01/generated/azure_mgmt_batch/models/linux_user_configuration.rb +81 -0
  236. data/lib/2018-12-01/generated/azure_mgmt_batch/models/list_application_packages_result.rb +98 -0
  237. data/lib/2018-12-01/generated/azure_mgmt_batch/models/list_applications_result.rb +98 -0
  238. data/lib/2018-12-01/generated/azure_mgmt_batch/models/list_certificates_result.rb +98 -0
  239. data/lib/2018-12-01/generated/azure_mgmt_batch/models/list_pools_result.rb +98 -0
  240. data/lib/2018-12-01/generated/azure_mgmt_batch/models/login_mode.rb +16 -0
  241. data/lib/2018-12-01/generated/azure_mgmt_batch/models/metadata_item.rb +60 -0
  242. data/lib/2018-12-01/generated/azure_mgmt_batch/models/name_availability_reason.rb +16 -0
  243. data/lib/2018-12-01/generated/azure_mgmt_batch/models/network_configuration.rb +86 -0
  244. data/lib/2018-12-01/generated/azure_mgmt_batch/models/network_security_group_rule.rb +82 -0
  245. data/lib/2018-12-01/generated/azure_mgmt_batch/models/network_security_group_rule_access.rb +16 -0
  246. data/lib/2018-12-01/generated/azure_mgmt_batch/models/operation.rb +82 -0
  247. data/lib/2018-12-01/generated/azure_mgmt_batch/models/operation_display.rb +81 -0
  248. data/lib/2018-12-01/generated/azure_mgmt_batch/models/operation_list_result.rb +98 -0
  249. data/lib/2018-12-01/generated/azure_mgmt_batch/models/package_state.rb +16 -0
  250. data/lib/2018-12-01/generated/azure_mgmt_batch/models/pool.rb +459 -0
  251. data/lib/2018-12-01/generated/azure_mgmt_batch/models/pool_allocation_mode.rb +16 -0
  252. data/lib/2018-12-01/generated/azure_mgmt_batch/models/pool_endpoint_configuration.rb +60 -0
  253. data/lib/2018-12-01/generated/azure_mgmt_batch/models/pool_provisioning_state.rb +16 -0
  254. data/lib/2018-12-01/generated/azure_mgmt_batch/models/provisioning_state.rb +20 -0
  255. data/lib/2018-12-01/generated/azure_mgmt_batch/models/proxy_resource.rb +84 -0
  256. data/lib/2018-12-01/generated/azure_mgmt_batch/models/resize_error.rb +80 -0
  257. data/lib/2018-12-01/generated/azure_mgmt_batch/models/resize_operation_status.rb +127 -0
  258. data/lib/2018-12-01/generated/azure_mgmt_batch/models/resource.rb +112 -0
  259. data/lib/2018-12-01/generated/azure_mgmt_batch/models/resource_file.rb +139 -0
  260. data/lib/2018-12-01/generated/azure_mgmt_batch/models/scale_settings.rb +69 -0
  261. data/lib/2018-12-01/generated/azure_mgmt_batch/models/start_task.rb +168 -0
  262. data/lib/2018-12-01/generated/azure_mgmt_batch/models/storage_account_type.rb +16 -0
  263. data/lib/2018-12-01/generated/azure_mgmt_batch/models/task_container_settings.rb +77 -0
  264. data/lib/2018-12-01/generated/azure_mgmt_batch/models/task_scheduling_policy.rb +49 -0
  265. data/lib/2018-12-01/generated/azure_mgmt_batch/models/user_account.rb +104 -0
  266. data/lib/2018-12-01/generated/azure_mgmt_batch/models/user_identity.rb +64 -0
  267. data/lib/2018-12-01/generated/azure_mgmt_batch/models/virtual_machine_configuration.rb +141 -0
  268. data/lib/2018-12-01/generated/azure_mgmt_batch/models/windows_configuration.rb +48 -0
  269. data/lib/2018-12-01/generated/azure_mgmt_batch/models/windows_user_configuration.rb +51 -0
  270. data/lib/2018-12-01/generated/azure_mgmt_batch/module_definition.rb +9 -0
  271. data/lib/2018-12-01/generated/azure_mgmt_batch/operations.rb +219 -0
  272. data/lib/2018-12-01/generated/azure_mgmt_batch/pool_operations.rb +1148 -0
  273. data/lib/2019-04-01/generated/azure_mgmt_batch.rb +117 -0
  274. data/lib/2019-04-01/generated/azure_mgmt_batch/application_operations.rb +696 -0
  275. data/lib/2019-04-01/generated/azure_mgmt_batch/application_package_operations.rb +737 -0
  276. data/lib/2019-04-01/generated/azure_mgmt_batch/batch_account_operations.rb +1295 -0
  277. data/lib/2019-04-01/generated/azure_mgmt_batch/batch_management_client.rb +156 -0
  278. data/lib/2019-04-01/generated/azure_mgmt_batch/certificate_operations.rb +1023 -0
  279. data/lib/2019-04-01/generated/azure_mgmt_batch/location.rb +225 -0
  280. data/lib/2019-04-01/generated/azure_mgmt_batch/models/account_key_type.rb +16 -0
  281. data/lib/2019-04-01/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +46 -0
  282. data/lib/2019-04-01/generated/azure_mgmt_batch/models/allocation_state.rb +17 -0
  283. data/lib/2019-04-01/generated/azure_mgmt_batch/models/application.rb +107 -0
  284. data/lib/2019-04-01/generated/azure_mgmt_batch/models/application_package.rb +137 -0
  285. data/lib/2019-04-01/generated/azure_mgmt_batch/models/application_package_reference.rb +64 -0
  286. data/lib/2019-04-01/generated/azure_mgmt_batch/models/auto_scale_run.rb +74 -0
  287. data/lib/2019-04-01/generated/azure_mgmt_batch/models/auto_scale_run_error.rb +80 -0
  288. data/lib/2019-04-01/generated/azure_mgmt_batch/models/auto_scale_settings.rb +61 -0
  289. data/lib/2019-04-01/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +47 -0
  290. data/lib/2019-04-01/generated/azure_mgmt_batch/models/auto_storage_properties.rb +56 -0
  291. data/lib/2019-04-01/generated/azure_mgmt_batch/models/auto_user_scope.rb +16 -0
  292. data/lib/2019-04-01/generated/azure_mgmt_batch/models/auto_user_specification.rb +66 -0
  293. data/lib/2019-04-01/generated/azure_mgmt_batch/models/batch_account.rb +257 -0
  294. data/lib/2019-04-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +110 -0
  295. data/lib/2019-04-01/generated/azure_mgmt_batch/models/batch_account_keys.rb +71 -0
  296. data/lib/2019-04-01/generated/azure_mgmt_batch/models/batch_account_list_result.rb +99 -0
  297. data/lib/2019-04-01/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +48 -0
  298. data/lib/2019-04-01/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +68 -0
  299. data/lib/2019-04-01/generated/azure_mgmt_batch/models/batch_location_quota.rb +48 -0
  300. data/lib/2019-04-01/generated/azure_mgmt_batch/models/caching_type.rb +17 -0
  301. data/lib/2019-04-01/generated/azure_mgmt_batch/models/certificate.rb +192 -0
  302. data/lib/2019-04-01/generated/azure_mgmt_batch/models/certificate_base_properties.rb +75 -0
  303. data/lib/2019-04-01/generated/azure_mgmt_batch/models/certificate_create_or_update_parameters.rb +135 -0
  304. data/lib/2019-04-01/generated/azure_mgmt_batch/models/certificate_format.rb +16 -0
  305. data/lib/2019-04-01/generated/azure_mgmt_batch/models/certificate_provisioning_state.rb +17 -0
  306. data/lib/2019-04-01/generated/azure_mgmt_batch/models/certificate_reference.rb +112 -0
  307. data/lib/2019-04-01/generated/azure_mgmt_batch/models/certificate_store_location.rb +16 -0
  308. data/lib/2019-04-01/generated/azure_mgmt_batch/models/certificate_visibility.rb +17 -0
  309. data/lib/2019-04-01/generated/azure_mgmt_batch/models/check_name_availability_parameters.rb +61 -0
  310. data/lib/2019-04-01/generated/azure_mgmt_batch/models/check_name_availability_result.rb +78 -0
  311. data/lib/2019-04-01/generated/azure_mgmt_batch/models/cloud_service_configuration.rb +68 -0
  312. data/lib/2019-04-01/generated/azure_mgmt_batch/models/compute_node_deallocation_option.rb +18 -0
  313. data/lib/2019-04-01/generated/azure_mgmt_batch/models/compute_node_fill_type.rb +16 -0
  314. data/lib/2019-04-01/generated/azure_mgmt_batch/models/container_configuration.rb +95 -0
  315. data/lib/2019-04-01/generated/azure_mgmt_batch/models/container_registry.rb +70 -0
  316. data/lib/2019-04-01/generated/azure_mgmt_batch/models/data_disk.rb +101 -0
  317. data/lib/2019-04-01/generated/azure_mgmt_batch/models/delete_certificate_error.rb +92 -0
  318. data/lib/2019-04-01/generated/azure_mgmt_batch/models/deployment_configuration.rb +66 -0
  319. data/lib/2019-04-01/generated/azure_mgmt_batch/models/elevation_level.rb +16 -0
  320. data/lib/2019-04-01/generated/azure_mgmt_batch/models/environment_setting.rb +58 -0
  321. data/lib/2019-04-01/generated/azure_mgmt_batch/models/fixed_scale_settings.rb +93 -0
  322. data/lib/2019-04-01/generated/azure_mgmt_batch/models/image_reference.rb +108 -0
  323. data/lib/2019-04-01/generated/azure_mgmt_batch/models/inbound_endpoint_protocol.rb +16 -0
  324. data/lib/2019-04-01/generated/azure_mgmt_batch/models/inbound_nat_pool.rb +141 -0
  325. data/lib/2019-04-01/generated/azure_mgmt_batch/models/inter_node_communication_state.rb +16 -0
  326. data/lib/2019-04-01/generated/azure_mgmt_batch/models/key_vault_reference.rb +59 -0
  327. data/lib/2019-04-01/generated/azure_mgmt_batch/models/linux_user_configuration.rb +81 -0
  328. data/lib/2019-04-01/generated/azure_mgmt_batch/models/list_application_packages_result.rb +98 -0
  329. data/lib/2019-04-01/generated/azure_mgmt_batch/models/list_applications_result.rb +98 -0
  330. data/lib/2019-04-01/generated/azure_mgmt_batch/models/list_certificates_result.rb +98 -0
  331. data/lib/2019-04-01/generated/azure_mgmt_batch/models/list_pools_result.rb +98 -0
  332. data/lib/2019-04-01/generated/azure_mgmt_batch/models/login_mode.rb +16 -0
  333. data/lib/2019-04-01/generated/azure_mgmt_batch/models/metadata_item.rb +60 -0
  334. data/lib/2019-04-01/generated/azure_mgmt_batch/models/name_availability_reason.rb +16 -0
  335. data/lib/2019-04-01/generated/azure_mgmt_batch/models/network_configuration.rb +86 -0
  336. data/lib/2019-04-01/generated/azure_mgmt_batch/models/network_security_group_rule.rb +82 -0
  337. data/lib/2019-04-01/generated/azure_mgmt_batch/models/network_security_group_rule_access.rb +16 -0
  338. data/lib/2019-04-01/generated/azure_mgmt_batch/models/operation.rb +82 -0
  339. data/lib/2019-04-01/generated/azure_mgmt_batch/models/operation_display.rb +81 -0
  340. data/lib/2019-04-01/generated/azure_mgmt_batch/models/operation_list_result.rb +98 -0
  341. data/lib/2019-04-01/generated/azure_mgmt_batch/models/package_state.rb +16 -0
  342. data/lib/2019-04-01/generated/azure_mgmt_batch/models/pool.rb +462 -0
  343. data/lib/2019-04-01/generated/azure_mgmt_batch/models/pool_allocation_mode.rb +16 -0
  344. data/lib/2019-04-01/generated/azure_mgmt_batch/models/pool_endpoint_configuration.rb +60 -0
  345. data/lib/2019-04-01/generated/azure_mgmt_batch/models/pool_provisioning_state.rb +16 -0
  346. data/lib/2019-04-01/generated/azure_mgmt_batch/models/provisioning_state.rb +20 -0
  347. data/lib/2019-04-01/generated/azure_mgmt_batch/models/proxy_resource.rb +84 -0
  348. data/lib/2019-04-01/generated/azure_mgmt_batch/models/resize_error.rb +80 -0
  349. data/lib/2019-04-01/generated/azure_mgmt_batch/models/resize_operation_status.rb +127 -0
  350. data/lib/2019-04-01/generated/azure_mgmt_batch/models/resource.rb +112 -0
  351. data/lib/2019-04-01/generated/azure_mgmt_batch/models/resource_file.rb +139 -0
  352. data/lib/2019-04-01/generated/azure_mgmt_batch/models/scale_settings.rb +69 -0
  353. data/lib/2019-04-01/generated/azure_mgmt_batch/models/start_task.rb +174 -0
  354. data/lib/2019-04-01/generated/azure_mgmt_batch/models/storage_account_type.rb +16 -0
  355. data/lib/2019-04-01/generated/azure_mgmt_batch/models/task_container_settings.rb +77 -0
  356. data/lib/2019-04-01/generated/azure_mgmt_batch/models/task_scheduling_policy.rb +49 -0
  357. data/lib/2019-04-01/generated/azure_mgmt_batch/models/user_account.rb +104 -0
  358. data/lib/2019-04-01/generated/azure_mgmt_batch/models/user_identity.rb +64 -0
  359. data/lib/2019-04-01/generated/azure_mgmt_batch/models/virtual_machine_configuration.rb +141 -0
  360. data/lib/2019-04-01/generated/azure_mgmt_batch/models/virtual_machine_family_core_quota.rb +60 -0
  361. data/lib/2019-04-01/generated/azure_mgmt_batch/models/windows_configuration.rb +48 -0
  362. data/lib/2019-04-01/generated/azure_mgmt_batch/models/windows_user_configuration.rb +51 -0
  363. data/lib/2019-04-01/generated/azure_mgmt_batch/module_definition.rb +9 -0
  364. data/lib/2019-04-01/generated/azure_mgmt_batch/operations.rb +219 -0
  365. data/lib/2019-04-01/generated/azure_mgmt_batch/pool_operations.rb +1148 -0
  366. data/lib/2019-08-01/generated/azure_mgmt_batch.rb +123 -0
  367. data/lib/2019-08-01/generated/azure_mgmt_batch/application_operations.rb +696 -0
  368. data/lib/2019-08-01/generated/azure_mgmt_batch/application_package_operations.rb +749 -0
  369. data/lib/2019-08-01/generated/azure_mgmt_batch/batch_account_operations.rb +1295 -0
  370. data/lib/2019-08-01/generated/azure_mgmt_batch/batch_management_client.rb +156 -0
  371. data/lib/2019-08-01/generated/azure_mgmt_batch/certificate_operations.rb +1023 -0
  372. data/lib/2019-08-01/generated/azure_mgmt_batch/location.rb +225 -0
  373. data/lib/2019-08-01/generated/azure_mgmt_batch/models/account_key_type.rb +16 -0
  374. data/lib/2019-08-01/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +46 -0
  375. data/lib/2019-08-01/generated/azure_mgmt_batch/models/allocation_state.rb +17 -0
  376. data/lib/2019-08-01/generated/azure_mgmt_batch/models/application.rb +107 -0
  377. data/lib/2019-08-01/generated/azure_mgmt_batch/models/application_package.rb +137 -0
  378. data/lib/2019-08-01/generated/azure_mgmt_batch/models/application_package_reference.rb +64 -0
  379. data/lib/2019-08-01/generated/azure_mgmt_batch/models/auto_scale_run.rb +74 -0
  380. data/lib/2019-08-01/generated/azure_mgmt_batch/models/auto_scale_run_error.rb +80 -0
  381. data/lib/2019-08-01/generated/azure_mgmt_batch/models/auto_scale_settings.rb +61 -0
  382. data/lib/2019-08-01/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +47 -0
  383. data/lib/2019-08-01/generated/azure_mgmt_batch/models/auto_storage_properties.rb +56 -0
  384. data/lib/2019-08-01/generated/azure_mgmt_batch/models/auto_user_scope.rb +16 -0
  385. data/lib/2019-08-01/generated/azure_mgmt_batch/models/auto_user_specification.rb +68 -0
  386. data/lib/2019-08-01/generated/azure_mgmt_batch/models/azure_blob_file_system_configuration.rb +109 -0
  387. data/lib/2019-08-01/generated/azure_mgmt_batch/models/azure_file_share_configuration.rb +97 -0
  388. data/lib/2019-08-01/generated/azure_mgmt_batch/models/batch_account.rb +257 -0
  389. data/lib/2019-08-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +110 -0
  390. data/lib/2019-08-01/generated/azure_mgmt_batch/models/batch_account_keys.rb +71 -0
  391. data/lib/2019-08-01/generated/azure_mgmt_batch/models/batch_account_list_result.rb +99 -0
  392. data/lib/2019-08-01/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +48 -0
  393. data/lib/2019-08-01/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +68 -0
  394. data/lib/2019-08-01/generated/azure_mgmt_batch/models/batch_location_quota.rb +48 -0
  395. data/lib/2019-08-01/generated/azure_mgmt_batch/models/caching_type.rb +17 -0
  396. data/lib/2019-08-01/generated/azure_mgmt_batch/models/certificate.rb +192 -0
  397. data/lib/2019-08-01/generated/azure_mgmt_batch/models/certificate_base_properties.rb +75 -0
  398. data/lib/2019-08-01/generated/azure_mgmt_batch/models/certificate_create_or_update_parameters.rb +135 -0
  399. data/lib/2019-08-01/generated/azure_mgmt_batch/models/certificate_format.rb +16 -0
  400. data/lib/2019-08-01/generated/azure_mgmt_batch/models/certificate_provisioning_state.rb +17 -0
  401. data/lib/2019-08-01/generated/azure_mgmt_batch/models/certificate_reference.rb +112 -0
  402. data/lib/2019-08-01/generated/azure_mgmt_batch/models/certificate_store_location.rb +16 -0
  403. data/lib/2019-08-01/generated/azure_mgmt_batch/models/certificate_visibility.rb +17 -0
  404. data/lib/2019-08-01/generated/azure_mgmt_batch/models/check_name_availability_parameters.rb +61 -0
  405. data/lib/2019-08-01/generated/azure_mgmt_batch/models/check_name_availability_result.rb +78 -0
  406. data/lib/2019-08-01/generated/azure_mgmt_batch/models/cifsmount_configuration.rb +98 -0
  407. data/lib/2019-08-01/generated/azure_mgmt_batch/models/cloud_service_configuration.rb +68 -0
  408. data/lib/2019-08-01/generated/azure_mgmt_batch/models/compute_node_deallocation_option.rb +18 -0
  409. data/lib/2019-08-01/generated/azure_mgmt_batch/models/compute_node_fill_type.rb +16 -0
  410. data/lib/2019-08-01/generated/azure_mgmt_batch/models/container_configuration.rb +95 -0
  411. data/lib/2019-08-01/generated/azure_mgmt_batch/models/container_registry.rb +70 -0
  412. data/lib/2019-08-01/generated/azure_mgmt_batch/models/container_working_directory.rb +16 -0
  413. data/lib/2019-08-01/generated/azure_mgmt_batch/models/data_disk.rb +102 -0
  414. data/lib/2019-08-01/generated/azure_mgmt_batch/models/delete_certificate_error.rb +92 -0
  415. data/lib/2019-08-01/generated/azure_mgmt_batch/models/deployment_configuration.rb +66 -0
  416. data/lib/2019-08-01/generated/azure_mgmt_batch/models/elevation_level.rb +16 -0
  417. data/lib/2019-08-01/generated/azure_mgmt_batch/models/environment_setting.rb +58 -0
  418. data/lib/2019-08-01/generated/azure_mgmt_batch/models/fixed_scale_settings.rb +93 -0
  419. data/lib/2019-08-01/generated/azure_mgmt_batch/models/image_reference.rb +111 -0
  420. data/lib/2019-08-01/generated/azure_mgmt_batch/models/inbound_endpoint_protocol.rb +16 -0
  421. data/lib/2019-08-01/generated/azure_mgmt_batch/models/inbound_nat_pool.rb +141 -0
  422. data/lib/2019-08-01/generated/azure_mgmt_batch/models/inter_node_communication_state.rb +16 -0
  423. data/lib/2019-08-01/generated/azure_mgmt_batch/models/key_vault_reference.rb +59 -0
  424. data/lib/2019-08-01/generated/azure_mgmt_batch/models/linux_user_configuration.rb +81 -0
  425. data/lib/2019-08-01/generated/azure_mgmt_batch/models/list_application_packages_result.rb +98 -0
  426. data/lib/2019-08-01/generated/azure_mgmt_batch/models/list_applications_result.rb +98 -0
  427. data/lib/2019-08-01/generated/azure_mgmt_batch/models/list_certificates_result.rb +98 -0
  428. data/lib/2019-08-01/generated/azure_mgmt_batch/models/list_pools_result.rb +98 -0
  429. data/lib/2019-08-01/generated/azure_mgmt_batch/models/login_mode.rb +16 -0
  430. data/lib/2019-08-01/generated/azure_mgmt_batch/models/metadata_item.rb +60 -0
  431. data/lib/2019-08-01/generated/azure_mgmt_batch/models/mount_configuration.rb +91 -0
  432. data/lib/2019-08-01/generated/azure_mgmt_batch/models/name_availability_reason.rb +16 -0
  433. data/lib/2019-08-01/generated/azure_mgmt_batch/models/network_configuration.rb +111 -0
  434. data/lib/2019-08-01/generated/azure_mgmt_batch/models/network_security_group_rule.rb +106 -0
  435. data/lib/2019-08-01/generated/azure_mgmt_batch/models/network_security_group_rule_access.rb +16 -0
  436. data/lib/2019-08-01/generated/azure_mgmt_batch/models/nfsmount_configuration.rb +74 -0
  437. data/lib/2019-08-01/generated/azure_mgmt_batch/models/operation.rb +82 -0
  438. data/lib/2019-08-01/generated/azure_mgmt_batch/models/operation_display.rb +81 -0
  439. data/lib/2019-08-01/generated/azure_mgmt_batch/models/operation_list_result.rb +98 -0
  440. data/lib/2019-08-01/generated/azure_mgmt_batch/models/package_state.rb +16 -0
  441. data/lib/2019-08-01/generated/azure_mgmt_batch/models/pool.rb +484 -0
  442. data/lib/2019-08-01/generated/azure_mgmt_batch/models/pool_allocation_mode.rb +16 -0
  443. data/lib/2019-08-01/generated/azure_mgmt_batch/models/pool_endpoint_configuration.rb +60 -0
  444. data/lib/2019-08-01/generated/azure_mgmt_batch/models/pool_provisioning_state.rb +16 -0
  445. data/lib/2019-08-01/generated/azure_mgmt_batch/models/provisioning_state.rb +20 -0
  446. data/lib/2019-08-01/generated/azure_mgmt_batch/models/proxy_resource.rb +84 -0
  447. data/lib/2019-08-01/generated/azure_mgmt_batch/models/resize_error.rb +80 -0
  448. data/lib/2019-08-01/generated/azure_mgmt_batch/models/resize_operation_status.rb +127 -0
  449. data/lib/2019-08-01/generated/azure_mgmt_batch/models/resource.rb +112 -0
  450. data/lib/2019-08-01/generated/azure_mgmt_batch/models/resource_file.rb +139 -0
  451. data/lib/2019-08-01/generated/azure_mgmt_batch/models/scale_settings.rb +69 -0
  452. data/lib/2019-08-01/generated/azure_mgmt_batch/models/start_task.rb +174 -0
  453. data/lib/2019-08-01/generated/azure_mgmt_batch/models/storage_account_type.rb +16 -0
  454. data/lib/2019-08-01/generated/azure_mgmt_batch/models/task_container_settings.rb +92 -0
  455. data/lib/2019-08-01/generated/azure_mgmt_batch/models/task_scheduling_policy.rb +49 -0
  456. data/lib/2019-08-01/generated/azure_mgmt_batch/models/user_account.rb +104 -0
  457. data/lib/2019-08-01/generated/azure_mgmt_batch/models/user_identity.rb +64 -0
  458. data/lib/2019-08-01/generated/azure_mgmt_batch/models/virtual_machine_configuration.rb +141 -0
  459. data/lib/2019-08-01/generated/azure_mgmt_batch/models/virtual_machine_family_core_quota.rb +60 -0
  460. data/lib/2019-08-01/generated/azure_mgmt_batch/models/windows_configuration.rb +48 -0
  461. data/lib/2019-08-01/generated/azure_mgmt_batch/models/windows_user_configuration.rb +51 -0
  462. data/lib/2019-08-01/generated/azure_mgmt_batch/module_definition.rb +9 -0
  463. data/lib/2019-08-01/generated/azure_mgmt_batch/operations.rb +219 -0
  464. data/lib/2019-08-01/generated/azure_mgmt_batch/pool_operations.rb +1148 -0
  465. data/lib/azure_mgmt_batch.rb +5 -2
  466. data/lib/module_definition.rb +7 -7
  467. data/lib/profiles/latest/batch_latest_profile_client.rb +40 -40
  468. data/lib/profiles/latest/batch_module_definition.rb +8 -8
  469. data/lib/profiles/latest/modules/batch_profile_module.rb +244 -204
  470. data/lib/version.rb +1 -1
  471. metadata +289 -5
@@ -0,0 +1,51 @@
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::Batch::Mgmt::V2019_08_01
7
+ module Models
8
+ #
9
+ # Properties used to create a user account on a Windows node.
10
+ #
11
+ #
12
+ class WindowsUserConfiguration
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [LoginMode] Login mode for user. Specifies login mode for the
17
+ # user. The default value for VirtualMachineConfiguration pools is
18
+ # interactive mode and for CloudServiceConfiguration pools is batch mode.
19
+ # Possible values include: 'Batch', 'Interactive'
20
+ attr_accessor :login_mode
21
+
22
+
23
+ #
24
+ # Mapper for WindowsUserConfiguration class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ client_side_validation: true,
30
+ required: false,
31
+ serialized_name: 'WindowsUserConfiguration',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'WindowsUserConfiguration',
35
+ model_properties: {
36
+ login_mode: {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'loginMode',
40
+ type: {
41
+ name: 'Enum',
42
+ module: 'LoginMode'
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,9 @@
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 end
7
+ module Azure::Batch end
8
+ module Azure::Batch::Mgmt end
9
+ module Azure::Batch::Mgmt::V2019_08_01 end
@@ -0,0 +1,219 @@
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::Batch::Mgmt::V2019_08_01
7
+ #
8
+ # Operations
9
+ #
10
+ class Operations
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Operations class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [BatchManagementClient] reference to the BatchManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Lists available operations for the Microsoft.Batch provider
26
+ #
27
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
28
+ # will be added to the HTTP request.
29
+ #
30
+ # @return [Array<Operation>] operation results.
31
+ #
32
+ def list(custom_headers:nil)
33
+ first_page = list_as_lazy(custom_headers:custom_headers)
34
+ first_page.get_all_items
35
+ end
36
+
37
+ #
38
+ # Lists available operations for the Microsoft.Batch provider
39
+ #
40
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
41
+ # will be added to the HTTP request.
42
+ #
43
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
44
+ #
45
+ def list_with_http_info(custom_headers:nil)
46
+ list_async(custom_headers:custom_headers).value!
47
+ end
48
+
49
+ #
50
+ # Lists available operations for the Microsoft.Batch provider
51
+ #
52
+ # @param [Hash{String => String}] A hash of custom headers that will be added
53
+ # to the HTTP request.
54
+ #
55
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
56
+ #
57
+ def list_async(custom_headers:nil)
58
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
59
+
60
+
61
+ request_headers = {}
62
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
63
+
64
+ # Set Headers
65
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
66
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
67
+ path_template = 'providers/Microsoft.Batch/operations'
68
+
69
+ request_url = @base_url || @client.base_url
70
+
71
+ options = {
72
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
73
+ query_params: {'api-version' => @client.api_version},
74
+ headers: request_headers.merge(custom_headers || {}),
75
+ base_url: request_url
76
+ }
77
+ promise = @client.make_request_async(:get, path_template, options)
78
+
79
+ promise = promise.then do |result|
80
+ http_response = result.response
81
+ status_code = http_response.status
82
+ response_content = http_response.body
83
+ unless status_code == 200
84
+ error_model = JSON.load(response_content)
85
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
86
+ end
87
+
88
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
89
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
90
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
91
+ # Deserialize Response
92
+ if status_code == 200
93
+ begin
94
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
95
+ result_mapper = Azure::Batch::Mgmt::V2019_08_01::Models::OperationListResult.mapper()
96
+ result.body = @client.deserialize(result_mapper, parsed_response)
97
+ rescue Exception => e
98
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
99
+ end
100
+ end
101
+
102
+ result
103
+ end
104
+
105
+ promise.execute
106
+ end
107
+
108
+ #
109
+ # Lists available operations for the Microsoft.Batch provider
110
+ #
111
+ # @param next_page_link [String] The NextLink from the previous successful call
112
+ # to List operation.
113
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
114
+ # will be added to the HTTP request.
115
+ #
116
+ # @return [OperationListResult] operation results.
117
+ #
118
+ def list_next(next_page_link, custom_headers:nil)
119
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
120
+ response.body unless response.nil?
121
+ end
122
+
123
+ #
124
+ # Lists available operations for the Microsoft.Batch provider
125
+ #
126
+ # @param next_page_link [String] The NextLink from the previous successful call
127
+ # to List operation.
128
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
129
+ # will be added to the HTTP request.
130
+ #
131
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
132
+ #
133
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
134
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
135
+ end
136
+
137
+ #
138
+ # Lists available operations for the Microsoft.Batch provider
139
+ #
140
+ # @param next_page_link [String] The NextLink from the previous successful call
141
+ # to List operation.
142
+ # @param [Hash{String => String}] A hash of custom headers that will be added
143
+ # to the HTTP request.
144
+ #
145
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
146
+ #
147
+ def list_next_async(next_page_link, custom_headers:nil)
148
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
149
+
150
+
151
+ request_headers = {}
152
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
153
+
154
+ # Set Headers
155
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
156
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
157
+ path_template = '{nextLink}'
158
+
159
+ request_url = @base_url || @client.base_url
160
+
161
+ options = {
162
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
163
+ skip_encoding_path_params: {'nextLink' => next_page_link},
164
+ headers: request_headers.merge(custom_headers || {}),
165
+ base_url: request_url
166
+ }
167
+ promise = @client.make_request_async(:get, path_template, options)
168
+
169
+ promise = promise.then do |result|
170
+ http_response = result.response
171
+ status_code = http_response.status
172
+ response_content = http_response.body
173
+ unless status_code == 200
174
+ error_model = JSON.load(response_content)
175
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
176
+ end
177
+
178
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
179
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
180
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
181
+ # Deserialize Response
182
+ if status_code == 200
183
+ begin
184
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
185
+ result_mapper = Azure::Batch::Mgmt::V2019_08_01::Models::OperationListResult.mapper()
186
+ result.body = @client.deserialize(result_mapper, parsed_response)
187
+ rescue Exception => e
188
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
189
+ end
190
+ end
191
+
192
+ result
193
+ end
194
+
195
+ promise.execute
196
+ end
197
+
198
+ #
199
+ # Lists available operations for the Microsoft.Batch provider
200
+ #
201
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
202
+ # will be added to the HTTP request.
203
+ #
204
+ # @return [OperationListResult] which provide lazy access to pages of the
205
+ # response.
206
+ #
207
+ def list_as_lazy(custom_headers:nil)
208
+ response = list_async(custom_headers:custom_headers).value!
209
+ unless response.nil?
210
+ page = response.body
211
+ page.next_method = Proc.new do |next_page_link|
212
+ list_next_async(next_page_link, custom_headers:custom_headers)
213
+ end
214
+ page
215
+ end
216
+ end
217
+
218
+ end
219
+ end
@@ -0,0 +1,1148 @@
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::Batch::Mgmt::V2019_08_01
7
+ #
8
+ # PoolOperations
9
+ #
10
+ class PoolOperations
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the PoolOperations class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [BatchManagementClient] reference to the BatchManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Lists all of the pools in the specified account.
26
+ #
27
+ # @param resource_group_name [String] The name of the resource group that
28
+ # contains the Batch account.
29
+ # @param account_name [String] The name of the Batch account.
30
+ # @param maxresults [Integer] The maximum number of items to return in the
31
+ # response.
32
+ # @param select [String] Comma separated list of properties that should be
33
+ # returned. e.g. "properties/provisioningState". Only top level properties
34
+ # under properties/ are valid for selection.
35
+ # @param filter [String] OData filter expression. Valid properties for
36
+ # filtering are:
37
+ #
38
+ # name
39
+ # properties/allocationState
40
+ # properties/allocationStateTransitionTime
41
+ # properties/creationTime
42
+ # properties/provisioningState
43
+ # properties/provisioningStateTransitionTime
44
+ # properties/lastModified
45
+ # properties/vmSize
46
+ # properties/interNodeCommunication
47
+ # properties/scaleSettings/autoScale
48
+ # properties/scaleSettings/fixedScale
49
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
50
+ # will be added to the HTTP request.
51
+ #
52
+ # @return [Array<Pool>] operation results.
53
+ #
54
+ def list_by_batch_account(resource_group_name, account_name, maxresults:nil, select:nil, filter:nil, custom_headers:nil)
55
+ first_page = list_by_batch_account_as_lazy(resource_group_name, account_name, maxresults:maxresults, select:select, filter:filter, custom_headers:custom_headers)
56
+ first_page.get_all_items
57
+ end
58
+
59
+ #
60
+ # Lists all of the pools in the specified account.
61
+ #
62
+ # @param resource_group_name [String] The name of the resource group that
63
+ # contains the Batch account.
64
+ # @param account_name [String] The name of the Batch account.
65
+ # @param maxresults [Integer] The maximum number of items to return in the
66
+ # response.
67
+ # @param select [String] Comma separated list of properties that should be
68
+ # returned. e.g. "properties/provisioningState". Only top level properties
69
+ # under properties/ are valid for selection.
70
+ # @param filter [String] OData filter expression. Valid properties for
71
+ # filtering are:
72
+ #
73
+ # name
74
+ # properties/allocationState
75
+ # properties/allocationStateTransitionTime
76
+ # properties/creationTime
77
+ # properties/provisioningState
78
+ # properties/provisioningStateTransitionTime
79
+ # properties/lastModified
80
+ # properties/vmSize
81
+ # properties/interNodeCommunication
82
+ # properties/scaleSettings/autoScale
83
+ # properties/scaleSettings/fixedScale
84
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
85
+ # will be added to the HTTP request.
86
+ #
87
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
88
+ #
89
+ def list_by_batch_account_with_http_info(resource_group_name, account_name, maxresults:nil, select:nil, filter:nil, custom_headers:nil)
90
+ list_by_batch_account_async(resource_group_name, account_name, maxresults:maxresults, select:select, filter:filter, custom_headers:custom_headers).value!
91
+ end
92
+
93
+ #
94
+ # Lists all of the pools in the specified account.
95
+ #
96
+ # @param resource_group_name [String] The name of the resource group that
97
+ # contains the Batch account.
98
+ # @param account_name [String] The name of the Batch account.
99
+ # @param maxresults [Integer] The maximum number of items to return in the
100
+ # response.
101
+ # @param select [String] Comma separated list of properties that should be
102
+ # returned. e.g. "properties/provisioningState". Only top level properties
103
+ # under properties/ are valid for selection.
104
+ # @param filter [String] OData filter expression. Valid properties for
105
+ # filtering are:
106
+ #
107
+ # name
108
+ # properties/allocationState
109
+ # properties/allocationStateTransitionTime
110
+ # properties/creationTime
111
+ # properties/provisioningState
112
+ # properties/provisioningStateTransitionTime
113
+ # properties/lastModified
114
+ # properties/vmSize
115
+ # properties/interNodeCommunication
116
+ # properties/scaleSettings/autoScale
117
+ # properties/scaleSettings/fixedScale
118
+ # @param [Hash{String => String}] A hash of custom headers that will be added
119
+ # to the HTTP request.
120
+ #
121
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
122
+ #
123
+ def list_by_batch_account_async(resource_group_name, account_name, maxresults:nil, select:nil, filter:nil, custom_headers:nil)
124
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
125
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
126
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
127
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
128
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
129
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
130
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
131
+
132
+
133
+ request_headers = {}
134
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
135
+
136
+ # Set Headers
137
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
138
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
139
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools'
140
+
141
+ request_url = @base_url || @client.base_url
142
+
143
+ options = {
144
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
145
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
146
+ query_params: {'maxresults' => maxresults,'$select' => select,'$filter' => filter,'api-version' => @client.api_version},
147
+ headers: request_headers.merge(custom_headers || {}),
148
+ base_url: request_url
149
+ }
150
+ promise = @client.make_request_async(:get, path_template, options)
151
+
152
+ promise = promise.then do |result|
153
+ http_response = result.response
154
+ status_code = http_response.status
155
+ response_content = http_response.body
156
+ unless status_code == 200
157
+ error_model = JSON.load(response_content)
158
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
159
+ end
160
+
161
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
162
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
163
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
164
+ # Deserialize Response
165
+ if status_code == 200
166
+ begin
167
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
168
+ result_mapper = Azure::Batch::Mgmt::V2019_08_01::Models::ListPoolsResult.mapper()
169
+ result.body = @client.deserialize(result_mapper, parsed_response)
170
+ rescue Exception => e
171
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
172
+ end
173
+ end
174
+
175
+ result
176
+ end
177
+
178
+ promise.execute
179
+ end
180
+
181
+ #
182
+ # Creates a new pool inside the specified account.
183
+ #
184
+ # @param resource_group_name [String] The name of the resource group that
185
+ # contains the Batch account.
186
+ # @param account_name [String] The name of the Batch account.
187
+ # @param pool_name [String] The pool name. This must be unique within the
188
+ # account.
189
+ # @param parameters [Pool] Additional parameters for pool creation.
190
+ # @param if_match [String] The entity state (ETag) version of the pool to
191
+ # update. A value of "*" can be used to apply the operation only if the pool
192
+ # already exists. If omitted, this operation will always be applied.
193
+ # @param if_none_match [String] Set to '*' to allow a new pool to be created,
194
+ # but to prevent updating an existing pool. Other values will be ignored.
195
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
196
+ # will be added to the HTTP request.
197
+ #
198
+ # @return [Pool] operation results.
199
+ #
200
+ def create(resource_group_name, account_name, pool_name, parameters, if_match:nil, if_none_match:nil, custom_headers:nil)
201
+ response = create_async(resource_group_name, account_name, pool_name, parameters, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value!
202
+ response.body unless response.nil?
203
+ end
204
+
205
+ #
206
+ # @param resource_group_name [String] The name of the resource group that
207
+ # contains the Batch account.
208
+ # @param account_name [String] The name of the Batch account.
209
+ # @param pool_name [String] The pool name. This must be unique within the
210
+ # account.
211
+ # @param parameters [Pool] Additional parameters for pool creation.
212
+ # @param if_match [String] The entity state (ETag) version of the pool to
213
+ # update. A value of "*" can be used to apply the operation only if the pool
214
+ # already exists. If omitted, this operation will always be applied.
215
+ # @param if_none_match [String] Set to '*' to allow a new pool to be created,
216
+ # but to prevent updating an existing pool. Other values will be ignored.
217
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
218
+ # will be added to the HTTP request.
219
+ #
220
+ # @return [Concurrent::Promise] promise which provides async access to http
221
+ # response.
222
+ #
223
+ def create_async(resource_group_name, account_name, pool_name, parameters, if_match:nil, if_none_match:nil, custom_headers:nil)
224
+ # Send request
225
+ promise = begin_create_async(resource_group_name, account_name, pool_name, parameters, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers)
226
+
227
+ promise = promise.then do |response|
228
+ # Defining deserialization method.
229
+ deserialize_method = lambda do |parsed_response|
230
+ result_mapper = Azure::Batch::Mgmt::V2019_08_01::Models::Pool.mapper()
231
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
232
+ end
233
+
234
+ # Waiting for response.
235
+ @client.get_long_running_operation_result(response, deserialize_method)
236
+ end
237
+
238
+ promise
239
+ end
240
+
241
+ #
242
+ # Updates the properties of an existing pool.
243
+ #
244
+ # @param resource_group_name [String] The name of the resource group that
245
+ # contains the Batch account.
246
+ # @param account_name [String] The name of the Batch account.
247
+ # @param pool_name [String] The pool name. This must be unique within the
248
+ # account.
249
+ # @param parameters [Pool] Pool properties that should be updated. Properties
250
+ # that are supplied will be updated, any property not supplied will be
251
+ # unchanged.
252
+ # @param if_match [String] The entity state (ETag) version of the pool to
253
+ # update. This value can be omitted or set to "*" to apply the operation
254
+ # unconditionally.
255
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
256
+ # will be added to the HTTP request.
257
+ #
258
+ # @return [Pool] operation results.
259
+ #
260
+ def update(resource_group_name, account_name, pool_name, parameters, if_match:nil, custom_headers:nil)
261
+ response = update_async(resource_group_name, account_name, pool_name, parameters, if_match:if_match, custom_headers:custom_headers).value!
262
+ response.body unless response.nil?
263
+ end
264
+
265
+ #
266
+ # Updates the properties of an existing pool.
267
+ #
268
+ # @param resource_group_name [String] The name of the resource group that
269
+ # contains the Batch account.
270
+ # @param account_name [String] The name of the Batch account.
271
+ # @param pool_name [String] The pool name. This must be unique within the
272
+ # account.
273
+ # @param parameters [Pool] Pool properties that should be updated. Properties
274
+ # that are supplied will be updated, any property not supplied will be
275
+ # unchanged.
276
+ # @param if_match [String] The entity state (ETag) version of the pool to
277
+ # update. This value can be omitted or set to "*" to apply the operation
278
+ # unconditionally.
279
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
280
+ # will be added to the HTTP request.
281
+ #
282
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
283
+ #
284
+ def update_with_http_info(resource_group_name, account_name, pool_name, parameters, if_match:nil, custom_headers:nil)
285
+ update_async(resource_group_name, account_name, pool_name, parameters, if_match:if_match, custom_headers:custom_headers).value!
286
+ end
287
+
288
+ #
289
+ # Updates the properties of an existing pool.
290
+ #
291
+ # @param resource_group_name [String] The name of the resource group that
292
+ # contains the Batch account.
293
+ # @param account_name [String] The name of the Batch account.
294
+ # @param pool_name [String] The pool name. This must be unique within the
295
+ # account.
296
+ # @param parameters [Pool] Pool properties that should be updated. Properties
297
+ # that are supplied will be updated, any property not supplied will be
298
+ # unchanged.
299
+ # @param if_match [String] The entity state (ETag) version of the pool to
300
+ # update. This value can be omitted or set to "*" to apply the operation
301
+ # unconditionally.
302
+ # @param [Hash{String => String}] A hash of custom headers that will be added
303
+ # to the HTTP request.
304
+ #
305
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
306
+ #
307
+ def update_async(resource_group_name, account_name, pool_name, parameters, if_match:nil, custom_headers:nil)
308
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
309
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
310
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
311
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
312
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
313
+ fail ArgumentError, 'pool_name is nil' if pool_name.nil?
314
+ fail ArgumentError, "'pool_name' should satisfy the constraint - 'MaxLength': '64'" if !pool_name.nil? && pool_name.length > 64
315
+ fail ArgumentError, "'pool_name' should satisfy the constraint - 'MinLength': '1'" if !pool_name.nil? && pool_name.length < 1
316
+ fail ArgumentError, "'pool_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9_-]+$'" if !pool_name.nil? && pool_name.match(Regexp.new('^^[a-zA-Z0-9_-]+$$')).nil?
317
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
318
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
319
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
320
+
321
+
322
+ request_headers = {}
323
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
324
+
325
+ # Set Headers
326
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
327
+ request_headers['If-Match'] = if_match unless if_match.nil?
328
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
329
+
330
+ # Serialize Request
331
+ request_mapper = Azure::Batch::Mgmt::V2019_08_01::Models::Pool.mapper()
332
+ request_content = @client.serialize(request_mapper, parameters)
333
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
334
+
335
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}'
336
+
337
+ request_url = @base_url || @client.base_url
338
+
339
+ options = {
340
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
341
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'poolName' => pool_name,'subscriptionId' => @client.subscription_id},
342
+ query_params: {'api-version' => @client.api_version},
343
+ body: request_content,
344
+ headers: request_headers.merge(custom_headers || {}),
345
+ base_url: request_url
346
+ }
347
+ promise = @client.make_request_async(:patch, path_template, options)
348
+
349
+ promise = promise.then do |result|
350
+ http_response = result.response
351
+ status_code = http_response.status
352
+ response_content = http_response.body
353
+ unless status_code == 200
354
+ error_model = JSON.load(response_content)
355
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
356
+ end
357
+
358
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
359
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
360
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
361
+ # Deserialize Response
362
+ if status_code == 200
363
+ begin
364
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
365
+ result_mapper = Azure::Batch::Mgmt::V2019_08_01::Models::Pool.mapper()
366
+ result.body = @client.deserialize(result_mapper, parsed_response)
367
+ rescue Exception => e
368
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
369
+ end
370
+ end
371
+
372
+ result
373
+ end
374
+
375
+ promise.execute
376
+ end
377
+
378
+ #
379
+ # Deletes the specified pool.
380
+ #
381
+ # @param resource_group_name [String] The name of the resource group that
382
+ # contains the Batch account.
383
+ # @param account_name [String] The name of the Batch account.
384
+ # @param pool_name [String] The pool name. This must be unique within the
385
+ # account.
386
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
387
+ # will be added to the HTTP request.
388
+ #
389
+ def delete(resource_group_name, account_name, pool_name, custom_headers:nil)
390
+ response = delete_async(resource_group_name, account_name, pool_name, custom_headers:custom_headers).value!
391
+ nil
392
+ end
393
+
394
+ #
395
+ # @param resource_group_name [String] The name of the resource group that
396
+ # contains the Batch account.
397
+ # @param account_name [String] The name of the Batch account.
398
+ # @param pool_name [String] The pool name. This must be unique within the
399
+ # account.
400
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
401
+ # will be added to the HTTP request.
402
+ #
403
+ # @return [Concurrent::Promise] promise which provides async access to http
404
+ # response.
405
+ #
406
+ def delete_async(resource_group_name, account_name, pool_name, custom_headers:nil)
407
+ # Send request
408
+ promise = begin_delete_async(resource_group_name, account_name, pool_name, custom_headers:custom_headers)
409
+
410
+ promise = promise.then do |response|
411
+ # Defining deserialization method.
412
+ deserialize_method = lambda do |parsed_response|
413
+ end
414
+
415
+ # Waiting for response.
416
+ @client.get_long_running_operation_result(response, deserialize_method)
417
+ end
418
+
419
+ promise
420
+ end
421
+
422
+ #
423
+ # Gets information about the specified pool.
424
+ #
425
+ # @param resource_group_name [String] The name of the resource group that
426
+ # contains the Batch account.
427
+ # @param account_name [String] The name of the Batch account.
428
+ # @param pool_name [String] The pool name. This must be unique within the
429
+ # account.
430
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
431
+ # will be added to the HTTP request.
432
+ #
433
+ # @return [Pool] operation results.
434
+ #
435
+ def get(resource_group_name, account_name, pool_name, custom_headers:nil)
436
+ response = get_async(resource_group_name, account_name, pool_name, custom_headers:custom_headers).value!
437
+ response.body unless response.nil?
438
+ end
439
+
440
+ #
441
+ # Gets information about the specified pool.
442
+ #
443
+ # @param resource_group_name [String] The name of the resource group that
444
+ # contains the Batch account.
445
+ # @param account_name [String] The name of the Batch account.
446
+ # @param pool_name [String] The pool name. This must be unique within the
447
+ # account.
448
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
449
+ # will be added to the HTTP request.
450
+ #
451
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
452
+ #
453
+ def get_with_http_info(resource_group_name, account_name, pool_name, custom_headers:nil)
454
+ get_async(resource_group_name, account_name, pool_name, custom_headers:custom_headers).value!
455
+ end
456
+
457
+ #
458
+ # Gets information about the specified pool.
459
+ #
460
+ # @param resource_group_name [String] The name of the resource group that
461
+ # contains the Batch account.
462
+ # @param account_name [String] The name of the Batch account.
463
+ # @param pool_name [String] The pool name. This must be unique within the
464
+ # account.
465
+ # @param [Hash{String => String}] A hash of custom headers that will be added
466
+ # to the HTTP request.
467
+ #
468
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
469
+ #
470
+ def get_async(resource_group_name, account_name, pool_name, custom_headers:nil)
471
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
472
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
473
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
474
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
475
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
476
+ fail ArgumentError, 'pool_name is nil' if pool_name.nil?
477
+ fail ArgumentError, "'pool_name' should satisfy the constraint - 'MaxLength': '64'" if !pool_name.nil? && pool_name.length > 64
478
+ fail ArgumentError, "'pool_name' should satisfy the constraint - 'MinLength': '1'" if !pool_name.nil? && pool_name.length < 1
479
+ fail ArgumentError, "'pool_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9_-]+$'" if !pool_name.nil? && pool_name.match(Regexp.new('^^[a-zA-Z0-9_-]+$$')).nil?
480
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
481
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
482
+
483
+
484
+ request_headers = {}
485
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
486
+
487
+ # Set Headers
488
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
489
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
490
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}'
491
+
492
+ request_url = @base_url || @client.base_url
493
+
494
+ options = {
495
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
496
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'poolName' => pool_name,'subscriptionId' => @client.subscription_id},
497
+ query_params: {'api-version' => @client.api_version},
498
+ headers: request_headers.merge(custom_headers || {}),
499
+ base_url: request_url
500
+ }
501
+ promise = @client.make_request_async(:get, path_template, options)
502
+
503
+ promise = promise.then do |result|
504
+ http_response = result.response
505
+ status_code = http_response.status
506
+ response_content = http_response.body
507
+ unless status_code == 200
508
+ error_model = JSON.load(response_content)
509
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
510
+ end
511
+
512
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
513
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
514
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
515
+ # Deserialize Response
516
+ if status_code == 200
517
+ begin
518
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
519
+ result_mapper = Azure::Batch::Mgmt::V2019_08_01::Models::Pool.mapper()
520
+ result.body = @client.deserialize(result_mapper, parsed_response)
521
+ rescue Exception => e
522
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
523
+ end
524
+ end
525
+
526
+ result
527
+ end
528
+
529
+ promise.execute
530
+ end
531
+
532
+ #
533
+ # Disables automatic scaling for a pool.
534
+ #
535
+ # @param resource_group_name [String] The name of the resource group that
536
+ # contains the Batch account.
537
+ # @param account_name [String] The name of the Batch account.
538
+ # @param pool_name [String] The pool name. This must be unique within the
539
+ # account.
540
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
541
+ # will be added to the HTTP request.
542
+ #
543
+ # @return [Pool] operation results.
544
+ #
545
+ def disable_auto_scale(resource_group_name, account_name, pool_name, custom_headers:nil)
546
+ response = disable_auto_scale_async(resource_group_name, account_name, pool_name, custom_headers:custom_headers).value!
547
+ response.body unless response.nil?
548
+ end
549
+
550
+ #
551
+ # Disables automatic scaling for a pool.
552
+ #
553
+ # @param resource_group_name [String] The name of the resource group that
554
+ # contains the Batch account.
555
+ # @param account_name [String] The name of the Batch account.
556
+ # @param pool_name [String] The pool name. This must be unique within the
557
+ # account.
558
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
559
+ # will be added to the HTTP request.
560
+ #
561
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
562
+ #
563
+ def disable_auto_scale_with_http_info(resource_group_name, account_name, pool_name, custom_headers:nil)
564
+ disable_auto_scale_async(resource_group_name, account_name, pool_name, custom_headers:custom_headers).value!
565
+ end
566
+
567
+ #
568
+ # Disables automatic scaling for a pool.
569
+ #
570
+ # @param resource_group_name [String] The name of the resource group that
571
+ # contains the Batch account.
572
+ # @param account_name [String] The name of the Batch account.
573
+ # @param pool_name [String] The pool name. This must be unique within the
574
+ # account.
575
+ # @param [Hash{String => String}] A hash of custom headers that will be added
576
+ # to the HTTP request.
577
+ #
578
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
579
+ #
580
+ def disable_auto_scale_async(resource_group_name, account_name, pool_name, custom_headers:nil)
581
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
582
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
583
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
584
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
585
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
586
+ fail ArgumentError, 'pool_name is nil' if pool_name.nil?
587
+ fail ArgumentError, "'pool_name' should satisfy the constraint - 'MaxLength': '64'" if !pool_name.nil? && pool_name.length > 64
588
+ fail ArgumentError, "'pool_name' should satisfy the constraint - 'MinLength': '1'" if !pool_name.nil? && pool_name.length < 1
589
+ fail ArgumentError, "'pool_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9_-]+$'" if !pool_name.nil? && pool_name.match(Regexp.new('^^[a-zA-Z0-9_-]+$$')).nil?
590
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
591
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
592
+
593
+
594
+ request_headers = {}
595
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
596
+
597
+ # Set Headers
598
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
599
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
600
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/disableAutoScale'
601
+
602
+ request_url = @base_url || @client.base_url
603
+
604
+ options = {
605
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
606
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'poolName' => pool_name,'subscriptionId' => @client.subscription_id},
607
+ query_params: {'api-version' => @client.api_version},
608
+ headers: request_headers.merge(custom_headers || {}),
609
+ base_url: request_url
610
+ }
611
+ promise = @client.make_request_async(:post, path_template, options)
612
+
613
+ promise = promise.then do |result|
614
+ http_response = result.response
615
+ status_code = http_response.status
616
+ response_content = http_response.body
617
+ unless status_code == 200
618
+ error_model = JSON.load(response_content)
619
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
620
+ end
621
+
622
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
623
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
624
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
625
+ # Deserialize Response
626
+ if status_code == 200
627
+ begin
628
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
629
+ result_mapper = Azure::Batch::Mgmt::V2019_08_01::Models::Pool.mapper()
630
+ result.body = @client.deserialize(result_mapper, parsed_response)
631
+ rescue Exception => e
632
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
633
+ end
634
+ end
635
+
636
+ result
637
+ end
638
+
639
+ promise.execute
640
+ end
641
+
642
+ #
643
+ # Stops an ongoing resize operation on the pool.
644
+ #
645
+ # This does not restore the pool to its previous state before the resize
646
+ # operation: it only stops any further changes being made, and the pool
647
+ # maintains its current state. After stopping, the pool stabilizes at the
648
+ # number of nodes it was at when the stop operation was done. During the stop
649
+ # operation, the pool allocation state changes first to stopping and then to
650
+ # steady. A resize operation need not be an explicit resize pool request; this
651
+ # API can also be used to halt the initial sizing of the pool when it is
652
+ # created.
653
+ #
654
+ # @param resource_group_name [String] The name of the resource group that
655
+ # contains the Batch account.
656
+ # @param account_name [String] The name of the Batch account.
657
+ # @param pool_name [String] The pool name. This must be unique within the
658
+ # account.
659
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
660
+ # will be added to the HTTP request.
661
+ #
662
+ # @return [Pool] operation results.
663
+ #
664
+ def stop_resize(resource_group_name, account_name, pool_name, custom_headers:nil)
665
+ response = stop_resize_async(resource_group_name, account_name, pool_name, custom_headers:custom_headers).value!
666
+ response.body unless response.nil?
667
+ end
668
+
669
+ #
670
+ # Stops an ongoing resize operation on the pool.
671
+ #
672
+ # This does not restore the pool to its previous state before the resize
673
+ # operation: it only stops any further changes being made, and the pool
674
+ # maintains its current state. After stopping, the pool stabilizes at the
675
+ # number of nodes it was at when the stop operation was done. During the stop
676
+ # operation, the pool allocation state changes first to stopping and then to
677
+ # steady. A resize operation need not be an explicit resize pool request; this
678
+ # API can also be used to halt the initial sizing of the pool when it is
679
+ # created.
680
+ #
681
+ # @param resource_group_name [String] The name of the resource group that
682
+ # contains the Batch account.
683
+ # @param account_name [String] The name of the Batch account.
684
+ # @param pool_name [String] The pool name. This must be unique within the
685
+ # account.
686
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
687
+ # will be added to the HTTP request.
688
+ #
689
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
690
+ #
691
+ def stop_resize_with_http_info(resource_group_name, account_name, pool_name, custom_headers:nil)
692
+ stop_resize_async(resource_group_name, account_name, pool_name, custom_headers:custom_headers).value!
693
+ end
694
+
695
+ #
696
+ # Stops an ongoing resize operation on the pool.
697
+ #
698
+ # This does not restore the pool to its previous state before the resize
699
+ # operation: it only stops any further changes being made, and the pool
700
+ # maintains its current state. After stopping, the pool stabilizes at the
701
+ # number of nodes it was at when the stop operation was done. During the stop
702
+ # operation, the pool allocation state changes first to stopping and then to
703
+ # steady. A resize operation need not be an explicit resize pool request; this
704
+ # API can also be used to halt the initial sizing of the pool when it is
705
+ # created.
706
+ #
707
+ # @param resource_group_name [String] The name of the resource group that
708
+ # contains the Batch account.
709
+ # @param account_name [String] The name of the Batch account.
710
+ # @param pool_name [String] The pool name. This must be unique within the
711
+ # account.
712
+ # @param [Hash{String => String}] A hash of custom headers that will be added
713
+ # to the HTTP request.
714
+ #
715
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
716
+ #
717
+ def stop_resize_async(resource_group_name, account_name, pool_name, custom_headers:nil)
718
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
719
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
720
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
721
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
722
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
723
+ fail ArgumentError, 'pool_name is nil' if pool_name.nil?
724
+ fail ArgumentError, "'pool_name' should satisfy the constraint - 'MaxLength': '64'" if !pool_name.nil? && pool_name.length > 64
725
+ fail ArgumentError, "'pool_name' should satisfy the constraint - 'MinLength': '1'" if !pool_name.nil? && pool_name.length < 1
726
+ fail ArgumentError, "'pool_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9_-]+$'" if !pool_name.nil? && pool_name.match(Regexp.new('^^[a-zA-Z0-9_-]+$$')).nil?
727
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
728
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
729
+
730
+
731
+ request_headers = {}
732
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
733
+
734
+ # Set Headers
735
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
736
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
737
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/stopResize'
738
+
739
+ request_url = @base_url || @client.base_url
740
+
741
+ options = {
742
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
743
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'poolName' => pool_name,'subscriptionId' => @client.subscription_id},
744
+ query_params: {'api-version' => @client.api_version},
745
+ headers: request_headers.merge(custom_headers || {}),
746
+ base_url: request_url
747
+ }
748
+ promise = @client.make_request_async(:post, path_template, options)
749
+
750
+ promise = promise.then do |result|
751
+ http_response = result.response
752
+ status_code = http_response.status
753
+ response_content = http_response.body
754
+ unless status_code == 200
755
+ error_model = JSON.load(response_content)
756
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
757
+ end
758
+
759
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
760
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
761
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
762
+ # Deserialize Response
763
+ if status_code == 200
764
+ begin
765
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
766
+ result_mapper = Azure::Batch::Mgmt::V2019_08_01::Models::Pool.mapper()
767
+ result.body = @client.deserialize(result_mapper, parsed_response)
768
+ rescue Exception => e
769
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
770
+ end
771
+ end
772
+
773
+ result
774
+ end
775
+
776
+ promise.execute
777
+ end
778
+
779
+ #
780
+ # Creates a new pool inside the specified account.
781
+ #
782
+ # @param resource_group_name [String] The name of the resource group that
783
+ # contains the Batch account.
784
+ # @param account_name [String] The name of the Batch account.
785
+ # @param pool_name [String] The pool name. This must be unique within the
786
+ # account.
787
+ # @param parameters [Pool] Additional parameters for pool creation.
788
+ # @param if_match [String] The entity state (ETag) version of the pool to
789
+ # update. A value of "*" can be used to apply the operation only if the pool
790
+ # already exists. If omitted, this operation will always be applied.
791
+ # @param if_none_match [String] Set to '*' to allow a new pool to be created,
792
+ # but to prevent updating an existing pool. Other values will be ignored.
793
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
794
+ # will be added to the HTTP request.
795
+ #
796
+ # @return [Pool] operation results.
797
+ #
798
+ def begin_create(resource_group_name, account_name, pool_name, parameters, if_match:nil, if_none_match:nil, custom_headers:nil)
799
+ response = begin_create_async(resource_group_name, account_name, pool_name, parameters, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value!
800
+ response.body unless response.nil?
801
+ end
802
+
803
+ #
804
+ # Creates a new pool inside the specified account.
805
+ #
806
+ # @param resource_group_name [String] The name of the resource group that
807
+ # contains the Batch account.
808
+ # @param account_name [String] The name of the Batch account.
809
+ # @param pool_name [String] The pool name. This must be unique within the
810
+ # account.
811
+ # @param parameters [Pool] Additional parameters for pool creation.
812
+ # @param if_match [String] The entity state (ETag) version of the pool to
813
+ # update. A value of "*" can be used to apply the operation only if the pool
814
+ # already exists. If omitted, this operation will always be applied.
815
+ # @param if_none_match [String] Set to '*' to allow a new pool to be created,
816
+ # but to prevent updating an existing pool. Other values will be ignored.
817
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
818
+ # will be added to the HTTP request.
819
+ #
820
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
821
+ #
822
+ def begin_create_with_http_info(resource_group_name, account_name, pool_name, parameters, if_match:nil, if_none_match:nil, custom_headers:nil)
823
+ begin_create_async(resource_group_name, account_name, pool_name, parameters, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value!
824
+ end
825
+
826
+ #
827
+ # Creates a new pool inside the specified account.
828
+ #
829
+ # @param resource_group_name [String] The name of the resource group that
830
+ # contains the Batch account.
831
+ # @param account_name [String] The name of the Batch account.
832
+ # @param pool_name [String] The pool name. This must be unique within the
833
+ # account.
834
+ # @param parameters [Pool] Additional parameters for pool creation.
835
+ # @param if_match [String] The entity state (ETag) version of the pool to
836
+ # update. A value of "*" can be used to apply the operation only if the pool
837
+ # already exists. If omitted, this operation will always be applied.
838
+ # @param if_none_match [String] Set to '*' to allow a new pool to be created,
839
+ # but to prevent updating an existing pool. Other values will be ignored.
840
+ # @param [Hash{String => String}] A hash of custom headers that will be added
841
+ # to the HTTP request.
842
+ #
843
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
844
+ #
845
+ def begin_create_async(resource_group_name, account_name, pool_name, parameters, if_match:nil, if_none_match:nil, custom_headers:nil)
846
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
847
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
848
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
849
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
850
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
851
+ fail ArgumentError, 'pool_name is nil' if pool_name.nil?
852
+ fail ArgumentError, "'pool_name' should satisfy the constraint - 'MaxLength': '64'" if !pool_name.nil? && pool_name.length > 64
853
+ fail ArgumentError, "'pool_name' should satisfy the constraint - 'MinLength': '1'" if !pool_name.nil? && pool_name.length < 1
854
+ fail ArgumentError, "'pool_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9_-]+$'" if !pool_name.nil? && pool_name.match(Regexp.new('^^[a-zA-Z0-9_-]+$$')).nil?
855
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
856
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
857
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
858
+
859
+
860
+ request_headers = {}
861
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
862
+
863
+ # Set Headers
864
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
865
+ request_headers['If-Match'] = if_match unless if_match.nil?
866
+ request_headers['If-None-Match'] = if_none_match unless if_none_match.nil?
867
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
868
+
869
+ # Serialize Request
870
+ request_mapper = Azure::Batch::Mgmt::V2019_08_01::Models::Pool.mapper()
871
+ request_content = @client.serialize(request_mapper, parameters)
872
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
873
+
874
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}'
875
+
876
+ request_url = @base_url || @client.base_url
877
+
878
+ options = {
879
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
880
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'poolName' => pool_name,'subscriptionId' => @client.subscription_id},
881
+ query_params: {'api-version' => @client.api_version},
882
+ body: request_content,
883
+ headers: request_headers.merge(custom_headers || {}),
884
+ base_url: request_url
885
+ }
886
+ promise = @client.make_request_async(:put, path_template, options)
887
+
888
+ promise = promise.then do |result|
889
+ http_response = result.response
890
+ status_code = http_response.status
891
+ response_content = http_response.body
892
+ unless status_code == 200
893
+ error_model = JSON.load(response_content)
894
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
895
+ end
896
+
897
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
898
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
899
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
900
+ # Deserialize Response
901
+ if status_code == 200
902
+ begin
903
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
904
+ result_mapper = Azure::Batch::Mgmt::V2019_08_01::Models::Pool.mapper()
905
+ result.body = @client.deserialize(result_mapper, parsed_response)
906
+ rescue Exception => e
907
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
908
+ end
909
+ end
910
+
911
+ result
912
+ end
913
+
914
+ promise.execute
915
+ end
916
+
917
+ #
918
+ # Deletes the specified pool.
919
+ #
920
+ # @param resource_group_name [String] The name of the resource group that
921
+ # contains the Batch account.
922
+ # @param account_name [String] The name of the Batch account.
923
+ # @param pool_name [String] The pool name. This must be unique within the
924
+ # account.
925
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
926
+ # will be added to the HTTP request.
927
+ #
928
+ #
929
+ def begin_delete(resource_group_name, account_name, pool_name, custom_headers:nil)
930
+ response = begin_delete_async(resource_group_name, account_name, pool_name, custom_headers:custom_headers).value!
931
+ nil
932
+ end
933
+
934
+ #
935
+ # Deletes the specified pool.
936
+ #
937
+ # @param resource_group_name [String] The name of the resource group that
938
+ # contains the Batch account.
939
+ # @param account_name [String] The name of the Batch account.
940
+ # @param pool_name [String] The pool name. This must be unique within the
941
+ # account.
942
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
943
+ # will be added to the HTTP request.
944
+ #
945
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
946
+ #
947
+ def begin_delete_with_http_info(resource_group_name, account_name, pool_name, custom_headers:nil)
948
+ begin_delete_async(resource_group_name, account_name, pool_name, custom_headers:custom_headers).value!
949
+ end
950
+
951
+ #
952
+ # Deletes the specified pool.
953
+ #
954
+ # @param resource_group_name [String] The name of the resource group that
955
+ # contains the Batch account.
956
+ # @param account_name [String] The name of the Batch account.
957
+ # @param pool_name [String] The pool name. This must be unique within the
958
+ # account.
959
+ # @param [Hash{String => String}] A hash of custom headers that will be added
960
+ # to the HTTP request.
961
+ #
962
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
963
+ #
964
+ def begin_delete_async(resource_group_name, account_name, pool_name, custom_headers:nil)
965
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
966
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
967
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
968
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
969
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
970
+ fail ArgumentError, 'pool_name is nil' if pool_name.nil?
971
+ fail ArgumentError, "'pool_name' should satisfy the constraint - 'MaxLength': '64'" if !pool_name.nil? && pool_name.length > 64
972
+ fail ArgumentError, "'pool_name' should satisfy the constraint - 'MinLength': '1'" if !pool_name.nil? && pool_name.length < 1
973
+ fail ArgumentError, "'pool_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9_-]+$'" if !pool_name.nil? && pool_name.match(Regexp.new('^^[a-zA-Z0-9_-]+$$')).nil?
974
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
975
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
976
+
977
+
978
+ request_headers = {}
979
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
980
+
981
+ # Set Headers
982
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
983
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
984
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}'
985
+
986
+ request_url = @base_url || @client.base_url
987
+
988
+ options = {
989
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
990
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'poolName' => pool_name,'subscriptionId' => @client.subscription_id},
991
+ query_params: {'api-version' => @client.api_version},
992
+ headers: request_headers.merge(custom_headers || {}),
993
+ base_url: request_url
994
+ }
995
+ promise = @client.make_request_async(:delete, path_template, options)
996
+
997
+ promise = promise.then do |result|
998
+ http_response = result.response
999
+ status_code = http_response.status
1000
+ response_content = http_response.body
1001
+ unless status_code == 200 || status_code == 204 || status_code == 202
1002
+ error_model = JSON.load(response_content)
1003
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1004
+ end
1005
+
1006
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1007
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1008
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1009
+
1010
+ result
1011
+ end
1012
+
1013
+ promise.execute
1014
+ end
1015
+
1016
+ #
1017
+ # Lists all of the pools in the specified account.
1018
+ #
1019
+ # @param next_page_link [String] The NextLink from the previous successful call
1020
+ # to List operation.
1021
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1022
+ # will be added to the HTTP request.
1023
+ #
1024
+ # @return [ListPoolsResult] operation results.
1025
+ #
1026
+ def list_by_batch_account_next(next_page_link, custom_headers:nil)
1027
+ response = list_by_batch_account_next_async(next_page_link, custom_headers:custom_headers).value!
1028
+ response.body unless response.nil?
1029
+ end
1030
+
1031
+ #
1032
+ # Lists all of the pools in the specified account.
1033
+ #
1034
+ # @param next_page_link [String] The NextLink from the previous successful call
1035
+ # to List operation.
1036
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1037
+ # will be added to the HTTP request.
1038
+ #
1039
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1040
+ #
1041
+ def list_by_batch_account_next_with_http_info(next_page_link, custom_headers:nil)
1042
+ list_by_batch_account_next_async(next_page_link, custom_headers:custom_headers).value!
1043
+ end
1044
+
1045
+ #
1046
+ # Lists all of the pools in the specified account.
1047
+ #
1048
+ # @param next_page_link [String] The NextLink from the previous successful call
1049
+ # to List operation.
1050
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1051
+ # to the HTTP request.
1052
+ #
1053
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1054
+ #
1055
+ def list_by_batch_account_next_async(next_page_link, custom_headers:nil)
1056
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1057
+
1058
+
1059
+ request_headers = {}
1060
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1061
+
1062
+ # Set Headers
1063
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1064
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1065
+ path_template = '{nextLink}'
1066
+
1067
+ request_url = @base_url || @client.base_url
1068
+
1069
+ options = {
1070
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1071
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1072
+ headers: request_headers.merge(custom_headers || {}),
1073
+ base_url: request_url
1074
+ }
1075
+ promise = @client.make_request_async(:get, path_template, options)
1076
+
1077
+ promise = promise.then do |result|
1078
+ http_response = result.response
1079
+ status_code = http_response.status
1080
+ response_content = http_response.body
1081
+ unless status_code == 200
1082
+ error_model = JSON.load(response_content)
1083
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1084
+ end
1085
+
1086
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1087
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1088
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1089
+ # Deserialize Response
1090
+ if status_code == 200
1091
+ begin
1092
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1093
+ result_mapper = Azure::Batch::Mgmt::V2019_08_01::Models::ListPoolsResult.mapper()
1094
+ result.body = @client.deserialize(result_mapper, parsed_response)
1095
+ rescue Exception => e
1096
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1097
+ end
1098
+ end
1099
+
1100
+ result
1101
+ end
1102
+
1103
+ promise.execute
1104
+ end
1105
+
1106
+ #
1107
+ # Lists all of the pools in the specified account.
1108
+ #
1109
+ # @param resource_group_name [String] The name of the resource group that
1110
+ # contains the Batch account.
1111
+ # @param account_name [String] The name of the Batch account.
1112
+ # @param maxresults [Integer] The maximum number of items to return in the
1113
+ # response.
1114
+ # @param select [String] Comma separated list of properties that should be
1115
+ # returned. e.g. "properties/provisioningState". Only top level properties
1116
+ # under properties/ are valid for selection.
1117
+ # @param filter [String] OData filter expression. Valid properties for
1118
+ # filtering are:
1119
+ #
1120
+ # name
1121
+ # properties/allocationState
1122
+ # properties/allocationStateTransitionTime
1123
+ # properties/creationTime
1124
+ # properties/provisioningState
1125
+ # properties/provisioningStateTransitionTime
1126
+ # properties/lastModified
1127
+ # properties/vmSize
1128
+ # properties/interNodeCommunication
1129
+ # properties/scaleSettings/autoScale
1130
+ # properties/scaleSettings/fixedScale
1131
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1132
+ # will be added to the HTTP request.
1133
+ #
1134
+ # @return [ListPoolsResult] which provide lazy access to pages of the response.
1135
+ #
1136
+ def list_by_batch_account_as_lazy(resource_group_name, account_name, maxresults:nil, select:nil, filter:nil, custom_headers:nil)
1137
+ response = list_by_batch_account_async(resource_group_name, account_name, maxresults:maxresults, select:select, filter:filter, custom_headers:custom_headers).value!
1138
+ unless response.nil?
1139
+ page = response.body
1140
+ page.next_method = Proc.new do |next_page_link|
1141
+ list_by_batch_account_next_async(next_page_link, custom_headers:custom_headers)
1142
+ end
1143
+ page
1144
+ end
1145
+ end
1146
+
1147
+ end
1148
+ end