azure_mgmt_resources2 0.18.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (880) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +114 -0
  4. data/lib/2016-02-01/generated/azure_mgmt_resources/deployment_operations.rb +346 -0
  5. data/lib/2016-02-01/generated/azure_mgmt_resources/deployments.rb +1149 -0
  6. data/lib/2016-02-01/generated/azure_mgmt_resources/models/alias_path_type.rb +66 -0
  7. data/lib/2016-02-01/generated/azure_mgmt_resources/models/alias_type.rb +67 -0
  8. data/lib/2016-02-01/generated/azure_mgmt_resources/models/basic_dependency.rb +68 -0
  9. data/lib/2016-02-01/generated/azure_mgmt_resources/models/debug_setting.rb +47 -0
  10. data/lib/2016-02-01/generated/azure_mgmt_resources/models/dependency.rb +88 -0
  11. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment.rb +47 -0
  12. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_export_result.rb +47 -0
  13. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_extended.rb +70 -0
  14. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +46 -0
  15. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_list_result.rb +98 -0
  16. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_mode.rb +16 -0
  17. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_operation.rb +69 -0
  18. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +126 -0
  19. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +98 -0
  20. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_properties.rb +110 -0
  21. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +194 -0
  22. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_validate_result.rb +60 -0
  23. data/lib/2016-02-01/generated/azure_mgmt_resources/models/error_additional_info.rb +59 -0
  24. data/lib/2016-02-01/generated/azure_mgmt_resources/models/error_response.rb +113 -0
  25. data/lib/2016-02-01/generated/azure_mgmt_resources/models/export_template_request.rb +69 -0
  26. data/lib/2016-02-01/generated/azure_mgmt_resources/models/generic_resource.rb +155 -0
  27. data/lib/2016-02-01/generated/azure_mgmt_resources/models/generic_resource_filter.rb +68 -0
  28. data/lib/2016-02-01/generated/azure_mgmt_resources/models/http_message.rb +47 -0
  29. data/lib/2016-02-01/generated/azure_mgmt_resources/models/identity.rb +72 -0
  30. data/lib/2016-02-01/generated/azure_mgmt_resources/models/parameters_link.rb +58 -0
  31. data/lib/2016-02-01/generated/azure_mgmt_resources/models/plan.rb +79 -0
  32. data/lib/2016-02-01/generated/azure_mgmt_resources/models/provider.rb +89 -0
  33. data/lib/2016-02-01/generated/azure_mgmt_resources/models/provider_list_result.rb +98 -0
  34. data/lib/2016-02-01/generated/azure_mgmt_resources/models/provider_resource_type.rb +125 -0
  35. data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource.rb +111 -0
  36. data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource_group.rb +104 -0
  37. data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource_group_export_result.rb +59 -0
  38. data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource_group_filter.rb +57 -0
  39. data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource_group_list_result.rb +98 -0
  40. data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource_group_properties.rb +47 -0
  41. data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource_identity_type.rb +15 -0
  42. data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource_list_result.rb +98 -0
  43. data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +89 -0
  44. data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +91 -0
  45. data/lib/2016-02-01/generated/azure_mgmt_resources/models/resources_move_info.rb +65 -0
  46. data/lib/2016-02-01/generated/azure_mgmt_resources/models/sku.rb +101 -0
  47. data/lib/2016-02-01/generated/azure_mgmt_resources/models/sub_resource.rb +47 -0
  48. data/lib/2016-02-01/generated/azure_mgmt_resources/models/tag_count.rb +57 -0
  49. data/lib/2016-02-01/generated/azure_mgmt_resources/models/tag_details.rb +90 -0
  50. data/lib/2016-02-01/generated/azure_mgmt_resources/models/tag_value.rb +70 -0
  51. data/lib/2016-02-01/generated/azure_mgmt_resources/models/tags_list_result.rb +98 -0
  52. data/lib/2016-02-01/generated/azure_mgmt_resources/models/target_resource.rb +68 -0
  53. data/lib/2016-02-01/generated/azure_mgmt_resources/models/template_hash_result.rb +58 -0
  54. data/lib/2016-02-01/generated/azure_mgmt_resources/models/template_link.rb +58 -0
  55. data/lib/2016-02-01/generated/azure_mgmt_resources/module_definition.rb +9 -0
  56. data/lib/2016-02-01/generated/azure_mgmt_resources/providers.rb +522 -0
  57. data/lib/2016-02-01/generated/azure_mgmt_resources/resource_groups.rb +1112 -0
  58. data/lib/2016-02-01/generated/azure_mgmt_resources/resource_management_client.rb +151 -0
  59. data/lib/2016-02-01/generated/azure_mgmt_resources/resources.rb +1023 -0
  60. data/lib/2016-02-01/generated/azure_mgmt_resources/tags.rb +586 -0
  61. data/lib/2016-02-01/generated/azure_mgmt_resources.rb +82 -0
  62. data/lib/2016-06-01/generated/azure_mgmt_resources/models/location.rb +108 -0
  63. data/lib/2016-06-01/generated/azure_mgmt_resources/models/location_list_result.rb +55 -0
  64. data/lib/2016-06-01/generated/azure_mgmt_resources/models/operation.rb +58 -0
  65. data/lib/2016-06-01/generated/azure_mgmt_resources/models/operation_display.rb +80 -0
  66. data/lib/2016-06-01/generated/azure_mgmt_resources/models/operation_list_result.rb +100 -0
  67. data/lib/2016-06-01/generated/azure_mgmt_resources/models/spending_limit.rb +17 -0
  68. data/lib/2016-06-01/generated/azure_mgmt_resources/models/subscription.rb +112 -0
  69. data/lib/2016-06-01/generated/azure_mgmt_resources/models/subscription_list_result.rb +98 -0
  70. data/lib/2016-06-01/generated/azure_mgmt_resources/models/subscription_policies.rb +76 -0
  71. data/lib/2016-06-01/generated/azure_mgmt_resources/models/subscription_state.rb +19 -0
  72. data/lib/2016-06-01/generated/azure_mgmt_resources/models/tenant_id_description.rb +61 -0
  73. data/lib/2016-06-01/generated/azure_mgmt_resources/models/tenant_list_result.rb +98 -0
  74. data/lib/2016-06-01/generated/azure_mgmt_resources/module_definition.rb +9 -0
  75. data/lib/2016-06-01/generated/azure_mgmt_resources/operations.rb +222 -0
  76. data/lib/2016-06-01/generated/azure_mgmt_resources/subscription_client.rb +136 -0
  77. data/lib/2016-06-01/generated/azure_mgmt_resources/subscriptions.rb +409 -0
  78. data/lib/2016-06-01/generated/azure_mgmt_resources/tenants.rb +222 -0
  79. data/lib/2016-06-01/generated/azure_mgmt_resources.rb +42 -0
  80. data/lib/2016-07-01/generated/azure_mgmt_resources/deployment_operations.rb +346 -0
  81. data/lib/2016-07-01/generated/azure_mgmt_resources/deployments.rb +1149 -0
  82. data/lib/2016-07-01/generated/azure_mgmt_resources/models/alias_path_type.rb +65 -0
  83. data/lib/2016-07-01/generated/azure_mgmt_resources/models/alias_type.rb +66 -0
  84. data/lib/2016-07-01/generated/azure_mgmt_resources/models/basic_dependency.rb +68 -0
  85. data/lib/2016-07-01/generated/azure_mgmt_resources/models/debug_setting.rb +47 -0
  86. data/lib/2016-07-01/generated/azure_mgmt_resources/models/dependency.rb +88 -0
  87. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment.rb +47 -0
  88. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_export_result.rb +46 -0
  89. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_extended.rb +70 -0
  90. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +46 -0
  91. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_list_result.rb +98 -0
  92. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_mode.rb +16 -0
  93. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_operation.rb +69 -0
  94. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +126 -0
  95. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +98 -0
  96. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_properties.rb +110 -0
  97. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +194 -0
  98. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_validate_result.rb +60 -0
  99. data/lib/2016-07-01/generated/azure_mgmt_resources/models/error_additional_info.rb +59 -0
  100. data/lib/2016-07-01/generated/azure_mgmt_resources/models/error_response.rb +113 -0
  101. data/lib/2016-07-01/generated/azure_mgmt_resources/models/export_template_request.rb +69 -0
  102. data/lib/2016-07-01/generated/azure_mgmt_resources/models/generic_resource.rb +155 -0
  103. data/lib/2016-07-01/generated/azure_mgmt_resources/models/generic_resource_filter.rb +68 -0
  104. data/lib/2016-07-01/generated/azure_mgmt_resources/models/http_message.rb +47 -0
  105. data/lib/2016-07-01/generated/azure_mgmt_resources/models/identity.rb +72 -0
  106. data/lib/2016-07-01/generated/azure_mgmt_resources/models/parameters_link.rb +58 -0
  107. data/lib/2016-07-01/generated/azure_mgmt_resources/models/plan.rb +79 -0
  108. data/lib/2016-07-01/generated/azure_mgmt_resources/models/provider.rb +89 -0
  109. data/lib/2016-07-01/generated/azure_mgmt_resources/models/provider_list_result.rb +98 -0
  110. data/lib/2016-07-01/generated/azure_mgmt_resources/models/provider_resource_type.rb +125 -0
  111. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource.rb +111 -0
  112. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_group.rb +104 -0
  113. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_group_export_result.rb +59 -0
  114. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_group_filter.rb +57 -0
  115. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_group_list_result.rb +98 -0
  116. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_group_properties.rb +47 -0
  117. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_identity_type.rb +15 -0
  118. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_list_result.rb +98 -0
  119. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +89 -0
  120. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +91 -0
  121. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resources_move_info.rb +65 -0
  122. data/lib/2016-07-01/generated/azure_mgmt_resources/models/sku.rb +101 -0
  123. data/lib/2016-07-01/generated/azure_mgmt_resources/models/sub_resource.rb +47 -0
  124. data/lib/2016-07-01/generated/azure_mgmt_resources/models/tag_count.rb +57 -0
  125. data/lib/2016-07-01/generated/azure_mgmt_resources/models/tag_details.rb +90 -0
  126. data/lib/2016-07-01/generated/azure_mgmt_resources/models/tag_value.rb +70 -0
  127. data/lib/2016-07-01/generated/azure_mgmt_resources/models/tags_list_result.rb +98 -0
  128. data/lib/2016-07-01/generated/azure_mgmt_resources/models/target_resource.rb +68 -0
  129. data/lib/2016-07-01/generated/azure_mgmt_resources/models/template_hash_result.rb +58 -0
  130. data/lib/2016-07-01/generated/azure_mgmt_resources/models/template_link.rb +58 -0
  131. data/lib/2016-07-01/generated/azure_mgmt_resources/module_definition.rb +9 -0
  132. data/lib/2016-07-01/generated/azure_mgmt_resources/providers.rb +522 -0
  133. data/lib/2016-07-01/generated/azure_mgmt_resources/resource_groups.rb +1112 -0
  134. data/lib/2016-07-01/generated/azure_mgmt_resources/resource_management_client.rb +153 -0
  135. data/lib/2016-07-01/generated/azure_mgmt_resources/resources.rb +1023 -0
  136. data/lib/2016-07-01/generated/azure_mgmt_resources/tags.rb +586 -0
  137. data/lib/2016-07-01/generated/azure_mgmt_resources.rb +82 -0
  138. data/lib/2016-09-01/generated/azure_mgmt_resources/deployment_operations.rb +356 -0
  139. data/lib/2016-09-01/generated/azure_mgmt_resources/deployments.rb +1256 -0
  140. data/lib/2016-09-01/generated/azure_mgmt_resources/models/alias_path_type.rb +65 -0
  141. data/lib/2016-09-01/generated/azure_mgmt_resources/models/alias_type.rb +66 -0
  142. data/lib/2016-09-01/generated/azure_mgmt_resources/models/basic_dependency.rb +68 -0
  143. data/lib/2016-09-01/generated/azure_mgmt_resources/models/debug_setting.rb +54 -0
  144. data/lib/2016-09-01/generated/azure_mgmt_resources/models/dependency.rb +88 -0
  145. data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment.rb +47 -0
  146. data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_export_result.rb +46 -0
  147. data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_extended.rb +70 -0
  148. data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +46 -0
  149. data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_list_result.rb +99 -0
  150. data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_mode.rb +16 -0
  151. data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_operation.rb +71 -0
  152. data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +134 -0
  153. data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +99 -0
  154. data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_properties.rb +124 -0
  155. data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +198 -0
  156. data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_validate_result.rb +60 -0
  157. data/lib/2016-09-01/generated/azure_mgmt_resources/models/error_additional_info.rb +59 -0
  158. data/lib/2016-09-01/generated/azure_mgmt_resources/models/error_response.rb +113 -0
  159. data/lib/2016-09-01/generated/azure_mgmt_resources/models/export_template_request.rb +69 -0
  160. data/lib/2016-09-01/generated/azure_mgmt_resources/models/generic_resource.rb +158 -0
  161. data/lib/2016-09-01/generated/azure_mgmt_resources/models/generic_resource_filter.rb +68 -0
  162. data/lib/2016-09-01/generated/azure_mgmt_resources/models/http_message.rb +47 -0
  163. data/lib/2016-09-01/generated/azure_mgmt_resources/models/identity.rb +72 -0
  164. data/lib/2016-09-01/generated/azure_mgmt_resources/models/parameters_link.rb +58 -0
  165. data/lib/2016-09-01/generated/azure_mgmt_resources/models/plan.rb +79 -0
  166. data/lib/2016-09-01/generated/azure_mgmt_resources/models/provider.rb +92 -0
  167. data/lib/2016-09-01/generated/azure_mgmt_resources/models/provider_list_result.rb +99 -0
  168. data/lib/2016-09-01/generated/azure_mgmt_resources/models/provider_resource_type.rb +125 -0
  169. data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource.rb +111 -0
  170. data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_group.rb +115 -0
  171. data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_group_export_result.rb +59 -0
  172. data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_group_filter.rb +57 -0
  173. data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_group_list_result.rb +99 -0
  174. data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_group_properties.rb +47 -0
  175. data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_identity_type.rb +15 -0
  176. data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_list_result.rb +99 -0
  177. data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +93 -0
  178. data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +91 -0
  179. data/lib/2016-09-01/generated/azure_mgmt_resources/models/resources_move_info.rb +65 -0
  180. data/lib/2016-09-01/generated/azure_mgmt_resources/models/sku.rb +101 -0
  181. data/lib/2016-09-01/generated/azure_mgmt_resources/models/sub_resource.rb +47 -0
  182. data/lib/2016-09-01/generated/azure_mgmt_resources/models/tag_count.rb +57 -0
  183. data/lib/2016-09-01/generated/azure_mgmt_resources/models/tag_details.rb +92 -0
  184. data/lib/2016-09-01/generated/azure_mgmt_resources/models/tag_value.rb +70 -0
  185. data/lib/2016-09-01/generated/azure_mgmt_resources/models/tags_list_result.rb +99 -0
  186. data/lib/2016-09-01/generated/azure_mgmt_resources/models/target_resource.rb +68 -0
  187. data/lib/2016-09-01/generated/azure_mgmt_resources/models/template_hash_result.rb +58 -0
  188. data/lib/2016-09-01/generated/azure_mgmt_resources/models/template_link.rb +58 -0
  189. data/lib/2016-09-01/generated/azure_mgmt_resources/module_definition.rb +9 -0
  190. data/lib/2016-09-01/generated/azure_mgmt_resources/providers.rb +530 -0
  191. data/lib/2016-09-01/generated/azure_mgmt_resources/resource_groups.rb +1131 -0
  192. data/lib/2016-09-01/generated/azure_mgmt_resources/resource_management_client.rb +151 -0
  193. data/lib/2016-09-01/generated/azure_mgmt_resources/resources.rb +1814 -0
  194. data/lib/2016-09-01/generated/azure_mgmt_resources/tags.rb +611 -0
  195. data/lib/2016-09-01/generated/azure_mgmt_resources.rb +82 -0
  196. data/lib/2017-05-10/generated/azure_mgmt_resources/deployment_operations.rb +356 -0
  197. data/lib/2017-05-10/generated/azure_mgmt_resources/deployments.rb +1256 -0
  198. data/lib/2017-05-10/generated/azure_mgmt_resources/models/alias_path_type.rb +65 -0
  199. data/lib/2017-05-10/generated/azure_mgmt_resources/models/alias_type.rb +66 -0
  200. data/lib/2017-05-10/generated/azure_mgmt_resources/models/basic_dependency.rb +68 -0
  201. data/lib/2017-05-10/generated/azure_mgmt_resources/models/debug_setting.rb +54 -0
  202. data/lib/2017-05-10/generated/azure_mgmt_resources/models/dependency.rb +88 -0
  203. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment.rb +47 -0
  204. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_export_result.rb +46 -0
  205. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_extended.rb +70 -0
  206. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +46 -0
  207. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_list_result.rb +99 -0
  208. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_mode.rb +16 -0
  209. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_operation.rb +71 -0
  210. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +134 -0
  211. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +99 -0
  212. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_properties.rb +124 -0
  213. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +198 -0
  214. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_validate_result.rb +60 -0
  215. data/lib/2017-05-10/generated/azure_mgmt_resources/models/error_additional_info.rb +59 -0
  216. data/lib/2017-05-10/generated/azure_mgmt_resources/models/error_response.rb +113 -0
  217. data/lib/2017-05-10/generated/azure_mgmt_resources/models/export_template_request.rb +69 -0
  218. data/lib/2017-05-10/generated/azure_mgmt_resources/models/generic_resource.rb +158 -0
  219. data/lib/2017-05-10/generated/azure_mgmt_resources/models/generic_resource_filter.rb +68 -0
  220. data/lib/2017-05-10/generated/azure_mgmt_resources/models/http_message.rb +46 -0
  221. data/lib/2017-05-10/generated/azure_mgmt_resources/models/identity.rb +72 -0
  222. data/lib/2017-05-10/generated/azure_mgmt_resources/models/parameters_link.rb +58 -0
  223. data/lib/2017-05-10/generated/azure_mgmt_resources/models/plan.rb +90 -0
  224. data/lib/2017-05-10/generated/azure_mgmt_resources/models/provider.rb +92 -0
  225. data/lib/2017-05-10/generated/azure_mgmt_resources/models/provider_list_result.rb +99 -0
  226. data/lib/2017-05-10/generated/azure_mgmt_resources/models/provider_resource_type.rb +125 -0
  227. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource.rb +110 -0
  228. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_group.rb +115 -0
  229. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_group_export_result.rb +58 -0
  230. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_group_filter.rb +57 -0
  231. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_group_list_result.rb +99 -0
  232. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_group_patchable.rb +90 -0
  233. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_group_properties.rb +47 -0
  234. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_identity_type.rb +15 -0
  235. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_list_result.rb +99 -0
  236. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +92 -0
  237. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +91 -0
  238. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resources_move_info.rb +65 -0
  239. data/lib/2017-05-10/generated/azure_mgmt_resources/models/sku.rb +101 -0
  240. data/lib/2017-05-10/generated/azure_mgmt_resources/models/sub_resource.rb +46 -0
  241. data/lib/2017-05-10/generated/azure_mgmt_resources/models/tag_count.rb +57 -0
  242. data/lib/2017-05-10/generated/azure_mgmt_resources/models/tag_details.rb +92 -0
  243. data/lib/2017-05-10/generated/azure_mgmt_resources/models/tag_value.rb +70 -0
  244. data/lib/2017-05-10/generated/azure_mgmt_resources/models/tags_list_result.rb +99 -0
  245. data/lib/2017-05-10/generated/azure_mgmt_resources/models/target_resource.rb +68 -0
  246. data/lib/2017-05-10/generated/azure_mgmt_resources/models/template_hash_result.rb +58 -0
  247. data/lib/2017-05-10/generated/azure_mgmt_resources/models/template_link.rb +58 -0
  248. data/lib/2017-05-10/generated/azure_mgmt_resources/module_definition.rb +9 -0
  249. data/lib/2017-05-10/generated/azure_mgmt_resources/providers.rb +530 -0
  250. data/lib/2017-05-10/generated/azure_mgmt_resources/resource_groups.rb +907 -0
  251. data/lib/2017-05-10/generated/azure_mgmt_resources/resource_management_client.rb +151 -0
  252. data/lib/2017-05-10/generated/azure_mgmt_resources/resources.rb +2210 -0
  253. data/lib/2017-05-10/generated/azure_mgmt_resources/tags.rb +611 -0
  254. data/lib/2017-05-10/generated/azure_mgmt_resources.rb +83 -0
  255. data/lib/2018-02-01/generated/azure_mgmt_resources/deployment_operations.rb +356 -0
  256. data/lib/2018-02-01/generated/azure_mgmt_resources/deployments.rb +1256 -0
  257. data/lib/2018-02-01/generated/azure_mgmt_resources/models/alias_path_type.rb +65 -0
  258. data/lib/2018-02-01/generated/azure_mgmt_resources/models/alias_type.rb +66 -0
  259. data/lib/2018-02-01/generated/azure_mgmt_resources/models/basic_dependency.rb +68 -0
  260. data/lib/2018-02-01/generated/azure_mgmt_resources/models/debug_setting.rb +54 -0
  261. data/lib/2018-02-01/generated/azure_mgmt_resources/models/dependency.rb +88 -0
  262. data/lib/2018-02-01/generated/azure_mgmt_resources/models/deployment.rb +47 -0
  263. data/lib/2018-02-01/generated/azure_mgmt_resources/models/deployment_export_result.rb +46 -0
  264. data/lib/2018-02-01/generated/azure_mgmt_resources/models/deployment_extended.rb +70 -0
  265. data/lib/2018-02-01/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +46 -0
  266. data/lib/2018-02-01/generated/azure_mgmt_resources/models/deployment_list_result.rb +99 -0
  267. data/lib/2018-02-01/generated/azure_mgmt_resources/models/deployment_mode.rb +16 -0
  268. data/lib/2018-02-01/generated/azure_mgmt_resources/models/deployment_operation.rb +71 -0
  269. data/lib/2018-02-01/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +134 -0
  270. data/lib/2018-02-01/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +99 -0
  271. data/lib/2018-02-01/generated/azure_mgmt_resources/models/deployment_properties.rb +136 -0
  272. data/lib/2018-02-01/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +210 -0
  273. data/lib/2018-02-01/generated/azure_mgmt_resources/models/deployment_validate_result.rb +60 -0
  274. data/lib/2018-02-01/generated/azure_mgmt_resources/models/error_additional_info.rb +59 -0
  275. data/lib/2018-02-01/generated/azure_mgmt_resources/models/error_response.rb +113 -0
  276. data/lib/2018-02-01/generated/azure_mgmt_resources/models/export_template_request.rb +69 -0
  277. data/lib/2018-02-01/generated/azure_mgmt_resources/models/generic_resource.rb +158 -0
  278. data/lib/2018-02-01/generated/azure_mgmt_resources/models/generic_resource_filter.rb +68 -0
  279. data/lib/2018-02-01/generated/azure_mgmt_resources/models/http_message.rb +46 -0
  280. data/lib/2018-02-01/generated/azure_mgmt_resources/models/identity.rb +73 -0
  281. data/lib/2018-02-01/generated/azure_mgmt_resources/models/on_error_deployment.rb +60 -0
  282. data/lib/2018-02-01/generated/azure_mgmt_resources/models/on_error_deployment_extended.rb +73 -0
  283. data/lib/2018-02-01/generated/azure_mgmt_resources/models/on_error_deployment_type.rb +16 -0
  284. data/lib/2018-02-01/generated/azure_mgmt_resources/models/parameters_link.rb +58 -0
  285. data/lib/2018-02-01/generated/azure_mgmt_resources/models/plan.rb +90 -0
  286. data/lib/2018-02-01/generated/azure_mgmt_resources/models/provider.rb +92 -0
  287. data/lib/2018-02-01/generated/azure_mgmt_resources/models/provider_list_result.rb +99 -0
  288. data/lib/2018-02-01/generated/azure_mgmt_resources/models/provider_resource_type.rb +125 -0
  289. data/lib/2018-02-01/generated/azure_mgmt_resources/models/resource.rb +110 -0
  290. data/lib/2018-02-01/generated/azure_mgmt_resources/models/resource_group.rb +115 -0
  291. data/lib/2018-02-01/generated/azure_mgmt_resources/models/resource_group_export_result.rb +58 -0
  292. data/lib/2018-02-01/generated/azure_mgmt_resources/models/resource_group_filter.rb +57 -0
  293. data/lib/2018-02-01/generated/azure_mgmt_resources/models/resource_group_list_result.rb +99 -0
  294. data/lib/2018-02-01/generated/azure_mgmt_resources/models/resource_group_patchable.rb +90 -0
  295. data/lib/2018-02-01/generated/azure_mgmt_resources/models/resource_group_properties.rb +47 -0
  296. data/lib/2018-02-01/generated/azure_mgmt_resources/models/resource_identity_type.rb +18 -0
  297. data/lib/2018-02-01/generated/azure_mgmt_resources/models/resource_list_result.rb +99 -0
  298. data/lib/2018-02-01/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +92 -0
  299. data/lib/2018-02-01/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +91 -0
  300. data/lib/2018-02-01/generated/azure_mgmt_resources/models/resources_move_info.rb +65 -0
  301. data/lib/2018-02-01/generated/azure_mgmt_resources/models/sku.rb +101 -0
  302. data/lib/2018-02-01/generated/azure_mgmt_resources/models/sub_resource.rb +46 -0
  303. data/lib/2018-02-01/generated/azure_mgmt_resources/models/tag_count.rb +57 -0
  304. data/lib/2018-02-01/generated/azure_mgmt_resources/models/tag_details.rb +92 -0
  305. data/lib/2018-02-01/generated/azure_mgmt_resources/models/tag_value.rb +70 -0
  306. data/lib/2018-02-01/generated/azure_mgmt_resources/models/tags_list_result.rb +99 -0
  307. data/lib/2018-02-01/generated/azure_mgmt_resources/models/target_resource.rb +68 -0
  308. data/lib/2018-02-01/generated/azure_mgmt_resources/models/template_hash_result.rb +58 -0
  309. data/lib/2018-02-01/generated/azure_mgmt_resources/models/template_link.rb +58 -0
  310. data/lib/2018-02-01/generated/azure_mgmt_resources/module_definition.rb +9 -0
  311. data/lib/2018-02-01/generated/azure_mgmt_resources/providers.rb +530 -0
  312. data/lib/2018-02-01/generated/azure_mgmt_resources/resource_groups.rb +907 -0
  313. data/lib/2018-02-01/generated/azure_mgmt_resources/resource_management_client.rb +151 -0
  314. data/lib/2018-02-01/generated/azure_mgmt_resources/resources.rb +2210 -0
  315. data/lib/2018-02-01/generated/azure_mgmt_resources/tags.rb +611 -0
  316. data/lib/2018-02-01/generated/azure_mgmt_resources.rb +86 -0
  317. data/lib/2018-05-01/generated/azure_mgmt_resources/deployment_operations.rb +665 -0
  318. data/lib/2018-05-01/generated/azure_mgmt_resources/deployments.rb +2286 -0
  319. data/lib/2018-05-01/generated/azure_mgmt_resources/models/alias_path_type.rb +65 -0
  320. data/lib/2018-05-01/generated/azure_mgmt_resources/models/alias_type.rb +66 -0
  321. data/lib/2018-05-01/generated/azure_mgmt_resources/models/basic_dependency.rb +68 -0
  322. data/lib/2018-05-01/generated/azure_mgmt_resources/models/debug_setting.rb +54 -0
  323. data/lib/2018-05-01/generated/azure_mgmt_resources/models/dependency.rb +88 -0
  324. data/lib/2018-05-01/generated/azure_mgmt_resources/models/deployment.rb +58 -0
  325. data/lib/2018-05-01/generated/azure_mgmt_resources/models/deployment_export_result.rb +46 -0
  326. data/lib/2018-05-01/generated/azure_mgmt_resources/models/deployment_extended.rb +94 -0
  327. data/lib/2018-05-01/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +46 -0
  328. data/lib/2018-05-01/generated/azure_mgmt_resources/models/deployment_list_result.rb +99 -0
  329. data/lib/2018-05-01/generated/azure_mgmt_resources/models/deployment_mode.rb +16 -0
  330. data/lib/2018-05-01/generated/azure_mgmt_resources/models/deployment_operation.rb +71 -0
  331. data/lib/2018-05-01/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +134 -0
  332. data/lib/2018-05-01/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +99 -0
  333. data/lib/2018-05-01/generated/azure_mgmt_resources/models/deployment_properties.rb +136 -0
  334. data/lib/2018-05-01/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +210 -0
  335. data/lib/2018-05-01/generated/azure_mgmt_resources/models/deployment_validate_result.rb +60 -0
  336. data/lib/2018-05-01/generated/azure_mgmt_resources/models/error_additional_info.rb +59 -0
  337. data/lib/2018-05-01/generated/azure_mgmt_resources/models/error_response.rb +113 -0
  338. data/lib/2018-05-01/generated/azure_mgmt_resources/models/export_template_request.rb +69 -0
  339. data/lib/2018-05-01/generated/azure_mgmt_resources/models/generic_resource.rb +158 -0
  340. data/lib/2018-05-01/generated/azure_mgmt_resources/models/generic_resource_filter.rb +68 -0
  341. data/lib/2018-05-01/generated/azure_mgmt_resources/models/http_message.rb +46 -0
  342. data/lib/2018-05-01/generated/azure_mgmt_resources/models/identity.rb +96 -0
  343. data/lib/2018-05-01/generated/azure_mgmt_resources/models/identity_user_assigned_identities_value.rb +60 -0
  344. data/lib/2018-05-01/generated/azure_mgmt_resources/models/on_error_deployment.rb +60 -0
  345. data/lib/2018-05-01/generated/azure_mgmt_resources/models/on_error_deployment_extended.rb +73 -0
  346. data/lib/2018-05-01/generated/azure_mgmt_resources/models/on_error_deployment_type.rb +16 -0
  347. data/lib/2018-05-01/generated/azure_mgmt_resources/models/operation.rb +58 -0
  348. data/lib/2018-05-01/generated/azure_mgmt_resources/models/operation_display.rb +80 -0
  349. data/lib/2018-05-01/generated/azure_mgmt_resources/models/operation_list_result.rb +100 -0
  350. data/lib/2018-05-01/generated/azure_mgmt_resources/models/parameters_link.rb +58 -0
  351. data/lib/2018-05-01/generated/azure_mgmt_resources/models/plan.rb +90 -0
  352. data/lib/2018-05-01/generated/azure_mgmt_resources/models/provider.rb +92 -0
  353. data/lib/2018-05-01/generated/azure_mgmt_resources/models/provider_list_result.rb +99 -0
  354. data/lib/2018-05-01/generated/azure_mgmt_resources/models/provider_resource_type.rb +125 -0
  355. data/lib/2018-05-01/generated/azure_mgmt_resources/models/resource.rb +110 -0
  356. data/lib/2018-05-01/generated/azure_mgmt_resources/models/resource_group.rb +128 -0
  357. data/lib/2018-05-01/generated/azure_mgmt_resources/models/resource_group_export_result.rb +58 -0
  358. data/lib/2018-05-01/generated/azure_mgmt_resources/models/resource_group_filter.rb +57 -0
  359. data/lib/2018-05-01/generated/azure_mgmt_resources/models/resource_group_list_result.rb +99 -0
  360. data/lib/2018-05-01/generated/azure_mgmt_resources/models/resource_group_patchable.rb +90 -0
  361. data/lib/2018-05-01/generated/azure_mgmt_resources/models/resource_group_properties.rb +47 -0
  362. data/lib/2018-05-01/generated/azure_mgmt_resources/models/resource_identity_type.rb +18 -0
  363. data/lib/2018-05-01/generated/azure_mgmt_resources/models/resource_list_result.rb +99 -0
  364. data/lib/2018-05-01/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +92 -0
  365. data/lib/2018-05-01/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +91 -0
  366. data/lib/2018-05-01/generated/azure_mgmt_resources/models/resources_move_info.rb +65 -0
  367. data/lib/2018-05-01/generated/azure_mgmt_resources/models/sku.rb +101 -0
  368. data/lib/2018-05-01/generated/azure_mgmt_resources/models/sub_resource.rb +46 -0
  369. data/lib/2018-05-01/generated/azure_mgmt_resources/models/tag_count.rb +57 -0
  370. data/lib/2018-05-01/generated/azure_mgmt_resources/models/tag_details.rb +92 -0
  371. data/lib/2018-05-01/generated/azure_mgmt_resources/models/tag_value.rb +70 -0
  372. data/lib/2018-05-01/generated/azure_mgmt_resources/models/tags_list_result.rb +99 -0
  373. data/lib/2018-05-01/generated/azure_mgmt_resources/models/target_resource.rb +68 -0
  374. data/lib/2018-05-01/generated/azure_mgmt_resources/models/template_hash_result.rb +58 -0
  375. data/lib/2018-05-01/generated/azure_mgmt_resources/models/template_link.rb +58 -0
  376. data/lib/2018-05-01/generated/azure_mgmt_resources/module_definition.rb +9 -0
  377. data/lib/2018-05-01/generated/azure_mgmt_resources/operations.rb +219 -0
  378. data/lib/2018-05-01/generated/azure_mgmt_resources/providers.rb +530 -0
  379. data/lib/2018-05-01/generated/azure_mgmt_resources/resource_groups.rb +918 -0
  380. data/lib/2018-05-01/generated/azure_mgmt_resources/resource_management_client.rb +155 -0
  381. data/lib/2018-05-01/generated/azure_mgmt_resources/resources.rb +2338 -0
  382. data/lib/2018-05-01/generated/azure_mgmt_resources/tags.rb +611 -0
  383. data/lib/2018-05-01/generated/azure_mgmt_resources.rb +91 -0
  384. data/lib/2018-06-01/generated/azure_mgmt_resources/application_client.rb +135 -0
  385. data/lib/2018-06-01/generated/azure_mgmt_resources/application_definitions.rb +1052 -0
  386. data/lib/2018-06-01/generated/azure_mgmt_resources/applications.rb +1467 -0
  387. data/lib/2018-06-01/generated/azure_mgmt_resources/models/application.rb +202 -0
  388. data/lib/2018-06-01/generated/azure_mgmt_resources/models/application_artifact.rb +70 -0
  389. data/lib/2018-06-01/generated/azure_mgmt_resources/models/application_artifact_type.rb +16 -0
  390. data/lib/2018-06-01/generated/azure_mgmt_resources/models/application_definition.rb +240 -0
  391. data/lib/2018-06-01/generated/azure_mgmt_resources/models/application_definition_list_result.rb +99 -0
  392. data/lib/2018-06-01/generated/azure_mgmt_resources/models/application_list_result.rb +98 -0
  393. data/lib/2018-06-01/generated/azure_mgmt_resources/models/application_lock_level.rb +17 -0
  394. data/lib/2018-06-01/generated/azure_mgmt_resources/models/application_patchable.rb +202 -0
  395. data/lib/2018-06-01/generated/azure_mgmt_resources/models/application_provider_authorization.rb +62 -0
  396. data/lib/2018-06-01/generated/azure_mgmt_resources/models/error_response.rb +69 -0
  397. data/lib/2018-06-01/generated/azure_mgmt_resources/models/generic_resource.rb +121 -0
  398. data/lib/2018-06-01/generated/azure_mgmt_resources/models/identity.rb +72 -0
  399. data/lib/2018-06-01/generated/azure_mgmt_resources/models/plan.rb +90 -0
  400. data/lib/2018-06-01/generated/azure_mgmt_resources/models/plan_patchable.rb +90 -0
  401. data/lib/2018-06-01/generated/azure_mgmt_resources/models/provisioning_state.rb +25 -0
  402. data/lib/2018-06-01/generated/azure_mgmt_resources/models/resource.rb +110 -0
  403. data/lib/2018-06-01/generated/azure_mgmt_resources/models/resource_identity_type.rb +15 -0
  404. data/lib/2018-06-01/generated/azure_mgmt_resources/models/sku.rb +101 -0
  405. data/lib/2018-06-01/generated/azure_mgmt_resources/module_definition.rb +9 -0
  406. data/lib/2018-06-01/generated/azure_mgmt_resources.rb +47 -0
  407. data/lib/2019-03-01/generated/azure_mgmt_resources/deployment_operations.rb +665 -0
  408. data/lib/2019-03-01/generated/azure_mgmt_resources/deployments.rb +2286 -0
  409. data/lib/2019-03-01/generated/azure_mgmt_resources/models/alias_path_type.rb +65 -0
  410. data/lib/2019-03-01/generated/azure_mgmt_resources/models/alias_type.rb +66 -0
  411. data/lib/2019-03-01/generated/azure_mgmt_resources/models/basic_dependency.rb +68 -0
  412. data/lib/2019-03-01/generated/azure_mgmt_resources/models/debug_setting.rb +54 -0
  413. data/lib/2019-03-01/generated/azure_mgmt_resources/models/dependency.rb +88 -0
  414. data/lib/2019-03-01/generated/azure_mgmt_resources/models/deployment.rb +58 -0
  415. data/lib/2019-03-01/generated/azure_mgmt_resources/models/deployment_export_result.rb +46 -0
  416. data/lib/2019-03-01/generated/azure_mgmt_resources/models/deployment_extended.rb +94 -0
  417. data/lib/2019-03-01/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +46 -0
  418. data/lib/2019-03-01/generated/azure_mgmt_resources/models/deployment_list_result.rb +99 -0
  419. data/lib/2019-03-01/generated/azure_mgmt_resources/models/deployment_mode.rb +16 -0
  420. data/lib/2019-03-01/generated/azure_mgmt_resources/models/deployment_operation.rb +71 -0
  421. data/lib/2019-03-01/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +134 -0
  422. data/lib/2019-03-01/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +99 -0
  423. data/lib/2019-03-01/generated/azure_mgmt_resources/models/deployment_properties.rb +136 -0
  424. data/lib/2019-03-01/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +210 -0
  425. data/lib/2019-03-01/generated/azure_mgmt_resources/models/deployment_validate_result.rb +60 -0
  426. data/lib/2019-03-01/generated/azure_mgmt_resources/models/error_additional_info.rb +59 -0
  427. data/lib/2019-03-01/generated/azure_mgmt_resources/models/error_response.rb +113 -0
  428. data/lib/2019-03-01/generated/azure_mgmt_resources/models/export_template_request.rb +69 -0
  429. data/lib/2019-03-01/generated/azure_mgmt_resources/models/generic_resource.rb +158 -0
  430. data/lib/2019-03-01/generated/azure_mgmt_resources/models/generic_resource_filter.rb +68 -0
  431. data/lib/2019-03-01/generated/azure_mgmt_resources/models/http_message.rb +46 -0
  432. data/lib/2019-03-01/generated/azure_mgmt_resources/models/identity.rb +96 -0
  433. data/lib/2019-03-01/generated/azure_mgmt_resources/models/identity_user_assigned_identities_value.rb +60 -0
  434. data/lib/2019-03-01/generated/azure_mgmt_resources/models/on_error_deployment.rb +60 -0
  435. data/lib/2019-03-01/generated/azure_mgmt_resources/models/on_error_deployment_extended.rb +73 -0
  436. data/lib/2019-03-01/generated/azure_mgmt_resources/models/on_error_deployment_type.rb +16 -0
  437. data/lib/2019-03-01/generated/azure_mgmt_resources/models/operation.rb +58 -0
  438. data/lib/2019-03-01/generated/azure_mgmt_resources/models/operation_display.rb +80 -0
  439. data/lib/2019-03-01/generated/azure_mgmt_resources/models/operation_list_result.rb +100 -0
  440. data/lib/2019-03-01/generated/azure_mgmt_resources/models/parameters_link.rb +58 -0
  441. data/lib/2019-03-01/generated/azure_mgmt_resources/models/plan.rb +90 -0
  442. data/lib/2019-03-01/generated/azure_mgmt_resources/models/provider.rb +104 -0
  443. data/lib/2019-03-01/generated/azure_mgmt_resources/models/provider_list_result.rb +99 -0
  444. data/lib/2019-03-01/generated/azure_mgmt_resources/models/provider_resource_type.rb +137 -0
  445. data/lib/2019-03-01/generated/azure_mgmt_resources/models/resource.rb +110 -0
  446. data/lib/2019-03-01/generated/azure_mgmt_resources/models/resource_group.rb +128 -0
  447. data/lib/2019-03-01/generated/azure_mgmt_resources/models/resource_group_export_result.rb +58 -0
  448. data/lib/2019-03-01/generated/azure_mgmt_resources/models/resource_group_filter.rb +57 -0
  449. data/lib/2019-03-01/generated/azure_mgmt_resources/models/resource_group_list_result.rb +99 -0
  450. data/lib/2019-03-01/generated/azure_mgmt_resources/models/resource_group_patchable.rb +90 -0
  451. data/lib/2019-03-01/generated/azure_mgmt_resources/models/resource_group_properties.rb +47 -0
  452. data/lib/2019-03-01/generated/azure_mgmt_resources/models/resource_identity_type.rb +18 -0
  453. data/lib/2019-03-01/generated/azure_mgmt_resources/models/resource_list_result.rb +99 -0
  454. data/lib/2019-03-01/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +92 -0
  455. data/lib/2019-03-01/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +91 -0
  456. data/lib/2019-03-01/generated/azure_mgmt_resources/models/resources_move_info.rb +65 -0
  457. data/lib/2019-03-01/generated/azure_mgmt_resources/models/sku.rb +101 -0
  458. data/lib/2019-03-01/generated/azure_mgmt_resources/models/sub_resource.rb +46 -0
  459. data/lib/2019-03-01/generated/azure_mgmt_resources/models/tag_count.rb +57 -0
  460. data/lib/2019-03-01/generated/azure_mgmt_resources/models/tag_details.rb +92 -0
  461. data/lib/2019-03-01/generated/azure_mgmt_resources/models/tag_value.rb +70 -0
  462. data/lib/2019-03-01/generated/azure_mgmt_resources/models/tags_list_result.rb +99 -0
  463. data/lib/2019-03-01/generated/azure_mgmt_resources/models/target_resource.rb +68 -0
  464. data/lib/2019-03-01/generated/azure_mgmt_resources/models/template_hash_result.rb +58 -0
  465. data/lib/2019-03-01/generated/azure_mgmt_resources/models/template_link.rb +58 -0
  466. data/lib/2019-03-01/generated/azure_mgmt_resources/module_definition.rb +9 -0
  467. data/lib/2019-03-01/generated/azure_mgmt_resources/operations.rb +219 -0
  468. data/lib/2019-03-01/generated/azure_mgmt_resources/providers.rb +530 -0
  469. data/lib/2019-03-01/generated/azure_mgmt_resources/resource_groups.rb +918 -0
  470. data/lib/2019-03-01/generated/azure_mgmt_resources/resource_management_client.rb +155 -0
  471. data/lib/2019-03-01/generated/azure_mgmt_resources/resources.rb +2338 -0
  472. data/lib/2019-03-01/generated/azure_mgmt_resources/tags.rb +611 -0
  473. data/lib/2019-03-01/generated/azure_mgmt_resources.rb +91 -0
  474. data/lib/2019-05-01/generated/azure_mgmt_resources/deployment_operations.rb +973 -0
  475. data/lib/2019-05-01/generated/azure_mgmt_resources/deployments.rb +3352 -0
  476. data/lib/2019-05-01/generated/azure_mgmt_resources/models/alias_path_type.rb +65 -0
  477. data/lib/2019-05-01/generated/azure_mgmt_resources/models/alias_type.rb +66 -0
  478. data/lib/2019-05-01/generated/azure_mgmt_resources/models/basic_dependency.rb +68 -0
  479. data/lib/2019-05-01/generated/azure_mgmt_resources/models/debug_setting.rb +53 -0
  480. data/lib/2019-05-01/generated/azure_mgmt_resources/models/dependency.rb +88 -0
  481. data/lib/2019-05-01/generated/azure_mgmt_resources/models/deployment.rb +58 -0
  482. data/lib/2019-05-01/generated/azure_mgmt_resources/models/deployment_export_result.rb +46 -0
  483. data/lib/2019-05-01/generated/azure_mgmt_resources/models/deployment_extended.rb +94 -0
  484. data/lib/2019-05-01/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +46 -0
  485. data/lib/2019-05-01/generated/azure_mgmt_resources/models/deployment_list_result.rb +99 -0
  486. data/lib/2019-05-01/generated/azure_mgmt_resources/models/deployment_mode.rb +16 -0
  487. data/lib/2019-05-01/generated/azure_mgmt_resources/models/deployment_operation.rb +71 -0
  488. data/lib/2019-05-01/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +146 -0
  489. data/lib/2019-05-01/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +99 -0
  490. data/lib/2019-05-01/generated/azure_mgmt_resources/models/deployment_properties.rb +136 -0
  491. data/lib/2019-05-01/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +222 -0
  492. data/lib/2019-05-01/generated/azure_mgmt_resources/models/deployment_validate_result.rb +60 -0
  493. data/lib/2019-05-01/generated/azure_mgmt_resources/models/error_additional_info.rb +59 -0
  494. data/lib/2019-05-01/generated/azure_mgmt_resources/models/error_response.rb +113 -0
  495. data/lib/2019-05-01/generated/azure_mgmt_resources/models/export_template_request.rb +69 -0
  496. data/lib/2019-05-01/generated/azure_mgmt_resources/models/generic_resource.rb +158 -0
  497. data/lib/2019-05-01/generated/azure_mgmt_resources/models/generic_resource_filter.rb +68 -0
  498. data/lib/2019-05-01/generated/azure_mgmt_resources/models/http_message.rb +46 -0
  499. data/lib/2019-05-01/generated/azure_mgmt_resources/models/identity.rb +96 -0
  500. data/lib/2019-05-01/generated/azure_mgmt_resources/models/identity_user_assigned_identities_value.rb +60 -0
  501. data/lib/2019-05-01/generated/azure_mgmt_resources/models/on_error_deployment.rb +60 -0
  502. data/lib/2019-05-01/generated/azure_mgmt_resources/models/on_error_deployment_extended.rb +73 -0
  503. data/lib/2019-05-01/generated/azure_mgmt_resources/models/on_error_deployment_type.rb +16 -0
  504. data/lib/2019-05-01/generated/azure_mgmt_resources/models/operation.rb +58 -0
  505. data/lib/2019-05-01/generated/azure_mgmt_resources/models/operation_display.rb +80 -0
  506. data/lib/2019-05-01/generated/azure_mgmt_resources/models/operation_list_result.rb +100 -0
  507. data/lib/2019-05-01/generated/azure_mgmt_resources/models/parameters_link.rb +58 -0
  508. data/lib/2019-05-01/generated/azure_mgmt_resources/models/plan.rb +90 -0
  509. data/lib/2019-05-01/generated/azure_mgmt_resources/models/provider.rb +104 -0
  510. data/lib/2019-05-01/generated/azure_mgmt_resources/models/provider_list_result.rb +99 -0
  511. data/lib/2019-05-01/generated/azure_mgmt_resources/models/provider_resource_type.rb +137 -0
  512. data/lib/2019-05-01/generated/azure_mgmt_resources/models/resource.rb +110 -0
  513. data/lib/2019-05-01/generated/azure_mgmt_resources/models/resource_group.rb +128 -0
  514. data/lib/2019-05-01/generated/azure_mgmt_resources/models/resource_group_export_result.rb +58 -0
  515. data/lib/2019-05-01/generated/azure_mgmt_resources/models/resource_group_filter.rb +57 -0
  516. data/lib/2019-05-01/generated/azure_mgmt_resources/models/resource_group_list_result.rb +99 -0
  517. data/lib/2019-05-01/generated/azure_mgmt_resources/models/resource_group_patchable.rb +90 -0
  518. data/lib/2019-05-01/generated/azure_mgmt_resources/models/resource_group_properties.rb +47 -0
  519. data/lib/2019-05-01/generated/azure_mgmt_resources/models/resource_identity_type.rb +18 -0
  520. data/lib/2019-05-01/generated/azure_mgmt_resources/models/resource_list_result.rb +99 -0
  521. data/lib/2019-05-01/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +92 -0
  522. data/lib/2019-05-01/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +91 -0
  523. data/lib/2019-05-01/generated/azure_mgmt_resources/models/resources_move_info.rb +65 -0
  524. data/lib/2019-05-01/generated/azure_mgmt_resources/models/sku.rb +101 -0
  525. data/lib/2019-05-01/generated/azure_mgmt_resources/models/sub_resource.rb +46 -0
  526. data/lib/2019-05-01/generated/azure_mgmt_resources/models/tag_count.rb +57 -0
  527. data/lib/2019-05-01/generated/azure_mgmt_resources/models/tag_details.rb +92 -0
  528. data/lib/2019-05-01/generated/azure_mgmt_resources/models/tag_value.rb +70 -0
  529. data/lib/2019-05-01/generated/azure_mgmt_resources/models/tags_list_result.rb +99 -0
  530. data/lib/2019-05-01/generated/azure_mgmt_resources/models/target_resource.rb +68 -0
  531. data/lib/2019-05-01/generated/azure_mgmt_resources/models/template_hash_result.rb +58 -0
  532. data/lib/2019-05-01/generated/azure_mgmt_resources/models/template_link.rb +58 -0
  533. data/lib/2019-05-01/generated/azure_mgmt_resources/module_definition.rb +9 -0
  534. data/lib/2019-05-01/generated/azure_mgmt_resources/operations.rb +219 -0
  535. data/lib/2019-05-01/generated/azure_mgmt_resources/providers.rb +530 -0
  536. data/lib/2019-05-01/generated/azure_mgmt_resources/resource_groups.rb +918 -0
  537. data/lib/2019-05-01/generated/azure_mgmt_resources/resource_management_client.rb +155 -0
  538. data/lib/2019-05-01/generated/azure_mgmt_resources/resources.rb +2338 -0
  539. data/lib/2019-05-01/generated/azure_mgmt_resources/tags.rb +611 -0
  540. data/lib/2019-05-01/generated/azure_mgmt_resources.rb +91 -0
  541. data/lib/2019-05-10/generated/azure_mgmt_resources/deployment_operations.rb +973 -0
  542. data/lib/2019-05-10/generated/azure_mgmt_resources/deployments.rb +3352 -0
  543. data/lib/2019-05-10/generated/azure_mgmt_resources/models/alias_path_type.rb +65 -0
  544. data/lib/2019-05-10/generated/azure_mgmt_resources/models/alias_type.rb +66 -0
  545. data/lib/2019-05-10/generated/azure_mgmt_resources/models/basic_dependency.rb +68 -0
  546. data/lib/2019-05-10/generated/azure_mgmt_resources/models/debug_setting.rb +53 -0
  547. data/lib/2019-05-10/generated/azure_mgmt_resources/models/dependency.rb +88 -0
  548. data/lib/2019-05-10/generated/azure_mgmt_resources/models/deployment.rb +58 -0
  549. data/lib/2019-05-10/generated/azure_mgmt_resources/models/deployment_export_result.rb +46 -0
  550. data/lib/2019-05-10/generated/azure_mgmt_resources/models/deployment_extended.rb +94 -0
  551. data/lib/2019-05-10/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +46 -0
  552. data/lib/2019-05-10/generated/azure_mgmt_resources/models/deployment_list_result.rb +99 -0
  553. data/lib/2019-05-10/generated/azure_mgmt_resources/models/deployment_mode.rb +16 -0
  554. data/lib/2019-05-10/generated/azure_mgmt_resources/models/deployment_operation.rb +71 -0
  555. data/lib/2019-05-10/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +146 -0
  556. data/lib/2019-05-10/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +99 -0
  557. data/lib/2019-05-10/generated/azure_mgmt_resources/models/deployment_properties.rb +136 -0
  558. data/lib/2019-05-10/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +222 -0
  559. data/lib/2019-05-10/generated/azure_mgmt_resources/models/deployment_validate_result.rb +60 -0
  560. data/lib/2019-05-10/generated/azure_mgmt_resources/models/error_additional_info.rb +59 -0
  561. data/lib/2019-05-10/generated/azure_mgmt_resources/models/error_response.rb +113 -0
  562. data/lib/2019-05-10/generated/azure_mgmt_resources/models/export_template_request.rb +69 -0
  563. data/lib/2019-05-10/generated/azure_mgmt_resources/models/generic_resource.rb +158 -0
  564. data/lib/2019-05-10/generated/azure_mgmt_resources/models/generic_resource_filter.rb +68 -0
  565. data/lib/2019-05-10/generated/azure_mgmt_resources/models/http_message.rb +46 -0
  566. data/lib/2019-05-10/generated/azure_mgmt_resources/models/identity.rb +96 -0
  567. data/lib/2019-05-10/generated/azure_mgmt_resources/models/identity_user_assigned_identities_value.rb +60 -0
  568. data/lib/2019-05-10/generated/azure_mgmt_resources/models/on_error_deployment.rb +60 -0
  569. data/lib/2019-05-10/generated/azure_mgmt_resources/models/on_error_deployment_extended.rb +73 -0
  570. data/lib/2019-05-10/generated/azure_mgmt_resources/models/on_error_deployment_type.rb +16 -0
  571. data/lib/2019-05-10/generated/azure_mgmt_resources/models/operation.rb +58 -0
  572. data/lib/2019-05-10/generated/azure_mgmt_resources/models/operation_display.rb +80 -0
  573. data/lib/2019-05-10/generated/azure_mgmt_resources/models/operation_list_result.rb +100 -0
  574. data/lib/2019-05-10/generated/azure_mgmt_resources/models/parameters_link.rb +58 -0
  575. data/lib/2019-05-10/generated/azure_mgmt_resources/models/plan.rb +90 -0
  576. data/lib/2019-05-10/generated/azure_mgmt_resources/models/provider.rb +104 -0
  577. data/lib/2019-05-10/generated/azure_mgmt_resources/models/provider_list_result.rb +99 -0
  578. data/lib/2019-05-10/generated/azure_mgmt_resources/models/provider_resource_type.rb +137 -0
  579. data/lib/2019-05-10/generated/azure_mgmt_resources/models/resource.rb +110 -0
  580. data/lib/2019-05-10/generated/azure_mgmt_resources/models/resource_group.rb +128 -0
  581. data/lib/2019-05-10/generated/azure_mgmt_resources/models/resource_group_export_result.rb +58 -0
  582. data/lib/2019-05-10/generated/azure_mgmt_resources/models/resource_group_filter.rb +57 -0
  583. data/lib/2019-05-10/generated/azure_mgmt_resources/models/resource_group_list_result.rb +99 -0
  584. data/lib/2019-05-10/generated/azure_mgmt_resources/models/resource_group_patchable.rb +90 -0
  585. data/lib/2019-05-10/generated/azure_mgmt_resources/models/resource_group_properties.rb +47 -0
  586. data/lib/2019-05-10/generated/azure_mgmt_resources/models/resource_identity_type.rb +18 -0
  587. data/lib/2019-05-10/generated/azure_mgmt_resources/models/resource_list_result.rb +99 -0
  588. data/lib/2019-05-10/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +92 -0
  589. data/lib/2019-05-10/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +91 -0
  590. data/lib/2019-05-10/generated/azure_mgmt_resources/models/resources_move_info.rb +65 -0
  591. data/lib/2019-05-10/generated/azure_mgmt_resources/models/sku.rb +101 -0
  592. data/lib/2019-05-10/generated/azure_mgmt_resources/models/sub_resource.rb +46 -0
  593. data/lib/2019-05-10/generated/azure_mgmt_resources/models/tag_count.rb +57 -0
  594. data/lib/2019-05-10/generated/azure_mgmt_resources/models/tag_details.rb +92 -0
  595. data/lib/2019-05-10/generated/azure_mgmt_resources/models/tag_value.rb +70 -0
  596. data/lib/2019-05-10/generated/azure_mgmt_resources/models/tags_list_result.rb +99 -0
  597. data/lib/2019-05-10/generated/azure_mgmt_resources/models/target_resource.rb +68 -0
  598. data/lib/2019-05-10/generated/azure_mgmt_resources/models/template_hash_result.rb +58 -0
  599. data/lib/2019-05-10/generated/azure_mgmt_resources/models/template_link.rb +58 -0
  600. data/lib/2019-05-10/generated/azure_mgmt_resources/module_definition.rb +9 -0
  601. data/lib/2019-05-10/generated/azure_mgmt_resources/operations.rb +219 -0
  602. data/lib/2019-05-10/generated/azure_mgmt_resources/providers.rb +846 -0
  603. data/lib/2019-05-10/generated/azure_mgmt_resources/resource_groups.rb +918 -0
  604. data/lib/2019-05-10/generated/azure_mgmt_resources/resource_management_client.rb +155 -0
  605. data/lib/2019-05-10/generated/azure_mgmt_resources/resources.rb +2338 -0
  606. data/lib/2019-05-10/generated/azure_mgmt_resources/tags.rb +611 -0
  607. data/lib/2019-05-10/generated/azure_mgmt_resources.rb +91 -0
  608. data/lib/2019-07-01/generated/azure_mgmt_resources/deployment_operations.rb +1588 -0
  609. data/lib/2019-07-01/generated/azure_mgmt_resources/deployments.rb +5740 -0
  610. data/lib/2019-07-01/generated/azure_mgmt_resources/models/alias_path_type.rb +65 -0
  611. data/lib/2019-07-01/generated/azure_mgmt_resources/models/alias_type.rb +66 -0
  612. data/lib/2019-07-01/generated/azure_mgmt_resources/models/basic_dependency.rb +68 -0
  613. data/lib/2019-07-01/generated/azure_mgmt_resources/models/change_type.rb +20 -0
  614. data/lib/2019-07-01/generated/azure_mgmt_resources/models/debug_setting.rb +53 -0
  615. data/lib/2019-07-01/generated/azure_mgmt_resources/models/dependency.rb +88 -0
  616. data/lib/2019-07-01/generated/azure_mgmt_resources/models/deployment.rb +58 -0
  617. data/lib/2019-07-01/generated/azure_mgmt_resources/models/deployment_export_result.rb +46 -0
  618. data/lib/2019-07-01/generated/azure_mgmt_resources/models/deployment_extended.rb +94 -0
  619. data/lib/2019-07-01/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +46 -0
  620. data/lib/2019-07-01/generated/azure_mgmt_resources/models/deployment_list_result.rb +99 -0
  621. data/lib/2019-07-01/generated/azure_mgmt_resources/models/deployment_mode.rb +16 -0
  622. data/lib/2019-07-01/generated/azure_mgmt_resources/models/deployment_operation.rb +71 -0
  623. data/lib/2019-07-01/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +146 -0
  624. data/lib/2019-07-01/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +99 -0
  625. data/lib/2019-07-01/generated/azure_mgmt_resources/models/deployment_properties.rb +136 -0
  626. data/lib/2019-07-01/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +222 -0
  627. data/lib/2019-07-01/generated/azure_mgmt_resources/models/deployment_validate_result.rb +60 -0
  628. data/lib/2019-07-01/generated/azure_mgmt_resources/models/deployment_what_if.rb +58 -0
  629. data/lib/2019-07-01/generated/azure_mgmt_resources/models/deployment_what_if_properties.rb +108 -0
  630. data/lib/2019-07-01/generated/azure_mgmt_resources/models/deployment_what_if_settings.rb +48 -0
  631. data/lib/2019-07-01/generated/azure_mgmt_resources/models/error_additional_info.rb +59 -0
  632. data/lib/2019-07-01/generated/azure_mgmt_resources/models/error_response.rb +113 -0
  633. data/lib/2019-07-01/generated/azure_mgmt_resources/models/export_template_request.rb +69 -0
  634. data/lib/2019-07-01/generated/azure_mgmt_resources/models/generic_resource.rb +158 -0
  635. data/lib/2019-07-01/generated/azure_mgmt_resources/models/generic_resource_filter.rb +68 -0
  636. data/lib/2019-07-01/generated/azure_mgmt_resources/models/http_message.rb +46 -0
  637. data/lib/2019-07-01/generated/azure_mgmt_resources/models/identity.rb +96 -0
  638. data/lib/2019-07-01/generated/azure_mgmt_resources/models/identity_user_assigned_identities_value.rb +60 -0
  639. data/lib/2019-07-01/generated/azure_mgmt_resources/models/on_error_deployment.rb +60 -0
  640. data/lib/2019-07-01/generated/azure_mgmt_resources/models/on_error_deployment_extended.rb +73 -0
  641. data/lib/2019-07-01/generated/azure_mgmt_resources/models/on_error_deployment_type.rb +16 -0
  642. data/lib/2019-07-01/generated/azure_mgmt_resources/models/operation.rb +58 -0
  643. data/lib/2019-07-01/generated/azure_mgmt_resources/models/operation_display.rb +80 -0
  644. data/lib/2019-07-01/generated/azure_mgmt_resources/models/operation_list_result.rb +100 -0
  645. data/lib/2019-07-01/generated/azure_mgmt_resources/models/parameters_link.rb +58 -0
  646. data/lib/2019-07-01/generated/azure_mgmt_resources/models/plan.rb +90 -0
  647. data/lib/2019-07-01/generated/azure_mgmt_resources/models/property_change_type.rb +18 -0
  648. data/lib/2019-07-01/generated/azure_mgmt_resources/models/provider.rb +104 -0
  649. data/lib/2019-07-01/generated/azure_mgmt_resources/models/provider_list_result.rb +99 -0
  650. data/lib/2019-07-01/generated/azure_mgmt_resources/models/provider_resource_type.rb +137 -0
  651. data/lib/2019-07-01/generated/azure_mgmt_resources/models/resource.rb +110 -0
  652. data/lib/2019-07-01/generated/azure_mgmt_resources/models/resource_group.rb +128 -0
  653. data/lib/2019-07-01/generated/azure_mgmt_resources/models/resource_group_export_result.rb +58 -0
  654. data/lib/2019-07-01/generated/azure_mgmt_resources/models/resource_group_filter.rb +57 -0
  655. data/lib/2019-07-01/generated/azure_mgmt_resources/models/resource_group_list_result.rb +99 -0
  656. data/lib/2019-07-01/generated/azure_mgmt_resources/models/resource_group_patchable.rb +90 -0
  657. data/lib/2019-07-01/generated/azure_mgmt_resources/models/resource_group_properties.rb +47 -0
  658. data/lib/2019-07-01/generated/azure_mgmt_resources/models/resource_identity_type.rb +18 -0
  659. data/lib/2019-07-01/generated/azure_mgmt_resources/models/resource_list_result.rb +99 -0
  660. data/lib/2019-07-01/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +91 -0
  661. data/lib/2019-07-01/generated/azure_mgmt_resources/models/resources_move_info.rb +65 -0
  662. data/lib/2019-07-01/generated/azure_mgmt_resources/models/sku.rb +101 -0
  663. data/lib/2019-07-01/generated/azure_mgmt_resources/models/sub_resource.rb +46 -0
  664. data/lib/2019-07-01/generated/azure_mgmt_resources/models/tag_count.rb +57 -0
  665. data/lib/2019-07-01/generated/azure_mgmt_resources/models/tag_details.rb +92 -0
  666. data/lib/2019-07-01/generated/azure_mgmt_resources/models/tag_value.rb +70 -0
  667. data/lib/2019-07-01/generated/azure_mgmt_resources/models/tags_list_result.rb +99 -0
  668. data/lib/2019-07-01/generated/azure_mgmt_resources/models/target_resource.rb +68 -0
  669. data/lib/2019-07-01/generated/azure_mgmt_resources/models/template_hash_result.rb +58 -0
  670. data/lib/2019-07-01/generated/azure_mgmt_resources/models/template_link.rb +58 -0
  671. data/lib/2019-07-01/generated/azure_mgmt_resources/models/what_if_change.rb +105 -0
  672. data/lib/2019-07-01/generated/azure_mgmt_resources/models/what_if_operation_result.rb +80 -0
  673. data/lib/2019-07-01/generated/azure_mgmt_resources/models/what_if_property_change.rb +101 -0
  674. data/lib/2019-07-01/generated/azure_mgmt_resources/models/what_if_result_format.rb +16 -0
  675. data/lib/2019-07-01/generated/azure_mgmt_resources/module_definition.rb +9 -0
  676. data/lib/2019-07-01/generated/azure_mgmt_resources/operations.rb +219 -0
  677. data/lib/2019-07-01/generated/azure_mgmt_resources/providers.rb +846 -0
  678. data/lib/2019-07-01/generated/azure_mgmt_resources/resource_groups.rb +918 -0
  679. data/lib/2019-07-01/generated/azure_mgmt_resources/resource_management_client.rb +155 -0
  680. data/lib/2019-07-01/generated/azure_mgmt_resources/resources.rb +2338 -0
  681. data/lib/2019-07-01/generated/azure_mgmt_resources/tags.rb +611 -0
  682. data/lib/2019-07-01/generated/azure_mgmt_resources.rb +99 -0
  683. data/lib/2019-10-01/generated/azure_mgmt_resources/deployment_operations.rb +1590 -0
  684. data/lib/2019-10-01/generated/azure_mgmt_resources/deployments.rb +6276 -0
  685. data/lib/2019-10-01/generated/azure_mgmt_resources/models/alias_model.rb +102 -0
  686. data/lib/2019-10-01/generated/azure_mgmt_resources/models/alias_path.rb +77 -0
  687. data/lib/2019-10-01/generated/azure_mgmt_resources/models/alias_pattern.rb +70 -0
  688. data/lib/2019-10-01/generated/azure_mgmt_resources/models/alias_pattern_type.rb +16 -0
  689. data/lib/2019-10-01/generated/azure_mgmt_resources/models/alias_type.rb +17 -0
  690. data/lib/2019-10-01/generated/azure_mgmt_resources/models/basic_dependency.rb +68 -0
  691. data/lib/2019-10-01/generated/azure_mgmt_resources/models/change_type.rb +20 -0
  692. data/lib/2019-10-01/generated/azure_mgmt_resources/models/debug_setting.rb +53 -0
  693. data/lib/2019-10-01/generated/azure_mgmt_resources/models/dependency.rb +88 -0
  694. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment.rb +77 -0
  695. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment_export_result.rb +46 -0
  696. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment_extended.rb +113 -0
  697. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +46 -0
  698. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment_list_result.rb +99 -0
  699. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment_mode.rb +16 -0
  700. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment_operation.rb +71 -0
  701. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +162 -0
  702. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +99 -0
  703. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment_properties.rb +136 -0
  704. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +284 -0
  705. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment_validate_result.rb +61 -0
  706. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment_what_if.rb +58 -0
  707. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment_what_if_properties.rb +108 -0
  708. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment_what_if_settings.rb +48 -0
  709. data/lib/2019-10-01/generated/azure_mgmt_resources/models/error_additional_info.rb +59 -0
  710. data/lib/2019-10-01/generated/azure_mgmt_resources/models/error_response.rb +117 -0
  711. data/lib/2019-10-01/generated/azure_mgmt_resources/models/export_template_request.rb +69 -0
  712. data/lib/2019-10-01/generated/azure_mgmt_resources/models/generic_resource.rb +158 -0
  713. data/lib/2019-10-01/generated/azure_mgmt_resources/models/generic_resource_expanded.rb +179 -0
  714. data/lib/2019-10-01/generated/azure_mgmt_resources/models/generic_resource_filter.rb +68 -0
  715. data/lib/2019-10-01/generated/azure_mgmt_resources/models/http_message.rb +46 -0
  716. data/lib/2019-10-01/generated/azure_mgmt_resources/models/identity.rb +96 -0
  717. data/lib/2019-10-01/generated/azure_mgmt_resources/models/identity_user_assigned_identities_value.rb +60 -0
  718. data/lib/2019-10-01/generated/azure_mgmt_resources/models/on_error_deployment.rb +60 -0
  719. data/lib/2019-10-01/generated/azure_mgmt_resources/models/on_error_deployment_extended.rb +73 -0
  720. data/lib/2019-10-01/generated/azure_mgmt_resources/models/on_error_deployment_type.rb +16 -0
  721. data/lib/2019-10-01/generated/azure_mgmt_resources/models/operation.rb +58 -0
  722. data/lib/2019-10-01/generated/azure_mgmt_resources/models/operation_display.rb +80 -0
  723. data/lib/2019-10-01/generated/azure_mgmt_resources/models/operation_list_result.rb +100 -0
  724. data/lib/2019-10-01/generated/azure_mgmt_resources/models/parameters_link.rb +58 -0
  725. data/lib/2019-10-01/generated/azure_mgmt_resources/models/plan.rb +90 -0
  726. data/lib/2019-10-01/generated/azure_mgmt_resources/models/property_change_type.rb +18 -0
  727. data/lib/2019-10-01/generated/azure_mgmt_resources/models/provider.rb +104 -0
  728. data/lib/2019-10-01/generated/azure_mgmt_resources/models/provider_list_result.rb +99 -0
  729. data/lib/2019-10-01/generated/azure_mgmt_resources/models/provider_resource_type.rb +137 -0
  730. data/lib/2019-10-01/generated/azure_mgmt_resources/models/provisioning_operation.rb +24 -0
  731. data/lib/2019-10-01/generated/azure_mgmt_resources/models/resource.rb +110 -0
  732. data/lib/2019-10-01/generated/azure_mgmt_resources/models/resource_group.rb +128 -0
  733. data/lib/2019-10-01/generated/azure_mgmt_resources/models/resource_group_export_result.rb +58 -0
  734. data/lib/2019-10-01/generated/azure_mgmt_resources/models/resource_group_filter.rb +57 -0
  735. data/lib/2019-10-01/generated/azure_mgmt_resources/models/resource_group_list_result.rb +99 -0
  736. data/lib/2019-10-01/generated/azure_mgmt_resources/models/resource_group_patchable.rb +90 -0
  737. data/lib/2019-10-01/generated/azure_mgmt_resources/models/resource_group_properties.rb +47 -0
  738. data/lib/2019-10-01/generated/azure_mgmt_resources/models/resource_identity_type.rb +18 -0
  739. data/lib/2019-10-01/generated/azure_mgmt_resources/models/resource_list_result.rb +99 -0
  740. data/lib/2019-10-01/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +91 -0
  741. data/lib/2019-10-01/generated/azure_mgmt_resources/models/resource_reference.rb +47 -0
  742. data/lib/2019-10-01/generated/azure_mgmt_resources/models/resources_move_info.rb +65 -0
  743. data/lib/2019-10-01/generated/azure_mgmt_resources/models/scoped_deployment.rb +77 -0
  744. data/lib/2019-10-01/generated/azure_mgmt_resources/models/scoped_deployment_what_if.rb +58 -0
  745. data/lib/2019-10-01/generated/azure_mgmt_resources/models/sku.rb +101 -0
  746. data/lib/2019-10-01/generated/azure_mgmt_resources/models/sub_resource.rb +46 -0
  747. data/lib/2019-10-01/generated/azure_mgmt_resources/models/tag_count.rb +57 -0
  748. data/lib/2019-10-01/generated/azure_mgmt_resources/models/tag_details.rb +92 -0
  749. data/lib/2019-10-01/generated/azure_mgmt_resources/models/tag_value.rb +70 -0
  750. data/lib/2019-10-01/generated/azure_mgmt_resources/models/tags.rb +54 -0
  751. data/lib/2019-10-01/generated/azure_mgmt_resources/models/tags_list_result.rb +99 -0
  752. data/lib/2019-10-01/generated/azure_mgmt_resources/models/tags_patch_operation.rb +17 -0
  753. data/lib/2019-10-01/generated/azure_mgmt_resources/models/tags_patch_resource.rb +59 -0
  754. data/lib/2019-10-01/generated/azure_mgmt_resources/models/tags_resource.rb +83 -0
  755. data/lib/2019-10-01/generated/azure_mgmt_resources/models/target_resource.rb +68 -0
  756. data/lib/2019-10-01/generated/azure_mgmt_resources/models/template_hash_result.rb +58 -0
  757. data/lib/2019-10-01/generated/azure_mgmt_resources/models/template_link.rb +58 -0
  758. data/lib/2019-10-01/generated/azure_mgmt_resources/models/what_if_change.rb +105 -0
  759. data/lib/2019-10-01/generated/azure_mgmt_resources/models/what_if_operation_result.rb +80 -0
  760. data/lib/2019-10-01/generated/azure_mgmt_resources/models/what_if_property_change.rb +101 -0
  761. data/lib/2019-10-01/generated/azure_mgmt_resources/models/what_if_result_format.rb +16 -0
  762. data/lib/2019-10-01/generated/azure_mgmt_resources/module_definition.rb +9 -0
  763. data/lib/2019-10-01/generated/azure_mgmt_resources/operations.rb +219 -0
  764. data/lib/2019-10-01/generated/azure_mgmt_resources/providers.rb +846 -0
  765. data/lib/2019-10-01/generated/azure_mgmt_resources/resource_groups.rb +964 -0
  766. data/lib/2019-10-01/generated/azure_mgmt_resources/resource_management_client.rb +155 -0
  767. data/lib/2019-10-01/generated/azure_mgmt_resources/resources.rb +2354 -0
  768. data/lib/2019-10-01/generated/azure_mgmt_resources/tags_operations.rb +1078 -0
  769. data/lib/2019-10-01/generated/azure_mgmt_resources.rb +111 -0
  770. data/lib/2020-06-01/generated/azure_mgmt_resources/deployment_operations.rb +1590 -0
  771. data/lib/2020-06-01/generated/azure_mgmt_resources/deployments.rb +6276 -0
  772. data/lib/2020-06-01/generated/azure_mgmt_resources/models/alias_model.rb +116 -0
  773. data/lib/2020-06-01/generated/azure_mgmt_resources/models/alias_path.rb +91 -0
  774. data/lib/2020-06-01/generated/azure_mgmt_resources/models/alias_path_attributes.rb +16 -0
  775. data/lib/2020-06-01/generated/azure_mgmt_resources/models/alias_path_metadata.rb +64 -0
  776. data/lib/2020-06-01/generated/azure_mgmt_resources/models/alias_path_token_type.rb +22 -0
  777. data/lib/2020-06-01/generated/azure_mgmt_resources/models/alias_pattern.rb +70 -0
  778. data/lib/2020-06-01/generated/azure_mgmt_resources/models/alias_pattern_type.rb +16 -0
  779. data/lib/2020-06-01/generated/azure_mgmt_resources/models/alias_type.rb +17 -0
  780. data/lib/2020-06-01/generated/azure_mgmt_resources/models/api_profile.rb +60 -0
  781. data/lib/2020-06-01/generated/azure_mgmt_resources/models/basic_dependency.rb +68 -0
  782. data/lib/2020-06-01/generated/azure_mgmt_resources/models/change_type.rb +20 -0
  783. data/lib/2020-06-01/generated/azure_mgmt_resources/models/debug_setting.rb +53 -0
  784. data/lib/2020-06-01/generated/azure_mgmt_resources/models/dependency.rb +88 -0
  785. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment.rb +77 -0
  786. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_export_result.rb +46 -0
  787. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_extended.rb +113 -0
  788. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +46 -0
  789. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_list_result.rb +99 -0
  790. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_mode.rb +16 -0
  791. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_operation.rb +71 -0
  792. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +166 -0
  793. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +99 -0
  794. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_properties.rb +151 -0
  795. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +287 -0
  796. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_validate_result.rb +61 -0
  797. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_what_if.rb +58 -0
  798. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_what_if_properties.rb +117 -0
  799. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_what_if_settings.rb +48 -0
  800. data/lib/2020-06-01/generated/azure_mgmt_resources/models/error_additional_info.rb +59 -0
  801. data/lib/2020-06-01/generated/azure_mgmt_resources/models/error_response.rb +117 -0
  802. data/lib/2020-06-01/generated/azure_mgmt_resources/models/export_template_request.rb +69 -0
  803. data/lib/2020-06-01/generated/azure_mgmt_resources/models/expression_evaluation_options.rb +49 -0
  804. data/lib/2020-06-01/generated/azure_mgmt_resources/models/expression_evaluation_options_scope_type.rb +17 -0
  805. data/lib/2020-06-01/generated/azure_mgmt_resources/models/generic_resource.rb +158 -0
  806. data/lib/2020-06-01/generated/azure_mgmt_resources/models/generic_resource_expanded.rb +179 -0
  807. data/lib/2020-06-01/generated/azure_mgmt_resources/models/generic_resource_filter.rb +68 -0
  808. data/lib/2020-06-01/generated/azure_mgmt_resources/models/http_message.rb +46 -0
  809. data/lib/2020-06-01/generated/azure_mgmt_resources/models/identity.rb +96 -0
  810. data/lib/2020-06-01/generated/azure_mgmt_resources/models/identity_user_assigned_identities_value.rb +60 -0
  811. data/lib/2020-06-01/generated/azure_mgmt_resources/models/on_error_deployment.rb +60 -0
  812. data/lib/2020-06-01/generated/azure_mgmt_resources/models/on_error_deployment_extended.rb +73 -0
  813. data/lib/2020-06-01/generated/azure_mgmt_resources/models/on_error_deployment_type.rb +16 -0
  814. data/lib/2020-06-01/generated/azure_mgmt_resources/models/operation.rb +58 -0
  815. data/lib/2020-06-01/generated/azure_mgmt_resources/models/operation_display.rb +80 -0
  816. data/lib/2020-06-01/generated/azure_mgmt_resources/models/operation_list_result.rb +100 -0
  817. data/lib/2020-06-01/generated/azure_mgmt_resources/models/parameters_link.rb +58 -0
  818. data/lib/2020-06-01/generated/azure_mgmt_resources/models/plan.rb +90 -0
  819. data/lib/2020-06-01/generated/azure_mgmt_resources/models/property_change_type.rb +18 -0
  820. data/lib/2020-06-01/generated/azure_mgmt_resources/models/provider.rb +104 -0
  821. data/lib/2020-06-01/generated/azure_mgmt_resources/models/provider_list_result.rb +99 -0
  822. data/lib/2020-06-01/generated/azure_mgmt_resources/models/provider_resource_type.rb +170 -0
  823. data/lib/2020-06-01/generated/azure_mgmt_resources/models/provisioning_operation.rb +24 -0
  824. data/lib/2020-06-01/generated/azure_mgmt_resources/models/provisioning_state.rb +26 -0
  825. data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource.rb +110 -0
  826. data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_group.rb +128 -0
  827. data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_group_export_result.rb +58 -0
  828. data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_group_filter.rb +57 -0
  829. data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_group_list_result.rb +99 -0
  830. data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_group_patchable.rb +90 -0
  831. data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_group_properties.rb +47 -0
  832. data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_identity_type.rb +18 -0
  833. data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_list_result.rb +99 -0
  834. data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +91 -0
  835. data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_reference.rb +47 -0
  836. data/lib/2020-06-01/generated/azure_mgmt_resources/models/resources_move_info.rb +65 -0
  837. data/lib/2020-06-01/generated/azure_mgmt_resources/models/scoped_deployment.rb +77 -0
  838. data/lib/2020-06-01/generated/azure_mgmt_resources/models/scoped_deployment_what_if.rb +58 -0
  839. data/lib/2020-06-01/generated/azure_mgmt_resources/models/sku.rb +101 -0
  840. data/lib/2020-06-01/generated/azure_mgmt_resources/models/status_message.rb +58 -0
  841. data/lib/2020-06-01/generated/azure_mgmt_resources/models/sub_resource.rb +46 -0
  842. data/lib/2020-06-01/generated/azure_mgmt_resources/models/tag_count.rb +57 -0
  843. data/lib/2020-06-01/generated/azure_mgmt_resources/models/tag_details.rb +92 -0
  844. data/lib/2020-06-01/generated/azure_mgmt_resources/models/tag_value.rb +70 -0
  845. data/lib/2020-06-01/generated/azure_mgmt_resources/models/tags.rb +54 -0
  846. data/lib/2020-06-01/generated/azure_mgmt_resources/models/tags_list_result.rb +99 -0
  847. data/lib/2020-06-01/generated/azure_mgmt_resources/models/tags_patch_operation.rb +17 -0
  848. data/lib/2020-06-01/generated/azure_mgmt_resources/models/tags_patch_resource.rb +59 -0
  849. data/lib/2020-06-01/generated/azure_mgmt_resources/models/tags_resource.rb +83 -0
  850. data/lib/2020-06-01/generated/azure_mgmt_resources/models/target_resource.rb +68 -0
  851. data/lib/2020-06-01/generated/azure_mgmt_resources/models/template_hash_result.rb +58 -0
  852. data/lib/2020-06-01/generated/azure_mgmt_resources/models/template_link.rb +84 -0
  853. data/lib/2020-06-01/generated/azure_mgmt_resources/models/what_if_change.rb +105 -0
  854. data/lib/2020-06-01/generated/azure_mgmt_resources/models/what_if_operation_result.rb +80 -0
  855. data/lib/2020-06-01/generated/azure_mgmt_resources/models/what_if_property_change.rb +101 -0
  856. data/lib/2020-06-01/generated/azure_mgmt_resources/models/what_if_result_format.rb +16 -0
  857. data/lib/2020-06-01/generated/azure_mgmt_resources/module_definition.rb +9 -0
  858. data/lib/2020-06-01/generated/azure_mgmt_resources/operations.rb +219 -0
  859. data/lib/2020-06-01/generated/azure_mgmt_resources/providers.rb +933 -0
  860. data/lib/2020-06-01/generated/azure_mgmt_resources/resource_groups.rb +979 -0
  861. data/lib/2020-06-01/generated/azure_mgmt_resources/resource_management_client.rb +155 -0
  862. data/lib/2020-06-01/generated/azure_mgmt_resources/resources.rb +2354 -0
  863. data/lib/2020-06-01/generated/azure_mgmt_resources/tags_operations.rb +1078 -0
  864. data/lib/2020-06-01/generated/azure_mgmt_resources.rb +119 -0
  865. data/lib/azure_mgmt_resources.rb +22 -0
  866. data/lib/module_definition.rb +7 -0
  867. data/lib/profiles/latest/modules/resources_profile_module.rb +413 -0
  868. data/lib/profiles/latest/resources_latest_profile_client.rb +40 -0
  869. data/lib/profiles/latest/resources_module_definition.rb +8 -0
  870. data/lib/profiles/v2017_03_09/modules/resources_profile_module.rb +267 -0
  871. data/lib/profiles/v2017_03_09/resources_module_definition.rb +8 -0
  872. data/lib/profiles/v2017_03_09/resources_v2017_03_09_profile_client.rb +40 -0
  873. data/lib/profiles/v2018_03_01/modules/resources_profile_module.rb +283 -0
  874. data/lib/profiles/v2018_03_01/resources_module_definition.rb +8 -0
  875. data/lib/profiles/v2018_03_01/resources_v2018_03_01_profile_client.rb +40 -0
  876. data/lib/profiles/v2019_03_01_hybrid/modules/resources_profile_module.rb +301 -0
  877. data/lib/profiles/v2019_03_01_hybrid/resources_module_definition.rb +8 -0
  878. data/lib/profiles/v2019_03_01_hybrid/resources_v2019_03_01_hybrid_profile_client.rb +40 -0
  879. data/lib/version.rb +7 -0
  880. metadata +996 -0
