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,1814 @@
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::V2016_09_01
7
+ #
8
+ # Provides operations for working with resources and resource groups.
9
+ #
10
+ class Resources
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Resources 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
+ # Moves resources from one resource group to another resource group.
26
+ #
27
+ # The resources to move must be in the same source resource group. The target
28
+ # resource group may be in a different subscription. When moving resources,
29
+ # both the source group and the target group are locked for the duration of the
30
+ # operation. Write and delete operations are blocked on the groups until the
31
+ # move completes.
32
+ #
33
+ # @param source_resource_group_name [String] The name of the resource group
34
+ # containing the resources to move.
35
+ # @param parameters [ResourcesMoveInfo] Parameters for moving resources.
36
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
37
+ # will be added to the HTTP request.
38
+ #
39
+ def move_resources(source_resource_group_name, parameters, custom_headers:nil)
40
+ response = move_resources_async(source_resource_group_name, parameters, custom_headers:custom_headers).value!
41
+ nil
42
+ end
43
+
44
+ #
45
+ # @param source_resource_group_name [String] The name of the resource group
46
+ # containing the resources to move.
47
+ # @param parameters [ResourcesMoveInfo] Parameters for moving resources.
48
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
49
+ # will be added to the HTTP request.
50
+ #
51
+ # @return [Concurrent::Promise] promise which provides async access to http
52
+ # response.
53
+ #
54
+ def move_resources_async(source_resource_group_name, parameters, custom_headers:nil)
55
+ # Send request
56
+ promise = begin_move_resources_async(source_resource_group_name, parameters, custom_headers:custom_headers)
57
+
58
+ promise = promise.then do |response|
59
+ # Defining deserialization method.
60
+ deserialize_method = lambda do |parsed_response|
61
+ end
62
+
63
+ # Waiting for response.
64
+ @client.get_long_running_operation_result(response, deserialize_method)
65
+ end
66
+
67
+ promise
68
+ end
69
+
70
+ #
71
+ # Get all the resources in a subscription.
72
+ #
73
+ # @param filter [String] The filter to apply on the operation.
74
+ # @param expand [String] The $expand query parameter.
75
+ # @param top [Integer] The number of results to return. If null is passed,
76
+ # returns all resource groups.
77
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
78
+ # will be added to the HTTP request.
79
+ #
80
+ # @return [Array<GenericResource>] operation results.
81
+ #
82
+ def list(filter:nil, expand:nil, top:nil, custom_headers:nil)
83
+ first_page = list_as_lazy(filter:filter, expand:expand, top:top, custom_headers:custom_headers)
84
+ first_page.get_all_items
85
+ end
86
+
87
+ #
88
+ # Get all the resources in a subscription.
89
+ #
90
+ # @param filter [String] The filter to apply on the operation.
91
+ # @param expand [String] The $expand query parameter.
92
+ # @param top [Integer] The number of results to return. If null is passed,
93
+ # returns all resource groups.
94
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
95
+ # will be added to the HTTP request.
96
+ #
97
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
98
+ #
99
+ def list_with_http_info(filter:nil, expand:nil, top:nil, custom_headers:nil)
100
+ list_async(filter:filter, expand:expand, top:top, custom_headers:custom_headers).value!
101
+ end
102
+
103
+ #
104
+ # Get all the resources in a subscription.
105
+ #
106
+ # @param filter [String] The filter to apply on the operation.
107
+ # @param expand [String] The $expand query parameter.
108
+ # @param top [Integer] The number of results to return. If null is passed,
109
+ # returns all resource groups.
110
+ # @param [Hash{String => String}] A hash of custom headers that will be added
111
+ # to the HTTP request.
112
+ #
113
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
114
+ #
115
+ def list_async(filter:nil, expand:nil, top:nil, custom_headers:nil)
116
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
117
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
118
+
119
+
120
+ request_headers = {}
121
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
122
+
123
+ # Set Headers
124
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
125
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
126
+ path_template = 'subscriptions/{subscriptionId}/resources'
127
+
128
+ request_url = @base_url || @client.base_url
129
+
130
+ options = {
131
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
132
+ path_params: {'subscriptionId' => @client.subscription_id},
133
+ query_params: {'$filter' => filter,'$expand' => expand,'$top' => top,'api-version' => @client.api_version},
134
+ headers: request_headers.merge(custom_headers || {}),
135
+ base_url: request_url
136
+ }
137
+ promise = @client.make_request_async(:get, path_template, options)
138
+
139
+ promise = promise.then do |result|
140
+ http_response = result.response
141
+ status_code = http_response.status
142
+ response_content = http_response.body
143
+ unless status_code == 200
144
+ error_model = JSON.load(response_content)
145
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
146
+ end
147
+
148
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
149
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
150
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
151
+ # Deserialize Response
152
+ if status_code == 200
153
+ begin
154
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
155
+ result_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::ResourceListResult.mapper()
156
+ result.body = @client.deserialize(result_mapper, parsed_response)
157
+ rescue Exception => e
158
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
159
+ end
160
+ end
161
+
162
+ result
163
+ end
164
+
165
+ promise.execute
166
+ end
167
+
168
+ #
169
+ # Checks whether a resource exists.
170
+ #
171
+ # @param resource_group_name [String] The name of the resource group containing
172
+ # the resource to check. The name is case insensitive.
173
+ # @param resource_provider_namespace [String] The resource provider of the
174
+ # resource to check.
175
+ # @param parent_resource_path [String] The parent resource identity.
176
+ # @param resource_type [String] The resource type.
177
+ # @param resource_name [String] The name of the resource to check whether it
178
+ # exists.
179
+ # @param api_version [String] The API version to use for the operation.
180
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
181
+ # will be added to the HTTP request.
182
+ #
183
+ # @return [Boolean] operation results.
184
+ #
185
+ def check_existence(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil)
186
+ response = check_existence_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value!
187
+ response.body unless response.nil?
188
+ end
189
+
190
+ #
191
+ # Checks whether a resource exists.
192
+ #
193
+ # @param resource_group_name [String] The name of the resource group containing
194
+ # the resource to check. The name is case insensitive.
195
+ # @param resource_provider_namespace [String] The resource provider of the
196
+ # resource to check.
197
+ # @param parent_resource_path [String] The parent resource identity.
198
+ # @param resource_type [String] The resource type.
199
+ # @param resource_name [String] The name of the resource to check whether it
200
+ # exists.
201
+ # @param api_version [String] The API version to use for the operation.
202
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
203
+ # will be added to the HTTP request.
204
+ #
205
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
206
+ #
207
+ def check_existence_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil)
208
+ check_existence_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value!
209
+ end
210
+
211
+ #
212
+ # Checks whether a resource exists.
213
+ #
214
+ # @param resource_group_name [String] The name of the resource group containing
215
+ # the resource to check. The name is case insensitive.
216
+ # @param resource_provider_namespace [String] The resource provider of the
217
+ # resource to check.
218
+ # @param parent_resource_path [String] The parent resource identity.
219
+ # @param resource_type [String] The resource type.
220
+ # @param resource_name [String] The name of the resource to check whether it
221
+ # exists.
222
+ # @param api_version [String] The API version to use for the operation.
223
+ # @param [Hash{String => String}] A hash of custom headers that will be added
224
+ # to the HTTP request.
225
+ #
226
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
227
+ #
228
+ def check_existence_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil)
229
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
230
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
231
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
232
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
233
+ fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
234
+ fail ArgumentError, 'parent_resource_path is nil' if parent_resource_path.nil?
235
+ fail ArgumentError, 'resource_type is nil' if resource_type.nil?
236
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
237
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
238
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
239
+
240
+
241
+ request_headers = {}
242
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
243
+
244
+ # Set Headers
245
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
246
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
247
+ path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}'
248
+
249
+ request_url = @base_url || @client.base_url
250
+
251
+ options = {
252
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
253
+ path_params: {'resourceGroupName' => resource_group_name,'resourceProviderNamespace' => resource_provider_namespace,'resourceName' => resource_name,'subscriptionId' => @client.subscription_id},
254
+ skip_encoding_path_params: {'parentResourcePath' => parent_resource_path,'resourceType' => resource_type},
255
+ query_params: {'api-version' => api_version},
256
+ headers: request_headers.merge(custom_headers || {}),
257
+ base_url: request_url
258
+ }
259
+ promise = @client.make_request_async(:head, path_template, options)
260
+
261
+ promise = promise.then do |result|
262
+ http_response = result.response
263
+ status_code = http_response.status
264
+ response_content = http_response.body
265
+ unless status_code == 204 || status_code == 404
266
+ error_model = JSON.load(response_content)
267
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
268
+ end
269
+
270
+ result.body = (status_code == 204)
271
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
272
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
273
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
274
+
275
+ result
276
+ end
277
+
278
+ promise.execute
279
+ end
280
+
281
+ #
282
+ # Deletes a resource.
283
+ #
284
+ # @param resource_group_name [String] The name of the resource group that
285
+ # contains the resource to delete. The name is case insensitive.
286
+ # @param resource_provider_namespace [String] The namespace of the resource
287
+ # provider.
288
+ # @param parent_resource_path [String] The parent resource identity.
289
+ # @param resource_type [String] The resource type.
290
+ # @param resource_name [String] The name of the resource to delete.
291
+ # @param api_version [String] The API version to use for the operation.
292
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
293
+ # will be added to the HTTP request.
294
+ #
295
+ def delete(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil)
296
+ response = delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value!
297
+ nil
298
+ end
299
+
300
+ #
301
+ # @param resource_group_name [String] The name of the resource group that
302
+ # contains the resource to delete. The name is case insensitive.
303
+ # @param resource_provider_namespace [String] The namespace of the resource
304
+ # provider.
305
+ # @param parent_resource_path [String] The parent resource identity.
306
+ # @param resource_type [String] The resource type.
307
+ # @param resource_name [String] The name of the resource to delete.
308
+ # @param api_version [String] The API version to use for the operation.
309
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
310
+ # will be added to the HTTP request.
311
+ #
312
+ # @return [Concurrent::Promise] promise which provides async access to http
313
+ # response.
314
+ #
315
+ def delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil)
316
+ # Send request
317
+ promise = begin_delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers)
318
+
319
+ promise = promise.then do |response|
320
+ # Defining deserialization method.
321
+ deserialize_method = lambda do |parsed_response|
322
+ end
323
+
324
+ # Waiting for response.
325
+ @client.get_long_running_operation_result(response, deserialize_method)
326
+ end
327
+
328
+ promise
329
+ end
330
+
331
+ #
332
+ # Creates a resource.
333
+ #
334
+ # @param resource_group_name [String] The name of the resource group for the
335
+ # resource. The name is case insensitive.
336
+ # @param resource_provider_namespace [String] The namespace of the resource
337
+ # provider.
338
+ # @param parent_resource_path [String] The parent resource identity.
339
+ # @param resource_type [String] The resource type of the resource to create.
340
+ # @param resource_name [String] The name of the resource to create.
341
+ # @param api_version [String] The API version to use for the operation.
342
+ # @param parameters [GenericResource] Parameters for creating or updating the
343
+ # resource.
344
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
345
+ # will be added to the HTTP request.
346
+ #
347
+ # @return [GenericResource] operation results.
348
+ #
349
+ def create_or_update(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:nil)
350
+ response = create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:custom_headers).value!
351
+ response.body unless response.nil?
352
+ end
353
+
354
+ #
355
+ # @param resource_group_name [String] The name of the resource group for the
356
+ # resource. The name is case insensitive.
357
+ # @param resource_provider_namespace [String] The namespace of the resource
358
+ # provider.
359
+ # @param parent_resource_path [String] The parent resource identity.
360
+ # @param resource_type [String] The resource type of the resource to create.
361
+ # @param resource_name [String] The name of the resource to create.
362
+ # @param api_version [String] The API version to use for the operation.
363
+ # @param parameters [GenericResource] Parameters for creating or updating the
364
+ # resource.
365
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
366
+ # will be added to the HTTP request.
367
+ #
368
+ # @return [Concurrent::Promise] promise which provides async access to http
369
+ # response.
370
+ #
371
+ def create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:nil)
372
+ # Send request
373
+ promise = begin_create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:custom_headers)
374
+
375
+ promise = promise.then do |response|
376
+ # Defining deserialization method.
377
+ deserialize_method = lambda do |parsed_response|
378
+ result_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::GenericResource.mapper()
379
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
380
+ end
381
+
382
+ # Waiting for response.
383
+ @client.get_long_running_operation_result(response, deserialize_method)
384
+ end
385
+
386
+ promise
387
+ end
388
+
389
+ #
390
+ # Updates a resource.
391
+ #
392
+ # @param resource_group_name [String] The name of the resource group for the
393
+ # resource. The name is case insensitive.
394
+ # @param resource_provider_namespace [String] The namespace of the resource
395
+ # provider.
396
+ # @param parent_resource_path [String] The parent resource identity.
397
+ # @param resource_type [String] The resource type of the resource to update.
398
+ # @param resource_name [String] The name of the resource to update.
399
+ # @param api_version [String] The API version to use for the operation.
400
+ # @param parameters [GenericResource] Parameters for updating the resource.
401
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
402
+ # will be added to the HTTP request.
403
+ #
404
+ # @return [GenericResource] operation results.
405
+ #
406
+ def update(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:nil)
407
+ response = update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:custom_headers).value!
408
+ response.body unless response.nil?
409
+ end
410
+
411
+ #
412
+ # @param resource_group_name [String] The name of the resource group for the
413
+ # resource. The name is case insensitive.
414
+ # @param resource_provider_namespace [String] The namespace of the resource
415
+ # provider.
416
+ # @param parent_resource_path [String] The parent resource identity.
417
+ # @param resource_type [String] The resource type of the resource to update.
418
+ # @param resource_name [String] The name of the resource to update.
419
+ # @param api_version [String] The API version to use for the operation.
420
+ # @param parameters [GenericResource] Parameters for updating the resource.
421
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
422
+ # will be added to the HTTP request.
423
+ #
424
+ # @return [Concurrent::Promise] promise which provides async access to http
425
+ # response.
426
+ #
427
+ def update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:nil)
428
+ # Send request
429
+ promise = begin_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:custom_headers)
430
+
431
+ promise = promise.then do |response|
432
+ # Defining deserialization method.
433
+ deserialize_method = lambda do |parsed_response|
434
+ result_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::GenericResource.mapper()
435
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
436
+ end
437
+
438
+ # Waiting for response.
439
+ @client.get_long_running_operation_result(response, deserialize_method)
440
+ end
441
+
442
+ promise
443
+ end
444
+
445
+ #
446
+ # Gets a resource.
447
+ #
448
+ # @param resource_group_name [String] The name of the resource group containing
449
+ # the resource to get. The name is case insensitive.
450
+ # @param resource_provider_namespace [String] The namespace of the resource
451
+ # provider.
452
+ # @param parent_resource_path [String] The parent resource identity.
453
+ # @param resource_type [String] The resource type of the resource.
454
+ # @param resource_name [String] The name of the resource to get.
455
+ # @param api_version [String] The API version to use for the operation.
456
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
457
+ # will be added to the HTTP request.
458
+ #
459
+ # @return [GenericResource] operation results.
460
+ #
461
+ def get(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil)
462
+ response = get_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value!
463
+ response.body unless response.nil?
464
+ end
465
+
466
+ #
467
+ # Gets a resource.
468
+ #
469
+ # @param resource_group_name [String] The name of the resource group containing
470
+ # the resource to get. The name is case insensitive.
471
+ # @param resource_provider_namespace [String] The namespace of the resource
472
+ # provider.
473
+ # @param parent_resource_path [String] The parent resource identity.
474
+ # @param resource_type [String] The resource type of the resource.
475
+ # @param resource_name [String] The name of the resource to get.
476
+ # @param api_version [String] The API version to use for the operation.
477
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
478
+ # will be added to the HTTP request.
479
+ #
480
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
481
+ #
482
+ def get_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil)
483
+ get_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value!
484
+ end
485
+
486
+ #
487
+ # Gets a resource.
488
+ #
489
+ # @param resource_group_name [String] The name of the resource group containing
490
+ # the resource to get. The name is case insensitive.
491
+ # @param resource_provider_namespace [String] The namespace of the resource
492
+ # provider.
493
+ # @param parent_resource_path [String] The parent resource identity.
494
+ # @param resource_type [String] The resource type of the resource.
495
+ # @param resource_name [String] The name of the resource to get.
496
+ # @param api_version [String] The API version to use for the operation.
497
+ # @param [Hash{String => String}] A hash of custom headers that will be added
498
+ # to the HTTP request.
499
+ #
500
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
501
+ #
502
+ def get_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil)
503
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
504
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
505
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
506
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
507
+ fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
508
+ fail ArgumentError, 'parent_resource_path is nil' if parent_resource_path.nil?
509
+ fail ArgumentError, 'resource_type is nil' if resource_type.nil?
510
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
511
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
512
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
513
+
514
+
515
+ request_headers = {}
516
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
517
+
518
+ # Set Headers
519
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
520
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
521
+ path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}'
522
+
523
+ request_url = @base_url || @client.base_url
524
+
525
+ options = {
526
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
527
+ path_params: {'resourceGroupName' => resource_group_name,'resourceProviderNamespace' => resource_provider_namespace,'resourceName' => resource_name,'subscriptionId' => @client.subscription_id},
528
+ skip_encoding_path_params: {'parentResourcePath' => parent_resource_path,'resourceType' => resource_type},
529
+ query_params: {'api-version' => api_version},
530
+ headers: request_headers.merge(custom_headers || {}),
531
+ base_url: request_url
532
+ }
533
+ promise = @client.make_request_async(:get, path_template, options)
534
+
535
+ promise = promise.then do |result|
536
+ http_response = result.response
537
+ status_code = http_response.status
538
+ response_content = http_response.body
539
+ unless status_code == 200
540
+ error_model = JSON.load(response_content)
541
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
542
+ end
543
+
544
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
545
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
546
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
547
+ # Deserialize Response
548
+ if status_code == 200
549
+ begin
550
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
551
+ result_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::GenericResource.mapper()
552
+ result.body = @client.deserialize(result_mapper, parsed_response)
553
+ rescue Exception => e
554
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
555
+ end
556
+ end
557
+
558
+ result
559
+ end
560
+
561
+ promise.execute
562
+ end
563
+
564
+ #
565
+ # Checks by ID whether a resource exists.
566
+ #
567
+ # @param resource_id [String] The fully qualified ID of the resource, including
568
+ # the resource name and resource type. Use the format,
569
+ # /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
570
+ # @param api_version [String] The API version to use for the operation.
571
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
572
+ # will be added to the HTTP request.
573
+ #
574
+ # @return [Boolean] operation results.
575
+ #
576
+ def check_existence_by_id(resource_id, api_version, custom_headers:nil)
577
+ response = check_existence_by_id_async(resource_id, api_version, custom_headers:custom_headers).value!
578
+ response.body unless response.nil?
579
+ end
580
+
581
+ #
582
+ # Checks by ID whether a resource exists.
583
+ #
584
+ # @param resource_id [String] The fully qualified ID of the resource, including
585
+ # the resource name and resource type. Use the format,
586
+ # /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
587
+ # @param api_version [String] The API version to use for the operation.
588
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
589
+ # will be added to the HTTP request.
590
+ #
591
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
592
+ #
593
+ def check_existence_by_id_with_http_info(resource_id, api_version, custom_headers:nil)
594
+ check_existence_by_id_async(resource_id, api_version, custom_headers:custom_headers).value!
595
+ end
596
+
597
+ #
598
+ # Checks by ID whether a resource exists.
599
+ #
600
+ # @param resource_id [String] The fully qualified ID of the resource, including
601
+ # the resource name and resource type. Use the format,
602
+ # /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
603
+ # @param api_version [String] The API version to use for the operation.
604
+ # @param [Hash{String => String}] A hash of custom headers that will be added
605
+ # to the HTTP request.
606
+ #
607
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
608
+ #
609
+ def check_existence_by_id_async(resource_id, api_version, custom_headers:nil)
610
+ fail ArgumentError, 'resource_id is nil' if resource_id.nil?
611
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
612
+
613
+
614
+ request_headers = {}
615
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
616
+
617
+ # Set Headers
618
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
619
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
620
+ path_template = '{resourceId}'
621
+
622
+ request_url = @base_url || @client.base_url
623
+
624
+ options = {
625
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
626
+ skip_encoding_path_params: {'resourceId' => resource_id},
627
+ query_params: {'api-version' => api_version},
628
+ headers: request_headers.merge(custom_headers || {}),
629
+ base_url: request_url
630
+ }
631
+ promise = @client.make_request_async(:head, path_template, options)
632
+
633
+ promise = promise.then do |result|
634
+ http_response = result.response
635
+ status_code = http_response.status
636
+ response_content = http_response.body
637
+ unless status_code == 204 || status_code == 404
638
+ error_model = JSON.load(response_content)
639
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
640
+ end
641
+
642
+ result.body = (status_code == 204)
643
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
644
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
645
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
646
+
647
+ result
648
+ end
649
+
650
+ promise.execute
651
+ end
652
+
653
+ #
654
+ # Deletes a resource by ID.
655
+ #
656
+ # @param resource_id [String] The fully qualified ID of the resource, including
657
+ # the resource name and resource type. Use the format,
658
+ # /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
659
+ # @param api_version [String] The API version to use for the operation.
660
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
661
+ # will be added to the HTTP request.
662
+ #
663
+ def delete_by_id(resource_id, api_version, custom_headers:nil)
664
+ response = delete_by_id_async(resource_id, api_version, custom_headers:custom_headers).value!
665
+ nil
666
+ end
667
+
668
+ #
669
+ # @param resource_id [String] The fully qualified ID of the resource, including
670
+ # the resource name and resource type. Use the format,
671
+ # /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
672
+ # @param api_version [String] The API version to use for the operation.
673
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
674
+ # will be added to the HTTP request.
675
+ #
676
+ # @return [Concurrent::Promise] promise which provides async access to http
677
+ # response.
678
+ #
679
+ def delete_by_id_async(resource_id, api_version, custom_headers:nil)
680
+ # Send request
681
+ promise = begin_delete_by_id_async(resource_id, api_version, custom_headers:custom_headers)
682
+
683
+ promise = promise.then do |response|
684
+ # Defining deserialization method.
685
+ deserialize_method = lambda do |parsed_response|
686
+ end
687
+
688
+ # Waiting for response.
689
+ @client.get_long_running_operation_result(response, deserialize_method)
690
+ end
691
+
692
+ promise
693
+ end
694
+
695
+ #
696
+ # Create a resource by ID.
697
+ #
698
+ # @param resource_id [String] The fully qualified ID of the resource, including
699
+ # the resource name and resource type. Use the format,
700
+ # /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
701
+ # @param api_version [String] The API version to use for the operation.
702
+ # @param parameters [GenericResource] Create or update resource parameters.
703
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
704
+ # will be added to the HTTP request.
705
+ #
706
+ # @return [GenericResource] operation results.
707
+ #
708
+ def create_or_update_by_id(resource_id, api_version, parameters, custom_headers:nil)
709
+ response = create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers:custom_headers).value!
710
+ response.body unless response.nil?
711
+ end
712
+
713
+ #
714
+ # @param resource_id [String] The fully qualified ID of the resource, including
715
+ # the resource name and resource type. Use the format,
716
+ # /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
717
+ # @param api_version [String] The API version to use for the operation.
718
+ # @param parameters [GenericResource] Create or update resource parameters.
719
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
720
+ # will be added to the HTTP request.
721
+ #
722
+ # @return [Concurrent::Promise] promise which provides async access to http
723
+ # response.
724
+ #
725
+ def create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers:nil)
726
+ # Send request
727
+ promise = begin_create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers:custom_headers)
728
+
729
+ promise = promise.then do |response|
730
+ # Defining deserialization method.
731
+ deserialize_method = lambda do |parsed_response|
732
+ result_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::GenericResource.mapper()
733
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
734
+ end
735
+
736
+ # Waiting for response.
737
+ @client.get_long_running_operation_result(response, deserialize_method)
738
+ end
739
+
740
+ promise
741
+ end
742
+
743
+ #
744
+ # Updates a resource by ID.
745
+ #
746
+ # @param resource_id [String] The fully qualified ID of the resource, including
747
+ # the resource name and resource type. Use the format,
748
+ # /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
749
+ # @param api_version [String] The API version to use for the operation.
750
+ # @param parameters [GenericResource] Update resource parameters.
751
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
752
+ # will be added to the HTTP request.
753
+ #
754
+ # @return [GenericResource] operation results.
755
+ #
756
+ def update_by_id(resource_id, api_version, parameters, custom_headers:nil)
757
+ response = update_by_id_async(resource_id, api_version, parameters, custom_headers:custom_headers).value!
758
+ response.body unless response.nil?
759
+ end
760
+
761
+ #
762
+ # @param resource_id [String] The fully qualified ID of the resource, including
763
+ # the resource name and resource type. Use the format,
764
+ # /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
765
+ # @param api_version [String] The API version to use for the operation.
766
+ # @param parameters [GenericResource] Update resource parameters.
767
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
768
+ # will be added to the HTTP request.
769
+ #
770
+ # @return [Concurrent::Promise] promise which provides async access to http
771
+ # response.
772
+ #
773
+ def update_by_id_async(resource_id, api_version, parameters, custom_headers:nil)
774
+ # Send request
775
+ promise = begin_update_by_id_async(resource_id, api_version, parameters, custom_headers:custom_headers)
776
+
777
+ promise = promise.then do |response|
778
+ # Defining deserialization method.
779
+ deserialize_method = lambda do |parsed_response|
780
+ result_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::GenericResource.mapper()
781
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
782
+ end
783
+
784
+ # Waiting for response.
785
+ @client.get_long_running_operation_result(response, deserialize_method)
786
+ end
787
+
788
+ promise
789
+ end
790
+
791
+ #
792
+ # Gets a resource by ID.
793
+ #
794
+ # @param resource_id [String] The fully qualified ID of the resource, including
795
+ # the resource name and resource type. Use the format,
796
+ # /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
797
+ # @param api_version [String] The API version to use for the operation.
798
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
799
+ # will be added to the HTTP request.
800
+ #
801
+ # @return [GenericResource] operation results.
802
+ #
803
+ def get_by_id(resource_id, api_version, custom_headers:nil)
804
+ response = get_by_id_async(resource_id, api_version, custom_headers:custom_headers).value!
805
+ response.body unless response.nil?
806
+ end
807
+
808
+ #
809
+ # Gets a resource by ID.
810
+ #
811
+ # @param resource_id [String] The fully qualified ID of the resource, including
812
+ # the resource name and resource type. Use the format,
813
+ # /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
814
+ # @param api_version [String] The API version to use for the operation.
815
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
816
+ # will be added to the HTTP request.
817
+ #
818
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
819
+ #
820
+ def get_by_id_with_http_info(resource_id, api_version, custom_headers:nil)
821
+ get_by_id_async(resource_id, api_version, custom_headers:custom_headers).value!
822
+ end
823
+
824
+ #
825
+ # Gets a resource by ID.
826
+ #
827
+ # @param resource_id [String] The fully qualified ID of the resource, including
828
+ # the resource name and resource type. Use the format,
829
+ # /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
830
+ # @param api_version [String] The API version to use for the operation.
831
+ # @param [Hash{String => String}] A hash of custom headers that will be added
832
+ # to the HTTP request.
833
+ #
834
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
835
+ #
836
+ def get_by_id_async(resource_id, api_version, custom_headers:nil)
837
+ fail ArgumentError, 'resource_id is nil' if resource_id.nil?
838
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
839
+
840
+
841
+ request_headers = {}
842
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
843
+
844
+ # Set Headers
845
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
846
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
847
+ path_template = '{resourceId}'
848
+
849
+ request_url = @base_url || @client.base_url
850
+
851
+ options = {
852
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
853
+ skip_encoding_path_params: {'resourceId' => resource_id},
854
+ query_params: {'api-version' => api_version},
855
+ headers: request_headers.merge(custom_headers || {}),
856
+ base_url: request_url
857
+ }
858
+ promise = @client.make_request_async(:get, path_template, options)
859
+
860
+ promise = promise.then do |result|
861
+ http_response = result.response
862
+ status_code = http_response.status
863
+ response_content = http_response.body
864
+ unless status_code == 200
865
+ error_model = JSON.load(response_content)
866
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
867
+ end
868
+
869
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
870
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
871
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
872
+ # Deserialize Response
873
+ if status_code == 200
874
+ begin
875
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
876
+ result_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::GenericResource.mapper()
877
+ result.body = @client.deserialize(result_mapper, parsed_response)
878
+ rescue Exception => e
879
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
880
+ end
881
+ end
882
+
883
+ result
884
+ end
885
+
886
+ promise.execute
887
+ end
888
+
889
+ #
890
+ # Moves resources from one resource group to another resource group.
891
+ #
892
+ # The resources to move must be in the same source resource group. The target
893
+ # resource group may be in a different subscription. When moving resources,
894
+ # both the source group and the target group are locked for the duration of the
895
+ # operation. Write and delete operations are blocked on the groups until the
896
+ # move completes.
897
+ #
898
+ # @param source_resource_group_name [String] The name of the resource group
899
+ # containing the resources to move.
900
+ # @param parameters [ResourcesMoveInfo] Parameters for moving resources.
901
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
902
+ # will be added to the HTTP request.
903
+ #
904
+ #
905
+ def begin_move_resources(source_resource_group_name, parameters, custom_headers:nil)
906
+ response = begin_move_resources_async(source_resource_group_name, parameters, custom_headers:custom_headers).value!
907
+ nil
908
+ end
909
+
910
+ #
911
+ # Moves resources from one resource group to another resource group.
912
+ #
913
+ # The resources to move must be in the same source resource group. The target
914
+ # resource group may be in a different subscription. When moving resources,
915
+ # both the source group and the target group are locked for the duration of the
916
+ # operation. Write and delete operations are blocked on the groups until the
917
+ # move completes.
918
+ #
919
+ # @param source_resource_group_name [String] The name of the resource group
920
+ # containing the resources to move.
921
+ # @param parameters [ResourcesMoveInfo] Parameters for moving resources.
922
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
923
+ # will be added to the HTTP request.
924
+ #
925
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
926
+ #
927
+ def begin_move_resources_with_http_info(source_resource_group_name, parameters, custom_headers:nil)
928
+ begin_move_resources_async(source_resource_group_name, parameters, custom_headers:custom_headers).value!
929
+ end
930
+
931
+ #
932
+ # Moves resources from one resource group to another resource group.
933
+ #
934
+ # The resources to move must be in the same source resource group. The target
935
+ # resource group may be in a different subscription. When moving resources,
936
+ # both the source group and the target group are locked for the duration of the
937
+ # operation. Write and delete operations are blocked on the groups until the
938
+ # move completes.
939
+ #
940
+ # @param source_resource_group_name [String] The name of the resource group
941
+ # containing the resources to move.
942
+ # @param parameters [ResourcesMoveInfo] Parameters for moving resources.
943
+ # @param [Hash{String => String}] A hash of custom headers that will be added
944
+ # to the HTTP request.
945
+ #
946
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
947
+ #
948
+ def begin_move_resources_async(source_resource_group_name, parameters, custom_headers:nil)
949
+ fail ArgumentError, 'source_resource_group_name is nil' if source_resource_group_name.nil?
950
+ fail ArgumentError, "'source_resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !source_resource_group_name.nil? && source_resource_group_name.length > 90
951
+ fail ArgumentError, "'source_resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !source_resource_group_name.nil? && source_resource_group_name.length < 1
952
+ fail ArgumentError, "'source_resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !source_resource_group_name.nil? && source_resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
953
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
954
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
955
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
956
+
957
+
958
+ request_headers = {}
959
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
960
+
961
+ # Set Headers
962
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
963
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
964
+
965
+ # Serialize Request
966
+ request_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::ResourcesMoveInfo.mapper()
967
+ request_content = @client.serialize(request_mapper, parameters)
968
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
969
+
970
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/moveResources'
971
+
972
+ request_url = @base_url || @client.base_url
973
+
974
+ options = {
975
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
976
+ path_params: {'sourceResourceGroupName' => source_resource_group_name,'subscriptionId' => @client.subscription_id},
977
+ query_params: {'api-version' => @client.api_version},
978
+ body: request_content,
979
+ headers: request_headers.merge(custom_headers || {}),
980
+ base_url: request_url
981
+ }
982
+ promise = @client.make_request_async(:post, path_template, options)
983
+
984
+ promise = promise.then do |result|
985
+ http_response = result.response
986
+ status_code = http_response.status
987
+ response_content = http_response.body
988
+ unless status_code == 202 || status_code == 204
989
+ error_model = JSON.load(response_content)
990
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
991
+ end
992
+
993
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
994
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
995
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
996
+
997
+ result
998
+ end
999
+
1000
+ promise.execute
1001
+ end
1002
+
1003
+ #
1004
+ # Deletes a resource.
1005
+ #
1006
+ # @param resource_group_name [String] The name of the resource group that
1007
+ # contains the resource to delete. The name is case insensitive.
1008
+ # @param resource_provider_namespace [String] The namespace of the resource
1009
+ # provider.
1010
+ # @param parent_resource_path [String] The parent resource identity.
1011
+ # @param resource_type [String] The resource type.
1012
+ # @param resource_name [String] The name of the resource to delete.
1013
+ # @param api_version [String] The API version to use for the operation.
1014
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1015
+ # will be added to the HTTP request.
1016
+ #
1017
+ #
1018
+ def begin_delete(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil)
1019
+ response = begin_delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value!
1020
+ nil
1021
+ end
1022
+
1023
+ #
1024
+ # Deletes a resource.
1025
+ #
1026
+ # @param resource_group_name [String] The name of the resource group that
1027
+ # contains the resource to delete. The name is case insensitive.
1028
+ # @param resource_provider_namespace [String] The namespace of the resource
1029
+ # provider.
1030
+ # @param parent_resource_path [String] The parent resource identity.
1031
+ # @param resource_type [String] The resource type.
1032
+ # @param resource_name [String] The name of the resource to delete.
1033
+ # @param api_version [String] The API version to use for the 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_delete_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil)
1040
+ begin_delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value!
1041
+ end
1042
+
1043
+ #
1044
+ # Deletes a resource.
1045
+ #
1046
+ # @param resource_group_name [String] The name of the resource group that
1047
+ # contains the resource to delete. The name is case insensitive.
1048
+ # @param resource_provider_namespace [String] The namespace of the resource
1049
+ # provider.
1050
+ # @param parent_resource_path [String] The parent resource identity.
1051
+ # @param resource_type [String] The resource type.
1052
+ # @param resource_name [String] The name of the resource to delete.
1053
+ # @param api_version [String] The API version to use for the operation.
1054
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1055
+ # to the HTTP request.
1056
+ #
1057
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1058
+ #
1059
+ def begin_delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil)
1060
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1061
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1062
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1063
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1064
+ fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
1065
+ fail ArgumentError, 'parent_resource_path is nil' if parent_resource_path.nil?
1066
+ fail ArgumentError, 'resource_type is nil' if resource_type.nil?
1067
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
1068
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
1069
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1070
+
1071
+
1072
+ request_headers = {}
1073
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1074
+
1075
+ # Set Headers
1076
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1077
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1078
+ path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}'
1079
+
1080
+ request_url = @base_url || @client.base_url
1081
+
1082
+ options = {
1083
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1084
+ path_params: {'resourceGroupName' => resource_group_name,'resourceProviderNamespace' => resource_provider_namespace,'resourceName' => resource_name,'subscriptionId' => @client.subscription_id},
1085
+ skip_encoding_path_params: {'parentResourcePath' => parent_resource_path,'resourceType' => resource_type},
1086
+ query_params: {'api-version' => api_version},
1087
+ headers: request_headers.merge(custom_headers || {}),
1088
+ base_url: request_url
1089
+ }
1090
+ promise = @client.make_request_async(:delete, path_template, options)
1091
+
1092
+ promise = promise.then do |result|
1093
+ http_response = result.response
1094
+ status_code = http_response.status
1095
+ response_content = http_response.body
1096
+ unless status_code == 200 || status_code == 204 || status_code == 202
1097
+ error_model = JSON.load(response_content)
1098
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1099
+ end
1100
+
1101
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1102
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1103
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1104
+
1105
+ result
1106
+ end
1107
+
1108
+ promise.execute
1109
+ end
1110
+
1111
+ #
1112
+ # Creates a resource.
1113
+ #
1114
+ # @param resource_group_name [String] The name of the resource group for the
1115
+ # resource. The name is case insensitive.
1116
+ # @param resource_provider_namespace [String] The namespace of the resource
1117
+ # provider.
1118
+ # @param parent_resource_path [String] The parent resource identity.
1119
+ # @param resource_type [String] The resource type of the resource to create.
1120
+ # @param resource_name [String] The name of the resource to create.
1121
+ # @param api_version [String] The API version to use for the operation.
1122
+ # @param parameters [GenericResource] Parameters for creating or updating the
1123
+ # resource.
1124
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1125
+ # will be added to the HTTP request.
1126
+ #
1127
+ # @return [GenericResource] operation results.
1128
+ #
1129
+ def begin_create_or_update(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:nil)
1130
+ response = begin_create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:custom_headers).value!
1131
+ response.body unless response.nil?
1132
+ end
1133
+
1134
+ #
1135
+ # Creates a resource.
1136
+ #
1137
+ # @param resource_group_name [String] The name of the resource group for the
1138
+ # resource. The name is case insensitive.
1139
+ # @param resource_provider_namespace [String] The namespace of the resource
1140
+ # provider.
1141
+ # @param parent_resource_path [String] The parent resource identity.
1142
+ # @param resource_type [String] The resource type of the resource to create.
1143
+ # @param resource_name [String] The name of the resource to create.
1144
+ # @param api_version [String] The API version to use for the operation.
1145
+ # @param parameters [GenericResource] Parameters for creating or updating the
1146
+ # resource.
1147
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1148
+ # will be added to the HTTP request.
1149
+ #
1150
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1151
+ #
1152
+ def begin_create_or_update_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:nil)
1153
+ begin_create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:custom_headers).value!
1154
+ end
1155
+
1156
+ #
1157
+ # Creates a resource.
1158
+ #
1159
+ # @param resource_group_name [String] The name of the resource group for the
1160
+ # resource. The name is case insensitive.
1161
+ # @param resource_provider_namespace [String] The namespace of the resource
1162
+ # provider.
1163
+ # @param parent_resource_path [String] The parent resource identity.
1164
+ # @param resource_type [String] The resource type of the resource to create.
1165
+ # @param resource_name [String] The name of the resource to create.
1166
+ # @param api_version [String] The API version to use for the operation.
1167
+ # @param parameters [GenericResource] Parameters for creating or updating the
1168
+ # resource.
1169
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1170
+ # to the HTTP request.
1171
+ #
1172
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1173
+ #
1174
+ def begin_create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:nil)
1175
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1176
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1177
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1178
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1179
+ fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
1180
+ fail ArgumentError, 'parent_resource_path is nil' if parent_resource_path.nil?
1181
+ fail ArgumentError, 'resource_type is nil' if resource_type.nil?
1182
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
1183
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
1184
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1185
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1186
+
1187
+
1188
+ request_headers = {}
1189
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1190
+
1191
+ # Set Headers
1192
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1193
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1194
+
1195
+ # Serialize Request
1196
+ request_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::GenericResource.mapper()
1197
+ request_content = @client.serialize(request_mapper, parameters)
1198
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1199
+
1200
+ path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}'
1201
+
1202
+ request_url = @base_url || @client.base_url
1203
+
1204
+ options = {
1205
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1206
+ path_params: {'resourceGroupName' => resource_group_name,'resourceProviderNamespace' => resource_provider_namespace,'resourceName' => resource_name,'subscriptionId' => @client.subscription_id},
1207
+ skip_encoding_path_params: {'parentResourcePath' => parent_resource_path,'resourceType' => resource_type},
1208
+ query_params: {'api-version' => api_version},
1209
+ body: request_content,
1210
+ headers: request_headers.merge(custom_headers || {}),
1211
+ base_url: request_url
1212
+ }
1213
+ promise = @client.make_request_async(:put, path_template, options)
1214
+
1215
+ promise = promise.then do |result|
1216
+ http_response = result.response
1217
+ status_code = http_response.status
1218
+ response_content = http_response.body
1219
+ unless status_code == 201 || status_code == 200 || status_code == 202
1220
+ error_model = JSON.load(response_content)
1221
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1222
+ end
1223
+
1224
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1225
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1226
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1227
+ # Deserialize Response
1228
+ if status_code == 201
1229
+ begin
1230
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1231
+ result_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::GenericResource.mapper()
1232
+ result.body = @client.deserialize(result_mapper, parsed_response)
1233
+ rescue Exception => e
1234
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1235
+ end
1236
+ end
1237
+ # Deserialize Response
1238
+ if status_code == 200
1239
+ begin
1240
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1241
+ result_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::GenericResource.mapper()
1242
+ result.body = @client.deserialize(result_mapper, parsed_response)
1243
+ rescue Exception => e
1244
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1245
+ end
1246
+ end
1247
+
1248
+ result
1249
+ end
1250
+
1251
+ promise.execute
1252
+ end
1253
+
1254
+ #
1255
+ # Updates a resource.
1256
+ #
1257
+ # @param resource_group_name [String] The name of the resource group for the
1258
+ # resource. The name is case insensitive.
1259
+ # @param resource_provider_namespace [String] The namespace of the resource
1260
+ # provider.
1261
+ # @param parent_resource_path [String] The parent resource identity.
1262
+ # @param resource_type [String] The resource type of the resource to update.
1263
+ # @param resource_name [String] The name of the resource to update.
1264
+ # @param api_version [String] The API version to use for the operation.
1265
+ # @param parameters [GenericResource] Parameters for updating the resource.
1266
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1267
+ # will be added to the HTTP request.
1268
+ #
1269
+ # @return [GenericResource] operation results.
1270
+ #
1271
+ def begin_update(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:nil)
1272
+ response = begin_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:custom_headers).value!
1273
+ response.body unless response.nil?
1274
+ end
1275
+
1276
+ #
1277
+ # Updates a resource.
1278
+ #
1279
+ # @param resource_group_name [String] The name of the resource group for the
1280
+ # resource. The name is case insensitive.
1281
+ # @param resource_provider_namespace [String] The namespace of the resource
1282
+ # provider.
1283
+ # @param parent_resource_path [String] The parent resource identity.
1284
+ # @param resource_type [String] The resource type of the resource to update.
1285
+ # @param resource_name [String] The name of the resource to update.
1286
+ # @param api_version [String] The API version to use for the operation.
1287
+ # @param parameters [GenericResource] Parameters for updating the resource.
1288
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1289
+ # will be added to the HTTP request.
1290
+ #
1291
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1292
+ #
1293
+ def begin_update_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:nil)
1294
+ begin_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:custom_headers).value!
1295
+ end
1296
+
1297
+ #
1298
+ # Updates a resource.
1299
+ #
1300
+ # @param resource_group_name [String] The name of the resource group for the
1301
+ # resource. The name is case insensitive.
1302
+ # @param resource_provider_namespace [String] The namespace of the resource
1303
+ # provider.
1304
+ # @param parent_resource_path [String] The parent resource identity.
1305
+ # @param resource_type [String] The resource type of the resource to update.
1306
+ # @param resource_name [String] The name of the resource to update.
1307
+ # @param api_version [String] The API version to use for the operation.
1308
+ # @param parameters [GenericResource] Parameters for updating the resource.
1309
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1310
+ # to the HTTP request.
1311
+ #
1312
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1313
+ #
1314
+ def begin_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:nil)
1315
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1316
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1317
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1318
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1319
+ fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
1320
+ fail ArgumentError, 'parent_resource_path is nil' if parent_resource_path.nil?
1321
+ fail ArgumentError, 'resource_type is nil' if resource_type.nil?
1322
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
1323
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
1324
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1325
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1326
+
1327
+
1328
+ request_headers = {}
1329
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1330
+
1331
+ # Set Headers
1332
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1333
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1334
+
1335
+ # Serialize Request
1336
+ request_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::GenericResource.mapper()
1337
+ request_content = @client.serialize(request_mapper, parameters)
1338
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1339
+
1340
+ path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}'
1341
+
1342
+ request_url = @base_url || @client.base_url
1343
+
1344
+ options = {
1345
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1346
+ path_params: {'resourceGroupName' => resource_group_name,'resourceProviderNamespace' => resource_provider_namespace,'resourceName' => resource_name,'subscriptionId' => @client.subscription_id},
1347
+ skip_encoding_path_params: {'parentResourcePath' => parent_resource_path,'resourceType' => resource_type},
1348
+ query_params: {'api-version' => api_version},
1349
+ body: request_content,
1350
+ headers: request_headers.merge(custom_headers || {}),
1351
+ base_url: request_url
1352
+ }
1353
+ promise = @client.make_request_async(:patch, path_template, options)
1354
+
1355
+ promise = promise.then do |result|
1356
+ http_response = result.response
1357
+ status_code = http_response.status
1358
+ response_content = http_response.body
1359
+ unless status_code == 200 || status_code == 202
1360
+ error_model = JSON.load(response_content)
1361
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1362
+ end
1363
+
1364
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1365
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1366
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1367
+ # Deserialize Response
1368
+ if status_code == 200
1369
+ begin
1370
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1371
+ result_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::GenericResource.mapper()
1372
+ result.body = @client.deserialize(result_mapper, parsed_response)
1373
+ rescue Exception => e
1374
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1375
+ end
1376
+ end
1377
+
1378
+ result
1379
+ end
1380
+
1381
+ promise.execute
1382
+ end
1383
+
1384
+ #
1385
+ # Deletes a resource by ID.
1386
+ #
1387
+ # @param resource_id [String] The fully qualified ID of the resource, including
1388
+ # the resource name and resource type. Use the format,
1389
+ # /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
1390
+ # @param api_version [String] The API version to use for the operation.
1391
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1392
+ # will be added to the HTTP request.
1393
+ #
1394
+ #
1395
+ def begin_delete_by_id(resource_id, api_version, custom_headers:nil)
1396
+ response = begin_delete_by_id_async(resource_id, api_version, custom_headers:custom_headers).value!
1397
+ nil
1398
+ end
1399
+
1400
+ #
1401
+ # Deletes a resource by ID.
1402
+ #
1403
+ # @param resource_id [String] The fully qualified ID of the resource, including
1404
+ # the resource name and resource type. Use the format,
1405
+ # /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
1406
+ # @param api_version [String] The API version to use for the operation.
1407
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1408
+ # will be added to the HTTP request.
1409
+ #
1410
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1411
+ #
1412
+ def begin_delete_by_id_with_http_info(resource_id, api_version, custom_headers:nil)
1413
+ begin_delete_by_id_async(resource_id, api_version, custom_headers:custom_headers).value!
1414
+ end
1415
+
1416
+ #
1417
+ # Deletes a resource by ID.
1418
+ #
1419
+ # @param resource_id [String] The fully qualified ID of the resource, including
1420
+ # the resource name and resource type. Use the format,
1421
+ # /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
1422
+ # @param api_version [String] The API version to use for the operation.
1423
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1424
+ # to the HTTP request.
1425
+ #
1426
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1427
+ #
1428
+ def begin_delete_by_id_async(resource_id, api_version, custom_headers:nil)
1429
+ fail ArgumentError, 'resource_id is nil' if resource_id.nil?
1430
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
1431
+
1432
+
1433
+ request_headers = {}
1434
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1435
+
1436
+ # Set Headers
1437
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1438
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1439
+ path_template = '{resourceId}'
1440
+
1441
+ request_url = @base_url || @client.base_url
1442
+
1443
+ options = {
1444
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1445
+ skip_encoding_path_params: {'resourceId' => resource_id},
1446
+ query_params: {'api-version' => api_version},
1447
+ headers: request_headers.merge(custom_headers || {}),
1448
+ base_url: request_url
1449
+ }
1450
+ promise = @client.make_request_async(:delete, path_template, options)
1451
+
1452
+ promise = promise.then do |result|
1453
+ http_response = result.response
1454
+ status_code = http_response.status
1455
+ response_content = http_response.body
1456
+ unless status_code == 200 || status_code == 204 || status_code == 202
1457
+ error_model = JSON.load(response_content)
1458
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1459
+ end
1460
+
1461
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1462
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1463
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1464
+
1465
+ result
1466
+ end
1467
+
1468
+ promise.execute
1469
+ end
1470
+
1471
+ #
1472
+ # Create a resource by ID.
1473
+ #
1474
+ # @param resource_id [String] The fully qualified ID of the resource, including
1475
+ # the resource name and resource type. Use the format,
1476
+ # /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
1477
+ # @param api_version [String] The API version to use for the operation.
1478
+ # @param parameters [GenericResource] Create or update resource parameters.
1479
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1480
+ # will be added to the HTTP request.
1481
+ #
1482
+ # @return [GenericResource] operation results.
1483
+ #
1484
+ def begin_create_or_update_by_id(resource_id, api_version, parameters, custom_headers:nil)
1485
+ response = begin_create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers:custom_headers).value!
1486
+ response.body unless response.nil?
1487
+ end
1488
+
1489
+ #
1490
+ # Create a resource by ID.
1491
+ #
1492
+ # @param resource_id [String] The fully qualified ID of the resource, including
1493
+ # the resource name and resource type. Use the format,
1494
+ # /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
1495
+ # @param api_version [String] The API version to use for the operation.
1496
+ # @param parameters [GenericResource] Create or update resource parameters.
1497
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1498
+ # will be added to the HTTP request.
1499
+ #
1500
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1501
+ #
1502
+ def begin_create_or_update_by_id_with_http_info(resource_id, api_version, parameters, custom_headers:nil)
1503
+ begin_create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers:custom_headers).value!
1504
+ end
1505
+
1506
+ #
1507
+ # Create a resource by ID.
1508
+ #
1509
+ # @param resource_id [String] The fully qualified ID of the resource, including
1510
+ # the resource name and resource type. Use the format,
1511
+ # /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
1512
+ # @param api_version [String] The API version to use for the operation.
1513
+ # @param parameters [GenericResource] Create or update resource parameters.
1514
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1515
+ # to the HTTP request.
1516
+ #
1517
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1518
+ #
1519
+ def begin_create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers:nil)
1520
+ fail ArgumentError, 'resource_id is nil' if resource_id.nil?
1521
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
1522
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1523
+
1524
+
1525
+ request_headers = {}
1526
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1527
+
1528
+ # Set Headers
1529
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1530
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1531
+
1532
+ # Serialize Request
1533
+ request_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::GenericResource.mapper()
1534
+ request_content = @client.serialize(request_mapper, parameters)
1535
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1536
+
1537
+ path_template = '{resourceId}'
1538
+
1539
+ request_url = @base_url || @client.base_url
1540
+
1541
+ options = {
1542
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1543
+ skip_encoding_path_params: {'resourceId' => resource_id},
1544
+ query_params: {'api-version' => api_version},
1545
+ body: request_content,
1546
+ headers: request_headers.merge(custom_headers || {}),
1547
+ base_url: request_url
1548
+ }
1549
+ promise = @client.make_request_async(:put, path_template, options)
1550
+
1551
+ promise = promise.then do |result|
1552
+ http_response = result.response
1553
+ status_code = http_response.status
1554
+ response_content = http_response.body
1555
+ unless status_code == 201 || status_code == 200 || status_code == 202
1556
+ error_model = JSON.load(response_content)
1557
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1558
+ end
1559
+
1560
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1561
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1562
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1563
+ # Deserialize Response
1564
+ if status_code == 201
1565
+ begin
1566
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1567
+ result_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::GenericResource.mapper()
1568
+ result.body = @client.deserialize(result_mapper, parsed_response)
1569
+ rescue Exception => e
1570
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1571
+ end
1572
+ end
1573
+ # Deserialize Response
1574
+ if status_code == 200
1575
+ begin
1576
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1577
+ result_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::GenericResource.mapper()
1578
+ result.body = @client.deserialize(result_mapper, parsed_response)
1579
+ rescue Exception => e
1580
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1581
+ end
1582
+ end
1583
+
1584
+ result
1585
+ end
1586
+
1587
+ promise.execute
1588
+ end
1589
+
1590
+ #
1591
+ # Updates a resource by ID.
1592
+ #
1593
+ # @param resource_id [String] The fully qualified ID of the resource, including
1594
+ # the resource name and resource type. Use the format,
1595
+ # /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
1596
+ # @param api_version [String] The API version to use for the operation.
1597
+ # @param parameters [GenericResource] Update resource parameters.
1598
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1599
+ # will be added to the HTTP request.
1600
+ #
1601
+ # @return [GenericResource] operation results.
1602
+ #
1603
+ def begin_update_by_id(resource_id, api_version, parameters, custom_headers:nil)
1604
+ response = begin_update_by_id_async(resource_id, api_version, parameters, custom_headers:custom_headers).value!
1605
+ response.body unless response.nil?
1606
+ end
1607
+
1608
+ #
1609
+ # Updates a resource by ID.
1610
+ #
1611
+ # @param resource_id [String] The fully qualified ID of the resource, including
1612
+ # the resource name and resource type. Use the format,
1613
+ # /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
1614
+ # @param api_version [String] The API version to use for the operation.
1615
+ # @param parameters [GenericResource] Update resource parameters.
1616
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1617
+ # will be added to the HTTP request.
1618
+ #
1619
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1620
+ #
1621
+ def begin_update_by_id_with_http_info(resource_id, api_version, parameters, custom_headers:nil)
1622
+ begin_update_by_id_async(resource_id, api_version, parameters, custom_headers:custom_headers).value!
1623
+ end
1624
+
1625
+ #
1626
+ # Updates a resource by ID.
1627
+ #
1628
+ # @param resource_id [String] The fully qualified ID of the resource, including
1629
+ # the resource name and resource type. Use the format,
1630
+ # /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
1631
+ # @param api_version [String] The API version to use for the operation.
1632
+ # @param parameters [GenericResource] Update resource parameters.
1633
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1634
+ # to the HTTP request.
1635
+ #
1636
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1637
+ #
1638
+ def begin_update_by_id_async(resource_id, api_version, parameters, custom_headers:nil)
1639
+ fail ArgumentError, 'resource_id is nil' if resource_id.nil?
1640
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
1641
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1642
+
1643
+
1644
+ request_headers = {}
1645
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1646
+
1647
+ # Set Headers
1648
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1649
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1650
+
1651
+ # Serialize Request
1652
+ request_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::GenericResource.mapper()
1653
+ request_content = @client.serialize(request_mapper, parameters)
1654
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1655
+
1656
+ path_template = '{resourceId}'
1657
+
1658
+ request_url = @base_url || @client.base_url
1659
+
1660
+ options = {
1661
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1662
+ skip_encoding_path_params: {'resourceId' => resource_id},
1663
+ query_params: {'api-version' => api_version},
1664
+ body: request_content,
1665
+ headers: request_headers.merge(custom_headers || {}),
1666
+ base_url: request_url
1667
+ }
1668
+ promise = @client.make_request_async(:patch, path_template, options)
1669
+
1670
+ promise = promise.then do |result|
1671
+ http_response = result.response
1672
+ status_code = http_response.status
1673
+ response_content = http_response.body
1674
+ unless status_code == 200 || status_code == 202
1675
+ error_model = JSON.load(response_content)
1676
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1677
+ end
1678
+
1679
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1680
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1681
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1682
+ # Deserialize Response
1683
+ if status_code == 200
1684
+ begin
1685
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1686
+ result_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::GenericResource.mapper()
1687
+ result.body = @client.deserialize(result_mapper, parsed_response)
1688
+ rescue Exception => e
1689
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1690
+ end
1691
+ end
1692
+
1693
+ result
1694
+ end
1695
+
1696
+ promise.execute
1697
+ end
1698
+
1699
+ #
1700
+ # Get all the resources in a subscription.
1701
+ #
1702
+ # @param next_page_link [String] The NextLink from the previous successful call
1703
+ # to List operation.
1704
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1705
+ # will be added to the HTTP request.
1706
+ #
1707
+ # @return [ResourceListResult] operation results.
1708
+ #
1709
+ def list_next(next_page_link, custom_headers:nil)
1710
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1711
+ response.body unless response.nil?
1712
+ end
1713
+
1714
+ #
1715
+ # Get all the resources in a subscription.
1716
+ #
1717
+ # @param next_page_link [String] The NextLink from the previous successful call
1718
+ # to List operation.
1719
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1720
+ # will be added to the HTTP request.
1721
+ #
1722
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1723
+ #
1724
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1725
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1726
+ end
1727
+
1728
+ #
1729
+ # Get all the resources in a subscription.
1730
+ #
1731
+ # @param next_page_link [String] The NextLink from the previous successful call
1732
+ # to List operation.
1733
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1734
+ # to the HTTP request.
1735
+ #
1736
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1737
+ #
1738
+ def list_next_async(next_page_link, custom_headers:nil)
1739
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1740
+
1741
+
1742
+ request_headers = {}
1743
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1744
+
1745
+ # Set Headers
1746
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1747
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1748
+ path_template = '{nextLink}'
1749
+
1750
+ request_url = @base_url || @client.base_url
1751
+
1752
+ options = {
1753
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1754
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1755
+ headers: request_headers.merge(custom_headers || {}),
1756
+ base_url: request_url
1757
+ }
1758
+ promise = @client.make_request_async(:get, path_template, options)
1759
+
1760
+ promise = promise.then do |result|
1761
+ http_response = result.response
1762
+ status_code = http_response.status
1763
+ response_content = http_response.body
1764
+ unless status_code == 200
1765
+ error_model = JSON.load(response_content)
1766
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1767
+ end
1768
+
1769
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1770
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1771
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1772
+ # Deserialize Response
1773
+ if status_code == 200
1774
+ begin
1775
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1776
+ result_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::ResourceListResult.mapper()
1777
+ result.body = @client.deserialize(result_mapper, parsed_response)
1778
+ rescue Exception => e
1779
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1780
+ end
1781
+ end
1782
+
1783
+ result
1784
+ end
1785
+
1786
+ promise.execute
1787
+ end
1788
+
1789
+ #
1790
+ # Get all the resources in a subscription.
1791
+ #
1792
+ # @param filter [String] The filter to apply on the operation.
1793
+ # @param expand [String] The $expand query parameter.
1794
+ # @param top [Integer] The number of results to return. If null is passed,
1795
+ # returns all resource groups.
1796
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1797
+ # will be added to the HTTP request.
1798
+ #
1799
+ # @return [ResourceListResult] which provide lazy access to pages of the
1800
+ # response.
1801
+ #
1802
+ def list_as_lazy(filter:nil, expand:nil, top:nil, custom_headers:nil)
1803
+ response = list_async(filter:filter, expand:expand, top:top, custom_headers:custom_headers).value!
1804
+ unless response.nil?
1805
+ page = response.body
1806
+ page.next_method = Proc.new do |next_page_link|
1807
+ list_next_async(next_page_link, custom_headers:custom_headers)
1808
+ end
1809
+ page
1810
+ end
1811
+ end
1812
+
1813
+ end
1814
+ end