azure_mgmt_graph 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,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 Users
11
12
  include Azure::ARM::Graph::Models
@@ -23,8 +24,7 @@ module Azure::ARM::Graph
23
24
  attr_reader :client
24
25
 
25
26
  #
26
- # Create a new user. Reference:
27
- # https://msdn.microsoft.com/library/azure/ad/graph/api/users-operations#CreateUser
27
+ # Create a new user.
28
28
  #
29
29
  # @param parameters [UserCreateParameters] Parameters to create a user.
30
30
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -38,8 +38,7 @@ module Azure::ARM::Graph
38
38
  end
39
39
 
40
40
  #
41
- # Create a new user. Reference:
42
- # https://msdn.microsoft.com/library/azure/ad/graph/api/users-operations#CreateUser
41
+ # Create a new user.
43
42
  #
44
43
  # @param parameters [UserCreateParameters] Parameters to create a user.
45
44
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -52,8 +51,7 @@ module Azure::ARM::Graph
52
51
  end
53
52
 
54
53
  #
55
- # Create a new user. Reference:
56
- # https://msdn.microsoft.com/library/azure/ad/graph/api/users-operations#CreateUser
54
+ # Create a new user.
57
55
  #
58
56
  # @param parameters [UserCreateParameters] Parameters to create a user.
59
57
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -122,31 +120,9 @@ module Azure::ARM::Graph
122
120
  end
123
121
 
124
122
  #
125
- # Gets list of users for the current tenant. Reference
126
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/users-operations#GetUsers
127
- #
128
- # @param filter [String] The filter to apply on the operation.
129
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
130
- # will be added to the HTTP request.
131
- #
132
- # @return [UserListResult] which provide lazy access to pages of 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 users for the current tenant. Reference
147
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/users-operations#GetUsers
123
+ # Gets list of users for the current tenant.
148
124
  #
149
- # @param filter [String] The filter to apply on the operation.
125
+ # @param filter [String] The filter to apply to the operation.
150
126
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
151
127
  # will be added to the HTTP request.
152
128
  #
@@ -158,10 +134,9 @@ module Azure::ARM::Graph
158
134
  end
159
135
 
160
136
  #
161
- # Gets list of users for the current tenant. Reference
162
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/users-operations#GetUsers
137
+ # Gets list of users for the current tenant.
163
138
  #
164
- # @param filter [String] The filter to apply on the operation.
139
+ # @param filter [String] The filter to apply to the operation.
165
140
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
166
141
  # will be added to the HTTP request.
167
142
  #
@@ -172,10 +147,9 @@ module Azure::ARM::Graph
172
147
  end
173
148
 
174
149
  #
175
- # Gets list of users for the current tenant. Reference
176
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/users-operations#GetUsers
150
+ # Gets list of users for the current tenant.
177
151
  #
178
- # @param filter [String] The filter to apply on the operation.
152
+ # @param filter [String] The filter to apply to the operation.
179
153
  # @param [Hash{String => String}] A hash of custom headers that will be added
180
154
  # to the HTTP request.
181
155
  #
@@ -232,11 +206,10 @@ module Azure::ARM::Graph
232
206
  end
233
207
 
234
208
  #
235
- # Gets user information from the directory. Reference:
236
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/users-operations#GetAUser
209
+ # Gets user information from the directory.
237
210
  #
238
- # @param upn_or_object_id [String] User object Id or user principal name to
239
- # get user information.
211
+ # @param upn_or_object_id [String] The object ID or principal name of the user
212
+ # for which to get information.
240
213
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
241
214
  # will be added to the HTTP request.
242
215
  #
@@ -248,11 +221,10 @@ module Azure::ARM::Graph
248
221
  end
249
222
 
250
223
  #
251
- # Gets user information from the directory. Reference:
252
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/users-operations#GetAUser
224
+ # Gets user information from the directory.
253
225
  #
254
- # @param upn_or_object_id [String] User object Id or user principal name to
255
- # get user information.
226
+ # @param upn_or_object_id [String] The object ID or principal name of the user
227
+ # for which to get information.
256
228
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
257
229
  # will be added to the HTTP request.
258
230
  #
@@ -263,11 +235,10 @@ module Azure::ARM::Graph
263
235
  end
264
236
 
265
237
  #
