Skip to content

Commit

Permalink
feat(bigquery): update the API
Browse files Browse the repository at this point in the history
#### bigquery:v2

The following keys were added:
- schemas.Table.properties.num_active_logical_bytes.description
- schemas.Table.properties.num_active_logical_bytes.format
- schemas.Table.properties.num_active_logical_bytes.type
- schemas.Table.properties.num_active_physical_bytes.description
- schemas.Table.properties.num_active_physical_bytes.format
- schemas.Table.properties.num_active_physical_bytes.type
- schemas.Table.properties.num_long_term_logical_bytes.description
- schemas.Table.properties.num_long_term_logical_bytes.format
- schemas.Table.properties.num_long_term_logical_bytes.type
- schemas.Table.properties.num_long_term_physical_bytes.description
- schemas.Table.properties.num_long_term_physical_bytes.format
- schemas.Table.properties.num_long_term_physical_bytes.type
- schemas.Table.properties.num_partitions.description
- schemas.Table.properties.num_partitions.format
- schemas.Table.properties.num_partitions.type
- schemas.Table.properties.num_time_travel_physical_bytes.description
- schemas.Table.properties.num_time_travel_physical_bytes.format
- schemas.Table.properties.num_time_travel_physical_bytes.type
- schemas.Table.properties.num_total_logical_bytes.description
- schemas.Table.properties.num_total_logical_bytes.format
- schemas.Table.properties.num_total_logical_bytes.type
- schemas.Table.properties.num_total_physical_bytes.description
- schemas.Table.properties.num_total_physical_bytes.format
- schemas.Table.properties.num_total_physical_bytes.type

The following keys were changed:
- schemas.Explanation.properties.featureName.description
- schemas.HparamTuningTrial.description
- schemas.Model.properties.defaultTrialId.description
- schemas.Model.properties.hparamTrials.description
- schemas.Model.properties.optimalTrialIds.description
  • Loading branch information
