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,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
 
@@ -17,7 +17,7 @@ module Azure::ARM::Graph
17
17
  # @return Credentials needed for the client to connect to Azure.
18
18
  attr_reader :credentials
19
19
 
20
- # @return [String] the tenant Id.
20
+ # @return [String] The tenant ID.
21
21
  attr_accessor :tenant_id
22
22
 
23
23
  # @return [String] Gets or sets the preferred language for the response.
@@ -68,6 +68,7 @@ module Azure::ARM::Graph
68
68
  @accept_language = 'en-US'
69
69
  @long_running_operation_retry_timeout = 30
70
70
  @generate_client_request_id = true
71
+ add_telemetry
71
72
  end
72
73
 
73
74
  #
@@ -125,5 +126,17 @@ module Azure::ARM::Graph
125
126
  super(request_url, method, path, options)
126
127
  end
127
128
 
129
+
130
+ private
131
+ #
132
+ # Adds telemetry information.
133
+ #
134
+ def add_telemetry
135
+ sdk_information = 'azure_mgmt_graph'
136
+ if defined? Azure::ARM::Graph::VERSION
137
+ sdk_information = "#{sdk_information}/#{Azure::ARM::Graph::VERSION}"
138
+ end
139
+ add_user_agent_information(sdk_information)
140
+ end
128
141
  end
129
142
  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 Groups
11
12
  include Azure::ARM::Graph::Models
@@ -24,9 +25,9 @@ module Azure::ARM::Graph
24
25
 
25
26
  #
26
27
  # Checks whether the specified user, group, contact, or service principal is a
27
- # direct or a transitive member of the specified group.
28
+ # direct or transitive member of the specified group.
28
29
  #
29
- # @param parameters [CheckGroupMembershipParameters] Check group membership
30
+ # @param parameters [CheckGroupMembershipParameters] The check group membership
30
31
  # parameters.
31
32
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
32
33
  # will be added to the HTTP request.
@@ -40,9 +41,9 @@ module Azure::ARM::Graph
40
41
 
41
42
  #
42
43
  # Checks whether the specified user, group, contact, or service principal is a
43
- # direct or a transitive member of the specified group.
44
+ # direct or transitive member of the specified group.
44
45
  #
45
- # @param parameters [CheckGroupMembershipParameters] Check group membership
46
+ # @param parameters [CheckGroupMembershipParameters] The check group membership
46
47
  # parameters.
47
48
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
48
49
  # will be added to the HTTP request.
@@ -55,9 +56,9 @@ module Azure::ARM::Graph
55
56
 
56
57
  #
57
58
  # Checks whether the specified user, group, contact, or service principal is a
58
- # direct or a transitive member of the specified group.
59
+ # direct or transitive member of the specified group.
59
60
  #
60
- # @param parameters [CheckGroupMembershipParameters] Check group membership
61
+ # @param parameters [CheckGroupMembershipParameters] The check group membership
61
62
  # parameters.
62
63
  # @param [Hash{String => String}] A hash of custom headers that will be added
63
64
  # to the HTTP request.
@@ -125,11 +126,11 @@ module Azure::ARM::Graph
125
126
  end
126
127
 
127
128
  #
128
- # Remove a memeber from a group. Reference:
129
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/groups-operations#DeleteGroupMember
129
+ # Remove a member from a group.
130
130
  #
131
- # @param group_object_id [String] Group object id
132
- # @param member_object_id [String] Member Object id
131
+ # @param group_object_id [String] The object ID of the group from which to
132
+ # remove the member.
133
+ # @param member_object_id [String] Member object id
133
134
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
134
135
  # will be added to the HTTP request.
135
136
  #
@@ -140,11 +141,11 @@ module Azure::ARM::Graph
140
141
  end
141
142
 
142
143
  #
143
- # Remove a memeber from a group. Reference:
144
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/groups-operations#DeleteGroupMember
144
+ # Remove a member from a group.
145
145
  #
146
- # @param group_object_id [String] Group object id
147
- # @param member_object_id [String] Member Object id
146
+ # @param group_object_id [String] The object ID of the group from which to
147
+ # remove the member.
148
+ # @param member_object_id [String] Member object id
148
149
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
149
150
  # will be added to the HTTP request.
