azure_mgmt_resources_management 0.15.1 → 0.17.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/management_groups.rb +21 -18
  3. data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/management_groups_api.rb +10 -8
  4. data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/error_details.rb +4 -0
  5. data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/error_response.rb +2 -0
  6. data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group.rb +7 -0
  7. data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group_child_info.rb +5 -0
  8. data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group_details_properties.rb +6 -0
  9. data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group_info.rb +6 -0
  10. data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group_list_result.rb +5 -1
  11. data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group_recursive_child_info.rb +7 -0
  12. data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group_with_children.rb +9 -0
  13. data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group_with_hierarchy.rb +9 -0
  14. data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/operation.rb +3 -0
  15. data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/operation_display.rb +4 -0
  16. data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/operation_list_result.rb +5 -1
  17. data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/parent_group_info.rb +3 -0
  18. data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/operations.rb +15 -13
  19. data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management.rb +42 -0
  20. data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/management_group_subscriptions.rb +209 -0
  21. data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/management_groups.rb +698 -0
  22. data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/management_groups_api.rb +137 -0
  23. data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/create_management_group_request.rb +59 -0
  24. data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/error_details.rb +57 -0
  25. data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/error_response.rb +47 -0
  26. data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/management_group.rb +130 -0
  27. data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/management_group_child_info.rb +91 -0
  28. data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/management_group_details.rb +81 -0
  29. data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/management_group_info.rb +98 -0
  30. data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/management_group_list_result.rb +99 -0
  31. data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/operation.rb +59 -0
  32. data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/operation_display.rb +83 -0
  33. data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/operation_list_result.rb +103 -0
  34. data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/parent_group_info.rb +59 -0
  35. data/lib/{2017-08-31-preview/generated/azure_mgmt_resources_management/version.rb → 2017-11-01-preview/generated/azure_mgmt_resources_management/module_definition.rb} +4 -3
  36. data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/operations.rb +219 -0
  37. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management.rb +56 -0
  38. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/entities.rb +257 -0
  39. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/management_group_subscriptions.rb +209 -0
  40. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/management_groups.rb +793 -0
  41. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/management_groups_api.rb +254 -0
  42. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/check_name_availability_request.rb +60 -0
  43. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/check_name_availability_result.rb +83 -0
  44. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/create_management_group_child_info.rb +131 -0
  45. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/create_management_group_details.rb +84 -0
  46. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/create_management_group_request.rb +153 -0
  47. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/create_parent_group_info.rb +72 -0
  48. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/entity_hierarchy_item.rb +118 -0
  49. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/entity_info.rb +121 -0
  50. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/entity_list_result.rb +99 -0
  51. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/entity_parent_group_info.rb +48 -0
  52. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/error_details.rb +69 -0
  53. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/error_response.rb +47 -0
  54. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/management_group.rb +150 -0
  55. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/management_group_child_info.rb +125 -0
  56. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/management_group_details.rb +81 -0
  57. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/management_group_info.rb +98 -0
  58. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/management_group_list_result.rb +99 -0
  59. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/operation.rb +59 -0
  60. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/operation_display_properties.rb +83 -0
  61. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/operation_list_result.rb +103 -0
  62. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/operation_results.rb +86 -0
  63. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/parent_group_info.rb +70 -0
  64. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/patch_management_group_request.rb +59 -0
  65. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/reason.rb +16 -0
  66. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/type.rb +15 -0
  67. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/module_definition.rb +9 -0
  68. data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/operations.rb +219 -0
  69. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management.rb +58 -0
  70. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/entities.rb +381 -0
  71. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/management_group_subscriptions.rb +202 -0
  72. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/management_groups.rb +799 -0
  73. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/management_groups_api.rb +401 -0
  74. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/check_name_availability_request.rb +60 -0
  75. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/check_name_availability_result.rb +83 -0
  76. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/create_management_group_child_info.rb +131 -0
  77. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/create_management_group_details.rb +84 -0
  78. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/create_management_group_request.rb +153 -0
  79. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/create_parent_group_info.rb +72 -0
  80. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/entity_hierarchy_item.rb +118 -0
  81. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/entity_info.rb +210 -0
  82. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/entity_list_result.rb +111 -0
  83. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/entity_parent_group_info.rb +48 -0
  84. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/error_details.rb +69 -0
  85. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/error_response.rb +47 -0
  86. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/management_group.rb +150 -0
  87. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/management_group_child_info.rb +125 -0
  88. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/management_group_details.rb +81 -0
  89. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/management_group_info.rb +98 -0
  90. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/management_group_list_result.rb +99 -0
  91. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/operation.rb +59 -0
  92. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/operation_display_properties.rb +83 -0
  93. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/operation_list_result.rb +103 -0
  94. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/operation_results.rb +86 -0
  95. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/parent_group_info.rb +70 -0
  96. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/patch_management_group_request.rb +59 -0
  97. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/reason.rb +16 -0
  98. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/status.rb +20 -0
  99. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/tenant_backfill_status_result.rb +63 -0
  100. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/type.rb +15 -0
  101. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/module_definition.rb +9 -0
  102. data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/operations.rb +218 -0
  103. data/lib/azure_mgmt_resources_management.rb +3 -0
  104. data/lib/profiles/latest/modules/resourcesmanagement_profile_module.rb +144 -69
  105. data/lib/profiles/latest/resourcesmanagement_latest_profile_client.rb +28 -11
  106. data/lib/profiles/latest/resourcesmanagement_module_definition.rb +0 -1
  107. data/lib/version.rb +1 -1
  108. metadata +95 -9
  109. data/lib/profiles/common/configurable.rb +0 -86
  110. data/lib/profiles/common/default.rb +0 -57
