azure_mgmt_graph 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_graph.rb +1 -0
- data/lib/generated/azure_mgmt_graph/applications.rb +19 -19
- data/lib/generated/azure_mgmt_graph/graph_rbac_management_client.rb +0 -4
- data/lib/generated/azure_mgmt_graph/groups.rb +25 -23
- data/lib/generated/azure_mgmt_graph/models/get_objects_parameters.rb +79 -0
- data/lib/generated/azure_mgmt_graph/objects.rb +215 -3
- data/lib/generated/azure_mgmt_graph/service_principals.rb +20 -19
- data/lib/generated/azure_mgmt_graph/users.rb +16 -15
- data/lib/generated/azure_mgmt_graph/version.rb +1 -1
- metadata +6 -8
- data/.rspec +0 -3
- data/Rakefile +0 -5
- data/azure_mgmt_graph.gemspec +0 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21b3712c92b863699dbd2f0de01f87d001670c07
|
4
|
+
data.tar.gz: 6fd997ce917e84194e7ef244e371b32b8330d3af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: daba77c4f76efcdd635e7699ab2b07158523b6eb99c4e91ae9b5b5a485644894eb80faaac66a51bccbae1c15e3ea26b87ecaf0a642f45143969989388e34cf6b
|
7
|
+
data.tar.gz: 08b133efca08e3a43a3ed3ad48c6f3ca75e90e5148f052a061fcb5731cb90be56ac376efd8d4637c9d30aac65004f6773d2d42c97f3152a54a6e6a51cdde4ec6
|
@@ -59,5 +59,6 @@ module Azure::ARM::Graph
|
|
59
59
|
autoload :UserGetMemberGroupsParameters, 'generated/azure_mgmt_graph/models/user_get_member_groups_parameters.rb'
|
60
60
|
autoload :UserGetMemberGroupsResult, 'generated/azure_mgmt_graph/models/user_get_member_groups_result.rb'
|
61
61
|
autoload :UserListResult, 'generated/azure_mgmt_graph/models/user_list_result.rb'
|
62
|
+
autoload :GetObjectsParameters, 'generated/azure_mgmt_graph/models/get_objects_parameters.rb'
|
62
63
|
end
|
63
64
|
end
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
module Azure::ARM::Graph
|
7
7
|
#
|
8
|
-
#
|
8
|
+
# Composite Swagger for GraphRbac Management Client
|
9
9
|
#
|
10
10
|
class Applications
|
11
11
|
include Azure::ARM::Graph::Models
|
@@ -66,7 +66,7 @@ module Azure::ARM::Graph
|
|
66
66
|
#
|
67
67
|
def create_async(parameters, custom_headers = nil)
|
68
68
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
69
|
-
|
69
|
+
api_version = '1.6'
|
70
70
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
71
71
|
|
72
72
|
|
@@ -87,7 +87,7 @@ module Azure::ARM::Graph
|
|
87
87
|
options = {
|
88
88
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
89
89
|
path_params: {'tenantID' => @client.tenant_id},
|
90
|
-
query_params: {'api-version' =>
|
90
|
+
query_params: {'api-version' => api_version},
|
91
91
|
body: request_content,
|
92
92
|
headers: request_headers.merge(custom_headers || {})
|
93
93
|
}
|
@@ -167,7 +167,7 @@ module Azure::ARM::Graph
|
|
167
167
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
168
168
|
#
|
169
169
|
def list_async(filter = nil, custom_headers = nil)
|
170
|
-
|
170
|
+
api_version = '1.6'
|
171
171
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
172
172
|
|
173
173
|
|
@@ -180,7 +180,7 @@ module Azure::ARM::Graph
|
|
180
180
|
options = {
|
181
181
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
182
182
|
path_params: {'tenantID' => @client.tenant_id},
|
183
|
-
query_params: {'$filter' => filter,'api-version' =>
|
183
|
+
query_params: {'$filter' => filter,'api-version' => api_version},
|
184
184
|
headers: request_headers.merge(custom_headers || {})
|
185
185
|
}
|
186
186
|
|
@@ -259,7 +259,7 @@ module Azure::ARM::Graph
|
|
259
259
|
#
|
260
260
|
def delete_async(application_object_id, custom_headers = nil)
|
261
261
|
fail ArgumentError, 'application_object_id is nil' if application_object_id.nil?
|
262
|
-
|
262
|
+
api_version = '1.6'
|
263
263
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
264
264
|
|
265
265
|
|
@@ -273,7 +273,7 @@ module Azure::ARM::Graph
|
|
273
273
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
274
274
|
path_params: {'tenantID' => @client.tenant_id},
|
275
275
|
skip_encoding_path_params: {'applicationObjectId' => application_object_id},
|
276
|
-
query_params: {'api-version' =>
|
276
|
+
query_params: {'api-version' => api_version},
|
277
277
|
headers: request_headers.merge(custom_headers || {})
|
278
278
|
}
|
279
279
|
|
@@ -343,7 +343,7 @@ module Azure::ARM::Graph
|
|
343
343
|
#
|
344
344
|
def get_async(application_object_id, custom_headers = nil)
|
345
345
|
fail ArgumentError, 'application_object_id is nil' if application_object_id.nil?
|
346
|
-
|
346
|
+
api_version = '1.6'
|
347
347
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
348
348
|
|
349
349
|
|
@@ -357,7 +357,7 @@ module Azure::ARM::Graph
|
|
357
357
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
358
358
|
path_params: {'tenantID' => @client.tenant_id},
|
359
359
|
skip_encoding_path_params: {'applicationObjectId' => application_object_id},
|
360
|
-
query_params: {'api-version' =>
|
360
|
+
query_params: {'api-version' => api_version},
|
361
361
|
headers: request_headers.merge(custom_headers || {})
|
362
362
|
}
|
363
363
|
|
@@ -443,7 +443,7 @@ module Azure::ARM::Graph
|
|
443
443
|
def patch_async(application_object_id, parameters, custom_headers = nil)
|
444
444
|
fail ArgumentError, 'application_object_id is nil' if application_object_id.nil?
|
445
445
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
446
|
-
|
446
|
+
api_version = '1.6'
|
447
447
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
448
448
|
|
449
449
|
|
@@ -465,7 +465,7 @@ module Azure::ARM::Graph
|
|
465
465
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
466
466
|
path_params: {'tenantID' => @client.tenant_id},
|
467
467
|
skip_encoding_path_params: {'applicationObjectId' => application_object_id},
|
468
|
-
query_params: {'api-version' =>
|
468
|
+
query_params: {'api-version' => api_version},
|
469
469
|
body: request_content,
|
470
470
|
headers: request_headers.merge(custom_headers || {})
|
471
471
|
}
|
@@ -536,7 +536,7 @@ module Azure::ARM::Graph
|
|
536
536
|
#
|
537
537
|
def list_key_credentials_async(application_object_id, custom_headers = nil)
|
538
538
|
fail ArgumentError, 'application_object_id is nil' if application_object_id.nil?
|
539
|
-
|
539
|
+
api_version = '1.6'
|
540
540
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
541
541
|
|
542
542
|
|
@@ -550,7 +550,7 @@ module Azure::ARM::Graph
|
|
550
550
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
551
551
|
path_params: {'tenantID' => @client.tenant_id},
|
552
552
|
skip_encoding_path_params: {'applicationObjectId' => application_object_id},
|
553
|
-
query_params: {'api-version' =>
|
553
|
+
query_params: {'api-version' => api_version},
|
554
554
|
headers: request_headers.merge(custom_headers || {})
|
555
555
|
}
|
556
556
|
|
@@ -636,7 +636,7 @@ module Azure::ARM::Graph
|
|
636
636
|
def update_key_credentials_async(application_object_id, parameters, custom_headers = nil)
|
637
637
|
fail ArgumentError, 'application_object_id is nil' if application_object_id.nil?
|
638
638
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
639
|
-
|
639
|
+
api_version = '1.6'
|
640
640
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
641
641
|
|
642
642
|
|
@@ -658,7 +658,7 @@ module Azure::ARM::Graph
|
|
658
658
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
659
659
|
path_params: {'tenantID' => @client.tenant_id},
|
660
660
|
skip_encoding_path_params: {'applicationObjectId' => application_object_id},
|
661
|
-
query_params: {'api-version' =>
|
661
|
+
query_params: {'api-version' => api_version},
|
662
662
|
body: request_content,
|
663
663
|
headers: request_headers.merge(custom_headers || {})
|
664
664
|
}
|
@@ -729,7 +729,7 @@ module Azure::ARM::Graph
|
|
729
729
|
#
|
730
730
|
def list_password_credentials_async(application_object_id, custom_headers = nil)
|
731
731
|
fail ArgumentError, 'application_object_id is nil' if application_object_id.nil?
|
732
|
-
|
732
|
+
api_version = '1.6'
|
733
733
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
734
734
|
|
735
735
|
|
@@ -743,7 +743,7 @@ module Azure::ARM::Graph
|
|
743
743
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
744
744
|
path_params: {'tenantID' => @client.tenant_id},
|
745
745
|
skip_encoding_path_params: {'applicationObjectId' => application_object_id},
|
746
|
-
query_params: {'api-version' =>
|
746
|
+
query_params: {'api-version' => api_version},
|
747
747
|
headers: request_headers.merge(custom_headers || {})
|
748
748
|
}
|
749
749
|
|
@@ -832,7 +832,7 @@ module Azure::ARM::Graph
|
|
832
832
|
def update_password_credentials_async(application_object_id, parameters, custom_headers = nil)
|
833
833
|
fail ArgumentError, 'application_object_id is nil' if application_object_id.nil?
|
834
834
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
835
|
-
|
835
|
+
api_version = '1.6'
|
836
836
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
837
837
|
|
838
838
|
|
@@ -854,7 +854,7 @@ module Azure::ARM::Graph
|
|
854
854
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
855
855
|
path_params: {'tenantID' => @client.tenant_id},
|
856
856
|
skip_encoding_path_params: {'applicationObjectId' => application_object_id},
|
857
|
-
query_params: {'api-version' =>
|
857
|
+
query_params: {'api-version' => api_version},
|
858
858
|
body: request_content,
|
859
859
|
headers: request_headers.merge(custom_headers || {})
|
860
860
|
}
|
@@ -17,9 +17,6 @@ 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] Client Api Version.
|
21
|
-
attr_reader :api_version
|
22
|
-
|
23
20
|
# @return [String] the tenant Id.
|
24
21
|
attr_accessor :tenant_id
|
25
22
|
|
@@ -72,7 +69,6 @@ module Azure::ARM::Graph
|
|
72
69
|
@groups = Groups.new(self)
|
73
70
|
@service_principals = ServicePrincipals.new(self)
|
74
71
|
@users = Users.new(self)
|
75
|
-
@api_version = '1.6'
|
76
72
|
@accept_language = 'en-US'
|
77
73
|
@long_running_operation_retry_timeout = 30
|
78
74
|
@generate_client_request_id = true
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
module Azure::ARM::Graph
|
7
7
|
#
|
8
|
-
#
|
8
|
+
# Composite Swagger for GraphRbac Management Client
|
9
9
|
#
|
10
10
|
class Groups
|
11
11
|
include Azure::ARM::Graph::Models
|
@@ -66,7 +66,7 @@ module Azure::ARM::Graph
|
|
66
66
|
#
|
67
67
|
def is_member_of_async(parameters, custom_headers = nil)
|
68
68
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
69
|
-
|
69
|
+
api_version = '1.6'
|
70
70
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
71
71
|
|
72
72
|
|
@@ -87,7 +87,7 @@ module Azure::ARM::Graph
|
|
87
87
|
options = {
|
88
88
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
89
89
|
path_params: {'tenantID' => @client.tenant_id},
|
90
|
-
query_params: {'api-version' =>
|
90
|
+
query_params: {'api-version' => api_version},
|
91
91
|
body: request_content,
|
92
92
|
headers: request_headers.merge(custom_headers || {})
|
93
93
|
}
|
@@ -171,7 +171,7 @@ module Azure::ARM::Graph
|
|
171
171
|
def remove_member_async(group_object_id, member_object_id, custom_headers = nil)
|
172
172
|
fail ArgumentError, 'group_object_id is nil' if group_object_id.nil?
|
173
173
|
fail ArgumentError, 'member_object_id is nil' if member_object_id.nil?
|
174
|
-
|
174
|
+
api_version = '1.6'
|
175
175
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
176
176
|
|
177
177
|
|
@@ -185,7 +185,7 @@ module Azure::ARM::Graph
|
|
185
185
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
186
186
|
path_params: {'tenantID' => @client.tenant_id},
|
187
187
|
skip_encoding_path_params: {'groupObjectId' => group_object_id,'memberObjectId' => member_object_id},
|
188
|
-
query_params: {'api-version' =>
|
188
|
+
query_params: {'api-version' => api_version},
|
189
189
|
headers: request_headers.merge(custom_headers || {})
|
190
190
|
}
|
191
191
|
|
@@ -261,7 +261,7 @@ module Azure::ARM::Graph
|
|
261
261
|
def add_member_async(group_object_id, parameters, custom_headers = nil)
|
262
262
|
fail ArgumentError, 'group_object_id is nil' if group_object_id.nil?
|
263
263
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
264
|
-
|
264
|
+
api_version = '1.6'
|
265
265
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
266
266
|
|
267
267
|
|
@@ -283,7 +283,7 @@ module Azure::ARM::Graph
|
|
283
283
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
284
284
|
path_params: {'tenantID' => @client.tenant_id},
|
285
285
|
skip_encoding_path_params: {'groupObjectId' => group_object_id},
|
286
|
-
query_params: {'api-version' =>
|
286
|
+
query_params: {'api-version' => api_version},
|
287
287
|
body: request_content,
|
288
288
|
headers: request_headers.merge(custom_headers || {})
|
289
289
|
}
|
@@ -353,7 +353,7 @@ module Azure::ARM::Graph
|
|
353
353
|
#
|
354
354
|
def delete_async(group_object_id, custom_headers = nil)
|
355
355
|
fail ArgumentError, 'group_object_id is nil' if group_object_id.nil?
|
356
|
-
|
356
|
+
api_version = '1.6'
|
357
357
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
358
358
|
|
359
359
|
|
@@ -367,7 +367,7 @@ module Azure::ARM::Graph
|
|
367
367
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
368
368
|
path_params: {'tenantID' => @client.tenant_id},
|
369
369
|
skip_encoding_path_params: {'groupObjectId' => group_object_id},
|
370
|
-
query_params: {'api-version' =>
|
370
|
+
query_params: {'api-version' => api_version},
|
371
371
|
headers: request_headers.merge(custom_headers || {})
|
372
372
|
}
|
373
373
|
|
@@ -437,7 +437,7 @@ module Azure::ARM::Graph
|
|
437
437
|
#
|
438
438
|
def create_async(parameters, custom_headers = nil)
|
439
439
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
440
|
-
|
440
|
+
api_version = '1.6'
|
441
441
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
442
442
|
|
443
443
|
|
@@ -458,7 +458,7 @@ module Azure::ARM::Graph
|
|
458
458
|
options = {
|
459
459
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
460
460
|
path_params: {'tenantID' => @client.tenant_id},
|
461
|
-
query_params: {'api-version' =>
|
461
|
+
query_params: {'api-version' => api_version},
|
462
462
|
body: request_content,
|
463
463
|
headers: request_headers.merge(custom_headers || {})
|
464
464
|
}
|
@@ -501,6 +501,7 @@ module Azure::ARM::Graph
|
|
501
501
|
#
|
502
502
|
# Gets list of groups for the current tenant.
|
503
503
|
#
|
504
|
+
# @param api_version [String] Client Api Version.
|
504
505
|
# @param filter [String] The filter to apply on the operation.
|
505
506
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
506
507
|
# will be added to the HTTP request.
|
@@ -555,7 +556,7 @@ module Azure::ARM::Graph
|
|
555
556
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
556
557
|
#
|
557
558
|
def list_async(filter = nil, custom_headers = nil)
|
558
|
-
|
559
|
+
api_version = '1.6'
|
559
560
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
560
561
|
|
561
562
|
|
@@ -568,7 +569,7 @@ module Azure::ARM::Graph
|
|
568
569
|
options = {
|
569
570
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
570
571
|
path_params: {'tenantID' => @client.tenant_id},
|
571
|
-
query_params: {'$filter' => filter,'api-version' =>
|
572
|
+
query_params: {'$filter' => filter,'api-version' => api_version},
|
572
573
|
headers: request_headers.merge(custom_headers || {})
|
573
574
|
}
|
574
575
|
|
@@ -611,6 +612,7 @@ module Azure::ARM::Graph
|
|
611
612
|
# Gets the members of a group.
|
612
613
|
#
|
613
614
|
# @param object_id [String] Group object Id who's members should be retrieved.
|
615
|
+
# @param api_version [String] Client Api Version.
|
614
616
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
615
617
|
# will be added to the HTTP request.
|
616
618
|
#
|
@@ -666,7 +668,7 @@ module Azure::ARM::Graph
|
|
666
668
|
#
|
667
669
|
def get_group_members_async(object_id, custom_headers = nil)
|
668
670
|
fail ArgumentError, 'object_id is nil' if object_id.nil?
|
669
|
-
|
671
|
+
api_version = '1.6'
|
670
672
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
671
673
|
|
672
674
|
|
@@ -680,7 +682,7 @@ module Azure::ARM::Graph
|
|
680
682
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
681
683
|
path_params: {'tenantID' => @client.tenant_id},
|
682
684
|
skip_encoding_path_params: {'objectId' => object_id},
|
683
|
-
query_params: {'api-version' =>
|
685
|
+
query_params: {'api-version' => api_version},
|
684
686
|
headers: request_headers.merge(custom_headers || {})
|
685
687
|
}
|
686
688
|
|
@@ -757,7 +759,7 @@ module Azure::ARM::Graph
|
|
757
759
|
#
|
758
760
|
def get_async(object_id, custom_headers = nil)
|
759
761
|
fail ArgumentError, 'object_id is nil' if object_id.nil?
|
760
|
-
|
762
|
+
api_version = '1.6'
|
761
763
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
762
764
|
|
763
765
|
|
@@ -771,7 +773,7 @@ module Azure::ARM::Graph
|
|
771
773
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
772
774
|
path_params: {'tenantID' => @client.tenant_id},
|
773
775
|
skip_encoding_path_params: {'objectId' => object_id},
|
774
|
-
query_params: {'api-version' =>
|
776
|
+
query_params: {'api-version' => api_version},
|
775
777
|
headers: request_headers.merge(custom_headers || {})
|
776
778
|
}
|
777
779
|
|
@@ -858,7 +860,7 @@ module Azure::ARM::Graph
|
|
858
860
|
def get_member_groups_async(object_id, parameters, custom_headers = nil)
|
859
861
|
fail ArgumentError, 'object_id is nil' if object_id.nil?
|
860
862
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
861
|
-
|
863
|
+
api_version = '1.6'
|
862
864
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
863
865
|
|
864
866
|
|
@@ -880,7 +882,7 @@ module Azure::ARM::Graph
|
|
880
882
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
881
883
|
path_params: {'tenantID' => @client.tenant_id},
|
882
884
|
skip_encoding_path_params: {'objectId' => object_id},
|
883
|
-
query_params: {'api-version' =>
|
885
|
+
query_params: {'api-version' => api_version},
|
884
886
|
body: request_content,
|
885
887
|
headers: request_headers.merge(custom_headers || {})
|
886
888
|
}
|
@@ -958,7 +960,7 @@ module Azure::ARM::Graph
|
|
958
960
|
#
|
959
961
|
def list_next_async(next_link, custom_headers = nil)
|
960
962
|
fail ArgumentError, 'next_link is nil' if next_link.nil?
|
961
|
-
|
963
|
+
api_version = '1.6'
|
962
964
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
963
965
|
|
964
966
|
|
@@ -972,7 +974,7 @@ module Azure::ARM::Graph
|
|
972
974
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
973
975
|
path_params: {'tenantID' => @client.tenant_id},
|
974
976
|
skip_encoding_path_params: {'nextLink' => next_link},
|
975
|
-
query_params: {'api-version' =>
|
977
|
+
query_params: {'api-version' => api_version},
|
976
978
|
headers: request_headers.merge(custom_headers || {})
|
977
979
|
}
|
978
980
|
|
@@ -1049,7 +1051,7 @@ module Azure::ARM::Graph
|
|
1049
1051
|
#
|
1050
1052
|
def get_group_members_next_async(next_link, custom_headers = nil)
|
1051
1053
|
fail ArgumentError, 'next_link is nil' if next_link.nil?
|
1052
|
-
|
1054
|
+
api_version = '1.6'
|
1053
1055
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
1054
1056
|
|
1055
1057
|
|
@@ -1063,7 +1065,7 @@ module Azure::ARM::Graph
|
|
1063
1065
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1064
1066
|
path_params: {'tenantID' => @client.tenant_id},
|
1065
1067
|
skip_encoding_path_params: {'nextLink' => next_link},
|
1066
|
-
query_params: {'api-version' =>
|
1068
|
+
query_params: {'api-version' => api_version},
|
1067
1069
|
headers: request_headers.merge(custom_headers || {})
|
1068
1070
|
}
|
1069
1071
|
|
@@ -0,0 +1,79 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Graph
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Request parameters for GetObjectsByObjectIds API call
|
10
|
+
#
|
11
|
+
class GetObjectsParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<String>] Requested object Ids
|
16
|
+
attr_accessor :object_ids
|
17
|
+
|
18
|
+
# @return [Array<String>] Requested object types
|
19
|
+
attr_accessor :types
|
20
|
+
|
21
|
+
# @return [Boolean] If true, also searches for object ids in the partner
|
22
|
+
# tenant
|
23
|
+
attr_accessor :include_directory_object_references
|
24
|
+
|
25
|
+
|
26
|
+
#
|
27
|
+
# Mapper for GetObjectsParameters class as Ruby Hash.
|
28
|
+
# This will be used for serialization/deserialization.
|
29
|
+
#
|
30
|
+
def self.mapper()
|
31
|
+
{
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'GetObjectsParameters',
|
34
|
+
type: {
|
35
|
+
name: 'Composite',
|
36
|
+
class_name: 'GetObjectsParameters',
|
37
|
+
model_properties: {
|
38
|
+
object_ids: {
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'objectIds',
|
41
|
+
type: {
|
42
|
+
name: 'Sequence',
|
43
|
+
element: {
|
44
|
+
required: false,
|
45
|
+
serialized_name: 'StringElementType',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
},
|
52
|
+
types: {
|
53
|
+
required: false,
|
54
|
+
serialized_name: 'types',
|
55
|
+
type: {
|
56
|
+
name: 'Sequence',
|
57
|
+
element: {
|
58
|
+
required: false,
|
59
|
+
serialized_name: 'StringElementType',
|
60
|
+
type: {
|
61
|
+
name: 'String'
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
},
|
66
|
+
include_directory_object_references: {
|
67
|
+
required: true,
|
68
|
+
serialized_name: 'includeDirectoryObjectReferences',
|
69
|
+
type: {
|
70
|
+
name: 'Boolean'
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
module Azure::ARM::Graph
|
7
7
|
#
|
8
|
-
#
|
8
|
+
# Composite Swagger for GraphRbac Management Client
|
9
9
|
#
|
10
10
|
class Objects
|
11
11
|
include Azure::ARM::Graph::Models
|
@@ -56,7 +56,7 @@ module Azure::ARM::Graph
|
|
56
56
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
57
57
|
#
|
58
58
|
def get_current_user_async(custom_headers = nil)
|
59
|
-
|
59
|
+
api_version = '1.6'
|
60
60
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
61
61
|
|
62
62
|
|
@@ -69,7 +69,7 @@ module Azure::ARM::Graph
|
|
69
69
|
options = {
|
70
70
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
71
71
|
path_params: {'tenantID' => @client.tenant_id},
|
72
|
-
query_params: {'api-version' =>
|
72
|
+
query_params: {'api-version' => api_version},
|
73
73
|
headers: request_headers.merge(custom_headers || {})
|
74
74
|
}
|
75
75
|
|
@@ -108,5 +108,217 @@ module Azure::ARM::Graph
|
|
108
108
|
promise.execute
|
109
109
|
end
|
110
110
|
|
111
|
+
#
|
112
|
+
# Gets AD group membership by provided AD object Ids
|
113
|
+
#
|
114
|
+
# @param parameters [GetObjectsParameters] Objects filtering parameters.
|
115
|
+
# @param api_version [String] Client Api Version.
|
116
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
117
|
+
# will be added to the HTTP request.
|
118
|
+
#
|
119
|
+
# @return [GetObjectsResult] which provide lazy access to pages of the
|
120
|
+
# response.
|
121
|
+
#
|
122
|
+
def get_objects_by_object_ids_as_lazy(parameters, custom_headers = nil)
|
123
|
+
response = get_objects_by_object_ids_async(parameters, custom_headers).value!
|
124
|
+
unless response.nil?
|
125
|
+
page = response.body
|
126
|
+
page.next_method = Proc.new do |next_link|
|
127
|
+
get_objects_by_object_ids_next_async(next_link, custom_headers)
|
128
|
+
end
|
129
|
+
page
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
133
|
+
#
|
134
|
+
# Gets AD group membership by provided AD object Ids
|
135
|
+
#
|
136
|
+
# @param parameters [GetObjectsParameters] Objects filtering parameters.
|
137
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
138
|
+
# will be added to the HTTP request.
|
139
|
+
#
|
140
|
+
# @return [Array<AADObject>] operation results.
|
141
|
+
#
|
142
|
+
def get_objects_by_object_ids(parameters, custom_headers = nil)
|
143
|
+
first_page = get_objects_by_object_ids_as_lazy(parameters, custom_headers)
|
144
|
+
first_page.get_all_items
|
145
|
+
end
|
146
|
+
|
147
|
+
#
|
148
|
+
# Gets AD group membership by provided AD object Ids
|
149
|
+
#
|
150
|
+
# @param parameters [GetObjectsParameters] Objects filtering parameters.
|
151
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
152
|
+
# will be added to the HTTP request.
|
153
|
+
#
|
154
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
155
|
+
#
|
156
|
+
def get_objects_by_object_ids_with_http_info(parameters, custom_headers = nil)
|
157
|
+
get_objects_by_object_ids_async(parameters, custom_headers).value!
|
158
|
+
end
|
159
|
+
|
160
|
+
#
|
161
|
+
# Gets AD group membership by provided AD object Ids
|
162
|
+
#
|
163
|
+
# @param parameters [GetObjectsParameters] Objects filtering parameters.
|
164
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
165
|
+
# to the HTTP request.
|
166
|
+
#
|
167
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
168
|
+
#
|
169
|
+
def get_objects_by_object_ids_async(parameters, custom_headers = nil)
|
170
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
171
|
+
api_version = '1.6-internal'
|
172
|
+
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
173
|
+
|
174
|
+
|
175
|
+
request_headers = {}
|
176
|
+
|
177
|
+
# Set Headers
|
178
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
179
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
180
|
+
|
181
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
182
|
+
|
183
|
+
# Serialize Request
|
184
|
+
request_mapper = GetObjectsParameters.mapper()
|
185
|
+
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
186
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
187
|
+
|
188
|
+
path_template = '/{tenantID}/getObjectsByObjectIds'
|
189
|
+
options = {
|
190
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
191
|
+
path_params: {'tenantID' => @client.tenant_id},
|
192
|
+
query_params: {'api-version' => api_version},
|
193
|
+
body: request_content,
|
194
|
+
headers: request_headers.merge(custom_headers || {})
|
195
|
+
}
|
196
|
+
|
197
|
+
request_url = @base_url || @client.base_url
|
198
|
+
|
199
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
200
|
+
promise = request.run_promise do |req|
|
201
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
202
|
+
end
|
203
|
+
|
204
|
+
promise = promise.then do |http_response|
|
205
|
+
status_code = http_response.status
|
206
|
+
response_content = http_response.body
|
207
|
+
unless status_code == 200
|
208
|
+
error_model = JSON.load(response_content)
|
209
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
210
|
+
end
|
211
|
+
|
212
|
+
# Create Result
|
213
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
214
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
215
|
+
# Deserialize Response
|
216
|
+
if status_code == 200
|
217
|
+
begin
|
218
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
219
|
+
result_mapper = GetObjectsResult.mapper()
|
220
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
221
|
+
rescue Exception => e
|
222
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
result
|
227
|
+
end
|
228
|
+
|
229
|
+
promise.execute
|
230
|
+
end
|
231
|
+
|
232
|
+
#
|
233
|
+
# Gets AD group membership by provided AD object Ids
|
234
|
+
#
|
235
|
+
# @param next_link [String] Next link for list operation.
|
236
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
237
|
+
# will be added to the HTTP request.
|
238
|
+
#
|
239
|
+
# @return [Array<AADObject>] operation results.
|
240
|
+
#
|
241
|
+
def get_objects_by_object_ids_next(next_link, custom_headers = nil)
|
242
|
+
response = get_objects_by_object_ids_next_async(next_link, custom_headers).value!
|
243
|
+
response.body unless response.nil?
|
244
|
+
end
|
245
|
+
|
246
|
+
#
|
247
|
+
# Gets AD group membership by provided AD object Ids
|
248
|
+
#
|
249
|
+
# @param next_link [String] Next link for list operation.
|
250
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
251
|
+
# will be added to the HTTP request.
|
252
|
+
#
|
253
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
254
|
+
#
|
255
|
+
def get_objects_by_object_ids_next_with_http_info(next_link, custom_headers = nil)
|
256
|
+
get_objects_by_object_ids_next_async(next_link, custom_headers).value!
|
257
|
+
end
|
258
|
+
|
259
|
+
#
|
260
|
+
# Gets AD group membership by provided AD object Ids
|
261
|
+
#
|
262
|
+
# @param next_link [String] Next link for list operation.
|
263
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
264
|
+
# to the HTTP request.
|
265
|
+
#
|
266
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
267
|
+
#
|
268
|
+
def get_objects_by_object_ids_next_async(next_link, custom_headers = nil)
|
269
|
+
fail ArgumentError, 'next_link is nil' if next_link.nil?
|
270
|
+
api_version = '1.6-internal'
|
271
|
+
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
272
|
+
|
273
|
+
|
274
|
+
request_headers = {}
|
275
|
+
|
276
|
+
# Set Headers
|
277
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
278
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
279
|
+
path_template = '/{tenantID}/{nextLink}'
|
280
|
+
options = {
|
281
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
282
|
+
path_params: {'tenantID' => @client.tenant_id},
|
283
|
+
skip_encoding_path_params: {'nextLink' => next_link},
|
284
|
+
query_params: {'api-version' => api_version},
|
285
|
+
headers: request_headers.merge(custom_headers || {})
|
286
|
+
}
|
287
|
+
|
288
|
+
request_url = @base_url || @client.base_url
|
289
|
+
|
290
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
291
|
+
promise = request.run_promise do |req|
|
292
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
293
|
+
end
|
294
|
+
|
295
|
+
promise = promise.then do |http_response|
|
296
|
+
status_code = http_response.status
|
297
|
+
response_content = http_response.body
|
298
|
+
unless status_code == 200
|
299
|
+
error_model = JSON.load(response_content)
|
300
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
301
|
+
end
|
302
|
+
|
303
|
+
# Create Result
|
304
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
305
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
306
|
+
# Deserialize Response
|
307
|
+
if status_code == 200
|
308
|
+
begin
|
309
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
310
|
+
result_mapper = GetObjectsResult.mapper()
|
311
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
312
|
+
rescue Exception => e
|
313
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
314
|
+
end
|
315
|
+
end
|
316
|
+
|
317
|
+
result
|
318
|
+
end
|
319
|
+
|
320
|
+
promise.execute
|
321
|
+
end
|
322
|
+
|
111
323
|
end
|
112
324
|
end
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
module Azure::ARM::Graph
|
7
7
|
#
|
8
|
-
#
|
8
|
+
# Composite Swagger for GraphRbac Management Client
|
9
9
|
#
|
10
10
|
class ServicePrincipals
|
11
11
|
include Azure::ARM::Graph::Models
|
@@ -63,7 +63,7 @@ module Azure::ARM::Graph
|
|
63
63
|
#
|
64
64
|
def create_async(parameters, custom_headers = nil)
|
65
65
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
66
|
-
|
66
|
+
api_version = '1.6'
|
67
67
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
68
68
|
|
69
69
|
|
@@ -84,7 +84,7 @@ module Azure::ARM::Graph
|
|
84
84
|
options = {
|
85
85
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
86
86
|
path_params: {'tenantID' => @client.tenant_id},
|
87
|
-
query_params: {'api-version' =>
|
87
|
+
query_params: {'api-version' => api_version},
|
88
88
|
body: request_content,
|
89
89
|
headers: request_headers.merge(custom_headers || {})
|
90
90
|
}
|
@@ -127,6 +127,7 @@ module Azure::ARM::Graph
|
|
127
127
|
#
|
128
128
|
# Gets list of service principals from the current tenant.
|
129
129
|
#
|
130
|
+
# @param api_version [String] Client Api Version.
|
130
131
|
# @param filter [String] The filter to apply on the operation.
|
131
132
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
132
133
|
# will be added to the HTTP request.
|
@@ -182,7 +183,7 @@ module Azure::ARM::Graph
|
|
182
183
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
183
184
|
#
|
184
185
|
def list_async(filter = nil, custom_headers = nil)
|
185
|
-
|
186
|
+
api_version = '1.6'
|
186
187
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
187
188
|
|
188
189
|
|
@@ -195,7 +196,7 @@ module Azure::ARM::Graph
|
|
195
196
|
options = {
|
196
197
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
197
198
|
path_params: {'tenantID' => @client.tenant_id},
|
198
|
-
query_params: {'$filter' => filter,'api-version' =>
|
199
|
+
query_params: {'$filter' => filter,'api-version' => api_version},
|
199
200
|
headers: request_headers.merge(custom_headers || {})
|
200
201
|
}
|
201
202
|
|
@@ -271,7 +272,7 @@ module Azure::ARM::Graph
|
|
271
272
|
#
|
272
273
|
def delete_async(object_id, custom_headers = nil)
|
273
274
|
fail ArgumentError, 'object_id is nil' if object_id.nil?
|
274
|
-
|
275
|
+
api_version = '1.6'
|
275
276
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
276
277
|
|
277
278
|
|
@@ -285,7 +286,7 @@ module Azure::ARM::Graph
|
|
285
286
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
286
287
|
path_params: {'tenantID' => @client.tenant_id},
|
287
288
|
skip_encoding_path_params: {'objectId' => object_id},
|
288
|
-
query_params: {'api-version' =>
|
289
|
+
query_params: {'api-version' => api_version},
|
289
290
|
headers: request_headers.merge(custom_headers || {})
|
290
291
|
}
|
291
292
|
|
@@ -352,7 +353,7 @@ module Azure::ARM::Graph
|
|
352
353
|
#
|
353
354
|
def get_async(object_id, custom_headers = nil)
|
354
355
|
fail ArgumentError, 'object_id is nil' if object_id.nil?
|
355
|
-
|
356
|
+
api_version = '1.6'
|
356
357
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
357
358
|
|
358
359
|
|
@@ -366,7 +367,7 @@ module Azure::ARM::Graph
|
|
366
367
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
367
368
|
path_params: {'tenantID' => @client.tenant_id},
|
368
369
|
skip_encoding_path_params: {'objectId' => object_id},
|
369
|
-
query_params: {'api-version' =>
|
370
|
+
query_params: {'api-version' => api_version},
|
370
371
|
headers: request_headers.merge(custom_headers || {})
|
371
372
|
}
|
372
373
|
|
@@ -449,7 +450,7 @@ module Azure::ARM::Graph
|
|
449
450
|
#
|
450
451
|
def list_key_credentials_async(object_id, custom_headers = nil)
|
451
452
|
fail ArgumentError, 'object_id is nil' if object_id.nil?
|
452
|
-
|
453
|
+
api_version = '1.6'
|
453
454
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
454
455
|
|
455
456
|
|
@@ -463,7 +464,7 @@ module Azure::ARM::Graph
|
|
463
464
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
464
465
|
path_params: {'tenantID' => @client.tenant_id},
|
465
466
|
skip_encoding_path_params: {'objectId' => object_id},
|
466
|
-
query_params: {'api-version' =>
|
467
|
+
query_params: {'api-version' => api_version},
|
467
468
|
headers: request_headers.merge(custom_headers || {})
|
468
469
|
}
|
469
470
|
|
@@ -552,7 +553,7 @@ module Azure::ARM::Graph
|
|
552
553
|
def update_key_credentials_async(object_id, parameters, custom_headers = nil)
|
553
554
|
fail ArgumentError, 'object_id is nil' if object_id.nil?
|
554
555
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
555
|
-
|
556
|
+
api_version = '1.6'
|
556
557
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
557
558
|
|
558
559
|
|
@@ -574,7 +575,7 @@ module Azure::ARM::Graph
|
|
574
575
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
575
576
|
path_params: {'tenantID' => @client.tenant_id},
|
576
577
|
skip_encoding_path_params: {'objectId' => object_id},
|
577
|
-
query_params: {'api-version' =>
|
578
|
+
query_params: {'api-version' => api_version},
|
578
579
|
body: request_content,
|
579
580
|
headers: request_headers.merge(custom_headers || {})
|
580
581
|
}
|
@@ -648,7 +649,7 @@ module Azure::ARM::Graph
|
|
648
649
|
#
|
649
650
|
def list_password_credentials_async(object_id, custom_headers = nil)
|
650
651
|
fail ArgumentError, 'object_id is nil' if object_id.nil?
|
651
|
-
|
652
|
+
api_version = '1.6'
|
652
653
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
653
654
|
|
654
655
|
|
@@ -662,7 +663,7 @@ module Azure::ARM::Graph
|
|
662
663
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
663
664
|
path_params: {'tenantID' => @client.tenant_id},
|
664
665
|
skip_encoding_path_params: {'objectId' => object_id},
|
665
|
-
query_params: {'api-version' =>
|
666
|
+
query_params: {'api-version' => api_version},
|
666
667
|
headers: request_headers.merge(custom_headers || {})
|
667
668
|
}
|
668
669
|
|
@@ -751,7 +752,7 @@ module Azure::ARM::Graph
|
|
751
752
|
def update_password_credentials_async(object_id, parameters, custom_headers = nil)
|
752
753
|
fail ArgumentError, 'object_id is nil' if object_id.nil?
|
753
754
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
754
|
-
|
755
|
+
api_version = '1.6'
|
755
756
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
756
757
|
|
757
758
|
|
@@ -773,7 +774,7 @@ module Azure::ARM::Graph
|
|
773
774
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
774
775
|
path_params: {'tenantID' => @client.tenant_id},
|
775
776
|
skip_encoding_path_params: {'objectId' => object_id},
|
776
|
-
query_params: {'api-version' =>
|
777
|
+
query_params: {'api-version' => api_version},
|
777
778
|
body: request_content,
|
778
779
|
headers: request_headers.merge(custom_headers || {})
|
779
780
|
}
|
@@ -841,7 +842,7 @@ module Azure::ARM::Graph
|
|
841
842
|
#
|
842
843
|
def list_next_async(next_link, custom_headers = nil)
|
843
844
|
fail ArgumentError, 'next_link is nil' if next_link.nil?
|
844
|
-
|
845
|
+
api_version = '1.6'
|
845
846
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
846
847
|
|
847
848
|
|
@@ -855,7 +856,7 @@ module Azure::ARM::Graph
|
|
855
856
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
856
857
|
path_params: {'tenantID' => @client.tenant_id},
|
857
858
|
skip_encoding_path_params: {'nextLink' => next_link},
|
858
|
-
query_params: {'api-version' =>
|
859
|
+
query_params: {'api-version' => api_version},
|
859
860
|
headers: request_headers.merge(custom_headers || {})
|
860
861
|
}
|
861
862
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
module Azure::ARM::Graph
|
7
7
|
#
|
8
|
-
#
|
8
|
+
# Composite Swagger for GraphRbac Management Client
|
9
9
|
#
|
10
10
|
class Users
|
11
11
|
include Azure::ARM::Graph::Models
|
@@ -63,7 +63,7 @@ module Azure::ARM::Graph
|
|
63
63
|
#
|
64
64
|
def create_async(parameters, custom_headers = nil)
|
65
65
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
66
|
-
|
66
|
+
api_version = '1.6'
|
67
67
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
68
68
|
|
69
69
|
|
@@ -84,7 +84,7 @@ module Azure::ARM::Graph
|
|
84
84
|
options = {
|
85
85
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
86
86
|
path_params: {'tenantID' => @client.tenant_id},
|
87
|
-
query_params: {'api-version' =>
|
87
|
+
query_params: {'api-version' => api_version},
|
88
88
|
body: request_content,
|
89
89
|
headers: request_headers.merge(custom_headers || {})
|
90
90
|
}
|
@@ -128,6 +128,7 @@ module Azure::ARM::Graph
|
|
128
128
|
# Gets list of users for the current tenant. Reference
|
129
129
|
# https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/users-operations#GetUsers
|
130
130
|
#
|
131
|
+
# @param api_version [String] Client Api Version.
|
131
132
|
# @param filter [String] The filter to apply on the operation.
|
132
133
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
133
134
|
# will be added to the HTTP request.
|
@@ -185,7 +186,7 @@ module Azure::ARM::Graph
|
|
185
186
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
186
187
|
#
|
187
188
|
def list_async(filter = nil, custom_headers = nil)
|
188
|
-
|
189
|
+
api_version = '1.6'
|
189
190
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
190
191
|
|
191
192
|
|
@@ -198,7 +199,7 @@ module Azure::ARM::Graph
|
|
198
199
|
options = {
|
199
200
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
200
201
|
path_params: {'tenantID' => @client.tenant_id},
|
201
|
-
query_params: {'$filter' => filter,'api-version' =>
|
202
|
+
query_params: {'$filter' => filter,'api-version' => api_version},
|
202
203
|
headers: request_headers.merge(custom_headers || {})
|
203
204
|
}
|
204
205
|
|
@@ -281,7 +282,7 @@ module Azure::ARM::Graph
|
|
281
282
|
#
|
282
283
|
def get_async(upn_or_object_id, custom_headers = nil)
|
283
284
|
fail ArgumentError, 'upn_or_object_id is nil' if upn_or_object_id.nil?
|
284
|
-
|
285
|
+
api_version = '1.6'
|
285
286
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
286
287
|
|
287
288
|
|
@@ -295,7 +296,7 @@ module Azure::ARM::Graph
|
|
295
296
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
296
297
|
path_params: {'tenantID' => @client.tenant_id},
|
297
298
|
skip_encoding_path_params: {'upnOrObjectId' => upn_or_object_id},
|
298
|
-
query_params: {'api-version' =>
|
299
|
+
query_params: {'api-version' => api_version},
|
299
300
|
headers: request_headers.merge(custom_headers || {})
|
300
301
|
}
|
301
302
|
|
@@ -384,7 +385,7 @@ module Azure::ARM::Graph
|
|
384
385
|
def update_async(upn_or_object_id, parameters, custom_headers = nil)
|
385
386
|
fail ArgumentError, 'upn_or_object_id is nil' if upn_or_object_id.nil?
|
386
387
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
387
|
-
|
388
|
+
api_version = '1.6'
|
388
389
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
389
390
|
|
390
391
|
|
@@ -406,7 +407,7 @@ module Azure::ARM::Graph
|
|
406
407
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
407
408
|
path_params: {'tenantID' => @client.tenant_id},
|
408
409
|
skip_encoding_path_params: {'upnOrObjectId' => upn_or_object_id},
|
409
|
-
query_params: {'api-version' =>
|
410
|
+
query_params: {'api-version' => api_version},
|
410
411
|
body: request_content,
|
411
412
|
headers: request_headers.merge(custom_headers || {})
|
412
413
|
}
|
@@ -476,7 +477,7 @@ module Azure::ARM::Graph
|
|
476
477
|
#
|
477
478
|
def delete_async(upn_or_object_id, custom_headers = nil)
|
478
479
|
fail ArgumentError, 'upn_or_object_id is nil' if upn_or_object_id.nil?
|
479
|
-
|
480
|
+
api_version = '1.6'
|
480
481
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
481
482
|
|
482
483
|
|
@@ -490,7 +491,7 @@ module Azure::ARM::Graph
|
|
490
491
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
491
492
|
path_params: {'tenantID' => @client.tenant_id},
|
492
493
|
skip_encoding_path_params: {'upnOrObjectId' => upn_or_object_id},
|
493
|
-
query_params: {'api-version' =>
|
494
|
+
query_params: {'api-version' => api_version},
|
494
495
|
headers: request_headers.merge(custom_headers || {})
|
495
496
|
}
|
496
497
|
|
@@ -564,7 +565,7 @@ module Azure::ARM::Graph
|
|
564
565
|
def get_member_groups_async(object_id, parameters, custom_headers = nil)
|
565
566
|
fail ArgumentError, 'object_id is nil' if object_id.nil?
|
566
567
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
567
|
-
|
568
|
+
api_version = '1.6'
|
568
569
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
569
570
|
|
570
571
|
|
@@ -586,7 +587,7 @@ module Azure::ARM::Graph
|
|
586
587
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
587
588
|
path_params: {'tenantID' => @client.tenant_id},
|
588
589
|
skip_encoding_path_params: {'objectId' => object_id},
|
589
|
-
query_params: {'api-version' =>
|
590
|
+
query_params: {'api-version' => api_version},
|
590
591
|
body: request_content,
|
591
592
|
headers: request_headers.merge(custom_headers || {})
|
592
593
|
}
|
@@ -664,7 +665,7 @@ module Azure::ARM::Graph
|
|
664
665
|
#
|
665
666
|
def list_next_async(next_link, custom_headers = nil)
|
666
667
|
fail ArgumentError, 'next_link is nil' if next_link.nil?
|
667
|
-
|
668
|
+
api_version = '1.6'
|
668
669
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
669
670
|
|
670
671
|
|
@@ -678,7 +679,7 @@ module Azure::ARM::Graph
|
|
678
679
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
679
680
|
path_params: {'tenantID' => @client.tenant_id},
|
680
681
|
skip_encoding_path_params: {'nextLink' => next_link},
|
681
|
-
query_params: {'api-version' =>
|
682
|
+
query_params: {'api-version' => api_version},
|
682
683
|
headers: request_headers.merge(custom_headers || {})
|
683
684
|
}
|
684
685
|
|
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.
|
4
|
+
version: 0.6.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-
|
11
|
+
date: 2016-09-15 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.
|
75
|
+
version: 0.5.0
|
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.
|
82
|
+
version: 0.5.0
|
83
83
|
description: Microsoft Azure Active Directory Graph Management Client Library for
|
84
84
|
Ruby
|
85
85
|
email: azrubyteam@microsoft.com
|
@@ -87,10 +87,7 @@ executables: []
|
|
87
87
|
extensions: []
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
|
-
- ".rspec"
|
91
90
|
- LICENSE.txt
|
92
|
-
- Rakefile
|
93
|
-
- azure_mgmt_graph.gemspec
|
94
91
|
- lib/azure_mgmt_graph.rb
|
95
92
|
- lib/generated/azure_mgmt_graph.rb
|
96
93
|
- lib/generated/azure_mgmt_graph/applications.rb
|
@@ -104,6 +101,7 @@ files:
|
|
104
101
|
- lib/generated/azure_mgmt_graph/models/application_update_parameters.rb
|
105
102
|
- lib/generated/azure_mgmt_graph/models/check_group_membership_parameters.rb
|
106
103
|
- lib/generated/azure_mgmt_graph/models/check_group_membership_result.rb
|
104
|
+
- lib/generated/azure_mgmt_graph/models/get_objects_parameters.rb
|
107
105
|
- lib/generated/azure_mgmt_graph/models/get_objects_result.rb
|
108
106
|
- lib/generated/azure_mgmt_graph/models/graph_error.rb
|
109
107
|
- lib/generated/azure_mgmt_graph/models/group_add_member_parameters.rb
|
@@ -152,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
150
|
version: '0'
|
153
151
|
requirements: []
|
154
152
|
rubyforge_project:
|
155
|
-
rubygems_version: 2.
|
153
|
+
rubygems_version: 2.5.1
|
156
154
|
signing_key:
|
157
155
|
specification_version: 4
|
158
156
|
summary: Official Ruby client library to consume Microsoft Azure Active Directory
|
data/.rspec
DELETED
data/Rakefile
DELETED
data/azure_mgmt_graph.gemspec
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
-
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
-
|
5
|
-
lib = File.expand_path('../lib', __FILE__)
|
6
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
7
|
-
|
8
|
-
require 'generated/azure_mgmt_graph/module_definition'
|
9
|
-
require 'generated/azure_mgmt_graph/version'
|
10
|
-
|
11
|
-
Gem::Specification.new do |spec|
|
12
|
-
spec.name = 'azure_mgmt_graph'
|
13
|
-
spec.version = Azure::ARM::Graph::VERSION
|
14
|
-
spec.authors = 'Microsoft Corporation'
|
15
|
-
spec.email = 'azrubyteam@microsoft.com'
|
16
|
-
spec.description = 'Microsoft Azure Active Directory Graph Management Client Library for Ruby'
|
17
|
-
spec.summary = 'Official Ruby client library to consume Microsoft Azure Active Directory Graph Management services.'
|
18
|
-
spec.homepage = 'https://aka.ms/azure-sdk-for-ruby'
|
19
|
-
spec.license = 'MIT'
|
20
|
-
|
21
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22
|
-
spec.bindir = 'bin'
|
23
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
|
-
spec.require_paths = ['lib']
|
25
|
-
|
26
|
-
spec.required_ruby_version = '>= 1.9.3'
|
27
|
-
|
28
|
-
spec.add_development_dependency 'bundler', '~> 1.9'
|
29
|
-
spec.add_development_dependency 'rake', '~> 10'
|
30
|
-
spec.add_development_dependency 'rspec', '~> 3'
|
31
|
-
spec.add_development_dependency 'dotenv', '~> 2'
|
32
|
-
|
33
|
-
spec.add_runtime_dependency 'ms_rest_azure', '~> 0.4.0'
|
34
|
-
end
|