azure_key_vault 0.18.1 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-06-01/generated/azure_key_vault/key_vault_client.rb +38 -38
  3. data/lib/2015-06-01/generated/azure_key_vault/models/certificate_import_parameters.rb +1 -1
  4. data/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb +46 -46
  5. data/lib/2016-10-01/generated/azure_key_vault/models/certificate_import_parameters.rb +1 -1
  6. data/lib/7.0-preview/generated/azure_key_vault/key_vault_client.rb +50 -50
  7. data/lib/7.0-preview/generated/azure_key_vault/models/certificate_import_parameters.rb +1 -1
  8. data/lib/7.0/generated/azure_key_vault/key_vault_client.rb +49 -49
  9. data/lib/7.0/generated/azure_key_vault/models/certificate_import_parameters.rb +1 -1
  10. data/lib/7.1-preview/generated/azure_key_vault/key_vault_client.rb +50 -50
  11. data/lib/7.1-preview/generated/azure_key_vault/models/certificate_import_parameters.rb +1 -1
  12. data/lib/7.1/generated/azure_key_vault/key_vault_client.rb +50 -50
  13. data/lib/7.1/generated/azure_key_vault/models/certificate_import_parameters.rb +1 -1
  14. data/lib/7.2-preview/generated/azure_key_vault.rb +56 -64
  15. data/lib/7.2-preview/generated/azure_key_vault/hsmsecurity_domain.rb +206 -49
  16. data/lib/7.2-preview/generated/azure_key_vault/key_vault_client.rb +68 -218
  17. data/lib/7.2-preview/generated/azure_key_vault/models/certificate_import_parameters.rb +1 -1
  18. data/lib/7.2-preview/generated/azure_key_vault/models/certificate_info_object.rb +1 -1
  19. data/lib/7.2-preview/generated/azure_key_vault/models/data_action.rb +43 -0
  20. data/lib/7.2-preview/generated/azure_key_vault/models/deleted_key_bundle.rb +0 -9
  21. data/lib/7.2-preview/generated/azure_key_vault/models/json_web_key_operation.rb +0 -1
  22. data/lib/7.2-preview/generated/azure_key_vault/models/key_attributes.rb +0 -11
  23. data/lib/7.2-preview/generated/azure_key_vault/models/key_bundle.rb +0 -13
  24. data/lib/7.2-preview/generated/azure_key_vault/models/key_create_parameters.rb +0 -13
  25. data/lib/7.2-preview/generated/azure_key_vault/models/key_import_parameters.rb +0 -13
  26. data/lib/7.2-preview/generated/azure_key_vault/models/key_operation_result.rb +36 -0
  27. data/lib/7.2-preview/generated/azure_key_vault/models/key_properties.rb +0 -11
  28. data/lib/7.2-preview/generated/azure_key_vault/models/key_update_parameters.rb +0 -13
  29. data/lib/7.2-preview/generated/azure_key_vault/models/permission.rb +10 -6
  30. data/lib/7.2-preview/generated/azure_key_vault/models/restore_operation_parameters.rb +2 -1
  31. data/lib/7.2-preview/generated/azure_key_vault/models/role_assignment_properties_with_scope.rb +1 -1
  32. data/lib/7.2-preview/generated/azure_key_vault/models/role_definition.rb +6 -4
  33. data/lib/7.2-preview/generated/azure_key_vault/models/{security_domain_upload_object.rb → role_definition_create_parameters.rb} +10 -10
  34. data/lib/7.2-preview/generated/azure_key_vault/models/role_definition_properties.rb +108 -0
  35. data/lib/7.2-preview/generated/azure_key_vault/models/role_definition_type.rb +15 -0
  36. data/lib/7.2-preview/generated/azure_key_vault/models/{key_release_policy_version.rb → role_scope.rb} +4 -3
  37. data/lib/7.2-preview/generated/azure_key_vault/models/{key_release_condition_condition.rb → role_type.rb} +4 -3
  38. data/lib/7.2-preview/generated/azure_key_vault/models/security_domain_json_web_key.rb +1 -1
  39. data/lib/7.2-preview/generated/azure_key_vault/models/security_domain_object.rb +6 -7
  40. data/lib/7.2-preview/generated/azure_key_vault/models/selective_key_restore_operation_parameters.rb +2 -1
  41. data/lib/7.2-preview/generated/azure_key_vault/role_definitions.rb +335 -0
  42. data/lib/azure_key_vault.rb +5 -5
  43. data/lib/profiles/latest/modules/keyvault_profile_module.rb +180 -212
  44. data/lib/version.rb +1 -1
  45. metadata +8 -16
  46. data/lib/7.2-preview/generated/azure_key_vault/models/enc_data_set.rb +0 -72
  47. data/lib/7.2-preview/generated/azure_key_vault/models/enc_data_set_item.rb +0 -58
  48. data/lib/7.2-preview/generated/azure_key_vault/models/key.rb +0 -58
  49. data/lib/7.2-preview/generated/azure_key_vault/models/key_export_parameters.rb +0 -49
  50. data/lib/7.2-preview/generated/azure_key_vault/models/key_release_authority.rb +0 -70
  51. data/lib/7.2-preview/generated/azure_key_vault/models/key_release_condition.rb +0 -76
  52. data/lib/7.2-preview/generated/azure_key_vault/models/key_release_policy.rb +0 -68
  53. data/lib/7.2-preview/generated/azure_key_vault/models/security_domain_object_data.rb +0 -71
  54. data/lib/7.2-preview/generated/azure_key_vault/models/security_domain_object_data_shared_keys.rb +0 -87
  55. data/lib/7.2-preview/generated/azure_key_vault/models/security_domain_upload_object_value.rb +0 -61
  56. data/lib/7.2-preview/generated/azure_key_vault/models/security_domain_upload_object_value_wrapped_key.rb +0 -59