@@ -0,0 +1,137 @@
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::ResourcesManagement::Mgmt::V2017_11_01_preview
7
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class ManagementGroupsAPI < MsRestAzure::AzureServiceClient
11
+ include MsRestAzure
12
+ include MsRestAzure::Serialization
13
+
14
+ # @return [String] the base URI of the service.
15
+ attr_accessor :base_url
16
+
17
+ # @return Credentials needed for the client to connect to Azure.
18
+ attr_reader :credentials
19
+
20
+ # @return [String] Version of the API to be used with the client request.
21
+ # The current version is 2017-11-01-preview.
22
+ attr_reader :api_version
23
+
24
+ # @return [String] The preferred language for the response.
25
+ attr_accessor :accept_language
26
+
27
+ # @return [Integer] The retry timeout in seconds for Long Running
28
+ # Operations. Default value is 30.
29
+ attr_accessor :long_running_operation_retry_timeout
30
+
31
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
32
+ # generated. When set to true a unique x-ms-client-request-id value is
33
+ # generated and included in each request. Default is true.
34
+ attr_accessor :generate_client_request_id
35
+
36
+ # @return [ManagementGroups] management_groups
37
+ attr_reader :management_groups
38
+
39
+ # @return [ManagementGroupSubscriptions] management_group_subscriptions
40
+ attr_reader :management_group_subscriptions
41
+
42
+ # @return [Operations] operations
43
+ attr_reader :operations
44
+
45
+ #
46
+ # Creates initializes a new instance of the ManagementGroupsAPI class.
47
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
48
+ # @param base_url [String] the base URI of the service.
49
+ # @param options [Array] filters to be applied to the HTTP requests.
50
+ #
51
+ def initialize(credentials = nil, base_url = nil, options = nil)
52
+ super(credentials, options)
53
+ @base_url = base_url || 'https://management.azure.com'
54
+
55
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
56
+ @credentials = credentials
57
+
58
+ @management_groups = ManagementGroups.new(self)
59
+ @management_group_subscriptions = ManagementGroupSubscriptions.new(self)
60
+ @operations = Operations.new(self)
61
+ @api_version = '2017-11-01-preview'
62
+ @accept_language = 'en-US'
63
+ @long_running_operation_retry_timeout = 30
64
+ @generate_client_request_id = true
65
+ add_telemetry
66
+ end
67
+
68
+ #
69
+ # Makes a request and returns the body of the response.
70
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
71
+ # @param path [String] the path, relative to {base_url}.
72
+ # @param options [Hash{String=>String}] specifying any request options like :body.
73
+ # @return [Hash{String=>String}] containing the body of the response.
74
+ # Example:
75
+ #
76
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
77
+ # path = "/path"
78
+ # options = {
79
+ # body: request_content,
80
+ # query_params: {'api-version' => '2016-02-01'}
81
+ # }
82
+ # result = @client.make_request(:put, path, options)
83
+ #
84
+ def make_request(method, path, options = {})
85
+ result = make_request_with_http_info(method, path, options)
86
+ result.body unless result.nil?
87
+ end
88
+
89
+ #
90
+ # Makes a request and returns the operation response.
91
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
92
+ # @param path [String] the path, relative to {base_url}.
93
+ # @param options [Hash{String=>String}] specifying any request options like :body.
94
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
95
+ #
96
+ def make_request_with_http_info(method, path, options = {})
97
+ result = make_request_async(method, path, options).value!
98
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
99
+ result
100
+ end
101
+
102
+ #
103
+ # Makes a request asynchronously.
104
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
105
+ # @param path [String] the path, relative to {base_url}.
106
+ # @param options [Hash{String=>String}] specifying any request options like :body.
107
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
108
+ #
109
+ def make_request_async(method, path, options = {})
110
+ fail ArgumentError, 'method is nil' if method.nil?
111
+ fail ArgumentError, 'path is nil' if path.nil?
112
+
113
+ request_url = options[:base_url] || @base_url
114
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
115
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
116
+ end
117
+
118
+ request_headers = @request_headers
119
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
120
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
121
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
122
+
123
+ super(request_url, method, path, options)
124
+ end
125
+
126
+
127
+ private
128
+ #
129
+ # Adds telemetry information.
130
+ #
131
+ def add_telemetry
132
+ sdk_information = 'azure_mgmt_resources_management'
133
+ sdk_information = "#{sdk_information}/0.17.2"
134
+ add_user_agent_information(sdk_information)
135
+ end
136
+ end
137
+ end
@@ -0,0 +1,59 @@
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::ResourcesManagement::Mgmt::V2017_11_01_preview
7
+ module Models
8
+ #
9
+ # Management group creation parameters.
10
+ #
11
+ class CreateManagementGroupRequest
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The friendly name of the management group.
16
+ attr_accessor :display_name
17
+
18
+ # @return [String] (Optional) The fully qualified ID for the parent
19
+ # management group. For example,
20
+ # /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
21
+ attr_accessor :parent_id
22
+
23
+
24
+ #
25
+ # Mapper for CreateManagementGroupRequest class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ client_side_validation: true,
31
+ required: false,
32
+ serialized_name: 'CreateManagementGroupRequest',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'CreateManagementGroupRequest',
36
+ model_properties: {
37
+ display_name: {
38
+ client_side_validation: true,
39
+ required: false,
40
+ serialized_name: 'displayName',
41
+ type: {
42
+ name: 'String'
43
+ }
44
+ },
45
+ parent_id: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'parentId',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,57 @@
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::ResourcesManagement::Mgmt::V2017_11_01_preview
7
+ module Models
8
+ #
9
+ # The details of the error.
10
+ #
11
+ class ErrorDetails
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] One of a server-defined set of error codes.
16
+ attr_accessor :code
17
+
18
+ # @return [String] A human-readable representation of the error.
19
+ attr_accessor :message
20
+
21
+
22
+ #
23
+ # Mapper for ErrorDetails class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'ErrorDetails',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'ErrorDetails',
34
+ model_properties: {
35
+ code: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'code',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ message: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'message',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,47 @@
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::ResourcesManagement::Mgmt::V2017_11_01_preview
7
+ module Models
8
+ #
9
+ # The error object.
10
+ #
11
+ class ErrorResponse
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [ErrorDetails] Error.
16
+ attr_accessor :error
17
+
18
+
19
+ #
20
+ # Mapper for ErrorResponse class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'ErrorResponse',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'ErrorResponse',
31
+ model_properties: {
32
+ error: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'error',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'ErrorDetails'
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,130 @@
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::ResourcesManagement::Mgmt::V2017_11_01_preview
7
+ module Models
8
+ #
9
+ # The management group details.
10
+ #
11
+ class ManagementGroup
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The fully qualified ID for the management group. For
16
+ # example,
17
+ # /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
18
+ attr_accessor :id
19
+
20
+ # @return [String] The type of the resource. For example,
21
+ # /providers/Microsoft.Management/managementGroups
22
+ attr_accessor :type
23
+
24
+ # @return [String] The name of the management group. For example,
25
+ # 00000000-0000-0000-0000-000000000000
26
+ attr_accessor :name
27
+
28
+ # @return [String] The AAD Tenant ID associated with the management
29
+ # group. For example, 00000000-0000-0000-0000-000000000000
30
+ attr_accessor :tenant_id
31
+
32
+ # @return [String] The friendly name of the management group.
33
+ attr_accessor :display_name
34
+
35
+ # @return [ManagementGroupDetails] Details.
36
+ attr_accessor :details
37
+
38
+ # @return [Array<ManagementGroupChildInfo>] The list of children.
39
+ attr_accessor :children
40
+
41
+
42
+ #
43
+ # Mapper for ManagementGroup class as Ruby Hash.
44
+ # This will be used for serialization/deserialization.
45
+ #
46
+ def self.mapper()
47
+ {
48
+ client_side_validation: true,
49
+ required: false,
50
+ serialized_name: 'ManagementGroup',
51
+ type: {
52
+ name: 'Composite',
53
+ class_name: 'ManagementGroup',
54
+ model_properties: {
55
+ id: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ read_only: true,
59
+ serialized_name: 'id',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ type: {
65
+ client_side_validation: true,
66
+ required: false,
67
+ read_only: true,
68
+ serialized_name: 'type',
69
+ type: {
70
+ name: 'String'
71
+ }
72
+ },
73
+ name: {
74
+ client_side_validation: true,
75
+ required: false,
76
+ read_only: true,
77
+ serialized_name: 'name',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ },
82
+ tenant_id: {
83
+ client_side_validation: true,
84
+ required: false,
85
+ serialized_name: 'properties.tenantId',
86
+ type: {
87
+ name: 'String'
88
+ }
89
+ },
90
+ display_name: {
91
+ client_side_validation: true,
92
+ required: false,
93
+ serialized_name: 'properties.displayName',
94
+ type: {
95
+ name: 'String'
96
+ }
97
+ },
98
+ details: {
99
+ client_side_validation: true,
100
+ required: false,
101
+ serialized_name: 'properties.details',
102
+ type: {
103
+ name: 'Composite',
104
+ class_name: 'ManagementGroupDetails'
105
+ }
106
+ },
107
+ children: {
108
+ client_side_validation: true,
109
+ required: false,
110
+ serialized_name: 'properties.children',
111
+ type: {
112
+ name: 'Sequence',
113
+ element: {
114
+ client_side_validation: true,
115
+ required: false,
116
+ serialized_name: 'ManagementGroupChildInfoElementType',
117
+ type: {
118
+ name: 'Composite',
119
+ class_name: 'ManagementGroupChildInfo'
120
+ }
121
+ }
122
+ }
123
+ }
124
+ }
125
+ }
126
+ }
127
+ end
128
+ end
129
+ end
130
+ end
@@ -0,0 +1,91 @@
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::ResourcesManagement::Mgmt::V2017_11_01_preview
7
+ module Models
8
+ #
9
+ # The child information of a management group.
10
+ #
11
+ class ManagementGroupChildInfo
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Enum] The type of child resource. Possible values include:
16
+ # 'ManagementGroup', 'Subscription'
17
+ attr_accessor :child_type
18
+
19
+ # @return [String] The fully qualified ID for the child resource
20
+ # (management group or subscription). For example,
21
+ # /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
22
+ attr_accessor :child_id
23
+
24
+ # @return [String] The friendly name of the child resource.
25
+ attr_accessor :display_name
26
+
27
+ # @return [Array<ManagementGroupChildInfo>] The list of children.
28
+ attr_accessor :children
29
+
30
+
31
+ #
32
+ # Mapper for ManagementGroupChildInfo class as Ruby Hash.
33
+ # This will be used for serialization/deserialization.
34
+ #
35
+ def self.mapper()
36
+ {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'ManagementGroupChildInfo',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'ManagementGroupChildInfo',
43
+ model_properties: {
44
+ child_type: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'childType',
48
+ type: {
49
+ name: 'String'
50
+ }
51
+ },
52
+ child_id: {
53
+ client_side_validation: true,
54
+ required: false,
55
+ serialized_name: 'childId',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
60
+ display_name: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ serialized_name: 'displayName',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ children: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ serialized_name: 'children',
72
+ type: {
73
+ name: 'Sequence',
74
+ element: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'ManagementGroupChildInfoElementType',
78
+ type: {
79
+ name: 'Composite',
80
+ class_name: 'ManagementGroupChildInfo'
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
87
+ }
88
+ end
89
+ end
90
+ end
91
+ end