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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudkms_v1/classes.rb,
generated/google/apis/cloudkms_v1/representations.rb,
generated/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

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ KeyOperationAttestation

Returns a new instance of KeyOperationAttestation



890
891
892
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 890

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

Instance Attribute Details

#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)


883
884
885
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 883

def content
  @content
end

#formatString

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

Returns:

  • (String)


888
889
890
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 888

def format
  @format
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



895
896
897
898
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 895

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