Skip to content

Commit dc4cf69

Browse files
yoshi-automationsofisl
authored andcommitted
feat(bigquery): update the API
#### bigquery:v2 The following keys were added: - resources.datasets.methods.patch.parameters.updateMode.description - resources.datasets.methods.patch.parameters.updateMode.enum - resources.datasets.methods.patch.parameters.updateMode.enumDescriptions - resources.datasets.methods.patch.parameters.updateMode.location - resources.datasets.methods.patch.parameters.updateMode.type - resources.datasets.methods.update.parameters.updateMode.description - resources.datasets.methods.update.parameters.updateMode.enum - resources.datasets.methods.update.parameters.updateMode.enumDescriptions - resources.datasets.methods.update.parameters.updateMode.location - resources.datasets.methods.update.parameters.updateMode.type - schemas.QueryTimelineSample.properties.shuffleRamUsageRatio.description - schemas.QueryTimelineSample.properties.shuffleRamUsageRatio.format - schemas.QueryTimelineSample.properties.shuffleRamUsageRatio.type The following keys were changed: - resources.datasets.methods.get.parameters.datasetView.enumDescriptions - schemas.JobConfigurationLoad.properties.timeZone.description - schemas.JobStatistics2.properties.referencedTables.description
1 parent b2bb626 commit dc4cf69

File tree

2 files changed

+59
-8
lines changed

2 files changed

+59
-8
lines changed

‎discovery/bigquery-v2.json

