azure_mgmt_resources 0.15.1 → 0.15.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (208) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-02-01/generated/azure_mgmt_resources/deployment_operations.rb +6 -0
  3. data/lib/2016-02-01/generated/azure_mgmt_resources/deployments.rb +24 -0
  4. data/lib/2016-02-01/generated/azure_mgmt_resources/models/alias_path_type.rb +4 -0
  5. data/lib/2016-02-01/generated/azure_mgmt_resources/models/alias_type.rb +4 -0
  6. data/lib/2016-02-01/generated/azure_mgmt_resources/models/basic_dependency.rb +4 -0
  7. data/lib/2016-02-01/generated/azure_mgmt_resources/models/debug_setting.rb +2 -0
  8. data/lib/2016-02-01/generated/azure_mgmt_resources/models/dependency.rb +6 -0
  9. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment.rb +2 -0
  10. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_export_result.rb +2 -0
  11. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_extended.rb +4 -0
  12. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +2 -0
  13. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_list_result.rb +4 -0
  14. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_operation.rb +4 -0
  15. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +9 -0
  16. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +4 -0
  17. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_properties.rb +7 -0
  18. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +15 -0
  19. data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_validate_result.rb +3 -0
  20. data/lib/2016-02-01/generated/azure_mgmt_resources/models/export_template_request.rb +4 -0
  21. data/lib/2016-02-01/generated/azure_mgmt_resources/models/generic_resource.rb +13 -0
  22. data/lib/2016-02-01/generated/azure_mgmt_resources/models/generic_resource_filter.rb +4 -0
  23. data/lib/2016-02-01/generated/azure_mgmt_resources/models/http_message.rb +2 -0
  24. data/lib/2016-02-01/generated/azure_mgmt_resources/models/identity.rb +4 -0
  25. data/lib/2016-02-01/generated/azure_mgmt_resources/models/parameters_link.rb +3 -0
  26. data/lib/2016-02-01/generated/azure_mgmt_resources/models/plan.rb +5 -0
  27. data/lib/2016-02-01/generated/azure_mgmt_resources/models/provider.rb +6 -0
  28. data/lib/2016-02-01/generated/azure_mgmt_resources/models/provider_list_result.rb +4 -0
  29. data/lib/2016-02-01/generated/azure_mgmt_resources/models/provider_resource_type.rb +10 -0
  30. data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource.rb +7 -0
  31. data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource_group.rb +7 -0
  32. data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource_group_export_result.rb +3 -0
  33. data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource_group_filter.rb +3 -0
  34. data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource_group_list_result.rb +4 -0
  35. data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource_group_properties.rb +2 -0
  36. data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource_list_result.rb +4 -0
  37. data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +6 -0
  38. data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +6 -0
  39. data/lib/2016-02-01/generated/azure_mgmt_resources/models/resources_move_info.rb +4 -0
  40. data/lib/2016-02-01/generated/azure_mgmt_resources/models/sku.rb +7 -0
  41. data/lib/2016-02-01/generated/azure_mgmt_resources/models/sub_resource.rb +2 -0
  42. data/lib/2016-02-01/generated/azure_mgmt_resources/models/tag_count.rb +3 -0
  43. data/lib/2016-02-01/generated/azure_mgmt_resources/models/tag_details.rb +6 -0
  44. data/lib/2016-02-01/generated/azure_mgmt_resources/models/tag_value.rb +4 -0
  45. data/lib/2016-02-01/generated/azure_mgmt_resources/models/tags_list_result.rb +4 -0
  46. data/lib/2016-02-01/generated/azure_mgmt_resources/models/target_resource.rb +4 -0
  47. data/lib/2016-02-01/generated/azure_mgmt_resources/models/template_link.rb +3 -0
  48. data/lib/2016-02-01/generated/azure_mgmt_resources/resource_groups.rb +21 -0
  49. data/lib/2016-02-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -3
  50. data/lib/2016-02-01/generated/azure_mgmt_resources/resources.rb +15 -0
  51. data/lib/2016-07-01/generated/azure_mgmt_resources/deployment_operations.rb +6 -0
  52. data/lib/2016-07-01/generated/azure_mgmt_resources/deployments.rb +24 -0
  53. data/lib/2016-07-01/generated/azure_mgmt_resources/models/alias_path_type.rb +4 -0
  54. data/lib/2016-07-01/generated/azure_mgmt_resources/models/alias_type.rb +4 -0
  55. data/lib/2016-07-01/generated/azure_mgmt_resources/models/basic_dependency.rb +4 -0
  56. data/lib/2016-07-01/generated/azure_mgmt_resources/models/debug_setting.rb +2 -0
  57. data/lib/2016-07-01/generated/azure_mgmt_resources/models/dependency.rb +6 -0
  58. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment.rb +2 -0
  59. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_export_result.rb +2 -0
  60. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_extended.rb +4 -0
  61. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +2 -0
  62. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_list_result.rb +4 -0
  63. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_operation.rb +4 -0
  64. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +9 -0
  65. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +4 -0
  66. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_properties.rb +7 -0
  67. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +15 -0
  68. data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_validate_result.rb +3 -0
  69. data/lib/2016-07-01/generated/azure_mgmt_resources/models/export_template_request.rb +4 -0
  70. data/lib/2016-07-01/generated/azure_mgmt_resources/models/generic_resource.rb +13 -0
  71. data/lib/2016-07-01/generated/azure_mgmt_resources/models/generic_resource_filter.rb +4 -0
  72. data/lib/2016-07-01/generated/azure_mgmt_resources/models/http_message.rb +2 -0
  73. data/lib/2016-07-01/generated/azure_mgmt_resources/models/identity.rb +4 -0
  74. data/lib/2016-07-01/generated/azure_mgmt_resources/models/parameters_link.rb +3 -0
  75. data/lib/2016-07-01/generated/azure_mgmt_resources/models/plan.rb +5 -0
  76. data/lib/2016-07-01/generated/azure_mgmt_resources/models/provider.rb +6 -0
  77. data/lib/2016-07-01/generated/azure_mgmt_resources/models/provider_list_result.rb +4 -0
  78. data/lib/2016-07-01/generated/azure_mgmt_resources/models/provider_resource_type.rb +10 -0
  79. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource.rb +7 -0
  80. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_group.rb +7 -0
  81. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_group_export_result.rb +3 -0
  82. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_group_filter.rb +3 -0
  83. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_group_list_result.rb +4 -0
  84. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_group_properties.rb +2 -0
  85. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_list_result.rb +4 -0
  86. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +6 -0
  87. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +6 -0
  88. data/lib/2016-07-01/generated/azure_mgmt_resources/models/resources_move_info.rb +4 -0
  89. data/lib/2016-07-01/generated/azure_mgmt_resources/models/sku.rb +7 -0
  90. data/lib/2016-07-01/generated/azure_mgmt_resources/models/sub_resource.rb +2 -0
  91. data/lib/2016-07-01/generated/azure_mgmt_resources/models/tag_count.rb +3 -0
  92. data/lib/2016-07-01/generated/azure_mgmt_resources/models/tag_details.rb +6 -0
  93. data/lib/2016-07-01/generated/azure_mgmt_resources/models/tag_value.rb +4 -0
  94. data/lib/2016-07-01/generated/azure_mgmt_resources/models/tags_list_result.rb +4 -0
  95. data/lib/2016-07-01/generated/azure_mgmt_resources/models/target_resource.rb +4 -0
  96. data/lib/2016-07-01/generated/azure_mgmt_resources/models/template_link.rb +3 -0
  97. data/lib/2016-07-01/generated/azure_mgmt_resources/resource_groups.rb +21 -0
  98. data/lib/2016-07-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -3
  99. data/lib/2016-07-01/generated/azure_mgmt_resources/resources.rb +15 -0
  100. data/lib/2016-09-01/generated/azure_mgmt_resources/deployment_operations.rb +12 -0
  101. data/lib/2016-09-01/generated/azure_mgmt_resources/deployments.rb +45 -0
  102. data/lib/2016-09-01/generated/azure_mgmt_resources/models/alias_path_type.rb +4 -0
  103. data/lib/2016-09-01/generated/azure_mgmt_resources/models/alias_type.rb +4 -0
  104. data/lib/2016-09-01/generated/azure_mgmt_resources/models/basic_dependency.rb +4 -0
  105. data/lib/2016-09-01/generated/azure_mgmt_resources/models/debug_setting.rb +2 -0
  106. data/lib/2016-09-01/generated/azure_mgmt_resources/models/dependency.rb +6 -0
  107. data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment.rb +2 -0
  108. data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_export_result.rb +2 -0
  109. data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_extended.rb +4 -0
  110. data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +2 -0
  111. data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_list_result.rb +4 -0
  112. data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_operation.rb +4 -0
  113. data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +9 -0
  114. data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +4 -0
  115. data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_properties.rb +7 -0
  116. data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +15 -0
  117. data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_validate_result.rb +3 -0
  118. data/lib/2016-09-01/generated/azure_mgmt_resources/models/export_template_request.rb +4 -0
  119. data/lib/2016-09-01/generated/azure_mgmt_resources/models/generic_resource.rb +13 -0
  120. data/lib/2016-09-01/generated/azure_mgmt_resources/models/generic_resource_filter.rb +4 -0
  121. data/lib/2016-09-01/generated/azure_mgmt_resources/models/http_message.rb +2 -0
  122. data/lib/2016-09-01/generated/azure_mgmt_resources/models/identity.rb +4 -0
  123. data/lib/2016-09-01/generated/azure_mgmt_resources/models/parameters_link.rb +3 -0
  124. data/lib/2016-09-01/generated/azure_mgmt_resources/models/plan.rb +5 -0
  125. data/lib/2016-09-01/generated/azure_mgmt_resources/models/provider.rb +6 -0
  126. data/lib/2016-09-01/generated/azure_mgmt_resources/models/provider_list_result.rb +4 -0
  127. data/lib/2016-09-01/generated/azure_mgmt_resources/models/provider_resource_type.rb +10 -0
  128. data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource.rb +7 -0
  129. data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_group.rb +8 -0
  130. data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_group_export_result.rb +3 -0
  131. data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_group_filter.rb +3 -0
  132. data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_group_list_result.rb +4 -0
  133. data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_group_properties.rb +2 -0
  134. data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_list_result.rb +4 -0
  135. data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +6 -0
  136. data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +6 -0
  137. data/lib/2016-09-01/generated/azure_mgmt_resources/models/resources_move_info.rb +4 -0
  138. data/lib/2016-09-01/generated/azure_mgmt_resources/models/sku.rb +7 -0
  139. data/lib/2016-09-01/generated/azure_mgmt_resources/models/sub_resource.rb +2 -0
  140. data/lib/2016-09-01/generated/azure_mgmt_resources/models/tag_count.rb +3 -0
  141. data/lib/2016-09-01/generated/azure_mgmt_resources/models/tag_details.rb +6 -0
  142. data/lib/2016-09-01/generated/azure_mgmt_resources/models/tag_value.rb +4 -0
  143. data/lib/2016-09-01/generated/azure_mgmt_resources/models/tags_list_result.rb +4 -0
  144. data/lib/2016-09-01/generated/azure_mgmt_resources/models/target_resource.rb +4 -0
  145. data/lib/2016-09-01/generated/azure_mgmt_resources/models/template_link.rb +3 -0
  146. data/lib/2016-09-01/generated/azure_mgmt_resources/resource_groups.rb +21 -0
  147. data/lib/2016-09-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -3
  148. data/lib/2016-09-01/generated/azure_mgmt_resources/resources.rb +15 -0
  149. data/lib/2017-05-10/generated/azure_mgmt_resources/deployment_operations.rb +12 -0
  150. data/lib/2017-05-10/generated/azure_mgmt_resources/deployments.rb +45 -0
  151. data/lib/2017-05-10/generated/azure_mgmt_resources/models/alias_path_type.rb +4 -0
  152. data/lib/2017-05-10/generated/azure_mgmt_resources/models/alias_type.rb +4 -0
  153. data/lib/2017-05-10/generated/azure_mgmt_resources/models/basic_dependency.rb +4 -0
  154. data/lib/2017-05-10/generated/azure_mgmt_resources/models/debug_setting.rb +2 -0
  155. data/lib/2017-05-10/generated/azure_mgmt_resources/models/dependency.rb +6 -0
  156. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment.rb +2 -0
  157. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_export_result.rb +2 -0
  158. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_extended.rb +4 -0
  159. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +2 -0
  160. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_list_result.rb +4 -0
  161. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_operation.rb +4 -0
  162. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +9 -0
  163. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +4 -0
  164. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_properties.rb +7 -0
  165. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +15 -0
  166. data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_validate_result.rb +3 -0
  167. data/lib/2017-05-10/generated/azure_mgmt_resources/models/export_template_request.rb +4 -0
  168. data/lib/2017-05-10/generated/azure_mgmt_resources/models/generic_resource.rb +13 -0
  169. data/lib/2017-05-10/generated/azure_mgmt_resources/models/generic_resource_filter.rb +4 -0
  170. data/lib/2017-05-10/generated/azure_mgmt_resources/models/http_message.rb +2 -0
  171. data/lib/2017-05-10/generated/azure_mgmt_resources/models/identity.rb +4 -0
  172. data/lib/2017-05-10/generated/azure_mgmt_resources/models/parameters_link.rb +3 -0
  173. data/lib/2017-05-10/generated/azure_mgmt_resources/models/plan.rb +5 -0
  174. data/lib/2017-05-10/generated/azure_mgmt_resources/models/provider.rb +6 -0
  175. data/lib/2017-05-10/generated/azure_mgmt_resources/models/provider_list_result.rb +4 -0
  176. data/lib/2017-05-10/generated/azure_mgmt_resources/models/provider_resource_type.rb +10 -0
  177. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource.rb +7 -0
  178. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_group.rb +8 -0
  179. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_group_export_result.rb +3 -0
  180. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_group_filter.rb +3 -0
  181. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_group_list_result.rb +4 -0
  182. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_group_patchable.rb +6 -0
  183. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_group_properties.rb +2 -0
  184. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_list_result.rb +4 -0
  185. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +6 -0
  186. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +6 -0
  187. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resources_move_info.rb +4 -0
  188. data/lib/2017-05-10/generated/azure_mgmt_resources/models/sku.rb +7 -0
  189. data/lib/2017-05-10/generated/azure_mgmt_resources/models/sub_resource.rb +2 -0
  190. data/lib/2017-05-10/generated/azure_mgmt_resources/models/tag_count.rb +3 -0
  191. data/lib/2017-05-10/generated/azure_mgmt_resources/models/tag_details.rb +6 -0
  192. data/lib/2017-05-10/generated/azure_mgmt_resources/models/tag_value.rb +4 -0
  193. data/lib/2017-05-10/generated/azure_mgmt_resources/models/tags_list_result.rb +4 -0
  194. data/lib/2017-05-10/generated/azure_mgmt_resources/models/target_resource.rb +4 -0
  195. data/lib/2017-05-10/generated/azure_mgmt_resources/models/template_link.rb +3 -0
  196. data/lib/2017-05-10/generated/azure_mgmt_resources/resource_groups.rb +18 -0
  197. data/lib/2017-05-10/generated/azure_mgmt_resources/resource_management_client.rb +1 -3
  198. data/lib/2017-05-10/generated/azure_mgmt_resources/resources.rb +21 -0
  199. data/lib/profiles/latest/resources_latest_profile_client.rb +1 -3
  200. data/lib/profiles/v2017_03_09/resources_v2017_03_09_profile_client.rb +1 -3
  201. data/lib/version.rb +1 -1
  202. metadata +10 -11
  203. data/lib/2016-02-01/generated/azure_mgmt_resources/version.rb +0 -8
  204. data/lib/2016-07-01/generated/azure_mgmt_resources/version.rb +0 -8
  205. data/lib/2016-09-01/generated/azure_mgmt_resources/version.rb +0 -8
  206. data/lib/2017-05-10/generated/azure_mgmt_resources/version.rb +0 -8
  207. data/lib/profiles/common/configurable.rb +0 -86
  208. data/lib/profiles/common/default.rb +0 -57
