# Class DataExchange (0.6.0)

0.9.0 (latest) 0.8.0 0.7.0 0.6.0 0.5.20 0.4.20 0.3.2 0.2.1 0.1.1

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

A data exchange is a container that lets you share data.
Along with the descriptive information about the data exchange,
it contains listings that reference shared datasets.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Output only. The resource name of the data exchange. e.g. `projects/myproject/locations/us/dataExchanges/123`. |
| `display_name` | `str` Required. Human-readable display name of the data exchange. The display name must contain only Unicode letters, numbers (0-9), underscores (\\_), dashes (-), spaces ( ), ampersands (\&) and must not start or end with spaces. Default value is an empty string. Max length: 63 bytes. |
| `description` | `str` Optional. Description of the data exchange. The description must not contain Unicode non-characters as well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default value is an empty string. Max length: 2000 bytes. |
| `primary_contact` | `str` Optional. Email or URL of the primary point of contact of the data exchange. Max Length: 1000 bytes. |
| `documentation` | `str` Optional. Documentation describing the data exchange. |
| `listing_count` | `int` Output only. Number of listings contained in the data exchange. |
| `icon` | `bytes` Optional. Base64 encoded image representing the data exchange. Max Size: 3.0MiB Expected image dimensions are 512x512 pixels, however the API only performs validation on size of the encoded data. Note: For byte fields, the content of the fields are base64-encoded (which increases the size of the data by 33-36%) when using JSON on the wire. |
| `sharing_environment_config` | `https://docs.cloud.google.com/python/docs/reference/analyticshub/latest/google.cloud.bigquery_analyticshub_v1.types.SharingEnvironmentConfig` Optional. Configurable data sharing environment option for a data exchange. |
| `discovery_type` | `https://docs.cloud.google.com/python/docs/reference/analyticshub/latest/google.cloud.bigquery_analyticshub_v1.types.DiscoveryType` Optional. Type of discovery on the discovery page for all the listings under this exchange. Updating this field also updates (overwrites) the discovery_type field for all the listings under this exchange. This field is a member of `oneof`_ `_discovery_type`. |
| `log_linked_dataset_query_user_email` | `bool` Optional. By default, false. If true, the DataExchange has an email sharing mandate enabled. This field is a member of `oneof`_ `_log_linked_dataset_query_user_email`. |