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::V2017_05_10
7
7
  #
8
8
  # Provides operations for working with resources and resource groups.
9
9
  #
@@ -163,7 +163,7 @@ module Azure::ARM::Resources
163
163
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
164
164
 
165
165
  # Serialize Request
166
- request_mapper = Azure::ARM::Resources::Models::ResourceGroup.mapper()
166
+ request_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::ResourceGroup.mapper()
167
167
  request_content = @client.serialize(request_mapper, parameters)
168
168
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
169
169
 
@@ -195,7 +195,7 @@ module Azure::ARM::Resources
195
195
  if status_code == 201
196
196
  begin
197
197
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
198
- result_mapper = Azure::ARM::Resources::Models::ResourceGroup.mapper()
198
+ result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::ResourceGroup.mapper()
199
199
  result.body = @client.deserialize(result_mapper, parsed_response)
200
200
  rescue Exception => e
201
201
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -205,7 +205,7 @@ module Azure::ARM::Resources
205
205
  if status_code == 200
206
206
  begin
207
207
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
208
- result_mapper = Azure::ARM::Resources::Models::ResourceGroup.mapper()
208
+ result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::ResourceGroup.mapper()
209
209
  result.body = @client.deserialize(result_mapper, parsed_response)
210
210
  rescue Exception => e
211
211
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -337,7 +337,7 @@ module Azure::ARM::Resources
337
337
  if status_code == 200
338
338
  begin
339
339
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
340
- result_mapper = Azure::ARM::Resources::Models::ResourceGroup.mapper()
340
+ result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::ResourceGroup.mapper()
341
341
  result.body = @client.deserialize(result_mapper, parsed_response)
342
342
  rescue Exception => e
343
343
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -423,7 +423,7 @@ module Azure::ARM::Resources
423
423
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
424
424
 
425
425
  # Serialize Request
426
- request_mapper = Azure::ARM::Resources::Models::ResourceGroupPatchable.mapper()
426
+ request_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::ResourceGroupPatchable.mapper()
427
427
  request_content = @client.serialize(request_mapper, parameters)
428
428
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
429
429
 
@@ -455,7 +455,7 @@ module Azure::ARM::Resources
455
455
  if status_code == 200
456
456
  begin
457
457
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
458
- result_mapper = Azure::ARM::Resources::Models::ResourceGroup.mapper()
458
+ result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::ResourceGroup.mapper()
459
459
  result.body = @client.deserialize(result_mapper, parsed_response)
460
460
  rescue Exception => e
461
461
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -529,7 +529,7 @@ module Azure::ARM::Resources
529
529
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
530
530
 
531
531
  # Serialize Request
532
- request_mapper = Azure::ARM::Resources::Models::ExportTemplateRequest.mapper()
532
+ request_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::ExportTemplateRequest.mapper()
533
533
  request_content = @client.serialize(request_mapper, parameters)
534
534
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
535
535
 
@@ -561,7 +561,7 @@ module Azure::ARM::Resources
561
561
  if status_code == 200
562
562
  begin
563
563
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
564
- result_mapper = Azure::ARM::Resources::Models::ResourceGroupExportResult.mapper()
564
+ result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::ResourceGroupExportResult.mapper()
565
565
  result.body = @client.deserialize(result_mapper, parsed_response)
566
566
  rescue Exception => e
567
567
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -653,7 +653,7 @@ module Azure::ARM::Resources
653
653
  if status_code == 200
654
654
  begin
655
655
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
656
- result_mapper = Azure::ARM::Resources::Models::ResourceGroupListResult.mapper()
656
+ result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::ResourceGroupListResult.mapper()
657
657
  result.body = @client.deserialize(result_mapper, parsed_response)
658
658
  rescue Exception => e
659
659
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -831,7 +831,7 @@ module Azure::ARM::Resources
831
831
  if status_code == 200
832
832
  begin
