azure_mgmt_key_vault 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-06-01/generated/azure_mgmt_key_vault/key_vault_management_client.rb +4 -1
  3. data/lib/2015-06-01/generated/azure_mgmt_key_vault/vaults.rb +48 -43
  4. data/lib/2016-10-01/generated/azure_mgmt_key_vault.rb +20 -6
  5. data/lib/2016-10-01/generated/azure_mgmt_key_vault/key_vault_management_client.rb +9 -2
  6. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/access_policy_update_kind.rb +17 -0
  7. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/check_name_availability_result.rb +77 -0
  8. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/log_specification.rb +68 -0
  9. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/operation.rb +83 -0
  10. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/operation_display.rb +79 -0
  11. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/operation_list_result.rb +100 -0
  12. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/reason.rb +16 -0
  13. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/resource.rb +2 -1
  14. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/resource_list_result.rb +2 -2
  15. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/service_specification.rb +55 -0
  16. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault.rb +2 -1
  17. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_access_policy_parameters.rb +95 -0
  18. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_access_policy_properties.rb +57 -0
  19. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_check_name_availability_parameters.rb +60 -0
  20. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_list_result.rb +2 -2
  21. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_patch_parameters.rb +67 -0
  22. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_patch_properties.rb +145 -0
  23. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_properties.rb +1 -3
  24. data/lib/2016-10-01/generated/azure_mgmt_key_vault/operations.rb +216 -0
  25. data/lib/2016-10-01/generated/azure_mgmt_key_vault/vaults.rb +692 -91
  26. data/lib/profiles/latest/keyvault_latest_profile_client.rb +28 -9
  27. data/lib/profiles/latest/keyvault_module_definition.rb +0 -1
  28. data/lib/profiles/latest/modules/keyvault_profile_module.rb +142 -69
  29. data/lib/version.rb +1 -1
  30. metadata +17 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5794cec9747d39ca13a0f24a92ee2eac570c1759
4
- data.tar.gz: 6ec7ba8158d21623d2a021117e00dfe6366cd1b2
3
+ metadata.gz: a4855a2247443fb42e20540fe6f1abd5d4b5e3b5
4
+ data.tar.gz: e0d9305b02d75c9057b8c9cdf822aa05ad108146
5
5
  SHA512:
6
- metadata.gz: 1fc2916b72d5a96be77c70e1b11ba2ee2f65bb3e9687b0321e03ba66bbc04511422cb6cd64645755f82da8314a114161e0289388ed2430db1f15ea63d0086abd
7
- data.tar.gz: 635a11f978b4768a6d6f3999e5cca442fc10111aec8e9d90fc44ea30db0656f6a96e7726e09a2700b94387dff6d5ec8c0fd9f0fc1ad265b853f8e7e74210b4c0
6
+ metadata.gz: 72841fd21fb2917e3f33bf25014f9e1bc8ae0bc530fe934876ca16df02ab6f2b0d6d11aeb86aa830dfc5c175936df230a4e629652d6e5fcd2435fb41c92cba4f
7
+ data.tar.gz: 3bbd52305fef25425ed65f007766b857eacfb0cd48afb523e3ffd2be0fa9179f14e97522db5ec6349f148fa1fcbfb577a2ceab17918d63d22ce2518e2f67d18d
@@ -106,6 +106,9 @@ module Azure::KeyVault::Mgmt::V2015_06_01
106
106
  fail ArgumentError, 'path is nil' if path.nil?
107
107
 
108
108
  request_url = options[:base_url] || @base_url
109
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
110
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
111
+ end
109
112
 
110
113
  request_headers = @request_headers
111
114
  request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
@@ -122,7 +125,7 @@ module Azure::KeyVault::Mgmt::V2015_06_01
122
125
  #
123
126
  def add_telemetry
124
127
  sdk_information = 'azure_mgmt_key_vault'
125
- sdk_information = "#{sdk_information}/0.15.2"
128
+ sdk_information = "#{sdk_information}/0.16.0"
126
129
  add_user_agent_information(sdk_information)
127
130
  end
128
131
  end
@@ -35,8 +35,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01
35
35
  #
36
36
  # @return [Vault] operation results.
37
37
  #