150
151
  #
@@ -155,11 +156,11 @@ module Azure::ARM::Graph
155
156
  end
156
157
 
157
158
  #
158
- # Remove a memeber from a group. Reference:
159
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/groups-operations#DeleteGroupMember
159
+ # Remove a member from a group.
160
160
  #
161
- # @param group_object_id [String] Group object id
162
- # @param member_object_id [String] Member Object id
161
+ # @param group_object_id [String] The object ID of the group from which to
162
+ # remove the member.
163
+ # @param member_object_id [String] Member object id
163
164
  # @param [Hash{String => String}] A hash of custom headers that will be added
164
165
  # to the HTTP request.
165
166
  #
@@ -209,12 +210,13 @@ module Azure::ARM::Graph
209
210
  end
210
211
 
211
212
  #
212
- # Add a memeber to a group. Reference:
213
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/groups-operations#AddGroupMembers
213
+ # Add a member to a group.
214
214
  #
215
- # @param group_object_id [String] Group object id
216
- # @param parameters [GroupAddMemberParameters] Member Object Url as
217
- # https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd
215
+ # @param group_object_id [String] The object ID of the group to which to add
216
+ # the member.
217
+ # @param parameters [GroupAddMemberParameters] The URL of the member object,
218
+ # such as
219
+ # https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd.
218
220
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
219
221
  # will be added to the HTTP request.
220
222
  #
@@ -225,12 +227,13 @@ module Azure::ARM::Graph
225
227
  end
226
228
 
227
229
  #
228
- # Add a memeber to a group. Reference:
229
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/groups-operations#AddGroupMembers
230
+ # Add a member to a group.
230
231
  #
231
- # @param group_object_id [String] Group object id
232
- # @param parameters [GroupAddMemberParameters] Member Object Url as
233
- # https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd
232
+ # @param group_object_id [String] The object ID of the group to which to add
233
+ # the member.
234
+ # @param parameters [GroupAddMemberParameters] The URL of the member object,
235
+ # such as
236
+ # https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd.
234
237
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
235
238
  # will be added to the HTTP request.
236
239
  #
@@ -241,12 +244,13 @@ module Azure::ARM::Graph
241
244
  end
242
245
 
243
246
  #
244
- # Add a memeber to a group. Reference:
245
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/groups-operations#AddGroupMembers
247
+ # Add a member to a group.
246
248
  #
247
- # @param group_object_id [String] Group object id
248
- # @param parameters [GroupAddMemberParameters] Member Object Url as
249
- # https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd
249
+ # @param group_object_id [String] The object ID of the group to which to add
250
+ # the member.
251
+ # @param parameters [GroupAddMemberParameters] The URL of the member object,
252
+ # such as
253
+ # https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd.
250
254
  # @param [Hash{String => String}] A hash of custom headers that will be added
251
255
  # to the HTTP request.
252
256
  #
@@ -305,10 +309,9 @@ module Azure::ARM::Graph
305
309
  end
306
310
 
307
311
  #
308
- # Delete a group in the directory. Reference:
309
- # http://msdn.microsoft.com/en-us/library/azure/dn151676.aspx
312
+ # Delete a group from the directory.
310
313
  #
311
- # @param group_object_id [String] Object id
314
+ # @param group_object_id [String] The object ID of the group to delete.
312
315
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
313
316
  # will be added to the HTTP request.
314
317
  #
@@ -319,10 +322,9 @@ module Azure::ARM::Graph
319
322
  end
320
323
 
321
324
  #
322
- # Delete a group in the directory. Reference:
323
- # http://msdn.microsoft.com/en-us/library/azure/dn151676.aspx
325
+ # Delete a group from the directory.
324
326
  #
325
- # @param group_object_id [String] Object id
327
+ # @param group_object_id [String] The object ID of the group to delete.
326
328
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
327
329
  # will be added to the HTTP request.
328
330
  #
@@ -333,10 +335,9 @@ module Azure::ARM::Graph
333
335
  end
334
336
 
335
337
  #
336
- # Delete a group in the directory. Reference:
337
- # http://msdn.microsoft.com/en-us/library/azure/dn151676.aspx
338
+ # Delete a group from the directory.
338
339
  #
