Class: Google::Apis::SqlV1beta4::OnPremisesConfiguration

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

Overview

On-premises instance configuration.

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) ⇒ OnPremisesConfiguration

Returns a new instance of OnPremisesConfiguration.



1861
1862
1863
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 1861

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

Instance Attribute Details

#ca_certificateString

PEM representation of the trusted CA's x509 certificate. Corresponds to the JSON property caCertificate

Returns:

  • (String)


1823
1824
1825
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 1823

def ca_certificate
  @ca_certificate
end

#client_certificateString

PEM representation of the slave's x509 certificate. Corresponds to the JSON property clientCertificate

Returns:

  • (String)


1828
1829
1830
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 1828

def client_certificate
  @client_certificate
end

#client_keyString

PEM representation of the slave's private key. The corresponsing public key is encoded in the client's certificate. Corresponds to the JSON property clientKey

Returns:

  • (String)


1834
1835
1836
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 1834

def client_key
  @client_key
end

#dump_file_pathString

The dump file to create the Cloud SQL replica. Corresponds to the JSON property dumpFilePath

Returns:

  • (String)


1839
1840
1841
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 1839

def dump_file_path
  @dump_file_path
end

#host_portString

The host and port of the on-premises instance in host:port format Corresponds to the JSON property hostPort

Returns:

  • (String)


1844
1845
1846
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 1844

def host_port
  @host_port
end

#kindString

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

Returns:

  • (String)


1849
1850
1851
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 1849

def kind
  @kind
end

#passwordString

The password for connecting to on-premises instance. Corresponds to the JSON property password

Returns:

  • (String)


1854
1855
1856
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 1854

def password
  @password
end

#usernameString

The username for connecting to on-premises instance. Corresponds to the JSON property username

Returns:

  • (String)


1859
1860
1861
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 1859

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 1866

def update!(**args)
  @ca_certificate = args[:ca_certificate] if args.key?(:ca_certificate)
  @client_certificate = args[:client_certificate] if args.key?(:client_certificate)
  @client_key = args[:client_key] if args.key?(:client_key)
  @dump_file_path = args[:dump_file_path] if args.key?(:dump_file_path)
  @host_port = args[:host_port] if args.key?(:host_port)
  @kind = args[:kind] if args.key?(:kind)
  @password = args[:password] if args.key?(:password)
  @username = args[:username] if args.key?(:username)
end