Skip to content

Commit 9639f20

Browse files
feat(bigquery): update the API
#### bigquery:v2 The following keys were added: - resources.routines.methods.testIamPermissions.description - resources.routines.methods.testIamPermissions.flatPath - resources.routines.methods.testIamPermissions.httpMethod - resources.routines.methods.testIamPermissions.id - resources.routines.methods.testIamPermissions.parameterOrder - resources.routines.methods.testIamPermissions.parameters.resource.description - resources.routines.methods.testIamPermissions.parameters.resource.location - resources.routines.methods.testIamPermissions.parameters.resource.pattern - resources.routines.methods.testIamPermissions.parameters.resource.required - resources.routines.methods.testIamPermissions.parameters.resource.type - resources.routines.methods.testIamPermissions.path - resources.routines.methods.testIamPermissions.request.$ref - resources.routines.methods.testIamPermissions.response.$ref - resources.routines.methods.testIamPermissions.scopes - schemas.ExternalRuntimeOptions.description - schemas.ExternalRuntimeOptions.id - schemas.ExternalRuntimeOptions.properties.containerCpu.description - schemas.ExternalRuntimeOptions.properties.containerCpu.format - schemas.ExternalRuntimeOptions.properties.containerCpu.type - schemas.ExternalRuntimeOptions.properties.containerMemory.description - schemas.ExternalRuntimeOptions.properties.containerMemory.type - schemas.ExternalRuntimeOptions.properties.maxBatchingRows.description - schemas.ExternalRuntimeOptions.properties.maxBatchingRows.format - schemas.ExternalRuntimeOptions.properties.maxBatchingRows.type - schemas.ExternalRuntimeOptions.properties.runtimeConnection.description - schemas.ExternalRuntimeOptions.properties.runtimeConnection.type - schemas.ExternalRuntimeOptions.properties.runtimeVersion.description - schemas.ExternalRuntimeOptions.properties.runtimeVersion.type - schemas.ExternalRuntimeOptions.type - schemas.PythonOptions.description - schemas.PythonOptions.id - schemas.PythonOptions.properties.entryPoint.description - schemas.PythonOptions.properties.entryPoint.type - schemas.PythonOptions.properties.packages.description - schemas.PythonOptions.properties.packages.items.type - schemas.PythonOptions.properties.packages.type - schemas.PythonOptions.type - schemas.Routine.properties.externalRuntimeOptions.$ref - schemas.Routine.properties.externalRuntimeOptions.description - schemas.Routine.properties.pythonOptions.$ref - schemas.Routine.properties.pythonOptions.description The following keys were changed: - endpoints - resources.datasets.methods.get.parameters.datasetView.enumDescriptions - schemas.IndexUnusedReason.properties.code.enum - schemas.IndexUnusedReason.properties.code.enumDescriptions - schemas.Job.properties.jobCreationReason.description - schemas.JobCreationReason.description - schemas.QueryRequest.properties.jobCreationMode.description - schemas.QueryResponse.properties.jobCreationReason.description - schemas.QueryResponse.properties.queryId.description - schemas.Table.properties.managedTableType.enum - schemas.Table.properties.managedTableType.enumDescriptions
1 parent f708aa7 commit 9639f20

File tree

3 files changed

+349
-17
lines changed

3 files changed

+349
-17
lines changed

‎discovery/bigquery-v2.json

