Class: Google::Apis::PrivatecaV1::PublicKey

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PublicKey

Returns a new instance of PublicKey.



2006
2007
2008
# File 'lib/google/apis/privateca_v1/classes.rb', line 2006

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

Instance Attribute Details

#formatString

Required. The format of the public key. Corresponds to the JSON property format

Returns:

  • (String)


1997
1998
1999
# File 'lib/google/apis/privateca_v1/classes.rb', line 1997

def format
  @format
end

#keyString

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.

Returns:

  • (String)


2004
2005
2006
# File 'lib/google/apis/privateca_v1/classes.rb', line 2004

def key
  @key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2011
2012
2013
2014
# File 'lib/google/apis/privateca_v1/classes.rb', line 2011

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