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
@@ -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_09_01
7
7
  #
8
8
  # Provides operations for working with resources and resource groups.
9
9
  #
@@ -179,7 +179,7 @@ module Azure::ARM::Resources
179
179
  if status_code == 200
180
180
  begin
181
181
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
182
- result_mapper = Azure::ARM::Resources::Models::TagValue.mapper()
182
+ result_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::TagValue.mapper()
183
183
  result.body = @client.deserialize(result_mapper, parsed_response)
184
184
  rescue Exception => e
185
185
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -189,7 +189,7 @@ module Azure::ARM::Resources
189
189
  if status_code == 201
190
190
  begin
191
191
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
192
- result_mapper = Azure::ARM::Resources::Models::TagValue.mapper()
192
+ result_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::TagValue.mapper()
193
193
  result.body = @client.deserialize(result_mapper, parsed_response)
194
194
  rescue Exception => e
195
195
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -288,7 +288,7 @@ module Azure::ARM::Resources
288
288
  if status_code == 200
289
289
  begin
290
290
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
291
- result_mapper = Azure::ARM::Resources::Models::TagDetails.mapper()
291
+ result_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::TagDetails.mapper()
292
292
  result.body = @client.deserialize(result_mapper, parsed_response)
293
293
  rescue Exception => e
294
294
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -298,7 +298,7 @@ module Azure::ARM::Resources
298
298
  if status_code == 201
299
299
  begin
300
300
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
301
- result_mapper = Azure::ARM::Resources::Models::TagDetails.mapper()
301
+ result_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::TagDetails.mapper()
302
302
  result.body = @client.deserialize(result_mapper, parsed_response)
303
303
  rescue Exception => e
304
304
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -466,7 +466,7 @@ module Azure::ARM::Resources
466
466
  if status_code == 200
467
467
  begin
468
468
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
469
- result_mapper = Azure::ARM::Resources::Models::TagsListResult.mapper()
469
+ result_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::TagsListResult.mapper()
470
470
  result.body = @client.deserialize(result_mapper, parsed_response)
471
471
  rescue Exception => e
472
472
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -556,7 +556,7 @@ module Azure::ARM::Resources
556
556
  if status_code == 200
557
557
  begin
558
558
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
559
- result_mapper = Azure::ARM::Resources::Models::TagsListResult.mapper()
559
+ result_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::TagsListResult.mapper()
560
560
  result.body = @client.deserialize(result_mapper, parsed_response)
561
561
  rescue Exception => e
