From f6530f5e31937e31b53b98977ce1776e826a6276 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Thu, 22 Dec 2022 01:40:08 +0000 Subject: [PATCH] feat(bigquery): update the API #### bigquery:v2 The following keys were added: - schemas.MaterializedViewDefinition.properties.allow_non_incremental_definition.description - schemas.MaterializedViewDefinition.properties.allow_non_incremental_definition.type The following keys were changed: - schemas.DatasetAccessEntry.properties.targetTypes.items.enum - schemas.DatasetAccessEntry.properties.targetTypes.items.enumDescriptions - schemas.ListRoutinesResponse.properties.routines.description - schemas.Model.properties.modelType.enum - schemas.Model.properties.modelType.enumDescriptions - schemas.Routine.properties.language.description - schemas.Routine.properties.returnTableType.description - schemas.SparkOptions.properties.mainFileUri.description --- discovery/bigquery-v2.json | 28 +++++++++++++++++++--------- src/apis/bigquery/v2.ts | 12 ++++++++---- 2 files changed, 27 insertions(+), 13 deletions(-) diff --git a/discovery/bigquery-v2.json b/discovery/bigquery-v2.json index 0aad81a39d..2df72898dc 100644 --- a/discovery/bigquery-v2.json +++ b/discovery/bigquery-v2.json @@ -1710,7 +1710,7 @@ } } }, - "revision": "20221015", + "revision": "20221209", "rootUrl": "https://bigquery.googleapis.com/", "schemas": { "AggregateClassificationMetrics": { @@ -2891,11 +2891,13 @@ "items": { "enum": [ "TARGET_TYPE_UNSPECIFIED", - "VIEWS" + "VIEWS", + "ROUTINES" ], "enumDescriptions": [ "Do not use. You must set a target type explicitly.", - "This entry applies to views in the dataset." + "This entry applies to views in the dataset.", + "This entry applies to routines in the dataset." ], "type": "string" }, @@ -4920,7 +4922,7 @@ "type": "string" }, "routines": { - "description": "Routines in the requested dataset. Unless read_mask is set in the request, only the following fields are populated: etag, project_id, dataset_id, routine_id, routine_type, creation_time, last_modified_time, and language.", + "description": "Routines in the requested dataset. Unless read_mask is set in the request, only the following fields are populated: etag, project_id, dataset_id, routine_id, routine_type, creation_time, last_modified_time, language, and remote_function_options.", "items": { "$ref": "Routine" }, @@ -4961,6 +4963,10 @@ "MaterializedViewDefinition": { "id": "MaterializedViewDefinition", "properties": { + "allow_non_incremental_definition": { + "description": "[Optional] Allow non incremental materialized view definition. The default value is \"false\".", + "type": "boolean" + }, "enableRefresh": { "description": "[Optional] [TrustedTester] Enable automatic refresh of the materialized view when the base table is updated. The default value is \"true\".", "type": "boolean" @@ -5118,7 +5124,9 @@ "DNN_LINEAR_COMBINED_CLASSIFIER", "DNN_LINEAR_COMBINED_REGRESSOR", "AUTOENCODER", - "ARIMA_PLUS" + "ARIMA_PLUS", + "RANDOM_FOREST_REGRESSOR", + "RANDOM_FOREST_CLASSIFIER" ], "enumDescriptions": [ "", @@ -5138,7 +5146,9 @@ "Wide-and-deep classifier model.", "Wide-and-deep regressor model.", "Autoencoder model.", - "New name for the ARIMA model." + "New name for the ARIMA model.", + "Random Forest regressor model.", + "Random Forest classifier model." ], "readOnly": true, "type": "string" @@ -5810,7 +5820,7 @@ "type": "array" }, "language": { - "description": "Optional. Defaults to \"SQL\".", + "description": "Optional. Defaults to \"SQL\" if remote_function_options field is absent, not set otherwise.", "enum": [ "LANGUAGE_UNSPECIFIED", "SQL", @@ -5837,7 +5847,7 @@ }, "returnTableType": { "$ref": "StandardSqlTableType", - "description": "Optional. Can be set only if routine_type = \"TABLE_VALUED_FUNCTION\". If absent, the return table type is inferred from definition_body at query time in each query that references this routine. If present, then the columns in the evaluated table result will be cast to match the column types specificed in return table type, at query time." + "description": "Optional. Can be set only if routine_type = \"TABLE_VALUED_FUNCTION\". If absent, the return table type is inferred from definition_body at query time in each query that references this routine. If present, then the columns in the evaluated table result will be cast to match the column types specified in return table type, at query time." }, "returnType": { "$ref": "StandardSqlDataType", @@ -6131,7 +6141,7 @@ "type": "array" }, "mainFileUri": { - "description": "The main file URI of the Spark application. Exactly one of the definition_body field and the main_file_uri field must be set.", + "description": "The main file/jar URI of the Spark application. Exactly one of the definition_body field and the main_file_uri field must be set for Python. Exactly one of main_class and main_file_uri field should be set for Java/Scala language type.", "type": "string" }, "properties": { diff --git a/src/apis/bigquery/v2.ts b/src/apis/bigquery/v2.ts index e7631b1f47..1a450c4c4b 100644 --- a/src/apis/bigquery/v2.ts +++ b/src/apis/bigquery/v2.ts @@ -2383,7 +2383,7 @@ export namespace bigquery_v2 { */ nextPageToken?: string | null; /** - * Routines in the requested dataset. Unless read_mask is set in the request, only the following fields are populated: etag, project_id, dataset_id, routine_id, routine_type, creation_time, last_modified_time, and language. + * Routines in the requested dataset. Unless read_mask is set in the request, only the following fields are populated: etag, project_id, dataset_id, routine_id, routine_type, creation_time, last_modified_time, language, and remote_function_options. */ routines?: Schema$Routine[]; } @@ -2410,6 +2410,10 @@ export namespace bigquery_v2 { legacyLocationId?: string | null; } export interface Schema$MaterializedViewDefinition { + /** + * [Optional] Allow non incremental materialized view definition. The default value is "false". + */ + allow_non_incremental_definition?: boolean | null; /** * [Optional] [TrustedTester] Enable automatic refresh of the materialized view when the base table is updated. The default value is "true". */ @@ -2952,7 +2956,7 @@ export namespace bigquery_v2 { */ importedLibraries?: string[] | null; /** - * Optional. Defaults to "SQL". + * Optional. Defaults to "SQL" if remote_function_options field is absent, not set otherwise. */ language?: string | null; /** @@ -2964,7 +2968,7 @@ export namespace bigquery_v2 { */ remoteFunctionOptions?: Schema$RemoteFunctionOptions; /** - * Optional. Can be set only if routine_type = "TABLE_VALUED_FUNCTION". If absent, the return table type is inferred from definition_body at query time in each query that references this routine. If present, then the columns in the evaluated table result will be cast to match the column types specificed in return table type, at query time. + * Optional. Can be set only if routine_type = "TABLE_VALUED_FUNCTION". If absent, the return table type is inferred from definition_body at query time in each query that references this routine. If present, then the columns in the evaluated table result will be cast to match the column types specified in return table type, at query time. */ returnTableType?: Schema$StandardSqlTableType; /** @@ -3174,7 +3178,7 @@ export namespace bigquery_v2 { */ jarUris?: string[] | null; /** - * The main file URI of the Spark application. Exactly one of the definition_body field and the main_file_uri field must be set. + * The main file/jar URI of the Spark application. Exactly one of the definition_body field and the main_file_uri field must be set for Python. Exactly one of main_class and main_file_uri field should be set for Java/Scala language type. */ mainFileUri?: string | null; /**