@@ -74,6 +74,9 @@ module Azure::Resources::Mgmt::V2017_05_10
74
74
  #
75
75
  def list_by_resource_group_async(resource_group_name, filter = nil, expand = nil, top = nil, custom_headers = nil)
76
76
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
77
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
78
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
79
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
77
80
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
78
81
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
79
82
 
@@ -375,6 +378,9 @@ module Azure::Resources::Mgmt::V2017_05_10
375
378
  #
376
379
  def check_existence_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil)
377
380
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
381
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
382
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
383
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
378
384
  fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
379
385
  fail ArgumentError, 'parent_resource_path is nil' if parent_resource_path.nil?
380
386
  fail ArgumentError, 'resource_type is nil' if resource_type.nil?
@@ -587,6 +593,9 @@ module Azure::Resources::Mgmt::V2017_05_10
587
593
  #
588
594
  def get_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil)
589
595
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
596
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
597
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
598
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
590
599
  fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
591
600
  fail ArgumentError, 'parent_resource_path is nil' if parent_resource_path.nil?
592
601
  fail ArgumentError, 'resource_type is nil' if resource_type.nil?
@@ -973,6 +982,9 @@ module Azure::Resources::Mgmt::V2017_05_10
973
982
  #
974
983
  def begin_move_resources_async(source_resource_group_name, parameters, custom_headers = nil)
