Class: Google::Apis::KmsinventoryV1::GoogleCloudKmsV1KeyOperationAttestation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/kmsinventory_v1/classes.rb,
lib/google/apis/kmsinventory_v1/representations.rb,
lib/google/apis/kmsinventory_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) ⇒ GoogleCloudKmsV1KeyOperationAttestation

Returns a new instance of GoogleCloudKmsV1KeyOperationAttestation.



565
566
567
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 565

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

Instance Attribute Details

#cert_chainsGoogle::Apis::KmsinventoryV1::GoogleCloudKmsV1KeyOperationAttestationCertificateChains

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



551
552
553
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 551

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)


558
559
560
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 558

def content
  @content
end

#formatString

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

Returns:

  • (String)


563
564
565
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 563

def format
  @format
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



570
571
572
573
574
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 570

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