azure_mgmt_graph 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_graph.rb +17 -17
  3. data/lib/generated/azure_mgmt_graph/applications.rb +90 -120
  4. data/lib/generated/azure_mgmt_graph/graph_rbac_management_client.rb +15 -2
  5. data/lib/generated/azure_mgmt_graph/groups.rb +132 -121
  6. data/lib/generated/azure_mgmt_graph/models/aadobject.rb +13 -12
  7. data/lib/generated/azure_mgmt_graph/models/adgroup.rb +7 -7
  8. data/lib/generated/azure_mgmt_graph/models/application.rb +12 -12
  9. data/lib/generated/azure_mgmt_graph/models/application_create_parameters.rb +11 -11
  10. data/lib/generated/azure_mgmt_graph/models/application_list_result.rb +4 -4
  11. data/lib/generated/azure_mgmt_graph/models/application_update_parameters.rb +10 -11
  12. data/lib/generated/azure_mgmt_graph/models/check_group_membership_parameters.rb +2 -2
  13. data/lib/generated/azure_mgmt_graph/models/check_group_membership_result.rb +2 -2
  14. data/lib/generated/azure_mgmt_graph/models/get_objects_parameters.rb +6 -6
  15. data/lib/generated/azure_mgmt_graph/models/get_objects_result.rb +4 -4
  16. data/lib/generated/azure_mgmt_graph/models/graph_error.rb +4 -4
  17. data/lib/generated/azure_mgmt_graph/models/group_add_member_parameters.rb +3 -3
  18. data/lib/generated/azure_mgmt_graph/models/group_create_parameters.rb +9 -9
  19. data/lib/generated/azure_mgmt_graph/models/group_get_member_groups_parameters.rb +5 -5
  20. data/lib/generated/azure_mgmt_graph/models/group_get_member_groups_result.rb +4 -3
  21. data/lib/generated/azure_mgmt_graph/models/group_list_result.rb +3 -3
  22. data/lib/generated/azure_mgmt_graph/models/key_credential.rb +8 -8
  23. data/lib/generated/azure_mgmt_graph/models/key_credential_list_result.rb +2 -2
  24. data/lib/generated/azure_mgmt_graph/models/key_credentials_update_parameters.rb +3 -3
  25. data/lib/generated/azure_mgmt_graph/models/password_credential.rb +6 -6
  26. data/lib/generated/azure_mgmt_graph/models/password_credential_list_result.rb +3 -2
  27. data/lib/generated/azure_mgmt_graph/models/password_credentials_update_parameters.rb +4 -3
  28. data/lib/generated/azure_mgmt_graph/models/password_profile.rb +3 -3
  29. data/lib/generated/azure_mgmt_graph/models/service_principal.rb +7 -7
  30. data/lib/generated/azure_mgmt_graph/models/service_principal_create_parameters.rb +5 -5
  31. data/lib/generated/azure_mgmt_graph/models/service_principal_list_result.rb +2 -2
  32. data/lib/generated/azure_mgmt_graph/models/user.rb +9 -9
  33. data/lib/generated/azure_mgmt_graph/models/user_create_parameters.rb +9 -10
  34. data/lib/generated/azure_mgmt_graph/models/user_get_member_groups_parameters.rb +5 -5
  35. data/lib/generated/azure_mgmt_graph/models/user_get_member_groups_result.rb +4 -3
  36. data/lib/generated/azure_mgmt_graph/models/user_list_result.rb +3 -3
  37. data/lib/generated/azure_mgmt_graph/models/user_update_parameters.rb +6 -7
  38. data/lib/generated/azure_mgmt_graph/module_definition.rb +1 -1
  39. data/lib/generated/azure_mgmt_graph/objects.rb +36 -35
  40. data/lib/generated/azure_mgmt_graph/service_principals.rb +84 -101
  41. data/lib/generated/azure_mgmt_graph/users.rb +77 -86
  42. data/lib/generated/azure_mgmt_graph/version.rb +2 -2
  43. metadata +4 -4
