azure_key_vault 0.16.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-06-01/generated/azure_key_vault/key_vault_client.rb +10 -9
  3. data/lib/2015-06-01/generated/azure_key_vault/models/key_create_parameters.rb +1 -1
  4. data/lib/2015-06-01/generated/azure_key_vault/models/key_properties.rb +1 -1
  5. data/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb +7 -6
  6. data/lib/7.0-preview/generated/azure_key_vault.rb +39 -37
  7. data/lib/7.0-preview/generated/azure_key_vault/key_vault_client.rb +299 -47
  8. data/lib/7.0-preview/generated/azure_key_vault/models/backup_certificate_result.rb +47 -0
  9. data/lib/7.0-preview/generated/azure_key_vault/models/certificate_restore_parameters.rb +46 -0
  10. data/lib/7.0-preview/generated/azure_key_vault/models/issuer_parameters.rb +12 -0
  11. data/lib/7.0-preview/generated/azure_key_vault/models/json_web_key.rb +4 -3
  12. data/lib/7.0-preview/generated/azure_key_vault/models/json_web_key_curve_name.rb +1 -1
  13. data/lib/7.0-preview/generated/azure_key_vault/models/json_web_key_signature_algorithm.rb +1 -1
  14. data/lib/7.0-preview/generated/azure_key_vault/models/key_create_parameters.rb +3 -2
  15. data/lib/7.0-preview/generated/azure_key_vault/models/key_properties.rb +18 -2
  16. data/lib/7.0-preview/generated/azure_key_vault/models/key_sign_parameters.rb +1 -1
  17. data/lib/7.0-preview/generated/azure_key_vault/models/key_verify_parameters.rb +1 -1
  18. data/lib/7.0/generated/azure_key_vault.rb +125 -0
  19. data/lib/7.0/generated/azure_key_vault/key_vault_client.rb +12438 -0
  20. data/lib/7.0/generated/azure_key_vault/models/action.rb +48 -0
  21. data/lib/7.0/generated/azure_key_vault/models/action_type.rb +16 -0
  22. data/lib/7.0/generated/azure_key_vault/models/administrator_details.rb +79 -0
  23. data/lib/7.0/generated/azure_key_vault/models/attributes.rb +92 -0
  24. data/lib/7.0/generated/azure_key_vault/models/backup_certificate_result.rb +47 -0
  25. data/lib/7.0/generated/azure_key_vault/models/backup_key_result.rb +47 -0
  26. data/lib/7.0/generated/azure_key_vault/models/backup_secret_result.rb +47 -0
  27. data/lib/7.0/generated/azure_key_vault/models/backup_storage_result.rb +47 -0
  28. data/lib/7.0/generated/azure_key_vault/models/certificate_attributes.rb +95 -0
  29. data/lib/7.0/generated/azure_key_vault/models/certificate_bundle.rb +151 -0
  30. data/lib/7.0/generated/azure_key_vault/models/certificate_create_parameters.rb +80 -0
  31. data/lib/7.0/generated/azure_key_vault/models/certificate_import_parameters.rb +104 -0
  32. data/lib/7.0/generated/azure_key_vault/models/certificate_issuer_item.rb +57 -0
  33. data/lib/7.0/generated/azure_key_vault/models/certificate_issuer_list_result.rb +102 -0
  34. data/lib/7.0/generated/azure_key_vault/models/certificate_issuer_set_parameters.rb +83 -0
  35. data/lib/7.0/generated/azure_key_vault/models/certificate_issuer_update_parameters.rb +83 -0
  36. data/lib/7.0/generated/azure_key_vault/models/certificate_item.rb +89 -0
  37. data/lib/7.0/generated/azure_key_vault/models/certificate_list_result.rb +102 -0
  38. data/lib/7.0/generated/azure_key_vault/models/certificate_merge_parameters.rb +88 -0
  39. data/lib/7.0/generated/azure_key_vault/models/certificate_operation.rb +142 -0
  40. data/lib/7.0/generated/azure_key_vault/models/certificate_operation_update_parameter.rb +47 -0
  41. data/lib/7.0/generated/azure_key_vault/models/certificate_policy.rb +131 -0
  42. data/lib/7.0/generated/azure_key_vault/models/certificate_restore_parameters.rb +46 -0
  43. data/lib/7.0/generated/azure_key_vault/models/certificate_update_parameters.rb +80 -0
  44. data/lib/7.0/generated/azure_key_vault/models/contact.rb +68 -0
  45. data/lib/7.0/generated/azure_key_vault/models/contacts.rb +67 -0
  46. data/lib/7.0/generated/azure_key_vault/models/deleted_certificate_bundle.rb +159 -0
  47. data/lib/7.0/generated/azure_key_vault/models/deleted_certificate_item.rb +113 -0
  48. data/lib/7.0/generated/azure_key_vault/models/deleted_certificate_list_result.rb +102 -0
  49. data/lib/7.0/generated/azure_key_vault/models/deleted_key_bundle.rb +115 -0
  50. data/lib/7.0/generated/azure_key_vault/models/deleted_key_item.rb +114 -0
  51. data/lib/7.0/generated/azure_key_vault/models/deleted_key_list_result.rb +102 -0
  52. data/lib/7.0/generated/azure_key_vault/models/deleted_sas_definition_bundle.rb +145 -0
  53. data/lib/7.0/generated/azure_key_vault/models/deleted_sas_definition_item.rb +118 -0
  54. data/lib/7.0/generated/azure_key_vault/models/deleted_sas_definition_list_result.rb +103 -0
  55. data/lib/7.0/generated/azure_key_vault/models/deleted_secret_bundle.rb +139 -0
  56. data/lib/7.0/generated/azure_key_vault/models/deleted_secret_item.rb +121 -0
  57. data/lib/7.0/generated/azure_key_vault/models/deleted_secret_list_result.rb +102 -0
  58. data/lib/7.0/generated/azure_key_vault/models/deleted_storage_account_item.rb +118 -0
  59. data/lib/7.0/generated/azure_key_vault/models/deleted_storage_bundle.rb +146 -0
  60. data/lib/7.0/generated/azure_key_vault/models/deleted_storage_list_result.rb +103 -0
  61. data/lib/7.0/generated/azure_key_vault/models/deletion_recovery_level.rb +18 -0
  62. data/lib/7.0/generated/azure_key_vault/models/error.rb +72 -0
  63. data/lib/7.0/generated/azure_key_vault/models/issuer_attributes.rb +70 -0
  64. data/lib/7.0/generated/azure_key_vault/models/issuer_bundle.rb +95 -0
  65. data/lib/7.0/generated/azure_key_vault/models/issuer_credentials.rb +57 -0
  66. data/lib/7.0/generated/azure_key_vault/models/issuer_parameters.rb +71 -0
  67. data/lib/7.0/generated/azure_key_vault/models/json_web_key.rb +223 -0
  68. data/lib/7.0/generated/azure_key_vault/models/json_web_key_curve_name.rb +18 -0
  69. data/lib/7.0/generated/azure_key_vault/models/json_web_key_encryption_algorithm.rb +17 -0
  70. data/lib/7.0/generated/azure_key_vault/models/json_web_key_operation.rb +20 -0
  71. data/lib/7.0/generated/azure_key_vault/models/json_web_key_signature_algorithm.rb +25 -0
  72. data/lib/7.0/generated/azure_key_vault/models/json_web_key_type.rb +19 -0
  73. data/lib/7.0/generated/azure_key_vault/models/key_attributes.rb +95 -0
  74. data/lib/7.0/generated/azure_key_vault/models/key_bundle.rb +92 -0
  75. data/lib/7.0/generated/azure_key_vault/models/key_create_parameters.rb +127 -0
  76. data/lib/7.0/generated/azure_key_vault/models/key_import_parameters.rb +91 -0
  77. data/lib/7.0/generated/azure_key_vault/models/key_item.rb +91 -0
  78. data/lib/7.0/generated/azure_key_vault/models/key_list_result.rb +101 -0
  79. data/lib/7.0/generated/azure_key_vault/models/key_operation_result.rb +59 -0
  80. data/lib/7.0/generated/azure_key_vault/models/key_operations_parameters.rb +61 -0
  81. data/lib/7.0/generated/azure_key_vault/models/key_properties.rb +96 -0
  82. data/lib/7.0/generated/azure_key_vault/models/key_restore_parameters.rb +46 -0
  83. data/lib/7.0/generated/azure_key_vault/models/key_sign_parameters.rb +64 -0
  84. data/lib/7.0/generated/azure_key_vault/models/key_update_parameters.rb +87 -0
  85. data/lib/7.0/generated/azure_key_vault/models/key_usage_type.rb +23 -0
  86. data/lib/7.0/generated/azure_key_vault/models/key_vault_error.rb +48 -0
  87. data/lib/7.0/generated/azure_key_vault/models/key_verify_parameters.rb +75 -0
  88. data/lib/7.0/generated/azure_key_vault/models/key_verify_result.rb +47 -0
  89. data/lib/7.0/generated/azure_key_vault/models/lifetime_action.rb +60 -0
  90. data/lib/7.0/generated/azure_key_vault/models/organization_details.rb +67 -0
  91. data/lib/7.0/generated/azure_key_vault/models/pending_certificate_signing_request_result.rb +48 -0
  92. data/lib/7.0/generated/azure_key_vault/models/sas_definition_attributes.rb +88 -0
  93. data/lib/7.0/generated/azure_key_vault/models/sas_definition_bundle.rb +134 -0
  94. data/lib/7.0/generated/azure_key_vault/models/sas_definition_create_parameters.rb +104 -0
  95. data/lib/7.0/generated/azure_key_vault/models/sas_definition_item.rb +94 -0
  96. data/lib/7.0/generated/azure_key_vault/models/sas_definition_list_result.rb +102 -0
  97. data/lib/7.0/generated/azure_key_vault/models/sas_definition_update_parameters.rb +104 -0
  98. data/lib/7.0/generated/azure_key_vault/models/sas_token_type.rb +16 -0
  99. data/lib/7.0/generated/azure_key_vault/models/secret_attributes.rb +95 -0
  100. data/lib/7.0/generated/azure_key_vault/models/secret_bundle.rb +127 -0
  101. data/lib/7.0/generated/azure_key_vault/models/secret_item.rb +103 -0
  102. data/lib/7.0/generated/azure_key_vault/models/secret_list_result.rb +101 -0
  103. data/lib/7.0/generated/azure_key_vault/models/secret_properties.rb +46 -0
  104. data/lib/7.0/generated/azure_key_vault/models/secret_restore_parameters.rb +46 -0
  105. data/lib/7.0/generated/azure_key_vault/models/secret_set_parameters.rb +89 -0
  106. data/lib/7.0/generated/azure_key_vault/models/secret_update_parameters.rb +78 -0
  107. data/lib/7.0/generated/azure_key_vault/models/storage_account_attributes.rb +88 -0
  108. data/lib/7.0/generated/azure_key_vault/models/storage_account_create_parameters.rb +114 -0
  109. data/lib/7.0/generated/azure_key_vault/models/storage_account_item.rb +94 -0
  110. data/lib/7.0/generated/azure_key_vault/models/storage_account_regenerte_key_parameters.rb +46 -0
  111. data/lib/7.0/generated/azure_key_vault/models/storage_account_update_parameters.rb +103 -0
  112. data/lib/7.0/generated/azure_key_vault/models/storage_bundle.rb +132 -0
  113. data/lib/7.0/generated/azure_key_vault/models/storage_list_result.rb +102 -0
  114. data/lib/7.0/generated/azure_key_vault/models/storage_restore_parameters.rb +46 -0
  115. data/lib/7.0/generated/azure_key_vault/models/subject_alternative_names.rb +92 -0
  116. data/lib/7.0/generated/azure_key_vault/models/trigger.rb +65 -0
  117. data/lib/7.0/generated/azure_key_vault/models/x509certificate_properties.rb +111 -0
  118. data/lib/7.0/generated/azure_key_vault/module_definition.rb +8 -0
  119. data/lib/azure_key_vault.rb +1 -0
  120. data/lib/profiles/latest/modules/keyvault_profile_module.rb +266 -222
  121. data/lib/version.rb +1 -1
  122. metadata +107 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a7c6c23a196cfed5390927c5c137d514be9f38e1
