Class: Google::Apis::SqladminV1::SslCert
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1::SslCert
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/sqladmin_v1/classes.rb,
lib/google/apis/sqladmin_v1/representations.rb,
lib/google/apis/sqladmin_v1/representations.rb
Overview
SslCerts Resource
Instance Attribute Summary collapse
-
#cert ⇒ String
PEM representation.
-
#cert_serial_number ⇒ String
Serial number, as extracted from the certificate.
-
#common_name ⇒ String
User supplied name.
-
#create_time ⇒ String
The time when the certificate was created in RFC 3339 format, for example
2012-11-15T16:19:00.094ZCorresponds to the JSON propertycreateTime. -
#expiration_time ⇒ String
The time when the certificate expires in RFC 3339 format, for example
2012-11-15T16:19:00.094Z. -
#instance ⇒ String
Name of the database instance.
-
#kind ⇒ String
This is always
sql#sslCert. -
#self_link ⇒ String
The URI of this resource.
-
#sha1_fingerprint ⇒ String
Sha1 Fingerprint.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SslCert
constructor
A new instance of SslCert.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SslCert
Returns a new instance of SslCert.
6033 6034 6035 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 6033 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cert ⇒ String
PEM representation.
Corresponds to the JSON property cert
5989 5990 5991 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 5989 def cert @cert end |
#cert_serial_number ⇒ String
Serial number, as extracted from the certificate.
Corresponds to the JSON property certSerialNumber
5994 5995 5996 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 5994 def cert_serial_number @cert_serial_number end |
#common_name ⇒ String
User supplied name. Constrained to [a-zA-Z.-_ ]+.
Corresponds to the JSON property commonName
5999 6000 6001 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 5999 def common_name @common_name end |
#create_time ⇒ String
The time when the certificate was created in RFC 3339 format, for example 2012-11-15T16:19:00.094Z
Corresponds to the JSON property createTime
6005 6006 6007 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 6005 def create_time @create_time end |
#expiration_time ⇒ String
The time when the certificate expires in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
Corresponds to the JSON property expirationTime
6011 6012 6013 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 6011 def expiration_time @expiration_time end |
#instance ⇒ String
Name of the database instance.
Corresponds to the JSON property instance
6016 6017 6018 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 6016 def instance @instance end |
#kind ⇒ String
This is always sql#sslCert.
Corresponds to the JSON property kind
6021 6022 6023 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 6021 def kind @kind end |
#self_link ⇒ String
The URI of this resource.
Corresponds to the JSON property selfLink
6026 6027 6028 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 6026 def self_link @self_link end |
#sha1_fingerprint ⇒ String
Sha1 Fingerprint.
Corresponds to the JSON property sha1Fingerprint
6031 6032 6033 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 6031 def sha1_fingerprint @sha1_fingerprint end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 6038 def update!(**args) @cert = args[:cert] if args.key?(:cert) @cert_serial_number = args[:cert_serial_number] if args.key?(:cert_serial_number) @common_name = args[:common_name] if args.key?(:common_name) @create_time = args[:create_time] if args.key?(:create_time) @expiration_time = args[:expiration_time] if args.key?(:expiration_time) @instance = args[:instance] if args.key?(:instance) @kind = args[:kind] if args.key?(:kind) @self_link = args[:self_link] if args.key?(:self_link) @sha1_fingerprint = args[:sha1_fingerprint] if args.key?(:sha1_fingerprint) end |