975
984
  fail ArgumentError, 'source_resource_group_name is nil' if source_resource_group_name.nil?
985
+ fail ArgumentError, "'source_resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !source_resource_group_name.nil? && source_resource_group_name.length > 90
986
+ fail ArgumentError, "'source_resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !source_resource_group_name.nil? && source_resource_group_name.length < 1
987
+ fail ArgumentError, "'source_resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !source_resource_group_name.nil? && source_resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
976
988
  fail ArgumentError, 'parameters is nil' if parameters.nil?
977
989
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
978
990
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -1092,6 +1104,9 @@ module Azure::Resources::Mgmt::V2017_05_10
1092
1104
  #
1093
1105
  def begin_validate_move_resources_async(source_resource_group_name, parameters, custom_headers = nil)
1094
1106
  fail ArgumentError, 'source_resource_group_name is nil' if source_resource_group_name.nil?
1107
+ fail ArgumentError, "'source_resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !source_resource_group_name.nil? && source_resource_group_name.length > 90
1108
+ fail ArgumentError, "'source_resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !source_resource_group_name.nil? && source_resource_group_name.length < 1
1109
+ fail ArgumentError, "'source_resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !source_resource_group_name.nil? && source_resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1095
1110
  fail ArgumentError, 'parameters is nil' if parameters.nil?
