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,297 @@
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 properties of an Active Directory object.
10
+ #
11
+ class AADObject
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] The ID of the object.
20
+ attr_accessor :object_id
21
+
22
+ # @return [String] The type of AAD object.
23
+ attr_accessor :object_type
24
+
25
+ # @return [String] The display name of the object.
26
+ attr_accessor :display_name
27
+
28
+ # @return [String] The principal name of the object.
29
+ attr_accessor :user_principal_name
30
+
31
+ # @return [String] The primary email address of the object.
32
+ attr_accessor :mail
33
+
34
+ # @return [Boolean] Whether the AAD object is mail-enabled.
35
+ attr_accessor :mail_enabled
36
+
37
+ # @return [String] The mail alias for the user.
38
+ attr_accessor :mail_nickname
39
+
40
+ # @return [Boolean] Whether the AAD object is security-enabled.
41
+ attr_accessor :security_enabled
42
+
43
+ # @return [String] The sign-in name of the object.
44
+ attr_accessor :sign_in_name
45
+
46
+ # @return [Array<String>] A collection of service principal names
47
+ # associated with the object.
48
+ attr_accessor :service_principal_names
49
+
50
+ # @return [String] The user type of the object.
51
+ attr_accessor :user_type
52
+
53
+ # @return [String] A two letter country code (ISO standard 3166).
54
+ # Required for users that will be assigned licenses due to legal
55
+ # requirement to check for availability of services in countries.
56
+ # Examples include: "US", "JP", and "GB".
57
+ attr_accessor :usage_location
58
+
59
+ # @return [String] The application ID.
60
+ attr_accessor :app_id
61
+
62
+ # @return [Array<String>] The application permissions.
63
+ attr_accessor :app_permissions
64
+
65
+ # @return [Boolean] Whether the application is be available to other
66
+ # tenants.
67
+ attr_accessor :available_to_other_tenants
68
+
69
+ # @return [Array<String>] A collection of URIs for the application.
70
+ attr_accessor :identifier_uris
71
+
72
+ # @return [Array<String>] A collection of reply URLs for the application.
73
+ attr_accessor :reply_urls
74
+
75
+ # @return [String] The home page of the application.
76
+ attr_accessor :homepage
77
+
78
+
79
+ #
80
+ # Mapper for AADObject class as Ruby Hash.
81
+ # This will be used for serialization/deserialization.
82
+ #
83
+ def self.mapper()
84
+ {
85
+ client_side_validation: true,
86
+ required: false,
87
+ serialized_name: 'AADObject',
88
+ type: {
89
+ name: 'Composite',
90
+ class_name: 'AADObject',
91
+ model_properties: {
92
+ additional_properties: {
93
+ client_side_validation: true,
94
+ required: false,
95
+ type: {
96
+ name: 'Dictionary',
97
+ value: {
98
+ client_side_validation: true,
99
+ required: false,
100
+ serialized_name: 'ObjectElementType',
101
+ type: {
102
+ name: 'Object'
103
+ }
104
+ }
105
+ }
106
+ },
107
+ object_id: {
108
+ client_side_validation: true,
109
+ required: false,
110
+ serialized_name: 'objectId',
111
+ type: {
112
+ name: 'String'
113
+ }
114
+ },
115
+ object_type: {
116
+ client_side_validation: true,
117
+ required: false,
118
+ serialized_name: 'objectType',
119
+ type: {
120
+ name: 'String'
121
+ }
122
+ },
123
+ display_name: {
124
+ client_side_validation: true,
125
+ required: false,
126
+ serialized_name: 'displayName',
127
+ type: {
128
+ name: 'String'
129
+ }
130
+ },
131
+ user_principal_name: {
132
+ client_side_validation: true,
133
+ required: false,
134
+ serialized_name: 'userPrincipalName',
135
+ type: {
136
+ name: 'String'
137
+ }
138
+ },
139
+ mail: {
140
+ client_side_validation: true,
141
+ required: false,
142
+ serialized_name: 'mail',
143
+ type: {
144
+ name: 'String'
145
+ }
146
+ },
147
+ mail_enabled: {
148
+ client_side_validation: true,
149
+ required: false,
150
+ serialized_name: 'mailEnabled',
151
+ type: {
152
+ name: 'Boolean'
153
+ }
154
+ },
155
+ mail_nickname: {
156
+ client_side_validation: true,
157
+ required: false,
158
+ read_only: true,
159
+ serialized_name: 'mailNickname',
160
+ type: {
161
+ name: 'String'
162
+ }
163
+ },
164
+ security_enabled: {
165
+ client_side_validation: true,
166
+ required: false,
167
+ serialized_name: 'securityEnabled',
168
+ type: {
169
+ name: 'Boolean'
170
+ }
171
+ },
172
+ sign_in_name: {
173
+ client_side_validation: true,
174
+ required: false,
175
+ serialized_name: 'signInName',
176
+ type: {
177
+ name: 'String'
178
+ }
179
+ },
180
+ service_principal_names: {
181
+ client_side_validation: true,
182
+ required: false,
183
+ serialized_name: 'servicePrincipalNames',
184
+ type: {
185
+ name: 'Sequence',
186
+ element: {
187
+ client_side_validation: true,
188
+ required: false,
189
+ serialized_name: 'StringElementType',
190
+ type: {
191
+ name: 'String'
192
+ }
193
+ }
194
+ }
195
+ },
196
+ user_type: {
197
+ client_side_validation: true,
198
+ required: false,
199
+ serialized_name: 'userType',
200
+ type: {
201
+ name: 'String'
202
+ }
203
+ },
204
+ usage_location: {
205
+ client_side_validation: true,
206
+ required: false,
207
+ read_only: true,
208
+ serialized_name: 'usageLocation',
209
+ type: {
210
+ name: 'String'
211
+ }
212
+ },
213
+ app_id: {
214
+ client_side_validation: true,
215
+ required: false,
216
+ read_only: true,
217
+ serialized_name: 'appId',
218
+ type: {
219
+ name: 'String'
220
+ }
221
+ },
222
+ app_permissions: {
223
+ client_side_validation: true,
224
+ required: false,
225
+ read_only: true,
226
+ serialized_name: 'appPermissions',
227
+ type: {
228
+ name: 'Sequence',
229
+ element: {
230
+ client_side_validation: true,
231
+ required: false,
232
+ serialized_name: 'StringElementType',
233
+ type: {
234
+ name: 'String'
235
+ }
236
+ }
237
+ }
238
+ },
239
+ available_to_other_tenants: {
240
+ client_side_validation: true,
241
+ required: false,
242
+ read_only: true,
243
+ serialized_name: 'availableToOtherTenants',
244
+ type: {
245
+ name: 'Boolean'
246
+ }
247
+ },
248
+ identifier_uris: {
249
+ client_side_validation: true,
250
+ required: false,
251
+ read_only: true,
252
+ serialized_name: 'identifierUris',
253
+ type: {
254
+ name: 'Sequence',
255
+ element: {
256
+ client_side_validation: true,
257
+ required: false,
258
+ serialized_name: 'StringElementType',
259
+ type: {
260
+ name: 'String'
261
+ }
262
+ }
263
+ }
264
+ },
265
+ reply_urls: {
266
+ client_side_validation: true,
267
+ required: false,
268
+ read_only: true,
269
+ serialized_name: 'replyUrls',
270
+ type: {
271
+ name: 'Sequence',
272
+ element: {
273
+ client_side_validation: true,
274
+ required: false,
275
+ serialized_name: 'StringElementType',
276
+ type: {
277
+ name: 'String'
278
+ }
279
+ }
280
+ }
281
+ },
282
+ homepage: {
283
+ client_side_validation: true,
284
+ required: false,
285
+ read_only: true,
286
+ serialized_name: 'homepage',
287
+ type: {
288
+ name: 'String'
289
+ }
290
+ }
291
+ }
292
+ }
293
+ }
294
+ end
295
+ end
296
+ end
297
+ end
@@ -0,0 +1,116 @@
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 group information.
10
+ #
11
+ class ADGroup < DirectoryObject
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @objectType = "Group"
18
+ end
19
+
20
+ attr_accessor :objectType
21
+
22
+ # @return [String] The display name of the group.
23
+ attr_accessor :display_name
24
+
25
+ # @return [Boolean] Whether the group is security-enable.
26
+ attr_accessor :security_enabled
27
+
28
+ # @return [String] The primary email address of the group.
29
+ attr_accessor :mail
30
+
31
+
32
+ #
33
+ # Mapper for ADGroup 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: 'Group',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'ADGroup',
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
+ security_enabled: {
95
+ client_side_validation: true,
96
+ required: false,
97
+ serialized_name: 'securityEnabled',
98
+ type: {
99
+ name: 'Boolean'
100
+ }
101
+ },
102
+ mail: {
103
+ client_side_validation: true,
104
+ required: false,
105
+ serialized_name: 'mail',
106
+ type: {
107
+ name: 'String'
108
+ }
109
+ }
110
+ }
111
+ }
112
+ }
113
+ end
114
+ end
115
+ end
116
+ end
@@ -0,0 +1,196 @@
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 application information.
10
+ #
11
+ class Application < DirectoryObject
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @objectType = "Application"
18
+ end
19
+
20
+ attr_accessor :objectType
21
+
22
+ # @return [String] The application ID.
23
+ attr_accessor :app_id
24
+
25
+ # @return [Array<String>] The application permissions.
26
+ attr_accessor :app_permissions
27
+
28
+ # @return [Boolean] Whether the application is be available to other
29
+ # tenants.
30
+ attr_accessor :available_to_other_tenants
31
+
32
+ # @return [String] The display name of the application.
33
+ attr_accessor :display_name
34
+
35
+ # @return [Array<String>] A collection of URIs for the application.
36
+ attr_accessor :identifier_uris
37
+
38
+ # @return [Array<String>] A collection of reply URLs for the application.
39
+ attr_accessor :reply_urls
40
+
41
+ # @return [String] The home page of the application.
42
+ attr_accessor :homepage
43
+
44
+ # @return [Boolean] Whether to allow implicit grant flow for OAuth2
45
+ attr_accessor :oauth2allow_implicit_flow
46
+
47
+
48
+ #
49
+ # Mapper for Application class as Ruby Hash.
50
+ # This will be used for serialization/deserialization.
51
+ #
52
+ def self.mapper()
53
+ {
54
+ client_side_validation: true,
55
+ required: false,
56
+ serialized_name: 'Application',
57
+ type: {
58
+ name: 'Composite',
59
+ class_name: 'Application',
60
+ model_properties: {
61
+ additional_properties: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ type: {
65
+ name: 'Dictionary',
66
+ value: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ serialized_name: 'ObjectElementType',
70
+ type: {
71
+ name: 'Object'
72
+ }
73
+ }
74
+ }
75
+ },
76
+ object_id: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ read_only: true,
80
+ serialized_name: 'objectId',
81
+ type: {
82
+ name: 'String'
83
+ }
84
+ },
85
+ deletion_timestamp: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ read_only: true,
89
+ serialized_name: 'deletionTimestamp',
90
+ type: {
91
+ name: 'DateTime'
92
+ }
93
+ },
94
+ objectType: {
95
+ client_side_validation: true,
96
+ required: true,
97
+ serialized_name: 'objectType',
98
+ type: {
99
+ name: 'String'
100
+ }
101
+ },
102
+ app_id: {
103
+ client_side_validation: true,
104
+ required: false,
105
+ serialized_name: 'appId',
106
+ type: {
107
+ name: 'String'
108
+ }
109
+ },
110
+ app_permissions: {
111
+ client_side_validation: true,
112
+ required: false,
113
+ serialized_name: 'appPermissions',
114
+ type: {
115
+ name: 'Sequence',
116
+ element: {
117
+ client_side_validation: true,
118
+ required: false,
119
+ serialized_name: 'StringElementType',
120
+ type: {
121
+ name: 'String'
122
+ }
123
+ }
124
+ }
125
+ },
126
+ available_to_other_tenants: {
127
+ client_side_validation: true,
128
+ required: false,
129
+ serialized_name: 'availableToOtherTenants',
130
+ type: {
131
+ name: 'Boolean'
132
+ }
133
+ },
134
+ display_name: {
135
+ client_side_validation: true,
136
+ required: false,
137
+ serialized_name: 'displayName',
138
+ type: {
139
+ name: 'String'
140
+ }
141
+ },
142
+ identifier_uris: {
143
+ client_side_validation: true,
144
+ required: false,
145
+ serialized_name: 'identifierUris',
146
+ type: {
147
+ name: 'Sequence',
148
+ element: {
149
+ client_side_validation: true,
150
+ required: false,
151
+ serialized_name: 'StringElementType',
152
+ type: {
153
+ name: 'String'
154
+ }
155
+ }
156
+ }
157
+ },
158
+ reply_urls: {
159
+ client_side_validation: true,
160
+ required: false,
161
+ serialized_name: 'replyUrls',
162
+ type: {
163
+ name: 'Sequence',
164
+ element: {
165
+ client_side_validation: true,
166
+ required: false,
167
+ serialized_name: 'StringElementType',
168
+ type: {
169
+ name: 'String'
170
+ }
171
+ }
172
+ }
173
+ },
174
+ homepage: {
175
+ client_side_validation: true,
176
+ required: false,
177
+ serialized_name: 'homepage',
178
+ type: {
179
+ name: 'String'
180
+ }
181
+ },
182
+ oauth2allow_implicit_flow: {
183
+ client_side_validation: true,
184
+ required: false,
185
+ serialized_name: 'oauth2AllowImplicitFlow',
186
+ type: {
187
+ name: 'Boolean'
188
+ }
189
+ }
190
+ }
191
+ }
192
+ }
193
+ end
194
+ end
195
+ end
196
+ end