@@ -0,0 +1,1256 @@
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::Resources::Mgmt::V2018_02_01
7
+ #
8
+ # Provides operations for working with resources and resource groups.
9
+ #
10
+ class Deployments
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Deployments class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [ResourceManagementClient] reference to the ResourceManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Deletes a deployment from the deployment history.
26
+ #
27
+ # A template deployment that is currently running cannot be deleted. Deleting a
28
+ # template deployment removes the associated deployment operations. Deleting a
29
+ # template deployment does not affect the state of the resource group. This is
30
+ # an asynchronous operation that returns a status of 202 until the template
31
+ # deployment is successfully deleted. The Location response header contains the
32
+ # URI that is used to obtain the status of the process. While the process is
33
+ # running, a call to the URI in the Location header returns a status of 202.
34
+ # When the process finishes, the URI in the Location header returns a status of
35
+ # 204 on success. If the asynchronous request failed, the URI in the Location
36
+ # header returns an error-level status code.
37
+ #
38
+ # @param resource_group_name [String] The name of the resource group with the
39
+ # deployment to delete. The name is case insensitive.
40
+ # @param deployment_name [String] The name of the deployment to delete.
41
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
42
+ # will be added to the HTTP request.
43
+ #
44
+ def delete(resource_group_name, deployment_name, custom_headers:nil)
45
+ response = delete_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
46
+ nil
47
+ end
48
+
49
+ #
50
+ # @param resource_group_name [String] The name of the resource group with the
51
+ # deployment to delete. The name is case insensitive.
52
+ # @param deployment_name [String] The name of the deployment to delete.
53
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
54
+ # will be added to the HTTP request.
55
+ #
56
+ # @return [Concurrent::Promise] promise which provides async access to http
57
+ # response.
58
+ #
59
+ def delete_async(resource_group_name, deployment_name, custom_headers:nil)
60
+ # Send request
61
+ promise = begin_delete_async(resource_group_name, deployment_name, custom_headers:custom_headers)
62
+
63
+ promise = promise.then do |response|
64
+ # Defining deserialization method.
65
+ deserialize_method = lambda do |parsed_response|
66
+ end
67
+
68
+ # Waiting for response.
69
+ @client.get_long_running_operation_result(response, deserialize_method)
70
+ end
71
+
72
+ promise
73
+ end
74
+
75
+ #
76
+ # Checks whether the deployment exists.
77
+ #
78
+ # @param resource_group_name [String] The name of the resource group with the
79
+ # deployment to check. The name is case insensitive.
80
+ # @param deployment_name [String] The name of the deployment to check.
81
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
82
+ # will be added to the HTTP request.
83
+ #
84
+ # @return [Boolean] operation results.
85
+ #
86
+ def check_existence(resource_group_name, deployment_name, custom_headers:nil)
87
+ response = check_existence_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
88
+ response.body unless response.nil?
89
+ end
90
+
91
+ #
92
+ # Checks whether the deployment exists.
93
+ #
94
+ # @param resource_group_name [String] The name of the resource group with the
95
+ # deployment to check. The name is case insensitive.
96
+ # @param deployment_name [String] The name of the deployment to check.
97
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
98
+ # will be added to the HTTP request.
99
+ #
100
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
101
+ #
102
+ def check_existence_with_http_info(resource_group_name, deployment_name, custom_headers:nil)
103
+ check_existence_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
104
+ end
105
+
106
+ #
107
+ # Checks whether the deployment exists.
108
+ #
109
+ # @param resource_group_name [String] The name of the resource group with the
110
+ # deployment to check. The name is case insensitive.
111
+ # @param deployment_name [String] The name of the deployment to check.
112
+ # @param [Hash{String => String}] A hash of custom headers that will be added
113
+ # to the HTTP request.
114
+ #
115
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
116
+ #
117
+ def check_existence_async(resource_group_name, deployment_name, custom_headers:nil)
118
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
119
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
120
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
121
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
122
+ fail ArgumentError, 'deployment_name is nil' if deployment_name.nil?
123
+ fail ArgumentError, "'deployment_name' should satisfy the constraint - 'MaxLength': '64'" if !deployment_name.nil? && deployment_name.length > 64
124
+ fail ArgumentError, "'deployment_name' should satisfy the constraint - 'MinLength': '1'" if !deployment_name.nil? && deployment_name.length < 1
125
+ fail ArgumentError, "'deployment_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !deployment_name.nil? && deployment_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
126
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
127
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
128
+
129
+
130
+ request_headers = {}
131
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
132
+
133
+ # Set Headers
134
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
135
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
136
+ path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'
137
+
138
+ request_url = @base_url || @client.base_url
139
+
140
+ options = {
141
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
142
+ path_params: {'resourceGroupName' => resource_group_name,'deploymentName' => deployment_name,'subscriptionId' => @client.subscription_id},
143
+ query_params: {'api-version' => @client.api_version},
144
+ headers: request_headers.merge(custom_headers || {}),
145
+ base_url: request_url
146
+ }
147
+ promise = @client.make_request_async(:head, path_template, options)
148
+
149
+ promise = promise.then do |result|
150
+ http_response = result.response
151
+ status_code = http_response.status
152
+ response_content = http_response.body
153
+ unless status_code == 204 || status_code == 404
154
+ error_model = JSON.load(response_content)
155
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
156
+ end
157
+
158
+ result.body = (status_code == 204)
159
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
160
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
161
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
162
+
163
+ result
164
+ end
165
+
166
+ promise.execute
167
+ end
168
+
169
+ #
170
+ # Deploys resources to a resource group.
171
+ #
172
+ # You can provide the template and parameters directly in the request or link
173
+ # to JSON files.
174
+ #
175
+ # @param resource_group_name [String] The name of the resource group to deploy
176
+ # the resources to. The name is case insensitive. The resource group must
177
+ # already exist.
178
+ # @param deployment_name [String] The name of the deployment.
179
+ # @param parameters [Deployment] Additional parameters supplied to the
180
+ # operation.
181
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
182
+ # will be added to the HTTP request.
183
+ #
184
+ # @return [DeploymentExtended] operation results.
185
+ #
186
+ def create_or_update(resource_group_name, deployment_name, parameters, custom_headers:nil)
187
+ response = create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value!
188
+ response.body unless response.nil?
189
+ end
190
+
191
+ #
192
+ # @param resource_group_name [String] The name of the resource group to deploy
193
+ # the resources to. The name is case insensitive. The resource group must
194
+ # already exist.
195
+ # @param deployment_name [String] The name of the deployment.
196
+ # @param parameters [Deployment] Additional parameters supplied to the
197
+ # operation.
198
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
199
+ # will be added to the HTTP request.
200
+ #
201
+ # @return [Concurrent::Promise] promise which provides async access to http
202
+ # response.
203
+ #
204
+ def create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:nil)
205
+ # Send request
206
+ promise = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers)
207
+
208
+ promise = promise.then do |response|
209
+ # Defining deserialization method.
210
+ deserialize_method = lambda do |parsed_response|
211
+ result_mapper = Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentExtended.mapper()
212
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
213
+ end
214
+
215
+ # Waiting for response.
216
+ @client.get_long_running_operation_result(response, deserialize_method)
217
+ end
218
+
219
+ promise
220
+ end
221
+
222
+ #
223
+ # Gets a deployment.
224
+ #
225
+ # @param resource_group_name [String] The name of the resource group. The name
226
+ # is case insensitive.
227
+ # @param deployment_name [String] The name of the deployment to get.
228
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
229
+ # will be added to the HTTP request.
230
+ #
231
+ # @return [DeploymentExtended] operation results.
232
+ #
233
+ def get(resource_group_name, deployment_name, custom_headers:nil)
234
+ response = get_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
235
+ response.body unless response.nil?
236
+ end
237
+
238
+ #
239
+ # Gets a deployment.
240
+ #
241
+ # @param resource_group_name [String] The name of the resource group. The name
242
+ # is case insensitive.
243
+ # @param deployment_name [String] The name of the deployment to get.
244
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
245
+ # will be added to the HTTP request.
246
+ #
247
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
248
+ #
249
+ def get_with_http_info(resource_group_name, deployment_name, custom_headers:nil)
250
+ get_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
251
+ end
252
+
253
+ #
254
+ # Gets a deployment.
255
+ #
256
+ # @param resource_group_name [String] The name of the resource group. The name
257
+ # is case insensitive.
258
+ # @param deployment_name [String] The name of the deployment to get.
259
+ # @param [Hash{String => String}] A hash of custom headers that will be added
260
+ # to the HTTP request.
261
+ #
262
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
263
+ #
264
+ def get_async(resource_group_name, deployment_name, custom_headers:nil)
265
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
266
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
267
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
268
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
269
+ fail ArgumentError, 'deployment_name is nil' if deployment_name.nil?
270
+ fail ArgumentError, "'deployment_name' should satisfy the constraint - 'MaxLength': '64'" if !deployment_name.nil? && deployment_name.length > 64
271
+ fail ArgumentError, "'deployment_name' should satisfy the constraint - 'MinLength': '1'" if !deployment_name.nil? && deployment_name.length < 1
272
+ fail ArgumentError, "'deployment_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !deployment_name.nil? && deployment_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
273
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
274
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
275
+
276
+
277
+ request_headers = {}
278
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
279
+
280
+ # Set Headers
281
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
282
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
283
+ path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'
284
+
285
+ request_url = @base_url || @client.base_url
286
+
287
+ options = {
288
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
289
+ path_params: {'resourceGroupName' => resource_group_name,'deploymentName' => deployment_name,'subscriptionId' => @client.subscription_id},
290
+ query_params: {'api-version' => @client.api_version},
291
+ headers: request_headers.merge(custom_headers || {}),
292
+ base_url: request_url
293
+ }
294
+ promise = @client.make_request_async(:get, path_template, options)
295
+
296
+ promise = promise.then do |result|
297
+ http_response = result.response
298
+ status_code = http_response.status
299
+ response_content = http_response.body
300
+ unless status_code == 200
301
+ error_model = JSON.load(response_content)
302
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
303
+ end
304
+
305
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
306
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
307
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
308
+ # Deserialize Response
309
+ if status_code == 200
310
+ begin
311
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
312
+ result_mapper = Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentExtended.mapper()
313
+ result.body = @client.deserialize(result_mapper, parsed_response)
314
+ rescue Exception => e
315
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
316
+ end
317
+ end
318
+
319
+ result
320
+ end
321
+
322
+ promise.execute
323
+ end
324
+
325
+ #
326
+ # Cancels a currently running template deployment.
327
+ #
328
+ # You can cancel a deployment only if the provisioningState is Accepted or
329
+ # Running. After the deployment is canceled, the provisioningState is set to
330
+ # Canceled. Canceling a template deployment stops the currently running
331
+ # template deployment and leaves the resource group partially deployed.
332
+ #
333
+ # @param resource_group_name [String] The name of the resource group. The name
334
+ # is case insensitive.
335
+ # @param deployment_name [String] The name of the deployment to cancel.
336
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
337
+ # will be added to the HTTP request.
338
+ #
339
+ #
340
+ def cancel(resource_group_name, deployment_name, custom_headers:nil)
341
+ response = cancel_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
342
+ nil
343
+ end
344
+
345
+ #
346
+ # Cancels a currently running template deployment.
347
+ #
348
+ # You can cancel a deployment only if the provisioningState is Accepted or
349
+ # Running. After the deployment is canceled, the provisioningState is set to
350
+ # Canceled. Canceling a template deployment stops the currently running
351
+ # template deployment and leaves the resource group partially deployed.
352
+ #
353
+ # @param resource_group_name [String] The name of the resource group. The name
354
+ # is case insensitive.
355
+ # @param deployment_name [String] The name of the deployment to cancel.
356
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
357
+ # will be added to the HTTP request.
358
+ #
359
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
360
+ #
361
+ def cancel_with_http_info(resource_group_name, deployment_name, custom_headers:nil)
362
+ cancel_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
363
+ end
364
+
365
+ #
366
+ # Cancels a currently running template deployment.
367
+ #
368
+ # You can cancel a deployment only if the provisioningState is Accepted or
369
+ # Running. After the deployment is canceled, the provisioningState is set to
370
+ # Canceled. Canceling a template deployment stops the currently running
371
+ # template deployment and leaves the resource group partially deployed.
372
+ #
373
+ # @param resource_group_name [String] The name of the resource group. The name
374
+ # is case insensitive.
375
+ # @param deployment_name [String] The name of the deployment to cancel.
376
+ # @param [Hash{String => String}] A hash of custom headers that will be added
377
+ # to the HTTP request.
378
+ #
379
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
380
+ #
381
+ def cancel_async(resource_group_name, deployment_name, custom_headers:nil)
382
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
383
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
384
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
385
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
386
+ fail ArgumentError, 'deployment_name is nil' if deployment_name.nil?
387
+ fail ArgumentError, "'deployment_name' should satisfy the constraint - 'MaxLength': '64'" if !deployment_name.nil? && deployment_name.length > 64
388
+ fail ArgumentError, "'deployment_name' should satisfy the constraint - 'MinLength': '1'" if !deployment_name.nil? && deployment_name.length < 1
389
+ fail ArgumentError, "'deployment_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !deployment_name.nil? && deployment_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
390
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
391
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
392
+
393
+
394
+ request_headers = {}
395
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
396
+
397
+ # Set Headers
398
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
399
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
400
+ path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel'
401
+
402
+ request_url = @base_url || @client.base_url
403
+
404
+ options = {
405
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
406
+ path_params: {'resourceGroupName' => resource_group_name,'deploymentName' => deployment_name,'subscriptionId' => @client.subscription_id},
407
+ query_params: {'api-version' => @client.api_version},
408
+ headers: request_headers.merge(custom_headers || {}),
409
+ base_url: request_url
410
+ }
411
+ promise = @client.make_request_async(:post, path_template, options)
412
+
413
+ promise = promise.then do |result|
414
+ http_response = result.response
415
+ status_code = http_response.status
416
+ response_content = http_response.body
417
+ unless status_code == 204
418
+ error_model = JSON.load(response_content)
419
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
420
+ end
421
+
422
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
423
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
424
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
425
+
426
+ result
427
+ end
428
+
429
+ promise.execute
430
+ end
431
+
432
+ #
433
+ # Validates whether the specified template is syntactically correct and will be
434
+ # accepted by Azure Resource Manager..
435
+ #
436
+ # @param resource_group_name [String] The name of the resource group the
437
+ # template will be deployed to. The name is case insensitive.
438
+ # @param deployment_name [String] The name of the deployment.
439
+ # @param parameters [Deployment] Parameters to validate.
440
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
441
+ # will be added to the HTTP request.
442
+ #
443
+ # @return [DeploymentValidateResult] operation results.
444
+ #
445
+ def validate(resource_group_name, deployment_name, parameters, custom_headers:nil)
446
+ response = validate_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value!
447
+ response.body unless response.nil?
448
+ end
449
+
450
+ #
451
+ # Validates whether the specified template is syntactically correct and will be
452
+ # accepted by Azure Resource Manager..
453
+ #
454
+ # @param resource_group_name [String] The name of the resource group the
455
+ # template will be deployed to. The name is case insensitive.
456
+ # @param deployment_name [String] The name of the deployment.
457
+ # @param parameters [Deployment] Parameters to validate.
458
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
459
+ # will be added to the HTTP request.
460
+ #
461
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
462
+ #
463
+ def validate_with_http_info(resource_group_name, deployment_name, parameters, custom_headers:nil)
464
+ validate_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value!
465
+ end
466
+
467
+ #
468
+ # Validates whether the specified template is syntactically correct and will be
469
+ # accepted by Azure Resource Manager..
470
+ #
471
+ # @param resource_group_name [String] The name of the resource group the
472
+ # template will be deployed to. The name is case insensitive.
473
+ # @param deployment_name [String] The name of the deployment.
474
+ # @param parameters [Deployment] Parameters to validate.
475
+ # @param [Hash{String => String}] A hash of custom headers that will be added
476
+ # to the HTTP request.
477
+ #
478
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
479
+ #
480
+ def validate_async(resource_group_name, deployment_name, parameters, custom_headers:nil)
481
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
482
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
483
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
484
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
485
+ fail ArgumentError, 'deployment_name is nil' if deployment_name.nil?
486
+ fail ArgumentError, "'deployment_name' should satisfy the constraint - 'MaxLength': '64'" if !deployment_name.nil? && deployment_name.length > 64
487
+ fail ArgumentError, "'deployment_name' should satisfy the constraint - 'MinLength': '1'" if !deployment_name.nil? && deployment_name.length < 1
488
+ fail ArgumentError, "'deployment_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !deployment_name.nil? && deployment_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
489
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
490
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
491
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
492
+
493
+
494
+ request_headers = {}
495
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
496
+
497
+ # Set Headers
498
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
499
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
500
+
501
+ # Serialize Request
502
+ request_mapper = Azure::Resources::Mgmt::V2018_02_01::Models::Deployment.mapper()
503
+ request_content = @client.serialize(request_mapper, parameters)
504
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
505
+
506
+ path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate'
507
+
508
+ request_url = @base_url || @client.base_url
509
+
510
+ options = {
511
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
512
+ path_params: {'resourceGroupName' => resource_group_name,'deploymentName' => deployment_name,'subscriptionId' => @client.subscription_id},
513
+ query_params: {'api-version' => @client.api_version},
514
+ body: request_content,
515
+ headers: request_headers.merge(custom_headers || {}),
516
+ base_url: request_url
517
+ }
518
+ promise = @client.make_request_async(:post, path_template, options)
519
+
520
+ promise = promise.then do |result|
521
+ http_response = result.response
522
+ status_code = http_response.status
523
+ response_content = http_response.body
524
+ unless status_code == 200 || status_code == 400
525
+ error_model = JSON.load(response_content)
526
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
527
+ end
528
+
529
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
530
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
531
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
532
+ # Deserialize Response
533
+ if status_code == 200
534
+ begin
535
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
536
+ result_mapper = Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentValidateResult.mapper()
537
+ result.body = @client.deserialize(result_mapper, parsed_response)
538
+ rescue Exception => e
539
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
540
+ end
541
+ end
542
+ # Deserialize Response
543
+ if status_code == 400
544
+ begin
545
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
546
+ result_mapper = Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentValidateResult.mapper()
547
+ result.body = @client.deserialize(result_mapper, parsed_response)
548
+ rescue Exception => e
549
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
550
+ end
551
+ end
552
+
553
+ result
554
+ end
555
+
556
+ promise.execute
557
+ end
558
+
559
+ #
560
+ # Exports the template used for specified deployment.
561
+ #
562
+ # @param resource_group_name [String] The name of the resource group. The name
563
+ # is case insensitive.
564
+ # @param deployment_name [String] The name of the deployment from which to get
565
+ # the template.
566
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
567
+ # will be added to the HTTP request.
568
+ #
569
+ # @return [DeploymentExportResult] operation results.
570
+ #
571
+ def export_template(resource_group_name, deployment_name, custom_headers:nil)
572
+ response = export_template_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
573
+ response.body unless response.nil?
574
+ end
575
+
576
+ #
577
+ # Exports the template used for specified deployment.
578
+ #
579
+ # @param resource_group_name [String] The name of the resource group. The name
580
+ # is case insensitive.
581
+ # @param deployment_name [String] The name of the deployment from which to get
582
+ # the template.
583
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
584
+ # will be added to the HTTP request.
585
+ #
586
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
587
+ #
588
+ def export_template_with_http_info(resource_group_name, deployment_name, custom_headers:nil)
589
+ export_template_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
590
+ end
591
+
592
+ #
593
+ # Exports the template used for specified deployment.
594
+ #
595
+ # @param resource_group_name [String] The name of the resource group. The name
596
+ # is case insensitive.
597
+ # @param deployment_name [String] The name of the deployment from which to get
598
+ # the template.
599
+ # @param [Hash{String => String}] A hash of custom headers that will be added
600
+ # to the HTTP request.
601
+ #
602
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
603
+ #
604
+ def export_template_async(resource_group_name, deployment_name, custom_headers:nil)
605
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
606
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
607
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
608
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
609
+ fail ArgumentError, 'deployment_name is nil' if deployment_name.nil?
610
+ fail ArgumentError, "'deployment_name' should satisfy the constraint - 'MaxLength': '64'" if !deployment_name.nil? && deployment_name.length > 64
611
+ fail ArgumentError, "'deployment_name' should satisfy the constraint - 'MinLength': '1'" if !deployment_name.nil? && deployment_name.length < 1
612
+ fail ArgumentError, "'deployment_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !deployment_name.nil? && deployment_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
613
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
614
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
615
+
616
+
617
+ request_headers = {}
618
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
619
+
620
+ # Set Headers
621
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
622
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
623
+ path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate'
624
+
625
+ request_url = @base_url || @client.base_url
626
+
627
+ options = {
628
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
629
+ path_params: {'resourceGroupName' => resource_group_name,'deploymentName' => deployment_name,'subscriptionId' => @client.subscription_id},
630
+ query_params: {'api-version' => @client.api_version},
631
+ headers: request_headers.merge(custom_headers || {}),
632
+ base_url: request_url
633
+ }
634
+ promise = @client.make_request_async(:post, path_template, options)
635
+
636
+ promise = promise.then do |result|
637
+ http_response = result.response
638
+ status_code = http_response.status
639
+ response_content = http_response.body
640
+ unless status_code == 200
641
+ error_model = JSON.load(response_content)
642
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
643
+ end
644
+
645
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
646
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
647
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
648
+ # Deserialize Response
649
+ if status_code == 200
650
+ begin
651
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
652
+ result_mapper = Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentExportResult.mapper()
653
+ result.body = @client.deserialize(result_mapper, parsed_response)
654
+ rescue Exception => e
655
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
656
+ end
657
+ end
658
+
659
+ result
660
+ end
661
+
662
+ promise.execute
663
+ end
664
+
665
+ #
666
+ # Get all the deployments for a resource group.
667
+ #
668
+ # @param resource_group_name [String] The name of the resource group with the
669
+ # deployments to get. The name is case insensitive.
670
+ # @param filter [String] The filter to apply on the operation. For example, you
671
+ # can use $filter=provisioningState eq '{state}'.
672
+ # @param top [Integer] The number of results to get. If null is passed, returns
673
+ # all deployments.
674
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
675
+ # will be added to the HTTP request.
676
+ #
677
+ # @return [Array<DeploymentExtended>] operation results.
678
+ #
679
+ def list_by_resource_group(resource_group_name, filter:nil, top:nil, custom_headers:nil)
680
+ first_page = list_by_resource_group_as_lazy(resource_group_name, filter:filter, top:top, custom_headers:custom_headers)
681
+ first_page.get_all_items
682
+ end
683
+
684
+ #
685
+ # Get all the deployments for a resource group.
686
+ #
687
+ # @param resource_group_name [String] The name of the resource group with the
688
+ # deployments to get. The name is case insensitive.
689
+ # @param filter [String] The filter to apply on the operation. For example, you
690
+ # can use $filter=provisioningState eq '{state}'.
691
+ # @param top [Integer] The number of results to get. If null is passed, returns
692
+ # all deployments.
693
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
694
+ # will be added to the HTTP request.
695
+ #
696
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
697
+ #
698
+ def list_by_resource_group_with_http_info(resource_group_name, filter:nil, top:nil, custom_headers:nil)
699
+ list_by_resource_group_async(resource_group_name, filter:filter, top:top, custom_headers:custom_headers).value!
700
+ end
701
+
702
+ #
703
+ # Get all the deployments for a resource group.
704
+ #
705
+ # @param resource_group_name [String] The name of the resource group with the
706
+ # deployments to get. The name is case insensitive.
707
+ # @param filter [String] The filter to apply on the operation. For example, you
708
+ # can use $filter=provisioningState eq '{state}'.
709
+ # @param top [Integer] The number of results to get. If null is passed, returns
710
+ # all deployments.
711
+ # @param [Hash{String => String}] A hash of custom headers that will be added
712
+ # to the HTTP request.
713
+ #
714
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
715
+ #
716
+ def list_by_resource_group_async(resource_group_name, filter:nil, top:nil, custom_headers:nil)
717
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
718
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
719
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
720
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
721
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
722
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
723
+
724
+
725
+ request_headers = {}
726
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
727
+
728
+ # Set Headers
729
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
730
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
731
+ path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/'
732
+
733
+ request_url = @base_url || @client.base_url
734
+
735
+ options = {
736
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
737
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
738
+ query_params: {'$filter' => filter,'$top' => top,'api-version' => @client.api_version},
739
+ headers: request_headers.merge(custom_headers || {}),
740
+ base_url: request_url
741
+ }
742
+ promise = @client.make_request_async(:get, path_template, options)
743
+
744
+ promise = promise.then do |result|
745
+ http_response = result.response
746
+ status_code = http_response.status
747
+ response_content = http_response.body
748
+ unless status_code == 200
749
+ error_model = JSON.load(response_content)
750
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
751
+ end
752
+
753
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
754
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
755
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
756
+ # Deserialize Response
757
+ if status_code == 200
758
+ begin
759
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
760
+ result_mapper = Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentListResult.mapper()
761
+ result.body = @client.deserialize(result_mapper, parsed_response)
762
+ rescue Exception => e
763
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
764
+ end
765
+ end
766
+
767
+ result
768
+ end
769
+
770
+ promise.execute
771
+ end
772
+
773
+ #
774
+ # Calculate the hash of the given template.
775
+ #
776
+ # @param template The template provided to calculate hash.
777
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
778
+ # will be added to the HTTP request.
779
+ #
780
+ # @return [TemplateHashResult] operation results.
781
+ #
782
+ def calculate_template_hash(template, custom_headers:nil)
783
+ response = calculate_template_hash_async(template, custom_headers:custom_headers).value!
784
+ response.body unless response.nil?
785
+ end
786
+
787
+ #
788
+ # Calculate the hash of the given template.
789
+ #
790
+ # @param template The template provided to calculate hash.
791
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
792
+ # will be added to the HTTP request.
793
+ #
794
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
795
+ #
796
+ def calculate_template_hash_with_http_info(template, custom_headers:nil)
797
+ calculate_template_hash_async(template, custom_headers:custom_headers).value!
798
+ end
799
+
800
+ #
801
+ # Calculate the hash of the given template.
802
+ #
803
+ # @param template The template provided to calculate hash.
804
+ # @param [Hash{String => String}] A hash of custom headers that will be added
805
+ # to the HTTP request.
806
+ #
807
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
808
+ #
809
+ def calculate_template_hash_async(template, custom_headers:nil)
810
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
811
+ fail ArgumentError, 'template is nil' if template.nil?
812
+
813
+
814
+ request_headers = {}
815
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
816
+
817
+ # Set Headers
818
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
819
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
820
+
821
+ # Serialize Request
822
+ request_mapper = {
823
+ client_side_validation: true,
824
+ required: true,
825
+ serialized_name: 'template',
826
+ type: {
827
+ name: 'Object'
828
+ }
829
+ }
830
+ request_content = @client.serialize(request_mapper, template)
831
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
832
+
833
+ path_template = 'providers/Microsoft.Resources/calculateTemplateHash'
834
+
835
+ request_url = @base_url || @client.base_url
836
+
837
+ options = {
838
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
839
+ query_params: {'api-version' => @client.api_version},
840
+ body: request_content,
841
+ headers: request_headers.merge(custom_headers || {}),
842
+ base_url: request_url
843
+ }
844
+ promise = @client.make_request_async(:post, path_template, options)
845
+
846
+ promise = promise.then do |result|
847
+ http_response = result.response
848
+ status_code = http_response.status
849
+ response_content = http_response.body
850
+ unless status_code == 200
851
+ error_model = JSON.load(response_content)
852
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
853
+ end
854
+
855
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
856
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
857
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
858
+ # Deserialize Response
859
+ if status_code == 200
860
+ begin
861
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
862
+ result_mapper = Azure::Resources::Mgmt::V2018_02_01::Models::TemplateHashResult.mapper()
863
+ result.body = @client.deserialize(result_mapper, parsed_response)
864
+ rescue Exception => e
865
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
866
+ end
867
+ end
868
+
869
+ result
870
+ end
871
+
872
+ promise.execute
873
+ end
874
+
875
+ #
876
+ # Deletes a deployment from the deployment history.
877
+ #
878
+ # A template deployment that is currently running cannot be deleted. Deleting a
879
+ # template deployment removes the associated deployment operations. Deleting a
880
+ # template deployment does not affect the state of the resource group. This is
881
+ # an asynchronous operation that returns a status of 202 until the template
882
+ # deployment is successfully deleted. The Location response header contains the
883
+ # URI that is used to obtain the status of the process. While the process is
884
+ # running, a call to the URI in the Location header returns a status of 202.
885
+ # When the process finishes, the URI in the Location header returns a status of
886
+ # 204 on success. If the asynchronous request failed, the URI in the Location
887
+ # header returns an error-level status code.
888
+ #
889
+ # @param resource_group_name [String] The name of the resource group with the
890
+ # deployment to delete. The name is case insensitive.
891
+ # @param deployment_name [String] The name of the deployment to delete.
892
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
893
+ # will be added to the HTTP request.
894
+ #
895
+ #
896
+ def begin_delete(resource_group_name, deployment_name, custom_headers:nil)
897
+ response = begin_delete_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
898
+ nil
899
+ end
900
+
901
+ #
902
+ # Deletes a deployment from the deployment history.
903
+ #
904
+ # A template deployment that is currently running cannot be deleted. Deleting a
905
+ # template deployment removes the associated deployment operations. Deleting a
906
+ # template deployment does not affect the state of the resource group. This is
907
+ # an asynchronous operation that returns a status of 202 until the template
908
+ # deployment is successfully deleted. The Location response header contains the
909
+ # URI that is used to obtain the status of the process. While the process is
910
+ # running, a call to the URI in the Location header returns a status of 202.
911
+ # When the process finishes, the URI in the Location header returns a status of
912
+ # 204 on success. If the asynchronous request failed, the URI in the Location
913
+ # header returns an error-level status code.
914
+ #
915
+ # @param resource_group_name [String] The name of the resource group with the
916
+ # deployment to delete. The name is case insensitive.
917
+ # @param deployment_name [String] The name of the deployment to delete.
918
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
919
+ # will be added to the HTTP request.
920
+ #
921
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
922
+ #
923
+ def begin_delete_with_http_info(resource_group_name, deployment_name, custom_headers:nil)
924
+ begin_delete_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
925
+ end
926
+
927
+ #
928
+ # Deletes a deployment from the deployment history.
929
+ #
930
+ # A template deployment that is currently running cannot be deleted. Deleting a
931
+ # template deployment removes the associated deployment operations. Deleting a
932
+ # template deployment does not affect the state of the resource group. This is
933
+ # an asynchronous operation that returns a status of 202 until the template
934
+ # deployment is successfully deleted. The Location response header contains the
935
+ # URI that is used to obtain the status of the process. While the process is
936
+ # running, a call to the URI in the Location header returns a status of 202.
937
+ # When the process finishes, the URI in the Location header returns a status of
938
+ # 204 on success. If the asynchronous request failed, the URI in the Location
939
+ # header returns an error-level status code.
940
+ #
941
+ # @param resource_group_name [String] The name of the resource group with the
942
+ # deployment to delete. The name is case insensitive.
943
+ # @param deployment_name [String] The name of the deployment to delete.
944
+ # @param [Hash{String => String}] A hash of custom headers that will be added
945
+ # to the HTTP request.
946
+ #
947
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
948
+ #
949
+ def begin_delete_async(resource_group_name, deployment_name, custom_headers:nil)
950
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
951
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
952
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
953
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
954
+ fail ArgumentError, 'deployment_name is nil' if deployment_name.nil?
955
+ fail ArgumentError, "'deployment_name' should satisfy the constraint - 'MaxLength': '64'" if !deployment_name.nil? && deployment_name.length > 64
956
+ fail ArgumentError, "'deployment_name' should satisfy the constraint - 'MinLength': '1'" if !deployment_name.nil? && deployment_name.length < 1
957
+ fail ArgumentError, "'deployment_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !deployment_name.nil? && deployment_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
958
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
959
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
960
+
961
+
962
+ request_headers = {}
963
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
964
+
965
+ # Set Headers
966
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
967
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
968
+ path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'
969
+
970
+ request_url = @base_url || @client.base_url
971
+
972
+ options = {
973
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
974
+ path_params: {'resourceGroupName' => resource_group_name,'deploymentName' => deployment_name,'subscriptionId' => @client.subscription_id},
975
+ query_params: {'api-version' => @client.api_version},
976
+ headers: request_headers.merge(custom_headers || {}),
977
+ base_url: request_url
978
+ }
979
+ promise = @client.make_request_async(:delete, path_template, options)
980
+
981
+ promise = promise.then do |result|
982
+ http_response = result.response
983
+ status_code = http_response.status
984
+ response_content = http_response.body
985
+ unless status_code == 202 || status_code == 204
986
+ error_model = JSON.load(response_content)
987
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
988
+ end
989
+
990
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
991
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
992
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
993
+
994
+ result
995
+ end
996
+
997
+ promise.execute
998
+ end
999
+
1000
+ #
1001
+ # Deploys resources to a resource group.
1002
+ #
1003
+ # You can provide the template and parameters directly in the request or link
1004
+ # to JSON files.
1005
+ #
1006
+ # @param resource_group_name [String] The name of the resource group to deploy
1007
+ # the resources to. The name is case insensitive. The resource group must
1008
+ # already exist.
1009
+ # @param deployment_name [String] The name of the deployment.
1010
+ # @param parameters [Deployment] Additional parameters supplied to the
1011
+ # operation.
1012
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1013
+ # will be added to the HTTP request.
1014
+ #
1015
+ # @return [DeploymentExtended] operation results.
1016
+ #
1017
+ def begin_create_or_update(resource_group_name, deployment_name, parameters, custom_headers:nil)
1018
+ response = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value!
1019
+ response.body unless response.nil?
1020
+ end
1021
+
1022
+ #
1023
+ # Deploys resources to a resource group.
1024
+ #
1025
+ # You can provide the template and parameters directly in the request or link
1026
+ # to JSON files.
1027
+ #
1028
+ # @param resource_group_name [String] The name of the resource group to deploy
1029
+ # the resources to. The name is case insensitive. The resource group must
1030
+ # already exist.
1031
+ # @param deployment_name [String] The name of the deployment.
1032
+ # @param parameters [Deployment] Additional parameters supplied to the
1033
+ # operation.
1034
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1035
+ # will be added to the HTTP request.
1036
+ #
1037
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1038
+ #
1039
+ def begin_create_or_update_with_http_info(resource_group_name, deployment_name, parameters, custom_headers:nil)
1040
+ begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value!
1041
+ end
1042
+
1043
+ #
1044
+ # Deploys resources to a resource group.
1045
+ #
1046
+ # You can provide the template and parameters directly in the request or link
1047
+ # to JSON files.
1048
+ #
1049
+ # @param resource_group_name [String] The name of the resource group to deploy
1050
+ # the resources to. The name is case insensitive. The resource group must
1051
+ # already exist.
1052
+ # @param deployment_name [String] The name of the deployment.
1053
+ # @param parameters [Deployment] Additional parameters supplied to the
1054
+ # operation.
1055
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1056
+ # to the HTTP request.
1057
+ #
1058
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1059
+ #
1060
+ def begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:nil)
1061
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1062
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1063
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1064
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1065
+ fail ArgumentError, 'deployment_name is nil' if deployment_name.nil?
1066
+ fail ArgumentError, "'deployment_name' should satisfy the constraint - 'MaxLength': '64'" if !deployment_name.nil? && deployment_name.length > 64
1067
+ fail ArgumentError, "'deployment_name' should satisfy the constraint - 'MinLength': '1'" if !deployment_name.nil? && deployment_name.length < 1
1068
+ fail ArgumentError, "'deployment_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !deployment_name.nil? && deployment_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1069
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1070
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1071
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1072
+
1073
+
1074
+ request_headers = {}
1075
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1076
+
1077
+ # Set Headers
1078
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1079
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1080
+
1081
+ # Serialize Request
1082
+ request_mapper = Azure::Resources::Mgmt::V2018_02_01::Models::Deployment.mapper()
1083
+ request_content = @client.serialize(request_mapper, parameters)
1084
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1085
+
1086
+ path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'
1087
+
1088
+ request_url = @base_url || @client.base_url
1089
+
1090
+ options = {
1091
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1092
+ path_params: {'resourceGroupName' => resource_group_name,'deploymentName' => deployment_name,'subscriptionId' => @client.subscription_id},
1093
+ query_params: {'api-version' => @client.api_version},
1094
+ body: request_content,
1095
+ headers: request_headers.merge(custom_headers || {}),
1096
+ base_url: request_url
1097
+ }
1098
+ promise = @client.make_request_async(:put, path_template, options)
1099
+
1100
+ promise = promise.then do |result|
1101
+ http_response = result.response
1102
+ status_code = http_response.status
1103
+ response_content = http_response.body
1104
+ unless status_code == 200 || status_code == 201
1105
+ error_model = JSON.load(response_content)
1106
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1107
+ end
1108
+
1109
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1110
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1111
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1112
+ # Deserialize Response
1113
+ if status_code == 200
1114
+ begin
1115
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1116
+ result_mapper = Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentExtended.mapper()
1117
+ result.body = @client.deserialize(result_mapper, parsed_response)
1118
+ rescue Exception => e
1119
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1120
+ end
1121
+ end
1122
+ # Deserialize Response
1123
+ if status_code == 201
1124
+ begin
1125
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1126
+ result_mapper = Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentExtended.mapper()
1127
+ result.body = @client.deserialize(result_mapper, parsed_response)
1128
+ rescue Exception => e
1129
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1130
+ end
1131
+ end
1132
+
1133
+ result
1134
+ end
1135
+
1136
+ promise.execute
1137
+ end
1138
+
1139
+ #
1140
+ # Get all the deployments for a resource group.
1141
+ #
1142
+ # @param next_page_link [String] The NextLink from the previous successful call
1143
+ # to List operation.
1144
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1145
+ # will be added to the HTTP request.
1146
+ #
1147
+ # @return [DeploymentListResult] operation results.
1148
+ #
1149
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
1150
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1151
+ response.body unless response.nil?
1152
+ end
1153
+
1154
+ #
1155
+ # Get all the deployments for a resource group.
1156
+ #
1157
+ # @param next_page_link [String] The NextLink from the previous successful call
1158
+ # to List operation.
1159
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1160
+ # will be added to the HTTP request.
1161
+ #
1162
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1163
+ #
1164
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
1165
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1166
+ end
1167
+
1168
+ #
1169
+ # Get all the deployments for a resource group.
1170
+ #
1171
+ # @param next_page_link [String] The NextLink from the previous successful call
1172
+ # to List operation.
1173
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1174
+ # to the HTTP request.
1175
+ #
1176
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1177
+ #
1178
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
1179
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1180
+
1181
+
1182
+ request_headers = {}
1183
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1184
+
1185
+ # Set Headers
1186
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1187
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1188
+ path_template = '{nextLink}'
1189
+
1190
+ request_url = @base_url || @client.base_url
1191
+
1192
+ options = {
1193
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1194
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1195
+ headers: request_headers.merge(custom_headers || {}),
1196
+ base_url: request_url
1197
+ }
1198
+ promise = @client.make_request_async(:get, path_template, options)
1199
+
1200
+ promise = promise.then do |result|
1201
+ http_response = result.response
1202
+ status_code = http_response.status
1203
+ response_content = http_response.body
1204
+ unless status_code == 200
1205
+ error_model = JSON.load(response_content)
1206
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1207
+ end
1208
+
1209
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1210
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1211
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1212
+ # Deserialize Response
1213
+ if status_code == 200
1214
+ begin
1215
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1216
+ result_mapper = Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentListResult.mapper()
1217
+ result.body = @client.deserialize(result_mapper, parsed_response)
1218
+ rescue Exception => e
1219
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1220
+ end
1221
+ end
1222
+
1223
+ result
1224
+ end
1225
+
1226
+ promise.execute
1227
+ end
1228
+
1229
+ #
1230
+ # Get all the deployments for a resource group.
1231
+ #
1232
+ # @param resource_group_name [String] The name of the resource group with the
1233
+ # deployments to get. The name is case insensitive.
1234
+ # @param filter [String] The filter to apply on the operation. For example, you
1235
+ # can use $filter=provisioningState eq '{state}'.
1236
+ # @param top [Integer] The number of results to get. If null is passed, returns
1237
+ # all deployments.
1238
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1239
+ # will be added to the HTTP request.
1240
+ #
1241
+ # @return [DeploymentListResult] which provide lazy access to pages of the
1242
+ # response.
1243
+ #
1244
+ def list_by_resource_group_as_lazy(resource_group_name, filter:nil, top:nil, custom_headers:nil)
1245
+ response = list_by_resource_group_async(resource_group_name, filter:filter, top:top, custom_headers:custom_headers).value!
1246
+ unless response.nil?
1247
+ page = response.body
1248
+ page.next_method = Proc.new do |next_page_link|
1249
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
1250
+ end
1251
+ page
1252
+ end
1253
+ end
1254
+
1255
+ end
1256
+ end