azure_mgmt_key_vault 0.17.1 → 0.17.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2015-06-01/generated/azure_mgmt_key_vault/key_vault_management_client.rb +1 -1
  3. data/lib/2015-06-01/generated/azure_mgmt_key_vault/models/resource_list_result.rb +1 -1
  4. data/lib/2015-06-01/generated/azure_mgmt_key_vault/models/vault_list_result.rb +1 -1
  5. data/lib/2015-06-01/generated/azure_mgmt_key_vault/vaults.rb +14 -0
  6. data/lib/2016-10-01/generated/azure_mgmt_key_vault/key_vault_management_client.rb +1 -1
  7. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/deleted_vault_list_result.rb +1 -1
  8. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/operation_list_result.rb +1 -1
  9. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/resource_list_result.rb +1 -1
  10. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_list_result.rb +1 -1
  11. data/lib/2016-10-01/generated/azure_mgmt_key_vault/operations.rb +4 -0
  12. data/lib/2016-10-01/generated/azure_mgmt_key_vault/vaults.rb +32 -0
  13. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault.rb +74 -0
  14. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/key_vault_management_client.rb +141 -0
  15. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/access_policy_entry.rb +86 -0
  16. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/access_policy_update_kind.rb +17 -0
  17. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/attributes.rb +92 -0
  18. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/certificate_permissions.rb +30 -0
  19. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/check_name_availability_result.rb +77 -0
  20. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/create_mode.rb +16 -0
  21. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/deleted_vault.rb +83 -0
  22. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/deleted_vault_list_result.rb +98 -0
  23. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/deleted_vault_properties.rb +103 -0
  24. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/iprule.rb +49 -0
  25. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/key_permissions.rb +30 -0
  26. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/log_specification.rb +68 -0
  27. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/network_rule_action.rb +16 -0
  28. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/network_rule_bypass_options.rb +16 -0
  29. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/network_rule_set.rb +103 -0
  30. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/operation.rb +83 -0
  31. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/operation_display.rb +79 -0
  32. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/operation_list_result.rb +100 -0
  33. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/permissions.rb +111 -0
  34. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/reason.rb +16 -0
  35. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/resource.rb +113 -0
  36. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/resource_list_result.rb +98 -0
  37. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/secret.rb +98 -0
  38. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/secret_attributes.rb +77 -0
  39. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/secret_create_or_update_parameters.rb +67 -0
  40. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/secret_list_result.rb +98 -0
  41. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/secret_patch_parameters.rb +67 -0
  42. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/secret_patch_properties.rb +69 -0
  43. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/secret_permissions.rb +22 -0
  44. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/secret_properties.rb +97 -0
  45. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/service_specification.rb +55 -0
  46. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/sku.rb +62 -0
  47. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/sku_name.rb +16 -0
  48. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/storage_permissions.rb +28 -0
  49. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/vault.rb +99 -0
  50. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/vault_access_policy_parameters.rb +95 -0
  51. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/vault_access_policy_properties.rb +57 -0
  52. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/vault_check_name_availability_parameters.rb +60 -0
  53. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/vault_create_or_update_parameters.rb +80 -0
  54. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/vault_list_result.rb +98 -0
  55. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/vault_patch_parameters.rb +67 -0
  56. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/vault_patch_properties.rb +175 -0
  57. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/vault_properties.rb +188 -0
  58. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/models/virtual_network_rule.rb +48 -0
  59. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/module_definition.rb +9 -0
  60. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/operations.rb +220 -0
  61. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/secrets.rb +624 -0
  62. data/lib/2018-02-14-preview/generated/azure_mgmt_key_vault/vaults.rb +1771 -0
  63. data/lib/2018-02-14/generated/azure_mgmt_key_vault/key_vault_management_client.rb +1 -1
  64. data/lib/2018-02-14/generated/azure_mgmt_key_vault/models/deleted_vault_list_result.rb +1 -1
  65. data/lib/2018-02-14/generated/azure_mgmt_key_vault/models/operation_list_result.rb +1 -1
  66. data/lib/2018-02-14/generated/azure_mgmt_key_vault/models/resource_list_result.rb +1 -1
  67. data/lib/2018-02-14/generated/azure_mgmt_key_vault/models/vault_list_result.rb +1 -1
  68. data/lib/2018-02-14/generated/azure_mgmt_key_vault/operations.rb +4 -0
  69. data/lib/2018-02-14/generated/azure_mgmt_key_vault/vaults.rb +32 -0
  70. data/lib/azure_mgmt_key_vault.rb +6 -2
  71. data/lib/profiles/v2017_03_09/keyvault_module_definition.rb +8 -0
  72. data/lib/profiles/v2017_03_09/keyvault_v2017_03_09_profile_client.rb +40 -0
  73. data/lib/profiles/v2017_03_09/modules/keyvault_profile_module.rb +187 -0
  74. data/lib/profiles/v2018_03_01/keyvault_module_definition.rb +8 -0
  75. data/lib/profiles/v2018_03_01/keyvault_v2018_03_01_profile_client.rb +40 -0
  76. data/lib/profiles/v2018_03_01/modules/keyvault_profile_module.rb +187 -0
  77. data/lib/profiles/v2019_03_01_hybrid/keyvault_module_definition.rb +8 -0
  78. data/lib/profiles/v2019_03_01_hybrid/keyvault_v2019_03_01_hybrid_profile_client.rb +40 -0
  79. data/lib/profiles/v2019_03_01_hybrid/modules/keyvault_profile_module.rb +187 -0
  80. data/lib/version.rb +1 -1
  81. metadata +64 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 4c2ef91f83a9df16106d7b139a80577062ad083e