833
833
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
834
- result_mapper = Azure::ARM::Resources::Models::ResourceGroupListResult.mapper()
834
+ result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::ResourceGroupListResult.mapper()
835
835
  result.body = @client.deserialize(result_mapper, parsed_response)
836
836
  rescue Exception => e
837
837
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -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::V2017_05_10
7
7
  #
8
8
  # A service client - single point of access to the REST API.
9
9
  #
@@ -140,8 +140,8 @@ module Azure::ARM::Resources
140
140
  #
141
141
  def add_telemetry
142
142
  sdk_information = 'azure_mgmt_resources'
143
- if defined? Azure::ARM::Resources::VERSION
144
- sdk_information = "#{sdk_information}/#{Azure::ARM::Resources::VERSION}"
143
+ if defined? Azure::Resources::Mgmt::V2017_05_10::VERSION
144
+ sdk_information = "#{sdk_information}/#{Azure::Resources::Mgmt::V2017_05_10::VERSION}"
145
145
  end
146
146
  add_user_agent_information(sdk_information)
147
147
  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::V2017_05_10
7
7
  #
8
8
  # Provides operations for working with resources and resource groups.
9
9
  #
@@ -110,7 +110,7 @@ module Azure::ARM::Resources
110
110
  if status_code == 200
111
111
  begin
112
112
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
113
- result_mapper = Azure::ARM::Resources::Models::ResourceListResult.mapper()
113
+ result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::ResourceListResult.mapper()
114
114
  result.body = @client.deserialize(result_mapper, parsed_response)
115
115
  rescue Exception => e
116
116
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -300,7 +300,7 @@ module Azure::ARM::Resources
300
300
  if status_code == 200
301
301
  begin
302
302
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
303
- result_mapper = Azure::ARM::Resources::Models::ResourceListResult.mapper()
303
+ result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::ResourceListResult.mapper()
304
304
  result.body = @client.deserialize(result_mapper, parsed_response)
305
305
  rescue Exception => e
306
306
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -517,7 +517,7 @@ module Azure::ARM::Resources
517
517
  promise = promise.then do |response|
518
518
  # Defining deserialization method.
519
519
  deserialize_method = lambda do |parsed_response|
520
- result_mapper = Azure::ARM::Resources::Models::GenericResource.mapper()
520
+ result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::GenericResource.mapper()
521
521
  parsed_response = @client.deserialize(result_mapper, parsed_response)
522
522
  end
523
523
 
@@ -628,7 +628,7 @@ module Azure::ARM::Resources
628
628
  if status_code == 200
629
629
  begin
630
630
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
631
- result_mapper = Azure::ARM::Resources::Models::GenericResource.mapper()
631
+ result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::GenericResource.mapper()
632
632
  result.body = @client.deserialize(result_mapper, parsed_response)
633
633
  rescue Exception => e
634
634
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -806,7 +806,7 @@ module Azure::ARM::Resources
806
806
  promise = promise.then do |response|
807
807
  # Defining deserialization method.
808
808
  deserialize_method = lambda do |parsed_response|
809
- result_mapper = Azure::ARM::Resources::Models::GenericResource.mapper()
809
+ result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::GenericResource.mapper()
810
810
  parsed_response = @client.deserialize(result_mapper, parsed_response)
811
811
  end
812
812
 
@@ -899,7 +899,7 @@ module Azure::ARM::Resources
899
899
  if status_code == 200
900
900
  begin
901
901
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
902
- result_mapper = Azure::ARM::Resources::Models::GenericResource.mapper()
902
+ result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::GenericResource.mapper()
903
903
  result.body = @client.deserialize(result_mapper, parsed_response)
904
904
  rescue Exception => e
905
905
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -987,7 +987,7 @@ module Azure::ARM::Resources
987
987
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
988
988
 
989
989
  # Serialize Request
990
- request_mapper = Azure::ARM::Resources::Models::ResourcesMoveInfo.mapper()
990
+ request_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::ResourcesMoveInfo.mapper()
991
991
  request_content = @client.serialize(request_mapper, parameters)
992
992
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
993
993
 
