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 9d8a28d

Browse files
committedDec 13, 2022
feat(bigquery): update the api
#### bigquery:v2 The following keys were added: - schemas.MaterializedViewDefinition.properties.allow_non_incremental_definition.type (Total Keys: 1)
1 parent f3ae379 commit 9d8a28d

File tree

3 files changed

+28
-17
lines changed

3 files changed

+28
-17
lines changed
 

‎docs/dyn/bigquery_v2.routines.html

+13-13
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ <h3>Method Details</h3>
150150
&quot;importedLibraries&quot;: [ # Optional. If language = &quot;JAVASCRIPT&quot;, this field stores the path of the imported JAVASCRIPT libraries.
151151
&quot;A String&quot;,
152152
],
153-
&quot;language&quot;: &quot;A String&quot;, # Optional. Defaults to &quot;SQL&quot;.
153+
&quot;language&quot;: &quot;A String&quot;, # Optional. Defaults to &quot;SQL&quot; if remote_function_options field is absent, not set otherwise.
154154
&quot;lastModifiedTime&quot;: &quot;A String&quot;, # Output only. The time when this routine was last modified, in milliseconds since the epoch.
155155
&quot;remoteFunctionOptions&quot;: { # Options for a remote user-defined function. # Optional. Remote function specific options.
156156
&quot;connection&quot;: &quot;A String&quot;, # Fully qualified name of the user-provided connection object which holds the authentication information to send requests to the remote service. Format: ```&quot;projects/{projectId}/locations/{locationId}/connections/{connectionId}&quot;```
@@ -160,7 +160,7 @@ <h3>Method Details</h3>
160160
&quot;a_key&quot;: &quot;A String&quot;,
161161
},
162162
},
163-
&quot;returnTableType&quot;: { # A table type # Optional. Can be set only if routine_type = &quot;TABLE_VALUED_FUNCTION&quot;. 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.
163+
&quot;returnTableType&quot;: { # A table type # Optional. Can be set only if routine_type = &quot;TABLE_VALUED_FUNCTION&quot;. 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.
164164
&quot;columns&quot;: [ # The columns in this table type
165165
{ # A field or a column.
166166
&quot;name&quot;: &quot;A String&quot;, # Optional. The name of this field. Can be absent for struct fields.
@@ -251,7 +251,7 @@ <h3>Method Details</h3>
251251
&quot;importedLibraries&quot;: [ # Optional. If language = &quot;JAVASCRIPT&quot;, this field stores the path of the imported JAVASCRIPT libraries.
252252
&quot;A String&quot;,
253253
],
254-
&quot;language&quot;: &quot;A String&quot;, # Optional. Defaults to &quot;SQL&quot;.
254+
&quot;language&quot;: &quot;A String&quot;, # Optional. Defaults to &quot;SQL&quot; if remote_function_options field is absent, not set otherwise.
255255
&quot;lastModifiedTime&quot;: &quot;A String&quot;, # Output only. The time when this routine was last modified, in milliseconds since the epoch.
256256
&quot;remoteFunctionOptions&quot;: { # Options for a remote user-defined function. # Optional. Remote function specific options.
257257
&quot;connection&quot;: &quot;A String&quot;, # Fully qualified name of the user-provided connection object which holds the authentication information to send requests to the remote service. Format: ```&quot;projects/{projectId}/locations/{locationId}/connections/{connectionId}&quot;```
@@ -261,7 +261,7 @@ <h3>Method Details</h3>
261261
&quot;a_key&quot;: &quot;A String&quot;,
262262
},
263263
},
264-
&quot;returnTableType&quot;: { # A table type # Optional. Can be set only if routine_type = &quot;TABLE_VALUED_FUNCTION&quot;. 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.
264+
&quot;returnTableType&quot;: { # A table type # Optional. Can be set only if routine_type = &quot;TABLE_VALUED_FUNCTION&quot;. 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.
265265
&quot;columns&quot;: [ # The columns in this table type
266266
{ # A field or a column.
267267
&quot;name&quot;: &quot;A String&quot;, # Optional. The name of this field. Can be absent for struct fields.
@@ -345,7 +345,7 @@ <h3>Method Details</h3>
345345
&quot;importedLibraries&quot;: [ # Optional. If language = &quot;JAVASCRIPT&quot;, this field stores the path of the imported JAVASCRIPT libraries.
346346
&quot;A String&quot;,
347347
],
348-
&quot;language&quot;: &quot;A String&quot;, # Optional. Defaults to &quot;SQL&quot;.
348+
&quot;language&quot;: &quot;A String&quot;, # Optional. Defaults to &quot;SQL&quot; if remote_function_options field is absent, not set otherwise.
349349
&quot;lastModifiedTime&quot;: &quot;A String&quot;, # Output only. The time when this routine was last modified, in milliseconds since the epoch.
350350
&quot;remoteFunctionOptions&quot;: { # Options for a remote user-defined function. # Optional. Remote function specific options.
351351
&quot;connection&quot;: &quot;A String&quot;, # Fully qualified name of the user-provided connection object which holds the authentication information to send requests to the remote service. Format: ```&quot;projects/{projectId}/locations/{locationId}/connections/{connectionId}&quot;```
@@ -355,7 +355,7 @@ <h3>Method Details</h3>
355355
&quot;a_key&quot;: &quot;A String&quot;,
356356
},
357357
},
358-
&quot;returnTableType&quot;: { # A table type # Optional. Can be set only if routine_type = &quot;TABLE_VALUED_FUNCTION&quot;. 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.
358+
&quot;returnTableType&quot;: { # A table type # Optional. Can be set only if routine_type = &quot;TABLE_VALUED_FUNCTION&quot;. 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.
359359
&quot;columns&quot;: [ # The columns in this table type
360360
{ # A field or a column.
361361
&quot;name&quot;: &quot;A String&quot;, # Optional. The name of this field. Can be absent for struct fields.
@@ -428,7 +428,7 @@ <h3>Method Details</h3>
428428

429429
{
430430
&quot;nextPageToken&quot;: &quot;A String&quot;, # A token to request the next page of results.
431-
&quot;routines&quot;: [ # 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.
431+
&quot;routines&quot;: [ # 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.
432432
{ # A user-defined function or a stored procedure.
433433
&quot;arguments&quot;: [ # Optional.
434434
{ # Input/output argument of a function or a stored procedure.
@@ -454,7 +454,7 @@ <h3>Method Details</h3>
454454
&quot;importedLibraries&quot;: [ # Optional. If language = &quot;JAVASCRIPT&quot;, this field stores the path of the imported JAVASCRIPT libraries.
455455
&quot;A String&quot;,
456456
],
457-
&quot;language&quot;: &quot;A String&quot;, # Optional. Defaults to &quot;SQL&quot;.
457+
&quot;language&quot;: &quot;A String&quot;, # Optional. Defaults to &quot;SQL&quot; if remote_function_options field is absent, not set otherwise.
458458
&quot;lastModifiedTime&quot;: &quot;A String&quot;, # Output only. The time when this routine was last modified, in milliseconds since the epoch.
459459
&quot;remoteFunctionOptions&quot;: { # Options for a remote user-defined function. # Optional. Remote function specific options.
460460
&quot;connection&quot;: &quot;A String&quot;, # Fully qualified name of the user-provided connection object which holds the authentication information to send requests to the remote service. Format: ```&quot;projects/{projectId}/locations/{locationId}/connections/{connectionId}&quot;```
@@ -464,7 +464,7 @@ <h3>Method Details</h3>
464464
&quot;a_key&quot;: &quot;A String&quot;,
465465
},
466466
},
467-
&quot;returnTableType&quot;: { # A table type # Optional. Can be set only if routine_type = &quot;TABLE_VALUED_FUNCTION&quot;. 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.
467+
&quot;returnTableType&quot;: { # A table type # Optional. Can be set only if routine_type = &quot;TABLE_VALUED_FUNCTION&quot;. 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.
468468
&quot;columns&quot;: [ # The columns in this table type
469469
{ # A field or a column.
470470
&quot;name&quot;: &quot;A String&quot;, # Optional. The name of this field. Can be absent for struct fields.
@@ -572,7 +572,7 @@ <h3>Method Details</h3>
572572
&quot;importedLibraries&quot;: [ # Optional. If language = &quot;JAVASCRIPT&quot;, this field stores the path of the imported JAVASCRIPT libraries.
573573
&quot;A String&quot;,
574574
],
575-
&quot;language&quot;: &quot;A String&quot;, # Optional. Defaults to &quot;SQL&quot;.
575+
&quot;language&quot;: &quot;A String&quot;, # Optional. Defaults to &quot;SQL&quot; if remote_function_options field is absent, not set otherwise.
576576
&quot;lastModifiedTime&quot;: &quot;A String&quot;, # Output only. The time when this routine was last modified, in milliseconds since the epoch.
577577
&quot;remoteFunctionOptions&quot;: { # Options for a remote user-defined function. # Optional. Remote function specific options.
578578
&quot;connection&quot;: &quot;A String&quot;, # Fully qualified name of the user-provided connection object which holds the authentication information to send requests to the remote service. Format: ```&quot;projects/{projectId}/locations/{locationId}/connections/{connectionId}&quot;```
@@ -582,7 +582,7 @@ <h3>Method Details</h3>
582582
&quot;a_key&quot;: &quot;A String&quot;,
583583
},
584584
},
585-
&quot;returnTableType&quot;: { # A table type # Optional. Can be set only if routine_type = &quot;TABLE_VALUED_FUNCTION&quot;. 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.
585+
&quot;returnTableType&quot;: { # A table type # Optional. Can be set only if routine_type = &quot;TABLE_VALUED_FUNCTION&quot;. 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.
586586
&quot;columns&quot;: [ # The columns in this table type
587587
{ # A field or a column.
588588
&quot;name&quot;: &quot;A String&quot;, # Optional. The name of this field. Can be absent for struct fields.
@@ -666,7 +666,7 @@ <h3>Method Details</h3>
666666
&quot;importedLibraries&quot;: [ # Optional. If language = &quot;JAVASCRIPT&quot;, this field stores the path of the imported JAVASCRIPT libraries.
667667
&quot;A String&quot;,
668668
],
669-
&quot;language&quot;: &quot;A String&quot;, # Optional. Defaults to &quot;SQL&quot;.
669+
&quot;language&quot;: &quot;A String&quot;, # Optional. Defaults to &quot;SQL&quot; if remote_function_options field is absent, not set otherwise.
670670
&quot;lastModifiedTime&quot;: &quot;A String&quot;, # Output only. The time when this routine was last modified, in milliseconds since the epoch.
671671
&quot;remoteFunctionOptions&quot;: { # Options for a remote user-defined function. # Optional. Remote function specific options.
672672
&quot;connection&quot;: &quot;A String&quot;, # Fully qualified name of the user-provided connection object which holds the authentication information to send requests to the remote service. Format: ```&quot;projects/{projectId}/locations/{locationId}/connections/{connectionId}&quot;```
@@ -676,7 +676,7 @@ <h3>Method Details</h3>
676676
&quot;a_key&quot;: &quot;A String&quot;,
677677
},
678678
},
679-
&quot;returnTableType&quot;: { # A table type # Optional. Can be set only if routine_type = &quot;TABLE_VALUED_FUNCTION&quot;. 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.
679+
&quot;returnTableType&quot;: { # A table type # Optional. Can be set only if routine_type = &quot;TABLE_VALUED_FUNCTION&quot;. 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.
680680
&quot;columns&quot;: [ # The columns in this table type
681681
{ # A field or a column.
682682
&quot;name&quot;: &quot;A String&quot;, # Optional. The name of this field. Can be absent for struct fields.

‎docs/dyn/bigquery_v2.tables.html

+7
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ <h3>Method Details</h3>
267267
&quot;lastModifiedTime&quot;: &quot;A String&quot;, # [Output-only] The time when this table was last modified, in milliseconds since the epoch.
268268
&quot;location&quot;: &quot;A String&quot;, # [Output-only] The geographic location where the table resides. This value is inherited from the dataset.
269269
&quot;materializedView&quot;: { # [Optional] Materialized view definition.
270+
&quot;allow_non_incremental_definition&quot;: True or False, # [Optional] Allow non incremental materialized view definition. The default value is &quot;false&quot;.
270271
&quot;enableRefresh&quot;: True or False, # [Optional] [TrustedTester] Enable automatic refresh of the materialized view when the base table is updated. The default value is &quot;true&quot;.
271272
&quot;lastRefreshTime&quot;: &quot;A String&quot;, # [Output-only] [TrustedTester] The time when this materialized view was last modified, in milliseconds since the epoch.
272273
&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).
@@ -584,6 +585,7 @@ <h3>Method Details</h3>
584585
&quot;lastModifiedTime&quot;: &quot;A String&quot;, # [Output-only] The time when this table was last modified, in milliseconds since the epoch.
585586
&quot;location&quot;: &quot;A String&quot;, # [Output-only] The geographic location where the table resides. This value is inherited from the dataset.
586587
&quot;materializedView&quot;: { # [Optional] Materialized view definition.
588+
&quot;allow_non_incremental_definition&quot;: True or False, # [Optional] Allow non incremental materialized view definition. The default value is &quot;false&quot;.
587589
&quot;enableRefresh&quot;: True or False, # [Optional] [TrustedTester] Enable automatic refresh of the materialized view when the base table is updated. The default value is &quot;true&quot;.
588590
&quot;lastRefreshTime&quot;: &quot;A String&quot;, # [Output-only] [TrustedTester] The time when this materialized view was last modified, in milliseconds since the epoch.
589591
&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).
@@ -842,6 +844,7 @@ <h3>Method Details</h3>
842844
&quot;lastModifiedTime&quot;: &quot;A String&quot;, # [Output-only] The time when this table was last modified, in milliseconds since the epoch.
843845
&quot;location&quot;: &quot;A String&quot;, # [Output-only] The geographic location where the table resides. This value is inherited from the dataset.
844846
&quot;materializedView&quot;: { # [Optional] Materialized view definition.
847+
&quot;allow_non_incremental_definition&quot;: True or False, # [Optional] Allow non incremental materialized view definition. The default value is &quot;false&quot;.
845848
&quot;enableRefresh&quot;: True or False, # [Optional] [TrustedTester] Enable automatic refresh of the materialized view when the base table is updated. The default value is &quot;true&quot;.
846849
&quot;lastRefreshTime&quot;: &quot;A String&quot;, # [Output-only] [TrustedTester] The time when this materialized view was last modified, in milliseconds since the epoch.
847850
&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).
@@ -1183,6 +1186,7 @@ <h3>Method Details</h3>
11831186
&quot;lastModifiedTime&quot;: &quot;A String&quot;, # [Output-only] The time when this table was last modified, in milliseconds since the epoch.
11841187
&quot;location&quot;: &quot;A String&quot;, # [Output-only] The geographic location where the table resides. This value is inherited from the dataset.
11851188
&quot;materializedView&quot;: { # [Optional] Materialized view definition.
1189+
&quot;allow_non_incremental_definition&quot;: True or False, # [Optional] Allow non incremental materialized view definition. The default value is &quot;false&quot;.
11861190
&quot;enableRefresh&quot;: True or False, # [Optional] [TrustedTester] Enable automatic refresh of the materialized view when the base table is updated. The default value is &quot;true&quot;.
11871191
&quot;lastRefreshTime&quot;: &quot;A String&quot;, # [Output-only] [TrustedTester] The time when this materialized view was last modified, in milliseconds since the epoch.
11881192
&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).
@@ -1442,6 +1446,7 @@ <h3>Method Details</h3>
14421446
&quot;lastModifiedTime&quot;: &quot;A String&quot;, # [Output-only] The time when this table was last modified, in milliseconds since the epoch.
14431447
&quot;location&quot;: &quot;A String&quot;, # [Output-only] The geographic location where the table resides. This value is inherited from the dataset.
14441448
&quot;materializedView&quot;: { # [Optional] Materialized view definition.
1449+
&quot;allow_non_incremental_definition&quot;: True or False, # [Optional] Allow non incremental materialized view definition. The default value is &quot;false&quot;.
14451450
&quot;enableRefresh&quot;: True or False, # [Optional] [TrustedTester] Enable automatic refresh of the materialized view when the base table is updated. The default value is &quot;true&quot;.
14461451
&quot;lastRefreshTime&quot;: &quot;A String&quot;, # [Output-only] [TrustedTester] The time when this materialized view was last modified, in milliseconds since the epoch.
14471452
&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).
@@ -1815,6 +1820,7 @@ <h3>Method Details</h3>
18151820
&quot;lastModifiedTime&quot;: &quot;A String&quot;, # [Output-only] The time when this table was last modified, in milliseconds since the epoch.
18161821
&quot;location&quot;: &quot;A String&quot;, # [Output-only] The geographic location where the table resides. This value is inherited from the dataset.
18171822
&quot;materializedView&quot;: { # [Optional] Materialized view definition.
1823+
&quot;allow_non_incremental_definition&quot;: True or False, # [Optional] Allow non incremental materialized view definition. The default value is &quot;false&quot;.
18181824
&quot;enableRefresh&quot;: True or False, # [Optional] [TrustedTester] Enable automatic refresh of the materialized view when the base table is updated. The default value is &quot;true&quot;.
18191825
&quot;lastRefreshTime&quot;: &quot;A String&quot;, # [Output-only] [TrustedTester] The time when this materialized view was last modified, in milliseconds since the epoch.
18201826
&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).
@@ -2074,6 +2080,7 @@ <h3>Method Details</h3>
20742080
&quot;lastModifiedTime&quot;: &quot;A String&quot;, # [Output-only] The time when this table was last modified, in milliseconds since the epoch.
20752081
&quot;location&quot;: &quot;A String&quot;, # [Output-only] The geographic location where the table resides. This value is inherited from the dataset.
20762082
&quot;materializedView&quot;: { # [Optional] Materialized view definition.
2083+
&quot;allow_non_incremental_definition&quot;: True or False, # [Optional] Allow non incremental materialized view definition. The default value is &quot;false&quot;.
20772084
&quot;enableRefresh&quot;: True or False, # [Optional] [TrustedTester] Enable automatic refresh of the materialized view when the base table is updated. The default value is &quot;true&quot;.
20782085
&quot;lastRefreshTime&quot;: &quot;A String&quot;, # [Output-only] [TrustedTester] The time when this materialized view was last modified, in milliseconds since the epoch.
20792086
&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

+8-4
Original file line numberDiff line numberDiff line change
@@ -1710,7 +1710,7 @@
17101710
}
17111711
}
17121712
},
1713-
"revision": "20221112",
1713+
"revision": "20221203",
17141714
"rootUrl": "https://bigquery.googleapis.com/",
17151715
"schemas": {
17161716
"AggregateClassificationMetrics": {
@@ -4922,7 +4922,7 @@
49224922
"type": "string"
49234923
},
49244924
"routines": {
4925-
"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.",
4925+
"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.",
49264926
"items": {
49274927
"$ref": "Routine"
49284928
},
@@ -4963,6 +4963,10 @@
49634963
"MaterializedViewDefinition": {
49644964
"id": "MaterializedViewDefinition",
49654965
"properties": {
4966+
"allow_non_incremental_definition": {
4967+
"description": "[Optional] Allow non incremental materialized view definition. The default value is \"false\".",
4968+
"type": "boolean"
4969+
},
49664970
"enableRefresh": {
49674971
"description": "[Optional] [TrustedTester] Enable automatic refresh of the materialized view when the base table is updated. The default value is \"true\".",
49684972
"type": "boolean"
@@ -5816,7 +5820,7 @@
58165820
"type": "array"
58175821
},
58185822
"language": {
5819-
"description": "Optional. Defaults to \"SQL\".",
5823+
"description": "Optional. Defaults to \"SQL\" if remote_function_options field is absent, not set otherwise.",
58205824
"enum": [
58215825
"LANGUAGE_UNSPECIFIED",
58225826
"SQL",
@@ -5843,7 +5847,7 @@
58435847
},
58445848
"returnTableType": {
58455849
"$ref": "StandardSqlTableType",
5846-
"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."
5850+
"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."
58475851
},
58485852
"returnType": {
58495853
"$ref": "StandardSqlDataType",

0 commit comments

Comments
 (0)
Please sign in to comment.