Skip to content

Commit 5fc2a41

Browse files
chore: update types from Discovery (#1476)
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent ee597c6 commit 5fc2a41

File tree

1 file changed

+31
-7
lines changed

1 file changed

+31
-7
lines changed

src/types.d.ts

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
/**
16-
* Discovery Revision: 20250313
16+
* Discovery Revision: 20250511
1717
*/
1818

1919
/**
@@ -417,7 +417,7 @@ declare namespace bigquery {
417417
};
418418

419419
/**
420-
* Configuration for BigLake managed tables.
420+
* Configuration for BigQuery tables for Apache Iceberg (formerly BigLake managed tables.)
421421
*/
422422
type IBigLakeConfiguration = {
423423
/**
@@ -1093,6 +1093,10 @@ declare namespace bigquery {
10931093
* The dataset reference. Use this property to access specific parts of the dataset's ID, such as project ID or dataset ID.
10941094
*/
10951095
datasetReference?: IDatasetReference;
1096+
/**
1097+
* Output only. Reference to a read-only external dataset defined in data catalogs outside of BigQuery. Filled out when the dataset type is EXTERNAL.
1098+
*/
1099+
externalDatasetReference?: IExternalDatasetReference;
10961100
/**
10971101
* An alternate name for the dataset. The friendly name is purely decorative in nature.
10981102
*/
@@ -2549,7 +2553,7 @@ declare namespace bigquery {
25492553
*/
25502554
timePartitioning?: ITimePartitioning;
25512555
/**
2552-
* Optional. [Experimental] Default time zone that will apply when parsing timestamp values that have no specific time zone.
2556+
* Optional. Default time zone that will apply when parsing timestamp values that have no specific time zone.
25532557
*/
25542558
timeZone?: string;
25552559
/**
@@ -2561,7 +2565,7 @@ declare namespace bigquery {
25612565
*/
25622566
useAvroLogicalTypes?: boolean;
25632567
/**
2564-
* Optional. Specifies the action that occurs if the destination table already exists. The following values are supported: * WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the data, removes the constraints and uses the schema from the load job. * WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. * WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_APPEND. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion.
2568+
* Optional. Specifies the action that occurs if the destination table already exists. The following values are supported: * WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the data, removes the constraints and uses the schema from the load job. * WRITE_TRUNCATE_DATA: If the table already exists, BigQuery overwrites the data, but keeps the constraints and schema of the existing table. * WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. * WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_APPEND. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion.
25652569
*/
25662570
writeDisposition?: string;
25672571
};
@@ -2675,7 +2679,7 @@ declare namespace bigquery {
26752679
*/
26762680
userDefinedFunctionResources?: Array<IUserDefinedFunctionResource>;
26772681
/**
2678-
* Optional. Specifies the action that occurs if the destination table already exists. The following values are supported: * WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the data, removes the constraints, and uses the schema from the query result. * WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. * WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_EMPTY. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion.
2682+
* Optional. Specifies the action that occurs if the destination table already exists. The following values are supported: * WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the data, removes the constraints, and uses the schema from the query result. * WRITE_TRUNCATE_DATA: If the table already exists, BigQuery overwrites the data, but keeps the constraints and schema of the existing table. * WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. * WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_EMPTY. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion.
26792683
*/
26802684
writeDisposition?: string;
26812685
/**
@@ -3055,7 +3059,7 @@ declare namespace bigquery {
30553059
*/
30563060
referencedRoutines?: Array<IRoutineReference>;
30573061
/**
3058-
* Output only. Referenced tables for the job. Queries that reference more than 50 tables will not have a complete list.
3062+
* Output only. Referenced tables for the job.
30593063
*/
30603064
referencedTables?: Array<ITableReference>;
30613065
/**
@@ -4149,6 +4153,10 @@ declare namespace bigquery {
41494153
* Total units of work remaining for the query. This number can be revised (increased or decreased) while the query is running.
41504154
*/
41514155
pendingUnits?: string;
4156+
/**
4157+
* Total shuffle usage ratio in shuffle RAM per reservation of this query. This will be provided for reservation customers only.
4158+
*/
4159+
shuffleRamUsageRatio?: number;
41524160
/**
41534161
* Cumulative slot-ms consumed by the query.
41544162
*/
@@ -4954,7 +4962,7 @@ declare namespace bigquery {
49544962

49554963
type ITable = {
49564964
/**
4957-
* Optional. Specifies the configuration of a BigLake managed table.
4965+
* Optional. Specifies the configuration of a BigQuery table for Apache Iceberg.
49584966
*/
49594967
biglakeConfiguration?: IBigLakeConfiguration;
49604968
/**
@@ -6390,6 +6398,14 @@ declare namespace bigquery {
63906398
* Optional. The version of the provided access policy schema. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. This version refers to the schema version of the access policy and not the version of access policy. This field's value can be equal or more than the access policy schema provided in the request. For example, * Operations updating conditional access policy binding in datasets must specify version 3. Some of the operations are : - Adding a new access policy entry with condition. - Removing an access policy entry with condition. - Updating an access policy entry with condition. * But dataset with no conditional role bindings in access policy may specify any valid value or leave the field unset. If unset or if 0 or 1 value is used for dataset with conditional bindings, request will be rejected. This field will be mapped to IAM Policy version (https://cloud.google.com/iam/docs/policies#versions) and will be used to set policy in IAM.
63916399
*/
63926400
accessPolicyVersion?: number;
6401+
/**
6402+
* Optional. Specifies the fields of dataset that update/patch operation is targeting By default, both metadata and ACL fields are updated.
6403+
*/
6404+
updateMode?:
6405+
| 'UPDATE_MODE_UNSPECIFIED'
6406+
| 'UPDATE_METADATA'
6407+
| 'UPDATE_ACL'
6408+
| 'UPDATE_FULL';
63936409
};
63946410

63956411
/**
@@ -6400,6 +6416,14 @@ declare namespace bigquery {
64006416
* Optional. The version of the provided access policy schema. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. This version refers to the schema version of the access policy and not the version of access policy. This field's value can be equal or more than the access policy schema provided in the request. For example, * Operations updating conditional access policy binding in datasets must specify version 3. Some of the operations are : - Adding a new access policy entry with condition. - Removing an access policy entry with condition. - Updating an access policy entry with condition. * But dataset with no conditional role bindings in access policy may specify any valid value or leave the field unset. If unset or if 0 or 1 value is used for dataset with conditional bindings, request will be rejected. This field will be mapped to IAM Policy version (https://cloud.google.com/iam/docs/policies#versions) and will be used to set policy in IAM.
64016417
*/
64026418
accessPolicyVersion?: number;
6419+
/**
6420+
* Optional. Specifies the fields of dataset that update/patch operation is targeting By default, both metadata and ACL fields are updated.
6421+
*/
6422+
updateMode?:
6423+
| 'UPDATE_MODE_UNSPECIFIED'
6424+
| 'UPDATE_METADATA'
6425+
| 'UPDATE_ACL'
6426+
| 'UPDATE_FULL';
64036427
};
64046428
}
64056429

0 commit comments

Comments
 (0)