4
- data.tar.gz: 34f8e7e0d02f941b72c95d97632851e82bec501d
2
+ SHA256:
3
+ metadata.gz: 31617948f447c80f75b9962217e8920e215d132d283eb0aaf83c920ede38e176
4
+ data.tar.gz: d049e23c15ae3cd05240f4203239e76c0691d405cc2a5cd8b51662f2d2e18c3e
5
5
  SHA512:
6
- metadata.gz: c6c89b13a1aea40c6d90fe6a40a2537621ed775a6b0e7cc3081470b2713bb3fef66520fd6a317108c2c0a64c5953b454745583c857cbfef20677dd8fa96c6b4d
7
- data.tar.gz: c9a88f5acadb6fe26f5967541d369b30bd2c03060b070969dfd5019525920fd4cf665ce5fb8ee9a813542cddd1281dc25daa343fa4b14acab5ca0cddd8cee2c6
6
+ metadata.gz: 6335381594be54aaf047c40030711cbff2d2aa5a07f4ddb29cdae56530c86a244ac94d707405c3877b85faf5af88e34f1357d37e867e314334cf0f2012693d1b
7
+ data.tar.gz: 90dcd21291fa7915bc9625104987fa24b0f0fa65ee79184a2cb572aa8513f07c5475279d4b137ac801944f93d73af306b655ef8dc312f5766ef19cfb102917da
@@ -126,7 +126,7 @@ module Azure::KeyVault::Mgmt::V2015_06_01
126
126
  #
127
127
  def add_telemetry
128
128
  sdk_information = 'azure_mgmt_key_vault'
129
- sdk_information = "#{sdk_information}/0.17.1"
129
+ sdk_information = "#{sdk_information}/0.17.6"
130
130
  add_user_agent_information(sdk_information)
131
131
  end
132
132
  end
@@ -30,7 +30,7 @@ module Azure::KeyVault::Mgmt::V2015_06_01
30
30
  def get_all_items
31
31
  items = @value
32
32
  page = self
33
- while page.next_link != nil do
33
+ while page.next_link != nil && !page.next_link.strip.empty? do
34
34
  page = page.get_next_page
35
35
  items.concat(page.value)
36
36
  end