339
- # @param group_object_id [String] Object id
340
+ # @param group_object_id [String] The object ID of the group to delete.
340
341
  # @param [Hash{String => String}] A hash of custom headers that will be added
341
342
  # to the HTTP request.
342
343
  #
@@ -385,10 +386,10 @@ module Azure::ARM::Graph
385
386
  end
386
387
 
387
388
  #
388
- # Create a group in the directory. Reference:
389
- # http://msdn.microsoft.com/en-us/library/azure/dn151676.aspx
389
+ # Create a group in the directory.
390
390
  #
391
- # @param parameters [GroupCreateParameters] Parameters to create a group
391
+ # @param parameters [GroupCreateParameters] The parameters for the group to
392
+ # create.
392
393
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
393
394
  # will be added to the HTTP request.
394
395
  #
@@ -400,10 +401,10 @@ module Azure::ARM::Graph
400
401
  end
401
402
 
402
403
  #
403
- # Create a group in the directory. Reference:
404
- # http://msdn.microsoft.com/en-us/library/azure/dn151676.aspx
404
+ # Create a group in the directory.
405
405
  #
406
- # @param parameters [GroupCreateParameters] Parameters to create a group
406
+ # @param parameters [GroupCreateParameters] The parameters for the group to
407
+ # create.
407
408
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
408
409
  # will be added to the HTTP request.
409
410
  #
@@ -414,10 +415,10 @@ module Azure::ARM::Graph
414
415
  end
415
416
 
416
417
  #
417
- # Create a group in the directory. Reference:
418
- # http://msdn.microsoft.com/en-us/library/azure/dn151676.aspx
418
+ # Create a group in the directory.
419
419
  #
420
- # @param parameters [GroupCreateParameters] Parameters to create a group
420
+ # @param parameters [GroupCreateParameters] The parameters for the group to
421
+ # create.
421
422
  # @param [Hash{String => String}] A hash of custom headers that will be added
422
423
  # to the HTTP request.
423
424
  #
@@ -486,27 +487,7 @@ module Azure::ARM::Graph
486
487
  #
487
488
  # Gets list of groups for the current tenant.
488
489
  #
489
- # @param filter [String] The filter to apply on the operation.
490
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
491
- # will be added to the HTTP request.
492
- #
493
- # @return [GroupListResult] which provide lazy access to pages of the response.
494
- #
495
- def list_as_lazy(filter = nil, custom_headers = nil)
496
- response = list_async(filter, custom_headers).value!
497
- unless response.nil?
498
- page = response.body
499
- page.next_method = Proc.new do |next_link|
500
- list_next_async(next_link, custom_headers)
501
- end
502
- page
503
- end
504
- end
505
-
506
- #
507
- # Gets list of groups for the current tenant.
508
- #
509
- # @param filter [String] The filter to apply on the operation.
490
+ # @param filter [String] The filter to apply to the operation.
510
491
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
511
492
  # will be added to the HTTP request.
512
493
  #
@@ -520,7 +501,7 @@ module Azure::ARM::Graph
520
501
  #
521
502
  # Gets list of groups for the current tenant.
522
503
  #
523
- # @param filter [String] The filter to apply on the operation.
504
+ # @param filter [String] The filter to apply to the operation.
524
505
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
525
506
  # will be added to the HTTP request.
526
507
  #
@@ -533,7 +514,7 @@ module Azure::ARM::Graph
533
514
  #
534
515
  # Gets list of groups for the current tenant.
535
516
  #
536
- # @param filter [String] The filter to apply on the operation.
517
+ # @param filter [String] The filter to apply to the operation.
537
518
  # @param [Hash{String => String}] A hash of custom headers that will be added
538
519
  # to the HTTP request.
539
520
  #
@@ -592,28 +573,8 @@ module Azure::ARM::Graph
592
573
  #
593
574
  # Gets the members of a group.
594
575
  #
