azure_mgmt_resources 0.17.7 → 0.18.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (238) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-02-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
  3. data/lib/2016-06-01/generated/azure_mgmt_resources.rb +42 -0
  4. data/lib/2016-06-01/generated/azure_mgmt_resources/models/location.rb +108 -0
  5. data/lib/2016-06-01/generated/azure_mgmt_resources/models/location_list_result.rb +55 -0
  6. data/lib/2016-06-01/generated/azure_mgmt_resources/models/operation.rb +58 -0
  7. data/lib/2016-06-01/generated/azure_mgmt_resources/models/operation_display.rb +80 -0
  8. data/lib/2016-06-01/generated/azure_mgmt_resources/models/operation_list_result.rb +100 -0
  9. data/lib/2016-06-01/generated/azure_mgmt_resources/models/spending_limit.rb +17 -0
  10. data/lib/2016-06-01/generated/azure_mgmt_resources/models/subscription.rb +112 -0
  11. data/lib/2016-06-01/generated/azure_mgmt_resources/models/subscription_list_result.rb +98 -0
  12. data/lib/2016-06-01/generated/azure_mgmt_resources/models/subscription_policies.rb +76 -0
  13. data/lib/2016-06-01/generated/azure_mgmt_resources/models/subscription_state.rb +19 -0
  14. data/lib/2016-06-01/generated/azure_mgmt_resources/models/tenant_id_description.rb +61 -0
  15. data/lib/2016-06-01/generated/azure_mgmt_resources/models/tenant_list_result.rb +98 -0
  16. data/lib/2016-06-01/generated/azure_mgmt_resources/module_definition.rb +9 -0
  17. data/lib/2016-06-01/generated/azure_mgmt_resources/operations.rb +222 -0
  18. data/lib/2016-06-01/generated/azure_mgmt_resources/subscription_client.rb +136 -0
  19. data/lib/2016-06-01/generated/azure_mgmt_resources/subscriptions.rb +409 -0
  20. data/lib/2016-06-01/generated/azure_mgmt_resources/tenants.rb +222 -0
  21. data/lib/2016-07-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
  22. data/lib/2016-09-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
  23. data/lib/2017-05-10/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
  24. data/lib/2018-02-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
  25. data/lib/2018-05-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
  26. data/lib/2018-06-01/generated/azure_mgmt_resources.rb +47 -0
  27. data/lib/2018-06-01/generated/azure_mgmt_resources/application_client.rb +135 -0
  28. data/lib/2018-06-01/generated/azure_mgmt_resources/application_definitions.rb +1052 -0
  29. data/lib/2018-06-01/generated/azure_mgmt_resources/applications.rb +1467 -0
  30. data/lib/2018-06-01/generated/azure_mgmt_resources/models/application.rb +202 -0
  31. data/lib/2018-06-01/generated/azure_mgmt_resources/models/application_artifact.rb +70 -0
  32. data/lib/2018-06-01/generated/azure_mgmt_resources/models/application_artifact_type.rb +16 -0
  33. data/lib/2018-06-01/generated/azure_mgmt_resources/models/application_definition.rb +240 -0
  34. data/lib/2018-06-01/generated/azure_mgmt_resources/models/application_definition_list_result.rb +99 -0
  35. data/lib/2018-06-01/generated/azure_mgmt_resources/models/application_list_result.rb +98 -0
  36. data/lib/2018-06-01/generated/azure_mgmt_resources/models/application_lock_level.rb +17 -0
  37. data/lib/2018-06-01/generated/azure_mgmt_resources/models/application_patchable.rb +202 -0
  38. data/lib/2018-06-01/generated/azure_mgmt_resources/models/application_provider_authorization.rb +62 -0
  39. data/lib/2018-06-01/generated/azure_mgmt_resources/models/error_response.rb +69 -0
  40. data/lib/2018-06-01/generated/azure_mgmt_resources/models/generic_resource.rb +121 -0
  41. data/lib/2018-06-01/generated/azure_mgmt_resources/models/identity.rb +72 -0
  42. data/lib/2018-06-01/generated/azure_mgmt_resources/models/plan.rb +90 -0
  43. data/lib/2018-06-01/generated/azure_mgmt_resources/models/plan_patchable.rb +90 -0
  44. data/lib/2018-06-01/generated/azure_mgmt_resources/models/provisioning_state.rb +25 -0
  45. data/lib/2018-06-01/generated/azure_mgmt_resources/models/resource.rb +110 -0
  46. data/lib/2018-06-01/generated/azure_mgmt_resources/models/resource_identity_type.rb +15 -0
  47. data/lib/2018-06-01/generated/azure_mgmt_resources/models/sku.rb +101 -0
  48. data/lib/2018-06-01/generated/azure_mgmt_resources/module_definition.rb +9 -0
  49. data/lib/2019-03-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
  50. data/lib/2019-05-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
  51. data/lib/2019-05-10/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
  52. data/lib/2019-07-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
  53. data/lib/2019-10-01/generated/azure_mgmt_resources.rb +111 -0
  54. data/lib/2019-10-01/generated/azure_mgmt_resources/deployment_operations.rb +1590 -0
  55. data/lib/2019-10-01/generated/azure_mgmt_resources/deployments.rb +6276 -0
  56. data/lib/2019-10-01/generated/azure_mgmt_resources/models/alias_model.rb +102 -0
  57. data/lib/2019-10-01/generated/azure_mgmt_resources/models/alias_path.rb +77 -0
  58. data/lib/2019-10-01/generated/azure_mgmt_resources/models/alias_pattern.rb +70 -0
  59. data/lib/2019-10-01/generated/azure_mgmt_resources/models/alias_pattern_type.rb +16 -0
  60. data/lib/2019-10-01/generated/azure_mgmt_resources/models/alias_type.rb +17 -0
  61. data/lib/2019-10-01/generated/azure_mgmt_resources/models/basic_dependency.rb +68 -0
  62. data/lib/2019-10-01/generated/azure_mgmt_resources/models/change_type.rb +20 -0
  63. data/lib/2019-10-01/generated/azure_mgmt_resources/models/debug_setting.rb +53 -0
  64. data/lib/2019-10-01/generated/azure_mgmt_resources/models/dependency.rb +88 -0
  65. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment.rb +77 -0
  66. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment_export_result.rb +46 -0
  67. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment_extended.rb +113 -0
  68. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +46 -0
  69. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment_list_result.rb +99 -0
  70. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment_mode.rb +16 -0
  71. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment_operation.rb +71 -0
  72. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +162 -0
  73. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +99 -0
  74. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment_properties.rb +136 -0
  75. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +284 -0
  76. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment_validate_result.rb +61 -0
  77. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment_what_if.rb +58 -0
  78. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment_what_if_properties.rb +108 -0
  79. data/lib/2019-10-01/generated/azure_mgmt_resources/models/deployment_what_if_settings.rb +48 -0
  80. data/lib/2019-10-01/generated/azure_mgmt_resources/models/error_additional_info.rb +59 -0
  81. data/lib/2019-10-01/generated/azure_mgmt_resources/models/error_response.rb +117 -0
  82. data/lib/2019-10-01/generated/azure_mgmt_resources/models/export_template_request.rb +69 -0
  83. data/lib/2019-10-01/generated/azure_mgmt_resources/models/generic_resource.rb +158 -0
  84. data/lib/2019-10-01/generated/azure_mgmt_resources/models/generic_resource_expanded.rb +179 -0
  85. data/lib/2019-10-01/generated/azure_mgmt_resources/models/generic_resource_filter.rb +68 -0
  86. data/lib/2019-10-01/generated/azure_mgmt_resources/models/http_message.rb +46 -0
  87. data/lib/2019-10-01/generated/azure_mgmt_resources/models/identity.rb +96 -0
  88. data/lib/2019-10-01/generated/azure_mgmt_resources/models/identity_user_assigned_identities_value.rb +60 -0
  89. data/lib/2019-10-01/generated/azure_mgmt_resources/models/on_error_deployment.rb +60 -0
  90. data/lib/2019-10-01/generated/azure_mgmt_resources/models/on_error_deployment_extended.rb +73 -0
  91. data/lib/2019-10-01/generated/azure_mgmt_resources/models/on_error_deployment_type.rb +16 -0
  92. data/lib/2019-10-01/generated/azure_mgmt_resources/models/operation.rb +58 -0
  93. data/lib/2019-10-01/generated/azure_mgmt_resources/models/operation_display.rb +80 -0
  94. data/lib/2019-10-01/generated/azure_mgmt_resources/models/operation_list_result.rb +100 -0
  95. data/lib/2019-10-01/generated/azure_mgmt_resources/models/parameters_link.rb +58 -0
  96. data/lib/2019-10-01/generated/azure_mgmt_resources/models/plan.rb +90 -0
  97. data/lib/2019-10-01/generated/azure_mgmt_resources/models/property_change_type.rb +18 -0
  98. data/lib/2019-10-01/generated/azure_mgmt_resources/models/provider.rb +104 -0
  99. data/lib/2019-10-01/generated/azure_mgmt_resources/models/provider_list_result.rb +99 -0
  100. data/lib/2019-10-01/generated/azure_mgmt_resources/models/provider_resource_type.rb +137 -0
  101. data/lib/2019-10-01/generated/azure_mgmt_resources/models/provisioning_operation.rb +24 -0
  102. data/lib/2019-10-01/generated/azure_mgmt_resources/models/resource.rb +110 -0
  103. data/lib/2019-10-01/generated/azure_mgmt_resources/models/resource_group.rb +128 -0
  104. data/lib/2019-10-01/generated/azure_mgmt_resources/models/resource_group_export_result.rb +58 -0
  105. data/lib/2019-10-01/generated/azure_mgmt_resources/models/resource_group_filter.rb +57 -0
  106. data/lib/2019-10-01/generated/azure_mgmt_resources/models/resource_group_list_result.rb +99 -0
  107. data/lib/2019-10-01/generated/azure_mgmt_resources/models/resource_group_patchable.rb +90 -0
  108. data/lib/2019-10-01/generated/azure_mgmt_resources/models/resource_group_properties.rb +47 -0
  109. data/lib/2019-10-01/generated/azure_mgmt_resources/models/resource_identity_type.rb +18 -0
  110. data/lib/2019-10-01/generated/azure_mgmt_resources/models/resource_list_result.rb +99 -0
  111. data/lib/2019-10-01/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +91 -0
  112. data/lib/2019-10-01/generated/azure_mgmt_resources/models/resource_reference.rb +47 -0
  113. data/lib/2019-10-01/generated/azure_mgmt_resources/models/resources_move_info.rb +65 -0
  114. data/lib/2019-10-01/generated/azure_mgmt_resources/models/scoped_deployment.rb +77 -0
  115. data/lib/2019-10-01/generated/azure_mgmt_resources/models/scoped_deployment_what_if.rb +58 -0
  116. data/lib/2019-10-01/generated/azure_mgmt_resources/models/sku.rb +101 -0
  117. data/lib/2019-10-01/generated/azure_mgmt_resources/models/sub_resource.rb +46 -0
  118. data/lib/2019-10-01/generated/azure_mgmt_resources/models/tag_count.rb +57 -0
  119. data/lib/2019-10-01/generated/azure_mgmt_resources/models/tag_details.rb +92 -0
  120. data/lib/2019-10-01/generated/azure_mgmt_resources/models/tag_value.rb +70 -0
  121. data/lib/2019-10-01/generated/azure_mgmt_resources/models/tags.rb +54 -0
  122. data/lib/2019-10-01/generated/azure_mgmt_resources/models/tags_list_result.rb +99 -0
  123. data/lib/2019-10-01/generated/azure_mgmt_resources/models/tags_patch_operation.rb +17 -0
  124. data/lib/2019-10-01/generated/azure_mgmt_resources/models/tags_patch_resource.rb +59 -0
  125. data/lib/2019-10-01/generated/azure_mgmt_resources/models/tags_resource.rb +83 -0
  126. data/lib/2019-10-01/generated/azure_mgmt_resources/models/target_resource.rb +68 -0
  127. data/lib/2019-10-01/generated/azure_mgmt_resources/models/template_hash_result.rb +58 -0
  128. data/lib/2019-10-01/generated/azure_mgmt_resources/models/template_link.rb +58 -0
  129. data/lib/2019-10-01/generated/azure_mgmt_resources/models/what_if_change.rb +105 -0
  130. data/lib/2019-10-01/generated/azure_mgmt_resources/models/what_if_operation_result.rb +80 -0
  131. data/lib/2019-10-01/generated/azure_mgmt_resources/models/what_if_property_change.rb +101 -0
  132. data/lib/2019-10-01/generated/azure_mgmt_resources/models/what_if_result_format.rb +16 -0
  133. data/lib/2019-10-01/generated/azure_mgmt_resources/module_definition.rb +9 -0
  134. data/lib/2019-10-01/generated/azure_mgmt_resources/operations.rb +219 -0
  135. data/lib/2019-10-01/generated/azure_mgmt_resources/providers.rb +846 -0
  136. data/lib/2019-10-01/generated/azure_mgmt_resources/resource_groups.rb +964 -0
  137. data/lib/2019-10-01/generated/azure_mgmt_resources/resource_management_client.rb +155 -0
  138. data/lib/2019-10-01/generated/azure_mgmt_resources/resources.rb +2354 -0
  139. data/lib/2019-10-01/generated/azure_mgmt_resources/tags_operations.rb +1078 -0
  140. data/lib/2020-06-01/generated/azure_mgmt_resources.rb +119 -0
  141. data/lib/2020-06-01/generated/azure_mgmt_resources/deployment_operations.rb +1590 -0
  142. data/lib/2020-06-01/generated/azure_mgmt_resources/deployments.rb +6276 -0
  143. data/lib/2020-06-01/generated/azure_mgmt_resources/models/alias_model.rb +116 -0
  144. data/lib/2020-06-01/generated/azure_mgmt_resources/models/alias_path.rb +91 -0
  145. data/lib/2020-06-01/generated/azure_mgmt_resources/models/alias_path_attributes.rb +16 -0
  146. data/lib/2020-06-01/generated/azure_mgmt_resources/models/alias_path_metadata.rb +64 -0
  147. data/lib/2020-06-01/generated/azure_mgmt_resources/models/alias_path_token_type.rb +22 -0
  148. data/lib/2020-06-01/generated/azure_mgmt_resources/models/alias_pattern.rb +70 -0
  149. data/lib/2020-06-01/generated/azure_mgmt_resources/models/alias_pattern_type.rb +16 -0
  150. data/lib/2020-06-01/generated/azure_mgmt_resources/models/alias_type.rb +17 -0
  151. data/lib/2020-06-01/generated/azure_mgmt_resources/models/api_profile.rb +60 -0
  152. data/lib/2020-06-01/generated/azure_mgmt_resources/models/basic_dependency.rb +68 -0
  153. data/lib/2020-06-01/generated/azure_mgmt_resources/models/change_type.rb +20 -0
  154. data/lib/2020-06-01/generated/azure_mgmt_resources/models/debug_setting.rb +53 -0
  155. data/lib/2020-06-01/generated/azure_mgmt_resources/models/dependency.rb +88 -0
  156. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment.rb +77 -0
  157. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_export_result.rb +46 -0
  158. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_extended.rb +113 -0
  159. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +46 -0
  160. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_list_result.rb +99 -0
  161. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_mode.rb +16 -0
  162. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_operation.rb +71 -0
  163. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +166 -0
  164. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +99 -0
  165. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_properties.rb +151 -0
  166. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +287 -0
  167. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_validate_result.rb +61 -0
  168. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_what_if.rb +58 -0
  169. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_what_if_properties.rb +117 -0
  170. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_what_if_settings.rb +48 -0
  171. data/lib/2020-06-01/generated/azure_mgmt_resources/models/error_additional_info.rb +59 -0
  172. data/lib/2020-06-01/generated/azure_mgmt_resources/models/error_response.rb +117 -0
  173. data/lib/2020-06-01/generated/azure_mgmt_resources/models/export_template_request.rb +69 -0
  174. data/lib/2020-06-01/generated/azure_mgmt_resources/models/expression_evaluation_options.rb +49 -0
  175. data/lib/2020-06-01/generated/azure_mgmt_resources/models/expression_evaluation_options_scope_type.rb +17 -0
  176. data/lib/2020-06-01/generated/azure_mgmt_resources/models/generic_resource.rb +158 -0
  177. data/lib/2020-06-01/generated/azure_mgmt_resources/models/generic_resource_expanded.rb +179 -0
  178. data/lib/2020-06-01/generated/azure_mgmt_resources/models/generic_resource_filter.rb +68 -0
  179. data/lib/2020-06-01/generated/azure_mgmt_resources/models/http_message.rb +46 -0
  180. data/lib/2020-06-01/generated/azure_mgmt_resources/models/identity.rb +96 -0
  181. data/lib/2020-06-01/generated/azure_mgmt_resources/models/identity_user_assigned_identities_value.rb +60 -0
  182. data/lib/2020-06-01/generated/azure_mgmt_resources/models/on_error_deployment.rb +60 -0
  183. data/lib/2020-06-01/generated/azure_mgmt_resources/models/on_error_deployment_extended.rb +73 -0
  184. data/lib/2020-06-01/generated/azure_mgmt_resources/models/on_error_deployment_type.rb +16 -0
  185. data/lib/2020-06-01/generated/azure_mgmt_resources/models/operation.rb +58 -0
  186. data/lib/2020-06-01/generated/azure_mgmt_resources/models/operation_display.rb +80 -0
  187. data/lib/2020-06-01/generated/azure_mgmt_resources/models/operation_list_result.rb +100 -0
  188. data/lib/2020-06-01/generated/azure_mgmt_resources/models/parameters_link.rb +58 -0
  189. data/lib/2020-06-01/generated/azure_mgmt_resources/models/plan.rb +90 -0
  190. data/lib/2020-06-01/generated/azure_mgmt_resources/models/property_change_type.rb +18 -0
  191. data/lib/2020-06-01/generated/azure_mgmt_resources/models/provider.rb +104 -0
  192. data/lib/2020-06-01/generated/azure_mgmt_resources/models/provider_list_result.rb +99 -0
  193. data/lib/2020-06-01/generated/azure_mgmt_resources/models/provider_resource_type.rb +170 -0
  194. data/lib/2020-06-01/generated/azure_mgmt_resources/models/provisioning_operation.rb +24 -0
  195. data/lib/2020-06-01/generated/azure_mgmt_resources/models/provisioning_state.rb +26 -0
  196. data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource.rb +110 -0
  197. data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_group.rb +128 -0
  198. data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_group_export_result.rb +58 -0
  199. data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_group_filter.rb +57 -0
  200. data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_group_list_result.rb +99 -0
  201. data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_group_patchable.rb +90 -0
  202. data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_group_properties.rb +47 -0
  203. data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_identity_type.rb +18 -0
  204. data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_list_result.rb +99 -0
  205. data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +91 -0
  206. data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_reference.rb +47 -0
  207. data/lib/2020-06-01/generated/azure_mgmt_resources/models/resources_move_info.rb +65 -0
  208. data/lib/2020-06-01/generated/azure_mgmt_resources/models/scoped_deployment.rb +77 -0
  209. data/lib/2020-06-01/generated/azure_mgmt_resources/models/scoped_deployment_what_if.rb +58 -0
  210. data/lib/2020-06-01/generated/azure_mgmt_resources/models/sku.rb +101 -0
  211. data/lib/2020-06-01/generated/azure_mgmt_resources/models/status_message.rb +58 -0
  212. data/lib/2020-06-01/generated/azure_mgmt_resources/models/sub_resource.rb +46 -0
  213. data/lib/2020-06-01/generated/azure_mgmt_resources/models/tag_count.rb +57 -0
  214. data/lib/2020-06-01/generated/azure_mgmt_resources/models/tag_details.rb +92 -0
  215. data/lib/2020-06-01/generated/azure_mgmt_resources/models/tag_value.rb +70 -0
  216. data/lib/2020-06-01/generated/azure_mgmt_resources/models/tags.rb +54 -0
  217. data/lib/2020-06-01/generated/azure_mgmt_resources/models/tags_list_result.rb +99 -0
  218. data/lib/2020-06-01/generated/azure_mgmt_resources/models/tags_patch_operation.rb +17 -0
  219. data/lib/2020-06-01/generated/azure_mgmt_resources/models/tags_patch_resource.rb +59 -0
  220. data/lib/2020-06-01/generated/azure_mgmt_resources/models/tags_resource.rb +83 -0
  221. data/lib/2020-06-01/generated/azure_mgmt_resources/models/target_resource.rb +68 -0
  222. data/lib/2020-06-01/generated/azure_mgmt_resources/models/template_hash_result.rb +58 -0
  223. data/lib/2020-06-01/generated/azure_mgmt_resources/models/template_link.rb +84 -0
  224. data/lib/2020-06-01/generated/azure_mgmt_resources/models/what_if_change.rb +105 -0
  225. data/lib/2020-06-01/generated/azure_mgmt_resources/models/what_if_operation_result.rb +80 -0
  226. data/lib/2020-06-01/generated/azure_mgmt_resources/models/what_if_property_change.rb +101 -0
  227. data/lib/2020-06-01/generated/azure_mgmt_resources/models/what_if_result_format.rb +16 -0
  228. data/lib/2020-06-01/generated/azure_mgmt_resources/module_definition.rb +9 -0
  229. data/lib/2020-06-01/generated/azure_mgmt_resources/operations.rb +219 -0
  230. data/lib/2020-06-01/generated/azure_mgmt_resources/providers.rb +933 -0
  231. data/lib/2020-06-01/generated/azure_mgmt_resources/resource_groups.rb +979 -0
  232. data/lib/2020-06-01/generated/azure_mgmt_resources/resource_management_client.rb +155 -0
  233. data/lib/2020-06-01/generated/azure_mgmt_resources/resources.rb +2354 -0
  234. data/lib/2020-06-01/generated/azure_mgmt_resources/tags_operations.rb +1078 -0
  235. data/lib/azure_mgmt_resources.rb +11 -7
  236. data/lib/profiles/latest/modules/resources_profile_module.rb +246 -166
  237. data/lib/version.rb +1 -1
  238. metadata +228 -5
