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
Name Description
data array

Optional. Data for populating the Message object.

↳ hostname string

Required. Hostname for the SQLServer connection.

↳ port int

Port for the SQLServer connection, default value is 1433.

↳ username string

Required. Username for the SQLServer connection.

↳ password string

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

↳ database string

Required. Database for the SQLServer connection.

↳ secret_manager_stored_password string

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
Type Description
string

setHostname

Required. Hostname for the SQLServer connection.

Parameter
Name Description
var string
Returns
Type Description
$this

getPort

Port for the SQLServer connection, default value is 1433.

Returns
Type Description
int

setPort

Port for the SQLServer connection, default value is 1433.

Parameter
Name Description
var int
Returns
Type Description
$this

getUsername

Required. Username for the SQLServer connection.

Returns
Type Description
string

setUsername

Required. Username for the SQLServer connection.

Parameter
Name Description
var string
Returns
Type Description
$this

getPassword

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

Returns
Type Description
string

setPassword

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

Parameter
Name Description
var string
Returns
Type Description
$this

getDatabase

Required. Database for the SQLServer connection.

Returns
Type Description
string

setDatabase

Required. Database for the SQLServer connection.

Parameter
Name Description
var string
Returns
Type Description
$this

getSecretManagerStoredPassword

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

Returns
Type Description
string

setSecretManagerStoredPassword

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

Parameter
Name Description
var string
Returns
Type Description
$this