595
- # @param object_id [String] Group object Id who's members should be retrieved.
596
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
597
- # will be added to the HTTP request.
598
- #
599
- # @return [GetObjectsResult] which provide lazy access to pages of the
600
- # response.
601
- #
602
- def get_group_members_as_lazy(object_id, custom_headers = nil)
603
- response = get_group_members_async(object_id, custom_headers).value!
604
- unless response.nil?
605
- page = response.body
606
- page.next_method = Proc.new do |next_link|
607
- get_group_members_next_async(next_link, custom_headers)
608
- end
609
- page
610
- end
611
- end
612
-
613
- #
614
- # Gets the members of a group.
615
- #
616
- # @param object_id [String] Group object Id who's members should be retrieved.
576
+ # @param object_id [String] The object ID of the group whose members should be
577
+ # retrieved.
617
578
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
618
579
  # will be added to the HTTP request.
619
580
  #
@@ -627,7 +588,8 @@ module Azure::ARM::Graph
627
588
  #
628
589
  # Gets the members of a group.
629
590
  #
630
- # @param object_id [String] Group object Id who's members should be retrieved.
591
+ # @param object_id [String] The object ID of the group whose members should be
592
+ # retrieved.
631
593
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
632
594
  # will be added to the HTTP request.
633
595
  #
@@ -640,7 +602,8 @@ module Azure::ARM::Graph
640
602
  #
641
603
  # Gets the members of a group.
642
604
  #
643
- # @param object_id [String] Group object Id who's members should be retrieved.
605
+ # @param object_id [String] The object ID of the group whose members should be
606
+ # retrieved.
644
607
  # @param [Hash{String => String}] A hash of custom headers that will be added
645
608
  # to the HTTP request.
646
609
  #
@@ -701,7 +664,8 @@ module Azure::ARM::Graph
701
664
  #
702
665
  # Gets group information from the directory.
703
666
  #
704
- # @param object_id [String] User objectId to get group information.
667
+ # @param object_id [String] The object ID of the user for which to get group
668
+ # information.
705
669
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
706
670
  # will be added to the HTTP request.
707
671
  #
@@ -715,7 +679,8 @@ module Azure::ARM::Graph
715
679
  #
716
680
  # Gets group information from the directory.
717
681
  #
718
- # @param object_id [String] User objectId to get group information.
682
+ # @param object_id [String] The object ID of the user for which to get group
683
+ # information.
719
684
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
720
685
  # will be added to the HTTP request.
721
686
  #
@@ -728,7 +693,8 @@ module Azure::ARM::Graph
728
693
  #
729
694
  # Gets group information from the directory.
730
695
  #
731
- # @param object_id [String] User objectId to get group information.
696
+ # @param object_id [String] The object ID of the user for which to get group
697
+ # information.
732
698
  # @param [Hash{String => String}] A hash of custom headers that will be added
733
699
  # to the HTTP request.
734
700
  #
@@ -787,10 +753,11 @@ module Azure::ARM::Graph
787
753
  end
788
754
 
789
755
  #
790
- # Gets a collection that contains the Object IDs of the groups of which the
791
- # group is a member.
756
+ # Gets a collection of object IDs of groups of which the specified group is a
757
+ # member.
792
758
  #
793
- # @param object_id [String] Group filtering parameters.
759
+ # @param object_id [String] The object ID of the group for which to get group
760
+ # membership.
794
761
  # @param parameters [GroupGetMemberGroupsParameters] Group filtering
795
762
  # parameters.
796
763
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -804,10 +771,11 @@ module Azure::ARM::Graph
804
771
  end
805
772
 
806
773
  #
807
- # Gets a collection that contains the Object IDs of the groups of which the
808
- # group is a member.
774
+ # Gets a collection of object IDs of groups of which the specified group is a
775
+ # member.
809
776
  #
810
- # @param object_id [String] Group filtering parameters.
777
+ # @param object_id [String] The object ID of the group for which to get group
778
+ # membership.
811
779
  # @param parameters [GroupGetMemberGroupsParameters] Group filtering
812
780
  # parameters.
813
781
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -820,10 +788,11 @@ module Azure::ARM::Graph
820
788
  end
821
789
 
822
790
  #
823
- # Gets a collection that contains the Object IDs of the groups of which the
824
- # group is a member.
791
+ # Gets a collection of object IDs of groups of which the specified group is a
792
+ # member.
825
793
  #
826
- # @param object_id [String] Group filtering parameters.
794
+ # @param object_id [String] The object ID of the group for which to get group
795
+ # membership.
827
796
  # @param parameters [GroupGetMemberGroupsParameters] Group filtering
