azure_mgmt_graph 0.6.0 → 0.7.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.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_graph/applications.rb +192 -109
- data/lib/generated/azure_mgmt_graph/graph_rbac_management_client.rb +55 -4
- data/lib/generated/azure_mgmt_graph/groups.rb +99 -134
- data/lib/generated/azure_mgmt_graph/models/application_list_result.rb +41 -0
- data/lib/generated/azure_mgmt_graph/models/key_credentials_update_parameters.rb +1 -1
- data/lib/generated/azure_mgmt_graph/models/password_credentials_update_parameters.rb +1 -1
- data/lib/generated/azure_mgmt_graph/objects.rb +27 -37
- data/lib/generated/azure_mgmt_graph/service_principals.rb +81 -109
- data/lib/generated/azure_mgmt_graph/users.rb +63 -85
- data/lib/generated/azure_mgmt_graph/version.rb +1 -1
- metadata +5 -5
@@ -81,31 +81,28 @@ module Azure::ARM::Graph
|
|
81
81
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
82
82
|
|
83
83
|
path_template = '/{tenantID}/users'
|
84
|
+
|
85
|
+
request_url = @base_url || @client.base_url
|
86
|
+
|
84
87
|
options = {
|
85
88
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
86
89
|
path_params: {'tenantID' => @client.tenant_id},
|
87
90
|
query_params: {'api-version' => api_version},
|
88
91
|
body: request_content,
|
89
|
-
headers: request_headers.merge(custom_headers || {})
|
92
|
+
headers: request_headers.merge(custom_headers || {}),
|
93
|
+
base_url: request_url
|
90
94
|
}
|
95
|
+
promise = @client.make_request_async(:post, path_template, options)
|
91
96
|
|
92
|
-
|
93
|
-
|
94
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
95
|
-
promise = request.run_promise do |req|
|
96
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
97
|
-
end
|
98
|
-
|
99
|
-
promise = promise.then do |http_response|
|
97
|
+
promise = promise.then do |result|
|
98
|
+
http_response = result.response
|
100
99
|
status_code = http_response.status
|
101
100
|
response_content = http_response.body
|
102
101
|
unless status_code == 201
|
103
102
|
error_model = JSON.load(response_content)
|
104
|
-
fail MsRest::HttpOperationError.new(request, http_response, error_model)
|
103
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
105
104
|
end
|
106
105
|
|
107
|
-
# Create Result
|
108
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
109
106
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
110
107
|
# Deserialize Response
|
111
108
|
if status_code == 201
|
@@ -128,7 +125,6 @@ module Azure::ARM::Graph
|
|
128
125
|
# Gets list of users for the current tenant. Reference
|
129
126
|
# https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/users-operations#GetUsers
|
130
127
|
#
|
131
|
-
# @param api_version [String] Client Api Version.
|
132
128
|
# @param filter [String] The filter to apply on the operation.
|
133
129
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
134
130
|
# will be added to the HTTP request.
|
@@ -196,30 +192,27 @@ module Azure::ARM::Graph
|
|
196
192
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
197
193
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
198
194
|
path_template = '/{tenantID}/users'
|
195
|
+
|
196
|
+
request_url = @base_url || @client.base_url
|
197
|
+
|
199
198
|
options = {
|
200
199
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
201
200
|
path_params: {'tenantID' => @client.tenant_id},
|
202
201
|
query_params: {'$filter' => filter,'api-version' => api_version},
|
203
|
-
headers: request_headers.merge(custom_headers || {})
|
202
|
+
headers: request_headers.merge(custom_headers || {}),
|
203
|
+
base_url: request_url
|
204
204
|
}
|
205
|
+
promise = @client.make_request_async(:get, path_template, options)
|
205
206
|
|
206
|
-
|
207
|
-
|
208
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
209
|
-
promise = request.run_promise do |req|
|
210
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
211
|
-
end
|
212
|
-
|
213
|
-
promise = promise.then do |http_response|
|
207
|
+
promise = promise.then do |result|
|
208
|
+
http_response = result.response
|
214
209
|
status_code = http_response.status
|
215
210
|
response_content = http_response.body
|
216
211
|
unless status_code == 200
|
217
212
|
error_model = JSON.load(response_content)
|
218
|
-
fail MsRest::HttpOperationError.new(request, http_response, error_model)
|
213
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
219
214
|
end
|
220
215
|
|
221
|
-
# Create Result
|
222
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
223
216
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
224
217
|
# Deserialize Response
|
225
218
|
if status_code == 200
|
@@ -292,31 +285,28 @@ module Azure::ARM::Graph
|
|
292
285
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
293
286
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
294
287
|
path_template = '/{tenantID}/users/{upnOrObjectId}'
|
288
|
+
|
289
|
+
request_url = @base_url || @client.base_url
|
290
|
+
|
295
291
|
options = {
|
296
292
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
297
293
|
path_params: {'tenantID' => @client.tenant_id},
|
298
294
|
skip_encoding_path_params: {'upnOrObjectId' => upn_or_object_id},
|
299
295
|
query_params: {'api-version' => api_version},
|
300
|
-
headers: request_headers.merge(custom_headers || {})
|
296
|
+
headers: request_headers.merge(custom_headers || {}),
|
297
|
+
base_url: request_url
|
301
298
|
}
|
299
|
+
promise = @client.make_request_async(:get, path_template, options)
|
302
300
|
|
303
|
-
|
304
|
-
|
305
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
306
|
-
promise = request.run_promise do |req|
|
307
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
308
|
-
end
|
309
|
-
|
310
|
-
promise = promise.then do |http_response|
|
301
|
+
promise = promise.then do |result|
|
302
|
+
http_response = result.response
|
311
303
|
status_code = http_response.status
|
312
304
|
response_content = http_response.body
|
313
305
|
unless status_code == 200
|
314
306
|
error_model = JSON.load(response_content)
|
315
|
-
fail MsRest::HttpOperationError.new(request, http_response, error_model)
|
307
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
316
308
|
end
|
317
309
|
|
318
|
-
# Create Result
|
319
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
320
310
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
321
311
|
# Deserialize Response
|
322
312
|
if status_code == 200
|
@@ -403,32 +393,29 @@ module Azure::ARM::Graph
|
|
403
393
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
404
394
|
|
405
395
|
path_template = '/{tenantID}/users/{upnOrObjectId}'
|
396
|
+
|
397
|
+
request_url = @base_url || @client.base_url
|
398
|
+
|
406
399
|
options = {
|
407
400
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
408
401
|
path_params: {'tenantID' => @client.tenant_id},
|
409
402
|
skip_encoding_path_params: {'upnOrObjectId' => upn_or_object_id},
|
410
403
|
query_params: {'api-version' => api_version},
|
411
404
|
body: request_content,
|
412
|
-
headers: request_headers.merge(custom_headers || {})
|
405
|
+
headers: request_headers.merge(custom_headers || {}),
|
406
|
+
base_url: request_url
|
413
407
|
}
|
408
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
414
409
|
|
415
|
-
|
416
|
-
|
417
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :patch, options)
|
418
|
-
promise = request.run_promise do |req|
|
419
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
420
|
-
end
|
421
|
-
|
422
|
-
promise = promise.then do |http_response|
|
410
|
+
promise = promise.then do |result|
|
411
|
+
http_response = result.response
|
423
412
|
status_code = http_response.status
|
424
413
|
response_content = http_response.body
|
425
414
|
unless status_code == 204
|
426
415
|
error_model = JSON.load(response_content)
|
427
|
-
fail MsRest::HttpOperationError.new(request, http_response, error_model)
|
416
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
428
417
|
end
|
429
418
|
|
430
|
-
# Create Result
|
431
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
432
419
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
433
420
|
|
434
421
|
result
|
@@ -487,31 +474,28 @@ module Azure::ARM::Graph
|
|
487
474
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
488
475
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
489
476
|
path_template = '/{tenantID}/users/{upnOrObjectId}'
|
477
|
+
|
478
|
+
request_url = @base_url || @client.base_url
|
479
|
+
|
490
480
|
options = {
|
491
481
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
492
482
|
path_params: {'tenantID' => @client.tenant_id},
|
493
483
|
skip_encoding_path_params: {'upnOrObjectId' => upn_or_object_id},
|
494
484
|
query_params: {'api-version' => api_version},
|
495
|
-
headers: request_headers.merge(custom_headers || {})
|
485
|
+
headers: request_headers.merge(custom_headers || {}),
|
486
|
+
base_url: request_url
|
496
487
|
}
|
488
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
497
489
|
|
498
|
-
|
499
|
-
|
500
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
|
501
|
-
promise = request.run_promise do |req|
|
502
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
503
|
-
end
|
504
|
-
|
505
|
-
promise = promise.then do |http_response|
|
490
|
+
promise = promise.then do |result|
|
491
|
+
http_response = result.response
|
506
492
|
status_code = http_response.status
|
507
493
|
response_content = http_response.body
|
508
494
|
unless status_code == 204
|
509
495
|
error_model = JSON.load(response_content)
|
510
|
-
fail MsRest::HttpOperationError.new(request, http_response, error_model)
|
496
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
511
497
|
end
|
512
498
|
|
513
|
-
# Create Result
|
514
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
515
499
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
516
500
|
|
517
501
|
result
|
@@ -583,32 +567,29 @@ module Azure::ARM::Graph
|
|
583
567
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
584
568
|
|
585
569
|
path_template = '/{tenantID}/users/{objectId}/getMemberGroups'
|
570
|
+
|
571
|
+
request_url = @base_url || @client.base_url
|
572
|
+
|
586
573
|
options = {
|
587
574
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
588
575
|
path_params: {'tenantID' => @client.tenant_id},
|
589
576
|
skip_encoding_path_params: {'objectId' => object_id},
|
590
577
|
query_params: {'api-version' => api_version},
|
591
578
|
body: request_content,
|
592
|
-
headers: request_headers.merge(custom_headers || {})
|
579
|
+
headers: request_headers.merge(custom_headers || {}),
|
580
|
+
base_url: request_url
|
593
581
|
}
|
582
|
+
promise = @client.make_request_async(:post, path_template, options)
|
594
583
|
|
595
|
-
|
596
|
-
|
597
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
598
|
-
promise = request.run_promise do |req|
|
599
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
600
|
-
end
|
601
|
-
|
602
|
-
promise = promise.then do |http_response|
|
584
|
+
promise = promise.then do |result|
|
585
|
+
http_response = result.response
|
603
586
|
status_code = http_response.status
|
604
587
|
response_content = http_response.body
|
605
588
|
unless status_code == 200
|
606
589
|
error_model = JSON.load(response_content)
|
607
|
-
fail MsRest::HttpOperationError.new(request, http_response, error_model)
|
590
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
608
591
|
end
|
609
592
|
|
610
|
-
# Create Result
|
611
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
612
593
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
613
594
|
# Deserialize Response
|
614
595
|
if status_code == 200
|
@@ -675,31 +656,28 @@ module Azure::ARM::Graph
|
|
675
656
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
676
657
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
677
658
|
path_template = '/{tenantID}/{nextLink}'
|
659
|
+
|
660
|
+
request_url = @base_url || @client.base_url
|
661
|
+
|
678
662
|
options = {
|
679
663
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
680
664
|
path_params: {'tenantID' => @client.tenant_id},
|
681
665
|
skip_encoding_path_params: {'nextLink' => next_link},
|
682
666
|
query_params: {'api-version' => api_version},
|
683
|
-
headers: request_headers.merge(custom_headers || {})
|
667
|
+
headers: request_headers.merge(custom_headers || {}),
|
668
|
+
base_url: request_url
|
684
669
|
}
|
670
|
+
promise = @client.make_request_async(:get, path_template, options)
|
685
671
|
|
686
|
-
|
687
|
-
|
688
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
689
|
-
promise = request.run_promise do |req|
|
690
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
691
|
-
end
|
692
|
-
|
693
|
-
promise = promise.then do |http_response|
|
672
|
+
promise = promise.then do |result|
|
673
|
+
http_response = result.response
|
694
674
|
status_code = http_response.status
|
695
675
|
response_content = http_response.body
|
696
676
|
unless status_code == 200
|
697
677
|
error_model = JSON.load(response_content)
|
698
|
-
fail MsRest::HttpOperationError.new(request, http_response, error_model)
|
678
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
699
679
|
end
|
700
680
|
|
701
|
-
# Create Result
|
702
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
703
681
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
704
682
|
# Deserialize Response
|
705
683
|
if status_code == 200
|
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.7.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-10-14 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.6.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.6.0
|
83
83
|
description: Microsoft Azure Active Directory Graph Management Client Library for
|
84
84
|
Ruby
|
85
85
|
email: azrubyteam@microsoft.com
|
@@ -142,7 +142,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
142
142
|
requirements:
|
143
143
|
- - ">="
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 2.0.0
|
146
146
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
147
|
requirements:
|
148
148
|
- - ">="
|