azure_mgmt_key_vault 0.6.0 → 0.7.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_key_vault.rb +1 -0
- data/lib/generated/azure_mgmt_key_vault/key_vault_management_client.rb +55 -4
- data/lib/generated/azure_mgmt_key_vault/models/access_policy_entry.rb +7 -7
- data/lib/generated/azure_mgmt_key_vault/models/certificate_permissions.rb +27 -0
- data/lib/generated/azure_mgmt_key_vault/models/key_permissions.rb +2 -2
- data/lib/generated/azure_mgmt_key_vault/models/permissions.rb +18 -1
- data/lib/generated/azure_mgmt_key_vault/vaults.rb +67 -90
- data/lib/generated/azure_mgmt_key_vault/version.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd6ea816d0824e80c55c3cf9c26dfb812851fa5f
|
4
|
+
data.tar.gz: edc8d2a3edb98030a3cc219dcacea408dabda2f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eecd7c3c4ae784c264908861b74c49ce696fdae27cf81c6ad35523170ca8ec2bab259707a98e5f2da003c6eee440ec9f8145e9a5862388d5c0e1734675ef64a1
|
7
|
+
data.tar.gz: c3c93ee4515cdb97cce2d483f689acab0fe00a994eb1774252757934ef79b1c4a7d17b6ec5edf5d87860c76578a4ed4b3d6b0aa564826772b4c21ef1d0020d0a
|
@@ -34,5 +34,6 @@ module Azure::ARM::KeyVault
|
|
34
34
|
autoload :SkuName, 'generated/azure_mgmt_key_vault/models/sku_name.rb'
|
35
35
|
autoload :KeyPermissions, 'generated/azure_mgmt_key_vault/models/key_permissions.rb'
|
36
36
|
autoload :SecretPermissions, 'generated/azure_mgmt_key_vault/models/secret_permissions.rb'
|
37
|
+
autoload :CertificatePermissions, 'generated/azure_mgmt_key_vault/models/certificate_permissions.rb'
|
37
38
|
end
|
38
39
|
end
|
@@ -36,10 +36,6 @@ module Azure::ARM::KeyVault
|
|
36
36
|
# is generated and included in each request. Default is true.
|
37
37
|
attr_accessor :generate_client_request_id
|
38
38
|
|
39
|
-
# @return Subscription credentials which uniquely identify client
|
40
|
-
# subscription.
|
41
|
-
attr_accessor :credentials
|
42
|
-
|
43
39
|
# @return [Vaults] vaults
|
44
40
|
attr_reader :vaults
|
45
41
|
|
@@ -64,5 +60,60 @@ module Azure::ARM::KeyVault
|
|
64
60
|
@generate_client_request_id = true
|
65
61
|
end
|
66
62
|
|
63
|
+
#
|
64
|
+
# Makes a request and returns the body of the response.
|
65
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
66
|
+
# @param path [String] the path, relative to {base_url}.
|
67
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
68
|
+
# @return [Hash{String=>String}] containing the body of the response.
|
69
|
+
# Example:
|
70
|
+
#
|
71
|
+
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
72
|
+
# path = "/path"
|
73
|
+
# options = {
|
74
|
+
# body: request_content,
|
75
|
+
# query_params: {'api-version' => '2016-02-01'}
|
76
|
+
# }
|
77
|
+
# result = @client.make_request(:put, path, options)
|
78
|
+
#
|
79
|
+
def make_request(method, path, options = {})
|
80
|
+
result = make_request_with_http_info(method, path, options)
|
81
|
+
result.body unless result.nil?
|
82
|
+
end
|
83
|
+
|
84
|
+
#
|
85
|
+
# Makes a request and returns the operation response.
|
86
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
87
|
+
# @param path [String] the path, relative to {base_url}.
|
88
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
89
|
+
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
90
|
+
#
|
91
|
+
def make_request_with_http_info(method, path, options = {})
|
92
|
+
result = make_request_async(method, path, options).value!
|
93
|
+
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
94
|
+
result
|
95
|
+
end
|
96
|
+
|
97
|
+
#
|
98
|
+
# Makes a request asynchronously.
|
99
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
100
|
+
# @param path [String] the path, relative to {base_url}.
|
101
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
102
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
103
|
+
#
|
104
|
+
def make_request_async(method, path, options = {})
|
105
|
+
fail ArgumentError, 'method is nil' if method.nil?
|
106
|
+
fail ArgumentError, 'path is nil' if path.nil?
|
107
|
+
|
108
|
+
request_url = options[:base_url] || @base_url
|
109
|
+
|
110
|
+
request_headers = @request_headers
|
111
|
+
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
112
|
+
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
113
|
+
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
114
|
+
|
115
|
+
super(request_url, method, path, options)
|
116
|
+
end
|
117
|
+
|
67
118
|
end
|
68
119
|
end
|
@@ -6,9 +6,8 @@
|
|
6
6
|
module Azure::ARM::KeyVault
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
# An
|
10
|
-
#
|
11
|
-
# tenant ID.
|
9
|
+
# An identity that have access to the key vault. All identities in the
|
10
|
+
# array must use the same tenant ID as the key vault's tenant ID.
|
12
11
|
#
|
13
12
|
class AccessPolicyEntry
|
14
13
|
|
@@ -18,16 +17,17 @@ module Azure::ARM::KeyVault
|
|
18
17
|
# authenticating requests to the key vault.
|
19
18
|
attr_accessor :tenant_id
|
20
19
|
|
21
|
-
# @return The object ID of a user
|
22
|
-
# Active Directory tenant for the vault. The object ID
|
23
|
-
# for the list of access policies.
|
20
|
+
# @return The object ID of a user, service principal or security group
|
21
|
+
# in the Azure Active Directory tenant for the vault. The object ID
|
22
|
+
# must be unique for the list of access policies.
|
24
23
|
attr_accessor :object_id
|
25
24
|
|
26
25
|
# @return Application ID of the client making request on behalf of a
|
27
26
|
# principal
|
28
27
|
attr_accessor :application_id
|
29
28
|
|
30
|
-
# @return [Permissions] Permissions the identity has for keys
|
29
|
+
# @return [Permissions] Permissions the identity has for keys, secrets
|
30
|
+
# and certificates.
|
31
31
|
attr_accessor :permissions
|
32
32
|
|
33
33
|
|
@@ -0,0 +1,27 @@
|
|
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::KeyVault
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for CertificatePermissions
|
10
|
+
#
|
11
|
+
module CertificatePermissions
|
12
|
+
All = "all"
|
13
|
+
Get = "get"
|
14
|
+
List = "list"
|
15
|
+
Delete = "delete"
|
16
|
+
Create = "create"
|
17
|
+
Import = "import"
|
18
|
+
Update = "update"
|
19
|
+
Managecontacts = "managecontacts"
|
20
|
+
Getissuers = "getissuers"
|
21
|
+
Listissuers = "listissuers"
|
22
|
+
Setissuers = "setissuers"
|
23
|
+
Deleteissuers = "deleteissuers"
|
24
|
+
Manageissuers = "manageissuers"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
module Azure::ARM::KeyVault
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
# Permissions the identity has for keys and
|
9
|
+
# Permissions the identity has for keys, secrets and certificates.
|
10
10
|
#
|
11
11
|
class Permissions
|
12
12
|
|
@@ -18,6 +18,9 @@ module Azure::ARM::KeyVault
|
|
18
18
|
# @return [Array<SecretPermissions>] Permissions to secrets
|
19
19
|
attr_accessor :secrets
|
20
20
|
|
21
|
+
# @return [Array<CertificatePermissions>] Permissions to certificates
|
22
|
+
attr_accessor :certificates
|
23
|
+
|
21
24
|
|
22
25
|
#
|
23
26
|
# Mapper for Permissions class as Ruby Hash.
|
@@ -58,6 +61,20 @@ module Azure::ARM::KeyVault
|
|
58
61
|
}
|
59
62
|
}
|
60
63
|
}
|
64
|
+
},
|
65
|
+
certificates: {
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'certificates',
|
68
|
+
type: {
|
69
|
+
name: 'Sequence',
|
70
|
+
element: {
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'CertificatePermissionsElementType',
|
73
|
+
type: {
|
74
|
+
name: 'String'
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
61
78
|
}
|
62
79
|
}
|
63
80
|
}
|
@@ -93,31 +93,28 @@ module Azure::ARM::KeyVault
|
|
93
93
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
94
94
|
|
95
95
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}'
|
96
|
+
|
97
|
+
request_url = @base_url || @client.base_url
|
98
|
+
|
96
99
|
options = {
|
97
100
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
98
101
|
path_params: {'resourceGroupName' => resource_group_name,'vaultName' => vault_name,'subscriptionId' => @client.subscription_id},
|
99
102
|
query_params: {'api-version' => @client.api_version},
|
100
103
|
body: request_content,
|
101
|
-
headers: request_headers.merge(custom_headers || {})
|
104
|
+
headers: request_headers.merge(custom_headers || {}),
|
105
|
+
base_url: request_url
|
102
106
|
}
|
107
|
+
promise = @client.make_request_async(:put, path_template, options)
|
103
108
|
|
104
|
-
|
105
|
-
|
106
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
|
107
|
-
promise = request.run_promise do |req|
|
108
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
109
|
-
end
|
110
|
-
|
111
|
-
promise = promise.then do |http_response|
|
109
|
+
promise = promise.then do |result|
|
110
|
+
http_response = result.response
|
112
111
|
status_code = http_response.status
|
113
112
|
response_content = http_response.body
|
114
113
|
unless status_code == 201 || status_code == 200
|
115
114
|
error_model = JSON.load(response_content)
|
116
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
115
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
117
116
|
end
|
118
117
|
|
119
|
-
# Create Result
|
120
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
121
118
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
122
119
|
# Deserialize Response
|
123
120
|
if status_code == 201
|
@@ -200,30 +197,27 @@ module Azure::ARM::KeyVault
|
|
200
197
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
201
198
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
202
199
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}'
|
200
|
+
|
201
|
+
request_url = @base_url || @client.base_url
|
202
|
+
|
203
203
|
options = {
|
204
204
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
205
205
|
path_params: {'resourceGroupName' => resource_group_name,'vaultName' => vault_name,'subscriptionId' => @client.subscription_id},
|
206
206
|
query_params: {'api-version' => @client.api_version},
|
207
|
-
headers: request_headers.merge(custom_headers || {})
|
207
|
+
headers: request_headers.merge(custom_headers || {}),
|
208
|
+
base_url: request_url
|
208
209
|
}
|
210
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
209
211
|
|
210
|
-
|
211
|
-
|
212
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
|
213
|
-
promise = request.run_promise do |req|
|
214
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
215
|
-
end
|
216
|
-
|
217
|
-
promise = promise.then do |http_response|
|
212
|
+
promise = promise.then do |result|
|
213
|
+
http_response = result.response
|
218
214
|
status_code = http_response.status
|
219
215
|
response_content = http_response.body
|
220
216
|
unless status_code == 200
|
221
217
|
error_model = JSON.load(response_content)
|
222
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
218
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
223
219
|
end
|
224
220
|
|
225
|
-
# Create Result
|
226
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
227
221
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
228
222
|
|
229
223
|
result
|
@@ -287,30 +281,27 @@ module Azure::ARM::KeyVault
|
|
287
281
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
288
282
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
289
283
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}'
|
284
|
+
|
285
|
+
request_url = @base_url || @client.base_url
|
286
|
+
|
290
287
|
options = {
|
291
288
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
292
289
|
path_params: {'resourceGroupName' => resource_group_name,'vaultName' => vault_name,'subscriptionId' => @client.subscription_id},
|
293
290
|
query_params: {'api-version' => @client.api_version},
|
294
|
-
headers: request_headers.merge(custom_headers || {})
|
291
|
+
headers: request_headers.merge(custom_headers || {}),
|
292
|
+
base_url: request_url
|
295
293
|
}
|
294
|
+
promise = @client.make_request_async(:get, path_template, options)
|
296
295
|
|
297
|
-
|
298
|
-
|
299
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
300
|
-
promise = request.run_promise do |req|
|
301
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
302
|
-
end
|
303
|
-
|
304
|
-
promise = promise.then do |http_response|
|
296
|
+
promise = promise.then do |result|
|
297
|
+
http_response = result.response
|
305
298
|
status_code = http_response.status
|
306
299
|
response_content = http_response.body
|
307
300
|
unless status_code == 200
|
308
301
|
error_model = JSON.load(response_content)
|
309
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
302
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
310
303
|
end
|
311
304
|
|
312
|
-
# Create Result
|
313
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
314
305
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
315
306
|
# Deserialize Response
|
316
307
|
if status_code == 200
|
@@ -345,8 +336,8 @@ module Azure::ARM::KeyVault
|
|
345
336
|
response = list_by_resource_group_async(resource_group_name, top, custom_headers).value!
|
346
337
|
unless response.nil?
|
347
338
|
page = response.body
|
348
|
-
page.next_method = Proc.new do |
|
349
|
-
list_by_resource_group_next_async(
|
339
|
+
page.next_method = Proc.new do |next_page_link|
|
340
|
+
list_by_resource_group_next_async(next_page_link, custom_headers)
|
350
341
|
end
|
351
342
|
page
|
352
343
|
end
|
@@ -409,30 +400,27 @@ module Azure::ARM::KeyVault
|
|
409
400
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
410
401
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
411
402
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults'
|
403
|
+
|
404
|
+
request_url = @base_url || @client.base_url
|
405
|
+
|
412
406
|
options = {
|
413
407
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
414
408
|
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
415
409
|
query_params: {'$top' => top,'api-version' => @client.api_version},
|
416
|
-
headers: request_headers.merge(custom_headers || {})
|
410
|
+
headers: request_headers.merge(custom_headers || {}),
|
411
|
+
base_url: request_url
|
417
412
|
}
|
413
|
+
promise = @client.make_request_async(:get, path_template, options)
|
418
414
|
|
419
|
-
|
420
|
-
|
421
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
422
|
-
promise = request.run_promise do |req|
|
423
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
424
|
-
end
|
425
|
-
|
426
|
-
promise = promise.then do |http_response|
|
415
|
+
promise = promise.then do |result|
|
416
|
+
http_response = result.response
|
427
417
|
status_code = http_response.status
|
428
418
|
response_content = http_response.body
|
429
419
|
unless status_code == 200
|
430
420
|
error_model = JSON.load(response_content)
|
431
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
421
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
432
422
|
end
|
433
423
|
|
434
|
-
# Create Result
|
435
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
436
424
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
437
425
|
# Deserialize Response
|
438
426
|
if status_code == 200
|
@@ -455,8 +443,6 @@ module Azure::ARM::KeyVault
|
|
455
443
|
# The List operation gets information about the vaults associated with the
|
456
444
|
# subscription.
|
457
445
|
#
|
458
|
-
# @param filter [String] The filter to apply on the operation.
|
459
|
-
# @param api_version [String] Azure Resource Manager Api Version.
|
460
446
|
# @param top [Integer] Maximum number of results to return.
|
461
447
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
462
448
|
# will be added to the HTTP request.
|
@@ -467,8 +453,8 @@ module Azure::ARM::KeyVault
|
|
467
453
|
response = list_async(top, custom_headers).value!
|
468
454
|
unless response.nil?
|
469
455
|
page = response.body
|
470
|
-
page.next_method = Proc.new do |
|
471
|
-
list_next_async(
|
456
|
+
page.next_method = Proc.new do |next_page_link|
|
457
|
+
list_next_async(next_page_link, custom_headers)
|
472
458
|
end
|
473
459
|
page
|
474
460
|
end
|
@@ -525,30 +511,27 @@ module Azure::ARM::KeyVault
|
|
525
511
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
526
512
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
527
513
|
path_template = '/subscriptions/{subscriptionId}/resources'
|
514
|
+
|
515
|
+
request_url = @base_url || @client.base_url
|
516
|
+
|
528
517
|
options = {
|
529
518
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
530
519
|
path_params: {'subscriptionId' => @client.subscription_id},
|
531
520
|
query_params: {'$filter' => filter,'$top' => top,'api-version' => api_version},
|
532
|
-
headers: request_headers.merge(custom_headers || {})
|
521
|
+
headers: request_headers.merge(custom_headers || {}),
|
522
|
+
base_url: request_url
|
533
523
|
}
|
524
|
+
promise = @client.make_request_async(:get, path_template, options)
|
534
525
|
|
535
|
-
|
536
|
-
|
537
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
538
|
-
promise = request.run_promise do |req|
|
539
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
540
|
-
end
|
541
|
-
|
542
|
-
promise = promise.then do |http_response|
|
526
|
+
promise = promise.then do |result|
|
527
|
+
http_response = result.response
|
543
528
|
status_code = http_response.status
|
544
529
|
response_content = http_response.body
|
545
530
|
unless status_code == 200
|
546
531
|
error_model = JSON.load(response_content)
|
547
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
532
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
548
533
|
end
|
549
534
|
|
550
|
-
# Create Result
|
551
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
552
535
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
553
536
|
# Deserialize Response
|
554
537
|
if status_code == 200
|
@@ -619,29 +602,26 @@ module Azure::ARM::KeyVault
|
|
619
602
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
620
603
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
621
604
|
path_template = '{nextLink}'
|
605
|
+
|
606
|
+
request_url = @base_url || @client.base_url
|
607
|
+
|
622
608
|
options = {
|
623
609
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
624
610
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
625
|
-
headers: request_headers.merge(custom_headers || {})
|
611
|
+
headers: request_headers.merge(custom_headers || {}),
|
612
|
+
base_url: request_url
|
626
613
|
}
|
614
|
+
promise = @client.make_request_async(:get, path_template, options)
|
627
615
|
|
628
|
-
|
629
|
-
|
630
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
631
|
-
promise = request.run_promise do |req|
|
632
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
633
|
-
end
|
634
|
-
|
635
|
-
promise = promise.then do |http_response|
|
616
|
+
promise = promise.then do |result|
|
617
|
+
http_response = result.response
|
636
618
|
status_code = http_response.status
|
637
619
|
response_content = http_response.body
|
638
620
|
unless status_code == 200
|
639
621
|
error_model = JSON.load(response_content)
|
640
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
622
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
641
623
|
end
|
642
624
|
|
643
|
-
# Create Result
|
644
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
645
625
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
646
626
|
# Deserialize Response
|
647
627
|
if status_code == 200
|
@@ -712,29 +692,26 @@ module Azure::ARM::KeyVault
|
|
712
692
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
713
693
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
714
694
|
path_template = '{nextLink}'
|
695
|
+
|
696
|
+
request_url = @base_url || @client.base_url
|
697
|
+
|
715
698
|
options = {
|
716
699
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
717
700
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
718
|
-
headers: request_headers.merge(custom_headers || {})
|
701
|
+
headers: request_headers.merge(custom_headers || {}),
|
702
|
+
base_url: request_url
|
719
703
|
}
|
704
|
+
promise = @client.make_request_async(:get, path_template, options)
|
720
705
|
|
721
|
-
|
722
|
-
|
723
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
724
|
-
promise = request.run_promise do |req|
|
725
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
726
|
-
end
|
727
|
-
|
728
|
-
promise = promise.then do |http_response|
|
706
|
+
promise = promise.then do |result|
|
707
|
+
http_response = result.response
|
729
708
|
status_code = http_response.status
|
730
709
|
response_content = http_response.body
|
731
710
|
unless status_code == 200
|
732
711
|
error_model = JSON.load(response_content)
|
733
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
712
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
734
713
|
end
|
735
714
|
|
736
|
-
# Create Result
|
737
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
738
715
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
739
716
|
# Deserialize Response
|
740
717
|
if status_code == 200
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_key_vault
|
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 Resource Management Key Vault Client Library for Ruby
|
84
84
|
email: azrubyteam@microsoft.com
|
85
85
|
executables: []
|
@@ -91,6 +91,7 @@ files:
|
|
91
91
|
- lib/generated/azure_mgmt_key_vault.rb
|
92
92
|
- lib/generated/azure_mgmt_key_vault/key_vault_management_client.rb
|
93
93
|
- lib/generated/azure_mgmt_key_vault/models/access_policy_entry.rb
|
94
|
+
- lib/generated/azure_mgmt_key_vault/models/certificate_permissions.rb
|
94
95
|
- lib/generated/azure_mgmt_key_vault/models/key_permissions.rb
|
95
96
|
- lib/generated/azure_mgmt_key_vault/models/permissions.rb
|
96
97
|
- lib/generated/azure_mgmt_key_vault/models/secret_permissions.rb
|
@@ -115,7 +116,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
115
116
|
requirements:
|
116
117
|
- - ">="
|
117
118
|
- !ruby/object:Gem::Version
|
118
|
-
version:
|
119
|
+
version: 2.0.0
|
119
120
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
121
|
requirements:
|
121
122
|
- - ">="
|