4
- data.tar.gz: 63dd30371762d9c69d8c5ba8f146c6c3729960b0
3
+ metadata.gz: e9c06712bc61b56ceb857b3589fd628ec34a0abb
4
+ data.tar.gz: d639e7d2d01f71f5a875ccf7db3fe8358b0201f6
5
5
  SHA512:
6
- metadata.gz: dbe9abd8d4f5cec821fd3e50178a5566a806203bc43b17d9471efcdae5e9566f7b025281a2e66b265ce50e61e2c5ce55bad039d90fe360f9c765b84d262ad93d
7
- data.tar.gz: 1aa4d2a7ed1cee98e0ef8cbe9b48b6d918fdd85739de6b72349979f239b5b56172024d8f929e10e2c79d384bbad7f66464e2ae0c6b7f1919bc8aba7ebf37a21a
6
+ metadata.gz: f3039e7b518f2bfa84e4f9b780a4109fa3544ac79868123ea656e6ab01db6599e9ad2d71697574427f46dfaccad92120b7047538052c99bdb53e71dc968774d2
7
+ data.tar.gz: 7f9f0183a270588d2af42229c082d14bdc0602f0b8f33640805f26f591ccf56e7fa0a9e292d16e9484d3b5268803ec8d91c3c289fb1ef1b94d2e21f8a256fc91
@@ -20,15 +20,16 @@ module Azure::KeyVault::V2015_06_01
20
20
  # @return [String] Client Api Version.
21
21
  attr_reader :api_version
22
22
 
23
- # @return [String] Gets or sets the preferred language for the response.
23
+ # @return [String] The preferred language for the response.
24
24
  attr_accessor :accept_language
25
25
 
26
- # @return [Integer] Gets or sets the retry timeout in seconds for Long
27
- # Running Operations. Default value is 30.
26
+ # @return [Integer] The retry timeout in seconds for Long Running
27
+ # Operations. Default value is 30.
28
28
  attr_accessor :long_running_operation_retry_timeout
29
29
 
30
- # @return [Boolean] When set to true a unique x-ms-client-request-id value
31
- # is generated and included in each request. Default is true.
30
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
31
+ # generated. When set to true a unique x-ms-client-request-id value is
32
+ # generated and included in each request. Default is true.
32
33
  attr_accessor :generate_client_request_id
33
34
 
34
35
  #
@@ -117,7 +118,7 @@ module Azure::KeyVault::V2015_06_01
117
118
  # @param kty [JsonWebKeyType] The type of key to create. Valid key types, see
118
119
  # JsonWebKeyType. Supported JsonWebKey key types (kty) for Elliptic Curve, RSA,
119
120
  # HSM, Octet. Possible values include: 'EC', 'RSA', 'RSA-HSM', 'oct'
120
- # @param key_size [Integer] The key size in bytes. e.g. 1024 or 2048.
121
+ # @param key_size [Integer] The key size in bits. e.g. 1024 or 2048.
121
122
  # @param key_ops [Array<JsonWebKeyOperation>]
122
123
  # @param key_attributes [KeyAttributes]
123
124
  # @param tags [Hash{String => String}] Application-specific metadata in the
@@ -141,7 +142,7 @@ module Azure::KeyVault::V2015_06_01
141
142
  # @param kty [JsonWebKeyType] The type of key to create. Valid key types, see
142
143
  # JsonWebKeyType. Supported JsonWebKey key types (kty) for Elliptic Curve, RSA,
143
144
  # HSM, Octet. Possible values include: 'EC', 'RSA', 'RSA-HSM', 'oct'
144
- # @param key_size [Integer] The key size in bytes. e.g. 1024 or 2048.
145
+ # @param key_size [Integer] The key size in bits. e.g. 1024 or 2048.
145
146
  # @param key_ops [Array<JsonWebKeyOperation>]
146
147
  # @param key_attributes [KeyAttributes]
147
148
  # @param tags [Hash{String => String}] Application-specific metadata in the
@@ -164,7 +165,7 @@ module Azure::KeyVault::V2015_06_01
164
165
  # @param kty [JsonWebKeyType] The type of key to create. Valid key types, see
165
166
  # JsonWebKeyType. Supported JsonWebKey key types (kty) for Elliptic Curve, RSA,
166
167
  # HSM, Octet. Possible values include: 'EC', 'RSA', 'RSA-HSM', 'oct'
167
- # @param key_size [Integer] The key size in bytes. e.g. 1024 or 2048.
168
+ # @param key_size [Integer] The key size in bits. e.g. 1024 or 2048.
168
169
  # @param key_ops [Array<JsonWebKeyOperation>]
169
170
  # @param key_attributes [KeyAttributes]
170
171
  # @param tags [Hash{String => String}] Application-specific metadata in the
@@ -6067,7 +6068,7 @@ module Azure::KeyVault::V2015_06_01
6067
6068
  #
6068
6069
  def add_telemetry
6069
6070
  sdk_information = 'azure_key_vault'
6070
- sdk_information = "#{sdk_information}/0.16.0"
6071
+ sdk_information = "#{sdk_information}/0.17.0"
6071
6072
  add_user_agent_information(sdk_information)
6072
6073
  end
6073
6074
  end
