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.Binding.properties.bindingId.type

The following keys were changed:
- mtlsRootUrl
- rootUrl
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Nov 9, 2020
1 parent 87d2089 commit 632b137
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 38 deletions.
9 changes: 6 additions & 3 deletions discovery/bigquery-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"id": "bigquery:v2",
"kind": "discovery#restDescription",
"mtlsRootUrl": "https://www.mtls.googleapis.com/",
"mtlsRootUrl": "https://bigquery.mtls.googleapis.com/",
"name": "bigquery",
"ownerDomain": "google.com",
"ownerName": "Google",
Expand Down Expand Up @@ -1579,8 +1579,8 @@
}
}
},
"revision": "20201022",
"rootUrl": "https://www.googleapis.com/",
"revision": "20201030",
"rootUrl": "https://bigquery.googleapis.com/",
"schemas": {
"AggregateClassificationMetrics": {
"description": "Aggregate metrics for classification/classifier models. For multi-class models, the metrics are either macro-averaged or micro-averaged. When macro-averaged, the metrics are calculated for each label and then an unweighted average is taken of those values. When micro-averaged, the metric is calculated globally by counting the total number of correctly predicted rows.",
Expand Down Expand Up @@ -2173,6 +2173,9 @@
"description": "Associates `members` with a `role`.",
"id": "Binding",
"properties": {
"bindingId": {
"type": "string"
},
"condition": {
"$ref": "Expr",
"description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)."
Expand Down
71 changes: 36 additions & 35 deletions src/apis/bigquery/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ export namespace bigquery_v2 {
* Associates `members` with a `role`.
*/
export interface Schema$Binding {
bindingId?: string | null;
/**
* The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
*/
Expand Down Expand Up @@ -3204,7 +3205,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -3353,7 +3354,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -3521,7 +3522,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -3664,7 +3665,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -3834,7 +3835,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -4004,7 +4005,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -4237,7 +4238,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -4381,7 +4382,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -4544,7 +4545,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -4705,7 +4706,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -4860,7 +4861,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -5026,7 +5027,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -5295,7 +5296,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -5445,7 +5446,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -5588,7 +5589,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -5757,7 +5758,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -5972,7 +5973,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -6110,7 +6111,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -6263,7 +6264,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -6413,7 +6414,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -6576,7 +6577,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -6725,7 +6726,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -6890,7 +6891,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -7140,7 +7141,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -7330,7 +7331,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -7479,7 +7480,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -7665,7 +7666,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -7832,7 +7833,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -7977,7 +7978,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -8174,7 +8175,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -8317,7 +8318,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -8516,7 +8517,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -8660,7 +8661,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -8809,7 +8810,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down Expand Up @@ -9007,7 +9008,7 @@ export namespace bigquery_v2 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down

0 comments on commit 632b137

Please sign in to comment.