Skip to content

Commit 6abccd4

Browse files
feat(bigquery): update the api
#### bigquery:v2 The following keys were added: - resources.tables.methods.patch.parameters.autodetect_schema (Total Keys: 2) - resources.tables.methods.update.parameters.autodetect_schema (Total Keys: 2)
1 parent a37ad28 commit 6abccd4

File tree

4 files changed

+26
-14
lines changed

4 files changed

+26
-14
lines changed

docs/dyn/bigquery_v2.jobs.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ <h3>Method Details</h3>
196196
},
197197
&quot;destinationTableProperties&quot;: { # [Beta] [Optional] Properties with which to create the destination table if it is new.
198198
&quot;description&quot;: &quot;A String&quot;, # [Optional] The description for the destination table. This will only be used if the destination table is newly created. If the table already exists and a value different than the current description is provided, the job will fail.
199-
&quot;expirationTime&quot;: &quot;A String&quot;, # [Optional] The destination table expiration time. If this field is set: For a new table, it will set the table&#x27;s expiration time (even if there is a dataset level default table expiration time). For an existing table, it will update the table&#x27;s expiration time. If this field is not set: For a new table, if dataset level default table expiration time is present, that will be applied. For an existing table, no change is made to the table&#x27;s expiration time. Additionally this field is only applied when data is written to an empty table (WRITE_EMPTY) or data is overwritten to a table (WRITE_TRUNCATE).
199+
&quot;expirationTime&quot;: &quot;A String&quot;, # [Internal] This field is for Google internal use only.
200200
&quot;friendlyName&quot;: &quot;A String&quot;, # [Optional] The friendly name for the destination table. This will only be used if the destination table is newly created. If the table already exists and a value different than the current friendly name is provided, the job will fail.
201201
&quot;labels&quot;: { # [Optional] The labels associated with this table. You can use these to organize and group your tables. This will only be used if the destination table is newly created. If the table already exists and labels are different than the current labels are provided, the job will fail.
202202
&quot;a_key&quot;: &quot;A String&quot;,
@@ -840,7 +840,7 @@ <h3>Method Details</h3>
840840
},
841841
&quot;destinationTableProperties&quot;: { # [Beta] [Optional] Properties with which to create the destination table if it is new.
842842
&quot;description&quot;: &quot;A String&quot;, # [Optional] The description for the destination table. This will only be used if the destination table is newly created. If the table already exists and a value different than the current description is provided, the job will fail.
843-
&quot;expirationTime&quot;: &quot;A String&quot;, # [Optional] The destination table expiration time. If this field is set: For a new table, it will set the table&#x27;s expiration time (even if there is a dataset level default table expiration time). For an existing table, it will update the table&#x27;s expiration time. If this field is not set: For a new table, if dataset level default table expiration time is present, that will be applied. For an existing table, no change is made to the table&#x27;s expiration time. Additionally this field is only applied when data is written to an empty table (WRITE_EMPTY) or data is overwritten to a table (WRITE_TRUNCATE).
843+
&quot;expirationTime&quot;: &quot;A String&quot;, # [Internal] This field is for Google internal use only.
844844
&quot;friendlyName&quot;: &quot;A String&quot;, # [Optional] The friendly name for the destination table. This will only be used if the destination table is newly created. If the table already exists and a value different than the current friendly name is provided, the job will fail.
845845
&quot;labels&quot;: { # [Optional] The labels associated with this table. You can use these to organize and group your tables. This will only be used if the destination table is newly created. If the table already exists and labels are different than the current labels are provided, the job will fail.
846846
&quot;a_key&quot;: &quot;A String&quot;,
@@ -1554,7 +1554,7 @@ <h3>Method Details</h3>
15541554
},
15551555
&quot;destinationTableProperties&quot;: { # [Beta] [Optional] Properties with which to create the destination table if it is new.
15561556
&quot;description&quot;: &quot;A String&quot;, # [Optional] The description for the destination table. This will only be used if the destination table is newly created. If the table already exists and a value different than the current description is provided, the job will fail.
1557-
&quot;expirationTime&quot;: &quot;A String&quot;, # [Optional] The destination table expiration time. If this field is set: For a new table, it will set the table&#x27;s expiration time (even if there is a dataset level default table expiration time). For an existing table, it will update the table&#x27;s expiration time. If this field is not set: For a new table, if dataset level default table expiration time is present, that will be applied. For an existing table, no change is made to the table&#x27;s expiration time. Additionally this field is only applied when data is written to an empty table (WRITE_EMPTY) or data is overwritten to a table (WRITE_TRUNCATE).
1557+
&quot;expirationTime&quot;: &quot;A String&quot;, # [Internal] This field is for Google internal use only.
15581558
&quot;friendlyName&quot;: &quot;A String&quot;, # [Optional] The friendly name for the destination table. This will only be used if the destination table is newly created. If the table already exists and a value different than the current friendly name is provided, the job will fail.
15591559
&quot;labels&quot;: { # [Optional] The labels associated with this table. You can use these to organize and group your tables. This will only be used if the destination table is newly created. If the table already exists and labels are different than the current labels are provided, the job will fail.
15601560
&quot;a_key&quot;: &quot;A String&quot;,
@@ -2173,7 +2173,7 @@ <h3>Method Details</h3>
21732173
},
21742174
&quot;destinationTableProperties&quot;: { # [Beta] [Optional] Properties with which to create the destination table if it is new.
21752175
&quot;description&quot;: &quot;A String&quot;, # [Optional] The description for the destination table. This will only be used if the destination table is newly created. If the table already exists and a value different than the current description is provided, the job will fail.
2176-
&quot;expirationTime&quot;: &quot;A String&quot;, # [Optional] The destination table expiration time. If this field is set: For a new table, it will set the table&#x27;s expiration time (even if there is a dataset level default table expiration time). For an existing table, it will update the table&#x27;s expiration time. If this field is not set: For a new table, if dataset level default table expiration time is present, that will be applied. For an existing table, no change is made to the table&#x27;s expiration time. Additionally this field is only applied when data is written to an empty table (WRITE_EMPTY) or data is overwritten to a table (WRITE_TRUNCATE).
2176+
&quot;expirationTime&quot;: &quot;A String&quot;, # [Internal] This field is for Google internal use only.
21772177
&quot;friendlyName&quot;: &quot;A String&quot;, # [Optional] The friendly name for the destination table. This will only be used if the destination table is newly created. If the table already exists and a value different than the current friendly name is provided, the job will fail.
21782178
&quot;labels&quot;: { # [Optional] The labels associated with this table. You can use these to organize and group your tables. This will only be used if the destination table is newly created. If the table already exists and labels are different than the current labels are provided, the job will fail.
21792179
&quot;a_key&quot;: &quot;A String&quot;,
@@ -2815,7 +2815,7 @@ <h3>Method Details</h3>
28152815
},
28162816
&quot;destinationTableProperties&quot;: { # [Beta] [Optional] Properties with which to create the destination table if it is new.
28172817
&quot;description&quot;: &quot;A String&quot;, # [Optional] The description for the destination table. This will only be used if the destination table is newly created. If the table already exists and a value different than the current description is provided, the job will fail.
2818-
&quot;expirationTime&quot;: &quot;A String&quot;, # [Optional] The destination table expiration time. If this field is set: For a new table, it will set the table&#x27;s expiration time (even if there is a dataset level default table expiration time). For an existing table, it will update the table&#x27;s expiration time. If this field is not set: For a new table, if dataset level default table expiration time is present, that will be applied. For an existing table, no change is made to the table&#x27;s expiration time. Additionally this field is only applied when data is written to an empty table (WRITE_EMPTY) or data is overwritten to a table (WRITE_TRUNCATE).
2818+
&quot;expirationTime&quot;: &quot;A String&quot;, # [Internal] This field is for Google internal use only.
28192819
&quot;friendlyName&quot;: &quot;A String&quot;, # [Optional] The friendly name for the destination table. This will only be used if the destination table is newly created. If the table already exists and a value different than the current friendly name is provided, the job will fail.
28202820
&quot;labels&quot;: { # [Optional] The labels associated with this table. You can use these to organize and group your tables. This will only be used if the destination table is newly created. If the table already exists and labels are different than the current labels are provided, the job will fail.
28212821
&quot;a_key&quot;: &quot;A String&quot;,

docs/dyn/bigquery_v2.rowAccessPolicies.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ <h3>Method Details</h3>
109109

110110
{ # Request message for `GetIamPolicy` method.
111111
&quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
112-
&quot;requestedPolicyVersion&quot;: 42, # Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
112+
&quot;requestedPolicyVersion&quot;: 42, # Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
113113
},
114114
}
115115

docs/dyn/bigquery_v2.tables.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ <h2>Instance Methods</h2>
9696
<code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
9797
<p class="firstline">Retrieves the next page of results.</p>
9898
<p class="toc_element">
99-
<code><a href="#patch">patch(projectId, datasetId, tableId, body=None)</a></code></p>
99+
<code><a href="#patch">patch(projectId, datasetId, tableId, autodetect_schema=None, body=None)</a></code></p>
100100
<p class="firstline">Updates information in an existing table. The update method replaces the entire table resource, whereas the patch method only replaces fields that are provided in the submitted table resource. This method supports patch semantics.</p>
101101
<p class="toc_element">
102102
<code><a href="#setIamPolicy">setIamPolicy(resource, body=None)</a></code></p>
@@ -105,7 +105,7 @@ <h2>Instance Methods</h2>
105105
<code><a href="#testIamPermissions">testIamPermissions(resource, body=None)</a></code></p>
106106
<p class="firstline">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.</p>
107107
<p class="toc_element">
108-
<code><a href="#update">update(projectId, datasetId, tableId, body=None)</a></code></p>
108+
<code><a href="#update">update(projectId, datasetId, tableId, autodetect_schema=None, body=None)</a></code></p>
109109
<p class="firstline">Updates information in an existing table. The update method replaces the entire table resource, whereas the patch method only replaces fields that are provided in the submitted table resource.</p>
110110
<h3>Method Details</h3>
111111
<div class="method">
@@ -379,7 +379,7 @@ <h3>Method Details</h3>
379379

380380
{ # Request message for `GetIamPolicy` method.
381381
&quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
382-
&quot;requestedPolicyVersion&quot;: 42, # Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
382+
&quot;requestedPolicyVersion&quot;: 42, # Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
383383
},
384384
}
385385

@@ -971,7 +971,7 @@ <h3>Method Details</h3>
971971
</div>
972972

973973
<div class="method">
974-
<code class="details" id="patch">patch(projectId, datasetId, tableId, body=None)</code>
974+
<code class="details" id="patch">patch(projectId, datasetId, tableId, autodetect_schema=None, body=None)</code>
975975
<pre>Updates information in an existing table. The update method replaces the entire table resource, whereas the patch method only replaces fields that are provided in the submitted table resource. This method supports patch semantics.
976976

977977
Args:
@@ -1211,6 +1211,7 @@ <h3>Method Details</h3>
12111211
},
12121212
}
12131213

1214+
autodetect_schema: boolean, When true will autodetect schema, else will keep original schema
12141215

12151216
Returns:
12161217
An object of the form:
@@ -1554,7 +1555,7 @@ <h3>Method Details</h3>
15541555
</div>
15551556

15561557
<div class="method">
1557-
<code class="details" id="update">update(projectId, datasetId, tableId, body=None)</code>
1558+
<code class="details" id="update">update(projectId, datasetId, tableId, autodetect_schema=None, body=None)</code>
15581559
<pre>Updates information in an existing table. The update method replaces the entire table resource, whereas the patch method only replaces fields that are provided in the submitted table resource.
15591560

15601561
Args:
@@ -1794,6 +1795,7 @@ <h3>Method Details</h3>
17941795
},
17951796
}
17961797

