From ebb3bcda5dbc316626834d1331a51ae41bbb5632 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 9 Sep 2024 12:24:58 -0700 Subject: [PATCH] chore: update types from Discovery (#1398) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: update types from Discovery * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- src/types.d.ts | 41 +++++++++++++++-------------------------- 1 file changed, 15 insertions(+), 26 deletions(-) diff --git a/src/types.d.ts b/src/types.d.ts index 76761f11..5f4f7e66 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -13,7 +13,7 @@ // limitations under the License. /** - * Discovery Revision: 20240727 + * Discovery Revision: 20240803 */ /** @@ -835,6 +835,16 @@ declare namespace bigquery { dataMaskingApplied?: boolean; }; + /** + * Data policy option proto, it currently supports name only, will support precedence later. + */ + type IDataPolicyOption = { + /** + * Data policy resource name in the form of projects/project_id/locations/location_id/dataPolicies/data_policy_id. + */ + name?: string; + }; + /** * Data split result. This contains references to the training and evaluation data tables that were used to train the model. */ @@ -2025,27 +2035,6 @@ declare namespace bigquery { trialId?: string; }; - /** - * Metadata for value generation for an identity column. - */ - type IIdentityColumnInfo = { - /** - * Optional. Dictates when system generated values are used to populate the field. - */ - generatedMode?: - | 'GENERATED_MODE_UNSPECIFIED' - | 'GENERATED_ALWAYS' - | 'GENERATED_BY_DEFAULT'; - /** - * Optional. The minimum difference between two successive generated values. Should be INTEGER compatible. Can be negative or positive but not 0. The default value is 1 if the field is not specified. - */ - increment?: string; - /** - * Optional. The first generated value. Should be INTEGER compatible. The default value is 1 if the field is not specified. - */ - start?: string; - }; - /** * Reason about why no search index was used in the search query (or sub-query). */ @@ -5144,6 +5133,10 @@ declare namespace bigquery { * Optional. Field collation can be set only when the type of field is STRING. The following values are supported: * 'und:ci': undetermined locale, case insensitive. * '': empty string. Default to case-sensitive behavior. */ collation?: string; + /** + * Optional. Data policy options, will replace the data_policies. + */ + dataPolicies?: Array; /** * Optional. A SQL expression to specify the [default value] (https://cloud.google.com/bigquery/docs/default-values) for this field. */ @@ -5160,10 +5153,6 @@ declare namespace bigquery { * Optional. Definition of the foreign data type. Only valid for top-level schema fields (not nested fields). If the type is FOREIGN, this field is required. */ foreignTypeDefinition?: string; - /** - * Optional. Definition of how values are generated for the field. Setting this option means that the field is an identity column. Only valid for top-level schema INTEGER fields (not nested fields). - */ - identityColumnInfo?: IIdentityColumnInfo; /** * Optional. Maximum length of values of this field for STRINGS or BYTES. If max_length is not specified, no maximum length constraint is imposed on this field. If type = "STRING", then max_length represents the maximum UTF-8 length of strings in this field. If type = "BYTES", then max_length represents the maximum number of bytes in this field. It is invalid to set this field if type ≠ "STRING" and ≠ "BYTES". */