Lines changed: 45 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,9 @@
276276
],
277277
"enumDescriptions": [
278278
"The default value. Default to the FULL view.",
279-
"Includes metadata information for the dataset, such as location, etag, lastModifiedTime, etc.",
280-
"Includes ACL information for the dataset, which defines dataset access for one or more entities.",
281-
"Includes both dataset metadata and ACL information."
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."
282282
],
283283
"location": "query",
284284
"type": "string"
@@ -413,6 +413,23 @@
413413
"pattern": "^[^/]+$",
414414
"required": true,
415415
"type": "string"
416+
},
417+
"updateMode": {
418+
"description": "Optional. Specifies the fields of dataset that update/patch operation is targeting By default, both metadata and ACL fields are updated.",
419+
"enum": [
420+
"UPDATE_MODE_UNSPECIFIED",
421+
"UPDATE_METADATA",
422+
"UPDATE_ACL",
423+
"UPDATE_FULL"
424+
],
425+
"enumDescriptions": [
426+
"The default value. Default to the UPDATE_FULL.",
427+
"Includes metadata information for the dataset, such as friendlyName, description, labels, etc.",
428+
"Includes ACL information for the dataset, which defines dataset access for one or more entities.",
429+
"Includes both dataset metadata and ACL information."
430+
],
431+
"location": "query",
432+
"type": "string"
416433
}
417434
},
418435
"path": "projects/{+projectId}/datasets/{+datasetId}",
@@ -493,6 +510,23 @@
493510
"pattern": "^[^/]+$",
494511
"required": true,
495512
"type": "string"
513+
},
514+
"updateMode": {
515+
"description": "Optional. Specifies the fields of dataset that update/patch operation is targeting By default, both metadata and ACL fields are updated.",
516+
"enum": [
517+
"UPDATE_MODE_UNSPECIFIED",
518+
"UPDATE_METADATA",
519+
"UPDATE_ACL",
520+
"UPDATE_FULL"
521+
],
522+
"enumDescriptions": [
523+
"The default value. Default to the UPDATE_FULL.",
524+
"Includes metadata information for the dataset, such as friendlyName, description, labels, etc.",
525+
"Includes ACL information for the dataset, which defines dataset access for one or more entities.",
526+
"Includes both dataset metadata and ACL information."
527+
],
528+
"location": "query",
529+
"type": "string"
496530
}
497531
},
498532
"path": "projects/{+projectId}/datasets/{+datasetId}",
@@ -2256,7 +2290,7 @@
22562290
}
22572291
}
22582292
},
2259-
"revision": "20250404",
2293+
"revision": "20250427",
22602294
"rootUrl": "https://bigquery.googleapis.com/",
22612295
"schemas": {
22622296
"AggregateClassificationMetrics": {
@@ -5577,7 +5611,7 @@
55775611
"description": "Time-based partitioning specification for the destination table. Only one of timePartitioning and rangePartitioning should be specified."
55785612
},
55795613
"timeZone": {
5580-
"description": "Optional. [Experimental] Default time zone that will apply when parsing timestamp values that have no specific time zone.",
5614+
"description": "Optional. Default time zone that will apply when parsing timestamp values that have no specific time zone.",
55815615
"type": "string"
55825616
},
55835617
"timestampFormat": {
@@ -6235,7 +6269,7 @@
62356269
"type": "array"
62366270
},
62376271
"referencedTables": {
6238-
"description": "Output only. Referenced tables for the job. Queries that reference more than 50 tables will not have a complete list.",
6272+
"description": "Output only. Referenced tables for the job.",
62396273
"items": {
62406274
"$ref": "TableReference"
62416275
},
@@ -7780,6 +7814,11 @@
77807814
"format": "int64",
77817815
"type": "string"
77827816
},
7817+
"shuffleRamUsageRatio": {
7818+
"description": "Total shuffle usage ratio in shuffle RAM per reservation of this query. This will be provided for reservation customers only.",
7819+
"format": "double",
7820+
"type": "number"
7821+
},
77837822
"totalSlotMs": {
77847823
"description": "Cumulative slot-ms consumed by the query.",
77857824
"format": "int64",

‎src/apis/bigquery/v2.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2423,7 +2423,7 @@ export namespace bigquery_v2 {
24232423
*/
24242424
timestampFormat?: string | null;
24252425
/**
2426-
* Optional. [Experimental] Default time zone that will apply when parsing timestamp values that have no specific time zone.
2426+
* Optional. Default time zone that will apply when parsing timestamp values that have no specific time zone.
24272427
*/
24282428
timeZone?: string | null;
24292429
/**
@@ -2865,7 +2865,7 @@ export namespace bigquery_v2 {
28652865
*/
28662866
referencedRoutines?: Schema$RoutineReference[];
28672867
/**
2868-
* Output only. Referenced tables for the job. Queries that reference more than 50 tables will not have a complete list.
2868+
* Output only. Referenced tables for the job.
28692869
*/
28702870
referencedTables?: Schema$TableReference[];
28712871
/**
@@ -3808,6 +3808,10 @@ export namespace bigquery_v2 {
38083808
* Total units of work remaining for the query. This number can be revised (increased or decreased) while the query is running.
38093809
*/
38103810
pendingUnits?: string | null;
3811+
/**
3812+
* Total shuffle usage ratio in shuffle RAM per reservation of this query. This will be provided for reservation customers only.
3813+
*/
3814+
shuffleRamUsageRatio?: number | null;
38113815
/**
38123816
* Cumulative slot-ms consumed by the query.
38133817
*/
@@ -6242,6 +6246,10 @@ export namespace bigquery_v2 {
62426246
* Required. Project ID of the dataset being updated
62436247
*/
62446248
projectId?: string;
6249+
/**
6250+
* Optional. Specifies the fields of dataset that update/patch operation is targeting By default, both metadata and ACL fields are updated.
6251+
*/
6252+
updateMode?: string;
62456253

62466254
/**
62476255
* Request body metadata
@@ -6277,6 +6285,10 @@ export namespace bigquery_v2 {
62776285
* Required. Project ID of the dataset being updated
62786286
*/
62796287
projectId?: string;
6288+
/**
6289+
* Optional. Specifies the fields of dataset that update/patch operation is targeting By default, both metadata and ACL fields are updated.
6290+
*/
6291+
updateMode?: string;
62806292

62816293
/**
62826294
* Request body metadata

0 commit comments

Comments
 (0)