class Google::Apis::SqladminV1beta4::OnPremisesConfiguration

On-premises instance configuration.

Attributes

ca_certificate[RW]

PEM representation of the trusted CA's x509 certificate. Corresponds to the JSON property `caCertificate` @return [String]

client_certificate[RW]

PEM representation of the replica's x509 certificate. Corresponds to the JSON property `clientCertificate` @return [String]

client_key[RW]

PEM representation of the replica's private key. The corresponsing public key is encoded in the client's certificate. Corresponds to the JSON property `clientKey` @return [String]

dump_file_path[RW]

The dump file to create the Cloud SQL replica. Corresponds to the JSON property `dumpFilePath` @return [String]

host_port[RW]

The host and port of the on-premises instance in host:port format Corresponds to the JSON property `hostPort` @return [String]

kind[RW]

This is always `sql#onPremisesConfiguration`. Corresponds to the JSON property `kind` @return [String]

password[RW]

The password for connecting to on-premises instance. Corresponds to the JSON property `password` @return [String]

source_instance[RW]

Reference to another Cloud SQL instance. Corresponds to the JSON property `sourceInstance` @return [Google::Apis::SqladminV1beta4::InstanceReference]

username[RW]

The username for connecting to on-premises instance. Corresponds to the JSON property `username` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sqladmin_v1beta4/classes.rb, line 2303
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/sqladmin_v1beta4/classes.rb, line 2308
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)
  @source_instance = args[:source_instance] if args.key?(:source_instance)
  @username = args[:username] if args.key?(:username)
end