yoshi-automation authored and bcoe committed Apr 11, 2022
1 parent 33becb7 commit 30b6984
Show file tree
Hide file tree
Showing 2 changed files with 139 additions and 11 deletions.
52 changes: 46 additions & 6 deletions discovery/bigquery-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1693,7 +1693,7 @@
}
}
},
"revision": "20220322",
"revision": "20220326",
"rootUrl": "https://bigquery.googleapis.com/",
"schemas": {
"AggregateClassificationMetrics": {
Expand Down Expand Up @@ -3323,7 +3323,7 @@
"type": "number"
},
"featureName": {
"description": "Full name of the feature. For non-numerical features, will be formatted like .. Overall size of feature name will always be truncated to first 120 characters.",
"description": "The full feature name. For non-numerical features, will be formatted like `.`. Overall size of feature name will always be truncated to first 120 characters.",
"type": "string"
}
},
Expand Down Expand Up @@ -3694,7 +3694,7 @@
"type": "object"
},
"HparamTuningTrial": {
"description": "Training info of a trial in hyperparameter tuning.",
"description": "Training info of a trial in [hyperparameter tuning](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview) models.",
"id": "HparamTuningTrial",
"properties": {
"endTimeMs": {
Expand Down Expand Up @@ -4910,7 +4910,7 @@
"type": "string"
},
"defaultTrialId": {
"description": "Output only. The default trial_id to use in TVFs when the trial_id is not passed in. For single-objective hyperparameter tuning, this is the best trial id. For multi-objective hyperparameter tuning, this is the smallest trial id among all Pareto optimal trials.",
"description": "Output only. The default trial_id to use in TVFs when the trial_id is not passed in. For single-objective [hyperparameter tuning](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview) models, this is the best trial ID. For multi-objective [hyperparameter tuning](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview) models, this is the smallest trial ID among all Pareto optimal trials.",
"format": "int64",
"readOnly": true,
"type": "string"
Expand Down Expand Up @@ -4951,7 +4951,7 @@
"readOnly": true
},
"hparamTrials": {
"description": "Output only. Trials of a hyperparameter tuning model sorted by trial_id.",
"description": "Output only. Trials of a [hyperparameter tuning](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview) model sorted by trial_id.",
"items": {
"$ref": "HparamTuningTrial"
},
Expand Down Expand Up @@ -5030,7 +5030,7 @@
"type": "string"
},
"optimalTrialIds": {
"description": "Output only. For single-objective hyperparameter tuning, it only contains the best trial. For multi-objective hyperparameter tuning, it contains all Pareto optimal trials sorted by trial_id.",
"description": "Output only. For single-objective [hyperparameter tuning](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview) models, it only contains the best trial. For multi-objective [hyperparameter tuning](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview) models, it contains all Pareto optimal trials sorted by trial_id.",
"items": {
"format": "int64",
"type": "string"
Expand Down Expand Up @@ -6142,6 +6142,46 @@
"format": "uint64",
"type": "string"
},
"num_active_logical_bytes": {
"description": "[Output-only] Number of logical bytes that are less than 90 days old.",
"format": "int64",
"type": "string"
},
"num_active_physical_bytes": {
"description": "[Output-only] Number of physical bytes less than 90 days old. This data is not kept in real time, and might be delayed by a few seconds to a few minutes.",
"format": "int64",
"type": "string"
},
"num_long_term_logical_bytes": {
"description": "[Output-only] Number of logical bytes that are more than 90 days old.",
"format": "int64",
"type": "string"
},
"num_long_term_physical_bytes": {
"description": "[Output-only] Number of physical bytes more than 90 days old. This data is not kept in real time, and might be delayed by a few seconds to a few minutes.",
"format": "int64",
"type": "string"
},
"num_partitions": {
"description": "[Output-only] The number of partitions present in the table or materialized view. This data is not kept in real time, and might be delayed by a few seconds to a few minutes.",
"format": "int64",
"type": "string"
},
"num_time_travel_physical_bytes": {
"description": "[Output-only] Number of physical bytes used by time travel storage (deleted or changed data). This data is not kept in real time, and might be delayed by a few seconds to a few minutes.",
"format": "int64",
"type": "string"
},
"num_total_logical_bytes": {
"description": "[Output-only] Total number of logical bytes in the table or materialized view.",
"format": "int64",
"type": "string"
},
"num_total_physical_bytes": {
"description": "[Output-only] The physical size of this table in bytes. This also includes storage used for time travel. This data is not kept in real time, and might be delayed by a few seconds to a few minutes.",
"format": "int64",
"type": "string"
},
"rangePartitioning": {
"$ref": "RangePartitioning",
"description": "[TrustedTester] Range partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified."
Expand Down
98 changes: 93 additions & 5 deletions src/apis/bigquery/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,7 @@ export namespace bigquery_v2 {
*/
attribution?: number | null;
/**
* Full name of the feature. For non-numerical features, will be formatted like .. Overall size of feature name will always be truncated to first 120 characters.
* The full feature name. For non-numerical features, will be formatted like `.`. Overall size of feature name will always be truncated to first 120 characters.
*/
featureName?: string | null;
}
Expand Down Expand Up @@ -1496,7 +1496,7 @@ export namespace bigquery_v2 {
walsAlpha?: Schema$DoubleHparamSearchSpace;
}
/**
* Training info of a trial in hyperparameter tuning.
* Training info of a trial in [hyperparameter tuning](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview) models.
*/
export interface Schema$HparamTuningTrial {
/**
Expand Down Expand Up @@ -2376,7 +2376,7 @@ export namespace bigquery_v2 {
*/
creationTime?: string | null;
/**
* Output only. The default trial_id to use in TVFs when the trial_id is not passed in. For single-objective hyperparameter tuning, this is the best trial id. For multi-objective hyperparameter tuning, this is the smallest trial id among all Pareto optimal trials.
* Output only. The default trial_id to use in TVFs when the trial_id is not passed in. For single-objective [hyperparameter tuning](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview) models, this is the best trial ID. For multi-objective [hyperparameter tuning](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview) models, this is the smallest trial ID among all Pareto optimal trials.
*/
defaultTrialId?: string | null;
/**
Expand Down Expand Up @@ -2408,7 +2408,7 @@ export namespace bigquery_v2 {
*/
hparamSearchSpaces?: Schema$HparamSearchSpaces;
/**
* Output only. Trials of a hyperparameter tuning model sorted by trial_id.
* Output only. Trials of a [hyperparameter tuning](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview) model sorted by trial_id.
*/
hparamTrials?: Schema$HparamTuningTrial[];
/**
Expand Down Expand Up @@ -2436,7 +2436,7 @@ export namespace bigquery_v2 {
*/
modelType?: string | null;
/**
* Output only. For single-objective hyperparameter tuning, it only contains the best trial. For multi-objective hyperparameter tuning, it contains all Pareto optimal trials sorted by trial_id.
* Output only. For single-objective [hyperparameter tuning](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview) models, it only contains the best trial. For multi-objective [hyperparameter tuning](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview) models, it contains all Pareto optimal trials sorted by trial_id.
*/
optimalTrialIds?: string[] | null;
/**
Expand Down Expand Up @@ -3171,6 +3171,38 @@ export namespace bigquery_v2 {
* [Output-only] The number of rows of data in this table, excluding any data in the streaming buffer.
*/
numRows?: string | null;
/**
* [Output-only] Number of logical bytes that are less than 90 days old.
*/
num_active_logical_bytes?: string | null;
/**
* [Output-only] Number of physical bytes less than 90 days old. This data is not kept in real time, and might be delayed by a few seconds to a few minutes.
*/
num_active_physical_bytes?: string | null;
/**
* [Output-only] Number of logical bytes that are more than 90 days old.
*/
num_long_term_logical_bytes?: string | null;
/**
* [Output-only] Number of physical bytes more than 90 days old. This data is not kept in real time, and might be delayed by a few seconds to a few minutes.
*/
num_long_term_physical_bytes?: string | null;
/**
* [Output-only] The number of partitions present in the table or materialized view. This data is not kept in real time, and might be delayed by a few seconds to a few minutes.
*/
num_partitions?: string | null;
/**
* [Output-only] Number of physical bytes used by time travel storage (deleted or changed data). This data is not kept in real time, and might be delayed by a few seconds to a few minutes.
*/
num_time_travel_physical_bytes?: string | null;
/**
* [Output-only] Total number of logical bytes in the table or materialized view.
*/
num_total_logical_bytes?: string | null;
/**
* [Output-only] The physical size of this table in bytes. This also includes storage used for time travel. This data is not kept in real time, and might be delayed by a few seconds to a few minutes.
*/
num_total_physical_bytes?: string | null;
/**
* [TrustedTester] Range partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified.
*/
Expand Down Expand Up @@ -9056,6 +9088,14 @@ export namespace bigquery_v2 {
* // "numLongTermBytes": "my_numLongTermBytes",
* // "numPhysicalBytes": "my_numPhysicalBytes",
* // "numRows": "my_numRows",
* // "num_active_logical_bytes": "my_num_active_logical_bytes",
* // "num_active_physical_bytes": "my_num_active_physical_bytes",
* // "num_long_term_logical_bytes": "my_num_long_term_logical_bytes",
* // "num_long_term_physical_bytes": "my_num_long_term_physical_bytes",
* // "num_partitions": "my_num_partitions",
* // "num_time_travel_physical_bytes": "my_num_time_travel_physical_bytes",
* // "num_total_logical_bytes": "my_num_total_logical_bytes",
* // "num_total_physical_bytes": "my_num_total_physical_bytes",
* // "rangePartitioning": {},
* // "requirePartitionFilter": false,
* // "schema": {},
Expand Down Expand Up @@ -9363,6 +9403,14 @@ export namespace bigquery_v2 {
* // "numLongTermBytes": "my_numLongTermBytes",
* // "numPhysicalBytes": "my_numPhysicalBytes",
* // "numRows": "my_numRows",
* // "num_active_logical_bytes": "my_num_active_logical_bytes",
* // "num_active_physical_bytes": "my_num_active_physical_bytes",
* // "num_long_term_logical_bytes": "my_num_long_term_logical_bytes",
* // "num_long_term_physical_bytes": "my_num_long_term_physical_bytes",
* // "num_partitions": "my_num_partitions",
* // "num_time_travel_physical_bytes": "my_num_time_travel_physical_bytes",
* // "num_total_logical_bytes": "my_num_total_logical_bytes",
* // "num_total_physical_bytes": "my_num_total_physical_bytes",
* // "rangePartitioning": {},
* // "requirePartitionFilter": false,
* // "schema": {},
Expand Down Expand Up @@ -9401,6 +9449,14 @@ export namespace bigquery_v2 {
* // "numLongTermBytes": "my_numLongTermBytes",
* // "numPhysicalBytes": "my_numPhysicalBytes",
* // "numRows": "my_numRows",
* // "num_active_logical_bytes": "my_num_active_logical_bytes",
* // "num_active_physical_bytes": "my_num_active_physical_bytes",
* // "num_long_term_logical_bytes": "my_num_long_term_logical_bytes",
* // "num_long_term_physical_bytes": "my_num_long_term_physical_bytes",
* // "num_partitions": "my_num_partitions",
* // "num_time_travel_physical_bytes": "my_num_time_travel_physical_bytes",
* // "num_total_logical_bytes": "my_num_total_logical_bytes",
* // "num_total_physical_bytes": "my_num_total_physical_bytes",
* // "rangePartitioning": {},
* // "requirePartitionFilter": false,
* // "schema": {},
Expand Down Expand Up @@ -9710,6 +9766,14 @@ export namespace bigquery_v2 {
* // "numLongTermBytes": "my_numLongTermBytes",
* // "numPhysicalBytes": "my_numPhysicalBytes",
* // "numRows": "my_numRows",
* // "num_active_logical_bytes": "my_num_active_logical_bytes",
* // "num_active_physical_bytes": "my_num_active_physical_bytes",
* // "num_long_term_logical_bytes": "my_num_long_term_logical_bytes",
* // "num_long_term_physical_bytes": "my_num_long_term_physical_bytes",
* // "num_partitions": "my_num_partitions",
* // "num_time_travel_physical_bytes": "my_num_time_travel_physical_bytes",
* // "num_total_logical_bytes": "my_num_total_logical_bytes",
* // "num_total_physical_bytes": "my_num_total_physical_bytes",
* // "rangePartitioning": {},
* // "requirePartitionFilter": false,
* // "schema": {},
Expand Down Expand Up @@ -9748,6 +9812,14 @@ export namespace bigquery_v2 {
* // "numLongTermBytes": "my_numLongTermBytes",
* // "numPhysicalBytes": "my_numPhysicalBytes",
* // "numRows": "my_numRows",
* // "num_active_logical_bytes": "my_num_active_logical_bytes",
* // "num_active_physical_bytes": "my_num_active_physical_bytes",
* // "num_long_term_logical_bytes": "my_num_long_term_logical_bytes",
* // "num_long_term_physical_bytes": "my_num_long_term_physical_bytes",
* // "num_partitions": "my_num_partitions",
* // "num_time_travel_physical_bytes": "my_num_time_travel_physical_bytes",
* // "num_total_logical_bytes": "my_num_total_logical_bytes",
* // "num_total_physical_bytes": "my_num_total_physical_bytes",
* // "rangePartitioning": {},
* // "requirePartitionFilter": false,
* // "schema": {},
Expand Down Expand Up @@ -10206,6 +10278,14 @@ export namespace bigquery_v2 {
* // "numLongTermBytes": "my_numLongTermBytes",
* // "numPhysicalBytes": "my_numPhysicalBytes",
* // "numRows": "my_numRows",
* // "num_active_logical_bytes": "my_num_active_logical_bytes",
* // "num_active_physical_bytes": "my_num_active_physical_bytes",
* // "num_long_term_logical_bytes": "my_num_long_term_logical_bytes",
* // "num_long_term_physical_bytes": "my_num_long_term_physical_bytes",
* // "num_partitions": "my_num_partitions",
* // "num_time_travel_physical_bytes": "my_num_time_travel_physical_bytes",
* // "num_total_logical_bytes": "my_num_total_logical_bytes",
* // "num_total_physical_bytes": "my_num_total_physical_bytes",
* // "rangePartitioning": {},
* // "requirePartitionFilter": false,
* // "schema": {},
Expand Down Expand Up @@ -10244,6 +10324,14 @@ export namespace bigquery_v2 {
* // "numLongTermBytes": "my_numLongTermBytes",
* // "numPhysicalBytes": "my_numPhysicalBytes",
* // "numRows": "my_numRows",
* // "num_active_logical_bytes": "my_num_active_logical_bytes",
* // "num_active_physical_bytes": "my_num_active_physical_bytes",
* // "num_long_term_logical_bytes": "my_num_long_term_logical_bytes",
* // "num_long_term_physical_bytes": "my_num_long_term_physical_bytes",
* // "num_partitions": "my_num_partitions",
* // "num_time_travel_physical_bytes": "my_num_time_travel_physical_bytes",
* // "num_total_logical_bytes": "my_num_total_logical_bytes",
* // "num_total_physical_bytes": "my_num_total_physical_bytes",
* // "rangePartitioning": {},
* // "requirePartitionFilter": false,
* // "schema": {},
Expand Down

0 comments on commit 30b6984

Please sign in to comment.