Class: Google::Apis::BinaryauthorizationV1beta1::AttestorPublicKey

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/binaryauthorization_v1beta1/classes.rb,
generated/google/apis/binaryauthorization_v1beta1/representations.rb,
generated/google/apis/binaryauthorization_v1beta1/representations.rb

Overview

An attestator public key that will be used to verify attestations signed by this attestor.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AttestorPublicKey

Returns a new instance of AttestorPublicKey



155
156
157
# File 'generated/google/apis/binaryauthorization_v1beta1/classes.rb', line 155

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

Instance Attribute Details

#ascii_armored_pgp_public_keyString

ASCII-armored representation of a PGP public key, as the entire output by the command gpg --export --armor foo@example.com (either LF or CRLF line endings). Corresponds to the JSON property asciiArmoredPgpPublicKey

Returns:

  • (String)


141
142
143
# File 'generated/google/apis/binaryauthorization_v1beta1/classes.rb', line 141

def ascii_armored_pgp_public_key
  @ascii_armored_pgp_public_key
end

#commentString

Optional. A descriptive comment. This field may be updated. Corresponds to the JSON property comment

Returns:

  • (String)


146
147
148
# File 'generated/google/apis/binaryauthorization_v1beta1/classes.rb', line 146

def comment
  @comment
end

#idString

Output only. This field will be overwritten with key ID information, for example, an identifier extracted from a PGP public key. This field may not be updated. Corresponds to the JSON property id

Returns:

  • (String)


153
154
155
# File 'generated/google/apis/binaryauthorization_v1beta1/classes.rb', line 153

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



160
161
162
163
164
# File 'generated/google/apis/binaryauthorization_v1beta1/classes.rb', line 160

def update!(**args)
  @ascii_armored_pgp_public_key = args[:ascii_armored_pgp_public_key] if args.key?(:ascii_armored_pgp_public_key)
  @comment = args[:comment] if args.key?(:comment)
  @id = args[:id] if args.key?(:id)
end