38
- def create_or_update(resource_group_name, vault_name, parameters, custom_headers = nil)
39
- response = create_or_update_async(resource_group_name, vault_name, parameters, custom_headers).value!
38
+ def create_or_update(resource_group_name, vault_name, parameters, custom_headers:nil)
39
+ response = create_or_update_async(resource_group_name, vault_name, parameters, custom_headers:custom_headers).value!
40
40
  response.body unless response.nil?
41
41
  end
42
42
 
@@ -53,8 +53,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01
53
53
  #
54
54
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
55
55
  #
56
- def create_or_update_with_http_info(resource_group_name, vault_name, parameters, custom_headers = nil)
57
- create_or_update_async(resource_group_name, vault_name, parameters, custom_headers).value!
56
+ def create_or_update_with_http_info(resource_group_name, vault_name, parameters, custom_headers:nil)
57
+ create_or_update_async(resource_group_name, vault_name, parameters, custom_headers:custom_headers).value!
58
58
  end
59
59
 
60
60
  #
@@ -70,7 +70,7 @@ module Azure::KeyVault::Mgmt::V2015_06_01
70
70
  #
71
71
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
72
72
  #
73
- def create_or_update_async(resource_group_name, vault_name, parameters, custom_headers = nil)
73
+ def create_or_update_async(resource_group_name, vault_name, parameters, custom_headers:nil)
74
74
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
75
75
  fail ArgumentError, 'vault_name is nil' if vault_name.nil?
76
76
  fail ArgumentError, "'vault_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9-]{3,24}$'" if !vault_name.nil? && vault_name.match(Regexp.new('^^[a-zA-Z0-9-]{3,24}$$')).nil?
@@ -80,13 +80,12 @@ module Azure::KeyVault::Mgmt::V2015_06_01
80
80
 
81
81
 
82
82
  request_headers = {}
83
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
83
84
 
84
85
  # Set Headers
85
86
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
86
87
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
87
88
 
88
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
89
-
90
89
  # Serialize Request
91
90
  request_mapper = Azure::KeyVault::Mgmt::V2015_06_01::Models::VaultCreateOrUpdateParameters.mapper()
92
91
  request_content = @client.serialize(request_mapper, parameters)
@@ -153,8 +152,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01
153
152
  # will be added to the HTTP request.
154
153
  #
155
154
  #
156
- def delete(resource_group_name, vault_name, custom_headers = nil)
157
- response = delete_async(resource_group_name, vault_name, custom_headers).value!
155
+ def delete(resource_group_name, vault_name, custom_headers:nil)
156
+ response = delete_async(resource_group_name, vault_name, custom_headers:custom_headers).value!
158
157
  nil
159
158
  end
160
159
 
@@ -169,8 +168,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01
169
168
  #
170
169
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
171
170
  #
172
- def delete_with_http_info(resource_group_name, vault_name, custom_headers = nil)
173
- delete_async(resource_group_name, vault_name, custom_headers).value!
171
+ def delete_with_http_info(resource_group_name, vault_name, custom_headers:nil)
172
+ delete_async(resource_group_name, vault_name, custom_headers:custom_headers).value!
174
173
  end
175
174
 
176
175
  #
@@ -184,7 +183,7 @@ module Azure::KeyVault::Mgmt::V2015_06_01
184
183
  #
185
184
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
186
185
  #
187
- def delete_async(resource_group_name, vault_name, custom_headers = nil)
186
+ def delete_async(resource_group_name, vault_name, custom_headers:nil)
188
187
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
189
188
  fail ArgumentError, 'vault_name is nil' if vault_name.nil?
190
189
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -192,6 +191,7 @@ module Azure::KeyVault::Mgmt::V2015_06_01
192
191
 
193
192
 
194
193
  request_headers = {}
194
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
195
195
 
196
196
  # Set Headers
197
197
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -237,8 +237,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01
237
237
  #
238
238
  # @return [Vault] operation results.
239
239
  #
240
- def get(resource_group_name, vault_name, custom_headers = nil)
241
- response = get_async(resource_group_name, vault_name, custom_headers).value!
240
+ def get(resource_group_name, vault_name, custom_headers:nil)
241
+ response = get_async(resource_group_name, vault_name, custom_headers:custom_headers).value!
242
242
  response.body unless response.nil?
243
243
  end
244
244
 
@@ -253,8 +253,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01
253
253
  #
254
254
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
255
255
  #
