From 051d1daa5c4e6a0eb97a17ffdeea31116c2db408 Mon Sep 17 00:00:00 2001 From: Kai Ru Date: Mon, 22 Mar 2021 16:07:28 +0800 Subject: [PATCH] fix generation bugs --- ChangeLog.md | 3 + config/GEMS_TO_RELEASE | 5 +- config/GEM_VERSIONS | 6 +- .../azure_key_vault/key_vault_client.rb | 74 +++++++------- .../models/certificate_import_parameters.rb | 2 +- .../azure_key_vault/key_vault_client.rb | 90 ++++++++--------- .../models/certificate_import_parameters.rb | 2 +- .../azure_key_vault/key_vault_client.rb | 98 +++++++++---------- .../models/certificate_import_parameters.rb | 2 +- .../azure_key_vault/key_vault_client.rb | 96 +++++++++--------- .../models/certificate_import_parameters.rb | 2 +- .../azure_key_vault/key_vault_client.rb | 98 +++++++++---------- .../models/certificate_import_parameters.rb | 2 +- .../azure_key_vault/key_vault_client.rb | 98 +++++++++---------- .../models/certificate_import_parameters.rb | 2 +- .../azure_key_vault/key_vault_client.rb | 98 +++++++++---------- .../models/certificate_import_parameters.rb | 2 +- .../generated/azure_mgmt_bot_service/bots.rb | 2 +- .../azure_mgmt_bot_service/channels.rb | 2 +- .../generated/azure_mgmt_bot_service/bots.rb | 2 +- .../azure_mgmt_bot_service/channels.rb | 2 +- .../enterprise_channels.rb | 2 +- .../azure_mgmt_cognitive_services/accounts.rb | 2 +- .../cognitive_services_management_client.rb | 4 +- .../notebook_workspaces.rb | 2 +- .../notebook_workspaces.rb | 2 +- .../notebook_workspaces.rb | 2 +- .../notebook_workspaces.rb | 2 +- .../notebook_workspaces.rb | 2 +- .../notebook_workspaces.rb | 2 +- 30 files changed, 357 insertions(+), 351 deletions(-) diff --git a/ChangeLog.md b/ChangeLog.md index e9790cb1d..eea89e7ab 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,6 +1,9 @@ ## 2021.03.22 - Azure Ruby SDK Release - azure_key_vault - v0.19.0 - 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 ## 2021.03.11 - Azure Ruby SDK Release diff --git a/config/GEMS_TO_RELEASE b/config/GEMS_TO_RELEASE index 61286112b..c9ef15959 100644 --- a/config/GEMS_TO_RELEASE +++ b/config/GEMS_TO_RELEASE @@ -3,7 +3,10 @@ "azure_key_vault" ], "management": [ - "azure_mgmt_resources" + "azure_mgmt_resources", + "azure_mgmt_bot_service", + "azure_mgmt_cognitive_services", + "azure_mgmt_cosmosdb" ], "rollup": [ "azure_sdk" diff --git a/config/GEM_VERSIONS b/config/GEM_VERSIONS index cdc231a3e..e9c3cdf5e 100644 --- a/config/GEM_VERSIONS +++ b/config/GEM_VERSIONS @@ -48,9 +48,9 @@ "azure_mgmt_batch": "0.18.1", "azure_mgmt_batchai": "0.17.1", "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_cognitive_services": "0.19.3", + "azure_mgmt_cognitive_services": "0.19.4", "azure_mgmt_commerce": "0.17.2", "azure_mgmt_compute": "0.22.0", "azure_mgmt_confluent": "0.17.0", @@ -58,7 +58,7 @@ "azure_mgmt_container_instance": "0.18.0", "azure_mgmt_container_registry": "0.18.5", "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_customer_insights": "0.17.3", "azure_mgmt_databox": "0.17.1", diff --git a/data/azure_key_vault/lib/2015-06-01/generated/azure_key_vault/key_vault_client.rb b/data/azure_key_vault/lib/2015-06-01/generated/azure_key_vault/key_vault_client.rb index 848bcff93..a7802c0af 100644 --- a/data/azure_key_vault/lib/2015-06-01/generated/azure_key_vault/key_vault_client.rb +++ b/data/azure_key_vault/lib/2015-06-01/generated/azure_key_vault/key_vault_client.rb @@ -183,12 +183,12 @@ module Azure::KeyVault::V2015_06_01 fail ArgumentError, 'kty is nil' if kty.nil? 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? parameters.kty = kty parameters.key_size = key_size parameters.key_ops = key_ops - parameters.keyAttributes = key_attributes + parameters.key_attributes = key_attributes parameters.tags = tags end @@ -315,11 +315,11 @@ module Azure::KeyVault::V2015_06_01 fail ArgumentError, 'api_version is nil' if api_version.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? parameters.hsm = hsm parameters.key = key - parameters.keyAttributes = key_attributes + parameters.key_attributes = key_attributes parameters.tags = tags end @@ -542,10 +542,10 @@ module Azure::KeyVault::V2015_06_01 fail ArgumentError, 'key_version is nil' if key_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? parameters.key_ops = key_ops - parameters.keyAttributes = key_attributes + parameters.key_attributes = key_attributes parameters.tags = tags end @@ -1055,9 +1055,9 @@ module Azure::KeyVault::V2015_06_01 fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.keyBundleBackup = key_bundle_backup + parameters.key_bundle_backup = key_bundle_backup end 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, 'value is nil' if value.nil? - parameters = KeyOperationsParameters.new + parameters = Azure::KeyVault::V2015_06_01::Models::KeyCreateParameters.KeyOperationsParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm 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, 'value is nil' if value.nil? - parameters = KeyOperationsParameters.new + parameters = Azure::KeyVault::V2015_06_01::Models::KeyCreateParameters.KeyOperationsParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm 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, 'value is nil' if value.nil? - parameters = KeySignParameters.new + parameters = Azure::KeyVault::V2015_06_01::Models::KeyCreateParameters.KeySignParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm parameters.value = value @@ -1572,7 +1572,7 @@ module Azure::KeyVault::V2015_06_01 fail ArgumentError, 'digest is nil' if digest.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? parameters.algorithm = algorithm 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, 'value is nil' if value.nil? - parameters = KeyOperationsParameters.new + parameters = Azure::KeyVault::V2015_06_01::Models::KeyCreateParameters.KeyOperationsParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm 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, 'value is nil' if value.nil? - parameters = KeyOperationsParameters.new + parameters = Azure::KeyVault::V2015_06_01::Models::KeyCreateParameters.KeyOperationsParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm 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, '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? parameters.value = value parameters.tags = tags parameters.content_type = content_type - parameters.secretAttributes = secret_attributes + parameters.secret_attributes = secret_attributes end request_headers = {} @@ -2176,10 +2176,10 @@ module Azure::KeyVault::V2015_06_01 fail ArgumentError, 'secret_version is nil' if secret_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? parameters.content_type = content_type - parameters.secretAttributes = secret_attributes + parameters.secret_attributes = secret_attributes parameters.tags = tags 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, '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? - parameters.CertificatePolicy = certificate_policy - parameters.CertificateAttributes = certificate_attributes + parameters.certificate_policy = certificate_policy + parameters.certificate_attributes = certificate_attributes parameters.tags = tags end @@ -3726,7 +3726,7 @@ module Azure::KeyVault::V2015_06_01 # @param base64encoded_certificate [String] Base64 encoded representation of # the certificate object to import. This certificate needs 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 # @param certificate_policy [CertificatePolicy] The management policy for the # certificate @@ -3753,7 +3753,7 @@ module Azure::KeyVault::V2015_06_01 # @param base64encoded_certificate [String] Base64 encoded representation of # the certificate object to import. This certificate needs 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 # @param certificate_policy [CertificatePolicy] The management policy for the # certificate @@ -3779,7 +3779,7 @@ module Azure::KeyVault::V2015_06_01 # @param base64encoded_certificate [String] Base64 encoded representation of # the certificate object to import. This certificate needs 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 # @param certificate_policy [CertificatePolicy] The management policy for the # certificate @@ -3799,12 +3799,12 @@ module Azure::KeyVault::V2015_06_01 fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.base64EncodedCertificate = base64encoded_certificate + parameters.base64encoded_certificate = base64encoded_certificate parameters.password = password - parameters.CertificatePolicy = certificate_policy - parameters.CertificateAttributes = certificate_attributes + parameters.certificate_policy = certificate_policy + parameters.certificate_attributes = certificate_attributes parameters.tags = tags end @@ -4071,7 +4071,7 @@ module Azure::KeyVault::V2015_06_01 # # 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. # 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 - # 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. # 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 - # 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. # 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, '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? - parameters.CertificatePolicy = certificate_policy - parameters.CertificateAttributes = certificate_attributes + parameters.certificate_policy = certificate_policy + parameters.certificate_attributes = certificate_attributes parameters.tags = tags end @@ -4800,10 +4800,10 @@ module Azure::KeyVault::V2015_06_01 fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.x509Certificates = x509certificates - parameters.CertificateAttributes = certificate_attributes + parameters.x509certificates = x509certificates + parameters.certificate_attributes = certificate_attributes parameters.tags = tags end diff --git a/data/azure_key_vault/lib/2015-06-01/generated/azure_key_vault/models/certificate_import_parameters.rb b/data/azure_key_vault/lib/2015-06-01/generated/azure_key_vault/models/certificate_import_parameters.rb index 1a0f17040..4508e4023 100644 --- a/data/azure_key_vault/lib/2015-06-01/generated/azure_key_vault/models/certificate_import_parameters.rb +++ b/data/azure_key_vault/lib/2015-06-01/generated/azure_key_vault/models/certificate_import_parameters.rb @@ -16,7 +16,7 @@ module Azure::KeyVault::V2015_06_01 # object to import. This certificate needs to contain the private key. 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 attr_accessor :password diff --git a/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb b/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb index 6fe0806a3..60de1e626 100644 --- a/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb +++ b/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb @@ -213,12 +213,12 @@ module Azure::KeyVault::V2016_10_01 fail ArgumentError, 'kty is nil' if kty.nil? 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? parameters.kty = kty parameters.key_size = key_size parameters.key_ops = key_ops - parameters.keyAttributes = key_attributes + parameters.key_attributes = key_attributes parameters.tags = tags parameters.curve = curve end @@ -361,11 +361,11 @@ module Azure::KeyVault::V2016_10_01 fail ArgumentError, 'api_version is nil' if api_version.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? parameters.hsm = hsm parameters.key = key - parameters.keyAttributes = key_attributes + parameters.key_attributes = key_attributes parameters.tags = tags end @@ -621,10 +621,10 @@ module Azure::KeyVault::V2016_10_01 fail ArgumentError, 'key_version is nil' if key_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? parameters.key_ops = key_ops - parameters.keyAttributes = key_attributes + parameters.key_attributes = key_attributes parameters.tags = tags end @@ -1260,9 +1260,9 @@ module Azure::KeyVault::V2016_10_01 fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.keyBundleBackup = key_bundle_backup + parameters.key_bundle_backup = key_bundle_backup end 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, 'value is nil' if value.nil? - parameters = KeyOperationsParameters.new + parameters = Azure::KeyVault::V2016_10_01::Models::KeyOperationsParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm 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, 'value is nil' if value.nil? - parameters = KeyOperationsParameters.new + parameters = Azure::KeyVault::V2016_10_01::Models::KeyOperationsParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm 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, 'value is nil' if value.nil? - parameters = KeySignParameters.new + parameters = Azure::KeyVault::V2016_10_01::Models::KeySignParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm parameters.value = value @@ -1873,7 +1873,7 @@ module Azure::KeyVault::V2016_10_01 fail ArgumentError, 'digest is nil' if digest.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? parameters.algorithm = algorithm 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, 'value is nil' if value.nil? - parameters = KeyOperationsParameters.new + parameters = Azure::KeyVault::V2016_10_01::Models::KeyOperationsParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm 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, 'value is nil' if value.nil? - parameters = KeyOperationsParameters.new + parameters = Azure::KeyVault::V2016_10_01::Models::KeyOperationsParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm 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, '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? parameters.value = value parameters.tags = tags parameters.content_type = content_type - parameters.secretAttributes = secret_attributes + parameters.secret_attributes = secret_attributes end request_headers = {} @@ -3010,10 +3010,10 @@ module Azure::KeyVault::V2016_10_01 fail ArgumentError, 'secret_version is nil' if secret_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? parameters.content_type = content_type - parameters.secretAttributes = secret_attributes + parameters.secret_attributes = secret_attributes parameters.tags = tags end @@ -4008,9 +4008,9 @@ module Azure::KeyVault::V2016_10_01 fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.secretBundleBackup = secret_bundle_backup + parameters.secret_bundle_backup = secret_bundle_backup end 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, '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? - parameters.CertificatePolicy = certificate_policy - parameters.CertificateAttributes = certificate_attributes + parameters.certificate_policy = certificate_policy + parameters.certificate_attributes = certificate_attributes parameters.tags = tags end @@ -5372,7 +5372,7 @@ module Azure::KeyVault::V2016_10_01 # @param base64encoded_certificate [String] Base64 encoded representation of # the certificate object to import. This certificate needs 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. # @param certificate_policy [CertificatePolicy] The management policy for the # certificate. @@ -5405,7 +5405,7 @@ module Azure::KeyVault::V2016_10_01 # @param base64encoded_certificate [String] Base64 encoded representation of # the certificate object to import. This certificate needs 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. # @param certificate_policy [CertificatePolicy] The management policy for the # certificate. @@ -5437,7 +5437,7 @@ module Azure::KeyVault::V2016_10_01 # @param base64encoded_certificate [String] Base64 encoded representation of # the certificate object to import. This certificate needs 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. # @param certificate_policy [CertificatePolicy] The management policy for the # certificate. @@ -5457,12 +5457,12 @@ module Azure::KeyVault::V2016_10_01 fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.base64EncodedCertificate = base64encoded_certificate + parameters.base64encoded_certificate = base64encoded_certificate parameters.password = password - parameters.CertificatePolicy = certificate_policy - parameters.CertificateAttributes = certificate_attributes + parameters.certificate_policy = certificate_policy + parameters.certificate_attributes = certificate_attributes parameters.tags = tags end @@ -5955,10 +5955,10 @@ module Azure::KeyVault::V2016_10_01 fail ArgumentError, 'certificate_version is nil' if certificate_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? - parameters.CertificatePolicy = certificate_policy - parameters.CertificateAttributes = certificate_attributes + parameters.certificate_policy = certificate_policy + parameters.certificate_attributes = certificate_attributes parameters.tags = tags end @@ -6551,10 +6551,10 @@ module Azure::KeyVault::V2016_10_01 fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.x509Certificates = x509certificates - parameters.CertificateAttributes = certificate_attributes + parameters.x509certificates = x509certificates + parameters.certificate_attributes = certificate_attributes parameters.tags = tags 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, '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? parameters.resource_id = resource_id parameters.active_key_name = active_key_name parameters.auto_regenerate_key = auto_regenerate_key parameters.regeneration_period = regeneration_period - parameters.StorageAccountAttributes = storage_account_attributes + parameters.storage_account_attributes = storage_account_attributes parameters.tags = tags 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, '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? parameters.active_key_name = active_key_name parameters.auto_regenerate_key = auto_regenerate_key parameters.regeneration_period = regeneration_period - parameters.StorageAccountAttributes = storage_account_attributes + parameters.storage_account_attributes = storage_account_attributes parameters.tags = tags end @@ -7719,7 +7719,7 @@ module Azure::KeyVault::V2016_10_01 fail ArgumentError, 'api_version is nil' if api_version.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? parameters.key_name = key_name end @@ -8176,10 +8176,10 @@ module Azure::KeyVault::V2016_10_01 fail ArgumentError, 'api_version is nil' if api_version.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? parameters.parameters = parameters - parameters.SasDefinitionAttributes = sas_definition_attributes + parameters.sas_definition_attributes = sas_definition_attributes parameters.tags = tags 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, '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? parameters.parameters = parameters - parameters.SasDefinitionAttributes = sas_definition_attributes + parameters.sas_definition_attributes = sas_definition_attributes parameters.tags = tags end diff --git a/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/models/certificate_import_parameters.rb b/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/models/certificate_import_parameters.rb index 49b46f8c4..debc4faa0 100644 --- a/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/models/certificate_import_parameters.rb +++ b/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/models/certificate_import_parameters.rb @@ -16,7 +16,7 @@ module Azure::KeyVault::V2016_10_01 # object to import. This certificate needs to contain the private key. 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. attr_accessor :password diff --git a/data/azure_key_vault/lib/7.0-preview/generated/azure_key_vault/key_vault_client.rb b/data/azure_key_vault/lib/7.0-preview/generated/azure_key_vault/key_vault_client.rb index 53ea216ca..e78a29464 100644 --- a/data/azure_key_vault/lib/7.0-preview/generated/azure_key_vault/key_vault_client.rb +++ b/data/azure_key_vault/lib/7.0-preview/generated/azure_key_vault/key_vault_client.rb @@ -213,12 +213,12 @@ module Azure::KeyVault::V7_0_preview fail ArgumentError, 'kty is nil' if kty.nil? 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? parameters.kty = kty parameters.key_size = key_size parameters.key_ops = key_ops - parameters.keyAttributes = key_attributes + parameters.key_attributes = key_attributes parameters.tags = tags parameters.curve = curve end @@ -361,11 +361,11 @@ module Azure::KeyVault::V7_0_preview fail ArgumentError, 'api_version is nil' if api_version.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? parameters.hsm = hsm parameters.key = key - parameters.keyAttributes = key_attributes + parameters.key_attributes = key_attributes parameters.tags = tags end @@ -621,10 +621,10 @@ module Azure::KeyVault::V7_0_preview fail ArgumentError, 'key_version is nil' if key_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? parameters.key_ops = key_ops - parameters.keyAttributes = key_attributes + parameters.key_attributes = key_attributes parameters.tags = tags end @@ -1260,9 +1260,9 @@ module Azure::KeyVault::V7_0_preview fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.keyBundleBackup = key_bundle_backup + parameters.key_bundle_backup = key_bundle_backup end 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, 'value is nil' if value.nil? - parameters = KeyOperationsParameters.new + parameters = Azure::KeyVault::V7_0_preview::Models::KeyOperationsParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm 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, 'value is nil' if value.nil? - parameters = KeyOperationsParameters.new + parameters = Azure::KeyVault::V7_0_preview::Models::KeyOperationsParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm 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, 'value is nil' if value.nil? - parameters = KeySignParameters.new + parameters = Azure::KeyVault::V7_0_preview::Models::KeySignParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm parameters.value = value @@ -1873,7 +1873,7 @@ module Azure::KeyVault::V7_0_preview fail ArgumentError, 'digest is nil' if digest.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? parameters.algorithm = algorithm 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, 'value is nil' if value.nil? - parameters = KeyOperationsParameters.new + parameters = Azure::KeyVault::V7_0_preview::Models::KeyOperationsParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm 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, 'value is nil' if value.nil? - parameters = KeyOperationsParameters.new + parameters = Azure::KeyVault::V7_0_preview::Models::KeyOperationsParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm 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, '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? parameters.value = value parameters.tags = tags parameters.content_type = content_type - parameters.secretAttributes = secret_attributes + parameters.secret_attributes = secret_attributes end request_headers = {} @@ -3010,10 +3010,10 @@ module Azure::KeyVault::V7_0_preview fail ArgumentError, 'secret_version is nil' if secret_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? parameters.content_type = content_type - parameters.secretAttributes = secret_attributes + parameters.secret_attributes = secret_attributes parameters.tags = tags end @@ -4008,9 +4008,9 @@ module Azure::KeyVault::V7_0_preview fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.secretBundleBackup = secret_bundle_backup + parameters.secret_bundle_backup = secret_bundle_backup end 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, '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? - parameters.CertificatePolicy = certificate_policy - parameters.CertificateAttributes = certificate_attributes + parameters.certificate_policy = certificate_policy + parameters.certificate_attributes = certificate_attributes parameters.tags = tags end @@ -5378,7 +5378,7 @@ module Azure::KeyVault::V7_0_preview # @param base64encoded_certificate [String] Base64 encoded representation of # the certificate object to import. This certificate needs 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. # @param certificate_policy [CertificatePolicy] The management policy for the # certificate. @@ -5411,7 +5411,7 @@ module Azure::KeyVault::V7_0_preview # @param base64encoded_certificate [String] Base64 encoded representation of # the certificate object to import. This certificate needs 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. # @param certificate_policy [CertificatePolicy] The management policy for the # certificate. @@ -5443,7 +5443,7 @@ module Azure::KeyVault::V7_0_preview # @param base64encoded_certificate [String] Base64 encoded representation of # the certificate object to import. This certificate needs 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. # @param certificate_policy [CertificatePolicy] The management policy for the # certificate. @@ -5463,12 +5463,12 @@ module Azure::KeyVault::V7_0_preview fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.base64EncodedCertificate = base64encoded_certificate + parameters.base64encoded_certificate = base64encoded_certificate parameters.password = password - parameters.CertificatePolicy = certificate_policy - parameters.CertificateAttributes = certificate_attributes + parameters.certificate_policy = certificate_policy + parameters.certificate_attributes = certificate_attributes parameters.tags = tags end @@ -5961,10 +5961,10 @@ module Azure::KeyVault::V7_0_preview fail ArgumentError, 'certificate_version is nil' if certificate_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? - parameters.CertificatePolicy = certificate_policy - parameters.CertificateAttributes = certificate_attributes + parameters.certificate_policy = certificate_policy + parameters.certificate_attributes = certificate_attributes parameters.tags = tags end @@ -6557,10 +6557,10 @@ module Azure::KeyVault::V7_0_preview fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.x509Certificates = x509certificates - parameters.CertificateAttributes = certificate_attributes + parameters.x509certificates = x509certificates + parameters.certificate_attributes = certificate_attributes parameters.tags = tags end @@ -6788,9 +6788,9 @@ module Azure::KeyVault::V7_0_preview fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.certificateBundleBackup = certificate_bundle_backup + parameters.certificate_bundle_backup = certificate_bundle_backup end request_headers = {} @@ -8008,9 +8008,9 @@ module Azure::KeyVault::V7_0_preview fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.storageBundleBackup = storage_bundle_backup + parameters.storage_bundle_backup = storage_bundle_backup end 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, '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? parameters.resource_id = resource_id parameters.active_key_name = active_key_name parameters.auto_regenerate_key = auto_regenerate_key parameters.regeneration_period = regeneration_period - parameters.StorageAccountAttributes = storage_account_attributes + parameters.storage_account_attributes = storage_account_attributes parameters.tags = tags 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, '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? parameters.active_key_name = active_key_name parameters.auto_regenerate_key = auto_regenerate_key parameters.regeneration_period = regeneration_period - parameters.StorageAccountAttributes = storage_account_attributes + parameters.storage_account_attributes = storage_account_attributes parameters.tags = tags end @@ -8618,7 +8618,7 @@ module Azure::KeyVault::V7_0_preview fail ArgumentError, 'api_version is nil' if api_version.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? parameters.key_name = key_name end @@ -9440,12 +9440,12 @@ module Azure::KeyVault::V7_0_preview fail ArgumentError, 'sas_type is nil' if sas_type.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? parameters.template_uri = template_uri parameters.sas_type = sas_type parameters.validity_period = validity_period - parameters.SasDefinitionAttributes = sas_definition_attributes + parameters.sas_definition_attributes = sas_definition_attributes parameters.tags = tags 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, '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? parameters.template_uri = template_uri parameters.sas_type = sas_type parameters.validity_period = validity_period - parameters.SasDefinitionAttributes = sas_definition_attributes + parameters.sas_definition_attributes = sas_definition_attributes parameters.tags = tags end diff --git a/data/azure_key_vault/lib/7.0-preview/generated/azure_key_vault/models/certificate_import_parameters.rb b/data/azure_key_vault/lib/7.0-preview/generated/azure_key_vault/models/certificate_import_parameters.rb index ab358c12f..044fdb534 100644 --- a/data/azure_key_vault/lib/7.0-preview/generated/azure_key_vault/models/certificate_import_parameters.rb +++ b/data/azure_key_vault/lib/7.0-preview/generated/azure_key_vault/models/certificate_import_parameters.rb @@ -16,7 +16,7 @@ module Azure::KeyVault::V7_0_preview # object to import. This certificate needs to contain the private key. 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. attr_accessor :password diff --git a/data/azure_key_vault/lib/7.0/generated/azure_key_vault/key_vault_client.rb b/data/azure_key_vault/lib/7.0/generated/azure_key_vault/key_vault_client.rb index e066640bf..eb81178a2 100644 --- a/data/azure_key_vault/lib/7.0/generated/azure_key_vault/key_vault_client.rb +++ b/data/azure_key_vault/lib/7.0/generated/azure_key_vault/key_vault_client.rb @@ -218,7 +218,7 @@ module Azure::KeyVault::V7_0 parameters.kty = kty parameters.key_size = key_size parameters.key_ops = key_ops - parameters.keyAttributes = key_attributes + parameters.key_attributes = key_attributes parameters.tags = tags parameters.curve = curve end @@ -361,11 +361,11 @@ module Azure::KeyVault::V7_0 fail ArgumentError, 'api_version is nil' if api_version.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? parameters.hsm = hsm parameters.key = key - parameters.keyAttributes = key_attributes + parameters.key_attributes = key_attributes parameters.tags = tags end @@ -621,10 +621,10 @@ module Azure::KeyVault::V7_0 fail ArgumentError, 'key_version is nil' if key_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? parameters.key_ops = key_ops - parameters.keyAttributes = key_attributes + parameters.key_attributes = key_attributes parameters.tags = tags end @@ -1263,9 +1263,9 @@ module Azure::KeyVault::V7_0 fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.keyBundleBackup = key_bundle_backup + parameters.key_bundle_backup = key_bundle_backup end 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, 'value is nil' if value.nil? - parameters = KeyOperationsParameters.new + parameters = Azure::KeyVault::V7_0::Models::KeyOperationsParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm 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, 'value is nil' if value.nil? - parameters = KeyOperationsParameters.new + parameters = Azure::KeyVault::V7_0::Models::KeyOperationsParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm 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, 'value is nil' if value.nil? - parameters = KeySignParameters.new + parameters = Azure::KeyVault::V7_0::Models::KeySignParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm parameters.value = value @@ -1876,7 +1876,7 @@ module Azure::KeyVault::V7_0 fail ArgumentError, 'digest is nil' if digest.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? parameters.algorithm = algorithm 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, 'value is nil' if value.nil? - parameters = KeyOperationsParameters.new + parameters = Azure::KeyVault::V7_0::Models::KeyOperationsParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm 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, 'value is nil' if value.nil? - parameters = KeyOperationsParameters.new + parameters = Azure::KeyVault::V7_0::Models::KeyOperationsParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm parameters.value = value @@ -2759,12 +2759,12 @@ module Azure::KeyVault::V7_0 fail ArgumentError, 'api_version is nil' if api_version.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? parameters.value = value parameters.tags = tags parameters.content_type = content_type - parameters.secretAttributes = secret_attributes + parameters.secret_attributes = secret_attributes end request_headers = {} @@ -3013,10 +3013,10 @@ module Azure::KeyVault::V7_0 fail ArgumentError, 'secret_version is nil' if secret_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? parameters.content_type = content_type - parameters.secretAttributes = secret_attributes + parameters.secret_attributes = secret_attributes parameters.tags = tags end @@ -4014,9 +4014,9 @@ module Azure::KeyVault::V7_0 fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.secretBundleBackup = secret_bundle_backup + parameters.secret_bundle_backup = secret_bundle_backup end 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, '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? - parameters.CertificatePolicy = certificate_policy - parameters.CertificateAttributes = certificate_attributes + parameters.certificate_policy = certificate_policy + parameters.certificate_attributes = certificate_attributes parameters.tags = tags end @@ -5383,7 +5383,7 @@ module Azure::KeyVault::V7_0 # @param certificate_name [String] The name of the certificate. # @param base64encoded_certificate [String] A PEM file or a base64-encoded PFX # 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. # @param certificate_policy [CertificatePolicy] The management policy for the # certificate. @@ -5415,7 +5415,7 @@ module Azure::KeyVault::V7_0 # @param certificate_name [String] The name of the certificate. # @param base64encoded_certificate [String] A PEM file or a base64-encoded PFX # 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. # @param certificate_policy [CertificatePolicy] The management policy for the # certificate. @@ -5446,7 +5446,7 @@ module Azure::KeyVault::V7_0 # @param certificate_name [String] The name of the certificate. # @param base64encoded_certificate [String] A PEM file or a base64-encoded PFX # 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. # @param certificate_policy [CertificatePolicy] The management policy for the # certificate. @@ -5466,12 +5466,12 @@ module Azure::KeyVault::V7_0 fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.base64EncodedCertificate = base64encoded_certificate + parameters.base64encoded_certificate = base64encoded_certificate parameters.password = password - parameters.CertificatePolicy = certificate_policy - parameters.CertificateAttributes = certificate_attributes + parameters.certificate_policy = certificate_policy + parameters.certificate_attributes = certificate_attributes parameters.tags = tags end @@ -5964,10 +5964,10 @@ module Azure::KeyVault::V7_0 fail ArgumentError, 'certificate_version is nil' if certificate_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? - parameters.CertificatePolicy = certificate_policy - parameters.CertificateAttributes = certificate_attributes + parameters.certificate_policy = certificate_policy + parameters.certificate_attributes = certificate_attributes parameters.tags = tags end @@ -6566,10 +6566,10 @@ module Azure::KeyVault::V7_0 fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.x509Certificates = x509certificates - parameters.CertificateAttributes = certificate_attributes + parameters.x509certificates = x509certificates + parameters.certificate_attributes = certificate_attributes parameters.tags = tags end @@ -6797,9 +6797,9 @@ module Azure::KeyVault::V7_0 fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.certificateBundleBackup = certificate_bundle_backup + parameters.certificate_bundle_backup = certificate_bundle_backup end request_headers = {} @@ -8017,9 +8017,9 @@ module Azure::KeyVault::V7_0 fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.storageBundleBackup = storage_bundle_backup + parameters.storage_bundle_backup = storage_bundle_backup end 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, '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? parameters.resource_id = resource_id parameters.active_key_name = active_key_name parameters.auto_regenerate_key = auto_regenerate_key parameters.regeneration_period = regeneration_period - parameters.StorageAccountAttributes = storage_account_attributes + parameters.storage_account_attributes = storage_account_attributes parameters.tags = tags 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, '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? parameters.active_key_name = active_key_name parameters.auto_regenerate_key = auto_regenerate_key parameters.regeneration_period = regeneration_period - parameters.StorageAccountAttributes = storage_account_attributes + parameters.storage_account_attributes = storage_account_attributes parameters.tags = tags end @@ -8627,7 +8627,7 @@ module Azure::KeyVault::V7_0 fail ArgumentError, 'api_version is nil' if api_version.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? parameters.key_name = key_name end @@ -9449,12 +9449,12 @@ module Azure::KeyVault::V7_0 fail ArgumentError, 'sas_type is nil' if sas_type.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? parameters.template_uri = template_uri parameters.sas_type = sas_type parameters.validity_period = validity_period - parameters.SasDefinitionAttributes = sas_definition_attributes + parameters.sas_definition_attributes = sas_definition_attributes parameters.tags = tags 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, '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? parameters.template_uri = template_uri parameters.sas_type = sas_type parameters.validity_period = validity_period - parameters.SasDefinitionAttributes = sas_definition_attributes + parameters.sas_definition_attributes = sas_definition_attributes parameters.tags = tags end diff --git a/data/azure_key_vault/lib/7.0/generated/azure_key_vault/models/certificate_import_parameters.rb b/data/azure_key_vault/lib/7.0/generated/azure_key_vault/models/certificate_import_parameters.rb index 026ce4fe9..2495bd592 100644 --- a/data/azure_key_vault/lib/7.0/generated/azure_key_vault/models/certificate_import_parameters.rb +++ b/data/azure_key_vault/lib/7.0/generated/azure_key_vault/models/certificate_import_parameters.rb @@ -16,7 +16,7 @@ module Azure::KeyVault::V7_0 # need to contain the private key. 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. attr_accessor :password diff --git a/data/azure_key_vault/lib/7.1-preview/generated/azure_key_vault/key_vault_client.rb b/data/azure_key_vault/lib/7.1-preview/generated/azure_key_vault/key_vault_client.rb index 3dfd00e5c..76a8dd75a 100644 --- a/data/azure_key_vault/lib/7.1-preview/generated/azure_key_vault/key_vault_client.rb +++ b/data/azure_key_vault/lib/7.1-preview/generated/azure_key_vault/key_vault_client.rb @@ -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, '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? - parameters.CertificatePolicy = certificate_policy - parameters.CertificateAttributes = certificate_attributes + parameters.certificate_policy = certificate_policy + parameters.certificate_attributes = certificate_attributes parameters.tags = tags end @@ -1419,7 +1419,7 @@ module Azure::KeyVault::V7_1_preview # @param base64encoded_certificate [String] Base64 encoded representation of # the certificate object to import. This certificate needs 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. # @param certificate_policy [CertificatePolicy] The management policy for the # certificate. @@ -1452,7 +1452,7 @@ module Azure::KeyVault::V7_1_preview # @param base64encoded_certificate [String] Base64 encoded representation of # the certificate object to import. This certificate needs 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. # @param certificate_policy [CertificatePolicy] The management policy for the # certificate. @@ -1484,7 +1484,7 @@ module Azure::KeyVault::V7_1_preview # @param base64encoded_certificate [String] Base64 encoded representation of # the certificate object to import. This certificate needs 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. # @param certificate_policy [CertificatePolicy] The management policy for the # certificate. @@ -1504,12 +1504,12 @@ module Azure::KeyVault::V7_1_preview fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.base64EncodedCertificate = base64encoded_certificate + parameters.base64encoded_certificate = base64encoded_certificate parameters.password = password - parameters.CertificatePolicy = certificate_policy - parameters.CertificateAttributes = certificate_attributes + parameters.certificate_policy = certificate_policy + parameters.certificate_attributes = certificate_attributes parameters.tags = tags end @@ -2002,10 +2002,10 @@ module Azure::KeyVault::V7_1_preview fail ArgumentError, 'certificate_version is nil' if certificate_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? - parameters.CertificatePolicy = certificate_policy - parameters.CertificateAttributes = certificate_attributes + parameters.certificate_policy = certificate_policy + parameters.certificate_attributes = certificate_attributes parameters.tags = tags end @@ -2604,10 +2604,10 @@ module Azure::KeyVault::V7_1_preview fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.x509Certificates = x509certificates - parameters.CertificateAttributes = certificate_attributes + parameters.x509certificates = x509certificates + parameters.certificate_attributes = certificate_attributes parameters.tags = tags end @@ -2835,9 +2835,9 @@ module Azure::KeyVault::V7_1_preview fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.certificateBundleBackup = certificate_bundle_backup + parameters.certificate_bundle_backup = certificate_bundle_backup end request_headers = {} @@ -3457,12 +3457,12 @@ module Azure::KeyVault::V7_1_preview fail ArgumentError, 'kty is nil' if kty.nil? 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? parameters.kty = kty parameters.key_size = key_size parameters.key_ops = key_ops - parameters.keyAttributes = key_attributes + parameters.key_attributes = key_attributes parameters.tags = tags parameters.curve = curve end @@ -3605,11 +3605,11 @@ module Azure::KeyVault::V7_1_preview fail ArgumentError, 'api_version is nil' if api_version.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? parameters.hsm = hsm parameters.key = key - parameters.keyAttributes = key_attributes + parameters.key_attributes = key_attributes parameters.tags = tags end @@ -3865,10 +3865,10 @@ module Azure::KeyVault::V7_1_preview fail ArgumentError, 'key_version is nil' if key_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? parameters.key_ops = key_ops - parameters.keyAttributes = key_attributes + parameters.key_attributes = key_attributes parameters.tags = tags end @@ -4507,9 +4507,9 @@ module Azure::KeyVault::V7_1_preview fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.keyBundleBackup = key_bundle_backup + parameters.key_bundle_backup = key_bundle_backup end 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, 'value is nil' if value.nil? - parameters = KeyOperationsParameters.new + parameters = Azure::KeyVault::V7_1_preview::Models::KeyOperationsParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm 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, 'value is nil' if value.nil? - parameters = KeyOperationsParameters.new + parameters = Azure::KeyVault::V7_1_preview::Models::KeyOperationsParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm 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, 'value is nil' if value.nil? - parameters = KeySignParameters.new + parameters = Azure::KeyVault::V7_1_preview::Models::KeySignParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm parameters.value = value @@ -5120,7 +5120,7 @@ module Azure::KeyVault::V7_1_preview fail ArgumentError, 'digest is nil' if digest.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? parameters.algorithm = algorithm 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, 'value is nil' if value.nil? - parameters = KeyOperationsParameters.new + parameters = Azure::KeyVault::V7_1_preview::Models::KeyOperationsParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm 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, 'value is nil' if value.nil? - parameters = KeyOperationsParameters.new + parameters = Azure::KeyVault::V7_1_preview::Models::KeyOperationsParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm 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, '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? parameters.value = value parameters.tags = tags parameters.content_type = content_type - parameters.secretAttributes = secret_attributes + parameters.secret_attributes = secret_attributes end request_headers = {} @@ -6257,10 +6257,10 @@ module Azure::KeyVault::V7_1_preview fail ArgumentError, 'secret_version is nil' if secret_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? parameters.content_type = content_type - parameters.secretAttributes = secret_attributes + parameters.secret_attributes = secret_attributes parameters.tags = tags end @@ -7258,9 +7258,9 @@ module Azure::KeyVault::V7_1_preview fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.secretBundleBackup = secret_bundle_backup + parameters.secret_bundle_backup = secret_bundle_backup end request_headers = {} @@ -8020,9 +8020,9 @@ module Azure::KeyVault::V7_1_preview fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.storageBundleBackup = storage_bundle_backup + parameters.storage_bundle_backup = storage_bundle_backup end 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, '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? parameters.resource_id = resource_id parameters.active_key_name = active_key_name parameters.auto_regenerate_key = auto_regenerate_key parameters.regeneration_period = regeneration_period - parameters.StorageAccountAttributes = storage_account_attributes + parameters.storage_account_attributes = storage_account_attributes parameters.tags = tags 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, '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? parameters.active_key_name = active_key_name parameters.auto_regenerate_key = auto_regenerate_key parameters.regeneration_period = regeneration_period - parameters.StorageAccountAttributes = storage_account_attributes + parameters.storage_account_attributes = storage_account_attributes parameters.tags = tags end @@ -8630,7 +8630,7 @@ module Azure::KeyVault::V7_1_preview fail ArgumentError, 'api_version is nil' if api_version.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? parameters.key_name = key_name end @@ -9452,12 +9452,12 @@ module Azure::KeyVault::V7_1_preview fail ArgumentError, 'sas_type is nil' if sas_type.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? parameters.template_uri = template_uri parameters.sas_type = sas_type parameters.validity_period = validity_period - parameters.SasDefinitionAttributes = sas_definition_attributes + parameters.sas_definition_attributes = sas_definition_attributes parameters.tags = tags 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, '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? parameters.template_uri = template_uri parameters.sas_type = sas_type parameters.validity_period = validity_period - parameters.SasDefinitionAttributes = sas_definition_attributes + parameters.sas_definition_attributes = sas_definition_attributes parameters.tags = tags end diff --git a/data/azure_key_vault/lib/7.1-preview/generated/azure_key_vault/models/certificate_import_parameters.rb b/data/azure_key_vault/lib/7.1-preview/generated/azure_key_vault/models/certificate_import_parameters.rb index fb4df731b..7608ab6cf 100644 --- a/data/azure_key_vault/lib/7.1-preview/generated/azure_key_vault/models/certificate_import_parameters.rb +++ b/data/azure_key_vault/lib/7.1-preview/generated/azure_key_vault/models/certificate_import_parameters.rb @@ -16,7 +16,7 @@ module Azure::KeyVault::V7_1_preview # object to import. This certificate needs to contain the private key. 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. attr_accessor :password diff --git a/data/azure_key_vault/lib/7.1/generated/azure_key_vault/key_vault_client.rb b/data/azure_key_vault/lib/7.1/generated/azure_key_vault/key_vault_client.rb index 27ac16007..8921998e9 100644 --- a/data/azure_key_vault/lib/7.1/generated/azure_key_vault/key_vault_client.rb +++ b/data/azure_key_vault/lib/7.1/generated/azure_key_vault/key_vault_client.rb @@ -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, '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? - parameters.CertificatePolicy = certificate_policy - parameters.CertificateAttributes = certificate_attributes + parameters.certificate_policy = certificate_policy + parameters.certificate_attributes = certificate_attributes parameters.tags = tags end @@ -1418,7 +1418,7 @@ module Azure::KeyVault::V7_1 # @param certificate_name [String] The name of the certificate. # @param base64encoded_certificate [String] A PEM file or a base64-encoded PFX # 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. # @param certificate_policy [CertificatePolicy] The management policy for the # certificate. @@ -1450,7 +1450,7 @@ module Azure::KeyVault::V7_1 # @param certificate_name [String] The name of the certificate. # @param base64encoded_certificate [String] A PEM file or a base64-encoded PFX # 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. # @param certificate_policy [CertificatePolicy] The management policy for the # certificate. @@ -1481,7 +1481,7 @@ module Azure::KeyVault::V7_1 # @param certificate_name [String] The name of the certificate. # @param base64encoded_certificate [String] A PEM file or a base64-encoded PFX # 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. # @param certificate_policy [CertificatePolicy] The management policy for the # certificate. @@ -1501,12 +1501,12 @@ module Azure::KeyVault::V7_1 fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.base64EncodedCertificate = base64encoded_certificate + parameters.base64encoded_certificate = base64encoded_certificate parameters.password = password - parameters.CertificatePolicy = certificate_policy - parameters.CertificateAttributes = certificate_attributes + parameters.certificate_policy = certificate_policy + parameters.certificate_attributes = certificate_attributes parameters.tags = tags end @@ -1999,10 +1999,10 @@ module Azure::KeyVault::V7_1 fail ArgumentError, 'certificate_version is nil' if certificate_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? - parameters.CertificatePolicy = certificate_policy - parameters.CertificateAttributes = certificate_attributes + parameters.certificate_policy = certificate_policy + parameters.certificate_attributes = certificate_attributes parameters.tags = tags end @@ -2601,10 +2601,10 @@ module Azure::KeyVault::V7_1 fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.x509Certificates = x509certificates - parameters.CertificateAttributes = certificate_attributes + parameters.x509certificates = x509certificates + parameters.certificate_attributes = certificate_attributes parameters.tags = tags end @@ -2832,9 +2832,9 @@ module Azure::KeyVault::V7_1 fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.certificateBundleBackup = certificate_bundle_backup + parameters.certificate_bundle_backup = certificate_bundle_backup end request_headers = {} @@ -3454,12 +3454,12 @@ module Azure::KeyVault::V7_1 fail ArgumentError, 'kty is nil' if kty.nil? 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? parameters.kty = kty parameters.key_size = key_size parameters.key_ops = key_ops - parameters.keyAttributes = key_attributes + parameters.key_attributes = key_attributes parameters.tags = tags parameters.curve = curve end @@ -3602,11 +3602,11 @@ module Azure::KeyVault::V7_1 fail ArgumentError, 'api_version is nil' if api_version.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? parameters.hsm = hsm parameters.key = key - parameters.keyAttributes = key_attributes + parameters.key_attributes = key_attributes parameters.tags = tags end @@ -3862,10 +3862,10 @@ module Azure::KeyVault::V7_1 fail ArgumentError, 'key_version is nil' if key_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? parameters.key_ops = key_ops - parameters.keyAttributes = key_attributes + parameters.key_attributes = key_attributes parameters.tags = tags end @@ -4504,9 +4504,9 @@ module Azure::KeyVault::V7_1 fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.keyBundleBackup = key_bundle_backup + parameters.key_bundle_backup = key_bundle_backup end 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, 'value is nil' if value.nil? - parameters = KeyOperationsParameters.new + parameters = Azure::KeyVault::V7_1::Models::KeyOperationsParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm 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, 'value is nil' if value.nil? - parameters = KeyOperationsParameters.new + parameters = Azure::KeyVault::V7_1::Models::KeyOperationsParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm 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, 'value is nil' if value.nil? - parameters = KeySignParameters.new + parameters = Azure::KeyVault::V7_1::Models::KeySignParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm parameters.value = value @@ -5117,7 +5117,7 @@ module Azure::KeyVault::V7_1 fail ArgumentError, 'digest is nil' if digest.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? parameters.algorithm = algorithm 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, 'value is nil' if value.nil? - parameters = KeyOperationsParameters.new + parameters = Azure::KeyVault::V7_1::Models::KeyOperationsParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm 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, 'value is nil' if value.nil? - parameters = KeyOperationsParameters.new + parameters = Azure::KeyVault::V7_1::Models::KeyOperationsParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm parameters.value = value @@ -6000,12 +6000,12 @@ module Azure::KeyVault::V7_1 fail ArgumentError, 'api_version is nil' if api_version.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? parameters.value = value parameters.tags = tags parameters.content_type = content_type - parameters.secretAttributes = secret_attributes + parameters.secret_attributes = secret_attributes end request_headers = {} @@ -6254,10 +6254,10 @@ module Azure::KeyVault::V7_1 fail ArgumentError, 'secret_version is nil' if secret_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? parameters.content_type = content_type - parameters.secretAttributes = secret_attributes + parameters.secret_attributes = secret_attributes parameters.tags = tags end @@ -7255,9 +7255,9 @@ module Azure::KeyVault::V7_1 fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.secretBundleBackup = secret_bundle_backup + parameters.secret_bundle_backup = secret_bundle_backup end request_headers = {} @@ -8017,9 +8017,9 @@ module Azure::KeyVault::V7_1 fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.storageBundleBackup = storage_bundle_backup + parameters.storage_bundle_backup = storage_bundle_backup end 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, '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? parameters.resource_id = resource_id parameters.active_key_name = active_key_name parameters.auto_regenerate_key = auto_regenerate_key parameters.regeneration_period = regeneration_period - parameters.StorageAccountAttributes = storage_account_attributes + parameters.storage_account_attributes = storage_account_attributes parameters.tags = tags 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, '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? parameters.active_key_name = active_key_name parameters.auto_regenerate_key = auto_regenerate_key parameters.regeneration_period = regeneration_period - parameters.StorageAccountAttributes = storage_account_attributes + parameters.storage_account_attributes = storage_account_attributes parameters.tags = tags end @@ -8627,7 +8627,7 @@ module Azure::KeyVault::V7_1 fail ArgumentError, 'api_version is nil' if api_version.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? parameters.key_name = key_name end @@ -9449,12 +9449,12 @@ module Azure::KeyVault::V7_1 fail ArgumentError, 'sas_type is nil' if sas_type.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? parameters.template_uri = template_uri parameters.sas_type = sas_type parameters.validity_period = validity_period - parameters.SasDefinitionAttributes = sas_definition_attributes + parameters.sas_definition_attributes = sas_definition_attributes parameters.tags = tags 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, '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? parameters.template_uri = template_uri parameters.sas_type = sas_type parameters.validity_period = validity_period - parameters.SasDefinitionAttributes = sas_definition_attributes + parameters.sas_definition_attributes = sas_definition_attributes parameters.tags = tags end diff --git a/data/azure_key_vault/lib/7.1/generated/azure_key_vault/models/certificate_import_parameters.rb b/data/azure_key_vault/lib/7.1/generated/azure_key_vault/models/certificate_import_parameters.rb index 716696ce0..9167183d4 100644 --- a/data/azure_key_vault/lib/7.1/generated/azure_key_vault/models/certificate_import_parameters.rb +++ b/data/azure_key_vault/lib/7.1/generated/azure_key_vault/models/certificate_import_parameters.rb @@ -16,7 +16,7 @@ module Azure::KeyVault::V7_1 # need to contain the private key. 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. attr_accessor :password diff --git a/data/azure_key_vault/lib/7.2-preview/generated/azure_key_vault/key_vault_client.rb b/data/azure_key_vault/lib/7.2-preview/generated/azure_key_vault/key_vault_client.rb index e485f0eb1..5e2cb4170 100644 --- a/data/azure_key_vault/lib/7.2-preview/generated/azure_key_vault/key_vault_client.rb +++ b/data/azure_key_vault/lib/7.2-preview/generated/azure_key_vault/key_vault_client.rb @@ -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, '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? - parameters.CertificatePolicy = certificate_policy - parameters.CertificateAttributes = certificate_attributes + parameters.certificate_policy = certificate_policy + parameters.certificate_attributes = certificate_attributes parameters.tags = tags end @@ -1431,7 +1431,7 @@ module Azure::KeyVault::V7_2_preview # @param base64encoded_certificate [String] Base64 encoded representation of # the certificate object to import. This certificate needs 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. # @param certificate_policy [CertificatePolicy] The management policy for the # certificate. @@ -1464,7 +1464,7 @@ module Azure::KeyVault::V7_2_preview # @param base64encoded_certificate [String] Base64 encoded representation of # the certificate object to import. This certificate needs 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. # @param certificate_policy [CertificatePolicy] The management policy for the # certificate. @@ -1496,7 +1496,7 @@ module Azure::KeyVault::V7_2_preview # @param base64encoded_certificate [String] Base64 encoded representation of # the certificate object to import. This certificate needs 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. # @param certificate_policy [CertificatePolicy] The management policy for the # certificate. @@ -1516,12 +1516,12 @@ module Azure::KeyVault::V7_2_preview fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.base64EncodedCertificate = base64encoded_certificate + parameters.base64encoded_certificate = base64encoded_certificate parameters.password = password - parameters.CertificatePolicy = certificate_policy - parameters.CertificateAttributes = certificate_attributes + parameters.certificate_policy = certificate_policy + parameters.certificate_attributes = certificate_attributes parameters.tags = tags end @@ -2014,10 +2014,10 @@ module Azure::KeyVault::V7_2_preview fail ArgumentError, 'certificate_version is nil' if certificate_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? - parameters.CertificatePolicy = certificate_policy - parameters.CertificateAttributes = certificate_attributes + parameters.certificate_policy = certificate_policy + parameters.certificate_attributes = certificate_attributes parameters.tags = tags end @@ -2616,10 +2616,10 @@ module Azure::KeyVault::V7_2_preview fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.x509Certificates = x509certificates - parameters.CertificateAttributes = certificate_attributes + parameters.x509certificates = x509certificates + parameters.certificate_attributes = certificate_attributes parameters.tags = tags end @@ -2847,9 +2847,9 @@ module Azure::KeyVault::V7_2_preview fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.certificateBundleBackup = certificate_bundle_backup + parameters.certificate_bundle_backup = certificate_bundle_backup end request_headers = {} @@ -3472,13 +3472,13 @@ module Azure::KeyVault::V7_2_preview fail ArgumentError, 'kty is nil' if kty.nil? 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? parameters.kty = kty parameters.key_size = key_size parameters.public_exponent = public_exponent parameters.key_ops = key_ops - parameters.keyAttributes = key_attributes + parameters.key_attributes = key_attributes parameters.tags = tags parameters.curve = curve end @@ -3621,11 +3621,11 @@ module Azure::KeyVault::V7_2_preview fail ArgumentError, 'api_version is nil' if api_version.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? parameters.hsm = hsm parameters.key = key - parameters.keyAttributes = key_attributes + parameters.key_attributes = key_attributes parameters.tags = tags end @@ -3881,10 +3881,10 @@ module Azure::KeyVault::V7_2_preview fail ArgumentError, 'key_version is nil' if key_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? parameters.key_ops = key_ops - parameters.keyAttributes = key_attributes + parameters.key_attributes = key_attributes parameters.tags = tags end @@ -4523,9 +4523,9 @@ module Azure::KeyVault::V7_2_preview fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.keyBundleBackup = key_bundle_backup + parameters.key_bundle_backup = key_bundle_backup end 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, '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? parameters.algorithm = algorithm 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, '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? parameters.algorithm = algorithm 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, 'value is nil' if value.nil? - parameters = KeySignParameters.new + parameters = Azure::KeyVault::V7_2_preview::Models::KeySignParameters.new unless algorithm.nil? && value.nil? parameters.algorithm = algorithm parameters.value = value @@ -5184,7 +5184,7 @@ module Azure::KeyVault::V7_2_preview fail ArgumentError, 'digest is nil' if digest.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? parameters.algorithm = algorithm 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, '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? parameters.algorithm = algorithm 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, '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? parameters.algorithm = algorithm 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, '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? parameters.value = value parameters.tags = tags parameters.content_type = content_type - parameters.secretAttributes = secret_attributes + parameters.secret_attributes = secret_attributes end request_headers = {} @@ -6369,10 +6369,10 @@ module Azure::KeyVault::V7_2_preview fail ArgumentError, 'secret_version is nil' if secret_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? parameters.content_type = content_type - parameters.secretAttributes = secret_attributes + parameters.secret_attributes = secret_attributes parameters.tags = tags end @@ -7370,9 +7370,9 @@ module Azure::KeyVault::V7_2_preview fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.secretBundleBackup = secret_bundle_backup + parameters.secret_bundle_backup = secret_bundle_backup end request_headers = {} @@ -8132,9 +8132,9 @@ module Azure::KeyVault::V7_2_preview fail ArgumentError, 'api_version is nil' if api_version.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? - parameters.storageBundleBackup = storage_bundle_backup + parameters.storage_bundle_backup = storage_bundle_backup end 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, '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? parameters.resource_id = resource_id parameters.active_key_name = active_key_name parameters.auto_regenerate_key = auto_regenerate_key parameters.regeneration_period = regeneration_period - parameters.StorageAccountAttributes = storage_account_attributes + parameters.storage_account_attributes = storage_account_attributes parameters.tags = tags 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, '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? parameters.active_key_name = active_key_name parameters.auto_regenerate_key = auto_regenerate_key parameters.regeneration_period = regeneration_period - parameters.StorageAccountAttributes = storage_account_attributes + parameters.storage_account_attributes = storage_account_attributes parameters.tags = tags end @@ -8742,7 +8742,7 @@ module Azure::KeyVault::V7_2_preview fail ArgumentError, 'api_version is nil' if api_version.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? parameters.key_name = key_name end @@ -9564,12 +9564,12 @@ module Azure::KeyVault::V7_2_preview fail ArgumentError, 'sas_type is nil' if sas_type.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? parameters.template_uri = template_uri parameters.sas_type = sas_type parameters.validity_period = validity_period - parameters.SasDefinitionAttributes = sas_definition_attributes + parameters.sas_definition_attributes = sas_definition_attributes parameters.tags = tags 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, '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? parameters.template_uri = template_uri parameters.sas_type = sas_type parameters.validity_period = validity_period - parameters.SasDefinitionAttributes = sas_definition_attributes + parameters.sas_definition_attributes = sas_definition_attributes parameters.tags = tags end diff --git a/data/azure_key_vault/lib/7.2-preview/generated/azure_key_vault/models/certificate_import_parameters.rb b/data/azure_key_vault/lib/7.2-preview/generated/azure_key_vault/models/certificate_import_parameters.rb index 989f61d2f..b41e8b000 100644 --- a/data/azure_key_vault/lib/7.2-preview/generated/azure_key_vault/models/certificate_import_parameters.rb +++ b/data/azure_key_vault/lib/7.2-preview/generated/azure_key_vault/models/certificate_import_parameters.rb @@ -16,7 +16,7 @@ module Azure::KeyVault::V7_2_preview # object to import. This certificate needs to contain the private key. 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. attr_accessor :password diff --git a/management/azure_mgmt_bot_service/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/bots.rb b/management/azure_mgmt_bot_service/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/bots.rb index 2ce90dd74..6182145d2 100644 --- a/management/azure_mgmt_bot_service/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/bots.rb +++ b/management/azure_mgmt_bot_service/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/bots.rb @@ -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.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? parameters.location = location parameters.tags = tags diff --git a/management/azure_mgmt_bot_service/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/channels.rb b/management/azure_mgmt_bot_service/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/channels.rb index e248e1342..34e39228f 100644 --- a/management/azure_mgmt_bot_service/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/channels.rb +++ b/management/azure_mgmt_bot_service/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/channels.rb @@ -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.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? parameters.location = location parameters.tags = tags diff --git a/management/azure_mgmt_bot_service/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/bots.rb b/management/azure_mgmt_bot_service/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/bots.rb index a550ee409..b9c2763b2 100644 --- a/management/azure_mgmt_bot_service/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/bots.rb +++ b/management/azure_mgmt_bot_service/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/bots.rb @@ -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.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? parameters.location = location parameters.tags = tags diff --git a/management/azure_mgmt_bot_service/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/channels.rb b/management/azure_mgmt_bot_service/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/channels.rb index db1fdf333..8ae57d364 100644 --- a/management/azure_mgmt_bot_service/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/channels.rb +++ b/management/azure_mgmt_bot_service/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/channels.rb @@ -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.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? parameters.location = location parameters.tags = tags diff --git a/management/azure_mgmt_bot_service/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/enterprise_channels.rb b/management/azure_mgmt_bot_service/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/enterprise_channels.rb index 4f723059c..e974a81e5 100644 --- a/management/azure_mgmt_bot_service/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/enterprise_channels.rb +++ b/management/azure_mgmt_bot_service/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/enterprise_channels.rb @@ -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.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? parameters.location = location parameters.tags = tags diff --git a/management/azure_mgmt_cognitive_services/lib/2017-04-18/generated/azure_mgmt_cognitive_services/accounts.rb b/management/azure_mgmt_cognitive_services/lib/2017-04-18/generated/azure_mgmt_cognitive_services/accounts.rb index 9d44253ef..5e6ecdade 100644 --- a/management/azure_mgmt_cognitive_services/lib/2017-04-18/generated/azure_mgmt_cognitive_services/accounts.rb +++ b/management/azure_mgmt_cognitive_services/lib/2017-04-18/generated/azure_mgmt_cognitive_services/accounts.rb @@ -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, '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? parameters.key_name = key_name end diff --git a/management/azure_mgmt_cognitive_services/lib/2017-04-18/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb b/management/azure_mgmt_cognitive_services/lib/2017-04-18/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb index 34600de59..4f265afc4 100644 --- a/management/azure_mgmt_cognitive_services/lib/2017-04-18/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb +++ b/management/azure_mgmt_cognitive_services/lib/2017-04-18/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb @@ -188,7 +188,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 fail ArgumentError, 'kind is nil' if kind.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? parameters.skus = skus 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, '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? parameters.subdomain_name = subdomain_name parameters.type = type diff --git a/management/azure_mgmt_cosmosdb/lib/2019-12-12/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb b/management/azure_mgmt_cosmosdb/lib/2019-12-12/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb index dfeec55dc..a38b917e6 100644 --- a/management/azure_mgmt_cosmosdb/lib/2019-12-12/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb +++ b/management/azure_mgmt_cosmosdb/lib/2019-12-12/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb @@ -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? 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['Content-Type'] = 'application/json; charset=utf-8' diff --git a/management/azure_mgmt_cosmosdb/lib/2020-03-01/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb b/management/azure_mgmt_cosmosdb/lib/2020-03-01/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb index 4051789f5..80dce44b0 100644 --- a/management/azure_mgmt_cosmosdb/lib/2020-03-01/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb +++ b/management/azure_mgmt_cosmosdb/lib/2020-03-01/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb @@ -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? 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['Content-Type'] = 'application/json; charset=utf-8' diff --git a/management/azure_mgmt_cosmosdb/lib/2020-04-01/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb b/management/azure_mgmt_cosmosdb/lib/2020-04-01/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb index 35552199d..8e0843349 100644 --- a/management/azure_mgmt_cosmosdb/lib/2020-04-01/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb +++ b/management/azure_mgmt_cosmosdb/lib/2020-04-01/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb @@ -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? 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['Content-Type'] = 'application/json; charset=utf-8' diff --git a/management/azure_mgmt_cosmosdb/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb b/management/azure_mgmt_cosmosdb/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb index abb8c842d..446a7bea0 100644 --- a/management/azure_mgmt_cosmosdb/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb +++ b/management/azure_mgmt_cosmosdb/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb @@ -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? 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['Content-Type'] = 'application/json; charset=utf-8' diff --git a/management/azure_mgmt_cosmosdb/lib/2020-09-01/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb b/management/azure_mgmt_cosmosdb/lib/2020-09-01/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb index 71f0cdd6d..6f88ac862 100644 --- a/management/azure_mgmt_cosmosdb/lib/2020-09-01/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb +++ b/management/azure_mgmt_cosmosdb/lib/2020-09-01/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb @@ -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? 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['Content-Type'] = 'application/json; charset=utf-8' diff --git a/management/azure_mgmt_cosmosdb/lib/2021-01-15/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb b/management/azure_mgmt_cosmosdb/lib/2021-01-15/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb index 06b053fea..58691eaa2 100644 --- a/management/azure_mgmt_cosmosdb/lib/2021-01-15/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb +++ b/management/azure_mgmt_cosmosdb/lib/2021-01-15/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb @@ -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? 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['Content-Type'] = 'application/json; charset=utf-8'