Skip to content

Commit 9bed272

Browse files
yoshi-automationsofisl
authored andcommitted
feat(bigquery): update the API
#### bigquery:v2 The following keys were added: - schemas.JobConfiguration.properties.reservation.description - schemas.JobConfiguration.properties.reservation.type - schemas.QueryRequest.properties.reservation.description - schemas.QueryRequest.properties.reservation.type
1 parent d185db5 commit 9bed272

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

‎discovery/bigquery-v2.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2256,7 +2256,7 @@
22562256
}
22572257
}
22582258
},
2259-
"revision": "20250302",
2259+
"revision": "20250313",
22602260
"rootUrl": "https://bigquery.googleapis.com/",
22612261
"schemas": {
22622262
"AggregateClassificationMetrics": {
@@ -5281,6 +5281,10 @@
52815281
"query": {
52825282
"$ref": "JobConfigurationQuery",
52835283
"description": "[Pick one] Configures a query job."
5284+
},
5285+
"reservation": {
5286+
"description": "Optional. The reservation that job would use. User can specify a reservation to execute the job. If reservation is not set, reservation is determined based on the rules defined by the reservation assignments. The expected format is `projects/{project}/locations/{location}/reservations/{reservation}`.",
5287+
"type": "string"
52845288
}
52855289
},
52865290
"type": "object"
@@ -7606,6 +7610,10 @@
76067610
"description": "Optional. A unique user provided identifier to ensure idempotent behavior for queries. Note that this is different from the job_id. It has the following properties: 1. It is case-sensitive, limited to up to 36 ASCII characters. A UUID is recommended. 2. Read only queries can ignore this token since they are nullipotent by definition. 3. For the purposes of idempotency ensured by the request_id, a request is considered duplicate of another only if they have the same request_id and are actually duplicates. When determining whether a request is a duplicate of another request, all parameters in the request that may affect the result are considered. For example, query, connection_properties, query_parameters, use_legacy_sql are parameters that affect the result and are considered when determining whether a request is a duplicate, but properties like timeout_ms don't affect the result and are thus not considered. Dry run query requests are never considered duplicate of another request. 4. When a duplicate mutating query request is detected, it returns: a. the results of the mutation if it completes successfully within the timeout. b. the running operation if it is still in progress at the end of the timeout. 5. Its lifetime is limited to 15 minutes. In other words, if two requests are sent with the same request_id, but more than 15 minutes apart, idempotency is not guaranteed.",
76077611
"type": "string"
76087612
},
7613+
"reservation": {
7614+
"description": "Optional. The reservation that jobs.query request would use. User can specify a reservation to execute the job.query. The expected format is `projects/{project}/locations/{location}/reservations/{reservation}`.",
7615+
"type": "string"
7616+
},
76097617
"timeoutMs": {
76107618
"description": "Optional. Optional: Specifies the maximum amount of time, in milliseconds, that the client is willing to wait for the query to complete. By default, this limit is 10 seconds (10,000 milliseconds). If the query is complete, the jobComplete field in the response is true. If the query has not yet completed, jobComplete is false. You can request a longer timeout period in the timeoutMs field. However, the call is not guaranteed to wait for the specified timeout; it typically returns after around 200 seconds (200,000 milliseconds), even if the query is not complete. If jobComplete is false, you can continue to wait for the query to complete by calling the getQueryResults method until the jobComplete field in the getQueryResults response is true.",
76117619
"format": "uint32",

‎src/apis/bigquery/v2.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2204,6 +2204,10 @@ export namespace bigquery_v2 {
22042204
* [Pick one] Configures a query job.
22052205
*/
22062206
query?: Schema$JobConfigurationQuery;
2207+
/**
2208+
* Optional. The reservation that job would use. User can specify a reservation to execute the job. If reservation is not set, reservation is determined based on the rules defined by the reservation assignments. The expected format is `projects/{project\}/locations/{location\}/reservations/{reservation\}`.
2209+
*/
2210+
reservation?: string | null;
22072211
}
22082212
/**
22092213
* JobConfigurationExtract configures a job that exports data from a BigQuery table into Google Cloud Storage.
@@ -3673,6 +3677,10 @@ export namespace bigquery_v2 {
36733677
* Optional. A unique user provided identifier to ensure idempotent behavior for queries. Note that this is different from the job_id. It has the following properties: 1. It is case-sensitive, limited to up to 36 ASCII characters. A UUID is recommended. 2. Read only queries can ignore this token since they are nullipotent by definition. 3. For the purposes of idempotency ensured by the request_id, a request is considered duplicate of another only if they have the same request_id and are actually duplicates. When determining whether a request is a duplicate of another request, all parameters in the request that may affect the result are considered. For example, query, connection_properties, query_parameters, use_legacy_sql are parameters that affect the result and are considered when determining whether a request is a duplicate, but properties like timeout_ms don't affect the result and are thus not considered. Dry run query requests are never considered duplicate of another request. 4. When a duplicate mutating query request is detected, it returns: a. the results of the mutation if it completes successfully within the timeout. b. the running operation if it is still in progress at the end of the timeout. 5. Its lifetime is limited to 15 minutes. In other words, if two requests are sent with the same request_id, but more than 15 minutes apart, idempotency is not guaranteed.
36743678
*/
36753679
requestId?: string | null;
3680+
/**
3681+
* Optional. The reservation that jobs.query request would use. User can specify a reservation to execute the job.query. The expected format is `projects/{project\}/locations/{location\}/reservations/{reservation\}`.
3682+
*/
3683+
reservation?: string | null;
36763684
/**
36773685
* Optional. Optional: Specifies the maximum amount of time, in milliseconds, that the client is willing to wait for the query to complete. By default, this limit is 10 seconds (10,000 milliseconds). If the query is complete, the jobComplete field in the response is true. If the query has not yet completed, jobComplete is false. You can request a longer timeout period in the timeoutMs field. However, the call is not guaranteed to wait for the specified timeout; it typically returns after around 200 seconds (200,000 milliseconds), even if the query is not complete. If jobComplete is false, you can continue to wait for the query to complete by calling the getQueryResults method until the jobComplete field in the getQueryResults response is true.
36783686
*/

0 commit comments

Comments
 (0)