azure_graph_rbac 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/1.6/generated/azure_graph_rbac.rb +75 -0
  4. data/lib/1.6/generated/azure_graph_rbac/applications.rb +1131 -0
  5. data/lib/1.6/generated/azure_graph_rbac/domains.rb +200 -0
  6. data/lib/1.6/generated/azure_graph_rbac/graph_rbac_client.rb +150 -0
  7. data/lib/1.6/generated/azure_graph_rbac/groups.rb +1079 -0
  8. data/lib/1.6/generated/azure_graph_rbac/models/aadobject.rb +297 -0
  9. data/lib/1.6/generated/azure_graph_rbac/models/adgroup.rb +116 -0
  10. data/lib/1.6/generated/azure_graph_rbac/models/application.rb +196 -0
  11. data/lib/1.6/generated/azure_graph_rbac/models/application_add_owner_parameters.rb +69 -0
  12. data/lib/1.6/generated/azure_graph_rbac/models/application_create_parameters.rb +202 -0
  13. data/lib/1.6/generated/azure_graph_rbac/models/application_list_result.rb +98 -0
  14. data/lib/1.6/generated/azure_graph_rbac/models/application_update_parameters.rb +201 -0
  15. data/lib/1.6/generated/azure_graph_rbac/models/check_group_membership_parameters.rb +77 -0
  16. data/lib/1.6/generated/azure_graph_rbac/models/check_group_membership_result.rb +67 -0
  17. data/lib/1.6/generated/azure_graph_rbac/models/directory_object.rb +92 -0
  18. data/lib/1.6/generated/azure_graph_rbac/models/directory_object_list_result.rb +57 -0
  19. data/lib/1.6/generated/azure_graph_rbac/models/domain.rb +101 -0
  20. data/lib/1.6/generated/azure_graph_rbac/models/domain_list_result.rb +55 -0
  21. data/lib/1.6/generated/azure_graph_rbac/models/get_objects_parameters.rb +104 -0
  22. data/lib/1.6/generated/azure_graph_rbac/models/get_objects_result.rb +98 -0
  23. data/lib/1.6/generated/azure_graph_rbac/models/graph_error.rb +57 -0
  24. data/lib/1.6/generated/azure_graph_rbac/models/group_add_member_parameters.rb +69 -0
  25. data/lib/1.6/generated/azure_graph_rbac/models/group_create_parameters.rb +106 -0
  26. data/lib/1.6/generated/azure_graph_rbac/models/group_get_member_groups_parameters.rb +67 -0
  27. data/lib/1.6/generated/azure_graph_rbac/models/group_get_member_groups_result.rb +55 -0
  28. data/lib/1.6/generated/azure_graph_rbac/models/group_list_result.rb +98 -0
  29. data/lib/1.6/generated/azure_graph_rbac/models/key_credential.rb +121 -0
  30. data/lib/1.6/generated/azure_graph_rbac/models/key_credential_list_result.rb +55 -0
  31. data/lib/1.6/generated/azure_graph_rbac/models/key_credentials_update_parameters.rb +55 -0
  32. data/lib/1.6/generated/azure_graph_rbac/models/password_credential.rb +98 -0
  33. data/lib/1.6/generated/azure_graph_rbac/models/password_credential_list_result.rb +56 -0
  34. data/lib/1.6/generated/azure_graph_rbac/models/password_credentials_update_parameters.rb +56 -0
  35. data/lib/1.6/generated/azure_graph_rbac/models/password_profile.rb +76 -0
  36. data/lib/1.6/generated/azure_graph_rbac/models/required_resource_access.rb +94 -0
  37. data/lib/1.6/generated/azure_graph_rbac/models/resource_access.rb +80 -0
  38. data/lib/1.6/generated/azure_graph_rbac/models/service_principal.rb +124 -0
  39. data/lib/1.6/generated/azure_graph_rbac/models/service_principal_create_parameters.rb +117 -0
  40. data/lib/1.6/generated/azure_graph_rbac/models/service_principal_list_result.rb +98 -0
  41. data/lib/1.6/generated/azure_graph_rbac/models/sign_in_name.rb +79 -0
  42. data/lib/1.6/generated/azure_graph_rbac/models/user.rb +221 -0
  43. data/lib/1.6/generated/azure_graph_rbac/models/user_base.rb +118 -0
  44. data/lib/1.6/generated/azure_graph_rbac/models/user_create_parameters.rb +158 -0
  45. data/lib/1.6/generated/azure_graph_rbac/models/user_get_member_groups_parameters.rb +67 -0
  46. data/lib/1.6/generated/azure_graph_rbac/models/user_get_member_groups_result.rb +55 -0
  47. data/lib/1.6/generated/azure_graph_rbac/models/user_list_result.rb +98 -0
  48. data/lib/1.6/generated/azure_graph_rbac/models/user_type.rb +16 -0
  49. data/lib/1.6/generated/azure_graph_rbac/models/user_update_parameters.rb +147 -0
  50. data/lib/1.6/generated/azure_graph_rbac/module_definition.rb +8 -0
  51. data/lib/1.6/generated/azure_graph_rbac/objects.rb +314 -0
  52. data/lib/1.6/generated/azure_graph_rbac/service_principals.rb +949 -0
  53. data/lib/1.6/generated/azure_graph_rbac/users.rb +686 -0
  54. data/lib/azure_graph_rbac.rb +6 -0
  55. data/lib/module_definition.rb +6 -0
  56. data/lib/profiles/latest/graphrbac_latest_profile_client.rb +38 -0
  57. data/lib/profiles/latest/graphrbac_module_definition.rb +8 -0
  58. data/lib/profiles/latest/modules/graphrbac_profile_module.rb +237 -0
  59. data/lib/version.rb +7 -0
  60. metadata +177 -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::GraphRbac::V1_6
7
+ module Models
8
+ #
9
+ # PasswordCredential list operation result.
10
+ #
11
+ class PasswordCredentialListResult
12
+
13
+ include MsRestAzure
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::GraphRbac::V1_6
7
+ module Models
8
+ #
9
+ # Request parameters for a PasswordCredentials update operation.
10
+ #
11
+ class PasswordCredentialsUpdateParameters
12
+
13
+ include MsRestAzure
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::GraphRbac::V1_6
7
+ module Models
8
+ #
9
+ # The password profile associated with a user.
10
+ #
11
+ class PasswordProfile
12
+
13
+ include MsRestAzure
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::GraphRbac::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 MsRestAzure
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::GraphRbac::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 MsRestAzure
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::GraphRbac::V1_6
7
+ module Models
8
+ #
9
+ # Active Directory service principal information.
10
+ #
11
+ class ServicePrincipal < DirectoryObject
12
+
13
+ include MsRestAzure
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