Class: Google::Apis::CloudkmsV1::KeyOperationAttestation

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

Contains an HSM-generated attestation about a key operation. For more information, see Verifying attestations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ KeyOperationAttestation

Returns a new instance of KeyOperationAttestation.



2066
2067
2068
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 2066

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

Instance Attribute Details

#cert_chainsGoogle::Apis::CloudkmsV1::CertificateChains

Certificate chains needed to verify the attestation. Certificates in chains are PEM-encoded and are ordered based on https://tools.ietf.org/html/rfc5246# section-7.4.2. Corresponds to the JSON property certChains



2052
2053
2054
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 2052

def cert_chains
  @cert_chains
end

#contentString

Output only. The attestation data provided by the HSM when the key operation was performed. Corresponds to the JSON property content NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


2059
2060
2061
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 2059

def content
  @content
end

#formatString

Output only. The format of the attestation data. Corresponds to the JSON property format

Returns:

  • (String)


2064
2065
2066
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 2064

def format
  @format
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2071
2072
2073
2074
2075
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 2071

def update!(**args)
  @cert_chains = args[:cert_chains] if args.key?(:cert_chains)
  @content = args[:content] if args.key?(:content)
  @format = args[:format] if args.key?(:format)
end