azure_mgmt_resources_management 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/azure_mgmt_resources_management.rb +7 -0
  4. data/lib/generated/azure_mgmt_resources_management.rb +43 -0
  5. data/lib/generated/azure_mgmt_resources_management/management_groups.rb +349 -0
  6. data/lib/generated/azure_mgmt_resources_management/management_groups_api.rb +134 -0
  7. data/lib/generated/azure_mgmt_resources_management/models/error_details.rb +64 -0
  8. data/lib/generated/azure_mgmt_resources_management/models/error_response.rb +45 -0
  9. data/lib/generated/azure_mgmt_resources_management/models/management_group.rb +102 -0
  10. data/lib/generated/azure_mgmt_resources_management/models/management_group_child_info.rb +78 -0
  11. data/lib/generated/azure_mgmt_resources_management/models/management_group_details_properties.rb +87 -0
  12. data/lib/generated/azure_mgmt_resources_management/models/management_group_info.rb +91 -0
  13. data/lib/generated/azure_mgmt_resources_management/models/management_group_list_result.rb +95 -0
  14. data/lib/generated/azure_mgmt_resources_management/models/management_group_recursive_child_info.rb +97 -0
  15. data/lib/generated/azure_mgmt_resources_management/models/management_group_with_children.rb +120 -0
  16. data/lib/generated/azure_mgmt_resources_management/models/management_group_with_hierarchy.rb +121 -0
  17. data/lib/generated/azure_mgmt_resources_management/models/operation.rb +56 -0
  18. data/lib/generated/azure_mgmt_resources_management/models/operation_display.rb +68 -0
  19. data/lib/generated/azure_mgmt_resources_management/models/operation_list_result.rb +99 -0
  20. data/lib/generated/azure_mgmt_resources_management/models/parent_group_info.rb +55 -0
  21. data/lib/generated/azure_mgmt_resources_management/module_definition.rb +8 -0
  22. data/lib/generated/azure_mgmt_resources_management/operations.rb +217 -0
  23. data/lib/generated/azure_mgmt_resources_management/version.rb +8 -0
  24. metadata +135 -0
