Skip to content

Commit 152aed5

Browse files
1 parent b6759bb commit 152aed5

1 file changed

Lines changed: 78 additions & 1 deletion

File tree

‎handwritten/bigquery/src/types.d.ts‎

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

1515
/**
16-
* Discovery Revision: 20260328
16+
* Discovery Revision: 20260429
1717
*/
1818

1919
/**
@@ -891,6 +891,16 @@ declare namespace bigquery {
891891
dataMaskingApplied?: boolean;
892892
};
893893

894+
/**
895+
* A list of data policy options. For more information, see [Mask data by applying data policies to a column](https://docs.cloud.google.com/bigquery/docs/column-data-masking#data-policies-on-column).
896+
*/
897+
type IDataPolicyList = {
898+
/**
899+
* Contains a list of data policy options. At most 9 data policies are allowed per field.
900+
*/
901+
dataPolicies?: Array<IDataPolicyOption>;
902+
};
903+
894904
/**
895905
* Data policy option. For more information, see [Mask data by applying data policies to a column](https://docs.cloud.google.com/bigquery/docs/column-data-masking#data-policies-on-column).
896906
*/
@@ -1787,6 +1797,10 @@ declare namespace bigquery {
17871797
* Optional. Amount of memory provisioned for a Python UDF container instance. Format: {number}{unit} where unit is one of "M", "G", "Mi" and "Gi" (e.g. 1G, 512Mi). If not specified, the default value is 512Mi. For more information, see [Configure container limits for Python UDFs](https://cloud.google.com/bigquery/docs/user-defined-functions-python#configure-container-limits)
17881798
*/
17891799
containerMemory?: string;
1800+
/**
1801+
* Optional. Maximum number of requests that a Cloud Run instance can handle concurrently. If absent or if `0`, a default concurrency is used.
1802+
*/
1803+
containerRequestConcurrency?: string;
17901804
/**
17911805
* Optional. Maximum number of rows in each batch sent to the external runtime. If absent or if 0, BigQuery dynamically decides the number of rows in a batch.
17921806
*/
@@ -1883,6 +1897,16 @@ declare namespace bigquery {
18831897
errors?: Array<string>;
18841898
};
18851899

1900+
/**
1901+
* Provides cache statistics for a GenAi function call.
1902+
*/
1903+
type IGenAiFunctionCacheStats = {
1904+
/**
1905+
* Number of rows served from cache.
1906+
*/
1907+
numCacheHitRows?: string;
1908+
};
1909+
18861910
/**
18871911
* Provides cost optimization statistics for a GenAi function call.
18881912
*/
@@ -1915,6 +1939,10 @@ declare namespace bigquery {
19151939
* Provides statistics for each Ai function call within a query.
19161940
*/
19171941
type IGenAiFunctionStats = {
1942+
/**
1943+
* Cache stats for the function.
1944+
*/
1945+
cacheStats?: IGenAiFunctionCacheStats;
19181946
/**
19191947
* Cost optimization stats if applied on the rows processed by the function.
19201948
*/
@@ -3728,6 +3756,20 @@ declare namespace bigquery {
37283756
refreshWatermark?: string;
37293757
};
37303758

3759+
/**
3760+
* Column Metadata Index staleness detailed infnormation.
3761+
*/
3762+
type IMetadataCacheStalenessInsight = {
3763+
/**
3764+
* Output only. Average column metadata index staleness of previous runs with the same query hash.
3765+
*/
3766+
avgPreviousStalenessMs?: string;
3767+
/**
3768+
* Output only. The percent increase in staleness between the current job and the average staleness of previous jobs with the same query hash.
3769+
*/
3770+
stalenessPercentageIncrease?: number;
3771+
};
3772+
37313773
/**
37323774
* Statistics for metadata caching in queried tables.
37333775
*/
@@ -4027,6 +4069,10 @@ declare namespace bigquery {
40274069
* Output only. Standalone query stage performance insights, for exploring potential improvements.
40284070
*/
40294071
stagePerformanceStandaloneInsights?: Array<IStagePerformanceStandaloneInsight>;
4072+
/**
4073+
* Output only. Performance insights for table-level attributes that changed compared to previous runs.
4074+
*/
4075+
tableChangeInsights?: Array<ITableChangeInsight>;
40304076
};
40314077

40324078
/**
@@ -5576,6 +5622,24 @@ declare namespace bigquery {
55765622

55775623
type ITableCell = {v?: any};
55785624

5625+
/**
5626+
* Table-level performance insights compared to previous runs. These insights don't apply to specific query stages, rather they apply to the whole table.
5627+
*/
5628+
type ITableChangeInsight = {
5629+
/**
5630+
* Output only. True if the table's column metadata index was not used in the current job, but was used in a previous job with the same query hash.
5631+
*/
5632+
metadataCacheNotUsedButUsedPreviously?: boolean;
5633+
/**
5634+
* Output only. If present, indicates that the table's metadata column index staleness has increased significantly compared to previous jobs with the same query hash.
5635+
*/
5636+
metadataCacheStalenessInsight?: IMetadataCacheStalenessInsight;
5637+
/**
5638+
* Output only. The table that was queried.
5639+
*/
5640+
tableReference?: ITableReference;
5641+
};
5642+
55795643
/**
55805644
* The TableConstraints defines the primary key and foreign key.
55815645
*/
@@ -5717,10 +5781,23 @@ declare namespace bigquery {
57175781
* Optional. Field collation can be set only when the type of field is STRING. The following values are supported: * 'und:ci': undetermined locale, case insensitive. * '': empty string. Default to case-sensitive behavior.
57185782
*/
57195783
collation?: string;
5784+
/**
5785+
* Optional. Specifies the data governance tags on this field. This field works with other column-level security fields as follows: - Precedence: If a data governance tag is attached to a column, it takes precedence over the policy tag attached to the column. However, if a data policy is attached to a column, it takes precedence over the data governance tag. - Patching behavior (how this field behaves during a `Table.patch` schema update): - Unset: If the `data_governance_tags_info` field is omitted from the update request, the existing tags on the column are preserved. - Empty Field: To clear data governance tags from a column, send the `data_governance_tags_info` field as an empty object. This will remove all tags from the column. - Updating tags: To replace existing tag, send the field with the new tag.
5786+
*/
5787+
dataGovernanceTagsInfo?: {
5788+
/**
5789+
* Optional. The data governance tags added to this field are used for field-level access control. Only one data governance tag is currently supported on a field. Tag keys are globally unique. Tag key is expected to be in the namespaced format, for example "123456789012/pii" where 123456789012 is the ID of the parent organization or project resource for this tag key. Tag value is expected to be the short name, for example "sensitive". See [Tag definitions](https://cloud.google.com/iam/docs/tags-access-control#definitions) for more details. For example: "123456789012/pii": "sensitive", "myProject/cost_center": "sales"
5790+
*/
5791+
dataGovernanceTags?: {[key: string]: string};
5792+
};
57205793
/**
57215794
* Optional. Data policies attached to this field, used for field-level access control.
57225795
*/
57235796
dataPolicies?: Array<IDataPolicyOption>;
5797+
/**
5798+
* Optional. Specifies data policies attached to this field, used for field-level access control. When set, this will be the source of truth for data policy information.
5799+
*/
5800+
dataPolicyList?: IDataPolicyList;
57245801
/**
57255802
* Optional. A SQL expression to specify the [default value] (https://cloud.google.com/bigquery/docs/default-values) for this field.
57265803
*/

0 commit comments

Comments
 (0)