azure_mgmt_resources 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (240) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -3
  3. data/lib/2016-02-01/generated/azure_mgmt_resources.rb +79 -0
  4. data/lib/2016-02-01/generated/azure_mgmt_resources/deployment_operations.rb +331 -0
  5. data/lib/2016-02-01/generated/azure_mgmt_resources/deployments.rb +1000 -0
  6. data/lib/2016-02-01/generated/azure_mgmt_resources/models/alias_path_type.rb +62 -0
  7. data/lib/2016-02-01/generated/azure_mgmt_resources/models/alias_type.rb +63 -0
  8. data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/models/basic_dependency.rb +1 -1
  9. data/lib/2016-02-01/generated/azure_mgmt_resources/models/debug_setting.rb +45 -0
  10. data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/models/dependency.rb +1 -1
  11. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment.rb +45 -0
  12. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_export_result.rb +45 -0
  13. data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/models/deployment_extended.rb +1 -1
  14. data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/models/deployment_extended_filter.rb +1 -1
  15. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_list_result.rb +94 -0
  16. data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/models/deployment_mode.rb +1 -1
  17. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_operation.rb +65 -0
  18. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +117 -0
  19. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +94 -0
  20. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_properties.rb +103 -0
  21. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +179 -0
  22. data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/models/deployment_validate_result.rb +1 -1
  23. data/lib/2016-02-01/generated/azure_mgmt_resources/models/export_template_request.rb +65 -0
  24. data/lib/2016-02-01/generated/azure_mgmt_resources/models/generic_resource.rb +142 -0
  25. data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/models/generic_resource_filter.rb +1 -1
  26. data/lib/2016-02-01/generated/azure_mgmt_resources/models/http_message.rb +45 -0
  27. data/lib/2016-02-01/generated/azure_mgmt_resources/models/identity.rb +68 -0
  28. data/lib/2016-02-01/generated/azure_mgmt_resources/models/parameters_link.rb +55 -0
  29. data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/models/plan.rb +1 -1
  30. data/lib/2016-02-01/generated/azure_mgmt_resources/models/provider.rb +83 -0
  31. data/lib/2016-02-01/generated/azure_mgmt_resources/models/provider_list_result.rb +94 -0
  32. data/lib/2016-02-01/generated/azure_mgmt_resources/models/provider_resource_type.rb +115 -0
  33. data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource.rb +95 -0
  34. data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource_group.rb +97 -0
  35. data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource_group_export_result.rb +56 -0
  36. data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/models/resource_group_filter.rb +1 -1
  37. data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource_group_list_result.rb +94 -0
  38. data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/models/resource_group_properties.rb +1 -1
  39. data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/models/resource_identity_type.rb +1 -1
  40. data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource_list_result.rb +94 -0
  41. data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +83 -0
  42. data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +1 -1
  43. data/lib/2016-02-01/generated/azure_mgmt_resources/models/resources_move_info.rb +61 -0
  44. data/lib/2016-02-01/generated/azure_mgmt_resources/models/sku.rb +94 -0
  45. data/lib/2016-02-01/generated/azure_mgmt_resources/models/sub_resource.rb +45 -0
  46. data/lib/2016-02-01/generated/azure_mgmt_resources/models/tag_count.rb +54 -0
  47. data/lib/2016-02-01/generated/azure_mgmt_resources/models/tag_details.rb +83 -0
  48. data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/models/tag_value.rb +1 -1
  49. data/lib/2016-02-01/generated/azure_mgmt_resources/models/tags_list_result.rb +94 -0
  50. data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/models/target_resource.rb +1 -1
  51. data/lib/2016-02-01/generated/azure_mgmt_resources/models/template_link.rb +55 -0
  52. data/lib/2016-02-01/generated/azure_mgmt_resources/module_definition.rb +9 -0
  53. data/lib/2016-02-01/generated/azure_mgmt_resources/providers.rb +507 -0
  54. data/lib/2016-02-01/generated/azure_mgmt_resources/resource_groups.rb +1067 -0
  55. data/lib/2016-02-01/generated/azure_mgmt_resources/resource_management_client.rb +151 -0
  56. data/lib/2016-02-01/generated/azure_mgmt_resources/resources.rb +805 -0
  57. data/lib/2016-02-01/generated/azure_mgmt_resources/tags.rb +568 -0
  58. data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/version.rb +2 -2
  59. data/lib/2016-07-01/generated/azure_mgmt_resources.rb +79 -0
  60. data/lib/2016-07-01/generated/azure_mgmt_resources/deployment_operations.rb +331 -0
  61. data/lib/2016-07-01/generated/azure_mgmt_resources/deployments.rb +1000 -0
  62. data/lib/2016-07-01/generated/azure_mgmt_resources/models/alias_path_type.rb +61 -0
  63. data/lib/{generated → 2016-07-01/generated}/azure_mgmt_resources/models/alias_type.rb +1 -1
  64. data/lib/2016-07-01/generated/azure_mgmt_resources/models/basic_dependency.rb +64 -0
  65. data/lib/2016-07-01/generated/azure_mgmt_resources/models/debug_setting.rb +45 -0
  66. data/lib/2016-07-01/generated/azure_mgmt_resources/models/dependency.rb +82 -0
  67. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment.rb +45 -0
  68. data/lib/{generated → 2016-07-01/generated}/azure_mgmt_resources/models/deployment_export_result.rb +1 -1
  69. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_extended.rb +65 -0
  70. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +44 -0
  71. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_list_result.rb +94 -0
  72. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_mode.rb +16 -0
  73. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_operation.rb +65 -0
  74. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +117 -0
  75. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +94 -0
  76. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_properties.rb +103 -0
  77. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +179 -0
  78. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_validate_result.rb +57 -0
  79. data/lib/2016-07-01/generated/azure_mgmt_resources/models/export_template_request.rb +65 -0
  80. data/lib/2016-07-01/generated/azure_mgmt_resources/models/generic_resource.rb +142 -0
  81. data/lib/2016-07-01/generated/azure_mgmt_resources/models/generic_resource_filter.rb +64 -0
  82. data/lib/2016-07-01/generated/azure_mgmt_resources/models/http_message.rb +45 -0
  83. data/lib/2016-07-01/generated/azure_mgmt_resources/models/identity.rb +68 -0
  84. data/lib/2016-07-01/generated/azure_mgmt_resources/models/parameters_link.rb +55 -0
  85. data/lib/2016-07-01/generated/azure_mgmt_resources/models/plan.rb +74 -0
  86. data/lib/2016-07-01/generated/azure_mgmt_resources/models/provider.rb +83 -0
  87. data/lib/2016-07-01/generated/azure_mgmt_resources/models/provider_list_result.rb +94 -0
  88. data/lib/2016-07-01/generated/azure_mgmt_resources/models/provider_resource_type.rb +115 -0
  89. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource.rb +95 -0
  90. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_group.rb +97 -0
  91. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_group_export_result.rb +56 -0
  92. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_group_filter.rb +54 -0
  93. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_group_list_result.rb +94 -0
  94. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_group_properties.rb +45 -0
  95. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_identity_type.rb +15 -0
  96. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_list_result.rb +94 -0
  97. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +83 -0
  98. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +85 -0
  99. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resources_move_info.rb +61 -0
  100. data/lib/2016-07-01/generated/azure_mgmt_resources/models/sku.rb +94 -0
  101. data/lib/2016-07-01/generated/azure_mgmt_resources/models/sub_resource.rb +45 -0
  102. data/lib/2016-07-01/generated/azure_mgmt_resources/models/tag_count.rb +54 -0
  103. data/lib/2016-07-01/generated/azure_mgmt_resources/models/tag_details.rb +83 -0
  104. data/lib/2016-07-01/generated/azure_mgmt_resources/models/tag_value.rb +65 -0
  105. data/lib/2016-07-01/generated/azure_mgmt_resources/models/tags_list_result.rb +94 -0
  106. data/lib/2016-07-01/generated/azure_mgmt_resources/models/target_resource.rb +64 -0
  107. data/lib/2016-07-01/generated/azure_mgmt_resources/models/template_link.rb +55 -0
  108. data/lib/2016-07-01/generated/azure_mgmt_resources/module_definition.rb +9 -0
  109. data/lib/2016-07-01/generated/azure_mgmt_resources/providers.rb +507 -0
  110. data/lib/2016-07-01/generated/azure_mgmt_resources/resource_groups.rb +1067 -0
  111. data/lib/2016-07-01/generated/azure_mgmt_resources/resource_management_client.rb +151 -0
  112. data/lib/2016-07-01/generated/azure_mgmt_resources/resources.rb +805 -0
  113. data/lib/2016-07-01/generated/azure_mgmt_resources/tags.rb +568 -0
  114. data/lib/{generated/azure_mgmt_resources/module_definition.rb → 2016-07-01/generated/azure_mgmt_resources/version.rb} +3 -3
  115. data/lib/2016-09-01/generated/azure_mgmt_resources.rb +79 -0
  116. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/deployment_operations.rb +4 -4
  117. data/lib/2016-09-01/generated/azure_mgmt_resources/deployments.rb +1086 -0
  118. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/alias_path_type.rb +1 -1
  119. data/lib/2016-09-01/generated/azure_mgmt_resources/models/alias_type.rb +62 -0
  120. data/lib/2016-09-01/generated/azure_mgmt_resources/models/basic_dependency.rb +64 -0
  121. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/debug_setting.rb +1 -1
  122. data/lib/2016-09-01/generated/azure_mgmt_resources/models/dependency.rb +82 -0
  123. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/deployment.rb +1 -1
  124. data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_export_result.rb +44 -0
  125. data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_extended.rb +65 -0
  126. data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +44 -0
  127. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/deployment_list_result.rb +1 -1
  128. data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_mode.rb +16 -0
  129. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/deployment_operation.rb +1 -1
  130. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/deployment_operation_properties.rb +1 -1
  131. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/deployment_operations_list_result.rb +1 -1
  132. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/deployment_properties.rb +1 -1
  133. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/deployment_properties_extended.rb +1 -1
  134. data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_validate_result.rb +57 -0
  135. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/export_template_request.rb +1 -1
  136. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/generic_resource.rb +1 -1
  137. data/lib/2016-09-01/generated/azure_mgmt_resources/models/generic_resource_filter.rb +64 -0
  138. data/lib/2016-09-01/generated/azure_mgmt_resources/models/http_message.rb +45 -0
  139. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/identity.rb +1 -1
  140. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/parameters_link.rb +1 -1
  141. data/lib/2016-09-01/generated/azure_mgmt_resources/models/plan.rb +74 -0
  142. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/provider.rb +1 -1
  143. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/provider_list_result.rb +1 -1
  144. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/provider_resource_type.rb +1 -1
  145. data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource.rb +95 -0
  146. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/resource_group.rb +1 -1
  147. data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_group_export_result.rb +56 -0
  148. data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_group_filter.rb +54 -0
  149. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/resource_group_list_result.rb +1 -1
  150. data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_group_properties.rb +45 -0
  151. data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_identity_type.rb +15 -0
  152. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/resource_list_result.rb +1 -1
  153. data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +87 -0
  154. data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +85 -0
  155. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/resources_move_info.rb +1 -1
  156. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/sku.rb +1 -1
  157. data/lib/2016-09-01/generated/azure_mgmt_resources/models/sub_resource.rb +45 -0
  158. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/tag_count.rb +1 -1
  159. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/tag_details.rb +1 -1
  160. data/lib/2016-09-01/generated/azure_mgmt_resources/models/tag_value.rb +65 -0
  161. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/tags_list_result.rb +1 -1
  162. data/lib/2016-09-01/generated/azure_mgmt_resources/models/target_resource.rb +64 -0
  163. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/template_link.rb +1 -1
  164. data/lib/2016-09-01/generated/azure_mgmt_resources/module_definition.rb +9 -0
  165. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/providers.rb +6 -6
  166. data/lib/2016-09-01/generated/azure_mgmt_resources/resource_groups.rb +1086 -0
  167. data/lib/2016-09-01/generated/azure_mgmt_resources/resource_management_client.rb +149 -0
  168. data/lib/2016-09-01/generated/azure_mgmt_resources/resources.rb +1429 -0
  169. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/tags.rb +7 -7
  170. data/lib/2016-09-01/generated/azure_mgmt_resources/version.rb +8 -0
  171. data/lib/2017-05-10/generated/azure_mgmt_resources.rb +80 -0
  172. data/lib/2017-05-10/generated/azure_mgmt_resources/deployment_operations.rb +335 -0
  173. data/lib/{generated → 2017-05-10/generated}/azure_mgmt_resources/deployments.rb +12 -12
  174. data/lib/2017-05-10/generated/azure_mgmt_resources/models/alias_path_type.rb +61 -0
  175. data/lib/2017-05-10/generated/azure_mgmt_resources/models/alias_type.rb +62 -0
  176. data/lib/2017-05-10/generated/azure_mgmt_resources/models/basic_dependency.rb +64 -0
  177. data/lib/2017-05-10/generated/azure_mgmt_resources/models/debug_setting.rb +52 -0
  178. data/lib/2017-05-10/generated/azure_mgmt_resources/models/dependency.rb +82 -0
  179. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment.rb +45 -0
  180. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_export_result.rb +44 -0
  181. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_extended.rb +65 -0
  182. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +44 -0
  183. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_list_result.rb +95 -0
  184. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_mode.rb +16 -0
  185. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_operation.rb +67 -0
  186. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +125 -0
  187. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +95 -0
  188. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_properties.rb +117 -0
  189. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +183 -0
  190. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_validate_result.rb +57 -0
  191. data/lib/2017-05-10/generated/azure_mgmt_resources/models/export_template_request.rb +65 -0
  192. data/lib/2017-05-10/generated/azure_mgmt_resources/models/generic_resource.rb +145 -0
  193. data/lib/2017-05-10/generated/azure_mgmt_resources/models/generic_resource_filter.rb +64 -0
  194. data/lib/{generated → 2017-05-10/generated}/azure_mgmt_resources/models/http_message.rb +1 -1
  195. data/lib/2017-05-10/generated/azure_mgmt_resources/models/identity.rb +68 -0
  196. data/lib/2017-05-10/generated/azure_mgmt_resources/models/parameters_link.rb +55 -0
  197. data/lib/2017-05-10/generated/azure_mgmt_resources/models/plan.rb +74 -0
  198. data/lib/2017-05-10/generated/azure_mgmt_resources/models/provider.rb +86 -0
  199. data/lib/2017-05-10/generated/azure_mgmt_resources/models/provider_list_result.rb +95 -0
  200. data/lib/2017-05-10/generated/azure_mgmt_resources/models/provider_resource_type.rb +115 -0
  201. data/lib/{generated → 2017-05-10/generated}/azure_mgmt_resources/models/resource.rb +1 -1
  202. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_group.rb +107 -0
  203. data/lib/{generated → 2017-05-10/generated}/azure_mgmt_resources/models/resource_group_export_result.rb +1 -1
  204. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_group_filter.rb +54 -0
  205. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_group_list_result.rb +95 -0
  206. data/lib/{generated → 2017-05-10/generated}/azure_mgmt_resources/models/resource_group_patchable.rb +1 -1
  207. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_group_properties.rb +45 -0
  208. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_identity_type.rb +15 -0
  209. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_list_result.rb +95 -0
  210. data/lib/{generated → 2017-05-10/generated}/azure_mgmt_resources/models/resource_management_error_with_details.rb +1 -1
  211. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +85 -0
  212. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resources_move_info.rb +61 -0
  213. data/lib/2017-05-10/generated/azure_mgmt_resources/models/sku.rb +94 -0
  214. data/lib/{generated → 2017-05-10/generated}/azure_mgmt_resources/models/sub_resource.rb +1 -1
  215. data/lib/2017-05-10/generated/azure_mgmt_resources/models/tag_count.rb +54 -0
  216. data/lib/2017-05-10/generated/azure_mgmt_resources/models/tag_details.rb +85 -0
  217. data/lib/2017-05-10/generated/azure_mgmt_resources/models/tag_value.rb +65 -0
  218. data/lib/2017-05-10/generated/azure_mgmt_resources/models/tags_list_result.rb +95 -0
  219. data/lib/2017-05-10/generated/azure_mgmt_resources/models/target_resource.rb +64 -0
  220. data/lib/2017-05-10/generated/azure_mgmt_resources/models/template_link.rb +55 -0
  221. data/lib/2017-05-10/generated/azure_mgmt_resources/module_definition.rb +9 -0
  222. data/lib/2017-05-10/generated/azure_mgmt_resources/providers.rb +515 -0
  223. data/lib/{generated → 2017-05-10/generated}/azure_mgmt_resources/resource_groups.rb +11 -11
  224. data/lib/{generated → 2017-05-10/generated}/azure_mgmt_resources/resource_management_client.rb +3 -3
  225. data/lib/{generated → 2017-05-10/generated}/azure_mgmt_resources/resources.rb +17 -17
  226. data/lib/2017-05-10/generated/azure_mgmt_resources/tags.rb +593 -0
  227. data/lib/2017-05-10/generated/azure_mgmt_resources/version.rb +8 -0
  228. data/lib/azure_mgmt_resources.rb +6 -1
  229. data/lib/module_definition.rb +7 -0
  230. data/lib/profiles/common/configurable.rb +73 -0
  231. data/lib/profiles/common/default.rb +68 -0
  232. data/lib/profiles/latest/modules/resources_profile_module.rb +240 -0
  233. data/lib/profiles/latest/resources_latest_profile_client.rb +33 -0
  234. data/lib/profiles/latest/resources_module_definition.rb +9 -0
  235. data/lib/profiles/v2017_03_09/modules/resources_profile_module.rb +236 -0
  236. data/lib/profiles/v2017_03_09/resources_module_definition.rb +9 -0
  237. data/lib/profiles/v2017_03_09/resources_v2017_03_09_profile_client.rb +33 -0
  238. data/lib/version.rb +7 -0
  239. metadata +237 -59
  240. data/lib/generated/azure_mgmt_resources.rb +0 -80
