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,1295 @@
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_04_01
7
+ #
8
+ # BatchAccountOperations
9
+ #
10
+ class BatchAccountOperations
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the BatchAccountOperations 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
+ # Creates a new Batch account with the specified parameters. Existing accounts
26
+ # cannot be updated with this API and should instead be updated with the Update
27
+ # Batch Account API.
28
+ #
29
+ # @param resource_group_name [String] The name of the resource group that
30
+ # contains the Batch account.
31
+ # @param account_name [String] A name for the Batch account which must be
32
+ # unique within the region. Batch account names must be between 3 and 24
33
+ # characters in length and must use only numbers and lowercase letters. This
34
+ # name is used as part of the DNS name that is used to access the Batch service
35
+ # in the region in which the account is created. For example:
36
+ # http://accountname.region.batch.azure.com/.
37
+ # @param parameters [BatchAccountCreateParameters] Additional parameters for
38
+ # account creation.
39
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
40
+ # will be added to the HTTP request.
41
+ #
42
+ # @return [BatchAccount] operation results.
43
+ #
44
+ def create(resource_group_name, account_name, parameters, custom_headers:nil)
45
+ response = create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
46
+ response.body unless response.nil?
47
+ end
48
+
49
+ #
50
+ # @param resource_group_name [String] The name of the resource group that
51
+ # contains the Batch account.
52
+ # @param account_name [String] A name for the Batch account which must be
53
+ # unique within the region. Batch account names must be between 3 and 24
54
+ # characters in length and must use only numbers and lowercase letters. This
55
+ # name is used as part of the DNS name that is used to access the Batch service
56
+ # in the region in which the account is created. For example:
57
+ # http://accountname.region.batch.azure.com/.
58
+ # @param parameters [BatchAccountCreateParameters] Additional parameters for
59
+ # account creation.
60
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
61
+ # will be added to the HTTP request.
62
+ #
63
+ # @return [Concurrent::Promise] promise which provides async access to http
64
+ # response.
65
+ #
66
+ def create_async(resource_group_name, account_name, parameters, custom_headers:nil)
67
+ # Send request
68
+ promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers)
69
+
70
+ promise = promise.then do |response|
71
+ # Defining deserialization method.
72
+ deserialize_method = lambda do |parsed_response|
73
+ result_mapper = Azure::Batch::Mgmt::V2019_04_01::Models::BatchAccount.mapper()
74
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
75
+ end
76
+
77
+ # Waiting for response.
78
+ @client.get_long_running_operation_result(response, deserialize_method)
79
+ end
80
+
81
+ promise
82
+ end
83
+
84
+ #
85
+ # Updates the properties of an existing Batch account.
86
+ #
87
+ # @param resource_group_name [String] The name of the resource group that
88
+ # contains the Batch account.
89
+ # @param account_name [String] The name of the Batch account.
90
+ # @param parameters [BatchAccountUpdateParameters] Additional parameters for
91
+ # account update.
92
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
93
+ # will be added to the HTTP request.
94
+ #
95
+ # @return [BatchAccount] operation results.
96
+ #
97
+ def update(resource_group_name, account_name, parameters, custom_headers:nil)
98
+ response = update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
99
+ response.body unless response.nil?
100
+ end
101
+
102
+ #
103
+ # Updates the properties of an existing Batch account.
104
+ #
105
+ # @param resource_group_name [String] The name of the resource group that
106
+ # contains the Batch account.
107
+ # @param account_name [String] The name of the Batch account.
108
+ # @param parameters [BatchAccountUpdateParameters] Additional parameters for
109
+ # account update.
110
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
111
+ # will be added to the HTTP request.
112
+ #
113
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
114
+ #
115
+ def update_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil)
116
+ update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
117
+ end
118
+
119
+ #
120
+ # Updates the properties of an existing Batch account.
121
+ #
122
+ # @param resource_group_name [String] The name of the resource group that
123
+ # contains the Batch account.
124
+ # @param account_name [String] The name of the Batch account.
125
+ # @param parameters [BatchAccountUpdateParameters] Additional parameters for
126
+ # account update.
127
+ # @param [Hash{String => String}] A hash of custom headers that will be added
128
+ # to the HTTP request.
129
+ #
130
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
131
+ #
132
+ def update_async(resource_group_name, account_name, parameters, custom_headers:nil)
133
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
134
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
135
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
136
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
137
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
138
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
139
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
140
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
141
+
142
+
143
+ request_headers = {}
144
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
145
+
146
+ # Set Headers
147
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
148
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
149
+
150
+ # Serialize Request
151
+ request_mapper = Azure::Batch::Mgmt::V2019_04_01::Models::BatchAccountUpdateParameters.mapper()
152
+ request_content = @client.serialize(request_mapper, parameters)
153
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
154
+
155
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}'
156
+
157
+ request_url = @base_url || @client.base_url
158
+
159
+ options = {
160
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
161
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
162
+ query_params: {'api-version' => @client.api_version},
163
+ body: request_content,
164
+ headers: request_headers.merge(custom_headers || {}),
165
+ base_url: request_url
166
+ }
167
+ promise = @client.make_request_async(:patch, 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_04_01::Models::BatchAccount.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
+ # Deletes the specified Batch account.
200
+ #
201
+ # @param resource_group_name [String] The name of the resource group that
202
+ # contains the Batch account.
203
+ # @param account_name [String] The name of the Batch account.
204
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
205
+ # will be added to the HTTP request.
206
+ #
207
+ def delete(resource_group_name, account_name, custom_headers:nil)
208
+ response = delete_async(resource_group_name, account_name, custom_headers:custom_headers).value!
209
+ nil
210
+ end
211
+
212
+ #
213
+ # @param resource_group_name [String] The name of the resource group that
214
+ # contains the Batch account.
215
+ # @param account_name [String] The name of the Batch account.
216
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
217
+ # will be added to the HTTP request.
218
+ #
219
+ # @return [Concurrent::Promise] promise which provides async access to http
220
+ # response.
221
+ #
222
+ def delete_async(resource_group_name, account_name, custom_headers:nil)
223
+ # Send request
224
+ promise = begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers)
225
+
226
+ promise = promise.then do |response|
227
+ # Defining deserialization method.
228
+ deserialize_method = lambda do |parsed_response|
229
+ end
230
+
231
+ # Waiting for response.
232
+ @client.get_long_running_operation_result(response, deserialize_method)
233
+ end
234
+
235
+ promise
236
+ end
237
+
238
+ #
239
+ # Gets information about the specified Batch account.
240
+ #
241
+ # @param resource_group_name [String] The name of the resource group that
242
+ # contains the Batch account.
243
+ # @param account_name [String] The name of the Batch account.
244
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
245
+ # will be added to the HTTP request.
246
+ #
247
+ # @return [BatchAccount] operation results.
248
+ #
249
+ def get(resource_group_name, account_name, custom_headers:nil)
250
+ response = get_async(resource_group_name, account_name, custom_headers:custom_headers).value!
251
+ response.body unless response.nil?
252
+ end
253
+
254
+ #
255
+ # Gets information about the specified Batch account.
256
+ #
257
+ # @param resource_group_name [String] The name of the resource group that
258
+ # contains the Batch account.
259
+ # @param account_name [String] The name of the Batch account.
260
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
261
+ # will be added to the HTTP request.
262
+ #
263
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
264
+ #
265
+ def get_with_http_info(resource_group_name, account_name, custom_headers:nil)
266
+ get_async(resource_group_name, account_name, custom_headers:custom_headers).value!
267
+ end
268
+
269
+ #
270
+ # Gets information about the specified Batch account.
271
+ #
272
+ # @param resource_group_name [String] The name of the resource group that
273
+ # contains the Batch account.
274
+ # @param account_name [String] The name of the Batch account.
275
+ # @param [Hash{String => String}] A hash of custom headers that will be added
276
+ # to the HTTP request.
277
+ #
278
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
279
+ #
280
+ def get_async(resource_group_name, account_name, custom_headers:nil)
281
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
282
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
283
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
284
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
285
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
286
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
287
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
288
+
289
+
290
+ request_headers = {}
291
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
292
+
293
+ # Set Headers
294
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
295
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
296
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}'
297
+
298
+ request_url = @base_url || @client.base_url
299
+
300
+ options = {
301
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
302
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
303
+ query_params: {'api-version' => @client.api_version},
304
+ headers: request_headers.merge(custom_headers || {}),
305
+ base_url: request_url
306
+ }
307
+ promise = @client.make_request_async(:get, path_template, options)
308
+
309
+ promise = promise.then do |result|
310
+ http_response = result.response
311
+ status_code = http_response.status
312
+ response_content = http_response.body
313
+ unless status_code == 200
314
+ error_model = JSON.load(response_content)
315
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
316
+ end
317
+
318
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
319
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
320
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
321
+ # Deserialize Response
322
+ if status_code == 200
323
+ begin
324
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
325
+ result_mapper = Azure::Batch::Mgmt::V2019_04_01::Models::BatchAccount.mapper()
326
+ result.body = @client.deserialize(result_mapper, parsed_response)
327
+ rescue Exception => e
328
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
329
+ end
330
+ end
331
+
332
+ result
333
+ end
334
+
335
+ promise.execute
336
+ end
337
+
338
+ #
339
+ # Gets information about the Batch accounts associated with the subscription.
340
+ #
341
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
342
+ # will be added to the HTTP request.
343
+ #
344
+ # @return [Array<BatchAccount>] operation results.
345
+ #
346
+ def list(custom_headers:nil)
347
+ first_page = list_as_lazy(custom_headers:custom_headers)
348
+ first_page.get_all_items
349
+ end
350
+
351
+ #
352
+ # Gets information about the Batch accounts associated with the subscription.
353
+ #
354
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
355
+ # will be added to the HTTP request.
356
+ #
357
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
358
+ #
359
+ def list_with_http_info(custom_headers:nil)
360
+ list_async(custom_headers:custom_headers).value!
361
+ end
362
+
363
+ #
364
+ # Gets information about the Batch accounts associated with the subscription.
365
+ #
366
+ # @param [Hash{String => String}] A hash of custom headers that will be added
367
+ # to the HTTP request.
368
+ #
369
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
370
+ #
371
+ def list_async(custom_headers:nil)
372
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
373
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
374
+
375
+
376
+ request_headers = {}
377
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
378
+
379
+ # Set Headers
380
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
381
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
382
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts'
383
+
384
+ request_url = @base_url || @client.base_url
385
+
386
+ options = {
387
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
388
+ path_params: {'subscriptionId' => @client.subscription_id},
389
+ query_params: {'api-version' => @client.api_version},
390
+ headers: request_headers.merge(custom_headers || {}),
391
+ base_url: request_url
392
+ }
393
+ promise = @client.make_request_async(:get, path_template, options)
394
+
395
+ promise = promise.then do |result|
396
+ http_response = result.response
397
+ status_code = http_response.status
398
+ response_content = http_response.body
399
+ unless status_code == 200
400
+ error_model = JSON.load(response_content)
401
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
402
+ end
403
+
404
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
405
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
406
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
407
+ # Deserialize Response
408
+ if status_code == 200
409
+ begin
410
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
411
+ result_mapper = Azure::Batch::Mgmt::V2019_04_01::Models::BatchAccountListResult.mapper()
412
+ result.body = @client.deserialize(result_mapper, parsed_response)
413
+ rescue Exception => e
414
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
415
+ end
416
+ end
417
+
418
+ result
419
+ end
420
+
421
+ promise.execute
422
+ end
423
+
424
+ #
425
+ # Gets information about the Batch accounts associated with the specified
426
+ # resource group.
427
+ #
428
+ # @param resource_group_name [String] The name of the resource group that
429
+ # contains the Batch 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 [Array<BatchAccount>] operation results.
434
+ #
435
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
436
+ first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
437
+ first_page.get_all_items
438
+ end
439
+
440
+ #
441
+ # Gets information about the Batch accounts associated with the specified
442
+ # resource group.
443
+ #
444
+ # @param resource_group_name [String] The name of the resource group that
445
+ # contains the Batch account.
446
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
447
+ # will be added to the HTTP request.
448
+ #
449
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
450
+ #
451
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
452
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
453
+ end
454
+
455
+ #
456
+ # Gets information about the Batch accounts associated with the specified
457
+ # resource group.
458
+ #
459
+ # @param resource_group_name [String] The name of the resource group that
460
+ # contains the Batch account.
461
+ # @param [Hash{String => String}] A hash of custom headers that will be added
462
+ # to the HTTP request.
463
+ #
464
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
465
+ #
466
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
467
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
468
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
469
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
470
+
471
+
472
+ request_headers = {}
473
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
474
+
475
+ # Set Headers
476
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
477
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
478
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts'
479
+
480
+ request_url = @base_url || @client.base_url
481
+
482
+ options = {
483
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
484
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
485
+ query_params: {'api-version' => @client.api_version},
486
+ headers: request_headers.merge(custom_headers || {}),
487
+ base_url: request_url
488
+ }
489
+ promise = @client.make_request_async(:get, path_template, options)
490
+
491
+ promise = promise.then do |result|
492
+ http_response = result.response
493
+ status_code = http_response.status
494
+ response_content = http_response.body
495
+ unless status_code == 200
496
+ error_model = JSON.load(response_content)
497
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
498
+ end
499
+
500
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
501
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
502
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
503
+ # Deserialize Response
504
+ if status_code == 200
505
+ begin
506
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
507
+ result_mapper = Azure::Batch::Mgmt::V2019_04_01::Models::BatchAccountListResult.mapper()
508
+ result.body = @client.deserialize(result_mapper, parsed_response)
509
+ rescue Exception => e
510
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
511
+ end
512
+ end
513
+
514
+ result
515
+ end
516
+
517
+ promise.execute
518
+ end
519
+
520
+ #
521
+ # Synchronizes access keys for the auto-storage account configured for the
522
+ # specified Batch account.
523
+ #
524
+ # @param resource_group_name [String] The name of the resource group that
525
+ # contains the Batch account.
526
+ # @param account_name [String] The name of the Batch account.
527
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
528
+ # will be added to the HTTP request.
529
+ #
530
+ #
531
+ def synchronize_auto_storage_keys(resource_group_name, account_name, custom_headers:nil)
532
+ response = synchronize_auto_storage_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value!
533
+ nil
534
+ end
535
+
536
+ #
537
+ # Synchronizes access keys for the auto-storage account configured for the
538
+ # specified Batch account.
539
+ #
540
+ # @param resource_group_name [String] The name of the resource group that
541
+ # contains the Batch account.
542
+ # @param account_name [String] The name of the Batch account.
543
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
544
+ # will be added to the HTTP request.
545
+ #
546
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
547
+ #
548
+ def synchronize_auto_storage_keys_with_http_info(resource_group_name, account_name, custom_headers:nil)
549
+ synchronize_auto_storage_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value!
550
+ end
551
+
552
+ #
553
+ # Synchronizes access keys for the auto-storage account configured for the
554
+ # specified Batch account.
555
+ #
556
+ # @param resource_group_name [String] The name of the resource group that
557
+ # contains the Batch account.
558
+ # @param account_name [String] The name of the Batch account.
559
+ # @param [Hash{String => String}] A hash of custom headers that will be added
560
+ # to the HTTP request.
561
+ #
562
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
563
+ #
564
+ def synchronize_auto_storage_keys_async(resource_group_name, account_name, custom_headers:nil)
565
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
566
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
567
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
568
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
569
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
570
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
571
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
572
+
573
+
574
+ request_headers = {}
575
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
576
+
577
+ # Set Headers
578
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
579
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
580
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/syncAutoStorageKeys'
581
+
582
+ request_url = @base_url || @client.base_url
583
+
584
+ options = {
585
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
586
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
587
+ query_params: {'api-version' => @client.api_version},
588
+ headers: request_headers.merge(custom_headers || {}),
589
+ base_url: request_url
590
+ }
591
+ promise = @client.make_request_async(:post, path_template, options)
592
+
593
+ promise = promise.then do |result|
594
+ http_response = result.response
595
+ status_code = http_response.status
596
+ response_content = http_response.body
597
+ unless status_code == 204
598
+ error_model = JSON.load(response_content)
599
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
600
+ end
601
+
602
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
603
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
604
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
605
+
606
+ result
607
+ end
608
+
609
+ promise.execute
610
+ end
611
+
612
+ #
613
+ # Regenerates the specified account key for the Batch account.
614
+ #
615
+ # @param resource_group_name [String] The name of the resource group that
616
+ # contains the Batch account.
617
+ # @param account_name [String] The name of the Batch account.
618
+ # @param parameters [BatchAccountRegenerateKeyParameters] The type of key to
619
+ # regenerate.
620
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
621
+ # will be added to the HTTP request.
622
+ #
623
+ # @return [BatchAccountKeys] operation results.
624
+ #
625
+ def regenerate_key(resource_group_name, account_name, parameters, custom_headers:nil)
626
+ response = regenerate_key_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
627
+ response.body unless response.nil?
628
+ end
629
+
630
+ #
631
+ # Regenerates the specified account key for the Batch account.
632
+ #
633
+ # @param resource_group_name [String] The name of the resource group that
634
+ # contains the Batch account.
635
+ # @param account_name [String] The name of the Batch account.
636
+ # @param parameters [BatchAccountRegenerateKeyParameters] The type of key to
637
+ # regenerate.
638
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
639
+ # will be added to the HTTP request.
640
+ #
641
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
642
+ #
643
+ def regenerate_key_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil)
644
+ regenerate_key_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
645
+ end
646
+
647
+ #
648
+ # Regenerates the specified account key for the Batch account.
649
+ #
650
+ # @param resource_group_name [String] The name of the resource group that
651
+ # contains the Batch account.
652
+ # @param account_name [String] The name of the Batch account.
653
+ # @param parameters [BatchAccountRegenerateKeyParameters] The type of key to
654
+ # regenerate.
655
+ # @param [Hash{String => String}] A hash of custom headers that will be added
656
+ # to the HTTP request.
657
+ #
658
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
659
+ #
660
+ def regenerate_key_async(resource_group_name, account_name, parameters, custom_headers:nil)
661
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
662
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
663
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
664
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
665
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
666
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
667
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
668
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
669
+
670
+
671
+ request_headers = {}
672
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
673
+
674
+ # Set Headers
675
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
676
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
677
+
678
+ # Serialize Request
679
+ request_mapper = Azure::Batch::Mgmt::V2019_04_01::Models::BatchAccountRegenerateKeyParameters.mapper()
680
+ request_content = @client.serialize(request_mapper, parameters)
681
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
682
+
683
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/regenerateKeys'
684
+
685
+ request_url = @base_url || @client.base_url
686
+
687
+ options = {
688
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
689
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
690
+ query_params: {'api-version' => @client.api_version},
691
+ body: request_content,
692
+ headers: request_headers.merge(custom_headers || {}),
693
+ base_url: request_url
694
+ }
695
+ promise = @client.make_request_async(:post, path_template, options)
696
+
697
+ promise = promise.then do |result|
698
+ http_response = result.response
699
+ status_code = http_response.status
700
+ response_content = http_response.body
701
+ unless status_code == 200
702
+ error_model = JSON.load(response_content)
703
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
704
+ end
705
+
706
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
707
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
708
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
709
+ # Deserialize Response
710
+ if status_code == 200
711
+ begin
712
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
713
+ result_mapper = Azure::Batch::Mgmt::V2019_04_01::Models::BatchAccountKeys.mapper()
714
+ result.body = @client.deserialize(result_mapper, parsed_response)
715
+ rescue Exception => e
716
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
717
+ end
718
+ end
719
+
720
+ result
721
+ end
722
+
723
+ promise.execute
724
+ end
725
+
726
+ #
727
+ # Gets the account keys for the specified Batch account.
728
+ #
729
+ # This operation applies only to Batch accounts created with a
730
+ # poolAllocationMode of 'BatchService'. If the Batch account was created with a
731
+ # poolAllocationMode of 'UserSubscription', clients cannot use access to keys
732
+ # to authenticate, and must use Azure Active Directory instead. In this case,
733
+ # getting the keys will fail.
734
+ #
735
+ # @param resource_group_name [String] The name of the resource group that
736
+ # contains the Batch account.
737
+ # @param account_name [String] The name of the Batch account.
738
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
739
+ # will be added to the HTTP request.
740
+ #
741
+ # @return [BatchAccountKeys] operation results.
742
+ #
743
+ def get_keys(resource_group_name, account_name, custom_headers:nil)
744
+ response = get_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value!
745
+ response.body unless response.nil?
746
+ end
747
+
748
+ #
749
+ # Gets the account keys for the specified Batch account.
750
+ #
751
+ # This operation applies only to Batch accounts created with a
752
+ # poolAllocationMode of 'BatchService'. If the Batch account was created with a
753
+ # poolAllocationMode of 'UserSubscription', clients cannot use access to keys
754
+ # to authenticate, and must use Azure Active Directory instead. In this case,
755
+ # getting the keys will fail.
756
+ #
757
+ # @param resource_group_name [String] The name of the resource group that
758
+ # contains the Batch account.
759
+ # @param account_name [String] The name of the Batch account.
760
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
761
+ # will be added to the HTTP request.
762
+ #
763
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
764
+ #
765
+ def get_keys_with_http_info(resource_group_name, account_name, custom_headers:nil)
766
+ get_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value!
767
+ end
768
+
769
+ #
770
+ # Gets the account keys for the specified Batch account.
771
+ #
772
+ # This operation applies only to Batch accounts created with a
773
+ # poolAllocationMode of 'BatchService'. If the Batch account was created with a
774
+ # poolAllocationMode of 'UserSubscription', clients cannot use access to keys
775
+ # to authenticate, and must use Azure Active Directory instead. In this case,
776
+ # getting the keys will fail.
777
+ #
778
+ # @param resource_group_name [String] The name of the resource group that
779
+ # contains the Batch account.
780
+ # @param account_name [String] The name of the Batch account.
781
+ # @param [Hash{String => String}] A hash of custom headers that will be added
782
+ # to the HTTP request.
783
+ #
784
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
785
+ #
786
+ def get_keys_async(resource_group_name, account_name, custom_headers:nil)
787
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
788
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
789
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
790
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
791
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
792
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
793
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
794
+
795
+
796
+ request_headers = {}
797
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
798
+
799
+ # Set Headers
800
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
801
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
802
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys'
803
+
804
+ request_url = @base_url || @client.base_url
805
+
806
+ options = {
807
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
808
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
809
+ query_params: {'api-version' => @client.api_version},
810
+ headers: request_headers.merge(custom_headers || {}),
811
+ base_url: request_url
812
+ }
813
+ promise = @client.make_request_async(:post, path_template, options)
814
+
815
+ promise = promise.then do |result|
816
+ http_response = result.response
817
+ status_code = http_response.status
818
+ response_content = http_response.body
819
+ unless status_code == 200
820
+ error_model = JSON.load(response_content)
821
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
822
+ end
823
+
824
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
825
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
826
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
827
+ # Deserialize Response
828
+ if status_code == 200
829
+ begin
830
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
831
+ result_mapper = Azure::Batch::Mgmt::V2019_04_01::Models::BatchAccountKeys.mapper()
832
+ result.body = @client.deserialize(result_mapper, parsed_response)
833
+ rescue Exception => e
834
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
835
+ end
836
+ end
837
+
838
+ result
839
+ end
840
+
841
+ promise.execute
842
+ end
843
+
844
+ #
845
+ # Creates a new Batch account with the specified parameters. Existing accounts
846
+ # cannot be updated with this API and should instead be updated with the Update
847
+ # Batch Account API.
848
+ #
849
+ # @param resource_group_name [String] The name of the resource group that
850
+ # contains the Batch account.
851
+ # @param account_name [String] A name for the Batch account which must be
852
+ # unique within the region. Batch account names must be between 3 and 24
853
+ # characters in length and must use only numbers and lowercase letters. This
854
+ # name is used as part of the DNS name that is used to access the Batch service
855
+ # in the region in which the account is created. For example:
856
+ # http://accountname.region.batch.azure.com/.
857
+ # @param parameters [BatchAccountCreateParameters] Additional parameters for
858
+ # account creation.
859
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
860
+ # will be added to the HTTP request.
861
+ #
862
+ # @return [BatchAccount] operation results.
863
+ #
864
+ def begin_create(resource_group_name, account_name, parameters, custom_headers:nil)
865
+ response = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
866
+ response.body unless response.nil?
867
+ end
868
+
869
+ #
870
+ # Creates a new Batch account with the specified parameters. Existing accounts
871
+ # cannot be updated with this API and should instead be updated with the Update
872
+ # Batch Account API.
873
+ #
874
+ # @param resource_group_name [String] The name of the resource group that
875
+ # contains the Batch account.
876
+ # @param account_name [String] A name for the Batch account which must be
877
+ # unique within the region. Batch account names must be between 3 and 24
878
+ # characters in length and must use only numbers and lowercase letters. This
879
+ # name is used as part of the DNS name that is used to access the Batch service
880
+ # in the region in which the account is created. For example:
881
+ # http://accountname.region.batch.azure.com/.
882
+ # @param parameters [BatchAccountCreateParameters] Additional parameters for
883
+ # account creation.
884
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
885
+ # will be added to the HTTP request.
886
+ #
887
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
888
+ #
889
+ def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil)
890
+ begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
891
+ end
892
+
893
+ #
894
+ # Creates a new Batch account with the specified parameters. Existing accounts
895
+ # cannot be updated with this API and should instead be updated with the Update
896
+ # Batch Account API.
897
+ #
898
+ # @param resource_group_name [String] The name of the resource group that
899
+ # contains the Batch account.
900
+ # @param account_name [String] A name for the Batch account which must be
901
+ # unique within the region. Batch account names must be between 3 and 24
902
+ # characters in length and must use only numbers and lowercase letters. This
903
+ # name is used as part of the DNS name that is used to access the Batch service
904
+ # in the region in which the account is created. For example:
905
+ # http://accountname.region.batch.azure.com/.
906
+ # @param parameters [BatchAccountCreateParameters] Additional parameters for
907
+ # account creation.
908
+ # @param [Hash{String => String}] A hash of custom headers that will be added
909
+ # to the HTTP request.
910
+ #
911
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
912
+ #
913
+ def begin_create_async(resource_group_name, account_name, parameters, custom_headers:nil)
914
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
915
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
916
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
917
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
918
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
919
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
920
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
921
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
922
+
923
+
924
+ request_headers = {}
925
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
926
+
927
+ # Set Headers
928
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
929
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
930
+
931
+ # Serialize Request
932
+ request_mapper = Azure::Batch::Mgmt::V2019_04_01::Models::BatchAccountCreateParameters.mapper()
933
+ request_content = @client.serialize(request_mapper, parameters)
934
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
935
+
936
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}'
937
+
938
+ request_url = @base_url || @client.base_url
939
+
940
+ options = {
941
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
942
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
943
+ query_params: {'api-version' => @client.api_version},
944
+ body: request_content,
945
+ headers: request_headers.merge(custom_headers || {}),
946
+ base_url: request_url
947
+ }
948
+ promise = @client.make_request_async(:put, path_template, options)
949
+
950
+ promise = promise.then do |result|
951
+ http_response = result.response
952
+ status_code = http_response.status
953
+ response_content = http_response.body
954
+ unless status_code == 200 || status_code == 202
955
+ error_model = JSON.load(response_content)
956
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
957
+ end
958
+
959
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
960
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
961
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
962
+ # Deserialize Response
963
+ if status_code == 200
964
+ begin
965
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
966
+ result_mapper = Azure::Batch::Mgmt::V2019_04_01::Models::BatchAccount.mapper()
967
+ result.body = @client.deserialize(result_mapper, parsed_response)
968
+ rescue Exception => e
969
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
970
+ end
971
+ end
972
+
973
+ result
974
+ end
975
+
976
+ promise.execute
977
+ end
978
+
979
+ #
980
+ # Deletes the specified Batch account.
981
+ #
982
+ # @param resource_group_name [String] The name of the resource group that
983
+ # contains the Batch account.
984
+ # @param account_name [String] The name of the Batch account.
985
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
986
+ # will be added to the HTTP request.
987
+ #
988
+ #
989
+ def begin_delete(resource_group_name, account_name, custom_headers:nil)
990
+ response = begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers).value!
991
+ nil
992
+ end
993
+
994
+ #
995
+ # Deletes the specified Batch account.
996
+ #
997
+ # @param resource_group_name [String] The name of the resource group that
998
+ # contains the Batch account.
999
+ # @param account_name [String] The name of the Batch account.
1000
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1001
+ # will be added to the HTTP request.
1002
+ #
1003
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1004
+ #
1005
+ def begin_delete_with_http_info(resource_group_name, account_name, custom_headers:nil)
1006
+ begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers).value!
1007
+ end
1008
+
1009
+ #
1010
+ # Deletes the specified Batch account.
1011
+ #
1012
+ # @param resource_group_name [String] The name of the resource group that
1013
+ # contains the Batch account.
1014
+ # @param account_name [String] The name of the Batch account.
1015
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1016
+ # to the HTTP request.
1017
+ #
1018
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1019
+ #
1020
+ def begin_delete_async(resource_group_name, account_name, custom_headers:nil)
1021
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1022
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
1023
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
1024
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
1025
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
1026
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1027
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1028
+
1029
+
1030
+ request_headers = {}
1031
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1032
+
1033
+ # Set Headers
1034
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1035
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1036
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}'
1037
+
1038
+ request_url = @base_url || @client.base_url
1039
+
1040
+ options = {
1041
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1042
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
1043
+ query_params: {'api-version' => @client.api_version},
1044
+ headers: request_headers.merge(custom_headers || {}),
1045
+ base_url: request_url
1046
+ }
1047
+ promise = @client.make_request_async(:delete, path_template, options)
1048
+
1049
+ promise = promise.then do |result|
1050
+ http_response = result.response
1051
+ status_code = http_response.status
1052
+ response_content = http_response.body
1053
+ unless status_code == 200 || status_code == 202 || status_code == 204
1054
+ error_model = JSON.load(response_content)
1055
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1056
+ end
1057
+
1058
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1059
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1060
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1061
+
1062
+ result
1063
+ end
1064
+
1065
+ promise.execute
1066
+ end
1067
+
1068
+ #
1069
+ # Gets information about the Batch accounts associated with the subscription.
1070
+ #
1071
+ # @param next_page_link [String] The NextLink from the previous successful call
1072
+ # to List operation.
1073
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1074
+ # will be added to the HTTP request.
1075
+ #
1076
+ # @return [BatchAccountListResult] operation results.
1077
+ #
1078
+ def list_next(next_page_link, custom_headers:nil)
1079
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1080
+ response.body unless response.nil?
1081
+ end
1082
+
1083
+ #
1084
+ # Gets information about the Batch accounts associated with the subscription.
1085
+ #
1086
+ # @param next_page_link [String] The NextLink from the previous successful call
1087
+ # to List operation.
1088
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1089
+ # will be added to the HTTP request.
1090
+ #
1091
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1092
+ #
1093
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1094
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1095
+ end
1096
+
1097
+ #
1098
+ # Gets information about the Batch accounts associated with the subscription.
1099
+ #
1100
+ # @param next_page_link [String] The NextLink from the previous successful call
1101
+ # to List operation.
1102
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1103
+ # to the HTTP request.
1104
+ #
1105
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1106
+ #
1107
+ def list_next_async(next_page_link, custom_headers:nil)
1108
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1109
+
1110
+
1111
+ request_headers = {}
1112
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1113
+
1114
+ # Set Headers
1115
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1116
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1117
+ path_template = '{nextLink}'
1118
+
1119
+ request_url = @base_url || @client.base_url
1120
+
1121
+ options = {
1122
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1123
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1124
+ headers: request_headers.merge(custom_headers || {}),
1125
+ base_url: request_url
1126
+ }
1127
+ promise = @client.make_request_async(:get, path_template, options)
1128
+
1129
+ promise = promise.then do |result|
1130
+ http_response = result.response
1131
+ status_code = http_response.status
1132
+ response_content = http_response.body
1133
+ unless status_code == 200
1134
+ error_model = JSON.load(response_content)
1135
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1136
+ end
1137
+
1138
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1139
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1140
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1141
+ # Deserialize Response
1142
+ if status_code == 200
1143
+ begin
1144
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1145
+ result_mapper = Azure::Batch::Mgmt::V2019_04_01::Models::BatchAccountListResult.mapper()
1146
+ result.body = @client.deserialize(result_mapper, parsed_response)
1147
+ rescue Exception => e
1148
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1149
+ end
1150
+ end
1151
+
1152
+ result
1153
+ end
1154
+
1155
+ promise.execute
1156
+ end
1157
+
1158
+ #
1159
+ # Gets information about the Batch accounts associated with the specified
1160
+ # resource group.
1161
+ #
1162
+ # @param next_page_link [String] The NextLink from the previous successful call
1163
+ # to List operation.
1164
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1165
+ # will be added to the HTTP request.
1166
+ #
1167
+ # @return [BatchAccountListResult] operation results.
1168
+ #
1169
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
1170
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1171
+ response.body unless response.nil?
1172
+ end
1173
+
1174
+ #
1175
+ # Gets information about the Batch accounts associated with the specified
1176
+ # resource group.
1177
+ #
1178
+ # @param next_page_link [String] The NextLink from the previous successful call
1179
+ # to List operation.
1180
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1181
+ # will be added to the HTTP request.
1182
+ #
1183
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1184
+ #
1185
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
1186
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1187
+ end
1188
+
1189
+ #
1190
+ # Gets information about the Batch accounts associated with the specified
1191
+ # resource group.
1192
+ #
1193
+ # @param next_page_link [String] The NextLink from the previous successful call
1194
+ # to List operation.
1195
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1196
+ # to the HTTP request.
1197
+ #
1198
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1199
+ #
1200
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
1201
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1202
+
1203
+
1204
+ request_headers = {}
1205
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1206
+
1207
+ # Set Headers
1208
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1209
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1210
+ path_template = '{nextLink}'
1211
+
1212
+ request_url = @base_url || @client.base_url
1213
+
1214
+ options = {
1215
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1216
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1217
+ headers: request_headers.merge(custom_headers || {}),
1218
+ base_url: request_url
1219
+ }
1220
+ promise = @client.make_request_async(:get, path_template, options)
1221
+
1222
+ promise = promise.then do |result|
1223
+ http_response = result.response
1224
+ status_code = http_response.status
1225
+ response_content = http_response.body
1226
+ unless status_code == 200
1227
+ error_model = JSON.load(response_content)
1228
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1229
+ end
1230
+
1231
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1232
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1233
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1234
+ # Deserialize Response
1235
+ if status_code == 200
1236
+ begin
1237
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1238
+ result_mapper = Azure::Batch::Mgmt::V2019_04_01::Models::BatchAccountListResult.mapper()
1239
+ result.body = @client.deserialize(result_mapper, parsed_response)
1240
+ rescue Exception => e
1241
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1242
+ end
1243
+ end
1244
+
1245
+ result
1246
+ end
1247
+
1248
+ promise.execute
1249
+ end
1250
+
1251
+ #
1252
+ # Gets information about the Batch accounts associated with the subscription.
1253
+ #
1254
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1255
+ # will be added to the HTTP request.
1256
+ #
1257
+ # @return [BatchAccountListResult] which provide lazy access to pages of the
1258
+ # response.
1259
+ #
1260
+ def list_as_lazy(custom_headers:nil)
1261
+ response = list_async(custom_headers:custom_headers).value!
1262
+ unless response.nil?
1263
+ page = response.body
1264
+ page.next_method = Proc.new do |next_page_link|
1265
+ list_next_async(next_page_link, custom_headers:custom_headers)
1266
+ end
1267
+ page
1268
+ end
1269
+ end
1270
+
1271
+ #
1272
+ # Gets information about the Batch accounts associated with the specified
1273
+ # resource group.
1274
+ #
1275
+ # @param resource_group_name [String] The name of the resource group that
1276
+ # contains the Batch account.
1277
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1278
+ # will be added to the HTTP request.
1279
+ #
1280
+ # @return [BatchAccountListResult] which provide lazy access to pages of the
1281
+ # response.
1282
+ #
1283
+ def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
1284
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
1285
+ unless response.nil?
1286
+ page = response.body
1287
+ page.next_method = Proc.new do |next_page_link|
1288
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
1289
+ end
1290
+ page
1291
+ end
1292
+ end
1293
+
1294
+ end
1295
+ end