Reference documentation and code samples for the Google Cloud Datastream V1 Client class PostgresqlProfile.
PostgreSQL database profile.
Generated from protobuf message google.cloud.datastream.v1.PostgresqlProfile
Namespace
Google \ Cloud \ Datastream \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ hostname
string
Required. Hostname for the PostgreSQL connection.
↳ port
int
Port for the PostgreSQL connection, default value is 5432.
↳ username
string
Required. Username for the PostgreSQL connection.
↳ password
string
Optional. Password for the PostgreSQL connection. Mutually exclusive with the secret_manager_stored_password
field.
↳ database
string
Required. Database for the PostgreSQL connection.
↳ ssl_config
PostgresqlSslConfig
Optional. SSL configuration for the PostgreSQL connection. In case PostgresqlSslConfig is not set, the connection will use the default SSL mode, which is prefer
(i.e. this mode will only use encryption if enabled from database side, otherwise will use unencrypted communication)
getHostname
Required. Hostname for the PostgreSQL connection.
string
setHostname
Required. Hostname for the PostgreSQL connection.
var
string
$this
getPort
Port for the PostgreSQL connection, default value is 5432.
int
setPort
Port for the PostgreSQL connection, default value is 5432.
var
int
$this
getUsername
Required. Username for the PostgreSQL connection.
string
setUsername
Required. Username for the PostgreSQL connection.
var
string
$this
getPassword
Optional. Password for the PostgreSQL connection. Mutually exclusive with
the secret_manager_stored_password
field.
string
setPassword
Optional. Password for the PostgreSQL connection. Mutually exclusive with
the secret_manager_stored_password
field.
var
string
$this
getDatabase
Required. Database for the PostgreSQL connection.
string
setDatabase
Required. Database for the PostgreSQL connection.
var
string
$this
getSslConfig
Optional. SSL configuration for the PostgreSQL connection.
In case PostgresqlSslConfig is not set, the connection will use the default
SSL mode, which is prefer
(i.e. this mode will only use encryption if
enabled from database side, otherwise will use unencrypted communication)
hasSslConfig
clearSslConfig
setSslConfig
Optional. SSL configuration for the PostgreSQL connection.
In case PostgresqlSslConfig is not set, the connection will use the default
SSL mode, which is prefer
(i.e. this mode will only use encryption if
enabled from database side, otherwise will use unencrypted communication)
$this