1798+
autodetect_schema: boolean, When true will autodetect schema, else will keep original schema
17971799

17981800
Returns:
17991801
An object of the form:

googleapiclient/discovery_cache/documents/bigquery.v2.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1549,6 +1549,11 @@
15491549
"tableId"
15501550
],
15511551
"parameters": {
1552+
"autodetect_schema": {
1553+
"description": "When true will autodetect schema, else will keep original schema",
1554+
"location": "query",
1555+
"type": "boolean"
1556+
},
15521557
"datasetId": {
15531558
"description": "Dataset ID of the table to update",
15541559
"location": "path",
@@ -1649,6 +1654,11 @@
16491654
"tableId"
16501655
],
16511656
"parameters": {
1657+
"autodetect_schema": {
1658+
"description": "When true will autodetect schema, else will keep original schema",
1659+
"location": "query",
1660+
"type": "boolean"
1661+
},
16521662
"datasetId": {
16531663
"description": "Dataset ID of the table to update",
16541664
"location": "path",
@@ -1683,7 +1693,7 @@
16831693
}
16841694
}
16851695
},
1686-
"revision": "20211102",
1696+
"revision": "20211129",
16871697
"rootUrl": "https://bigquery.googleapis.com/",
16881698
"schemas": {
16891699
"AggregateClassificationMetrics": {
@@ -2903,7 +2913,7 @@
29032913
"type": "string"
29042914
},
29052915
"expirationTime": {
2906-
"description": "[Optional] The destination table expiration time. If this field is set: For a new table, it will set the table's expiration time (even if there is a dataset level default table expiration time). For an existing table, it will update the table's expiration time. If this field is not set: For a new table, if dataset level default table expiration time is present, that will be applied. For an existing table, no change is made to the table's expiration time. Additionally this field is only applied when data is written to an empty table (WRITE_EMPTY) or data is overwritten to a table (WRITE_TRUNCATE).",
2916+
"description": "[Internal] This field is for Google internal use only.",
29072917
"format": "date-time",
29082918
"type": "string"
29092919
},
@@ -3329,7 +3339,7 @@
33293339
"id": "GetPolicyOptions",
33303340
"properties": {
33313341
"requestedPolicyVersion": {
3332-
"description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).",
3342+
"description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).",
33333343
"format": "int32",
33343344
"type": "integer"
33353345
}

0 commit comments

Comments
 (0)