Lines changed: 123 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,36 @@
3434
"discoveryVersion": "v1",
3535
"documentationLink": "https://cloud.google.com/bigquery/",
3636
"endpoints": [
37+
{
38+
"description": "Regional Endpoint",
39+
"endpointUrl": "https://bigquery.asia-south1.rep.googleapis.com/",
40+
"location": "asia-south1"
41+
},
42+
{
43+
"description": "Regional Endpoint",
44+
"endpointUrl": "https://bigquery.asia-south2.rep.googleapis.com/",
45+
"location": "asia-south2"
46+
},
47+
{
48+
"description": "Regional Endpoint",
49+
"endpointUrl": "https://bigquery.europe-west1.rep.googleapis.com/",
50+
"location": "europe-west1"
51+
},
52+
{
53+
"description": "Regional Endpoint",
54+
"endpointUrl": "https://bigquery.europe-west2.rep.googleapis.com/",
55+
"location": "europe-west2"
56+
},
3757
{
3858
"description": "Regional Endpoint",
3959
"endpointUrl": "https://bigquery.europe-west3.rep.googleapis.com/",
4060
"location": "europe-west3"
4161
},
62+
{
63+
"description": "Regional Endpoint",
64+
"endpointUrl": "https://bigquery.europe-west6.rep.googleapis.com/",
65+
"location": "europe-west6"
66+
},
4267
{
4368
"description": "Regional Endpoint",
4469
"endpointUrl": "https://bigquery.europe-west8.rep.googleapis.com/",
@@ -276,9 +301,9 @@
276301
],
277302
"enumDescriptions": [
278303
"The default value. Default to the FULL view.",
279-
"Updates metadata information for the dataset, such as friendlyName, description, labels, etc.",
280-
"Updates ACL information for the dataset, which defines dataset access for one or more entities.",
281-
"Updates both dataset metadata and ACL information."
304+
"View metadata information for the dataset, such as friendlyName, description, labels, etc.",
305+
"View ACL information for the dataset, which defines dataset access for one or more entities.",
306+
"View both dataset metadata and ACL information."
282307
],
283308
"location": "query",
284309
"type": "string"
@@ -1377,6 +1402,36 @@
13771402
"https://www.googleapis.com/auth/cloud-platform"
13781403
]
13791404
},
1405+
"testIamPermissions": {
1406+
"description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.",
1407+
"flatPath": "projects/{projectsId}/datasets/{datasetsId}/routines/{routinesId}:testIamPermissions",
1408+
"httpMethod": "POST",
1409+
"id": "bigquery.routines.testIamPermissions",
1410+
"parameterOrder": [
1411+
"resource"
1412+
],
1413+
"parameters": {
1414+
"resource": {
1415+
"description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.",
1416+
"location": "path",
1417+
"pattern": "^projects/[^/]+/datasets/[^/]+/routines/[^/]+$",
1418+
"required": true,
1419+
"type": "string"
1420+
}
1421+
},
1422+
"path": "{+resource}:testIamPermissions",
1423+
"request": {
1424+
"$ref": "TestIamPermissionsRequest"
1425+
},
1426+
"response": {
1427+
"$ref": "TestIamPermissionsResponse"
1428+
},
1429+
"scopes": [
1430+
"https://www.googleapis.com/auth/bigquery",
1431+
"https://www.googleapis.com/auth/cloud-platform",
1432+
"https://www.googleapis.com/auth/cloud-platform.read-only"
1433+
]
1434+
},
13801435
"update": {
13811436
"description": "Updates information in an existing routine. The update method replaces the entire Routine resource.",
13821437
"flatPath": "projects/{projectsId}/datasets/{datasetsId}/routines/{routinesId}",
@@ -2290,7 +2345,7 @@
22902345
}
22912346
}
22922347
},
2293-
"revision": "20250511",
2348+
"revision": "20250615",
22942349
"rootUrl": "https://bigquery.googleapis.com/",
22952350
"schemas": {
22962351
"AggregateClassificationMetrics": {
@@ -4549,6 +4604,35 @@
45494604
},
45504605
"type": "object"
45514606
},
4607+
"ExternalRuntimeOptions": {
4608+
"description": "Options for the runtime of the external system.",
4609+
"id": "ExternalRuntimeOptions",
4610+
"properties": {
4611+
"containerCpu": {
4612+
"description": "Optional. Amount of CPU provisioned for the container instance. If not specified, the default value is 0.33 vCPUs.",
4613+
"format": "double",
4614+
"type": "number"
4615+
},
4616+
"containerMemory": {
4617+
"description": "Optional. Amount of memory provisioned for the container instance. Format: {number}{unit} where unit is one of \"M\", \"G\", \"Mi\" and \"Gi\" (e.g. 1G, 512Mi). If not specified, the default value is 512Mi.",
4618+
"type": "string"
4619+
},
4620+
"maxBatchingRows": {
4621+
"description": "Optional. Maximum number of rows in each batch sent to the external runtime. If absent or if 0, BigQuery dynamically decides the number of rows in a batch.",
4622+
"format": "int64",
4623+
"type": "string"
4624+
},
4625+
"runtimeConnection": {
4626+
"description": "Optional. Fully qualified name of the connection whose service account will be used to execute the code in the container. Format: ```\"projects/{project_id}/locations/{location_id}/connections/{connection_id}\"```",
4627+
"type": "string"
4628+
},
4629+
"runtimeVersion": {
4630+
"description": "Optional. Language runtime version (e.g. python-3.11).",
4631+
"type": "string"
4632+
}
4633+
},
4634+
"type": "object"
4635+
},
45524636
"ExternalServiceCost": {
45534637
"description": "The external service cost is a portion of the total cost, these costs are not additive with total_bytes_billed. Moreover, this field only track external service costs that will show up as BigQuery costs (e.g. training BigQuery ML job with google cloud CAIP or Automl Tables services), not other costs which may be accrued by running the query (e.g. reading from Bigtable or Cloud Storage). The external service costs with different billing sku (e.g. CAIP job is charged based on VM usage) are converted to BigQuery billed_bytes and slot_ms with equivalent amount of US dollars. Services may not directly correlate to these metrics, but these are the equivalents for billing purposes. Output only.",
45544638
"id": "ExternalServiceCost",
@@ -5024,6 +5108,7 @@
50245108
"BASE_TABLE_TOO_SMALL",
50255109
"BASE_TABLE_TOO_LARGE",
50265110
"ESTIMATED_PERFORMANCE_GAIN_TOO_LOW",
5111+
"COLUMN_METADATA_INDEX_NOT_USED",
50275112
"NOT_SUPPORTED_IN_STANDARD_EDITION",
50285113
"INDEX_SUPPRESSED_BY_FUNCTION_OPTION",
50295114
"QUERY_CACHE_HIT",
@@ -5047,6 +5132,7 @@
50475132
"Indicates the base table is too small (below a certain threshold). The index does not provide noticeable search performance gains when the base table is too small.",
50485133
"Indicates that the total size of indexed base tables in your organization exceeds your region's limit and the index is not used in the query. To index larger base tables, you can use your own reservation for index-management jobs.",
50495134
"Indicates that the estimated performance gain from using the search index is too low for the given search query.",
5135+
"Indicates that the column metadata index (which the search index depends on) is not used. User can refer to the [column metadata index usage](https://cloud.google.com/bigquery/docs/metadata-indexing-managed-tables#view_column_metadata_index_usage) for more details on why it was not used.",
50505136
"Indicates that search indexes can not be used for search query with STANDARD edition.",
50515137
"Indicates that an option in the search function that cannot make use of the index has been selected.",
50525138
"Indicates that the query was cached, and thus the search index was not used.",
@@ -5225,7 +5311,7 @@
52255311
},
52265312
"jobCreationReason": {
52275313
"$ref": "JobCreationReason",
5228-
"description": "Output only. The reason why a Job was created. [Preview](https://cloud.google.com/products/#product-launch-stages)",
5314+
"description": "Output only. The reason why a Job was created.",
52295315
"readOnly": true
52305316
},
52315317
"jobReference": {
@@ -5834,7 +5920,7 @@
58345920
"type": "object"
58355921
},
58365922
"JobCreationReason": {
5837-
"description": "Reason about why a Job was created from a [`jobs.query`](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query) method when used with `JOB_CREATION_OPTIONAL` Job creation mode. For [`jobs.insert`](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/insert) method calls it will always be `REQUESTED`. [Preview](https://cloud.google.com/products/#product-launch-stages)",
5923+
"description": "Reason about why a Job was created from a [`jobs.query`](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query) method when used with `JOB_CREATION_OPTIONAL` Job creation mode. For [`jobs.insert`](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/insert) method calls it will always be `REQUESTED`.",
58385924
"id": "JobCreationReason",
58395925
"properties": {
58405926
"code": {
@@ -7440,6 +7526,24 @@
74407526
},
74417527
"type": "object"
74427528
},
7529+
"PythonOptions": {
7530+
"description": "Options for a user-defined Python function.",
7531+
"id": "PythonOptions",
7532+
"properties": {
7533+
"entryPoint": {
7534+
"description": "Required. The entry point function in the user's Python code.",
7535+
"type": "string"
7536+
},
7537+
"packages": {
7538+
"description": "Optional. A list of package names along with versions to be installed. Follows requirements.txt syntax (e.g. numpy==2.0, permutation, urllib3<2.2.1)",
7539+
"items": {
7540+
"type": "string"
7541+
},
7542+
"type": "array"
7543+
}
7544+
},
7545+
"type": "object"
7546+
},
74437547
"QueryInfo": {
74447548
"description": "Query optimization information for a QUERY job.",
74457549
"id": "QueryInfo",
@@ -7581,7 +7685,7 @@
75817685
"description": "Optional. Output format adjustments."
75827686
},
75837687
"jobCreationMode": {
7584-
"description": "Optional. If not set, jobs are always required. If set, the query request will follow the behavior described JobCreationMode. [Preview](https://cloud.google.com/products/#product-launch-stages)",
7688+
"description": "Optional. If not set, jobs are always required. If set, the query request will follow the behavior described JobCreationMode.",
75857689
"enum": [
75867690
"JOB_CREATION_MODE_UNSPECIFIED",
75877691
"JOB_CREATION_REQUIRED",
@@ -7713,7 +7817,7 @@
77137817
},
77147818
"jobCreationReason": {
77157819
"$ref": "JobCreationReason",
7716-
"description": "Optional. The reason why a Job was created. Only relevant when a job_reference is present in the response. If job_reference is not present it will always be unset. [Preview](https://cloud.google.com/products/#product-launch-stages)"
7820+
"description": "Optional. The reason why a Job was created. Only relevant when a job_reference is present in the response. If job_reference is not present it will always be unset."
77177821
},
77187822
"jobReference": {
77197823
"$ref": "JobReference",
@@ -7740,7 +7844,7 @@
77407844
"type": "string"
77417845
},
77427846
"queryId": {
7743-
"description": "Auto-generated ID for the query. [Preview](https://cloud.google.com/products/#product-launch-stages)",
7847+
"description": "Auto-generated ID for the query.",
77447848
"type": "string"
77457849
},
77467850
"rows": {
@@ -8091,6 +8195,10 @@
80918195
"readOnly": true,
80928196
"type": "string"
80938197
},
8198+
"externalRuntimeOptions": {
8199+
"$ref": "ExternalRuntimeOptions",
8200+
"description": "Optional. Options for the runtime of the external system executing the routine. This field is only applicable for Python UDFs. [Preview](https://cloud.google.com/products/#product-launch-stages)"
8201+
},
80948202
"importedLibraries": {
80958203
"description": "Optional. If language = \"JAVASCRIPT\", this field stores the path of the imported JAVASCRIPT libraries.",
80968204
"items": {
@@ -8124,6 +8232,10 @@
81248232
"readOnly": true,
81258233
"type": "string"
81268234
},
8235+
"pythonOptions": {
8236+
"$ref": "PythonOptions",
8237+
"description": "Optional. Options for Python UDF. [Preview](https://cloud.google.com/products/#product-launch-stages)"
8238+
},
81278239
"remoteFunctionOptions": {
81288240
"$ref": "RemoteFunctionOptions",
81298241
"description": "Optional. Remote function specific options."
@@ -9039,12 +9151,12 @@
90399151
"enum": [
90409152
"MANAGED_TABLE_TYPE_UNSPECIFIED",
90419153
"NATIVE",
9042-
"ICEBERG"
9154+
"BIGLAKE"
90439155
],
90449156
"enumDescriptions": [
90459157
"No managed table type specified.",
90469158
"The managed table is a native BigQuery table.",
9047-
"The managed table is a BigQuery table for Apache Iceberg."
9159+
"The managed table is a BigLake table for Apache Iceberg in BigQuery."
90489160
],
90499161
"type": "string"
90509162
},

‎src/apis/bigquery/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"webpack": "webpack"
2929
},
3030
"dependencies": {
31-
"googleapis-common": "^8.0.0"
31+
"googleapis-common": "^8.0.2-rc.0"
3232
},
3333
"devDependencies": {
3434
"@microsoft/api-documenter": "^7.8.10",

0 commit comments

Comments
 (0)