@@ -1,18 +1,19 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::Graph
7
7
  module Models
8
8
  #
9
- # Server response for GetMemberGroups API call
9
+ # Server response for GetMemberGroups API call.
10
10
  #
11
11
  class UserGetMemberGroupsResult
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Array<String>] Group Ids of which the user is a member
15
+ # @return [Array<String>] A collection of group IDs of which the user is
16
+ # a member.
16
17
  attr_accessor :value
17
18
 
18
19
 
@@ -1,12 +1,12 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::Graph
7
7
  module Models
8
8
  #
9
- # Server response for Get tenant users API call
9
+ # Server response for Get tenant users API call.
10
10
  #
11
11
  class UserListResult
12
12
 
@@ -15,7 +15,7 @@ module Azure::ARM::Graph
15
15
  # @return [Array<User>] the list of users.
16
16
  attr_accessor :value
17
17
 
18
- # @return [String] the URL to get the next set of results.
18
+ # @return [String] The URL to get the next set of results.
19
19
  attr_accessor :odatanext_link
20
20
 
21
21
  # return [Proc] with next page method call.
@@ -1,28 +1,27 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::Graph
7
7
  module Models
8
8
  #
9
- # Request parameters for updating an existing work or school account user
9
+ # Request parameters for updating an existing work or school account user.
10
10
  #
11
11
  class UserUpdateParameters
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Boolean] Enable the account. If it is enabled then true else
16
- # false.
15
+ # @return [Boolean] Whether the account is enabled.
17
16
  attr_accessor :account_enabled
18
17
 
19
- # @return [String] User display name
18
+ # @return [String] The display name of the user.
20
19
  attr_accessor :display_name
21
20
 
22
- # @return [PasswordProfile] Password Profile
21
+ # @return [PasswordProfile] The password profile of the user.
23
22
  attr_accessor :password_profile
24
23
 
25
- # @return [String] The mail alias for the user
24
+ # @return [String] The mail alias for the user.
26
25
  attr_accessor :mail_nickname
27
26
 
28
27
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,11 +1,12 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::Graph
7
7
  #
8
- # Composite Swagger for GraphRbac Management Client
8
+ # Composite Swagger specification for Azure Active Directory Graph RBAC
9
+ # management client.
9
10
  #
10
11
  class Objects
11
12
  include Azure::ARM::Graph::Models
@@ -23,7 +24,7 @@ module Azure::ARM::Graph
23
24
  attr_reader :client
24
25
 
25
26
  #
26
- # Gets the details for current logged in user
27
+ # Gets the details for the currently logged-in user.
27
28
  #
28
29
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
29
30
  # will be added to the HTTP request.
@@ -36,7 +37,7 @@ module Azure::ARM::Graph
36
37
  end
37
38
 
38
39
  #
39
- # Gets the details for current logged in user
40
+ # Gets the details for the currently logged-in user.
40
41
  #
41
42
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
42
43
  # will be added to the HTTP request.
@@ -48,7 +49,7 @@ module Azure::ARM::Graph
48
49
  end
49
50
 
50
51
  #
51
- # Gets the details for current logged in user
52
+ # Gets the details for the currently logged-in user.
52
53
  #
53
54
  # @param [Hash{String => String}] A hash of custom headers that will be added
54
55
  # to the HTTP request.
@@ -106,28 +107,7 @@ module Azure::ARM::Graph
106
107
  end
107
108
 
108
109
  #
109
- # Gets AD group membership by provided AD object Ids
110
- #
111
- # @param parameters [GetObjectsParameters] Objects filtering parameters.
112
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
113
- # will be added to the HTTP request.
114
- #
115
- # @return [GetObjectsResult] which provide lazy access to pages of the
116
- # response.
117
- #
118
- def get_objects_by_object_ids_as_lazy(parameters, custom_headers = nil)
119
- response = get_objects_by_object_ids_async(parameters, custom_headers).value!
120
- unless response.nil?
121
- page = response.body
122
- page.next_method = Proc.new do |next_link|
123
- get_objects_by_object_ids_next_async(next_link, custom_headers)
124
- end
125
- page
126
- end
127
- end
128
-
129
- #
130
- # Gets AD group membership by provided AD object Ids
110
+ # Gets AD group membership for the specified AD object IDs.
131
111
  #