@@ -1353,10 +1353,10 @@ module Azure::KeyVault::V7_2_preview
1353
1353
  fail ArgumentError, "'certificate_name' should satisfy the constraint - 'Pattern': '^[0-9a-zA-Z-]+$'" if !certificate_name.nil? && certificate_name.match(Regexp.new('^^[0-9a-zA-Z-]+$$')).nil?
1354
1354
  fail ArgumentError, 'api_version is nil' if api_version.nil?
1355
1355
 
1356
- parameters = CertificateCreateParameters.new
1356
+ parameters = Azure::KeyVault::V7_2_preview::Models::CertificateCreateParameters.new
1357
1357
  unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil?
1358
- parameters.CertificatePolicy = certificate_policy
1359
- parameters.CertificateAttributes = certificate_attributes
1358
+ parameters.certificate_policy = certificate_policy
1359
+ parameters.certificate_attributes = certificate_attributes
1360
1360
  parameters.tags = tags
1361
1361
  end
1362
1362
 
@@ -1431,7 +1431,7 @@ module Azure::KeyVault::V7_2_preview
1431
1431
  # @param base64encoded_certificate [String] Base64 encoded representation of
1432
1432
  # the certificate object to import. This certificate needs to contain the
1433
1433
  # private key.
1434
- # @param password [String] If the private key in base64EncodedCertificate is
1434
+ # @param password [String] If the private key in base64encoded_certificate is
1435
1435
  # encrypted, the password used for encryption.
1436
1436
  # @param certificate_policy [CertificatePolicy] The management policy for the
1437
1437
  # certificate.
@@ -1464,7 +1464,7 @@ module Azure::KeyVault::V7_2_preview
1464
1464
  # @param base64encoded_certificate [String] Base64 encoded representation of
1465
1465
  # the certificate object to import. This certificate needs to contain the
1466
1466
  # private key.
1467
- # @param password [String] If the private key in base64EncodedCertificate is
1467
+ # @param password [String] If the private key in base64encoded_certificate is
1468
1468
  # encrypted, the password used for encryption.
1469
1469
  # @param certificate_policy [CertificatePolicy] The management policy for the
1470
1470
  # certificate.
@@ -1496,7 +1496,7 @@ module Azure::KeyVault::V7_2_preview
1496
1496
  # @param base64encoded_certificate [String] Base64 encoded representation of
1497
1497
  # the certificate object to import. This certificate needs to contain the
1498
1498
  # private key.
1499
- # @param password [String] If the private key in base64EncodedCertificate is
1499
+ # @param password [String] If the private key in base64encoded_certificate is
1500
1500
  # encrypted, the password used for encryption.
1501
1501
  # @param certificate_policy [CertificatePolicy] The management policy for the
1502
1502
  # certificate.
@@ -1516,12 +1516,12 @@ module Azure::KeyVault::V7_2_preview
1516
1516
  fail ArgumentError, 'api_version is nil' if api_version.nil?
1517
1517
  fail ArgumentError, 'base64encoded_certificate is nil' if base64encoded_certificate.nil?
1518
1518
 
1519
- parameters = CertificateImportParameters.new
1519
+ parameters = Azure::KeyVault::V7_2_preview::Models::CertificateImportParameters.new
1520
1520
  unless base64encoded_certificate.nil? && password.nil? && certificate_policy.nil? && certificate_attributes.nil? && tags.nil?
1521
- parameters.base64EncodedCertificate = base64encoded_certificate
1521
+ parameters.base64encoded_certificate = base64encoded_certificate
1522
1522
  parameters.password = password
1523
- parameters.CertificatePolicy = certificate_policy
1524
- parameters.CertificateAttributes = certificate_attributes
1523
+ parameters.certificate_policy = certificate_policy
1524
+ parameters.certificate_attributes = certificate_attributes
1525
1525
  parameters.tags = tags
1526
1526
  end
1527
1527
 
@@ -2014,10 +2014,10 @@ module Azure::KeyVault::V7_2_preview
2014
2014
  fail ArgumentError, 'certificate_version is nil' if certificate_version.nil?
2015
2015
  fail ArgumentError, 'api_version is nil' if api_version.nil?
2016
2016
 
2017
- parameters = CertificateUpdateParameters.new
2017
+ parameters = Azure::KeyVault::V7_2_preview::Models::CertificateUpdateParameters.new
2018
2018
  unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil?
2019
- parameters.CertificatePolicy = certificate_policy
2020
- parameters.CertificateAttributes = certificate_attributes
2019
+ parameters.certificate_policy = certificate_policy
2020
+ parameters.certificate_attributes = certificate_attributes
2021
2021
  parameters.tags = tags
2022
2022
  end
2023
2023
 
@@ -2616,10 +2616,10 @@ module Azure::KeyVault::V7_2_preview
2616
2616
  fail ArgumentError, 'api_version is nil' if api_version.nil?
2617
2617
  fail ArgumentError, 'x509certificates is nil' if x509certificates.nil?
2618
2618
 
2619
- parameters = CertificateMergeParameters.new
2619
+ parameters = Azure::KeyVault::V7_2_preview::Models::CertificateMergeParameters.new
2620
2620
  unless x509certificates.nil? && certificate_attributes.nil? && tags.nil?
2621
- parameters.x509Certificates = x509certificates
2622
- parameters.CertificateAttributes = certificate_attributes
2621
+ parameters.x509certificates = x509certificates
2622
+ parameters.certificate_attributes = certificate_attributes
2623
2623
  parameters.tags = tags
2624
2624
  end
2625
2625
 
@@ -2847,9 +2847,9 @@ module Azure::KeyVault::V7_2_preview
2847
2847
  fail ArgumentError, 'api_version is nil' if api_version.nil?
