MongodbProfile(mapping=None, *, ignore_unknown_fields=False, **kwargs)Profile for connecting to a MongoDB source.
This message has oneof_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes |
|
|---|---|
| Name | Description |
host_addresses |
MutableSequence[google.cloud.datastream_v1.types.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 |
str
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 |
str
Required. Username for the MongoDB connection. |
password |
str
Optional. Password for the MongoDB connection. Mutually exclusive with the secret_manager_stored_password field.
|
secret_manager_stored_password |
str
Optional. A reference to a Secret Manager resource name storing the SQLServer connection password. Mutually exclusive with the password field.
|
ssl_config |
google.cloud.datastream_v1.types.MongodbSslConfig
Optional. SSL configuration for the MongoDB connection. |
srv_connection_format |
google.cloud.datastream_v1.types.SrvConnectionFormat
Srv connection format. This field is a member of oneof_ mongodb_connection_format.
|
standard_connection_format |
google.cloud.datastream_v1.types.StandardConnectionFormat
Standard connection format. This field is a member of oneof_ mongodb_connection_format.
|
additional_options |
MutableMapping[str, str]
Optional. Specifies additional options for the MongoDB connection. The options should be sent as key-value pairs, for example: additional_options = {"serverSelectionTimeoutMS": "10000", "directConnection": "true"}.
Keys are case-sensitive and should match the official
MongoDB connection string options:
https://www.mongodb.com/docs/manual/reference/connection-string-options/
The server will not modify the values provided by the user.
|
Classes
AdditionalOptionsEntry
AdditionalOptionsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)The abstract base class for a message.
| Parameters | |
|---|---|
| Name | Description |
kwargs |
dict
Keys and values corresponding to the fields of the message. |
mapping |
Union[dict,
A dictionary or message to be used to determine the values for this message. |
ignore_unknown_fields |
Optional(bool)
If True, do not raise errors for unknown fields. Only applied if |