Google Cloud Datastream V1 Client - Class SqlServerProfile (2.3.0)

Reference documentation and code samples for the Google Cloud Datastream V1 Client class SqlServerProfile.

SQLServer database profile.

Generated from protobuf message google.cloud.datastream.v1.SqlServerProfile

Namespace

Google \ Cloud \ Datastream \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ hostnamestring

Required. Hostname for the SQLServer connection.

↳ portint

Port for the SQLServer connection, default value is 1433.

↳ usernamestring

Required. Username for the SQLServer connection.

↳ passwordstring

Optional. Password for the SQLServer connection. Mutually exclusive with the secret_manager_stored_password field.

↳ databasestring

Required. Database for the SQLServer connection.

↳ secret_manager_stored_passwordstring

Optional. A reference to a Secret Manager resource name storing the SQLServer connection password. Mutually exclusive with the password field.

getHostname

Required. Hostname for the SQLServer connection.

Returns
TypeDescription
string

setHostname

Required. Hostname for the SQLServer connection.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getPort

Port for the SQLServer connection, default value is 1433.

Returns
TypeDescription
int

setPort

Port for the SQLServer connection, default value is 1433.

Parameter
NameDescription
varint
Returns
TypeDescription
$this

getUsername

Required. Username for the SQLServer connection.

Returns
TypeDescription
string

setUsername

Required. Username for the SQLServer connection.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getPassword

Optional. Password for the SQLServer connection. Mutually exclusive with the secret_manager_stored_password field.

Returns
TypeDescription
string

setPassword

Optional. Password for the SQLServer connection. Mutually exclusive with the secret_manager_stored_password field.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getDatabase

Required. Database for the SQLServer connection.

Returns
TypeDescription
string

setDatabase

Required. Database for the SQLServer connection.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getSecretManagerStoredPassword

Optional. A reference to a Secret Manager resource name storing the SQLServer connection password. Mutually exclusive with the password field.

Returns
TypeDescription
string

setSecretManagerStoredPassword

Optional. A reference to a Secret Manager resource name storing the SQLServer connection password. Mutually exclusive with the password field.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this