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,156 @@
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::V2018_12_01
7
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class BatchManagementClient < MsRestAzure::AzureServiceClient
11
+ include MsRestAzure
12
+ include MsRestAzure::Serialization
13
+
14
+ # @return [String] the base URI of the service.
15
+ attr_accessor :base_url
16
+
17
+ # @return Credentials needed for the client to connect to Azure.
18
+ attr_reader :credentials
19
+
20
+ # @return [String] The Azure subscription ID. This is a GUID-formatted
21
+ # string (e.g. 00000000-0000-0000-0000-000000000000)
22
+ attr_accessor :subscription_id
23
+
24
+ # @return [String] The API version to be used with the HTTP request.
25
+ attr_reader :api_version
26
+
27
+ # @return [String] The preferred language for the response.
28
+ attr_accessor :accept_language
29
+
30
+ # @return [Integer] The retry timeout in seconds for Long Running
31
+ # Operations. Default value is 30.
32
+ attr_accessor :long_running_operation_retry_timeout
33
+
34
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
35
+ # generated. When set to true a unique x-ms-client-request-id value is
36
+ # generated and included in each request. Default is true.
37
+ attr_accessor :generate_client_request_id
38
+
39
+ # @return [BatchAccountOperations] batch_account_operations
40
+ attr_reader :batch_account_operations
41
+
42
+ # @return [ApplicationPackageOperations] application_package_operations
43
+ attr_reader :application_package_operations
44
+
45
+ # @return [ApplicationOperations] application_operations
46
+ attr_reader :application_operations
47
+
48
+ # @return [Location] location
49
+ attr_reader :location
50
+
51
+ # @return [Operations] operations
52
+ attr_reader :operations
53
+
54
+ # @return [CertificateOperations] certificate_operations
55
+ attr_reader :certificate_operations
56
+
57
+ # @return [PoolOperations] pool_operations
58
+ attr_reader :pool_operations
59
+
60
+ #
61
+ # Creates initializes a new instance of the BatchManagementClient class.
62
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
63
+ # @param base_url [String] the base URI of the service.
64
+ # @param options [Array] filters to be applied to the HTTP requests.
65
+ #
66
+ def initialize(credentials = nil, base_url = nil, options = nil)
67
+ super(credentials, options)
68
+ @base_url = base_url || 'https://management.azure.com'
69
+
70
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
71
+ @credentials = credentials
72
+
73
+ @batch_account_operations = BatchAccountOperations.new(self)
74
+ @application_package_operations = ApplicationPackageOperations.new(self)
75
+ @application_operations = ApplicationOperations.new(self)
76
+ @location = Location.new(self)
77
+ @operations = Operations.new(self)
78
+ @certificate_operations = CertificateOperations.new(self)
79
+ @pool_operations = PoolOperations.new(self)
80
+ @api_version = '2018-12-01'
81
+ @accept_language = 'en-US'
82
+ @long_running_operation_retry_timeout = 30
83
+ @generate_client_request_id = true
84
+ add_telemetry
85
+ end
86
+
87
+ #
88
+ # Makes a request and returns the body of the response.
89
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
90
+ # @param path [String] the path, relative to {base_url}.
91
+ # @param options [Hash{String=>String}] specifying any request options like :body.
92
+ # @return [Hash{String=>String}] containing the body of the response.
93
+ # Example:
94
+ #
95
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
96
+ # path = "/path"
97
+ # options = {
98
+ # body: request_content,
99
+ # query_params: {'api-version' => '2016-02-01'}
100
+ # }
101
+ # result = @client.make_request(:put, path, options)
102
+ #
103
+ def make_request(method, path, options = {})
104
+ result = make_request_with_http_info(method, path, options)
105
+ result.body unless result.nil?
106
+ end
107
+
108
+ #
109
+ # Makes a request and returns the operation response.
110
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
111
+ # @param path [String] the path, relative to {base_url}.
112
+ # @param options [Hash{String=>String}] specifying any request options like :body.
113
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
114
+ #
115
+ def make_request_with_http_info(method, path, options = {})
116
+ result = make_request_async(method, path, options).value!
117
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
118
+ result
119
+ end
120
+
121
+ #
122
+ # Makes a request asynchronously.
123
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
124
+ # @param path [String] the path, relative to {base_url}.
125
+ # @param options [Hash{String=>String}] specifying any request options like :body.
126
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
127
+ #
128
+ def make_request_async(method, path, options = {})
129
+ fail ArgumentError, 'method is nil' if method.nil?
130
+ fail ArgumentError, 'path is nil' if path.nil?
131
+
132
+ request_url = options[:base_url] || @base_url
133
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
134
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
135
+ end
136
+
137
+ request_headers = @request_headers
138
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
139
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
140
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
141
+
142
+ super(request_url, method, path, options)
143
+ end
144
+
145
+
146
+ private
147
+ #
148
+ # Adds telemetry information.
149
+ #
150
+ def add_telemetry
151
+ sdk_information = 'azure_mgmt_batch'
152
+ sdk_information = "#{sdk_information}/0.18.0"
153
+ add_user_agent_information(sdk_information)
154
+ end
155
+ end
156
+ end
@@ -0,0 +1,1023 @@
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::V2018_12_01
7
+ #
8
+ # CertificateOperations
9
+ #
10
+ class CertificateOperations
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the CertificateOperations class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [BatchManagementClient] reference to the BatchManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Lists all of the certificates in the specified account.
26
+ #
27
+ # @param resource_group_name [String] The name of the resource group that
28
+ # contains the Batch account.
29
+ # @param account_name [String] The name of the Batch account.
30
+ # @param maxresults [Integer] The maximum number of items to return in the
31
+ # response.
32
+ # @param select [String] Comma separated list of properties that should be
33
+ # returned. e.g. "properties/provisioningState". Only top level properties
34
+ # under properties/ are valid for selection.
35
+ # @param filter [String] OData filter expression. Valid properties for
36
+ # filtering are "properties/provisioningState",
37
+ # "properties/provisioningStateTransitionTime", "name".
38
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
39
+ # will be added to the HTTP request.
40
+ #
41
+ # @return [Array<Certificate>] operation results.
42
+ #
43
+ def list_by_batch_account(resource_group_name, account_name, maxresults:nil, select:nil, filter:nil, custom_headers:nil)
44
+ first_page = list_by_batch_account_as_lazy(resource_group_name, account_name, maxresults:maxresults, select:select, filter:filter, custom_headers:custom_headers)
45
+ first_page.get_all_items
46
+ end
47
+
48
+ #
49
+ # Lists all of the certificates in the specified account.
50
+ #
51
+ # @param resource_group_name [String] The name of the resource group that
52
+ # contains the Batch account.
53
+ # @param account_name [String] The name of the Batch account.
54
+ # @param maxresults [Integer] The maximum number of items to return in the
55
+ # response.
56
+ # @param select [String] Comma separated list of properties that should be
57
+ # returned. e.g. "properties/provisioningState". Only top level properties
58
+ # under properties/ are valid for selection.
59
+ # @param filter [String] OData filter expression. Valid properties for
60
+ # filtering are "properties/provisioningState",
61
+ # "properties/provisioningStateTransitionTime", "name".
62
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
63
+ # will be added to the HTTP request.
64
+ #
65
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
66
+ #
67
+ def list_by_batch_account_with_http_info(resource_group_name, account_name, maxresults:nil, select:nil, filter:nil, custom_headers:nil)
68
+ list_by_batch_account_async(resource_group_name, account_name, maxresults:maxresults, select:select, filter:filter, custom_headers:custom_headers).value!
69
+ end
70
+
71
+ #
72
+ # Lists all of the certificates in the specified account.
73
+ #
74
+ # @param resource_group_name [String] The name of the resource group that
75
+ # contains the Batch account.
76
+ # @param account_name [String] The name of the Batch account.
77
+ # @param maxresults [Integer] The maximum number of items to return in the
78
+ # response.
79
+ # @param select [String] Comma separated list of properties that should be
80
+ # returned. e.g. "properties/provisioningState". Only top level properties
81
+ # under properties/ are valid for selection.
82
+ # @param filter [String] OData filter expression. Valid properties for
83
+ # filtering are "properties/provisioningState",
84
+ # "properties/provisioningStateTransitionTime", "name".
85
+ # @param [Hash{String => String}] A hash of custom headers that will be added
86
+ # to the HTTP request.
87
+ #
88
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
89
+ #
90
+ def list_by_batch_account_async(resource_group_name, account_name, maxresults:nil, select:nil, filter:nil, custom_headers:nil)
91
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
92
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
93
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
94
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
95
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
96
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
97
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
98
+
99
+
100
+ request_headers = {}
101
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
102
+
103
+ # Set Headers
104
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
105
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
106
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates'
107
+
108
+ request_url = @base_url || @client.base_url
109
+
110
+ options = {
111
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
112
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
113
+ query_params: {'maxresults' => maxresults,'$select' => select,'$filter' => filter,'api-version' => @client.api_version},
114
+ headers: request_headers.merge(custom_headers || {}),
115
+ base_url: request_url
116
+ }
117
+ promise = @client.make_request_async(:get, path_template, options)
118
+
119
+ promise = promise.then do |result|
120
+ http_response = result.response
121
+ status_code = http_response.status
122
+ response_content = http_response.body
123
+ unless status_code == 200
124
+ error_model = JSON.load(response_content)
125
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
126
+ end
127
+
128
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
129
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
130
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
131
+ # Deserialize Response
132
+ if status_code == 200
133
+ begin
134
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
135
+ result_mapper = Azure::Batch::Mgmt::V2018_12_01::Models::ListCertificatesResult.mapper()
136
+ result.body = @client.deserialize(result_mapper, parsed_response)
137
+ rescue Exception => e
138
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
139
+ end
140
+ end
141
+
142
+ result
143
+ end
144
+
145
+ promise.execute
146
+ end
147
+
148
+ #
149
+ # Creates a new certificate inside the specified account.
150
+ #
151
+ # @param resource_group_name [String] The name of the resource group that
152
+ # contains the Batch account.
153
+ # @param account_name [String] The name of the Batch account.
154
+ # @param certificate_name [String] The identifier for the certificate. This
155
+ # must be made up of algorithm and thumbprint separated by a dash, and must
156
+ # match the certificate data in the request. For example SHA1-a3d1c5.
157
+ # @param parameters [CertificateCreateOrUpdateParameters] Additional parameters
158
+ # for certificate creation.
159
+ # @param if_match [String] The entity state (ETag) version of the certificate
160
+ # to update. A value of "*" can be used to apply the operation only if the
161
+ # certificate already exists. If omitted, this operation will always be
162
+ # applied.
163
+ # @param if_none_match [String] Set to '*' to allow a new certificate to be
164
+ # created, but to prevent updating an existing certificate. Other values will
165
+ # be ignored.
166
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
167
+ # will be added to the HTTP request.
168
+ #
169
+ # @return [Certificate] operation results.
170
+ #
171
+ def create(resource_group_name, account_name, certificate_name, parameters, if_match:nil, if_none_match:nil, custom_headers:nil)
172
+ response = create_async(resource_group_name, account_name, certificate_name, parameters, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value!
173
+ response.body unless response.nil?
174
+ end
175
+
176
+ #
177
+ # @param resource_group_name [String] The name of the resource group that
178
+ # contains the Batch account.
179
+ # @param account_name [String] The name of the Batch account.
180
+ # @param certificate_name [String] The identifier for the certificate. This
181
+ # must be made up of algorithm and thumbprint separated by a dash, and must
182
+ # match the certificate data in the request. For example SHA1-a3d1c5.
183
+ # @param parameters [CertificateCreateOrUpdateParameters] Additional parameters
184
+ # for certificate creation.
185
+ # @param if_match [String] The entity state (ETag) version of the certificate
186
+ # to update. A value of "*" can be used to apply the operation only if the
187
+ # certificate already exists. If omitted, this operation will always be
188
+ # applied.
189
+ # @param if_none_match [String] Set to '*' to allow a new certificate to be
190
+ # created, but to prevent updating an existing certificate. Other values will
191
+ # be ignored.
192
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
193
+ # will be added to the HTTP request.
194
+ #
195
+ # @return [Concurrent::Promise] promise which provides async access to http
196
+ # response.
197
+ #
198
+ def create_async(resource_group_name, account_name, certificate_name, parameters, if_match:nil, if_none_match:nil, custom_headers:nil)
199
+ # Send request
200
+ promise = begin_create_async(resource_group_name, account_name, certificate_name, parameters, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers)
201
+
202
+ promise = promise.then do |response|
203
+ # Defining deserialization method.
204
+ deserialize_method = lambda do |parsed_response|
205
+ result_mapper = Azure::Batch::Mgmt::V2018_12_01::Models::Certificate.mapper()
206
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
207
+ end
208
+
209
+ # Waiting for response.
210
+ @client.get_long_running_operation_result(response, deserialize_method)
211
+ end
212
+
213
+ promise
214
+ end
215
+
216
+ #
217
+ # Updates the properties of an existing certificate.
218
+ #
219
+ # @param resource_group_name [String] The name of the resource group that
220
+ # contains the Batch account.
221
+ # @param account_name [String] The name of the Batch account.
222
+ # @param certificate_name [String] The identifier for the certificate. This
223
+ # must be made up of algorithm and thumbprint separated by a dash, and must
224
+ # match the certificate data in the request. For example SHA1-a3d1c5.
225
+ # @param parameters [CertificateCreateOrUpdateParameters] Certificate entity to
226
+ # update.
227
+ # @param if_match [String] The entity state (ETag) version of the certificate
228
+ # to update. This value can be omitted or set to "*" to apply the operation
229
+ # unconditionally.
230
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
231
+ # will be added to the HTTP request.
232
+ #
233
+ # @return [Certificate] operation results.
234
+ #
235
+ def update(resource_group_name, account_name, certificate_name, parameters, if_match:nil, custom_headers:nil)
236
+ response = update_async(resource_group_name, account_name, certificate_name, parameters, if_match:if_match, custom_headers:custom_headers).value!
237
+ response.body unless response.nil?
238
+ end
239
+
240
+ #
241
+ # Updates the properties of an existing certificate.
242
+ #
243
+ # @param resource_group_name [String] The name of the resource group that
244
+ # contains the Batch account.
245
+ # @param account_name [String] The name of the Batch account.
246
+ # @param certificate_name [String] The identifier for the certificate. This
247
+ # must be made up of algorithm and thumbprint separated by a dash, and must
248
+ # match the certificate data in the request. For example SHA1-a3d1c5.
249
+ # @param parameters [CertificateCreateOrUpdateParameters] Certificate entity to
250
+ # update.
251
+ # @param if_match [String] The entity state (ETag) version of the certificate
252
+ # to update. This value can be omitted or set to "*" to apply the operation
253
+ # unconditionally.
254
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
255
+ # will be added to the HTTP request.
256
+ #
257
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
258
+ #
259
+ def update_with_http_info(resource_group_name, account_name, certificate_name, parameters, if_match:nil, custom_headers:nil)
260
+ update_async(resource_group_name, account_name, certificate_name, parameters, if_match:if_match, custom_headers:custom_headers).value!
261
+ end
262
+
263
+ #
264
+ # Updates the properties of an existing certificate.
265
+ #
266
+ # @param resource_group_name [String] The name of the resource group that
267
+ # contains the Batch account.
268
+ # @param account_name [String] The name of the Batch account.
269
+ # @param certificate_name [String] The identifier for the certificate. This
270
+ # must be made up of algorithm and thumbprint separated by a dash, and must
271
+ # match the certificate data in the request. For example SHA1-a3d1c5.
272
+ # @param parameters [CertificateCreateOrUpdateParameters] Certificate entity to
273
+ # update.
274
+ # @param if_match [String] The entity state (ETag) version of the certificate
275
+ # to update. This value can be omitted or set to "*" to apply the operation
276
+ # unconditionally.
277
+ # @param [Hash{String => String}] A hash of custom headers that will be added
278
+ # to the HTTP request.
279
+ #
280
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
281
+ #
282
+ def update_async(resource_group_name, account_name, certificate_name, parameters, if_match:nil, custom_headers:nil)
283
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
284
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
285
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
286
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
287
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
288
+ fail ArgumentError, 'certificate_name is nil' if certificate_name.nil?
289
+ fail ArgumentError, "'certificate_name' should satisfy the constraint - 'MaxLength': '45'" if !certificate_name.nil? && certificate_name.length > 45
290
+ fail ArgumentError, "'certificate_name' should satisfy the constraint - 'MinLength': '5'" if !certificate_name.nil? && certificate_name.length < 5
291
+ fail ArgumentError, "'certificate_name' should satisfy the constraint - 'Pattern': '^[\w]+-[\w]+$'" if !certificate_name.nil? && certificate_name.match(Regexp.new('^^[\w]+-[\w]+$$')).nil?
292
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
293
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
294
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
295
+
296
+
297
+ request_headers = {}
298
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
299
+
300
+ # Set Headers
301
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
302
+ request_headers['If-Match'] = if_match unless if_match.nil?
303
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
304
+
305
+ # Serialize Request
306
+ request_mapper = Azure::Batch::Mgmt::V2018_12_01::Models::CertificateCreateOrUpdateParameters.mapper()
307
+ request_content = @client.serialize(request_mapper, parameters)
308
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
309
+
310
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}'
311
+
312
+ request_url = @base_url || @client.base_url
313
+
314
+ options = {
315
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
316
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'certificateName' => certificate_name,'subscriptionId' => @client.subscription_id},
317
+ query_params: {'api-version' => @client.api_version},
318
+ body: request_content,
319
+ headers: request_headers.merge(custom_headers || {}),
320
+ base_url: request_url
321
+ }
322
+ promise = @client.make_request_async(:patch, 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::V2018_12_01::Models::Certificate.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
+ # Deletes the specified certificate.
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 certificate_name [String] The identifier for the certificate. This
360
+ # must be made up of algorithm and thumbprint separated by a dash, and must
361
+ # match the certificate data in the request. For example SHA1-a3d1c5.
362
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
363
+ # will be added to the HTTP request.
364
+ #
365
+ def delete(resource_group_name, account_name, certificate_name, custom_headers:nil)
366
+ response = delete_async(resource_group_name, account_name, certificate_name, custom_headers:custom_headers).value!
367
+ nil
368
+ end
369
+
370
+ #
371
+ # @param resource_group_name [String] The name of the resource group that
372
+ # contains the Batch account.
373
+ # @param account_name [String] The name of the Batch account.
374
+ # @param certificate_name [String] The identifier for the certificate. This
375
+ # must be made up of algorithm and thumbprint separated by a dash, and must
376
+ # match the certificate data in the request. For example SHA1-a3d1c5.
377
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
378
+ # will be added to the HTTP request.
379
+ #
380
+ # @return [Concurrent::Promise] promise which provides async access to http
381
+ # response.
382
+ #
383
+ def delete_async(resource_group_name, account_name, certificate_name, custom_headers:nil)
384
+ # Send request
385
+ promise = begin_delete_async(resource_group_name, account_name, certificate_name, custom_headers:custom_headers)
386
+
387
+ promise = promise.then do |response|
388
+ # Defining deserialization method.
389
+ deserialize_method = lambda do |parsed_response|
390
+ end
391
+
392
+ # Waiting for response.
393
+ @client.get_long_running_operation_result(response, deserialize_method)
394
+ end
395
+
396
+ promise
397
+ end
398
+
399
+ #
400
+ # Gets information about the specified certificate.
401
+ #
402
+ # @param resource_group_name [String] The name of the resource group that
403
+ # contains the Batch account.
404
+ # @param account_name [String] The name of the Batch account.
405
+ # @param certificate_name [String] The identifier for the certificate. This
406
+ # must be made up of algorithm and thumbprint separated by a dash, and must
407
+ # match the certificate data in the request. For example SHA1-a3d1c5.
408
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
409
+ # will be added to the HTTP request.
410
+ #
411
+ # @return [Certificate] operation results.
412
+ #
413
+ def get(resource_group_name, account_name, certificate_name, custom_headers:nil)
414
+ response = get_async(resource_group_name, account_name, certificate_name, custom_headers:custom_headers).value!
415
+ response.body unless response.nil?
416
+ end
417
+
418
+ #
419
+ # Gets information about the specified certificate.
420
+ #
421
+ # @param resource_group_name [String] The name of the resource group that
422
+ # contains the Batch account.
423
+ # @param account_name [String] The name of the Batch account.
424
+ # @param certificate_name [String] The identifier for the certificate. This
425
+ # must be made up of algorithm and thumbprint separated by a dash, and must
426
+ # match the certificate data in the request. For example SHA1-a3d1c5.
427
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
428
+ # will be added to the HTTP request.
429
+ #
430
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
431
+ #
432
+ def get_with_http_info(resource_group_name, account_name, certificate_name, custom_headers:nil)
433
+ get_async(resource_group_name, account_name, certificate_name, custom_headers:custom_headers).value!
434
+ end
435
+
436
+ #
437
+ # Gets information about the specified certificate.
438
+ #
439
+ # @param resource_group_name [String] The name of the resource group that
440
+ # contains the Batch account.
441
+ # @param account_name [String] The name of the Batch account.
442
+ # @param certificate_name [String] The identifier for the certificate. This
443
+ # must be made up of algorithm and thumbprint separated by a dash, and must
444
+ # match the certificate data in the request. For example SHA1-a3d1c5.
445
+ # @param [Hash{String => String}] A hash of custom headers that will be added
446
+ # to the HTTP request.
447
+ #
448
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
449
+ #
450
+ def get_async(resource_group_name, account_name, certificate_name, custom_headers:nil)
451
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
452
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
453
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
454
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
455
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
456
+ fail ArgumentError, 'certificate_name is nil' if certificate_name.nil?
457
+ fail ArgumentError, "'certificate_name' should satisfy the constraint - 'MaxLength': '45'" if !certificate_name.nil? && certificate_name.length > 45
458
+ fail ArgumentError, "'certificate_name' should satisfy the constraint - 'MinLength': '5'" if !certificate_name.nil? && certificate_name.length < 5
459
+ fail ArgumentError, "'certificate_name' should satisfy the constraint - 'Pattern': '^[\w]+-[\w]+$'" if !certificate_name.nil? && certificate_name.match(Regexp.new('^^[\w]+-[\w]+$$')).nil?
460
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
461
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
462
+
463
+
464
+ request_headers = {}
465
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
466
+
467
+ # Set Headers
468
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
469
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
470
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}'
471
+
472
+ request_url = @base_url || @client.base_url
473
+
474
+ options = {
475
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
476
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'certificateName' => certificate_name,'subscriptionId' => @client.subscription_id},
477
+ query_params: {'api-version' => @client.api_version},
478
+ headers: request_headers.merge(custom_headers || {}),
479
+ base_url: request_url
480
+ }
481
+ promise = @client.make_request_async(:get, path_template, options)
482
+
483
+ promise = promise.then do |result|
484
+ http_response = result.response
485
+ status_code = http_response.status
486
+ response_content = http_response.body
487
+ unless status_code == 200
488
+ error_model = JSON.load(response_content)
489
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
490
+ end
491
+
492
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
493
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
494
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
495
+ # Deserialize Response
496
+ if status_code == 200
497
+ begin
498
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
499
+ result_mapper = Azure::Batch::Mgmt::V2018_12_01::Models::Certificate.mapper()
500
+ result.body = @client.deserialize(result_mapper, parsed_response)
501
+ rescue Exception => e
502
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
503
+ end
504
+ end
505
+
506
+ result
507
+ end
508
+
509
+ promise.execute
510
+ end
511
+
512
+ #
513
+ # Cancels a failed deletion of a certificate from the specified account.
514
+ #
515
+ # If you try to delete a certificate that is being used by a pool or compute
516
+ # node, the status of the certificate changes to deleteFailed. If you decide
517
+ # that you want to continue using the certificate, you can use this operation
518
+ # to set the status of the certificate back to active. If you intend to delete
519
+ # the certificate, you do not need to run this operation after the deletion
520
+ # failed. You must make sure that the certificate is not being used by any
521
+ # resources, and then you can try again to delete the certificate.
522
+ #
523
+ # @param resource_group_name [String] The name of the resource group that
524
+ # contains the Batch account.
525
+ # @param account_name [String] The name of the Batch account.
526
+ # @param certificate_name [String] The identifier for the certificate. This
527
+ # must be made up of algorithm and thumbprint separated by a dash, and must
528
+ # match the certificate data in the request. For example SHA1-a3d1c5.
529
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
530
+ # will be added to the HTTP request.
531
+ #
532
+ # @return [Certificate] operation results.
533
+ #
534
+ def cancel_deletion(resource_group_name, account_name, certificate_name, custom_headers:nil)
535
+ response = cancel_deletion_async(resource_group_name, account_name, certificate_name, custom_headers:custom_headers).value!
536
+ response.body unless response.nil?
537
+ end
538
+
539
+ #
540
+ # Cancels a failed deletion of a certificate from the specified account.
541
+ #
542
+ # If you try to delete a certificate that is being used by a pool or compute
543
+ # node, the status of the certificate changes to deleteFailed. If you decide
544
+ # that you want to continue using the certificate, you can use this operation
545
+ # to set the status of the certificate back to active. If you intend to delete
546
+ # the certificate, you do not need to run this operation after the deletion
547
+ # failed. You must make sure that the certificate is not being used by any
548
+ # resources, and then you can try again to delete the certificate.
549
+ #
550
+ # @param resource_group_name [String] The name of the resource group that
551
+ # contains the Batch account.
552
+ # @param account_name [String] The name of the Batch account.
553
+ # @param certificate_name [String] The identifier for the certificate. This
554
+ # must be made up of algorithm and thumbprint separated by a dash, and must
555
+ # match the certificate data in the request. For example SHA1-a3d1c5.
556
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
557
+ # will be added to the HTTP request.
558
+ #
559
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
560
+ #
561
+ def cancel_deletion_with_http_info(resource_group_name, account_name, certificate_name, custom_headers:nil)
562
+ cancel_deletion_async(resource_group_name, account_name, certificate_name, custom_headers:custom_headers).value!
563
+ end
564
+
565
+ #
566
+ # Cancels a failed deletion of a certificate from the specified account.
567
+ #
568
+ # If you try to delete a certificate that is being used by a pool or compute
569
+ # node, the status of the certificate changes to deleteFailed. If you decide
570
+ # that you want to continue using the certificate, you can use this operation
571
+ # to set the status of the certificate back to active. If you intend to delete
572
+ # the certificate, you do not need to run this operation after the deletion
573
+ # failed. You must make sure that the certificate is not being used by any
574
+ # resources, and then you can try again to delete the certificate.
575
+ #
576
+ # @param resource_group_name [String] The name of the resource group that
577
+ # contains the Batch account.
578
+ # @param account_name [String] The name of the Batch account.
579
+ # @param certificate_name [String] The identifier for the certificate. This
580
+ # must be made up of algorithm and thumbprint separated by a dash, and must
581
+ # match the certificate data in the request. For example SHA1-a3d1c5.
582
+ # @param [Hash{String => String}] A hash of custom headers that will be added
583
+ # to the HTTP request.
584
+ #
585
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
586
+ #
587
+ def cancel_deletion_async(resource_group_name, account_name, certificate_name, custom_headers:nil)
588
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
589
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
590
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
591
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
592
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
593
+ fail ArgumentError, 'certificate_name is nil' if certificate_name.nil?
594
+ fail ArgumentError, "'certificate_name' should satisfy the constraint - 'MaxLength': '45'" if !certificate_name.nil? && certificate_name.length > 45
595
+ fail ArgumentError, "'certificate_name' should satisfy the constraint - 'MinLength': '5'" if !certificate_name.nil? && certificate_name.length < 5
596
+ fail ArgumentError, "'certificate_name' should satisfy the constraint - 'Pattern': '^[\w]+-[\w]+$'" if !certificate_name.nil? && certificate_name.match(Regexp.new('^^[\w]+-[\w]+$$')).nil?
597
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
598
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
599
+
600
+
601
+ request_headers = {}
602
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
603
+
604
+ # Set Headers
605
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
606
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
607
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}/cancelDelete'
608
+
609
+ request_url = @base_url || @client.base_url
610
+
611
+ options = {
612
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
613
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'certificateName' => certificate_name,'subscriptionId' => @client.subscription_id},
614
+ query_params: {'api-version' => @client.api_version},
615
+ headers: request_headers.merge(custom_headers || {}),
616
+ base_url: request_url
617
+ }
618
+ promise = @client.make_request_async(:post, path_template, options)
619
+
620
+ promise = promise.then do |result|
621
+ http_response = result.response
622
+ status_code = http_response.status
623
+ response_content = http_response.body
624
+ unless status_code == 200
625
+ error_model = JSON.load(response_content)
626
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
627
+ end
628
+
629
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
630
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
631
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
632
+ # Deserialize Response
633
+ if status_code == 200
634
+ begin
635
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
636
+ result_mapper = Azure::Batch::Mgmt::V2018_12_01::Models::Certificate.mapper()
637
+ result.body = @client.deserialize(result_mapper, parsed_response)
638
+ rescue Exception => e
639
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
640
+ end
641
+ end
642
+
643
+ result
644
+ end
645
+
646
+ promise.execute
647
+ end
648
+
649
+ #
650
+ # Creates a new certificate inside the specified account.
651
+ #
652
+ # @param resource_group_name [String] The name of the resource group that
653
+ # contains the Batch account.
654
+ # @param account_name [String] The name of the Batch account.
655
+ # @param certificate_name [String] The identifier for the certificate. This
656
+ # must be made up of algorithm and thumbprint separated by a dash, and must
657
+ # match the certificate data in the request. For example SHA1-a3d1c5.
658
+ # @param parameters [CertificateCreateOrUpdateParameters] Additional parameters
659
+ # for certificate creation.
660
+ # @param if_match [String] The entity state (ETag) version of the certificate
661
+ # to update. A value of "*" can be used to apply the operation only if the
662
+ # certificate already exists. If omitted, this operation will always be
663
+ # applied.
664
+ # @param if_none_match [String] Set to '*' to allow a new certificate to be
665
+ # created, but to prevent updating an existing certificate. Other values will
666
+ # be ignored.
667
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
668
+ # will be added to the HTTP request.
669
+ #
670
+ # @return [Certificate] operation results.
671
+ #
672
+ def begin_create(resource_group_name, account_name, certificate_name, parameters, if_match:nil, if_none_match:nil, custom_headers:nil)
673
+ response = begin_create_async(resource_group_name, account_name, certificate_name, parameters, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value!
674
+ response.body unless response.nil?
675
+ end
676
+
677
+ #
678
+ # Creates a new certificate inside the specified account.
679
+ #
680
+ # @param resource_group_name [String] The name of the resource group that
681
+ # contains the Batch account.
682
+ # @param account_name [String] The name of the Batch account.
683
+ # @param certificate_name [String] The identifier for the certificate. This
684
+ # must be made up of algorithm and thumbprint separated by a dash, and must
685
+ # match the certificate data in the request. For example SHA1-a3d1c5.
686
+ # @param parameters [CertificateCreateOrUpdateParameters] Additional parameters
687
+ # for certificate creation.
688
+ # @param if_match [String] The entity state (ETag) version of the certificate
689
+ # to update. A value of "*" can be used to apply the operation only if the
690
+ # certificate already exists. If omitted, this operation will always be
691
+ # applied.
692
+ # @param if_none_match [String] Set to '*' to allow a new certificate to be
693
+ # created, but to prevent updating an existing certificate. Other values will
694
+ # be ignored.
695
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
696
+ # will be added to the HTTP request.
697
+ #
698
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
699
+ #
700
+ def begin_create_with_http_info(resource_group_name, account_name, certificate_name, parameters, if_match:nil, if_none_match:nil, custom_headers:nil)
701
+ begin_create_async(resource_group_name, account_name, certificate_name, parameters, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value!
702
+ end
703
+
704
+ #
705
+ # Creates a new certificate inside the specified account.
706
+ #
707
+ # @param resource_group_name [String] The name of the resource group that
708
+ # contains the Batch account.
709
+ # @param account_name [String] The name of the Batch account.
710
+ # @param certificate_name [String] The identifier for the certificate. This
711
+ # must be made up of algorithm and thumbprint separated by a dash, and must
712
+ # match the certificate data in the request. For example SHA1-a3d1c5.
713
+ # @param parameters [CertificateCreateOrUpdateParameters] Additional parameters
714
+ # for certificate creation.
715
+ # @param if_match [String] The entity state (ETag) version of the certificate
716
+ # to update. A value of "*" can be used to apply the operation only if the
717
+ # certificate already exists. If omitted, this operation will always be
718
+ # applied.
719
+ # @param if_none_match [String] Set to '*' to allow a new certificate to be
720
+ # created, but to prevent updating an existing certificate. Other values will
721
+ # be ignored.
722
+ # @param [Hash{String => String}] A hash of custom headers that will be added
723
+ # to the HTTP request.
724
+ #
725
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
726
+ #
727
+ def begin_create_async(resource_group_name, account_name, certificate_name, parameters, if_match:nil, if_none_match:nil, custom_headers:nil)
728
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
729
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
730
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
731
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
732
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
733
+ fail ArgumentError, 'certificate_name is nil' if certificate_name.nil?
734
+ fail ArgumentError, "'certificate_name' should satisfy the constraint - 'MaxLength': '45'" if !certificate_name.nil? && certificate_name.length > 45
735
+ fail ArgumentError, "'certificate_name' should satisfy the constraint - 'MinLength': '5'" if !certificate_name.nil? && certificate_name.length < 5
736
+ fail ArgumentError, "'certificate_name' should satisfy the constraint - 'Pattern': '^[\w]+-[\w]+$'" if !certificate_name.nil? && certificate_name.match(Regexp.new('^^[\w]+-[\w]+$$')).nil?
737
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
738
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
739
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
740
+
741
+
742
+ request_headers = {}
743
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
744
+
745
+ # Set Headers
746
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
747
+ request_headers['If-Match'] = if_match unless if_match.nil?
748
+ request_headers['If-None-Match'] = if_none_match unless if_none_match.nil?
749
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
750
+
751
+ # Serialize Request
752
+ request_mapper = Azure::Batch::Mgmt::V2018_12_01::Models::CertificateCreateOrUpdateParameters.mapper()
753
+ request_content = @client.serialize(request_mapper, parameters)
754
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
755
+
756
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}'
757
+
758
+ request_url = @base_url || @client.base_url
759
+
760
+ options = {
761
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
762
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'certificateName' => certificate_name,'subscriptionId' => @client.subscription_id},
763
+ query_params: {'api-version' => @client.api_version},
764
+ body: request_content,
765
+ headers: request_headers.merge(custom_headers || {}),
766
+ base_url: request_url
767
+ }
768
+ promise = @client.make_request_async(:put, path_template, options)
769
+
770
+ promise = promise.then do |result|
771
+ http_response = result.response
772
+ status_code = http_response.status
773
+ response_content = http_response.body
774
+ unless status_code == 200
775
+ error_model = JSON.load(response_content)
776
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
777
+ end
778
+
779
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
780
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
781
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
782
+ # Deserialize Response
783
+ if status_code == 200
784
+ begin
785
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
786
+ result_mapper = Azure::Batch::Mgmt::V2018_12_01::Models::Certificate.mapper()
787
+ result.body = @client.deserialize(result_mapper, parsed_response)
788
+ rescue Exception => e
789
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
790
+ end
791
+ end
792
+
793
+ result
794
+ end
795
+
796
+ promise.execute
797
+ end
798
+
799
+ #
800
+ # Deletes the specified certificate.
801
+ #
802
+ # @param resource_group_name [String] The name of the resource group that
803
+ # contains the Batch account.
804
+ # @param account_name [String] The name of the Batch account.
805
+ # @param certificate_name [String] The identifier for the certificate. This
806
+ # must be made up of algorithm and thumbprint separated by a dash, and must
807
+ # match the certificate data in the request. For example SHA1-a3d1c5.
808
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
809
+ # will be added to the HTTP request.
810
+ #
811
+ #
812
+ def begin_delete(resource_group_name, account_name, certificate_name, custom_headers:nil)
813
+ response = begin_delete_async(resource_group_name, account_name, certificate_name, custom_headers:custom_headers).value!
814
+ nil
815
+ end
816
+
817
+ #
818
+ # Deletes the specified certificate.
819
+ #
820
+ # @param resource_group_name [String] The name of the resource group that
821
+ # contains the Batch account.
822
+ # @param account_name [String] The name of the Batch account.
823
+ # @param certificate_name [String] The identifier for the certificate. This
824
+ # must be made up of algorithm and thumbprint separated by a dash, and must
825
+ # match the certificate data in the request. For example SHA1-a3d1c5.
826
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
827
+ # will be added to the HTTP request.
828
+ #
829
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
830
+ #
831
+ def begin_delete_with_http_info(resource_group_name, account_name, certificate_name, custom_headers:nil)
832
+ begin_delete_async(resource_group_name, account_name, certificate_name, custom_headers:custom_headers).value!
833
+ end
834
+
835
+ #
836
+ # Deletes the specified certificate.
837
+ #
838
+ # @param resource_group_name [String] The name of the resource group that
839
+ # contains the Batch account.
840
+ # @param account_name [String] The name of the Batch account.
841
+ # @param certificate_name [String] The identifier for the certificate. This
842
+ # must be made up of algorithm and thumbprint separated by a dash, and must
843
+ # match the certificate data in the request. For example SHA1-a3d1c5.
844
+ # @param [Hash{String => String}] A hash of custom headers that will be added
845
+ # to the HTTP request.
846
+ #
847
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
848
+ #
849
+ def begin_delete_async(resource_group_name, account_name, certificate_name, custom_headers:nil)
850
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
851
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
852
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
853
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
854
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
855
+ fail ArgumentError, 'certificate_name is nil' if certificate_name.nil?
856
+ fail ArgumentError, "'certificate_name' should satisfy the constraint - 'MaxLength': '45'" if !certificate_name.nil? && certificate_name.length > 45
857
+ fail ArgumentError, "'certificate_name' should satisfy the constraint - 'MinLength': '5'" if !certificate_name.nil? && certificate_name.length < 5
858
+ fail ArgumentError, "'certificate_name' should satisfy the constraint - 'Pattern': '^[\w]+-[\w]+$'" if !certificate_name.nil? && certificate_name.match(Regexp.new('^^[\w]+-[\w]+$$')).nil?
859
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
860
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
861
+
862
+
863
+ request_headers = {}
864
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
865
+
866
+ # Set Headers
867
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
868
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
869
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}'
870
+
871
+ request_url = @base_url || @client.base_url
872
+
873
+ options = {
874
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
875
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'certificateName' => certificate_name,'subscriptionId' => @client.subscription_id},
876
+ query_params: {'api-version' => @client.api_version},
877
+ headers: request_headers.merge(custom_headers || {}),
878
+ base_url: request_url
879
+ }
880
+ promise = @client.make_request_async(:delete, path_template, options)
881
+
882
+ promise = promise.then do |result|
883
+ http_response = result.response
884
+ status_code = http_response.status
885
+ response_content = http_response.body
886
+ unless status_code == 200 || status_code == 204 || status_code == 202
887
+ error_model = JSON.load(response_content)
888
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
889
+ end
890
+
891
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
892
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
893
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
894
+
895
+ result
896
+ end
897
+
898
+ promise.execute
899
+ end
900
+
901
+ #
902
+ # Lists all of the certificates in the specified account.
903
+ #
904
+ # @param next_page_link [String] The NextLink from the previous successful call
905
+ # to List operation.
906
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
907
+ # will be added to the HTTP request.
908
+ #
909
+ # @return [ListCertificatesResult] operation results.
910
+ #
911
+ def list_by_batch_account_next(next_page_link, custom_headers:nil)
912
+ response = list_by_batch_account_next_async(next_page_link, custom_headers:custom_headers).value!
913
+ response.body unless response.nil?
914
+ end
915
+
916
+ #
917
+ # Lists all of the certificates in the specified account.
918
+ #
919
+ # @param next_page_link [String] The NextLink from the previous successful call
920
+ # to List operation.
921
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
922
+ # will be added to the HTTP request.
923
+ #
924
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
925
+ #
926
+ def list_by_batch_account_next_with_http_info(next_page_link, custom_headers:nil)
927
+ list_by_batch_account_next_async(next_page_link, custom_headers:custom_headers).value!
928
+ end
929
+
930
+ #
931
+ # Lists all of the certificates in the specified account.
932
+ #
933
+ # @param next_page_link [String] The NextLink from the previous successful call
934
+ # to List operation.
935
+ # @param [Hash{String => String}] A hash of custom headers that will be added
936
+ # to the HTTP request.
937
+ #
938
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
939
+ #
940
+ def list_by_batch_account_next_async(next_page_link, custom_headers:nil)
941
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
942
+
943
+
944
+ request_headers = {}
945
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
946
+
947
+ # Set Headers
948
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
949
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
950
+ path_template = '{nextLink}'
951
+
952
+ request_url = @base_url || @client.base_url
953
+
954
+ options = {
955
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
956
+ skip_encoding_path_params: {'nextLink' => next_page_link},
957
+ headers: request_headers.merge(custom_headers || {}),
958
+ base_url: request_url
959
+ }
960
+ promise = @client.make_request_async(:get, path_template, options)
961
+
962
+ promise = promise.then do |result|
963
+ http_response = result.response
964
+ status_code = http_response.status
965
+ response_content = http_response.body
966
+ unless status_code == 200
967
+ error_model = JSON.load(response_content)
968
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
969
+ end
970
+
971
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
972
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
973
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
974
+ # Deserialize Response
975
+ if status_code == 200
976
+ begin
977
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
978
+ result_mapper = Azure::Batch::Mgmt::V2018_12_01::Models::ListCertificatesResult.mapper()
979
+ result.body = @client.deserialize(result_mapper, parsed_response)
980
+ rescue Exception => e
981
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
982
+ end
983
+ end
984
+
985
+ result
986
+ end
987
+
988
+ promise.execute
989
+ end
990
+
991
+ #
992
+ # Lists all of the certificates in the specified account.
993
+ #
994
+ # @param resource_group_name [String] The name of the resource group that
995
+ # contains the Batch account.
996
+ # @param account_name [String] The name of the Batch account.
997
+ # @param maxresults [Integer] The maximum number of items to return in the
998
+ # response.
999
+ # @param select [String] Comma separated list of properties that should be
1000
+ # returned. e.g. "properties/provisioningState". Only top level properties
1001
+ # under properties/ are valid for selection.
1002
+ # @param filter [String] OData filter expression. Valid properties for
1003
+ # filtering are "properties/provisioningState",
1004
+ # "properties/provisioningStateTransitionTime", "name".
1005
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1006
+ # will be added to the HTTP request.
1007
+ #
1008
+ # @return [ListCertificatesResult] which provide lazy access to pages of the
1009
+ # response.
1010
+ #
1011
+ def list_by_batch_account_as_lazy(resource_group_name, account_name, maxresults:nil, select:nil, filter:nil, custom_headers:nil)
1012
+ response = list_by_batch_account_async(resource_group_name, account_name, maxresults:maxresults, select:select, filter:filter, custom_headers:custom_headers).value!
1013
+ unless response.nil?
1014
+ page = response.body
1015
+ page.next_method = Proc.new do |next_page_link|
1016
+ list_by_batch_account_next_async(next_page_link, custom_headers:custom_headers)
1017
+ end
1018
+ page
1019
+ end
1020
+ end
1021
+
1022
+ end
1023
+ end