# Dataplex V1 API - Class Google::Cloud::Dataplex::V1::DataAttribute (v2.10.0)

2.10.0 (latest) 2.9.0 2.8.1 2.7.0 2.6.1 2.5.0 2.4.1 2.3.1 2.2.0 2.1.0 2.0.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.1 0.23.0 0.22.0 0.21.1 0.20.0 0.19.0 0.18.2 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.1 0.9.0 0.8.0 0.7.0 0.6.1 0.5.1 0.4.0 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the Dataplex V1 API class Google::Cloud::Dataplex::V1::DataAttribute.

Denotes one dataAttribute in a dataTaxonomy, for example, PII.
DataAttribute resources can be defined in a hierarchy.
A single dataAttribute resource can contain specs of multiple types

\`\`\`
PII

- ResourceAccessSpec : - readers :foo@bar.com
- DataAccessSpec : - readers :bar@foo.com \`\`\`

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #attribute_count

    def attribute_count() -> ::Integer

**Returns**

- (::Integer) --- Output only. The number of child attributes present for this attribute.

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time when the DataAttribute was created.

### #data_access_spec

    def data_access_spec() -> ::Google::Cloud::Dataplex::V1::DataAccessSpec

**Returns**

- ([::Google::Cloud::Dataplex::V1::DataAccessSpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-DataAccessSpec)) --- Optional. Specified when applied to data stored on the resource (eg: rows, columns in BigQuery Tables).

### #data_access_spec=

    def data_access_spec=(value) -> ::Google::Cloud::Dataplex::V1::DataAccessSpec

**Parameter**

- **value** ([::Google::Cloud::Dataplex::V1::DataAccessSpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-DataAccessSpec)) --- Optional. Specified when applied to data stored on the resource (eg: rows, columns in BigQuery Tables).
**Returns**

- ([::Google::Cloud::Dataplex::V1::DataAccessSpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-DataAccessSpec)) --- Optional. Specified when applied to data stored on the resource (eg: rows, columns in BigQuery Tables).

### #description

    def description() -> ::String

**Returns**

- (::String) --- Optional. Description of the DataAttribute.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Description of the DataAttribute.
**Returns**

- (::String) --- Optional. Description of the DataAttribute.

### #display_name

    def display_name() -> ::String

**Returns**

- (::String) --- Optional. User friendly display name.

### #display_name=

    def display_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. User friendly display name.
**Returns**

- (::String) --- Optional. User friendly display name.

### #etag

    def etag() -> ::String

**Returns**

- (::String) --- 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.

### #etag=

    def etag=(value) -> ::String

**Parameter**

- **value** (::String) --- 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.
**Returns**

- (::String) --- 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

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. User-defined labels for the DataAttribute.

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. User-defined labels for the DataAttribute.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. User-defined labels for the DataAttribute.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Output only. The relative resource name of the dataAttribute, of the form: projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}.

### #parent_id

    def parent_id() -> ::String

**Returns**

- (::String) --- Optional. The ID of the parent DataAttribute resource, should belong to the same data taxonomy. Circular dependency in parent chain is not valid. Maximum depth of the hierarchy allowed is 4. \[a -\> b -\> c -\> d -\> e, depth = 4\]

### #parent_id=

    def parent_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The ID of the parent DataAttribute resource, should belong to the same data taxonomy. Circular dependency in parent chain is not valid. Maximum depth of the hierarchy allowed is 4. \[a -\> b -\> c -\> d -\> e, depth = 4\]
**Returns**

- (::String) --- Optional. The ID of the parent DataAttribute resource, should belong to the same data taxonomy. Circular dependency in parent chain is not valid. Maximum depth of the hierarchy allowed is 4. \[a -\> b -\> c -\> d -\> e, depth = 4\]

### #resource_access_spec

    def resource_access_spec() -> ::Google::Cloud::Dataplex::V1::ResourceAccessSpec

**Returns**

- ([::Google::Cloud::Dataplex::V1::ResourceAccessSpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-ResourceAccessSpec)) --- Optional. Specified when applied to a resource (eg: Cloud Storage bucket, BigQuery dataset, BigQuery table).

### #resource_access_spec=

    def resource_access_spec=(value) -> ::Google::Cloud::Dataplex::V1::ResourceAccessSpec

**Parameter**

- **value** ([::Google::Cloud::Dataplex::V1::ResourceAccessSpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-ResourceAccessSpec)) --- Optional. Specified when applied to a resource (eg: Cloud Storage bucket, BigQuery dataset, BigQuery table).
**Returns**

- ([::Google::Cloud::Dataplex::V1::ResourceAccessSpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-ResourceAccessSpec)) --- Optional. Specified when applied to a resource (eg: Cloud Storage bucket, BigQuery dataset, BigQuery table).

### #uid

    def uid() -> ::String

**Returns**

- (::String) --- Output only. System generated globally unique ID for the DataAttribute. This ID will be different if the DataAttribute is deleted and re-created with the same name.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time when the DataAttribute was last updated.