# Class DataAsset (2.20.0)

2.20.0 (latest) 2.19.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.2 2.9.0 2.8.0 2.7.1 2.6.0 2.5.0 2.4.0 2.3.1 2.2.2 2.1.0 2.0.1 1.13.0 1.12.3 1.11.0 1.10.0 1.9.0 1.8.1 1.7.0 1.6.2 1.5.1 1.4.3 1.3.0 1.2.0 1.1.3 1.0.1 0.2.1 0.1.0

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

Represents a data asset resource that can be packaged and
shared via a data product.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Identifier. Resource name of the data asset. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} |
| `uid` | `str` Output only. System generated globally unique ID for the data asset. This ID will be different if the data asset is deleted and re-created with the same name. |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The time at which the data asset was created. |
| `update_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The time at which the data asset was last updated. |
| `etag` | `str` Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. |
| `labels` | `MutableMapping[str, str]` Optional. User-defined labels for the data asset. Example: :: { "environment": "production", "billing": "marketing-department" } |
| `resource` | `str` Required. Immutable. Full resource name of the cloud resource represented by the data asset. This must follow https://cloud.google.com/iam/docs/full-resource-names. Example: `//bigquery.googleapis.com/projects/my_project_123/datasets/dataset_456/tables/table_789` Only BigQuery tables and datasets are currently supported. Data asset creator must have getIamPolicy and setIamPolicy permissions on the resource. Data asset creator must also have resource specific get permission, for instance, bigquery.tables.get for BigQuery tables. |
| `access_group_configs` | `MutableMapping[str, https://docs.cloud.google.com/python/docs/reference/dataplex/latest/google.cloud.dataplex_v1.types.DataAsset.AccessGroupConfig]` Optional. Access groups configurations for this data asset. The key is `DataProduct.AccessGroup.id` and the value is `AccessGroupConfig`. Example: :: { "analyst": { "iamRoles": \["roles/bigquery.dataViewer"\] } } Currently, at most one IAM role is allowed per access group. For providing multiple predefined IAM roles, wrap them in a custom IAM role as per https://cloud.google.com/iam/docs/creating-custom-roles. |

## Classes

### AccessGroupConfig

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

Configuration for access group inherited from the parent data
product.

### AccessGroupConfigsEntry

    AccessGroupConfigsEntry(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, `.Message`]`` 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 `mapping` is a mapping type or there are keyword parameters. |

### LabelsEntry

    LabelsEntry(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, `.Message`]`` 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 `mapping` is a mapping type or there are keyword parameters. |