Class: Google::Apis::PrivatecaV1beta1::PublicKey
- Inherits:
-
Object
- Object
- Google::Apis::PrivatecaV1beta1::PublicKey
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/privateca_v1beta1/classes.rb,
lib/google/apis/privateca_v1beta1/representations.rb,
lib/google/apis/privateca_v1beta1/representations.rb
Overview
A PublicKey describes a public key.
Instance Attribute Summary collapse
-
#key ⇒ String
Required.
-
#type ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PublicKey
constructor
A new instance of PublicKey.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PublicKey
Returns a new instance of PublicKey.
1763 1764 1765 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1763 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
Required. A public key. When this is specified in a request, the padding and
encoding can be any of the options described by the respective 'KeyType' value.
When this is generated by the service, it will always be an RFC 5280
SubjectPublicKeyInfo
structure containing an algorithm identifier and a key.
Corresponds to the JSON property key
NOTE: Values are automatically base64 encoded/decoded in the client library.
1755 1756 1757 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1755 def key @key end |
#type ⇒ String
Optional. The type of public key. If specified, it must match the public key
used for thekey
field.
Corresponds to the JSON property type
1761 1762 1763 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1761 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1768 1769 1770 1771 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1768 def update!(**args) @key = args[:key] if args.key?(:key) @type = args[:type] if args.key?(:type) end |