2848
2848
  fail ArgumentError, 'certificate_bundle_backup is nil' if certificate_bundle_backup.nil?
2849
2849
 
2850
- parameters = CertificateRestoreParameters.new
2850
+ parameters = Azure::KeyVault::V7_2_preview::Models::CertificateRestoreParameters.new
2851
2851
  unless certificate_bundle_backup.nil?
2852
- parameters.certificateBundleBackup = certificate_bundle_backup
2852
+ parameters.certificate_bundle_backup = certificate_bundle_backup
2853
2853
  end
2854
2854
 
2855
2855
  request_headers = {}
@@ -3390,15 +3390,13 @@ module Azure::KeyVault::V7_2_preview
3390
3390
  # @param curve [JsonWebKeyCurveName] Elliptic curve name. For valid values, see
3391
3391
  # JsonWebKeyCurveName. Possible values include: 'P-256', 'P-384', 'P-521',
3392
3392
  # 'P-256K'
3393
- # @param release_policy [KeyReleasePolicy] The policy rules under which the key
3394
- # can be exported.
3395
3393
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
3396
3394
  # will be added to the HTTP request.
3397
3395
  #
3398
3396
  # @return [KeyBundle] operation results.
3399
3397
  #
3400
- def create_key(vault_base_url, key_name, kty, key_size:nil, public_exponent:nil, key_ops:nil, key_attributes:nil, tags:nil, curve:nil, release_policy:nil, custom_headers:nil)
3401
- response = create_key_async(vault_base_url, key_name, kty, key_size:key_size, public_exponent:public_exponent, key_ops:key_ops, key_attributes:key_attributes, tags:tags, curve:curve, release_policy:release_policy, custom_headers:custom_headers).value!
3398
+ def create_key(vault_base_url, key_name, kty, key_size:nil, public_exponent:nil, key_ops:nil, key_attributes:nil, tags:nil, curve:nil, custom_headers:nil)
3399
+ response = create_key_async(vault_base_url, key_name, kty, key_size:key_size, public_exponent:public_exponent, key_ops:key_ops, key_attributes:key_attributes, tags:tags, curve:curve, custom_headers:custom_headers).value!
3402
3400
  response.body unless response.nil?
3403
3401
  end
3404
3402
 
@@ -3427,15 +3425,13 @@ module Azure::KeyVault::V7_2_preview
3427
3425
  # @param curve [JsonWebKeyCurveName] Elliptic curve name. For valid values, see
3428
3426
  # JsonWebKeyCurveName. Possible values include: 'P-256', 'P-384', 'P-521',
3429
3427
  # 'P-256K'
3430
- # @param release_policy [KeyReleasePolicy] The policy rules under which the key
3431
- # can be exported.
3432
3428
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
3433
3429
  # will be added to the HTTP request.
3434
3430
  #
3435
3431
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
3436
3432
  #
3437
- def create_key_with_http_info(vault_base_url, key_name, kty, key_size:nil, public_exponent:nil, key_ops:nil, key_attributes:nil, tags:nil, curve:nil, release_policy:nil, custom_headers:nil)
3438
- create_key_async(vault_base_url, key_name, kty, key_size:key_size, public_exponent:public_exponent, key_ops:key_ops, key_attributes:key_attributes, tags:tags, curve:curve, release_policy:release_policy, custom_headers:custom_headers).value!
3433
+ def create_key_with_http_info(vault_base_url, key_name, kty, key_size:nil, public_exponent:nil, key_ops:nil, key_attributes:nil, tags:nil, curve:nil, custom_headers:nil)
3434
+ create_key_async(vault_base_url, key_name, kty, key_size:key_size, public_exponent:public_exponent, key_ops:key_ops, key_attributes:key_attributes, tags:tags, curve:curve, custom_headers:custom_headers).value!
3439
3435
  end
3440
3436
 
3441
3437
  #
@@ -3463,14 +3459,12 @@ module Azure::KeyVault::V7_2_preview
3463
3459
  # @param curve [JsonWebKeyCurveName] Elliptic curve name. For valid values, see
3464
3460
  # JsonWebKeyCurveName. Possible values include: 'P-256', 'P-384', 'P-521',
3465
3461
  # 'P-256K'
3466
- # @param release_policy [KeyReleasePolicy] The policy rules under which the key
3467
- # can be exported.
3468
3462
  # @param [Hash{String => String}] A hash of custom headers that will be added
3469
3463
  # to the HTTP request.
3470
3464
  #
3471
3465
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
3472
3466
  #
3473
- def create_key_async(vault_base_url, key_name, kty, key_size:nil, public_exponent:nil, key_ops:nil, key_attributes:nil, tags:nil, curve:nil, release_policy:nil, custom_headers:nil)
3467
+ def create_key_async(vault_base_url, key_name, kty, key_size:nil, public_exponent:nil, key_ops:nil, key_attributes:nil, tags:nil, curve:nil, custom_headers:nil)
3474
3468
  fail ArgumentError, 'vault_base_url is nil' if vault_base_url.nil?
3475
3469
  fail ArgumentError, 'key_name is nil' if key_name.nil?
3476
3470
  fail ArgumentError, "'key_name' should satisfy the constraint - 'Pattern': '^[0-9a-zA-Z-]+$'" if !key_name.nil? && key_name.match(Regexp.new('^^[0-9a-zA-Z-]+$$')).nil?
@@ -3478,16 +3472,15 @@ module Azure::KeyVault::V7_2_preview
3478
3472
  fail ArgumentError, 'kty is nil' if kty.nil?
3479
3473
  fail ArgumentError, "'kty' should satisfy the constraint - 'MinLength': '1'" if !kty.nil? && kty.length < 1