@@ -0,0 +1,101 @@
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::V2020_06_01
7
+ module Models
8
+ #
9
+ # The predicted change to the resource property.
10
+ #
11
+ class WhatIfPropertyChange
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The path of the property.
16
+ attr_accessor :path
17
+
18
+ # @return [PropertyChangeType] The type of property change. Possible
19
+ # values include: 'Create', 'Delete', 'Modify', 'Array'
20
+ attr_accessor :property_change_type
21
+
22
+ # @return The value of the property before the deployment is executed.
23
+ attr_accessor :before
24
+
25
+ # @return The value of the property after the deployment is executed.
26
+ attr_accessor :after
27
+
28
+ # @return [Array<WhatIfPropertyChange>] Nested property changes.
29
+ attr_accessor :children
30
+
31
+
32
+ #
33
+ # Mapper for WhatIfPropertyChange class as Ruby Hash.
34
+ # This will be used for serialization/deserialization.
35
+ #
36
+ def self.mapper()
37
+ {
38
+ client_side_validation: true,
39
+ required: false,
40
+ serialized_name: 'WhatIfPropertyChange',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'WhatIfPropertyChange',
44
+ model_properties: {
45
+ path: {
46
+ client_side_validation: true,
47
+ required: true,
48
+ serialized_name: 'path',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ property_change_type: {
54
+ client_side_validation: true,
55
+ required: true,
56
+ serialized_name: 'propertyChangeType',
57
+ type: {
58
+ name: 'Enum',
59
+ module: 'PropertyChangeType'
60
+ }
61
+ },
62
+ before: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ serialized_name: 'before',
66
+ type: {
67
+ name: 'Object'
68
+ }
69
+ },
70
+ after: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ serialized_name: 'after',
74
+ type: {
75
+ name: 'Object'
76
+ }
77
+ },
78
+ children: {
79
+ client_side_validation: true,
80
+ required: false,
81
+ serialized_name: 'children',
82
+ type: {
83
+ name: 'Sequence',
84
+ element: {
85
+ client_side_validation: true,
86
+ required: false,
87
+ serialized_name: 'WhatIfPropertyChangeElementType',
88
+ type: {
89
+ name: 'Composite',
90
+ class_name: 'WhatIfPropertyChange'
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
98
+ end
99
+ end
100
+ end
101
+ end
@@ -0,0 +1,16 @@
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::V2020_06_01
7
+ module Models
8
+ #
9
+ # Defines values for WhatIfResultFormat
10
+ #
11
+ module WhatIfResultFormat
12
+ ResourceIdOnly = "ResourceIdOnly"
13
+ FullResourcePayloads = "FullResourcePayloads"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,9 @@
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 end
7
+ module Azure::Resources end
8
+ module Azure::Resources::Mgmt end
9
+ module Azure::Resources::Mgmt::V2020_06_01 end
@@ -0,0 +1,219 @@
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::V2020_06_01
7
+ #
8
+ # Provides operations for working with resources and resource groups.
9
+ #
10
+ class Operations
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Operations 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
+ # Lists all of the available Microsoft.Resources REST API operations.
26
+ #
27
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
28
+ # will be added to the HTTP request.
29
+ #
30
+ # @return [Array<Operation>] operation results.
31
+ #
32
+ def list(custom_headers:nil)
33
+ first_page = list_as_lazy(custom_headers:custom_headers)
34
+ first_page.get_all_items
35
+ end
36
+
37
+ #
38
+ # Lists all of the available Microsoft.Resources REST API operations.
39
+ #
40
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
41
+ # will be added to the HTTP request.
42
+ #
43
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
44
+ #
45
+ def list_with_http_info(custom_headers:nil)
46
+ list_async(custom_headers:custom_headers).value!
47
+ end
48
+
49
+ #
50
+ # Lists all of the available Microsoft.Resources REST API operations.
51
+ #
52
+ # @param [Hash{String => String}] A hash of custom headers that will be added
53
+ # to the HTTP request.
54
+ #
55
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
56
+ #
57
+ def list_async(custom_headers:nil)
58
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
59
+
60
+
61
+ request_headers = {}
62
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
63
+
64
+ # Set Headers
65
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
66
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
67
+ path_template = 'providers/Microsoft.Resources/operations'
68
+
69
+ request_url = @base_url || @client.base_url
70
+
71
+ options = {
72
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
73
+ query_params: {'api-version' => @client.api_version},
74
+ headers: request_headers.merge(custom_headers || {}),
75
+ base_url: request_url
76
+ }
77
+ promise = @client.make_request_async(:get, path_template, options)
78
+
79
+ promise = promise.then do |result|
80
+ http_response = result.response
81
+ status_code = http_response.status
82
+ response_content = http_response.body
83
+ unless status_code == 200
84
+ error_model = JSON.load(response_content)
85
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
86
+ end
87
+
88
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
89
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
90
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
91
+ # Deserialize Response
92
+ if status_code == 200
93
+ begin
94
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
95
+ result_mapper = Azure::Resources::Mgmt::V2020_06_01::Models::OperationListResult.mapper()
96
+ result.body = @client.deserialize(result_mapper, parsed_response)
97
+ rescue Exception => e
98
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
99
+ end
100
+ end
101
+
102
+ result
103
+ end
104
+
105
+ promise.execute
106
+ end
107
+
108
+ #
109
+ # Lists all of the available Microsoft.Resources REST API operations.
110
+ #
111
+ # @param next_page_link [String] The NextLink from the previous successful call
112
+ # to List operation.
113
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
114
+ # will be added to the HTTP request.
115
+ #
116
+ # @return [OperationListResult] operation results.
117
+ #
118
+ def list_next(next_page_link, custom_headers:nil)
119
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
120
+ response.body unless response.nil?
121
+ end
122
+
123
+ #
124
+ # Lists all of the available Microsoft.Resources REST API operations.
125
+ #
126
+ # @param next_page_link [String] The NextLink from the previous successful call
127
+ # to List operation.
128
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
129
+ # will be added to the HTTP request.
130
+ #
131
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
132
+ #
133
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
134
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
135
+ end
136
+
137
+ #
138
+ # Lists all of the available Microsoft.Resources REST API operations.
139
+ #
140
+ # @param next_page_link [String] The NextLink from the previous successful call
141
+ # to List operation.
142
+ # @param [Hash{String => String}] A hash of custom headers that will be added
143
+ # to the HTTP request.
144
+ #
145
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
146
+ #
147
+ def list_next_async(next_page_link, custom_headers:nil)
148
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
149
+
150
+
151
+ request_headers = {}
152
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
153
+
154
+ # Set Headers
155
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
156
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
157
+ path_template = '{nextLink}'
158
+
159
+ request_url = @base_url || @client.base_url
160
+
161
+ options = {
162
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
163
+ skip_encoding_path_params: {'nextLink' => next_page_link},
164
+ headers: request_headers.merge(custom_headers || {}),
165
+ base_url: request_url
166
+ }
167
+ promise = @client.make_request_async(:get, path_template, options)
168
+
169
+ promise = promise.then do |result|
170
+ http_response = result.response
171
+ status_code = http_response.status
172
+ response_content = http_response.body
173
+ unless status_code == 200
174
+ error_model = JSON.load(response_content)
175
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
176
+ end
177
+
178
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
179
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
180
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
181
+ # Deserialize Response
182
+ if status_code == 200
183
+ begin
184
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
185
+ result_mapper = Azure::Resources::Mgmt::V2020_06_01::Models::OperationListResult.mapper()
186
+ result.body = @client.deserialize(result_mapper, parsed_response)
187
+ rescue Exception => e
188
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
189
+ end
190
+ end
191
+
192
+ result
193
+ end
194
+
195
+ promise.execute
196
+ end
197
+
198
+ #
199
+ # Lists all of the available Microsoft.Resources REST API operations.
200
+ #
201
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
202
+ # will be added to the HTTP request.
203
+ #
204
+ # @return [OperationListResult] which provide lazy access to pages of the
205
+ # response.
206
+ #
207
+ def list_as_lazy(custom_headers:nil)
208
+ response = list_async(custom_headers:custom_headers).value!
209
+ unless response.nil?
210
+ page = response.body
211
+ page.next_method = Proc.new do |next_page_link|
212
+ list_next_async(next_page_link, custom_headers:custom_headers)
213
+ end
214
+ page
215
+ end
216
+ end
217
+
218
+ end
219
+ end
@@ -0,0 +1,933 @@
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::V2020_06_01
7
+ #
8
+ # Provides operations for working with resources and resource groups.
9
+ #
10
+ class Providers
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Providers 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
+ # Unregisters a subscription from a resource provider.
26
+ #
27
+ # @param resource_provider_namespace [String] The namespace of the resource
28
+ # provider to unregister.
29
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
30
+ # will be added to the HTTP request.
31
+ #
32
+ # @return [Provider] operation results.
33
+ #
34
+ def unregister(resource_provider_namespace, custom_headers:nil)
35
+ response = unregister_async(resource_provider_namespace, custom_headers:custom_headers).value!
36
+ response.body unless response.nil?
37
+ end
38
+
39
+ #
40
+ # Unregisters a subscription from a resource provider.
41
+ #
42
+ # @param resource_provider_namespace [String] The namespace of the resource
43
+ # provider to unregister.
44
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
45
+ # will be added to the HTTP request.
46
+ #
47
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
48
+ #
49
+ def unregister_with_http_info(resource_provider_namespace, custom_headers:nil)
50
+ unregister_async(resource_provider_namespace, custom_headers:custom_headers).value!
51
+ end
52
+
53
+ #
54
+ # Unregisters a subscription from a resource provider.
55
+ #
56
+ # @param resource_provider_namespace [String] The namespace of the resource
57
+ # provider to unregister.
58
+ # @param [Hash{String => String}] A hash of custom headers that will be added
59
+ # to the HTTP request.
60
+ #
61
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
62
+ #
63
+ def unregister_async(resource_provider_namespace, custom_headers:nil)
64
+ fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
65
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
66
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
67
+
68
+
69
+ request_headers = {}
70
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
71
+
72
+ # Set Headers
73
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
74
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
75
+ path_template = 'subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/unregister'
76
+
77
+ request_url = @base_url || @client.base_url
78
+
79
+ options = {
80
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
81
+ path_params: {'resourceProviderNamespace' => resource_provider_namespace,'subscriptionId' => @client.subscription_id},
82
+ query_params: {'api-version' => @client.api_version},
83
+ headers: request_headers.merge(custom_headers || {}),
84
+ base_url: request_url
85
+ }
86
+ promise = @client.make_request_async(:post, path_template, options)
87
+
88
+ promise = promise.then do |result|
89
+ http_response = result.response
90
+ status_code = http_response.status
91
+ response_content = http_response.body
92
+ unless status_code == 200
93
+ error_model = JSON.load(response_content)
94
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
95
+ end
96
+
97
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
98
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
99
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
100
+ # Deserialize Response
101
+ if status_code == 200
102
+ begin
103
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
104
+ result_mapper = Azure::Resources::Mgmt::V2020_06_01::Models::Provider.mapper()
105
+ result.body = @client.deserialize(result_mapper, parsed_response)
106
+ rescue Exception => e
107
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
108
+ end
109
+ end
110
+
111
+ result
112
+ end
113
+
114
+ promise.execute
115
+ end
116
+
117
+ #
118
+ # Registers a management group with a resource provider.
119
+ #
120
+ # @param resource_provider_namespace [String] The namespace of the resource
121
+ # provider to register.
122
+ # @param group_id [String] The management group ID.
123
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
124
+ # will be added to the HTTP request.
125
+ #
126
+ #
127
+ def register_at_management_group_scope(resource_provider_namespace, group_id, custom_headers:nil)
128
+ response = register_at_management_group_scope_async(resource_provider_namespace, group_id, custom_headers:custom_headers).value!
129
+ nil
130
+ end
131
+
132
+ #
133
+ # Registers a management group with a resource provider.
134
+ #
135
+ # @param resource_provider_namespace [String] The namespace of the resource
136
+ # provider to register.
137
+ # @param group_id [String] The management group ID.
138
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
139
+ # will be added to the HTTP request.
140
+ #
141
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
142
+ #
143
+ def register_at_management_group_scope_with_http_info(resource_provider_namespace, group_id, custom_headers:nil)
144
+ register_at_management_group_scope_async(resource_provider_namespace, group_id, custom_headers:custom_headers).value!
145
+ end
146
+
147
+ #
148
+ # Registers a management group with a resource provider.
149
+ #
150
+ # @param resource_provider_namespace [String] The namespace of the resource
151
+ # provider to register.
152
+ # @param group_id [String] The management group ID.
153
+ # @param [Hash{String => String}] A hash of custom headers that will be added
154
+ # to the HTTP request.
155
+ #
156
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
157
+ #
158
+ def register_at_management_group_scope_async(resource_provider_namespace, group_id, custom_headers:nil)
159
+ fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
160
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
161
+ fail ArgumentError, 'group_id is nil' if group_id.nil?
162
+ fail ArgumentError, "'group_id' should satisfy the constraint - 'MaxLength': '90'" if !group_id.nil? && group_id.length > 90
163
+ fail ArgumentError, "'group_id' should satisfy the constraint - 'MinLength': '1'" if !group_id.nil? && group_id.length < 1
164
+
165
+
166
+ request_headers = {}
167
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
168
+
169
+ # Set Headers
170
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
171
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
172
+ path_template = 'providers/Microsoft.Management/managementGroups/{groupId}/providers/{resourceProviderNamespace}/register'
173
+
174
+ request_url = @base_url || @client.base_url
175
+
176
+ options = {
177
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
178
+ path_params: {'resourceProviderNamespace' => resource_provider_namespace,'groupId' => group_id},
179
+ query_params: {'api-version' => @client.api_version},
180
+ headers: request_headers.merge(custom_headers || {}),
181
+ base_url: request_url
182
+ }
183
+ promise = @client.make_request_async(:post, path_template, options)
184
+
185
+ promise = promise.then do |result|
186
+ http_response = result.response
187
+ status_code = http_response.status
188
+ response_content = http_response.body
189
+ unless status_code == 200
190
+ error_model = JSON.load(response_content)
191
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
192
+ end
193
+
194
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
195
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
196
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
197
+
198
+ result
199
+ end
200
+
201
+ promise.execute
202
+ end
203
+
204
+ #
205
+ # Registers a subscription with a resource provider.
206
+ #
207
+ # @param resource_provider_namespace [String] The namespace of the resource
208
+ # provider to register.
209
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
210
+ # will be added to the HTTP request.
211
+ #
212
+ # @return [Provider] operation results.
213
+ #
214
+ def register(resource_provider_namespace, custom_headers:nil)
215
+ response = register_async(resource_provider_namespace, custom_headers:custom_headers).value!
216
+ response.body unless response.nil?
217
+ end
218
+
219
+ #
220
+ # Registers a subscription with a resource provider.
221
+ #
222
+ # @param resource_provider_namespace [String] The namespace of the resource
223
+ # provider to register.
224
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
225
+ # will be added to the HTTP request.
226
+ #
227
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
228
+ #
229
+ def register_with_http_info(resource_provider_namespace, custom_headers:nil)
230
+ register_async(resource_provider_namespace, custom_headers:custom_headers).value!
231
+ end
232
+
233
+ #
234
+ # Registers a subscription with a resource provider.
235
+ #
236
+ # @param resource_provider_namespace [String] The namespace of the resource
237
+ # provider to register.
238
+ # @param [Hash{String => String}] A hash of custom headers that will be added
239
+ # to the HTTP request.
240
+ #
241
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
242
+ #
243
+ def register_async(resource_provider_namespace, custom_headers:nil)
244
+ fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
245
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
246
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
247
+
248
+
249
+ request_headers = {}
250
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
251
+
252
+ # Set Headers
253
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
254
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
255
+ path_template = 'subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register'
256
+
257
+ request_url = @base_url || @client.base_url
258
+
259
+ options = {
260
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
261
+ path_params: {'resourceProviderNamespace' => resource_provider_namespace,'subscriptionId' => @client.subscription_id},
262
+ query_params: {'api-version' => @client.api_version},
263
+ headers: request_headers.merge(custom_headers || {}),
264
+ base_url: request_url
265
+ }
266
+ promise = @client.make_request_async(:post, path_template, options)
267
+
268
+ promise = promise.then do |result|
269
+ http_response = result.response
270
+ status_code = http_response.status
271
+ response_content = http_response.body
272
+ unless status_code == 200
273
+ error_model = JSON.load(response_content)
274
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
275
+ end
276
+
277
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
278
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
279
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
280
+ # Deserialize Response
281
+ if status_code == 200
282
+ begin
283
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
284
+ result_mapper = Azure::Resources::Mgmt::V2020_06_01::Models::Provider.mapper()
285
+ result.body = @client.deserialize(result_mapper, parsed_response)
286
+ rescue Exception => e
287
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
288
+ end
289
+ end
290
+
291
+ result
292
+ end
293
+
294
+ promise.execute
295
+ end
296
+
297
+ #
298
+ # Gets all resource providers for a subscription.
299
+ #
300
+ # @param top [Integer] The number of results to return. If null is passed
301
+ # returns all deployments.
302
+ # @param expand [String] The properties to include in the results. For example,
303
+ # use &$expand=metadata in the query string to retrieve resource provider
304
+ # metadata. To include property aliases in response, use
305
+ # $expand=resourceTypes/aliases.
306
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
307
+ # will be added to the HTTP request.
308
+ #
309
+ # @return [Array<Provider>] operation results.
310
+ #
311
+ def list(top:nil, expand:nil, custom_headers:nil)
312
+ first_page = list_as_lazy(top:top, expand:expand, custom_headers:custom_headers)
313
+ first_page.get_all_items
314
+ end
315
+
316
+ #
317
+ # Gets all resource providers for a subscription.
318
+ #
319
+ # @param top [Integer] The number of results to return. If null is passed
320
+ # returns all deployments.
321
+ # @param expand [String] The properties to include in the results. For example,
322
+ # use &$expand=metadata in the query string to retrieve resource provider
323
+ # metadata. To include property aliases in response, use
324
+ # $expand=resourceTypes/aliases.
325
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
326
+ # will be added to the HTTP request.
327
+ #
328
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
329
+ #
330
+ def list_with_http_info(top:nil, expand:nil, custom_headers:nil)
331
+ list_async(top:top, expand:expand, custom_headers:custom_headers).value!
332
+ end
333
+
334
+ #
335
+ # Gets all resource providers for a subscription.
336
+ #
337
+ # @param top [Integer] The number of results to return. If null is passed
338
+ # returns all deployments.
339
+ # @param expand [String] The properties to include in the results. For example,
340
+ # use &$expand=metadata in the query string to retrieve resource provider
341
+ # metadata. To include property aliases in response, use
342
+ # $expand=resourceTypes/aliases.
343
+ # @param [Hash{String => String}] A hash of custom headers that will be added
344
+ # to the HTTP request.
345
+ #
346
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
347
+ #
348
+ def list_async(top:nil, expand:nil, custom_headers:nil)
349
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
350
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
351
+
352
+
353
+ request_headers = {}
354
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
355
+
356
+ # Set Headers
357
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
358
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
359
+ path_template = 'subscriptions/{subscriptionId}/providers'
360
+
361
+ request_url = @base_url || @client.base_url
362
+
363
+ options = {
364
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
365
+ path_params: {'subscriptionId' => @client.subscription_id},
366
+ query_params: {'$top' => top,'$expand' => expand,'api-version' => @client.api_version},
367
+ headers: request_headers.merge(custom_headers || {}),
368
+ base_url: request_url
369
+ }
370
+ promise = @client.make_request_async(:get, path_template, options)
371
+
372
+ promise = promise.then do |result|
373
+ http_response = result.response
374
+ status_code = http_response.status
375
+ response_content = http_response.body
376
+ unless status_code == 200
377
+ error_model = JSON.load(response_content)
378
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
379
+ end
380
+
381
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
382
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
383
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
384
+ # Deserialize Response
385
+ if status_code == 200
386
+ begin
387
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
388
+ result_mapper = Azure::Resources::Mgmt::V2020_06_01::Models::ProviderListResult.mapper()
389
+ result.body = @client.deserialize(result_mapper, parsed_response)
390
+ rescue Exception => e
391
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
392
+ end
393
+ end
394
+
395
+ result
396
+ end
397
+
398
+ promise.execute
399
+ end
400
+
401
+ #
402
+ # Gets all resource providers for the tenant.
403
+ #
404
+ # @param top [Integer] The number of results to return. If null is passed
405
+ # returns all providers.
406
+ # @param expand [String] The properties to include in the results. For example,
407
+ # use &$expand=metadata in the query string to retrieve resource provider
408
+ # metadata. To include property aliases in response, use
409
+ # $expand=resourceTypes/aliases.
410
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
411
+ # will be added to the HTTP request.
412
+ #
413
+ # @return [Array<Provider>] operation results.
414
+ #
415
+ def list_at_tenant_scope(top:nil, expand:nil, custom_headers:nil)
416
+ first_page = list_at_tenant_scope_as_lazy(top:top, expand:expand, custom_headers:custom_headers)
417
+ first_page.get_all_items
418
+ end
419
+
420
+ #
421
+ # Gets all resource providers for the tenant.
422
+ #
423
+ # @param top [Integer] The number of results to return. If null is passed
424
+ # returns all providers.
425
+ # @param expand [String] The properties to include in the results. For example,
426
+ # use &$expand=metadata in the query string to retrieve resource provider
427
+ # metadata. To include property aliases in response, use
428
+ # $expand=resourceTypes/aliases.
429
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
430
+ # will be added to the HTTP request.
431
+ #
432
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
433
+ #
434
+ def list_at_tenant_scope_with_http_info(top:nil, expand:nil, custom_headers:nil)
435
+ list_at_tenant_scope_async(top:top, expand:expand, custom_headers:custom_headers).value!
436
+ end
437
+
438
+ #
439
+ # Gets all resource providers for the tenant.
440
+ #
441
+ # @param top [Integer] The number of results to return. If null is passed
442
+ # returns all providers.
443
+ # @param expand [String] The properties to include in the results. For example,
444
+ # use &$expand=metadata in the query string to retrieve resource provider
445
+ # metadata. To include property aliases in response, use
446
+ # $expand=resourceTypes/aliases.
447
+ # @param [Hash{String => String}] A hash of custom headers that will be added
448
+ # to the HTTP request.
449
+ #
450
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
451
+ #
452
+ def list_at_tenant_scope_async(top:nil, expand:nil, custom_headers:nil)
453
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
454
+
455
+
456
+ request_headers = {}
457
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
458
+
459
+ # Set Headers
460
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
461
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
462
+ path_template = 'providers'
463
+
464
+ request_url = @base_url || @client.base_url
465
+
466
+ options = {
467
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
468
+ query_params: {'$top' => top,'$expand' => expand,'api-version' => @client.api_version},
469
+ headers: request_headers.merge(custom_headers || {}),
470
+ base_url: request_url
471
+ }
472
+ promise = @client.make_request_async(:get, path_template, options)
473
+
474
+ promise = promise.then do |result|
475
+ http_response = result.response
476
+ status_code = http_response.status
477
+ response_content = http_response.body
478
+ unless status_code == 200
479
+ error_model = JSON.load(response_content)
480
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
481
+ end
482
+
483
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
484
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
485
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
486
+ # Deserialize Response
487
+ if status_code == 200
488
+ begin
489
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
490
+ result_mapper = Azure::Resources::Mgmt::V2020_06_01::Models::ProviderListResult.mapper()
491
+ result.body = @client.deserialize(result_mapper, parsed_response)
492
+ rescue Exception => e
493
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
494
+ end
495
+ end
496
+
497
+ result
498
+ end
499
+
500
+ promise.execute
501
+ end
502
+
503
+ #
504
+ # Gets the specified resource provider.
505
+ #
506
+ # @param resource_provider_namespace [String] The namespace of the resource
507
+ # provider.
508
+ # @param expand [String] The $expand query parameter. For example, to include
509
+ # property aliases in response, use $expand=resourceTypes/aliases.
510
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
511
+ # will be added to the HTTP request.
512
+ #
513
+ # @return [Provider] operation results.
514
+ #
515
+ def get(resource_provider_namespace, expand:nil, custom_headers:nil)
516
+ response = get_async(resource_provider_namespace, expand:expand, custom_headers:custom_headers).value!
517
+ response.body unless response.nil?
518
+ end
519
+
520
+ #
521
+ # Gets the specified resource provider.
522
+ #
523
+ # @param resource_provider_namespace [String] The namespace of the resource
524
+ # provider.
525
+ # @param expand [String] The $expand query parameter. For example, to include
526
+ # property aliases in response, use $expand=resourceTypes/aliases.
527
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
528
+ # will be added to the HTTP request.
529
+ #
530
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
531
+ #
532
+ def get_with_http_info(resource_provider_namespace, expand:nil, custom_headers:nil)
533
+ get_async(resource_provider_namespace, expand:expand, custom_headers:custom_headers).value!
534
+ end
535
+
536
+ #
537
+ # Gets the specified resource provider.
538
+ #
539
+ # @param resource_provider_namespace [String] The namespace of the resource
540
+ # provider.
541
+ # @param expand [String] The $expand query parameter. For example, to include
542
+ # property aliases in response, use $expand=resourceTypes/aliases.
543
+ # @param [Hash{String => String}] A hash of custom headers that will be added
544
+ # to the HTTP request.
545
+ #
546
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
547
+ #
548
+ def get_async(resource_provider_namespace, expand:nil, custom_headers:nil)
549
+ fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
550
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
551
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
552
+
553
+
554
+ request_headers = {}
555
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
556
+
557
+ # Set Headers
558
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
559
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
560
+ path_template = 'subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}'
561
+
562
+ request_url = @base_url || @client.base_url
563
+
564
+ options = {
565
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
566
+ path_params: {'resourceProviderNamespace' => resource_provider_namespace,'subscriptionId' => @client.subscription_id},
567
+ query_params: {'$expand' => expand,'api-version' => @client.api_version},
568
+ headers: request_headers.merge(custom_headers || {}),
569
+ base_url: request_url
570
+ }
571
+ promise = @client.make_request_async(:get, path_template, options)
572
+
573
+ promise = promise.then do |result|
574
+ http_response = result.response
575
+ status_code = http_response.status
576
+ response_content = http_response.body
577
+ unless status_code == 200
578
+ error_model = JSON.load(response_content)
579
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
580
+ end
581
+
582
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
583
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
584
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
585
+ # Deserialize Response
586
+ if status_code == 200
587
+ begin
588
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
589
+ result_mapper = Azure::Resources::Mgmt::V2020_06_01::Models::Provider.mapper()
590
+ result.body = @client.deserialize(result_mapper, parsed_response)
591
+ rescue Exception => e
592
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
593
+ end
594
+ end
595
+
596
+ result
597
+ end
598
+
599
+ promise.execute
600
+ end
601
+
602
+ #
603
+ # Gets the specified resource provider at the tenant level.
604
+ #
605
+ # @param resource_provider_namespace [String] The namespace of the resource
606
+ # provider.
607
+ # @param expand [String] The $expand query parameter. For example, to include
608
+ # property aliases in response, use $expand=resourceTypes/aliases.
609
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
610
+ # will be added to the HTTP request.
611
+ #
612
+ # @return [Provider] operation results.
613
+ #
614
+ def get_at_tenant_scope(resource_provider_namespace, expand:nil, custom_headers:nil)
615
+ response = get_at_tenant_scope_async(resource_provider_namespace, expand:expand, custom_headers:custom_headers).value!
616
+ response.body unless response.nil?
617
+ end
618
+
619
+ #
620
+ # Gets the specified resource provider at the tenant level.
621
+ #
622
+ # @param resource_provider_namespace [String] The namespace of the resource
623
+ # provider.
624
+ # @param expand [String] The $expand query parameter. For example, to include
625
+ # property aliases in response, use $expand=resourceTypes/aliases.
626
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
627
+ # will be added to the HTTP request.
628
+ #
629
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
630
+ #
631
+ def get_at_tenant_scope_with_http_info(resource_provider_namespace, expand:nil, custom_headers:nil)
632
+ get_at_tenant_scope_async(resource_provider_namespace, expand:expand, custom_headers:custom_headers).value!
633
+ end
634
+
635
+ #
636
+ # Gets the specified resource provider at the tenant level.
637
+ #
638
+ # @param resource_provider_namespace [String] The namespace of the resource
639
+ # provider.
640
+ # @param expand [String] The $expand query parameter. For example, to include
641
+ # property aliases in response, use $expand=resourceTypes/aliases.
642
+ # @param [Hash{String => String}] A hash of custom headers that will be added
643
+ # to the HTTP request.
644
+ #
645
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
646
+ #
647
+ def get_at_tenant_scope_async(resource_provider_namespace, expand:nil, custom_headers:nil)
648
+ fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
649
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
650
+
651
+
652
+ request_headers = {}
653
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
654
+
655
+ # Set Headers
656
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
657
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
658
+ path_template = 'providers/{resourceProviderNamespace}'
659
+
660
+ request_url = @base_url || @client.base_url
661
+
662
+ options = {
663
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
664
+ path_params: {'resourceProviderNamespace' => resource_provider_namespace},
665
+ query_params: {'$expand' => expand,'api-version' => @client.api_version},
666
+ headers: request_headers.merge(custom_headers || {}),
667
+ base_url: request_url
668
+ }
669
+ promise = @client.make_request_async(:get, path_template, options)
670
+
671
+ promise = promise.then do |result|
672
+ http_response = result.response
673
+ status_code = http_response.status
674
+ response_content = http_response.body
675
+ unless status_code == 200
676
+ error_model = JSON.load(response_content)
677
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
678
+ end
679
+
680
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
681
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
682
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
683
+ # Deserialize Response
684
+ if status_code == 200
685
+ begin
686
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
687
+ result_mapper = Azure::Resources::Mgmt::V2020_06_01::Models::Provider.mapper()
688
+ result.body = @client.deserialize(result_mapper, parsed_response)
689
+ rescue Exception => e
690
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
691
+ end
692
+ end
693
+
694
+ result
695
+ end
696
+
697
+ promise.execute
698
+ end
699
+
700
+ #
701
+ # Gets all resource providers for a subscription.
702
+ #
703
+ # @param next_page_link [String] The NextLink from the previous successful call
704
+ # to List operation.
705
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
706
+ # will be added to the HTTP request.
707
+ #
708
+ # @return [ProviderListResult] operation results.
709
+ #
710
+ def list_next(next_page_link, custom_headers:nil)
711
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
712
+ response.body unless response.nil?
713
+ end
714
+
715
+ #
716
+ # Gets all resource providers for a subscription.
717
+ #
718
+ # @param next_page_link [String] The NextLink from the previous successful call
719
+ # to List operation.
720
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
721
+ # will be added to the HTTP request.
722
+ #
723
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
724
+ #
725
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
726
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
727
+ end
728
+
729
+ #
730
+ # Gets all resource providers for a subscription.
731
+ #
732
+ # @param next_page_link [String] The NextLink from the previous successful call
733
+ # to List operation.
734
+ # @param [Hash{String => String}] A hash of custom headers that will be added
735
+ # to the HTTP request.
736
+ #
737
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
738
+ #
739
+ def list_next_async(next_page_link, custom_headers:nil)
740
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
741
+
742
+
743
+ request_headers = {}
744
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
745
+
746
+ # Set Headers
747
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
748
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
749
+ path_template = '{nextLink}'
750
+
751
+ request_url = @base_url || @client.base_url
752
+
753
+ options = {
754
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
755
+ skip_encoding_path_params: {'nextLink' => next_page_link},
756
+ headers: request_headers.merge(custom_headers || {}),
757
+ base_url: request_url
758
+ }
759
+ promise = @client.make_request_async(:get, path_template, options)
760
+
761
+ promise = promise.then do |result|
762
+ http_response = result.response
763
+ status_code = http_response.status
764
+ response_content = http_response.body
765
+ unless status_code == 200
766
+ error_model = JSON.load(response_content)
767
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
768
+ end
769
+
770
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
771
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
772
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
773
+ # Deserialize Response
774
+ if status_code == 200
775
+ begin
776
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
777
+ result_mapper = Azure::Resources::Mgmt::V2020_06_01::Models::ProviderListResult.mapper()
778
+ result.body = @client.deserialize(result_mapper, parsed_response)
779
+ rescue Exception => e
780
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
781
+ end
782
+ end
783
+
784
+ result
785
+ end
786
+
787
+ promise.execute
788
+ end
789
+
790
+ #
791
+ # Gets all resource providers for the tenant.
792
+ #
793
+ # @param next_page_link [String] The NextLink from the previous successful call
794
+ # to List operation.
795
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
796
+ # will be added to the HTTP request.
797
+ #
798
+ # @return [ProviderListResult] operation results.
799
+ #
800
+ def list_at_tenant_scope_next(next_page_link, custom_headers:nil)
801
+ response = list_at_tenant_scope_next_async(next_page_link, custom_headers:custom_headers).value!
802
+ response.body unless response.nil?
803
+ end
804
+
805
+ #
806
+ # Gets all resource providers for the tenant.
807
+ #
808
+ # @param next_page_link [String] The NextLink from the previous successful call
809
+ # to List operation.
810
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
811
+ # will be added to the HTTP request.
812
+ #
813
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
814
+ #
815
+ def list_at_tenant_scope_next_with_http_info(next_page_link, custom_headers:nil)
816
+ list_at_tenant_scope_next_async(next_page_link, custom_headers:custom_headers).value!
817
+ end
818
+
819
+ #
820
+ # Gets all resource providers for the tenant.
821
+ #
822
+ # @param next_page_link [String] The NextLink from the previous successful call
823
+ # to List operation.
824
+ # @param [Hash{String => String}] A hash of custom headers that will be added
825
+ # to the HTTP request.
826
+ #
827
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
828
+ #
829
+ def list_at_tenant_scope_next_async(next_page_link, custom_headers:nil)
830
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
831
+
832
+
833
+ request_headers = {}
834
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
835
+
836
+ # Set Headers
837
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
838
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
839
+ path_template = '{nextLink}'
840
+
841
+ request_url = @base_url || @client.base_url
842
+
843
+ options = {
844
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
845
+ skip_encoding_path_params: {'nextLink' => next_page_link},
846
+ headers: request_headers.merge(custom_headers || {}),
847
+ base_url: request_url
848
+ }
849
+ promise = @client.make_request_async(:get, path_template, options)
850
+
851
+ promise = promise.then do |result|
852
+ http_response = result.response
853
+ status_code = http_response.status
854
+ response_content = http_response.body
855
+ unless status_code == 200
856
+ error_model = JSON.load(response_content)
857
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
858
+ end
859
+
860
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
861
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
862
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
863
+ # Deserialize Response
864
+ if status_code == 200
865
+ begin
866
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
867
+ result_mapper = Azure::Resources::Mgmt::V2020_06_01::Models::ProviderListResult.mapper()
868
+ result.body = @client.deserialize(result_mapper, parsed_response)
869
+ rescue Exception => e
870
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
871
+ end
872
+ end
873
+
874
+ result
875
+ end
876
+
877
+ promise.execute
878
+ end
879
+
880
+ #
881
+ # Gets all resource providers for a subscription.
882
+ #
883
+ # @param top [Integer] The number of results to return. If null is passed
884
+ # returns all deployments.
885
+ # @param expand [String] The properties to include in the results. For example,
886
+ # use &$expand=metadata in the query string to retrieve resource provider
887
+ # metadata. To include property aliases in response, use
888
+ # $expand=resourceTypes/aliases.
889
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
890
+ # will be added to the HTTP request.
891
+ #
892
+ # @return [ProviderListResult] which provide lazy access to pages of the
893
+ # response.
894
+ #
895
+ def list_as_lazy(top:nil, expand:nil, custom_headers:nil)
896
+ response = list_async(top:top, expand:expand, custom_headers:custom_headers).value!
897
+ unless response.nil?
898
+ page = response.body
899
+ page.next_method = Proc.new do |next_page_link|
900
+ list_next_async(next_page_link, custom_headers:custom_headers)
901
+ end
902
+ page
903
+ end
904
+ end
905
+
906
+ #
907
+ # Gets all resource providers for the tenant.
908
+ #
909
+ # @param top [Integer] The number of results to return. If null is passed
910
+ # returns all providers.
911
+ # @param expand [String] The properties to include in the results. For example,
912
+ # use &$expand=metadata in the query string to retrieve resource provider
913
+ # metadata. To include property aliases in response, use
914
+ # $expand=resourceTypes/aliases.
915
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
916
+ # will be added to the HTTP request.
917
+ #
918
+ # @return [ProviderListResult] which provide lazy access to pages of the
919
+ # response.
920
+ #
921
+ def list_at_tenant_scope_as_lazy(top:nil, expand:nil, custom_headers:nil)
922
+ response = list_at_tenant_scope_async(top:top, expand:expand, custom_headers:custom_headers).value!
923
+ unless response.nil?
924
+ page = response.body
925
+ page.next_method = Proc.new do |next_page_link|
926
+ list_at_tenant_scope_next_async(next_page_link, custom_headers:custom_headers)
927
+ end
928
+ page
929
+ end
930
+ end
931
+
932
+ end
933
+ end