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.
- checksums.yaml +5 -5
- data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/management_groups.rb +21 -18
- data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/management_groups_api.rb +10 -8
- data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/error_details.rb +4 -0
- data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/error_response.rb +2 -0
- data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group.rb +7 -0
- data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group_child_info.rb +5 -0
- data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group_details_properties.rb +6 -0
- data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group_info.rb +6 -0
- data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group_list_result.rb +5 -1
- data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group_recursive_child_info.rb +7 -0
- data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group_with_children.rb +9 -0
- data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group_with_hierarchy.rb +9 -0
- data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/operation.rb +3 -0
- data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/operation_display.rb +4 -0
- data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/operation_list_result.rb +5 -1
- data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/parent_group_info.rb +3 -0
- data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/operations.rb +15 -13
- data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management.rb +42 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/management_group_subscriptions.rb +209 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/management_groups.rb +698 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/management_groups_api.rb +137 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/create_management_group_request.rb +59 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/error_details.rb +57 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/error_response.rb +47 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/management_group.rb +130 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/management_group_child_info.rb +91 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/management_group_details.rb +81 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/management_group_info.rb +98 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/management_group_list_result.rb +99 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/operation.rb +59 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/operation_display.rb +83 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/operation_list_result.rb +103 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/parent_group_info.rb +59 -0
- 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
- data/lib/2017-11-01-preview/generated/azure_mgmt_resources_management/operations.rb +219 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management.rb +56 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/entities.rb +257 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/management_group_subscriptions.rb +209 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/management_groups.rb +793 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/management_groups_api.rb +254 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/check_name_availability_request.rb +60 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/check_name_availability_result.rb +83 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/create_management_group_child_info.rb +131 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/create_management_group_details.rb +84 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/create_management_group_request.rb +153 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/create_parent_group_info.rb +72 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/entity_hierarchy_item.rb +118 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/entity_info.rb +121 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/entity_list_result.rb +99 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/entity_parent_group_info.rb +48 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/error_details.rb +69 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/error_response.rb +47 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/management_group.rb +150 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/management_group_child_info.rb +125 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/management_group_details.rb +81 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/management_group_info.rb +98 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/management_group_list_result.rb +99 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/operation.rb +59 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/operation_display_properties.rb +83 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/operation_list_result.rb +103 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/operation_results.rb +86 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/parent_group_info.rb +70 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/patch_management_group_request.rb +59 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/reason.rb +16 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/models/type.rb +15 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/module_definition.rb +9 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_resources_management/operations.rb +219 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management.rb +58 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/entities.rb +381 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/management_group_subscriptions.rb +202 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/management_groups.rb +799 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/management_groups_api.rb +401 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/check_name_availability_request.rb +60 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/check_name_availability_result.rb +83 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/create_management_group_child_info.rb +131 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/create_management_group_details.rb +84 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/create_management_group_request.rb +153 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/create_parent_group_info.rb +72 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/entity_hierarchy_item.rb +118 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/entity_info.rb +210 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/entity_list_result.rb +111 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/entity_parent_group_info.rb +48 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/error_details.rb +69 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/error_response.rb +47 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/management_group.rb +150 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/management_group_child_info.rb +125 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/management_group_details.rb +81 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/management_group_info.rb +98 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/management_group_list_result.rb +99 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/operation.rb +59 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/operation_display_properties.rb +83 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/operation_list_result.rb +103 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/operation_results.rb +86 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/parent_group_info.rb +70 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/patch_management_group_request.rb +59 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/reason.rb +16 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/status.rb +20 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/tenant_backfill_status_result.rb +63 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/type.rb +15 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/module_definition.rb +9 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/operations.rb +218 -0
- data/lib/azure_mgmt_resources_management.rb +3 -0
- data/lib/profiles/latest/modules/resourcesmanagement_profile_module.rb +144 -69
- data/lib/profiles/latest/resourcesmanagement_latest_profile_client.rb +28 -11
- data/lib/profiles/latest/resourcesmanagement_module_definition.rb +0 -1
- data/lib/version.rb +1 -1
- metadata +95 -9
- data/lib/profiles/common/configurable.rb +0 -86
- data/lib/profiles/common/default.rb +0 -57
@@ -0,0 +1,72 @@
|
|
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::V2018_03_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# (Optional) The ID of the parent management group used during creation.
|
10
|
+
#
|
11
|
+
class CreateParentGroupInfo
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The fully qualified ID for the parent management
|
16
|
+
# group. For example,
|
17
|
+
# /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
|
18
|
+
attr_accessor :id
|
19
|
+
|
20
|
+
# @return [String] The name of the parent management group
|
21
|
+
attr_accessor :name
|
22
|
+
|
23
|
+
# @return [String] The friendly name of the parent management group.
|
24
|
+
attr_accessor :display_name
|
25
|
+
|
26
|
+
|
27
|
+
#
|
28
|
+
# Mapper for CreateParentGroupInfo class as Ruby Hash.
|
29
|
+
# This will be used for serialization/deserialization.
|
30
|
+
#
|
31
|
+
def self.mapper()
|
32
|
+
{
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'CreateParentGroupInfo',
|
36
|
+
type: {
|
37
|
+
name: 'Composite',
|
38
|
+
class_name: 'CreateParentGroupInfo',
|
39
|
+
model_properties: {
|
40
|
+
id: {
|
41
|
+
client_side_validation: true,
|
42
|
+
required: false,
|
43
|
+
serialized_name: 'id',
|
44
|
+
type: {
|
45
|
+
name: 'String'
|
46
|
+
}
|
47
|
+
},
|
48
|
+
name: {
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
read_only: true,
|
52
|
+
serialized_name: 'name',
|
53
|
+
type: {
|
54
|
+
name: 'String'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
display_name: {
|
58
|
+
client_side_validation: true,
|
59
|
+
required: false,
|
60
|
+
read_only: true,
|
61
|
+
serialized_name: 'displayName',
|
62
|
+
type: {
|
63
|
+
name: 'String'
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,118 @@
|
|
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::V2018_03_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The management group details for the hierarchy view.
|
10
|
+
#
|
11
|
+
class EntityHierarchyItem
|
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 friendly name of the management group.
|
29
|
+
attr_accessor :display_name
|
30
|
+
|
31
|
+
# @return [Enum] Permissions. Possible values include: 'noaccess',
|
32
|
+
# 'view', 'edit', 'delete'
|
33
|
+
attr_accessor :permissions
|
34
|
+
|
35
|
+
# @return [Array<EntityHierarchyItem>] The list of children.
|
36
|
+
attr_accessor :children
|
37
|
+
|
38
|
+
|
39
|
+
#
|
40
|
+
# Mapper for EntityHierarchyItem class as Ruby Hash.
|
41
|
+
# This will be used for serialization/deserialization.
|
42
|
+
#
|
43
|
+
def self.mapper()
|
44
|
+
{
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'EntityHierarchyItem',
|
48
|
+
type: {
|
49
|
+
name: 'Composite',
|
50
|
+
class_name: 'EntityHierarchyItem',
|
51
|
+
model_properties: {
|
52
|
+
id: {
|
53
|
+
client_side_validation: true,
|
54
|
+
required: false,
|
55
|
+
read_only: true,
|
56
|
+
serialized_name: 'id',
|
57
|
+
type: {
|
58
|
+
name: 'String'
|
59
|
+
}
|
60
|
+
},
|
61
|
+
type: {
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
read_only: true,
|
65
|
+
serialized_name: 'type',
|
66
|
+
type: {
|
67
|
+
name: 'String'
|
68
|
+
}
|
69
|
+
},
|
70
|
+
name: {
|
71
|
+
client_side_validation: true,
|
72
|
+
required: false,
|
73
|
+
read_only: true,
|
74
|
+
serialized_name: 'name',
|
75
|
+
type: {
|
76
|
+
name: 'String'
|
77
|
+
}
|
78
|
+
},
|
79
|
+
display_name: {
|
80
|
+
client_side_validation: true,
|
81
|
+
required: false,
|
82
|
+
serialized_name: 'properties.displayName',
|
83
|
+
type: {
|
84
|
+
name: 'String'
|
85
|
+
}
|
86
|
+
},
|
87
|
+
permissions: {
|
88
|
+
client_side_validation: true,
|
89
|
+
required: false,
|
90
|
+
serialized_name: 'properties.permissions',
|
91
|
+
type: {
|
92
|
+
name: 'String'
|
93
|
+
}
|
94
|
+
},
|
95
|
+
children: {
|
96
|
+
client_side_validation: true,
|
97
|
+
required: false,
|
98
|
+
serialized_name: 'properties.children',
|
99
|
+
type: {
|
100
|
+
name: 'Sequence',
|
101
|
+
element: {
|
102
|
+
client_side_validation: true,
|
103
|
+
required: false,
|
104
|
+
serialized_name: 'EntityHierarchyItemElementType',
|
105
|
+
type: {
|
106
|
+
name: 'Composite',
|
107
|
+
class_name: 'EntityHierarchyItem'
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
@@ -0,0 +1,210 @@
|
|
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::V2018_03_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The entity.
|
10
|
+
#
|
11
|
+
class EntityInfo
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The fully qualified ID for the entity. For example,
|
16
|
+
# /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
|
17
|
+
attr_accessor :id
|
18
|
+
|
19
|
+
# @return [String] The type of the resource. For example,
|
20
|
+
# /providers/Microsoft.Management/managementGroups
|
21
|
+
attr_accessor :type
|
22
|
+
|
23
|
+
# @return [String] The name of the entity. For example,
|
24
|
+
# 00000000-0000-0000-0000-000000000000
|
25
|
+
attr_accessor :name
|
26
|
+
|
27
|
+
# @return [String] The AAD Tenant ID associated with the entity. For
|
28
|
+
# example, 00000000-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 [EntityParentGroupInfo] Parent.
|
35
|
+
attr_accessor :parent
|
36
|
+
|
37
|
+
# @return [Enum] Permissions. Possible values include: 'noaccess',
|
38
|
+
# 'view', 'edit', 'delete'
|
39
|
+
attr_accessor :permissions
|
40
|
+
|
41
|
+
# @return [Enum] Inherited Permissions. Possible values include:
|
42
|
+
# 'noaccess', 'view', 'edit', 'delete'
|
43
|
+
attr_accessor :inherited_permissions
|
44
|
+
|
45
|
+
# @return [Integer] Number of Descendants.
|
46
|
+
attr_accessor :number_of_descendants
|
47
|
+
|
48
|
+
# @return [Integer] Number of Children. Number of children is the number
|
49
|
+
# of Groups and Subscriptions that are exactly one level underneath the
|
50
|
+
# current Group.
|
51
|
+
attr_accessor :number_of_children
|
52
|
+
|
53
|
+
# @return [Integer] Number of Child Groups. Number of child groups is the
|
54
|
+
# number of Groups that are exactly one level underneath the current
|
55
|
+
# Group.
|
56
|
+
attr_accessor :number_of_child_groups
|
57
|
+
|
58
|
+
# @return [Array<String>] The parent display name chain from the root
|
59
|
+
# group to the immediate parent
|
60
|
+
attr_accessor :parent_display_name_chain
|
61
|
+
|
62
|
+
# @return [Array<String>] The parent name chain from the root group to
|
63
|
+
# the immediate parent
|
64
|
+
attr_accessor :parent_name_chain
|
65
|
+
|
66
|
+
|
67
|
+
#
|
68
|
+
# Mapper for EntityInfo class as Ruby Hash.
|
69
|
+
# This will be used for serialization/deserialization.
|
70
|
+
#
|
71
|
+
def self.mapper()
|
72
|
+
{
|
73
|
+
client_side_validation: true,
|
74
|
+
required: false,
|
75
|
+
serialized_name: 'EntityInfo',
|
76
|
+
type: {
|
77
|
+
name: 'Composite',
|
78
|
+
class_name: 'EntityInfo',
|
79
|
+
model_properties: {
|
80
|
+
id: {
|
81
|
+
client_side_validation: true,
|
82
|
+
required: false,
|
83
|
+
read_only: true,
|
84
|
+
serialized_name: 'id',
|
85
|
+
type: {
|
86
|
+
name: 'String'
|
87
|
+
}
|
88
|
+
},
|
89
|
+
type: {
|
90
|
+
client_side_validation: true,
|
91
|
+
required: false,
|
92
|
+
read_only: true,
|
93
|
+
serialized_name: 'type',
|
94
|
+
type: {
|
95
|
+
name: 'String'
|
96
|
+
}
|
97
|
+
},
|
98
|
+
name: {
|
99
|
+
client_side_validation: true,
|
100
|
+
required: false,
|
101
|
+
read_only: true,
|
102
|
+
serialized_name: 'name',
|
103
|
+
type: {
|
104
|
+
name: 'String'
|
105
|
+
}
|
106
|
+
},
|
107
|
+
tenant_id: {
|
108
|
+
client_side_validation: true,
|
109
|
+
required: false,
|
110
|
+
serialized_name: 'properties.tenantId',
|
111
|
+
type: {
|
112
|
+
name: 'String'
|
113
|
+
}
|
114
|
+
},
|
115
|
+
display_name: {
|
116
|
+
client_side_validation: true,
|
117
|
+
required: false,
|
118
|
+
serialized_name: 'properties.displayName',
|
119
|
+
type: {
|
120
|
+
name: 'String'
|
121
|
+
}
|
122
|
+
},
|
123
|
+
parent: {
|
124
|
+
client_side_validation: true,
|
125
|
+
required: false,
|
126
|
+
serialized_name: 'properties.parent',
|
127
|
+
type: {
|
128
|
+
name: 'Composite',
|
129
|
+
class_name: 'EntityParentGroupInfo'
|
130
|
+
}
|
131
|
+
},
|
132
|
+
permissions: {
|
133
|
+
client_side_validation: true,
|
134
|
+
required: false,
|
135
|
+
serialized_name: 'properties.permissions',
|
136
|
+
type: {
|
137
|
+
name: 'String'
|
138
|
+
}
|
139
|
+
},
|
140
|
+
inherited_permissions: {
|
141
|
+
client_side_validation: true,
|
142
|
+
required: false,
|
143
|
+
serialized_name: 'properties.inheritedPermissions',
|
144
|
+
type: {
|
145
|
+
name: 'String'
|
146
|
+
}
|
147
|
+
},
|
148
|
+
number_of_descendants: {
|
149
|
+
client_side_validation: true,
|
150
|
+
required: false,
|
151
|
+
serialized_name: 'properties.numberOfDescendants',
|
152
|
+
type: {
|
153
|
+
name: 'Number'
|
154
|
+
}
|
155
|
+
},
|
156
|
+
number_of_children: {
|
157
|
+
client_side_validation: true,
|
158
|
+
required: false,
|
159
|
+
serialized_name: 'properties.numberOfChildren',
|
160
|
+
type: {
|
161
|
+
name: 'Number'
|
162
|
+
}
|
163
|
+
},
|
164
|
+
number_of_child_groups: {
|
165
|
+
client_side_validation: true,
|
166
|
+
required: false,
|
167
|
+
serialized_name: 'properties.numberOfChildGroups',
|
168
|
+
type: {
|
169
|
+
name: 'Number'
|
170
|
+
}
|
171
|
+
},
|
172
|
+
parent_display_name_chain: {
|
173
|
+
client_side_validation: true,
|
174
|
+
required: false,
|
175
|
+
serialized_name: 'properties.parentDisplayNameChain',
|
176
|
+
type: {
|
177
|
+
name: 'Sequence',
|
178
|
+
element: {
|
179
|
+
client_side_validation: true,
|
180
|
+
required: false,
|
181
|
+
serialized_name: 'StringElementType',
|
182
|
+
type: {
|
183
|
+
name: 'String'
|
184
|
+
}
|
185
|
+
}
|
186
|
+
}
|
187
|
+
},
|
188
|
+
parent_name_chain: {
|
189
|
+
client_side_validation: true,
|
190
|
+
required: false,
|
191
|
+
serialized_name: 'properties.parentNameChain',
|
192
|
+
type: {
|
193
|
+
name: 'Sequence',
|
194
|
+
element: {
|
195
|
+
client_side_validation: true,
|
196
|
+
required: false,
|
197
|
+
serialized_name: 'StringElementType',
|
198
|
+
type: {
|
199
|
+
name: 'String'
|
200
|
+
}
|
201
|
+
}
|
202
|
+
}
|
203
|
+
}
|
204
|
+
}
|
205
|
+
}
|
206
|
+
}
|
207
|
+
end
|
208
|
+
end
|
209
|
+
end
|
210
|
+
end
|
data/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/models/entity_list_result.rb
ADDED
@@ -0,0 +1,111 @@
|
|
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::V2018_03_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Describes the result of the request to view entities.
|
10
|
+
#
|
11
|
+
class EntityListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<EntityInfo>] The list of entities.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [Integer] Total count of records that match the filter
|
20
|
+
attr_accessor :count
|
21
|
+
|
22
|
+
# @return [String] The URL to use for getting the next set of results.
|
23
|
+
attr_accessor :next_link
|
24
|
+
|
25
|
+
# return [Proc] with next page method call.
|
26
|
+
attr_accessor :next_method
|
27
|
+
|
28
|
+
#
|
29
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
30
|
+
#
|
31
|
+
# @return [Array<EntityInfo>] operation results.
|
32
|
+
#
|
33
|
+
def get_all_items
|
34
|
+
items = @value
|
35
|
+
page = self
|
36
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
37
|
+
page = page.get_next_page
|
38
|
+
items.concat(page.value)
|
39
|
+
end
|
40
|
+
items
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# Gets the next page of results.
|
45
|
+
#
|
46
|
+
# @return [EntityListResult] with next page content.
|
47
|
+
#
|
48
|
+
def get_next_page
|
49
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
50
|
+
unless response.nil?
|
51
|
+
@next_link = response.body.next_link
|
52
|
+
@value = response.body.value
|
53
|
+
self
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# Mapper for EntityListResult class as Ruby Hash.
|
59
|
+
# This will be used for serialization/deserialization.
|
60
|
+
#
|
61
|
+
def self.mapper()
|
62
|
+
{
|
63
|
+
client_side_validation: true,
|
64
|
+
required: false,
|
65
|
+
serialized_name: 'EntityListResult',
|
66
|
+
type: {
|
67
|
+
name: 'Composite',
|
68
|
+
class_name: 'EntityListResult',
|
69
|
+
model_properties: {
|
70
|
+
value: {
|
71
|
+
client_side_validation: true,
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'value',
|
74
|
+
type: {
|
75
|
+
name: 'Sequence',
|
76
|
+
element: {
|
77
|
+
client_side_validation: true,
|
78
|
+
required: false,
|
79
|
+
serialized_name: 'EntityInfoElementType',
|
80
|
+
type: {
|
81
|
+
name: 'Composite',
|
82
|
+
class_name: 'EntityInfo'
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
},
|
87
|
+
count: {
|
88
|
+
client_side_validation: true,
|
89
|
+
required: false,
|
90
|
+
read_only: true,
|
91
|
+
serialized_name: 'count',
|
92
|
+
type: {
|
93
|
+
name: 'Number'
|
94
|
+
}
|
95
|
+
},
|
96
|
+
next_link: {
|
97
|
+
client_side_validation: true,
|
98
|
+
required: false,
|
99
|
+
read_only: true,
|
100
|
+
serialized_name: 'nextLink',
|
101
|
+
type: {
|
102
|
+
name: 'String'
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
}
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|