3480
3474
 
3481
- parameters = KeyCreateParameters.new
3482
- unless kty.nil? && key_size.nil? && public_exponent.nil? && key_ops.nil? && key_attributes.nil? && tags.nil? && curve.nil? && release_policy.nil?
3475
+ parameters = Azure::KeyVault::V7_2_preview::Models::KeyCreateParameters.new
3476
+ unless kty.nil? && key_size.nil? && public_exponent.nil? && key_ops.nil? && key_attributes.nil? && tags.nil? && curve.nil?
3483
3477
  parameters.kty = kty
3484
3478
  parameters.key_size = key_size
3485
3479
  parameters.public_exponent = public_exponent
3486
3480
  parameters.key_ops = key_ops
3487
- parameters.keyAttributes = key_attributes
3481
+ parameters.key_attributes = key_attributes
3488
3482
  parameters.tags = tags
3489
3483
  parameters.curve = curve
3490
- parameters.release_policy = release_policy
3491
3484
  end
3492
3485
 
3493
3486
  request_headers = {}
@@ -3563,15 +3556,13 @@ module Azure::KeyVault::V7_2_preview
3563
3556
  # @param key_attributes [KeyAttributes] The key management attributes.
3564
3557
  # @param tags [Hash{String => String}] Application specific metadata in the
3565
3558
  # form of key-value pairs.
3566
- # @param release_policy [KeyReleasePolicy] The policy rules under which the key
3567
- # can be exported.
3568
3559
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
3569
3560
  # will be added to the HTTP request.
3570
3561
  #
3571
3562
  # @return [KeyBundle] operation results.
3572
3563
  #
3573
- def import_key(vault_base_url, key_name, key, hsm:nil, key_attributes:nil, tags:nil, release_policy:nil, custom_headers:nil)
3574
- response = import_key_async(vault_base_url, key_name, key, hsm:hsm, key_attributes:key_attributes, tags:tags, release_policy:release_policy, custom_headers:custom_headers).value!
3564
+ def import_key(vault_base_url, key_name, key, hsm:nil, key_attributes:nil, tags:nil, custom_headers:nil)
3565
+ response = import_key_async(vault_base_url, key_name, key, hsm:hsm, key_attributes:key_attributes, tags:tags, custom_headers:custom_headers).value!
3575
3566
  response.body unless response.nil?
3576
3567
  end
3577
3568
 
@@ -3592,15 +3583,13 @@ module Azure::KeyVault::V7_2_preview
3592
3583
  # @param key_attributes [KeyAttributes] The key management attributes.
3593
3584
  # @param tags [Hash{String => String}] Application specific metadata in the
3594
3585
  # form of key-value pairs.
3595
- # @param release_policy [KeyReleasePolicy] The policy rules under which the key
3596
- # can be exported.
3597
3586
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
3598
3587
  # will be added to the HTTP request.
3599
3588
  #
3600
3589
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
3601
3590
  #
3602
- def import_key_with_http_info(vault_base_url, key_name, key, hsm:nil, key_attributes:nil, tags:nil, release_policy:nil, custom_headers:nil)
3603
- import_key_async(vault_base_url, key_name, key, hsm:hsm, key_attributes:key_attributes, tags:tags, release_policy:release_policy, custom_headers:custom_headers).value!
3591
+ def import_key_with_http_info(vault_base_url, key_name, key, hsm:nil, key_attributes:nil, tags:nil, custom_headers:nil)
3592
+ import_key_async(vault_base_url, key_name, key, hsm:hsm, key_attributes:key_attributes, tags:tags, custom_headers:custom_headers).value!
3604
3593
  end
3605
3594
 
3606
3595
  #
@@ -3620,27 +3609,24 @@ module Azure::KeyVault::V7_2_preview
3620
3609
  # @param key_attributes [KeyAttributes] The key management attributes.
3621
3610
  # @param tags [Hash{String => String}] Application specific metadata in the
3622
3611
  # form of key-value pairs.
3623
- # @param release_policy [KeyReleasePolicy] The policy rules under which the key
3624
- # can be exported.
3625
3612
  # @param [Hash{String => String}] A hash of custom headers that will be added
3626
3613
  # to the HTTP request.
3627
3614
  #
3628
3615
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
3629
3616
  #
3630
- def import_key_async(vault_base_url, key_name, key, hsm:nil, key_attributes:nil, tags:nil, release_policy:nil, custom_headers:nil)
3617
+ def import_key_async(vault_base_url, key_name, key, hsm:nil, key_attributes:nil, tags:nil, custom_headers:nil)
3631
3618
  fail ArgumentError, 'vault_base_url is nil' if vault_base_url.nil?
3632
3619
  fail ArgumentError, 'key_name is nil' if key_name.nil?
3633
3620
  fail ArgumentError, "'key_name' should satisfy the constraint - 'Pattern': '^[0-9a-zA-Z-]+$'" if !key_name.nil? && key_name.match(Regexp.new('^^[0-9a-zA-Z-]+$$')).nil?
3634
3621
  fail ArgumentError, 'api_version is nil' if api_version.nil?
3635
3622
  fail ArgumentError, 'key is nil' if key.nil?
3636
3623
 
3637
- parameters = KeyImportParameters.new
3638
- unless hsm.nil? && key.nil? && key_attributes.nil? && tags.nil? && release_policy.nil?
3624
+ parameters = Azure::KeyVault::V7_2_preview::Models::KeyImportParameters.new
3625
+ unless hsm.nil? && key.nil? && key_attributes.nil? && tags.nil?
3639
3626
  parameters.hsm = hsm
3640
3627
  parameters.key = key
3641
- parameters.keyAttributes = key_attributes
3628
+ parameters.key_attributes = key_attributes
3642
3629
  parameters.tags = tags