@@ -18,7 +18,7 @@ module Azure::KeyVault::V2015_06_01
18
18
  # 'RSA-HSM', 'oct'
19
19
  attr_accessor :kty
20
20
 
21
- # @return [Integer] The key size in bytes. e.g. 1024 or 2048.
21
+ # @return [Integer] The key size in bits. e.g. 1024 or 2048.
22
22
  attr_accessor :key_size
23
23
 
24
24
  # @return [Array<JsonWebKeyOperation>]
@@ -18,7 +18,7 @@ module Azure::KeyVault::V2015_06_01
18
18
  # @return [String] The key type.
19
19
  attr_accessor :key_type
20
20
 
21
- # @return [Integer] The key size in bytes. e.g. 2048.
21
+ # @return [Integer] The key size in bits. e.g. 2048.
22
22
  attr_accessor :key_size
23
23
 
24
24
  # @return [Boolean] Indicates if the same key pair will be used on
@@ -20,15 +20,16 @@ module Azure::KeyVault::V2016_10_01
20
20
  # @return [String] Client API version.
21
21
  attr_reader :api_version
22
22
 
23
- # @return [String] Gets or sets the preferred language for the response.
23
+ # @return [String] The preferred language for the response.
24
24
  attr_accessor :accept_language
25
25
 
26
- # @return [Integer] Gets or sets the retry timeout in seconds for Long
27
- # Running Operations. Default value is 30.
26
+ # @return [Integer] The retry timeout in seconds for Long Running
27
+ # Operations. Default value is 30.
28
28
  attr_accessor :long_running_operation_retry_timeout
29
29
 
30
- # @return [Boolean] When set to true a unique x-ms-client-request-id value
31
- # is generated and included in each request. Default is true.
30
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
31
+ # generated. When set to true a unique x-ms-client-request-id value is
32
+ # generated and included in each request. Default is true.
32
33
  attr_accessor :generate_client_request_id
33
34
 
34
35
  #
@@ -10741,7 +10742,7 @@ module Azure::KeyVault::V2016_10_01
10741
10742
  #
10742
10743
  def add_telemetry
10743
10744
  sdk_information = 'azure_key_vault'
10744
- sdk_information = "#{sdk_information}/0.16.0"
10745
+ sdk_information = "#{sdk_information}/0.17.0"
10745
10746
  add_user_agent_information(sdk_information)
10746
10747
  end
10747
10748
  end
@@ -23,79 +23,81 @@ module Azure::KeyVault::V7_0_preview
23
23
  autoload :KeyVaultClient, '7.0-preview/generated/azure_key_vault/key_vault_client.rb'
24
24
 
25
25
  module Models
26
- autoload :KeyUpdateParameters, '7.0-preview/generated/azure_key_vault/models/key_update_parameters.rb'
27
26
  autoload :KeyRestoreParameters, '7.0-preview/generated/azure_key_vault/models/key_restore_parameters.rb'
28
- autoload :JsonWebKey, '7.0-preview/generated/azure_key_vault/models/json_web_key.rb'
29
27
  autoload :SecretSetParameters, '7.0-preview/generated/azure_key_vault/models/secret_set_parameters.rb'
30
- autoload :KeyBundle, '7.0-preview/generated/azure_key_vault/models/key_bundle.rb'
28
+ autoload :JsonWebKey, '7.0-preview/generated/azure_key_vault/models/json_web_key.rb'
31
29
  autoload :SecretUpdateParameters, '7.0-preview/generated/azure_key_vault/models/secret_update_parameters.rb'
32
- autoload :KeyOperationsParameters, '7.0-preview/generated/azure_key_vault/models/key_operations_parameters.rb'
30
+ autoload :KeyBundle, '7.0-preview/generated/azure_key_vault/models/key_bundle.rb'
31
+ autoload :CertificateCreateParameters, '7.0-preview/generated/azure_key_vault/models/certificate_create_parameters.rb'
33
32
  autoload :KeySignParameters, '7.0-preview/generated/azure_key_vault/models/key_sign_parameters.rb'
34
- autoload :KeyVaultError, '7.0-preview/generated/azure_key_vault/models/key_vault_error.rb'
35
33
  autoload :KeyVerifyParameters, '7.0-preview/generated/azure_key_vault/models/key_verify_parameters.rb'
34
+ autoload :BackupCertificateResult, '7.0-preview/generated/azure_key_vault/models/backup_certificate_result.rb'
35
+ autoload :KeyUpdateParameters, '7.0-preview/generated/azure_key_vault/models/key_update_parameters.rb'
36
36
  autoload :SecretItem, '7.0-preview/generated/azure_key_vault/models/secret_item.rb'
37
37
  autoload :Attributes, '7.0-preview/generated/azure_key_vault/models/attributes.rb'
38
- autoload :SasDefinitionCreateParameters, '7.0-preview/generated/azure_key_vault/models/sas_definition_create_parameters.rb'
38
+ autoload :KeyVaultError, '7.0-preview/generated/azure_key_vault/models/key_vault_error.rb'
39
39
  autoload :SecretRestoreParameters, '7.0-preview/generated/azure_key_vault/models/secret_restore_parameters.rb'
40
- autoload :StorageListResult, '7.0-preview/generated/azure_key_vault/models/storage_list_result.rb'
41
- autoload :DeletedSasDefinitionListResult, '7.0-preview/generated/azure_key_vault/models/deleted_sas_definition_list_result.rb'
40
+ autoload :SasDefinitionAttributes, '7.0-preview/generated/azure_key_vault/models/sas_definition_attributes.rb'
41
+ autoload :SasDefinitionUpdateParameters, '7.0-preview/generated/azure_key_vault/models/sas_definition_update_parameters.rb'
42
42
  autoload :KeyItem, '7.0-preview/generated/azure_key_vault/models/key_item.rb'
43
43
  autoload :CertificateIssuerItem, '7.0-preview/generated/azure_key_vault/models/certificate_issuer_item.rb'
44
- autoload :SasDefinitionBundle, '7.0-preview/generated/azure_key_vault/models/sas_definition_bundle.rb'
44
+ autoload :SasDefinitionListResult, '7.0-preview/generated/azure_key_vault/models/sas_definition_list_result.rb'
45
45
  autoload :SecretProperties, '7.0-preview/generated/azure_key_vault/models/secret_properties.rb'
46
- autoload :CertificateCreateParameters, '7.0-preview/generated/azure_key_vault/models/certificate_create_parameters.rb'
47
- autoload :X509CertificateProperties, '7.0-preview/generated/azure_key_vault/models/x509certificate_properties.rb'
48
46
  autoload :CertificateImportParameters, '7.0-preview/generated/azure_key_vault/models/certificate_import_parameters.rb'
49
- autoload :Action, '7.0-preview/generated/azure_key_vault/models/action.rb'
47
+ autoload :X509CertificateProperties, '7.0-preview/generated/azure_key_vault/models/x509certificate_properties.rb'
50
48
  autoload :CertificateUpdateParameters, '7.0-preview/generated/azure_key_vault/models/certificate_update_parameters.rb'
51
- autoload :IssuerParameters, '7.0-preview/generated/azure_key_vault/models/issuer_parameters.rb'
49
+ autoload :Action, '7.0-preview/generated/azure_key_vault/models/action.rb'
52
50
  autoload :CertificateMergeParameters, '7.0-preview/generated/azure_key_vault/models/certificate_merge_parameters.rb'
53
- autoload :CertificateBundle, '7.0-preview/generated/azure_key_vault/models/certificate_bundle.rb'
51
+ autoload :IssuerParameters, '7.0-preview/generated/azure_key_vault/models/issuer_parameters.rb'
54
52
  autoload :CertificateIssuerSetParameters, '7.0-preview/generated/azure_key_vault/models/certificate_issuer_set_parameters.rb'
55
- autoload :SasDefinitionItem, '7.0-preview/generated/azure_key_vault/models/sas_definition_item.rb'
53
+ autoload :CertificateBundle, '7.0-preview/generated/azure_key_vault/models/certificate_bundle.rb'
56
54
  autoload :CertificateIssuerUpdateParameters, '7.0-preview/generated/azure_key_vault/models/certificate_issuer_update_parameters.rb'
57
- autoload :CertificateOperation, '7.0-preview/generated/azure_key_vault/models/certificate_operation.rb'
55
+ autoload :DeletedSasDefinitionListResult, '7.0-preview/generated/azure_key_vault/models/deleted_sas_definition_list_result.rb'
58
56
  autoload :CertificateOperationUpdateParameter, '7.0-preview/generated/azure_key_vault/models/certificate_operation_update_parameter.rb'
59
- autoload :AdministratorDetails, '7.0-preview/generated/azure_key_vault/models/administrator_details.rb'
57
+ autoload :CertificateOperation, '7.0-preview/generated/azure_key_vault/models/certificate_operation.rb'
60
58
  autoload :KeyOperationResult, '7.0-preview/generated/azure_key_vault/models/key_operation_result.rb'