256
- def get_with_http_info(resource_group_name, vault_name, custom_headers = nil)
257
- get_async(resource_group_name, vault_name, custom_headers).value!
256
+ def get_with_http_info(resource_group_name, vault_name, custom_headers:nil)
257
+ get_async(resource_group_name, vault_name, custom_headers:custom_headers).value!
258
258
  end
259
259
 
260
260
  #
@@ -268,7 +268,7 @@ module Azure::KeyVault::Mgmt::V2015_06_01
268
268
  #
269
269
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
270
270
  #
271
- def get_async(resource_group_name, vault_name, custom_headers = nil)
271
+ def get_async(resource_group_name, vault_name, custom_headers:nil)
272
272
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
273
273
  fail ArgumentError, 'vault_name is nil' if vault_name.nil?
274
274
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -276,6 +276,7 @@ module Azure::KeyVault::Mgmt::V2015_06_01
276
276
 
277
277
 
278
278
  request_headers = {}
279
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
279
280
 
280
281
  # Set Headers
281
282
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -332,8 +333,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01
332
333
  #
333
334
  # @return [Array<Vault>] operation results.
334
335
  #
335
- def list_by_resource_group(resource_group_name, top = nil, custom_headers = nil)
336
- first_page = list_by_resource_group_as_lazy(resource_group_name, top, custom_headers)
336
+ def list_by_resource_group(resource_group_name, top:nil, custom_headers:nil)
337
+ first_page = list_by_resource_group_as_lazy(resource_group_name, top:top, custom_headers:custom_headers)
337
338
  first_page.get_all_items
338
339
  end
339
340
 
@@ -349,8 +350,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01
349
350
  #
350
351
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
351
352
  #
352
- def list_by_resource_group_with_http_info(resource_group_name, top = nil, custom_headers = nil)
353
- list_by_resource_group_async(resource_group_name, top, custom_headers).value!
353
+ def list_by_resource_group_with_http_info(resource_group_name, top:nil, custom_headers:nil)
354
+ list_by_resource_group_async(resource_group_name, top:top, custom_headers:custom_headers).value!
354
355
  end
355
356
 
356
357
  #
@@ -365,13 +366,14 @@ module Azure::KeyVault::Mgmt::V2015_06_01
365
366
  #
366
367
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
367
368
  #
368
- def list_by_resource_group_async(resource_group_name, top = nil, custom_headers = nil)
369
+ def list_by_resource_group_async(resource_group_name, top:nil, custom_headers:nil)
369
370
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
370
371
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
371
372
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
372
373
 
373
374
 
374
375
  request_headers = {}
376
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
375
377
 
376
378
  # Set Headers
377
379
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -426,8 +428,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01
426
428
  #
427
429
  # @return [Array<Resource>] operation results.
428
430
  #
429
- def list(top = nil, custom_headers = nil)
430
- first_page = list_as_lazy(top, custom_headers)
431
+ def list(top:nil, custom_headers:nil)
432
+ first_page = list_as_lazy(top:top, custom_headers:custom_headers)
431
433
  first_page.get_all_items
432
434
  end
433
435
 
@@ -441,8 +443,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01
441
443
  #
442
444
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
443
445
  #
444
- def list_with_http_info(top = nil, custom_headers = nil)
445
- list_async(top, custom_headers).value!
446
+ def list_with_http_info(top:nil, custom_headers:nil)
447
+ list_async(top:top, custom_headers:custom_headers).value!
446
448
  end
447
449
 
448
450
  #
@@ -455,13 +457,14 @@ module Azure::KeyVault::Mgmt::V2015_06_01
455
457
  #
456
458
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
457
459
  #
458
- def list_async(top = nil, custom_headers = nil)
460
+ def list_async(top:nil, custom_headers:nil)
459
461
  filter = 'resourceType eq \'Microsoft.KeyVault/vaults\''
460
462
  api_version = '2015-11-01'
461
463
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
462
464
 
463
465
 
464
466
  request_headers = {}
467
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
465
468
 
466
469
  # Set Headers
467
470
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -517,8 +520,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01
517
520
  #
518
521
  # @return [VaultListResult] operation results.
519
522
  #
520
- def list_by_resource_group_next(next_page_link, custom_headers = nil)
521
- response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
523
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
524
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
522
525
  response.body unless response.nil?
523
526
  end
524
527
 
@@ -533,8 +536,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01
533
536
  #
534
537
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
535
538
  #