3643
- parameters.release_policy = release_policy
3644
3630
  end
3645
3631
 
3646
3632
  request_headers = {}
@@ -3831,15 +3817,13 @@ module Azure::KeyVault::V7_2_preview
3831
3817
  # @param key_attributes [KeyAttributes]
3832
3818
  # @param tags [Hash{String => String}] Application specific metadata in the
3833
3819
  # form of key-value pairs.
3834
- # @param release_policy [KeyReleasePolicy] The policy rules under which the key
3835
- # can be exported.
3836
3820
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
3837
3821
  # will be added to the HTTP request.
3838
3822
  #
3839
3823
  # @return [KeyBundle] operation results.
3840
3824
  #
3841
- def update_key(vault_base_url, key_name, key_version, key_ops:nil, key_attributes:nil, tags:nil, release_policy:nil, custom_headers:nil)
3842
- response = update_key_async(vault_base_url, key_name, key_version, key_ops:key_ops, key_attributes:key_attributes, tags:tags, release_policy:release_policy, custom_headers:custom_headers).value!
3825
+ def update_key(vault_base_url, key_name, key_version, key_ops:nil, key_attributes:nil, tags:nil, custom_headers:nil)
3826
+ response = update_key_async(vault_base_url, key_name, key_version, key_ops:key_ops, key_attributes:key_attributes, tags:tags, custom_headers:custom_headers).value!
3843
3827
  response.body unless response.nil?
3844
3828
  end
3845
3829
 
@@ -3860,15 +3844,13 @@ module Azure::KeyVault::V7_2_preview
3860
3844
  # @param key_attributes [KeyAttributes]
3861
3845
  # @param tags [Hash{String => String}] Application specific metadata in the
3862
3846
  # form of key-value pairs.
3863
- # @param release_policy [KeyReleasePolicy] The policy rules under which the key
3864
- # can be exported.
3865
3847
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
3866
3848
  # will be added to the HTTP request.
3867
3849
  #
3868
3850
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
3869
3851
  #
3870
- def update_key_with_http_info(vault_base_url, key_name, key_version, key_ops:nil, key_attributes:nil, tags:nil, release_policy:nil, custom_headers:nil)
3871
- update_key_async(vault_base_url, key_name, key_version, key_ops:key_ops, key_attributes:key_attributes, tags:tags, release_policy:release_policy, custom_headers:custom_headers).value!
3852
+ def update_key_with_http_info(vault_base_url, key_name, key_version, key_ops:nil, key_attributes:nil, tags:nil, custom_headers:nil)
3853
+ update_key_async(vault_base_url, key_name, key_version, key_ops:key_ops, key_attributes:key_attributes, tags:tags, custom_headers:custom_headers).value!
3872
3854
  end
3873
3855
 
3874
3856
  #
@@ -3888,25 +3870,22 @@ module Azure::KeyVault::V7_2_preview
3888
3870
  # @param key_attributes [KeyAttributes]
3889
3871
  # @param tags [Hash{String => String}] Application specific metadata in the
3890
3872
  # form of key-value pairs.
3891
- # @param release_policy [KeyReleasePolicy] The policy rules under which the key
3892
- # can be exported.
3893
3873
  # @param [Hash{String => String}] A hash of custom headers that will be added
3894
3874
  # to the HTTP request.
3895
3875
  #
3896
3876
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
3897
3877
  #
3898
- def update_key_async(vault_base_url, key_name, key_version, key_ops:nil, key_attributes:nil, tags:nil, release_policy:nil, custom_headers:nil)
3878
+ def update_key_async(vault_base_url, key_name, key_version, key_ops:nil, key_attributes:nil, tags:nil, custom_headers:nil)
3899
3879
  fail ArgumentError, 'vault_base_url is nil' if vault_base_url.nil?
3900
3880
  fail ArgumentError, 'key_name is nil' if key_name.nil?
3901
3881
  fail ArgumentError, 'key_version is nil' if key_version.nil?
3902
3882
  fail ArgumentError, 'api_version is nil' if api_version.nil?
3903
3883
 
3904
- parameters = KeyUpdateParameters.new
3905
- unless key_ops.nil? && key_attributes.nil? && tags.nil? && release_policy.nil?
3884
+ parameters = Azure::KeyVault::V7_2_preview::Models::KeyUpdateParameters.new
3885
+ unless key_ops.nil? && key_attributes.nil? && tags.nil?
3906
3886
  parameters.key_ops = key_ops
3907
- parameters.keyAttributes = key_attributes
3887
+ parameters.key_attributes = key_attributes
3908
3888
  parameters.tags = tags
3909
- parameters.release_policy = release_policy
3910
3889
  end
3911
3890
 
3912
3891
  request_headers = {}
@@ -4544,9 +4523,9 @@ module Azure::KeyVault::V7_2_preview
4544
4523
  fail ArgumentError, 'api_version is nil' if api_version.nil?
4545
4524
  fail ArgumentError, 'key_bundle_backup is nil' if key_bundle_backup.nil?
4546
4525
 
4547
- parameters = KeyRestoreParameters.new
4526
+ parameters = Azure::KeyVault::V7_2_preview::Models::KeyRestoreParameters.new
4548
4527
  unless key_bundle_backup.nil?
4549
- parameters.keyBundleBackup = key_bundle_backup
4528
+ parameters.key_bundle_backup = key_bundle_backup
4550
4529
  end
4551
4530
 
4552
4531
  request_headers = {}
@@ -4724,7 +4703,7 @@ module Azure::KeyVault::V7_2_preview
4724
4703
  fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
4725
4704
  fail ArgumentError, 'value is nil' if value.nil?
4726
4705
 