61
- autoload :IssuerAttributes, '7.0-preview/generated/azure_key_vault/models/issuer_attributes.rb'
59
+ autoload :AdministratorDetails, '7.0-preview/generated/azure_key_vault/models/administrator_details.rb'
62
60
  autoload :KeyVerifyResult, '7.0-preview/generated/azure_key_vault/models/key_verify_result.rb'
63
- autoload :Contact, '7.0-preview/generated/azure_key_vault/models/contact.rb'
61
+ autoload :IssuerAttributes, '7.0-preview/generated/azure_key_vault/models/issuer_attributes.rb'
64
62
  autoload :KeyListResult, '7.0-preview/generated/azure_key_vault/models/key_list_result.rb'
65
- autoload :KeyCreateParameters, '7.0-preview/generated/azure_key_vault/models/key_create_parameters.rb'
63
+ autoload :Contact, '7.0-preview/generated/azure_key_vault/models/contact.rb'
66
64
  autoload :DeletedKeyListResult, '7.0-preview/generated/azure_key_vault/models/deleted_key_list_result.rb'
65
+ autoload :KeyCreateParameters, '7.0-preview/generated/azure_key_vault/models/key_create_parameters.rb'
67
66
  autoload :SecretListResult, '7.0-preview/generated/azure_key_vault/models/secret_list_result.rb'
68
- autoload :SasDefinitionUpdateParameters, '7.0-preview/generated/azure_key_vault/models/sas_definition_update_parameters.rb'
67
+ autoload :KeyOperationsParameters, '7.0-preview/generated/azure_key_vault/models/key_operations_parameters.rb'
69
68
  autoload :DeletedSecretListResult, '7.0-preview/generated/azure_key_vault/models/deleted_secret_list_result.rb'
70
- autoload :CertificateItem, '7.0-preview/generated/azure_key_vault/models/certificate_item.rb'
69
+ autoload :SecretBundle, '7.0-preview/generated/azure_key_vault/models/secret_bundle.rb'
71
70
  autoload :CertificateListResult, '7.0-preview/generated/azure_key_vault/models/certificate_list_result.rb'
72
- autoload :SubjectAlternativeNames, '7.0-preview/generated/azure_key_vault/models/subject_alternative_names.rb'
71
+ autoload :StorageRestoreParameters, '7.0-preview/generated/azure_key_vault/models/storage_restore_parameters.rb'
73
72
  autoload :DeletedCertificateListResult, '7.0-preview/generated/azure_key_vault/models/deleted_certificate_list_result.rb'
74
- autoload :LifetimeAction, '7.0-preview/generated/azure_key_vault/models/lifetime_action.rb'
73
+ autoload :KeyProperties, '7.0-preview/generated/azure_key_vault/models/key_properties.rb'
75
74
  autoload :CertificateIssuerListResult, '7.0-preview/generated/azure_key_vault/models/certificate_issuer_list_result.rb'
76
- autoload :SasDefinitionListResult, '7.0-preview/generated/azure_key_vault/models/sas_definition_list_result.rb'
75
+ autoload :Trigger, '7.0-preview/generated/azure_key_vault/models/trigger.rb'
77
76
  autoload :BackupKeyResult, '7.0-preview/generated/azure_key_vault/models/backup_key_result.rb'
78
- autoload :IssuerCredentials, '7.0-preview/generated/azure_key_vault/models/issuer_credentials.rb'
77
+ autoload :CertificatePolicy, '7.0-preview/generated/azure_key_vault/models/certificate_policy.rb'
79
78
  autoload :BackupSecretResult, '7.0-preview/generated/azure_key_vault/models/backup_secret_result.rb'
80
- autoload :IssuerBundle, '7.0-preview/generated/azure_key_vault/models/issuer_bundle.rb'
79
+ autoload :Error, '7.0-preview/generated/azure_key_vault/models/error.rb'
81
80
  autoload :BackupStorageResult, '7.0-preview/generated/azure_key_vault/models/backup_storage_result.rb'
82
- autoload :KeyImportParameters, '7.0-preview/generated/azure_key_vault/models/key_import_parameters.rb'
81
+ autoload :OrganizationDetails, '7.0-preview/generated/azure_key_vault/models/organization_details.rb'
83
82
  autoload :PendingCertificateSigningRequestResult, '7.0-preview/generated/azure_key_vault/models/pending_certificate_signing_request_result.rb'
84
- autoload :StorageRestoreParameters, '7.0-preview/generated/azure_key_vault/models/storage_restore_parameters.rb'
83
+ autoload :Contacts, '7.0-preview/generated/azure_key_vault/models/contacts.rb'
85
84
  autoload :StorageAccountAttributes, '7.0-preview/generated/azure_key_vault/models/storage_account_attributes.rb'
86
- autoload :Trigger, '7.0-preview/generated/azure_key_vault/models/trigger.rb'
87
85
  autoload :StorageBundle, '7.0-preview/generated/azure_key_vault/models/storage_bundle.rb'
88
- autoload :Error, '7.0-preview/generated/azure_key_vault/models/error.rb'
89
- autoload :SasDefinitionAttributes, '7.0-preview/generated/azure_key_vault/models/sas_definition_attributes.rb'
90
- autoload :Contacts, '7.0-preview/generated/azure_key_vault/models/contacts.rb'
86
+ autoload :CertificateItem, '7.0-preview/generated/azure_key_vault/models/certificate_item.rb'
87
+ autoload :SasDefinitionItem, '7.0-preview/generated/azure_key_vault/models/sas_definition_item.rb'
88
+ autoload :LifetimeAction, '7.0-preview/generated/azure_key_vault/models/lifetime_action.rb'
91
89
  autoload :StorageAccountCreateParameters, '7.0-preview/generated/azure_key_vault/models/storage_account_create_parameters.rb'
92
- autoload :KeyProperties, '7.0-preview/generated/azure_key_vault/models/key_properties.rb'
90
+ autoload :IssuerCredentials, '7.0-preview/generated/azure_key_vault/models/issuer_credentials.rb'
93
91
  autoload :StorageAccountUpdateParameters, '7.0-preview/generated/azure_key_vault/models/storage_account_update_parameters.rb'
94
- autoload :OrganizationDetails, '7.0-preview/generated/azure_key_vault/models/organization_details.rb'
92
+ autoload :KeyImportParameters, '7.0-preview/generated/azure_key_vault/models/key_import_parameters.rb'
95
93
  autoload :StorageAccountRegenerteKeyParameters, '7.0-preview/generated/azure_key_vault/models/storage_account_regenerte_key_parameters.rb'
96
- autoload :CertificatePolicy, '7.0-preview/generated/azure_key_vault/models/certificate_policy.rb'
94
+ autoload :SubjectAlternativeNames, '7.0-preview/generated/azure_key_vault/models/subject_alternative_names.rb'
97
95
  autoload :StorageAccountItem, '7.0-preview/generated/azure_key_vault/models/storage_account_item.rb'
98
- autoload :SecretBundle, '7.0-preview/generated/azure_key_vault/models/secret_bundle.rb'
96
+ autoload :IssuerBundle, '7.0-preview/generated/azure_key_vault/models/issuer_bundle.rb'
97
+ autoload :SasDefinitionBundle, '7.0-preview/generated/azure_key_vault/models/sas_definition_bundle.rb'
98
+ autoload :SasDefinitionCreateParameters, '7.0-preview/generated/azure_key_vault/models/sas_definition_create_parameters.rb'
99
+ autoload :StorageListResult, '7.0-preview/generated/azure_key_vault/models/storage_list_result.rb'
100
+ autoload :CertificateRestoreParameters, '7.0-preview/generated/azure_key_vault/models/certificate_restore_parameters.rb'
99
101
  autoload :DeletedStorageListResult, '7.0-preview/generated/azure_key_vault/models/deleted_storage_list_result.rb'
100
102
  autoload :KeyAttributes, '7.0-preview/generated/azure_key_vault/models/key_attributes.rb'
101
103
  autoload :DeletedKeyBundle, '7.0-preview/generated/azure_key_vault/models/deleted_key_bundle.rb'
@@ -20,15 +20,16 @@ module Azure::KeyVault::V7_0_preview
20
20
  # @return [String] Client API version.
21
21
  attr_reader :api_version
22
22
 
23
- # @return [String] Gets or sets the preferred language for the response.
23
+ # @return [String] The preferred language for the response.
24
24
  attr_accessor :accept_language
25
25
 
26
- # @return [Integer] Gets or sets the retry timeout in seconds for Long
27
- # Running Operations. Default value is 30.
26
+ # @return [Integer] The retry timeout in seconds for Long Running
27
+ # Operations. Default value is 30.
28
28
  attr_accessor :long_running_operation_retry_timeout