536
- def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
537
- list_by_resource_group_next_async(next_page_link, custom_headers).value!
539
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
540
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
538
541
  end
539
542
 
540
543
  #
@@ -548,11 +551,12 @@ module Azure::KeyVault::Mgmt::V2015_06_01
548
551
  #
549
552
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
550
553
  #
551
- def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
554
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
552
555
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
553
556
 
554
557
 
555
558
  request_headers = {}
559
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
556
560
 
557
561
  # Set Headers
558
562
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -607,8 +611,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01
607
611
  #
608
612
  # @return [ResourceListResult] operation results.
609
613
  #
610
- def list_next(next_page_link, custom_headers = nil)
611
- response = list_next_async(next_page_link, custom_headers).value!
614
+ def list_next(next_page_link, custom_headers:nil)
615
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
612
616
  response.body unless response.nil?
613
617
  end
614
618
 
@@ -623,8 +627,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01
623
627
  #
624
628
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
625
629
  #
626
- def list_next_with_http_info(next_page_link, custom_headers = nil)
627
- list_next_async(next_page_link, custom_headers).value!
630
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
631
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
628
632
  end
629
633
 
630
634
  #
@@ -638,11 +642,12 @@ module Azure::KeyVault::Mgmt::V2015_06_01
638
642
  #
639
643
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
640
644
  #
641
- def list_next_async(next_page_link, custom_headers = nil)
645
+ def list_next_async(next_page_link, custom_headers:nil)
642
646
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
643
647
 
644
648
 
645
649
  request_headers = {}
650
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
646
651
 
647
652
  # Set Headers
648
653
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -698,12 +703,12 @@ module Azure::KeyVault::Mgmt::V2015_06_01
698
703
  #
699
704
  # @return [VaultListResult] which provide lazy access to pages of the response.
700
705
  #
701
- def list_by_resource_group_as_lazy(resource_group_name, top = nil, custom_headers = nil)
702
- response = list_by_resource_group_async(resource_group_name, top, custom_headers).value!
706
+ def list_by_resource_group_as_lazy(resource_group_name, top:nil, custom_headers:nil)
707
+ response = list_by_resource_group_async(resource_group_name, top:top, custom_headers:custom_headers).value!
703
708
  unless response.nil?
704
709
  page = response.body
705
710
  page.next_method = Proc.new do |next_page_link|
706
- list_by_resource_group_next_async(next_page_link, custom_headers)
711
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
707
712
  end
708
713
  page
709
714
  end
@@ -720,12 +725,12 @@ module Azure::KeyVault::Mgmt::V2015_06_01
720
725
  # @return [ResourceListResult] which provide lazy access to pages of the
721
726
  # response.
722
727
  #
723
- def list_as_lazy(top = nil, custom_headers = nil)
724
- response = list_async(top, custom_headers).value!
728
+ def list_as_lazy(top:nil, custom_headers:nil)
729
+ response = list_async(top:top, custom_headers:custom_headers).value!
725
730
  unless response.nil?
726
731
  page = response.body
727
732
  page.next_method = Proc.new do |next_page_link|
728
- list_next_async(next_page_link, custom_headers)
733
+ list_next_async(next_page_link, custom_headers:custom_headers)
729
734
  end
730
735
  page
731
736
  end
@@ -21,20 +21,32 @@ require 'ms_rest_azure'
21
21
 
22
22
  module Azure::KeyVault::Mgmt::V2016_10_01
23
23
  autoload :Vaults, '2016-10-01/generated/azure_mgmt_key_vault/vaults.rb'
24
+ autoload :Operations, '2016-10-01/generated/azure_mgmt_key_vault/operations.rb'
24
25
  autoload :KeyVaultManagementClient, '2016-10-01/generated/azure_mgmt_key_vault/key_vault_management_client.rb'
25
26
 
26
27
  module Models
27
- autoload :VaultCreateOrUpdateParameters, '2016-10-01/generated/azure_mgmt_key_vault/models/vault_create_or_update_parameters.rb'
28
- autoload :Permissions, '2016-10-01/generated/azure_mgmt_key_vault/models/permissions.rb'
29
28
  autoload :DeletedVault, '2016-10-01/generated/azure_mgmt_key_vault/models/deleted_vault.rb'