1096
1111
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1097
1112
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -1199,6 +1214,9 @@ module Azure::Resources::Mgmt::V2017_05_10
1199
1214
  #
1200
1215
  def begin_delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil)
1201
1216
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1217
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1218
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1219
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1202
1220
  fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
1203
1221
  fail ArgumentError, 'parent_resource_path is nil' if parent_resource_path.nil?
1204
1222
  fail ArgumentError, 'resource_type is nil' if resource_type.nil?
@@ -1308,6 +1326,9 @@ module Azure::Resources::Mgmt::V2017_05_10
1308
1326
  #
1309
1327
  def begin_create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers = nil)
1310
1328
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1329
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1330
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1331
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1311
1332
  fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
1312
1333
  fail ArgumentError, 'parent_resource_path is nil' if parent_resource_path.nil?
1313
1334
  fail ArgumentError, 'resource_type is nil' if resource_type.nil?
@@ -4,15 +4,13 @@
4
4
 
5
5
  require 'profiles/latest/resources_module_definition'
6
6
  require 'profiles/latest/modules/resources_profile_module'
7
- require 'profiles/common/configurable'
8
- require 'profiles/common/default'
9
7
 
10
8
  module Azure::Resources::Profiles::Latest::Mgmt
11
9
  #
12
10
  # Client class for the Latest profile SDK.