@@ -0,0 +1,95 @@
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::ARM::ResourcesManagement
7
+ module Models
8
+ #
9
+ # The result of listing management groups.
10
+ #
11
+ class ManagementGroupListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<ManagementGroupInfo>] The list of management groups.
17
+ attr_accessor :value
18
+
19
+ # @return [String] The URL to the next page of results.
20
+ attr_accessor :next_link
21
+
22
+ # return [Proc] with next page method call.
23
+ attr_accessor :next_method
24
+
25
+ #
26
+ # Gets the rest of the items for the request, enabling auto-pagination.
27
+ #
28
+ # @return [Array<ManagementGroupInfo>] operation results.
29
+ #
30
+ def get_all_items
31
+ items = @value
32
+ page = self
33
+ while page.next_link != nil do
34
+ page = page.get_next_page
35
+ items.concat(page.value)
36
+ end
37
+ items
38
+ end
39
+
40
+ #
41
+ # Gets the next page of results.
42
+ #
43
+ # @return [ManagementGroupListResult] with next page content.
44
+ #
45
+ def get_next_page
46
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
47
+ unless response.nil?
48
+ @next_link = response.body.next_link
49
+ @value = response.body.value
50
+ self
51
+ end
52
+ end
53
+
54
+ #
55
+ # Mapper for ManagementGroupListResult class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ required: false,
61
+ serialized_name: 'ManagementGroupListResult',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'ManagementGroupListResult',
65
+ model_properties: {
66
+ value: {
67
+ required: false,
68
+ serialized_name: 'value',
69
+ type: {
70
+ name: 'Sequence',
71
+ element: {
72
+ required: false,
73
+ serialized_name: 'ManagementGroupInfoElementType',
74
+ type: {
75
+ name: 'Composite',
76
+ class_name: 'ManagementGroupInfo'
77
+ }
78
+ }
79
+ }
80
+ },
81
+ next_link: {
82
+ required: false,
83
+ read_only: true,
84
+ serialized_name: 'nextLink',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+ end
93
+ end
94
+ end
95
+ end
@@ -0,0 +1,97 @@
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::ARM::ResourcesManagement
7
+ module Models
8
+ #
9
+ # The unique identifier (ID) of a management group.
10
+ #
11
+ class ManagementGroupRecursiveChildInfo
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Enum] Managment Group Recursive Child Info. Possible values
16
+ # include: 'Enrollment', 'Department', 'Account', 'Subscription'
17
+ attr_accessor :child_type
18
+
19
+ # @return [String] The ID of the child resource (management group or
20
+ # subscription). E.g.
21
+ # /providers/Microsoft.Management/managementGroups/40000000-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 (Optional) The AAD Tenant ID associated with the child
28
+ # resource.
29
+ attr_accessor :tenant_id
30
+
31
+ # @return [Array<ManagementGroupRecursiveChildInfo>] The list of
32
+ # children.
33
+ attr_accessor :children
34
+
35
+
36
+ #
37
+ # Mapper for ManagementGroupRecursiveChildInfo class as Ruby Hash.
38
+ # This will be used for serialization/deserialization.
39
+ #
40
+ def self.mapper()
41
+ {
42
+ required: false,
43
+ serialized_name: 'ManagementGroupRecursiveChildInfo',
44
+ type: {
45
+ name: 'Composite',
46
+ class_name: 'ManagementGroupRecursiveChildInfo',
47
+ model_properties: {
48
+ child_type: {
49
+ required: false,
50
+ serialized_name: 'childType',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ },
55
+ child_id: {
56
+ required: false,
57
+ serialized_name: 'childId',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ display_name: {
63
+ required: false,
64
+ serialized_name: 'displayName',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ },
69
+ tenant_id: {
70
+ required: false,
71
+ serialized_name: 'tenantId',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ },
76
+ children: {
77
+ required: false,
78
+ serialized_name: 'children',
79
+ type: {
80
+ name: 'Sequence',
81
+ element: {
82
+ required: false,
83
+ serialized_name: 'ManagementGroupRecursiveChildInfoElementType',
84
+ type: {
85
+ name: 'Composite',
86
+ class_name: 'ManagementGroupRecursiveChildInfo'
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ end
95
+ end
96
+ end
97
+ end
@@ -0,0 +1,120 @@
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::ARM::ResourcesManagement
7
+ module Models
8
+ #
9
+ # The management group details.
10
+ #
11
+ class ManagementGroupWithChildren
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The ID of the management group. E.g.
16
+ # /providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000
17
+ attr_accessor :id
18
+
19
+ # @return [String] The type of the resource. E.g.
20
+ # /providers/Microsoft.Management/managementGroups
21
+ attr_accessor :type
22
+
23
+ # @return The name of the management group. E.g.
24
+ # 20000000-0000-0000-0000-000000000000
25
+ attr_accessor :name
26
+
27
+ # @return The AAD Tenant ID associated with the management group. E.g.
28
+ # 10000000-0000-0000-0000-000000000000
29
+ attr_accessor :tenant_id
30
+
31
+ # @return [String] The friendly name of the management group.
32
+ attr_accessor :display_name
33
+
34
+ # @return [ManagementGroupDetailsProperties] Details.
35
+ attr_accessor :details
36
+
37
+ # @return [Array<ManagementGroupChildInfo>] The list of children.
38
+ attr_accessor :children
39
+
40
+
41
+ #
42
+ # Mapper for ManagementGroupWithChildren class as Ruby Hash.
43
+ # This will be used for serialization/deserialization.
44
+ #
45
+ def self.mapper()
46
+ {
47
+ required: false,
48
+ serialized_name: 'ManagementGroupWithChildren',
49
+ type: {
50
+ name: 'Composite',
51
+ class_name: 'ManagementGroupWithChildren',
52
+ model_properties: {
53
+ id: {
54
+ required: false,
55
+ read_only: true,
56
+ serialized_name: 'id',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ },
61
+ type: {
62
+ required: false,
63
+ read_only: true,
64
+ serialized_name: 'type',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ },
69
+ name: {
70
+ required: false,
71
+ read_only: true,
72
+ serialized_name: 'name',
73
+ type: {
74
+ name: 'String'
75
+ }
76
+ },
77
+ tenant_id: {
78
+ required: false,
79
+ serialized_name: 'properties.tenantId',
80
+ type: {
81
+ name: 'String'
82
+ }
83
+ },
84
+ display_name: {
85
+ required: false,
86
+ serialized_name: 'properties.displayName',
87
+ type: {
88
+ name: 'String'
89
+ }
90
+ },
91
+ details: {
92
+ required: false,
93
+ serialized_name: 'properties.details',
94
+ type: {
95
+ name: 'Composite',
96
+ class_name: 'ManagementGroupDetailsProperties'
97
+ }
98
+ },
99
+ children: {
100
+ required: false,
101
+ serialized_name: 'properties.children',
102
+ type: {
103
+ name: 'Sequence',
104
+ element: {
105
+ required: false,
106
+ serialized_name: 'ManagementGroupChildInfoElementType',
107
+ type: {
108
+ name: 'Composite',
109
+ class_name: 'ManagementGroupChildInfo'
110
+ }
111
+ }
112
+ }
113
+ }
114
+ }
115
+ }
116
+ }
117
+ end
118
+ end
119
+ end
120
+ end
@@ -0,0 +1,121 @@
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::ARM::ResourcesManagement
7
+ module Models
8
+ #
9
+ # The management group details.
10
+ #
11
+ class ManagementGroupWithHierarchy
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The ID of the management group. E.g.
16
+ # /providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000
17
+ attr_accessor :id
18
+
19
+ # @return [String] The type of the resource. E.g.
20
+ # /providers/Microsoft.Management/managementGroups
21
+ attr_accessor :type
22
+
23
+ # @return The name of the management group. E.g.
24
+ # 20000000-0000-0000-0000-000000000000
25
+ attr_accessor :name
26
+
27
+ # @return The AAD Tenant ID associated with the management group. E.g.
28
+ # 10000000-0000-0000-0000-000000000000
29
+ attr_accessor :tenant_id
30
+
31
+ # @return [String] The friendly name of the management group.
32
+ attr_accessor :display_name
33
+
34
+ # @return [ManagementGroupDetailsProperties] Details.
35
+ attr_accessor :details
36
+
37
+ # @return [Array<ManagementGroupRecursiveChildInfo>] The list of
38
+ # children.
39
+ attr_accessor :children
40
+
41
+
42
+ #
43
+ # Mapper for ManagementGroupWithHierarchy class as Ruby Hash.
44
+ # This will be used for serialization/deserialization.
45
+ #
46
+ def self.mapper()
47
+ {
48
+ required: false,
49
+ serialized_name: 'ManagementGroupWithHierarchy',
50
+ type: {
51
+ name: 'Composite',
52
+ class_name: 'ManagementGroupWithHierarchy',
53
+ model_properties: {
54
+ id: {
55
+ required: false,
56
+ read_only: true,
57
+ serialized_name: 'id',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ type: {
63
+ required: false,
64
+ read_only: true,
65
+ serialized_name: 'type',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ },
70
+ name: {
71
+ required: false,
72
+ read_only: true,
73
+ serialized_name: 'name',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ },
78
+ tenant_id: {
79
+ required: false,
80
+ serialized_name: 'properties.tenantId',
81
+ type: {
82
+ name: 'String'
83
+ }
84
+ },
85
+ display_name: {
86
+ required: false,
87
+ serialized_name: 'properties.displayName',
88
+ type: {
89
+ name: 'String'
90
+ }
91
+ },
92
+ details: {
93
+ required: false,
94
+ serialized_name: 'properties.details',
95
+ type: {
96
+ name: 'Composite',
97
+ class_name: 'ManagementGroupDetailsProperties'
98
+ }
99
+ },
100
+ children: {
101
+ required: false,
102
+ serialized_name: 'properties.children',
103
+ type: {
104
+ name: 'Sequence',
105
+ element: {
106
+ required: false,
107
+ serialized_name: 'ManagementGroupRecursiveChildInfoElementType',
108
+ type: {
109
+ name: 'Composite',
110
+ class_name: 'ManagementGroupRecursiveChildInfo'
111
+ }
112
+ }
113
+ }
114
+ }
115
+ }
116
+ }
117
+ }
118
+ end
119
+ end
120
+ end
121
+ end
@@ -0,0 +1,56 @@
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::ARM::ResourcesManagement
7
+ module Models
8
+ #
9
+ # A Management REST API operation.
10
+ #
11
+ class Operation
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Operation name: {provider}/{resource}/{operation}.
16
+ attr_accessor :name
17
+
18
+ # @return [OperationDisplay] The object that represents the operation.
19
+ attr_accessor :display
20
+
21
+
22
+ #
23
+ # Mapper for Operation class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ required: false,
29
+ serialized_name: 'Operation',
30
+ type: {
31
+ name: 'Composite',
32
+ class_name: 'Operation',
33
+ model_properties: {
34
+ name: {
35
+ required: false,
36
+ read_only: true,
37
+ serialized_name: 'name',
38
+ type: {
39
+ name: 'String'
40
+ }
41
+ },
42
+ display: {
43
+ required: false,
44
+ serialized_name: 'display',
45
+ type: {
46
+ name: 'Composite',
47
+ class_name: 'OperationDisplay'
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ end
54
+ end
55
+ end
56
+ end