Google Cloud Dataplex V1 Client - Class DataAttribute (0.12.0)

Reference documentation and code samples for the Google Cloud Dataplex V1 Client class 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

Generated from protobuf message google.cloud.dataplex.v1.DataAttribute

Namespace

Google \ Cloud \ Dataplex \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name 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}.

↳ uid 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.

↳ create_time Google\Protobuf\Timestamp

Output only. The time when the DataAttribute was created.

↳ update_time Google\Protobuf\Timestamp

Output only. The time when the DataAttribute was last updated.

↳ description string

Optional. Description of the DataAttribute.

↳ display_name string

Optional. User friendly display name.

↳ labels array|Google\Protobuf\Internal\MapField

Optional. User-defined labels for the DataAttribute.

↳ parent_id 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]

↳ attribute_count int

Output only. The number of child attributes present for this attribute.

↳ etag 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.

↳ resource_access_spec Google\Cloud\Dataplex\V1\ResourceAccessSpec

Optional. Specified when applied to a resource (eg: Cloud Storage bucket, BigQuery dataset, BigQuery table).

↳ data_access_spec Google\Cloud\Dataplex\V1\DataAccessSpec

Optional. Specified when applied to data stored on the resource (eg: rows, columns in BigQuery Tables).

getName

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

Returns
TypeDescription
string

setName

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUid

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.

Returns
TypeDescription
string

setUid

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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. The time when the DataAttribute was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time when the DataAttribute was created.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. The time when the DataAttribute was last updated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The time when the DataAttribute was last updated.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getDescription

Optional. Description of the DataAttribute.

Returns
TypeDescription
string

setDescription

Optional. Description of the DataAttribute.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

Optional. User friendly display name.

Returns
TypeDescription
string

setDisplayName

Optional. User friendly display name.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLabels

Optional. User-defined labels for the DataAttribute.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

Optional. User-defined labels for the DataAttribute.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getParentId

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
TypeDescription
string

setParentId

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]

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAttributeCount

Output only. The number of child attributes present for this attribute.

Returns
TypeDescription
int

setAttributeCount

Output only. The number of child attributes present for this attribute.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getEtag

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
TypeDescription
string

setEtag

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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getResourceAccessSpec

Optional. Specified when applied to a resource (eg: Cloud Storage bucket, BigQuery dataset, BigQuery table).

Returns
TypeDescription
Google\Cloud\Dataplex\V1\ResourceAccessSpec|null

hasResourceAccessSpec

clearResourceAccessSpec

setResourceAccessSpec

Optional. Specified when applied to a resource (eg: Cloud Storage bucket, BigQuery dataset, BigQuery table).

Parameter
NameDescription
var Google\Cloud\Dataplex\V1\ResourceAccessSpec
Returns
TypeDescription
$this

getDataAccessSpec

Optional. Specified when applied to data stored on the resource (eg: rows, columns in BigQuery Tables).

Returns
TypeDescription
Google\Cloud\Dataplex\V1\DataAccessSpec|null

hasDataAccessSpec

clearDataAccessSpec

setDataAccessSpec

Optional. Specified when applied to data stored on the resource (eg: rows, columns in BigQuery Tables).

Parameter
NameDescription
var Google\Cloud\Dataplex\V1\DataAccessSpec
Returns
TypeDescription
$this