132
112
  # @param parameters [GetObjectsParameters] Objects filtering parameters.
133
113
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -141,7 +121,7 @@ module Azure::ARM::Graph
141
121
  end
142
122
 
143
123
  #
144
- # Gets AD group membership by provided AD object Ids
124
+ # Gets AD group membership for the specified AD object IDs.
145
125
  #
146
126
  # @param parameters [GetObjectsParameters] Objects filtering parameters.
147
127
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -154,7 +134,7 @@ module Azure::ARM::Graph
154
134
  end
155
135
 
156
136
  #
157
- # Gets AD group membership by provided AD object Ids
137
+ # Gets AD group membership for the specified AD object IDs.
158
138
  #
159
139
  # @param parameters [GetObjectsParameters] Objects filtering parameters.
160
140
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -223,9 +203,9 @@ module Azure::ARM::Graph
223
203
  end
224
204
 
225
205
  #
226
- # Gets AD group membership by provided AD object Ids
206
+ # Gets AD group membership for the specified AD object IDs.
227
207
  #
228
- # @param next_link [String] Next link for list operation.
208
+ # @param next_link [String] Next link for the list operation.
229
209
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
230
210
  # will be added to the HTTP request.
231
211
  #
@@ -237,9 +217,9 @@ module Azure::ARM::Graph
237
217
  end
238
218
 
239
219
  #
240
- # Gets AD group membership by provided AD object Ids
220
+ # Gets AD group membership for the specified AD object IDs.
241
221
  #
242
- # @param next_link [String] Next link for list operation.
222
+ # @param next_link [String] Next link for the list operation.
243
223
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
244
224
  # will be added to the HTTP request.
245
225
  #
@@ -250,9 +230,9 @@ module Azure::ARM::Graph
250
230
  end
251
231
 
252
232
  #
253
- # Gets AD group membership by provided AD object Ids
233
+ # Gets AD group membership for the specified AD object IDs.
254
234
  #
255
- # @param next_link [String] Next link for list operation.
235
+ # @param next_link [String] Next link for the list operation.
256
236
  # @param [Hash{String => String}] A hash of custom headers that will be added
257
237
  # to the HTTP request.
258
238
  #
@@ -310,5 +290,26 @@ module Azure::ARM::Graph
310
290
  promise.execute
311
291
  end
312
292
 
293
+ #
294
+ # Gets AD group membership for the specified AD object IDs.
295
+ #
296
+ # @param parameters [GetObjectsParameters] Objects filtering parameters.
297
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
298
+ # will be added to the HTTP request.
299
+ #
300
+ # @return [GetObjectsResult] which provide lazy access to pages of the
301
+ # response.
302
+ #
303
+ def get_objects_by_object_ids_as_lazy(parameters, custom_headers = nil)
304
+ response = get_objects_by_object_ids_async(parameters, custom_headers).value!
305
+ unless response.nil?
306
+ page = response.body
307
+ page.next_method = Proc.new do |next_link|
308
+ get_objects_by_object_ids_next_async(next_link, custom_headers)
309
+ end
310
+ page
311
+ end
312
+ end
313
+
313
314
  end
314
315
  end
@@ -1,11 +1,12 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::Graph
7
7
  #
8
- # Composite Swagger for GraphRbac Management Client
8
+ # Composite Swagger specification for Azure Active Directory Graph RBAC
9
+ # management client.
9
10
  #
10
11
  class ServicePrincipals
11
12
  include Azure::ARM::Graph::Models
@@ -23,7 +24,7 @@ module Azure::ARM::Graph
23
24
  attr_reader :client
24
25
 