562
562
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -0,0 +1,8 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Resources::Mgmt::V2016_09_01
7
+ VERSION = '0.15.0'
8
+ end
@@ -0,0 +1,80 @@
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
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '2017-05-10/generated/azure_mgmt_resources/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::Resources::Mgmt::V2017_05_10
23
+ autoload :Deployments, '2017-05-10/generated/azure_mgmt_resources/deployments.rb'
24
+ autoload :Providers, '2017-05-10/generated/azure_mgmt_resources/providers.rb'
25
+ autoload :Resources, '2017-05-10/generated/azure_mgmt_resources/resources.rb'
26
+ autoload :ResourceGroups, '2017-05-10/generated/azure_mgmt_resources/resource_groups.rb'
27
+ autoload :Tags, '2017-05-10/generated/azure_mgmt_resources/tags.rb'
28
+ autoload :DeploymentOperations, '2017-05-10/generated/azure_mgmt_resources/deployment_operations.rb'
29
+ autoload :ResourceManagementClient, '2017-05-10/generated/azure_mgmt_resources/resource_management_client.rb'
30
+
31
+ module Models
32
+ autoload :Sku, '2017-05-10/generated/azure_mgmt_resources/models/sku.rb'
33
+ autoload :Identity, '2017-05-10/generated/azure_mgmt_resources/models/identity.rb'
34
+ autoload :GenericResourceFilter, '2017-05-10/generated/azure_mgmt_resources/models/generic_resource_filter.rb'
35
+ autoload :ResourceGroupFilter, '2017-05-10/generated/azure_mgmt_resources/models/resource_group_filter.rb'
36
+ autoload :ParametersLink, '2017-05-10/generated/azure_mgmt_resources/models/parameters_link.rb'
37
+ autoload :ResourceListResult, '2017-05-10/generated/azure_mgmt_resources/models/resource_list_result.rb'
38
+ autoload :DeploymentProperties, '2017-05-10/generated/azure_mgmt_resources/models/deployment_properties.rb'
39
+ autoload :ResourceGroupProperties, '2017-05-10/generated/azure_mgmt_resources/models/resource_group_properties.rb'
40
+ autoload :DeploymentExportResult, '2017-05-10/generated/azure_mgmt_resources/models/deployment_export_result.rb'
41
+ autoload :ResourceGroup, '2017-05-10/generated/azure_mgmt_resources/models/resource_group.rb'
42
+ autoload :AliasPathType, '2017-05-10/generated/azure_mgmt_resources/models/alias_path_type.rb'
43
+ autoload :ResourceGroupPatchable, '2017-05-10/generated/azure_mgmt_resources/models/resource_group_patchable.rb'
44
+ autoload :ProviderResourceType, '2017-05-10/generated/azure_mgmt_resources/models/provider_resource_type.rb'
45
+ autoload :ResourceGroupListResult, '2017-05-10/generated/azure_mgmt_resources/models/resource_group_list_result.rb'
46
+ autoload :BasicDependency, '2017-05-10/generated/azure_mgmt_resources/models/basic_dependency.rb'
47
+ autoload :ResourcesMoveInfo, '2017-05-10/generated/azure_mgmt_resources/models/resources_move_info.rb'
48
+ autoload :DeploymentPropertiesExtended, '2017-05-10/generated/azure_mgmt_resources/models/deployment_properties_extended.rb'
49
+ autoload :ExportTemplateRequest, '2017-05-10/generated/azure_mgmt_resources/models/export_template_request.rb'
50
+ autoload :DeploymentExtended, '2017-05-10/generated/azure_mgmt_resources/models/deployment_extended.rb'
51
+ autoload :TagCount, '2017-05-10/generated/azure_mgmt_resources/models/tag_count.rb'
52
+ autoload :ProviderListResult, '2017-05-10/generated/azure_mgmt_resources/models/provider_list_result.rb'
53
+ autoload :TagValue, '2017-05-10/generated/azure_mgmt_resources/models/tag_value.rb'
54
+ autoload :DeploymentExtendedFilter, '2017-05-10/generated/azure_mgmt_resources/models/deployment_extended_filter.rb'
55
+ autoload :TagDetails, '2017-05-10/generated/azure_mgmt_resources/models/tag_details.rb'
56
+ autoload :DebugSetting, '2017-05-10/generated/azure_mgmt_resources/models/debug_setting.rb'
57
+ autoload :TagsListResult, '2017-05-10/generated/azure_mgmt_resources/models/tags_list_result.rb'
58
+ autoload :ResourceManagementErrorWithDetails, '2017-05-10/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb'
59
+ autoload :TargetResource, '2017-05-10/generated/azure_mgmt_resources/models/target_resource.rb'
60
+ autoload :Provider, '2017-05-10/generated/azure_mgmt_resources/models/provider.rb'
61
+ autoload :HttpMessage, '2017-05-10/generated/azure_mgmt_resources/models/http_message.rb'
62
+ autoload :DeploymentValidateResult, '2017-05-10/generated/azure_mgmt_resources/models/deployment_validate_result.rb'
63
+ autoload :DeploymentOperationProperties, '2017-05-10/generated/azure_mgmt_resources/models/deployment_operation_properties.rb'
64
+ autoload :Plan, '2017-05-10/generated/azure_mgmt_resources/models/plan.rb'
65
+ autoload :DeploymentOperation, '2017-05-10/generated/azure_mgmt_resources/models/deployment_operation.rb'
66
+ autoload :Deployment, '2017-05-10/generated/azure_mgmt_resources/models/deployment.rb'
67
+ autoload :DeploymentOperationsListResult, '2017-05-10/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb'
68
+ autoload :Dependency, '2017-05-10/generated/azure_mgmt_resources/models/dependency.rb'
69
+ autoload :ResourceProviderOperationDisplayProperties, '2017-05-10/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb'
70
+ autoload :TemplateLink, '2017-05-10/generated/azure_mgmt_resources/models/template_link.rb'
71
+ autoload :Resource, '2017-05-10/generated/azure_mgmt_resources/models/resource.rb'
72
+ autoload :DeploymentListResult, '2017-05-10/generated/azure_mgmt_resources/models/deployment_list_result.rb'
73
+ autoload :SubResource, '2017-05-10/generated/azure_mgmt_resources/models/sub_resource.rb'
74
+ autoload :AliasType, '2017-05-10/generated/azure_mgmt_resources/models/alias_type.rb'
75
+ autoload :ResourceGroupExportResult, '2017-05-10/generated/azure_mgmt_resources/models/resource_group_export_result.rb'
76
+ autoload :GenericResource, '2017-05-10/generated/azure_mgmt_resources/models/generic_resource.rb'
77
+ autoload :DeploymentMode, '2017-05-10/generated/azure_mgmt_resources/models/deployment_mode.rb'
78
+ autoload :ResourceIdentityType, '2017-05-10/generated/azure_mgmt_resources/models/resource_identity_type.rb'
79
+ end
80
+ end
@@ -0,0 +1,335 @@
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::V2017_05_10
7
+ #
8
+ # Provides operations for working with resources and resource groups.
9
+ #
10
+ class DeploymentOperations
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the DeploymentOperations 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
+ # Gets a deployments operation.
26
+ #
27
+ # @param resource_group_name [String] The name of the resource group. The name
28
+ # is case insensitive.
29
+ # @param deployment_name [String] The name of the deployment.
30
+ # @param operation_id [String] The ID of the operation to get.
31
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
32
+ # will be added to the HTTP request.
33
+ #
34
+ # @return [DeploymentOperation] operation results.
35
+ #
36
+ def get(resource_group_name, deployment_name, operation_id, custom_headers = nil)
37
+ response = get_async(resource_group_name, deployment_name, operation_id, custom_headers).value!
38
+ response.body unless response.nil?
39
+ end
40
+
41
+ #
42
+ # Gets a deployments operation.
43
+ #
44
+ # @param resource_group_name [String] The name of the resource group. The name
45
+ # is case insensitive.
46
+ # @param deployment_name [String] The name of the deployment.
47
+ # @param operation_id [String] The ID of the operation to get.
48
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
49
+ # will be added to the HTTP request.
50
+ #
51
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
+ #
53
+ def get_with_http_info(resource_group_name, deployment_name, operation_id, custom_headers = nil)
54
+ get_async(resource_group_name, deployment_name, operation_id, custom_headers).value!
55
+ end
56
+
57
+ #
58
+ # Gets a deployments operation.
59
+ #
60
+ # @param resource_group_name [String] The name of the resource group. The name
61
+ # is case insensitive.
62
+ # @param deployment_name [String] The name of the deployment.
63
+ # @param operation_id [String] The ID of the operation to get.
64
+ # @param [Hash{String => String}] A hash of custom headers that will be added
65
+ # to the HTTP request.
66
+ #
67
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
68
+ #
69
+ def get_async(resource_group_name, deployment_name, operation_id, custom_headers = nil)
70
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
71
+ fail ArgumentError, 'deployment_name is nil' if deployment_name.nil?
72
+ fail ArgumentError, 'operation_id is nil' if operation_id.nil?
73
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
74
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
75
+
76
+
77
+ request_headers = {}
78
+
79
+ # Set Headers
80
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
81
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
82
+ path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId}'
83
+
84
+ request_url = @base_url || @client.base_url
85
+
86
+ options = {
87
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
88
+ path_params: {'resourceGroupName' => resource_group_name,'deploymentName' => deployment_name,'operationId' => operation_id,'subscriptionId' => @client.subscription_id},
89
+ query_params: {'api-version' => @client.api_version},
90
+ headers: request_headers.merge(custom_headers || {}),
91
+ base_url: request_url
92
+ }
93
+ promise = @client.make_request_async(:get, path_template, options)
94
+
95
+ promise = promise.then do |result|
96
+ http_response = result.response
97
+ status_code = http_response.status
98
+ response_content = http_response.body
99
+ unless status_code == 200
100
+ error_model = JSON.load(response_content)
101
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
102
+ end
103
+
104
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
105
+ # Deserialize Response
106
+ if status_code == 200
107
+ begin
108
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
109
+ result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::DeploymentOperation.mapper()
110
+ result.body = @client.deserialize(result_mapper, parsed_response)
111
+ rescue Exception => e
112
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
113
+ end
114
+ end
115
+
116
+ result
117
+ end
118
+
119
+ promise.execute
120
+ end
121
+
122
+ #
123
+ # Gets all deployments operations for a deployment.
124
+ #
125
+ # @param resource_group_name [String] The name of the resource group. The name
126
+ # is case insensitive.
127
+ # @param deployment_name [String] The name of the deployment with the operation
128
+ # to get.
129
+ # @param top [Integer] The number of results to return.
130
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
131
+ # will be added to the HTTP request.
132
+ #
133
+ # @return [Array<DeploymentOperation>] operation results.
134
+ #
135
+ def list(resource_group_name, deployment_name, top = nil, custom_headers = nil)
136
+ first_page = list_as_lazy(resource_group_name, deployment_name, top, custom_headers)
137
+ first_page.get_all_items
138
+ end
139
+
140
+ #
141
+ # Gets all deployments operations for a deployment.
142
+ #
143
+ # @param resource_group_name [String] The name of the resource group. The name
144
+ # is case insensitive.
145
+ # @param deployment_name [String] The name of the deployment with the operation
146
+ # to get.
147
+ # @param top [Integer] The number of results to return.
148
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
149
+ # will be added to the HTTP request.
150
+ #
151
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
152
+ #
153
+ def list_with_http_info(resource_group_name, deployment_name, top = nil, custom_headers = nil)
154
+ list_async(resource_group_name, deployment_name, top, custom_headers).value!
155
+ end
156
+
157
+ #
158
+ # Gets all deployments operations for a deployment.
159
+ #
160
+ # @param resource_group_name [String] The name of the resource group. The name
161
+ # is case insensitive.
162
+ # @param deployment_name [String] The name of the deployment with the operation
163
+ # to get.
164
+ # @param top [Integer] The number of results to return.
165
+ # @param [Hash{String => String}] A hash of custom headers that will be added
166
+ # to the HTTP request.
167
+ #
168
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
169
+ #
170
+ def list_async(resource_group_name, deployment_name, top = nil, custom_headers = nil)
171
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
172
+ fail ArgumentError, 'deployment_name is nil' if deployment_name.nil?
173
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
174
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
175
+
176
+
177
+ request_headers = {}
178
+
179
+ # Set Headers
180
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
181
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
182
+ path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations'
183
+
184
+ request_url = @base_url || @client.base_url
185
+
186
+ options = {
187
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
188
+ path_params: {'resourceGroupName' => resource_group_name,'deploymentName' => deployment_name,'subscriptionId' => @client.subscription_id},
189
+ query_params: {'$top' => top,'api-version' => @client.api_version},
190
+ headers: request_headers.merge(custom_headers || {}),
191
+ base_url: request_url
192
+ }
193
+ promise = @client.make_request_async(:get, path_template, options)
194
+
195
+ promise = promise.then do |result|
196
+ http_response = result.response
197
+ status_code = http_response.status
198
+ response_content = http_response.body
199
+ unless status_code == 200
200
+ error_model = JSON.load(response_content)
201
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
202
+ end
203
+
204
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
205
+ # Deserialize Response
206
+ if status_code == 200
207
+ begin
208
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
209
+ result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::DeploymentOperationsListResult.mapper()
210
+ result.body = @client.deserialize(result_mapper, parsed_response)
211
+ rescue Exception => e
212
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
213
+ end
214
+ end
215
+
216
+ result
217
+ end
218
+
219
+ promise.execute
220
+ end
221
+
222
+ #
223
+ # Gets all deployments operations for a deployment.
224
+ #
225
+ # @param next_page_link [String] The NextLink from the previous successful call
226
+ # to List operation.
227
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
228
+ # will be added to the HTTP request.
229
+ #
230
+ # @return [DeploymentOperationsListResult] operation results.
231
+ #
232
+ def list_next(next_page_link, custom_headers = nil)
233
+ response = list_next_async(next_page_link, custom_headers).value!
234
+ response.body unless response.nil?
235
+ end
236
+
237
+ #
238
+ # Gets all deployments operations for a deployment.
239
+ #
240
+ # @param next_page_link [String] The NextLink from the previous successful call
241
+ # to List operation.
242
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
243
+ # will be added to the HTTP request.
244
+ #
245
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
246
+ #
247
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
248
+ list_next_async(next_page_link, custom_headers).value!
249
+ end
250
+
251
+ #
252
+ # Gets all deployments operations for a deployment.
253
+ #
254
+ # @param next_page_link [String] The NextLink from the previous successful call
255
+ # to List operation.
256
+ # @param [Hash{String => String}] A hash of custom headers that will be added
257
+ # to the HTTP request.
258
+ #
259
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
260
+ #
261
+ def list_next_async(next_page_link, custom_headers = nil)
262
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
263
+
264
+
265
+ request_headers = {}
266
+
267
+ # Set Headers
268
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
269
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
270
+ path_template = '{nextLink}'
271
+
272
+ request_url = @base_url || @client.base_url
273
+
274
+ options = {
275
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
276
+ skip_encoding_path_params: {'nextLink' => next_page_link},
277
+ headers: request_headers.merge(custom_headers || {}),
278
+ base_url: request_url
279
+ }
280
+ promise = @client.make_request_async(:get, path_template, options)
281
+
282
+ promise = promise.then do |result|
283
+ http_response = result.response
284
+ status_code = http_response.status
285
+ response_content = http_response.body
286
+ unless status_code == 200
287
+ error_model = JSON.load(response_content)
288
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
289
+ end
290
+
291
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
292
+ # Deserialize Response
293
+ if status_code == 200
294
+ begin
295
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
296
+ result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::DeploymentOperationsListResult.mapper()
297
+ result.body = @client.deserialize(result_mapper, parsed_response)
298
+ rescue Exception => e
299
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
300
+ end
301
+ end
302
+
303
+ result
304
+ end
305
+
306
+ promise.execute
307
+ end
308
+
309
+ #
310
+ # Gets all deployments operations for a deployment.
311
+ #
312
+ # @param resource_group_name [String] The name of the resource group. The name
313
+ # is case insensitive.
314
+ # @param deployment_name [String] The name of the deployment with the operation
315
+ # to get.
316
+ # @param top [Integer] The number of results to return.
317
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
318
+ # will be added to the HTTP request.
319
+ #
320
+ # @return [DeploymentOperationsListResult] which provide lazy access to pages
321
+ # of the response.
322
+ #
323
+ def list_as_lazy(resource_group_name, deployment_name, top = nil, custom_headers = nil)
324
+ response = list_async(resource_group_name, deployment_name, top, custom_headers).value!
325
+ unless response.nil?
326
+ page = response.body
327
+ page.next_method = Proc.new do |next_page_link|
328
+ list_next_async(next_page_link, custom_headers)
329
+ end
330
+ page
331
+ end
332
+ end
333
+
334
+ end
335
+ end