Class: Google::Apis::SqladminV1beta4::SslCert

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/sqladmin_v1beta4/classes.rb,
generated/google/apis/sqladmin_v1beta4/representations.rb,
generated/google/apis/sqladmin_v1beta4/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



1811
1812
1813
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1811

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

Instance Attribute Details

#certString

PEM representation. Corresponds to the JSON property cert

Returns:

  • (String)


1767
1768
1769
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1767

def cert
  @cert
end

#cert_serial_numberString

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

Returns:

  • (String)


1772
1773
1774
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1772

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)


1777
1778
1779
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1777

def common_name
  @common_name
end

#create_timeDateTime

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:

  • (DateTime)


1783
1784
1785
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1783

def create_time
  @create_time
end

#expiration_timeDateTime

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:

  • (DateTime)


1789
1790
1791
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1789

def expiration_time
  @expiration_time
end

#instanceString

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

Returns:

  • (String)


1794
1795
1796
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1794

def instance
  @instance
end

#kindString

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

Returns:

  • (String)


1799
1800
1801
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1799

def kind
  @kind
end

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

Returns:

  • (String)


1804
1805
1806
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1804

def self_link
  @self_link
end

#sha1_fingerprintString

Sha1 Fingerprint. Corresponds to the JSON property sha1Fingerprint

Returns:

  • (String)


1809
1810
1811
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1809

def sha1_fingerprint
  @sha1_fingerprint
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1816

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