13
11
  #
14
12
  class Client < ResourcesClass
15
- include Azure::Common::Configurable
13
+ include MsRestAzure::Common::Configurable
16
14
 
17
15
 
18
16
  def initialize(options = {})
@@ -4,15 +4,13 @@
4
4
 
5
5
  require 'profiles/v2017_03_09/resources_module_definition'
6
6
  require 'profiles/v2017_03_09/modules/resources_profile_module'
7
- require 'profiles/common/configurable'
8
- require 'profiles/common/default'
9
7
 
10
8
  module Azure::Resources::Profiles::V2017_03_09::Mgmt
11
9
  #
12
10
  # Client class for the V2017_03_09 profile SDK.
13
11
  #
14
12
  class Client < ResourcesClass
15
- include Azure::Common::Configurable
13
+ include MsRestAzure::Common::Configurable
16
14
 
17
15
 
18
16
  def initialize(options = {})
data/lib/version.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module Azure::Resources::Mgmt
6
- VERSION = '0.15.1'
6
+ VERSION = '0.15.2'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.1
4
+ version: 0.15.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-30 00:00:00.000000000 Z
11
+ date: 2017-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.9.0
75
+ version: 0.10.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.9.0
82
+ version: 0.10.0
83
83
  description: Microsoft Azure Resource Management Client Library for Ruby
84
84
  email: azrubyteam@microsoft.com
85
85
  executables: []