30
- autoload :VaultProperties, '2016-10-01/generated/azure_mgmt_key_vault/models/vault_properties.rb'
31
29
  autoload :VaultListResult, '2016-10-01/generated/azure_mgmt_key_vault/models/vault_list_result.rb'
32
- autoload :Sku, '2016-10-01/generated/azure_mgmt_key_vault/models/sku.rb'
30
+ autoload :Permissions, '2016-10-01/generated/azure_mgmt_key_vault/models/permissions.rb'
33
31
  autoload :DeletedVaultListResult, '2016-10-01/generated/azure_mgmt_key_vault/models/deleted_vault_list_result.rb'
34
- autoload :DeletedVaultProperties, '2016-10-01/generated/azure_mgmt_key_vault/models/deleted_vault_properties.rb'
32
+ autoload :VaultProperties, '2016-10-01/generated/azure_mgmt_key_vault/models/vault_properties.rb'
35
33
  autoload :Resource, '2016-10-01/generated/azure_mgmt_key_vault/models/resource.rb'
36
- autoload :AccessPolicyEntry, '2016-10-01/generated/azure_mgmt_key_vault/models/access_policy_entry.rb'
34
+ autoload :VaultAccessPolicyProperties, '2016-10-01/generated/azure_mgmt_key_vault/models/vault_access_policy_properties.rb'
37
35
  autoload :ResourceListResult, '2016-10-01/generated/azure_mgmt_key_vault/models/resource_list_result.rb'
36
+ autoload :VaultCreateOrUpdateParameters, '2016-10-01/generated/azure_mgmt_key_vault/models/vault_create_or_update_parameters.rb'
37
+ autoload :VaultCheckNameAvailabilityParameters, '2016-10-01/generated/azure_mgmt_key_vault/models/vault_check_name_availability_parameters.rb'
38
+ autoload :VaultAccessPolicyParameters, '2016-10-01/generated/azure_mgmt_key_vault/models/vault_access_policy_parameters.rb'
39
+ autoload :CheckNameAvailabilityResult, '2016-10-01/generated/azure_mgmt_key_vault/models/check_name_availability_result.rb'
40
+ autoload :Sku, '2016-10-01/generated/azure_mgmt_key_vault/models/sku.rb'
41
+ autoload :OperationDisplay, '2016-10-01/generated/azure_mgmt_key_vault/models/operation_display.rb'
42
+ autoload :VaultPatchProperties, '2016-10-01/generated/azure_mgmt_key_vault/models/vault_patch_properties.rb'
43
+ autoload :LogSpecification, '2016-10-01/generated/azure_mgmt_key_vault/models/log_specification.rb'
44
+ autoload :VaultPatchParameters, '2016-10-01/generated/azure_mgmt_key_vault/models/vault_patch_parameters.rb'
45
+ autoload :ServiceSpecification, '2016-10-01/generated/azure_mgmt_key_vault/models/service_specification.rb'
46
+ autoload :AccessPolicyEntry, '2016-10-01/generated/azure_mgmt_key_vault/models/access_policy_entry.rb'
47
+ autoload :Operation, '2016-10-01/generated/azure_mgmt_key_vault/models/operation.rb'
48
+ autoload :DeletedVaultProperties, '2016-10-01/generated/azure_mgmt_key_vault/models/deleted_vault_properties.rb'
49
+ autoload :OperationListResult, '2016-10-01/generated/azure_mgmt_key_vault/models/operation_list_result.rb'
38
50
  autoload :Vault, '2016-10-01/generated/azure_mgmt_key_vault/models/vault.rb'
39
51
  autoload :SkuName, '2016-10-01/generated/azure_mgmt_key_vault/models/sku_name.rb'
40
52
  autoload :KeyPermissions, '2016-10-01/generated/azure_mgmt_key_vault/models/key_permissions.rb'
@@ -42,5 +54,7 @@ module Azure::KeyVault::Mgmt::V2016_10_01
42
54
  autoload :CertificatePermissions, '2016-10-01/generated/azure_mgmt_key_vault/models/certificate_permissions.rb'
43
55
  autoload :StoragePermissions, '2016-10-01/generated/azure_mgmt_key_vault/models/storage_permissions.rb'
44
56
  autoload :CreateMode, '2016-10-01/generated/azure_mgmt_key_vault/models/create_mode.rb'