4727
- parameters = KeyOperationsParameters.new
4706
+ parameters = Azure::KeyVault::V7_2_preview::Models::KeyOperationsParameters.new
4728
4707
  unless algorithm.nil? && value.nil? && iv.nil? && aad.nil? && tag.nil?
4729
4708
  parameters.algorithm = algorithm
4730
4709
  parameters.value = value
@@ -4897,7 +4876,7 @@ module Azure::KeyVault::V7_2_preview
4897
4876
  fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
4898
4877
  fail ArgumentError, 'value is nil' if value.nil?
4899
4878
 
4900
- parameters = KeyOperationsParameters.new
4879
+ parameters = Azure::KeyVault::V7_2_preview::Models::KeyOperationsParameters.new
4901
4880
  unless algorithm.nil? && value.nil? && iv.nil? && aad.nil? && tag.nil?
4902
4881
  parameters.algorithm = algorithm
4903
4882
  parameters.value = value
@@ -5046,7 +5025,7 @@ module Azure::KeyVault::V7_2_preview
5046
5025
  fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
5047
5026
  fail ArgumentError, 'value is nil' if value.nil?
5048
5027
 
5049
- parameters = KeySignParameters.new
5028
+ parameters = Azure::KeyVault::V7_2_preview::Models::KeySignParameters.new
5050
5029
  unless algorithm.nil? && value.nil?
5051
5030
  parameters.algorithm = algorithm
5052
5031
  parameters.value = value
@@ -5205,7 +5184,7 @@ module Azure::KeyVault::V7_2_preview
5205
5184
  fail ArgumentError, 'digest is nil' if digest.nil?
5206
5185
  fail ArgumentError, 'signature is nil' if signature.nil?
5207
5186
 
5208
- parameters = KeyVerifyParameters.new
5187
+ parameters = Azure::KeyVault::V7_2_preview::Models::KeyVerifyParameters.new
5209
5188
  unless algorithm.nil? && digest.nil? && signature.nil?
5210
5189
  parameters.algorithm = algorithm
5211
5190
  parameters.digest = digest
@@ -5376,7 +5355,7 @@ module Azure::KeyVault::V7_2_preview
5376
5355
  fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
5377
5356
  fail ArgumentError, 'value is nil' if value.nil?
5378
5357
 
5379
- parameters = KeyOperationsParameters.new
5358
+ parameters = Azure::KeyVault::V7_2_preview::Models::KeyOperationsParameters.new
5380
5359
  unless algorithm.nil? && value.nil? && iv.nil? && aad.nil? && tag.nil?
5381
5360
  parameters.algorithm = algorithm
5382
5361
  parameters.value = value
@@ -5546,7 +5525,7 @@ module Azure::KeyVault::V7_2_preview
5546
5525
  fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
5547
5526
  fail ArgumentError, 'value is nil' if value.nil?
5548
5527
 
5549
- parameters = KeyOperationsParameters.new
5528
+ parameters = Azure::KeyVault::V7_2_preview::Models::KeyOperationsParameters.new
5550
5529
  unless algorithm.nil? && value.nil? && iv.nil? && aad.nil? && tag.nil?
5551
5530
  parameters.algorithm = algorithm
5552
5531
  parameters.value = value
@@ -5611,135 +5590,6 @@ module Azure::KeyVault::V7_2_preview
5611
5590
  promise.execute
5612
5591
  end
5613
5592
 
