Skip to content

Commit c61d59e

Browse files
mllMarek Lipert
andauthored
Add a new 'data_classification' field on 'dataplex_aspect_type' resource. (#15317)
Co-authored-by: Marek Lipert <[email protected]>
1 parent c9653ef commit c61d59e

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

mmv1/products/dataplex/AspectType.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,15 @@ properties:
127127
- 'TRANSFER_STATUS_UNSPECIFIED'
128128
- 'TRANSFER_STATUS_MIGRATED'
129129
- 'TRANSFER_STATUS_TRANSFERRED'
130+
- name: 'dataClassification'
131+
type: Enum
132+
description: |
133+
Classifies the data stored by the aspect.
134+
`DATA_CLASSIFICATION_UNSPECIFIED` denotes that the aspect contains only metadata
135+
while `METADATA_AND_DATA` indicates data derived content.
136+
<br><br>
137+
enum_values:
138+
- 'DATA_CLASSIFICATION_UNSPECIFIED'
139+
- 'METADATA_AND_DATA'
140+
immutable: true
141+
diff_suppress_func: 'tpgresource.EmptyOrDefaultStringSuppress("DATA_CLASSIFICATION_UNSPECIFIED")'

mmv1/templates/terraform/examples/dataplex_aspect_type_basic.tf.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ resource "google_dataplex_aspect_type" "{{$.PrimaryResourceId}}" {
33
project = "{{index $.TestEnvVars "project_name"}}"
44
location = "us-central1"
55

6+
data_classification = "DATA_CLASSIFICATION_UNSPECIFIED"
67
metadata_template = <<EOF
78
{
89
"name": "tf-test-template",

mmv1/templates/terraform/examples/dataplex_aspect_type_full.tf.tmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ resource "google_dataplex_aspect_type" "{{$.PrimaryResourceId}}" {
55

66
labels = { "tag": "test-tf" }
77
display_name = "terraform aspect type"
8-
description = "aspect type created by Terraform"
8+
description = "data aspect type created by Terraform"
9+
data_classification = "METADATA_AND_DATA"
910
metadata_template = <<EOF
1011
{
1112
"type": "record",

0 commit comments

Comments
 (0)