@@ -143,7 +143,6 @@ files:
143
143
  - lib/2016-02-01/generated/azure_mgmt_resources/resource_management_client.rb
144
144
  - lib/2016-02-01/generated/azure_mgmt_resources/resources.rb
145
145
  - lib/2016-02-01/generated/azure_mgmt_resources/tags.rb
146
- - lib/2016-02-01/generated/azure_mgmt_resources/version.rb
147
146
  - lib/2016-07-01/generated/azure_mgmt_resources.rb
148
147
  - lib/2016-07-01/generated/azure_mgmt_resources/deployment_operations.rb
149
148
  - lib/2016-07-01/generated/azure_mgmt_resources/deployments.rb
@@ -199,7 +198,6 @@ files:
199
198
  - lib/2016-07-01/generated/azure_mgmt_resources/resource_management_client.rb
200
199
  - lib/2016-07-01/generated/azure_mgmt_resources/resources.rb
201
200
  - lib/2016-07-01/generated/azure_mgmt_resources/tags.rb
202
- - lib/2016-07-01/generated/azure_mgmt_resources/version.rb
203
201
  - lib/2016-09-01/generated/azure_mgmt_resources.rb
204
202
  - lib/2016-09-01/generated/azure_mgmt_resources/deployment_operations.rb
205
203
  - lib/2016-09-01/generated/azure_mgmt_resources/deployments.rb
@@ -255,7 +253,6 @@ files:
255
253
  - lib/2016-09-01/generated/azure_mgmt_resources/resource_management_client.rb
256
254
  - lib/2016-09-01/generated/azure_mgmt_resources/resources.rb
257
255
  - lib/2016-09-01/generated/azure_mgmt_resources/tags.rb
258
- - lib/2016-09-01/generated/azure_mgmt_resources/version.rb
259
256
  - lib/2017-05-10/generated/azure_mgmt_resources.rb
260
257
  - lib/2017-05-10/generated/azure_mgmt_resources/deployment_operations.rb
261
258
  - lib/2017-05-10/generated/azure_mgmt_resources/deployments.rb
@@ -312,11 +309,8 @@ files:
312
309
  - lib/2017-05-10/generated/azure_mgmt_resources/resource_management_client.rb
313
310
  - lib/2017-05-10/generated/azure_mgmt_resources/resources.rb
314
311
  - lib/2017-05-10/generated/azure_mgmt_resources/tags.rb
315
- - lib/2017-05-10/generated/azure_mgmt_resources/version.rb
316
312
  - lib/azure_mgmt_resources.rb
317
313
  - lib/module_definition.rb
318
- - lib/profiles/common/configurable.rb
319
- - lib/profiles/common/default.rb
320
314
  - lib/profiles/latest/modules/resources_profile_module.rb
321
315
  - lib/profiles/latest/resources_latest_profile_client.rb
322
316
  - lib/profiles/latest/resources_module_definition.rb
@@ -327,7 +321,12 @@ files:
327
321
  homepage: https://aka.ms/azure-sdk-for-ruby
328
322
  licenses:
329
323
  - MIT
330
- metadata: {}
324
+ metadata:
325
+ bug_tracker_uri: https://github.com/Azure/azure-sdk-for-ruby/issues
326
+ changelog_uri: https://github.com/Azure/azure-sdk-for-ruby/blob/master/ChangeLog.md
327
+ documentation_uri: https://azure.microsoft.com/en-us/develop/ruby/
328
+ homepage_uri: https://aka.ms/azure-sdk-for-ruby
329
+ source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/master/management/azure_mgmt_resources
331
330
  post_install_message:
332
331
  rdoc_options: []
333
332
  require_paths:
