Skip to content

Commit

Permalink
chore: update types from Discovery (#1398)
Browse files Browse the repository at this point in the history
* chore: update types from Discovery

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
yoshi-code-bot and gcf-owl-bot[bot] authored Sep 9, 2024
1 parent 97f8910 commit ebb3bcd
Showing 1 changed file with 15 additions and 26 deletions.
41 changes: 15 additions & 26 deletions src/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

/**
* Discovery Revision: 20240727
* Discovery Revision: 20240803
*/

/**
Expand Down Expand Up @@ -835,6 +835,16 @@ declare namespace bigquery {
dataMaskingApplied?: boolean;
};

/**
* Data policy option proto, it currently supports name only, will support precedence later.
*/
type IDataPolicyOption = {
/**
* Data policy resource name in the form of projects/project_id/locations/location_id/dataPolicies/data_policy_id.
*/
name?: string;
};

/**
* Data split result. This contains references to the training and evaluation data tables that were used to train the model.
*/
Expand Down Expand Up @@ -2025,27 +2035,6 @@ declare namespace bigquery {
trialId?: string;
};

/**
* Metadata for value generation for an identity column.
*/
type IIdentityColumnInfo = {
/**
* Optional. Dictates when system generated values are used to populate the field.
*/
generatedMode?:
| 'GENERATED_MODE_UNSPECIFIED'
| 'GENERATED_ALWAYS'
| 'GENERATED_BY_DEFAULT';
/**
* Optional. The minimum difference between two successive generated values. Should be INTEGER compatible. Can be negative or positive but not 0. The default value is 1 if the field is not specified.
*/
increment?: string;
/**
* Optional. The first generated value. Should be INTEGER compatible. The default value is 1 if the field is not specified.
*/
start?: string;
};

/**
* Reason about why no search index was used in the search query (or sub-query).
*/
Expand Down Expand Up @@ -5144,6 +5133,10 @@ 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. Data policy options, will replace the data_policies.
*/
dataPolicies?: Array<IDataPolicyOption>;
/**
* Optional. A SQL expression to specify the [default value] (https://cloud.google.com/bigquery/docs/default-values) for this field.
*/
Expand All @@ -5160,10 +5153,6 @@ declare namespace bigquery {
* Optional. Definition of the foreign data type. Only valid for top-level schema fields (not nested fields). If the type is FOREIGN, this field is required.
*/
foreignTypeDefinition?: string;
/**
* Optional. Definition of how values are generated for the field. Setting this option means that the field is an identity column. Only valid for top-level schema INTEGER fields (not nested fields).
*/
identityColumnInfo?: IIdentityColumnInfo;
/**
* Optional. Maximum length of values of this field for STRINGS or BYTES. If max_length is not specified, no maximum length constraint is imposed on this field. If type = "STRING", then max_length represents the maximum UTF-8 length of strings in this field. If type = "BYTES", then max_length represents the maximum number of bytes in this field. It is invalid to set this field if type ≠ "STRING" and ≠ "BYTES".
*/
Expand Down

0 comments on commit ebb3bcd

Please sign in to comment.