29
29
 
30
- # @return [Boolean] When set to true a unique x-ms-client-request-id value
31
- # is generated and included in each request. Default is true.
30
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
31
+ # generated. When set to true a unique x-ms-client-request-id value is
32
+ # generated and included in each request. Default is true.
32
33
  attr_accessor :generate_client_request_id
33
34
 
34
35
  #
@@ -123,14 +124,15 @@ module Azure::KeyVault::V7_0_preview
123
124
  # @param kty [JsonWebKeyType] The type of key to create. For valid values, see
124
125
  # JsonWebKeyType. Possible values include: 'EC', 'EC-HSM', 'RSA', 'RSA-HSM',
125
126
  # 'oct'
126
- # @param key_size [Integer] The key size in bytes. For example, 1024 or 2048.
127
+ # @param key_size [Integer] The key size in bits. For example: 2048, 3072, or
128
+ # 4096 for RSA.
127
129
  # @param key_ops [Array<JsonWebKeyOperation>]
128
130
  # @param key_attributes [KeyAttributes]
129
131
  # @param tags [Hash{String => String}] Application specific metadata in the
130
132
  # form of key-value pairs.
131
133
  # @param curve [JsonWebKeyCurveName] Elliptic curve name. For valid values, see
132
134
  # JsonWebKeyCurveName. Possible values include: 'P-256', 'P-384', 'P-521',
133
- # 'SECP256K1'
135
+ # 'P-256K'
134
136
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
135
137
  # will be added to the HTTP request.
136
138
  #
@@ -156,14 +158,15 @@ module Azure::KeyVault::V7_0_preview
156
158
  # @param kty [JsonWebKeyType] The type of key to create. For valid values, see
157
159
  # JsonWebKeyType. Possible values include: 'EC', 'EC-HSM', 'RSA', 'RSA-HSM',
158
160
  # 'oct'
159
- # @param key_size [Integer] The key size in bytes. For example, 1024 or 2048.
161
+ # @param key_size [Integer] The key size in bits. For example: 2048, 3072, or
162
+ # 4096 for RSA.
160
163
  # @param key_ops [Array<JsonWebKeyOperation>]
161
164
  # @param key_attributes [KeyAttributes]
162
165
  # @param tags [Hash{String => String}] Application specific metadata in the
163
166
  # form of key-value pairs.
164
167
  # @param curve [JsonWebKeyCurveName] Elliptic curve name. For valid values, see
165
168
  # JsonWebKeyCurveName. Possible values include: 'P-256', 'P-384', 'P-521',
166
- # 'SECP256K1'
169
+ # 'P-256K'
167
170
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
168
171
  # will be added to the HTTP request.
169
172
  #
@@ -188,14 +191,15 @@ module Azure::KeyVault::V7_0_preview
188
191
  # @param kty [JsonWebKeyType] The type of key to create. For valid values, see
189
192
  # JsonWebKeyType. Possible values include: 'EC', 'EC-HSM', 'RSA', 'RSA-HSM',
190
193
  # 'oct'
191
- # @param key_size [Integer] The key size in bytes. For example, 1024 or 2048.
194
+ # @param key_size [Integer] The key size in bits. For example: 2048, 3072, or
195
+ # 4096 for RSA.
192
196
  # @param key_ops [Array<JsonWebKeyOperation>]
193
197
  # @param key_attributes [KeyAttributes]
194
198
  # @param tags [Hash{String => String}] Application specific metadata in the
195
199
  # form of key-value pairs.
196
200
  # @param curve [JsonWebKeyCurveName] Elliptic curve name. For valid values, see
197
201
  # JsonWebKeyCurveName. Possible values include: 'P-256', 'P-384', 'P-521',
198
- # 'SECP256K1'
202
+ # 'P-256K'
199
203
  # @param [Hash{String => String}] A hash of custom headers that will be added
200
204
  # to the HTTP request.
201
205
  #
@@ -1619,7 +1623,7 @@ module Azure::KeyVault::V7_0_preview
1619
1623
  # algorithm identifier. For more information on possible algorithm types, see
1620
1624
  # JsonWebKeySignatureAlgorithm. Possible values include: 'PS256', 'PS384',
1621
1625
  # 'PS512', 'RS256', 'RS384', 'RS512', 'RSNULL', 'ES256', 'ES384', 'ES512',
1622
- # 'ECDSA256'
1626
+ # 'ES256K'
1623
1627
  # @param value
1624
1628
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1625
1629
  # will be added to the HTTP request.
@@ -1646,7 +1650,7 @@ module Azure::KeyVault::V7_0_preview
1646
1650
  # algorithm identifier. For more information on possible algorithm types, see
1647
1651
  # JsonWebKeySignatureAlgorithm. Possible values include: 'PS256', 'PS384',
1648
1652
  # 'PS512', 'RS256', 'RS384', 'RS512', 'RSNULL', 'ES256', 'ES384', 'ES512',
1649
- # 'ECDSA256'
1653
+ # 'ES256K'
1650
1654
  # @param value
1651
1655
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1652
1656
  # will be added to the HTTP request.
@@ -1672,7 +1676,7 @@ module Azure::KeyVault::V7_0_preview
1672
1676
  # algorithm identifier. For more information on possible algorithm types, see
1673
1677
  # JsonWebKeySignatureAlgorithm. Possible values include: 'PS256', 'PS384',
1674
1678
  # 'PS512', 'RS256', 'RS384', 'RS512', 'RSNULL', 'ES256', 'ES384', 'ES512',
1675
- # 'ECDSA256'
1679
+ # 'ES256K'
1676
1680
  # @param value
1677
1681
  # @param [Hash{String => String}] A hash of custom headers that will be added
1678
1682
  # to the HTTP request.
@@ -1766,7 +1770,7 @@ module Azure::KeyVault::V7_0_preview
1766
1770
  # algorithm. For more information on possible algorithm types, see
1767
1771
  # JsonWebKeySignatureAlgorithm. Possible values include: 'PS256', 'PS384',
1768
1772
  # 'PS512', 'RS256', 'RS384', 'RS512', 'RSNULL', 'ES256', 'ES384', 'ES512',
1769
- # 'ECDSA256'
1773
+ # 'ES256K'
1770
1774
  # @param digest The digest used for signing.
1771
1775
  # @param signature The signature to be verified.
1772
1776
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -1797,7 +1801,7 @@ module Azure::KeyVault::V7_0_preview
1797
1801
  # algorithm. For more information on possible algorithm types, see
1798
1802
  # JsonWebKeySignatureAlgorithm. Possible values include: 'PS256', 'PS384',
1799
1803
  # 'PS512', 'RS256', 'RS384', 'RS512', 'RSNULL', 'ES256', 'ES384', 'ES512',
1800
- # 'ECDSA256'
1804
+ # 'ES256K'
1801
1805
  # @param digest The digest used for signing.
1802
1806
  # @param signature The signature to be verified.
1803
1807
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -1827,7 +1831,7 @@ module Azure::KeyVault::V7_0_preview
1827
1831
  # algorithm. For more information on possible algorithm types, see
1828
1832
  # JsonWebKeySignatureAlgorithm. Possible values include: 'PS256', 'PS384',
1829
1833
  # 'PS512', 'RS256', 'RS384', 'RS512', 'RSNULL', 'ES256', 'ES384', 'ES512',
1830
- # 'ECDSA256'
1834
+ # 'ES256K'
1831
1835
  # @param digest The digest used for signing.
1832
1836
  # @param signature The signature to be verified.
1833
1837
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -4013,13 +4017,15 @@ module Azure::KeyVault::V7_0_preview
4013
4017
  # https://myvault.vault.azure.net.
4014
4018
  # @param maxresults [Integer] Maximum number of results to return in a page. If
4015
4019
  # not specified the service will return up to 25 results.
4020
+ # @param include_pending [Boolean] Specifies whether to include certificates
4021
+ # which are not completely provisioned.
4016
4022
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
4017
4023
  # will be added to the HTTP request.
4018
4024
  #
4019
4025
  # @return [Array<CertificateItem>] operation results.
4020
4026
  #
4021
- def get_certificates(vault_base_url, maxresults:nil, custom_headers:nil)
4022
- first_page = get_certificates_as_lazy(vault_base_url, maxresults:maxresults, custom_headers:custom_headers)
4027
+ def get_certificates(vault_base_url, maxresults:nil, include_pending:nil, custom_headers:nil)
4028
+ first_page = get_certificates_as_lazy(vault_base_url, maxresults:maxresults, include_pending:include_pending, custom_headers:custom_headers)
4023
4029
  first_page.get_all_items
4024
4030
  end
4025
4031
 