@@ -0,0 +1,45 @@
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_02_01
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class SubResource
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Resource Id
17
+ attr_accessor :id
18
+
19
+
20
+ #
21
+ # Mapper for SubResource class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'SubResource',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'SubResource',
31
+ model_properties: {
32
+ id: {
33
+ required: false,
34
+ serialized_name: 'id',
35
+ type: {
36
+ name: 'String'
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,54 @@
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_02_01
7
+ module Models
8
+ #
9
+ # Tag count.
10
+ #
11
+ class TagCount
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Type of count.
16
+ attr_accessor :type
17
+
18
+ # @return [String] Value of count.
19
+ attr_accessor :value
20
+
21
+
22
+ #
23
+ # Mapper for TagCount class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ required: false,
29
+ serialized_name: 'TagCount',
30
+ type: {
31
+ name: 'Composite',
32
+ class_name: 'TagCount',
33
+ model_properties: {
34
+ type: {
35
+ required: false,
36
+ serialized_name: 'type',
37
+ type: {
38
+ name: 'String'
39
+ }
40
+ },
41
+ value: {
42
+ required: false,
43
+ serialized_name: 'value',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,83 @@
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_02_01
7
+ module Models
8
+ #
9
+ # Tag details.
10
+ #
11
+ class TagDetails
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The tag ID.
16
+ attr_accessor :id
17
+
18
+ # @return [String] The tag name.
19
+ attr_accessor :tag_name
20
+
21
+ # @return [TagCount] The tag count.
22
+ attr_accessor :count
23
+
24
+ # @return [Array<TagValue>] The list of tag values.
25
+ attr_accessor :values
26
+
27
+
28
+ #
29
+ # Mapper for TagDetails class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ required: false,
35
+ serialized_name: 'TagDetails',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'TagDetails',
39
+ model_properties: {
40
+ id: {
41
+ required: false,
42
+ serialized_name: 'id',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ tag_name: {
48
+ required: false,
49
+ serialized_name: 'tagName',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ count: {
55
+ required: false,
56
+ serialized_name: 'count',
57
+ type: {
58
+ name: 'Composite',
59
+ class_name: 'TagCount'
60
+ }
61
+ },
62
+ values: {
63
+ required: false,
64
+ serialized_name: 'values',
65
+ type: {
66
+ name: 'Sequence',
67
+ element: {
68
+ required: false,
69
+ serialized_name: 'TagValueElementType',
70
+ type: {
71
+ name: 'Composite',
72
+ class_name: 'TagValue'
73
+ }
74
+ }
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
80
+ end
81
+ end
82
+ end
83
+ end
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Resources
6
+ module Azure::Resources::Mgmt::V2016_02_01
7
7
  module Models
8
8
  #
9
9
  # Tag information.
@@ -0,0 +1,94 @@
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_02_01
7
+ module Models
8
+ #
9
+ # List of subscription tags.
10
+ #
11
+ class TagsListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<TagDetails>] The list of tags.
17
+ attr_accessor :value
18
+
19
+ # @return [String] The URL to get the next set of results.
20
+ attr_accessor :next_link
21
+
22
+ # return [Proc] with next page method call.
23
+ attr_accessor :next_method
24
+
25
+ #
26
+ # Gets the rest of the items for the request, enabling auto-pagination.
27
+ #
28
+ # @return [Array<TagDetails>] operation results.
29
+ #
30
+ def get_all_items
31
+ items = @value
32
+ page = self
33
+ while page.next_link != nil do
34
+ page = page.get_next_page
35
+ items.concat(page.value)
36
+ end
37
+ items
38
+ end
39
+
40
+ #
41
+ # Gets the next page of results.
42
+ #
43
+ # @return [TagsListResult] with next page content.
44
+ #
45
+ def get_next_page
46
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
47
+ unless response.nil?
48
+ @next_link = response.body.next_link
49
+ @value = response.body.value
50
+ self
51
+ end
52
+ end
53
+
54
+ #
55
+ # Mapper for TagsListResult class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ required: false,
61
+ serialized_name: 'TagsListResult',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'TagsListResult',
65
+ model_properties: {
66
+ value: {
67
+ required: false,
68
+ serialized_name: 'value',
69
+ type: {
70
+ name: 'Sequence',
71
+ element: {
72
+ required: false,
73
+ serialized_name: 'TagDetailsElementType',
74
+ type: {
75
+ name: 'Composite',
76
+ class_name: 'TagDetails'
77
+ }
78
+ }
79
+ }
80
+ },
81
+ next_link: {
82
+ required: true,
83
+ serialized_name: 'nextLink',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ end
92
+ end
93
+ end
94
+ end
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Resources
6
+ module Azure::Resources::Mgmt::V2016_02_01
7
7
  module Models
8
8
  #
9
9
  # Target resource.
@@ -0,0 +1,55 @@
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_02_01
7
+ module Models
8
+ #
9
+ # Entity representing the reference to the template.
10
+ #
11
+ class TemplateLink
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] URI referencing the template.
16
+ attr_accessor :uri
17
+
18
+ # @return [String] If included it must match the ContentVersion in the
19
+ # template.
20
+ attr_accessor :content_version
21
+
22
+
23
+ #
24
+ # Mapper for TemplateLink class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ required: false,
30
+ serialized_name: 'TemplateLink',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'TemplateLink',
34
+ model_properties: {
35
+ uri: {
36
+ required: true,
37
+ serialized_name: 'uri',
38
+ type: {
39
+ name: 'String'
40
+ }
41
+ },
42
+ content_version: {
43
+ required: false,
44
+ serialized_name: 'contentVersion',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ end
53
+ end
54
+ end
55
+ 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::V2016_02_01 end
@@ -0,0 +1,507 @@
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_02_01
7
+ #
8
+ # Providers
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 provider from a subscription.
26
+ #
27
+ # @param resource_provider_namespace [String] Namespace of the resource
28
+ # provider.
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).value!
36
+ response.body unless response.nil?
37
+ end
38
+
39
+ #
40
+ # Unregisters provider from a subscription.
41
+ #
42
+ # @param resource_provider_namespace [String] Namespace of the resource
43
+ # provider.
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).value!
51
+ end
52
+
53
+ #
54
+ # Unregisters provider from a subscription.
55
+ #
56
+ # @param resource_provider_namespace [String] Namespace of the resource
57
+ # provider.
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
+
71
+ # Set Headers
72
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
73
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
74
+ path_template = 'subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/unregister'
75
+
76
+ request_url = @base_url || @client.base_url
77
+
78
+ options = {
79
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
80
+ path_params: {'resourceProviderNamespace' => resource_provider_namespace,'subscriptionId' => @client.subscription_id},
81
+ query_params: {'api-version' => @client.api_version},
82
+ headers: request_headers.merge(custom_headers || {}),
83
+ base_url: request_url
84
+ }
85
+ promise = @client.make_request_async(:post, path_template, options)
86
+
87
+ promise = promise.then do |result|
88
+ http_response = result.response
89
+ status_code = http_response.status
90
+ response_content = http_response.body
91
+ unless status_code == 200
92
+ error_model = JSON.load(response_content)
93
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
94
+ end
95
+
96
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
97
+ # Deserialize Response
98
+ if status_code == 200
99
+ begin
100
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
101
+ result_mapper = Azure::Resources::Mgmt::V2016_02_01::Models::Provider.mapper()
102
+ result.body = @client.deserialize(result_mapper, parsed_response)
103
+ rescue Exception => e
104
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
105
+ end
106
+ end
107
+
108
+ result
109
+ end
110
+
111
+ promise.execute
112
+ end
113
+
114
+ #
115
+ # Registers provider to be used with a subscription.
116
+ #
117
+ # @param resource_provider_namespace [String] Namespace of the resource
118
+ # provider.
119
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
120
+ # will be added to the HTTP request.
121
+ #
122
+ # @return [Provider] operation results.
123
+ #
124
+ def register(resource_provider_namespace, custom_headers = nil)
125
+ response = register_async(resource_provider_namespace, custom_headers).value!
126
+ response.body unless response.nil?
127
+ end
128
+
129
+ #
130
+ # Registers provider to be used with a subscription.
131
+ #
132
+ # @param resource_provider_namespace [String] Namespace of the resource
133
+ # provider.
134
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
135
+ # will be added to the HTTP request.
136
+ #
137
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
138
+ #
139
+ def register_with_http_info(resource_provider_namespace, custom_headers = nil)
140
+ register_async(resource_provider_namespace, custom_headers).value!
141
+ end
142
+
143
+ #
144
+ # Registers provider to be used with a subscription.
145
+ #
146
+ # @param resource_provider_namespace [String] Namespace of the resource
147
+ # provider.
148
+ # @param [Hash{String => String}] A hash of custom headers that will be added
149
+ # to the HTTP request.
150
+ #
151
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
152
+ #
153
+ def register_async(resource_provider_namespace, custom_headers = nil)
154
+ fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
155
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
156
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
157
+
158
+
159
+ request_headers = {}
160
+
161
+ # Set Headers
162
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
163
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
164
+ path_template = 'subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register'
165
+
166
+ request_url = @base_url || @client.base_url
167
+
168
+ options = {
169
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
170
+ path_params: {'resourceProviderNamespace' => resource_provider_namespace,'subscriptionId' => @client.subscription_id},
171
+ query_params: {'api-version' => @client.api_version},
172
+ headers: request_headers.merge(custom_headers || {}),
173
+ base_url: request_url
174
+ }
175
+ promise = @client.make_request_async(:post, path_template, options)
176
+
177
+ promise = promise.then do |result|
178
+ http_response = result.response
179
+ status_code = http_response.status
180
+ response_content = http_response.body
181
+ unless status_code == 200
182
+ error_model = JSON.load(response_content)
183
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
184
+ end
185
+
186
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
187
+ # Deserialize Response
188
+ if status_code == 200
189
+ begin
190
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
191
+ result_mapper = Azure::Resources::Mgmt::V2016_02_01::Models::Provider.mapper()
192
+ result.body = @client.deserialize(result_mapper, parsed_response)
193
+ rescue Exception => e
194
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
195
+ end
196
+ end
197
+
198
+ result
199
+ end
200
+
201
+ promise.execute
202
+ end
203
+
204
+ #
205
+ # Gets a list of resource providers.
206
+ #
207
+ # @param top [Integer] Query parameters. If null is passed returns all
208
+ # deployments.
209
+ # @param expand [String] The $expand query parameter. e.g. To include property
210
+ # aliases in response, use $expand=resourceTypes/aliases.
211
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
212
+ # will be added to the HTTP request.
213
+ #
214
+ # @return [Array<Provider>] operation results.
215
+ #
216
+ def list(top = nil, expand = nil, custom_headers = nil)
217
+ first_page = list_as_lazy(top, expand, custom_headers)
218
+ first_page.get_all_items
219
+ end
220
+
221
+ #
222
+ # Gets a list of resource providers.
223
+ #
224
+ # @param top [Integer] Query parameters. If null is passed returns all
225
+ # deployments.
226
+ # @param expand [String] The $expand query parameter. e.g. To include property
227
+ # aliases in response, use $expand=resourceTypes/aliases.
228
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
229
+ # will be added to the HTTP request.
230
+ #
231
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
232
+ #
233
+ def list_with_http_info(top = nil, expand = nil, custom_headers = nil)
234
+ list_async(top, expand, custom_headers).value!
235
+ end
236
+
237
+ #
238
+ # Gets a list of resource providers.
239
+ #
240
+ # @param top [Integer] Query parameters. If null is passed returns all
241
+ # deployments.
242
+ # @param expand [String] The $expand query parameter. e.g. To include property
243
+ # aliases in response, use $expand=resourceTypes/aliases.
244
+ # @param [Hash{String => String}] A hash of custom headers that will be added
245
+ # to the HTTP request.
246
+ #
247
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
248
+ #
249
+ def list_async(top = nil, expand = nil, custom_headers = nil)
250
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
251
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
252
+
253
+
254
+ request_headers = {}
255
+
256
+ # Set Headers
257
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
258
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
259
+ path_template = 'subscriptions/{subscriptionId}/providers'
260
+
261
+ request_url = @base_url || @client.base_url
262
+
263
+ options = {
264
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
265
+ path_params: {'subscriptionId' => @client.subscription_id},
266
+ query_params: {'$top' => top,'$expand' => expand,'api-version' => @client.api_version},
267
+ headers: request_headers.merge(custom_headers || {}),
268
+ base_url: request_url
269
+ }
270
+ promise = @client.make_request_async(:get, path_template, options)
271
+
272
+ promise = promise.then do |result|
273
+ http_response = result.response
274
+ status_code = http_response.status
275
+ response_content = http_response.body
276
+ unless status_code == 200
277
+ error_model = JSON.load(response_content)
278
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
279
+ end
280
+
281
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
282
+ # Deserialize Response
283
+ if status_code == 200
284
+ begin
285
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
286
+ result_mapper = Azure::Resources::Mgmt::V2016_02_01::Models::ProviderListResult.mapper()
287
+ result.body = @client.deserialize(result_mapper, parsed_response)
288
+ rescue Exception => e
289
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
290
+ end
291
+ end
292
+
293
+ result
294
+ end
295
+
296
+ promise.execute
297
+ end
298
+
299
+ #
300
+ # Gets a resource provider.
301
+ #
302
+ # @param resource_provider_namespace [String] Namespace of the resource
303
+ # provider.
304
+ # @param expand [String] The $expand query parameter. e.g. To include property
305
+ # aliases in response, use $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 [Provider] operation results.
310
+ #
311
+ def get(resource_provider_namespace, expand = nil, custom_headers = nil)
312
+ response = get_async(resource_provider_namespace, expand, custom_headers).value!
313
+ response.body unless response.nil?
314
+ end
315
+
316
+ #
317
+ # Gets a resource provider.
318
+ #
319
+ # @param resource_provider_namespace [String] Namespace of the resource
320
+ # provider.
321
+ # @param expand [String] The $expand query parameter. e.g. To include property
322
+ # aliases in response, use $expand=resourceTypes/aliases.
323
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
324
+ # will be added to the HTTP request.
325
+ #
326
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
327
+ #
328
+ def get_with_http_info(resource_provider_namespace, expand = nil, custom_headers = nil)
329
+ get_async(resource_provider_namespace, expand, custom_headers).value!
330
+ end
331
+
332
+ #
333
+ # Gets a resource provider.
334
+ #
335
+ # @param resource_provider_namespace [String] Namespace of the resource
336
+ # provider.
337
+ # @param expand [String] The $expand query parameter. e.g. To include property
338
+ # aliases in response, use $expand=resourceTypes/aliases.
339
+ # @param [Hash{String => String}] A hash of custom headers that will be added
340
+ # to the HTTP request.
341
+ #
342
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
343
+ #
344
+ def get_async(resource_provider_namespace, expand = nil, custom_headers = nil)
345
+ fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
346
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
347
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
348
+
349
+
350
+ request_headers = {}
351
+
352
+ # Set Headers
353
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
354
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
355
+ path_template = 'subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}'
356
+
357
+ request_url = @base_url || @client.base_url
358
+
359
+ options = {
360
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
361
+ path_params: {'resourceProviderNamespace' => resource_provider_namespace,'subscriptionId' => @client.subscription_id},
362
+ query_params: {'$expand' => expand,'api-version' => @client.api_version},
363
+ headers: request_headers.merge(custom_headers || {}),
364
+ base_url: request_url
365
+ }
366
+ promise = @client.make_request_async(:get, path_template, options)
367
+
368
+ promise = promise.then do |result|
369
+ http_response = result.response
370
+ status_code = http_response.status
371
+ response_content = http_response.body
372
+ unless status_code == 200
373
+ error_model = JSON.load(response_content)
374
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
375
+ end
376
+
377
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
378
+ # Deserialize Response
379
+ if status_code == 200
380
+ begin
381
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
382
+ result_mapper = Azure::Resources::Mgmt::V2016_02_01::Models::Provider.mapper()
383
+ result.body = @client.deserialize(result_mapper, parsed_response)
384
+ rescue Exception => e
385
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
386
+ end
387
+ end
388
+
389
+ result
390
+ end
391
+
392
+ promise.execute
393
+ end
394
+
395
+ #
396
+ # Gets a list of resource providers.
397
+ #
398
+ # @param next_page_link [String] The NextLink from the previous successful call
399
+ # to List operation.
400
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
401
+ # will be added to the HTTP request.
402
+ #
403
+ # @return [ProviderListResult] operation results.
404
+ #
405
+ def list_next(next_page_link, custom_headers = nil)
406
+ response = list_next_async(next_page_link, custom_headers).value!
407
+ response.body unless response.nil?
408
+ end
409
+
410
+ #
411
+ # Gets a list of resource providers.
412
+ #
413
+ # @param next_page_link [String] The NextLink from the previous successful call
414
+ # to List operation.
415
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
416
+ # will be added to the HTTP request.
417
+ #
418
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
419
+ #
420
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
421
+ list_next_async(next_page_link, custom_headers).value!
422
+ end
423
+
424
+ #
425
+ # Gets a list of resource providers.
426
+ #
427
+ # @param next_page_link [String] The NextLink from the previous successful call
428
+ # to List operation.
429
+ # @param [Hash{String => String}] A hash of custom headers that will be added
430
+ # to the HTTP request.
431
+ #
432
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
433
+ #
434
+ def list_next_async(next_page_link, custom_headers = nil)
435
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
436
+
437
+
438
+ request_headers = {}
439
+
440
+ # Set Headers
441
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
442
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
443
+ path_template = '{nextLink}'
444
+
445
+ request_url = @base_url || @client.base_url
446
+
447
+ options = {
448
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
449
+ skip_encoding_path_params: {'nextLink' => next_page_link},
450
+ headers: request_headers.merge(custom_headers || {}),
451
+ base_url: request_url
452
+ }
453
+ promise = @client.make_request_async(:get, path_template, options)
454
+
455
+ promise = promise.then do |result|
456
+ http_response = result.response
457
+ status_code = http_response.status
458
+ response_content = http_response.body
459
+ unless status_code == 200
460
+ error_model = JSON.load(response_content)
461
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
462
+ end
463
+
464
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
465
+ # Deserialize Response
466
+ if status_code == 200
467
+ begin
468
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
469
+ result_mapper = Azure::Resources::Mgmt::V2016_02_01::Models::ProviderListResult.mapper()
470
+ result.body = @client.deserialize(result_mapper, parsed_response)
471
+ rescue Exception => e
472
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
473
+ end
474
+ end
475
+
476
+ result
477
+ end
478
+
479
+ promise.execute
480
+ end
481
+
482
+ #
483
+ # Gets a list of resource providers.
484
+ #
485
+ # @param top [Integer] Query parameters. If null is passed returns all
486
+ # deployments.
487
+ # @param expand [String] The $expand query parameter. e.g. To include property
488
+ # aliases in response, use $expand=resourceTypes/aliases.
489
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
490
+ # will be added to the HTTP request.
491
+ #
492
+ # @return [ProviderListResult] which provide lazy access to pages of the
493
+ # response.
494
+ #
495
+ def list_as_lazy(top = nil, expand = nil, custom_headers = nil)
496
+ response = list_async(top, expand, custom_headers).value!
497
+ unless response.nil?
498
+ page = response.body
499
+ page.next_method = Proc.new do |next_page_link|
500
+ list_next_async(next_page_link, custom_headers)
501
+ end
502
+ page
503
+ end
504
+ end
505
+
506
+ end
507
+ end