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,117 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '2019-04-01/generated/azure_mgmt_batch/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::Batch::Mgmt::V2019_04_01
23
+ autoload :BatchAccountOperations, '2019-04-01/generated/azure_mgmt_batch/batch_account_operations.rb'
24
+ autoload :ApplicationPackageOperations, '2019-04-01/generated/azure_mgmt_batch/application_package_operations.rb'
25
+ autoload :ApplicationOperations, '2019-04-01/generated/azure_mgmt_batch/application_operations.rb'
26
+ autoload :Location, '2019-04-01/generated/azure_mgmt_batch/location.rb'
27
+ autoload :Operations, '2019-04-01/generated/azure_mgmt_batch/operations.rb'
28
+ autoload :CertificateOperations, '2019-04-01/generated/azure_mgmt_batch/certificate_operations.rb'
29
+ autoload :PoolOperations, '2019-04-01/generated/azure_mgmt_batch/pool_operations.rb'
30
+ autoload :BatchManagementClient, '2019-04-01/generated/azure_mgmt_batch/batch_management_client.rb'
31
+
32
+ module Models
33
+ autoload :FixedScaleSettings, '2019-04-01/generated/azure_mgmt_batch/models/fixed_scale_settings.rb'
34
+ autoload :AutoScaleSettings, '2019-04-01/generated/azure_mgmt_batch/models/auto_scale_settings.rb'
35
+ autoload :KeyVaultReference, '2019-04-01/generated/azure_mgmt_batch/models/key_vault_reference.rb'
36
+ autoload :ScaleSettings, '2019-04-01/generated/azure_mgmt_batch/models/scale_settings.rb'
37
+ autoload :DeploymentConfiguration, '2019-04-01/generated/azure_mgmt_batch/models/deployment_configuration.rb'
38
+ autoload :VirtualMachineFamilyCoreQuota, '2019-04-01/generated/azure_mgmt_batch/models/virtual_machine_family_core_quota.rb'
39
+ autoload :AutoStorageBaseProperties, '2019-04-01/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb'
40
+ autoload :BatchAccountUpdateParameters, '2019-04-01/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb'
41
+ autoload :BatchAccountCreateParameters, '2019-04-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb'
42
+ autoload :BatchAccountRegenerateKeyParameters, '2019-04-01/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb'
43
+ autoload :ActivateApplicationPackageParameters, '2019-04-01/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb'
44
+ autoload :AutoScaleRunError, '2019-04-01/generated/azure_mgmt_batch/models/auto_scale_run_error.rb'
45
+ autoload :OperationListResult, '2019-04-01/generated/azure_mgmt_batch/models/operation_list_result.rb'
46
+ autoload :AutoScaleRun, '2019-04-01/generated/azure_mgmt_batch/models/auto_scale_run.rb'
47
+ autoload :ListApplicationPackagesResult, '2019-04-01/generated/azure_mgmt_batch/models/list_application_packages_result.rb'
48
+ autoload :NetworkSecurityGroupRule, '2019-04-01/generated/azure_mgmt_batch/models/network_security_group_rule.rb'
49
+ autoload :Resource, '2019-04-01/generated/azure_mgmt_batch/models/resource.rb'
50
+ autoload :InboundNatPool, '2019-04-01/generated/azure_mgmt_batch/models/inbound_nat_pool.rb'
51
+ autoload :CertificateBaseProperties, '2019-04-01/generated/azure_mgmt_batch/models/certificate_base_properties.rb'
52
+ autoload :PoolEndpointConfiguration, '2019-04-01/generated/azure_mgmt_batch/models/pool_endpoint_configuration.rb'
53
+ autoload :Operation, '2019-04-01/generated/azure_mgmt_batch/models/operation.rb'
54
+ autoload :NetworkConfiguration, '2019-04-01/generated/azure_mgmt_batch/models/network_configuration.rb'
55
+ autoload :ListCertificatesResult, '2019-04-01/generated/azure_mgmt_batch/models/list_certificates_result.rb'
56
+ autoload :TaskSchedulingPolicy, '2019-04-01/generated/azure_mgmt_batch/models/task_scheduling_policy.rb'
57
+ autoload :ImageReference, '2019-04-01/generated/azure_mgmt_batch/models/image_reference.rb'
58
+ autoload :LinuxUserConfiguration, '2019-04-01/generated/azure_mgmt_batch/models/linux_user_configuration.rb'
59
+ autoload :DataDisk, '2019-04-01/generated/azure_mgmt_batch/models/data_disk.rb'
60
+ autoload :WindowsUserConfiguration, '2019-04-01/generated/azure_mgmt_batch/models/windows_user_configuration.rb'
61
+ autoload :ContainerConfiguration, '2019-04-01/generated/azure_mgmt_batch/models/container_configuration.rb'
62
+ autoload :UserAccount, '2019-04-01/generated/azure_mgmt_batch/models/user_account.rb'
63
+ autoload :CheckNameAvailabilityResult, '2019-04-01/generated/azure_mgmt_batch/models/check_name_availability_result.rb'
64
+ autoload :MetadataItem, '2019-04-01/generated/azure_mgmt_batch/models/metadata_item.rb'
65
+ autoload :BatchAccountKeys, '2019-04-01/generated/azure_mgmt_batch/models/batch_account_keys.rb'
66
+ autoload :ResourceFile, '2019-04-01/generated/azure_mgmt_batch/models/resource_file.rb'
67
+ autoload :ListApplicationsResult, '2019-04-01/generated/azure_mgmt_batch/models/list_applications_result.rb'
68
+ autoload :EnvironmentSetting, '2019-04-01/generated/azure_mgmt_batch/models/environment_setting.rb'
69
+ autoload :ProxyResource, '2019-04-01/generated/azure_mgmt_batch/models/proxy_resource.rb'
70
+ autoload :AutoUserSpecification, '2019-04-01/generated/azure_mgmt_batch/models/auto_user_specification.rb'
71
+ autoload :OperationDisplay, '2019-04-01/generated/azure_mgmt_batch/models/operation_display.rb'
72
+ autoload :UserIdentity, '2019-04-01/generated/azure_mgmt_batch/models/user_identity.rb'
73
+ autoload :WindowsConfiguration, '2019-04-01/generated/azure_mgmt_batch/models/windows_configuration.rb'
74
+ autoload :TaskContainerSettings, '2019-04-01/generated/azure_mgmt_batch/models/task_container_settings.rb'
75
+ autoload :VirtualMachineConfiguration, '2019-04-01/generated/azure_mgmt_batch/models/virtual_machine_configuration.rb'
76
+ autoload :StartTask, '2019-04-01/generated/azure_mgmt_batch/models/start_task.rb'
77
+ autoload :CheckNameAvailabilityParameters, '2019-04-01/generated/azure_mgmt_batch/models/check_name_availability_parameters.rb'
78
+ autoload :CertificateReference, '2019-04-01/generated/azure_mgmt_batch/models/certificate_reference.rb'
79
+ autoload :DeleteCertificateError, '2019-04-01/generated/azure_mgmt_batch/models/delete_certificate_error.rb'
80
+ autoload :ApplicationPackageReference, '2019-04-01/generated/azure_mgmt_batch/models/application_package_reference.rb'
81
+ autoload :ContainerRegistry, '2019-04-01/generated/azure_mgmt_batch/models/container_registry.rb'
82
+ autoload :ResizeError, '2019-04-01/generated/azure_mgmt_batch/models/resize_error.rb'
83
+ autoload :BatchLocationQuota, '2019-04-01/generated/azure_mgmt_batch/models/batch_location_quota.rb'
84
+ autoload :ResizeOperationStatus, '2019-04-01/generated/azure_mgmt_batch/models/resize_operation_status.rb'
85
+ autoload :BatchAccountListResult, '2019-04-01/generated/azure_mgmt_batch/models/batch_account_list_result.rb'
86
+ autoload :CloudServiceConfiguration, '2019-04-01/generated/azure_mgmt_batch/models/cloud_service_configuration.rb'
87
+ autoload :ListPoolsResult, '2019-04-01/generated/azure_mgmt_batch/models/list_pools_result.rb'
88
+ autoload :AutoStorageProperties, '2019-04-01/generated/azure_mgmt_batch/models/auto_storage_properties.rb'
89
+ autoload :BatchAccount, '2019-04-01/generated/azure_mgmt_batch/models/batch_account.rb'
90
+ autoload :Application, '2019-04-01/generated/azure_mgmt_batch/models/application.rb'
91
+ autoload :ApplicationPackage, '2019-04-01/generated/azure_mgmt_batch/models/application_package.rb'
92
+ autoload :Certificate, '2019-04-01/generated/azure_mgmt_batch/models/certificate.rb'
93
+ autoload :CertificateCreateOrUpdateParameters, '2019-04-01/generated/azure_mgmt_batch/models/certificate_create_or_update_parameters.rb'
94
+ autoload :Pool, '2019-04-01/generated/azure_mgmt_batch/models/pool.rb'
95
+ autoload :PoolAllocationMode, '2019-04-01/generated/azure_mgmt_batch/models/pool_allocation_mode.rb'
96
+ autoload :ProvisioningState, '2019-04-01/generated/azure_mgmt_batch/models/provisioning_state.rb'
97
+ autoload :AccountKeyType, '2019-04-01/generated/azure_mgmt_batch/models/account_key_type.rb'
98
+ autoload :PackageState, '2019-04-01/generated/azure_mgmt_batch/models/package_state.rb'
99
+ autoload :CertificateFormat, '2019-04-01/generated/azure_mgmt_batch/models/certificate_format.rb'
100
+ autoload :CertificateProvisioningState, '2019-04-01/generated/azure_mgmt_batch/models/certificate_provisioning_state.rb'
101
+ autoload :PoolProvisioningState, '2019-04-01/generated/azure_mgmt_batch/models/pool_provisioning_state.rb'
102
+ autoload :AllocationState, '2019-04-01/generated/azure_mgmt_batch/models/allocation_state.rb'
103
+ autoload :CachingType, '2019-04-01/generated/azure_mgmt_batch/models/caching_type.rb'
104
+ autoload :StorageAccountType, '2019-04-01/generated/azure_mgmt_batch/models/storage_account_type.rb'
105
+ autoload :ComputeNodeDeallocationOption, '2019-04-01/generated/azure_mgmt_batch/models/compute_node_deallocation_option.rb'
106
+ autoload :InterNodeCommunicationState, '2019-04-01/generated/azure_mgmt_batch/models/inter_node_communication_state.rb'
107
+ autoload :InboundEndpointProtocol, '2019-04-01/generated/azure_mgmt_batch/models/inbound_endpoint_protocol.rb'
108
+ autoload :NetworkSecurityGroupRuleAccess, '2019-04-01/generated/azure_mgmt_batch/models/network_security_group_rule_access.rb'
109
+ autoload :ComputeNodeFillType, '2019-04-01/generated/azure_mgmt_batch/models/compute_node_fill_type.rb'
110
+ autoload :ElevationLevel, '2019-04-01/generated/azure_mgmt_batch/models/elevation_level.rb'
111
+ autoload :LoginMode, '2019-04-01/generated/azure_mgmt_batch/models/login_mode.rb'
112
+ autoload :AutoUserScope, '2019-04-01/generated/azure_mgmt_batch/models/auto_user_scope.rb'
113
+ autoload :CertificateStoreLocation, '2019-04-01/generated/azure_mgmt_batch/models/certificate_store_location.rb'
114
+ autoload :CertificateVisibility, '2019-04-01/generated/azure_mgmt_batch/models/certificate_visibility.rb'
115
+ autoload :NameAvailabilityReason, '2019-04-01/generated/azure_mgmt_batch/models/name_availability_reason.rb'
116
+ end
117
+ end
@@ -0,0 +1,696 @@
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
+ # ApplicationOperations
9
+ #
10
+ class ApplicationOperations
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the ApplicationOperations 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
+ # Adds an application to the specified Batch account.
26
+ #
27
+ # @param resource_group_name [String] The name of the resource group that
28
+ # contains the Batch account.
29
+ # @param account_name [String] The name of the Batch account.
30
+ # @param application_name [String] The name of the application. This must be
31
+ # unique within the account.
32
+ # @param parameters [Application] The parameters for the request.
33
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
34
+ # will be added to the HTTP request.
35
+ #
36
+ # @return [Application] operation results.
37
+ #
38
+ def create(resource_group_name, account_name, application_name, parameters:nil, custom_headers:nil)
39
+ response = create_async(resource_group_name, account_name, application_name, parameters:parameters, custom_headers:custom_headers).value!
40
+ response.body unless response.nil?
41
+ end
42
+
43
+ #
44
+ # Adds an application to the specified Batch account.
45
+ #
46
+ # @param resource_group_name [String] The name of the resource group that
47
+ # contains the Batch account.
48
+ # @param account_name [String] The name of the Batch account.
49
+ # @param application_name [String] The name of the application. This must be
50
+ # unique within the account.
51
+ # @param parameters [Application] The parameters for the request.
52
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
53
+ # will be added to the HTTP request.
54
+ #
55
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
56
+ #
57
+ def create_with_http_info(resource_group_name, account_name, application_name, parameters:nil, custom_headers:nil)
58
+ create_async(resource_group_name, account_name, application_name, parameters:parameters, custom_headers:custom_headers).value!
59
+ end
60
+
61
+ #
62
+ # Adds an application to the specified Batch account.
63
+ #
64
+ # @param resource_group_name [String] The name of the resource group that
65
+ # contains the Batch account.
66
+ # @param account_name [String] The name of the Batch account.
67
+ # @param application_name [String] The name of the application. This must be
68
+ # unique within the account.
69
+ # @param parameters [Application] The parameters for the request.
70
+ # @param [Hash{String => String}] A hash of custom headers that will be added
71
+ # to the HTTP request.
72
+ #
73
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
74
+ #
75
+ def create_async(resource_group_name, account_name, application_name, parameters:nil, custom_headers:nil)
76
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
77
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
78
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
79
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
80
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
81
+ fail ArgumentError, 'application_name is nil' if application_name.nil?
82
+ fail ArgumentError, "'application_name' should satisfy the constraint - 'MaxLength': '64'" if !application_name.nil? && application_name.length > 64
83
+ fail ArgumentError, "'application_name' should satisfy the constraint - 'MinLength': '1'" if !application_name.nil? && application_name.length < 1
84
+ fail ArgumentError, "'application_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9_-]+$'" if !application_name.nil? && application_name.match(Regexp.new('^^[a-zA-Z0-9_-]+$$')).nil?
85
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
86
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
87
+
88
+
89
+ request_headers = {}
90
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
91
+
92
+ # Set Headers
93
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
94
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
95
+
96
+ # Serialize Request
97
+ request_mapper = Azure::Batch::Mgmt::V2019_04_01::Models::Application.mapper()
98
+ request_content = @client.serialize(request_mapper, parameters)
99
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
100
+
101
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}'
102
+
103
+ request_url = @base_url || @client.base_url
104
+
105
+ options = {
106
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
107
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'applicationName' => application_name,'subscriptionId' => @client.subscription_id},
108
+ query_params: {'api-version' => @client.api_version},
109
+ body: request_content,
110
+ headers: request_headers.merge(custom_headers || {}),
111
+ base_url: request_url
112
+ }
113
+ promise = @client.make_request_async(:put, path_template, options)
114
+
115
+ promise = promise.then do |result|
116
+ http_response = result.response
117
+ status_code = http_response.status
118
+ response_content = http_response.body
119
+ unless status_code == 200
120
+ error_model = JSON.load(response_content)
121
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
122
+ end
123
+
124
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
125
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
126
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
127
+ # Deserialize Response
128
+ if status_code == 200
129
+ begin
130
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
131
+ result_mapper = Azure::Batch::Mgmt::V2019_04_01::Models::Application.mapper()
132
+ result.body = @client.deserialize(result_mapper, parsed_response)
133
+ rescue Exception => e
134
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
135
+ end
136
+ end
137
+
138
+ result
139
+ end
140
+
141
+ promise.execute
142
+ end
143
+
144
+ #
145
+ # Deletes an application.
146
+ #
147
+ # @param resource_group_name [String] The name of the resource group that
148
+ # contains the Batch account.
149
+ # @param account_name [String] The name of the Batch account.
150
+ # @param application_name [String] The name of the application. This must be
151
+ # unique within the account.
152
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
153
+ # will be added to the HTTP request.
154
+ #
155
+ #
156
+ def delete(resource_group_name, account_name, application_name, custom_headers:nil)
157
+ response = delete_async(resource_group_name, account_name, application_name, custom_headers:custom_headers).value!
158
+ nil
159
+ end
160
+
161
+ #
162
+ # Deletes an application.
163
+ #
164
+ # @param resource_group_name [String] The name of the resource group that
165
+ # contains the Batch account.
166
+ # @param account_name [String] The name of the Batch account.
167
+ # @param application_name [String] The name of the application. This must be
168
+ # unique within the account.
169
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
170
+ # will be added to the HTTP request.
171
+ #
172
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
173
+ #
174
+ def delete_with_http_info(resource_group_name, account_name, application_name, custom_headers:nil)
175
+ delete_async(resource_group_name, account_name, application_name, custom_headers:custom_headers).value!
176
+ end
177
+
178
+ #
179
+ # Deletes an application.
180
+ #
181
+ # @param resource_group_name [String] The name of the resource group that
182
+ # contains the Batch account.
183
+ # @param account_name [String] The name of the Batch account.
184
+ # @param application_name [String] The name of the application. This must be
185
+ # unique within the account.
186
+ # @param [Hash{String => String}] A hash of custom headers that will be added
187
+ # to the HTTP request.
188
+ #
189
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
190
+ #
191
+ def delete_async(resource_group_name, account_name, application_name, custom_headers:nil)
192
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
193
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
194
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
195
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
196
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
197
+ fail ArgumentError, 'application_name is nil' if application_name.nil?
198
+ fail ArgumentError, "'application_name' should satisfy the constraint - 'MaxLength': '64'" if !application_name.nil? && application_name.length > 64
199
+ fail ArgumentError, "'application_name' should satisfy the constraint - 'MinLength': '1'" if !application_name.nil? && application_name.length < 1
200
+ fail ArgumentError, "'application_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9_-]+$'" if !application_name.nil? && application_name.match(Regexp.new('^^[a-zA-Z0-9_-]+$$')).nil?
201
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
202
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
203
+
204
+
205
+ request_headers = {}
206
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
207
+
208
+ # Set Headers
209
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
210
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
211
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}'
212
+
213
+ request_url = @base_url || @client.base_url
214
+
215
+ options = {
216
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
217
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'applicationName' => application_name,'subscriptionId' => @client.subscription_id},
218
+ query_params: {'api-version' => @client.api_version},
219
+ headers: request_headers.merge(custom_headers || {}),
220
+ base_url: request_url
221
+ }
222
+ promise = @client.make_request_async(:delete, path_template, options)
223
+
224
+ promise = promise.then do |result|
225
+ http_response = result.response
226
+ status_code = http_response.status
227
+ response_content = http_response.body
228
+ unless status_code == 200 || status_code == 204
229
+ error_model = JSON.load(response_content)
230
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
231
+ end
232
+
233
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
234
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
235
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
236
+
237
+ result
238
+ end
239
+
240
+ promise.execute
241
+ end
242
+
243
+ #
244
+ # Gets information about the specified application.
245
+ #
246
+ # @param resource_group_name [String] The name of the resource group that
247
+ # contains the Batch account.
248
+ # @param account_name [String] The name of the Batch account.
249
+ # @param application_name [String] The name of the application. This must be
250
+ # unique within the account.
251
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
252
+ # will be added to the HTTP request.
253
+ #
254
+ # @return [Application] operation results.
255
+ #
256
+ def get(resource_group_name, account_name, application_name, custom_headers:nil)
257
+ response = get_async(resource_group_name, account_name, application_name, custom_headers:custom_headers).value!
258
+ response.body unless response.nil?
259
+ end
260
+
261
+ #
262
+ # Gets information about the specified application.
263
+ #
264
+ # @param resource_group_name [String] The name of the resource group that
265
+ # contains the Batch account.
266
+ # @param account_name [String] The name of the Batch account.
267
+ # @param application_name [String] The name of the application. This must be
268
+ # unique within the account.
269
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
270
+ # will be added to the HTTP request.
271
+ #
272
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
273
+ #
274
+ def get_with_http_info(resource_group_name, account_name, application_name, custom_headers:nil)
275
+ get_async(resource_group_name, account_name, application_name, custom_headers:custom_headers).value!
276
+ end
277
+
278
+ #
279
+ # Gets information about the specified application.
280
+ #
281
+ # @param resource_group_name [String] The name of the resource group that
282
+ # contains the Batch account.
283
+ # @param account_name [String] The name of the Batch account.
284
+ # @param application_name [String] The name of the application. This must be
285
+ # unique within the account.
286
+ # @param [Hash{String => String}] A hash of custom headers that will be added
287
+ # to the HTTP request.
288
+ #
289
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
290
+ #
291
+ def get_async(resource_group_name, account_name, application_name, custom_headers:nil)
292
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
293
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
294
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
295
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
296
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
297
+ fail ArgumentError, 'application_name is nil' if application_name.nil?
298
+ fail ArgumentError, "'application_name' should satisfy the constraint - 'MaxLength': '64'" if !application_name.nil? && application_name.length > 64
299
+ fail ArgumentError, "'application_name' should satisfy the constraint - 'MinLength': '1'" if !application_name.nil? && application_name.length < 1
300
+ fail ArgumentError, "'application_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9_-]+$'" if !application_name.nil? && application_name.match(Regexp.new('^^[a-zA-Z0-9_-]+$$')).nil?
301
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
302
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
303
+
304
+
305
+ request_headers = {}
306
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
307
+
308
+ # Set Headers
309
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
310
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
311
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}'
312
+
313
+ request_url = @base_url || @client.base_url
314
+
315
+ options = {
316
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
317
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'applicationName' => application_name,'subscriptionId' => @client.subscription_id},
318
+ query_params: {'api-version' => @client.api_version},
319
+ headers: request_headers.merge(custom_headers || {}),
320
+ base_url: request_url
321
+ }
322
+ promise = @client.make_request_async(:get, path_template, options)
323
+
324
+ promise = promise.then do |result|
325
+ http_response = result.response
326
+ status_code = http_response.status
327
+ response_content = http_response.body
328
+ unless status_code == 200
329
+ error_model = JSON.load(response_content)
330
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
331
+ end
332
+
333
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
334
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
335
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
336
+ # Deserialize Response
337
+ if status_code == 200
338
+ begin
339
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
340
+ result_mapper = Azure::Batch::Mgmt::V2019_04_01::Models::Application.mapper()
341
+ result.body = @client.deserialize(result_mapper, parsed_response)
342
+ rescue Exception => e
343
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
344
+ end
345
+ end
346
+
347
+ result
348
+ end
349
+
350
+ promise.execute
351
+ end
352
+
353
+ #
354
+ # Updates settings for the specified application.
355
+ #
356
+ # @param resource_group_name [String] The name of the resource group that
357
+ # contains the Batch account.
358
+ # @param account_name [String] The name of the Batch account.
359
+ # @param application_name [String] The name of the application. This must be
360
+ # unique within the account.
361
+ # @param parameters [Application] The parameters for the request.
362
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
363
+ # will be added to the HTTP request.
364
+ #
365
+ # @return [Application] operation results.
366
+ #
367
+ def update(resource_group_name, account_name, application_name, parameters, custom_headers:nil)
368
+ response = update_async(resource_group_name, account_name, application_name, parameters, custom_headers:custom_headers).value!
369
+ response.body unless response.nil?
370
+ end
371
+
372
+ #
373
+ # Updates settings for the specified application.
374
+ #
375
+ # @param resource_group_name [String] The name of the resource group that
376
+ # contains the Batch account.
377
+ # @param account_name [String] The name of the Batch account.
378
+ # @param application_name [String] The name of the application. This must be
379
+ # unique within the account.
380
+ # @param parameters [Application] The parameters for the request.
381
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
382
+ # will be added to the HTTP request.
383
+ #
384
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
385
+ #
386
+ def update_with_http_info(resource_group_name, account_name, application_name, parameters, custom_headers:nil)
387
+ update_async(resource_group_name, account_name, application_name, parameters, custom_headers:custom_headers).value!
388
+ end
389
+
390
+ #
391
+ # Updates settings for the specified application.
392
+ #
393
+ # @param resource_group_name [String] The name of the resource group that
394
+ # contains the Batch account.
395
+ # @param account_name [String] The name of the Batch account.
396
+ # @param application_name [String] The name of the application. This must be
397
+ # unique within the account.
398
+ # @param parameters [Application] The parameters for the request.
399
+ # @param [Hash{String => String}] A hash of custom headers that will be added
400
+ # to the HTTP request.
401
+ #
402
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
403
+ #
404
+ def update_async(resource_group_name, account_name, application_name, parameters, custom_headers:nil)
405
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
406
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
407
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
408
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
409
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
410
+ fail ArgumentError, 'application_name is nil' if application_name.nil?
411
+ fail ArgumentError, "'application_name' should satisfy the constraint - 'MaxLength': '64'" if !application_name.nil? && application_name.length > 64
412
+ fail ArgumentError, "'application_name' should satisfy the constraint - 'MinLength': '1'" if !application_name.nil? && application_name.length < 1
413
+ fail ArgumentError, "'application_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9_-]+$'" if !application_name.nil? && application_name.match(Regexp.new('^^[a-zA-Z0-9_-]+$$')).nil?
414
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
415
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
416
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
417
+
418
+
419
+ request_headers = {}
420
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
421
+
422
+ # Set Headers
423
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
424
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
425
+
426
+ # Serialize Request
427
+ request_mapper = Azure::Batch::Mgmt::V2019_04_01::Models::Application.mapper()
428
+ request_content = @client.serialize(request_mapper, parameters)
429
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
430
+
431
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}'
432
+
433
+ request_url = @base_url || @client.base_url
434
+
435
+ options = {
436
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
437
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'applicationName' => application_name,'subscriptionId' => @client.subscription_id},
438
+ query_params: {'api-version' => @client.api_version},
439
+ body: request_content,
440
+ headers: request_headers.merge(custom_headers || {}),
441
+ base_url: request_url
442
+ }
443
+ promise = @client.make_request_async(:patch, path_template, options)
444
+
445
+ promise = promise.then do |result|
446
+ http_response = result.response
447
+ status_code = http_response.status
448
+ response_content = http_response.body
449
+ unless status_code == 200
450
+ error_model = JSON.load(response_content)
451
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
452
+ end
453
+
454
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
455
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
456
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
457
+ # Deserialize Response
458
+ if status_code == 200
459
+ begin
460
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
461
+ result_mapper = Azure::Batch::Mgmt::V2019_04_01::Models::Application.mapper()
462
+ result.body = @client.deserialize(result_mapper, parsed_response)
463
+ rescue Exception => e
464
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
465
+ end
466
+ end
467
+
468
+ result
469
+ end
470
+
471
+ promise.execute
472
+ end
473
+
474
+ #
475
+ # Lists all of the applications in the specified account.
476
+ #
477
+ # @param resource_group_name [String] The name of the resource group that
478
+ # contains the Batch account.
479
+ # @param account_name [String] The name of the Batch account.
480
+ # @param maxresults [Integer] The maximum number of items to return in the
481
+ # response.
482
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
483
+ # will be added to the HTTP request.
484
+ #
485
+ # @return [Array<Application>] operation results.
486
+ #
487
+ def list(resource_group_name, account_name, maxresults:nil, custom_headers:nil)
488
+ first_page = list_as_lazy(resource_group_name, account_name, maxresults:maxresults, custom_headers:custom_headers)
489
+ first_page.get_all_items
490
+ end
491
+
492
+ #
493
+ # Lists all of the applications in the specified account.
494
+ #
495
+ # @param resource_group_name [String] The name of the resource group that
496
+ # contains the Batch account.
497
+ # @param account_name [String] The name of the Batch account.
498
+ # @param maxresults [Integer] The maximum number of items to return in the
499
+ # response.
500
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
501
+ # will be added to the HTTP request.
502
+ #
503
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
504
+ #
505
+ def list_with_http_info(resource_group_name, account_name, maxresults:nil, custom_headers:nil)
506
+ list_async(resource_group_name, account_name, maxresults:maxresults, custom_headers:custom_headers).value!
507
+ end
508
+
509
+ #
510
+ # Lists all of the applications in the specified account.
511
+ #
512
+ # @param resource_group_name [String] The name of the resource group that
513
+ # contains the Batch account.
514
+ # @param account_name [String] The name of the Batch account.
515
+ # @param maxresults [Integer] The maximum number of items to return in the
516
+ # response.
517
+ # @param [Hash{String => String}] A hash of custom headers that will be added
518
+ # to the HTTP request.
519
+ #
520
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
521
+ #
522
+ def list_async(resource_group_name, account_name, maxresults:nil, custom_headers:nil)
523
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
524
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
525
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
526
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
527
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
528
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
529
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
530
+
531
+
532
+ request_headers = {}
533
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
534
+
535
+ # Set Headers
536
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
537
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
538
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications'
539
+
540
+ request_url = @base_url || @client.base_url
541
+
542
+ options = {
543
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
544
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
545
+ query_params: {'maxresults' => maxresults,'api-version' => @client.api_version},
546
+ headers: request_headers.merge(custom_headers || {}),
547
+ base_url: request_url
548
+ }
549
+ promise = @client.make_request_async(:get, path_template, options)
550
+
551
+ promise = promise.then do |result|
552
+ http_response = result.response
553
+ status_code = http_response.status
554
+ response_content = http_response.body
555
+ unless status_code == 200
556
+ error_model = JSON.load(response_content)
557
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
558
+ end
559
+
560
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
561
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
562
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
563
+ # Deserialize Response
564
+ if status_code == 200
565
+ begin
566
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
567
+ result_mapper = Azure::Batch::Mgmt::V2019_04_01::Models::ListApplicationsResult.mapper()
568
+ result.body = @client.deserialize(result_mapper, parsed_response)
569
+ rescue Exception => e
570
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
571
+ end
572
+ end
573
+
574
+ result
575
+ end
576
+
577
+ promise.execute
578
+ end
579
+
580
+ #
581
+ # Lists all of the applications in the specified account.
582
+ #
583
+ # @param next_page_link [String] The NextLink from the previous successful call
584
+ # to List operation.
585
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
586
+ # will be added to the HTTP request.
587
+ #
588
+ # @return [ListApplicationsResult] operation results.
589
+ #
590
+ def list_next(next_page_link, custom_headers:nil)
591
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
592
+ response.body unless response.nil?
593
+ end
594
+
595
+ #
596
+ # Lists all of the applications in the specified account.
597
+ #
598
+ # @param next_page_link [String] The NextLink from the previous successful call
599
+ # to List operation.
600
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
601
+ # will be added to the HTTP request.
602
+ #
603
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
604
+ #
605
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
606
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
607
+ end
608
+
609
+ #
610
+ # Lists all of the applications in the specified account.
611
+ #
612
+ # @param next_page_link [String] The NextLink from the previous successful call
613
+ # to List operation.
614
+ # @param [Hash{String => String}] A hash of custom headers that will be added
615
+ # to the HTTP request.
616
+ #
617
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
618
+ #
619
+ def list_next_async(next_page_link, custom_headers:nil)
620
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
621
+
622
+
623
+ request_headers = {}
624
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
625
+
626
+ # Set Headers
627
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
628
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
629
+ path_template = '{nextLink}'
630
+
631
+ request_url = @base_url || @client.base_url
632
+
633
+ options = {
634
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
635
+ skip_encoding_path_params: {'nextLink' => next_page_link},
636
+ headers: request_headers.merge(custom_headers || {}),
637
+ base_url: request_url
638
+ }
639
+ promise = @client.make_request_async(:get, path_template, options)
640
+
641
+ promise = promise.then do |result|
642
+ http_response = result.response
643
+ status_code = http_response.status
644
+ response_content = http_response.body
645
+ unless status_code == 200
646
+ error_model = JSON.load(response_content)
647
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
648
+ end
649
+
650
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
651
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
652
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
653
+ # Deserialize Response
654
+ if status_code == 200
655
+ begin
656
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
657
+ result_mapper = Azure::Batch::Mgmt::V2019_04_01::Models::ListApplicationsResult.mapper()
658
+ result.body = @client.deserialize(result_mapper, parsed_response)
659
+ rescue Exception => e
660
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
661
+ end
662
+ end
663
+
664
+ result
665
+ end
666
+
667
+ promise.execute
668
+ end
669
+
670
+ #
671
+ # Lists all of the applications in the specified account.
672
+ #
673
+ # @param resource_group_name [String] The name of the resource group that
674
+ # contains the Batch account.
675
+ # @param account_name [String] The name of the Batch account.
676
+ # @param maxresults [Integer] The maximum number of items to return in the
677
+ # response.
678
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
679
+ # will be added to the HTTP request.
680
+ #
681
+ # @return [ListApplicationsResult] which provide lazy access to pages of the
682
+ # response.
683
+ #
684
+ def list_as_lazy(resource_group_name, account_name, maxresults:nil, custom_headers:nil)
685
+ response = list_async(resource_group_name, account_name, maxresults:maxresults, custom_headers:custom_headers).value!
686
+ unless response.nil?
687
+ page = response.body
688
+ page.next_method = Proc.new do |next_page_link|
689
+ list_next_async(next_page_link, custom_headers:custom_headers)
690
+ end
691
+ page
692
+ end
693
+ end
694
+
695
+ end
696
+ end