@@ -30,7 +30,7 @@ module Azure::KeyVault::Mgmt::V2015_06_01
30
30
  def get_all_items
31
31
  items = @value
32
32
  page = self
33
- while page.next_link != nil do
33
+ while page.next_link != nil && !page.next_link.strip.empty? do
34
34
  page = page.get_next_page
35
35
  items.concat(page.value)
36
36
  end
@@ -115,6 +115,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01
115
115
  end
116
116
 
117
117
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
118
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
119
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
118
120
  # Deserialize Response
119
121
  if status_code == 201
120
122
  begin
@@ -219,6 +221,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01
219
221
  end
220
222
 
221
223
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
224
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
225
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
222
226
 
223
227
  result
224
228
  end
@@ -304,6 +308,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01
304
308
  end
305
309
 
306
310
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
311
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
312
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
307
313
  # Deserialize Response
308
314
  if status_code == 200
309
315
  begin
@@ -401,6 +407,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01
401
407
  end
402
408
 
403
409
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
410
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
411
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
404
412
  # Deserialize Response
405
413
  if status_code == 200
406
414
  begin
@@ -492,6 +500,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01
492
500
  end
493
501
 
494
502
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
503
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
504
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
495
505
  # Deserialize Response
496
506
  if status_code == 200
497
507
  begin
@@ -583,6 +593,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01
583
593
  end
584
594
 
585
595
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
596
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
597
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
586
598
  # Deserialize Response
587
599
  if status_code == 200
588
600
  begin
@@ -674,6 +686,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01
674
686
  end
675
687
 
676
688
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
689
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
690
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
677
691
  # Deserialize Response
678
692
  if status_code == 200
679
693
  begin
@@ -130,7 +130,7 @@ module Azure::KeyVault::Mgmt::V2016_10_01
130
130
  #
131
131
  def add_telemetry
132
132
  sdk_information = 'azure_mgmt_key_vault'
133
- sdk_information = "#{sdk_information}/0.17.1"
133
+ sdk_information = "#{sdk_information}/0.17.6"
134
134
  add_user_agent_information(sdk_information)
135
135
  end
136
136
  end
@@ -30,7 +30,7 @@ module Azure::KeyVault::Mgmt::V2016_10_01
30
30
  def get_all_items
31
31
  items = @value
32
32
  page = self
33
- while page.next_link != nil do
33
+ while page.next_link != nil && !page.next_link.strip.empty? do
34
34
  page = page.get_next_page
35
35
  items.concat(page.value)
36
36
  end
@@ -32,7 +32,7 @@ module Azure::KeyVault::Mgmt::V2016_10_01
32
32
  def get_all_items
33
33
  items = @value
34
34
  page = self
35
- while page.next_link != nil do
35
+ while page.next_link != nil && !page.next_link.strip.empty? do
36
36
  page = page.get_next_page
37
37
  items.concat(page.value)
38
38
  end
@@ -30,7 +30,7 @@ module Azure::KeyVault::Mgmt::V2016_10_01
30
30
  def get_all_items
31
31
  items = @value
32
32
  page = self
33
- while page.next_link != nil do
33
+ while page.next_link != nil && !page.next_link.strip.empty? do
34
34
  page = page.get_next_page
35
35
  items.concat(page.value)
36
36
  end
@@ -30,7 +30,7 @@ module Azure::KeyVault::Mgmt::V2016_10_01
30
30
  def get_all_items
31
31
  items = @value
32
32
  page = self
33
- while page.next_link != nil do
33
+ while page.next_link != nil && !page.next_link.strip.empty? do
34
34
  page = page.get_next_page
35
35
  items.concat(page.value)
36
36
  end
@@ -87,6 +87,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01
87
87
  end
88
88
 
89
89
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
90
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
91
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
90
92
  # Deserialize Response
91
93
  if status_code == 200
92
94
  begin
@@ -175,6 +177,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01
175
177
  end
176
178
 
177
179
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
180
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
181
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
178
182
  # Deserialize Response
179
183
  if status_code == 200