57
+ autoload :Reason, '2016-10-01/generated/azure_mgmt_key_vault/models/reason.rb'
58
+ autoload :AccessPolicyUpdateKind, '2016-10-01/generated/azure_mgmt_key_vault/models/access_policy_update_kind.rb'
45
59
  end
46
60
  end
@@ -17,7 +17,7 @@ module Azure::KeyVault::Mgmt::V2016_10_01
17
17
  # @return Credentials needed for the client to connect to Azure.
18
18
  attr_reader :credentials
19
19
 
20
- # @return [String] Gets subscription credentials which uniquely identify
20
+ # @return [String] Subscription credentials which uniquely identify
21
21
  # Microsoft Azure subscription. The subscription ID forms part of the URI
22
22
  # for every service call.
23
23
  attr_accessor :subscription_id
@@ -39,6 +39,9 @@ module Azure::KeyVault::Mgmt::V2016_10_01
39
39
  # @return [Vaults] vaults
40
40
  attr_reader :vaults
41
41
 
42
+ # @return [Operations] operations
43
+ attr_reader :operations
44
+
42
45
  #
43
46
  # Creates initializes a new instance of the KeyVaultManagementClient class.
44
47
  # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
@@ -53,6 +56,7 @@ module Azure::KeyVault::Mgmt::V2016_10_01
53
56
  @credentials = credentials
54
57
 
55
58
  @vaults = Vaults.new(self)
59
+ @operations = Operations.new(self)
56
60
  @api_version = '2016-10-01'
57
61
  @accept_language = 'en-US'
58
62
  @long_running_operation_retry_timeout = 30
@@ -106,6 +110,9 @@ module Azure::KeyVault::Mgmt::V2016_10_01
106
110
  fail ArgumentError, 'path is nil' if path.nil?
107
111
 
108
112
  request_url = options[:base_url] || @base_url
113
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
114
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
115
+ end
109
116
 
110
117
  request_headers = @request_headers
111
118
  request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
@@ -122,7 +129,7 @@ module Azure::KeyVault::Mgmt::V2016_10_01
122
129
  #
123
130
  def add_telemetry
124
131
  sdk_information = 'azure_mgmt_key_vault'
125
- sdk_information = "#{sdk_information}/0.15.2"
132
+ sdk_information = "#{sdk_information}/0.16.0"
126
133
  add_user_agent_information(sdk_information)
127
134
  end
128
135
  end
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::KeyVault::Mgmt::V2016_10_01
7
+ module Models
8
+ #
9
+ # Defines values for AccessPolicyUpdateKind
10
+ #
11
+ module AccessPolicyUpdateKind
12
+ Add = "add"
13
+ Replace = "replace"
14
+ Remove = "remove"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,77 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::KeyVault::Mgmt::V2016_10_01
7
+ module Models
8
+ #
9
+ # The CheckNameAvailability operation response.
10
+ #
11
+ class CheckNameAvailabilityResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Boolean] A boolean value that indicates whether the name is
16
+ # available for you to use. If true, the name is available. If false, the
17
+ # name has already been taken or is invalid and cannot be used.
18
+ attr_accessor :name_available
19
+
20
+ # @return [Reason] The reason that a vault name could not be used. The
21
+ # Reason element is only returned if NameAvailable is false. Possible
22
+ # values include: 'AccountNameInvalid', 'AlreadyExists'
23
+ attr_accessor :reason
24
+
25
+ # @return [String] An error message explaining the Reason value in more
26
+ # detail.
27
+ attr_accessor :message
28
+
29
+
30
+ #
31
+ # Mapper for CheckNameAvailabilityResult class as Ruby Hash.
32
+ # This will be used for serialization/deserialization.
33
+ #
34
+ def self.mapper()
35
+ {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'CheckNameAvailabilityResult',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'CheckNameAvailabilityResult',
42
+ model_properties: {
43
+ name_available: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ read_only: true,
47
+ serialized_name: 'nameAvailable',
48
+ type: {
49
+ name: 'Boolean'
50
+ }
51
+ },
52
+ reason: {
53
+ client_side_validation: true,
54
+ required: false,
55
+ read_only: true,
56
+ serialized_name: 'reason',
57
+ type: {
58
+ name: 'Enum',
59
+ module: 'Reason'
60
+ }
61
+ },
62
+ message: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ read_only: true,
66
+ serialized_name: 'message',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+ end
75
+ end
76
+ end
77
+ end