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.



970
971
972
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 970

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)


963
964
965
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 963

def content
  @content
end

#formatString

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

Returns:

  • (String)


968
969
970
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 968

def format
  @format
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



975
976
977
978
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 975

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