# Class MongodbProfile (1.19.0)

1.19.0 (latest) 1.18.0 1.17.0 1.16.0 1.15.0 1.14.1 1.13.2 1.12.0 1.11.0 1.10.1 1.9.5 1.8.0 1.7.0 1.6.1 1.5.1 1.4.1 1.3.0 1.2.2 1.1.1 1.0.2 0.4.3 0.3.1 0.2.0 0.1.3

    MongodbProfile(mapping=None, *, ignore_unknown_fields=False, **kwargs)

MongoDB profile.

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[https://docs.cloud.google.com/python/docs/reference/datastream/latest/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` | `https://docs.cloud.google.com/python/docs/reference/datastream/latest/google.cloud.datastream_v1.types.MongodbSslConfig` Optional. SSL configuration for the MongoDB connection. |
| `srv_connection_format` | `https://docs.cloud.google.com/python/docs/reference/datastream/latest/google.cloud.datastream_v1.types.SrvConnectionFormat` Srv connection format. This field is a member of `oneof`_ `mongodb_connection_format`. |
| `standard_connection_format` | `https://docs.cloud.google.com/python/docs/reference/datastream/latest/google.cloud.datastream_v1.types.StandardConnectionFormat` Standard connection format. This field is a member of `oneof`_ `mongodb_connection_format`. |