Class: Google::Apis::CloudkmsV1::PublicKey

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

The public key for a given CryptoKeyVersion. Obtained via GetPublicKey.

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) ⇒ PublicKey

Returns a new instance of PublicKey.



1388
1389
1390
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 1388

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

Instance Attribute Details

#algorithmString

The Algorithm associated with this key. Corresponds to the JSON property algorithm

Returns:

  • (String)


1377
1378
1379
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 1377

def algorithm
  @algorithm
end

#pemString

The public key, encoded in PEM format. For more information, see the RFC 7468 sections for General Considerations and Textual Encoding of Subject Public Key Info. Corresponds to the JSON property pem

Returns:

  • (String)


1386
1387
1388
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 1386

def pem
  @pem
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1393
1394
1395
1396
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 1393

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