180
184
  begin
@@ -115,6 +115,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01
115
115
  end
116
116
 
117
117
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
118
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
119
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
118
120
  # Deserialize Response
119
121
  if status_code == 201
120
122
  begin
@@ -232,6 +234,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01
232
234
  end
233
235
 
234
236
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
237
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
238
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
235
239
  # Deserialize Response
236
240
  if status_code == 201
237
241
  begin
@@ -336,6 +340,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01
336
340
  end
337
341
 
338
342
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
343
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
344
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
339
345
 
340
346
  result
341
347
  end
@@ -421,6 +427,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01
421
427
  end
422
428
 
423
429
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
430
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
431
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
424
432
  # Deserialize Response
425
433
  if status_code == 200
426
434
  begin
@@ -538,6 +546,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01
538
546
  end
539
547
 
540
548
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
549
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
550
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
541
551
  # Deserialize Response
542
552
  if status_code == 201
543
553
  begin
@@ -645,6 +655,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01
645
655
  end
646
656
 
647
657
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
658
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
659
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
648
660
  # Deserialize Response
649
661
  if status_code == 200
650
662
  begin
@@ -735,6 +747,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01
735
747
  end
736
748
 
737
749
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
750
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
751
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
738
752
  # Deserialize Response
739
753
  if status_code == 200
740
754
  begin
@@ -819,6 +833,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01
819
833
  end
820
834
 
821
835
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
836
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
837
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
822
838
  # Deserialize Response
823
839
  if status_code == 200
824
840
  begin
@@ -911,6 +927,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01
911
927
  end
912
928
 
913
929
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
930
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
931
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
914
932
  # Deserialize Response
915
933
  if status_code == 200
916
934
  begin
@@ -1041,6 +1059,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01
1041
1059
  end
1042
1060
 
1043
1061
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1062
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1063
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1044
1064
  # Deserialize Response
1045
1065
  if status_code == 200
1046
1066
  begin
@@ -1139,6 +1159,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01
1139
1159
  end
1140
1160
 
1141
1161
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1162
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1163
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1142
1164
  # Deserialize Response
1143
1165
  if status_code == 200
1144
1166
  begin
@@ -1233,6 +1255,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01
1233
1255
  end
1234
1256
 
1235
1257
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1258
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1259
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1236
1260
 
1237
1261
  result
1238
1262
  end
@@ -1314,6 +1338,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01
1314
1338
  end
1315
1339
 
1316
1340
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1341
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1342
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1317
1343
  # Deserialize Response
1318
1344
  if status_code == 200
1319
1345
  begin
@@ -1405,6 +1431,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01
1405
1431
  end
1406
1432
 
1407
1433
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1434
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1435
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1408
1436
  # Deserialize Response
1409
1437
  if status_code == 200
1410
1438
  begin
@@ -1493,6 +1521,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01
1493
1521
  end
1494
1522
 
1495
1523
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1524
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1525
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1496
1526
  # Deserialize Response
1497
1527
  if status_code == 200
1498
1528
  begin
@@ -1584,6 +1614,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01
1584
1614
  end
1585
1615
 
1586
1616
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1617
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1618
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1587
1619
  # Deserialize Response
1588
1620
  if status_code == 200
1589
1621
  begin