5614
- #
5615
- # Exports a key.
5616
- #
5617
- # The export key operation is applicable to all key types. The target key must
5618
- # be marked exportable. This operation requires the keys/export permission.
5619
- #
5620
- # @param vault_base_url [String] The vault name, for example
5621
- # https://myvault.vault.azure.net.
5622
- # @param key_name [String] The name of the key to get.
5623
- # @param key_version [String] Adding the version parameter retrieves a specific
5624
- # version of a key.
5625
- # @param environment [String] The target environment assertion.
5626
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
5627
- # will be added to the HTTP request.
5628
- #
5629
- # @return [KeyBundle] operation results.
5630
- #
5631
- def export_key(vault_base_url, key_name, key_version, environment, custom_headers:nil)
5632
- response = export_key_async(vault_base_url, key_name, key_version, environment, custom_headers:custom_headers).value!
5633
- response.body unless response.nil?
5634
- end
5635
-
5636
- #
5637
- # Exports a key.
5638
- #
5639
- # The export key operation is applicable to all key types. The target key must
5640
- # be marked exportable. This operation requires the keys/export permission.
5641
- #
5642
- # @param vault_base_url [String] The vault name, for example
5643
- # https://myvault.vault.azure.net.
5644
- # @param key_name [String] The name of the key to get.
5645
- # @param key_version [String] Adding the version parameter retrieves a specific
5646
- # version of a key.
5647
- # @param environment [String] The target environment assertion.
5648
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
5649
- # will be added to the HTTP request.
5650
- #
5651
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
5652
- #
5653
- def export_key_with_http_info(vault_base_url, key_name, key_version, environment, custom_headers:nil)
5654
- export_key_async(vault_base_url, key_name, key_version, environment, custom_headers:custom_headers).value!
5655
- end
5656
-
5657
- #
5658
- # Exports a key.
5659
- #
5660
- # The export key operation is applicable to all key types. The target key must
5661
- # be marked exportable. This operation requires the keys/export permission.
5662
- #
5663
- # @param vault_base_url [String] The vault name, for example
5664
- # https://myvault.vault.azure.net.
5665
- # @param key_name [String] The name of the key to get.
5666
- # @param key_version [String] Adding the version parameter retrieves a specific
5667
- # version of a key.
5668
- # @param environment [String] The target environment assertion.
5669
- # @param [Hash{String => String}] A hash of custom headers that will be added
5670
- # to the HTTP request.
5671
- #
5672
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
5673
- #
5674
- def export_key_async(vault_base_url, key_name, key_version, environment, custom_headers:nil)
5675
- fail ArgumentError, 'vault_base_url is nil' if vault_base_url.nil?
5676
- fail ArgumentError, 'key_name is nil' if key_name.nil?
5677
- fail ArgumentError, 'key_version is nil' if key_version.nil?
5678
- fail ArgumentError, 'api_version is nil' if api_version.nil?
5679
- fail ArgumentError, 'environment is nil' if environment.nil?
5680
- fail ArgumentError, "'environment' should satisfy the constraint - 'MinLength': '1'" if !environment.nil? && environment.length < 1
5681
-
5682
- parameters = KeyExportParameters.new
5683
- unless environment.nil?
5684
- parameters.environment = environment
5685
- end
5686
-
5687
- request_headers = {}
5688
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
5689
-
5690
- # Set Headers
5691
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
5692
- request_headers['accept-language'] = accept_language unless accept_language.nil?
5693
-
5694
- # Serialize Request
5695
- request_mapper = Azure::KeyVault::V7_2_preview::Models::KeyExportParameters.mapper()
5696
- request_content = self.serialize(request_mapper, parameters)
5697
- request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
5698
-
5699
- path_template = 'keys/{key-name}/{key-version}/export'
5700
-
5701
- request_url = @base_url || self.base_url
5702
- request_url = request_url.gsub('{vaultBaseUrl}', vault_base_url)
5703
-
5704
- options = {
5705
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
5706
- path_params: {'key-name' => key_name,'key-version' => key_version},
5707
- query_params: {'api-version' => api_version},
5708
- body: request_content,
5709
- headers: request_headers.merge(custom_headers || {}),
5710
- base_url: request_url
5711
- }
5712
- promise = self.make_request_async(:post, path_template, options)
5713
-
5714
- promise = promise.then do |result|
5715
- http_response = result.response
5716
- status_code = http_response.status
5717
- response_content = http_response.body
5718
- unless status_code == 200
5719
- error_model = JSON.load(response_content)
5720
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
5721
- end
5722
-
5723
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
5724
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
5725
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
5726
- # Deserialize Response
5727
- if status_code == 200
5728
- begin
5729
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
5730
- result_mapper = Azure::KeyVault::V7_2_preview::Models::KeyBundle.mapper()
5731
- result.body = self.deserialize(result_mapper, parsed_response)
5732
- rescue Exception => e
5733
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
5734
- end
5735
- end
5736
-
5737
- result
5738
- end
5739
-
5740
- promise.execute
5741
- end
5742
-
5743
5593
  #
5744
5594
  # Lists the deleted keys in the specified vault.
5745
5595
  #
@@ -6265,12 +6115,12 @@ module Azure::KeyVault::V7_2_preview
6265
6115
  fail ArgumentError, 'api_version is nil' if api_version.nil?
6266
6116
  fail ArgumentError, 'value is nil' if value.nil?
6267
6117
 
6268
- parameters = SecretSetParameters.new
6118
+ parameters = Azure::KeyVault::V7_2_preview::Models::SecretSetParameters.new
6269
6119
  unless value.nil? && tags.nil? && content_type.nil? && secret_attributes.nil?
6270
6120
  parameters.value = value
6271
6121
  parameters.tags = tags
6272
6122
  parameters.content_type = content_type
6273
- parameters.secretAttributes = secret_attributes
6123
+ parameters.secret_attributes = secret_attributes
6274
6124
  end
6275
6125
 
6276
6126
  request_headers = {}
@@ -6519,10 +6369,10 @@ module Azure::KeyVault::V7_2_preview
6519
6369
  fail ArgumentError, 'secret_version is nil' if secret_version.nil?
6520
6370
  fail ArgumentError, 'api_version is nil' if api_version.nil?
6521
6371
 
6522
- parameters = SecretUpdateParameters.new
6372
+ parameters = Azure::KeyVault::V7_2_preview::Models::SecretUpdateParameters.new
6523
6373
  unless content_type.nil? && secret_attributes.nil? && tags.nil?
6524
6374
  parameters.content_type = content_type
6525
- parameters.secretAttributes = secret_attributes
6375
+ parameters.secret_attributes = secret_attributes
6526
6376
  parameters.tags = tags
6527
6377
  end
6528
6378
 
@@ -7520,9 +7370,9 @@ module Azure::KeyVault::V7_2_preview
7520
7370
  fail ArgumentError, 'api_version is nil' if api_version.nil?
7521
7371
  fail ArgumentError, 'secret_bundle_backup is nil' if secret_bundle_backup.nil?
7522
7372
 
7523
- parameters = SecretRestoreParameters.new
7373
+ parameters = Azure::KeyVault::V7_2_preview::Models::SecretRestoreParameters.new
7524
7374
  unless secret_bundle_backup.nil?
7525
- parameters.secretBundleBackup = secret_bundle_backup
7375
+ parameters.secret_bundle_backup = secret_bundle_backup
7526
7376
  end
7527
7377
 
7528
7378
  request_headers = {}
@@ -8282,9 +8132,9 @@ module Azure::KeyVault::V7_2_preview
8282
8132
  fail ArgumentError, 'api_version is nil' if api_version.nil?
8283
8133
  fail ArgumentError, 'storage_bundle_backup is nil' if storage_bundle_backup.nil?
8284
8134
 
8285
- parameters = StorageRestoreParameters.new
8135
+ parameters = Azure::KeyVault::V7_2_preview::Models::StorageRestoreParameters.new
8286
8136
  unless storage_bundle_backup.nil?
8287
- parameters.storageBundleBackup = storage_bundle_backup
8137
+ parameters.storage_bundle_backup = storage_bundle_backup
8288
8138
  end