@@ -1,8 +0,0 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator.
3
- # Changes may cause incorrect behavior and will be lost if the code is
4
- # regenerated.
5
-
6
- module Azure::Resources::Mgmt::V2016_02_01
7
- VERSION = '0.15.1'
8
- end
@@ -1,8 +0,0 @@
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_07_01
7
- VERSION = '0.15.1'
8
- end
@@ -1,8 +0,0 @@
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.1'
8
- end
@@ -1,8 +0,0 @@
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
- VERSION = '0.15.1'
8
- end
@@ -1,86 +0,0 @@
1
- # encoding: utf-8
2
- # Copyright (c) Microsoft Corporation. All rights reserved.
3
- # Licensed under the MIT License. See License.txt in the project root for license information.
4
-
5
- module Azure::Common
6
- # The Azure::Common::Configurable module provides basic configuration for Azure activities.
7
- module Configurable
8
- # @return [String] Azure tenant id (also known as domain).
9
- attr_accessor :tenant_id
10
-
11
- # @return [String] Azure client id.
12
- attr_accessor :client_id
13
-
14
- # @return [String] Azure secret key.
15
- attr_accessor :client_secret
16
-
17
- # @return [String] Azure subscription id.
18
- attr_accessor :subscription_id
19
-
20
- # @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure active directory service settings.
21
- attr_accessor :active_directory_settings
22
-
23
- # @return [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
24
- attr_accessor :credentials
25
-
26
- class << self
27
- #
28
- # List of configurable keys for {Azure::Common::Client}.
29
- # @return [Array] of option keys.
30
- #
31
- def keys
32
- @keys ||= [:tenant_id, :client_id, :client_secret, :subscription_id, :active_directory_settings]
33
- end
34
- end
35
-
36
- #
37
- # Set configuration options using a block.
38
- #
39
- def configure
40
- yield self
41
- end
42
-
43
- #
44
- # Resets the configurable options to provided options or defaults.
45
- # This will also creates MsRest::TokenCredentials to be used for subsequent Azure Resource Manager clients.
46
- #
47
- def reset!(options = {})
48
- Azure::Common::Configurable.keys.each do |key|
49
- default_value = Azure::Common::Default.options[key]
50
- instance_variable_set(:"@#{key}", options.fetch(key, default_value))
51
- end
52
-
53
- fail ArgumentError, 'tenant_id is nil' if self.tenant_id.nil?
54
- fail ArgumentError, 'client_id is nil' if self.client_id.nil?
55
- fail ArgumentError, 'client_secret is nil' if self.client_secret.nil?
56
- fail ArgumentError, 'subscription_id is nil' if self.subscription_id.nil?
57
- fail ArgumentError, 'active_directory_settings is nil' if self.active_directory_settings.nil?
58
-
59
- default_value = MsRest::TokenCredentials.new(
60
- MsRestAzure::ApplicationTokenProvider.new(
61
- self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
62
-
63
- instance_variable_set(:"@credentials", options.fetch(:credentials, default_value))
64
-
65
- self
66
- end
67
-
68
- def config
69
- self
70
- end
71
-
72
- private
73
-
74
- #
75
- # configures configurable options to default values
76
- #
77
- def setup_default_options
78
- opts = {}
79
- Azure::Common::Configurable.keys.map do |key|
80
- opts[key] = Azure::Common::Default.options[key]
81
- end
82
-
83
- opts
84
- end
85
- end
86
- end
@@ -1,57 +0,0 @@
1
- # encoding: utf-8
2
- # Copyright (c) Microsoft Corporation. All rights reserved.
3
- # Licensed under the MIT License. See License.txt in the project root for license information.
4
-
5
- module Azure::Common
6
- module Default
7
- class << self
8
- #
9
- # Default Azure Tenant Id.
10
- # @return [String] Azure Tenant Id.
11
- #
12
- def tenant_id
13
- ENV['AZURE_TENANT_ID']
14
- end
15
-
16
- #
17
- # Default Azure Client Id.
18
- # @return [String] Azure Client Id.
19
- #
20
- def client_id
21
- ENV['AZURE_CLIENT_ID']
22
- end
23
-
24
- #
25
- # Default Azure Client Secret.
26
- # @return [String] Azure Client Secret.
27
- #
28
- def client_secret
29
- ENV['AZURE_CLIENT_SECRET']
30
- end
31
-
32
- #
33
- # Default Azure Subscription Id.
34
- # @return [String] Azure Subscription Id.
35
- #
36
- def subscription_id
37
- ENV['AZURE_SUBSCRIPTION_ID']
38
- end
39
-
40
- #
41
- # Default Azure Active Directory Service Settings.
42
- # @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure Active Directory Service Settings.
43
- #
44
- def active_directory_settings
45
- MsRestAzure::ActiveDirectoryServiceSettings.get_azure_settings
46
- end
47
-
48
- #
49
- # Configuration options.
50
- # @return [Hash] Configuration options.
51
- #
52
- def options
53
- Hash[Azure::Common::Configurable.keys.map { |key| [key, send(key)]}]
54
- end
55
- end
56
- end
57
- end