Class: Google::Apis::PrivatecaV1::PublicKey
- Inherits:
-
Object
- Object
- Google::Apis::PrivatecaV1::PublicKey
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/privateca_v1/classes.rb,
lib/google/apis/privateca_v1/representations.rb,
lib/google/apis/privateca_v1/representations.rb
Overview
A PublicKey describes a public key.
Instance Attribute Summary collapse
-
#format ⇒ String
Required.
-
#key ⇒ String
Required.
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.
2010 2011 2012 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2010 def initialize(**args) update!(**args) end |
Instance Attribute Details
#format ⇒ String
Required. The format of the public key.
Corresponds to the JSON property format
2001 2002 2003 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2001 def format @format end |
#key ⇒ String
Required. A public key. The padding and encoding must match with the
KeyFormat value specified for the format field.
Corresponds to the JSON property key
NOTE: Values are automatically base64 encoded/decoded in the client library.
2008 2009 2010 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2008 def key @key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2015 2016 2017 2018 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2015 def update!(**args) @format = args[:format] if args.key?(:format) @key = args[:key] if args.key?(:key) end |