Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b22ff70

Browse files
committedJan 28, 2025
feat(bigquery): update the api
#### bigquery:v2 The following keys were added: - schemas.QueryResponse.properties.creationTime (Total Keys: 3) - schemas.QueryResponse.properties.endTime (Total Keys: 3) - schemas.QueryResponse.properties.location (Total Keys: 2) - schemas.QueryResponse.properties.startTime (Total Keys: 3) - schemas.QueryResponse.properties.totalBytesBilled (Total Keys: 3) - schemas.QueryResponse.properties.totalSlotMs (Total Keys: 3)
1 parent 7fccf38 commit b22ff70

File tree

3 files changed

+50
-9
lines changed

3 files changed

+50
-9
lines changed
 

‎docs/dyn/bigquery_v2.jobs.html

+6
Original file line numberDiff line numberDiff line change
@@ -7336,11 +7336,13 @@ <h3>Method Details</h3>
73367336

73377337
{
73387338
&quot;cacheHit&quot;: True or False, # Whether the query result was fetched from the query cache.
7339+
&quot;creationTime&quot;: &quot;A String&quot;, # Output only. Creation time of this query, in milliseconds since the epoch. This field will be present on all queries.
73397340
&quot;dmlStats&quot;: { # Detailed statistics for DML statements # Output only. Detailed statistics for DML statements INSERT, UPDATE, DELETE, MERGE or TRUNCATE.
73407341
&quot;deletedRowCount&quot;: &quot;A String&quot;, # Output only. Number of deleted Rows. populated by DML DELETE, MERGE and TRUNCATE statements.
73417342
&quot;insertedRowCount&quot;: &quot;A String&quot;, # Output only. Number of inserted Rows. Populated by DML INSERT and MERGE statements
73427343
&quot;updatedRowCount&quot;: &quot;A String&quot;, # Output only. Number of updated Rows. Populated by DML UPDATE and MERGE statements.
73437344
},
7345+
&quot;endTime&quot;: &quot;A String&quot;, # Output only. End time of this query, in milliseconds since the epoch. This field will be present whenever a query job is in the DONE state.
73447346
&quot;errors&quot;: [ # Output only. The first errors or warnings encountered during the running of the job. The final message includes the number of errors that caused the process to stop. Errors here do not necessarily mean that the job has completed or was unsuccessful. For more information about error messages, see [Error messages](https://cloud.google.com/bigquery/docs/error-messages).
73457347
{ # Error details.
73467348
&quot;debugInfo&quot;: &quot;A String&quot;, # Debugging information. This property is internal to Google and should not be used.
@@ -7359,6 +7361,7 @@ <h3>Method Details</h3>
73597361
&quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the project containing this job.
73607362
},
73617363
&quot;kind&quot;: &quot;bigquery#queryResponse&quot;, # The resource type.
7364+
&quot;location&quot;: &quot;A String&quot;, # Output only. The geographic location of the query. For more information about BigQuery locations, see: https://cloud.google.com/bigquery/docs/locations
73627365
&quot;numDmlAffectedRows&quot;: &quot;A String&quot;, # Output only. The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE.
73637366
&quot;pageToken&quot;: &quot;A String&quot;, # A token used for paging results. A non-empty token indicates that additional results are available. To see additional results, query the [`jobs.getQueryResults`](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/getQueryResults) method. For more information, see [Paging through table data](https://cloud.google.com/bigquery/docs/paging-results).
73647367
&quot;queryId&quot;: &quot;A String&quot;, # Auto-generated ID for the query. [Preview](https://cloud.google.com/products/#product-launch-stages)
@@ -7415,8 +7418,11 @@ <h3>Method Details</h3>
74157418
&quot;sessionInfo&quot;: { # [Preview] Information related to sessions. # Output only. Information of the session if this job is part of one.
74167419
&quot;sessionId&quot;: &quot;A String&quot;, # Output only. The id of the session.
74177420
},
7421+
&quot;startTime&quot;: &quot;A String&quot;, # Output only. Start time of this query, in milliseconds since the epoch. This field will be present when the query job transitions from the PENDING state to either RUNNING or DONE.
7422+
&quot;totalBytesBilled&quot;: &quot;A String&quot;, # Output only. If the project is configured to use on-demand pricing, then this field contains the total bytes billed for the job. If the project is configured to use flat-rate pricing, then you are not billed for bytes and this field is informational only.
74187423
&quot;totalBytesProcessed&quot;: &quot;A String&quot;, # The total number of bytes processed for this query. If this query was a dry run, this is the number of bytes that would be processed if the query were run.
74197424
&quot;totalRows&quot;: &quot;A String&quot;, # The total number of rows in the complete query result set, which can be more than the number of rows in this single page of results.
7425+
&quot;totalSlotMs&quot;: &quot;A String&quot;, # Output only. Number of slot ms the user is actually billed for.
74207426
}</pre>
74217427
</div>
74227428

‎docs/dyn/bigquery_v2.tables.html

+7-7
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ <h3>Method Details</h3>
324324
&quot;location&quot;: &quot;A String&quot;, # Output only. The geographic location where the table resides. This value is inherited from the dataset.
325325
&quot;managedTableType&quot;: &quot;A String&quot;, # Optional. If set, overrides the default managed table type configured in the dataset.
326326
&quot;materializedView&quot;: { # Definition and configuration of a materialized view. # Optional. The materialized view definition.
327-
&quot;allowNonIncrementalDefinition&quot;: True or False, # Optional. This option declares the intention to construct a materialized view that isn&#x27;t refreshed incrementally.
327+
&quot;allowNonIncrementalDefinition&quot;: True or False, # Optional. This option declares the intention to construct a materialized view that isn&#x27;t refreshed incrementally. Non-incremental materialized views support an expanded range of SQL queries. The `allow_non_incremental_definition` option can&#x27;t be changed after the materialized view is created.
328328
&quot;enableRefresh&quot;: True or False, # Optional. Enable automatic refresh of the materialized view when the base table is updated. The default value is &quot;true&quot;.
329329
&quot;lastRefreshTime&quot;: &quot;A String&quot;, # Output only. The time when this materialized view was last refreshed, in milliseconds since the epoch.
330330
&quot;maxStaleness&quot;: &quot;A String&quot;, # [Optional] Max staleness of data that could be returned when materizlized view is queried (formatted as Google SQL Interval type).
@@ -807,7 +807,7 @@ <h3>Method Details</h3>
807807
&quot;location&quot;: &quot;A String&quot;, # Output only. The geographic location where the table resides. This value is inherited from the dataset.
808808
&quot;managedTableType&quot;: &quot;A String&quot;, # Optional. If set, overrides the default managed table type configured in the dataset.
809809
&quot;materializedView&quot;: { # Definition and configuration of a materialized view. # Optional. The materialized view definition.
810-
&quot;allowNonIncrementalDefinition&quot;: True or False, # Optional. This option declares the intention to construct a materialized view that isn&#x27;t refreshed incrementally.
810+
&quot;allowNonIncrementalDefinition&quot;: True or False, # Optional. This option declares the intention to construct a materialized view that isn&#x27;t refreshed incrementally. Non-incremental materialized views support an expanded range of SQL queries. The `allow_non_incremental_definition` option can&#x27;t be changed after the materialized view is created.
811811
&quot;enableRefresh&quot;: True or False, # Optional. Enable automatic refresh of the materialized view when the base table is updated. The default value is &quot;true&quot;.
812812
&quot;lastRefreshTime&quot;: &quot;A String&quot;, # Output only. The time when this materialized view was last refreshed, in milliseconds since the epoch.
813813
&quot;maxStaleness&quot;: &quot;A String&quot;, # [Optional] Max staleness of data that could be returned when materizlized view is queried (formatted as Google SQL Interval type).
@@ -1231,7 +1231,7 @@ <h3>Method Details</h3>
12311231
&quot;location&quot;: &quot;A String&quot;, # Output only. The geographic location where the table resides. This value is inherited from the dataset.
12321232
&quot;managedTableType&quot;: &quot;A String&quot;, # Optional. If set, overrides the default managed table type configured in the dataset.
12331233
&quot;materializedView&quot;: { # Definition and configuration of a materialized view. # Optional. The materialized view definition.
1234-
&quot;allowNonIncrementalDefinition&quot;: True or False, # Optional. This option declares the intention to construct a materialized view that isn&#x27;t refreshed incrementally.
1234+
&quot;allowNonIncrementalDefinition&quot;: True or False, # Optional. This option declares the intention to construct a materialized view that isn&#x27;t refreshed incrementally. Non-incremental materialized views support an expanded range of SQL queries. The `allow_non_incremental_definition` option can&#x27;t be changed after the materialized view is created.
12351235
&quot;enableRefresh&quot;: True or False, # Optional. Enable automatic refresh of the materialized view when the base table is updated. The default value is &quot;true&quot;.
12361236
&quot;lastRefreshTime&quot;: &quot;A String&quot;, # Output only. The time when this materialized view was last refreshed, in milliseconds since the epoch.
12371237
&quot;maxStaleness&quot;: &quot;A String&quot;, # [Optional] Max staleness of data that could be returned when materizlized view is queried (formatted as Google SQL Interval type).
@@ -1763,7 +1763,7 @@ <h3>Method Details</h3>
17631763
&quot;location&quot;: &quot;A String&quot;, # Output only. The geographic location where the table resides. This value is inherited from the dataset.
17641764
&quot;managedTableType&quot;: &quot;A String&quot;, # Optional. If set, overrides the default managed table type configured in the dataset.
17651765
&quot;materializedView&quot;: { # Definition and configuration of a materialized view. # Optional. The materialized view definition.
1766-
&quot;allowNonIncrementalDefinition&quot;: True or False, # Optional. This option declares the intention to construct a materialized view that isn&#x27;t refreshed incrementally.
1766+
&quot;allowNonIncrementalDefinition&quot;: True or False, # Optional. This option declares the intention to construct a materialized view that isn&#x27;t refreshed incrementally. Non-incremental materialized views support an expanded range of SQL queries. The `allow_non_incremental_definition` option can&#x27;t be changed after the materialized view is created.
17671767
&quot;enableRefresh&quot;: True or False, # Optional. Enable automatic refresh of the materialized view when the base table is updated. The default value is &quot;true&quot;.
17681768
&quot;lastRefreshTime&quot;: &quot;A String&quot;, # Output only. The time when this materialized view was last refreshed, in milliseconds since the epoch.
17691769
&quot;maxStaleness&quot;: &quot;A String&quot;, # [Optional] Max staleness of data that could be returned when materizlized view is queried (formatted as Google SQL Interval type).
@@ -2188,7 +2188,7 @@ <h3>Method Details</h3>
21882188
&quot;location&quot;: &quot;A String&quot;, # Output only. The geographic location where the table resides. This value is inherited from the dataset.
21892189
&quot;managedTableType&quot;: &quot;A String&quot;, # Optional. If set, overrides the default managed table type configured in the dataset.
21902190
&quot;materializedView&quot;: { # Definition and configuration of a materialized view. # Optional. The materialized view definition.
2191-
&quot;allowNonIncrementalDefinition&quot;: True or False, # Optional. This option declares the intention to construct a materialized view that isn&#x27;t refreshed incrementally.
2191+
&quot;allowNonIncrementalDefinition&quot;: True or False, # Optional. This option declares the intention to construct a materialized view that isn&#x27;t refreshed incrementally. Non-incremental materialized views support an expanded range of SQL queries. The `allow_non_incremental_definition` option can&#x27;t be changed after the materialized view is created.
21922192
&quot;enableRefresh&quot;: True or False, # Optional. Enable automatic refresh of the materialized view when the base table is updated. The default value is &quot;true&quot;.
21932193
&quot;lastRefreshTime&quot;: &quot;A String&quot;, # Output only. The time when this materialized view was last refreshed, in milliseconds since the epoch.
21942194
&quot;maxStaleness&quot;: &quot;A String&quot;, # [Optional] Max staleness of data that could be returned when materizlized view is queried (formatted as Google SQL Interval type).
@@ -2731,7 +2731,7 @@ <h3>Method Details</h3>
27312731
&quot;location&quot;: &quot;A String&quot;, # Output only. The geographic location where the table resides. This value is inherited from the dataset.
27322732
&quot;managedTableType&quot;: &quot;A String&quot;, # Optional. If set, overrides the default managed table type configured in the dataset.
27332733
&quot;materializedView&quot;: { # Definition and configuration of a materialized view. # Optional. The materialized view definition.
2734-
&quot;allowNonIncrementalDefinition&quot;: True or False, # Optional. This option declares the intention to construct a materialized view that isn&#x27;t refreshed incrementally.
2734+
&quot;allowNonIncrementalDefinition&quot;: True or False, # Optional. This option declares the intention to construct a materialized view that isn&#x27;t refreshed incrementally. Non-incremental materialized views support an expanded range of SQL queries. The `allow_non_incremental_definition` option can&#x27;t be changed after the materialized view is created.
27352735
&quot;enableRefresh&quot;: True or False, # Optional. Enable automatic refresh of the materialized view when the base table is updated. The default value is &quot;true&quot;.
27362736
&quot;lastRefreshTime&quot;: &quot;A String&quot;, # Output only. The time when this materialized view was last refreshed, in milliseconds since the epoch.
27372737
&quot;maxStaleness&quot;: &quot;A String&quot;, # [Optional] Max staleness of data that could be returned when materizlized view is queried (formatted as Google SQL Interval type).
@@ -3156,7 +3156,7 @@ <h3>Method Details</h3>
31563156
&quot;location&quot;: &quot;A String&quot;, # Output only. The geographic location where the table resides. This value is inherited from the dataset.
31573157
&quot;managedTableType&quot;: &quot;A String&quot;, # Optional. If set, overrides the default managed table type configured in the dataset.
31583158
&quot;materializedView&quot;: { # Definition and configuration of a materialized view. # Optional. The materialized view definition.
3159-
&quot;allowNonIncrementalDefinition&quot;: True or False, # Optional. This option declares the intention to construct a materialized view that isn&#x27;t refreshed incrementally.
3159+
&quot;allowNonIncrementalDefinition&quot;: True or False, # Optional. This option declares the intention to construct a materialized view that isn&#x27;t refreshed incrementally. Non-incremental materialized views support an expanded range of SQL queries. The `allow_non_incremental_definition` option can&#x27;t be changed after the materialized view is created.
31603160
&quot;enableRefresh&quot;: True or False, # Optional. Enable automatic refresh of the materialized view when the base table is updated. The default value is &quot;true&quot;.
31613161
&quot;lastRefreshTime&quot;: &quot;A String&quot;, # Output only. The time when this materialized view was last refreshed, in milliseconds since the epoch.
31623162
&quot;maxStaleness&quot;: &quot;A String&quot;, # [Optional] Max staleness of data that could be returned when materizlized view is queried (formatted as Google SQL Interval type).

‎googleapiclient/discovery_cache/documents/bigquery.v2.json

+37-2
Original file line numberDiff line numberDiff line change
@@ -2009,7 +2009,7 @@
20092009
}
20102010
}
20112011
},
2012-
"revision": "20241222",
2012+
"revision": "20250112",
20132013
"rootUrl": "https://bigquery.googleapis.com/",
20142014
"schemas": {
20152015
"AggregateClassificationMetrics": {
@@ -6369,7 +6369,7 @@
63696369
"id": "MaterializedViewDefinition",
63706370
"properties": {
63716371
"allowNonIncrementalDefinition": {
6372-
"description": "Optional. This option declares the intention to construct a materialized view that isn't refreshed incrementally.",
6372+
"description": "Optional. This option declares the intention to construct a materialized view that isn't refreshed incrementally. Non-incremental materialized views support an expanded range of SQL queries. The `allow_non_incremental_definition` option can't be changed after the materialized view is created.",
63736373
"type": "boolean"
63746374
},
63756375
"enableRefresh": {
@@ -7281,11 +7281,23 @@
72817281
"description": "Whether the query result was fetched from the query cache.",
72827282
"type": "boolean"
72837283
},
7284+
"creationTime": {
7285+
"description": "Output only. Creation time of this query, in milliseconds since the epoch. This field will be present on all queries.",
7286+
"format": "int64",
7287+
"readOnly": true,
7288+
"type": "string"
7289+
},
72847290
"dmlStats": {
72857291
"$ref": "DmlStatistics",
72867292
"description": "Output only. Detailed statistics for DML statements INSERT, UPDATE, DELETE, MERGE or TRUNCATE.",
72877293
"readOnly": true
72887294
},
7295+
"endTime": {
7296+
"description": "Output only. End time of this query, in milliseconds since the epoch. This field will be present whenever a query job is in the DONE state.",
7297+
"format": "int64",
7298+
"readOnly": true,
7299+
"type": "string"
7300+
},
72897301
"errors": {
72907302
"description": "Output only. The first errors or warnings encountered during the running of the job. The final message includes the number of errors that caused the process to stop. Errors here do not necessarily mean that the job has completed or was unsuccessful. For more information about error messages, see [Error messages](https://cloud.google.com/bigquery/docs/error-messages).",
72917303
"items": {
@@ -7311,6 +7323,11 @@
73117323
"description": "The resource type.",
73127324
"type": "string"
73137325
},
7326+
"location": {
7327+
"description": "Output only. The geographic location of the query. For more information about BigQuery locations, see: https://cloud.google.com/bigquery/docs/locations",
7328+
"readOnly": true,
7329+
"type": "string"
7330+
},
73147331
"numDmlAffectedRows": {
73157332
"description": "Output only. The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE.",
73167333
"format": "int64",
@@ -7341,6 +7358,18 @@
73417358
"description": "Output only. Information of the session if this job is part of one.",
73427359
"readOnly": true
73437360
},
7361+
"startTime": {
7362+
"description": "Output only. Start time of this query, in milliseconds since the epoch. This field will be present when the query job transitions from the PENDING state to either RUNNING or DONE.",
7363+
"format": "int64",
7364+
"readOnly": true,
7365+
"type": "string"
7366+
},
7367+
"totalBytesBilled": {
7368+
"description": "Output only. If the project is configured to use on-demand pricing, then this field contains the total bytes billed for the job. If the project is configured to use flat-rate pricing, then you are not billed for bytes and this field is informational only.",
7369+
"format": "int64",
7370+
"readOnly": true,
7371+
"type": "string"
7372+
},
73447373
"totalBytesProcessed": {
73457374
"description": "The total number of bytes processed for this query. If this query was a dry run, this is the number of bytes that would be processed if the query were run.",
73467375
"format": "int64",
@@ -7350,6 +7379,12 @@
73507379
"description": "The total number of rows in the complete query result set, which can be more than the number of rows in this single page of results.",
73517380
"format": "uint64",
73527381
"type": "string"
7382+
},
7383+
"totalSlotMs": {
7384+
"description": "Output only. Number of slot ms the user is actually billed for.",
7385+
"format": "int64",
7386+
"readOnly": true,
7387+
"type": "string"
73537388
}
73547389
},
73557390
"type": "object"

0 commit comments

Comments
 (0)
Please sign in to comment.