Class: Google::Apis::SqladminV1beta4::OnPremisesConfiguration

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

Overview

On-premises instance configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OnPremisesConfiguration

Returns a new instance of OnPremisesConfiguration.



2291
2292
2293
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2291

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)


2248
2249
2250
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2248

def ca_certificate
  @ca_certificate
end

#client_certificateString

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

Returns:

  • (String)


2253
2254
2255
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2253

def client_certificate
  @client_certificate
end

#client_keyString

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

Returns:

  • (String)


2259
2260
2261
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2259

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)


2264
2265
2266
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2264

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)


2269
2270
2271
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2269

def host_port
  @host_port
end

#kindString

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

Returns:

  • (String)


2274
2275
2276
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2274

def kind
  @kind
end

#passwordString

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

Returns:

  • (String)


2279
2280
2281
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2279

def password
  @password
end

#source_instanceGoogle::Apis::SqladminV1beta4::InstanceReference

Reference to another Cloud SQL instance. Corresponds to the JSON property sourceInstance



2284
2285
2286
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2284

def source_instance
  @source_instance
end

#usernameString

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

Returns:

  • (String)


2289
2290
2291
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2289

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2296

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