@@ -1106,7 +1106,7 @@ module Azure::ARM::Resources
1106
1106
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
1107
1107
 
1108
1108
  # Serialize Request
1109
- request_mapper = Azure::ARM::Resources::Models::ResourcesMoveInfo.mapper()
1109
+ request_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::ResourcesMoveInfo.mapper()
1110
1110
  request_content = @client.serialize(request_mapper, parameters)
1111
1111
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1112
1112
 
@@ -1326,7 +1326,7 @@ module Azure::ARM::Resources
1326
1326
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
1327
1327
 
1328
1328
  # Serialize Request
1329
- request_mapper = Azure::ARM::Resources::Models::GenericResource.mapper()
1329
+ request_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::GenericResource.mapper()
1330
1330
  request_content = @client.serialize(request_mapper, parameters)
1331
1331
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1332
1332
 
@@ -1359,7 +1359,7 @@ module Azure::ARM::Resources
1359
1359
  if status_code == 201
1360
1360
  begin
1361
1361
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1362
- result_mapper = Azure::ARM::Resources::Models::GenericResource.mapper()
1362
+ result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::GenericResource.mapper()
1363
1363
  result.body = @client.deserialize(result_mapper, parsed_response)
1364
1364
  rescue Exception => e
1365
1365
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1369,7 +1369,7 @@ module Azure::ARM::Resources
1369
1369
  if status_code == 200
1370
1370
  begin
1371
1371
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1372
- result_mapper = Azure::ARM::Resources::Models::GenericResource.mapper()
1372
+ result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::GenericResource.mapper()
1373
1373
  result.body = @client.deserialize(result_mapper, parsed_response)
1374
1374
  rescue Exception => e
1375
1375
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1529,7 +1529,7 @@ module Azure::ARM::Resources
1529
1529
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
1530
1530
 
1531
1531
  # Serialize Request
1532
- request_mapper = Azure::ARM::Resources::Models::GenericResource.mapper()
1532
+ request_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::GenericResource.mapper()
1533
1533
  request_content = @client.serialize(request_mapper, parameters)
1534
1534
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1535
1535
 
@@ -1561,7 +1561,7 @@ module Azure::ARM::Resources
1561
1561
  if status_code == 201
1562
1562
  begin
1563
1563
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1564
- result_mapper = Azure::ARM::Resources::Models::GenericResource.mapper()
1564
+ result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::GenericResource.mapper()
1565
1565
  result.body = @client.deserialize(result_mapper, parsed_response)
1566
1566
  rescue Exception => e
1567
1567
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1571,7 +1571,7 @@ module Azure::ARM::Resources
1571
1571
  if status_code == 200
1572
1572
  begin
1573
1573
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1574
- result_mapper = Azure::ARM::Resources::Models::GenericResource.mapper()
1574
+ result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::GenericResource.mapper()
1575
1575
  result.body = @client.deserialize(result_mapper, parsed_response)
1576
1576
  rescue Exception => e
1577
1577
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1658,7 +1658,7 @@ module Azure::ARM::Resources
1658
1658
  if status_code == 200
1659
1659
  begin
1660
1660
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1661
- result_mapper = Azure::ARM::Resources::Models::ResourceListResult.mapper()
1661
+ result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::ResourceListResult.mapper()
1662
1662
  result.body = @client.deserialize(result_mapper, parsed_response)
1663
1663
  rescue Exception => e
1664
1664
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1745,7 +1745,7 @@ module Azure::ARM::Resources
1745
1745
  if status_code == 200
1746
1746
  begin
1747
1747
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1748
- result_mapper = Azure::ARM::Resources::Models::ResourceListResult.mapper()
1748
+ result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::ResourceListResult.mapper()
1749
1749
  result.body = @client.deserialize(result_mapper, parsed_response)
1750
1750
  rescue Exception => e
