Class: Google::Apis::SqladminV1beta3::SslCert

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/sqladmin_v1beta3/classes.rb,
generated/google/apis/sqladmin_v1beta3/representations.rb,
generated/google/apis/sqladmin_v1beta3/representations.rb

Overview

SslCerts Resource

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SslCert

Returns a new instance of SslCert



1415
1416
1417
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1415

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

Instance Attribute Details

#certString

PEM representation. Corresponds to the JSON property cert

Returns:

  • (String)


1378
1379
1380
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1378

def cert
  @cert
end

#cert_serial_numberString

Serial number, as extracted from the certificate. Corresponds to the JSON property certSerialNumber

Returns:

  • (String)


1383
1384
1385
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1383

def cert_serial_number
  @cert_serial_number
end

#common_nameString

User supplied name. Constrained to [a-zA-Z.-_ ]+. Corresponds to the JSON property commonName

Returns:

  • (String)


1388
1389
1390
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1388

def common_name
  @common_name
end

#create_timeDateTime

Time when the certificate was created. Corresponds to the JSON property createTime

Returns:

  • (DateTime)


1393
1394
1395
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1393

def create_time
  @create_time
end

#expiration_timeDateTime

Time when the certificate expires. Corresponds to the JSON property expirationTime

Returns:

  • (DateTime)


1398
1399
1400
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1398

def expiration_time
  @expiration_time
end

#instanceString

Name of the database instance. Corresponds to the JSON property instance

Returns:

  • (String)


1403
1404
1405
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1403

def instance
  @instance
end

#kindString

This is always sql#sslCert. Corresponds to the JSON property kind

Returns:

  • (String)


1408
1409
1410
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1408

def kind
  @kind
end

#sha1_fingerprintString

Sha1 Fingerprint. Corresponds to the JSON property sha1Fingerprint

Returns:

  • (String)


1413
1414
1415
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1413

def sha1_fingerprint
  @sha1_fingerprint
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1420

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)
  @sha1_fingerprint = args[:sha1_fingerprint] if args.key?(:sha1_fingerprint)
end