- Resource: Entry
- EntryType
- IntegratedSystem
- GcsFilesetSpec
- GcsFileSpec
- BigQueryTableSpec
- TableSourceType
- ViewSpec
- TableSpec
- BigQueryDateShardedSpec
- Schema
- ColumnSchema
- UsageSignal
- UsageStats
- Methods
Resource: Entry
Entry Metadata. A Data Catalog Entry resource represents another resource in Google Cloud Platform (such as a BigQuery dataset or a Pub/Sub topic), or outside of Google Cloud Platform. Clients can use the linkedResource
field in the Entry resource to refer to the original resource ID of the source system.
An Entry resource contains resource details, such as its schema. An Entry can also be used to attach flexible metadata, such as a Tag
.
JSON representation |
---|
{ "name": string, "linkedResource": string, "displayName": string, "description": string, "schema": { object ( |
Fields | |
---|---|
name |
Output only. Identifier. The Data Catalog resource name of the entry in URL format. Example:
Note that this Entry and its child resources may not actually be stored in the location in this name. |
linked |
The resource this metadata entry refers to. For Google Cloud Platform resources,
Output only when Entry is of type in the EntryType enum. For entries with userSpecifiedType, this field is optional and defaults to an empty string. |
display |
Display information such as title and description. A short name to identify the entry, for example, "Analytics Data - Jan 2011". Default value is an empty string. |
description |
Entry description, which can consist of several sentences or paragraphs that describe entry contents. Default value is an empty string. |
schema |
Schema of the entry. An entry might not have any schema attached to it. |
source |
Output only. Timestamps about the underlying resource, not about this Data Catalog entry. Output only when Entry is of type in the EntryType enum. For entries with userSpecifiedType, this field is optional and defaults to an empty timestamp. |
usage |
Output only. Statistics on the usage level of the resource. |
Union field entry_type . Required. Entry type. entry_type can be only one of the following: |
|
type |
The type of the entry. Only used for Entries with types in the EntryType enum. |
user |
Entry type if it does not fit any of the input-allowed values listed in Currently, only FILESET enum value is allowed. All other entries created through Data Catalog must use |
Union field system . The source system of the entry. system can be only one of the following: |
|
integrated |
Output only. This field indicates the entry's source system that Data Catalog integrates with, such as BigQuery or Pub/Sub. |
user |
This field indicates the entry's source system that Data Catalog does not integrate with. |
Union field type_spec . Type specification information. type_spec can be only one of the following: |
|
gcs |
Specification that applies to a Cloud Storage fileset. This is only valid on entries of type FILESET. |
bigquery |
Specification that applies to a BigQuery table. This is only valid on entries of type |
bigquery |
Specification for a group of BigQuery tables with name pattern |
EntryType
Entry resources in Data Catalog can be of different types e.g. a BigQuery Table entry is of type TABLE
. This enum describes all the possible types Data Catalog contains.
Enums | |
---|---|
ENTRY_TYPE_UNSPECIFIED |
Default unknown type. |
TABLE |
Output only. The type of entry that has a GoogleSQL schema, including logical views. |
MODEL |
Output only. The type of models. https://cloud.google.com/bigquery-ml/docs/bigqueryml-intro |
DATA_STREAM |
Output only. An entry type which is used for streaming entries. Example: Pub/Sub topic. |
FILESET |
An entry type which is a set of files or objects. Example: Cloud Storage fileset. |
IntegratedSystem
This enum describes all the possible systems that Data Catalog integrates with.
Enums | |
---|---|
INTEGRATED_SYSTEM_UNSPECIFIED |
Default unknown system. |
BIGQUERY |
BigQuery. |
CLOUD_PUBSUB |
Cloud Pub/Sub. |
GcsFilesetSpec
Describes a Cloud Storage fileset entry.
JSON representation |
---|
{
"filePatterns": [
string
],
"sampleGcsFileSpecs": [
{
object ( |
Fields | |
---|---|
file |
Required. Patterns to identify a set of files in Google Cloud Storage. See Cloud Storage documentation for more information. Note that bucket wildcards are currently not supported. Examples of valid filePatterns:
You can combine wildcards to provide more powerful matches, for example:
|
sample |
Output only. Sample files contained in this fileset, not all files contained in this fileset are represented here. |
GcsFileSpec
Specifications of a single file in Cloud Storage.
JSON representation |
---|
{
"filePath": string,
"gcsTimestamps": {
object ( |
Fields | |
---|---|
file |
Required. The full file path. Example: |
gcs |
Output only. Timestamps about the Cloud Storage file. |
size |
Output only. The size of the file, in bytes. |
BigQueryTableSpec
Describes a BigQuery table.
JSON representation |
---|
{ "tableSourceType": enum ( |
Fields | |
---|---|
table |
Output only. The table source type. |
Union field type_spec . Output only. type_spec can be only one of the following: |
|
view |
Table view specification. This field should only be populated if |
table |
Spec of a BigQuery table. This field should only be populated if |
TableSourceType
Table source type.
Enums | |
---|---|
TABLE_SOURCE_TYPE_UNSPECIFIED |
Default unknown type. |
BIGQUERY_VIEW |
Table view. |
BIGQUERY_TABLE |
BigQuery native table. |
BIGQUERY_MATERIALIZED_VIEW |
BigQuery materialized view. |
ViewSpec
Table view specification.
JSON representation |
---|
{ "viewQuery": string } |
Fields | |
---|---|
view |
Output only. The query that defines the table view. |
TableSpec
Normal BigQuery table spec.
JSON representation |
---|
{ "groupedEntry": string } |
Fields | |
---|---|
grouped |
Output only. If the table is a dated shard, i.e., with name pattern |
BigQueryDateShardedSpec
Spec for a group of BigQuery tables with name pattern [prefix]YYYYMMDD
. Context: https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding
JSON representation |
---|
{ "dataset": string, "tablePrefix": string, "shardCount": string } |
Fields | |
---|---|
dataset |
Output only. The Data Catalog resource name of the dataset entry the current table belongs to, for example, |
table |
Output only. The table name prefix of the shards. The name of any given shard is |
shard |
Output only. Total number of shards. |
Schema
Represents a schema (e.g. BigQuery, GoogleSQL, Avro schema).
JSON representation |
---|
{
"columns": [
{
object ( |
Fields | |
---|---|
columns[] |
Required. Schema of columns. A maximum of 10,000 columns and sub-columns can be specified. |
ColumnSchema
Representation of a column within a schema. Columns could be nested inside other columns.
JSON representation |
---|
{
"column": string,
"type": string,
"description": string,
"mode": string,
"subcolumns": [
{
object ( |
Fields | |
---|---|
column |
Required. Name of the column. |
type |
Required. Type of the column. |
description |
Optional. Description of the column. Default value is an empty string. |
mode |
Optional. A column's mode indicates whether the values in this column are required, nullable, etc. Only |
subcolumns[] |
Optional. Schema of sub-columns. A column can have zero or more sub-columns. |
UsageSignal
The set of all usage signals that we store in Data Catalog.
JSON representation |
---|
{
"updateTime": string,
"usageWithinTimeRange": {
string: {
object ( |
Fields | |
---|---|
update |
The timestamp of the end of the usage statistics duration. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
usage |
Usage statistics over each of the pre-defined time ranges, supported strings for time ranges are {"24H", "7D", "30D"}. |
UsageStats
Detailed counts on the entry's usage. Caveats: - Only BigQuery tables have usage stats - The usage stats only include BigQuery query jobs - The usage stats might be underestimated, e.g. wildcard table references are not yet counted in usage computation https://cloud.google.com/bigquery/docs/querying-wildcard-tables
JSON representation |
---|
{ "totalCompletions": number, "totalFailures": number, "totalCancellations": number, "totalExecutionTimeForCompletionsMillis": number } |
Fields | |
---|---|
total |
The number of times that the underlying entry was successfully used. |
total |
The number of times that the underlying entry was attempted to be used but failed. |
total |
The number of times that the underlying entry was attempted to be used but was cancelled by the user. |
total |
Total time spent (in milliseconds) during uses the resulted in completions. |
Methods |
|
---|---|
|
Creates an entry. |
|
Deletes an existing entry. |
|
Gets an entry. |
|
Gets the access control policy for a resource. |
|
Lists entries. |
|
Updates an existing entry. |
|
Returns the caller's permissions on a resource. |