25
26
  #
26
- # Creates a service principal in the directory.
27
+ # Creates a service principal in the directory.
27
28
  #
28
29
  # @param parameters [ServicePrincipalCreateParameters] Parameters to create a
29
30
  # service principal.
@@ -38,7 +39,7 @@ module Azure::ARM::Graph
38
39
  end
39
40
 
40
41
  #
41
- # Creates a service principal in the directory.
42
+ # Creates a service principal in the directory.
42
43
  #
43
44
  # @param parameters [ServicePrincipalCreateParameters] Parameters to create a
44
45
  # service principal.
@@ -52,7 +53,7 @@ module Azure::ARM::Graph
52
53
  end
53
54
 
54
55
  #
55
- # Creates a service principal in the directory.
56
+ # Creates a service principal in the directory.
56
57
  #
57
58
  # @param parameters [ServicePrincipalCreateParameters] Parameters to create a
58
59
  # service principal.
@@ -122,30 +123,9 @@ module Azure::ARM::Graph
122
123
  end
123
124
 
124
125
  #
125
- # Gets list of service principals from the current tenant.
126
+ # Gets a list of service principals from the current tenant.
126
127
  #
127
- # @param filter [String] The filter to apply on the operation.
128
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
129
- # will be added to the HTTP request.
130
- #
131
- # @return [ServicePrincipalListResult] which provide lazy access to pages of
132
- # the response.
133
- #
134
- def list_as_lazy(filter = nil, custom_headers = nil)
135
- response = list_async(filter, custom_headers).value!
136
- unless response.nil?
137
- page = response.body
138
- page.next_method = Proc.new do |next_link|
139
- list_next_async(next_link, custom_headers)
140
- end
141
- page
142
- end
143
- end
144
-
145
- #
146
- # Gets list of service principals from the current tenant.
147
- #
148
- # @param filter [String] The filter to apply on the operation.
128
+ # @param filter [String] The filter to apply to the operation.
149
129
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
150
130
  # will be added to the HTTP request.
151
131
  #
@@ -157,9 +137,9 @@ module Azure::ARM::Graph
157
137
  end
158
138
 
159
139
  #
160
- # Gets list of service principals from the current tenant.
140
+ # Gets a list of service principals from the current tenant.
161
141
  #
162
- # @param filter [String] The filter to apply on the operation.
142
+ # @param filter [String] The filter to apply to the operation.
163
143
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
164
144
  # will be added to the HTTP request.
165
145
  #
@@ -170,9 +150,9 @@ module Azure::ARM::Graph
170
150
  end
171
151
 
172
152
  #
173
- # Gets list of service principals from the current tenant.
153
+ # Gets a list of service principals from the current tenant.
174
154
  #
175
- # @param filter [String] The filter to apply on the operation.
155
+ # @param filter [String] The filter to apply to the operation.
176
156
  # @param [Hash{String => String}] A hash of custom headers that will be added
177
157
  # to the HTTP request.
178
158
  #
@@ -229,9 +209,9 @@ module Azure::ARM::Graph
229
209
  end
230
210
 
231
211
  #
232
- # Deletes service principal from the directory.
212
+ # Deletes a service principal from the directory.
233
213
  #
234
- # @param object_id [String] Object id to delete service principal information.
214
+ # @param object_id [String] The object ID of the service principal to delete.
235
215
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
236
216
  # will be added to the HTTP request.
237
217
  #
@@ -242,9 +222,9 @@ module Azure::ARM::Graph
242
222
  end
243
223
 
244
224
  #
245
- # Deletes service principal from the directory.
225
+ # Deletes a service principal from the directory.
246
226
  #
247
- # @param object_id [String] Object id to delete service principal information.
227
+ # @param object_id [String] The object ID of the service principal to delete.
248
228
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
249
229
  # will be added to the HTTP request.
250
230
  #
@@ -255,9 +235,9 @@ module Azure::ARM::Graph
255
235
  end
256
236
 
257
237
  #
