Class: Google::Apis::SqladminV1::SslCert

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SslCert

Returns a new instance of SslCert.



3803
3804
3805
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3803

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

Instance Attribute Details

#certString

PEM representation. Corresponds to the JSON property cert

Returns:

  • (String)


3759
3760
3761
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3759

def cert
  @cert
end

#cert_serial_numberString

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

Returns:

  • (String)


3764
3765
3766
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3764

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)


3769
3770
3771
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3769

def common_name
  @common_name
end

#create_timeString

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

Returns:

  • (String)


3775
3776
3777
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3775

def create_time
  @create_time
end

#expiration_timeString

The time when the certificate expires in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. Corresponds to the JSON property expirationTime

Returns:

  • (String)


3781
3782
3783
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3781

def expiration_time
  @expiration_time
end

#instanceString

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

Returns:

  • (String)


3786
3787
3788
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3786

def instance
  @instance
end

#kindString

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

Returns:

  • (String)


3791
3792
3793
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3791

def kind
  @kind
end

The URI of this resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


3796
3797
3798
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3796

def self_link
  @self_link
end

#sha1_fingerprintString

Sha1 Fingerprint. Corresponds to the JSON property sha1Fingerprint

Returns:

  • (String)


3801
3802
3803
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3801

def sha1_fingerprint
  @sha1_fingerprint
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3808

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