You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mmv1/products/dataplex/Datascan.yaml
+109-1Lines changed: 109 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -92,6 +92,20 @@ examples:
92
92
test_env_vars:
93
93
project_name: 'PROJECT_NAME'
94
94
exclude_docs: true
95
+
- name: 'dataplex_datascan_basic_discovery'
96
+
primary_resource_id: 'basic_discovery'
97
+
vars:
98
+
datascan_name: 'datadiscovery-basic'
99
+
test_env_vars:
100
+
project_name: 'PROJECT_NAME'
101
+
location: 'REGION'
102
+
- name: 'dataplex_datascan_full_discovery'
103
+
primary_resource_id: 'full_discovery'
104
+
vars:
105
+
datascan_name: 'datadiscovery-full'
106
+
test_env_vars:
107
+
project_name: 'PROJECT_NAME'
108
+
location: 'REGION'
95
109
parameters:
96
110
- name: 'location'
97
111
type: String
@@ -170,7 +184,7 @@ properties:
170
184
type: String
171
185
description: |
172
186
The service-qualified full resource name of the cloud resource for a DataScan job to scan against. The field could be:
173
-
(Cloud Storage bucket for DataDiscoveryScan)BigQuery table of type "TABLE" for DataProfileScan/DataQualityScan.
187
+
Cloud Storage bucket (//storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID) for DataDiscoveryScan OR BigQuery table of type "TABLE" (/bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID) for DataProfileScan/DataQualityScan.
174
188
immutable: true
175
189
exactly_one_of:
176
190
- 'data.0.entity'
@@ -242,13 +256,15 @@ properties:
242
256
- 'DATA_SCAN_TYPE_UNSPECIFIED'
243
257
- 'DATA_QUALITY'
244
258
- 'DATA_PROFILE'
259
+
- 'DATA_DISCOVERY'
245
260
- name: 'dataQualitySpec'
246
261
type: NestedObject
247
262
description: |
248
263
DataQualityScan related setting.
249
264
exactly_one_of:
250
265
- 'data_quality_spec'
251
266
- 'data_profile_spec'
267
+
- 'data_discovery_spec'
252
268
properties:
253
269
- name: 'samplingPercent'
254
270
type: Double
@@ -498,6 +514,7 @@ properties:
498
514
exactly_one_of:
499
515
- 'data_quality_spec'
500
516
- 'data_profile_spec'
517
+
- 'data_discovery_spec'
501
518
properties:
502
519
- name: 'samplingPercent'
503
520
type: Double
@@ -552,3 +569,94 @@ properties:
552
569
For instance, if 'x' is of nested field type, listing 'x' is supported but 'x.y.z' is not supported. Here 'y' and 'y.z' are nested fields of 'x'.
553
570
item_type:
554
571
type: String
572
+
- name: 'dataDiscoverySpec'
573
+
type: NestedObject
574
+
description: |
575
+
DataDiscoveryScan related setting.
576
+
send_empty_value: true
577
+
allow_empty_object: true
578
+
exactly_one_of:
579
+
- 'data_quality_spec'
580
+
- 'data_profile_spec'
581
+
- 'data_discovery_spec'
582
+
properties:
583
+
- name: 'bigqueryPublishingConfig'
584
+
type: NestedObject
585
+
description: |
586
+
Configuration for metadata publishing.
587
+
properties:
588
+
- name: tableType
589
+
type: Enum
590
+
description: |
591
+
Determines whether to publish discovered tables as BigLake external tables or non-BigLake external tables.
592
+
enum_values:
593
+
- TABLE_TYPE_UNSPECIFIED
594
+
- EXTERNAL
595
+
- BIGLAKE
596
+
- name: connection
597
+
type: String
598
+
description: |
599
+
The BigQuery connection used to create BigLake tables. Must be in the form `projects/{projectId}/locations/{locationId}/connections/{connection_id}`.
600
+
- name: location
601
+
type: String
602
+
description: |
603
+
The location of the BigQuery dataset to publish BigLake external or non-BigLake external tables to.
604
+
- name: project
605
+
type: String
606
+
description: |
607
+
The project of the BigQuery dataset to publish BigLake external or non-BigLake external tables to. If not specified, the project of the Cloud Storage bucket will be used. The format is "projects/{project_id_or_number}".
608
+
- name: 'storageConfig'
609
+
type: NestedObject
610
+
description: |
611
+
Configurations related to Cloud Storage as the data source.
612
+
properties:
613
+
- name: includePatterns
614
+
type: Array
615
+
description: |
616
+
Defines the data to include during discovery when only a subset of the data should be considered. Provide a list of patterns that identify the data to include. For Cloud Storage bucket assets, these patterns are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these patterns are interpreted as patterns to match table names.
617
+
item_type:
618
+
type: String
619
+
- name: excludePatterns
620
+
type: Array
621
+
description: |
622
+
Defines the data to exclude during discovery. Provide a list of patterns that identify the data to exclude. For Cloud Storage bucket assets, these patterns are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these patterns are interpreted as patterns to match table names.
623
+
item_type:
624
+
type: String
625
+
- name: csvOptions
626
+
type: NestedObject
627
+
description: |
628
+
Configuration for CSV data.
629
+
properties:
630
+
- name: headerRows
631
+
type: Integer
632
+
description: |
633
+
The number of rows to interpret as header rows that should be skipped when reading data rows.
634
+
- name: delimiter
635
+
type: String
636
+
description: |
637
+
The delimiter that is used to separate values. The default is `,` (comma).
638
+
- name: encoding
639
+
type: String
640
+
description: |
641
+
The character encoding of the data. The default is UTF-8.
642
+
- name: typeInferenceDisabled
643
+
type: Boolean
644
+
description: |
645
+
Whether to disable the inference of data types for CSV data. If true, all columns are registered as strings.
646
+
- name: quote
647
+
type: String
648
+
description: |
649
+
The character used to quote column values. Accepts `"` (double quotation mark) or `'` (single quotation mark). If unspecified, defaults to `"` (double quotation mark).
650
+
- name: jsonOptions
651
+
type: NestedObject
652
+
description: |
653
+
Configuration for JSON data.
654
+
properties:
655
+
- name: encoding
656
+
type: String
657
+
description: |
658
+
The character encoding of the data. The default is UTF-8.
659
+
- name: typeInferenceDisabled
660
+
type: Boolean
661
+
description: |
662
+
Whether to disable the inference of data types for JSON data. If true, all columns are registered as their primitive types (strings, number, or boolean).
0 commit comments