Class: Google::Apis::CloudkmsV1::PublicKey
- Inherits:
-
Object
- Object
- Google::Apis::CloudkmsV1::PublicKey
- 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
-
#algorithm ⇒ String
The Algorithm associated with this key.
-
#name ⇒ String
The name of the CryptoKeyVersion public key.
-
#pem ⇒ String
The public key, encoded in PEM format.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PublicKey
constructor
A new instance of PublicKey.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ PublicKey
Returns a new instance of PublicKey
1263 1264 1265 |
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 1263 def initialize(**args) update!(**args) end |
Instance Attribute Details
#algorithm ⇒ String
The Algorithm associated
with this key.
Corresponds to the JSON property algorithm
1246 1247 1248 |
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 1246 def algorithm @algorithm end |
#name ⇒ String
The name of the CryptoKeyVersion public key.
Provided here for verification.
Corresponds to the JSON property name
1252 1253 1254 |
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 1252 def name @name end |
#pem ⇒ String
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
1261 1262 1263 |
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 1261 def pem @pem end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1268 1269 1270 1271 1272 |
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 1268 def update!(**args) @algorithm = args[:algorithm] if args.key?(:algorithm) @name = args[:name] if args.key?(:name) @pem = args[:pem] if args.key?(:pem) end |