@@ -4034,13 +4040,15 @@ module Azure::KeyVault::V7_0_preview
4034
4040
  # https://myvault.vault.azure.net.
4035
4041
  # @param maxresults [Integer] Maximum number of results to return in a page. If
4036
4042
  # not specified the service will return up to 25 results.
4043
+ # @param include_pending [Boolean] Specifies whether to include certificates
4044
+ # which are not completely provisioned.
4037
4045
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
4038
4046
  # will be added to the HTTP request.
4039
4047
  #
4040
4048
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
4041
4049
  #
4042
- def get_certificates_with_http_info(vault_base_url, maxresults:nil, custom_headers:nil)
4043
- get_certificates_async(vault_base_url, maxresults:maxresults, custom_headers:custom_headers).value!
4050
+ def get_certificates_with_http_info(vault_base_url, maxresults:nil, include_pending:nil, custom_headers:nil)
4051
+ get_certificates_async(vault_base_url, maxresults:maxresults, include_pending:include_pending, custom_headers:custom_headers).value!
4044
4052
  end
4045
4053
 
4046
4054
  #
@@ -4054,12 +4062,14 @@ module Azure::KeyVault::V7_0_preview
4054
4062
  # https://myvault.vault.azure.net.
4055
4063
  # @param maxresults [Integer] Maximum number of results to return in a page. If
4056
4064
  # not specified the service will return up to 25 results.
4065
+ # @param include_pending [Boolean] Specifies whether to include certificates
4066
+ # which are not completely provisioned.
4057
4067
  # @param [Hash{String => String}] A hash of custom headers that will be added
4058
4068
  # to the HTTP request.
4059
4069
  #
4060
4070
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
4061
4071
  #
4062
- def get_certificates_async(vault_base_url, maxresults:nil, custom_headers:nil)
4072
+ def get_certificates_async(vault_base_url, maxresults:nil, include_pending:nil, custom_headers:nil)
4063
4073
  fail ArgumentError, 'vault_base_url is nil' if vault_base_url.nil?
4064
4074
  fail ArgumentError, "'maxresults' should satisfy the constraint - 'InclusiveMaximum': '25'" if !maxresults.nil? && maxresults > 25
4065
4075
  fail ArgumentError, "'maxresults' should satisfy the constraint - 'InclusiveMinimum': '1'" if !maxresults.nil? && maxresults < 1
@@ -4079,7 +4089,7 @@ module Azure::KeyVault::V7_0_preview
4079
4089
 
4080
4090
  options = {
4081
4091
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
4082
- query_params: {'maxresults' => maxresults,'api-version' => api_version},
4092
+ query_params: {'maxresults' => maxresults,'includePending' => include_pending,'api-version' => api_version},
4083
4093
  headers: request_headers.merge(custom_headers || {}),
4084
4094
  base_url: request_url
4085
4095
  }
@@ -6506,6 +6516,230 @@ module Azure::KeyVault::V7_0_preview
6506
6516
  promise.execute
6507
6517
  end
6508
6518
 
6519
+ #
6520
+ # Backs up the specified certificate.
6521
+ #
6522
+ # Requests that a backup of the specified certificate be downloaded to the
6523
+ # client. All versions of the certificate will be downloaded. This operation
6524
+ # requires the certificates/backup permission.
6525
+ #
6526
+ # @param vault_base_url [String] The vault name, for example
6527
+ # https://myvault.vault.azure.net.
6528
+ # @param certificate_name [String] The name of the certificate.
6529
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
6530
+ # will be added to the HTTP request.
6531
+ #
6532
+ # @return [BackupCertificateResult] operation results.
6533
+ #
6534
+ def backup_certificate(vault_base_url, certificate_name, custom_headers:nil)
6535
+ response = backup_certificate_async(vault_base_url, certificate_name, custom_headers:custom_headers).value!
6536
+ response.body unless response.nil?
6537
+ end
6538
+
6539
+ #
6540
+ # Backs up the specified certificate.
6541
+ #
6542
+ # Requests that a backup of the specified certificate be downloaded to the
6543
+ # client. All versions of the certificate will be downloaded. This operation
6544
+ # requires the certificates/backup permission.
6545
+ #
6546
+ # @param vault_base_url [String] The vault name, for example
6547
+ # https://myvault.vault.azure.net.
6548
+ # @param certificate_name [String] The name of the certificate.
6549
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
6550
+ # will be added to the HTTP request.
6551
+ #
6552
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
6553
+ #
6554
+ def backup_certificate_with_http_info(vault_base_url, certificate_name, custom_headers:nil)
6555
+ backup_certificate_async(vault_base_url, certificate_name, custom_headers:custom_headers).value!
6556
+ end
6557
+
6558
+ #
6559
+ # Backs up the specified certificate.
6560
+ #
6561
+ # Requests that a backup of the specified certificate be downloaded to the
6562
+ # client. All versions of the certificate will be downloaded. This operation
6563
+ # requires the certificates/backup permission.
6564
+ #
6565
+ # @param vault_base_url [String] The vault name, for example
6566
+ # https://myvault.vault.azure.net.
6567
+ # @param certificate_name [String] The name of the certificate.
6568
+ # @param [Hash{String => String}] A hash of custom headers that will be added
6569
+ # to the HTTP request.
6570
+ #
6571
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
6572
+ #
6573
+ def backup_certificate_async(vault_base_url, certificate_name, custom_headers:nil)
6574
+ fail ArgumentError, 'vault_base_url is nil' if vault_base_url.nil?
6575
+ fail ArgumentError, 'certificate_name is nil' if certificate_name.nil?
6576
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
6577
+
6578
+
6579
+ request_headers = {}
6580
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
6581
+
6582
+ # Set Headers
6583
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
6584
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
6585
+ path_template = 'certificates/{certificate-name}/backup'
6586
+
6587
+ request_url = @base_url || self.base_url
6588
+ request_url = request_url.gsub('{vaultBaseUrl}', vault_base_url)
6589
+
6590
+ options = {
6591
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
6592
+ path_params: {'certificate-name' => certificate_name},
6593
+ query_params: {'api-version' => api_version},
6594
+ headers: request_headers.merge(custom_headers || {}),
6595
+ base_url: request_url
6596
+ }
6597
+ promise = self.make_request_async(:post, path_template, options)
6598
+
6599
+ promise = promise.then do |result|
6600
+ http_response = result.response
6601
+ status_code = http_response.status
6602
+ response_content = http_response.body
6603
+ unless status_code == 200
6604
+ error_model = JSON.load(response_content)
6605
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
6606
+ end
6607
+
6608
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
6609
+ # Deserialize Response
6610
+ if status_code == 200
6611
+ begin
6612
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
6613
+ result_mapper = Azure::KeyVault::V7_0_preview::Models::BackupCertificateResult.mapper()
6614
+ result.body = self.deserialize(result_mapper, parsed_response)
6615
+ rescue Exception => e
6616
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
6617
+ end
6618
+ end
6619
+
6620
+ result
6621
+ end
6622
+
6623
+ promise.execute
6624
+ end
6625
+
6626
+ #
6627
+ # Restores a backed up certificate to a vault.
6628
+ #
6629
+ # Restores a backed up certificate, and all its versions, to a vault. This
6630
+ # operation requires the certificates/restore permission.
6631
+ #
6632
+ # @param vault_base_url [String] The vault name, for example
6633
+ # https://myvault.vault.azure.net.
6634
+ # @param certificate_bundle_backup The backup blob associated with a
6635
+ # certificate bundle.
6636
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
6637
+ # will be added to the HTTP request.
6638
+ #
6639
+ # @return [CertificateBundle] operation results.
6640
+ #
6641
+ def restore_certificate(vault_base_url, certificate_bundle_backup, custom_headers:nil)
6642
+ response = restore_certificate_async(vault_base_url, certificate_bundle_backup, custom_headers:custom_headers).value!
6643
+ response.body unless response.nil?
6644
+ end
6645
+
6646
+ #
6647
+ # Restores a backed up certificate to a vault.
6648
+ #
6649
+ # Restores a backed up certificate, and all its versions, to a vault. This
6650
+ # operation requires the certificates/restore permission.
6651
+ #
6652
+ # @param vault_base_url [String] The vault name, for example
6653
+ # https://myvault.vault.azure.net.
6654
+ # @param certificate_bundle_backup The backup blob associated with a
6655
+ # certificate bundle.
6656
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
6657
+ # will be added to the HTTP request.
6658
+ #
6659
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
6660
+ #
6661
+ def restore_certificate_with_http_info(vault_base_url, certificate_bundle_backup, custom_headers:nil)
6662
+ restore_certificate_async(vault_base_url, certificate_bundle_backup, custom_headers:custom_headers).value!
6663
+ end
6664
+
6665
+ #
6666
+ # Restores a backed up certificate to a vault.
6667
+ #
6668
+ # Restores a backed up certificate, and all its versions, to a vault. This
6669
+ # operation requires the certificates/restore permission.
6670
+ #
6671
+ # @param vault_base_url [String] The vault name, for example
6672
+ # https://myvault.vault.azure.net.
6673
+ # @param certificate_bundle_backup The backup blob associated with a
6674
+ # certificate bundle.
6675
+ # @param [Hash{String => String}] A hash of custom headers that will be added
6676
+ # to the HTTP request.
6677
+ #
6678
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
6679
+ #
6680
+ def restore_certificate_async(vault_base_url, certificate_bundle_backup, custom_headers:nil)
6681
+ fail ArgumentError, 'vault_base_url is nil' if vault_base_url.nil?
6682
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
6683
+ fail ArgumentError, 'certificate_bundle_backup is nil' if certificate_bundle_backup.nil?
6684
+
6685
+ parameters = CertificateRestoreParameters.new
6686
+ unless certificate_bundle_backup.nil?
6687
+ parameters.certificateBundleBackup = certificate_bundle_backup
6688
+ end
6689
+
6690
+ request_headers = {}
6691
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
6692
+
6693
+ # Set Headers
6694
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
6695
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
6696
+
6697
+ # Serialize Request
6698
+ request_mapper = Azure::KeyVault::V7_0_preview::Models::CertificateRestoreParameters.mapper()
6699
+ request_content = self.serialize(request_mapper, parameters)
6700
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
6701
+
6702
+ path_template = 'certificates/restore'
6703
+
6704
+ request_url = @base_url || self.base_url
6705
+ request_url = request_url.gsub('{vaultBaseUrl}', vault_base_url)
6706
+
6707
+ options = {
6708
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
6709
+ query_params: {'api-version' => api_version},
6710
+ body: request_content,
6711
+ headers: request_headers.merge(custom_headers || {}),
6712
+ base_url: request_url
6713
+ }
6714
+ promise = self.make_request_async(:post, path_template, options)
6715
+
6716
+ promise = promise.then do |result|
6717
+ http_response = result.response
6718
+ status_code = http_response.status
6719
+ response_content = http_response.body
6720
+ unless status_code == 200
6721
+ error_model = JSON.load(response_content)
6722
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
6723
+ end
6724
+
6725
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
6726
+ # Deserialize Response
6727
+ if status_code == 200
6728
+ begin
6729
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
6730
+ result_mapper = Azure::KeyVault::V7_0_preview::Models::CertificateBundle.mapper()
6731
+ result.body = self.deserialize(result_mapper, parsed_response)
6732
+ rescue Exception => e
6733
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
6734
+ end
6735
+ end
6736
+
6737
+ result
6738
+ end
6739
+
6740
+ promise.execute
6741
+ end
6742
+
6509
6743
  #