8289
8139
 
8290
8140
  request_headers = {}
@@ -8628,13 +8478,13 @@ module Azure::KeyVault::V7_2_preview
8628
8478
  fail ArgumentError, 'active_key_name is nil' if active_key_name.nil?
8629
8479
  fail ArgumentError, 'auto_regenerate_key is nil' if auto_regenerate_key.nil?
8630
8480
 
8631
- parameters = StorageAccountCreateParameters.new
8481
+ parameters = Azure::KeyVault::V7_2_preview::Models::StorageAccountCreateParameters.new
8632
8482
  unless resource_id.nil? && active_key_name.nil? && auto_regenerate_key.nil? && regeneration_period.nil? && storage_account_attributes.nil? && tags.nil?
8633
8483
  parameters.resource_id = resource_id
8634
8484
  parameters.active_key_name = active_key_name
8635
8485
  parameters.auto_regenerate_key = auto_regenerate_key
8636
8486
  parameters.regeneration_period = regeneration_period
8637
- parameters.StorageAccountAttributes = storage_account_attributes
8487
+ parameters.storage_account_attributes = storage_account_attributes
8638
8488
  parameters.tags = tags
8639
8489
  end
8640
8490
 
@@ -8772,12 +8622,12 @@ module Azure::KeyVault::V7_2_preview
8772
8622
  fail ArgumentError, "'storage_account_name' should satisfy the constraint - 'Pattern': '^[0-9a-zA-Z]+$'" if !storage_account_name.nil? && storage_account_name.match(Regexp.new('^^[0-9a-zA-Z]+$$')).nil?
8773
8623
  fail ArgumentError, 'api_version is nil' if api_version.nil?
8774
8624
 
8775
- parameters = StorageAccountUpdateParameters.new
8625
+ parameters = Azure::KeyVault::V7_2_preview::Models::StorageAccountUpdateParameters.new
8776
8626
  unless active_key_name.nil? && auto_regenerate_key.nil? && regeneration_period.nil? && storage_account_attributes.nil? && tags.nil?
8777
8627
  parameters.active_key_name = active_key_name
8778
8628
  parameters.auto_regenerate_key = auto_regenerate_key
8779
8629
  parameters.regeneration_period = regeneration_period
8780
- parameters.StorageAccountAttributes = storage_account_attributes
8630
+ parameters.storage_account_attributes = storage_account_attributes
8781
8631
  parameters.tags = tags
8782
8632
  end
8783
8633
 
@@ -8892,7 +8742,7 @@ module Azure::KeyVault::V7_2_preview
8892
8742
  fail ArgumentError, 'api_version is nil' if api_version.nil?
8893
8743
  fail ArgumentError, 'key_name is nil' if key_name.nil?
8894
8744
 
8895
- parameters = StorageAccountRegenerteKeyParameters.new
8745
+ parameters = Azure::KeyVault::V7_2_preview::Models::StorageAccountRegenerteKeyParameters.new
8896
8746
  unless key_name.nil?
8897
8747
  parameters.key_name = key_name
8898
8748
  end
@@ -9714,12 +9564,12 @@ module Azure::KeyVault::V7_2_preview
9714
9564
  fail ArgumentError, 'sas_type is nil' if sas_type.nil?
9715
9565
  fail ArgumentError, 'validity_period is nil' if validity_period.nil?
9716
9566
 
9717
- parameters = SasDefinitionCreateParameters.new
9567
+ parameters = Azure::KeyVault::V7_2_preview::Models::SasDefinitionCreateParameters.new
9718
9568
  unless template_uri.nil? && sas_type.nil? && validity_period.nil? && sas_definition_attributes.nil? && tags.nil?
9719
9569
  parameters.template_uri = template_uri
9720
9570
  parameters.sas_type = sas_type
9721
9571
  parameters.validity_period = validity_period
9722
- parameters.SasDefinitionAttributes = sas_definition_attributes
9572
+ parameters.sas_definition_attributes = sas_definition_attributes
9723
9573
  parameters.tags = tags
9724
9574
  end
9725
9575
 
@@ -9868,12 +9718,12 @@ module Azure::KeyVault::V7_2_preview
9868
9718
  fail ArgumentError, "'sas_definition_name' should satisfy the constraint - 'Pattern': '^[0-9a-zA-Z]+$'" if !sas_definition_name.nil? && sas_definition_name.match(Regexp.new('^^[0-9a-zA-Z]+$$')).nil?
9869
9719
  fail ArgumentError, 'api_version is nil' if api_version.nil?
9870
9720
 
9871
- parameters = SasDefinitionUpdateParameters.new
9721
+ parameters = Azure::KeyVault::V7_2_preview::Models::SasDefinitionUpdateParameters.new
9872
9722
  unless template_uri.nil? && sas_type.nil? && validity_period.nil? && sas_definition_attributes.nil? && tags.nil?
9873
9723
  parameters.template_uri = template_uri
9874
9724
  parameters.sas_type = sas_type
9875
9725
  parameters.validity_period = validity_period
9876
- parameters.SasDefinitionAttributes = sas_definition_attributes
9726
+ parameters.sas_definition_attributes = sas_definition_attributes
9877
9727
  parameters.tags = tags
9878
9728
  end
9879
9729
 
@@ -13799,7 +13649,7 @@ module Azure::KeyVault::V7_2_preview
13799
13649
  #
13800
13650
  def add_telemetry
13801
13651
  sdk_information = 'azure_key_vault'
13802
- sdk_information = "#{sdk_information}/0.18.1"
13652
+ sdk_information = "#{sdk_information}/0.19.0"
13803
13653
  add_user_agent_information(sdk_information)
13804
13654
  end
13805
13655
  end