diff --git a/api_names_out.yaml b/api_names_out.yaml index 3ed929975..30148e3c6 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -25106,12 +25106,14 @@ "/cloudkms:v1/AsymmetricDecryptResponse": asymmetric_decrypt_response "/cloudkms:v1/AsymmetricDecryptResponse/plaintext": plaintext "/cloudkms:v1/AsymmetricDecryptResponse/plaintextCrc32c": plaintext_crc32c +"/cloudkms:v1/AsymmetricDecryptResponse/protectionLevel": protection_level "/cloudkms:v1/AsymmetricDecryptResponse/verifiedCiphertextCrc32c": verified_ciphertext_crc32c "/cloudkms:v1/AsymmetricSignRequest": asymmetric_sign_request "/cloudkms:v1/AsymmetricSignRequest/digest": digest "/cloudkms:v1/AsymmetricSignRequest/digestCrc32c": digest_crc32c "/cloudkms:v1/AsymmetricSignResponse": asymmetric_sign_response "/cloudkms:v1/AsymmetricSignResponse/name": name +"/cloudkms:v1/AsymmetricSignResponse/protectionLevel": protection_level "/cloudkms:v1/AsymmetricSignResponse/signature": signature "/cloudkms:v1/AsymmetricSignResponse/signatureCrc32c": signature_crc32c "/cloudkms:v1/AsymmetricSignResponse/verifiedDigestCrc32c": verified_digest_crc32c @@ -25188,6 +25190,8 @@ "/cloudkms:v1/DecryptResponse": decrypt_response "/cloudkms:v1/DecryptResponse/plaintext": plaintext "/cloudkms:v1/DecryptResponse/plaintextCrc32c": plaintext_crc32c +"/cloudkms:v1/DecryptResponse/protectionLevel": protection_level +"/cloudkms:v1/DecryptResponse/usedPrimary": used_primary "/cloudkms:v1/DestroyCryptoKeyVersionRequest": destroy_crypto_key_version_request "/cloudkms:v1/Digest": digest "/cloudkms:v1/Digest/sha256": sha256 @@ -25202,6 +25206,7 @@ "/cloudkms:v1/EncryptResponse/ciphertext": ciphertext "/cloudkms:v1/EncryptResponse/ciphertextCrc32c": ciphertext_crc32c "/cloudkms:v1/EncryptResponse/name": name +"/cloudkms:v1/EncryptResponse/protectionLevel": protection_level "/cloudkms:v1/EncryptResponse/verifiedAdditionalAuthenticatedDataCrc32c": verified_additional_authenticated_data_crc32c "/cloudkms:v1/EncryptResponse/verifiedPlaintextCrc32c": verified_plaintext_crc32c "/cloudkms:v1/Expr": expr @@ -25287,6 +25292,7 @@ "/cloudkms:v1/PublicKey/name": name "/cloudkms:v1/PublicKey/pem": pem "/cloudkms:v1/PublicKey/pemCrc32c": pem_crc32c +"/cloudkms:v1/PublicKey/protectionLevel": protection_level "/cloudkms:v1/RestoreCryptoKeyVersionRequest": restore_crypto_key_version_request "/cloudkms:v1/Rule": rule "/cloudkms:v1/Rule/action": action diff --git a/generated/google-apis-cloudkms_v1/CHANGELOG.md b/generated/google-apis-cloudkms_v1/CHANGELOG.md index 4fa954d25..441772062 100644 --- a/generated/google-apis-cloudkms_v1/CHANGELOG.md +++ b/generated/google-apis-cloudkms_v1/CHANGELOG.md @@ -1,5 +1,10 @@ # Release history for google-apis-cloudkms_v1 +### v0.2.0 (2021-01-21) + +* Regenerated from discovery document revision 20210106 +* Regenerated using generator version 0.1.2 + ### v0.1.0 (2021-01-07) * Regenerated using generator version 0.1.1 diff --git a/generated/google-apis-cloudkms_v1/lib/google/apis/cloudkms_v1/classes.rb b/generated/google-apis-cloudkms_v1/lib/google/apis/cloudkms_v1/classes.rb index 9b6c34786..7e64d1040 100644 --- a/generated/google-apis-cloudkms_v1/lib/google/apis/cloudkms_v1/classes.rb +++ b/generated/google-apis-cloudkms_v1/lib/google/apis/cloudkms_v1/classes.rb @@ -85,6 +85,11 @@ module Google # @return [Fixnum] attr_accessor :plaintext_crc32c + # The ProtectionLevel of the CryptoKeyVersion used in decryption. + # Corresponds to the JSON property `protectionLevel` + # @return [String] + attr_accessor :protection_level + # Integrity verification field. A flag indicating whether # AsymmetricDecryptRequest.ciphertext_crc32c was received by # KeyManagementService and used for the integrity verification of the ciphertext. @@ -106,6 +111,7 @@ module Google def update!(**args) @plaintext = args[:plaintext] if args.key?(:plaintext) @plaintext_crc32c = args[:plaintext_crc32c] if args.key?(:plaintext_crc32c) + @protection_level = args[:protection_level] if args.key?(:protection_level) @verified_ciphertext_crc32c = args[:verified_ciphertext_crc32c] if args.key?(:verified_ciphertext_crc32c) end end @@ -157,6 +163,11 @@ module Google # @return [String] attr_accessor :name + # The ProtectionLevel of the CryptoKeyVersion used for signing. + # Corresponds to the JSON property `protectionLevel` + # @return [String] + attr_accessor :protection_level + # The created signature. # Corresponds to the JSON property `signature` # NOTE: Values are automatically base64 encoded/decoded in the client library. @@ -197,6 +208,7 @@ module Google # Update properties of this object def update!(**args) @name = args[:name] if args.key?(:name) + @protection_level = args[:protection_level] if args.key?(:protection_level) @signature = args[:signature] if args.key?(:signature) @signature_crc32c = args[:signature_crc32c] if args.key?(:signature_crc32c) @verified_digest_crc32c = args[:verified_digest_crc32c] if args.key?(:verified_digest_crc32c) @@ -684,6 +696,17 @@ module Google # @return [Fixnum] attr_accessor :plaintext_crc32c + # The ProtectionLevel of the CryptoKeyVersion used in decryption. + # Corresponds to the JSON property `protectionLevel` + # @return [String] + attr_accessor :protection_level + + # Whether the Decryption was performed using the primary key version. + # Corresponds to the JSON property `usedPrimary` + # @return [Boolean] + attr_accessor :used_primary + alias_method :used_primary?, :used_primary + def initialize(**args) update!(**args) end @@ -692,6 +715,8 @@ module Google def update!(**args) @plaintext = args[:plaintext] if args.key?(:plaintext) @plaintext_crc32c = args[:plaintext_crc32c] if args.key?(:plaintext_crc32c) + @protection_level = args[:protection_level] if args.key?(:protection_level) + @used_primary = args[:used_primary] if args.key?(:used_primary) end end @@ -841,6 +866,11 @@ module Google # @return [String] attr_accessor :name + # The ProtectionLevel of the CryptoKeyVersion used in encryption. + # Corresponds to the JSON property `protectionLevel` + # @return [String] + attr_accessor :protection_level + # Integrity verification field. A flag indicating whether EncryptRequest. # additional_authenticated_data_crc32c was received by KeyManagementService and # used for the integrity verification of the AAD. A false value of this field @@ -875,6 +905,7 @@ module Google @ciphertext = args[:ciphertext] if args.key?(:ciphertext) @ciphertext_crc32c = args[:ciphertext_crc32c] if args.key?(:ciphertext_crc32c) @name = args[:name] if args.key?(:name) + @protection_level = args[:protection_level] if args.key?(:protection_level) @verified_additional_authenticated_data_crc32c = args[:verified_additional_authenticated_data_crc32c] if args.key?(:verified_additional_authenticated_data_crc32c) @verified_plaintext_crc32c = args[:verified_plaintext_crc32c] if args.key?(:verified_plaintext_crc32c) end @@ -1512,6 +1543,11 @@ module Google # @return [Fixnum] attr_accessor :pem_crc32c + # The ProtectionLevel of the CryptoKeyVersion public key. + # Corresponds to the JSON property `protectionLevel` + # @return [String] + attr_accessor :protection_level + def initialize(**args) update!(**args) end @@ -1522,6 +1558,7 @@ module Google @name = args[:name] if args.key?(:name) @pem = args[:pem] if args.key?(:pem) @pem_crc32c = args[:pem_crc32c] if args.key?(:pem_crc32c) + @protection_level = args[:protection_level] if args.key?(:protection_level) end end diff --git a/generated/google-apis-cloudkms_v1/lib/google/apis/cloudkms_v1/gem_version.rb b/generated/google-apis-cloudkms_v1/lib/google/apis/cloudkms_v1/gem_version.rb index c32d42762..1109d1f78 100644 --- a/generated/google-apis-cloudkms_v1/lib/google/apis/cloudkms_v1/gem_version.rb +++ b/generated/google-apis-cloudkms_v1/lib/google/apis/cloudkms_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module CloudkmsV1 # Version of the google-apis-cloudkms_v1 gem - GEM_VERSION = "0.1.0" + GEM_VERSION = "0.2.0" # Version of the code generator used to generate this client - GENERATOR_VERSION = "0.1.1" + GENERATOR_VERSION = "0.1.2" # Revision of the discovery document this client was generated from - REVISION = "20201201" + REVISION = "20210106" end end end diff --git a/generated/google-apis-cloudkms_v1/lib/google/apis/cloudkms_v1/representations.rb b/generated/google-apis-cloudkms_v1/lib/google/apis/cloudkms_v1/representations.rb index a02591f46..806a40775 100644 --- a/generated/google-apis-cloudkms_v1/lib/google/apis/cloudkms_v1/representations.rb +++ b/generated/google-apis-cloudkms_v1/lib/google/apis/cloudkms_v1/representations.rb @@ -263,6 +263,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :plaintext, :base64 => true, as: 'plaintext' property :plaintext_crc32c, :numeric_string => true, as: 'plaintextCrc32c' + property :protection_level, as: 'protectionLevel' property :verified_ciphertext_crc32c, as: 'verifiedCiphertextCrc32c' end end @@ -280,6 +281,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :name, as: 'name' + property :protection_level, as: 'protectionLevel' property :signature, :base64 => true, as: 'signature' property :signature_crc32c, :numeric_string => true, as: 'signatureCrc32c' property :verified_digest_crc32c, as: 'verifiedDigestCrc32c' @@ -382,6 +384,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :plaintext, :base64 => true, as: 'plaintext' property :plaintext_crc32c, :numeric_string => true, as: 'plaintextCrc32c' + property :protection_level, as: 'protectionLevel' + property :used_primary, as: 'usedPrimary' end end @@ -416,6 +420,7 @@ module Google property :ciphertext, :base64 => true, as: 'ciphertext' property :ciphertext_crc32c, :numeric_string => true, as: 'ciphertextCrc32c' property :name, as: 'name' + property :protection_level, as: 'protectionLevel' property :verified_additional_authenticated_data_crc32c, as: 'verifiedAdditionalAuthenticatedDataCrc32c' property :verified_plaintext_crc32c, as: 'verifiedPlaintextCrc32c' end @@ -570,6 +575,7 @@ module Google property :name, as: 'name' property :pem, as: 'pem' property :pem_crc32c, :numeric_string => true, as: 'pemCrc32c' + property :protection_level, as: 'protectionLevel' end end diff --git a/generated/google-apis-cloudkms_v1/synth.metadata b/generated/google-apis-cloudkms_v1/synth.metadata index 0a6484a6c..2c6697729 100644 --- a/generated/google-apis-cloudkms_v1/synth.metadata +++ b/generated/google-apis-cloudkms_v1/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "1bb8091fcf4270989ed1528741f8e96740431e03" + "sha": "a489b644a1bd47c075ba8c0c10ea2175e5456069" } } ]