828
797
  # parameters.
829
798
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -894,9 +863,9 @@ module Azure::ARM::Graph
894
863
  end
895
864
 
896
865
  #
897
- # Gets list of groups for the current tenant.
866
+ # Gets a list of groups for the current tenant.
898
867
  #
899
- # @param next_link [String] Next link for list operation.
868
+ # @param next_link [String] Next link for the list operation.
900
869
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
901
870
  # will be added to the HTTP request.
902
871
  #
@@ -908,9 +877,9 @@ module Azure::ARM::Graph
908
877
  end
909
878
 
910
879
  #
911
- # Gets list of groups for the current tenant.
880
+ # Gets a list of groups for the current tenant.
912
881
  #
913
- # @param next_link [String] Next link for list operation.
882
+ # @param next_link [String] Next link for the list operation.
914
883
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
915
884
  # will be added to the HTTP request.
916
885
  #
@@ -921,9 +890,9 @@ module Azure::ARM::Graph
921
890
  end
922
891
 
923
892
  #
924
- # Gets list of groups for the current tenant.
893
+ # Gets a list of groups for the current tenant.
925
894
  #
926
- # @param next_link [String] Next link for list operation.
895
+ # @param next_link [String] Next link for the list operation.
927
896
  # @param [Hash{String => String}] A hash of custom headers that will be added
928
897
  # to the HTTP request.
929
898
  #
@@ -984,7 +953,7 @@ module Azure::ARM::Graph
984
953
  #
985
954
  # Gets the members of a group.
986
955
  #
987
- # @param next_link [String] Next link for list operation.
956
+ # @param next_link [String] Next link for the list operation.
988
957
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
989
958
  # will be added to the HTTP request.
990
959
  #
@@ -998,7 +967,7 @@ module Azure::ARM::Graph
998
967
  #
999
968
  # Gets the members of a group.
1000
969
  #
1001
- # @param next_link [String] Next link for list operation.
970
+ # @param next_link [String] Next link for the list operation.
1002
971
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1003
972
  # will be added to the HTTP request.
1004
973
  #
@@ -1011,7 +980,7 @@ module Azure::ARM::Graph
1011
980
  #
1012
981
  # Gets the members of a group.
1013
982
  #
1014
- # @param next_link [String] Next link for list operation.
983
+ # @param next_link [String] Next link for the list operation.
1015
984
  # @param [Hash{String => String}] A hash of custom headers that will be added
1016
985
  # to the HTTP request.
1017
986
  #
@@ -1069,5 +1038,47 @@ module Azure::ARM::Graph
1069
1038
  promise.execute
1070
1039
  end
1071
1040
 
1041
+ #
1042
+ # Gets list of groups for the current tenant.
1043
+ #
1044
+ # @param filter [String] The filter to apply to the operation.
1045
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1046
+ # will be added to the HTTP request.
1047
+ #
1048
+ # @return [GroupListResult] which provide lazy access to pages of the response.
1049
+ #
1050
+ def list_as_lazy(filter = nil, custom_headers = nil)
1051
+ response = list_async(filter, custom_headers).value!
1052
+ unless response.nil?
1053
+ page = response.body
1054
+ page.next_method = Proc.new do |next_link|
1055
+ list_next_async(next_link, custom_headers)
1056
+ end
1057
+ page
1058
+ end
1059
+ end
1060
+
1061
+ #
1062
+ # Gets the members of a group.
1063
+ #
1064
+ # @param object_id [String] The object ID of the group whose members should be
1065
+ # retrieved.
1066
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1067
+ # will be added to the HTTP request.
1068
+ #
1069
+ # @return [GetObjectsResult] which provide lazy access to pages of the
1070
+ # response.
1071
+ #
1072
+ def get_group_members_as_lazy(object_id, custom_headers = nil)
1073
+ response = get_group_members_async(object_id, custom_headers).value!
1074
+ unless response.nil?
1075
+ page = response.body
1076
+ page.next_method = Proc.new do |next_link|
1077
+ get_group_members_next_async(next_link, custom_headers)
1078
+ end
1079
+ page
1080
+ end
1081
+ end
1082
+
1072
1083
  end
1073
1084
  end