Google Cloud Sql Admin V1 Client - Class OnPremisesConfiguration (1.6.0)

Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class OnPremisesConfiguration.

On-premises instance configuration.

Generated from protobuf messagegoogle.cloud.sql.v1.OnPremisesConfiguration

Namespace

Google \ Cloud \ Sql \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ host_portstring

The host and port of the on-premises instance in host:port format

↳ kindstring

This is alwayssql#onPremisesConfiguration.

↳ usernamestring

The username for connecting to on-premises instance.

↳ passwordstring

The password for connecting to on-premises instance.

↳ ca_certificatestring

PEM representation of the trusted CA's x509 certificate.

↳ client_certificatestring

PEM representation of the replica's x509 certificate.

↳ client_keystring

PEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate.

↳ dump_file_pathstring

The dump file to create the Cloud SQL replica.

↳ source_instanceInstanceReference

The reference to Cloud SQL instance if the source is Cloud SQL.

↳ selected_objectsarray<SelectedObjects>

Optional. A list of objects that the user selects for replication from an external source instance.

↳ ssl_optionint

Optional. SSL option for replica connection to the on-premises source.

getHostPort

The host and port of the on-premises instance in host:port format

Returns
TypeDescription
string

setHostPort

The host and port of the on-premises instance in host:port format

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getKind

This is alwayssql#onPremisesConfiguration.

Returns
TypeDescription
string

setKind

This is alwayssql#onPremisesConfiguration.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getUsername

The username for connecting to on-premises instance.

Returns
TypeDescription
string

setUsername

The username for connecting to on-premises instance.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getPassword

The password for connecting to on-premises instance.

Returns
TypeDescription
string

setPassword

The password for connecting to on-premises instance.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getCaCertificate

PEM representation of the trusted CA's x509 certificate.

Returns
TypeDescription
string

setCaCertificate

PEM representation of the trusted CA's x509 certificate.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getClientCertificate

PEM representation of the replica's x509 certificate.

Returns
TypeDescription
string

setClientCertificate

PEM representation of the replica's x509 certificate.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getClientKey

PEM representation of the replica's private key. The corresponding publickey is encoded in the client's certificate.

Returns
TypeDescription
string

setClientKey

PEM representation of the replica's private key. The corresponding publickey is encoded in the client's certificate.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getDumpFilePath

The dump file to create the Cloud SQL replica.

Returns
TypeDescription
string

setDumpFilePath

The dump file to create the Cloud SQL replica.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getSourceInstance

The reference to Cloud SQL instance if the source is Cloud SQL.

Returns
TypeDescription
InstanceReference|null

hasSourceInstance

clearSourceInstance

setSourceInstance

The reference to Cloud SQL instance if the source is Cloud SQL.

Parameter
NameDescription
varInstanceReference
Returns
TypeDescription
$this

getSelectedObjects

Optional. A list of objects that the user selects for replication from anexternal source instance.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSelectedObjects

Optional. A list of objects that the user selects for replication from anexternal source instance.

Parameter
NameDescription
vararray<SelectedObjects>
Returns
TypeDescription
$this

getSslOption

Optional. SSL option for replica connection to the on-premises source.

Returns
TypeDescription
intEnum of typeSslOption.

setSslOption

Optional. SSL option for replica connection to the on-premises source.

Parameter
NameDescription
varint

Enum of typeSslOption.

Returns
TypeDescription
$this

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-09 UTC.