UNPKG

googleapis

Version:
998 lines 337 kB
/// <reference types="node" /> import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; import { Readable } from 'stream'; export declare namespace datacatalog_v1 { export interface Options extends GlobalOptions { version: 'v1'; } interface StandardParameters { /** * Auth client or API Key for the request */ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth; /** * V1 error format. */ '$.xgafv'?: string; /** * OAuth access token. */ access_token?: string; /** * Data format for response. */ alt?: string; /** * JSONP */ callback?: string; /** * Selector specifying which fields to include in a partial response. */ fields?: string; /** * API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** * OAuth 2.0 token for the current user. */ oauth_token?: string; /** * Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** * Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** * Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** * Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; } /** * Google Cloud Data Catalog API * * A fully managed and highly scalable data discovery and metadata management service. * * @example * ```js * const {google} = require('googleapis'); * const datacatalog = google.datacatalog('v1'); * ``` */ export class Datacatalog { context: APIRequestContext; catalog: Resource$Catalog; entries: Resource$Entries; projects: Resource$Projects; constructor(options: GlobalOptions, google?: GoogleConfigurable); } /** * Associates `members`, or principals, with a `role`. */ export interface Schema$Binding { /** * The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ condition?: Schema$Expr; /** * Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid\}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid\}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid\}.svc.id.goog[{namespace\}/{kubernetes-sa\}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid\}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid\}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid\}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid\}` and the recovered group retains the role in the binding. * `domain:{domain\}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. */ members?: string[] | null; /** * Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */ role?: string | null; } /** * A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \} */ export interface Schema$Empty { } /** * Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. */ export interface Schema$Expr { /** * Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */ description?: string | null; /** * Textual representation of an expression in Common Expression Language syntax. */ expression?: string | null; /** * Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */ location?: string | null; /** * Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. */ title?: string | null; } /** * Request message for `GetIamPolicy` method. */ export interface Schema$GetIamPolicyRequest { /** * OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`. */ options?: Schema$GetPolicyOptions; } /** * Encapsulates settings provided to GetIamPolicy. */ export interface Schema$GetPolicyOptions { /** * Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ requestedPolicyVersion?: number | null; } /** * Specification for the BigQuery connection. */ export interface Schema$GoogleCloudDatacatalogV1BigQueryConnectionSpec { /** * Specification for the BigQuery connection to a Cloud SQL instance. */ cloudSql?: Schema$GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec; /** * The type of the BigQuery connection. */ connectionType?: string | null; /** * True if there are credentials attached to the BigQuery connection; false otherwise. */ hasCredential?: boolean | null; } /** * Specification for a group of BigQuery tables with the `[prefix]YYYYMMDD` name pattern. For more information, see [Introduction to partitioned tables] (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding). */ export interface Schema$GoogleCloudDatacatalogV1BigQueryDateShardedSpec { /** * Output only. The Data Catalog resource name of the dataset entry the current table belongs to. For example: `projects/{PROJECT_ID\}/locations/{LOCATION\}/entrygroups/{ENTRY_GROUP_ID\}/entries/{ENTRY_ID\}`. */ dataset?: string | null; /** * Output only. BigQuery resource name of the latest shard. */ latestShardResource?: string | null; /** * Output only. Total number of shards. */ shardCount?: string | null; /** * Output only. The table name prefix of the shards. The name of any given shard is `[table_prefix]YYYYMMDD`. For example, for the `MyTable20180101` shard, the `table_prefix` is `MyTable`. */ tablePrefix?: string | null; } /** * Fields specific for BigQuery routines. */ export interface Schema$GoogleCloudDatacatalogV1BigQueryRoutineSpec { /** * Paths of the imported libraries. */ importedLibraries?: string[] | null; } /** * Describes a BigQuery table. */ export interface Schema$GoogleCloudDatacatalogV1BigQueryTableSpec { /** * Output only. The table source type. */ tableSourceType?: string | null; /** * Specification of a BigQuery table. Populated only if the `table_source_type` is `BIGQUERY_TABLE`. */ tableSpec?: Schema$GoogleCloudDatacatalogV1TableSpec; /** * Table view specification. Populated only if the `table_source_type` is `BIGQUERY_VIEW`. */ viewSpec?: Schema$GoogleCloudDatacatalogV1ViewSpec; } /** * Business Context of the entry. */ export interface Schema$GoogleCloudDatacatalogV1BusinessContext { /** * Contact people for the entry. */ contacts?: Schema$GoogleCloudDatacatalogV1Contacts; /** * Entry overview fields for rich text descriptions of entries. */ entryOverview?: Schema$GoogleCloudDatacatalogV1EntryOverview; } /** * Specification for the BigQuery connection to a Cloud SQL instance. */ export interface Schema$GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec { /** * Database name. */ database?: string | null; /** * Cloud SQL instance ID in the format of `project:location:instance`. */ instanceId?: string | null; /** * Type of the Cloud SQL database. */ type?: string | null; } /** * A column within a schema. Columns can be nested inside other columns. */ export interface Schema$GoogleCloudDatacatalogV1ColumnSchema { /** * Required. Name of the column. Must be a UTF-8 string without dots (.). The maximum size is 64 bytes. */ column?: string | null; /** * Optional. Description of the column. Default value is an empty string. The description must be a UTF-8 string with the maximum size of 2000 bytes. */ description?: string | null; /** * Optional. A column's mode indicates whether values in this column are required, nullable, or repeated. Only `NULLABLE`, `REQUIRED`, and `REPEATED` values are supported. Default mode is `NULLABLE`. */ mode?: string | null; /** * Optional. Schema of sub-columns. A column can have zero or more sub-columns. */ subcolumns?: Schema$GoogleCloudDatacatalogV1ColumnSchema[]; /** * Required. Type of the column. Must be a UTF-8 string with the maximum size of 128 bytes. */ type?: string | null; } /** * Contact people for the entry. */ export interface Schema$GoogleCloudDatacatalogV1Contacts { /** * The list of contact people for the entry. */ people?: Schema$GoogleCloudDatacatalogV1ContactsPerson[]; } /** * A contact person for the entry. */ export interface Schema$GoogleCloudDatacatalogV1ContactsPerson { /** * Designation of the person, for example, Data Steward. */ designation?: string | null; /** * Email of the person in the format of `john.doe@xyz`, ``, or `John Doe`. */ email?: string | null; } /** * Cross-regional source used to import an existing taxonomy into a different region. */ export interface Schema$GoogleCloudDatacatalogV1CrossRegionalSource { /** * Required. The resource name of the source taxonomy to import. */ taxonomy?: string | null; } /** * Specification that applies to a table resource. Valid only for entries with the `TABLE` type. */ export interface Schema$GoogleCloudDatacatalogV1DatabaseTableSpec { /** * Output only. Fields specific to a Dataplex table and present only in the Dataplex table entries. */ dataplexTable?: Schema$GoogleCloudDatacatalogV1DataplexTableSpec; /** * Type of this table. */ type?: string | null; } /** * External table registered by Dataplex. Dataplex publishes data discovered from an asset into multiple other systems (BigQuery, DPMS) in form of tables. We call them "external tables". External tables are also synced into the Data Catalog. This message contains pointers to those external tables (fully qualified name, resource name et cetera) within the Data Catalog. */ export interface Schema$GoogleCloudDatacatalogV1DataplexExternalTable { /** * Name of the Data Catalog entry representing the external table. */ dataCatalogEntry?: string | null; /** * Fully qualified name (FQN) of the external table. */ fullyQualifiedName?: string | null; /** * Google Cloud resource name of the external table. */ googleCloudResource?: string | null; /** * Service in which the external table is registered. */ system?: string | null; } /** * Entry specyfication for a Dataplex fileset. */ export interface Schema$GoogleCloudDatacatalogV1DataplexFilesetSpec { /** * Common Dataplex fields. */ dataplexSpec?: Schema$GoogleCloudDatacatalogV1DataplexSpec; } /** * Common Dataplex fields. */ export interface Schema$GoogleCloudDatacatalogV1DataplexSpec { /** * Fully qualified resource name of an asset in Dataplex, to which the underlying data source (Cloud Storage bucket or BigQuery dataset) of the entity is attached. */ asset?: string | null; /** * Compression format of the data, e.g., zip, gzip etc. */ compressionFormat?: string | null; /** * Format of the data. */ dataFormat?: Schema$GoogleCloudDatacatalogV1PhysicalSchema; /** * Project ID of the underlying Cloud Storage or BigQuery data. Note that this may not be the same project as the correspondingly Dataplex lake / zone / asset. */ projectId?: string | null; } /** * Entry specification for a Dataplex table. */ export interface Schema$GoogleCloudDatacatalogV1DataplexTableSpec { /** * Common Dataplex fields. */ dataplexSpec?: Schema$GoogleCloudDatacatalogV1DataplexSpec; /** * List of external tables registered by Dataplex in other systems based on the same underlying data. External tables allow to query this data in those systems. */ externalTables?: Schema$GoogleCloudDatacatalogV1DataplexExternalTable[]; /** * Indicates if the table schema is managed by the user or not. */ userManaged?: boolean | null; } /** * Physical location of an entry. */ export interface Schema$GoogleCloudDatacatalogV1DataSource { /** * Full name of a resource as defined by the service. For example: `//bigquery.googleapis.com/projects/{PROJECT_ID\}/locations/{LOCATION\}/datasets/{DATASET_ID\}/tables/{TABLE_ID\}` */ resource?: string | null; /** * Service that physically stores the data. */ service?: string | null; /** * Output only. Data Catalog entry name, if applicable. */ sourceEntry?: string | null; /** * Detailed properties of the underlying storage. */ storageProperties?: Schema$GoogleCloudDatacatalogV1StorageProperties; } /** * Specification that applies to a data source connection. Valid only for entries with the `DATA_SOURCE_CONNECTION` type. Only one of internal specs can be set at the time, and cannot be changed later. */ export interface Schema$GoogleCloudDatacatalogV1DataSourceConnectionSpec { /** * Output only. Fields specific to BigQuery connections. */ bigqueryConnectionSpec?: Schema$GoogleCloudDatacatalogV1BigQueryConnectionSpec; } /** * Entry metadata. A Data Catalog entry represents another resource in Google Cloud Platform (such as a BigQuery dataset or a Pub/Sub topic) or outside of it. You can use the `linked_resource` field in the entry resource to refer to the original resource ID of the source system. An entry resource contains resource details, for example, its schema. Additionally, you can attach flexible metadata to an entry in the form of a Tag. */ export interface Schema$GoogleCloudDatacatalogV1Entry { /** * Output only. Specification for a group of BigQuery tables with the `[prefix]YYYYMMDD` name pattern. For more information, see [Introduction to partitioned tables] (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding). */ bigqueryDateShardedSpec?: Schema$GoogleCloudDatacatalogV1BigQueryDateShardedSpec; /** * Output only. Specification that applies to a BigQuery table. Valid only for entries with the `TABLE` type. */ bigqueryTableSpec?: Schema$GoogleCloudDatacatalogV1BigQueryTableSpec; /** * Business Context of the entry. Not supported for BigQuery datasets */ businessContext?: Schema$GoogleCloudDatacatalogV1BusinessContext; /** * Specification that applies to a table resource. Valid only for entries with the `TABLE` type. */ databaseTableSpec?: Schema$GoogleCloudDatacatalogV1DatabaseTableSpec; /** * Output only. Physical location of the entry. */ dataSource?: Schema$GoogleCloudDatacatalogV1DataSource; /** * Specification that applies to a data source connection. Valid only for entries with the `DATA_SOURCE_CONNECTION` type. */ dataSourceConnectionSpec?: Schema$GoogleCloudDatacatalogV1DataSourceConnectionSpec; /** * Entry description that can consist of several sentences or paragraphs that describe entry contents. The description must not contain Unicode non-characters as well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF). The maximum size is 2000 bytes when encoded in UTF-8. Default value is an empty string. */ description?: string | null; /** * Display name of an entry. The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can't start or end with spaces. The maximum size is 200 bytes when encoded in UTF-8. Default value is an empty string. */ displayName?: string | null; /** * Specification that applies to a fileset resource. Valid only for entries with the `FILESET` type. */ filesetSpec?: Schema$GoogleCloudDatacatalogV1FilesetSpec; /** * Fully qualified name (FQN) of the resource. Set automatically for entries representing resources from synced systems. Settable only during creation and read-only afterwards. Can be used for search and lookup of the entries. FQNs take two forms: * For non-regionalized resources: `{SYSTEM\}:{PROJECT\}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS\}` * For regionalized resources: `{SYSTEM\}:{PROJECT\}.{LOCATION_ID\}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS\}` Example for a DPMS table: `dataproc_metastore:{PROJECT_ID\}.{LOCATION_ID\}.{INSTANCE_ID\}.{DATABASE_ID\}.{TABLE_ID\}` */ fullyQualifiedName?: string | null; /** * Specification that applies to a Cloud Storage fileset. Valid only for entries with the `FILESET` type. */ gcsFilesetSpec?: Schema$GoogleCloudDatacatalogV1GcsFilesetSpec; /** * Output only. Indicates the entry's source system that Data Catalog integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore. */ integratedSystem?: string | null; /** * Cloud labels attached to the entry. In Data Catalog, you can create and modify labels attached only to custom entries. Synced entries have unmodifiable labels that come from the source system. */ labels?: { [key: string]: string; } | null; /** * The resource this metadata entry refers to. For Google Cloud Platform resources, `linked_resource` is the [Full Resource Name] (https://cloud.google.com/apis/design/resource_names#full_resource_name). For example, the `linked_resource` for a table resource from BigQuery is: `//bigquery.googleapis.com/projects/{PROJECT_ID\}/datasets/{DATASET_ID\}/tables/{TABLE_ID\}` Output only when the entry is one of the types in the `EntryType` enum. For entries with a `user_specified_type`, this field is optional and defaults to an empty string. The resource string must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), periods (.), colons (:), slashes (/), dashes (-), and hashes (#). The maximum size is 200 bytes when encoded in UTF-8. */ linkedResource?: string | null; /** * Output only. The resource name of an entry in URL format. Note: The entry itself and its child resources might not be stored in the location specified in its name. */ name?: string | null; /** * Output only. Additional information related to the entry. Private to the current user. */ personalDetails?: Schema$GoogleCloudDatacatalogV1PersonalDetails; /** * Specification that applies to a user-defined function or procedure. Valid only for entries with the `ROUTINE` type. */ routineSpec?: Schema$GoogleCloudDatacatalogV1RoutineSpec; /** * Schema of the entry. An entry might not have any schema attached to it. */ schema?: Schema$GoogleCloudDatacatalogV1Schema; /** * Timestamps from the underlying resource, not from the Data Catalog entry. Output only when the entry has a system listed in the `IntegratedSystem` enum. For entries with `user_specified_system`, this field is optional and defaults to an empty timestamp. */ sourceSystemTimestamps?: Schema$GoogleCloudDatacatalogV1SystemTimestamps; /** * The type of the entry. Only used for entries with types listed in the `EntryType` enum. Currently, only `FILESET` enum value is allowed. All other entries created in Data Catalog must use the `user_specified_type`. */ type?: string | null; /** * Resource usage statistics. */ usageSignal?: Schema$GoogleCloudDatacatalogV1UsageSignal; /** * Indicates the entry's source system that Data Catalog doesn't automatically integrate with. The `user_specified_system` string has the following limitations: * Is case insensitive. * Must begin with a letter or underscore. * Can only contain letters, numbers, and underscores. * Must be at least 1 character and at most 64 characters long. */ userSpecifiedSystem?: string | null; /** * Custom entry type that doesn't match any of the values allowed for input and listed in the `EntryType` enum. When creating an entry, first check the type values in the enum. If there are no appropriate types for the new entry, provide a custom value, for example, `my_special_type`. The `user_specified_type` string has the following limitations: * Is case insensitive. * Must begin with a letter or underscore. * Can only contain letters, numbers, and underscores. * Must be at least 1 character and at most 64 characters long. */ userSpecifiedType?: string | null; } /** * Entry group metadata. An `EntryGroup` resource represents a logical grouping of zero or more Data Catalog Entry resources. */ export interface Schema$GoogleCloudDatacatalogV1EntryGroup { /** * Output only. Timestamps of the entry group. Default value is empty. */ dataCatalogTimestamps?: Schema$GoogleCloudDatacatalogV1SystemTimestamps; /** * Entry group description. Can consist of several sentences or paragraphs that describe the entry group contents. Default value is an empty string. */ description?: string | null; /** * A short name to identify the entry group, for example, "analytics data - jan 2011". Default value is an empty string. */ displayName?: string | null; /** * The resource name of the entry group in URL format. Note: The entry group itself and its child resources might not be stored in the location specified in its name. */ name?: string | null; } /** * Entry overview fields for rich text descriptions of entries. */ export interface Schema$GoogleCloudDatacatalogV1EntryOverview { /** * Entry overview with support for rich text. The overview must only contain Unicode characters, and should be formatted using HTML. The maximum length is 10 MiB as this value holds HTML descriptions including encoded images. The maximum length of the text without images is 100 KiB. */ overview?: string | null; } /** * Response message for ExportTaxonomies. */ export interface Schema$GoogleCloudDatacatalogV1ExportTaxonomiesResponse { /** * List of taxonomies and policy tags as nested protocol buffers. */ taxonomies?: Schema$GoogleCloudDatacatalogV1SerializedTaxonomy[]; } export interface Schema$GoogleCloudDatacatalogV1FieldType { /** * An enum type. */ enumType?: Schema$GoogleCloudDatacatalogV1FieldTypeEnumType; /** * Primitive types, such as string, boolean, etc. */ primitiveType?: string | null; } export interface Schema$GoogleCloudDatacatalogV1FieldTypeEnumType { /** * The set of allowed values for this enum. This set must not be empty and can include up to 100 allowed values. The display names of the values in this set must not be empty and must be case-insensitively unique within this set. The order of items in this set is preserved. This field can be used to create, remove, and reorder enum values. To rename enum values, use the `RenameTagTemplateFieldEnumValue` method. */ allowedValues?: Schema$GoogleCloudDatacatalogV1FieldTypeEnumTypeEnumValue[]; } export interface Schema$GoogleCloudDatacatalogV1FieldTypeEnumTypeEnumValue { /** * Required. The display name of the enum value. Must not be an empty string. The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can't start or end with spaces. The maximum length is 200 characters. */ displayName?: string | null; } /** * Specification that applies to a fileset. Valid only for entries with the 'FILESET' type. */ export interface Schema$GoogleCloudDatacatalogV1FilesetSpec { /** * Fields specific to a Dataplex fileset and present only in the Dataplex fileset entries. */ dataplexFileset?: Schema$GoogleCloudDatacatalogV1DataplexFilesetSpec; } /** * Describes a Cloud Storage fileset entry. */ export interface Schema$GoogleCloudDatacatalogV1GcsFilesetSpec { /** * Required. Patterns to identify a set of files in Google Cloud Storage. For more information, see [Wildcard Names] (https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). Note: Currently, bucket wildcards are not supported. Examples of valid `file_patterns`: * `gs://bucket_name/dir/x`: matches all files in `bucket_name/dir` directory * `gs://bucket_name/dir/x*`: matches all files in `bucket_name/dir` and all subdirectories * `gs://bucket_name/file*`: matches files prefixed by `file` in `bucket_name` * `gs://bucket_name/??.txt`: matches files with two characters followed by `.txt` in `bucket_name` * `gs://bucket_name/[aeiou].txt`: matches files that contain a single vowel character followed by `.txt` in `bucket_name` * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... or `m` followed by `.txt` in `bucket_name` * `gs://bucket_name/a/x/b`: matches all files in `bucket_name` that match the `a/x/b` pattern, such as `a/c/b`, `a/d/b` * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` You can combine wildcards to match complex sets of files, for example: `gs://bucket_name/[a-m]??.j*g` */ filePatterns?: string[] | null; /** * Output only. Sample files contained in this fileset, not all files contained in this fileset are represented here. */ sampleGcsFileSpecs?: Schema$GoogleCloudDatacatalogV1GcsFileSpec[]; } /** * Specification of a single file in Cloud Storage. */ export interface Schema$GoogleCloudDatacatalogV1GcsFileSpec { /** * Required. Full file path. Example: `gs://bucket_name/a/b.txt`. */ filePath?: string | null; /** * Output only. Creation, modification, and expiration timestamps of a Cloud Storage file. */ gcsTimestamps?: Schema$GoogleCloudDatacatalogV1SystemTimestamps; /** * Output only. File size in bytes. */ sizeBytes?: string | null; } /** * Request message for ImportTaxonomies. */ export interface Schema$GoogleCloudDatacatalogV1ImportTaxonomiesRequest { /** * Cross-regional source taxonomy to import. */ crossRegionalSource?: Schema$GoogleCloudDatacatalogV1CrossRegionalSource; /** * Inline source taxonomy to import. */ inlineSource?: Schema$GoogleCloudDatacatalogV1InlineSource; } /** * Response message for ImportTaxonomies. */ export interface Schema$GoogleCloudDatacatalogV1ImportTaxonomiesResponse { /** * Imported taxonomies. */ taxonomies?: Schema$GoogleCloudDatacatalogV1Taxonomy[]; } /** * Inline source containing taxonomies to import. */ export interface Schema$GoogleCloudDatacatalogV1InlineSource { /** * Required. Taxonomies to import. */ taxonomies?: Schema$GoogleCloudDatacatalogV1SerializedTaxonomy[]; } /** * Response message for ListEntries. */ export interface Schema$GoogleCloudDatacatalogV1ListEntriesResponse { /** * Entry details. */ entries?: Schema$GoogleCloudDatacatalogV1Entry[]; /** * Pagination token of the next results page. Empty if there are no more items in results. */ nextPageToken?: string | null; } /** * Response message for ListEntryGroups. */ export interface Schema$GoogleCloudDatacatalogV1ListEntryGroupsResponse { /** * Entry group details. */ entryGroups?: Schema$GoogleCloudDatacatalogV1EntryGroup[]; /** * Pagination token to specify in the next call to retrieve the next page of results. Empty if there are no more items. */ nextPageToken?: string | null; } /** * Response message for ListPolicyTags. */ export interface Schema$GoogleCloudDatacatalogV1ListPolicyTagsResponse { /** * Pagination token of the next results page. Empty if there are no more results in the list. */ nextPageToken?: string | null; /** * The policy tags that belong to the taxonomy. */ policyTags?: Schema$GoogleCloudDatacatalogV1PolicyTag[]; } /** * Response message for ListTags. */ export interface Schema$GoogleCloudDatacatalogV1ListTagsResponse { /** * Pagination token of the next results page. Empty if there are no more items in results. */ nextPageToken?: string | null; /** * Tag details. */ tags?: Schema$GoogleCloudDatacatalogV1Tag[]; } /** * Response message for ListTaxonomies. */ export interface Schema$GoogleCloudDatacatalogV1ListTaxonomiesResponse { /** * Pagination token of the next results page. Empty if there are no more results in the list. */ nextPageToken?: string | null; /** * Taxonomies that the project contains. */ taxonomies?: Schema$GoogleCloudDatacatalogV1Taxonomy[]; } /** * Request message for ModifyEntryContacts. */ export interface Schema$GoogleCloudDatacatalogV1ModifyEntryContactsRequest { /** * Required. The new value for the Contacts. */ contacts?: Schema$GoogleCloudDatacatalogV1Contacts; } /** * Request message for ModifyEntryOverview. */ export interface Schema$GoogleCloudDatacatalogV1ModifyEntryOverviewRequest { /** * Required. The new value for the Entry Overview. */ entryOverview?: Schema$GoogleCloudDatacatalogV1EntryOverview; } /** * Entry metadata relevant only to the user and private to them. */ export interface Schema$GoogleCloudDatacatalogV1PersonalDetails { /** * True if the entry is starred by the user; false otherwise. */ starred?: boolean | null; /** * Set if the entry is starred; unset otherwise. */ starTime?: string | null; } /** * Native schema used by a resource represented as an entry. Used by query engines for deserializing and parsing source data. */ export interface Schema$GoogleCloudDatacatalogV1PhysicalSchema { /** * Schema in Avro JSON format. */ avro?: Schema$GoogleCloudDatacatalogV1PhysicalSchemaAvroSchema; /** * Marks a CSV-encoded data source. */ csv?: Schema$GoogleCloudDatacatalogV1PhysicalSchemaCsvSchema; /** * Marks an ORC-encoded data source. */ orc?: Schema$GoogleCloudDatacatalogV1PhysicalSchemaOrcSchema; /** * Marks a Parquet-encoded data source. */ parquet?: Schema$GoogleCloudDatacatalogV1PhysicalSchemaParquetSchema; /** * Schema in protocol buffer format. */ protobuf?: Schema$GoogleCloudDatacatalogV1PhysicalSchemaProtobufSchema; /** * Schema in Thrift format. */ thrift?: Schema$GoogleCloudDatacatalogV1PhysicalSchemaThriftSchema; } /** * Schema in Avro JSON format. */ export interface Schema$GoogleCloudDatacatalogV1PhysicalSchemaAvroSchema { /** * JSON source of the Avro schema. */ text?: string | null; } /** * Marks a CSV-encoded data source. */ export interface Schema$GoogleCloudDatacatalogV1PhysicalSchemaCsvSchema { } /** * Marks an ORC-encoded data source. */ export interface Schema$GoogleCloudDatacatalogV1PhysicalSchemaOrcSchema { } /** * Marks a Parquet-encoded data source. */ export interface Schema$GoogleCloudDatacatalogV1PhysicalSchemaParquetSchema { } /** * Schema in protocol buffer format. */ export interface Schema$GoogleCloudDatacatalogV1PhysicalSchemaProtobufSchema { /** * Protocol buffer source of the schema. */ text?: string | null; } /** * Schema in Thrift format. */ export interface Schema$GoogleCloudDatacatalogV1PhysicalSchemaThriftSchema { /** * Thrift IDL source of the schema. */ text?: string | null; } /** * Denotes one policy tag in a taxonomy, for example, SSN. Policy tags can be defined in a hierarchy. For example: ``` + Geolocation + LatLong + City + ZipCode ``` Where the "Geolocation" policy tag contains three children. */ export interface Schema$GoogleCloudDatacatalogV1PolicyTag { /** * Output only. Resource names of child policy tags of this policy tag. */ childPolicyTags?: string[] | null; /** * Description of this policy tag. If not set, defaults to empty. The description must contain only Unicode characters, tabs, newlines, carriage returns and page breaks, and be at most 2000 bytes long when encoded in UTF-8. */ description?: string | null; /** * Required. User-defined name of this policy tag. The name can't start or end with spaces and must be unique within the parent taxonomy, contain only Unicode letters, numbers, underscores, dashes and spaces, and be at most 200 bytes long when encoded in UTF-8. */ displayName?: string | null; /** * Output only. Resource name of this policy tag in the URL format. The policy tag manager generates unique taxonomy IDs and policy tag IDs. */ name?: string | null; /** * Resource name of this policy tag's parent policy tag. If empty, this is a top level tag. If not set, defaults to an empty string. For example, for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag, and, for "Geolocation", this field is empty. */ parentPolicyTag?: string | null; } /** * Request message for RenameTagTemplateFieldEnumValue. */ export interface Schema$GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest { /** * Required. The new display name of the enum value. For example, `my_new_enum_value`. */ newEnumValueDisplayName?: string | null; } /** * Request message for RenameTagTemplateField. */ export interface Schema$GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest { /** * Required. The new ID of this tag template field. For example, `my_new_field`. */ newTagTemplateFieldId?: string | null; } /** * Request message for ReplaceTaxonomy. */ export interface Schema$GoogleCloudDatacatalogV1ReplaceTaxonomyRequest { /** * Required. Taxonomy to update along with its child policy tags. */ serializedTaxonomy?: Schema$GoogleCloudDatacatalogV1SerializedTaxonomy; } /** * Specification that applies to a routine. Valid only for entries with the `ROUTINE` type. */ export interface Schema$GoogleCloudDatacatalogV1RoutineSpec { /** * Fields specific for BigQuery routines. */ bigqueryRoutineSpec?: Schema$GoogleCloudDatacatalogV1BigQueryRoutineSpec; /** * The body of the routine. */ definitionBody?: string | null; /** * The language the routine is written in. The exact value depends on the source system. For BigQuery routines, possible values are: * `SQL` * `JAVASCRIPT` */ language?: string | null; /** * Return type of the argument. The exact value depends on the source system and the language. */ returnType?: string | null; /** * Arguments of the routine. */ routineArguments?: Schema$GoogleCloudDatacatalogV1RoutineSpecArgument[]; /** * The type of the routine. */ routineType?: string | null; } /** * Input or output argument of a function or stored procedure. */ export interface Schema$GoogleCloudDatacatalogV1RoutineSpecArgument { /** * Specifies whether the argument is input or output. */ mode?: string | null; /** * The name of the argument. A return argument of a function might not have a name. */ name?: string | null; /** * Type of the argument. The exact value depends on the source system and the language. */ type?: string | null; } /** * Represents a schema, for example, a BigQuery, GoogleSQL, or Avro schema. */ export interface Schema$GoogleCloudDatacatalogV1Schema { /** * The unified GoogleSQL-like schema of columns. The overall maximum number of columns and nested columns is 10,000. The maximum nested depth is 15 levels. */ columns?: Schema$GoogleCloudDatacatalogV1ColumnSchema[]; } /** * Request message for SearchCatalog. */ export interface Schema$GoogleCloudDatacatalogV1SearchCatalogRequest { /** * Specifies the order of results. Currently supported case-sensitive values are: * `relevance` that can only be descending * `last_modified_timestamp [asc|desc]` with descending (`desc`) as default * `default` that can only be descending If this parameter is omitted, it defaults to the descending `relevance`. */ orderBy?: string | null; /** * Number of results to return in a single search page. Can't be negative or 0, defaults to 10 in this case. The maximum number is 1000. If exceeded, throws an "invalid argument" exception. */ pageSize?: number | null; /** * Optional. Pagination token that, if specified, returns the next page of search results. If empty, returns the first page. This token is returned in the SearchCatalogResponse.next_page_token field of the response to a previous SearchCatalogRequest call. */ pageToken?: string | null; /** * Optional. The query string with a minimum of 3 characters and specific syntax. For more information, see [Data Catalog search syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). An empty query string returns all data assets (in the specified scope) that you have access to. A query string can be a simple `xyz` or qualified by predicates: * `name:x` * `column:y` * `description:z` */ query?: string | null; /** * Required. The scope of this search request. The `scope` is invalid if `include_org_ids`, `include_project_ids` are empty AND `include_gcp_public_datasets` is set to `false`. In this case, the request returns an error. */ scope?: Schema$GoogleCloudDatacatalogV1SearchCatalogRequestScope; } /** * The criteria that select the subspace used for query matching. */ export interface Schema$GoogleCloudDatacatalogV1SearchCatalogRequestScope { /** * If `true`, include Google Cloud Platform (GCP) public datasets in search results. By default, they are excluded. See [Google Cloud Public Datasets](/public-datasets) for more information. */ includeGcpPublicDatasets?: boolean | null; /** * The list of organization IDs to search within. To find your organization ID, follow the steps from [Creating and managing organizations] (/resource-manager/docs/creating-managing-organization). */ includeOrgIds?: string[] | null; /** * The list of project IDs to search within. For more information on the distinction between project names, IDs, and numbers, see [Projects](/docs/overview/#projects). */ includeProjectIds?: string[] | null; /** * Optional. This field is deprecated. The search mechanism for public and private tag templates is the same. */ includePublicTagTemplates?: boolean | null; /** * Optional. The list of locations to search within. If empty, all locations are searched. Returns an error if any location in the list isn't one of the [Supported regions](https://cloud.google.com/data-catalog/docs/concepts/regions#supported_regions). If a location is unreachable, its name is returned in the `SearchCatalogResponse.unreachable` field. To get additional information on the error, repeat the search request and set the location name as the value of this parameter. */ restrictedLocations?: string[] | null; /** * Optional. If `true`, search only among starred entries. By default, all results are returned, starred or not. */ starredOnly?: boolean | null; } /** * Response message for SearchCatalog. */ export interface Schema$GoogleCloudDatacatalogV1SearchCatalogResponse { /** * Pagination token that can be used in subsequent calls to retrieve the next page of results. */ nextPageToken?: string | null; /** * Search results. */ results?: Schema$GoogleCloudDatacatalogV1SearchCatalogResult[]; /** * Unreachable locations. Search results don't include data from those locations. To get additional information on an error, repeat the search request and restrict it to specific locations by setting the `SearchCatalogRequest.scope.restricted_locations` parameter. */ unreachable?: string[] | null; } /** * Result in the response to a search request. Each result captures details of one entry that matches the search. */ export interface Schema$GoogleCloudDatacatalogV1SearchCatalogResult { /** * Entry description that can consist of several sentences or paragraphs that describe entry contents. */ description?: string | null; /** * The display name of the result. */ displayName?: string | null; /** * Fully qualified name (FQN) of the resource. FQNs take two forms: * For non-regionalized resources: `{SYSTEM\}:{PROJECT\}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS\}` * For regionalized resources: `{SYSTEM\}:{PROJECT\}.{LOCATION_ID\}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS\}` Example for a DPMS table: `dataproc_metastore:PROJECT_ID.LOCATION_ID.INSTANCE_ID.DATABASE_ID.TABLE_ID` */ fullyQualifiedName?: string | null; /** * Output only. The source system that Data Catalog automatically integrates with, such as BigQuery, Cloud Pub/Sub, or Dataproc Metastore. */ integratedSystem?: string | null; /** * The full name of the Google Cloud resource the entry belongs to. For more information, see [Full Resource Name] (/apis/design/resource_names#full_resource_name). Example: `//bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID` */ linkedResource?: string | null; /** * The last modification timestamp of the