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,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::GraphRbac2::V1_6
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# PasswordCredential list operation result.
|
|
10
|
+
#
|
|
11
|
+
class PasswordCredentialListResult
|
|
12
|
+
|
|
13
|
+
include MsRestAzure2
|
|
14
|
+
|
|
15
|
+
# @return [Array<PasswordCredential>] A collection of
|
|
16
|
+
# PasswordCredentials.
|
|
17
|
+
attr_accessor :value
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
#
|
|
21
|
+
# Mapper for PasswordCredentialListResult class as Ruby Hash.
|
|
22
|
+
# This will be used for serialization/deserialization.
|
|
23
|
+
#
|
|
24
|
+
def self.mapper()
|
|
25
|
+
{
|
|
26
|
+
client_side_validation: true,
|
|
27
|
+
required: false,
|
|
28
|
+
serialized_name: 'PasswordCredentialListResult',
|
|
29
|
+
type: {
|
|
30
|
+
name: 'Composite',
|
|
31
|
+
class_name: 'PasswordCredentialListResult',
|
|
32
|
+
model_properties: {
|
|
33
|
+
value: {
|
|
34
|
+
client_side_validation: true,
|
|
35
|
+
required: false,
|
|
36
|
+
serialized_name: 'value',
|
|
37
|
+
type: {
|
|
38
|
+
name: 'Sequence',
|
|
39
|
+
element: {
|
|
40
|
+
client_side_validation: true,
|
|
41
|
+
required: false,
|
|
42
|
+
serialized_name: 'PasswordCredentialElementType',
|
|
43
|
+
type: {
|
|
44
|
+
name: 'Composite',
|
|
45
|
+
class_name: 'PasswordCredential'
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
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::GraphRbac2::V1_6
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# Request parameters for a PasswordCredentials update operation.
|
|
10
|
+
#
|
|
11
|
+
class PasswordCredentialsUpdateParameters
|
|
12
|
+
|
|
13
|
+
include MsRestAzure2
|
|
14
|
+
|
|
15
|
+
# @return [Array<PasswordCredential>] A collection of
|
|
16
|
+
# PasswordCredentials.
|
|
17
|
+
attr_accessor :value
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
#
|
|
21
|
+
# Mapper for PasswordCredentialsUpdateParameters class as Ruby Hash.
|
|
22
|
+
# This will be used for serialization/deserialization.
|
|
23
|
+
#
|
|
24
|
+
def self.mapper()
|
|
25
|
+
{
|
|
26
|
+
client_side_validation: true,
|
|
27
|
+
required: false,
|
|
28
|
+
serialized_name: 'PasswordCredentialsUpdateParameters',
|
|
29
|
+
type: {
|
|
30
|
+
name: 'Composite',
|
|
31
|
+
class_name: 'PasswordCredentialsUpdateParameters',
|
|
32
|
+
model_properties: {
|
|
33
|
+
value: {
|
|
34
|
+
client_side_validation: true,
|
|
35
|
+
required: true,
|
|
36
|
+
serialized_name: 'value',
|
|
37
|
+
type: {
|
|
38
|
+
name: 'Sequence',
|
|
39
|
+
element: {
|
|
40
|
+
client_side_validation: true,
|
|
41
|
+
required: false,
|
|
42
|
+
serialized_name: 'PasswordCredentialElementType',
|
|
43
|
+
type: {
|
|
44
|
+
name: 'Composite',
|
|
45
|
+
class_name: 'PasswordCredential'
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
@@ -0,0 +1,76 @@
|
|
|
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 password profile associated with a user.
|
|
10
|
+
#
|
|
11
|
+
class PasswordProfile
|
|
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] Password
|
|
20
|
+
attr_accessor :password
|
|
21
|
+
|
|
22
|
+
# @return [Boolean] Whether to force a password change on next login.
|
|
23
|
+
attr_accessor :force_change_password_next_login
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
#
|
|
27
|
+
# Mapper for PasswordProfile class as Ruby Hash.
|
|
28
|
+
# This will be used for serialization/deserialization.
|
|
29
|
+
#
|
|
30
|
+
def self.mapper()
|
|
31
|
+
{
|
|
32
|
+
client_side_validation: true,
|
|
33
|
+
required: false,
|
|
34
|
+
serialized_name: 'PasswordProfile',
|
|
35
|
+
type: {
|
|
36
|
+
name: 'Composite',
|
|
37
|
+
class_name: 'PasswordProfile',
|
|
38
|
+
model_properties: {
|
|
39
|
+
additional_properties: {
|
|
40
|
+
client_side_validation: true,
|
|
41
|
+
required: false,
|
|
42
|
+
type: {
|
|
43
|
+
name: 'Dictionary',
|
|
44
|
+
value: {
|
|
45
|
+
client_side_validation: true,
|
|
46
|
+
required: false,
|
|
47
|
+
serialized_name: 'ObjectElementType',
|
|
48
|
+
type: {
|
|
49
|
+
name: 'Object'
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
password: {
|
|
55
|
+
client_side_validation: true,
|
|
56
|
+
required: true,
|
|
57
|
+
serialized_name: 'password',
|
|
58
|
+
type: {
|
|
59
|
+
name: 'String'
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
force_change_password_next_login: {
|
|
63
|
+
client_side_validation: true,
|
|
64
|
+
required: false,
|
|
65
|
+
serialized_name: 'forceChangePasswordNextLogin',
|
|
66
|
+
type: {
|
|
67
|
+
name: 'Boolean'
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
# Specifies the set of OAuth 2.0 permission scopes and app roles under the
|
|
10
|
+
# specified resource that an application requires access to. The specified
|
|
11
|
+
# OAuth 2.0 permission scopes may be requested by client applications
|
|
12
|
+
# (through the requiredResourceAccess collection) when calling a resource
|
|
13
|
+
# application. The requiredResourceAccess property of the Application
|
|
14
|
+
# entity is a collection of ReqiredResourceAccess.
|
|
15
|
+
#
|
|
16
|
+
class RequiredResourceAccess
|
|
17
|
+
|
|
18
|
+
include MsRestAzure2
|
|
19
|
+
|
|
20
|
+
# @return Unmatched properties from the message are deserialized this
|
|
21
|
+
# collection
|
|
22
|
+
attr_accessor :additional_properties
|
|
23
|
+
|
|
24
|
+
# @return [Array<ResourceAccess>] The list of OAuth2.0 permission scopes
|
|
25
|
+
# and app roles that the application requires from the specified
|
|
26
|
+
# resource.
|
|
27
|
+
attr_accessor :resource_access
|
|
28
|
+
|
|
29
|
+
# @return [String] The unique identifier for the resource that the
|
|
30
|
+
# application requires access to. This should be equal to the appId
|
|
31
|
+
# declared on the target resource application.
|
|
32
|
+
attr_accessor :resource_app_id
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
#
|
|
36
|
+
# Mapper for RequiredResourceAccess class as Ruby Hash.
|
|
37
|
+
# This will be used for serialization/deserialization.
|
|
38
|
+
#
|
|
39
|
+
def self.mapper()
|
|
40
|
+
{
|
|
41
|
+
client_side_validation: true,
|
|
42
|
+
required: false,
|
|
43
|
+
serialized_name: 'RequiredResourceAccess',
|
|
44
|
+
type: {
|
|
45
|
+
name: 'Composite',
|
|
46
|
+
class_name: 'RequiredResourceAccess',
|
|
47
|
+
model_properties: {
|
|
48
|
+
additional_properties: {
|
|
49
|
+
client_side_validation: true,
|
|
50
|
+
required: false,
|
|
51
|
+
type: {
|
|
52
|
+
name: 'Dictionary',
|
|
53
|
+
value: {
|
|
54
|
+
client_side_validation: true,
|
|
55
|
+
required: false,
|
|
56
|
+
serialized_name: 'ObjectElementType',
|
|
57
|
+
type: {
|
|
58
|
+
name: 'Object'
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
resource_access: {
|
|
64
|
+
client_side_validation: true,
|
|
65
|
+
required: true,
|
|
66
|
+
serialized_name: 'resourceAccess',
|
|
67
|
+
type: {
|
|
68
|
+
name: 'Sequence',
|
|
69
|
+
element: {
|
|
70
|
+
client_side_validation: true,
|
|
71
|
+
required: false,
|
|
72
|
+
serialized_name: 'ResourceAccessElementType',
|
|
73
|
+
type: {
|
|
74
|
+
name: 'Composite',
|
|
75
|
+
class_name: 'ResourceAccess'
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
resource_app_id: {
|
|
81
|
+
client_side_validation: true,
|
|
82
|
+
required: false,
|
|
83
|
+
serialized_name: 'resourceAppId',
|
|
84
|
+
type: {
|
|
85
|
+
name: 'String'
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
# Specifies an OAuth 2.0 permission scope or an app role that an
|
|
10
|
+
# application requires. The resourceAccess property of the
|
|
11
|
+
# RequiredResourceAccess type is a collection of ResourceAccess.
|
|
12
|
+
#
|
|
13
|
+
class ResourceAccess
|
|
14
|
+
|
|
15
|
+
include MsRestAzure2
|
|
16
|
+
|
|
17
|
+
# @return Unmatched properties from the message are deserialized this
|
|
18
|
+
# collection
|
|
19
|
+
attr_accessor :additional_properties
|
|
20
|
+
|
|
21
|
+
# @return [String] The unique identifier for one of the OAuth2Permission
|
|
22
|
+
# or AppRole instances that the resource application exposes.
|
|
23
|
+
attr_accessor :id
|
|
24
|
+
|
|
25
|
+
# @return [String] Specifies whether the id property references an
|
|
26
|
+
# OAuth2Permission or an AppRole. Possible values are "scope" or "role".
|
|
27
|
+
attr_accessor :type
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
#
|
|
31
|
+
# Mapper for ResourceAccess 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: 'ResourceAccess',
|
|
39
|
+
type: {
|
|
40
|
+
name: 'Composite',
|
|
41
|
+
class_name: 'ResourceAccess',
|
|
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
|
+
id: {
|
|
59
|
+
client_side_validation: true,
|
|
60
|
+
required: true,
|
|
61
|
+
serialized_name: 'id',
|
|
62
|
+
type: {
|
|
63
|
+
name: 'String'
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
type: {
|
|
67
|
+
client_side_validation: true,
|
|
68
|
+
required: false,
|
|
69
|
+
serialized_name: 'type',
|
|
70
|
+
type: {
|
|
71
|
+
name: 'String'
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
@@ -0,0 +1,124 @@
|
|
|
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 service principal information.
|
|
10
|
+
#
|
|
11
|
+
class ServicePrincipal < DirectoryObject
|
|
12
|
+
|
|
13
|
+
include MsRestAzure2
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def initialize
|
|
17
|
+
@objectType = "ServicePrincipal"
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
attr_accessor :objectType
|
|
21
|
+
|
|
22
|
+
# @return [String] The display name of the service principal.
|
|
23
|
+
attr_accessor :display_name
|
|
24
|
+
|
|
25
|
+
# @return [String] The application ID.
|
|
26
|
+
attr_accessor :app_id
|
|
27
|
+
|
|
28
|
+
# @return [Array<String>] A collection of service principal names.
|
|
29
|
+
attr_accessor :service_principal_names
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
#
|
|
33
|
+
# Mapper for ServicePrincipal 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: 'ServicePrincipal',
|
|
41
|
+
type: {
|
|
42
|
+
name: 'Composite',
|
|
43
|
+
class_name: 'ServicePrincipal',
|
|
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
|
+
object_id: {
|
|
61
|
+
client_side_validation: true,
|
|
62
|
+
required: false,
|
|
63
|
+
read_only: true,
|
|
64
|
+
serialized_name: 'objectId',
|
|
65
|
+
type: {
|
|
66
|
+
name: 'String'
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
deletion_timestamp: {
|
|
70
|
+
client_side_validation: true,
|
|
71
|
+
required: false,
|
|
72
|
+
read_only: true,
|
|
73
|
+
serialized_name: 'deletionTimestamp',
|
|
74
|
+
type: {
|
|
75
|
+
name: 'DateTime'
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
objectType: {
|
|
79
|
+
client_side_validation: true,
|
|
80
|
+
required: true,
|
|
81
|
+
serialized_name: 'objectType',
|
|
82
|
+
type: {
|
|
83
|
+
name: 'String'
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
display_name: {
|
|
87
|
+
client_side_validation: true,
|
|
88
|
+
required: false,
|
|
89
|
+
serialized_name: 'displayName',
|
|
90
|
+
type: {
|
|
91
|
+
name: 'String'
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
app_id: {
|
|
95
|
+
client_side_validation: true,
|
|
96
|
+
required: false,
|
|
97
|
+
serialized_name: 'appId',
|
|
98
|
+
type: {
|
|
99
|
+
name: 'String'
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
service_principal_names: {
|
|
103
|
+
client_side_validation: true,
|
|
104
|
+
required: false,
|
|
105
|
+
serialized_name: 'servicePrincipalNames',
|
|
106
|
+
type: {
|
|
107
|
+
name: 'Sequence',
|
|
108
|
+
element: {
|
|
109
|
+
client_side_validation: true,
|
|
110
|
+
required: false,
|
|
111
|
+
serialized_name: 'StringElementType',
|
|
112
|
+
type: {
|
|
113
|
+
name: 'String'
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
end
|
|
@@ -0,0 +1,117 @@
|
|
|
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 creating a new service principal.
|
|
10
|
+
#
|
|
11
|
+
class ServicePrincipalCreateParameters
|
|
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] application Id
|
|
20
|
+
attr_accessor :app_id
|
|
21
|
+
|
|
22
|
+
# @return [Boolean] Whether the account is enabled
|
|
23
|
+
attr_accessor :account_enabled
|
|
24
|
+
|
|
25
|
+
# @return [Array<KeyCredential>] A collection of KeyCredential objects.
|
|
26
|
+
attr_accessor :key_credentials
|
|
27
|
+
|
|
28
|
+
# @return [Array<PasswordCredential>] A collection of PasswordCredential
|
|
29
|
+
# objects
|
|
30
|
+
attr_accessor :password_credentials
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
#
|
|
34
|
+
# Mapper for ServicePrincipalCreateParameters class as Ruby Hash.
|
|
35
|
+
# This will be used for serialization/deserialization.
|
|
36
|
+
#
|
|
37
|
+
def self.mapper()
|
|
38
|
+
{
|
|
39
|
+
client_side_validation: true,
|
|
40
|
+
required: false,
|
|
41
|
+
serialized_name: 'ServicePrincipalCreateParameters',
|
|
42
|
+
type: {
|
|
43
|
+
name: 'Composite',
|
|
44
|
+
class_name: 'ServicePrincipalCreateParameters',
|
|
45
|
+
model_properties: {
|
|
46
|
+
additional_properties: {
|
|
47
|
+
client_side_validation: true,
|
|
48
|
+
required: false,
|
|
49
|
+
type: {
|
|
50
|
+
name: 'Dictionary',
|
|
51
|
+
value: {
|
|
52
|
+
client_side_validation: true,
|
|
53
|
+
required: false,
|
|
54
|
+
serialized_name: 'ObjectElementType',
|
|
55
|
+
type: {
|
|
56
|
+
name: 'Object'
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
app_id: {
|
|
62
|
+
client_side_validation: true,
|
|
63
|
+
required: true,
|
|
64
|
+
serialized_name: 'appId',
|
|
65
|
+
type: {
|
|
66
|
+
name: 'String'
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
account_enabled: {
|
|
70
|
+
client_side_validation: true,
|
|
71
|
+
required: true,
|
|
72
|
+
serialized_name: 'accountEnabled',
|
|
73
|
+
type: {
|
|
74
|
+
name: 'Boolean'
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
key_credentials: {
|
|
78
|
+
client_side_validation: true,
|
|
79
|
+
required: false,
|
|
80
|
+
serialized_name: 'keyCredentials',
|
|
81
|
+
type: {
|
|
82
|
+
name: 'Sequence',
|
|
83
|
+
element: {
|
|
84
|
+
client_side_validation: true,
|
|
85
|
+
required: false,
|
|
86
|
+
serialized_name: 'KeyCredentialElementType',
|
|
87
|
+
type: {
|
|
88
|
+
name: 'Composite',
|
|
89
|
+
class_name: 'KeyCredential'
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
password_credentials: {
|
|
95
|
+
client_side_validation: true,
|
|
96
|
+
required: false,
|
|
97
|
+
serialized_name: 'passwordCredentials',
|
|
98
|
+
type: {
|
|
99
|
+
name: 'Sequence',
|
|
100
|
+
element: {
|
|
101
|
+
client_side_validation: true,
|
|
102
|
+
required: false,
|
|
103
|
+
serialized_name: 'PasswordCredentialElementType',
|
|
104
|
+
type: {
|
|
105
|
+
name: 'Composite',
|
|
106
|
+
class_name: 'PasswordCredential'
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
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
|
+
# Server response for get tenant service principals API call.
|
|
10
|
+
#
|
|
11
|
+
class ServicePrincipalListResult
|
|
12
|
+
|
|
13
|
+
include MsRestAzure2
|
|
14
|
+
|
|
15
|
+
include MsRest2::JSONable
|
|
16
|
+
# @return [Array<ServicePrincipal>] the list of service principals.
|
|
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<ServicePrincipal>] 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 [ServicePrincipalListResult] 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 ServicePrincipalListResult 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: 'ServicePrincipalListResult',
|
|
63
|
+
type: {
|
|
64
|
+
name: 'Composite',
|
|
65
|
+
class_name: 'ServicePrincipalListResult',
|
|
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: 'ServicePrincipalElementType',
|
|
77
|
+
type: {
|
|
78
|
+
name: 'Composite',
|
|
79
|
+
class_name: 'ServicePrincipal'
|
|
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
|