1751
1751
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -0,0 +1,593 @@
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 Tags
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Tags class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [ResourceManagementClient] reference to the ResourceManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Deletes a tag value.
26
+ #
27
+ # @param tag_name [String] The name of the tag.
28
+ # @param tag_value [String] The value of the tag to delete.
29
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
30
+ # will be added to the HTTP request.
31
+ #
32
+ #
33
+ def delete_value(tag_name, tag_value, custom_headers = nil)
34
+ response = delete_value_async(tag_name, tag_value, custom_headers).value!
35
+ nil
36
+ end
37
+
38
+ #
39
+ # Deletes a tag value.
40
+ #
41
+ # @param tag_name [String] The name of the tag.
42
+ # @param tag_value [String] The value of the tag to delete.
43
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
44
+ # will be added to the HTTP request.
45
+ #
46
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
47
+ #
48
+ def delete_value_with_http_info(tag_name, tag_value, custom_headers = nil)
49
+ delete_value_async(tag_name, tag_value, custom_headers).value!
50
+ end
51
+
52
+ #
53
+ # Deletes a tag value.
54
+ #
55
+ # @param tag_name [String] The name of the tag.
56
+ # @param tag_value [String] The value of the tag to delete.
57
+ # @param [Hash{String => String}] A hash of custom headers that will be added
58
+ # to the HTTP request.
59
+ #
60
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
61
+ #
62
+ def delete_value_async(tag_name, tag_value, custom_headers = nil)
63
+ fail ArgumentError, 'tag_name is nil' if tag_name.nil?
64
+ fail ArgumentError, 'tag_value is nil' if tag_value.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}/tagNames/{tagName}/tagValues/{tagValue}'
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: {'tagName' => tag_name,'tagValue' => tag_value,'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(:delete, 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 || status_code == 204
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
+
98
+ result
99
+ end
100
+
101
+ promise.execute
102
+ end
103
+
104
+ #
105
+ # Creates a tag value. The name of the tag must already exist.
106
+ #
107
+ # @param tag_name [String] The name of the tag.
108
+ # @param tag_value [String] The value of the tag to create.
109
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
110
+ # will be added to the HTTP request.
111
+ #
112
+ # @return [TagValue] operation results.
113
+ #
114
+ def create_or_update_value(tag_name, tag_value, custom_headers = nil)
115
+ response = create_or_update_value_async(tag_name, tag_value, custom_headers).value!
116
+ response.body unless response.nil?
117
+ end
118
+
119
+ #
120
+ # Creates a tag value. The name of the tag must already exist.
121
+ #
122
+ # @param tag_name [String] The name of the tag.
123
+ # @param tag_value [String] The value of the tag to create.
124
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
125
+ # will be added to the HTTP request.
126
+ #
127
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
128
+ #
129
+ def create_or_update_value_with_http_info(tag_name, tag_value, custom_headers = nil)
130
+ create_or_update_value_async(tag_name, tag_value, custom_headers).value!
131
+ end
132
+
133
+ #
134
+ # Creates a tag value. The name of the tag must already exist.
135
+ #
136
+ # @param tag_name [String] The name of the tag.
137
+ # @param tag_value [String] The value of the tag to create.
138
+ # @param [Hash{String => String}] A hash of custom headers that will be added
139
+ # to the HTTP request.
140
+ #
141
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
142
+ #
143
+ def create_or_update_value_async(tag_name, tag_value, custom_headers = nil)
144
+ fail ArgumentError, 'tag_name is nil' if tag_name.nil?
145
+ fail ArgumentError, 'tag_value is nil' if tag_value.nil?
146
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
147
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
148
+
149
+
150
+ request_headers = {}
151
+
152
+ # Set Headers
153
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
154
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
155
+ path_template = 'subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}'
156
+
157
+ request_url = @base_url || @client.base_url
158
+
159
+ options = {
160
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
161
+ path_params: {'tagName' => tag_name,'tagValue' => tag_value,'subscriptionId' => @client.subscription_id},
162
+ query_params: {'api-version' => @client.api_version},
163
+ headers: request_headers.merge(custom_headers || {}),
164
+ base_url: request_url
165
+ }
166
+ promise = @client.make_request_async(:put, path_template, options)
167
+
168
+ promise = promise.then do |result|
169
+ http_response = result.response
170
+ status_code = http_response.status
171
+ response_content = http_response.body
172
+ unless status_code == 200 || status_code == 201
173
+ error_model = JSON.load(response_content)
174
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
175
+ end
176
+
177
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
178
+ # Deserialize Response
179
+ if status_code == 200
180
+ begin
181
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
182
+ result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::TagValue.mapper()
183
+ result.body = @client.deserialize(result_mapper, parsed_response)
184
+ rescue Exception => e
185
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
186
+ end
187
+ end
188
+ # Deserialize Response
189
+ if status_code == 201
190
+ begin
191
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
192
+ result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::TagValue.mapper()
193
+ result.body = @client.deserialize(result_mapper, parsed_response)
194
+ rescue Exception => e
195
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
196
+ end
197
+ end
198
+
199
+ result
200
+ end
201
+
202
+ promise.execute
203
+ end
204
+
205
+ #
206
+ # Creates a tag in the subscription.
207
+ #
208
+ # The tag name can have a maximum of 512 characters and is case insensitive.
209
+ # Tag names created by Azure have prefixes of microsoft, azure, or windows. You
210
+ # cannot create tags with one of these prefixes.
211
+ #
212
+ # @param tag_name [String] The name of the tag to create.
213
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
214
+ # will be added to the HTTP request.
215
+ #
216
+ # @return [TagDetails] operation results.
217
+ #
218
+ def create_or_update(tag_name, custom_headers = nil)
219
+ response = create_or_update_async(tag_name, custom_headers).value!
220
+ response.body unless response.nil?
221
+ end
222
+
223
+ #
224
+ # Creates a tag in the subscription.
225
+ #
226
+ # The tag name can have a maximum of 512 characters and is case insensitive.
227
+ # Tag names created by Azure have prefixes of microsoft, azure, or windows. You
228
+ # cannot create tags with one of these prefixes.
229
+ #
230
+ # @param tag_name [String] The name of the tag to create.
231
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
232
+ # will be added to the HTTP request.
233
+ #
234
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
235
+ #
236
+ def create_or_update_with_http_info(tag_name, custom_headers = nil)
237
+ create_or_update_async(tag_name, custom_headers).value!
238
+ end
239
+
240
+ #
241
+ # Creates a tag in the subscription.
242
+ #
243
+ # The tag name can have a maximum of 512 characters and is case insensitive.
244
+ # Tag names created by Azure have prefixes of microsoft, azure, or windows. You
245
+ # cannot create tags with one of these prefixes.
246
+ #
247
+ # @param tag_name [String] The name of the tag to create.
248
+ # @param [Hash{String => String}] A hash of custom headers that will be added
249
+ # to the HTTP request.
250
+ #
251
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
252
+ #
253
+ def create_or_update_async(tag_name, custom_headers = nil)
254
+ fail ArgumentError, 'tag_name is nil' if tag_name.nil?
255
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
256
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
257
+
258
+
259
+ request_headers = {}
260
+
261
+ # Set Headers
262
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
263
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
264
+ path_template = 'subscriptions/{subscriptionId}/tagNames/{tagName}'
265
+
266
+ request_url = @base_url || @client.base_url
267
+
268
+ options = {
269
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
270
+ path_params: {'tagName' => tag_name,'subscriptionId' => @client.subscription_id},
271
+ query_params: {'api-version' => @client.api_version},
272
+ headers: request_headers.merge(custom_headers || {}),
273
+ base_url: request_url
274
+ }
275
+ promise = @client.make_request_async(:put, path_template, options)
276
+
277
+ promise = promise.then do |result|
278
+ http_response = result.response
279
+ status_code = http_response.status
280
+ response_content = http_response.body
281
+ unless status_code == 200 || status_code == 201
282
+ error_model = JSON.load(response_content)
283
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
284
+ end
285
+
286
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
287
+ # Deserialize Response
288
+ if status_code == 200
289
+ begin
290
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
291
+ result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::TagDetails.mapper()
292
+ result.body = @client.deserialize(result_mapper, parsed_response)
293
+ rescue Exception => e
294
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
295
+ end
296
+ end
297
+ # Deserialize Response
298
+ if status_code == 201
299
+ begin
300
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
301
+ result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::TagDetails.mapper()
302
+ result.body = @client.deserialize(result_mapper, parsed_response)
303
+ rescue Exception => e
304
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
305
+ end
306
+ end
307
+
308
+ result
309
+ end
310
+
311
+ promise.execute
312
+ end
313
+
314
+ #
315
+ # Deletes a tag from the subscription.
316
+ #
317
+ # You must remove all values from a resource tag before you can delete it.
318
+ #
319
+ # @param tag_name [String] The name of the tag.
320
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
321
+ # will be added to the HTTP request.
322
+ #
323
+ #
324
+ def delete(tag_name, custom_headers = nil)
325
+ response = delete_async(tag_name, custom_headers).value!
326
+ nil
327
+ end
328
+
329
+ #
330
+ # Deletes a tag from the subscription.
331
+ #
332
+ # You must remove all values from a resource tag before you can delete it.
333
+ #
334
+ # @param tag_name [String] The name of the tag.
335
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
336
+ # will be added to the HTTP request.
337
+ #
338
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
339
+ #
340
+ def delete_with_http_info(tag_name, custom_headers = nil)
341
+ delete_async(tag_name, custom_headers).value!
342
+ end
343
+
344
+ #
345
+ # Deletes a tag from the subscription.
346
+ #
347
+ # You must remove all values from a resource tag before you can delete it.
348
+ #
349
+ # @param tag_name [String] The name of the tag.
350
+ # @param [Hash{String => String}] A hash of custom headers that will be added
351
+ # to the HTTP request.
352
+ #
353
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
354
+ #
355
+ def delete_async(tag_name, custom_headers = nil)
356
+ fail ArgumentError, 'tag_name is nil' if tag_name.nil?
357
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
358
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
359
+
360
+
361
+ request_headers = {}
362
+
363
+ # Set Headers
364
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
365
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
366
+ path_template = 'subscriptions/{subscriptionId}/tagNames/{tagName}'
367
+
368
+ request_url = @base_url || @client.base_url
369
+
370
+ options = {
371
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
372
+ path_params: {'tagName' => tag_name,'subscriptionId' => @client.subscription_id},
373
+ query_params: {'api-version' => @client.api_version},
374
+ headers: request_headers.merge(custom_headers || {}),
375
+ base_url: request_url
376
+ }
377
+ promise = @client.make_request_async(:delete, path_template, options)
378
+
379
+ promise = promise.then do |result|
380
+ http_response = result.response
381
+ status_code = http_response.status
382
+ response_content = http_response.body
383
+ unless status_code == 200 || status_code == 204
384
+ error_model = JSON.load(response_content)
385
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
386
+ end
387
+
388
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
389
+
390
+ result
391
+ end
392
+
393
+ promise.execute
394
+ end
395
+
396
+ #
397
+ # Gets the names and values of all resource tags that are defined in a
398
+ # subscription.
399
+ #
400
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
401
+ # will be added to the HTTP request.
402
+ #
403
+ # @return [Array<TagDetails>] operation results.
404
+ #
405
+ def list(custom_headers = nil)
406
+ first_page = list_as_lazy(custom_headers)
407
+ first_page.get_all_items
408
+ end
409
+
410
+ #
411
+ # Gets the names and values of all resource tags that are defined in a
412
+ # subscription.
413
+ #
414
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
415
+ # will be added to the HTTP request.
416
+ #
417
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
418
+ #
419
+ def list_with_http_info(custom_headers = nil)
420
+ list_async(custom_headers).value!
421
+ end
422
+
423
+ #
424
+ # Gets the names and values of all resource tags that are defined in a
425
+ # subscription.
426
+ #
427
+ # @param [Hash{String => String}] A hash of custom headers that will be added
428
+ # to the HTTP request.
429
+ #
430
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
431
+ #
432
+ def list_async(custom_headers = nil)
433
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
434
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
435
+
436
+
437
+ request_headers = {}
438
+
439
+ # Set Headers
440
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
441
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
442
+ path_template = 'subscriptions/{subscriptionId}/tagNames'
443
+
444
+ request_url = @base_url || @client.base_url
445
+
446
+ options = {
447
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
448
+ path_params: {'subscriptionId' => @client.subscription_id},
449
+ query_params: {'api-version' => @client.api_version},
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::V2017_05_10::Models::TagsListResult.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 the names and values of all resource tags that are defined in a
484
+ # subscription.
485
+ #
486
+ # @param next_page_link [String] The NextLink from the previous successful call
487
+ # to List operation.
488
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
489
+ # will be added to the HTTP request.
490
+ #
491
+ # @return [TagsListResult] operation results.
492
+ #
493
+ def list_next(next_page_link, custom_headers = nil)
494
+ response = list_next_async(next_page_link, custom_headers).value!
495
+ response.body unless response.nil?
496
+ end
497
+
498
+ #
499
+ # Gets the names and values of all resource tags that are defined in a
500
+ # subscription.
501
+ #
502
+ # @param next_page_link [String] The NextLink from the previous successful call
503
+ # to List operation.
504
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
505
+ # will be added to the HTTP request.
506
+ #
507
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
508
+ #
509
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
510
+ list_next_async(next_page_link, custom_headers).value!
511
+ end
512
+
513
+ #
514
+ # Gets the names and values of all resource tags that are defined in a
515
+ # subscription.
516
+ #
517
+ # @param next_page_link [String] The NextLink from the previous successful call
518
+ # to List operation.
519
+ # @param [Hash{String => String}] A hash of custom headers that will be added
520
+ # to the HTTP request.
521
+ #
522
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
523
+ #
524
+ def list_next_async(next_page_link, custom_headers = nil)
525
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
526
+
527
+
528
+ request_headers = {}
529
+
530
+ # Set Headers
531
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
532
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
533
+ path_template = '{nextLink}'
534
+
535
+ request_url = @base_url || @client.base_url
536
+
537
+ options = {
538
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
539
+ skip_encoding_path_params: {'nextLink' => next_page_link},
540
+ headers: request_headers.merge(custom_headers || {}),
541
+ base_url: request_url
542
+ }
543
+ promise = @client.make_request_async(:get, path_template, options)
544
+
545
+ promise = promise.then do |result|
546
+ http_response = result.response
547
+ status_code = http_response.status
548
+ response_content = http_response.body
549
+ unless status_code == 200
550
+ error_model = JSON.load(response_content)
551
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
552
+ end
553
+
554
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
555
+ # Deserialize Response
556
+ if status_code == 200
557
+ begin
558
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
559
+ result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::TagsListResult.mapper()
560
+ result.body = @client.deserialize(result_mapper, parsed_response)
561
+ rescue Exception => e
562
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
563
+ end
564
+ end
565
+
566
+ result
567
+ end
568
+
569
+ promise.execute
570
+ end
571
+
572
+ #
573
+ # Gets the names and values of all resource tags that are defined in a
574
+ # subscription.
575
+ #
576
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
577
+ # will be added to the HTTP request.
578
+ #
579
+ # @return [TagsListResult] which provide lazy access to pages of the response.
580
+ #
581
+ def list_as_lazy(custom_headers = nil)
582
+ response = list_async(custom_headers).value!
583
+ unless response.nil?
584
+ page = response.body
585
+ page.next_method = Proc.new do |next_page_link|
586
+ list_next_async(next_page_link, custom_headers)
587
+ end
588
+ page
589
+ end
590
+ end
591
+
592
+ end
593
+ end