258
- # Deletes service principal from the directory.
238
+ # Deletes a service principal from the directory.
259
239
  #
260
- # @param object_id [String] Object id to delete service principal information.
240
+ # @param object_id [String] The object ID of the service principal to delete.
261
241
  # @param [Hash{String => String}] A hash of custom headers that will be added
262
242
  # to the HTTP request.
263
243
  #
@@ -308,7 +288,7 @@ module Azure::ARM::Graph
308
288
  #
309
289
  # Gets service principal information from the directory.
310
290
  #
311
- # @param object_id [String] Object id to get service principal information.
291
+ # @param object_id [String] The object ID of the service principal to get.
312
292
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
313
293
  # will be added to the HTTP request.
314
294
  #
@@ -322,7 +302,7 @@ module Azure::ARM::Graph
322
302
  #
323
303
  # Gets service principal information from the directory.
324
304
  #
325
- # @param object_id [String] Object id to get service principal information.
305
+ # @param object_id [String] The object ID of the service principal to get.
326
306
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
327
307
  # will be added to the HTTP request.
328
308
  #
@@ -335,7 +315,7 @@ module Azure::ARM::Graph
335
315
  #
336
316
  # Gets service principal information from the directory.
337
317
  #
338
- # @param object_id [String] Object id to get service principal information.
318
+ # @param object_id [String] The object ID of the service principal to get.
339
319
  # @param [Hash{String => String}] A hash of custom headers that will be added
340
320
  # to the HTTP request.
341
321
  #
@@ -394,11 +374,10 @@ module Azure::ARM::Graph
394
374
  end
395
375
 
396
376
  #
397
- # Get keyCredentials associated with the service principal by object Id.
398
- # Reference:
399
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/entity-and-complex-type-reference#keycredential-type
377
+ # Get the keyCredentials associated with the specified service principal.
400
378
  #
401
- # @param object_id [String] Object id to get service principal information.
379
+ # @param object_id [String] The object ID of the service principal for which to
380
+ # get keyCredentials.
402
381
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
403
382
  # will be added to the HTTP request.
404
383
  #
@@ -410,11 +389,10 @@ module Azure::ARM::Graph
410
389
  end
411
390
 
412
391
  #
413
- # Get keyCredentials associated with the service principal by object Id.
414
- # Reference:
415
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/entity-and-complex-type-reference#keycredential-type
392
+ # Get the keyCredentials associated with the specified service principal.
416
393
  #
417
- # @param object_id [String] Object id to get service principal information.
394
+ # @param object_id [String] The object ID of the service principal for which to
395
+ # get keyCredentials.
418
396
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
419
397
  # will be added to the HTTP request.
420
398
  #
@@ -425,11 +403,10 @@ module Azure::ARM::Graph
425
403
  end
426
404
 
427
405
  #
428
- # Get keyCredentials associated with the service principal by object Id.
429
- # Reference:
430
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/entity-and-complex-type-reference#keycredential-type
406
+ # Get the keyCredentials associated with the specified service principal.
431
407
  #
432
- # @param object_id [String] Object id to get service principal information.
408
+ # @param object_id [String] The object ID of the service principal for which to
409
+ # get keyCredentials.
433
410
  # @param [Hash{String => String}] A hash of custom headers that will be added
434
411
  # to the HTTP request.
435
412
  #
@@ -488,12 +465,11 @@ module Azure::ARM::Graph
488
465
  end
489
466
 
490
467
  #
491
- # Update keyCredentials associated with an existing service principal.
492
- # Reference:
493
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/entity-and-complex-type-reference#keycredential-type
468
+ # Update the keyCredentials associated with a service principal.
494
469
  #
495
- # @param object_id [String] Object id to get service principal information.
496
- # @param parameters [KeyCredentialsUpdateParameters] Parameters to update
470
+ # @param object_id [String] The object ID for which to get service principal
471
+ # information.
472
+ # @param parameters [KeyCredentialsUpdateParameters] Parameters to update the
497
473
  # keyCredentials of an existing service principal.
