зеркало из
1
0
Форкнуть 0
This commit is contained in:
Kai Ru 2021-03-22 16:07:28 +08:00
Родитель d9ac061f3a
Коммит 051d1daa5c
30 изменённых файлов: 357 добавлений и 351 удалений

Просмотреть файл

@ -1,6 +1,9 @@
## 2021.03.22 - Azure Ruby SDK Release ## 2021.03.22 - Azure Ruby SDK Release
- azure_key_vault - v0.19.0 - azure_key_vault - v0.19.0
- azure_mgmt_resources - v0.18.2 - azure_mgmt_resources - v0.18.2
- azure_mgmt_bot_service - v0.17.2
- azure_mgmt_cognitive_services - v0.19.4
- azure_mgmt_cosmosdb - v0.24.1
- azure_sdk - v0.72.0 - azure_sdk - v0.72.0
## 2021.03.11 - Azure Ruby SDK Release ## 2021.03.11 - Azure Ruby SDK Release

Просмотреть файл

@ -3,7 +3,10 @@
"azure_key_vault" "azure_key_vault"
], ],
"management": [ "management": [
"azure_mgmt_resources" "azure_mgmt_resources",
"azure_mgmt_bot_service",
"azure_mgmt_cognitive_services",
"azure_mgmt_cosmosdb"
], ],
"rollup": [ "rollup": [
"azure_sdk" "azure_sdk"

Просмотреть файл

@ -48,9 +48,9 @@
"azure_mgmt_batch": "0.18.1", "azure_mgmt_batch": "0.18.1",
"azure_mgmt_batchai": "0.17.1", "azure_mgmt_batchai": "0.17.1",
"azure_mgmt_billing": "0.17.3", "azure_mgmt_billing": "0.17.3",
"azure_mgmt_bot_service": "0.17.1", "azure_mgmt_bot_service": "0.17.2",
"azure_mgmt_cdn": "0.18.2", "azure_mgmt_cdn": "0.18.2",
"azure_mgmt_cognitive_services": "0.19.3", "azure_mgmt_cognitive_services": "0.19.4",
"azure_mgmt_commerce": "0.17.2", "azure_mgmt_commerce": "0.17.2",
"azure_mgmt_compute": "0.22.0", "azure_mgmt_compute": "0.22.0",
"azure_mgmt_confluent": "0.17.0", "azure_mgmt_confluent": "0.17.0",
@ -58,7 +58,7 @@
"azure_mgmt_container_instance": "0.18.0", "azure_mgmt_container_instance": "0.18.0",
"azure_mgmt_container_registry": "0.18.5", "azure_mgmt_container_registry": "0.18.5",
"azure_mgmt_container_service": "0.22.0", "azure_mgmt_container_service": "0.22.0",
"azure_mgmt_cosmosdb": "0.24.0", "azure_mgmt_cosmosdb": "0.24.1",
"azure_mgmt_cost_management": "0.17.1", "azure_mgmt_cost_management": "0.17.1",
"azure_mgmt_customer_insights": "0.17.3", "azure_mgmt_customer_insights": "0.17.3",
"azure_mgmt_databox": "0.17.1", "azure_mgmt_databox": "0.17.1",

Просмотреть файл

@ -183,12 +183,12 @@ module Azure::KeyVault::V2015_06_01
fail ArgumentError, 'kty is nil' if kty.nil? fail ArgumentError, 'kty is nil' if kty.nil?
fail ArgumentError, "'kty' should satisfy the constraint - 'MinLength': '1'" if !kty.nil? && kty.length < 1 fail ArgumentError, "'kty' should satisfy the constraint - 'MinLength': '1'" if !kty.nil? && kty.length < 1
parameters = KeyCreateParameters.new parameters = Azure::KeyVault::V2015_06_01::Models::KeyCreateParameters.new
unless kty.nil? && key_size.nil? && key_ops.nil? && key_attributes.nil? && tags.nil? unless kty.nil? && key_size.nil? && key_ops.nil? && key_attributes.nil? && tags.nil?
parameters.kty = kty parameters.kty = kty
parameters.key_size = key_size parameters.key_size = key_size
parameters.key_ops = key_ops parameters.key_ops = key_ops
parameters.keyAttributes = key_attributes parameters.key_attributes = key_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -315,11 +315,11 @@ module Azure::KeyVault::V2015_06_01
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'key is nil' if key.nil? fail ArgumentError, 'key is nil' if key.nil?
parameters = KeyImportParameters.new parameters = Azure::KeyVault::V2015_06_01::Models::KeyCreateParameters.KeyImportParameters.new
unless hsm.nil? && key.nil? && key_attributes.nil? && tags.nil? unless hsm.nil? && key.nil? && key_attributes.nil? && tags.nil?
parameters.hsm = hsm parameters.hsm = hsm
parameters.key = key parameters.key = key
parameters.keyAttributes = key_attributes parameters.key_attributes = key_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -542,10 +542,10 @@ module Azure::KeyVault::V2015_06_01
fail ArgumentError, 'key_version is nil' if key_version.nil? fail ArgumentError, 'key_version is nil' if key_version.nil?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = KeyUpdateParameters.new parameters = Azure::KeyVault::V2015_06_01::Models::KeyCreateParameters.KeyUpdateParameters.new
unless key_ops.nil? && key_attributes.nil? && tags.nil? unless key_ops.nil? && key_attributes.nil? && tags.nil?
parameters.key_ops = key_ops parameters.key_ops = key_ops
parameters.keyAttributes = key_attributes parameters.key_attributes = key_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -1055,9 +1055,9 @@ module Azure::KeyVault::V2015_06_01
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'key_bundle_backup is nil' if key_bundle_backup.nil? fail ArgumentError, 'key_bundle_backup is nil' if key_bundle_backup.nil?
parameters = KeyRestoreParameters.new parameters = Azure::KeyVault::V2015_06_01::Models::KeyCreateParameters.KeyRestoreParameters.new
unless key_bundle_backup.nil? unless key_bundle_backup.nil?
parameters.keyBundleBackup = key_bundle_backup parameters.key_bundle_backup = key_bundle_backup
end end
request_headers = {} request_headers = {}
@ -1181,7 +1181,7 @@ module Azure::KeyVault::V2015_06_01
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeyOperationsParameters.new parameters = Azure::KeyVault::V2015_06_01::Models::KeyCreateParameters.KeyOperationsParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -1306,7 +1306,7 @@ module Azure::KeyVault::V2015_06_01
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeyOperationsParameters.new parameters = Azure::KeyVault::V2015_06_01::Models::KeyCreateParameters.KeyOperationsParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -1437,7 +1437,7 @@ module Azure::KeyVault::V2015_06_01
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeySignParameters.new parameters = Azure::KeyVault::V2015_06_01::Models::KeyCreateParameters.KeySignParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -1572,7 +1572,7 @@ module Azure::KeyVault::V2015_06_01
fail ArgumentError, 'digest is nil' if digest.nil? fail ArgumentError, 'digest is nil' if digest.nil?
fail ArgumentError, 'signature is nil' if signature.nil? fail ArgumentError, 'signature is nil' if signature.nil?
parameters = KeyVerifyParameters.new parameters = Azure::KeyVault::V2015_06_01::Models::KeyCreateParameters.KeyVerifyParameters.new
unless algorithm.nil? && digest.nil? && signature.nil? unless algorithm.nil? && digest.nil? && signature.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.digest = digest parameters.digest = digest
@ -1698,7 +1698,7 @@ module Azure::KeyVault::V2015_06_01
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeyOperationsParameters.new parameters = Azure::KeyVault::V2015_06_01::Models::KeyCreateParameters.KeyOperationsParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -1826,7 +1826,7 @@ module Azure::KeyVault::V2015_06_01
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeyOperationsParameters.new parameters = Azure::KeyVault::V2015_06_01::Models::KeyCreateParameters.KeyOperationsParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -1952,12 +1952,12 @@ module Azure::KeyVault::V2015_06_01
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = SecretSetParameters.new parameters = Azure::KeyVault::V2015_06_01::Models::KeyCreateParameters.SecretSetParameters.new
unless value.nil? && tags.nil? && content_type.nil? && secret_attributes.nil? unless value.nil? && tags.nil? && content_type.nil? && secret_attributes.nil?
parameters.value = value parameters.value = value
parameters.tags = tags parameters.tags = tags
parameters.content_type = content_type parameters.content_type = content_type
parameters.secretAttributes = secret_attributes parameters.secret_attributes = secret_attributes
end end
request_headers = {} request_headers = {}
@ -2176,10 +2176,10 @@ module Azure::KeyVault::V2015_06_01
fail ArgumentError, 'secret_version is nil' if secret_version.nil? fail ArgumentError, 'secret_version is nil' if secret_version.nil?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = SecretUpdateParameters.new parameters = Azure::KeyVault::V2015_06_01::Models::KeyCreateParameters.SecretUpdateParameters.new
unless content_type.nil? && secret_attributes.nil? && tags.nil? unless content_type.nil? && secret_attributes.nil? && tags.nil?
parameters.content_type = content_type parameters.content_type = content_type
parameters.secretAttributes = secret_attributes parameters.secret_attributes = secret_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -3654,10 +3654,10 @@ module Azure::KeyVault::V2015_06_01
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? 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?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = CertificateCreateParameters.new parameters = Azure::KeyVault::V2015_06_01::Models::KeyCreateParameters.CertificateCreateParameters.new
unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil? unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil?
parameters.CertificatePolicy = certificate_policy parameters.certificate_policy = certificate_policy
parameters.CertificateAttributes = certificate_attributes parameters.certificate_attributes = certificate_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -3726,7 +3726,7 @@ module Azure::KeyVault::V2015_06_01
# @param base64encoded_certificate [String] Base64 encoded representation of # @param base64encoded_certificate [String] Base64 encoded representation of
# the certificate object to import. This certificate needs to contain the # the certificate object to import. This certificate needs to contain the
# private key. # private key.
# @param password [String] If the private key in base64EncodedCertificate is # @param password [String] If the private key in base64encoded_certificate is
# encrypted, the password used for encryption # encrypted, the password used for encryption
# @param certificate_policy [CertificatePolicy] The management policy for the # @param certificate_policy [CertificatePolicy] The management policy for the
# certificate # certificate
@ -3753,7 +3753,7 @@ module Azure::KeyVault::V2015_06_01
# @param base64encoded_certificate [String] Base64 encoded representation of # @param base64encoded_certificate [String] Base64 encoded representation of
# the certificate object to import. This certificate needs to contain the # the certificate object to import. This certificate needs to contain the
# private key. # private key.
# @param password [String] If the private key in base64EncodedCertificate is # @param password [String] If the private key in base64encoded_certificate is
# encrypted, the password used for encryption # encrypted, the password used for encryption
# @param certificate_policy [CertificatePolicy] The management policy for the # @param certificate_policy [CertificatePolicy] The management policy for the
# certificate # certificate
@ -3779,7 +3779,7 @@ module Azure::KeyVault::V2015_06_01
# @param base64encoded_certificate [String] Base64 encoded representation of # @param base64encoded_certificate [String] Base64 encoded representation of
# the certificate object to import. This certificate needs to contain the # the certificate object to import. This certificate needs to contain the
# private key. # private key.
# @param password [String] If the private key in base64EncodedCertificate is # @param password [String] If the private key in base64encoded_certificate is
# encrypted, the password used for encryption # encrypted, the password used for encryption
# @param certificate_policy [CertificatePolicy] The management policy for the # @param certificate_policy [CertificatePolicy] The management policy for the
# certificate # certificate
@ -3799,12 +3799,12 @@ module Azure::KeyVault::V2015_06_01
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'base64encoded_certificate is nil' if base64encoded_certificate.nil? fail ArgumentError, 'base64encoded_certificate is nil' if base64encoded_certificate.nil?
parameters = CertificateImportParameters.new parameters = Azure::KeyVault::V2015_06_01::Models::KeyCreateParameters.CertificateImportParameters.new
unless base64encoded_certificate.nil? && password.nil? && certificate_policy.nil? && certificate_attributes.nil? && tags.nil? unless base64encoded_certificate.nil? && password.nil? && certificate_policy.nil? && certificate_attributes.nil? && tags.nil?
parameters.base64EncodedCertificate = base64encoded_certificate parameters.base64encoded_certificate = base64encoded_certificate
parameters.password = password parameters.password = password
parameters.CertificatePolicy = certificate_policy parameters.certificate_policy = certificate_policy
parameters.CertificateAttributes = certificate_attributes parameters.certificate_attributes = certificate_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -4071,7 +4071,7 @@ module Azure::KeyVault::V2015_06_01
# #
# Updates the policy for a certificate. Set appropriate members in the # Updates the policy for a certificate. Set appropriate members in the
# certificatePolicy that must be updated. Leave others as null. # certificate_policy that must be updated. Leave others as null.
# #
# @param vault_base_url [String] The vault name, e.g. # @param vault_base_url [String] The vault name, e.g.
# https://myvault.vault.azure.net # https://myvault.vault.azure.net
@ -4090,7 +4090,7 @@ module Azure::KeyVault::V2015_06_01
# #
# Updates the policy for a certificate. Set appropriate members in the # Updates the policy for a certificate. Set appropriate members in the
# certificatePolicy that must be updated. Leave others as null. # certificate_policy that must be updated. Leave others as null.
# #
# @param vault_base_url [String] The vault name, e.g. # @param vault_base_url [String] The vault name, e.g.
# https://myvault.vault.azure.net # https://myvault.vault.azure.net
@ -4108,7 +4108,7 @@ module Azure::KeyVault::V2015_06_01
# #
# Updates the policy for a certificate. Set appropriate members in the # Updates the policy for a certificate. Set appropriate members in the
# certificatePolicy that must be updated. Leave others as null. # certificate_policy that must be updated. Leave others as null.
# #
# @param vault_base_url [String] The vault name, e.g. # @param vault_base_url [String] The vault name, e.g.
# https://myvault.vault.azure.net # https://myvault.vault.azure.net
@ -4255,10 +4255,10 @@ module Azure::KeyVault::V2015_06_01
fail ArgumentError, 'certificate_version is nil' if certificate_version.nil? fail ArgumentError, 'certificate_version is nil' if certificate_version.nil?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = CertificateUpdateParameters.new parameters = Azure::KeyVault::V2015_06_01::Models::KeyCreateParameters.CertificateUpdateParameters.new
unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil? unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil?
parameters.CertificatePolicy = certificate_policy parameters.certificate_policy = certificate_policy
parameters.CertificateAttributes = certificate_attributes parameters.certificate_attributes = certificate_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -4800,10 +4800,10 @@ module Azure::KeyVault::V2015_06_01
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'x509certificates is nil' if x509certificates.nil? fail ArgumentError, 'x509certificates is nil' if x509certificates.nil?
parameters = CertificateMergeParameters.new parameters = Azure::KeyVault::V2015_06_01::Models::KeyCreateParameters.CertificateMergeParameters.new
unless x509certificates.nil? && certificate_attributes.nil? && tags.nil? unless x509certificates.nil? && certificate_attributes.nil? && tags.nil?
parameters.x509Certificates = x509certificates parameters.x509certificates = x509certificates
parameters.CertificateAttributes = certificate_attributes parameters.certificate_attributes = certificate_attributes
parameters.tags = tags parameters.tags = tags
end end

Просмотреть файл

@ -16,7 +16,7 @@ module Azure::KeyVault::V2015_06_01
# object to import. This certificate needs to contain the private key. # object to import. This certificate needs to contain the private key.
attr_accessor :base64encoded_certificate attr_accessor :base64encoded_certificate
# @return [String] If the private key in base64EncodedCertificate is # @return [String] If the private key in base64encoded_certificate is
# encrypted, the password used for encryption # encrypted, the password used for encryption
attr_accessor :password attr_accessor :password

Просмотреть файл

@ -213,12 +213,12 @@ module Azure::KeyVault::V2016_10_01
fail ArgumentError, 'kty is nil' if kty.nil? fail ArgumentError, 'kty is nil' if kty.nil?
fail ArgumentError, "'kty' should satisfy the constraint - 'MinLength': '1'" if !kty.nil? && kty.length < 1 fail ArgumentError, "'kty' should satisfy the constraint - 'MinLength': '1'" if !kty.nil? && kty.length < 1
parameters = KeyCreateParameters.new parameters = Azure::KeyVault::V2016_10_01::Models::KeyCreateParameters.new
unless kty.nil? && key_size.nil? && key_ops.nil? && key_attributes.nil? && tags.nil? && curve.nil? unless kty.nil? && key_size.nil? && key_ops.nil? && key_attributes.nil? && tags.nil? && curve.nil?
parameters.kty = kty parameters.kty = kty
parameters.key_size = key_size parameters.key_size = key_size
parameters.key_ops = key_ops parameters.key_ops = key_ops
parameters.keyAttributes = key_attributes parameters.key_attributes = key_attributes
parameters.tags = tags parameters.tags = tags
parameters.curve = curve parameters.curve = curve
end end
@ -361,11 +361,11 @@ module Azure::KeyVault::V2016_10_01
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'key is nil' if key.nil? fail ArgumentError, 'key is nil' if key.nil?
parameters = KeyImportParameters.new parameters = Azure::KeyVault::V2016_10_01::Models::KeyImportParameters.new
unless hsm.nil? && key.nil? && key_attributes.nil? && tags.nil? unless hsm.nil? && key.nil? && key_attributes.nil? && tags.nil?
parameters.hsm = hsm parameters.hsm = hsm
parameters.key = key parameters.key = key
parameters.keyAttributes = key_attributes parameters.key_attributes = key_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -621,10 +621,10 @@ module Azure::KeyVault::V2016_10_01
fail ArgumentError, 'key_version is nil' if key_version.nil? fail ArgumentError, 'key_version is nil' if key_version.nil?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = KeyUpdateParameters.new parameters = Azure::KeyVault::V2016_10_01::Models::KeyUpdateParameters.new
unless key_ops.nil? && key_attributes.nil? && tags.nil? unless key_ops.nil? && key_attributes.nil? && tags.nil?
parameters.key_ops = key_ops parameters.key_ops = key_ops
parameters.keyAttributes = key_attributes parameters.key_attributes = key_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -1260,9 +1260,9 @@ module Azure::KeyVault::V2016_10_01
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'key_bundle_backup is nil' if key_bundle_backup.nil? fail ArgumentError, 'key_bundle_backup is nil' if key_bundle_backup.nil?
parameters = KeyRestoreParameters.new parameters = Azure::KeyVault::V2016_10_01::Models::KeyRestoreParameters.new
unless key_bundle_backup.nil? unless key_bundle_backup.nil?
parameters.keyBundleBackup = key_bundle_backup parameters.key_bundle_backup = key_bundle_backup
end end
request_headers = {} request_headers = {}
@ -1419,7 +1419,7 @@ module Azure::KeyVault::V2016_10_01
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeyOperationsParameters.new parameters = Azure::KeyVault::V2016_10_01::Models::KeyOperationsParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -1568,7 +1568,7 @@ module Azure::KeyVault::V2016_10_01
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeyOperationsParameters.new parameters = Azure::KeyVault::V2016_10_01::Models::KeyOperationsParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -1714,7 +1714,7 @@ module Azure::KeyVault::V2016_10_01
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeySignParameters.new parameters = Azure::KeyVault::V2016_10_01::Models::KeySignParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -1873,7 +1873,7 @@ module Azure::KeyVault::V2016_10_01
fail ArgumentError, 'digest is nil' if digest.nil? fail ArgumentError, 'digest is nil' if digest.nil?
fail ArgumentError, 'signature is nil' if signature.nil? fail ArgumentError, 'signature is nil' if signature.nil?
parameters = KeyVerifyParameters.new parameters = Azure::KeyVault::V2016_10_01::Models::KeyVerifyParameters.new
unless algorithm.nil? && digest.nil? && signature.nil? unless algorithm.nil? && digest.nil? && signature.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.digest = digest parameters.digest = digest
@ -2023,7 +2023,7 @@ module Azure::KeyVault::V2016_10_01
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeyOperationsParameters.new parameters = Azure::KeyVault::V2016_10_01::Models::KeyOperationsParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -2169,7 +2169,7 @@ module Azure::KeyVault::V2016_10_01
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeyOperationsParameters.new parameters = Azure::KeyVault::V2016_10_01::Models::KeyOperationsParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -2756,12 +2756,12 @@ module Azure::KeyVault::V2016_10_01
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = SecretSetParameters.new parameters = Azure::KeyVault::V2016_10_01::Models::SecretSetParameters.new
unless value.nil? && tags.nil? && content_type.nil? && secret_attributes.nil? unless value.nil? && tags.nil? && content_type.nil? && secret_attributes.nil?
parameters.value = value parameters.value = value
parameters.tags = tags parameters.tags = tags
parameters.content_type = content_type parameters.content_type = content_type
parameters.secretAttributes = secret_attributes parameters.secret_attributes = secret_attributes
end end
request_headers = {} request_headers = {}
@ -3010,10 +3010,10 @@ module Azure::KeyVault::V2016_10_01
fail ArgumentError, 'secret_version is nil' if secret_version.nil? fail ArgumentError, 'secret_version is nil' if secret_version.nil?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = SecretUpdateParameters.new parameters = Azure::KeyVault::V2016_10_01::Models::SecretUpdateParameters.new
unless content_type.nil? && secret_attributes.nil? && tags.nil? unless content_type.nil? && secret_attributes.nil? && tags.nil?
parameters.content_type = content_type parameters.content_type = content_type
parameters.secretAttributes = secret_attributes parameters.secret_attributes = secret_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -4008,9 +4008,9 @@ module Azure::KeyVault::V2016_10_01
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'secret_bundle_backup is nil' if secret_bundle_backup.nil? fail ArgumentError, 'secret_bundle_backup is nil' if secret_bundle_backup.nil?
parameters = SecretRestoreParameters.new parameters = Azure::KeyVault::V2016_10_01::Models::SecretRestoreParameters.new
unless secret_bundle_backup.nil? unless secret_bundle_backup.nil?
parameters.secretBundleBackup = secret_bundle_backup parameters.secret_bundle_backup = secret_bundle_backup
end end
request_headers = {} request_headers = {}
@ -5294,10 +5294,10 @@ module Azure::KeyVault::V2016_10_01
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? 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?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = CertificateCreateParameters.new parameters = Azure::KeyVault::V2016_10_01::Models::CertificateCreateParameters.new
unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil? unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil?
parameters.CertificatePolicy = certificate_policy parameters.certificate_policy = certificate_policy
parameters.CertificateAttributes = certificate_attributes parameters.certificate_attributes = certificate_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -5372,7 +5372,7 @@ module Azure::KeyVault::V2016_10_01
# @param base64encoded_certificate [String] Base64 encoded representation of # @param base64encoded_certificate [String] Base64 encoded representation of
# the certificate object to import. This certificate needs to contain the # the certificate object to import. This certificate needs to contain the
# private key. # private key.
# @param password [String] If the private key in base64EncodedCertificate is # @param password [String] If the private key in base64encoded_certificate is
# encrypted, the password used for encryption. # encrypted, the password used for encryption.
# @param certificate_policy [CertificatePolicy] The management policy for the # @param certificate_policy [CertificatePolicy] The management policy for the
# certificate. # certificate.
@ -5405,7 +5405,7 @@ module Azure::KeyVault::V2016_10_01
# @param base64encoded_certificate [String] Base64 encoded representation of # @param base64encoded_certificate [String] Base64 encoded representation of
# the certificate object to import. This certificate needs to contain the # the certificate object to import. This certificate needs to contain the
# private key. # private key.
# @param password [String] If the private key in base64EncodedCertificate is # @param password [String] If the private key in base64encoded_certificate is
# encrypted, the password used for encryption. # encrypted, the password used for encryption.
# @param certificate_policy [CertificatePolicy] The management policy for the # @param certificate_policy [CertificatePolicy] The management policy for the
# certificate. # certificate.
@ -5437,7 +5437,7 @@ module Azure::KeyVault::V2016_10_01
# @param base64encoded_certificate [String] Base64 encoded representation of # @param base64encoded_certificate [String] Base64 encoded representation of
# the certificate object to import. This certificate needs to contain the # the certificate object to import. This certificate needs to contain the
# private key. # private key.
# @param password [String] If the private key in base64EncodedCertificate is # @param password [String] If the private key in base64encoded_certificate is
# encrypted, the password used for encryption. # encrypted, the password used for encryption.
# @param certificate_policy [CertificatePolicy] The management policy for the # @param certificate_policy [CertificatePolicy] The management policy for the
# certificate. # certificate.
@ -5457,12 +5457,12 @@ module Azure::KeyVault::V2016_10_01
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'base64encoded_certificate is nil' if base64encoded_certificate.nil? fail ArgumentError, 'base64encoded_certificate is nil' if base64encoded_certificate.nil?
parameters = CertificateImportParameters.new parameters = Azure::KeyVault::V2016_10_01::Models::CertificateImportParameters.new
unless base64encoded_certificate.nil? && password.nil? && certificate_policy.nil? && certificate_attributes.nil? && tags.nil? unless base64encoded_certificate.nil? && password.nil? && certificate_policy.nil? && certificate_attributes.nil? && tags.nil?
parameters.base64EncodedCertificate = base64encoded_certificate parameters.base64encoded_certificate = base64encoded_certificate
parameters.password = password parameters.password = password
parameters.CertificatePolicy = certificate_policy parameters.certificate_policy = certificate_policy
parameters.CertificateAttributes = certificate_attributes parameters.certificate_attributes = certificate_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -5955,10 +5955,10 @@ module Azure::KeyVault::V2016_10_01
fail ArgumentError, 'certificate_version is nil' if certificate_version.nil? fail ArgumentError, 'certificate_version is nil' if certificate_version.nil?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = CertificateUpdateParameters.new parameters = Azure::KeyVault::V2016_10_01::Models::CertificateUpdateParameters.new
unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil? unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil?
parameters.CertificatePolicy = certificate_policy parameters.certificate_policy = certificate_policy
parameters.CertificateAttributes = certificate_attributes parameters.certificate_attributes = certificate_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -6551,10 +6551,10 @@ module Azure::KeyVault::V2016_10_01
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'x509certificates is nil' if x509certificates.nil? fail ArgumentError, 'x509certificates is nil' if x509certificates.nil?
parameters = CertificateMergeParameters.new parameters = Azure::KeyVault::V2016_10_01::Models::CertificateMergeParameters.new
unless x509certificates.nil? && certificate_attributes.nil? && tags.nil? unless x509certificates.nil? && certificate_attributes.nil? && tags.nil?
parameters.x509Certificates = x509certificates parameters.x509certificates = x509certificates
parameters.CertificateAttributes = certificate_attributes parameters.certificate_attributes = certificate_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -7455,13 +7455,13 @@ module Azure::KeyVault::V2016_10_01
fail ArgumentError, 'active_key_name is nil' if active_key_name.nil? fail ArgumentError, 'active_key_name is nil' if active_key_name.nil?
fail ArgumentError, 'auto_regenerate_key is nil' if auto_regenerate_key.nil? fail ArgumentError, 'auto_regenerate_key is nil' if auto_regenerate_key.nil?
parameters = StorageAccountCreateParameters.new parameters = Azure::KeyVault::V2016_10_01::Models::StorageAccountCreateParameters.new
unless resource_id.nil? && active_key_name.nil? && auto_regenerate_key.nil? && regeneration_period.nil? && storage_account_attributes.nil? && tags.nil? unless resource_id.nil? && active_key_name.nil? && auto_regenerate_key.nil? && regeneration_period.nil? && storage_account_attributes.nil? && tags.nil?
parameters.resource_id = resource_id parameters.resource_id = resource_id
parameters.active_key_name = active_key_name parameters.active_key_name = active_key_name
parameters.auto_regenerate_key = auto_regenerate_key parameters.auto_regenerate_key = auto_regenerate_key
parameters.regeneration_period = regeneration_period parameters.regeneration_period = regeneration_period
parameters.StorageAccountAttributes = storage_account_attributes parameters.storage_account_attributes = storage_account_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -7599,12 +7599,12 @@ module Azure::KeyVault::V2016_10_01
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? 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?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = StorageAccountUpdateParameters.new parameters = Azure::KeyVault::V2016_10_01::Models::StorageAccountUpdateParameters.new
unless active_key_name.nil? && auto_regenerate_key.nil? && regeneration_period.nil? && storage_account_attributes.nil? && tags.nil? unless active_key_name.nil? && auto_regenerate_key.nil? && regeneration_period.nil? && storage_account_attributes.nil? && tags.nil?
parameters.active_key_name = active_key_name parameters.active_key_name = active_key_name
parameters.auto_regenerate_key = auto_regenerate_key parameters.auto_regenerate_key = auto_regenerate_key
parameters.regeneration_period = regeneration_period parameters.regeneration_period = regeneration_period
parameters.StorageAccountAttributes = storage_account_attributes parameters.storage_account_attributes = storage_account_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -7719,7 +7719,7 @@ module Azure::KeyVault::V2016_10_01
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'key_name is nil' if key_name.nil? fail ArgumentError, 'key_name is nil' if key_name.nil?
parameters = StorageAccountRegenerteKeyParameters.new parameters = Azure::KeyVault::V2016_10_01::Models::StorageAccountRegenerteKeyParameters.new
unless key_name.nil? unless key_name.nil?
parameters.key_name = key_name parameters.key_name = key_name
end end
@ -8176,10 +8176,10 @@ module Azure::KeyVault::V2016_10_01
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'parameters is nil' if parameters.nil?
parameters = SasDefinitionCreateParameters.new parameters = Azure::KeyVault::V2016_10_01::Models::SasDefinitionCreateParameters.new
unless parameters.nil? && sas_definition_attributes.nil? && tags.nil? unless parameters.nil? && sas_definition_attributes.nil? && tags.nil?
parameters.parameters = parameters parameters.parameters = parameters
parameters.SasDefinitionAttributes = sas_definition_attributes parameters.sas_definition_attributes = sas_definition_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -8313,10 +8313,10 @@ module Azure::KeyVault::V2016_10_01
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? 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?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = SasDefinitionUpdateParameters.new parameters = Azure::KeyVault::V2016_10_01::Models::SasDefinitionUpdateParameters.new
unless parameters.nil? && sas_definition_attributes.nil? && tags.nil? unless parameters.nil? && sas_definition_attributes.nil? && tags.nil?
parameters.parameters = parameters parameters.parameters = parameters
parameters.SasDefinitionAttributes = sas_definition_attributes parameters.sas_definition_attributes = sas_definition_attributes
parameters.tags = tags parameters.tags = tags
end end

Просмотреть файл

@ -16,7 +16,7 @@ module Azure::KeyVault::V2016_10_01
# object to import. This certificate needs to contain the private key. # object to import. This certificate needs to contain the private key.
attr_accessor :base64encoded_certificate attr_accessor :base64encoded_certificate
# @return [String] If the private key in base64EncodedCertificate is # @return [String] If the private key in base64encoded_certificate is
# encrypted, the password used for encryption. # encrypted, the password used for encryption.
attr_accessor :password attr_accessor :password

Просмотреть файл

@ -213,12 +213,12 @@ module Azure::KeyVault::V7_0_preview
fail ArgumentError, 'kty is nil' if kty.nil? fail ArgumentError, 'kty is nil' if kty.nil?
fail ArgumentError, "'kty' should satisfy the constraint - 'MinLength': '1'" if !kty.nil? && kty.length < 1 fail ArgumentError, "'kty' should satisfy the constraint - 'MinLength': '1'" if !kty.nil? && kty.length < 1
parameters = KeyCreateParameters.new parameters = Azure::KeyVault::V7_0_preview::Models::KeyCreateParameters.new
unless kty.nil? && key_size.nil? && key_ops.nil? && key_attributes.nil? && tags.nil? && curve.nil? unless kty.nil? && key_size.nil? && key_ops.nil? && key_attributes.nil? && tags.nil? && curve.nil?
parameters.kty = kty parameters.kty = kty
parameters.key_size = key_size parameters.key_size = key_size
parameters.key_ops = key_ops parameters.key_ops = key_ops
parameters.keyAttributes = key_attributes parameters.key_attributes = key_attributes
parameters.tags = tags parameters.tags = tags
parameters.curve = curve parameters.curve = curve
end end
@ -361,11 +361,11 @@ module Azure::KeyVault::V7_0_preview
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'key is nil' if key.nil? fail ArgumentError, 'key is nil' if key.nil?
parameters = KeyImportParameters.new parameters = Azure::KeyVault::V7_0_preview::Models::KeyImportParameters.new
unless hsm.nil? && key.nil? && key_attributes.nil? && tags.nil? unless hsm.nil? && key.nil? && key_attributes.nil? && tags.nil?
parameters.hsm = hsm parameters.hsm = hsm
parameters.key = key parameters.key = key
parameters.keyAttributes = key_attributes parameters.key_attributes = key_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -621,10 +621,10 @@ module Azure::KeyVault::V7_0_preview
fail ArgumentError, 'key_version is nil' if key_version.nil? fail ArgumentError, 'key_version is nil' if key_version.nil?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = KeyUpdateParameters.new parameters = Azure::KeyVault::V7_0_preview::Models::KeyUpdateParameters.new
unless key_ops.nil? && key_attributes.nil? && tags.nil? unless key_ops.nil? && key_attributes.nil? && tags.nil?
parameters.key_ops = key_ops parameters.key_ops = key_ops
parameters.keyAttributes = key_attributes parameters.key_attributes = key_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -1260,9 +1260,9 @@ module Azure::KeyVault::V7_0_preview
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'key_bundle_backup is nil' if key_bundle_backup.nil? fail ArgumentError, 'key_bundle_backup is nil' if key_bundle_backup.nil?
parameters = KeyRestoreParameters.new parameters = Azure::KeyVault::V7_0_preview::Models::KeyRestoreParameters.new
unless key_bundle_backup.nil? unless key_bundle_backup.nil?
parameters.keyBundleBackup = key_bundle_backup parameters.key_bundle_backup = key_bundle_backup
end end
request_headers = {} request_headers = {}
@ -1419,7 +1419,7 @@ module Azure::KeyVault::V7_0_preview
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeyOperationsParameters.new parameters = Azure::KeyVault::V7_0_preview::Models::KeyOperationsParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -1568,7 +1568,7 @@ module Azure::KeyVault::V7_0_preview
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeyOperationsParameters.new parameters = Azure::KeyVault::V7_0_preview::Models::KeyOperationsParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -1714,7 +1714,7 @@ module Azure::KeyVault::V7_0_preview
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeySignParameters.new parameters = Azure::KeyVault::V7_0_preview::Models::KeySignParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -1873,7 +1873,7 @@ module Azure::KeyVault::V7_0_preview
fail ArgumentError, 'digest is nil' if digest.nil? fail ArgumentError, 'digest is nil' if digest.nil?
fail ArgumentError, 'signature is nil' if signature.nil? fail ArgumentError, 'signature is nil' if signature.nil?
parameters = KeyVerifyParameters.new parameters = Azure::KeyVault::V7_0_preview::Models::KeyVerifyParameters.new
unless algorithm.nil? && digest.nil? && signature.nil? unless algorithm.nil? && digest.nil? && signature.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.digest = digest parameters.digest = digest
@ -2023,7 +2023,7 @@ module Azure::KeyVault::V7_0_preview
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeyOperationsParameters.new parameters = Azure::KeyVault::V7_0_preview::Models::KeyOperationsParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -2169,7 +2169,7 @@ module Azure::KeyVault::V7_0_preview
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeyOperationsParameters.new parameters = Azure::KeyVault::V7_0_preview::Models::KeyOperationsParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -2756,12 +2756,12 @@ module Azure::KeyVault::V7_0_preview
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = SecretSetParameters.new parameters = Azure::KeyVault::V7_0_preview::Models::SecretSetParameters.new
unless value.nil? && tags.nil? && content_type.nil? && secret_attributes.nil? unless value.nil? && tags.nil? && content_type.nil? && secret_attributes.nil?
parameters.value = value parameters.value = value
parameters.tags = tags parameters.tags = tags
parameters.content_type = content_type parameters.content_type = content_type
parameters.secretAttributes = secret_attributes parameters.secret_attributes = secret_attributes
end end
request_headers = {} request_headers = {}
@ -3010,10 +3010,10 @@ module Azure::KeyVault::V7_0_preview
fail ArgumentError, 'secret_version is nil' if secret_version.nil? fail ArgumentError, 'secret_version is nil' if secret_version.nil?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = SecretUpdateParameters.new parameters = Azure::KeyVault::V7_0_preview::Models::SecretUpdateParameters.new
unless content_type.nil? && secret_attributes.nil? && tags.nil? unless content_type.nil? && secret_attributes.nil? && tags.nil?
parameters.content_type = content_type parameters.content_type = content_type
parameters.secretAttributes = secret_attributes parameters.secret_attributes = secret_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -4008,9 +4008,9 @@ module Azure::KeyVault::V7_0_preview
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'secret_bundle_backup is nil' if secret_bundle_backup.nil? fail ArgumentError, 'secret_bundle_backup is nil' if secret_bundle_backup.nil?
parameters = SecretRestoreParameters.new parameters = Azure::KeyVault::V7_0_preview::Models::SecretRestoreParameters.new
unless secret_bundle_backup.nil? unless secret_bundle_backup.nil?
parameters.secretBundleBackup = secret_bundle_backup parameters.secret_bundle_backup = secret_bundle_backup
end end
request_headers = {} request_headers = {}
@ -5300,10 +5300,10 @@ module Azure::KeyVault::V7_0_preview
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? 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?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = CertificateCreateParameters.new parameters = Azure::KeyVault::V7_0_preview::Models::CertificateCreateParameters.new
unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil? unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil?
parameters.CertificatePolicy = certificate_policy parameters.certificate_policy = certificate_policy
parameters.CertificateAttributes = certificate_attributes parameters.certificate_attributes = certificate_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -5378,7 +5378,7 @@ module Azure::KeyVault::V7_0_preview
# @param base64encoded_certificate [String] Base64 encoded representation of # @param base64encoded_certificate [String] Base64 encoded representation of
# the certificate object to import. This certificate needs to contain the # the certificate object to import. This certificate needs to contain the
# private key. # private key.
# @param password [String] If the private key in base64EncodedCertificate is # @param password [String] If the private key in base64encoded_certificate is
# encrypted, the password used for encryption. # encrypted, the password used for encryption.
# @param certificate_policy [CertificatePolicy] The management policy for the # @param certificate_policy [CertificatePolicy] The management policy for the
# certificate. # certificate.
@ -5411,7 +5411,7 @@ module Azure::KeyVault::V7_0_preview
# @param base64encoded_certificate [String] Base64 encoded representation of # @param base64encoded_certificate [String] Base64 encoded representation of
# the certificate object to import. This certificate needs to contain the # the certificate object to import. This certificate needs to contain the
# private key. # private key.
# @param password [String] If the private key in base64EncodedCertificate is # @param password [String] If the private key in base64encoded_certificate is
# encrypted, the password used for encryption. # encrypted, the password used for encryption.
# @param certificate_policy [CertificatePolicy] The management policy for the # @param certificate_policy [CertificatePolicy] The management policy for the
# certificate. # certificate.
@ -5443,7 +5443,7 @@ module Azure::KeyVault::V7_0_preview
# @param base64encoded_certificate [String] Base64 encoded representation of # @param base64encoded_certificate [String] Base64 encoded representation of
# the certificate object to import. This certificate needs to contain the # the certificate object to import. This certificate needs to contain the
# private key. # private key.
# @param password [String] If the private key in base64EncodedCertificate is # @param password [String] If the private key in base64encoded_certificate is
# encrypted, the password used for encryption. # encrypted, the password used for encryption.
# @param certificate_policy [CertificatePolicy] The management policy for the # @param certificate_policy [CertificatePolicy] The management policy for the
# certificate. # certificate.
@ -5463,12 +5463,12 @@ module Azure::KeyVault::V7_0_preview
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'base64encoded_certificate is nil' if base64encoded_certificate.nil? fail ArgumentError, 'base64encoded_certificate is nil' if base64encoded_certificate.nil?
parameters = CertificateImportParameters.new parameters = Azure::KeyVault::V7_0_preview::Models::CertificateImportParameters.new
unless base64encoded_certificate.nil? && password.nil? && certificate_policy.nil? && certificate_attributes.nil? && tags.nil? unless base64encoded_certificate.nil? && password.nil? && certificate_policy.nil? && certificate_attributes.nil? && tags.nil?
parameters.base64EncodedCertificate = base64encoded_certificate parameters.base64encoded_certificate = base64encoded_certificate
parameters.password = password parameters.password = password
parameters.CertificatePolicy = certificate_policy parameters.certificate_policy = certificate_policy
parameters.CertificateAttributes = certificate_attributes parameters.certificate_attributes = certificate_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -5961,10 +5961,10 @@ module Azure::KeyVault::V7_0_preview
fail ArgumentError, 'certificate_version is nil' if certificate_version.nil? fail ArgumentError, 'certificate_version is nil' if certificate_version.nil?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = CertificateUpdateParameters.new parameters = Azure::KeyVault::V7_0_preview::Models::CertificateUpdateParameters.new
unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil? unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil?
parameters.CertificatePolicy = certificate_policy parameters.certificate_policy = certificate_policy
parameters.CertificateAttributes = certificate_attributes parameters.certificate_attributes = certificate_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -6557,10 +6557,10 @@ module Azure::KeyVault::V7_0_preview
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'x509certificates is nil' if x509certificates.nil? fail ArgumentError, 'x509certificates is nil' if x509certificates.nil?
parameters = CertificateMergeParameters.new parameters = Azure::KeyVault::V7_0_preview::Models::CertificateMergeParameters.new
unless x509certificates.nil? && certificate_attributes.nil? && tags.nil? unless x509certificates.nil? && certificate_attributes.nil? && tags.nil?
parameters.x509Certificates = x509certificates parameters.x509certificates = x509certificates
parameters.CertificateAttributes = certificate_attributes parameters.certificate_attributes = certificate_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -6788,9 +6788,9 @@ module Azure::KeyVault::V7_0_preview
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'certificate_bundle_backup is nil' if certificate_bundle_backup.nil? fail ArgumentError, 'certificate_bundle_backup is nil' if certificate_bundle_backup.nil?
parameters = CertificateRestoreParameters.new parameters = Azure::KeyVault::V7_0_preview::Models::CertificateRestoreParameters.new
unless certificate_bundle_backup.nil? unless certificate_bundle_backup.nil?
parameters.certificateBundleBackup = certificate_bundle_backup parameters.certificate_bundle_backup = certificate_bundle_backup
end end
request_headers = {} request_headers = {}
@ -8008,9 +8008,9 @@ module Azure::KeyVault::V7_0_preview
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'storage_bundle_backup is nil' if storage_bundle_backup.nil? fail ArgumentError, 'storage_bundle_backup is nil' if storage_bundle_backup.nil?
parameters = StorageRestoreParameters.new parameters = Azure::KeyVault::V7_0_preview::Models::StorageRestoreParameters.new
unless storage_bundle_backup.nil? unless storage_bundle_backup.nil?
parameters.storageBundleBackup = storage_bundle_backup parameters.storage_bundle_backup = storage_bundle_backup
end end
request_headers = {} request_headers = {}
@ -8354,13 +8354,13 @@ module Azure::KeyVault::V7_0_preview
fail ArgumentError, 'active_key_name is nil' if active_key_name.nil? fail ArgumentError, 'active_key_name is nil' if active_key_name.nil?
fail ArgumentError, 'auto_regenerate_key is nil' if auto_regenerate_key.nil? fail ArgumentError, 'auto_regenerate_key is nil' if auto_regenerate_key.nil?
parameters = StorageAccountCreateParameters.new parameters = Azure::KeyVault::V7_0_preview::Models::StorageAccountCreateParameters.new
unless resource_id.nil? && active_key_name.nil? && auto_regenerate_key.nil? && regeneration_period.nil? && storage_account_attributes.nil? && tags.nil? unless resource_id.nil? && active_key_name.nil? && auto_regenerate_key.nil? && regeneration_period.nil? && storage_account_attributes.nil? && tags.nil?
parameters.resource_id = resource_id parameters.resource_id = resource_id
parameters.active_key_name = active_key_name parameters.active_key_name = active_key_name
parameters.auto_regenerate_key = auto_regenerate_key parameters.auto_regenerate_key = auto_regenerate_key
parameters.regeneration_period = regeneration_period parameters.regeneration_period = regeneration_period
parameters.StorageAccountAttributes = storage_account_attributes parameters.storage_account_attributes = storage_account_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -8498,12 +8498,12 @@ module Azure::KeyVault::V7_0_preview
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? 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?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = StorageAccountUpdateParameters.new parameters = Azure::KeyVault::V7_0_preview::Models::StorageAccountUpdateParameters.new
unless active_key_name.nil? && auto_regenerate_key.nil? && regeneration_period.nil? && storage_account_attributes.nil? && tags.nil? unless active_key_name.nil? && auto_regenerate_key.nil? && regeneration_period.nil? && storage_account_attributes.nil? && tags.nil?
parameters.active_key_name = active_key_name parameters.active_key_name = active_key_name
parameters.auto_regenerate_key = auto_regenerate_key parameters.auto_regenerate_key = auto_regenerate_key
parameters.regeneration_period = regeneration_period parameters.regeneration_period = regeneration_period
parameters.StorageAccountAttributes = storage_account_attributes parameters.storage_account_attributes = storage_account_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -8618,7 +8618,7 @@ module Azure::KeyVault::V7_0_preview
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'key_name is nil' if key_name.nil? fail ArgumentError, 'key_name is nil' if key_name.nil?
parameters = StorageAccountRegenerteKeyParameters.new parameters = Azure::KeyVault::V7_0_preview::Models::StorageAccountRegenerteKeyParameters.new
unless key_name.nil? unless key_name.nil?
parameters.key_name = key_name parameters.key_name = key_name
end end
@ -9440,12 +9440,12 @@ module Azure::KeyVault::V7_0_preview
fail ArgumentError, 'sas_type is nil' if sas_type.nil? fail ArgumentError, 'sas_type is nil' if sas_type.nil?
fail ArgumentError, 'validity_period is nil' if validity_period.nil? fail ArgumentError, 'validity_period is nil' if validity_period.nil?
parameters = SasDefinitionCreateParameters.new parameters = Azure::KeyVault::V7_0_preview::Models::SasDefinitionCreateParameters.new
unless template_uri.nil? && sas_type.nil? && validity_period.nil? && sas_definition_attributes.nil? && tags.nil? unless template_uri.nil? && sas_type.nil? && validity_period.nil? && sas_definition_attributes.nil? && tags.nil?
parameters.template_uri = template_uri parameters.template_uri = template_uri
parameters.sas_type = sas_type parameters.sas_type = sas_type
parameters.validity_period = validity_period parameters.validity_period = validity_period
parameters.SasDefinitionAttributes = sas_definition_attributes parameters.sas_definition_attributes = sas_definition_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -9594,12 +9594,12 @@ module Azure::KeyVault::V7_0_preview
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? 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?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = SasDefinitionUpdateParameters.new parameters = Azure::KeyVault::V7_0_preview::Models::SasDefinitionUpdateParameters.new
unless template_uri.nil? && sas_type.nil? && validity_period.nil? && sas_definition_attributes.nil? && tags.nil? unless template_uri.nil? && sas_type.nil? && validity_period.nil? && sas_definition_attributes.nil? && tags.nil?
parameters.template_uri = template_uri parameters.template_uri = template_uri
parameters.sas_type = sas_type parameters.sas_type = sas_type
parameters.validity_period = validity_period parameters.validity_period = validity_period
parameters.SasDefinitionAttributes = sas_definition_attributes parameters.sas_definition_attributes = sas_definition_attributes
parameters.tags = tags parameters.tags = tags
end end

Просмотреть файл

@ -16,7 +16,7 @@ module Azure::KeyVault::V7_0_preview
# object to import. This certificate needs to contain the private key. # object to import. This certificate needs to contain the private key.
attr_accessor :base64encoded_certificate attr_accessor :base64encoded_certificate
# @return [String] If the private key in base64EncodedCertificate is # @return [String] If the private key in base64encoded_certificate is
# encrypted, the password used for encryption. # encrypted, the password used for encryption.
attr_accessor :password attr_accessor :password

Просмотреть файл

@ -218,7 +218,7 @@ module Azure::KeyVault::V7_0
parameters.kty = kty parameters.kty = kty
parameters.key_size = key_size parameters.key_size = key_size
parameters.key_ops = key_ops parameters.key_ops = key_ops
parameters.keyAttributes = key_attributes parameters.key_attributes = key_attributes
parameters.tags = tags parameters.tags = tags
parameters.curve = curve parameters.curve = curve
end end
@ -361,11 +361,11 @@ module Azure::KeyVault::V7_0
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'key is nil' if key.nil? fail ArgumentError, 'key is nil' if key.nil?
parameters = KeyImportParameters.new parameters = Azure::KeyVault::V7_0::Models::KeyImportParameters.new
unless hsm.nil? && key.nil? && key_attributes.nil? && tags.nil? unless hsm.nil? && key.nil? && key_attributes.nil? && tags.nil?
parameters.hsm = hsm parameters.hsm = hsm
parameters.key = key parameters.key = key
parameters.keyAttributes = key_attributes parameters.key_attributes = key_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -621,10 +621,10 @@ module Azure::KeyVault::V7_0
fail ArgumentError, 'key_version is nil' if key_version.nil? fail ArgumentError, 'key_version is nil' if key_version.nil?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = KeyUpdateParameters.new parameters = Azure::KeyVault::V7_0::Models::KeyUpdateParameters.new
unless key_ops.nil? && key_attributes.nil? && tags.nil? unless key_ops.nil? && key_attributes.nil? && tags.nil?
parameters.key_ops = key_ops parameters.key_ops = key_ops
parameters.keyAttributes = key_attributes parameters.key_attributes = key_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -1263,9 +1263,9 @@ module Azure::KeyVault::V7_0
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'key_bundle_backup is nil' if key_bundle_backup.nil? fail ArgumentError, 'key_bundle_backup is nil' if key_bundle_backup.nil?
parameters = KeyRestoreParameters.new parameters = Azure::KeyVault::V7_0::Models::KeyRestoreParameters.new
unless key_bundle_backup.nil? unless key_bundle_backup.nil?
parameters.keyBundleBackup = key_bundle_backup parameters.key_bundle_backup = key_bundle_backup
end end
request_headers = {} request_headers = {}
@ -1422,7 +1422,7 @@ module Azure::KeyVault::V7_0
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeyOperationsParameters.new parameters = Azure::KeyVault::V7_0::Models::KeyOperationsParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -1571,7 +1571,7 @@ module Azure::KeyVault::V7_0
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeyOperationsParameters.new parameters = Azure::KeyVault::V7_0::Models::KeyOperationsParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -1717,7 +1717,7 @@ module Azure::KeyVault::V7_0
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeySignParameters.new parameters = Azure::KeyVault::V7_0::Models::KeySignParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -1876,7 +1876,7 @@ module Azure::KeyVault::V7_0
fail ArgumentError, 'digest is nil' if digest.nil? fail ArgumentError, 'digest is nil' if digest.nil?
fail ArgumentError, 'signature is nil' if signature.nil? fail ArgumentError, 'signature is nil' if signature.nil?
parameters = KeyVerifyParameters.new parameters = Azure::KeyVault::V7_0::Models::KeyVerifyParameters.new
unless algorithm.nil? && digest.nil? && signature.nil? unless algorithm.nil? && digest.nil? && signature.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.digest = digest parameters.digest = digest
@ -2026,7 +2026,7 @@ module Azure::KeyVault::V7_0
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeyOperationsParameters.new parameters = Azure::KeyVault::V7_0::Models::KeyOperationsParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -2172,7 +2172,7 @@ module Azure::KeyVault::V7_0
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeyOperationsParameters.new parameters = Azure::KeyVault::V7_0::Models::KeyOperationsParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -2759,12 +2759,12 @@ module Azure::KeyVault::V7_0
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = SecretSetParameters.new parameters = Azure::KeyVault::V7_0::Models::SecretSetParameters.new
unless value.nil? && tags.nil? && content_type.nil? && secret_attributes.nil? unless value.nil? && tags.nil? && content_type.nil? && secret_attributes.nil?
parameters.value = value parameters.value = value
parameters.tags = tags parameters.tags = tags
parameters.content_type = content_type parameters.content_type = content_type
parameters.secretAttributes = secret_attributes parameters.secret_attributes = secret_attributes
end end
request_headers = {} request_headers = {}
@ -3013,10 +3013,10 @@ module Azure::KeyVault::V7_0
fail ArgumentError, 'secret_version is nil' if secret_version.nil? fail ArgumentError, 'secret_version is nil' if secret_version.nil?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = SecretUpdateParameters.new parameters = Azure::KeyVault::V7_0::Models::SecretUpdateParameters.new
unless content_type.nil? && secret_attributes.nil? && tags.nil? unless content_type.nil? && secret_attributes.nil? && tags.nil?
parameters.content_type = content_type parameters.content_type = content_type
parameters.secretAttributes = secret_attributes parameters.secret_attributes = secret_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -4014,9 +4014,9 @@ module Azure::KeyVault::V7_0
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'secret_bundle_backup is nil' if secret_bundle_backup.nil? fail ArgumentError, 'secret_bundle_backup is nil' if secret_bundle_backup.nil?
parameters = SecretRestoreParameters.new parameters = Azure::KeyVault::V7_0::Models::SecretRestoreParameters.new
unless secret_bundle_backup.nil? unless secret_bundle_backup.nil?
parameters.secretBundleBackup = secret_bundle_backup parameters.secret_bundle_backup = secret_bundle_backup
end end
request_headers = {} request_headers = {}
@ -5306,10 +5306,10 @@ module Azure::KeyVault::V7_0
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? 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?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = CertificateCreateParameters.new parameters = Azure::KeyVault::V7_0::Models::CertificateCreateParameters.new
unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil? unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil?
parameters.CertificatePolicy = certificate_policy parameters.certificate_policy = certificate_policy
parameters.CertificateAttributes = certificate_attributes parameters.certificate_attributes = certificate_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -5383,7 +5383,7 @@ module Azure::KeyVault::V7_0
# @param certificate_name [String] The name of the certificate. # @param certificate_name [String] The name of the certificate.
# @param base64encoded_certificate [String] A PEM file or a base64-encoded PFX # @param base64encoded_certificate [String] A PEM file or a base64-encoded PFX
# file. PEM files need to contain the private key. # file. PEM files need to contain the private key.
# @param password [String] If the private key in base64EncodedCertificate is # @param password [String] If the private key in base64encoded_certificate is
# encrypted, the password used for encryption. # encrypted, the password used for encryption.
# @param certificate_policy [CertificatePolicy] The management policy for the # @param certificate_policy [CertificatePolicy] The management policy for the
# certificate. # certificate.
@ -5415,7 +5415,7 @@ module Azure::KeyVault::V7_0
# @param certificate_name [String] The name of the certificate. # @param certificate_name [String] The name of the certificate.
# @param base64encoded_certificate [String] A PEM file or a base64-encoded PFX # @param base64encoded_certificate [String] A PEM file or a base64-encoded PFX
# file. PEM files need to contain the private key. # file. PEM files need to contain the private key.
# @param password [String] If the private key in base64EncodedCertificate is # @param password [String] If the private key in base64encoded_certificate is
# encrypted, the password used for encryption. # encrypted, the password used for encryption.
# @param certificate_policy [CertificatePolicy] The management policy for the # @param certificate_policy [CertificatePolicy] The management policy for the
# certificate. # certificate.
@ -5446,7 +5446,7 @@ module Azure::KeyVault::V7_0
# @param certificate_name [String] The name of the certificate. # @param certificate_name [String] The name of the certificate.
# @param base64encoded_certificate [String] A PEM file or a base64-encoded PFX # @param base64encoded_certificate [String] A PEM file or a base64-encoded PFX
# file. PEM files need to contain the private key. # file. PEM files need to contain the private key.
# @param password [String] If the private key in base64EncodedCertificate is # @param password [String] If the private key in base64encoded_certificate is
# encrypted, the password used for encryption. # encrypted, the password used for encryption.
# @param certificate_policy [CertificatePolicy] The management policy for the # @param certificate_policy [CertificatePolicy] The management policy for the
# certificate. # certificate.
@ -5466,12 +5466,12 @@ module Azure::KeyVault::V7_0
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'base64encoded_certificate is nil' if base64encoded_certificate.nil? fail ArgumentError, 'base64encoded_certificate is nil' if base64encoded_certificate.nil?
parameters = CertificateImportParameters.new parameters = Azure::KeyVault::V7_0::Models::CertificateImportParameters.new
unless base64encoded_certificate.nil? && password.nil? && certificate_policy.nil? && certificate_attributes.nil? && tags.nil? unless base64encoded_certificate.nil? && password.nil? && certificate_policy.nil? && certificate_attributes.nil? && tags.nil?
parameters.base64EncodedCertificate = base64encoded_certificate parameters.base64encoded_certificate = base64encoded_certificate
parameters.password = password parameters.password = password
parameters.CertificatePolicy = certificate_policy parameters.certificate_policy = certificate_policy
parameters.CertificateAttributes = certificate_attributes parameters.certificate_attributes = certificate_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -5964,10 +5964,10 @@ module Azure::KeyVault::V7_0
fail ArgumentError, 'certificate_version is nil' if certificate_version.nil? fail ArgumentError, 'certificate_version is nil' if certificate_version.nil?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = CertificateUpdateParameters.new parameters = Azure::KeyVault::V7_0::Models::CertificateUpdateParameters.new
unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil? unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil?
parameters.CertificatePolicy = certificate_policy parameters.certificate_policy = certificate_policy
parameters.CertificateAttributes = certificate_attributes parameters.certificate_attributes = certificate_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -6566,10 +6566,10 @@ module Azure::KeyVault::V7_0
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'x509certificates is nil' if x509certificates.nil? fail ArgumentError, 'x509certificates is nil' if x509certificates.nil?
parameters = CertificateMergeParameters.new parameters = Azure::KeyVault::V7_0::Models::CertificateMergeParameters.new
unless x509certificates.nil? && certificate_attributes.nil? && tags.nil? unless x509certificates.nil? && certificate_attributes.nil? && tags.nil?
parameters.x509Certificates = x509certificates parameters.x509certificates = x509certificates
parameters.CertificateAttributes = certificate_attributes parameters.certificate_attributes = certificate_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -6797,9 +6797,9 @@ module Azure::KeyVault::V7_0
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'certificate_bundle_backup is nil' if certificate_bundle_backup.nil? fail ArgumentError, 'certificate_bundle_backup is nil' if certificate_bundle_backup.nil?
parameters = CertificateRestoreParameters.new parameters = Azure::KeyVault::V7_0::Models::CertificateRestoreParameters.new
unless certificate_bundle_backup.nil? unless certificate_bundle_backup.nil?
parameters.certificateBundleBackup = certificate_bundle_backup parameters.certificate_bundle_backup = certificate_bundle_backup
end end
request_headers = {} request_headers = {}
@ -8017,9 +8017,9 @@ module Azure::KeyVault::V7_0
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'storage_bundle_backup is nil' if storage_bundle_backup.nil? fail ArgumentError, 'storage_bundle_backup is nil' if storage_bundle_backup.nil?
parameters = StorageRestoreParameters.new parameters = Azure::KeyVault::V7_0::Models::StorageRestoreParameters.new
unless storage_bundle_backup.nil? unless storage_bundle_backup.nil?
parameters.storageBundleBackup = storage_bundle_backup parameters.storage_bundle_backup = storage_bundle_backup
end end
request_headers = {} request_headers = {}
@ -8363,13 +8363,13 @@ module Azure::KeyVault::V7_0
fail ArgumentError, 'active_key_name is nil' if active_key_name.nil? fail ArgumentError, 'active_key_name is nil' if active_key_name.nil?
fail ArgumentError, 'auto_regenerate_key is nil' if auto_regenerate_key.nil? fail ArgumentError, 'auto_regenerate_key is nil' if auto_regenerate_key.nil?
parameters = StorageAccountCreateParameters.new parameters = Azure::KeyVault::V7_0::Models::StorageAccountCreateParameters.new
unless resource_id.nil? && active_key_name.nil? && auto_regenerate_key.nil? && regeneration_period.nil? && storage_account_attributes.nil? && tags.nil? unless resource_id.nil? && active_key_name.nil? && auto_regenerate_key.nil? && regeneration_period.nil? && storage_account_attributes.nil? && tags.nil?
parameters.resource_id = resource_id parameters.resource_id = resource_id
parameters.active_key_name = active_key_name parameters.active_key_name = active_key_name
parameters.auto_regenerate_key = auto_regenerate_key parameters.auto_regenerate_key = auto_regenerate_key
parameters.regeneration_period = regeneration_period parameters.regeneration_period = regeneration_period
parameters.StorageAccountAttributes = storage_account_attributes parameters.storage_account_attributes = storage_account_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -8507,12 +8507,12 @@ module Azure::KeyVault::V7_0
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? 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?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = StorageAccountUpdateParameters.new parameters = Azure::KeyVault::V7_0::Models::StorageAccountUpdateParameters.new
unless active_key_name.nil? && auto_regenerate_key.nil? && regeneration_period.nil? && storage_account_attributes.nil? && tags.nil? unless active_key_name.nil? && auto_regenerate_key.nil? && regeneration_period.nil? && storage_account_attributes.nil? && tags.nil?
parameters.active_key_name = active_key_name parameters.active_key_name = active_key_name
parameters.auto_regenerate_key = auto_regenerate_key parameters.auto_regenerate_key = auto_regenerate_key
parameters.regeneration_period = regeneration_period parameters.regeneration_period = regeneration_period
parameters.StorageAccountAttributes = storage_account_attributes parameters.storage_account_attributes = storage_account_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -8627,7 +8627,7 @@ module Azure::KeyVault::V7_0
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'key_name is nil' if key_name.nil? fail ArgumentError, 'key_name is nil' if key_name.nil?
parameters = StorageAccountRegenerteKeyParameters.new parameters = Azure::KeyVault::V7_0::Models::StorageAccountRegenerteKeyParameters.new
unless key_name.nil? unless key_name.nil?
parameters.key_name = key_name parameters.key_name = key_name
end end
@ -9449,12 +9449,12 @@ module Azure::KeyVault::V7_0
fail ArgumentError, 'sas_type is nil' if sas_type.nil? fail ArgumentError, 'sas_type is nil' if sas_type.nil?
fail ArgumentError, 'validity_period is nil' if validity_period.nil? fail ArgumentError, 'validity_period is nil' if validity_period.nil?
parameters = SasDefinitionCreateParameters.new parameters = Azure::KeyVault::V7_0::Models::SasDefinitionCreateParameters.new
unless template_uri.nil? && sas_type.nil? && validity_period.nil? && sas_definition_attributes.nil? && tags.nil? unless template_uri.nil? && sas_type.nil? && validity_period.nil? && sas_definition_attributes.nil? && tags.nil?
parameters.template_uri = template_uri parameters.template_uri = template_uri
parameters.sas_type = sas_type parameters.sas_type = sas_type
parameters.validity_period = validity_period parameters.validity_period = validity_period
parameters.SasDefinitionAttributes = sas_definition_attributes parameters.sas_definition_attributes = sas_definition_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -9603,12 +9603,12 @@ module Azure::KeyVault::V7_0
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? 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?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = SasDefinitionUpdateParameters.new parameters = Azure::KeyVault::V7_0::Models::SasDefinitionUpdateParameters.new
unless template_uri.nil? && sas_type.nil? && validity_period.nil? && sas_definition_attributes.nil? && tags.nil? unless template_uri.nil? && sas_type.nil? && validity_period.nil? && sas_definition_attributes.nil? && tags.nil?
parameters.template_uri = template_uri parameters.template_uri = template_uri
parameters.sas_type = sas_type parameters.sas_type = sas_type
parameters.validity_period = validity_period parameters.validity_period = validity_period
parameters.SasDefinitionAttributes = sas_definition_attributes parameters.sas_definition_attributes = sas_definition_attributes
parameters.tags = tags parameters.tags = tags
end end

Просмотреть файл

@ -16,7 +16,7 @@ module Azure::KeyVault::V7_0
# need to contain the private key. # need to contain the private key.
attr_accessor :base64encoded_certificate attr_accessor :base64encoded_certificate
# @return [String] If the private key in base64EncodedCertificate is # @return [String] If the private key in base64encoded_certificate is
# encrypted, the password used for encryption. # encrypted, the password used for encryption.
attr_accessor :password attr_accessor :password

Просмотреть файл

@ -1341,10 +1341,10 @@ module Azure::KeyVault::V7_1_preview
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? 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?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = CertificateCreateParameters.new parameters = Azure::KeyVault::V7_1_preview::Models::CertificateCreateParameters.new
unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil? unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil?
parameters.CertificatePolicy = certificate_policy parameters.certificate_policy = certificate_policy
parameters.CertificateAttributes = certificate_attributes parameters.certificate_attributes = certificate_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -1419,7 +1419,7 @@ module Azure::KeyVault::V7_1_preview
# @param base64encoded_certificate [String] Base64 encoded representation of # @param base64encoded_certificate [String] Base64 encoded representation of
# the certificate object to import. This certificate needs to contain the # the certificate object to import. This certificate needs to contain the
# private key. # private key.
# @param password [String] If the private key in base64EncodedCertificate is # @param password [String] If the private key in base64encoded_certificate is
# encrypted, the password used for encryption. # encrypted, the password used for encryption.
# @param certificate_policy [CertificatePolicy] The management policy for the # @param certificate_policy [CertificatePolicy] The management policy for the
# certificate. # certificate.
@ -1452,7 +1452,7 @@ module Azure::KeyVault::V7_1_preview
# @param base64encoded_certificate [String] Base64 encoded representation of # @param base64encoded_certificate [String] Base64 encoded representation of
# the certificate object to import. This certificate needs to contain the # the certificate object to import. This certificate needs to contain the
# private key. # private key.
# @param password [String] If the private key in base64EncodedCertificate is # @param password [String] If the private key in base64encoded_certificate is
# encrypted, the password used for encryption. # encrypted, the password used for encryption.
# @param certificate_policy [CertificatePolicy] The management policy for the # @param certificate_policy [CertificatePolicy] The management policy for the
# certificate. # certificate.
@ -1484,7 +1484,7 @@ module Azure::KeyVault::V7_1_preview
# @param base64encoded_certificate [String] Base64 encoded representation of # @param base64encoded_certificate [String] Base64 encoded representation of
# the certificate object to import. This certificate needs to contain the # the certificate object to import. This certificate needs to contain the
# private key. # private key.
# @param password [String] If the private key in base64EncodedCertificate is # @param password [String] If the private key in base64encoded_certificate is
# encrypted, the password used for encryption. # encrypted, the password used for encryption.
# @param certificate_policy [CertificatePolicy] The management policy for the # @param certificate_policy [CertificatePolicy] The management policy for the
# certificate. # certificate.
@ -1504,12 +1504,12 @@ module Azure::KeyVault::V7_1_preview
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'base64encoded_certificate is nil' if base64encoded_certificate.nil? fail ArgumentError, 'base64encoded_certificate is nil' if base64encoded_certificate.nil?
parameters = CertificateImportParameters.new parameters = Azure::KeyVault::V7_1_preview::Models::CertificateImportParameters.new
unless base64encoded_certificate.nil? && password.nil? && certificate_policy.nil? && certificate_attributes.nil? && tags.nil? unless base64encoded_certificate.nil? && password.nil? && certificate_policy.nil? && certificate_attributes.nil? && tags.nil?
parameters.base64EncodedCertificate = base64encoded_certificate parameters.base64encoded_certificate = base64encoded_certificate
parameters.password = password parameters.password = password
parameters.CertificatePolicy = certificate_policy parameters.certificate_policy = certificate_policy
parameters.CertificateAttributes = certificate_attributes parameters.certificate_attributes = certificate_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -2002,10 +2002,10 @@ module Azure::KeyVault::V7_1_preview
fail ArgumentError, 'certificate_version is nil' if certificate_version.nil? fail ArgumentError, 'certificate_version is nil' if certificate_version.nil?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = CertificateUpdateParameters.new parameters = Azure::KeyVault::V7_1_preview::Models::CertificateUpdateParameters.new
unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil? unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil?
parameters.CertificatePolicy = certificate_policy parameters.certificate_policy = certificate_policy
parameters.CertificateAttributes = certificate_attributes parameters.certificate_attributes = certificate_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -2604,10 +2604,10 @@ module Azure::KeyVault::V7_1_preview
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'x509certificates is nil' if x509certificates.nil? fail ArgumentError, 'x509certificates is nil' if x509certificates.nil?
parameters = CertificateMergeParameters.new parameters = Azure::KeyVault::V7_1_preview::Models::CertificateMergeParameters.new
unless x509certificates.nil? && certificate_attributes.nil? && tags.nil? unless x509certificates.nil? && certificate_attributes.nil? && tags.nil?
parameters.x509Certificates = x509certificates parameters.x509certificates = x509certificates
parameters.CertificateAttributes = certificate_attributes parameters.certificate_attributes = certificate_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -2835,9 +2835,9 @@ module Azure::KeyVault::V7_1_preview
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'certificate_bundle_backup is nil' if certificate_bundle_backup.nil? fail ArgumentError, 'certificate_bundle_backup is nil' if certificate_bundle_backup.nil?
parameters = CertificateRestoreParameters.new parameters = Azure::KeyVault::V7_1_preview::Models::CertificateRestoreParameters.new
unless certificate_bundle_backup.nil? unless certificate_bundle_backup.nil?
parameters.certificateBundleBackup = certificate_bundle_backup parameters.certificate_bundle_backup = certificate_bundle_backup
end end
request_headers = {} request_headers = {}
@ -3457,12 +3457,12 @@ module Azure::KeyVault::V7_1_preview
fail ArgumentError, 'kty is nil' if kty.nil? fail ArgumentError, 'kty is nil' if kty.nil?
fail ArgumentError, "'kty' should satisfy the constraint - 'MinLength': '1'" if !kty.nil? && kty.length < 1 fail ArgumentError, "'kty' should satisfy the constraint - 'MinLength': '1'" if !kty.nil? && kty.length < 1
parameters = KeyCreateParameters.new parameters = Azure::KeyVault::V7_1_preview::Models::KeyCreateParameters.new
unless kty.nil? && key_size.nil? && key_ops.nil? && key_attributes.nil? && tags.nil? && curve.nil? unless kty.nil? && key_size.nil? && key_ops.nil? && key_attributes.nil? && tags.nil? && curve.nil?
parameters.kty = kty parameters.kty = kty
parameters.key_size = key_size parameters.key_size = key_size
parameters.key_ops = key_ops parameters.key_ops = key_ops
parameters.keyAttributes = key_attributes parameters.key_attributes = key_attributes
parameters.tags = tags parameters.tags = tags
parameters.curve = curve parameters.curve = curve
end end
@ -3605,11 +3605,11 @@ module Azure::KeyVault::V7_1_preview
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'key is nil' if key.nil? fail ArgumentError, 'key is nil' if key.nil?
parameters = KeyImportParameters.new parameters = Azure::KeyVault::V7_1_preview::Models::KeyImportParameters.new
unless hsm.nil? && key.nil? && key_attributes.nil? && tags.nil? unless hsm.nil? && key.nil? && key_attributes.nil? && tags.nil?
parameters.hsm = hsm parameters.hsm = hsm
parameters.key = key parameters.key = key
parameters.keyAttributes = key_attributes parameters.key_attributes = key_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -3865,10 +3865,10 @@ module Azure::KeyVault::V7_1_preview
fail ArgumentError, 'key_version is nil' if key_version.nil? fail ArgumentError, 'key_version is nil' if key_version.nil?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = KeyUpdateParameters.new parameters = Azure::KeyVault::V7_1_preview::Models::KeyUpdateParameters.new
unless key_ops.nil? && key_attributes.nil? && tags.nil? unless key_ops.nil? && key_attributes.nil? && tags.nil?
parameters.key_ops = key_ops parameters.key_ops = key_ops
parameters.keyAttributes = key_attributes parameters.key_attributes = key_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -4507,9 +4507,9 @@ module Azure::KeyVault::V7_1_preview
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'key_bundle_backup is nil' if key_bundle_backup.nil? fail ArgumentError, 'key_bundle_backup is nil' if key_bundle_backup.nil?
parameters = KeyRestoreParameters.new parameters = Azure::KeyVault::V7_1_preview::Models::KeyRestoreParameters.new
unless key_bundle_backup.nil? unless key_bundle_backup.nil?
parameters.keyBundleBackup = key_bundle_backup parameters.key_bundle_backup = key_bundle_backup
end end
request_headers = {} request_headers = {}
@ -4666,7 +4666,7 @@ module Azure::KeyVault::V7_1_preview
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeyOperationsParameters.new parameters = Azure::KeyVault::V7_1_preview::Models::KeyOperationsParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -4815,7 +4815,7 @@ module Azure::KeyVault::V7_1_preview
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeyOperationsParameters.new parameters = Azure::KeyVault::V7_1_preview::Models::KeyOperationsParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -4961,7 +4961,7 @@ module Azure::KeyVault::V7_1_preview
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeySignParameters.new parameters = Azure::KeyVault::V7_1_preview::Models::KeySignParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -5120,7 +5120,7 @@ module Azure::KeyVault::V7_1_preview
fail ArgumentError, 'digest is nil' if digest.nil? fail ArgumentError, 'digest is nil' if digest.nil?
fail ArgumentError, 'signature is nil' if signature.nil? fail ArgumentError, 'signature is nil' if signature.nil?
parameters = KeyVerifyParameters.new parameters = Azure::KeyVault::V7_1_preview::Models::KeyVerifyParameters.new
unless algorithm.nil? && digest.nil? && signature.nil? unless algorithm.nil? && digest.nil? && signature.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.digest = digest parameters.digest = digest
@ -5270,7 +5270,7 @@ module Azure::KeyVault::V7_1_preview
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeyOperationsParameters.new parameters = Azure::KeyVault::V7_1_preview::Models::KeyOperationsParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -5416,7 +5416,7 @@ module Azure::KeyVault::V7_1_preview
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeyOperationsParameters.new parameters = Azure::KeyVault::V7_1_preview::Models::KeyOperationsParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -6003,12 +6003,12 @@ module Azure::KeyVault::V7_1_preview
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = SecretSetParameters.new parameters = Azure::KeyVault::V7_1_preview::Models::SecretSetParameters.new
unless value.nil? && tags.nil? && content_type.nil? && secret_attributes.nil? unless value.nil? && tags.nil? && content_type.nil? && secret_attributes.nil?
parameters.value = value parameters.value = value
parameters.tags = tags parameters.tags = tags
parameters.content_type = content_type parameters.content_type = content_type
parameters.secretAttributes = secret_attributes parameters.secret_attributes = secret_attributes
end end
request_headers = {} request_headers = {}
@ -6257,10 +6257,10 @@ module Azure::KeyVault::V7_1_preview
fail ArgumentError, 'secret_version is nil' if secret_version.nil? fail ArgumentError, 'secret_version is nil' if secret_version.nil?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = SecretUpdateParameters.new parameters = Azure::KeyVault::V7_1_preview::Models::SecretUpdateParameters.new
unless content_type.nil? && secret_attributes.nil? && tags.nil? unless content_type.nil? && secret_attributes.nil? && tags.nil?
parameters.content_type = content_type parameters.content_type = content_type
parameters.secretAttributes = secret_attributes parameters.secret_attributes = secret_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -7258,9 +7258,9 @@ module Azure::KeyVault::V7_1_preview
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'secret_bundle_backup is nil' if secret_bundle_backup.nil? fail ArgumentError, 'secret_bundle_backup is nil' if secret_bundle_backup.nil?
parameters = SecretRestoreParameters.new parameters = Azure::KeyVault::V7_1_preview::Models::SecretRestoreParameters.new
unless secret_bundle_backup.nil? unless secret_bundle_backup.nil?
parameters.secretBundleBackup = secret_bundle_backup parameters.secret_bundle_backup = secret_bundle_backup
end end
request_headers = {} request_headers = {}
@ -8020,9 +8020,9 @@ module Azure::KeyVault::V7_1_preview
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'storage_bundle_backup is nil' if storage_bundle_backup.nil? fail ArgumentError, 'storage_bundle_backup is nil' if storage_bundle_backup.nil?
parameters = StorageRestoreParameters.new parameters = Azure::KeyVault::V7_1_preview::Models::StorageRestoreParameters.new
unless storage_bundle_backup.nil? unless storage_bundle_backup.nil?
parameters.storageBundleBackup = storage_bundle_backup parameters.storage_bundle_backup = storage_bundle_backup
end end
request_headers = {} request_headers = {}
@ -8366,13 +8366,13 @@ module Azure::KeyVault::V7_1_preview
fail ArgumentError, 'active_key_name is nil' if active_key_name.nil? fail ArgumentError, 'active_key_name is nil' if active_key_name.nil?
fail ArgumentError, 'auto_regenerate_key is nil' if auto_regenerate_key.nil? fail ArgumentError, 'auto_regenerate_key is nil' if auto_regenerate_key.nil?
parameters = StorageAccountCreateParameters.new parameters = Azure::KeyVault::V7_1_preview::Models::StorageAccountCreateParameters.new
unless resource_id.nil? && active_key_name.nil? && auto_regenerate_key.nil? && regeneration_period.nil? && storage_account_attributes.nil? && tags.nil? unless resource_id.nil? && active_key_name.nil? && auto_regenerate_key.nil? && regeneration_period.nil? && storage_account_attributes.nil? && tags.nil?
parameters.resource_id = resource_id parameters.resource_id = resource_id
parameters.active_key_name = active_key_name parameters.active_key_name = active_key_name
parameters.auto_regenerate_key = auto_regenerate_key parameters.auto_regenerate_key = auto_regenerate_key
parameters.regeneration_period = regeneration_period parameters.regeneration_period = regeneration_period
parameters.StorageAccountAttributes = storage_account_attributes parameters.storage_account_attributes = storage_account_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -8510,12 +8510,12 @@ module Azure::KeyVault::V7_1_preview
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? 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?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = StorageAccountUpdateParameters.new parameters = Azure::KeyVault::V7_1_preview::Models::StorageAccountUpdateParameters.new
unless active_key_name.nil? && auto_regenerate_key.nil? && regeneration_period.nil? && storage_account_attributes.nil? && tags.nil? unless active_key_name.nil? && auto_regenerate_key.nil? && regeneration_period.nil? && storage_account_attributes.nil? && tags.nil?
parameters.active_key_name = active_key_name parameters.active_key_name = active_key_name
parameters.auto_regenerate_key = auto_regenerate_key parameters.auto_regenerate_key = auto_regenerate_key
parameters.regeneration_period = regeneration_period parameters.regeneration_period = regeneration_period
parameters.StorageAccountAttributes = storage_account_attributes parameters.storage_account_attributes = storage_account_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -8630,7 +8630,7 @@ module Azure::KeyVault::V7_1_preview
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'key_name is nil' if key_name.nil? fail ArgumentError, 'key_name is nil' if key_name.nil?
parameters = StorageAccountRegenerteKeyParameters.new parameters = Azure::KeyVault::V7_1_preview::Models::StorageAccountRegenerteKeyParameters.new
unless key_name.nil? unless key_name.nil?
parameters.key_name = key_name parameters.key_name = key_name
end end
@ -9452,12 +9452,12 @@ module Azure::KeyVault::V7_1_preview
fail ArgumentError, 'sas_type is nil' if sas_type.nil? fail ArgumentError, 'sas_type is nil' if sas_type.nil?
fail ArgumentError, 'validity_period is nil' if validity_period.nil? fail ArgumentError, 'validity_period is nil' if validity_period.nil?
parameters = SasDefinitionCreateParameters.new parameters = Azure::KeyVault::V7_1_preview::Models::SasDefinitionCreateParameters.new
unless template_uri.nil? && sas_type.nil? && validity_period.nil? && sas_definition_attributes.nil? && tags.nil? unless template_uri.nil? && sas_type.nil? && validity_period.nil? && sas_definition_attributes.nil? && tags.nil?
parameters.template_uri = template_uri parameters.template_uri = template_uri
parameters.sas_type = sas_type parameters.sas_type = sas_type
parameters.validity_period = validity_period parameters.validity_period = validity_period
parameters.SasDefinitionAttributes = sas_definition_attributes parameters.sas_definition_attributes = sas_definition_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -9606,12 +9606,12 @@ module Azure::KeyVault::V7_1_preview
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? 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?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = SasDefinitionUpdateParameters.new parameters = Azure::KeyVault::V7_1_preview::Models::SasDefinitionUpdateParameters.new
unless template_uri.nil? && sas_type.nil? && validity_period.nil? && sas_definition_attributes.nil? && tags.nil? unless template_uri.nil? && sas_type.nil? && validity_period.nil? && sas_definition_attributes.nil? && tags.nil?
parameters.template_uri = template_uri parameters.template_uri = template_uri
parameters.sas_type = sas_type parameters.sas_type = sas_type
parameters.validity_period = validity_period parameters.validity_period = validity_period
parameters.SasDefinitionAttributes = sas_definition_attributes parameters.sas_definition_attributes = sas_definition_attributes
parameters.tags = tags parameters.tags = tags
end end

Просмотреть файл

@ -16,7 +16,7 @@ module Azure::KeyVault::V7_1_preview
# object to import. This certificate needs to contain the private key. # object to import. This certificate needs to contain the private key.
attr_accessor :base64encoded_certificate attr_accessor :base64encoded_certificate
# @return [String] If the private key in base64EncodedCertificate is # @return [String] If the private key in base64encoded_certificate is
# encrypted, the password used for encryption. # encrypted, the password used for encryption.
attr_accessor :password attr_accessor :password

Просмотреть файл

@ -1341,10 +1341,10 @@ module Azure::KeyVault::V7_1
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? 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?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = CertificateCreateParameters.new parameters = Azure::KeyVault::V7_1::Models::CertificateCreateParameters.new
unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil? unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil?
parameters.CertificatePolicy = certificate_policy parameters.certificate_policy = certificate_policy
parameters.CertificateAttributes = certificate_attributes parameters.certificate_attributes = certificate_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -1418,7 +1418,7 @@ module Azure::KeyVault::V7_1
# @param certificate_name [String] The name of the certificate. # @param certificate_name [String] The name of the certificate.
# @param base64encoded_certificate [String] A PEM file or a base64-encoded PFX # @param base64encoded_certificate [String] A PEM file or a base64-encoded PFX
# file. PEM files need to contain the private key. # file. PEM files need to contain the private key.
# @param password [String] If the private key in base64EncodedCertificate is # @param password [String] If the private key in base64encoded_certificate is
# encrypted, the password used for encryption. # encrypted, the password used for encryption.
# @param certificate_policy [CertificatePolicy] The management policy for the # @param certificate_policy [CertificatePolicy] The management policy for the
# certificate. # certificate.
@ -1450,7 +1450,7 @@ module Azure::KeyVault::V7_1
# @param certificate_name [String] The name of the certificate. # @param certificate_name [String] The name of the certificate.
# @param base64encoded_certificate [String] A PEM file or a base64-encoded PFX # @param base64encoded_certificate [String] A PEM file or a base64-encoded PFX
# file. PEM files need to contain the private key. # file. PEM files need to contain the private key.
# @param password [String] If the private key in base64EncodedCertificate is # @param password [String] If the private key in base64encoded_certificate is
# encrypted, the password used for encryption. # encrypted, the password used for encryption.
# @param certificate_policy [CertificatePolicy] The management policy for the # @param certificate_policy [CertificatePolicy] The management policy for the
# certificate. # certificate.
@ -1481,7 +1481,7 @@ module Azure::KeyVault::V7_1
# @param certificate_name [String] The name of the certificate. # @param certificate_name [String] The name of the certificate.
# @param base64encoded_certificate [String] A PEM file or a base64-encoded PFX # @param base64encoded_certificate [String] A PEM file or a base64-encoded PFX
# file. PEM files need to contain the private key. # file. PEM files need to contain the private key.
# @param password [String] If the private key in base64EncodedCertificate is # @param password [String] If the private key in base64encoded_certificate is
# encrypted, the password used for encryption. # encrypted, the password used for encryption.
# @param certificate_policy [CertificatePolicy] The management policy for the # @param certificate_policy [CertificatePolicy] The management policy for the
# certificate. # certificate.
@ -1501,12 +1501,12 @@ module Azure::KeyVault::V7_1
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'base64encoded_certificate is nil' if base64encoded_certificate.nil? fail ArgumentError, 'base64encoded_certificate is nil' if base64encoded_certificate.nil?
parameters = CertificateImportParameters.new parameters = Azure::KeyVault::V7_1::Models::CertificateImportParameters.new
unless base64encoded_certificate.nil? && password.nil? && certificate_policy.nil? && certificate_attributes.nil? && tags.nil? unless base64encoded_certificate.nil? && password.nil? && certificate_policy.nil? && certificate_attributes.nil? && tags.nil?
parameters.base64EncodedCertificate = base64encoded_certificate parameters.base64encoded_certificate = base64encoded_certificate
parameters.password = password parameters.password = password
parameters.CertificatePolicy = certificate_policy parameters.certificate_policy = certificate_policy
parameters.CertificateAttributes = certificate_attributes parameters.certificate_attributes = certificate_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -1999,10 +1999,10 @@ module Azure::KeyVault::V7_1
fail ArgumentError, 'certificate_version is nil' if certificate_version.nil? fail ArgumentError, 'certificate_version is nil' if certificate_version.nil?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = CertificateUpdateParameters.new parameters = Azure::KeyVault::V7_1::Models::CertificateUpdateParameters.new
unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil? unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil?
parameters.CertificatePolicy = certificate_policy parameters.certificate_policy = certificate_policy
parameters.CertificateAttributes = certificate_attributes parameters.certificate_attributes = certificate_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -2601,10 +2601,10 @@ module Azure::KeyVault::V7_1
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'x509certificates is nil' if x509certificates.nil? fail ArgumentError, 'x509certificates is nil' if x509certificates.nil?
parameters = CertificateMergeParameters.new parameters = Azure::KeyVault::V7_1::Models::CertificateMergeParameters.new
unless x509certificates.nil? && certificate_attributes.nil? && tags.nil? unless x509certificates.nil? && certificate_attributes.nil? && tags.nil?
parameters.x509Certificates = x509certificates parameters.x509certificates = x509certificates
parameters.CertificateAttributes = certificate_attributes parameters.certificate_attributes = certificate_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -2832,9 +2832,9 @@ module Azure::KeyVault::V7_1
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'certificate_bundle_backup is nil' if certificate_bundle_backup.nil? fail ArgumentError, 'certificate_bundle_backup is nil' if certificate_bundle_backup.nil?
parameters = CertificateRestoreParameters.new parameters = Azure::KeyVault::V7_1::Models::CertificateRestoreParameters.new
unless certificate_bundle_backup.nil? unless certificate_bundle_backup.nil?
parameters.certificateBundleBackup = certificate_bundle_backup parameters.certificate_bundle_backup = certificate_bundle_backup
end end
request_headers = {} request_headers = {}
@ -3454,12 +3454,12 @@ module Azure::KeyVault::V7_1
fail ArgumentError, 'kty is nil' if kty.nil? fail ArgumentError, 'kty is nil' if kty.nil?
fail ArgumentError, "'kty' should satisfy the constraint - 'MinLength': '1'" if !kty.nil? && kty.length < 1 fail ArgumentError, "'kty' should satisfy the constraint - 'MinLength': '1'" if !kty.nil? && kty.length < 1
parameters = KeyCreateParameters.new parameters = Azure::KeyVault::V7_1::Models::KeyCreateParameters.new
unless kty.nil? && key_size.nil? && key_ops.nil? && key_attributes.nil? && tags.nil? && curve.nil? unless kty.nil? && key_size.nil? && key_ops.nil? && key_attributes.nil? && tags.nil? && curve.nil?
parameters.kty = kty parameters.kty = kty
parameters.key_size = key_size parameters.key_size = key_size
parameters.key_ops = key_ops parameters.key_ops = key_ops
parameters.keyAttributes = key_attributes parameters.key_attributes = key_attributes
parameters.tags = tags parameters.tags = tags
parameters.curve = curve parameters.curve = curve
end end
@ -3602,11 +3602,11 @@ module Azure::KeyVault::V7_1
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'key is nil' if key.nil? fail ArgumentError, 'key is nil' if key.nil?
parameters = KeyImportParameters.new parameters = Azure::KeyVault::V7_1::Models::KeyImportParameters.new
unless hsm.nil? && key.nil? && key_attributes.nil? && tags.nil? unless hsm.nil? && key.nil? && key_attributes.nil? && tags.nil?
parameters.hsm = hsm parameters.hsm = hsm
parameters.key = key parameters.key = key
parameters.keyAttributes = key_attributes parameters.key_attributes = key_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -3862,10 +3862,10 @@ module Azure::KeyVault::V7_1
fail ArgumentError, 'key_version is nil' if key_version.nil? fail ArgumentError, 'key_version is nil' if key_version.nil?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = KeyUpdateParameters.new parameters = Azure::KeyVault::V7_1::Models::KeyUpdateParameters.new
unless key_ops.nil? && key_attributes.nil? && tags.nil? unless key_ops.nil? && key_attributes.nil? && tags.nil?
parameters.key_ops = key_ops parameters.key_ops = key_ops
parameters.keyAttributes = key_attributes parameters.key_attributes = key_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -4504,9 +4504,9 @@ module Azure::KeyVault::V7_1
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'key_bundle_backup is nil' if key_bundle_backup.nil? fail ArgumentError, 'key_bundle_backup is nil' if key_bundle_backup.nil?
parameters = KeyRestoreParameters.new parameters = Azure::KeyVault::V7_1::Models::KeyRestoreParameters.new
unless key_bundle_backup.nil? unless key_bundle_backup.nil?
parameters.keyBundleBackup = key_bundle_backup parameters.key_bundle_backup = key_bundle_backup
end end
request_headers = {} request_headers = {}
@ -4663,7 +4663,7 @@ module Azure::KeyVault::V7_1
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeyOperationsParameters.new parameters = Azure::KeyVault::V7_1::Models::KeyOperationsParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -4812,7 +4812,7 @@ module Azure::KeyVault::V7_1
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeyOperationsParameters.new parameters = Azure::KeyVault::V7_1::Models::KeyOperationsParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -4958,7 +4958,7 @@ module Azure::KeyVault::V7_1
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeySignParameters.new parameters = Azure::KeyVault::V7_1::Models::KeySignParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -5117,7 +5117,7 @@ module Azure::KeyVault::V7_1
fail ArgumentError, 'digest is nil' if digest.nil? fail ArgumentError, 'digest is nil' if digest.nil?
fail ArgumentError, 'signature is nil' if signature.nil? fail ArgumentError, 'signature is nil' if signature.nil?
parameters = KeyVerifyParameters.new parameters = Azure::KeyVault::V7_1::Models::KeyVerifyParameters.new
unless algorithm.nil? && digest.nil? && signature.nil? unless algorithm.nil? && digest.nil? && signature.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.digest = digest parameters.digest = digest
@ -5267,7 +5267,7 @@ module Azure::KeyVault::V7_1
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeyOperationsParameters.new parameters = Azure::KeyVault::V7_1::Models::KeyOperationsParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -5413,7 +5413,7 @@ module Azure::KeyVault::V7_1
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeyOperationsParameters.new parameters = Azure::KeyVault::V7_1::Models::KeyOperationsParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -6000,12 +6000,12 @@ module Azure::KeyVault::V7_1
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = SecretSetParameters.new parameters = Azure::KeyVault::V7_1::Models::SecretSetParameters.new
unless value.nil? && tags.nil? && content_type.nil? && secret_attributes.nil? unless value.nil? && tags.nil? && content_type.nil? && secret_attributes.nil?
parameters.value = value parameters.value = value
parameters.tags = tags parameters.tags = tags
parameters.content_type = content_type parameters.content_type = content_type
parameters.secretAttributes = secret_attributes parameters.secret_attributes = secret_attributes
end end
request_headers = {} request_headers = {}
@ -6254,10 +6254,10 @@ module Azure::KeyVault::V7_1
fail ArgumentError, 'secret_version is nil' if secret_version.nil? fail ArgumentError, 'secret_version is nil' if secret_version.nil?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = SecretUpdateParameters.new parameters = Azure::KeyVault::V7_1::Models::SecretUpdateParameters.new
unless content_type.nil? && secret_attributes.nil? && tags.nil? unless content_type.nil? && secret_attributes.nil? && tags.nil?
parameters.content_type = content_type parameters.content_type = content_type
parameters.secretAttributes = secret_attributes parameters.secret_attributes = secret_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -7255,9 +7255,9 @@ module Azure::KeyVault::V7_1
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'secret_bundle_backup is nil' if secret_bundle_backup.nil? fail ArgumentError, 'secret_bundle_backup is nil' if secret_bundle_backup.nil?
parameters = SecretRestoreParameters.new parameters = Azure::KeyVault::V7_1::Models::SecretRestoreParameters.new
unless secret_bundle_backup.nil? unless secret_bundle_backup.nil?
parameters.secretBundleBackup = secret_bundle_backup parameters.secret_bundle_backup = secret_bundle_backup
end end
request_headers = {} request_headers = {}
@ -8017,9 +8017,9 @@ module Azure::KeyVault::V7_1
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'storage_bundle_backup is nil' if storage_bundle_backup.nil? fail ArgumentError, 'storage_bundle_backup is nil' if storage_bundle_backup.nil?
parameters = StorageRestoreParameters.new parameters = Azure::KeyVault::V7_1::Models::StorageRestoreParameters.new
unless storage_bundle_backup.nil? unless storage_bundle_backup.nil?
parameters.storageBundleBackup = storage_bundle_backup parameters.storage_bundle_backup = storage_bundle_backup
end end
request_headers = {} request_headers = {}
@ -8363,13 +8363,13 @@ module Azure::KeyVault::V7_1
fail ArgumentError, 'active_key_name is nil' if active_key_name.nil? fail ArgumentError, 'active_key_name is nil' if active_key_name.nil?
fail ArgumentError, 'auto_regenerate_key is nil' if auto_regenerate_key.nil? fail ArgumentError, 'auto_regenerate_key is nil' if auto_regenerate_key.nil?
parameters = StorageAccountCreateParameters.new parameters = Azure::KeyVault::V7_1::Models::StorageAccountCreateParameters.new
unless resource_id.nil? && active_key_name.nil? && auto_regenerate_key.nil? && regeneration_period.nil? && storage_account_attributes.nil? && tags.nil? unless resource_id.nil? && active_key_name.nil? && auto_regenerate_key.nil? && regeneration_period.nil? && storage_account_attributes.nil? && tags.nil?
parameters.resource_id = resource_id parameters.resource_id = resource_id
parameters.active_key_name = active_key_name parameters.active_key_name = active_key_name
parameters.auto_regenerate_key = auto_regenerate_key parameters.auto_regenerate_key = auto_regenerate_key
parameters.regeneration_period = regeneration_period parameters.regeneration_period = regeneration_period
parameters.StorageAccountAttributes = storage_account_attributes parameters.storage_account_attributes = storage_account_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -8507,12 +8507,12 @@ module Azure::KeyVault::V7_1
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? 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?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = StorageAccountUpdateParameters.new parameters = Azure::KeyVault::V7_1::Models::StorageAccountUpdateParameters.new
unless active_key_name.nil? && auto_regenerate_key.nil? && regeneration_period.nil? && storage_account_attributes.nil? && tags.nil? unless active_key_name.nil? && auto_regenerate_key.nil? && regeneration_period.nil? && storage_account_attributes.nil? && tags.nil?
parameters.active_key_name = active_key_name parameters.active_key_name = active_key_name
parameters.auto_regenerate_key = auto_regenerate_key parameters.auto_regenerate_key = auto_regenerate_key
parameters.regeneration_period = regeneration_period parameters.regeneration_period = regeneration_period
parameters.StorageAccountAttributes = storage_account_attributes parameters.storage_account_attributes = storage_account_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -8627,7 +8627,7 @@ module Azure::KeyVault::V7_1
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'key_name is nil' if key_name.nil? fail ArgumentError, 'key_name is nil' if key_name.nil?
parameters = StorageAccountRegenerteKeyParameters.new parameters = Azure::KeyVault::V7_1::Models::StorageAccountRegenerteKeyParameters.new
unless key_name.nil? unless key_name.nil?
parameters.key_name = key_name parameters.key_name = key_name
end end
@ -9449,12 +9449,12 @@ module Azure::KeyVault::V7_1
fail ArgumentError, 'sas_type is nil' if sas_type.nil? fail ArgumentError, 'sas_type is nil' if sas_type.nil?
fail ArgumentError, 'validity_period is nil' if validity_period.nil? fail ArgumentError, 'validity_period is nil' if validity_period.nil?
parameters = SasDefinitionCreateParameters.new parameters = Azure::KeyVault::V7_1::Models::SasDefinitionCreateParameters.new
unless template_uri.nil? && sas_type.nil? && validity_period.nil? && sas_definition_attributes.nil? && tags.nil? unless template_uri.nil? && sas_type.nil? && validity_period.nil? && sas_definition_attributes.nil? && tags.nil?
parameters.template_uri = template_uri parameters.template_uri = template_uri
parameters.sas_type = sas_type parameters.sas_type = sas_type
parameters.validity_period = validity_period parameters.validity_period = validity_period
parameters.SasDefinitionAttributes = sas_definition_attributes parameters.sas_definition_attributes = sas_definition_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -9603,12 +9603,12 @@ module Azure::KeyVault::V7_1
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? 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?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = SasDefinitionUpdateParameters.new parameters = Azure::KeyVault::V7_1::Models::SasDefinitionUpdateParameters.new
unless template_uri.nil? && sas_type.nil? && validity_period.nil? && sas_definition_attributes.nil? && tags.nil? unless template_uri.nil? && sas_type.nil? && validity_period.nil? && sas_definition_attributes.nil? && tags.nil?
parameters.template_uri = template_uri parameters.template_uri = template_uri
parameters.sas_type = sas_type parameters.sas_type = sas_type
parameters.validity_period = validity_period parameters.validity_period = validity_period
parameters.SasDefinitionAttributes = sas_definition_attributes parameters.sas_definition_attributes = sas_definition_attributes
parameters.tags = tags parameters.tags = tags
end end

Просмотреть файл

@ -16,7 +16,7 @@ module Azure::KeyVault::V7_1
# need to contain the private key. # need to contain the private key.
attr_accessor :base64encoded_certificate attr_accessor :base64encoded_certificate
# @return [String] If the private key in base64EncodedCertificate is # @return [String] If the private key in base64encoded_certificate is
# encrypted, the password used for encryption. # encrypted, the password used for encryption.
attr_accessor :password attr_accessor :password

Просмотреть файл

@ -1353,10 +1353,10 @@ module Azure::KeyVault::V7_2_preview
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? 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?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = CertificateCreateParameters.new parameters = Azure::KeyVault::V7_2_preview::Models::CertificateCreateParameters.new
unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil? unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil?
parameters.CertificatePolicy = certificate_policy parameters.certificate_policy = certificate_policy
parameters.CertificateAttributes = certificate_attributes parameters.certificate_attributes = certificate_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -1431,7 +1431,7 @@ module Azure::KeyVault::V7_2_preview
# @param base64encoded_certificate [String] Base64 encoded representation of # @param base64encoded_certificate [String] Base64 encoded representation of
# the certificate object to import. This certificate needs to contain the # the certificate object to import. This certificate needs to contain the
# private key. # private key.
# @param password [String] If the private key in base64EncodedCertificate is # @param password [String] If the private key in base64encoded_certificate is
# encrypted, the password used for encryption. # encrypted, the password used for encryption.
# @param certificate_policy [CertificatePolicy] The management policy for the # @param certificate_policy [CertificatePolicy] The management policy for the
# certificate. # certificate.
@ -1464,7 +1464,7 @@ module Azure::KeyVault::V7_2_preview
# @param base64encoded_certificate [String] Base64 encoded representation of # @param base64encoded_certificate [String] Base64 encoded representation of
# the certificate object to import. This certificate needs to contain the # the certificate object to import. This certificate needs to contain the
# private key. # private key.
# @param password [String] If the private key in base64EncodedCertificate is # @param password [String] If the private key in base64encoded_certificate is
# encrypted, the password used for encryption. # encrypted, the password used for encryption.
# @param certificate_policy [CertificatePolicy] The management policy for the # @param certificate_policy [CertificatePolicy] The management policy for the
# certificate. # certificate.
@ -1496,7 +1496,7 @@ module Azure::KeyVault::V7_2_preview
# @param base64encoded_certificate [String] Base64 encoded representation of # @param base64encoded_certificate [String] Base64 encoded representation of
# the certificate object to import. This certificate needs to contain the # the certificate object to import. This certificate needs to contain the
# private key. # private key.
# @param password [String] If the private key in base64EncodedCertificate is # @param password [String] If the private key in base64encoded_certificate is
# encrypted, the password used for encryption. # encrypted, the password used for encryption.
# @param certificate_policy [CertificatePolicy] The management policy for the # @param certificate_policy [CertificatePolicy] The management policy for the
# certificate. # certificate.
@ -1516,12 +1516,12 @@ module Azure::KeyVault::V7_2_preview
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'base64encoded_certificate is nil' if base64encoded_certificate.nil? fail ArgumentError, 'base64encoded_certificate is nil' if base64encoded_certificate.nil?
parameters = CertificateImportParameters.new parameters = Azure::KeyVault::V7_2_preview::Models::CertificateImportParameters.new
unless base64encoded_certificate.nil? && password.nil? && certificate_policy.nil? && certificate_attributes.nil? && tags.nil? unless base64encoded_certificate.nil? && password.nil? && certificate_policy.nil? && certificate_attributes.nil? && tags.nil?
parameters.base64EncodedCertificate = base64encoded_certificate parameters.base64encoded_certificate = base64encoded_certificate
parameters.password = password parameters.password = password
parameters.CertificatePolicy = certificate_policy parameters.certificate_policy = certificate_policy
parameters.CertificateAttributes = certificate_attributes parameters.certificate_attributes = certificate_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -2014,10 +2014,10 @@ module Azure::KeyVault::V7_2_preview
fail ArgumentError, 'certificate_version is nil' if certificate_version.nil? fail ArgumentError, 'certificate_version is nil' if certificate_version.nil?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = CertificateUpdateParameters.new parameters = Azure::KeyVault::V7_2_preview::Models::CertificateUpdateParameters.new
unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil? unless certificate_policy.nil? && certificate_attributes.nil? && tags.nil?
parameters.CertificatePolicy = certificate_policy parameters.certificate_policy = certificate_policy
parameters.CertificateAttributes = certificate_attributes parameters.certificate_attributes = certificate_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -2616,10 +2616,10 @@ module Azure::KeyVault::V7_2_preview
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'x509certificates is nil' if x509certificates.nil? fail ArgumentError, 'x509certificates is nil' if x509certificates.nil?
parameters = CertificateMergeParameters.new parameters = Azure::KeyVault::V7_2_preview::Models::CertificateMergeParameters.new
unless x509certificates.nil? && certificate_attributes.nil? && tags.nil? unless x509certificates.nil? && certificate_attributes.nil? && tags.nil?
parameters.x509Certificates = x509certificates parameters.x509certificates = x509certificates
parameters.CertificateAttributes = certificate_attributes parameters.certificate_attributes = certificate_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -2847,9 +2847,9 @@ module Azure::KeyVault::V7_2_preview
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'certificate_bundle_backup is nil' if certificate_bundle_backup.nil? fail ArgumentError, 'certificate_bundle_backup is nil' if certificate_bundle_backup.nil?
parameters = CertificateRestoreParameters.new parameters = Azure::KeyVault::V7_2_preview::Models::CertificateRestoreParameters.new
unless certificate_bundle_backup.nil? unless certificate_bundle_backup.nil?
parameters.certificateBundleBackup = certificate_bundle_backup parameters.certificate_bundle_backup = certificate_bundle_backup
end end
request_headers = {} request_headers = {}
@ -3472,13 +3472,13 @@ module Azure::KeyVault::V7_2_preview
fail ArgumentError, 'kty is nil' if kty.nil? fail ArgumentError, 'kty is nil' if kty.nil?
fail ArgumentError, "'kty' should satisfy the constraint - 'MinLength': '1'" if !kty.nil? && kty.length < 1 fail ArgumentError, "'kty' should satisfy the constraint - 'MinLength': '1'" if !kty.nil? && kty.length < 1
parameters = KeyCreateParameters.new parameters = Azure::KeyVault::V7_2_preview::Models::KeyCreateParameters.new
unless kty.nil? && key_size.nil? && public_exponent.nil? && key_ops.nil? && key_attributes.nil? && tags.nil? && curve.nil? unless kty.nil? && key_size.nil? && public_exponent.nil? && key_ops.nil? && key_attributes.nil? && tags.nil? && curve.nil?
parameters.kty = kty parameters.kty = kty
parameters.key_size = key_size parameters.key_size = key_size
parameters.public_exponent = public_exponent parameters.public_exponent = public_exponent
parameters.key_ops = key_ops parameters.key_ops = key_ops
parameters.keyAttributes = key_attributes parameters.key_attributes = key_attributes
parameters.tags = tags parameters.tags = tags
parameters.curve = curve parameters.curve = curve
end end
@ -3621,11 +3621,11 @@ module Azure::KeyVault::V7_2_preview
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'key is nil' if key.nil? fail ArgumentError, 'key is nil' if key.nil?
parameters = KeyImportParameters.new parameters = Azure::KeyVault::V7_2_preview::Models::KeyImportParameters.new
unless hsm.nil? && key.nil? && key_attributes.nil? && tags.nil? unless hsm.nil? && key.nil? && key_attributes.nil? && tags.nil?
parameters.hsm = hsm parameters.hsm = hsm
parameters.key = key parameters.key = key
parameters.keyAttributes = key_attributes parameters.key_attributes = key_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -3881,10 +3881,10 @@ module Azure::KeyVault::V7_2_preview
fail ArgumentError, 'key_version is nil' if key_version.nil? fail ArgumentError, 'key_version is nil' if key_version.nil?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = KeyUpdateParameters.new parameters = Azure::KeyVault::V7_2_preview::Models::KeyUpdateParameters.new
unless key_ops.nil? && key_attributes.nil? && tags.nil? unless key_ops.nil? && key_attributes.nil? && tags.nil?
parameters.key_ops = key_ops parameters.key_ops = key_ops
parameters.keyAttributes = key_attributes parameters.key_attributes = key_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -4523,9 +4523,9 @@ module Azure::KeyVault::V7_2_preview
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'key_bundle_backup is nil' if key_bundle_backup.nil? fail ArgumentError, 'key_bundle_backup is nil' if key_bundle_backup.nil?
parameters = KeyRestoreParameters.new parameters = Azure::KeyVault::V7_2_preview::Models::KeyRestoreParameters.new
unless key_bundle_backup.nil? unless key_bundle_backup.nil?
parameters.keyBundleBackup = key_bundle_backup parameters.key_bundle_backup = key_bundle_backup
end end
request_headers = {} request_headers = {}
@ -4703,7 +4703,7 @@ module Azure::KeyVault::V7_2_preview
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeyOperationsParameters.new parameters = Azure::KeyVault::V7_2_preview::Models::KeyOperationsParameters.new
unless algorithm.nil? && value.nil? && iv.nil? && aad.nil? && tag.nil? unless algorithm.nil? && value.nil? && iv.nil? && aad.nil? && tag.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -4876,7 +4876,7 @@ module Azure::KeyVault::V7_2_preview
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeyOperationsParameters.new parameters = Azure::KeyVault::V7_2_preview::Models::KeyOperationsParameters.new
unless algorithm.nil? && value.nil? && iv.nil? && aad.nil? && tag.nil? unless algorithm.nil? && value.nil? && iv.nil? && aad.nil? && tag.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -5025,7 +5025,7 @@ module Azure::KeyVault::V7_2_preview
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeySignParameters.new parameters = Azure::KeyVault::V7_2_preview::Models::KeySignParameters.new
unless algorithm.nil? && value.nil? unless algorithm.nil? && value.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -5184,7 +5184,7 @@ module Azure::KeyVault::V7_2_preview
fail ArgumentError, 'digest is nil' if digest.nil? fail ArgumentError, 'digest is nil' if digest.nil?
fail ArgumentError, 'signature is nil' if signature.nil? fail ArgumentError, 'signature is nil' if signature.nil?
parameters = KeyVerifyParameters.new parameters = Azure::KeyVault::V7_2_preview::Models::KeyVerifyParameters.new
unless algorithm.nil? && digest.nil? && signature.nil? unless algorithm.nil? && digest.nil? && signature.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.digest = digest parameters.digest = digest
@ -5355,7 +5355,7 @@ module Azure::KeyVault::V7_2_preview
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeyOperationsParameters.new parameters = Azure::KeyVault::V7_2_preview::Models::KeyOperationsParameters.new
unless algorithm.nil? && value.nil? && iv.nil? && aad.nil? && tag.nil? unless algorithm.nil? && value.nil? && iv.nil? && aad.nil? && tag.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -5525,7 +5525,7 @@ module Azure::KeyVault::V7_2_preview
fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1 fail ArgumentError, "'algorithm' should satisfy the constraint - 'MinLength': '1'" if !algorithm.nil? && algorithm.length < 1
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = KeyOperationsParameters.new parameters = Azure::KeyVault::V7_2_preview::Models::KeyOperationsParameters.new
unless algorithm.nil? && value.nil? && iv.nil? && aad.nil? && tag.nil? unless algorithm.nil? && value.nil? && iv.nil? && aad.nil? && tag.nil?
parameters.algorithm = algorithm parameters.algorithm = algorithm
parameters.value = value parameters.value = value
@ -6115,12 +6115,12 @@ module Azure::KeyVault::V7_2_preview
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'value is nil' if value.nil? fail ArgumentError, 'value is nil' if value.nil?
parameters = SecretSetParameters.new parameters = Azure::KeyVault::V7_2_preview::Models::SecretSetParameters.new
unless value.nil? && tags.nil? && content_type.nil? && secret_attributes.nil? unless value.nil? && tags.nil? && content_type.nil? && secret_attributes.nil?
parameters.value = value parameters.value = value
parameters.tags = tags parameters.tags = tags
parameters.content_type = content_type parameters.content_type = content_type
parameters.secretAttributes = secret_attributes parameters.secret_attributes = secret_attributes
end end
request_headers = {} request_headers = {}
@ -6369,10 +6369,10 @@ module Azure::KeyVault::V7_2_preview
fail ArgumentError, 'secret_version is nil' if secret_version.nil? fail ArgumentError, 'secret_version is nil' if secret_version.nil?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = SecretUpdateParameters.new parameters = Azure::KeyVault::V7_2_preview::Models::SecretUpdateParameters.new
unless content_type.nil? && secret_attributes.nil? && tags.nil? unless content_type.nil? && secret_attributes.nil? && tags.nil?
parameters.content_type = content_type parameters.content_type = content_type
parameters.secretAttributes = secret_attributes parameters.secret_attributes = secret_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -7370,9 +7370,9 @@ module Azure::KeyVault::V7_2_preview
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'secret_bundle_backup is nil' if secret_bundle_backup.nil? fail ArgumentError, 'secret_bundle_backup is nil' if secret_bundle_backup.nil?
parameters = SecretRestoreParameters.new parameters = Azure::KeyVault::V7_2_preview::Models::SecretRestoreParameters.new
unless secret_bundle_backup.nil? unless secret_bundle_backup.nil?
parameters.secretBundleBackup = secret_bundle_backup parameters.secret_bundle_backup = secret_bundle_backup
end end
request_headers = {} request_headers = {}
@ -8132,9 +8132,9 @@ module Azure::KeyVault::V7_2_preview
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'storage_bundle_backup is nil' if storage_bundle_backup.nil? fail ArgumentError, 'storage_bundle_backup is nil' if storage_bundle_backup.nil?
parameters = StorageRestoreParameters.new parameters = Azure::KeyVault::V7_2_preview::Models::StorageRestoreParameters.new
unless storage_bundle_backup.nil? unless storage_bundle_backup.nil?
parameters.storageBundleBackup = storage_bundle_backup parameters.storage_bundle_backup = storage_bundle_backup
end end
request_headers = {} request_headers = {}
@ -8478,13 +8478,13 @@ module Azure::KeyVault::V7_2_preview
fail ArgumentError, 'active_key_name is nil' if active_key_name.nil? fail ArgumentError, 'active_key_name is nil' if active_key_name.nil?
fail ArgumentError, 'auto_regenerate_key is nil' if auto_regenerate_key.nil? fail ArgumentError, 'auto_regenerate_key is nil' if auto_regenerate_key.nil?
parameters = StorageAccountCreateParameters.new parameters = Azure::KeyVault::V7_2_preview::Models::StorageAccountCreateParameters.new
unless resource_id.nil? && active_key_name.nil? && auto_regenerate_key.nil? && regeneration_period.nil? && storage_account_attributes.nil? && tags.nil? unless resource_id.nil? && active_key_name.nil? && auto_regenerate_key.nil? && regeneration_period.nil? && storage_account_attributes.nil? && tags.nil?
parameters.resource_id = resource_id parameters.resource_id = resource_id
parameters.active_key_name = active_key_name parameters.active_key_name = active_key_name
parameters.auto_regenerate_key = auto_regenerate_key parameters.auto_regenerate_key = auto_regenerate_key
parameters.regeneration_period = regeneration_period parameters.regeneration_period = regeneration_period
parameters.StorageAccountAttributes = storage_account_attributes parameters.storage_account_attributes = storage_account_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -8622,12 +8622,12 @@ module Azure::KeyVault::V7_2_preview
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? 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?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = StorageAccountUpdateParameters.new parameters = Azure::KeyVault::V7_2_preview::Models::StorageAccountUpdateParameters.new
unless active_key_name.nil? && auto_regenerate_key.nil? && regeneration_period.nil? && storage_account_attributes.nil? && tags.nil? unless active_key_name.nil? && auto_regenerate_key.nil? && regeneration_period.nil? && storage_account_attributes.nil? && tags.nil?
parameters.active_key_name = active_key_name parameters.active_key_name = active_key_name
parameters.auto_regenerate_key = auto_regenerate_key parameters.auto_regenerate_key = auto_regenerate_key
parameters.regeneration_period = regeneration_period parameters.regeneration_period = regeneration_period
parameters.StorageAccountAttributes = storage_account_attributes parameters.storage_account_attributes = storage_account_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -8742,7 +8742,7 @@ module Azure::KeyVault::V7_2_preview
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
fail ArgumentError, 'key_name is nil' if key_name.nil? fail ArgumentError, 'key_name is nil' if key_name.nil?
parameters = StorageAccountRegenerteKeyParameters.new parameters = Azure::KeyVault::V7_2_preview::Models::StorageAccountRegenerteKeyParameters.new
unless key_name.nil? unless key_name.nil?
parameters.key_name = key_name parameters.key_name = key_name
end end
@ -9564,12 +9564,12 @@ module Azure::KeyVault::V7_2_preview
fail ArgumentError, 'sas_type is nil' if sas_type.nil? fail ArgumentError, 'sas_type is nil' if sas_type.nil?
fail ArgumentError, 'validity_period is nil' if validity_period.nil? fail ArgumentError, 'validity_period is nil' if validity_period.nil?
parameters = SasDefinitionCreateParameters.new parameters = Azure::KeyVault::V7_2_preview::Models::SasDefinitionCreateParameters.new
unless template_uri.nil? && sas_type.nil? && validity_period.nil? && sas_definition_attributes.nil? && tags.nil? unless template_uri.nil? && sas_type.nil? && validity_period.nil? && sas_definition_attributes.nil? && tags.nil?
parameters.template_uri = template_uri parameters.template_uri = template_uri
parameters.sas_type = sas_type parameters.sas_type = sas_type
parameters.validity_period = validity_period parameters.validity_period = validity_period
parameters.SasDefinitionAttributes = sas_definition_attributes parameters.sas_definition_attributes = sas_definition_attributes
parameters.tags = tags parameters.tags = tags
end end
@ -9718,12 +9718,12 @@ module Azure::KeyVault::V7_2_preview
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? 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?
fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'api_version is nil' if api_version.nil?
parameters = SasDefinitionUpdateParameters.new parameters = Azure::KeyVault::V7_2_preview::Models::SasDefinitionUpdateParameters.new
unless template_uri.nil? && sas_type.nil? && validity_period.nil? && sas_definition_attributes.nil? && tags.nil? unless template_uri.nil? && sas_type.nil? && validity_period.nil? && sas_definition_attributes.nil? && tags.nil?
parameters.template_uri = template_uri parameters.template_uri = template_uri
parameters.sas_type = sas_type parameters.sas_type = sas_type
parameters.validity_period = validity_period parameters.validity_period = validity_period
parameters.SasDefinitionAttributes = sas_definition_attributes parameters.sas_definition_attributes = sas_definition_attributes
parameters.tags = tags parameters.tags = tags
end end

Просмотреть файл

@ -16,7 +16,7 @@ module Azure::KeyVault::V7_2_preview
# object to import. This certificate needs to contain the private key. # object to import. This certificate needs to contain the private key.
attr_accessor :base64encoded_certificate attr_accessor :base64encoded_certificate
# @return [String] If the private key in base64EncodedCertificate is # @return [String] If the private key in base64encoded_certificate is
# encrypted, the password used for encryption. # encrypted, the password used for encryption.
attr_accessor :password attr_accessor :password

Просмотреть файл

@ -226,7 +226,7 @@ module Azure::BotService::Mgmt::V2017_12_01_preview
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
parameters = Bot.new parameters = Azure::BotService::Mgmt::V2017_12_01_preview::Models::Bot.new
unless location.nil? && tags.nil? && sku.nil? && kind.nil? && etag.nil? && properties.nil? unless location.nil? && tags.nil? && sku.nil? && kind.nil? && etag.nil? && properties.nil?
parameters.location = location parameters.location = location
parameters.tags = tags parameters.tags = tags

Просмотреть файл

@ -252,7 +252,7 @@ module Azure::BotService::Mgmt::V2017_12_01_preview
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
parameters = BotChannel.new parameters = Azure::BotService::Mgmt::V2017_12_01_preview::Models::BotChannel.new
unless location.nil? && tags.nil? && sku.nil? && kind.nil? && etag.nil? && properties.nil? unless location.nil? && tags.nil? && sku.nil? && kind.nil? && etag.nil? && properties.nil?
parameters.location = location parameters.location = location
parameters.tags = tags parameters.tags = tags

Просмотреть файл

@ -226,7 +226,7 @@ module Azure::BotService::Mgmt::V2018_07_12_preview
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
parameters = Bot.new parameters = Azure::BotService::Mgmt::V2018_07_12_preview::Models::Bot.new
unless location.nil? && tags.nil? && sku.nil? && kind.nil? && etag.nil? && properties.nil? unless location.nil? && tags.nil? && sku.nil? && kind.nil? && etag.nil? && properties.nil?
parameters.location = location parameters.location = location
parameters.tags = tags parameters.tags = tags

Просмотреть файл

@ -252,7 +252,7 @@ module Azure::BotService::Mgmt::V2018_07_12_preview
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
parameters = BotChannel.new parameters = Azure::BotService::Mgmt::V2018_07_12_preview::Models::BotChannel.new
unless location.nil? && tags.nil? && sku.nil? && kind.nil? && etag.nil? && properties.nil? unless location.nil? && tags.nil? && sku.nil? && kind.nil? && etag.nil? && properties.nil?
parameters.location = location parameters.location = location
parameters.tags = tags parameters.tags = tags

Просмотреть файл

@ -679,7 +679,7 @@ module Azure::BotService::Mgmt::V2018_07_12_preview
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
parameters = EnterpriseChannel.new parameters = Azure::BotService::Mgmt::V2018_07_12_preview::Models::EnterpriseChannel.new
unless location.nil? && tags.nil? && sku.nil? && kind.nil? && etag.nil? && properties.nil? unless location.nil? && tags.nil? && sku.nil? && kind.nil? && etag.nil? && properties.nil?
parameters.location = location parameters.location = location
parameters.tags = tags parameters.tags = tags

Просмотреть файл

@ -851,7 +851,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1 fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
fail ArgumentError, 'key_name is nil' if key_name.nil? fail ArgumentError, 'key_name is nil' if key_name.nil?
parameters = RegenerateKeyParameters.new parameters = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::RegenerateKeyParameters.new
unless key_name.nil? unless key_name.nil?
parameters.key_name = key_name parameters.key_name = key_name
end end

Просмотреть файл

@ -188,7 +188,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
fail ArgumentError, 'kind is nil' if kind.nil? fail ArgumentError, 'kind is nil' if kind.nil?
fail ArgumentError, 'type is nil' if type.nil? fail ArgumentError, 'type is nil' if type.nil?
parameters = CheckSkuAvailabilityParameter.new parameters = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckSkuAvailabilityParameter.new
unless skus.nil? && kind.nil? && type.nil? unless skus.nil? && kind.nil? && type.nil?
parameters.skus = skus parameters.skus = skus
parameters.kind = kind parameters.kind = kind
@ -297,7 +297,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
fail ArgumentError, 'subdomain_name is nil' if subdomain_name.nil? fail ArgumentError, 'subdomain_name is nil' if subdomain_name.nil?
fail ArgumentError, 'type is nil' if type.nil? fail ArgumentError, 'type is nil' if type.nil?
parameters = CheckDomainAvailabilityParameter.new parameters = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckDomainAvailabilityParameter.new
unless subdomain_name.nil? && type.nil? unless subdomain_name.nil? && type.nil?
parameters.subdomain_name = subdomain_name parameters.subdomain_name = subdomain_name
parameters.type = type parameters.type = type

Просмотреть файл

@ -559,7 +559,7 @@ module Azure::Cosmosdb::Mgmt::V2019_12_12
fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil? fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil?
notebook_workspace_name = 'default' notebook_workspace_name = 'default'
notebook_create_update_parameters = NotebookWorkspaceCreateUpdateParameters.new notebook_create_update_parameters = Azure::Cosmosdb::Mgmt::V2019_12_12::Models::NotebookWorkspaceCreateUpdateParameters.new
request_headers = {} request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8' request_headers['Content-Type'] = 'application/json; charset=utf-8'

Просмотреть файл

@ -559,7 +559,7 @@ module Azure::Cosmosdb::Mgmt::V2020_03_01
fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil? fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil?
notebook_workspace_name = 'default' notebook_workspace_name = 'default'
notebook_create_update_parameters = NotebookWorkspaceCreateUpdateParameters.new notebook_create_update_parameters = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::NotebookWorkspaceCreateUpdateParameters.new
request_headers = {} request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8' request_headers['Content-Type'] = 'application/json; charset=utf-8'

Просмотреть файл

@ -559,7 +559,7 @@ module Azure::Cosmosdb::Mgmt::V2020_04_01
fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil? fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil?
notebook_workspace_name = 'default' notebook_workspace_name = 'default'
notebook_create_update_parameters = NotebookWorkspaceCreateUpdateParameters.new notebook_create_update_parameters = Azure::Cosmosdb::Mgmt::V2020_04_01::Models::NotebookWorkspaceCreateUpdateParameters.new
request_headers = {} request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8' request_headers['Content-Type'] = 'application/json; charset=utf-8'

Просмотреть файл

@ -559,7 +559,7 @@ module Azure::Cosmosdb::Mgmt::V2020_06_01_preview
fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil? fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil?
notebook_workspace_name = 'default' notebook_workspace_name = 'default'
notebook_create_update_parameters = NotebookWorkspaceCreateUpdateParameters.new notebook_create_update_parameters = Azure::Cosmosdb::Mgmt::V2020_06_01_preview::Models::NotebookWorkspaceCreateUpdateParameters.new
request_headers = {} request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8' request_headers['Content-Type'] = 'application/json; charset=utf-8'

Просмотреть файл

@ -559,7 +559,7 @@ module Azure::Cosmosdb::Mgmt::V2020_09_01
fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil? fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil?
notebook_workspace_name = 'default' notebook_workspace_name = 'default'
notebook_create_update_parameters = NotebookWorkspaceCreateUpdateParameters.new notebook_create_update_parameters = Azure::Cosmosdb::Mgmt::V2020_09_01::Models::NotebookWorkspaceCreateUpdateParameters.new
request_headers = {} request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8' request_headers['Content-Type'] = 'application/json; charset=utf-8'

Просмотреть файл

@ -559,7 +559,7 @@ module Azure::Cosmosdb::Mgmt::V2021_01_15
fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil? fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil?
notebook_workspace_name = 'default' notebook_workspace_name = 'default'
notebook_create_update_parameters = NotebookWorkspaceCreateUpdateParameters.new notebook_create_update_parameters = Azure::Cosmosdb::Mgmt::V2021_01_15::Models::NotebookWorkspaceCreateUpdateParameters.new
request_headers = {} request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8' request_headers['Content-Type'] = 'application/json; charset=utf-8'