Skip to content

Commit

Permalink
feat(bigquery)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.

#### bigquery:v2

The following keys were deleted:
- schemas.DatasetAccessEntry.properties.target_types.items.enum
- schemas.DatasetAccessEntry.properties.target_types.items.enumDescriptions
- schemas.DatasetAccessEntry.properties.target_types.items.type
- schemas.DatasetAccessEntry.properties.target_types.type

The following keys were added:
- schemas.DatasetAccessEntry.properties.targetTypes.items.enum
- schemas.DatasetAccessEntry.properties.targetTypes.items.enumDescriptions
- schemas.DatasetAccessEntry.properties.targetTypes.items.type
- schemas.DatasetAccessEntry.properties.targetTypes.type
- schemas.JobConfigurationLoad.properties.preserveAsciiControlCharacters.description
- schemas.JobConfigurationLoad.properties.preserveAsciiControlCharacters.type
  • Loading branch information
yoshi-automation authored and bcoe committed Mar 8, 2022
1 parent e7afd58 commit 16e2a77
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 6 additions & 2 deletions discovery/bigquery-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1693,7 +1693,7 @@
}
}
},
"revision": "20220125",
"revision": "20220222",
"rootUrl": "https://bigquery.googleapis.com/",
"schemas": {
"AggregateClassificationMetrics": {
Expand Down Expand Up @@ -2827,7 +2827,7 @@
"$ref": "DatasetReference",
"description": "[Required] The dataset this entry applies to."
},
"target_types": {
"targetTypes": {
"items": {
"enum": [
"TARGET_TYPE_UNSPECIFIED",
Expand Down Expand Up @@ -3729,6 +3729,10 @@
"$ref": "ParquetOptions",
"description": "[Optional] Options to configure parquet support."
},
"preserveAsciiControlCharacters": {
"description": "[Optional] Preserves the embedded ASCII control characters (the first 32 characters in the ASCII-table, from '\\x00' to '\\x1F') when loading from CSV. Only applicable to CSV, ignored for other formats.",
"type": "boolean"
},
"projectionFields": {
"description": "If sourceFormat is set to \"DATASTORE_BACKUP\", indicates which entity properties to load into BigQuery from a Cloud Datastore backup. Property names are case sensitive and must be top-level properties. If no properties are specified, BigQuery loads all properties. If any named property isn't found in the Cloud Datastore backup, an invalid error is returned in the job result.",
"items": {
Expand Down
6 changes: 5 additions & 1 deletion src/apis/bigquery/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ export namespace bigquery_v2 {
* [Required] The dataset this entry applies to.
*/
dataset?: Schema$DatasetReference;
target_types?: string[] | null;
targetTypes?: string[] | null;
}
export interface Schema$DatasetList {
/**
Expand Down Expand Up @@ -1521,6 +1521,10 @@ export namespace bigquery_v2 {
* [Optional] Options to configure parquet support.
*/
parquetOptions?: Schema$ParquetOptions;
/**
* [Optional] Preserves the embedded ASCII control characters (the first 32 characters in the ASCII-table, from '\x00' to '\x1F') when loading from CSV. Only applicable to CSV, ignored for other formats.
*/
preserveAsciiControlCharacters?: boolean | null;
/**
* If sourceFormat is set to "DATASTORE_BACKUP", indicates which entity properties to load into BigQuery from a Cloud Datastore backup. Property names are case sensitive and must be top-level properties. If no properties are specified, BigQuery loads all properties. If any named property isn't found in the Cloud Datastore backup, an invalid error is returned in the job result.
*/
Expand Down

0 comments on commit 16e2a77

Please sign in to comment.