498
474
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
499
475
  # will be added to the HTTP request.
@@ -505,12 +481,11 @@ module Azure::ARM::Graph
505
481
  end
506
482
 
507
483
  #
508
- # Update keyCredentials associated with an existing service principal.
509
- # Reference:
510
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/entity-and-complex-type-reference#keycredential-type
484
+ # Update the keyCredentials associated with a service principal.
511
485
  #
512
- # @param object_id [String] Object id to get service principal information.
513
- # @param parameters [KeyCredentialsUpdateParameters] Parameters to update
486
+ # @param object_id [String] The object ID for which to get service principal
487
+ # information.
488
+ # @param parameters [KeyCredentialsUpdateParameters] Parameters to update the
514
489
  # keyCredentials of an existing service principal.
515
490
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
516
491
  # will be added to the HTTP request.
@@ -522,12 +497,11 @@ module Azure::ARM::Graph
522
497
  end
523
498
 
524
499
  #
525
- # Update keyCredentials associated with an existing service principal.
526
- # Reference:
527
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/entity-and-complex-type-reference#keycredential-type
500
+ # Update the keyCredentials associated with a service principal.
528
501
  #
529
- # @param object_id [String] Object id to get service principal information.
530
- # @param parameters [KeyCredentialsUpdateParameters] Parameters to update
502
+ # @param object_id [String] The object ID for which to get service principal
503
+ # information.
504
+ # @param parameters [KeyCredentialsUpdateParameters] Parameters to update the
531
505
  # keyCredentials of an existing service principal.
532
506
  # @param [Hash{String => String}] A hash of custom headers that will be added
533
507
  # to the HTTP request.
@@ -587,11 +561,9 @@ module Azure::ARM::Graph
587
561
  end
588
562
 
589
563
  #
590
- # Gets passwordCredentials associated with an existing service principal.
591
- # Reference:
592
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/entity-and-complex-type-reference#passwordcredential-type
564
+ # Gets the passwordCredentials associated with a service principal.
593
565
  #
594
- # @param object_id [String] Object id to get service principal information.
566
+ # @param object_id [String] The object ID of the service principal.
595
567
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
596
568
  # will be added to the HTTP request.
597
569
  #
@@ -603,11 +575,9 @@ module Azure::ARM::Graph
603
575
  end
604
576
 
605
577
  #
606
- # Gets passwordCredentials associated with an existing service principal.
607
- # Reference:
608
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/entity-and-complex-type-reference#passwordcredential-type
578
+ # Gets the passwordCredentials associated with a service principal.
609
579
  #
610
- # @param object_id [String] Object id to get service principal information.
580
+ # @param object_id [String] The object ID of the service principal.
611
581
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
612
582
  # will be added to the HTTP request.
613
583
  #
@@ -618,11 +588,9 @@ module Azure::ARM::Graph
618
588
  end
619
589
 
620
590
  #
621
- # Gets passwordCredentials associated with an existing service principal.
622
- # Reference:
623
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/entity-and-complex-type-reference#passwordcredential-type
591
+ # Gets the passwordCredentials associated with a service principal.
624
592
  #
625
- # @param object_id [String] Object id to get service principal information.
593
+ # @param object_id [String] The object ID of the service principal.
626
594
  # @param [Hash{String => String}] A hash of custom headers that will be added
627
595
  # to the HTTP request.
628
596
  #
@@ -681,13 +649,11 @@ module Azure::ARM::Graph
681
649
  end
682
650
 
683
651
  #
684
- # Updates passwordCredentials associated with an existing service principal.
685
- # Reference:
686
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/entity-and-complex-type-reference#passwordcredential-type
652
+ # Updates the passwordCredentials associated with a service principal.
687
653
  #
688
- # @param object_id [String] Object id to get service principal information.
654
+ # @param object_id [String] The object ID of the service principal.
689
655
  # @param parameters [PasswordCredentialsUpdateParameters] Parameters to update