6510
6744
  # Lists the deleted certificates in the specified vault currently available for
6511
6745
  # recovery.
@@ -6520,13 +6754,15 @@ module Azure::KeyVault::V7_0_preview
6520
6754
  # https://myvault.vault.azure.net.
6521
6755
  # @param maxresults [Integer] Maximum number of results to return in a page. If
6522
6756
  # not specified the service will return up to 25 results.
6757
+ # @param include_pending [Boolean] Specifies whether to include certificates
6758
+ # which are not completely provisioned.
6523
6759
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
6524
6760
  # will be added to the HTTP request.
6525
6761
  #
6526
6762
  # @return [Array<DeletedCertificateItem>] operation results.
6527
6763
  #
6528
- def get_deleted_certificates(vault_base_url, maxresults:nil, custom_headers:nil)
6529
- first_page = get_deleted_certificates_as_lazy(vault_base_url, maxresults:maxresults, custom_headers:custom_headers)
6764
+ def get_deleted_certificates(vault_base_url, maxresults:nil, include_pending:nil, custom_headers:nil)
6765
+ first_page = get_deleted_certificates_as_lazy(vault_base_url, maxresults:maxresults, include_pending:include_pending, custom_headers:custom_headers)
6530
6766
  first_page.get_all_items
6531
6767
  end
6532
6768
 
@@ -6544,13 +6780,15 @@ module Azure::KeyVault::V7_0_preview
6544
6780
  # https://myvault.vault.azure.net.
6545
6781
  # @param maxresults [Integer] Maximum number of results to return in a page. If
6546
6782
  # not specified the service will return up to 25 results.
6783
+ # @param include_pending [Boolean] Specifies whether to include certificates
6784
+ # which are not completely provisioned.
6547
6785
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
6548
6786
  # will be added to the HTTP request.
6549
6787
  #
6550
6788
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
6551
6789
  #
6552
- def get_deleted_certificates_with_http_info(vault_base_url, maxresults:nil, custom_headers:nil)
6553
- get_deleted_certificates_async(vault_base_url, maxresults:maxresults, custom_headers:custom_headers).value!
6790
+ def get_deleted_certificates_with_http_info(vault_base_url, maxresults:nil, include_pending:nil, custom_headers:nil)
6791
+ get_deleted_certificates_async(vault_base_url, maxresults:maxresults, include_pending:include_pending, custom_headers:custom_headers).value!
6554
6792
  end
6555
6793
 
6556
6794
  #
@@ -6567,12 +6805,14 @@ module Azure::KeyVault::V7_0_preview
6567
6805
  # https://myvault.vault.azure.net.
6568
6806
  # @param maxresults [Integer] Maximum number of results to return in a page. If
6569
6807
  # not specified the service will return up to 25 results.
6808
+ # @param include_pending [Boolean] Specifies whether to include certificates
6809
+ # which are not completely provisioned.
6570
6810
  # @param [Hash{String => String}] A hash of custom headers that will be added
6571
6811
  # to the HTTP request.
6572
6812
  #
6573
6813
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
6574
6814
  #
6575
- def get_deleted_certificates_async(vault_base_url, maxresults:nil, custom_headers:nil)
6815
+ def get_deleted_certificates_async(vault_base_url, maxresults:nil, include_pending:nil, custom_headers:nil)
6576
6816
  fail ArgumentError, 'vault_base_url is nil' if vault_base_url.nil?
6577
6817
  fail ArgumentError, "'maxresults' should satisfy the constraint - 'InclusiveMaximum': '25'" if !maxresults.nil? && maxresults > 25
6578
6818
  fail ArgumentError, "'maxresults' should satisfy the constraint - 'InclusiveMinimum': '1'" if !maxresults.nil? && maxresults < 1
@@ -6592,7 +6832,7 @@ module Azure::KeyVault::V7_0_preview
6592
6832
 
6593
6833
  options = {
6594
6834
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
6595
- query_params: {'maxresults' => maxresults,'api-version' => api_version},
6835
+ query_params: {'maxresults' => maxresults,'includePending' => include_pending,'api-version' => api_version},
6596
6836
  headers: request_headers.merge(custom_headers || {}),
6597
6837
  base_url: request_url
6598
6838
  }
@@ -7284,8 +7524,8 @@ module Azure::KeyVault::V7_0_preview
7284
7524
  # will be added to the HTTP request.
7285
7525
  #
7286
7526
  #
7287
- def purge_deleted_storge_account(vault_base_url, storage_account_name, custom_headers:nil)
7288
- response = purge_deleted_storge_account_async(vault_base_url, storage_account_name, custom_headers:custom_headers).value!
7527
+ def purge_deleted_storage_account(vault_base_url, storage_account_name, custom_headers:nil)
7528
+ response = purge_deleted_storage_account_async(vault_base_url, storage_account_name, custom_headers:custom_headers).value!
7289
7529
  nil
7290
7530
  end
7291
7531
 
@@ -7305,8 +7545,8 @@ module Azure::KeyVault::V7_0_preview
7305
7545
  #
7306
7546
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
7307
7547
  #
7308
- def purge_deleted_storge_account_with_http_info(vault_base_url, storage_account_name, custom_headers:nil)
7309
- purge_deleted_storge_account_async(vault_base_url, storage_account_name, custom_headers:custom_headers).value!
7548
+ def purge_deleted_storage_account_with_http_info(vault_base_url, storage_account_name, custom_headers:nil)
7549
+ purge_deleted_storage_account_async(vault_base_url, storage_account_name, custom_headers:custom_headers).value!
7310
7550
  end
7311
7551
 
7312
7552
  #
@@ -7325,7 +7565,7 @@ module Azure::KeyVault::V7_0_preview
7325
7565
  #
7326
7566
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
7327
7567
  #
7328
- def purge_deleted_storge_account_async(vault_base_url, storage_account_name, custom_headers:nil)
7568
+ def purge_deleted_storage_account_async(vault_base_url, storage_account_name, custom_headers:nil)
7329
7569
  fail ArgumentError, 'vault_base_url is nil' if vault_base_url.nil?
