Class: Google::Apis::CloudkmsV1::MacVerifyResponse

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudkms_v1/classes.rb,
lib/google/apis/cloudkms_v1/representations.rb,
lib/google/apis/cloudkms_v1/representations.rb

Overview

Response message for KeyManagementService.MacVerify.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MacVerifyResponse

Returns a new instance of MacVerifyResponse.



2007
2008
2009
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 2007

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

The resource name of the CryptoKeyVersion used for verification. Check this field to verify that the intended resource was used for verification. Corresponds to the JSON property name

Returns:

  • (String)


1961
1962
1963
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1961

def name
  @name
end

#protection_levelString

The ProtectionLevel of the CryptoKeyVersion used for verification. Corresponds to the JSON property protectionLevel

Returns:

  • (String)


1966
1967
1968
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1966

def protection_level
  @protection_level
end

#successBoolean Also known as: success?

This field indicates whether or not the verification operation for MacVerifyRequest.mac over MacVerifyRequest.data was successful. Corresponds to the JSON property success

Returns:

  • (Boolean)


1972
1973
1974
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1972

def success
  @success
end

#verified_data_crc32cBoolean Also known as: verified_data_crc32c?

Integrity verification field. A flag indicating whether MacVerifyRequest. data_crc32c was received by KeyManagementService and used for the integrity verification of the data. A false value of this field indicates either that MacVerifyRequest.data_crc32c was left unset or that it was not delivered to KeyManagementService. If you've set MacVerifyRequest.data_crc32c but this field is still false, discard the response and perform a limited number of retries. Corresponds to the JSON property verifiedDataCrc32c

Returns:

  • (Boolean)


1984
1985
1986
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1984

def verified_data_crc32c
  @verified_data_crc32c
end

#verified_mac_crc32cBoolean Also known as: verified_mac_crc32c?

Integrity verification field. A flag indicating whether MacVerifyRequest. mac_crc32c was received by KeyManagementService and used for the integrity verification of the data. A false value of this field indicates either that MacVerifyRequest.mac_crc32c was left unset or that it was not delivered to KeyManagementService. If you've set MacVerifyRequest.mac_crc32c but this field is still false, discard the response and perform a limited number of retries. Corresponds to the JSON property verifiedMacCrc32c

Returns:

  • (Boolean)


1995
1996
1997
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1995

def verified_mac_crc32c
  @verified_mac_crc32c
end

#verified_success_integrityBoolean Also known as: verified_success_integrity?

Integrity verification field. This value is used for the integrity verification of [MacVerifyResponse.success]. If the value of this field contradicts the value of [MacVerifyResponse.success], discard the response and perform a limited number of retries. Corresponds to the JSON property verifiedSuccessIntegrity

Returns:

  • (Boolean)


2004
2005
2006
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 2004

def verified_success_integrity
  @verified_success_integrity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2012
2013
2014
2015
2016
2017
2018
2019
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 2012

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @protection_level = args[:protection_level] if args.key?(:protection_level)
  @success = args[:success] if args.key?(:success)
  @verified_data_crc32c = args[:verified_data_crc32c] if args.key?(:verified_data_crc32c)
  @verified_mac_crc32c = args[:verified_mac_crc32c] if args.key?(:verified_mac_crc32c)
  @verified_success_integrity = args[:verified_success_integrity] if args.key?(:verified_success_integrity)
end