diff --git a/handwritten/bigquery-storage/.kokoro/trampoline_v2.sh b/handwritten/bigquery-storage/.kokoro/trampoline_v2.sh index 92312d4d09c6..5f85bcf8ce22 100755 --- a/handwritten/bigquery-storage/.kokoro/trampoline_v2.sh +++ b/handwritten/bigquery-storage/.kokoro/trampoline_v2.sh @@ -257,8 +257,9 @@ cd "${PROJECT_ROOT}" # Auto-injected conditional check # Check if the package directory has changes. If not, skip tests. if [[ "${RUNNING_IN_CI:-}" == "true" ]]; then - # The package path is hardcoded during migration - RELATIVE_PKG_PATH="handwritten/bigquery-storage" + # We're already in the relevant directory, so we only need to check for + # changes relative to that. + RELATIVE_PKG_PATH="." echo "Checking for changes in ${RELATIVE_PKG_PATH}..." diff --git a/handwritten/bigquery-storage/.trampolinerc b/handwritten/bigquery-storage/.trampolinerc index 7a2bd550b020..5fc2253137db 100644 --- a/handwritten/bigquery-storage/.trampolinerc +++ b/handwritten/bigquery-storage/.trampolinerc @@ -49,4 +49,4 @@ if [[ -z "${TRAMPOLINE_BUILD_FILE:-}" ]]; then fi # Secret Manager secrets. -source ${PROJECT_ROOT}/handwritten/bigquery-storage/.kokoro/populate-secrets.sh +source ${PROJECT_ROOT}/.kokoro/populate-secrets.sh diff --git a/handwritten/bigquery/.kokoro/trampoline_v2.sh b/handwritten/bigquery/.kokoro/trampoline_v2.sh index 7a219c425ddf..e8ad6f7bb453 100755 --- a/handwritten/bigquery/.kokoro/trampoline_v2.sh +++ b/handwritten/bigquery/.kokoro/trampoline_v2.sh @@ -257,8 +257,9 @@ cd "${PROJECT_ROOT}" # Auto-injected conditional check # Check if the package directory has changes. If not, skip tests. if [[ "${RUNNING_IN_CI:-}" == "true" ]]; then - # The package path is hardcoded during migration - RELATIVE_PKG_PATH="handwritten/bigquery" + # We're already in the relevant directory, so we only need to check for + # changes relative to that. + RELATIVE_PKG_PATH="." echo "Checking for changes in ${RELATIVE_PKG_PATH}..." diff --git a/handwritten/bigquery/.trampolinerc b/handwritten/bigquery/.trampolinerc index 608c0961662a..c4f630fa614f 100644 --- a/handwritten/bigquery/.trampolinerc +++ b/handwritten/bigquery/.trampolinerc @@ -51,4 +51,4 @@ if [[ -z "${TRAMPOLINE_BUILD_FILE:-}" ]]; then fi # Secret Manager secrets. -source ${PROJECT_ROOT}/handwritten/bigquery/.kokoro/populate-secrets.sh +source ${PROJECT_ROOT}/.kokoro/populate-secrets.sh diff --git a/handwritten/bigquery/src/types.d.ts b/handwritten/bigquery/src/types.d.ts index 0322dfbdee0f..709c5a23614f 100644 --- a/handwritten/bigquery/src/types.d.ts +++ b/handwritten/bigquery/src/types.d.ts @@ -13,7 +13,7 @@ // limitations under the License. /** - * Discovery Revision: 20260328 + * Discovery Revision: 20260429 */ /** @@ -891,6 +891,16 @@ declare namespace bigquery { dataMaskingApplied?: boolean; }; + /** + * 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). + */ + type IDataPolicyList = { + /** + * Contains a list of data policy options. At most 9 data policies are allowed per field. + */ + dataPolicies?: Array; + }; + /** * 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). */ @@ -1787,6 +1797,10 @@ declare namespace bigquery { * 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) */ containerMemory?: string; + /** + * Optional. Maximum number of requests that a Cloud Run instance can handle concurrently. If absent or if `0`, a default concurrency is used. + */ + containerRequestConcurrency?: string; /** * 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. */ @@ -1883,6 +1897,16 @@ declare namespace bigquery { errors?: Array; }; + /** + * Provides cache statistics for a GenAi function call. + */ + type IGenAiFunctionCacheStats = { + /** + * Number of rows served from cache. + */ + numCacheHitRows?: string; + }; + /** * Provides cost optimization statistics for a GenAi function call. */ @@ -1915,6 +1939,10 @@ declare namespace bigquery { * Provides statistics for each Ai function call within a query. */ type IGenAiFunctionStats = { + /** + * Cache stats for the function. + */ + cacheStats?: IGenAiFunctionCacheStats; /** * Cost optimization stats if applied on the rows processed by the function. */ @@ -3728,6 +3756,20 @@ declare namespace bigquery { refreshWatermark?: string; }; + /** + * Column Metadata Index staleness detailed infnormation. + */ + type IMetadataCacheStalenessInsight = { + /** + * Output only. Average column metadata index staleness of previous runs with the same query hash. + */ + avgPreviousStalenessMs?: string; + /** + * Output only. The percent increase in staleness between the current job and the average staleness of previous jobs with the same query hash. + */ + stalenessPercentageIncrease?: number; + }; + /** * Statistics for metadata caching in queried tables. */ @@ -4027,6 +4069,10 @@ declare namespace bigquery { * Output only. Standalone query stage performance insights, for exploring potential improvements. */ stagePerformanceStandaloneInsights?: Array; + /** + * Output only. Performance insights for table-level attributes that changed compared to previous runs. + */ + tableChangeInsights?: Array; }; /** @@ -5576,6 +5622,24 @@ declare namespace bigquery { type ITableCell = {v?: any}; + /** + * Table-level performance insights compared to previous runs. These insights don't apply to specific query stages, rather they apply to the whole table. + */ + type ITableChangeInsight = { + /** + * 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. + */ + metadataCacheNotUsedButUsedPreviously?: boolean; + /** + * 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. + */ + metadataCacheStalenessInsight?: IMetadataCacheStalenessInsight; + /** + * Output only. The table that was queried. + */ + tableReference?: ITableReference; + }; + /** * The TableConstraints defines the primary key and foreign key. */ @@ -5717,10 +5781,23 @@ declare namespace bigquery { * 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. */ collation?: string; + /** + * 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. + */ + dataGovernanceTagsInfo?: { + /** + * 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" + */ + dataGovernanceTags?: {[key: string]: string}; + }; /** * Optional. Data policies attached to this field, used for field-level access control. */ dataPolicies?: Array; + /** + * 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. + */ + dataPolicyList?: IDataPolicyList; /** * Optional. A SQL expression to specify the [default value] (https://cloud.google.com/bigquery/docs/default-values) for this field. */ diff --git a/handwritten/bigtable/.kokoro/trampoline_v2.sh b/handwritten/bigtable/.kokoro/trampoline_v2.sh index 6c987ec04608..19c2f5634a21 100755 --- a/handwritten/bigtable/.kokoro/trampoline_v2.sh +++ b/handwritten/bigtable/.kokoro/trampoline_v2.sh @@ -257,8 +257,9 @@ cd "${PROJECT_ROOT}" # Auto-injected conditional check # Check if the package directory has changes. If not, skip tests. if [[ "${RUNNING_IN_CI:-}" == "true" ]]; then - # The package path is hardcoded during migration - RELATIVE_PKG_PATH="handwritten/bigtable" + # We're already in the relevant directory, so we only need to check for + # changes relative to that. + RELATIVE_PKG_PATH="." echo "Checking for changes in ${RELATIVE_PKG_PATH}..." diff --git a/handwritten/bigtable/.trampolinerc b/handwritten/bigtable/.trampolinerc index a38a309cd7ef..5fc2253137db 100644 --- a/handwritten/bigtable/.trampolinerc +++ b/handwritten/bigtable/.trampolinerc @@ -49,4 +49,4 @@ if [[ -z "${TRAMPOLINE_BUILD_FILE:-}" ]]; then fi # Secret Manager secrets. -source ${PROJECT_ROOT}/handwritten/bigtable/.kokoro/populate-secrets.sh +source ${PROJECT_ROOT}/.kokoro/populate-secrets.sh diff --git a/handwritten/cloud-profiler/.trampolinerc b/handwritten/cloud-profiler/.trampolinerc index ad15983af29c..5fc2253137db 100644 --- a/handwritten/cloud-profiler/.trampolinerc +++ b/handwritten/cloud-profiler/.trampolinerc @@ -49,4 +49,4 @@ if [[ -z "${TRAMPOLINE_BUILD_FILE:-}" ]]; then fi # Secret Manager secrets. -source ${PROJECT_ROOT}/handwritten/cloud-profiler/.kokoro/populate-secrets.sh +source ${PROJECT_ROOT}/.kokoro/populate-secrets.sh diff --git a/handwritten/datastore/.kokoro/trampoline_v2.sh b/handwritten/datastore/.kokoro/trampoline_v2.sh index 8b3b225e110e..43a6559377ff 100755 --- a/handwritten/datastore/.kokoro/trampoline_v2.sh +++ b/handwritten/datastore/.kokoro/trampoline_v2.sh @@ -257,8 +257,9 @@ cd "${PROJECT_ROOT}" # Auto-injected conditional check # Check if the package directory has changes. If not, skip tests. if [[ "${RUNNING_IN_CI:-}" == "true" ]]; then - # The package path is hardcoded during migration - RELATIVE_PKG_PATH="handwritten/datastore" + # We're already in the relevant directory, so we only need to check for + # changes relative to that. + RELATIVE_PKG_PATH="." echo "Checking for changes in ${RELATIVE_PKG_PATH}..." diff --git a/handwritten/datastore/.trampolinerc b/handwritten/datastore/.trampolinerc index a085b321d44b..5fc2253137db 100644 --- a/handwritten/datastore/.trampolinerc +++ b/handwritten/datastore/.trampolinerc @@ -49,4 +49,4 @@ if [[ -z "${TRAMPOLINE_BUILD_FILE:-}" ]]; then fi # Secret Manager secrets. -source ${PROJECT_ROOT}/handwritten/datastore/.kokoro/populate-secrets.sh +source ${PROJECT_ROOT}/.kokoro/populate-secrets.sh diff --git a/handwritten/error-reporting/.kokoro/trampoline_v2.sh b/handwritten/error-reporting/.kokoro/trampoline_v2.sh index 9c03d000c1f9..c3abb44103d4 100755 --- a/handwritten/error-reporting/.kokoro/trampoline_v2.sh +++ b/handwritten/error-reporting/.kokoro/trampoline_v2.sh @@ -257,8 +257,9 @@ cd "${PROJECT_ROOT}" # Auto-injected conditional check # Check if the package directory has changes. If not, skip tests. if [[ "${RUNNING_IN_CI:-}" == "true" ]]; then - # The package path is hardcoded during migration - RELATIVE_PKG_PATH="handwritten/error-reporting" + # We're already in the relevant directory, so we only need to check for + # changes relative to that. + RELATIVE_PKG_PATH="." echo "Checking for changes in ${RELATIVE_PKG_PATH}..." diff --git a/handwritten/error-reporting/.trampolinerc b/handwritten/error-reporting/.trampolinerc index bec8dd85c29f..5fc2253137db 100644 --- a/handwritten/error-reporting/.trampolinerc +++ b/handwritten/error-reporting/.trampolinerc @@ -49,4 +49,4 @@ if [[ -z "${TRAMPOLINE_BUILD_FILE:-}" ]]; then fi # Secret Manager secrets. -source ${PROJECT_ROOT}/handwritten/error-reporting/.kokoro/populate-secrets.sh +source ${PROJECT_ROOT}/.kokoro/populate-secrets.sh diff --git a/handwritten/firestore/.kokoro/trampoline.sh b/handwritten/firestore/.kokoro/trampoline.sh index ef9cb4a426d6..0bc1e54a5dcd 100755 --- a/handwritten/firestore/.kokoro/trampoline.sh +++ b/handwritten/firestore/.kokoro/trampoline.sh @@ -4,8 +4,9 @@ # Auto-injected conditional check # Check if the package directory has changes. If not, skip tests. if [[ "${RUNNING_IN_CI:-}" == "true" ]]; then - # The package path is hardcoded during migration - RELATIVE_PKG_PATH="handwritten/firestore" + # We're already in the relevant directory, so we only need to check for + # changes relative to that. + RELATIVE_PKG_PATH="." echo "Checking for changes in ${RELATIVE_PKG_PATH}..." diff --git a/handwritten/firestore/.trampolinerc b/handwritten/firestore/.trampolinerc index 2af668a017d0..5fc2253137db 100644 --- a/handwritten/firestore/.trampolinerc +++ b/handwritten/firestore/.trampolinerc @@ -49,4 +49,4 @@ if [[ -z "${TRAMPOLINE_BUILD_FILE:-}" ]]; then fi # Secret Manager secrets. -source ${PROJECT_ROOT}/handwritten/firestore/.kokoro/populate-secrets.sh +source ${PROJECT_ROOT}/.kokoro/populate-secrets.sh diff --git a/handwritten/logging-bunyan/.kokoro/trampoline_v2.sh b/handwritten/logging-bunyan/.kokoro/trampoline_v2.sh index b13a2f79d69b..7ae2bee411c9 100755 --- a/handwritten/logging-bunyan/.kokoro/trampoline_v2.sh +++ b/handwritten/logging-bunyan/.kokoro/trampoline_v2.sh @@ -257,8 +257,9 @@ cd "${PROJECT_ROOT}" # Auto-injected conditional check # Check if the package directory has changes. If not, skip tests. if [[ "${RUNNING_IN_CI:-}" == "true" ]]; then - # The package path is hardcoded during migration - RELATIVE_PKG_PATH="handwritten/logging-bunyan" + # We're already in the relevant directory, so we only need to check for + # changes relative to that. + RELATIVE_PKG_PATH="." echo "Checking for changes in ${RELATIVE_PKG_PATH}..." diff --git a/handwritten/logging-bunyan/.trampolinerc b/handwritten/logging-bunyan/.trampolinerc index 5dac5eade264..5fc2253137db 100644 --- a/handwritten/logging-bunyan/.trampolinerc +++ b/handwritten/logging-bunyan/.trampolinerc @@ -49,4 +49,4 @@ if [[ -z "${TRAMPOLINE_BUILD_FILE:-}" ]]; then fi # Secret Manager secrets. -source ${PROJECT_ROOT}/handwritten/logging-bunyan/.kokoro/populate-secrets.sh +source ${PROJECT_ROOT}/.kokoro/populate-secrets.sh diff --git a/handwritten/logging-winston/.kokoro/trampoline_v2.sh b/handwritten/logging-winston/.kokoro/trampoline_v2.sh index 44b77110d0e1..32155b1e9033 100755 --- a/handwritten/logging-winston/.kokoro/trampoline_v2.sh +++ b/handwritten/logging-winston/.kokoro/trampoline_v2.sh @@ -257,8 +257,9 @@ cd "${PROJECT_ROOT}" # Auto-injected conditional check # Check if the package directory has changes. If not, skip tests. if [[ "${RUNNING_IN_CI:-}" == "true" ]]; then - # The package path is hardcoded during migration - RELATIVE_PKG_PATH="handwritten/logging-winston" + # We're already in the relevant directory, so we only need to check for + # changes relative to that. + RELATIVE_PKG_PATH="." echo "Checking for changes in ${RELATIVE_PKG_PATH}..." diff --git a/handwritten/logging-winston/.trampolinerc b/handwritten/logging-winston/.trampolinerc index b0b7f3fcaa3f..5fc2253137db 100644 --- a/handwritten/logging-winston/.trampolinerc +++ b/handwritten/logging-winston/.trampolinerc @@ -49,4 +49,4 @@ if [[ -z "${TRAMPOLINE_BUILD_FILE:-}" ]]; then fi # Secret Manager secrets. -source ${PROJECT_ROOT}/handwritten/logging-winston/.kokoro/populate-secrets.sh +source ${PROJECT_ROOT}/.kokoro/populate-secrets.sh diff --git a/handwritten/logging/.kokoro/trampoline_v2.sh b/handwritten/logging/.kokoro/trampoline_v2.sh index ce3e779c7889..7603e0fc6164 100755 --- a/handwritten/logging/.kokoro/trampoline_v2.sh +++ b/handwritten/logging/.kokoro/trampoline_v2.sh @@ -257,8 +257,9 @@ cd "${PROJECT_ROOT}" # Auto-injected conditional check # Check if the package directory has changes. If not, skip tests. if [[ "${RUNNING_IN_CI:-}" == "true" ]]; then - # The package path is hardcoded during migration - RELATIVE_PKG_PATH="handwritten/logging" + # We're already in the relevant directory, so we only need to check for + # changes relative to that. + RELATIVE_PKG_PATH="." echo "Checking for changes in ${RELATIVE_PKG_PATH}..." diff --git a/handwritten/logging/.trampolinerc b/handwritten/logging/.trampolinerc index f1ac3ee1315e..e7bdc6334237 100644 --- a/handwritten/logging/.trampolinerc +++ b/handwritten/logging/.trampolinerc @@ -50,4 +50,4 @@ if [[ -z "${TRAMPOLINE_BUILD_FILE:-}" ]]; then fi # Secret Manager secrets. -source ${PROJECT_ROOT}/handwritten/logging/.kokoro/populate-secrets.sh +source ${PROJECT_ROOT}/.kokoro/populate-secrets.sh diff --git a/handwritten/pubsub/.kokoro/trampoline_v2.sh b/handwritten/pubsub/.kokoro/trampoline_v2.sh index 682bdefdb061..db2fd9e1e1ff 100755 --- a/handwritten/pubsub/.kokoro/trampoline_v2.sh +++ b/handwritten/pubsub/.kokoro/trampoline_v2.sh @@ -257,8 +257,9 @@ cd "${PROJECT_ROOT}" # Auto-injected conditional check # Check if the package directory has changes. If not, skip tests. if [[ "${RUNNING_IN_CI:-}" == "true" ]]; then - # The package path is hardcoded during migration - RELATIVE_PKG_PATH="handwritten/pubsub" + # We're already in the relevant directory, so we only need to check for + # changes relative to that. + RELATIVE_PKG_PATH="." echo "Checking for changes in ${RELATIVE_PKG_PATH}..." diff --git a/handwritten/pubsub/.trampolinerc b/handwritten/pubsub/.trampolinerc index a04ed00bb26c..5fc2253137db 100644 --- a/handwritten/pubsub/.trampolinerc +++ b/handwritten/pubsub/.trampolinerc @@ -49,4 +49,4 @@ if [[ -z "${TRAMPOLINE_BUILD_FILE:-}" ]]; then fi # Secret Manager secrets. -source ${PROJECT_ROOT}/handwritten/pubsub/.kokoro/populate-secrets.sh +source ${PROJECT_ROOT}/.kokoro/populate-secrets.sh diff --git a/handwritten/spanner/.kokoro/trampoline_v2.sh b/handwritten/spanner/.kokoro/trampoline_v2.sh index 2a439f9b83e3..8ed7b6e70bc7 100755 --- a/handwritten/spanner/.kokoro/trampoline_v2.sh +++ b/handwritten/spanner/.kokoro/trampoline_v2.sh @@ -260,8 +260,9 @@ cd "${PROJECT_ROOT}" # Auto-injected conditional check # Check if the package directory has changes. If not, skip tests. if [[ "${RUNNING_IN_CI:-}" == "true" ]]; then - # The package path is hardcoded during migration - RELATIVE_PKG_PATH="handwritten/spanner" + # We're already in the relevant directory, so we only need to check for + # changes relative to that. + RELATIVE_PKG_PATH="." echo "Checking for changes in ${RELATIVE_PKG_PATH}..." diff --git a/handwritten/storage/.kokoro/trampoline_v2.sh b/handwritten/storage/.kokoro/trampoline_v2.sh index e1adcd24e9e7..17f7fce62dd2 100755 --- a/handwritten/storage/.kokoro/trampoline_v2.sh +++ b/handwritten/storage/.kokoro/trampoline_v2.sh @@ -257,8 +257,9 @@ cd "${PROJECT_ROOT}" # Auto-injected conditional check # Check if the package directory has changes. If not, skip tests. if [[ "${RUNNING_IN_CI:-}" == "true" ]]; then - # The package path is hardcoded during migration - RELATIVE_PKG_PATH="handwritten/storage" + # We're already in the relevant directory, so we only need to check for + # changes relative to that. + RELATIVE_PKG_PATH="." echo "Checking for changes in ${RELATIVE_PKG_PATH}..." diff --git a/handwritten/storage/.trampolinerc b/handwritten/storage/.trampolinerc index 2feed5b5844f..5fc2253137db 100644 --- a/handwritten/storage/.trampolinerc +++ b/handwritten/storage/.trampolinerc @@ -49,4 +49,4 @@ if [[ -z "${TRAMPOLINE_BUILD_FILE:-}" ]]; then fi # Secret Manager secrets. -source ${PROJECT_ROOT}/handwritten/storage/.kokoro/populate-secrets.sh +source ${PROJECT_ROOT}/.kokoro/populate-secrets.sh