@@ -0,0 +1,74 @@
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
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '2018-02-14-preview/generated/azure_mgmt_key_vault/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::KeyVault::Mgmt::V2018_02_14_preview
23
+ autoload :Vaults, '2018-02-14-preview/generated/azure_mgmt_key_vault/vaults.rb'
24
+ autoload :Operations, '2018-02-14-preview/generated/azure_mgmt_key_vault/operations.rb'
25
+ autoload :Secrets, '2018-02-14-preview/generated/azure_mgmt_key_vault/secrets.rb'
26
+ autoload :KeyVaultManagementClient, '2018-02-14-preview/generated/azure_mgmt_key_vault/key_vault_management_client.rb'
27
+
28
+ module Models
29
+ autoload :Resource, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/resource.rb'
30
+ autoload :Sku, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/sku.rb'
31
+ autoload :ResourceListResult, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/resource_list_result.rb'
32
+ autoload :AccessPolicyEntry, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/access_policy_entry.rb'
33
+ autoload :VaultCheckNameAvailabilityParameters, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/vault_check_name_availability_parameters.rb'
34
+ autoload :VirtualNetworkRule, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/virtual_network_rule.rb'
35
+ autoload :CheckNameAvailabilityResult, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/check_name_availability_result.rb'
36
+ autoload :VaultProperties, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/vault_properties.rb'
37
+ autoload :OperationDisplay, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/operation_display.rb'
38
+ autoload :VaultAccessPolicyProperties, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/vault_access_policy_properties.rb'
39
+ autoload :LogSpecification, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/log_specification.rb'
40
+ autoload :VaultCreateOrUpdateParameters, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/vault_create_or_update_parameters.rb'
41
+ autoload :ServiceSpecification, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/service_specification.rb'
42
+ autoload :VaultAccessPolicyParameters, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/vault_access_policy_parameters.rb'
43
+ autoload :Operation, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/operation.rb'
44
+ autoload :DeletedVault, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/deleted_vault.rb'
45
+ autoload :OperationListResult, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/operation_list_result.rb'
46
+ autoload :DeletedVaultListResult, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/deleted_vault_list_result.rb'
47
+ autoload :Attributes, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/attributes.rb'
48
+ autoload :IPRule, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/iprule.rb'
49
+ autoload :NetworkRuleSet, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/network_rule_set.rb'
50
+ autoload :VaultPatchProperties, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/vault_patch_properties.rb'
51
+ autoload :VaultPatchParameters, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/vault_patch_parameters.rb'
52
+ autoload :SecretProperties, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/secret_properties.rb'
53
+ autoload :VaultListResult, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/vault_list_result.rb'
54
+ autoload :SecretPatchProperties, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/secret_patch_properties.rb'
55
+ autoload :DeletedVaultProperties, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/deleted_vault_properties.rb'
56
+ autoload :SecretCreateOrUpdateParameters, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/secret_create_or_update_parameters.rb'
57
+ autoload :Permissions, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/permissions.rb'
58
+ autoload :SecretPatchParameters, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/secret_patch_parameters.rb'
59
+ autoload :SecretListResult, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/secret_list_result.rb'
60
+ autoload :Vault, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/vault.rb'
61
+ autoload :SecretAttributes, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/secret_attributes.rb'
62
+ autoload :Secret, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/secret.rb'
63
+ autoload :SkuName, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/sku_name.rb'
64
+ autoload :KeyPermissions, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/key_permissions.rb'
65
+ autoload :SecretPermissions, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/secret_permissions.rb'
66
+ autoload :CertificatePermissions, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/certificate_permissions.rb'
67
+ autoload :StoragePermissions, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/storage_permissions.rb'
68
+ autoload :CreateMode, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/create_mode.rb'
69
+ autoload :NetworkRuleBypassOptions, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/network_rule_bypass_options.rb'
70
+ autoload :NetworkRuleAction, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/network_rule_action.rb'
71
+ autoload :Reason, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/reason.rb'
72
+ autoload :AccessPolicyUpdateKind, '2018-02-14-preview/generated/azure_mgmt_key_vault/models/access_policy_update_kind.rb'
73
+ end
74
+ end
@@ -0,0 +1,141 @@
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::V2018_02_14_preview
7
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class KeyVaultManagementClient < MsRestAzure::AzureServiceClient
11
+ include MsRestAzure
12
+ include MsRestAzure::Serialization
13
+
14
+ # @return [String] the base URI of the service.
15
+ attr_accessor :base_url
16
+
17
+ # @return Credentials needed for the client to connect to Azure.
18
+ attr_reader :credentials
19
+
20
+ # @return [String] Subscription credentials which uniquely identify
21
+ # Microsoft Azure subscription. The subscription ID forms part of the URI
22
+ # for every service call.
23
+ attr_accessor :subscription_id
24
+
25
+ # @return [String] Client Api Version.
26
+ attr_reader :api_version
27
+
28
+ # @return [String] The preferred language for the response.
29
+ attr_accessor :accept_language
30
+
31
+ # @return [Integer] The retry timeout in seconds for Long Running
32
+ # Operations. Default value is 30.
33
+ attr_accessor :long_running_operation_retry_timeout
34
+
35
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
36
+ # generated. When set to true a unique x-ms-client-request-id value is
37
+ # generated and included in each request. Default is true.
38
+ attr_accessor :generate_client_request_id
39
+
40
+ # @return [Vaults] vaults
41
+ attr_reader :vaults
42
+
43
+ # @return [Operations] operations
44
+ attr_reader :operations
45
+
46
+ # @return [Secrets] secrets
47
+ attr_reader :secrets
48
+
49
+ #
50
+ # Creates initializes a new instance of the KeyVaultManagementClient class.
51
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
52
+ # @param base_url [String] the base URI of the service.
53
+ # @param options [Array] filters to be applied to the HTTP requests.
54
+ #
55
+ def initialize(credentials = nil, base_url = nil, options = nil)
56
+ super(credentials, options)
57
+ @base_url = base_url || 'https://management.azure.com'
58
+
59
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
60
+ @credentials = credentials
61
+
62
+ @vaults = Vaults.new(self)
63
+ @operations = Operations.new(self)
64
+ @secrets = Secrets.new(self)
65
+ @api_version = '2018-02-14-preview'
66
+ @accept_language = 'en-US'
67
+ @long_running_operation_retry_timeout = 30
68
+ @generate_client_request_id = true
69
+ add_telemetry
70
+ end
71
+
72
+ #
73
+ # Makes a request and returns the body of the response.
74
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
75
+ # @param path [String] the path, relative to {base_url}.
76
+ # @param options [Hash{String=>String}] specifying any request options like :body.
77
+ # @return [Hash{String=>String}] containing the body of the response.
78
+ # Example:
79
+ #
80
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
81
+ # path = "/path"
82
+ # options = {
83
+ # body: request_content,
84
+ # query_params: {'api-version' => '2016-02-01'}
85
+ # }
86
+ # result = @client.make_request(:put, path, options)
87
+ #
88
+ def make_request(method, path, options = {})
89
+ result = make_request_with_http_info(method, path, options)
90
+ result.body unless result.nil?
91
+ end
92
+
93
+ #
94
+ # Makes a request and returns the operation response.
95
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
96
+ # @param path [String] the path, relative to {base_url}.
97
+ # @param options [Hash{String=>String}] specifying any request options like :body.
98
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
99
+ #
100
+ def make_request_with_http_info(method, path, options = {})
101
+ result = make_request_async(method, path, options).value!
102
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
103
+ result
104
+ end
105
+
106
+ #
107
+ # Makes a request asynchronously.
108
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
109
+ # @param path [String] the path, relative to {base_url}.
110
+ # @param options [Hash{String=>String}] specifying any request options like :body.
111
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
112
+ #
113
+ def make_request_async(method, path, options = {})
114
+ fail ArgumentError, 'method is nil' if method.nil?
115
+ fail ArgumentError, 'path is nil' if path.nil?
116
+
117
+ request_url = options[:base_url] || @base_url
118
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
119
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
120
+ end
121
+
122
+ request_headers = @request_headers
123
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
124
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
125
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
126
+
127
+ super(request_url, method, path, options)
128
+ end
129
+
130
+
131
+ private
132
+ #
133
+ # Adds telemetry information.
134
+ #
135
+ def add_telemetry
136
+ sdk_information = 'azure_mgmt_key_vault'
137
+ sdk_information = "#{sdk_information}/0.17.6"
138
+ add_user_agent_information(sdk_information)
139
+ end
140
+ end
141
+ end