266
- # Gets user information from the directory. Reference:
267
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/users-operations#GetAUser
238
+ # Gets user information from the directory.
268
239
  #
269
- # @param upn_or_object_id [String] User object Id or user principal name to
270
- # get user information.
240
+ # @param upn_or_object_id [String] The object ID or principal name of the user
241
+ # for which to get information.
271
242
  # @param [Hash{String => String}] A hash of custom headers that will be added
272
243
  # to the HTTP request.
273
244
  #
@@ -326,12 +297,11 @@ module Azure::ARM::Graph
326
297
  end
327
298
 
328
299
  #
329
- # Updates an exisitng user. Reference:
330
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/users-operations#UpdateUser
300
+ # Updates a user.
331
301
  #
332
- # @param upn_or_object_id [String] User object Id or user principal name to
333
- # get user information.
334
- # @param parameters [UserUpdateParameters] Parameters to update an exisitng
302
+ # @param upn_or_object_id [String] The object ID or principal name of the user
303
+ # to update.
304
+ # @param parameters [UserUpdateParameters] Parameters to update an existing
335
305
  # user.
336
306
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
337
307
  # will be added to the HTTP request.
@@ -343,12 +313,11 @@ module Azure::ARM::Graph
343
313
  end
344
314
 
345
315
  #
346
- # Updates an exisitng user. Reference:
347
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/users-operations#UpdateUser
316
+ # Updates a user.
348
317
  #
349
- # @param upn_or_object_id [String] User object Id or user principal name to
350
- # get user information.
351
- # @param parameters [UserUpdateParameters] Parameters to update an exisitng
318
+ # @param upn_or_object_id [String] The object ID or principal name of the user
319
+ # to update.
320
+ # @param parameters [UserUpdateParameters] Parameters to update an existing
352
321
  # user.
353
322
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
354
323
  # will be added to the HTTP request.
@@ -360,12 +329,11 @@ module Azure::ARM::Graph
360
329
  end
361
330
 
362
331
  #
363
- # Updates an exisitng user. Reference:
364
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/users-operations#UpdateUser
332
+ # Updates a user.
365
333
  #
366
- # @param upn_or_object_id [String] User object Id or user principal name to
367
- # get user information.
368
- # @param parameters [UserUpdateParameters] Parameters to update an exisitng
334
+ # @param upn_or_object_id [String] The object ID or principal name of the user
335
+ # to update.
336
+ # @param parameters [UserUpdateParameters] Parameters to update an existing
369
337
  # user.
370
338
  # @param [Hash{String => String}] A hash of custom headers that will be added
371
339
  # to the HTTP request.
@@ -425,10 +393,10 @@ module Azure::ARM::Graph
425
393
  end
426
394
 
427
395
  #
428
- # Delete a user. Reference:
429
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/users-operations#DeleteUser
396
+ # Delete a user.
430
397
  #
431
- # @param upn_or_object_id [String] user object id or user principal name (upn)
398
+ # @param upn_or_object_id [String] The object ID or principal name of the user
399
+ # to delete.
432
400
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
433
401
  # will be added to the HTTP request.
434
402
  #
@@ -439,10 +407,10 @@ module Azure::ARM::Graph
439
407
  end
440
408
 
441
409
  #
442
- # Delete a user. Reference:
443
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/users-operations#DeleteUser
410
+ # Delete a user.
444
411
  #
445
- # @param upn_or_object_id [String] user object id or user principal name (upn)
412
+ # @param upn_or_object_id [String] The object ID or principal name of the user
413
+ # to delete.
446
414
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
447
415
  # will be added to the HTTP request.
448
416
  #
@@ -453,10 +421,10 @@ module Azure::ARM::Graph
453
421
  end
454
422
 
455
423
  #
456
- # Delete a user. Reference:
457
- # https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/users-operations#DeleteUser
424
+ # Delete a user.
458
425
  #
459
- # @param upn_or_object_id [String] user object id or user principal name (upn)
426
+ # @param upn_or_object_id [String] The object ID or principal name of the user
427
+ # to delete.
460
428
  # @param [Hash{String => String}] A hash of custom headers that will be added
461
429
  # to the HTTP request.
462
430
  #
@@ -505,10 +473,11 @@ module Azure::ARM::Graph
505
473
  end
506
474
 
507
475
  #