690
- # passwordCredentials of an existing service principal.
656
+ # the passwordCredentials of an existing service principal.
691
657
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
692
658
  # will be added to the HTTP request.
693
659
  #
@@ -698,13 +664,11 @@ module Azure::ARM::Graph
698
664
  end
699
665
 
700
666
  #
701
- # Updates passwordCredentials associated with an existing service principal.
702
- # Reference:
703
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/entity-and-complex-type-reference#passwordcredential-type
667
+ # Updates the passwordCredentials associated with a service principal.
704
668
  #
705
- # @param object_id [String] Object id to get service principal information.
669
+ # @param object_id [String] The object ID of the service principal.
706
670
  # @param parameters [PasswordCredentialsUpdateParameters] Parameters to update
707
- # passwordCredentials of an existing service principal.
671
+ # the passwordCredentials of an existing service principal.
708
672
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
709
673
  # will be added to the HTTP request.
710
674
  #
@@ -715,13 +679,11 @@ module Azure::ARM::Graph
715
679
  end
716
680
 
717
681
  #
718
- # Updates passwordCredentials associated with an existing service principal.
719
- # Reference:
720
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/entity-and-complex-type-reference#passwordcredential-type
682
+ # Updates the passwordCredentials associated with a service principal.
721
683
  #
722
- # @param object_id [String] Object id to get service principal information.
684
+ # @param object_id [String] The object ID of the service principal.
723
685
  # @param parameters [PasswordCredentialsUpdateParameters] Parameters to update
724
- # passwordCredentials of an existing service principal.
686
+ # the passwordCredentials of an existing service principal.
725
687
  # @param [Hash{String => String}] A hash of custom headers that will be added
726
688
  # to the HTTP request.
727
689
  #
@@ -780,9 +742,9 @@ module Azure::ARM::Graph
780
742
  end
781
743
 
782
744
  #
783
- # Gets list of service principals from the current tenant.
745
+ # Gets a list of service principals from the current tenant.
784
746
  #
785
- # @param next_link [String] Next link for list operation.
747
+ # @param next_link [String] Next link for the list operation.
786
748
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
787
749
  # will be added to the HTTP request.
788
750
  #
@@ -794,9 +756,9 @@ module Azure::ARM::Graph
794
756
  end
795
757
 
796
758
  #
797
- # Gets list of service principals from the current tenant.
759
+ # Gets a list of service principals from the current tenant.
798
760
  #
799
- # @param next_link [String] Next link for list operation.
761
+ # @param next_link [String] Next link for the list operation.
800
762
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
801
763
  # will be added to the HTTP request.
802
764
  #
@@ -807,9 +769,9 @@ module Azure::ARM::Graph
807
769
  end
808
770
 
809
771
  #
810
- # Gets list of service principals from the current tenant.
772
+ # Gets a list of service principals from the current tenant.
811
773
  #
812
- # @param next_link [String] Next link for list operation.
774
+ # @param next_link [String] Next link for the list operation.
813
775
  # @param [Hash{String => String}] A hash of custom headers that will be added
814
776
  # to the HTTP request.
815
777
  #
@@ -867,5 +829,26 @@ module Azure::ARM::Graph
867
829
  promise.execute
868
830
  end
869
831
 
832
+ #
833
+ # Gets a list of service principals from the current tenant.
834
+ #
835
+ # @param filter [String] The filter to apply to the operation.
836
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
837
+ # will be added to the HTTP request.
838
+ #
839
+ # @return [ServicePrincipalListResult] which provide lazy access to pages of
840
+ # the response.
841
+ #
842
+ def list_as_lazy(filter = nil, custom_headers = nil)
843
+ response = list_async(filter, custom_headers).value!
844
+ unless response.nil?
845
+ page = response.body
846
+ page.next_method = Proc.new do |next_link|
847
+ list_next_async(next_link, custom_headers)
848
+ end
849
+ page
850
+ end
851
+ end
852
+
870
853
  end
871
854
  end