7330
7570
  fail ArgumentError, 'storage_account_name is nil' if storage_account_name.nil?
7331
7571
  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?
@@ -11335,13 +11575,15 @@ module Azure::KeyVault::V7_0_preview
11335
11575
  # https://myvault.vault.azure.net.
11336
11576
  # @param maxresults [Integer] Maximum number of results to return in a page. If
11337
11577
  # not specified the service will return up to 25 results.
11578
+ # @param include_pending [Boolean] Specifies whether to include certificates
11579
+ # which are not completely provisioned.
11338
11580
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
11339
11581
  # will be added to the HTTP request.
11340
11582
  #
11341
11583
  # @return [CertificateListResult] operation results.
11342
11584
  #
11343
- def get_certificates_as_lazy(vault_base_url, maxresults:nil, custom_headers:nil)
11344
- first_page = get_certificates_as_lazy_as_lazy(vault_base_url, maxresults:maxresults, custom_headers:custom_headers)
11585
+ def get_certificates_as_lazy(vault_base_url, maxresults:nil, include_pending:nil, custom_headers:nil)
11586
+ first_page = get_certificates_as_lazy_as_lazy(vault_base_url, maxresults:maxresults, include_pending:include_pending, custom_headers:custom_headers)
11345
11587
  first_page.get_all_items
11346
11588
  end
11347
11589
 
@@ -11356,13 +11598,15 @@ module Azure::KeyVault::V7_0_preview
11356
11598
  # https://myvault.vault.azure.net.
11357
11599
  # @param maxresults [Integer] Maximum number of results to return in a page. If
11358
11600
  # not specified the service will return up to 25 results.
11601
+ # @param include_pending [Boolean] Specifies whether to include certificates
11602
+ # which are not completely provisioned.
11359
11603
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
11360
11604
  # will be added to the HTTP request.
11361
11605
  #
11362
11606
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
11363
11607
  #
11364
- def get_certificates_as_lazy_with_http_info(vault_base_url, maxresults:nil, custom_headers:nil)
11365
- get_certificates_as_lazy_async(vault_base_url, maxresults:maxresults, custom_headers:custom_headers).value!
11608
+ def get_certificates_as_lazy_with_http_info(vault_base_url, maxresults:nil, include_pending:nil, custom_headers:nil)
11609
+ get_certificates_as_lazy_async(vault_base_url, maxresults:maxresults, include_pending:include_pending, custom_headers:custom_headers).value!
11366
11610
  end
11367
11611
 
11368
11612
  #
@@ -11376,12 +11620,14 @@ module Azure::KeyVault::V7_0_preview
11376
11620
  # https://myvault.vault.azure.net.
11377
11621
  # @param maxresults [Integer] Maximum number of results to return in a page. If
11378
11622
  # not specified the service will return up to 25 results.
11623
+ # @param include_pending [Boolean] Specifies whether to include certificates
11624
+ # which are not completely provisioned.
11379
11625
  # @param [Hash{String => String}] A hash of custom headers that will be added
11380
11626
  # to the HTTP request.
11381
11627
  #
11382
11628
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
11383
11629
  #
11384
- def get_certificates_as_lazy_async(vault_base_url, maxresults:nil, custom_headers:nil)
11630
+ def get_certificates_as_lazy_async(vault_base_url, maxresults:nil, include_pending:nil, custom_headers:nil)
11385
11631
  fail ArgumentError, 'vault_base_url is nil' if vault_base_url.nil?
11386
11632
  fail ArgumentError, "'maxresults' should satisfy the constraint - 'InclusiveMaximum': '25'" if !maxresults.nil? && maxresults > 25
11387
11633
  fail ArgumentError, "'maxresults' should satisfy the constraint - 'InclusiveMinimum': '1'" if !maxresults.nil? && maxresults < 1
@@ -11396,7 +11642,7 @@ module Azure::KeyVault::V7_0_preview
11396
11642
 
11397
11643
  options = {
11398
11644
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
11399
- query_params: {'maxresults' => maxresults},
11645
+ query_params: {'maxresults' => maxresults,'includePending' => include_pending},
11400
11646
  headers: request_headers.merge(custom_headers || {}),
11401
11647
  base_url: request_url
11402
11648
  }
@@ -11658,13 +11904,15 @@ module Azure::KeyVault::V7_0_preview
11658
11904
  # https://myvault.vault.azure.net.
11659
11905
  # @param maxresults [Integer] Maximum number of results to return in a page. If
11660
11906
  # not specified the service will return up to 25 results.
11907
+ # @param include_pending [Boolean] Specifies whether to include certificates
11908
+ # which are not completely provisioned.
11661
11909
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
11662
11910
  # will be added to the HTTP request.
11663
11911
  #
11664
11912
  # @return [DeletedCertificateListResult] operation results.
11665
11913
  #
11666
- def get_deleted_certificates_as_lazy(vault_base_url, maxresults:nil, custom_headers:nil)
11667
- first_page = get_deleted_certificates_as_lazy_as_lazy(vault_base_url, maxresults:maxresults, custom_headers:custom_headers)
11914
+ def get_deleted_certificates_as_lazy(vault_base_url, maxresults:nil, include_pending:nil, custom_headers:nil)
11915
+ first_page = get_deleted_certificates_as_lazy_as_lazy(vault_base_url, maxresults:maxresults, include_pending:include_pending, custom_headers:custom_headers)
11668
11916
  first_page.get_all_items
11669
11917
  end
11670
11918
 
@@ -11682,13 +11930,15 @@ module Azure::KeyVault::V7_0_preview
11682
11930
  # https://myvault.vault.azure.net.
11683
11931
  # @param maxresults [Integer] Maximum number of results to return in a page. If
11684
11932
  # not specified the service will return up to 25 results.
11933
+ # @param include_pending [Boolean] Specifies whether to include certificates
11934
+ # which are not completely provisioned.
11685
11935
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
11686
11936
  # will be added to the HTTP request.
11687
11937
  #
11688
11938
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
11689
11939
  #
11690
- def get_deleted_certificates_as_lazy_with_http_info(vault_base_url, maxresults:nil, custom_headers:nil)
11691
- get_deleted_certificates_as_lazy_async(vault_base_url, maxresults:maxresults, custom_headers:custom_headers).value!
11940
+ def get_deleted_certificates_as_lazy_with_http_info(vault_base_url, maxresults:nil, include_pending:nil, custom_headers:nil)
11941
+ get_deleted_certificates_as_lazy_async(vault_base_url, maxresults:maxresults, include_pending:include_pending, custom_headers:custom_headers).value!
11692
11942
  end
11693
11943
 
11694
11944
  #
@@ -11705,12 +11955,14 @@ module Azure::KeyVault::V7_0_preview
11705
11955
  # https://myvault.vault.azure.net.
11706
11956
  # @param maxresults [Integer] Maximum number of results to return in a page. If
11707
11957
  # not specified the service will return up to 25 results.
11958
+ # @param include_pending [Boolean] Specifies whether to include certificates
11959
+ # which are not completely provisioned.
11708
11960
  # @param [Hash{String => String}] A hash of custom headers that will be added
11709
11961
  # to the HTTP request.
11710
11962
  #
11711
11963
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
11712
11964
  #
11713
- def get_deleted_certificates_as_lazy_async(vault_base_url, maxresults:nil, custom_headers:nil)
11965
+ def get_deleted_certificates_as_lazy_async(vault_base_url, maxresults:nil, include_pending:nil, custom_headers:nil)
11714
11966
  fail ArgumentError, 'vault_base_url is nil' if vault_base_url.nil?
11715
11967
  fail ArgumentError, "'maxresults' should satisfy the constraint - 'InclusiveMaximum': '25'" if !maxresults.nil? && maxresults > 25
11716
11968
  fail ArgumentError, "'maxresults' should satisfy the constraint - 'InclusiveMinimum': '1'" if !maxresults.nil? && maxresults < 1
@@ -11725,7 +11977,7 @@ module Azure::KeyVault::V7_0_preview
11725
11977
 
11726
11978
  options = {
11727
11979
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
11728
- query_params: {'maxresults' => maxresults},
11980
+ query_params: {'maxresults' => maxresults,'includePending' => include_pending},
11729
11981
  headers: request_headers.merge(custom_headers || {}),
11730
11982
  base_url: request_url
11731
11983
  }
@@ -12179,7 +12431,7 @@ module Azure::KeyVault::V7_0_preview
12179
12431
  #
12180
12432
  def add_telemetry
12181
12433
  sdk_information = 'azure_key_vault'
12182
- sdk_information = "#{sdk_information}/0.16.0"
12434
+ sdk_information = "#{sdk_information}/0.17.0"
12183
12435
  add_user_agent_information(sdk_information)
12184
12436
  end
12185
12437
  end