Reference documentation and code samples for the Google Cloud Datastream V1 Client class MongodbProfile.
MongoDB profile.
Generated from protobuf message google.cloud.datastream.v1.MongodbProfile
Namespace
Google \ Cloud \ Datastream \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ host_addresses
array< HostAddress
>
Required. List of host addresses for a MongoDB cluster. For SRV connection format, this list must contain exactly one DNS host without a port. For Standard connection format, this list must contain all the required hosts in the cluster with their respective ports.
↳ replica_set
string
Optional. Name of the replica set. Only needed for self hosted replica set type MongoDB cluster. For SRV connection format, this field must be empty. For Standard connection format, this field must be specified.
↳ username
string
Required. Username for the MongoDB connection.
↳ password
string
Optional. Password for the MongoDB connection. Mutually exclusive with the secret_manager_stored_password
field.
↳ 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.
↳ ssl_config
↳ srv_connection_format
↳ standard_connection_format
getHostAddresses
Required. List of host addresses for a MongoDB cluster.
For SRV connection format, this list must contain exactly one DNS host without a port. For Standard connection format, this list must contain all the required hosts in the cluster with their respective ports.
setHostAddresses
Required. List of host addresses for a MongoDB cluster.
For SRV connection format, this list must contain exactly one DNS host without a port. For Standard connection format, this list must contain all the required hosts in the cluster with their respective ports.
$this
getReplicaSet
Optional. Name of the replica set. Only needed for self hosted replica set type MongoDB cluster. For SRV connection format, this field must be empty.
For Standard connection format, this field must be specified.
string
setReplicaSet
Optional. Name of the replica set. Only needed for self hosted replica set type MongoDB cluster. For SRV connection format, this field must be empty.
For Standard connection format, this field must be specified.
var
string
$this
getUsername
Required. Username for the MongoDB connection.
string
setUsername
Required. Username for the MongoDB connection.
var
string
$this
getPassword
Optional. Password for the MongoDB connection. Mutually exclusive with the secret_manager_stored_password
field.
string
setPassword
Optional. Password for the MongoDB connection. Mutually exclusive with the secret_manager_stored_password
field.
var
string
$this
getSecretManagerStoredPassword
Optional. A reference to a Secret Manager resource name storing the
SQLServer connection password. Mutually exclusive with the password
field.
string
setSecretManagerStoredPassword
Optional. A reference to a Secret Manager resource name storing the
SQLServer connection password. Mutually exclusive with the password
field.
var
string
$this
getSslConfig
Optional. SSL configuration for the MongoDB connection.
hasSslConfig
clearSslConfig
setSslConfig
Optional. SSL configuration for the MongoDB connection.
$this
getSrvConnectionFormat
Srv connection format.
hasSrvConnectionFormat
setSrvConnectionFormat
Srv connection format.
$this
getStandardConnectionFormat
Standard connection format.
hasStandardConnectionFormat
setStandardConnectionFormat
Standard connection format.
$this
getMongodbConnectionFormat
string