508
- # Gets a collection that contains the Object IDs of the groups of which the
476
+ # Gets a collection that contains the object IDs of the groups of which the
509
477
  # user is a member.
510
478
  #
511
- # @param object_id [String] User filtering parameters.
479
+ # @param object_id [String] The object ID of the user for which to get group
480
+ # membership.
512
481
  # @param parameters [UserGetMemberGroupsParameters] User filtering parameters.
513
482
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
514
483
  # will be added to the HTTP request.
@@ -521,10 +490,11 @@ module Azure::ARM::Graph
521
490
  end
522
491
 
523
492
  #
524
- # Gets a collection that contains the Object IDs of the groups of which the
493
+ # Gets a collection that contains the object IDs of the groups of which the
525
494
  # user is a member.
526
495
  #
527
- # @param object_id [String] User filtering parameters.
496
+ # @param object_id [String] The object ID of the user for which to get group
497
+ # membership.
528
498
  # @param parameters [UserGetMemberGroupsParameters] User filtering parameters.
529
499
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
530
500
  # will be added to the HTTP request.
@@ -536,10 +506,11 @@ module Azure::ARM::Graph
536
506
  end
537
507
 
538
508
  #
539
- # Gets a collection that contains the Object IDs of the groups of which the
509
+ # Gets a collection that contains the object IDs of the groups of which the
540
510
  # user is a member.
541
511
  #
542
- # @param object_id [String] User filtering parameters.
512
+ # @param object_id [String] The object ID of the user for which to get group
513
+ # membership.
543
514
  # @param parameters [UserGetMemberGroupsParameters] User filtering parameters.
544
515
  # @param [Hash{String => String}] A hash of custom headers that will be added
545
516
  # to the HTTP request.
@@ -609,9 +580,9 @@ module Azure::ARM::Graph
609
580
  end
610
581
 
611
582
  #
612
- # Gets list of users for the current tenant.
583
+ # Gets a list of users for the current tenant.
613
584
  #
614
- # @param next_link [String] Next link for list operation.
585
+ # @param next_link [String] Next link for the list operation.
615
586
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
616
587
  # will be added to the HTTP request.
617
588
  #
@@ -623,9 +594,9 @@ module Azure::ARM::Graph
623
594
  end
624
595
 
625
596
  #
626
- # Gets list of users for the current tenant.
597
+ # Gets a list of users for the current tenant.
627
598
  #
628
- # @param next_link [String] Next link for list operation.
599
+ # @param next_link [String] Next link for the list operation.
629
600
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
630
601
  # will be added to the HTTP request.
631
602
  #
@@ -636,9 +607,9 @@ module Azure::ARM::Graph
636
607
  end
637
608
 
638
609
  #
639
- # Gets list of users for the current tenant.
610
+ # Gets a list of users for the current tenant.
640
611
  #
641
- # @param next_link [String] Next link for list operation.
612
+ # @param next_link [String] Next link for the list operation.
642
613
  # @param [Hash{String => String}] A hash of custom headers that will be added
643
614
  # to the HTTP request.
644
615
  #
@@ -696,5 +667,25 @@ module Azure::ARM::Graph
696
667
  promise.execute
697
668
  end
698
669
 
670
+ #
671
+ # Gets list of users for the current tenant.
672
+ #
673
+ # @param filter [String] The filter to apply to the operation.
674
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
675
+ # will be added to the HTTP request.
676
+ #
677
+ # @return [UserListResult] which provide lazy access to pages of the response.
678
+ #
679
+ def list_as_lazy(filter = nil, custom_headers = nil)
680
+ response = list_async(filter, custom_headers).value!
681
+ unless response.nil?
682
+ page = response.body
683
+ page.next_method = Proc.new do |next_link|
684
+ list_next_async(next_link, custom_headers)
685
+ end
686
+ page
687
+ end
688
+ end
689
+
699
690
  end
700
691
  end
@@ -1,8 +1,8 @@
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
- VERSION = '0.7.0'
7
+ VERSION = '0.8.0'
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_graph
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-14 00:00:00.000000000 Z
11
+ date: 2016-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.6.0
75
+ version: 0.6.2
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.6.0
82
+ version: 0.6.2
83
83
  description: Microsoft Azure Active Directory Graph Management Client Library for
84
84
  Ruby
85
85
  email: azrubyteam@microsoft.com