azure_graph_rbac2 0.18.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.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/1.6/generated/azure_graph_rbac2/applications.rb +1131 -0
- data/lib/1.6/generated/azure_graph_rbac2/domains.rb +200 -0
- data/lib/1.6/generated/azure_graph_rbac2/graph_rbac_client.rb +151 -0
- data/lib/1.6/generated/azure_graph_rbac2/groups.rb +1079 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/aadobject.rb +297 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/adgroup.rb +116 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/application.rb +196 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/application_add_owner_parameters.rb +69 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/application_create_parameters.rb +202 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/application_list_result.rb +98 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/application_update_parameters.rb +201 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/check_group_membership_parameters.rb +77 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/check_group_membership_result.rb +67 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/directory_object.rb +92 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/directory_object_list_result.rb +57 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/domain.rb +101 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/domain_list_result.rb +55 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/get_objects_parameters.rb +104 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/get_objects_result.rb +98 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/graph_error.rb +57 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/group_add_member_parameters.rb +69 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/group_create_parameters.rb +106 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/group_get_member_groups_parameters.rb +67 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/group_get_member_groups_result.rb +55 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/group_list_result.rb +98 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/key_credential.rb +132 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/key_credential_list_result.rb +55 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/key_credentials_update_parameters.rb +55 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/password_credential.rb +98 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/password_credential_list_result.rb +56 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/password_credentials_update_parameters.rb +56 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/password_profile.rb +76 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/required_resource_access.rb +94 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/resource_access.rb +80 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/service_principal.rb +124 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/service_principal_create_parameters.rb +117 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/service_principal_list_result.rb +98 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/sign_in_name.rb +79 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/user.rb +221 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/user_base.rb +118 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/user_create_parameters.rb +158 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/user_get_member_groups_parameters.rb +67 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/user_get_member_groups_result.rb +55 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/user_list_result.rb +98 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/user_type.rb +16 -0
- data/lib/1.6/generated/azure_graph_rbac2/models/user_update_parameters.rb +147 -0
- data/lib/1.6/generated/azure_graph_rbac2/module_definition.rb +8 -0
- data/lib/1.6/generated/azure_graph_rbac2/objects.rb +314 -0
- data/lib/1.6/generated/azure_graph_rbac2/service_principals.rb +949 -0
- data/lib/1.6/generated/azure_graph_rbac2/users.rb +686 -0
- data/lib/1.6/generated/azure_graph_rbac2.rb +75 -0
- data/lib/azure_graph_rbac2.rb +6 -0
- data/lib/module_definition.rb +6 -0
- data/lib/profiles/latest/graphrbac_latest_profile_client.rb +38 -0
- data/lib/profiles/latest/graphrbac_module_definition.rb +8 -0
- data/lib/profiles/latest/modules/graphrbac_profile_module.rb +237 -0
- data/lib/version.rb +7 -0
- metadata +190 -0
|
@@ -0,0 +1,92 @@
|
|
|
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::GraphRbac2::V1_6
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# Represents an Azure Active Directory object.
|
|
10
|
+
#
|
|
11
|
+
class DirectoryObject
|
|
12
|
+
|
|
13
|
+
include MsRestAzure2
|
|
14
|
+
|
|
15
|
+
@@discriminatorMap = Hash.new
|
|
16
|
+
@@discriminatorMap["Application"] = "Application"
|
|
17
|
+
@@discriminatorMap["Group"] = "ADGroup"
|
|
18
|
+
@@discriminatorMap["ServicePrincipal"] = "ServicePrincipal"
|
|
19
|
+
@@discriminatorMap["User"] = "User"
|
|
20
|
+
|
|
21
|
+
def initialize
|
|
22
|
+
@objectType = "DirectoryObject"
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
attr_accessor :objectType
|
|
26
|
+
|
|
27
|
+
# @return Unmatched properties from the message are deserialized this
|
|
28
|
+
# collection
|
|
29
|
+
attr_accessor :additional_properties
|
|
30
|
+
|
|
31
|
+
# @return [String] The object ID.
|
|
32
|
+
attr_accessor :object_id_value
|
|
33
|
+
|
|
34
|
+
# @return [DateTime] The time at which the directory object was deleted.
|
|
35
|
+
attr_accessor :deletion_timestamp
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
#
|
|
39
|
+
# Mapper for DirectoryObject class as Ruby Hash.
|
|
40
|
+
# This will be used for serialization/deserialization.
|
|
41
|
+
#
|
|
42
|
+
def self.mapper()
|
|
43
|
+
{
|
|
44
|
+
client_side_validation: true,
|
|
45
|
+
required: false,
|
|
46
|
+
serialized_name: 'DirectoryObject',
|
|
47
|
+
type: {
|
|
48
|
+
name: 'Composite',
|
|
49
|
+
polymorphic_discriminator: 'objectType',
|
|
50
|
+
uber_parent: 'DirectoryObject',
|
|
51
|
+
class_name: 'DirectoryObject',
|
|
52
|
+
model_properties: {
|
|
53
|
+
additional_properties: {
|
|
54
|
+
client_side_validation: true,
|
|
55
|
+
required: false,
|
|
56
|
+
type: {
|
|
57
|
+
name: 'Dictionary',
|
|
58
|
+
value: {
|
|
59
|
+
client_side_validation: true,
|
|
60
|
+
required: false,
|
|
61
|
+
serialized_name: 'ObjectElementType',
|
|
62
|
+
type: {
|
|
63
|
+
name: 'Object'
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
object_id_value: {
|
|
69
|
+
client_side_validation: true,
|
|
70
|
+
required: false,
|
|
71
|
+
read_only: true,
|
|
72
|
+
serialized_name: 'objectId',
|
|
73
|
+
type: {
|
|
74
|
+
name: 'String'
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
deletion_timestamp: {
|
|
78
|
+
client_side_validation: true,
|
|
79
|
+
required: false,
|
|
80
|
+
read_only: true,
|
|
81
|
+
serialized_name: 'deletionTimestamp',
|
|
82
|
+
type: {
|
|
83
|
+
name: 'DateTime'
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
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::GraphRbac2::V1_6
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# DirectoryObject list operation result.
|
|
10
|
+
#
|
|
11
|
+
class DirectoryObjectListResult
|
|
12
|
+
|
|
13
|
+
include MsRestAzure2
|
|
14
|
+
|
|
15
|
+
# @return [Array<DirectoryObject>] A collection of DirectoryObject.
|
|
16
|
+
attr_accessor :value
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
#
|
|
20
|
+
# Mapper for DirectoryObjectListResult 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: 'DirectoryObjectListResult',
|
|
28
|
+
type: {
|
|
29
|
+
name: 'Composite',
|
|
30
|
+
class_name: 'DirectoryObjectListResult',
|
|
31
|
+
model_properties: {
|
|
32
|
+
value: {
|
|
33
|
+
client_side_validation: true,
|
|
34
|
+
required: false,
|
|
35
|
+
serialized_name: 'value',
|
|
36
|
+
type: {
|
|
37
|
+
name: 'Sequence',
|
|
38
|
+
element: {
|
|
39
|
+
client_side_validation: true,
|
|
40
|
+
required: false,
|
|
41
|
+
serialized_name: 'DirectoryObjectElementType',
|
|
42
|
+
type: {
|
|
43
|
+
name: 'Composite',
|
|
44
|
+
polymorphic_discriminator: 'objectType',
|
|
45
|
+
uber_parent: 'DirectoryObject',
|
|
46
|
+
class_name: 'DirectoryObject'
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
@@ -0,0 +1,101 @@
|
|
|
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::GraphRbac2::V1_6
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# Active Directory Domain information.
|
|
10
|
+
#
|
|
11
|
+
class Domain
|
|
12
|
+
|
|
13
|
+
include MsRestAzure2
|
|
14
|
+
|
|
15
|
+
# @return Unmatched properties from the message are deserialized this
|
|
16
|
+
# collection
|
|
17
|
+
attr_accessor :additional_properties
|
|
18
|
+
|
|
19
|
+
# @return [String] the type of the authentication into the domain.
|
|
20
|
+
attr_accessor :authentication_type
|
|
21
|
+
|
|
22
|
+
# @return [Boolean] if this is the default domain in the tenant.
|
|
23
|
+
attr_accessor :is_default
|
|
24
|
+
|
|
25
|
+
# @return [Boolean] if this domain's ownership is verified.
|
|
26
|
+
attr_accessor :is_verified
|
|
27
|
+
|
|
28
|
+
# @return [String] the domain name.
|
|
29
|
+
attr_accessor :name
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
#
|
|
33
|
+
# Mapper for Domain class as Ruby Hash.
|
|
34
|
+
# This will be used for serialization/deserialization.
|
|
35
|
+
#
|
|
36
|
+
def self.mapper()
|
|
37
|
+
{
|
|
38
|
+
client_side_validation: true,
|
|
39
|
+
required: false,
|
|
40
|
+
serialized_name: 'Domain',
|
|
41
|
+
type: {
|
|
42
|
+
name: 'Composite',
|
|
43
|
+
class_name: 'Domain',
|
|
44
|
+
model_properties: {
|
|
45
|
+
additional_properties: {
|
|
46
|
+
client_side_validation: true,
|
|
47
|
+
required: false,
|
|
48
|
+
type: {
|
|
49
|
+
name: 'Dictionary',
|
|
50
|
+
value: {
|
|
51
|
+
client_side_validation: true,
|
|
52
|
+
required: false,
|
|
53
|
+
serialized_name: 'ObjectElementType',
|
|
54
|
+
type: {
|
|
55
|
+
name: 'Object'
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
authentication_type: {
|
|
61
|
+
client_side_validation: true,
|
|
62
|
+
required: false,
|
|
63
|
+
read_only: true,
|
|
64
|
+
serialized_name: 'authenticationType',
|
|
65
|
+
type: {
|
|
66
|
+
name: 'String'
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
is_default: {
|
|
70
|
+
client_side_validation: true,
|
|
71
|
+
required: false,
|
|
72
|
+
read_only: true,
|
|
73
|
+
serialized_name: 'isDefault',
|
|
74
|
+
type: {
|
|
75
|
+
name: 'Boolean'
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
is_verified: {
|
|
79
|
+
client_side_validation: true,
|
|
80
|
+
required: false,
|
|
81
|
+
read_only: true,
|
|
82
|
+
serialized_name: 'isVerified',
|
|
83
|
+
type: {
|
|
84
|
+
name: 'Boolean'
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
name: {
|
|
88
|
+
client_side_validation: true,
|
|
89
|
+
required: true,
|
|
90
|
+
serialized_name: 'name',
|
|
91
|
+
type: {
|
|
92
|
+
name: 'String'
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
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::GraphRbac2::V1_6
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# Server response for Get tenant domains API call.
|
|
10
|
+
#
|
|
11
|
+
class DomainListResult
|
|
12
|
+
|
|
13
|
+
include MsRestAzure2
|
|
14
|
+
|
|
15
|
+
# @return [Array<Domain>] the list of domains.
|
|
16
|
+
attr_accessor :value
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
#
|
|
20
|
+
# Mapper for DomainListResult 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: 'DomainListResult',
|
|
28
|
+
type: {
|
|
29
|
+
name: 'Composite',
|
|
30
|
+
class_name: 'DomainListResult',
|
|
31
|
+
model_properties: {
|
|
32
|
+
value: {
|
|
33
|
+
client_side_validation: true,
|
|
34
|
+
required: false,
|
|
35
|
+
serialized_name: 'value',
|
|
36
|
+
type: {
|
|
37
|
+
name: 'Sequence',
|
|
38
|
+
element: {
|
|
39
|
+
client_side_validation: true,
|
|
40
|
+
required: false,
|
|
41
|
+
serialized_name: 'DomainElementType',
|
|
42
|
+
type: {
|
|
43
|
+
name: 'Composite',
|
|
44
|
+
class_name: 'Domain'
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,104 @@
|
|
|
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::GraphRbac2::V1_6
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# Request parameters for the GetObjectsByObjectIds API.
|
|
10
|
+
#
|
|
11
|
+
class GetObjectsParameters
|
|
12
|
+
|
|
13
|
+
include MsRestAzure2
|
|
14
|
+
|
|
15
|
+
# @return Unmatched properties from the message are deserialized this
|
|
16
|
+
# collection
|
|
17
|
+
attr_accessor :additional_properties
|
|
18
|
+
|
|
19
|
+
# @return [Array<String>] The requested object IDs.
|
|
20
|
+
attr_accessor :object_ids
|
|
21
|
+
|
|
22
|
+
# @return [Array<String>] The requested object types.
|
|
23
|
+
attr_accessor :types
|
|
24
|
+
|
|
25
|
+
# @return [Boolean] If true, also searches for object IDs in the partner
|
|
26
|
+
# tenant.
|
|
27
|
+
attr_accessor :include_directory_object_references
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
#
|
|
31
|
+
# Mapper for GetObjectsParameters class as Ruby Hash.
|
|
32
|
+
# This will be used for serialization/deserialization.
|
|
33
|
+
#
|
|
34
|
+
def self.mapper()
|
|
35
|
+
{
|
|
36
|
+
client_side_validation: true,
|
|
37
|
+
required: false,
|
|
38
|
+
serialized_name: 'GetObjectsParameters',
|
|
39
|
+
type: {
|
|
40
|
+
name: 'Composite',
|
|
41
|
+
class_name: 'GetObjectsParameters',
|
|
42
|
+
model_properties: {
|
|
43
|
+
additional_properties: {
|
|
44
|
+
client_side_validation: true,
|
|
45
|
+
required: false,
|
|
46
|
+
type: {
|
|
47
|
+
name: 'Dictionary',
|
|
48
|
+
value: {
|
|
49
|
+
client_side_validation: true,
|
|
50
|
+
required: false,
|
|
51
|
+
serialized_name: 'ObjectElementType',
|
|
52
|
+
type: {
|
|
53
|
+
name: 'Object'
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
object_ids: {
|
|
59
|
+
client_side_validation: true,
|
|
60
|
+
required: false,
|
|
61
|
+
serialized_name: 'objectIds',
|
|
62
|
+
type: {
|
|
63
|
+
name: 'Sequence',
|
|
64
|
+
element: {
|
|
65
|
+
client_side_validation: true,
|
|
66
|
+
required: false,
|
|
67
|
+
serialized_name: 'StringElementType',
|
|
68
|
+
type: {
|
|
69
|
+
name: 'String'
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
types: {
|
|
75
|
+
client_side_validation: true,
|
|
76
|
+
required: false,
|
|
77
|
+
serialized_name: 'types',
|
|
78
|
+
type: {
|
|
79
|
+
name: 'Sequence',
|
|
80
|
+
element: {
|
|
81
|
+
client_side_validation: true,
|
|
82
|
+
required: false,
|
|
83
|
+
serialized_name: 'StringElementType',
|
|
84
|
+
type: {
|
|
85
|
+
name: 'String'
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
include_directory_object_references: {
|
|
91
|
+
client_side_validation: true,
|
|
92
|
+
required: true,
|
|
93
|
+
serialized_name: 'includeDirectoryObjectReferences',
|
|
94
|
+
type: {
|
|
95
|
+
name: 'Boolean'
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
@@ -0,0 +1,98 @@
|
|
|
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::GraphRbac2::V1_6
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# The response to an Active Directory object inquiry API request.
|
|
10
|
+
#
|
|
11
|
+
class GetObjectsResult
|
|
12
|
+
|
|
13
|
+
include MsRestAzure2
|
|
14
|
+
|
|
15
|
+
include MsRest2::JSONable
|
|
16
|
+
# @return [Array<AADObject>] A collection of Active Directory objects.
|
|
17
|
+
attr_accessor :value
|
|
18
|
+
|
|
19
|
+
# @return [String] The URL to get the next set of results.
|
|
20
|
+
attr_accessor :odatanext_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<AADObject>] operation results.
|
|
29
|
+
#
|
|
30
|
+
def get_all_items
|
|
31
|
+
items = @value
|
|
32
|
+
page = self
|
|
33
|
+
while page.odatanext_link != nil && !page.odatanext_link.strip.empty? 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 [GetObjectsResult] with next page content.
|
|
44
|
+
#
|
|
45
|
+
def get_next_page
|
|
46
|
+
response = @next_method.call(@odatanext_link).value! unless @next_method.nil?
|
|
47
|
+
unless response.nil?
|
|
48
|
+
@odatanext_link = response.body.odatanext_link
|
|
49
|
+
@value = response.body.value
|
|
50
|
+
self
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
#
|
|
55
|
+
# Mapper for GetObjectsResult class as Ruby Hash.
|
|
56
|
+
# This will be used for serialization/deserialization.
|
|
57
|
+
#
|
|
58
|
+
def self.mapper()
|
|
59
|
+
{
|
|
60
|
+
client_side_validation: true,
|
|
61
|
+
required: false,
|
|
62
|
+
serialized_name: 'GetObjectsResult',
|
|
63
|
+
type: {
|
|
64
|
+
name: 'Composite',
|
|
65
|
+
class_name: 'GetObjectsResult',
|
|
66
|
+
model_properties: {
|
|
67
|
+
value: {
|
|
68
|
+
client_side_validation: true,
|
|
69
|
+
required: false,
|
|
70
|
+
serialized_name: 'value',
|
|
71
|
+
type: {
|
|
72
|
+
name: 'Sequence',
|
|
73
|
+
element: {
|
|
74
|
+
client_side_validation: true,
|
|
75
|
+
required: false,
|
|
76
|
+
serialized_name: 'AADObjectElementType',
|
|
77
|
+
type: {
|
|
78
|
+
name: 'Composite',
|
|
79
|
+
class_name: 'AADObject'
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
odatanext_link: {
|
|
85
|
+
client_side_validation: true,
|
|
86
|
+
required: false,
|
|
87
|
+
serialized_name: 'odata\\.nextLink',
|
|
88
|
+
type: {
|
|
89
|
+
name: 'String'
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
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::GraphRbac2::V1_6
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# Active Directory error information.
|
|
10
|
+
#
|
|
11
|
+
class GraphError
|
|
12
|
+
|
|
13
|
+
include MsRestAzure2
|
|
14
|
+
|
|
15
|
+
# @return [String] Error code.
|
|
16
|
+
attr_accessor :code
|
|
17
|
+
|
|
18
|
+
# @return [String] Error message value.
|
|
19
|
+
attr_accessor :message
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
#
|
|
23
|
+
# Mapper for GraphError 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: 'GraphError',
|
|
31
|
+
type: {
|
|
32
|
+
name: 'Composite',
|
|
33
|
+
class_name: 'GraphError',
|
|
34
|
+
model_properties: {
|
|
35
|
+
code: {
|
|
36
|
+
client_side_validation: true,
|
|
37
|
+
required: false,
|
|
38
|
+
serialized_name: 'odata\\.error.code',
|
|
39
|
+
type: {
|
|
40
|
+
name: 'String'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
message: {
|
|
44
|
+
client_side_validation: true,
|
|
45
|
+
required: false,
|
|
46
|
+
serialized_name: 'odata\\.error.message.value',
|
|
47
|
+
type: {
|
|
48
|
+
name: 'String'
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
@@ -0,0 +1,69 @@
|
|
|
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::GraphRbac2::V1_6
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# Request parameters for adding a member to a group.
|
|
10
|
+
#
|
|
11
|
+
class GroupAddMemberParameters
|
|
12
|
+
|
|
13
|
+
include MsRestAzure2
|
|
14
|
+
|
|
15
|
+
# @return Unmatched properties from the message are deserialized this
|
|
16
|
+
# collection
|
|
17
|
+
attr_accessor :additional_properties
|
|
18
|
+
|
|
19
|
+
# @return [String] A member object URL, such as
|
|
20
|
+
# "https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd",
|
|
21
|
+
# where "0b1f9851-1bf0-433f-aec3-cb9272f093dc" is the tenantId and
|
|
22
|
+
# "f260bbc4-c254-447b-94cf-293b5ec434dd" is the objectId of the member
|
|
23
|
+
# (user, application, servicePrincipal, group) to be added.
|
|
24
|
+
attr_accessor :url
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
#
|
|
28
|
+
# Mapper for GroupAddMemberParameters 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: 'GroupAddMemberParameters',
|
|
36
|
+
type: {
|
|
37
|
+
name: 'Composite',
|
|
38
|
+
class_name: 'GroupAddMemberParameters',
|
|
39
|
+
model_properties: {
|
|
40
|
+
additional_properties: {
|
|
41
|
+
client_side_validation: true,
|
|
42
|
+
required: false,
|
|
43
|
+
type: {
|
|
44
|
+
name: 'Dictionary',
|
|
45
|
+
value: {
|
|
46
|
+
client_side_validation: true,
|
|
47
|
+
required: false,
|
|
48
|
+
serialized_name: 'ObjectElementType',
|
|
49
|
+
type: {
|
|
50
|
+
name: 'Object'
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
url: {
|
|
56
|
+
client_side_validation: true,
|
|
57
|
+
required: true,
|
|
58
|
+
serialized_name: 'url',
|
|
59
|
+
type: {
|
|
60
|
+
name: 'String'
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|