From 456d468c54b0a90769415b9c24c2c682ffaa1341 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 21 Mar 2024 07:13:23 +0000 Subject: [PATCH] feat(all): auto-regenerate discovery clients --- adsense/v2/adsense-api.json | 12 +- adsense/v2/adsense-gen.go | 56 +- checks/v1alpha/checks-api.json | 8 +- checks/v1alpha/checks-gen.go | 1 + cloudbilling/v1beta/cloudbilling-api.json | 307 +- cloudbilling/v1beta/cloudbilling-gen.go | 1723 +++-------- compute/v0.beta/compute-api.json | 1312 ++++++++- compute/v0.beta/compute-gen.go | 2575 ++++++++++++++++- datacatalog/v1/datacatalog-api.json | 14 +- datacatalog/v1/datacatalog-gen.go | 36 +- datacatalog/v1beta1/datacatalog-api.json | 15 +- datacatalog/v1beta1/datacatalog-gen.go | 37 +- dataportability/v1/dataportability-api.json | 205 +- dataportability/v1/dataportability-gen.go | 241 ++ .../v1beta/dataportability-api.json | 205 +- dataportability/v1beta/dataportability-gen.go | 241 ++ firebasehosting/v1/firebasehosting-api.json | 4 +- firebasehosting/v1/firebasehosting-gen.go | 2 +- .../v1beta1/firebasehosting-api.json | 4 +- .../v1beta1/firebasehosting-gen.go | 2 +- healthcare/v1/healthcare-api.json | 4 +- healthcare/v1/healthcare-gen.go | 2 +- healthcare/v1beta1/healthcare-api.json | 26 +- healthcare/v1beta1/healthcare-gen.go | 88 +- iam/v2/iam-api.json | 35 +- iam/v2/iam-gen.go | 44 + realtimebidding/v1/realtimebidding-api.json | 8 +- realtimebidding/v1/realtimebidding-gen.go | 2 + .../v1/recaptchaenterprise-api.json | 4 +- .../v1/recaptchaenterprise-gen.go | 2 +- retail/v2/retail-api.json | 4 +- retail/v2/retail-gen.go | 4 +- retail/v2alpha/retail-api.json | 6 +- retail/v2alpha/retail-gen.go | 12 +- retail/v2beta/retail-api.json | 4 +- retail/v2beta/retail-gen.go | 4 +- sheets/v4/sheets-api.json | 6 +- sheets/v4/sheets-gen.go | 5 + 38 files changed, 5287 insertions(+), 1973 deletions(-) diff --git a/adsense/v2/adsense-api.json b/adsense/v2/adsense-api.json index 2bf793f7ff4..6bfb640d96a 100644 --- a/adsense/v2/adsense-api.json +++ b/adsense/v2/adsense-api.json @@ -324,7 +324,7 @@ "adunits": { "methods": { "create": { - "description": "Creates an ad unit. This method can only be used by projects enabled for the [AdSense for Platforms](https://developers.google.com/adsense/platforms/) product. Note that ad units can only be created for ad clients with an \"AFC\" product code. For more info see the [AdClient resource](/adsense/management/reference/rest/v2/accounts.adclients). For now, this method can only be used to create `DISPLAY` ad units. See: https://support.google.com/adsense/answer/9183566", + "description": "Creates an ad unit. This method can be called only by a restricted set of projects, which are usually owned by [AdSense for Platforms](https://developers.google.com/adsense/platforms/) publishers. Contact your account manager if you need to use this method. Note that ad units can only be created for ad clients with an \"AFC\" product code. For more info see the [AdClient resource](/adsense/management/reference/rest/v2/accounts.adclients). For now, this method can only be used to create `DISPLAY` ad units. See: https://support.google.com/adsense/answer/9183566", "flatPath": "v2/accounts/{accountsId}/adclients/{adclientsId}/adunits", "httpMethod": "POST", "id": "adsense.accounts.adclients.adunits.create", @@ -478,7 +478,7 @@ ] }, "patch": { - "description": "Updates an ad unit. This method can only be used by projects enabled for the [AdSense for Platforms](https://developers.google.com/adsense/platforms/) product. For now, this method can only be used to update `DISPLAY` ad units. See: https://support.google.com/adsense/answer/9183566", + "description": "Updates an ad unit. This method can be called only by a restricted set of projects, which are usually owned by [AdSense for Platforms](https://developers.google.com/adsense/platforms/) publishers. Contact your account manager if you need to use this method. For now, this method can only be used to update `DISPLAY` ad units. See: https://support.google.com/adsense/answer/9183566", "flatPath": "v2/accounts/{accountsId}/adclients/{adclientsId}/adunits/{adunitsId}", "httpMethod": "PATCH", "id": "adsense.accounts.adclients.adunits.patch", @@ -516,7 +516,7 @@ "customchannels": { "methods": { "create": { - "description": "Creates a custom channel. This method can only be used by projects enabled for the [AdSense for Platforms](https://developers.google.com/adsense/platforms/) product.", + "description": "Creates a custom channel. This method can be called only by a restricted set of projects, which are usually owned by [AdSense for Platforms](https://developers.google.com/adsense/platforms/) publishers. Contact your account manager if you need to use this method.", "flatPath": "v2/accounts/{accountsId}/adclients/{adclientsId}/customchannels", "httpMethod": "POST", "id": "adsense.accounts.adclients.customchannels.create", @@ -544,7 +544,7 @@ ] }, "delete": { - "description": "Deletes a custom channel. This method can only be used by projects enabled for the [AdSense for Platforms](https://developers.google.com/adsense/platforms/) product.", + "description": "Deletes a custom channel. This method can be called only by a restricted set of projects, which are usually owned by [AdSense for Platforms](https://developers.google.com/adsense/platforms/) publishers. Contact your account manager if you need to use this method.", "flatPath": "v2/accounts/{accountsId}/adclients/{adclientsId}/customchannels/{customchannelsId}", "httpMethod": "DELETE", "id": "adsense.accounts.adclients.customchannels.delete", @@ -669,7 +669,7 @@ ] }, "patch": { - "description": "Updates a custom channel. This method can only be used by projects enabled for the [AdSense for Platforms](https://developers.google.com/adsense/platforms/) product.", + "description": "Updates a custom channel. This method can be called only by a restricted set of projects, which are usually owned by [AdSense for Platforms](https://developers.google.com/adsense/platforms/) publishers. Contact your account manager if you need to use this method.", "flatPath": "v2/accounts/{accountsId}/adclients/{adclientsId}/customchannels/{customchannelsId}", "httpMethod": "PATCH", "id": "adsense.accounts.adclients.customchannels.patch", @@ -1845,7 +1845,7 @@ } } }, - "revision": "20240306", + "revision": "20240320", "rootUrl": "https://adsense.googleapis.com/", "schemas": { "Account": { diff --git a/adsense/v2/adsense-gen.go b/adsense/v2/adsense-gen.go index d9f5d373426..1256b3176a6 100644 --- a/adsense/v2/adsense-gen.go +++ b/adsense/v2/adsense-gen.go @@ -2847,11 +2847,12 @@ type AccountsAdclientsAdunitsCreateCall struct { header_ http.Header } -// Create: Creates an ad unit. This method can only be used by projects -// enabled for the AdSense for Platforms -// (https://developers.google.com/adsense/platforms/) product. Note that -// ad units can only be created for ad clients with an "AFC" product -// code. For more info see the AdClient resource +// Create: Creates an ad unit. This method can be called only by a +// restricted set of projects, which are usually owned by AdSense for +// Platforms (https://developers.google.com/adsense/platforms/) +// publishers. Contact your account manager if you need to use this +// method. Note that ad units can only be created for ad clients with an +// "AFC" product code. For more info see the AdClient resource // (/adsense/management/reference/rest/v2/accounts.adclients). For now, // this method can only be used to create `DISPLAY` ad units. See: // https://support.google.com/adsense/answer/9183566 @@ -2956,7 +2957,7 @@ func (c *AccountsAdclientsAdunitsCreateCall) Do(opts ...googleapi.CallOption) (* } return ret, nil // { - // "description": "Creates an ad unit. This method can only be used by projects enabled for the [AdSense for Platforms](https://developers.google.com/adsense/platforms/) product. Note that ad units can only be created for ad clients with an \"AFC\" product code. For more info see the [AdClient resource](/adsense/management/reference/rest/v2/accounts.adclients). For now, this method can only be used to create `DISPLAY` ad units. See: https://support.google.com/adsense/answer/9183566", + // "description": "Creates an ad unit. This method can be called only by a restricted set of projects, which are usually owned by [AdSense for Platforms](https://developers.google.com/adsense/platforms/) publishers. Contact your account manager if you need to use this method. Note that ad units can only be created for ad clients with an \"AFC\" product code. For more info see the [AdClient resource](/adsense/management/reference/rest/v2/accounts.adclients). For now, this method can only be used to create `DISPLAY` ad units. See: https://support.google.com/adsense/answer/9183566", // "flatPath": "v2/accounts/{accountsId}/adclients/{adclientsId}/adunits", // "httpMethod": "POST", // "id": "adsense.accounts.adclients.adunits.create", @@ -3695,11 +3696,12 @@ type AccountsAdclientsAdunitsPatchCall struct { header_ http.Header } -// Patch: Updates an ad unit. This method can only be used by projects -// enabled for the AdSense for Platforms -// (https://developers.google.com/adsense/platforms/) product. For now, -// this method can only be used to update `DISPLAY` ad units. See: -// https://support.google.com/adsense/answer/9183566 +// Patch: Updates an ad unit. This method can be called only by a +// restricted set of projects, which are usually owned by AdSense for +// Platforms (https://developers.google.com/adsense/platforms/) +// publishers. Contact your account manager if you need to use this +// method. For now, this method can only be used to update `DISPLAY` ad +// units. See: https://support.google.com/adsense/answer/9183566 // // - name: Output only. Resource name of the ad unit. Format: // accounts/{account}/adclients/{adclient}/adunits/{adunit}. @@ -3808,7 +3810,7 @@ func (c *AccountsAdclientsAdunitsPatchCall) Do(opts ...googleapi.CallOption) (*A } return ret, nil // { - // "description": "Updates an ad unit. This method can only be used by projects enabled for the [AdSense for Platforms](https://developers.google.com/adsense/platforms/) product. For now, this method can only be used to update `DISPLAY` ad units. See: https://support.google.com/adsense/answer/9183566", + // "description": "Updates an ad unit. This method can be called only by a restricted set of projects, which are usually owned by [AdSense for Platforms](https://developers.google.com/adsense/platforms/) publishers. Contact your account manager if you need to use this method. For now, this method can only be used to update `DISPLAY` ad units. See: https://support.google.com/adsense/answer/9183566", // "flatPath": "v2/accounts/{accountsId}/adclients/{adclientsId}/adunits/{adunitsId}", // "httpMethod": "PATCH", // "id": "adsense.accounts.adclients.adunits.patch", @@ -3855,9 +3857,11 @@ type AccountsAdclientsCustomchannelsCreateCall struct { header_ http.Header } -// Create: Creates a custom channel. This method can only be used by -// projects enabled for the AdSense for Platforms -// (https://developers.google.com/adsense/platforms/) product. +// Create: Creates a custom channel. This method can be called only by a +// restricted set of projects, which are usually owned by AdSense for +// Platforms (https://developers.google.com/adsense/platforms/) +// publishers. Contact your account manager if you need to use this +// method. // // - parent: The ad client to create a custom channel under. Format: // accounts/{account}/adclients/{adclient}. @@ -3959,7 +3963,7 @@ func (c *AccountsAdclientsCustomchannelsCreateCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Creates a custom channel. This method can only be used by projects enabled for the [AdSense for Platforms](https://developers.google.com/adsense/platforms/) product.", + // "description": "Creates a custom channel. This method can be called only by a restricted set of projects, which are usually owned by [AdSense for Platforms](https://developers.google.com/adsense/platforms/) publishers. Contact your account manager if you need to use this method.", // "flatPath": "v2/accounts/{accountsId}/adclients/{adclientsId}/customchannels", // "httpMethod": "POST", // "id": "adsense.accounts.adclients.customchannels.create", @@ -3999,9 +4003,11 @@ type AccountsAdclientsCustomchannelsDeleteCall struct { header_ http.Header } -// Delete: Deletes a custom channel. This method can only be used by -// projects enabled for the AdSense for Platforms -// (https://developers.google.com/adsense/platforms/) product. +// Delete: Deletes a custom channel. This method can be called only by a +// restricted set of projects, which are usually owned by AdSense for +// Platforms (https://developers.google.com/adsense/platforms/) +// publishers. Contact your account manager if you need to use this +// method. // // - name: Name of the custom channel to delete. Format: // accounts/{account}/adclients/{adclient}/customchannels/{customchanne @@ -4098,7 +4104,7 @@ func (c *AccountsAdclientsCustomchannelsDeleteCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Deletes a custom channel. This method can only be used by projects enabled for the [AdSense for Platforms](https://developers.google.com/adsense/platforms/) product.", + // "description": "Deletes a custom channel. This method can be called only by a restricted set of projects, which are usually owned by [AdSense for Platforms](https://developers.google.com/adsense/platforms/) publishers. Contact your account manager if you need to use this method.", // "flatPath": "v2/accounts/{accountsId}/adclients/{adclientsId}/customchannels/{customchannelsId}", // "httpMethod": "DELETE", // "id": "adsense.accounts.adclients.customchannels.delete", @@ -4686,9 +4692,11 @@ type AccountsAdclientsCustomchannelsPatchCall struct { header_ http.Header } -// Patch: Updates a custom channel. This method can only be used by -// projects enabled for the AdSense for Platforms -// (https://developers.google.com/adsense/platforms/) product. +// Patch: Updates a custom channel. This method can be called only by a +// restricted set of projects, which are usually owned by AdSense for +// Platforms (https://developers.google.com/adsense/platforms/) +// publishers. Contact your account manager if you need to use this +// method. // // - name: Output only. Resource name of the custom channel. Format: // accounts/{account}/adclients/{adclient}/customchannels/{customchanne @@ -4798,7 +4806,7 @@ func (c *AccountsAdclientsCustomchannelsPatchCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Updates a custom channel. This method can only be used by projects enabled for the [AdSense for Platforms](https://developers.google.com/adsense/platforms/) product.", + // "description": "Updates a custom channel. This method can be called only by a restricted set of projects, which are usually owned by [AdSense for Platforms](https://developers.google.com/adsense/platforms/) publishers. Contact your account manager if you need to use this method.", // "flatPath": "v2/accounts/{accountsId}/adclients/{adclientsId}/customchannels/{customchannelsId}", // "httpMethod": "PATCH", // "id": "adsense.accounts.adclients.customchannels.patch", diff --git a/checks/v1alpha/checks-api.json b/checks/v1alpha/checks-api.json index e060005ab32..3c705f98d7d 100644 --- a/checks/v1alpha/checks-api.json +++ b/checks/v1alpha/checks-api.json @@ -414,7 +414,7 @@ } } }, - "revision": "20240314", + "revision": "20240319", "rootUrl": "https://checks.googleapis.com/", "schemas": { "CancelOperationRequest": { @@ -797,7 +797,8 @@ "QUEBEC_BILL_64", "CHINA_PIPL", "SOUTH_KOREA_PIPA", - "SOUTH_AFRICA_POPIA" + "SOUTH_AFRICA_POPIA", + "JAPAN_APPI" ], "enumDescriptions": [ "Not specified.", @@ -821,7 +822,8 @@ "Quebec Bill 64: An Act to Modernize Legislative Provisions as Regards the Protection of Personal Information.", "China Personal Information Protection Law.", "South Korea Personal Information Protection Act.", - "South Africa Protection of Personal Information Act." + "South Africa Protection of Personal Information Act.", + "Japan Act on the Protection of Personal Information." ], "type": "string" } diff --git a/checks/v1alpha/checks-gen.go b/checks/v1alpha/checks-gen.go index bc329067675..9f56a8c05ef 100644 --- a/checks/v1alpha/checks-gen.go +++ b/checks/v1alpha/checks-gen.go @@ -716,6 +716,7 @@ type GoogleChecksReportV1alphaCheckCitation struct { // Act. // "SOUTH_AFRICA_POPIA" - South Africa Protection of Personal // Information Act. + // "JAPAN_APPI" - Japan Act on the Protection of Personal Information. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Type") to diff --git a/cloudbilling/v1beta/cloudbilling-api.json b/cloudbilling/v1beta/cloudbilling-api.json index ac9829c56b5..53b200da25b 100644 --- a/cloudbilling/v1beta/cloudbilling-api.json +++ b/cloudbilling/v1beta/cloudbilling-api.json @@ -145,80 +145,6 @@ } }, "resources": { - "anomalies": { - "methods": { - "get": { - "description": "Gets an anomaly for a billing account or a project.", - "flatPath": "v1beta/billingAccounts/{billingAccountsId}/anomalies/{anomaliesId}", - "httpMethod": "GET", - "id": "cloudbilling.billingAccounts.anomalies.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. Format for project: projects/{project}/anomalies/{anomalies}. Format for billing account: billingAccounts/{billing_account}/anomalies/{anomalies}.", - "location": "path", - "pattern": "^billingAccounts/[^/]+/anomalies/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta/{+name}", - "response": { - "$ref": "GoogleCloudBillingAnomaliesV1betaAnomaly" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-billing", - "https://www.googleapis.com/auth/cloud-billing.readonly", - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists anomalies for a billing account or a project.", - "flatPath": "v1beta/billingAccounts/{billingAccountsId}/anomalies", - "httpMethod": "GET", - "id": "cloudbilling.billingAccounts.anomalies.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "filter": { - "description": "Optional. Options for how to filter the anomalies. Currently, only filter on `start_time` and `end_time` is supported. Only =, AND operators are supported. If start_time and/or end_time empty, we only retrieve the most recent 30 days' anomalies. Examples: - start_time = \"20231201\" AND end_time = \"20240120\" .", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "Optional. Maximum number of anomalies to return. Results may return fewer than this value. Default value is 50 and maximum value is 1000.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Optional. Page token received from a previous ListAnomalies call to retrieve the next page of results. If this field is empty, the first page is returned.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The project to list Anomaly for the project. Format for project: projects/{project}. Format for billing account: billingAccounts/{billing_account}.", - "location": "path", - "pattern": "^billingAccounts/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta/{+parent}/anomalies", - "response": { - "$ref": "GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-billing", - "https://www.googleapis.com/auth/cloud-billing.readonly", - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, "services": { "methods": { "get": { @@ -589,84 +515,6 @@ } } }, - "projects": { - "resources": { - "anomalies": { - "methods": { - "get": { - "description": "Gets an anomaly for a billing account or a project.", - "flatPath": "v1beta/projects/{projectsId}/anomalies/{anomaliesId}", - "httpMethod": "GET", - "id": "cloudbilling.projects.anomalies.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. Format for project: projects/{project}/anomalies/{anomalies}. Format for billing account: billingAccounts/{billing_account}/anomalies/{anomalies}.", - "location": "path", - "pattern": "^projects/[^/]+/anomalies/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta/{+name}", - "response": { - "$ref": "GoogleCloudBillingAnomaliesV1betaAnomaly" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-billing", - "https://www.googleapis.com/auth/cloud-billing.readonly", - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists anomalies for a billing account or a project.", - "flatPath": "v1beta/projects/{projectsId}/anomalies", - "httpMethod": "GET", - "id": "cloudbilling.projects.anomalies.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "filter": { - "description": "Optional. Options for how to filter the anomalies. Currently, only filter on `start_time` and `end_time` is supported. Only =, AND operators are supported. If start_time and/or end_time empty, we only retrieve the most recent 30 days' anomalies. Examples: - start_time = \"20231201\" AND end_time = \"20240120\" .", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "Optional. Maximum number of anomalies to return. Results may return fewer than this value. Default value is 50 and maximum value is 1000.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Optional. Page token received from a previous ListAnomalies call to retrieve the next page of results. If this field is empty, the first page is returned.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The project to list Anomaly for the project. Format for project: projects/{project}. Format for billing account: billingAccounts/{billing_account}.", - "location": "path", - "pattern": "^projects/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta/{+parent}/anomalies", - "response": { - "$ref": "GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-billing", - "https://www.googleapis.com/auth/cloud-billing.readonly", - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - } - } - }, "skuGroups": { "methods": { "get": { @@ -910,7 +758,7 @@ } } }, - "revision": "20240311", + "revision": "20240315", "rootUrl": "https://cloudbilling.googleapis.com/", "schemas": { "CacheFillRegions": { @@ -1471,159 +1319,6 @@ }, "type": "object" }, - "GoogleCloudBillingAnomaliesV1betaAnomaly": { - "description": "Encapsulates an anomaly.", - "id": "GoogleCloudBillingAnomaliesV1betaAnomaly", - "properties": { - "detectionTime": { - "description": "Time that the anomaly was detected. Will be set to 00:00 google time of the detected date.", - "format": "google-datetime", - "type": "string" - }, - "deviation": { - "$ref": "GoogleCloudBillingAnomaliesV1betaAnomalyDeviation", - "description": "Deviation information of the anomaly." - }, - "name": { - "description": "Identifier. Resource name for the anomaly.", - "type": "string" - }, - "resourceDisplayName": { - "description": "The display name of the resource that the anomaly occurred in/belongs to.", - "type": "string" - }, - "rootCauses": { - "description": "A list of causes which contribute to the anomaly.", - "items": { - "$ref": "GoogleCloudBillingAnomaliesV1betaCause" - }, - "type": "array" - }, - "scope": { - "description": "Indicate the scope of the anomaly.", - "enum": [ - "SCOPE_UNSPECIFIED", - "SCOPE_BILLING_ACCOUNT", - "SCOPE_PROJECT" - ], - "enumDescriptions": [ - "Default unspecified value.", - "Indicates the anomaly is for a billing account.", - "Indicates the anomaly is for a project." - ], - "type": "string" - }, - "severity": { - "description": "Severity of the anomaly. Unspecified if severity is not met/assigned.", - "enum": [ - "ANOMALY_SEVERITY_UNSPECIFIED", - "ANOMALY_SEVERITY_LOW", - "ANOMALY_SEVERITY_MEDIUM", - "ANOMALY_SEVERITY_HIGH" - ], - "enumDescriptions": [ - "Default unspecified value.", - "Indicates the anomaly's severity is low.", - "Indicates the anomaly's severity is medium.", - "Indicates the anomaly's severity is high." - ], - "type": "string" - }, - "updateTime": { - "description": "Output only. The most recent anomaly's last updated time.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudBillingAnomaliesV1betaAnomalyDeviation": { - "description": "Encapsulates the deviation information.", - "id": "GoogleCloudBillingAnomaliesV1betaAnomalyDeviation", - "properties": { - "actualSpend": { - "$ref": "Money", - "description": "The actual spend for the anomaly." - }, - "deviationAmount": { - "$ref": "Money", - "description": "The difference between the actual spend and expected spend's upper bound. Calculation formula: deviation_amount = actual_spend - expected_spend." - }, - "deviationPercentage": { - "description": "The percentage of devition amount from expected spend's upper bound. Calculation formula: deviation_percentage = divation_amount / expected_spend * 100.", - "format": "double", - "type": "number" - }, - "expectedSpend": { - "$ref": "Money", - "description": "The expected spend for the anomaly." - } - }, - "type": "object" - }, - "GoogleCloudBillingAnomaliesV1betaCause": { - "description": "Encapsulates the information of the reason which caused the anomaly.", - "id": "GoogleCloudBillingAnomaliesV1betaCause", - "properties": { - "causeType": { - "description": "The cause type.", - "enum": [ - "CAUSE_TYPE_UNSPECIFIED", - "CAUSE_TYPE_PROJECT", - "CAUSE_TYPE_SERVICE", - "CAUSE_TYPE_SKU", - "CAUSE_TYPE_LOCATION" - ], - "enumDescriptions": [ - "Default unspecified value.", - "Caused by a project.", - "Caused by a service.", - "Caused by a SKU.", - "Caused by a location." - ], - "type": "string" - }, - "deviation": { - "$ref": "GoogleCloudBillingAnomaliesV1betaAnomalyDeviation", - "description": "The deviation information for the cause." - }, - "displayName": { - "description": "The display name of the cause.", - "type": "string" - }, - "resource": { - "description": "The resource name of the cause. project: projects/{project}. service: services/{service}. sku: services/{service}/skus/{sku}. location: locations/{location}.", - "type": "string" - }, - "subCauses": { - "description": "The sub causes.", - "items": { - "$ref": "GoogleCloudBillingAnomaliesV1betaCause" - }, - "type": "array" - } - }, - "type": "object" - }, - "GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse": { - "description": "Response message for ListAnomalies.", - "id": "GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse", - "properties": { - "anomalies": { - "description": "The returned anomalies.", - "items": { - "$ref": "GoogleCloudBillingAnomaliesV1betaAnomaly" - }, - "type": "array" - }, - "nextPageToken": { - "description": "Token that can be sent as `page_token` in the subsequent request to retrieve the next page. If this field is empty, there are no subsequent pages.", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudBillingBillingaccountpricesV1betaAggregationInfo": { "description": "Encapsulates the aggregation information such as aggregation level and interval for a billing account price.", "id": "GoogleCloudBillingBillingaccountpricesV1betaAggregationInfo", diff --git a/cloudbilling/v1beta/cloudbilling-gen.go b/cloudbilling/v1beta/cloudbilling-gen.go index cf385d36304..cfdca2547a0 100644 --- a/cloudbilling/v1beta/cloudbilling-gen.go +++ b/cloudbilling/v1beta/cloudbilling-gen.go @@ -150,7 +150,6 @@ func New(client *http.Client) (*Service, error) { } s := &Service{client: client, BasePath: basePath} s.BillingAccounts = NewBillingAccountsService(s) - s.Projects = NewProjectsService(s) s.SkuGroups = NewSkuGroupsService(s) s.Skus = NewSkusService(s) s.V1beta = NewV1betaService(s) @@ -164,8 +163,6 @@ type Service struct { BillingAccounts *BillingAccountsService - Projects *ProjectsService - SkuGroups *SkuGroupsService Skus *SkusService @@ -182,7 +179,6 @@ func (s *Service) userAgent() string { func NewBillingAccountsService(s *Service) *BillingAccountsService { rs := &BillingAccountsService{s: s} - rs.Anomalies = NewBillingAccountsAnomaliesService(s) rs.Services = NewBillingAccountsServicesService(s) rs.SkuGroups = NewBillingAccountsSkuGroupsService(s) rs.Skus = NewBillingAccountsSkusService(s) @@ -192,8 +188,6 @@ func NewBillingAccountsService(s *Service) *BillingAccountsService { type BillingAccountsService struct { s *Service - Anomalies *BillingAccountsAnomaliesService - Services *BillingAccountsServicesService SkuGroups *BillingAccountsSkuGroupsService @@ -201,15 +195,6 @@ type BillingAccountsService struct { Skus *BillingAccountsSkusService } -func NewBillingAccountsAnomaliesService(s *Service) *BillingAccountsAnomaliesService { - rs := &BillingAccountsAnomaliesService{s: s} - return rs -} - -type BillingAccountsAnomaliesService struct { - s *Service -} - func NewBillingAccountsServicesService(s *Service) *BillingAccountsServicesService { rs := &BillingAccountsServicesService{s: s} return rs @@ -273,27 +258,6 @@ type BillingAccountsSkusPricesService struct { s *Service } -func NewProjectsService(s *Service) *ProjectsService { - rs := &ProjectsService{s: s} - rs.Anomalies = NewProjectsAnomaliesService(s) - return rs -} - -type ProjectsService struct { - s *Service - - Anomalies *ProjectsAnomaliesService -} - -func NewProjectsAnomaliesService(s *Service) *ProjectsAnomaliesService { - rs := &ProjectsAnomaliesService{s: s} - return rs -} - -type ProjectsAnomaliesService struct { - s *Service -} - func NewSkuGroupsService(s *Service) *SkuGroupsService { rs := &SkuGroupsService{s: s} rs.Skus = NewSkuGroupsSkusService(s) @@ -1328,219 +1292,6 @@ func (s *EstimationTimePoint) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudBillingAnomaliesV1betaAnomaly: Encapsulates an anomaly. -type GoogleCloudBillingAnomaliesV1betaAnomaly struct { - // DetectionTime: Time that the anomaly was detected. Will be set to - // 00:00 google time of the detected date. - DetectionTime string `json:"detectionTime,omitempty"` - - // Deviation: Deviation information of the anomaly. - Deviation *GoogleCloudBillingAnomaliesV1betaAnomalyDeviation `json:"deviation,omitempty"` - - // Name: Identifier. Resource name for the anomaly. - Name string `json:"name,omitempty"` - - // ResourceDisplayName: The display name of the resource that the - // anomaly occurred in/belongs to. - ResourceDisplayName string `json:"resourceDisplayName,omitempty"` - - // RootCauses: A list of causes which contribute to the anomaly. - RootCauses []*GoogleCloudBillingAnomaliesV1betaCause `json:"rootCauses,omitempty"` - - // Scope: Indicate the scope of the anomaly. - // - // Possible values: - // "SCOPE_UNSPECIFIED" - Default unspecified value. - // "SCOPE_BILLING_ACCOUNT" - Indicates the anomaly is for a billing - // account. - // "SCOPE_PROJECT" - Indicates the anomaly is for a project. - Scope string `json:"scope,omitempty"` - - // Severity: Severity of the anomaly. Unspecified if severity is not - // met/assigned. - // - // Possible values: - // "ANOMALY_SEVERITY_UNSPECIFIED" - Default unspecified value. - // "ANOMALY_SEVERITY_LOW" - Indicates the anomaly's severity is low. - // "ANOMALY_SEVERITY_MEDIUM" - Indicates the anomaly's severity is - // medium. - // "ANOMALY_SEVERITY_HIGH" - Indicates the anomaly's severity is high. - Severity string `json:"severity,omitempty"` - - // UpdateTime: Output only. The most recent anomaly's last updated time. - UpdateTime string `json:"updateTime,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "DetectionTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DetectionTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudBillingAnomaliesV1betaAnomaly) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudBillingAnomaliesV1betaAnomaly - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudBillingAnomaliesV1betaAnomalyDeviation: Encapsulates the -// deviation information. -type GoogleCloudBillingAnomaliesV1betaAnomalyDeviation struct { - // ActualSpend: The actual spend for the anomaly. - ActualSpend *Money `json:"actualSpend,omitempty"` - - // DeviationAmount: The difference between the actual spend and expected - // spend's upper bound. Calculation formula: deviation_amount = - // actual_spend - expected_spend. - DeviationAmount *Money `json:"deviationAmount,omitempty"` - - // DeviationPercentage: The percentage of devition amount from expected - // spend's upper bound. Calculation formula: deviation_percentage = - // divation_amount / expected_spend * 100. - DeviationPercentage float64 `json:"deviationPercentage,omitempty"` - - // ExpectedSpend: The expected spend for the anomaly. - ExpectedSpend *Money `json:"expectedSpend,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ActualSpend") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActualSpend") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudBillingAnomaliesV1betaAnomalyDeviation) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudBillingAnomaliesV1betaAnomalyDeviation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *GoogleCloudBillingAnomaliesV1betaAnomalyDeviation) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudBillingAnomaliesV1betaAnomalyDeviation - var s1 struct { - DeviationPercentage gensupport.JSONFloat64 `json:"deviationPercentage"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.DeviationPercentage = float64(s1.DeviationPercentage) - return nil -} - -// GoogleCloudBillingAnomaliesV1betaCause: Encapsulates the information -// of the reason which caused the anomaly. -type GoogleCloudBillingAnomaliesV1betaCause struct { - // CauseType: The cause type. - // - // Possible values: - // "CAUSE_TYPE_UNSPECIFIED" - Default unspecified value. - // "CAUSE_TYPE_PROJECT" - Caused by a project. - // "CAUSE_TYPE_SERVICE" - Caused by a service. - // "CAUSE_TYPE_SKU" - Caused by a SKU. - // "CAUSE_TYPE_LOCATION" - Caused by a location. - CauseType string `json:"causeType,omitempty"` - - // Deviation: The deviation information for the cause. - Deviation *GoogleCloudBillingAnomaliesV1betaAnomalyDeviation `json:"deviation,omitempty"` - - // DisplayName: The display name of the cause. - DisplayName string `json:"displayName,omitempty"` - - // Resource: The resource name of the cause. project: - // projects/{project}. service: services/{service}. sku: - // services/{service}/skus/{sku}. location: locations/{location}. - Resource string `json:"resource,omitempty"` - - // SubCauses: The sub causes. - SubCauses []*GoogleCloudBillingAnomaliesV1betaCause `json:"subCauses,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CauseType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CauseType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudBillingAnomaliesV1betaCause) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudBillingAnomaliesV1betaCause - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse: Response -// message for ListAnomalies. -type GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse struct { - // Anomalies: The returned anomalies. - Anomalies []*GoogleCloudBillingAnomaliesV1betaAnomaly `json:"anomalies,omitempty"` - - // NextPageToken: Token that can be sent as `page_token` in the - // subsequent request to retrieve the next page. If this field is empty, - // there are no subsequent pages. - NextPageToken string `json:"nextPageToken,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Anomalies") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Anomalies") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudBillingBillingaccountpricesV1betaAggregationInfo: // Encapsulates the aggregation information such as aggregation level // and interval for a billing account price. @@ -4653,9 +4404,9 @@ func (c *BillingAccountsEstimateCostScenarioCall) Do(opts ...googleapi.CallOptio } -// method id "cloudbilling.billingAccounts.anomalies.get": +// method id "cloudbilling.billingAccounts.services.get": -type BillingAccountsAnomaliesGetCall struct { +type BillingAccountsServicesGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -4664,13 +4415,12 @@ type BillingAccountsAnomaliesGetCall struct { header_ http.Header } -// Get: Gets an anomaly for a billing account or a project. +// Get: Gets a Google Cloud service visible to a billing account. // -// - name: Format for project: projects/{project}/anomalies/{anomalies}. -// Format for billing account: -// billingAccounts/{billing_account}/anomalies/{anomalies}. -func (r *BillingAccountsAnomaliesService) Get(name string) *BillingAccountsAnomaliesGetCall { - c := &BillingAccountsAnomaliesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the billing account service to retrieve. Format: +// billingAccounts/{billing_account}/services/{service}. +func (r *BillingAccountsServicesService) Get(name string) *BillingAccountsServicesGetCall { + c := &BillingAccountsServicesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -4678,7 +4428,7 @@ func (r *BillingAccountsAnomaliesService) Get(name string) *BillingAccountsAnoma // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *BillingAccountsAnomaliesGetCall) Fields(s ...googleapi.Field) *BillingAccountsAnomaliesGetCall { +func (c *BillingAccountsServicesGetCall) Fields(s ...googleapi.Field) *BillingAccountsServicesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4688,7 +4438,7 @@ func (c *BillingAccountsAnomaliesGetCall) Fields(s ...googleapi.Field) *BillingA // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *BillingAccountsAnomaliesGetCall) IfNoneMatch(entityTag string) *BillingAccountsAnomaliesGetCall { +func (c *BillingAccountsServicesGetCall) IfNoneMatch(entityTag string) *BillingAccountsServicesGetCall { c.ifNoneMatch_ = entityTag return c } @@ -4696,21 +4446,21 @@ func (c *BillingAccountsAnomaliesGetCall) IfNoneMatch(entityTag string) *Billing // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *BillingAccountsAnomaliesGetCall) Context(ctx context.Context) *BillingAccountsAnomaliesGetCall { +func (c *BillingAccountsServicesGetCall) Context(ctx context.Context) *BillingAccountsServicesGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *BillingAccountsAnomaliesGetCall) Header() http.Header { +func (c *BillingAccountsServicesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *BillingAccountsAnomaliesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsServicesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -4736,16 +4486,17 @@ func (c *BillingAccountsAnomaliesGetCall) doRequest(alt string) (*http.Response, return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "cloudbilling.billingAccounts.anomalies.get" call. -// Exactly one of *GoogleCloudBillingAnomaliesV1betaAnomaly or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudBillingAnomaliesV1betaAnomaly.ServerResponse.Header or -// (if a response was returned at all) in +// Do executes the "cloudbilling.billingAccounts.services.get" call. +// Exactly one of +// *GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService.S +// erverResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *BillingAccountsAnomaliesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingAnomaliesV1betaAnomaly, error) { +func (c *BillingAccountsServicesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4764,7 +4515,7 @@ func (c *BillingAccountsAnomaliesGetCall) Do(opts ...googleapi.CallOption) (*Goo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudBillingAnomaliesV1betaAnomaly{ + ret := &GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4776,25 +4527,25 @@ func (c *BillingAccountsAnomaliesGetCall) Do(opts ...googleapi.CallOption) (*Goo } return ret, nil // { - // "description": "Gets an anomaly for a billing account or a project.", - // "flatPath": "v1beta/billingAccounts/{billingAccountsId}/anomalies/{anomaliesId}", + // "description": "Gets a Google Cloud service visible to a billing account.", + // "flatPath": "v1beta/billingAccounts/{billingAccountsId}/services/{servicesId}", // "httpMethod": "GET", - // "id": "cloudbilling.billingAccounts.anomalies.get", + // "id": "cloudbilling.billingAccounts.services.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Format for project: projects/{project}/anomalies/{anomalies}. Format for billing account: billingAccounts/{billing_account}/anomalies/{anomalies}.", + // "description": "Required. The name of the billing account service to retrieve. Format: billingAccounts/{billing_account}/services/{service}", // "location": "path", - // "pattern": "^billingAccounts/[^/]+/anomalies/[^/]+$", + // "pattern": "^billingAccounts/[^/]+/services/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta/{+name}", // "response": { - // "$ref": "GoogleCloudBillingAnomaliesV1betaAnomaly" + // "$ref": "GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-billing", @@ -4805,9 +4556,9 @@ func (c *BillingAccountsAnomaliesGetCall) Do(opts ...googleapi.CallOption) (*Goo } -// method id "cloudbilling.billingAccounts.anomalies.list": +// method id "cloudbilling.billingAccounts.services.list": -type BillingAccountsAnomaliesListCall struct { +type BillingAccountsServicesListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -4816,40 +4567,29 @@ type BillingAccountsAnomaliesListCall struct { header_ http.Header } -// List: Lists anomalies for a billing account or a project. +// List: Lists services visible to a billing account. // -// - parent: The project to list Anomaly for the project. Format for -// project: projects/{project}. Format for billing account: -// billingAccounts/{billing_account}. -func (r *BillingAccountsAnomaliesService) List(parent string) *BillingAccountsAnomaliesListCall { - c := &BillingAccountsAnomaliesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The billing account to list billing account service from. +// Format: billingAccounts/{billing_account}. +func (r *BillingAccountsServicesService) List(parent string) *BillingAccountsServicesListCall { + c := &BillingAccountsServicesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": Options for how to -// filter the anomalies. Currently, only filter on `start_time` and -// `end_time` is supported. Only =, AND operators are supported. If -// start_time and/or end_time empty, we only retrieve the most recent 30 -// days' anomalies. Examples: - start_time = "20231201" AND end_time = -// "20240120" . -func (c *BillingAccountsAnomaliesListCall) Filter(filter string) *BillingAccountsAnomaliesListCall { - c.urlParams_.Set("filter", filter) - return c -} - // PageSize sets the optional parameter "pageSize": Maximum number of -// anomalies to return. Results may return fewer than this value. -// Default value is 50 and maximum value is 1000. -func (c *BillingAccountsAnomaliesListCall) PageSize(pageSize int64) *BillingAccountsAnomaliesListCall { +// billing account service to return. Results may return fewer than this +// value. Default value is 50 and maximum value is 5000. +func (c *BillingAccountsServicesListCall) PageSize(pageSize int64) *BillingAccountsServicesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": Page token -// received from a previous ListAnomalies call to retrieve the next page -// of results. If this field is empty, the first page is returned. -func (c *BillingAccountsAnomaliesListCall) PageToken(pageToken string) *BillingAccountsAnomaliesListCall { +// received from a previous ListBillingAccountServices call to retrieve +// the next page of results. If this field is empty, the first page is +// returned. +func (c *BillingAccountsServicesListCall) PageToken(pageToken string) *BillingAccountsServicesListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -4857,7 +4597,7 @@ func (c *BillingAccountsAnomaliesListCall) PageToken(pageToken string) *BillingA // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *BillingAccountsAnomaliesListCall) Fields(s ...googleapi.Field) *BillingAccountsAnomaliesListCall { +func (c *BillingAccountsServicesListCall) Fields(s ...googleapi.Field) *BillingAccountsServicesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4867,7 +4607,7 @@ func (c *BillingAccountsAnomaliesListCall) Fields(s ...googleapi.Field) *Billing // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *BillingAccountsAnomaliesListCall) IfNoneMatch(entityTag string) *BillingAccountsAnomaliesListCall { +func (c *BillingAccountsServicesListCall) IfNoneMatch(entityTag string) *BillingAccountsServicesListCall { c.ifNoneMatch_ = entityTag return c } @@ -4875,21 +4615,21 @@ func (c *BillingAccountsAnomaliesListCall) IfNoneMatch(entityTag string) *Billin // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *BillingAccountsAnomaliesListCall) Context(ctx context.Context) *BillingAccountsAnomaliesListCall { +func (c *BillingAccountsServicesListCall) Context(ctx context.Context) *BillingAccountsServicesListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *BillingAccountsAnomaliesListCall) Header() http.Header { +func (c *BillingAccountsServicesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *BillingAccountsAnomaliesListCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsServicesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -4902,7 +4642,7 @@ func (c *BillingAccountsAnomaliesListCall) doRequest(alt string) (*http.Response var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/anomalies") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/services") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -4915,17 +4655,17 @@ func (c *BillingAccountsAnomaliesListCall) doRequest(alt string) (*http.Response return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "cloudbilling.billingAccounts.anomalies.list" call. +// Do executes the "cloudbilling.billingAccounts.services.list" call. // Exactly one of -// *GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *BillingAccountsAnomaliesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse, error) { +// *GoogleCloudBillingBillingaccountservicesV1betaListBillingAccountServi +// cesResponse or error will be non-nil. Any non-2xx status code is an +// error. Response headers are in either +// *GoogleCloudBillingBillingaccountservicesV1betaListBillingAccountServi +// cesResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *BillingAccountsServicesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountservicesV1betaListBillingAccountServicesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4944,7 +4684,7 @@ func (c *BillingAccountsAnomaliesListCall) Do(opts ...googleapi.CallOption) (*Go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse{ + ret := &GoogleCloudBillingBillingaccountservicesV1betaListBillingAccountServicesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4956,41 +4696,36 @@ func (c *BillingAccountsAnomaliesListCall) Do(opts ...googleapi.CallOption) (*Go } return ret, nil // { - // "description": "Lists anomalies for a billing account or a project.", - // "flatPath": "v1beta/billingAccounts/{billingAccountsId}/anomalies", + // "description": "Lists services visible to a billing account.", + // "flatPath": "v1beta/billingAccounts/{billingAccountsId}/services", // "httpMethod": "GET", - // "id": "cloudbilling.billingAccounts.anomalies.list", + // "id": "cloudbilling.billingAccounts.services.list", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "filter": { - // "description": "Optional. Options for how to filter the anomalies. Currently, only filter on `start_time` and `end_time` is supported. Only =, AND operators are supported. If start_time and/or end_time empty, we only retrieve the most recent 30 days' anomalies. Examples: - start_time = \"20231201\" AND end_time = \"20240120\" .", - // "location": "query", - // "type": "string" - // }, // "pageSize": { - // "description": "Optional. Maximum number of anomalies to return. Results may return fewer than this value. Default value is 50 and maximum value is 1000.", + // "description": "Maximum number of billing account service to return. Results may return fewer than this value. Default value is 50 and maximum value is 5000.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "Optional. Page token received from a previous ListAnomalies call to retrieve the next page of results. If this field is empty, the first page is returned.", + // "description": "Page token received from a previous ListBillingAccountServices call to retrieve the next page of results. If this field is empty, the first page is returned.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The project to list Anomaly for the project. Format for project: projects/{project}. Format for billing account: billingAccounts/{billing_account}.", + // "description": "Required. The billing account to list billing account service from. Format: billingAccounts/{billing_account}", // "location": "path", // "pattern": "^billingAccounts/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta/{+parent}/anomalies", + // "path": "v1beta/{+parent}/services", // "response": { - // "$ref": "GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse" + // "$ref": "GoogleCloudBillingBillingaccountservicesV1betaListBillingAccountServicesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-billing", @@ -5004,7 +4739,7 @@ func (c *BillingAccountsAnomaliesListCall) Do(opts ...googleapi.CallOption) (*Go // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *BillingAccountsAnomaliesListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse) error) error { +func (c *BillingAccountsServicesListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingBillingaccountservicesV1betaListBillingAccountServicesResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -5022,9 +4757,9 @@ func (c *BillingAccountsAnomaliesListCall) Pages(ctx context.Context, f func(*Go } } -// method id "cloudbilling.billingAccounts.services.get": +// method id "cloudbilling.billingAccounts.skuGroups.get": -type BillingAccountsServicesGetCall struct { +type BillingAccountsSkuGroupsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -5033,12 +4768,12 @@ type BillingAccountsServicesGetCall struct { header_ http.Header } -// Get: Gets a Google Cloud service visible to a billing account. +// Get: Gets a SKU group visible to a billing account. // -// - name: The name of the billing account service to retrieve. Format: -// billingAccounts/{billing_account}/services/{service}. -func (r *BillingAccountsServicesService) Get(name string) *BillingAccountsServicesGetCall { - c := &BillingAccountsServicesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the BillingAccountSkuGroup to retrieve. Format: +// billingAccounts/{billing_account}/skuGroups/{sku_group}. +func (r *BillingAccountsSkuGroupsService) Get(name string) *BillingAccountsSkuGroupsGetCall { + c := &BillingAccountsSkuGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -5046,7 +4781,7 @@ func (r *BillingAccountsServicesService) Get(name string) *BillingAccountsServic // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *BillingAccountsServicesGetCall) Fields(s ...googleapi.Field) *BillingAccountsServicesGetCall { +func (c *BillingAccountsSkuGroupsGetCall) Fields(s ...googleapi.Field) *BillingAccountsSkuGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5056,7 +4791,7 @@ func (c *BillingAccountsServicesGetCall) Fields(s ...googleapi.Field) *BillingAc // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *BillingAccountsServicesGetCall) IfNoneMatch(entityTag string) *BillingAccountsServicesGetCall { +func (c *BillingAccountsSkuGroupsGetCall) IfNoneMatch(entityTag string) *BillingAccountsSkuGroupsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -5064,21 +4799,21 @@ func (c *BillingAccountsServicesGetCall) IfNoneMatch(entityTag string) *BillingA // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *BillingAccountsServicesGetCall) Context(ctx context.Context) *BillingAccountsServicesGetCall { +func (c *BillingAccountsSkuGroupsGetCall) Context(ctx context.Context) *BillingAccountsSkuGroupsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *BillingAccountsServicesGetCall) Header() http.Header { +func (c *BillingAccountsSkuGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *BillingAccountsServicesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsSkuGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -5104,17 +4839,19 @@ func (c *BillingAccountsServicesGetCall) doRequest(alt string) (*http.Response, return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "cloudbilling.billingAccounts.services.get" call. +// Do executes the "cloudbilling.billingAccounts.skuGroups.get" call. // Exactly one of -// *GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService -// or error will be non-nil. Any non-2xx status code is an error. +// *GoogleCloudBillingBillingaccountskugroupsV1betaBillingAccountSkuGroup +// +// or error will be non-nil. Any non-2xx status code is an error. +// // Response headers are in either -// *GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService.S -// erverResponse.Header or (if a response was returned at all) in +// *GoogleCloudBillingBillingaccountskugroupsV1betaBillingAccountSkuGroup +// .ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *BillingAccountsServicesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService, error) { +func (c *BillingAccountsSkuGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountskugroupsV1betaBillingAccountSkuGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5133,7 +4870,7 @@ func (c *BillingAccountsServicesGetCall) Do(opts ...googleapi.CallOption) (*Goog if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService{ + ret := &GoogleCloudBillingBillingaccountskugroupsV1betaBillingAccountSkuGroup{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5145,25 +4882,25 @@ func (c *BillingAccountsServicesGetCall) Do(opts ...googleapi.CallOption) (*Goog } return ret, nil // { - // "description": "Gets a Google Cloud service visible to a billing account.", - // "flatPath": "v1beta/billingAccounts/{billingAccountsId}/services/{servicesId}", + // "description": "Gets a SKU group visible to a billing account.", + // "flatPath": "v1beta/billingAccounts/{billingAccountsId}/skuGroups/{skuGroupsId}", // "httpMethod": "GET", - // "id": "cloudbilling.billingAccounts.services.get", + // "id": "cloudbilling.billingAccounts.skuGroups.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the billing account service to retrieve. Format: billingAccounts/{billing_account}/services/{service}", + // "description": "Required. The name of the BillingAccountSkuGroup to retrieve. Format: billingAccounts/{billing_account}/skuGroups/{sku_group}", // "location": "path", - // "pattern": "^billingAccounts/[^/]+/services/[^/]+$", + // "pattern": "^billingAccounts/[^/]+/skuGroups/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta/{+name}", // "response": { - // "$ref": "GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService" + // "$ref": "GoogleCloudBillingBillingaccountskugroupsV1betaBillingAccountSkuGroup" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-billing", @@ -5174,9 +4911,9 @@ func (c *BillingAccountsServicesGetCall) Do(opts ...googleapi.CallOption) (*Goog } -// method id "cloudbilling.billingAccounts.services.list": +// method id "cloudbilling.billingAccounts.skuGroups.list": -type BillingAccountsServicesListCall struct { +type BillingAccountsSkuGroupsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -5185,29 +4922,29 @@ type BillingAccountsServicesListCall struct { header_ http.Header } -// List: Lists services visible to a billing account. +// List: Lists SKU groups visible to a billing account. // -// - parent: The billing account to list billing account service from. -// Format: billingAccounts/{billing_account}. -func (r *BillingAccountsServicesService) List(parent string) *BillingAccountsServicesListCall { - c := &BillingAccountsServicesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The billing account to list billing account SKU groups +// from. Format: billingAccounts/{billing_account}. +func (r *BillingAccountsSkuGroupsService) List(parent string) *BillingAccountsSkuGroupsListCall { + c := &BillingAccountsSkuGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } // PageSize sets the optional parameter "pageSize": Maximum number of -// billing account service to return. Results may return fewer than this -// value. Default value is 50 and maximum value is 5000. -func (c *BillingAccountsServicesListCall) PageSize(pageSize int64) *BillingAccountsServicesListCall { +// billing account SKU groups to return. Results may return fewer than +// this value. Default value is 50 and maximum value is 5000. +func (c *BillingAccountsSkuGroupsListCall) PageSize(pageSize int64) *BillingAccountsSkuGroupsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": Page token -// received from a previous ListBillingAccountServices call to retrieve +// received from a previous ListBillingAccountSkuGroups call to retrieve // the next page of results. If this field is empty, the first page is // returned. -func (c *BillingAccountsServicesListCall) PageToken(pageToken string) *BillingAccountsServicesListCall { +func (c *BillingAccountsSkuGroupsListCall) PageToken(pageToken string) *BillingAccountsSkuGroupsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -5215,7 +4952,7 @@ func (c *BillingAccountsServicesListCall) PageToken(pageToken string) *BillingAc // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *BillingAccountsServicesListCall) Fields(s ...googleapi.Field) *BillingAccountsServicesListCall { +func (c *BillingAccountsSkuGroupsListCall) Fields(s ...googleapi.Field) *BillingAccountsSkuGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5225,7 +4962,7 @@ func (c *BillingAccountsServicesListCall) Fields(s ...googleapi.Field) *BillingA // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *BillingAccountsServicesListCall) IfNoneMatch(entityTag string) *BillingAccountsServicesListCall { +func (c *BillingAccountsSkuGroupsListCall) IfNoneMatch(entityTag string) *BillingAccountsSkuGroupsListCall { c.ifNoneMatch_ = entityTag return c } @@ -5233,21 +4970,21 @@ func (c *BillingAccountsServicesListCall) IfNoneMatch(entityTag string) *Billing // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *BillingAccountsServicesListCall) Context(ctx context.Context) *BillingAccountsServicesListCall { +func (c *BillingAccountsSkuGroupsListCall) Context(ctx context.Context) *BillingAccountsSkuGroupsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *BillingAccountsServicesListCall) Header() http.Header { +func (c *BillingAccountsSkuGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *BillingAccountsServicesListCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsSkuGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -5260,7 +4997,7 @@ func (c *BillingAccountsServicesListCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/services") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/skuGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -5273,17 +5010,17 @@ func (c *BillingAccountsServicesListCall) doRequest(alt string) (*http.Response, return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "cloudbilling.billingAccounts.services.list" call. +// Do executes the "cloudbilling.billingAccounts.skuGroups.list" call. // Exactly one of -// *GoogleCloudBillingBillingaccountservicesV1betaListBillingAccountServi -// cesResponse or error will be non-nil. Any non-2xx status code is an +// *GoogleCloudBillingBillingaccountskugroupsV1betaListBillingAccountSkuG +// roupsResponse or error will be non-nil. Any non-2xx status code is an // error. Response headers are in either -// *GoogleCloudBillingBillingaccountservicesV1betaListBillingAccountServi -// cesResponse.ServerResponse.Header or (if a response was returned at +// *GoogleCloudBillingBillingaccountskugroupsV1betaListBillingAccountSkuG +// roupsResponse.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *BillingAccountsServicesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountservicesV1betaListBillingAccountServicesResponse, error) { +func (c *BillingAccountsSkuGroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountskugroupsV1betaListBillingAccountSkuGroupsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5302,7 +5039,7 @@ func (c *BillingAccountsServicesListCall) Do(opts ...googleapi.CallOption) (*Goo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudBillingBillingaccountservicesV1betaListBillingAccountServicesResponse{ + ret := &GoogleCloudBillingBillingaccountskugroupsV1betaListBillingAccountSkuGroupsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5314,36 +5051,36 @@ func (c *BillingAccountsServicesListCall) Do(opts ...googleapi.CallOption) (*Goo } return ret, nil // { - // "description": "Lists services visible to a billing account.", - // "flatPath": "v1beta/billingAccounts/{billingAccountsId}/services", + // "description": "Lists SKU groups visible to a billing account.", + // "flatPath": "v1beta/billingAccounts/{billingAccountsId}/skuGroups", // "httpMethod": "GET", - // "id": "cloudbilling.billingAccounts.services.list", + // "id": "cloudbilling.billingAccounts.skuGroups.list", // "parameterOrder": [ // "parent" // ], // "parameters": { // "pageSize": { - // "description": "Maximum number of billing account service to return. Results may return fewer than this value. Default value is 50 and maximum value is 5000.", + // "description": "Maximum number of billing account SKU groups to return. Results may return fewer than this value. Default value is 50 and maximum value is 5000.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "Page token received from a previous ListBillingAccountServices call to retrieve the next page of results. If this field is empty, the first page is returned.", + // "description": "Page token received from a previous ListBillingAccountSkuGroups call to retrieve the next page of results. If this field is empty, the first page is returned.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The billing account to list billing account service from. Format: billingAccounts/{billing_account}", + // "description": "Required. The billing account to list billing account SKU groups from. Format: billingAccounts/{billing_account}", // "location": "path", // "pattern": "^billingAccounts/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta/{+parent}/services", + // "path": "v1beta/{+parent}/skuGroups", // "response": { - // "$ref": "GoogleCloudBillingBillingaccountservicesV1betaListBillingAccountServicesResponse" + // "$ref": "GoogleCloudBillingBillingaccountskugroupsV1betaListBillingAccountSkuGroupsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-billing", @@ -5357,7 +5094,7 @@ func (c *BillingAccountsServicesListCall) Do(opts ...googleapi.CallOption) (*Goo // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *BillingAccountsServicesListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingBillingaccountservicesV1betaListBillingAccountServicesResponse) error) error { +func (c *BillingAccountsSkuGroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingBillingaccountskugroupsV1betaListBillingAccountSkuGroupsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -5375,9 +5112,9 @@ func (c *BillingAccountsServicesListCall) Pages(ctx context.Context, f func(*Goo } } -// method id "cloudbilling.billingAccounts.skuGroups.get": +// method id "cloudbilling.billingAccounts.skuGroups.skus.get": -type BillingAccountsSkuGroupsGetCall struct { +type BillingAccountsSkuGroupsSkusGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -5386,12 +5123,13 @@ type BillingAccountsSkuGroupsGetCall struct { header_ http.Header } -// Get: Gets a SKU group visible to a billing account. +// Get: Gets a SKU that is part of a billing account SKU group. // -// - name: The name of the BillingAccountSkuGroup to retrieve. Format: -// billingAccounts/{billing_account}/skuGroups/{sku_group}. -func (r *BillingAccountsSkuGroupsService) Get(name string) *BillingAccountsSkuGroupsGetCall { - c := &BillingAccountsSkuGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the billing account SKU group SKU to retrieve. +// Format: +// billingAccounts/{billing_account}/skuGroups/{sku_group}/skus/{sku}. +func (r *BillingAccountsSkuGroupsSkusService) Get(name string) *BillingAccountsSkuGroupsSkusGetCall { + c := &BillingAccountsSkuGroupsSkusGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -5399,7 +5137,7 @@ func (r *BillingAccountsSkuGroupsService) Get(name string) *BillingAccountsSkuGr // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *BillingAccountsSkuGroupsGetCall) Fields(s ...googleapi.Field) *BillingAccountsSkuGroupsGetCall { +func (c *BillingAccountsSkuGroupsSkusGetCall) Fields(s ...googleapi.Field) *BillingAccountsSkuGroupsSkusGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5409,7 +5147,7 @@ func (c *BillingAccountsSkuGroupsGetCall) Fields(s ...googleapi.Field) *BillingA // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *BillingAccountsSkuGroupsGetCall) IfNoneMatch(entityTag string) *BillingAccountsSkuGroupsGetCall { +func (c *BillingAccountsSkuGroupsSkusGetCall) IfNoneMatch(entityTag string) *BillingAccountsSkuGroupsSkusGetCall { c.ifNoneMatch_ = entityTag return c } @@ -5417,21 +5155,21 @@ func (c *BillingAccountsSkuGroupsGetCall) IfNoneMatch(entityTag string) *Billing // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *BillingAccountsSkuGroupsGetCall) Context(ctx context.Context) *BillingAccountsSkuGroupsGetCall { +func (c *BillingAccountsSkuGroupsSkusGetCall) Context(ctx context.Context) *BillingAccountsSkuGroupsSkusGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *BillingAccountsSkuGroupsGetCall) Header() http.Header { +func (c *BillingAccountsSkuGroupsSkusGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *BillingAccountsSkuGroupsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsSkuGroupsSkusGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -5457,19 +5195,17 @@ func (c *BillingAccountsSkuGroupsGetCall) doRequest(alt string) (*http.Response, return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "cloudbilling.billingAccounts.skuGroups.get" call. +// Do executes the "cloudbilling.billingAccounts.skuGroups.skus.get" call. // Exactly one of -// *GoogleCloudBillingBillingaccountskugroupsV1betaBillingAccountSkuGroup -// -// or error will be non-nil. Any non-2xx status code is an error. -// +// *GoogleCloudBillingBillingaccountskugroupskusV1betaBillingAccountSkuGr +// oupSku or error will be non-nil. Any non-2xx status code is an error. // Response headers are in either -// *GoogleCloudBillingBillingaccountskugroupsV1betaBillingAccountSkuGroup -// .ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *BillingAccountsSkuGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountskugroupsV1betaBillingAccountSkuGroup, error) { +// *GoogleCloudBillingBillingaccountskugroupskusV1betaBillingAccountSkuGr +// oupSku.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *BillingAccountsSkuGroupsSkusGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountskugroupskusV1betaBillingAccountSkuGroupSku, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5488,7 +5224,7 @@ func (c *BillingAccountsSkuGroupsGetCall) Do(opts ...googleapi.CallOption) (*Goo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudBillingBillingaccountskugroupsV1betaBillingAccountSkuGroup{ + ret := &GoogleCloudBillingBillingaccountskugroupskusV1betaBillingAccountSkuGroupSku{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5500,25 +5236,25 @@ func (c *BillingAccountsSkuGroupsGetCall) Do(opts ...googleapi.CallOption) (*Goo } return ret, nil // { - // "description": "Gets a SKU group visible to a billing account.", - // "flatPath": "v1beta/billingAccounts/{billingAccountsId}/skuGroups/{skuGroupsId}", + // "description": "Gets a SKU that is part of a billing account SKU group.", + // "flatPath": "v1beta/billingAccounts/{billingAccountsId}/skuGroups/{skuGroupsId}/skus/{skusId}", // "httpMethod": "GET", - // "id": "cloudbilling.billingAccounts.skuGroups.get", + // "id": "cloudbilling.billingAccounts.skuGroups.skus.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the BillingAccountSkuGroup to retrieve. Format: billingAccounts/{billing_account}/skuGroups/{sku_group}", + // "description": "Required. The name of the billing account SKU group SKU to retrieve. Format: billingAccounts/{billing_account}/skuGroups/{sku_group}/skus/{sku}", // "location": "path", - // "pattern": "^billingAccounts/[^/]+/skuGroups/[^/]+$", + // "pattern": "^billingAccounts/[^/]+/skuGroups/[^/]+/skus/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta/{+name}", // "response": { - // "$ref": "GoogleCloudBillingBillingaccountskugroupsV1betaBillingAccountSkuGroup" + // "$ref": "GoogleCloudBillingBillingaccountskugroupskusV1betaBillingAccountSkuGroupSku" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-billing", @@ -5529,9 +5265,9 @@ func (c *BillingAccountsSkuGroupsGetCall) Do(opts ...googleapi.CallOption) (*Goo } -// method id "cloudbilling.billingAccounts.skuGroups.list": +// method id "cloudbilling.billingAccounts.skuGroups.skus.list": -type BillingAccountsSkuGroupsListCall struct { +type BillingAccountsSkuGroupsSkusListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -5540,29 +5276,30 @@ type BillingAccountsSkuGroupsListCall struct { header_ http.Header } -// List: Lists SKU groups visible to a billing account. +// List: Lists SKUs that is part of billing account SKU groups. // -// - parent: The billing account to list billing account SKU groups -// from. Format: billingAccounts/{billing_account}. -func (r *BillingAccountsSkuGroupsService) List(parent string) *BillingAccountsSkuGroupsListCall { - c := &BillingAccountsSkuGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The billing account SKU group to list billing account SKU +// group SKUs from. Format: +// billingAccounts/{billing_account}/skuGroups/{sku_group}. +func (r *BillingAccountsSkuGroupsSkusService) List(parent string) *BillingAccountsSkuGroupsSkusListCall { + c := &BillingAccountsSkuGroupsSkusListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } // PageSize sets the optional parameter "pageSize": Maximum number of -// billing account SKU groups to return. Results may return fewer than -// this value. Default value is 50 and maximum value is 5000. -func (c *BillingAccountsSkuGroupsListCall) PageSize(pageSize int64) *BillingAccountsSkuGroupsListCall { +// billing account SKU group SKUs to return. Results may return fewer +// than this value. Default value is 50 and maximum value is 5000. +func (c *BillingAccountsSkuGroupsSkusListCall) PageSize(pageSize int64) *BillingAccountsSkuGroupsSkusListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": Page token -// received from a previous ListBillingAccountSkuGroups call to retrieve -// the next page of results. If this field is empty, the first page is -// returned. -func (c *BillingAccountsSkuGroupsListCall) PageToken(pageToken string) *BillingAccountsSkuGroupsListCall { +// received from a previous ListBillingAccountSkuGroupSkus call to +// retrieve the next page of results. If this field is empty, the first +// page is returned. +func (c *BillingAccountsSkuGroupsSkusListCall) PageToken(pageToken string) *BillingAccountsSkuGroupsSkusListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -5570,7 +5307,7 @@ func (c *BillingAccountsSkuGroupsListCall) PageToken(pageToken string) *BillingA // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *BillingAccountsSkuGroupsListCall) Fields(s ...googleapi.Field) *BillingAccountsSkuGroupsListCall { +func (c *BillingAccountsSkuGroupsSkusListCall) Fields(s ...googleapi.Field) *BillingAccountsSkuGroupsSkusListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5580,7 +5317,7 @@ func (c *BillingAccountsSkuGroupsListCall) Fields(s ...googleapi.Field) *Billing // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *BillingAccountsSkuGroupsListCall) IfNoneMatch(entityTag string) *BillingAccountsSkuGroupsListCall { +func (c *BillingAccountsSkuGroupsSkusListCall) IfNoneMatch(entityTag string) *BillingAccountsSkuGroupsSkusListCall { c.ifNoneMatch_ = entityTag return c } @@ -5588,21 +5325,21 @@ func (c *BillingAccountsSkuGroupsListCall) IfNoneMatch(entityTag string) *Billin // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *BillingAccountsSkuGroupsListCall) Context(ctx context.Context) *BillingAccountsSkuGroupsListCall { +func (c *BillingAccountsSkuGroupsSkusListCall) Context(ctx context.Context) *BillingAccountsSkuGroupsSkusListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *BillingAccountsSkuGroupsListCall) Header() http.Header { +func (c *BillingAccountsSkuGroupsSkusListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *BillingAccountsSkuGroupsListCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsSkuGroupsSkusListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -5615,7 +5352,7 @@ func (c *BillingAccountsSkuGroupsListCall) doRequest(alt string) (*http.Response var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/skuGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/skus") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -5628,17 +5365,17 @@ func (c *BillingAccountsSkuGroupsListCall) doRequest(alt string) (*http.Response return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "cloudbilling.billingAccounts.skuGroups.list" call. +// Do executes the "cloudbilling.billingAccounts.skuGroups.skus.list" call. // Exactly one of -// *GoogleCloudBillingBillingaccountskugroupsV1betaListBillingAccountSkuG -// roupsResponse or error will be non-nil. Any non-2xx status code is an -// error. Response headers are in either -// *GoogleCloudBillingBillingaccountskugroupsV1betaListBillingAccountSkuG -// roupsResponse.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *BillingAccountsSkuGroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountskugroupsV1betaListBillingAccountSkuGroupsResponse, error) { +// *GoogleCloudBillingBillingaccountskugroupskusV1betaListBillingAccountS +// kuGroupSkusResponse or error will be non-nil. Any non-2xx status code +// is an error. Response headers are in either +// *GoogleCloudBillingBillingaccountskugroupskusV1betaListBillingAccountS +// kuGroupSkusResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *BillingAccountsSkuGroupsSkusListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountskugroupskusV1betaListBillingAccountSkuGroupSkusResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5657,7 +5394,7 @@ func (c *BillingAccountsSkuGroupsListCall) Do(opts ...googleapi.CallOption) (*Go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudBillingBillingaccountskugroupsV1betaListBillingAccountSkuGroupsResponse{ + ret := &GoogleCloudBillingBillingaccountskugroupskusV1betaListBillingAccountSkuGroupSkusResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5669,36 +5406,36 @@ func (c *BillingAccountsSkuGroupsListCall) Do(opts ...googleapi.CallOption) (*Go } return ret, nil // { - // "description": "Lists SKU groups visible to a billing account.", - // "flatPath": "v1beta/billingAccounts/{billingAccountsId}/skuGroups", + // "description": "Lists SKUs that is part of billing account SKU groups.", + // "flatPath": "v1beta/billingAccounts/{billingAccountsId}/skuGroups/{skuGroupsId}/skus", // "httpMethod": "GET", - // "id": "cloudbilling.billingAccounts.skuGroups.list", + // "id": "cloudbilling.billingAccounts.skuGroups.skus.list", // "parameterOrder": [ // "parent" // ], // "parameters": { // "pageSize": { - // "description": "Maximum number of billing account SKU groups to return. Results may return fewer than this value. Default value is 50 and maximum value is 5000.", + // "description": "Maximum number of billing account SKU group SKUs to return. Results may return fewer than this value. Default value is 50 and maximum value is 5000.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "Page token received from a previous ListBillingAccountSkuGroups call to retrieve the next page of results. If this field is empty, the first page is returned.", + // "description": "Page token received from a previous ListBillingAccountSkuGroupSkus call to retrieve the next page of results. If this field is empty, the first page is returned.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The billing account to list billing account SKU groups from. Format: billingAccounts/{billing_account}", + // "description": "Required. The billing account SKU group to list billing account SKU group SKUs from. Format: billingAccounts/{billing_account}/skuGroups/{sku_group}", // "location": "path", - // "pattern": "^billingAccounts/[^/]+$", + // "pattern": "^billingAccounts/[^/]+/skuGroups/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta/{+parent}/skuGroups", + // "path": "v1beta/{+parent}/skus", // "response": { - // "$ref": "GoogleCloudBillingBillingaccountskugroupsV1betaListBillingAccountSkuGroupsResponse" + // "$ref": "GoogleCloudBillingBillingaccountskugroupskusV1betaListBillingAccountSkuGroupSkusResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-billing", @@ -5712,7 +5449,7 @@ func (c *BillingAccountsSkuGroupsListCall) Do(opts ...googleapi.CallOption) (*Go // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *BillingAccountsSkuGroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingBillingaccountskugroupsV1betaListBillingAccountSkuGroupsResponse) error) error { +func (c *BillingAccountsSkuGroupsSkusListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingBillingaccountskugroupskusV1betaListBillingAccountSkuGroupSkusResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -5730,763 +5467,31 @@ func (c *BillingAccountsSkuGroupsListCall) Pages(ctx context.Context, f func(*Go } } -// method id "cloudbilling.billingAccounts.skuGroups.skus.get": +// method id "cloudbilling.billingAccounts.skus.get": -type BillingAccountsSkuGroupsSkusGetCall struct { +type BillingAccountsSkusGetCall struct { s *Service name string urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets a SKU that is part of a billing account SKU group. -// -// - name: The name of the billing account SKU group SKU to retrieve. -// Format: -// billingAccounts/{billing_account}/skuGroups/{sku_group}/skus/{sku}. -func (r *BillingAccountsSkuGroupsSkusService) Get(name string) *BillingAccountsSkuGroupsSkusGetCall { - c := &BillingAccountsSkuGroupsSkusGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *BillingAccountsSkuGroupsSkusGetCall) Fields(s ...googleapi.Field) *BillingAccountsSkuGroupsSkusGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *BillingAccountsSkuGroupsSkusGetCall) IfNoneMatch(entityTag string) *BillingAccountsSkuGroupsSkusGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *BillingAccountsSkuGroupsSkusGetCall) Context(ctx context.Context) *BillingAccountsSkuGroupsSkusGetCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *BillingAccountsSkuGroupsSkusGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *BillingAccountsSkuGroupsSkusGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "cloudbilling.billingAccounts.skuGroups.skus.get" call. -// Exactly one of -// *GoogleCloudBillingBillingaccountskugroupskusV1betaBillingAccountSkuGr -// oupSku or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudBillingBillingaccountskugroupskusV1betaBillingAccountSkuGr -// oupSku.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *BillingAccountsSkuGroupsSkusGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountskugroupskusV1betaBillingAccountSkuGroupSku, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudBillingBillingaccountskugroupskusV1betaBillingAccountSkuGroupSku{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Gets a SKU that is part of a billing account SKU group.", - // "flatPath": "v1beta/billingAccounts/{billingAccountsId}/skuGroups/{skuGroupsId}/skus/{skusId}", - // "httpMethod": "GET", - // "id": "cloudbilling.billingAccounts.skuGroups.skus.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the billing account SKU group SKU to retrieve. Format: billingAccounts/{billing_account}/skuGroups/{sku_group}/skus/{sku}", - // "location": "path", - // "pattern": "^billingAccounts/[^/]+/skuGroups/[^/]+/skus/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/{+name}", - // "response": { - // "$ref": "GoogleCloudBillingBillingaccountskugroupskusV1betaBillingAccountSkuGroupSku" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-billing", - // "https://www.googleapis.com/auth/cloud-billing.readonly", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudbilling.billingAccounts.skuGroups.skus.list": - -type BillingAccountsSkuGroupsSkusListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists SKUs that is part of billing account SKU groups. -// -// - parent: The billing account SKU group to list billing account SKU -// group SKUs from. Format: -// billingAccounts/{billing_account}/skuGroups/{sku_group}. -func (r *BillingAccountsSkuGroupsSkusService) List(parent string) *BillingAccountsSkuGroupsSkusListCall { - c := &BillingAccountsSkuGroupsSkusListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// PageSize sets the optional parameter "pageSize": Maximum number of -// billing account SKU group SKUs to return. Results may return fewer -// than this value. Default value is 50 and maximum value is 5000. -func (c *BillingAccountsSkuGroupsSkusListCall) PageSize(pageSize int64) *BillingAccountsSkuGroupsSkusListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": Page token -// received from a previous ListBillingAccountSkuGroupSkus call to -// retrieve the next page of results. If this field is empty, the first -// page is returned. -func (c *BillingAccountsSkuGroupsSkusListCall) PageToken(pageToken string) *BillingAccountsSkuGroupsSkusListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *BillingAccountsSkuGroupsSkusListCall) Fields(s ...googleapi.Field) *BillingAccountsSkuGroupsSkusListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *BillingAccountsSkuGroupsSkusListCall) IfNoneMatch(entityTag string) *BillingAccountsSkuGroupsSkusListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *BillingAccountsSkuGroupsSkusListCall) Context(ctx context.Context) *BillingAccountsSkuGroupsSkusListCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *BillingAccountsSkuGroupsSkusListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *BillingAccountsSkuGroupsSkusListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/skus") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "cloudbilling.billingAccounts.skuGroups.skus.list" call. -// Exactly one of -// *GoogleCloudBillingBillingaccountskugroupskusV1betaListBillingAccountS -// kuGroupSkusResponse or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either -// *GoogleCloudBillingBillingaccountskugroupskusV1betaListBillingAccountS -// kuGroupSkusResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *BillingAccountsSkuGroupsSkusListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountskugroupskusV1betaListBillingAccountSkuGroupSkusResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudBillingBillingaccountskugroupskusV1betaListBillingAccountSkuGroupSkusResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Lists SKUs that is part of billing account SKU groups.", - // "flatPath": "v1beta/billingAccounts/{billingAccountsId}/skuGroups/{skuGroupsId}/skus", - // "httpMethod": "GET", - // "id": "cloudbilling.billingAccounts.skuGroups.skus.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "Maximum number of billing account SKU group SKUs to return. Results may return fewer than this value. Default value is 50 and maximum value is 5000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Page token received from a previous ListBillingAccountSkuGroupSkus call to retrieve the next page of results. If this field is empty, the first page is returned.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The billing account SKU group to list billing account SKU group SKUs from. Format: billingAccounts/{billing_account}/skuGroups/{sku_group}", - // "location": "path", - // "pattern": "^billingAccounts/[^/]+/skuGroups/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/{+parent}/skus", - // "response": { - // "$ref": "GoogleCloudBillingBillingaccountskugroupskusV1betaListBillingAccountSkuGroupSkusResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-billing", - // "https://www.googleapis.com/auth/cloud-billing.readonly", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *BillingAccountsSkuGroupsSkusListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingBillingaccountskugroupskusV1betaListBillingAccountSkuGroupSkusResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -// method id "cloudbilling.billingAccounts.skus.get": - -type BillingAccountsSkusGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets a SKU visible to a billing account. -// -// - name: The name of the billing account SKU to retrieve. Format: -// billingAccounts/{billing_account}/skus/{sku}. -func (r *BillingAccountsSkusService) Get(name string) *BillingAccountsSkusGetCall { - c := &BillingAccountsSkusGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *BillingAccountsSkusGetCall) Fields(s ...googleapi.Field) *BillingAccountsSkusGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *BillingAccountsSkusGetCall) IfNoneMatch(entityTag string) *BillingAccountsSkusGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *BillingAccountsSkusGetCall) Context(ctx context.Context) *BillingAccountsSkusGetCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *BillingAccountsSkusGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *BillingAccountsSkusGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "cloudbilling.billingAccounts.skus.get" call. -// Exactly one of -// *GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku.ServerRes -// ponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *BillingAccountsSkusGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Gets a SKU visible to a billing account.", - // "flatPath": "v1beta/billingAccounts/{billingAccountsId}/skus/{skusId}", - // "httpMethod": "GET", - // "id": "cloudbilling.billingAccounts.skus.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the billing account SKU to retrieve. Format: billingAccounts/{billing_account}/skus/{sku}", - // "location": "path", - // "pattern": "^billingAccounts/[^/]+/skus/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/{+name}", - // "response": { - // "$ref": "GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-billing", - // "https://www.googleapis.com/auth/cloud-billing.readonly", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudbilling.billingAccounts.skus.list": - -type BillingAccountsSkusListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists SKUs visible to a billing account. -// -// - parent: The billing account to list billing account SKU from. -// Format: billingAccounts/{billing_account}. -func (r *BillingAccountsSkusService) List(parent string) *BillingAccountsSkusListCall { - c := &BillingAccountsSkusListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": Options for how to -// filter the billing account SKUs. Currently, only filter on -// `billing_account_service` is supported. Only !=, = operators are -// supported. Examples: - billing_account_service = -// "billingAccounts/012345-567890-ABCDEF/services/DA34-426B-A397" -func (c *BillingAccountsSkusListCall) Filter(filter string) *BillingAccountsSkusListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": Maximum number of -// billing account SKUs to return. Results may return fewer than this -// value. Default value is 50 and maximum value is 5000. -func (c *BillingAccountsSkusListCall) PageSize(pageSize int64) *BillingAccountsSkusListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": Page token -// received from a previous ListBillingAccountSkus call to retrieve the -// next page of results. If this field is empty, the first page is -// returned. -func (c *BillingAccountsSkusListCall) PageToken(pageToken string) *BillingAccountsSkusListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *BillingAccountsSkusListCall) Fields(s ...googleapi.Field) *BillingAccountsSkusListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *BillingAccountsSkusListCall) IfNoneMatch(entityTag string) *BillingAccountsSkusListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *BillingAccountsSkusListCall) Context(ctx context.Context) *BillingAccountsSkusListCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *BillingAccountsSkusListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *BillingAccountsSkusListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/skus") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "cloudbilling.billingAccounts.skus.list" call. -// Exactly one of -// *GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusRespo -// nse or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusRespo -// nse.ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *BillingAccountsSkusListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Lists SKUs visible to a billing account.", - // "flatPath": "v1beta/billingAccounts/{billingAccountsId}/skus", - // "httpMethod": "GET", - // "id": "cloudbilling.billingAccounts.skus.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Options for how to filter the billing account SKUs. Currently, only filter on `billing_account_service` is supported. Only !=, = operators are supported. Examples: - billing_account_service = \"billingAccounts/012345-567890-ABCDEF/services/DA34-426B-A397\"", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Maximum number of billing account SKUs to return. Results may return fewer than this value. Default value is 50 and maximum value is 5000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Page token received from a previous ListBillingAccountSkus call to retrieve the next page of results. If this field is empty, the first page is returned.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The billing account to list billing account SKU from. Format: billingAccounts/{billing_account}", - // "location": "path", - // "pattern": "^billingAccounts/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/{+parent}/skus", - // "response": { - // "$ref": "GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-billing", - // "https://www.googleapis.com/auth/cloud-billing.readonly", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *BillingAccountsSkusListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -// method id "cloudbilling.billingAccounts.skus.price.get": - -type BillingAccountsSkusPriceGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets the latest price for SKUs available to your Cloud Billing -// account. -// -// - name: Name of the billing account price to retrieve. Format: -// billingAccounts/{billing_account}/skus/{sku}/price. -func (r *BillingAccountsSkusPriceService) Get(name string) *BillingAccountsSkusPriceGetCall { - c := &BillingAccountsSkusPriceGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// CurrencyCode sets the optional parameter "currencyCode": ISO-4217 -// currency code for the price. If not specified, the currency of the -// billing account is used. -func (c *BillingAccountsSkusPriceGetCall) CurrencyCode(currencyCode string) *BillingAccountsSkusPriceGetCall { - c.urlParams_.Set("currencyCode", currencyCode) +// Get: Gets a SKU visible to a billing account. +// +// - name: The name of the billing account SKU to retrieve. Format: +// billingAccounts/{billing_account}/skus/{sku}. +func (r *BillingAccountsSkusService) Get(name string) *BillingAccountsSkusGetCall { + c := &BillingAccountsSkusGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *BillingAccountsSkusPriceGetCall) Fields(s ...googleapi.Field) *BillingAccountsSkusPriceGetCall { +func (c *BillingAccountsSkusGetCall) Fields(s ...googleapi.Field) *BillingAccountsSkusGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6496,7 +5501,7 @@ func (c *BillingAccountsSkusPriceGetCall) Fields(s ...googleapi.Field) *BillingA // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *BillingAccountsSkusPriceGetCall) IfNoneMatch(entityTag string) *BillingAccountsSkusPriceGetCall { +func (c *BillingAccountsSkusGetCall) IfNoneMatch(entityTag string) *BillingAccountsSkusGetCall { c.ifNoneMatch_ = entityTag return c } @@ -6504,21 +5509,21 @@ func (c *BillingAccountsSkusPriceGetCall) IfNoneMatch(entityTag string) *Billing // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *BillingAccountsSkusPriceGetCall) Context(ctx context.Context) *BillingAccountsSkusPriceGetCall { +func (c *BillingAccountsSkusGetCall) Context(ctx context.Context) *BillingAccountsSkusGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *BillingAccountsSkusPriceGetCall) Header() http.Header { +func (c *BillingAccountsSkusGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *BillingAccountsSkusPriceGetCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsSkusGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -6544,17 +5549,17 @@ func (c *BillingAccountsSkusPriceGetCall) doRequest(alt string) (*http.Response, return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "cloudbilling.billingAccounts.skus.price.get" call. +// Do executes the "cloudbilling.billingAccounts.skus.get" call. // Exactly one of -// *GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice or -// error will be non-nil. Any non-2xx status code is an error. Response +// *GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku or error +// will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice.Serve -// rResponse.Header or (if a response was returned at all) in +// *GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku.ServerRes +// ponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *BillingAccountsSkusPriceGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice, error) { +func (c *BillingAccountsSkusGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6573,7 +5578,7 @@ func (c *BillingAccountsSkusPriceGetCall) Do(opts ...googleapi.CallOption) (*Goo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice{ + ret := &GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6585,30 +5590,25 @@ func (c *BillingAccountsSkusPriceGetCall) Do(opts ...googleapi.CallOption) (*Goo } return ret, nil // { - // "description": "Gets the latest price for SKUs available to your Cloud Billing account.", - // "flatPath": "v1beta/billingAccounts/{billingAccountsId}/skus/{skusId}/price", + // "description": "Gets a SKU visible to a billing account.", + // "flatPath": "v1beta/billingAccounts/{billingAccountsId}/skus/{skusId}", // "httpMethod": "GET", - // "id": "cloudbilling.billingAccounts.skus.price.get", + // "id": "cloudbilling.billingAccounts.skus.get", // "parameterOrder": [ // "name" // ], // "parameters": { - // "currencyCode": { - // "description": "Optional. ISO-4217 currency code for the price. If not specified, the currency of the billing account is used.", - // "location": "query", - // "type": "string" - // }, // "name": { - // "description": "Required. Name of the billing account price to retrieve. Format: billingAccounts/{billing_account}/skus/{sku}/price", + // "description": "Required. The name of the billing account SKU to retrieve. Format: billingAccounts/{billing_account}/skus/{sku}", // "location": "path", - // "pattern": "^billingAccounts/[^/]+/skus/[^/]+/price$", + // "pattern": "^billingAccounts/[^/]+/skus/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta/{+name}", // "response": { - // "$ref": "GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice" + // "$ref": "GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-billing", @@ -6619,9 +5619,9 @@ func (c *BillingAccountsSkusPriceGetCall) Do(opts ...googleapi.CallOption) (*Goo } -// method id "cloudbilling.billingAccounts.skus.prices.list": +// method id "cloudbilling.billingAccounts.skus.list": -type BillingAccountsSkusPricesListCall struct { +type BillingAccountsSkusListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -6630,40 +5630,39 @@ type BillingAccountsSkusPricesListCall struct { header_ http.Header } -// List: Lists the latest prices for SKUs available to your Cloud -// Billing account. +// List: Lists SKUs visible to a billing account. // -// - parent: To list all Billing Account SKUs, use `-` as the SKU ID. -// Format: `billingAccounts/{billing_account}/skus/-` Note: Specifying -// an actual SKU resource id will return a collection of one Billing -// Account Price. -func (r *BillingAccountsSkusPricesService) List(parent string) *BillingAccountsSkusPricesListCall { - c := &BillingAccountsSkusPricesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The billing account to list billing account SKU from. +// Format: billingAccounts/{billing_account}. +func (r *BillingAccountsSkusService) List(parent string) *BillingAccountsSkusListCall { + c := &BillingAccountsSkusListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// CurrencyCode sets the optional parameter "currencyCode": ISO-4217 -// currency code for the price. If not specified, currency of billing -// account will be used. -func (c *BillingAccountsSkusPricesListCall) CurrencyCode(currencyCode string) *BillingAccountsSkusPricesListCall { - c.urlParams_.Set("currencyCode", currencyCode) +// Filter sets the optional parameter "filter": Options for how to +// filter the billing account SKUs. Currently, only filter on +// `billing_account_service` is supported. Only !=, = operators are +// supported. Examples: - billing_account_service = +// "billingAccounts/012345-567890-ABCDEF/services/DA34-426B-A397" +func (c *BillingAccountsSkusListCall) Filter(filter string) *BillingAccountsSkusListCall { + c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": Maximum number of -// billing account price to return. Results may return fewer than this +// billing account SKUs to return. Results may return fewer than this // value. Default value is 50 and maximum value is 5000. -func (c *BillingAccountsSkusPricesListCall) PageSize(pageSize int64) *BillingAccountsSkusPricesListCall { +func (c *BillingAccountsSkusListCall) PageSize(pageSize int64) *BillingAccountsSkusListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": Page token -// received from a previous ListBillingAccountPrices call to retrieve -// the next page of results. If this field is empty, the first page is +// received from a previous ListBillingAccountSkus call to retrieve the +// next page of results. If this field is empty, the first page is // returned. -func (c *BillingAccountsSkusPricesListCall) PageToken(pageToken string) *BillingAccountsSkusPricesListCall { +func (c *BillingAccountsSkusListCall) PageToken(pageToken string) *BillingAccountsSkusListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -6671,7 +5670,7 @@ func (c *BillingAccountsSkusPricesListCall) PageToken(pageToken string) *Billing // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *BillingAccountsSkusPricesListCall) Fields(s ...googleapi.Field) *BillingAccountsSkusPricesListCall { +func (c *BillingAccountsSkusListCall) Fields(s ...googleapi.Field) *BillingAccountsSkusListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6681,7 +5680,7 @@ func (c *BillingAccountsSkusPricesListCall) Fields(s ...googleapi.Field) *Billin // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *BillingAccountsSkusPricesListCall) IfNoneMatch(entityTag string) *BillingAccountsSkusPricesListCall { +func (c *BillingAccountsSkusListCall) IfNoneMatch(entityTag string) *BillingAccountsSkusListCall { c.ifNoneMatch_ = entityTag return c } @@ -6689,21 +5688,21 @@ func (c *BillingAccountsSkusPricesListCall) IfNoneMatch(entityTag string) *Billi // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *BillingAccountsSkusPricesListCall) Context(ctx context.Context) *BillingAccountsSkusPricesListCall { +func (c *BillingAccountsSkusListCall) Context(ctx context.Context) *BillingAccountsSkusListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *BillingAccountsSkusPricesListCall) Header() http.Header { +func (c *BillingAccountsSkusListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *BillingAccountsSkusPricesListCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsSkusListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -6716,7 +5715,7 @@ func (c *BillingAccountsSkusPricesListCall) doRequest(alt string) (*http.Respons var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/prices") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/skus") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -6729,17 +5728,17 @@ func (c *BillingAccountsSkusPricesListCall) doRequest(alt string) (*http.Respons return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "cloudbilling.billingAccounts.skus.prices.list" call. +// Do executes the "cloudbilling.billingAccounts.skus.list" call. // Exactly one of -// *GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesR -// esponse or error will be non-nil. Any non-2xx status code is an -// error. Response headers are in either -// *GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesR -// esponse.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *BillingAccountsSkusPricesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesResponse, error) { +// *GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusRespo +// nse or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusRespo +// nse.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *BillingAccountsSkusListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6758,7 +5757,7 @@ func (c *BillingAccountsSkusPricesListCall) Do(opts ...googleapi.CallOption) (*G if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesResponse{ + ret := &GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6770,41 +5769,41 @@ func (c *BillingAccountsSkusPricesListCall) Do(opts ...googleapi.CallOption) (*G } return ret, nil // { - // "description": "Lists the latest prices for SKUs available to your Cloud Billing account.", - // "flatPath": "v1beta/billingAccounts/{billingAccountsId}/skus/{skusId}/prices", + // "description": "Lists SKUs visible to a billing account.", + // "flatPath": "v1beta/billingAccounts/{billingAccountsId}/skus", // "httpMethod": "GET", - // "id": "cloudbilling.billingAccounts.skus.prices.list", + // "id": "cloudbilling.billingAccounts.skus.list", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "currencyCode": { - // "description": "Optional. ISO-4217 currency code for the price. If not specified, currency of billing account will be used.", + // "filter": { + // "description": "Options for how to filter the billing account SKUs. Currently, only filter on `billing_account_service` is supported. Only !=, = operators are supported. Examples: - billing_account_service = \"billingAccounts/012345-567890-ABCDEF/services/DA34-426B-A397\"", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "Optional. Maximum number of billing account price to return. Results may return fewer than this value. Default value is 50 and maximum value is 5000.", + // "description": "Maximum number of billing account SKUs to return. Results may return fewer than this value. Default value is 50 and maximum value is 5000.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "Optional. Page token received from a previous ListBillingAccountPrices call to retrieve the next page of results. If this field is empty, the first page is returned.", + // "description": "Page token received from a previous ListBillingAccountSkus call to retrieve the next page of results. If this field is empty, the first page is returned.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. To list all Billing Account SKUs, use `-` as the SKU ID. Format: `billingAccounts/{billing_account}/skus/-` Note: Specifying an actual SKU resource id will return a collection of one Billing Account Price.", + // "description": "Required. The billing account to list billing account SKU from. Format: billingAccounts/{billing_account}", // "location": "path", - // "pattern": "^billingAccounts/[^/]+/skus/[^/]+$", + // "pattern": "^billingAccounts/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta/{+parent}/prices", + // "path": "v1beta/{+parent}/skus", // "response": { - // "$ref": "GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesResponse" + // "$ref": "GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-billing", @@ -6818,7 +5817,7 @@ func (c *BillingAccountsSkusPricesListCall) Do(opts ...googleapi.CallOption) (*G // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *BillingAccountsSkusPricesListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesResponse) error) error { +func (c *BillingAccountsSkusListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -6836,9 +5835,9 @@ func (c *BillingAccountsSkusPricesListCall) Pages(ctx context.Context, f func(*G } } -// method id "cloudbilling.projects.anomalies.get": +// method id "cloudbilling.billingAccounts.skus.price.get": -type ProjectsAnomaliesGetCall struct { +type BillingAccountsSkusPriceGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -6847,21 +5846,29 @@ type ProjectsAnomaliesGetCall struct { header_ http.Header } -// Get: Gets an anomaly for a billing account or a project. +// Get: Gets the latest price for SKUs available to your Cloud Billing +// account. // -// - name: Format for project: projects/{project}/anomalies/{anomalies}. -// Format for billing account: -// billingAccounts/{billing_account}/anomalies/{anomalies}. -func (r *ProjectsAnomaliesService) Get(name string) *ProjectsAnomaliesGetCall { - c := &ProjectsAnomaliesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Name of the billing account price to retrieve. Format: +// billingAccounts/{billing_account}/skus/{sku}/price. +func (r *BillingAccountsSkusPriceService) Get(name string) *BillingAccountsSkusPriceGetCall { + c := &BillingAccountsSkusPriceGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// CurrencyCode sets the optional parameter "currencyCode": ISO-4217 +// currency code for the price. If not specified, the currency of the +// billing account is used. +func (c *BillingAccountsSkusPriceGetCall) CurrencyCode(currencyCode string) *BillingAccountsSkusPriceGetCall { + c.urlParams_.Set("currencyCode", currencyCode) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsAnomaliesGetCall) Fields(s ...googleapi.Field) *ProjectsAnomaliesGetCall { +func (c *BillingAccountsSkusPriceGetCall) Fields(s ...googleapi.Field) *BillingAccountsSkusPriceGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6871,7 +5878,7 @@ func (c *ProjectsAnomaliesGetCall) Fields(s ...googleapi.Field) *ProjectsAnomali // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsAnomaliesGetCall) IfNoneMatch(entityTag string) *ProjectsAnomaliesGetCall { +func (c *BillingAccountsSkusPriceGetCall) IfNoneMatch(entityTag string) *BillingAccountsSkusPriceGetCall { c.ifNoneMatch_ = entityTag return c } @@ -6879,21 +5886,21 @@ func (c *ProjectsAnomaliesGetCall) IfNoneMatch(entityTag string) *ProjectsAnomal // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsAnomaliesGetCall) Context(ctx context.Context) *ProjectsAnomaliesGetCall { +func (c *BillingAccountsSkusPriceGetCall) Context(ctx context.Context) *BillingAccountsSkusPriceGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsAnomaliesGetCall) Header() http.Header { +func (c *BillingAccountsSkusPriceGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsAnomaliesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsSkusPriceGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -6919,16 +5926,17 @@ func (c *ProjectsAnomaliesGetCall) doRequest(alt string) (*http.Response, error) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "cloudbilling.projects.anomalies.get" call. -// Exactly one of *GoogleCloudBillingAnomaliesV1betaAnomaly or error -// will be non-nil. Any non-2xx status code is an error. Response +// Do executes the "cloudbilling.billingAccounts.skus.price.get" call. +// Exactly one of +// *GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice or +// error will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudBillingAnomaliesV1betaAnomaly.ServerResponse.Header or -// (if a response was returned at all) in +// *GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice.Serve +// rResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsAnomaliesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingAnomaliesV1betaAnomaly, error) { +func (c *BillingAccountsSkusPriceGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6947,7 +5955,7 @@ func (c *ProjectsAnomaliesGetCall) Do(opts ...googleapi.CallOption) (*GoogleClou if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudBillingAnomaliesV1betaAnomaly{ + ret := &GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6959,25 +5967,30 @@ func (c *ProjectsAnomaliesGetCall) Do(opts ...googleapi.CallOption) (*GoogleClou } return ret, nil // { - // "description": "Gets an anomaly for a billing account or a project.", - // "flatPath": "v1beta/projects/{projectsId}/anomalies/{anomaliesId}", + // "description": "Gets the latest price for SKUs available to your Cloud Billing account.", + // "flatPath": "v1beta/billingAccounts/{billingAccountsId}/skus/{skusId}/price", // "httpMethod": "GET", - // "id": "cloudbilling.projects.anomalies.get", + // "id": "cloudbilling.billingAccounts.skus.price.get", // "parameterOrder": [ // "name" // ], // "parameters": { + // "currencyCode": { + // "description": "Optional. ISO-4217 currency code for the price. If not specified, the currency of the billing account is used.", + // "location": "query", + // "type": "string" + // }, // "name": { - // "description": "Required. Format for project: projects/{project}/anomalies/{anomalies}. Format for billing account: billingAccounts/{billing_account}/anomalies/{anomalies}.", + // "description": "Required. Name of the billing account price to retrieve. Format: billingAccounts/{billing_account}/skus/{sku}/price", // "location": "path", - // "pattern": "^projects/[^/]+/anomalies/[^/]+$", + // "pattern": "^billingAccounts/[^/]+/skus/[^/]+/price$", // "required": true, // "type": "string" // } // }, // "path": "v1beta/{+name}", // "response": { - // "$ref": "GoogleCloudBillingAnomaliesV1betaAnomaly" + // "$ref": "GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-billing", @@ -6988,9 +6001,9 @@ func (c *ProjectsAnomaliesGetCall) Do(opts ...googleapi.CallOption) (*GoogleClou } -// method id "cloudbilling.projects.anomalies.list": +// method id "cloudbilling.billingAccounts.skus.prices.list": -type ProjectsAnomaliesListCall struct { +type BillingAccountsSkusPricesListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -6999,40 +6012,40 @@ type ProjectsAnomaliesListCall struct { header_ http.Header } -// List: Lists anomalies for a billing account or a project. +// List: Lists the latest prices for SKUs available to your Cloud +// Billing account. // -// - parent: The project to list Anomaly for the project. Format for -// project: projects/{project}. Format for billing account: -// billingAccounts/{billing_account}. -func (r *ProjectsAnomaliesService) List(parent string) *ProjectsAnomaliesListCall { - c := &ProjectsAnomaliesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: To list all Billing Account SKUs, use `-` as the SKU ID. +// Format: `billingAccounts/{billing_account}/skus/-` Note: Specifying +// an actual SKU resource id will return a collection of one Billing +// Account Price. +func (r *BillingAccountsSkusPricesService) List(parent string) *BillingAccountsSkusPricesListCall { + c := &BillingAccountsSkusPricesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": Options for how to -// filter the anomalies. Currently, only filter on `start_time` and -// `end_time` is supported. Only =, AND operators are supported. If -// start_time and/or end_time empty, we only retrieve the most recent 30 -// days' anomalies. Examples: - start_time = "20231201" AND end_time = -// "20240120" . -func (c *ProjectsAnomaliesListCall) Filter(filter string) *ProjectsAnomaliesListCall { - c.urlParams_.Set("filter", filter) +// CurrencyCode sets the optional parameter "currencyCode": ISO-4217 +// currency code for the price. If not specified, currency of billing +// account will be used. +func (c *BillingAccountsSkusPricesListCall) CurrencyCode(currencyCode string) *BillingAccountsSkusPricesListCall { + c.urlParams_.Set("currencyCode", currencyCode) return c } // PageSize sets the optional parameter "pageSize": Maximum number of -// anomalies to return. Results may return fewer than this value. -// Default value is 50 and maximum value is 1000. -func (c *ProjectsAnomaliesListCall) PageSize(pageSize int64) *ProjectsAnomaliesListCall { +// billing account price to return. Results may return fewer than this +// value. Default value is 50 and maximum value is 5000. +func (c *BillingAccountsSkusPricesListCall) PageSize(pageSize int64) *BillingAccountsSkusPricesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": Page token -// received from a previous ListAnomalies call to retrieve the next page -// of results. If this field is empty, the first page is returned. -func (c *ProjectsAnomaliesListCall) PageToken(pageToken string) *ProjectsAnomaliesListCall { +// received from a previous ListBillingAccountPrices call to retrieve +// the next page of results. If this field is empty, the first page is +// returned. +func (c *BillingAccountsSkusPricesListCall) PageToken(pageToken string) *BillingAccountsSkusPricesListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -7040,7 +6053,7 @@ func (c *ProjectsAnomaliesListCall) PageToken(pageToken string) *ProjectsAnomali // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsAnomaliesListCall) Fields(s ...googleapi.Field) *ProjectsAnomaliesListCall { +func (c *BillingAccountsSkusPricesListCall) Fields(s ...googleapi.Field) *BillingAccountsSkusPricesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7050,7 +6063,7 @@ func (c *ProjectsAnomaliesListCall) Fields(s ...googleapi.Field) *ProjectsAnomal // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsAnomaliesListCall) IfNoneMatch(entityTag string) *ProjectsAnomaliesListCall { +func (c *BillingAccountsSkusPricesListCall) IfNoneMatch(entityTag string) *BillingAccountsSkusPricesListCall { c.ifNoneMatch_ = entityTag return c } @@ -7058,21 +6071,21 @@ func (c *ProjectsAnomaliesListCall) IfNoneMatch(entityTag string) *ProjectsAnoma // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsAnomaliesListCall) Context(ctx context.Context) *ProjectsAnomaliesListCall { +func (c *BillingAccountsSkusPricesListCall) Context(ctx context.Context) *BillingAccountsSkusPricesListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsAnomaliesListCall) Header() http.Header { +func (c *BillingAccountsSkusPricesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsAnomaliesListCall) doRequest(alt string) (*http.Response, error) { +func (c *BillingAccountsSkusPricesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -7085,7 +6098,7 @@ func (c *ProjectsAnomaliesListCall) doRequest(alt string) (*http.Response, error var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/anomalies") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/prices") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -7098,17 +6111,17 @@ func (c *ProjectsAnomaliesListCall) doRequest(alt string) (*http.Response, error return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "cloudbilling.projects.anomalies.list" call. +// Do executes the "cloudbilling.billingAccounts.skus.prices.list" call. // Exactly one of -// *GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsAnomaliesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse, error) { +// *GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesR +// esponse or error will be non-nil. Any non-2xx status code is an +// error. Response headers are in either +// *GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesR +// esponse.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *BillingAccountsSkusPricesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7127,7 +6140,7 @@ func (c *ProjectsAnomaliesListCall) Do(opts ...googleapi.CallOption) (*GoogleClo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse{ + ret := &GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7139,41 +6152,41 @@ func (c *ProjectsAnomaliesListCall) Do(opts ...googleapi.CallOption) (*GoogleClo } return ret, nil // { - // "description": "Lists anomalies for a billing account or a project.", - // "flatPath": "v1beta/projects/{projectsId}/anomalies", + // "description": "Lists the latest prices for SKUs available to your Cloud Billing account.", + // "flatPath": "v1beta/billingAccounts/{billingAccountsId}/skus/{skusId}/prices", // "httpMethod": "GET", - // "id": "cloudbilling.projects.anomalies.list", + // "id": "cloudbilling.billingAccounts.skus.prices.list", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "filter": { - // "description": "Optional. Options for how to filter the anomalies. Currently, only filter on `start_time` and `end_time` is supported. Only =, AND operators are supported. If start_time and/or end_time empty, we only retrieve the most recent 30 days' anomalies. Examples: - start_time = \"20231201\" AND end_time = \"20240120\" .", + // "currencyCode": { + // "description": "Optional. ISO-4217 currency code for the price. If not specified, currency of billing account will be used.", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "Optional. Maximum number of anomalies to return. Results may return fewer than this value. Default value is 50 and maximum value is 1000.", + // "description": "Optional. Maximum number of billing account price to return. Results may return fewer than this value. Default value is 50 and maximum value is 5000.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "Optional. Page token received from a previous ListAnomalies call to retrieve the next page of results. If this field is empty, the first page is returned.", + // "description": "Optional. Page token received from a previous ListBillingAccountPrices call to retrieve the next page of results. If this field is empty, the first page is returned.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The project to list Anomaly for the project. Format for project: projects/{project}. Format for billing account: billingAccounts/{billing_account}.", + // "description": "Required. To list all Billing Account SKUs, use `-` as the SKU ID. Format: `billingAccounts/{billing_account}/skus/-` Note: Specifying an actual SKU resource id will return a collection of one Billing Account Price.", // "location": "path", - // "pattern": "^projects/[^/]+$", + // "pattern": "^billingAccounts/[^/]+/skus/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta/{+parent}/anomalies", + // "path": "v1beta/{+parent}/prices", // "response": { - // "$ref": "GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse" + // "$ref": "GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-billing", @@ -7187,7 +6200,7 @@ func (c *ProjectsAnomaliesListCall) Do(opts ...googleapi.CallOption) (*GoogleClo // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsAnomaliesListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse) error) error { +func (c *BillingAccountsSkusPricesListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { diff --git a/compute/v0.beta/compute-api.json b/compute/v0.beta/compute-api.json index 1672c304b7a..d1b107e7887 100644 --- a/compute/v0.beta/compute-api.json +++ b/compute/v0.beta/compute-api.json @@ -10679,6 +10679,21 @@ "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", "required": true, "type": "string" + }, + "view": { + "description": "View of the instance template.", + "enum": [ + "BASIC", + "FULL", + "INSTANCE_VIEW_UNSPECIFIED" + ], + "enumDescriptions": [ + "Include everything except Partner Metadata.", + "Include everything.", + "The default / unset value. The API will default to the BASIC view." + ], + "location": "query", + "type": "string" } }, "path": "projects/{project}/global/instanceTemplates/{instanceTemplate}", @@ -10809,6 +10824,21 @@ "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.", "location": "query", "type": "boolean" + }, + "view": { + "description": "View of the instance template.", + "enum": [ + "BASIC", + "FULL", + "INSTANCE_VIEW_UNSPECIFIED" + ], + "enumDescriptions": [ + "Include everything except Partner Metadata.", + "Include everything.", + "The default / unset value. The API will default to the BASIC view." + ], + "location": "query", + "type": "string" } }, "path": "projects/{project}/global/instanceTemplates", @@ -11357,6 +11387,21 @@ "required": true, "type": "string" }, + "view": { + "description": "View of the instance.", + "enum": [ + "BASIC", + "FULL", + "INSTANCE_VIEW_UNSPECIFIED" + ], + "enumDescriptions": [ + "Include everything except Partner Metadata.", + "Include everything.", + "The default / unset value. The API will default to the BASIC view." + ], + "location": "query", + "type": "string" + }, "zone": { "description": "The name of the zone for this request.", "location": "path", @@ -11527,6 +11572,54 @@ "https://www.googleapis.com/auth/compute.readonly" ] }, + "getPartnerMetadata": { + "description": "Gets partner metadata of the specified instance and namespaces.", + "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/getPartnerMetadata", + "httpMethod": "GET", + "id": "compute.instances.getPartnerMetadata", + "parameterOrder": [ + "project", + "zone", + "instance" + ], + "parameters": { + "instance": { + "description": "Name of the instance scoping this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "namespaces": { + "description": "Comma separated partner metadata namespaces.", + "location": "query", + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "zone": { + "description": "The name of the zone for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/instances/{instance}/getPartnerMetadata", + "response": { + "$ref": "PartnerMetadata" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, "getScreenshot": { "description": "Returns the screenshot from the specified instance.", "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/screenshot", @@ -11811,6 +11904,21 @@ "location": "query", "type": "boolean" }, + "view": { + "description": "View of the instance.", + "enum": [ + "BASIC", + "FULL", + "INSTANCE_VIEW_UNSPECIFIED" + ], + "enumDescriptions": [ + "Include everything except Partner Metadata.", + "Include everything.", + "The default / unset value. The API will default to the BASIC view." + ], + "location": "query", + "type": "string" + }, "zone": { "description": "The name of the zone for this request.", "location": "path", @@ -11900,6 +12008,56 @@ "https://www.googleapis.com/auth/compute.readonly" ] }, + "patchPartnerMetadata": { + "description": "Patches partner metadata of the specified instance.", + "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/patchPartnerMetadata", + "httpMethod": "POST", + "id": "compute.instances.patchPartnerMetadata", + "parameterOrder": [ + "project", + "zone", + "instance" + ], + "parameters": { + "instance": { + "description": "Name of the instance scoping this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "zone": { + "description": "The name of the zone for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/instances/{instance}/patchPartnerMetadata", + "request": { + "$ref": "PartnerMetadata" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "performMaintenance": { "description": "Perform a manual maintenance on the instance.", "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/performMaintenance", @@ -26275,6 +26433,21 @@ "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", "required": true, "type": "string" + }, + "view": { + "description": "View of the instance template.", + "enum": [ + "BASIC", + "FULL", + "INSTANCE_VIEW_UNSPECIFIED" + ], + "enumDescriptions": [ + "Include everything except Partner Metadata.", + "Include everything.", + "The default / unset value. The API will default to the BASIC view." + ], + "location": "query", + "type": "string" } }, "path": "projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}", @@ -26380,6 +26553,21 @@ "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.", "location": "query", "type": "boolean" + }, + "view": { + "description": "View of the instance template.", + "enum": [ + "BASIC", + "FULL", + "INSTANCE_VIEW_UNSPECIFIED" + ], + "enumDescriptions": [ + "Include everything except Partner Metadata.", + "Include everything.", + "The default / unset value. The API will default to the BASIC view." + ], + "location": "query", + "type": "string" } }, "path": "projects/{project}/regions/{region}/instanceTemplates", @@ -32179,62 +32367,19 @@ "https://www.googleapis.com/auth/compute" ] }, - "get": { - "description": "Returns the specified Router resource.", - "flatPath": "projects/{project}/regions/{region}/routers/{router}", - "httpMethod": "GET", - "id": "compute.routers.get", - "parameterOrder": [ - "project", - "region", - "router" - ], - "parameters": { - "project": { - "description": "Project ID for this request.", - "location": "path", - "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "required": true, - "type": "string" - }, - "region": { - "description": "Name of the region for this request.", - "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "required": true, - "type": "string" - }, - "router": { - "description": "Name of the Router resource to return.", - "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", - "required": true, - "type": "string" - } - }, - "path": "projects/{project}/regions/{region}/routers/{router}", - "response": { - "$ref": "Router" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "getNatIpInfo": { - "description": "Retrieves runtime NAT IP information.", - "flatPath": "projects/{project}/regions/{region}/routers/{router}/getNatIpInfo", - "httpMethod": "GET", - "id": "compute.routers.getNatIpInfo", + "deleteRoutePolicy": { + "description": "Deletes Route Policy", + "flatPath": "projects/{project}/regions/{region}/routers/{router}/deleteRoutePolicy", + "httpMethod": "POST", + "id": "compute.routers.deleteRoutePolicy", "parameterOrder": [ "project", "region", "router" ], "parameters": { - "natName": { - "description": "Name of the nat service to filter the NAT IP information. If it is omitted, all nats for this router will be returned. Name should conform to RFC1035.", + "policy": { + "description": "The Policy name for this request. Name must conform to RFC1035", "location": "query", "type": "string" }, @@ -32252,104 +32397,246 @@ "required": true, "type": "string" }, - "router": { - "description": "Name of the Router resource to query for Nat IP information. The name should conform to RFC1035.", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "projects/{project}/regions/{region}/routers/{router}/getNatIpInfo", - "response": { - "$ref": "NatIpInfoResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "getNatMappingInfo": { - "description": "Retrieves runtime Nat mapping information of VM endpoints.", - "flatPath": "projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo", - "httpMethod": "GET", - "id": "compute.routers.getNatMappingInfo", - "parameterOrder": [ - "project", - "region", - "router" - ], - "parameters": { - "filter": { - "description": "A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `\u003e`, `\u003c`, `\u003c=`, `\u003e=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq \"double quoted literal\"` `(fieldname1 eq literal) (fieldname2 ne \"literal\")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name \"instance\", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.", - "location": "query", - "type": "string" - }, - "maxResults": { - "default": "500", - "description": "The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)", - "format": "uint32", - "location": "query", - "minimum": "0", - "type": "integer" - }, - "natName": { - "description": "Name of the nat service to filter the Nat Mapping information. If it is omitted, all nats for this router will be returned. Name should conform to RFC1035.", - "location": "query", - "type": "string" - }, - "orderBy": { - "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", - "location": "query", - "type": "string" - }, - "pageToken": { - "description": "Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.", + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", "location": "query", "type": "string" }, - "project": { - "description": "Project ID for this request.", - "location": "path", - "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "required": true, - "type": "string" - }, - "region": { - "description": "Name of the region for this request.", - "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "required": true, - "type": "string" - }, - "returnPartialSuccess": { - "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.", - "location": "query", - "type": "boolean" - }, "router": { - "description": "Name of the Router resource to query for Nat Mapping information of VM endpoints.", + "description": "Name of the Router resource where Route Policy is defined.", "location": "path", "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", "required": true, "type": "string" } }, - "path": "projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo", + "path": "projects/{project}/regions/{region}/routers/{router}/deleteRoutePolicy", "response": { - "$ref": "VmEndpointNatMappingsList" + "$ref": "Operation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" + "https://www.googleapis.com/auth/compute" ] }, - "getRouterStatus": { - "description": "Retrieves runtime information of the specified router.", - "flatPath": "projects/{project}/regions/{region}/routers/{router}/getRouterStatus", + "get": { + "description": "Returns the specified Router resource.", + "flatPath": "projects/{project}/regions/{region}/routers/{router}", "httpMethod": "GET", - "id": "compute.routers.getRouterStatus", + "id": "compute.routers.get", + "parameterOrder": [ + "project", + "region", + "router" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "router": { + "description": "Name of the Router resource to return.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/routers/{router}", + "response": { + "$ref": "Router" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, + "getNatIpInfo": { + "description": "Retrieves runtime NAT IP information.", + "flatPath": "projects/{project}/regions/{region}/routers/{router}/getNatIpInfo", + "httpMethod": "GET", + "id": "compute.routers.getNatIpInfo", + "parameterOrder": [ + "project", + "region", + "router" + ], + "parameters": { + "natName": { + "description": "Name of the nat service to filter the NAT IP information. If it is omitted, all nats for this router will be returned. Name should conform to RFC1035.", + "location": "query", + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "router": { + "description": "Name of the Router resource to query for Nat IP information. The name should conform to RFC1035.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/routers/{router}/getNatIpInfo", + "response": { + "$ref": "NatIpInfoResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, + "getNatMappingInfo": { + "description": "Retrieves runtime Nat mapping information of VM endpoints.", + "flatPath": "projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo", + "httpMethod": "GET", + "id": "compute.routers.getNatMappingInfo", + "parameterOrder": [ + "project", + "region", + "router" + ], + "parameters": { + "filter": { + "description": "A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `\u003e`, `\u003c`, `\u003c=`, `\u003e=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq \"double quoted literal\"` `(fieldname1 eq literal) (fieldname2 ne \"literal\")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name \"instance\", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.", + "location": "query", + "type": "string" + }, + "maxResults": { + "default": "500", + "description": "The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)", + "format": "uint32", + "location": "query", + "minimum": "0", + "type": "integer" + }, + "natName": { + "description": "Name of the nat service to filter the Nat Mapping information. If it is omitted, all nats for this router will be returned. Name should conform to RFC1035.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", + "location": "query", + "type": "string" + }, + "pageToken": { + "description": "Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.", + "location": "query", + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.", + "location": "query", + "type": "boolean" + }, + "router": { + "description": "Name of the Router resource to query for Nat Mapping information of VM endpoints.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo", + "response": { + "$ref": "VmEndpointNatMappingsList" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, + "getRoutePolicy": { + "description": "Returns specified Route Policy", + "flatPath": "projects/{project}/regions/{region}/routers/{router}/getRoutePolicy", + "httpMethod": "GET", + "id": "compute.routers.getRoutePolicy", + "parameterOrder": [ + "project", + "region", + "router" + ], + "parameters": { + "policy": { + "description": "The Policy name for this request. Name must conform to RFC1035", + "location": "query", + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "router": { + "description": "Name of the Router resource to query for the route policy. The name should conform to RFC1035.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/routers/{router}/getRoutePolicy", + "response": { + "$ref": "RoutersGetRoutePolicyResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, + "getRouterStatus": { + "description": "Retrieves runtime information of the specified router.", + "flatPath": "projects/{project}/regions/{region}/routers/{router}/getRouterStatus", + "httpMethod": "GET", + "id": "compute.routers.getRouterStatus", "parameterOrder": [ "project", "region", @@ -32493,6 +32780,196 @@ "https://www.googleapis.com/auth/compute.readonly" ] }, + "listBgpRoutes": { + "description": "Retrieves a list of router bgp routes available to the specified project.", + "flatPath": "projects/{project}/regions/{region}/routers/{router}/listBgpRoutes", + "httpMethod": "GET", + "id": "compute.routers.listBgpRoutes", + "parameterOrder": [ + "project", + "region", + "router" + ], + "parameters": { + "addressFamily": { + "default": "UNSPECIFIED_IP_VERSION", + "description": "(Required) limit results to this address family (either IPv4 or IPv6)", + "enum": [ + "IPV4", + "IPV6", + "UNSPECIFIED_IP_VERSION" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "location": "query", + "type": "string" + }, + "destinationPrefix": { + "description": "Limit results to destinations that are subnets of this CIDR range", + "location": "query", + "type": "string" + }, + "filter": { + "description": "A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `\u003e`, `\u003c`, `\u003c=`, `\u003e=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq \"double quoted literal\"` `(fieldname1 eq literal) (fieldname2 ne \"literal\")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name \"instance\", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.", + "location": "query", + "type": "string" + }, + "maxResults": { + "default": "500", + "description": "The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)", + "format": "uint32", + "location": "query", + "minimum": "0", + "type": "integer" + }, + "orderBy": { + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", + "location": "query", + "type": "string" + }, + "pageToken": { + "description": "Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.", + "location": "query", + "type": "string" + }, + "peer": { + "description": "(Required) limit results to the BGP peer with the given name. Name should conform to RFC1035.", + "location": "query", + "type": "string" + }, + "policyApplied": { + "default": "true", + "description": "When true, the method returns post-policy routes. Otherwise, it returns pre-policy routes.", + "location": "query", + "type": "boolean" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.", + "location": "query", + "type": "boolean" + }, + "routeType": { + "default": "UNSPECIFIED_ROUTE_TYPE", + "description": "(Required) limit results to this type of route (either LEARNED or ADVERTISED)", + "enum": [ + "ADVERTISED", + "LEARNED", + "UNSPECIFIED_ROUTE_TYPE" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "location": "query", + "type": "string" + }, + "router": { + "description": "Name or id of the resource for this request. Name should conform to RFC1035.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/routers/{router}/listBgpRoutes", + "response": { + "$ref": "RoutersListBgpRoutes" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, + "listRoutePolicies": { + "description": "Retrieves a list of router route policy subresources available to the specified project.", + "flatPath": "projects/{project}/regions/{region}/routers/{router}/listRoutePolicies", + "httpMethod": "GET", + "id": "compute.routers.listRoutePolicies", + "parameterOrder": [ + "project", + "region", + "router" + ], + "parameters": { + "filter": { + "description": "A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `\u003e`, `\u003c`, `\u003c=`, `\u003e=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq \"double quoted literal\"` `(fieldname1 eq literal) (fieldname2 ne \"literal\")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name \"instance\", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.", + "location": "query", + "type": "string" + }, + "maxResults": { + "default": "500", + "description": "The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)", + "format": "uint32", + "location": "query", + "minimum": "0", + "type": "integer" + }, + "orderBy": { + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", + "location": "query", + "type": "string" + }, + "pageToken": { + "description": "Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.", + "location": "query", + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.", + "location": "query", + "type": "boolean" + }, + "router": { + "description": "Name or id of the resource for this request. Name should conform to RFC1035.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/routers/{router}/listRoutePolicies", + "response": { + "$ref": "RoutersListRoutePolicies" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, "patch": { "description": "Patches the specified Router resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.", "flatPath": "projects/{project}/regions/{region}/routers/{router}", @@ -32684,6 +33161,56 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/compute" ] + }, + "updateRoutePolicy": { + "description": "Updates or creates new Route Policy", + "flatPath": "projects/{project}/regions/{region}/routers/{router}/updateRoutePolicy", + "httpMethod": "POST", + "id": "compute.routers.updateRoutePolicy", + "parameterOrder": [ + "project", + "region", + "router" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "router": { + "description": "Name of the Router resource where Route Policy is defined.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/routers/{router}/updateRoutePolicy", + "request": { + "$ref": "RoutePolicy" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] } } }, @@ -41052,7 +41579,7 @@ } } }, - "revision": "20240305", + "revision": "20240312", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -45593,6 +46120,91 @@ }, "type": "object" }, + "BgpRoute": { + "id": "BgpRoute", + "properties": { + "asPaths": { + "description": "[Output only] AS-PATH for the route", + "items": { + "$ref": "BgpRouteAsPath" + }, + "type": "array" + }, + "communities": { + "description": "[Output only] BGP communities in human-readable A:B format.", + "items": { + "type": "string" + }, + "type": "array" + }, + "destination": { + "$ref": "BgpRouteNetworkLayerReachabilityInformation", + "description": "[Output only] Destination IP range for the route, in human-readable CIDR format" + }, + "med": { + "description": "[Output only] BGP multi-exit discriminator", + "format": "uint32", + "type": "integer" + }, + "origin": { + "description": "[Output only] BGP origin (EGP, IGP or INCOMPLETE)", + "enum": [ + "BGP_ORIGIN_EGP", + "BGP_ORIGIN_IGP", + "BGP_ORIGIN_INCOMPLETE" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "BgpRouteAsPath": { + "id": "BgpRouteAsPath", + "properties": { + "asns": { + "description": "[Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered.", + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array" + }, + "type": { + "description": "[Output only] Type of AS-PATH segment (SEQUENCE or SET)", + "enum": [ + "AS_PATH_TYPE_SEQUENCE", + "AS_PATH_TYPE_SET" + ], + "enumDescriptions": [ + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "BgpRouteNetworkLayerReachabilityInformation": { + "description": "Network Layer Reachability Information (NLRI) for a route.", + "id": "BgpRouteNetworkLayerReachabilityInformation", + "properties": { + "pathId": { + "description": "If the BGP session supports multiple paths (RFC 7911), the path identifier for this route.", + "format": "uint32", + "type": "integer" + }, + "prefix": { + "description": "Human readable CIDR notation for a prefix. E.g. 10.42.0.0/16.", + "type": "string" + } + }, + "type": "object" + }, "Binding": { "description": "Associates `members`, or principals, with a `role`.", "id": "Binding", @@ -53967,6 +54579,13 @@ "$ref": "InstanceParams", "description": "Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload." }, + "partnerMetadata": { + "additionalProperties": { + "$ref": "StructuredEntries" + }, + "description": "Partner Metadata assigned to the instance. A map from a subdomain (namespace) to entries map.", + "type": "object" + }, "postKeyRevocationActionType": { "description": "PostKeyRevocationActionType of the instance.", "enum": [ @@ -55352,7 +55971,7 @@ "additionalProperties": { "type": "string" }, - "description": "Resource manager tags to be bound to the instance group manager. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/123`, and values are in the format `tagValues/456`. The field is allowed for INSERT only.", + "description": "Resource manager tags to bind to the managed instance group. The tags are key-value pairs. Keys must be in the format tagKeys/123 and values in the format tagValues/456. For more information, see Manage tags for resources.", "type": "object" } }, @@ -57341,6 +57960,13 @@ "$ref": "NetworkPerformanceConfig", "description": "Note that for MachineImage, this is not supported yet." }, + "partnerMetadata": { + "additionalProperties": { + "$ref": "StructuredEntries" + }, + "description": "Partner Metadata assigned to the instance properties. A map from a subdomain (namespace) to entries map.", + "type": "object" + }, "postKeyRevocationActionType": { "description": "PostKeyRevocationActionType of the instance.", "enum": [ @@ -58103,7 +58729,7 @@ "type": "string" }, "type": { - "description": "[Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL.", + "description": "[Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL.", "enum": [ "HIERARCHY", "NETWORK", @@ -69166,6 +69792,25 @@ }, "type": "object" }, + "PartnerMetadata": { + "description": "Model definition of partner_metadata field. To be used in dedicated Partner Metadata methods and to be inlined in the Instance and InstanceTemplate resources.", + "id": "PartnerMetadata", + "properties": { + "fingerprint": { + "description": "Instance-level hash to be used for optimistic locking.", + "format": "byte", + "type": "string" + }, + "partnerMetadata": { + "additionalProperties": { + "$ref": "StructuredEntries" + }, + "description": "Partner Metadata assigned to the instance. A map from a subdomain to entries map. Subdomain name must be compliant with RFC1035 definition. The total size of all keys and values must be less than 2MB. Subdomain 'metadata.compute.googleapis.com' is reserverd for instance's metadata.", + "type": "object" + } + }, + "type": "object" + }, "PathMatcher": { "description": "A matcher for the path portion of the URL. The BackendService from the longest-matched rule will serve the URL. If no rule was matched, the default service is used.", "id": "PathMatcher", @@ -74643,6 +75288,61 @@ }, "type": "object" }, + "RoutePolicy": { + "id": "RoutePolicy", + "properties": { + "fingerprint": { + "description": "A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of the Route Policy used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update Route Policy. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make a getRoutePolicy() request to retrieve a Route Policy.", + "format": "byte", + "type": "string" + }, + "name": { + "description": "Route Policy name, which must be a resource ID segment and unique within all the router's Route Policies. Name should conform to RFC1035.", + "type": "string" + }, + "terms": { + "description": "List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later.", + "items": { + "$ref": "RoutePolicyPolicyTerm" + }, + "type": "array" + }, + "type": { + "enum": [ + "ROUTE_POLICY_TYPE_EXPORT", + "ROUTE_POLICY_TYPE_IMPORT" + ], + "enumDescriptions": [ + "The Route Policy is an Export Policy.", + "The Route Policy is an Import Policy." + ], + "type": "string" + } + }, + "type": "object" + }, + "RoutePolicyPolicyTerm": { + "id": "RoutePolicyPolicyTerm", + "properties": { + "actions": { + "description": "CEL expressions to evaluate to modify a route when this term matches.", + "items": { + "$ref": "Expr" + }, + "type": "array" + }, + "match": { + "$ref": "Expr", + "description": "CEL expression evaluated against a route to determine if this term applies. When not set, the term applies to all routes." + }, + "priority": { + "description": "The evaluation priority for this term, which must be between 0 (inclusive) and 2^31 (exclusive), and unique within the list.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "Router": { "description": "Represents a Cloud Router resource. For more information about Cloud Router, read the Cloud Router overview.", "id": "Router", @@ -75927,6 +76627,337 @@ }, "type": "object" }, + "RoutersGetRoutePolicyResponse": { + "id": "RoutersGetRoutePolicyResponse", + "properties": { + "resource": { + "$ref": "RoutePolicy" + } + }, + "type": "object" + }, + "RoutersListBgpRoutes": { + "id": "RoutersListBgpRoutes", + "properties": { + "etag": { + "type": "string" + }, + "id": { + "description": "[Output Only] The unique identifier for the resource. This identifier is defined by the server.", + "type": "string" + }, + "kind": { + "default": "compute#routersListBgpRoutes", + "description": "[Output Only] Type of resource. Always compute#routersListBgpRoutes for lists of bgp routes.", + "type": "string" + }, + "nextPageToken": { + "description": "[Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.", + "type": "string" + }, + "result": { + "description": "[Output Only] A list of bgp routes.", + "items": { + "$ref": "BgpRoute" + }, + "type": "array" + }, + "selfLink": { + "description": "[Output Only] Server-defined URL for this resource.", + "type": "string" + }, + "unreachables": { + "description": "[Output Only] Unreachable resources.", + "items": { + "type": "string" + }, + "type": "array" + }, + "warning": { + "description": "[Output Only] Informational warning message.", + "properties": { + "code": { + "description": "[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.", + "enum": [ + "CLEANUP_FAILED", + "DEPRECATED_RESOURCE_USED", + "DEPRECATED_TYPE_USED", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "EXPERIMENTAL_TYPE_USED", + "EXTERNAL_API_WARNING", + "FIELD_VALUE_OVERRIDEN", + "INJECTED_KERNELS_DEPRECATED", + "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB", + "LARGE_DEPLOYMENT_WARNING", + "LIST_OVERHEAD_QUOTA_EXCEED", + "MISSING_TYPE_DEPENDENCY", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_NOT_RUNNING", + "NOT_CRITICAL_ERROR", + "NO_RESULTS_ON_PAGE", + "PARTIAL_SUCCESS", + "REQUIRED_TOS_AGREEMENT", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "RESOURCE_NOT_DELETED", + "SCHEMA_VALIDATION_IGNORED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "UNDECLARED_PROPERTIES", + "UNREACHABLE" + ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], + "enumDescriptions": [ + "Warning about failed cleanup of transient changes made by a failed operation.", + "A link to a deprecated resource was created.", + "When deploying and at least one of the resources has a type marked as deprecated", + "The user created a boot disk that is larger than image size.", + "When deploying and at least one of the resources has a type marked as experimental", + "Warning that is present in an external api call", + "Warning that value of a field has been overridden. Deprecated unused field.", + "The operation involved use of an injected kernel, which is deprecated.", + "A WEIGHTED_MAGLEV backend service is associated with a health check that is not of type HTTP/HTTPS/HTTP2.", + "When deploying a deployment with a exceedingly large number of resources", + "Resource can't be retrieved due to list overhead quota exceed which captures the amount of resources filtered out by user-defined list filter.", + "A resource depends on a missing type", + "The route's nextHopIp address is not assigned to an instance on the network.", + "The route's next hop instance cannot ip forward.", + "The route's nextHopInstance URL refers to an instance that does not have an ipv6 interface on the same network as the route.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the same network as the route.", + "The route's next hop instance does not have a status of RUNNING.", + "Error which is not critical. We decided to continue the process despite the mentioned error.", + "No results are present on a particular list page.", + "Success is reported, but some results may be missing due to errors", + "The user attempted to use a resource that requires a TOS they have not accepted.", + "Warning that a resource is in use.", + "One or more of the resources set to auto-delete could not be deleted because they were in use.", + "When a resource schema validation is ignored.", + "Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.", + "When undeclared properties in the schema are present", + "A given scope cannot be reached." + ], + "type": "string" + }, + "data": { + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", + "items": { + "properties": { + "key": { + "description": "[Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).", + "type": "string" + }, + "value": { + "description": "[Output Only] A warning data value corresponding to the key.", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "[Output Only] A human-readable description of the warning code.", + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "RoutersListRoutePolicies": { + "id": "RoutersListRoutePolicies", + "properties": { + "etag": { + "type": "string" + }, + "id": { + "description": "[Output Only] The unique identifier for the resource. This identifier is defined by the server.", + "type": "string" + }, + "kind": { + "default": "compute#routersListRoutePolicies", + "description": "[Output Only] Type of resource. Always compute#routersListRoutePolicies for lists of route policies.", + "type": "string" + }, + "nextPageToken": { + "description": "[Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.", + "type": "string" + }, + "result": { + "description": "[Output Only] A list of route policies.", + "items": { + "$ref": "RoutePolicy" + }, + "type": "array" + }, + "selfLink": { + "description": "[Output Only] Server-defined URL for this resource.", + "type": "string" + }, + "unreachables": { + "description": "[Output Only] Unreachable resources.", + "items": { + "type": "string" + }, + "type": "array" + }, + "warning": { + "description": "[Output Only] Informational warning message.", + "properties": { + "code": { + "description": "[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.", + "enum": [ + "CLEANUP_FAILED", + "DEPRECATED_RESOURCE_USED", + "DEPRECATED_TYPE_USED", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "EXPERIMENTAL_TYPE_USED", + "EXTERNAL_API_WARNING", + "FIELD_VALUE_OVERRIDEN", + "INJECTED_KERNELS_DEPRECATED", + "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB", + "LARGE_DEPLOYMENT_WARNING", + "LIST_OVERHEAD_QUOTA_EXCEED", + "MISSING_TYPE_DEPENDENCY", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_NOT_RUNNING", + "NOT_CRITICAL_ERROR", + "NO_RESULTS_ON_PAGE", + "PARTIAL_SUCCESS", + "REQUIRED_TOS_AGREEMENT", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "RESOURCE_NOT_DELETED", + "SCHEMA_VALIDATION_IGNORED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "UNDECLARED_PROPERTIES", + "UNREACHABLE" + ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], + "enumDescriptions": [ + "Warning about failed cleanup of transient changes made by a failed operation.", + "A link to a deprecated resource was created.", + "When deploying and at least one of the resources has a type marked as deprecated", + "The user created a boot disk that is larger than image size.", + "When deploying and at least one of the resources has a type marked as experimental", + "Warning that is present in an external api call", + "Warning that value of a field has been overridden. Deprecated unused field.", + "The operation involved use of an injected kernel, which is deprecated.", + "A WEIGHTED_MAGLEV backend service is associated with a health check that is not of type HTTP/HTTPS/HTTP2.", + "When deploying a deployment with a exceedingly large number of resources", + "Resource can't be retrieved due to list overhead quota exceed which captures the amount of resources filtered out by user-defined list filter.", + "A resource depends on a missing type", + "The route's nextHopIp address is not assigned to an instance on the network.", + "The route's next hop instance cannot ip forward.", + "The route's nextHopInstance URL refers to an instance that does not have an ipv6 interface on the same network as the route.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the same network as the route.", + "The route's next hop instance does not have a status of RUNNING.", + "Error which is not critical. We decided to continue the process despite the mentioned error.", + "No results are present on a particular list page.", + "Success is reported, but some results may be missing due to errors", + "The user attempted to use a resource that requires a TOS they have not accepted.", + "Warning that a resource is in use.", + "One or more of the resources set to auto-delete could not be deleted because they were in use.", + "When a resource schema validation is ignored.", + "Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.", + "When undeclared properties in the schema are present", + "A given scope cannot be reached." + ], + "type": "string" + }, + "data": { + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", + "items": { + "properties": { + "key": { + "description": "[Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).", + "type": "string" + }, + "value": { + "description": "[Output Only] A warning data value corresponding to the key.", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "[Output Only] A human-readable description of the warning code.", + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, "RoutersPreviewResponse": { "id": "RoutersPreviewResponse", "properties": { @@ -82343,6 +83374,19 @@ }, "type": "object" }, + "StructuredEntries": { + "id": "StructuredEntries", + "properties": { + "entries": { + "additionalProperties": { + "type": "any" + }, + "description": "Map of a partner metadata that belong to the same subdomain. It accepts any value including google.protobuf.Struct.", + "type": "object" + } + }, + "type": "object" + }, "Subnetwork": { "description": "Represents a Subnetwork resource. A subnetwork (also known as a subnet) is a logical partition of a Virtual Private Cloud network with one primary IP range and zero or more secondary IP ranges. For more information, read Virtual Private Cloud (VPC) Network.", "id": "Subnetwork", diff --git a/compute/v0.beta/compute-gen.go b/compute/v0.beta/compute-gen.go index a82e287d3ca..e218007c474 100644 --- a/compute/v0.beta/compute-gen.go +++ b/compute/v0.beta/compute-gen.go @@ -8093,6 +8093,120 @@ func (s *BfdStatusPacketCounts) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type BgpRoute struct { + // AsPaths: [Output only] AS-PATH for the route + AsPaths []*BgpRouteAsPath `json:"asPaths,omitempty"` + + // Communities: [Output only] BGP communities in human-readable A:B + // format. + Communities []string `json:"communities,omitempty"` + + // Destination: [Output only] Destination IP range for the route, in + // human-readable CIDR format + Destination *BgpRouteNetworkLayerReachabilityInformation `json:"destination,omitempty"` + + // Med: [Output only] BGP multi-exit discriminator + Med int64 `json:"med,omitempty"` + + // Origin: [Output only] BGP origin (EGP, IGP or INCOMPLETE) + // + // Possible values: + // "BGP_ORIGIN_EGP" + // "BGP_ORIGIN_IGP" + // "BGP_ORIGIN_INCOMPLETE" + Origin string `json:"origin,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AsPaths") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AsPaths") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *BgpRoute) MarshalJSON() ([]byte, error) { + type NoMethod BgpRoute + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type BgpRouteAsPath struct { + // Asns: [Output only] ASNs in the path segment. When type is SEQUENCE, + // these are ordered. + Asns []int64 `json:"asns,omitempty"` + + // Type: [Output only] Type of AS-PATH segment (SEQUENCE or SET) + // + // Possible values: + // "AS_PATH_TYPE_SEQUENCE" + // "AS_PATH_TYPE_SET" + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Asns") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Asns") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *BgpRouteAsPath) MarshalJSON() ([]byte, error) { + type NoMethod BgpRouteAsPath + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// BgpRouteNetworkLayerReachabilityInformation: Network Layer +// Reachability Information (NLRI) for a route. +type BgpRouteNetworkLayerReachabilityInformation struct { + // PathId: If the BGP session supports multiple paths (RFC 7911), the + // path identifier for this route. + PathId int64 `json:"pathId,omitempty"` + + // Prefix: Human readable CIDR notation for a prefix. E.g. 10.42.0.0/16. + Prefix string `json:"prefix,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PathId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PathId") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *BgpRouteNetworkLayerReachabilityInformation) MarshalJSON() ([]byte, error) { + type NoMethod BgpRouteNetworkLayerReachabilityInformation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Binding: Associates `members`, or principals, with a `role`. type Binding struct { // BindingId: This is deprecated and has no effect. Do not use. @@ -20322,6 +20436,10 @@ type Instance struct { // request, but not persisted as part of resource payload. Params *InstanceParams `json:"params,omitempty"` + // PartnerMetadata: Partner Metadata assigned to the instance. A map + // from a subdomain (namespace) to entries map. + PartnerMetadata map[string]StructuredEntries `json:"partnerMetadata,omitempty"` + // PostKeyRevocationActionType: PostKeyRevocationActionType of the // instance. // @@ -22113,11 +22231,10 @@ func (s *InstanceGroupManagerListWarningData) MarshalJSON() ([]byte, error) { // InstanceGroupManagerParams: Input only additional params for instance // group manager creation. type InstanceGroupManagerParams struct { - // ResourceManagerTags: Resource manager tags to be bound to the - // instance group manager. Tag keys and values have the same definition - // as resource manager tags. Keys must be in the format `tagKeys/123`, - // and values are in the format `tagValues/456`. The field is allowed - // for INSERT only. + // ResourceManagerTags: Resource manager tags to bind to the managed + // instance group. The tags are key-value pairs. Keys must be in the + // format tagKeys/123 and values in the format tagValues/456. For more + // information, see Manage tags for resources. ResourceManagerTags map[string]string `json:"resourceManagerTags,omitempty"` // ForceSendFields is a list of field names (e.g. "ResourceManagerTags") @@ -25296,6 +25413,10 @@ type InstanceProperties struct { // supported yet. NetworkPerformanceConfig *NetworkPerformanceConfig `json:"networkPerformanceConfig,omitempty"` + // PartnerMetadata: Partner Metadata assigned to the instance + // properties. A map from a subdomain (namespace) to entries map. + PartnerMetadata map[string]StructuredEntries `json:"partnerMetadata,omitempty"` + // PostKeyRevocationActionType: PostKeyRevocationActionType of the // instance. // @@ -26347,7 +26468,7 @@ type InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy struct { ShortName string `json:"shortName,omitempty"` // Type: [Output Only] The type of the firewall policy. Can be one of - // HIERARCHY, NETWORK, NETWORK_REGIONAL. + // HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. // // Possible values: // "HIERARCHY" @@ -41603,6 +41724,47 @@ func (s *PacketMirroringsScopedListWarningData) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// PartnerMetadata: Model definition of partner_metadata field. To be +// used in dedicated Partner Metadata methods and to be inlined in the +// Instance and InstanceTemplate resources. +type PartnerMetadata struct { + // Fingerprint: Instance-level hash to be used for optimistic locking. + Fingerprint string `json:"fingerprint,omitempty"` + + // PartnerMetadata: Partner Metadata assigned to the instance. A map + // from a subdomain to entries map. Subdomain name must be compliant + // with RFC1035 definition. The total size of all keys and values must + // be less than 2MB. Subdomain 'metadata.compute.googleapis.com' is + // reserverd for instance's metadata. + PartnerMetadata map[string]StructuredEntries `json:"partnerMetadata,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Fingerprint") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Fingerprint") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *PartnerMetadata) MarshalJSON() ([]byte, error) { + type NoMethod PartnerMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // PathMatcher: A matcher for the path portion of the URL. The // BackendService from the longest-matched rule will serve the URL. If // no rule was matched, the default service is used. @@ -49257,6 +49419,91 @@ func (s *RouteListWarningData) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type RoutePolicy struct { + // Fingerprint: A fingerprint for the Route Policy being applied to this + // Router, which is essentially a hash of the Route Policy used for + // optimistic locking. The fingerprint is initially generated by Compute + // Engine and changes after every request to modify or update Route + // Policy. You must always provide an up-to-date fingerprint hash in + // order to update or change labels. To see the latest fingerprint, make + // a getRoutePolicy() request to retrieve a Route Policy. + Fingerprint string `json:"fingerprint,omitempty"` + + // Name: Route Policy name, which must be a resource ID segment and + // unique within all the router's Route Policies. Name should conform to + // RFC1035. + Name string `json:"name,omitempty"` + + // Terms: List of terms (the order in the list is not important, they + // are evaluated in order of priority). Order of policies is not + // retained and might change when getting policy later. + Terms []*RoutePolicyPolicyTerm `json:"terms,omitempty"` + + // Possible values: + // "ROUTE_POLICY_TYPE_EXPORT" - The Route Policy is an Export Policy. + // "ROUTE_POLICY_TYPE_IMPORT" - The Route Policy is an Import Policy. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Fingerprint") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Fingerprint") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RoutePolicy) MarshalJSON() ([]byte, error) { + type NoMethod RoutePolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type RoutePolicyPolicyTerm struct { + // Actions: CEL expressions to evaluate to modify a route when this term + // matches. + Actions []*Expr `json:"actions,omitempty"` + + // Match: CEL expression evaluated against a route to determine if this + // term applies. When not set, the term applies to all routes. + Match *Expr `json:"match,omitempty"` + + // Priority: The evaluation priority for this term, which must be + // between 0 (inclusive) and 2^31 (exclusive), and unique within the + // list. + Priority int64 `json:"priority,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Actions") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Actions") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RoutePolicyPolicyTerm) MarshalJSON() ([]byte, error) { + type NoMethod RoutePolicyPolicyTerm + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Router: Represents a Cloud Router resource. For more information // about Cloud Router, read the Cloud Router overview. type Router struct { @@ -50881,6 +51128,430 @@ func (s *RouterStatusResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type RoutersGetRoutePolicyResponse struct { + Resource *RoutePolicy `json:"resource,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Resource") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Resource") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RoutersGetRoutePolicyResponse) MarshalJSON() ([]byte, error) { + type NoMethod RoutersGetRoutePolicyResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type RoutersListBgpRoutes struct { + Etag string `json:"etag,omitempty"` + + // Id: [Output Only] The unique identifier for the resource. This + // identifier is defined by the server. + Id string `json:"id,omitempty"` + + // Kind: [Output Only] Type of resource. Always + // compute#routersListBgpRoutes for lists of bgp routes. + Kind string `json:"kind,omitempty"` + + // NextPageToken: [Output Only] This token allows you to get the next + // page of results for list requests. If the number of results is larger + // than maxResults, use the nextPageToken as a value for the query + // parameter pageToken in the next list request. Subsequent list + // requests will have their own nextPageToken to continue paging through + // the results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Result: [Output Only] A list of bgp routes. + Result []*BgpRoute `json:"result,omitempty"` + + // SelfLink: [Output Only] Server-defined URL for this resource. + SelfLink string `json:"selfLink,omitempty"` + + // Unreachables: [Output Only] Unreachable resources. + Unreachables []string `json:"unreachables,omitempty"` + + // Warning: [Output Only] Informational warning message. + Warning *RoutersListBgpRoutesWarning `json:"warning,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Etag") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Etag") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RoutersListBgpRoutes) MarshalJSON() ([]byte, error) { + type NoMethod RoutersListBgpRoutes + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RoutersListBgpRoutesWarning: [Output Only] Informational warning +// message. +type RoutersListBgpRoutesWarning struct { + // Code: [Output Only] A warning code, if applicable. For example, + // Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in + // the response. + // + // Possible values: + // "CLEANUP_FAILED" - Warning about failed cleanup of transient + // changes made by a failed operation. + // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was + // created. + // "DEPRECATED_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as deprecated + // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk + // that is larger than image size. + // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as experimental + // "EXTERNAL_API_WARNING" - Warning that is present in an external api + // call + // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been + // overridden. Deprecated unused field. + // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an + // injected kernel, which is deprecated. + // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV + // backend service is associated with a health check that is not of type + // HTTP/HTTPS/HTTP2. + // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a + // exceedingly large number of resources + // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to + // list overhead quota exceed which captures the amount of resources + // filtered out by user-defined list filter. + // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type + // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is + // not assigned to an instance on the network. + // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot + // ip forward. + // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's + // nextHopInstance URL refers to an instance that does not have an ipv6 + // interface on the same network as the route. + // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL + // refers to an instance that does not exist. + // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance + // URL refers to an instance that is not on the same network as the + // route. + // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not + // have a status of RUNNING. + // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to + // continue the process despite the mentioned error. + // "NO_RESULTS_ON_PAGE" - No results are present on a particular list + // page. + // "PARTIAL_SUCCESS" - Success is reported, but some results may be + // missing due to errors + // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource + // that requires a TOS they have not accepted. + // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a + // resource is in use. + // "RESOURCE_NOT_DELETED" - One or more of the resources set to + // auto-delete could not be deleted because they were in use. + // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is + // ignored. + // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in + // instance group manager is valid as such, but its application does not + // make a lot of sense, because it allows only single instance in + // instance group. + // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema + // are present + // "UNREACHABLE" - A given scope cannot be reached. + Code string `json:"code,omitempty"` + + // Data: [Output Only] Metadata about this warning in key: value format. + // For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" + // } + Data []*RoutersListBgpRoutesWarningData `json:"data,omitempty"` + + // Message: [Output Only] A human-readable description of the warning + // code. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RoutersListBgpRoutesWarning) MarshalJSON() ([]byte, error) { + type NoMethod RoutersListBgpRoutesWarning + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type RoutersListBgpRoutesWarningData struct { + // Key: [Output Only] A key that provides more detail on the warning + // being returned. For example, for warnings where there are no results + // in a list request for a particular zone, this key might be scope and + // the key value might be the zone name. Other examples might be a key + // indicating a deprecated resource and a suggested replacement, or a + // warning about invalid network settings (for example, if an instance + // attempts to perform IP forwarding but is not enabled for IP + // forwarding). + Key string `json:"key,omitempty"` + + // Value: [Output Only] A warning data value corresponding to the key. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Key") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Key") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RoutersListBgpRoutesWarningData) MarshalJSON() ([]byte, error) { + type NoMethod RoutersListBgpRoutesWarningData + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type RoutersListRoutePolicies struct { + Etag string `json:"etag,omitempty"` + + // Id: [Output Only] The unique identifier for the resource. This + // identifier is defined by the server. + Id string `json:"id,omitempty"` + + // Kind: [Output Only] Type of resource. Always + // compute#routersListRoutePolicies for lists of route policies. + Kind string `json:"kind,omitempty"` + + // NextPageToken: [Output Only] This token allows you to get the next + // page of results for list requests. If the number of results is larger + // than maxResults, use the nextPageToken as a value for the query + // parameter pageToken in the next list request. Subsequent list + // requests will have their own nextPageToken to continue paging through + // the results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Result: [Output Only] A list of route policies. + Result []*RoutePolicy `json:"result,omitempty"` + + // SelfLink: [Output Only] Server-defined URL for this resource. + SelfLink string `json:"selfLink,omitempty"` + + // Unreachables: [Output Only] Unreachable resources. + Unreachables []string `json:"unreachables,omitempty"` + + // Warning: [Output Only] Informational warning message. + Warning *RoutersListRoutePoliciesWarning `json:"warning,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Etag") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Etag") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RoutersListRoutePolicies) MarshalJSON() ([]byte, error) { + type NoMethod RoutersListRoutePolicies + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RoutersListRoutePoliciesWarning: [Output Only] Informational warning +// message. +type RoutersListRoutePoliciesWarning struct { + // Code: [Output Only] A warning code, if applicable. For example, + // Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in + // the response. + // + // Possible values: + // "CLEANUP_FAILED" - Warning about failed cleanup of transient + // changes made by a failed operation. + // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was + // created. + // "DEPRECATED_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as deprecated + // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk + // that is larger than image size. + // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as experimental + // "EXTERNAL_API_WARNING" - Warning that is present in an external api + // call + // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been + // overridden. Deprecated unused field. + // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an + // injected kernel, which is deprecated. + // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV + // backend service is associated with a health check that is not of type + // HTTP/HTTPS/HTTP2. + // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a + // exceedingly large number of resources + // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to + // list overhead quota exceed which captures the amount of resources + // filtered out by user-defined list filter. + // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type + // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is + // not assigned to an instance on the network. + // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot + // ip forward. + // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's + // nextHopInstance URL refers to an instance that does not have an ipv6 + // interface on the same network as the route. + // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL + // refers to an instance that does not exist. + // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance + // URL refers to an instance that is not on the same network as the + // route. + // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not + // have a status of RUNNING. + // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to + // continue the process despite the mentioned error. + // "NO_RESULTS_ON_PAGE" - No results are present on a particular list + // page. + // "PARTIAL_SUCCESS" - Success is reported, but some results may be + // missing due to errors + // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource + // that requires a TOS they have not accepted. + // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a + // resource is in use. + // "RESOURCE_NOT_DELETED" - One or more of the resources set to + // auto-delete could not be deleted because they were in use. + // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is + // ignored. + // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in + // instance group manager is valid as such, but its application does not + // make a lot of sense, because it allows only single instance in + // instance group. + // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema + // are present + // "UNREACHABLE" - A given scope cannot be reached. + Code string `json:"code,omitempty"` + + // Data: [Output Only] Metadata about this warning in key: value format. + // For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" + // } + Data []*RoutersListRoutePoliciesWarningData `json:"data,omitempty"` + + // Message: [Output Only] A human-readable description of the warning + // code. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RoutersListRoutePoliciesWarning) MarshalJSON() ([]byte, error) { + type NoMethod RoutersListRoutePoliciesWarning + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type RoutersListRoutePoliciesWarningData struct { + // Key: [Output Only] A key that provides more detail on the warning + // being returned. For example, for warnings where there are no results + // in a list request for a particular zone, this key might be scope and + // the key value might be the zone name. Other examples might be a key + // indicating a deprecated resource and a suggested replacement, or a + // warning about invalid network settings (for example, if an instance + // attempts to perform IP forwarding but is not enabled for IP + // forwarding). + Key string `json:"key,omitempty"` + + // Value: [Output Only] A warning data value corresponding to the key. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Key") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Key") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RoutersListRoutePoliciesWarningData) MarshalJSON() ([]byte, error) { + type NoMethod RoutersListRoutePoliciesWarningData + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type RoutersPreviewResponse struct { // Resource: Preview of given router. Resource *Router `json:"resource,omitempty"` @@ -59622,6 +60293,34 @@ func (s *StoragePoolsScopedListWarningData) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type StructuredEntries struct { + // Entries: Map of a partner metadata that belong to the same subdomain. + // It accepts any value including google.protobuf.Struct. + Entries googleapi.RawMessage `json:"entries,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Entries") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Entries") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *StructuredEntries) MarshalJSON() ([]byte, error) { + type NoMethod StructuredEntries + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Subnetwork: Represents a Subnetwork resource. A subnetwork (also // known as a subnet) is a logical partition of a Virtual Private Cloud // network with one primary IP range and zero or more secondary IP @@ -115781,6 +116480,21 @@ func (r *InstanceTemplatesService) Get(project string, instanceTemplate string) return c } +// View sets the optional parameter "view": View of the instance +// template. +// +// Possible values: +// +// "BASIC" - Include everything except Partner Metadata. +// "FULL" - Include everything. +// "INSTANCE_VIEW_UNSPECIFIED" - The default / unset value. The API +// +// will default to the BASIC view. +func (c *InstanceTemplatesGetCall) View(view string) *InstanceTemplatesGetCall { + c.urlParams_.Set("view", view) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -115903,6 +116617,21 @@ func (c *InstanceTemplatesGetCall) Do(opts ...googleapi.CallOption) (*InstanceTe // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", // "required": true, // "type": "string" + // }, + // "view": { + // "description": "View of the instance template.", + // "enum": [ + // "BASIC", + // "FULL", + // "INSTANCE_VIEW_UNSPECIFIED" + // ], + // "enumDescriptions": [ + // "Include everything except Partner Metadata.", + // "Include everything.", + // "The default / unset value. The API will default to the BASIC view." + // ], + // "location": "query", + // "type": "string" // } // }, // "path": "projects/{project}/global/instanceTemplates/{instanceTemplate}", @@ -116365,6 +117094,21 @@ func (c *InstanceTemplatesListCall) ReturnPartialSuccess(returnPartialSuccess bo return c } +// View sets the optional parameter "view": View of the instance +// template. +// +// Possible values: +// +// "BASIC" - Include everything except Partner Metadata. +// "FULL" - Include everything. +// "INSTANCE_VIEW_UNSPECIFIED" - The default / unset value. The API +// +// will default to the BASIC view. +func (c *InstanceTemplatesListCall) View(view string) *InstanceTemplatesListCall { + c.urlParams_.Set("view", view) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -116506,6 +117250,21 @@ func (c *InstanceTemplatesListCall) Do(opts ...googleapi.CallOption) (*InstanceT // "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.", // "location": "query", // "type": "boolean" + // }, + // "view": { + // "description": "View of the instance template.", + // "enum": [ + // "BASIC", + // "FULL", + // "INSTANCE_VIEW_UNSPECIFIED" + // ], + // "enumDescriptions": [ + // "Include everything except Partner Metadata.", + // "Include everything.", + // "The default / unset value. The API will default to the BASIC view." + // ], + // "location": "query", + // "type": "string" // } // }, // "path": "projects/{project}/global/instanceTemplates", @@ -118536,6 +119295,20 @@ func (r *InstancesService) Get(project string, zone string, instance string) *In return c } +// View sets the optional parameter "view": View of the instance. +// +// Possible values: +// +// "BASIC" - Include everything except Partner Metadata. +// "FULL" - Include everything. +// "INSTANCE_VIEW_UNSPECIFIED" - The default / unset value. The API +// +// will default to the BASIC view. +func (c *InstancesGetCall) View(view string) *InstancesGetCall { + c.urlParams_.Set("view", view) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -118661,6 +119434,21 @@ func (c *InstancesGetCall) Do(opts ...googleapi.CallOption) (*Instance, error) { // "required": true, // "type": "string" // }, + // "view": { + // "description": "View of the instance.", + // "enum": [ + // "BASIC", + // "FULL", + // "INSTANCE_VIEW_UNSPECIFIED" + // ], + // "enumDescriptions": [ + // "Include everything except Partner Metadata.", + // "Include everything.", + // "The default / unset value. The API will default to the BASIC view." + // ], + // "location": "query", + // "type": "string" + // }, // "zone": { // "description": "The name of the zone for this request.", // "location": "path", @@ -119248,6 +120036,191 @@ func (c *InstancesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, e } +// method id "compute.instances.getPartnerMetadata": + +type InstancesGetPartnerMetadataCall struct { + s *Service + project string + zone string + instance string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetPartnerMetadata: Gets partner metadata of the specified instance +// and namespaces. +// +// - instance: Name of the instance scoping this request. +// - project: Project ID for this request. +// - zone: The name of the zone for this request. +func (r *InstancesService) GetPartnerMetadata(project string, zone string, instance string) *InstancesGetPartnerMetadataCall { + c := &InstancesGetPartnerMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.zone = zone + c.instance = instance + return c +} + +// Namespaces sets the optional parameter "namespaces": Comma separated +// partner metadata namespaces. +func (c *InstancesGetPartnerMetadataCall) Namespaces(namespaces string) *InstancesGetPartnerMetadataCall { + c.urlParams_.Set("namespaces", namespaces) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *InstancesGetPartnerMetadataCall) Fields(s ...googleapi.Field) *InstancesGetPartnerMetadataCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *InstancesGetPartnerMetadataCall) IfNoneMatch(entityTag string) *InstancesGetPartnerMetadataCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *InstancesGetPartnerMetadataCall) Context(ctx context.Context) *InstancesGetPartnerMetadataCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *InstancesGetPartnerMetadataCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *InstancesGetPartnerMetadataCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/instances/{instance}/getPartnerMetadata") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "zone": c.zone, + "instance": c.instance, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.instances.getPartnerMetadata" call. +// Exactly one of *PartnerMetadata or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *PartnerMetadata.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *InstancesGetPartnerMetadataCall) Do(opts ...googleapi.CallOption) (*PartnerMetadata, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &PartnerMetadata{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets partner metadata of the specified instance and namespaces.", + // "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/getPartnerMetadata", + // "httpMethod": "GET", + // "id": "compute.instances.getPartnerMetadata", + // "parameterOrder": [ + // "project", + // "zone", + // "instance" + // ], + // "parameters": { + // "instance": { + // "description": "Name of the instance scoping this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + // "required": true, + // "type": "string" + // }, + // "namespaces": { + // "description": "Comma separated partner metadata namespaces.", + // "location": "query", + // "type": "string" + // }, + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "zone": { + // "description": "The name of the zone for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/zones/{zone}/instances/{instance}/getPartnerMetadata", + // "response": { + // "$ref": "PartnerMetadata" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" + // ] + // } + +} + // method id "compute.instances.getScreenshot": type InstancesGetScreenshotCall struct { @@ -120300,6 +121273,20 @@ func (c *InstancesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *Ins return c } +// View sets the optional parameter "view": View of the instance. +// +// Possible values: +// +// "BASIC" - Include everything except Partner Metadata. +// "FULL" - Include everything. +// "INSTANCE_VIEW_UNSPECIFIED" - The default / unset value. The API +// +// will default to the BASIC view. +func (c *InstancesListCall) View(view string) *InstancesListCall { + c.urlParams_.Set("view", view) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -120444,6 +121431,21 @@ func (c *InstancesListCall) Do(opts ...googleapi.CallOption) (*InstanceList, err // "location": "query", // "type": "boolean" // }, + // "view": { + // "description": "View of the instance.", + // "enum": [ + // "BASIC", + // "FULL", + // "INSTANCE_VIEW_UNSPECIFIED" + // ], + // "enumDescriptions": [ + // "Include everything except Partner Metadata.", + // "Include everything.", + // "The default / unset value. The API will default to the BASIC view." + // ], + // "location": "query", + // "type": "string" + // }, // "zone": { // "description": "The name of the zone for this request.", // "location": "path", @@ -120796,28 +121798,31 @@ func (c *InstancesListReferrersCall) Pages(ctx context.Context, f func(*Instance } } -// method id "compute.instances.performMaintenance": +// method id "compute.instances.patchPartnerMetadata": -type InstancesPerformMaintenanceCall struct { - s *Service - project string - zone string - instance string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type InstancesPatchPartnerMetadataCall struct { + s *Service + project string + zone string + instance string + partnermetadata *PartnerMetadata + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// PerformMaintenance: Perform a manual maintenance on the instance. +// PatchPartnerMetadata: Patches partner metadata of the specified +// instance. // // - instance: Name of the instance scoping this request. // - project: Project ID for this request. // - zone: The name of the zone for this request. -func (r *InstancesService) PerformMaintenance(project string, zone string, instance string) *InstancesPerformMaintenanceCall { - c := &InstancesPerformMaintenanceCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *InstancesService) PatchPartnerMetadata(project string, zone string, instance string, partnermetadata *PartnerMetadata) *InstancesPatchPartnerMetadataCall { + c := &InstancesPatchPartnerMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone c.instance = instance + c.partnermetadata = partnermetadata return c } @@ -120832,7 +121837,7 @@ func (r *InstancesService) PerformMaintenance(project string, zone string, insta // clients from accidentally creating duplicate commitments. The request // ID must be a valid UUID with the exception that zero UUID is not // supported ( 00000000-0000-0000-0000-000000000000). -func (c *InstancesPerformMaintenanceCall) RequestId(requestId string) *InstancesPerformMaintenanceCall { +func (c *InstancesPatchPartnerMetadataCall) RequestId(requestId string) *InstancesPatchPartnerMetadataCall { c.urlParams_.Set("requestId", requestId) return c } @@ -120840,7 +121845,7 @@ func (c *InstancesPerformMaintenanceCall) RequestId(requestId string) *Instances // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *InstancesPerformMaintenanceCall) Fields(s ...googleapi.Field) *InstancesPerformMaintenanceCall { +func (c *InstancesPatchPartnerMetadataCall) Fields(s ...googleapi.Field) *InstancesPatchPartnerMetadataCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -120848,21 +121853,21 @@ func (c *InstancesPerformMaintenanceCall) Fields(s ...googleapi.Field) *Instance // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *InstancesPerformMaintenanceCall) Context(ctx context.Context) *InstancesPerformMaintenanceCall { +func (c *InstancesPatchPartnerMetadataCall) Context(ctx context.Context) *InstancesPatchPartnerMetadataCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *InstancesPerformMaintenanceCall) Header() http.Header { +func (c *InstancesPatchPartnerMetadataCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *InstancesPerformMaintenanceCall) doRequest(alt string) (*http.Response, error) { +func (c *InstancesPatchPartnerMetadataCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -120870,9 +121875,14 @@ func (c *InstancesPerformMaintenanceCall) doRequest(alt string) (*http.Response, } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.partnermetadata) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/instances/{instance}/performMaintenance") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/instances/{instance}/patchPartnerMetadata") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -120887,14 +121897,195 @@ func (c *InstancesPerformMaintenanceCall) doRequest(alt string) (*http.Response, return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.instances.performMaintenance" call. +// Do executes the "compute.instances.patchPartnerMetadata" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *InstancesPerformMaintenanceCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *InstancesPatchPartnerMetadataCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Patches partner metadata of the specified instance.", + // "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/patchPartnerMetadata", + // "httpMethod": "POST", + // "id": "compute.instances.patchPartnerMetadata", + // "parameterOrder": [ + // "project", + // "zone", + // "instance" + // ], + // "parameters": { + // "instance": { + // "description": "Name of the instance scoping this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + // "required": true, + // "type": "string" + // }, + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "zone": { + // "description": "The name of the zone for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/zones/{zone}/instances/{instance}/patchPartnerMetadata", + // "request": { + // "$ref": "PartnerMetadata" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + +// method id "compute.instances.performMaintenance": + +type InstancesPerformMaintenanceCall struct { + s *Service + project string + zone string + instance string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// PerformMaintenance: Perform a manual maintenance on the instance. +// +// - instance: Name of the instance scoping this request. +// - project: Project ID for this request. +// - zone: The name of the zone for this request. +func (r *InstancesService) PerformMaintenance(project string, zone string, instance string) *InstancesPerformMaintenanceCall { + c := &InstancesPerformMaintenanceCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.zone = zone + c.instance = instance + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. For example, consider a +// situation where you make an initial request and the request times +// out. If you make the request again with the same request ID, the +// server can check if original operation with the same request ID was +// received, and if so, will ignore the second request. This prevents +// clients from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *InstancesPerformMaintenanceCall) RequestId(requestId string) *InstancesPerformMaintenanceCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *InstancesPerformMaintenanceCall) Fields(s ...googleapi.Field) *InstancesPerformMaintenanceCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *InstancesPerformMaintenanceCall) Context(ctx context.Context) *InstancesPerformMaintenanceCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *InstancesPerformMaintenanceCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *InstancesPerformMaintenanceCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/instances/{instance}/performMaintenance") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "zone": c.zone, + "instance": c.instance, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.instances.performMaintenance" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *InstancesPerformMaintenanceCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -180382,6 +181573,21 @@ func (r *RegionInstanceTemplatesService) Get(project string, region string, inst return c } +// View sets the optional parameter "view": View of the instance +// template. +// +// Possible values: +// +// "BASIC" - Include everything except Partner Metadata. +// "FULL" - Include everything. +// "INSTANCE_VIEW_UNSPECIFIED" - The default / unset value. The API +// +// will default to the BASIC view. +func (c *RegionInstanceTemplatesGetCall) View(view string) *RegionInstanceTemplatesGetCall { + c.urlParams_.Set("view", view) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -180513,6 +181719,21 @@ func (c *RegionInstanceTemplatesGetCall) Do(opts ...googleapi.CallOption) (*Inst // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, // "type": "string" + // }, + // "view": { + // "description": "View of the instance template.", + // "enum": [ + // "BASIC", + // "FULL", + // "INSTANCE_VIEW_UNSPECIFIED" + // ], + // "enumDescriptions": [ + // "Include everything except Partner Metadata.", + // "Include everything.", + // "The default / unset value. The API will default to the BASIC view." + // ], + // "location": "query", + // "type": "string" // } // }, // "path": "projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}", @@ -180814,6 +182035,21 @@ func (c *RegionInstanceTemplatesListCall) ReturnPartialSuccess(returnPartialSucc return c } +// View sets the optional parameter "view": View of the instance +// template. +// +// Possible values: +// +// "BASIC" - Include everything except Partner Metadata. +// "FULL" - Include everything. +// "INSTANCE_VIEW_UNSPECIFIED" - The default / unset value. The API +// +// will default to the BASIC view. +func (c *RegionInstanceTemplatesListCall) View(view string) *RegionInstanceTemplatesListCall { + c.urlParams_.Set("view", view) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -180964,6 +182200,21 @@ func (c *RegionInstanceTemplatesListCall) Do(opts ...googleapi.CallOption) (*Ins // "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.", // "location": "query", // "type": "boolean" + // }, + // "view": { + // "description": "View of the instance template.", + // "enum": [ + // "BASIC", + // "FULL", + // "INSTANCE_VIEW_UNSPECIFIED" + // ], + // "enumDescriptions": [ + // "Include everything except Partner Metadata.", + // "Include everything.", + // "The default / unset value. The API will default to the BASIC view." + // ], + // "location": "query", + // "type": "string" // } // }, // "path": "projects/{project}/regions/{region}/instanceTemplates", @@ -204051,6 +205302,196 @@ func (c *RoutersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) } +// method id "compute.routers.deleteRoutePolicy": + +type RoutersDeleteRoutePolicyCall struct { + s *Service + project string + region string + router string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// DeleteRoutePolicy: Deletes Route Policy +// +// - project: Project ID for this request. +// - region: Name of the region for this request. +// - router: Name of the Router resource where Route Policy is defined. +func (r *RoutersService) DeleteRoutePolicy(project string, region string, router string) *RoutersDeleteRoutePolicyCall { + c := &RoutersDeleteRoutePolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.router = router + return c +} + +// Policy sets the optional parameter "policy": The Policy name for this +// request. Name must conform to RFC1035 +func (c *RoutersDeleteRoutePolicyCall) Policy(policy string) *RoutersDeleteRoutePolicyCall { + c.urlParams_.Set("policy", policy) + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. For example, consider a +// situation where you make an initial request and the request times +// out. If you make the request again with the same request ID, the +// server can check if original operation with the same request ID was +// received, and if so, will ignore the second request. This prevents +// clients from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *RoutersDeleteRoutePolicyCall) RequestId(requestId string) *RoutersDeleteRoutePolicyCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *RoutersDeleteRoutePolicyCall) Fields(s ...googleapi.Field) *RoutersDeleteRoutePolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *RoutersDeleteRoutePolicyCall) Context(ctx context.Context) *RoutersDeleteRoutePolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *RoutersDeleteRoutePolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RoutersDeleteRoutePolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/routers/{router}/deleteRoutePolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + "router": c.router, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.routers.deleteRoutePolicy" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *RoutersDeleteRoutePolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes Route Policy", + // "flatPath": "projects/{project}/regions/{region}/routers/{router}/deleteRoutePolicy", + // "httpMethod": "POST", + // "id": "compute.routers.deleteRoutePolicy", + // "parameterOrder": [ + // "project", + // "region", + // "router" + // ], + // "parameters": { + // "policy": { + // "description": "The Policy name for this request. Name must conform to RFC1035", + // "location": "query", + // "type": "string" + // }, + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "region": { + // "description": "Name of the region for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "router": { + // "description": "Name of the Router resource where Route Policy is defined.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/regions/{region}/routers/{router}/deleteRoutePolicy", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + // method id "compute.routers.get": type RoutersGetCall struct { @@ -204729,6 +206170,190 @@ func (c *RoutersGetNatMappingInfoCall) Pages(ctx context.Context, f func(*VmEndp } } +// method id "compute.routers.getRoutePolicy": + +type RoutersGetRoutePolicyCall struct { + s *Service + project string + region string + router string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetRoutePolicy: Returns specified Route Policy +// +// - project: Project ID for this request. +// - region: Name of the region for this request. +// - router: Name of the Router resource to query for the route policy. +// The name should conform to RFC1035. +func (r *RoutersService) GetRoutePolicy(project string, region string, router string) *RoutersGetRoutePolicyCall { + c := &RoutersGetRoutePolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.router = router + return c +} + +// Policy sets the optional parameter "policy": The Policy name for this +// request. Name must conform to RFC1035 +func (c *RoutersGetRoutePolicyCall) Policy(policy string) *RoutersGetRoutePolicyCall { + c.urlParams_.Set("policy", policy) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *RoutersGetRoutePolicyCall) Fields(s ...googleapi.Field) *RoutersGetRoutePolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *RoutersGetRoutePolicyCall) IfNoneMatch(entityTag string) *RoutersGetRoutePolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *RoutersGetRoutePolicyCall) Context(ctx context.Context) *RoutersGetRoutePolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *RoutersGetRoutePolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RoutersGetRoutePolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/routers/{router}/getRoutePolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + "router": c.router, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.routers.getRoutePolicy" call. +// Exactly one of *RoutersGetRoutePolicyResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *RoutersGetRoutePolicyResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *RoutersGetRoutePolicyCall) Do(opts ...googleapi.CallOption) (*RoutersGetRoutePolicyResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &RoutersGetRoutePolicyResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns specified Route Policy", + // "flatPath": "projects/{project}/regions/{region}/routers/{router}/getRoutePolicy", + // "httpMethod": "GET", + // "id": "compute.routers.getRoutePolicy", + // "parameterOrder": [ + // "project", + // "region", + // "router" + // ], + // "parameters": { + // "policy": { + // "description": "The Policy name for this request. Name must conform to RFC1035", + // "location": "query", + // "type": "string" + // }, + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "region": { + // "description": "Name of the region for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // }, + // "router": { + // "description": "Name of the Router resource to query for the route policy. The name should conform to RFC1035.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/regions/{region}/routers/{router}/getRoutePolicy", + // "response": { + // "$ref": "RoutersGetRoutePolicyResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" + // ] + // } + +} + // method id "compute.routers.getRouterStatus": type RoutersGetRouterStatusCall struct { @@ -205373,6 +206998,716 @@ func (c *RoutersListCall) Pages(ctx context.Context, f func(*RouterList) error) } } +// method id "compute.routers.listBgpRoutes": + +type RoutersListBgpRoutesCall struct { + s *Service + project string + region string + router string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// ListBgpRoutes: Retrieves a list of router bgp routes available to the +// specified project. +// +// - project: Project ID for this request. +// - region: Name of the region for this request. +// - router: Name or id of the resource for this request. Name should +// conform to RFC1035. +func (r *RoutersService) ListBgpRoutes(project string, region string, router string) *RoutersListBgpRoutesCall { + c := &RoutersListBgpRoutesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.router = router + return c +} + +// AddressFamily sets the optional parameter "addressFamily": (Required) +// limit results to this address family (either IPv4 or IPv6) +// +// Possible values: +// +// "IPV4" +// "IPV6" +// "UNSPECIFIED_IP_VERSION" (default) +func (c *RoutersListBgpRoutesCall) AddressFamily(addressFamily string) *RoutersListBgpRoutesCall { + c.urlParams_.Set("addressFamily", addressFamily) + return c +} + +// DestinationPrefix sets the optional parameter "destinationPrefix": +// Limit results to destinations that are subnets of this CIDR range +func (c *RoutersListBgpRoutesCall) DestinationPrefix(destinationPrefix string) *RoutersListBgpRoutesCall { + c.urlParams_.Set("destinationPrefix", destinationPrefix) + return c +} + +// Filter sets the optional parameter "filter": A filter expression that +// filters resources listed in the response. Most Compute resources +// support two types of filter expressions: expressions that support +// regular expressions and expressions that follow API improvement +// proposal AIP-160. These two types of filter expressions cannot be +// mixed in one request. If you want to use AIP-160, your expression +// must specify the field name, an operator, and the value that you want +// to use for filtering. The value must be a string, a number, or a +// boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` +// or `:`. For example, if you are filtering Compute Engine instances, +// you can exclude instances named `example-instance` by specifying +// `name != example-instance`. The `:*` comparison can be used to test +// whether a key has been defined. For example, to find all objects with +// `owner` label use: ``` labels.owner:* ``` You can also filter nested +// fields. For example, you could specify `scheduling.automaticRestart = +// false` to include instances only if they are not scheduled for +// automatic restarts. You can use filtering on nested fields to filter +// based on resource labels. To filter on multiple expressions, provide +// each separate expression within parentheses. For example: ``` +// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") +// ``` By default, each expression is an `AND` expression. However, you +// can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") +// AND (scheduling.automaticRestart = true) ``` If you want to use a +// regular expression, use the `eq` (equal) or `ne` (not equal) operator +// against a single un-parenthesized expression with or without quotes +// or against multiple parenthesized expressions. Examples: `fieldname +// eq unquoted literal` `fieldname eq 'single quoted literal'` +// `fieldname eq "double quoted literal" `(fieldname1 eq literal) +// (fieldname2 ne "literal")` The literal value is interpreted as a +// regular expression using Google RE2 library syntax. The literal value +// must match the entire field. For example, to filter for instances +// that do not end with name "instance", you would use `name ne +// .*instance`. You cannot combine constraints on multiple fields using +// regular expressions. +func (c *RoutersListBgpRoutesCall) Filter(filter string) *RoutersListBgpRoutesCall { + c.urlParams_.Set("filter", filter) + return c +} + +// MaxResults sets the optional parameter "maxResults": The maximum +// number of results per page that should be returned. If the number of +// available results is larger than `maxResults`, Compute Engine returns +// a `nextPageToken` that can be used to get the next page of results in +// subsequent list requests. Acceptable values are `0` to `500`, +// inclusive. (Default: `500`) +func (c *RoutersListBgpRoutesCall) MaxResults(maxResults int64) *RoutersListBgpRoutesCall { + c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) + return c +} + +// OrderBy sets the optional parameter "orderBy": Sorts list results by +// a certain order. By default, results are returned in alphanumerical +// order based on the resource name. You can also sort results in +// descending order based on the creation timestamp using +// `orderBy="creationTimestamp desc". This sorts results based on the +// `creationTimestamp` field in reverse chronological order (newest +// result first). Use this to sort resources like operations so that the +// newest operation is returned first. Currently, only sorting by `name` +// or `creationTimestamp desc` is supported. +func (c *RoutersListBgpRoutesCall) OrderBy(orderBy string) *RoutersListBgpRoutesCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Set `pageToken` to the `nextPageToken` returned by a +// previous list request to get the next page of results. +func (c *RoutersListBgpRoutesCall) PageToken(pageToken string) *RoutersListBgpRoutesCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Peer sets the optional parameter "peer": (Required) limit results to +// the BGP peer with the given name. Name should conform to RFC1035. +func (c *RoutersListBgpRoutesCall) Peer(peer string) *RoutersListBgpRoutesCall { + c.urlParams_.Set("peer", peer) + return c +} + +// PolicyApplied sets the optional parameter "policyApplied": When true, +// the method returns post-policy routes. Otherwise, it returns +// pre-policy routes. +func (c *RoutersListBgpRoutesCall) PolicyApplied(policyApplied bool) *RoutersListBgpRoutesCall { + c.urlParams_.Set("policyApplied", fmt.Sprint(policyApplied)) + return c +} + +// ReturnPartialSuccess sets the optional parameter +// "returnPartialSuccess": Opt-in for partial success behavior which +// provides partial results in case of failure. The default value is +// false. For example, when partial success behavior is enabled, +// aggregatedList for a single zone scope either returns all resources +// in the zone or no resources, with an error code. +func (c *RoutersListBgpRoutesCall) ReturnPartialSuccess(returnPartialSuccess bool) *RoutersListBgpRoutesCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + +// RouteType sets the optional parameter "routeType": (Required) limit +// results to this type of route (either LEARNED or ADVERTISED) +// +// Possible values: +// +// "ADVERTISED" +// "LEARNED" +// "UNSPECIFIED_ROUTE_TYPE" (default) +func (c *RoutersListBgpRoutesCall) RouteType(routeType string) *RoutersListBgpRoutesCall { + c.urlParams_.Set("routeType", routeType) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *RoutersListBgpRoutesCall) Fields(s ...googleapi.Field) *RoutersListBgpRoutesCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *RoutersListBgpRoutesCall) IfNoneMatch(entityTag string) *RoutersListBgpRoutesCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *RoutersListBgpRoutesCall) Context(ctx context.Context) *RoutersListBgpRoutesCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *RoutersListBgpRoutesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RoutersListBgpRoutesCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/routers/{router}/listBgpRoutes") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + "router": c.router, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.routers.listBgpRoutes" call. +// Exactly one of *RoutersListBgpRoutes or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *RoutersListBgpRoutes.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *RoutersListBgpRoutesCall) Do(opts ...googleapi.CallOption) (*RoutersListBgpRoutes, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &RoutersListBgpRoutes{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Retrieves a list of router bgp routes available to the specified project.", + // "flatPath": "projects/{project}/regions/{region}/routers/{router}/listBgpRoutes", + // "httpMethod": "GET", + // "id": "compute.routers.listBgpRoutes", + // "parameterOrder": [ + // "project", + // "region", + // "router" + // ], + // "parameters": { + // "addressFamily": { + // "default": "UNSPECIFIED_IP_VERSION", + // "description": "(Required) limit results to this address family (either IPv4 or IPv6)", + // "enum": [ + // "IPV4", + // "IPV6", + // "UNSPECIFIED_IP_VERSION" + // ], + // "enumDescriptions": [ + // "", + // "", + // "" + // ], + // "location": "query", + // "type": "string" + // }, + // "destinationPrefix": { + // "description": "Limit results to destinations that are subnets of this CIDR range", + // "location": "query", + // "type": "string" + // }, + // "filter": { + // "description": "A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `\u003e`, `\u003c`, `\u003c=`, `\u003e=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq \"double quoted literal\"` `(fieldname1 eq literal) (fieldname2 ne \"literal\")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name \"instance\", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.", + // "location": "query", + // "type": "string" + // }, + // "maxResults": { + // "default": "500", + // "description": "The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)", + // "format": "uint32", + // "location": "query", + // "minimum": "0", + // "type": "integer" + // }, + // "orderBy": { + // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", + // "location": "query", + // "type": "string" + // }, + // "pageToken": { + // "description": "Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.", + // "location": "query", + // "type": "string" + // }, + // "peer": { + // "description": "(Required) limit results to the BGP peer with the given name. Name should conform to RFC1035.", + // "location": "query", + // "type": "string" + // }, + // "policyApplied": { + // "default": "true", + // "description": "When true, the method returns post-policy routes. Otherwise, it returns pre-policy routes.", + // "location": "query", + // "type": "boolean" + // }, + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "region": { + // "description": "Name of the region for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // }, + // "returnPartialSuccess": { + // "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.", + // "location": "query", + // "type": "boolean" + // }, + // "routeType": { + // "default": "UNSPECIFIED_ROUTE_TYPE", + // "description": "(Required) limit results to this type of route (either LEARNED or ADVERTISED)", + // "enum": [ + // "ADVERTISED", + // "LEARNED", + // "UNSPECIFIED_ROUTE_TYPE" + // ], + // "enumDescriptions": [ + // "", + // "", + // "" + // ], + // "location": "query", + // "type": "string" + // }, + // "router": { + // "description": "Name or id of the resource for this request. Name should conform to RFC1035.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/regions/{region}/routers/{router}/listBgpRoutes", + // "response": { + // "$ref": "RoutersListBgpRoutes" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *RoutersListBgpRoutesCall) Pages(ctx context.Context, f func(*RoutersListBgpRoutes) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "compute.routers.listRoutePolicies": + +type RoutersListRoutePoliciesCall struct { + s *Service + project string + region string + router string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// ListRoutePolicies: Retrieves a list of router route policy +// subresources available to the specified project. +// +// - project: Project ID for this request. +// - region: Name of the region for this request. +// - router: Name or id of the resource for this request. Name should +// conform to RFC1035. +func (r *RoutersService) ListRoutePolicies(project string, region string, router string) *RoutersListRoutePoliciesCall { + c := &RoutersListRoutePoliciesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.router = router + return c +} + +// Filter sets the optional parameter "filter": A filter expression that +// filters resources listed in the response. Most Compute resources +// support two types of filter expressions: expressions that support +// regular expressions and expressions that follow API improvement +// proposal AIP-160. These two types of filter expressions cannot be +// mixed in one request. If you want to use AIP-160, your expression +// must specify the field name, an operator, and the value that you want +// to use for filtering. The value must be a string, a number, or a +// boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` +// or `:`. For example, if you are filtering Compute Engine instances, +// you can exclude instances named `example-instance` by specifying +// `name != example-instance`. The `:*` comparison can be used to test +// whether a key has been defined. For example, to find all objects with +// `owner` label use: ``` labels.owner:* ``` You can also filter nested +// fields. For example, you could specify `scheduling.automaticRestart = +// false` to include instances only if they are not scheduled for +// automatic restarts. You can use filtering on nested fields to filter +// based on resource labels. To filter on multiple expressions, provide +// each separate expression within parentheses. For example: ``` +// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") +// ``` By default, each expression is an `AND` expression. However, you +// can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") +// AND (scheduling.automaticRestart = true) ``` If you want to use a +// regular expression, use the `eq` (equal) or `ne` (not equal) operator +// against a single un-parenthesized expression with or without quotes +// or against multiple parenthesized expressions. Examples: `fieldname +// eq unquoted literal` `fieldname eq 'single quoted literal'` +// `fieldname eq "double quoted literal" `(fieldname1 eq literal) +// (fieldname2 ne "literal")` The literal value is interpreted as a +// regular expression using Google RE2 library syntax. The literal value +// must match the entire field. For example, to filter for instances +// that do not end with name "instance", you would use `name ne +// .*instance`. You cannot combine constraints on multiple fields using +// regular expressions. +func (c *RoutersListRoutePoliciesCall) Filter(filter string) *RoutersListRoutePoliciesCall { + c.urlParams_.Set("filter", filter) + return c +} + +// MaxResults sets the optional parameter "maxResults": The maximum +// number of results per page that should be returned. If the number of +// available results is larger than `maxResults`, Compute Engine returns +// a `nextPageToken` that can be used to get the next page of results in +// subsequent list requests. Acceptable values are `0` to `500`, +// inclusive. (Default: `500`) +func (c *RoutersListRoutePoliciesCall) MaxResults(maxResults int64) *RoutersListRoutePoliciesCall { + c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) + return c +} + +// OrderBy sets the optional parameter "orderBy": Sorts list results by +// a certain order. By default, results are returned in alphanumerical +// order based on the resource name. You can also sort results in +// descending order based on the creation timestamp using +// `orderBy="creationTimestamp desc". This sorts results based on the +// `creationTimestamp` field in reverse chronological order (newest +// result first). Use this to sort resources like operations so that the +// newest operation is returned first. Currently, only sorting by `name` +// or `creationTimestamp desc` is supported. +func (c *RoutersListRoutePoliciesCall) OrderBy(orderBy string) *RoutersListRoutePoliciesCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Set `pageToken` to the `nextPageToken` returned by a +// previous list request to get the next page of results. +func (c *RoutersListRoutePoliciesCall) PageToken(pageToken string) *RoutersListRoutePoliciesCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter +// "returnPartialSuccess": Opt-in for partial success behavior which +// provides partial results in case of failure. The default value is +// false. For example, when partial success behavior is enabled, +// aggregatedList for a single zone scope either returns all resources +// in the zone or no resources, with an error code. +func (c *RoutersListRoutePoliciesCall) ReturnPartialSuccess(returnPartialSuccess bool) *RoutersListRoutePoliciesCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *RoutersListRoutePoliciesCall) Fields(s ...googleapi.Field) *RoutersListRoutePoliciesCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *RoutersListRoutePoliciesCall) IfNoneMatch(entityTag string) *RoutersListRoutePoliciesCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *RoutersListRoutePoliciesCall) Context(ctx context.Context) *RoutersListRoutePoliciesCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *RoutersListRoutePoliciesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RoutersListRoutePoliciesCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/routers/{router}/listRoutePolicies") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + "router": c.router, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.routers.listRoutePolicies" call. +// Exactly one of *RoutersListRoutePolicies or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *RoutersListRoutePolicies.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *RoutersListRoutePoliciesCall) Do(opts ...googleapi.CallOption) (*RoutersListRoutePolicies, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &RoutersListRoutePolicies{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Retrieves a list of router route policy subresources available to the specified project.", + // "flatPath": "projects/{project}/regions/{region}/routers/{router}/listRoutePolicies", + // "httpMethod": "GET", + // "id": "compute.routers.listRoutePolicies", + // "parameterOrder": [ + // "project", + // "region", + // "router" + // ], + // "parameters": { + // "filter": { + // "description": "A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `\u003e`, `\u003c`, `\u003c=`, `\u003e=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq \"double quoted literal\"` `(fieldname1 eq literal) (fieldname2 ne \"literal\")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name \"instance\", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.", + // "location": "query", + // "type": "string" + // }, + // "maxResults": { + // "default": "500", + // "description": "The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)", + // "format": "uint32", + // "location": "query", + // "minimum": "0", + // "type": "integer" + // }, + // "orderBy": { + // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", + // "location": "query", + // "type": "string" + // }, + // "pageToken": { + // "description": "Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.", + // "location": "query", + // "type": "string" + // }, + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "region": { + // "description": "Name of the region for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // }, + // "returnPartialSuccess": { + // "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.", + // "location": "query", + // "type": "boolean" + // }, + // "router": { + // "description": "Name or id of the resource for this request. Name should conform to RFC1035.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/regions/{region}/routers/{router}/listRoutePolicies", + // "response": { + // "$ref": "RoutersListRoutePolicies" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *RoutersListRoutePoliciesCall) Pages(ctx context.Context, f func(*RoutersListRoutePolicies) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + // method id "compute.routers.patch": type RoutersPatchCall struct { @@ -206094,6 +208429,194 @@ func (c *RoutersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) } +// method id "compute.routers.updateRoutePolicy": + +type RoutersUpdateRoutePolicyCall struct { + s *Service + project string + region string + router string + routepolicy *RoutePolicy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpdateRoutePolicy: Updates or creates new Route Policy +// +// - project: Project ID for this request. +// - region: Name of the region for this request. +// - router: Name of the Router resource where Route Policy is defined. +func (r *RoutersService) UpdateRoutePolicy(project string, region string, router string, routepolicy *RoutePolicy) *RoutersUpdateRoutePolicyCall { + c := &RoutersUpdateRoutePolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.router = router + c.routepolicy = routepolicy + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. For example, consider a +// situation where you make an initial request and the request times +// out. If you make the request again with the same request ID, the +// server can check if original operation with the same request ID was +// received, and if so, will ignore the second request. This prevents +// clients from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *RoutersUpdateRoutePolicyCall) RequestId(requestId string) *RoutersUpdateRoutePolicyCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *RoutersUpdateRoutePolicyCall) Fields(s ...googleapi.Field) *RoutersUpdateRoutePolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *RoutersUpdateRoutePolicyCall) Context(ctx context.Context) *RoutersUpdateRoutePolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *RoutersUpdateRoutePolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RoutersUpdateRoutePolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.routepolicy) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/routers/{router}/updateRoutePolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + "router": c.router, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.routers.updateRoutePolicy" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *RoutersUpdateRoutePolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates or creates new Route Policy", + // "flatPath": "projects/{project}/regions/{region}/routers/{router}/updateRoutePolicy", + // "httpMethod": "POST", + // "id": "compute.routers.updateRoutePolicy", + // "parameterOrder": [ + // "project", + // "region", + // "router" + // ], + // "parameters": { + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "region": { + // "description": "Name of the region for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "router": { + // "description": "Name of the Router resource where Route Policy is defined.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/regions/{region}/routers/{router}/updateRoutePolicy", + // "request": { + // "$ref": "RoutePolicy" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + // method id "compute.routes.delete": type RoutesDeleteCall struct { diff --git a/datacatalog/v1/datacatalog-api.json b/datacatalog/v1/datacatalog-api.json index 9b951625110..21a6ef71dcd 100644 --- a/datacatalog/v1/datacatalog-api.json +++ b/datacatalog/v1/datacatalog-api.json @@ -2144,7 +2144,7 @@ } } }, - "revision": "20240311", + "revision": "20240315", "rootUrl": "https://datacatalog.googleapis.com/", "schemas": { "Binding": { @@ -4205,6 +4205,18 @@ "description": "A tag template defines a tag that can have one or more typed fields. The template is used to create tags that are attached to Google Cloud resources. [Tag template roles] (https://cloud.google.com/iam/docs/understanding-roles#data-catalog-roles) provide permissions to create, edit, and use the template. For example, see the [TagTemplate User] (https://cloud.google.com/data-catalog/docs/how-to/template-user) role that includes a permission to use the tag template to tag resources.", "id": "GoogleCloudDatacatalogV1TagTemplate", "properties": { + "dataplexTransferStatus": { + "description": "Optional. Transfer status of the TagTemplate", + "enum": [ + "DATAPLEX_TRANSFER_STATUS_UNSPECIFIED", + "MIGRATED" + ], + "enumDescriptions": [ + "Default value. TagTemplate and its tags are only visible and editable in DataCatalog.", + "TagTemplate and its tags are auto-copied to Dataplex service. Visible in both services. Editable in DataCatalog, read-only in Dataplex." + ], + "type": "string" + }, "displayName": { "description": "Display name for this template. Defaults to an empty string. The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can't start or end with spaces. The maximum length is 200 characters.", "type": "string" diff --git a/datacatalog/v1/datacatalog-gen.go b/datacatalog/v1/datacatalog-gen.go index 9781ec04a12..8a7310178b0 100644 --- a/datacatalog/v1/datacatalog-gen.go +++ b/datacatalog/v1/datacatalog-gen.go @@ -4046,6 +4046,16 @@ func (s *GoogleCloudDatacatalogV1TagFieldEnumValue) MarshalJSON() ([]byte, error // role that includes a permission to use the tag template to tag // resources. type GoogleCloudDatacatalogV1TagTemplate struct { + // DataplexTransferStatus: Optional. Transfer status of the TagTemplate + // + // Possible values: + // "DATAPLEX_TRANSFER_STATUS_UNSPECIFIED" - Default value. TagTemplate + // and its tags are only visible and editable in DataCatalog. + // "MIGRATED" - TagTemplate and its tags are auto-copied to Dataplex + // service. Visible in both services. Editable in DataCatalog, read-only + // in Dataplex. + DataplexTransferStatus string `json:"dataplexTransferStatus,omitempty"` + // DisplayName: Display name for this template. Defaults to an empty // string. The name must contain only Unicode letters, numbers (0-9), // underscores (_), dashes (-), spaces ( ), and can't start or end with @@ -4077,20 +4087,22 @@ type GoogleCloudDatacatalogV1TagTemplate struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. + // "DataplexTransferStatus") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DataplexTransferStatus") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } diff --git a/datacatalog/v1beta1/datacatalog-api.json b/datacatalog/v1beta1/datacatalog-api.json index 662488d4902..fd30f4f1c54 100644 --- a/datacatalog/v1beta1/datacatalog-api.json +++ b/datacatalog/v1beta1/datacatalog-api.json @@ -1813,7 +1813,7 @@ } } }, - "revision": "20240311", + "revision": "20240315", "rootUrl": "https://datacatalog.googleapis.com/", "schemas": { "Binding": { @@ -4268,6 +4268,19 @@ "description": "A tag template defines a tag, which can have one or more typed fields. The template is used to create and attach the tag to Google Cloud resources. [Tag template roles](https://cloud.google.com/iam/docs/understanding-roles#data-catalog-roles) provide permissions to create, edit, and use the template. See, for example, the [TagTemplate User](https://cloud.google.com/data-catalog/docs/how-to/template-user) role, which includes permission to use the tag template to tag resources.", "id": "GoogleCloudDatacatalogV1beta1TagTemplate", "properties": { + "dataplexTransferStatus": { + "description": "Output only. Transfer status of the TagTemplate", + "enum": [ + "DATAPLEX_TRANSFER_STATUS_UNSPECIFIED", + "MIGRATED" + ], + "enumDescriptions": [ + "Default value. TagTemplate and its tags are only visible and editable in DataCatalog.", + "TagTemplate and its tags are auto-copied to Dataplex service. Visible in both services. Editable in DataCatalog, read-only in Dataplex." + ], + "readOnly": true, + "type": "string" + }, "displayName": { "description": "The display name for this template. Defaults to an empty string.", "type": "string" diff --git a/datacatalog/v1beta1/datacatalog-gen.go b/datacatalog/v1beta1/datacatalog-gen.go index 6418d7c6395..df09390de65 100644 --- a/datacatalog/v1beta1/datacatalog-gen.go +++ b/datacatalog/v1beta1/datacatalog-gen.go @@ -4687,6 +4687,17 @@ func (s *GoogleCloudDatacatalogV1beta1TagFieldEnumValue) MarshalJSON() ([]byte, // role, which includes permission to use the tag template to tag // resources. type GoogleCloudDatacatalogV1beta1TagTemplate struct { + // DataplexTransferStatus: Output only. Transfer status of the + // TagTemplate + // + // Possible values: + // "DATAPLEX_TRANSFER_STATUS_UNSPECIFIED" - Default value. TagTemplate + // and its tags are only visible and editable in DataCatalog. + // "MIGRATED" - TagTemplate and its tags are auto-copied to Dataplex + // service. Visible in both services. Editable in DataCatalog, read-only + // in Dataplex. + DataplexTransferStatus string `json:"dataplexTransferStatus,omitempty"` + // DisplayName: The display name for this template. Defaults to an empty // string. DisplayName string `json:"displayName,omitempty"` @@ -4711,20 +4722,22 @@ type GoogleCloudDatacatalogV1beta1TagTemplate struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. + // "DataplexTransferStatus") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DataplexTransferStatus") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } diff --git a/dataportability/v1/dataportability-api.json b/dataportability/v1/dataportability-api.json index 47419f2dcf4..6992653e18a 100644 --- a/dataportability/v1/dataportability-api.json +++ b/dataportability/v1/dataportability-api.json @@ -2,6 +2,9 @@ "auth": { "oauth2": { "scopes": { + "https://www.googleapis.com/auth/dataportability.alerts.subscriptions": { + "description": "Move a copy of the Google Alerts subscriptions you created." + }, "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations": { "description": "Move a copy of messages between you and the businesses you have conversations with across Google services." }, @@ -26,6 +29,18 @@ "https://www.googleapis.com/auth/dataportability.chrome.settings": { "description": "Move a copy of your settings in Chrome." }, + "https://www.googleapis.com/auth/dataportability.discover.follows": { + "description": "Move a copy of searches and sites you follow, saved by Discover." + }, + "https://www.googleapis.com/auth/dataportability.discover.likes": { + "description": "Move a copy of links to your liked documents, saved by Discover." + }, + "https://www.googleapis.com/auth/dataportability.discover.not_interested": { + "description": "Move a copy of content you marked as not interested, saved by Discover." + }, + "https://www.googleapis.com/auth/dataportability.maps.aliased_places": { + "description": "Move a copy of the places you labeled on Maps." + }, "https://www.googleapis.com/auth/dataportability.maps.commute_routes": { "description": "Move a copy of your pinned trips on Maps." }, @@ -35,12 +50,21 @@ "https://www.googleapis.com/auth/dataportability.maps.ev_profile": { "description": "Move a copy of your electric vehicle profile on Maps." }, + "https://www.googleapis.com/auth/dataportability.maps.factual_contributions": { + "description": "Move a copy of the corrections you made to places or map information on Maps." + }, "https://www.googleapis.com/auth/dataportability.maps.offering_contributions": { "description": "Move a copy of your updates to places on Maps." }, "https://www.googleapis.com/auth/dataportability.maps.photos_videos": { "description": "Move a copy of the photos and videos you posted on Maps." }, + "https://www.googleapis.com/auth/dataportability.maps.post_trip_feedback": { + "description": "Move a copy of feedback you gave after completing trips using Maps directions." + }, + "https://www.googleapis.com/auth/dataportability.maps.questions_answers": { + "description": "Move a copy of the questions and answers you posted on Maps." + }, "https://www.googleapis.com/auth/dataportability.maps.reviews": { "description": "Move a copy of your reviews and posts on Maps." }, @@ -50,6 +74,12 @@ "https://www.googleapis.com/auth/dataportability.myactivity.maps": { "description": "Move a copy of your Maps activity." }, + "https://www.googleapis.com/auth/dataportability.myactivity.myadcenter": { + "description": "Move a copy of your My Ad Center activity." + }, + "https://www.googleapis.com/auth/dataportability.myactivity.play": { + "description": "Move a copy of your Google Play activity." + }, "https://www.googleapis.com/auth/dataportability.myactivity.search": { "description": "Move a copy of your Google Search activity." }, @@ -59,15 +89,72 @@ "https://www.googleapis.com/auth/dataportability.myactivity.youtube": { "description": "Move a copy of your YouTube activity." }, + "https://www.googleapis.com/auth/dataportability.mymaps.maps": { + "description": "Move a copy of the maps you created in My Maps." + }, + "https://www.googleapis.com/auth/dataportability.order_reserve.purchases_reservations": { + "description": "Move a copy of your food purchase and reservation activity." + }, + "https://www.googleapis.com/auth/dataportability.play.devices": { + "description": "Move a copy of information about your devices with Google Play Store installed." + }, + "https://www.googleapis.com/auth/dataportability.play.grouping": { + "description": "Move a copy of your Google Play Store Grouping tags created by app developers." + }, + "https://www.googleapis.com/auth/dataportability.play.installs": { + "description": "Move a copy of your Google Play Store app installations." + }, + "https://www.googleapis.com/auth/dataportability.play.library": { + "description": "Move a copy of your Google Play Store downloads, including books, games, and apps." + }, + "https://www.googleapis.com/auth/dataportability.play.playpoints": { + "description": "Move a copy of information about your Google Play Store Points." + }, + "https://www.googleapis.com/auth/dataportability.play.promotions": { + "description": "Move a copy of information about your Google Play Store promotions." + }, + "https://www.googleapis.com/auth/dataportability.play.purchases": { + "description": "Move a copy of your Google Play Store purchases." + }, + "https://www.googleapis.com/auth/dataportability.play.redemptions": { + "description": "Move a copy of your Google Play Store redemption activities." + }, + "https://www.googleapis.com/auth/dataportability.play.subscriptions": { + "description": "Move a copy of your Google Play Store subscriptions." + }, + "https://www.googleapis.com/auth/dataportability.play.usersettings": { + "description": "Move a copy of your Google Play Store user settings and preferences." + }, "https://www.googleapis.com/auth/dataportability.saved.collections": { "description": "Move a copy of your saved links, images, places, and collections from your use of Google services." }, + "https://www.googleapis.com/auth/dataportability.search_ugc.media.reviews_and_stars": { + "description": "Move a copy of your media reviews on Google Search." + }, + "https://www.googleapis.com/auth/dataportability.search_ugc.media.streaming_video_providers": { + "description": "Move a copy of your self-reported video streaming provider preferences from Google Search and Google TV." + }, + "https://www.googleapis.com/auth/dataportability.search_ugc.media.thumbs": { + "description": "Move a copy of your indicated thumbs up and thumbs down on media in Google Search and Google TV." + }, + "https://www.googleapis.com/auth/dataportability.search_ugc.media.watched": { + "description": "Move a copy of information about the movies and TV shows you marked as watched on Google Search and Google TV." + }, + "https://www.googleapis.com/auth/dataportability.searchnotifications.settings": { + "description": "Move a copy of your notification settings on the Google Search app." + }, + "https://www.googleapis.com/auth/dataportability.searchnotifications.subscriptions": { + "description": "Move a copy of your notification subscriptions on Google Search app." + }, "https://www.googleapis.com/auth/dataportability.shopping.addresses": { "description": "Move a copy of your shipping information on Shopping." }, "https://www.googleapis.com/auth/dataportability.shopping.reviews": { "description": "Move a copy of reviews you wrote about products or online stores on Google Search." }, + "https://www.googleapis.com/auth/dataportability.streetview.imagery": { + "description": "Move a copy of the images and videos you uploaded to Street View." + }, "https://www.googleapis.com/auth/dataportability.youtube.channel": { "description": "Move a copy of information about your YouTube channel." }, @@ -234,6 +321,7 @@ "$ref": "PortabilityArchiveState" }, "scopes": [ + "https://www.googleapis.com/auth/dataportability.alerts.subscriptions", "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", "https://www.googleapis.com/auth/dataportability.chrome.autofill", "https://www.googleapis.com/auth/dataportability.chrome.bookmarks", @@ -242,20 +330,48 @@ "https://www.googleapis.com/auth/dataportability.chrome.history", "https://www.googleapis.com/auth/dataportability.chrome.reading_list", "https://www.googleapis.com/auth/dataportability.chrome.settings", + "https://www.googleapis.com/auth/dataportability.discover.follows", + "https://www.googleapis.com/auth/dataportability.discover.likes", + "https://www.googleapis.com/auth/dataportability.discover.not_interested", + "https://www.googleapis.com/auth/dataportability.maps.aliased_places", "https://www.googleapis.com/auth/dataportability.maps.commute_routes", "https://www.googleapis.com/auth/dataportability.maps.commute_settings", "https://www.googleapis.com/auth/dataportability.maps.ev_profile", + "https://www.googleapis.com/auth/dataportability.maps.factual_contributions", "https://www.googleapis.com/auth/dataportability.maps.offering_contributions", "https://www.googleapis.com/auth/dataportability.maps.photos_videos", + "https://www.googleapis.com/auth/dataportability.maps.post_trip_feedback", + "https://www.googleapis.com/auth/dataportability.maps.questions_answers", "https://www.googleapis.com/auth/dataportability.maps.reviews", "https://www.googleapis.com/auth/dataportability.maps.starred_places", "https://www.googleapis.com/auth/dataportability.myactivity.maps", + "https://www.googleapis.com/auth/dataportability.myactivity.myadcenter", + "https://www.googleapis.com/auth/dataportability.myactivity.play", "https://www.googleapis.com/auth/dataportability.myactivity.search", "https://www.googleapis.com/auth/dataportability.myactivity.shopping", "https://www.googleapis.com/auth/dataportability.myactivity.youtube", + "https://www.googleapis.com/auth/dataportability.mymaps.maps", + "https://www.googleapis.com/auth/dataportability.order_reserve.purchases_reservations", + "https://www.googleapis.com/auth/dataportability.play.devices", + "https://www.googleapis.com/auth/dataportability.play.grouping", + "https://www.googleapis.com/auth/dataportability.play.installs", + "https://www.googleapis.com/auth/dataportability.play.library", + "https://www.googleapis.com/auth/dataportability.play.playpoints", + "https://www.googleapis.com/auth/dataportability.play.promotions", + "https://www.googleapis.com/auth/dataportability.play.purchases", + "https://www.googleapis.com/auth/dataportability.play.redemptions", + "https://www.googleapis.com/auth/dataportability.play.subscriptions", + "https://www.googleapis.com/auth/dataportability.play.usersettings", "https://www.googleapis.com/auth/dataportability.saved.collections", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.reviews_and_stars", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.streaming_video_providers", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.thumbs", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.watched", + "https://www.googleapis.com/auth/dataportability.searchnotifications.settings", + "https://www.googleapis.com/auth/dataportability.searchnotifications.subscriptions", "https://www.googleapis.com/auth/dataportability.shopping.addresses", "https://www.googleapis.com/auth/dataportability.shopping.reviews", + "https://www.googleapis.com/auth/dataportability.streetview.imagery", "https://www.googleapis.com/auth/dataportability.youtube.channel", "https://www.googleapis.com/auth/dataportability.youtube.comments", "https://www.googleapis.com/auth/dataportability.youtube.live_chat", @@ -297,6 +413,7 @@ "$ref": "RetryPortabilityArchiveResponse" }, "scopes": [ + "https://www.googleapis.com/auth/dataportability.alerts.subscriptions", "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", "https://www.googleapis.com/auth/dataportability.chrome.autofill", "https://www.googleapis.com/auth/dataportability.chrome.bookmarks", @@ -305,20 +422,48 @@ "https://www.googleapis.com/auth/dataportability.chrome.history", "https://www.googleapis.com/auth/dataportability.chrome.reading_list", "https://www.googleapis.com/auth/dataportability.chrome.settings", + "https://www.googleapis.com/auth/dataportability.discover.follows", + "https://www.googleapis.com/auth/dataportability.discover.likes", + "https://www.googleapis.com/auth/dataportability.discover.not_interested", + "https://www.googleapis.com/auth/dataportability.maps.aliased_places", "https://www.googleapis.com/auth/dataportability.maps.commute_routes", "https://www.googleapis.com/auth/dataportability.maps.commute_settings", "https://www.googleapis.com/auth/dataportability.maps.ev_profile", + "https://www.googleapis.com/auth/dataportability.maps.factual_contributions", "https://www.googleapis.com/auth/dataportability.maps.offering_contributions", "https://www.googleapis.com/auth/dataportability.maps.photos_videos", + "https://www.googleapis.com/auth/dataportability.maps.post_trip_feedback", + "https://www.googleapis.com/auth/dataportability.maps.questions_answers", "https://www.googleapis.com/auth/dataportability.maps.reviews", "https://www.googleapis.com/auth/dataportability.maps.starred_places", "https://www.googleapis.com/auth/dataportability.myactivity.maps", + "https://www.googleapis.com/auth/dataportability.myactivity.myadcenter", + "https://www.googleapis.com/auth/dataportability.myactivity.play", "https://www.googleapis.com/auth/dataportability.myactivity.search", "https://www.googleapis.com/auth/dataportability.myactivity.shopping", "https://www.googleapis.com/auth/dataportability.myactivity.youtube", + "https://www.googleapis.com/auth/dataportability.mymaps.maps", + "https://www.googleapis.com/auth/dataportability.order_reserve.purchases_reservations", + "https://www.googleapis.com/auth/dataportability.play.devices", + "https://www.googleapis.com/auth/dataportability.play.grouping", + "https://www.googleapis.com/auth/dataportability.play.installs", + "https://www.googleapis.com/auth/dataportability.play.library", + "https://www.googleapis.com/auth/dataportability.play.playpoints", + "https://www.googleapis.com/auth/dataportability.play.promotions", + "https://www.googleapis.com/auth/dataportability.play.purchases", + "https://www.googleapis.com/auth/dataportability.play.redemptions", + "https://www.googleapis.com/auth/dataportability.play.subscriptions", + "https://www.googleapis.com/auth/dataportability.play.usersettings", "https://www.googleapis.com/auth/dataportability.saved.collections", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.reviews_and_stars", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.streaming_video_providers", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.thumbs", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.watched", + "https://www.googleapis.com/auth/dataportability.searchnotifications.settings", + "https://www.googleapis.com/auth/dataportability.searchnotifications.subscriptions", "https://www.googleapis.com/auth/dataportability.shopping.addresses", "https://www.googleapis.com/auth/dataportability.shopping.reviews", + "https://www.googleapis.com/auth/dataportability.streetview.imagery", "https://www.googleapis.com/auth/dataportability.youtube.channel", "https://www.googleapis.com/auth/dataportability.youtube.comments", "https://www.googleapis.com/auth/dataportability.youtube.live_chat", @@ -354,6 +499,7 @@ "$ref": "Empty" }, "scopes": [ + "https://www.googleapis.com/auth/dataportability.alerts.subscriptions", "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", "https://www.googleapis.com/auth/dataportability.chrome.autofill", "https://www.googleapis.com/auth/dataportability.chrome.bookmarks", @@ -362,20 +508,48 @@ "https://www.googleapis.com/auth/dataportability.chrome.history", "https://www.googleapis.com/auth/dataportability.chrome.reading_list", "https://www.googleapis.com/auth/dataportability.chrome.settings", + "https://www.googleapis.com/auth/dataportability.discover.follows", + "https://www.googleapis.com/auth/dataportability.discover.likes", + "https://www.googleapis.com/auth/dataportability.discover.not_interested", + "https://www.googleapis.com/auth/dataportability.maps.aliased_places", "https://www.googleapis.com/auth/dataportability.maps.commute_routes", "https://www.googleapis.com/auth/dataportability.maps.commute_settings", "https://www.googleapis.com/auth/dataportability.maps.ev_profile", + "https://www.googleapis.com/auth/dataportability.maps.factual_contributions", "https://www.googleapis.com/auth/dataportability.maps.offering_contributions", "https://www.googleapis.com/auth/dataportability.maps.photos_videos", + "https://www.googleapis.com/auth/dataportability.maps.post_trip_feedback", + "https://www.googleapis.com/auth/dataportability.maps.questions_answers", "https://www.googleapis.com/auth/dataportability.maps.reviews", "https://www.googleapis.com/auth/dataportability.maps.starred_places", "https://www.googleapis.com/auth/dataportability.myactivity.maps", + "https://www.googleapis.com/auth/dataportability.myactivity.myadcenter", + "https://www.googleapis.com/auth/dataportability.myactivity.play", "https://www.googleapis.com/auth/dataportability.myactivity.search", "https://www.googleapis.com/auth/dataportability.myactivity.shopping", "https://www.googleapis.com/auth/dataportability.myactivity.youtube", + "https://www.googleapis.com/auth/dataportability.mymaps.maps", + "https://www.googleapis.com/auth/dataportability.order_reserve.purchases_reservations", + "https://www.googleapis.com/auth/dataportability.play.devices", + "https://www.googleapis.com/auth/dataportability.play.grouping", + "https://www.googleapis.com/auth/dataportability.play.installs", + "https://www.googleapis.com/auth/dataportability.play.library", + "https://www.googleapis.com/auth/dataportability.play.playpoints", + "https://www.googleapis.com/auth/dataportability.play.promotions", + "https://www.googleapis.com/auth/dataportability.play.purchases", + "https://www.googleapis.com/auth/dataportability.play.redemptions", + "https://www.googleapis.com/auth/dataportability.play.subscriptions", + "https://www.googleapis.com/auth/dataportability.play.usersettings", "https://www.googleapis.com/auth/dataportability.saved.collections", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.reviews_and_stars", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.streaming_video_providers", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.thumbs", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.watched", + "https://www.googleapis.com/auth/dataportability.searchnotifications.settings", + "https://www.googleapis.com/auth/dataportability.searchnotifications.subscriptions", "https://www.googleapis.com/auth/dataportability.shopping.addresses", "https://www.googleapis.com/auth/dataportability.shopping.reviews", + "https://www.googleapis.com/auth/dataportability.streetview.imagery", "https://www.googleapis.com/auth/dataportability.youtube.channel", "https://www.googleapis.com/auth/dataportability.youtube.comments", "https://www.googleapis.com/auth/dataportability.youtube.live_chat", @@ -411,6 +585,7 @@ "$ref": "InitiatePortabilityArchiveResponse" }, "scopes": [ + "https://www.googleapis.com/auth/dataportability.alerts.subscriptions", "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", "https://www.googleapis.com/auth/dataportability.chrome.autofill", "https://www.googleapis.com/auth/dataportability.chrome.bookmarks", @@ -419,20 +594,48 @@ "https://www.googleapis.com/auth/dataportability.chrome.history", "https://www.googleapis.com/auth/dataportability.chrome.reading_list", "https://www.googleapis.com/auth/dataportability.chrome.settings", + "https://www.googleapis.com/auth/dataportability.discover.follows", + "https://www.googleapis.com/auth/dataportability.discover.likes", + "https://www.googleapis.com/auth/dataportability.discover.not_interested", + "https://www.googleapis.com/auth/dataportability.maps.aliased_places", "https://www.googleapis.com/auth/dataportability.maps.commute_routes", "https://www.googleapis.com/auth/dataportability.maps.commute_settings", "https://www.googleapis.com/auth/dataportability.maps.ev_profile", + "https://www.googleapis.com/auth/dataportability.maps.factual_contributions", "https://www.googleapis.com/auth/dataportability.maps.offering_contributions", "https://www.googleapis.com/auth/dataportability.maps.photos_videos", + "https://www.googleapis.com/auth/dataportability.maps.post_trip_feedback", + "https://www.googleapis.com/auth/dataportability.maps.questions_answers", "https://www.googleapis.com/auth/dataportability.maps.reviews", "https://www.googleapis.com/auth/dataportability.maps.starred_places", "https://www.googleapis.com/auth/dataportability.myactivity.maps", + "https://www.googleapis.com/auth/dataportability.myactivity.myadcenter", + "https://www.googleapis.com/auth/dataportability.myactivity.play", "https://www.googleapis.com/auth/dataportability.myactivity.search", "https://www.googleapis.com/auth/dataportability.myactivity.shopping", "https://www.googleapis.com/auth/dataportability.myactivity.youtube", + "https://www.googleapis.com/auth/dataportability.mymaps.maps", + "https://www.googleapis.com/auth/dataportability.order_reserve.purchases_reservations", + "https://www.googleapis.com/auth/dataportability.play.devices", + "https://www.googleapis.com/auth/dataportability.play.grouping", + "https://www.googleapis.com/auth/dataportability.play.installs", + "https://www.googleapis.com/auth/dataportability.play.library", + "https://www.googleapis.com/auth/dataportability.play.playpoints", + "https://www.googleapis.com/auth/dataportability.play.promotions", + "https://www.googleapis.com/auth/dataportability.play.purchases", + "https://www.googleapis.com/auth/dataportability.play.redemptions", + "https://www.googleapis.com/auth/dataportability.play.subscriptions", + "https://www.googleapis.com/auth/dataportability.play.usersettings", "https://www.googleapis.com/auth/dataportability.saved.collections", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.reviews_and_stars", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.streaming_video_providers", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.thumbs", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.watched", + "https://www.googleapis.com/auth/dataportability.searchnotifications.settings", + "https://www.googleapis.com/auth/dataportability.searchnotifications.subscriptions", "https://www.googleapis.com/auth/dataportability.shopping.addresses", "https://www.googleapis.com/auth/dataportability.shopping.reviews", + "https://www.googleapis.com/auth/dataportability.streetview.imagery", "https://www.googleapis.com/auth/dataportability.youtube.channel", "https://www.googleapis.com/auth/dataportability.youtube.comments", "https://www.googleapis.com/auth/dataportability.youtube.live_chat", @@ -452,7 +655,7 @@ } } }, - "revision": "20240308", + "revision": "20240319", "rootUrl": "https://dataportability.googleapis.com/", "schemas": { "Empty": { diff --git a/dataportability/v1/dataportability-gen.go b/dataportability/v1/dataportability-gen.go index 839324b3131..dcd9cb120d5 100644 --- a/dataportability/v1/dataportability-gen.go +++ b/dataportability/v1/dataportability-gen.go @@ -101,6 +101,9 @@ const defaultUniverseDomain = "googleapis.com" // OAuth2 scopes used by this API. const ( + // Move a copy of the Google Alerts subscriptions you created. + DataportabilityAlertsSubscriptionsScope = "https://www.googleapis.com/auth/dataportability.alerts.subscriptions" + // Move a copy of messages between you and the businesses you have // conversations with across Google services. DataportabilityBusinessmessagingConversationsScope = "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations" @@ -127,6 +130,19 @@ const ( // Move a copy of your settings in Chrome. DataportabilityChromeSettingsScope = "https://www.googleapis.com/auth/dataportability.chrome.settings" + // Move a copy of searches and sites you follow, saved by Discover. + DataportabilityDiscoverFollowsScope = "https://www.googleapis.com/auth/dataportability.discover.follows" + + // Move a copy of links to your liked documents, saved by Discover. + DataportabilityDiscoverLikesScope = "https://www.googleapis.com/auth/dataportability.discover.likes" + + // Move a copy of content you marked as not interested, saved by + // Discover. + DataportabilityDiscoverNotInterestedScope = "https://www.googleapis.com/auth/dataportability.discover.not_interested" + + // Move a copy of the places you labeled on Maps. + DataportabilityMapsAliasedPlacesScope = "https://www.googleapis.com/auth/dataportability.maps.aliased_places" + // Move a copy of your pinned trips on Maps. DataportabilityMapsCommuteRoutesScope = "https://www.googleapis.com/auth/dataportability.maps.commute_routes" @@ -136,12 +152,23 @@ const ( // Move a copy of your electric vehicle profile on Maps. DataportabilityMapsEvProfileScope = "https://www.googleapis.com/auth/dataportability.maps.ev_profile" + // Move a copy of the corrections you made to places or map information + // on Maps. + DataportabilityMapsFactualContributionsScope = "https://www.googleapis.com/auth/dataportability.maps.factual_contributions" + // Move a copy of your updates to places on Maps. DataportabilityMapsOfferingContributionsScope = "https://www.googleapis.com/auth/dataportability.maps.offering_contributions" // Move a copy of the photos and videos you posted on Maps. DataportabilityMapsPhotosVideosScope = "https://www.googleapis.com/auth/dataportability.maps.photos_videos" + // Move a copy of feedback you gave after completing trips using Maps + // directions. + DataportabilityMapsPostTripFeedbackScope = "https://www.googleapis.com/auth/dataportability.maps.post_trip_feedback" + + // Move a copy of the questions and answers you posted on Maps. + DataportabilityMapsQuestionsAnswersScope = "https://www.googleapis.com/auth/dataportability.maps.questions_answers" + // Move a copy of your reviews and posts on Maps. DataportabilityMapsReviewsScope = "https://www.googleapis.com/auth/dataportability.maps.reviews" @@ -151,6 +178,12 @@ const ( // Move a copy of your Maps activity. DataportabilityMyactivityMapsScope = "https://www.googleapis.com/auth/dataportability.myactivity.maps" + // Move a copy of your My Ad Center activity. + DataportabilityMyactivityMyadcenterScope = "https://www.googleapis.com/auth/dataportability.myactivity.myadcenter" + + // Move a copy of your Google Play activity. + DataportabilityMyactivityPlayScope = "https://www.googleapis.com/auth/dataportability.myactivity.play" + // Move a copy of your Google Search activity. DataportabilityMyactivitySearchScope = "https://www.googleapis.com/auth/dataportability.myactivity.search" @@ -160,10 +193,70 @@ const ( // Move a copy of your YouTube activity. DataportabilityMyactivityYoutubeScope = "https://www.googleapis.com/auth/dataportability.myactivity.youtube" + // Move a copy of the maps you created in My Maps. + DataportabilityMymapsMapsScope = "https://www.googleapis.com/auth/dataportability.mymaps.maps" + + // Move a copy of your food purchase and reservation activity. + DataportabilityOrderReservePurchasesReservationsScope = "https://www.googleapis.com/auth/dataportability.order_reserve.purchases_reservations" + + // Move a copy of information about your devices with Google Play Store + // installed. + DataportabilityPlayDevicesScope = "https://www.googleapis.com/auth/dataportability.play.devices" + + // Move a copy of your Google Play Store Grouping tags created by app + // developers. + DataportabilityPlayGroupingScope = "https://www.googleapis.com/auth/dataportability.play.grouping" + + // Move a copy of your Google Play Store app installations. + DataportabilityPlayInstallsScope = "https://www.googleapis.com/auth/dataportability.play.installs" + + // Move a copy of your Google Play Store downloads, including books, + // games, and apps. + DataportabilityPlayLibraryScope = "https://www.googleapis.com/auth/dataportability.play.library" + + // Move a copy of information about your Google Play Store Points. + DataportabilityPlayPlaypointsScope = "https://www.googleapis.com/auth/dataportability.play.playpoints" + + // Move a copy of information about your Google Play Store promotions. + DataportabilityPlayPromotionsScope = "https://www.googleapis.com/auth/dataportability.play.promotions" + + // Move a copy of your Google Play Store purchases. + DataportabilityPlayPurchasesScope = "https://www.googleapis.com/auth/dataportability.play.purchases" + + // Move a copy of your Google Play Store redemption activities. + DataportabilityPlayRedemptionsScope = "https://www.googleapis.com/auth/dataportability.play.redemptions" + + // Move a copy of your Google Play Store subscriptions. + DataportabilityPlaySubscriptionsScope = "https://www.googleapis.com/auth/dataportability.play.subscriptions" + + // Move a copy of your Google Play Store user settings and preferences. + DataportabilityPlayUsersettingsScope = "https://www.googleapis.com/auth/dataportability.play.usersettings" + // Move a copy of your saved links, images, places, and collections from // your use of Google services. DataportabilitySavedCollectionsScope = "https://www.googleapis.com/auth/dataportability.saved.collections" + // Move a copy of your media reviews on Google Search. + DataportabilitySearchUgcMediaReviewsAndStarsScope = "https://www.googleapis.com/auth/dataportability.search_ugc.media.reviews_and_stars" + + // Move a copy of your self-reported video streaming provider + // preferences from Google Search and Google TV. + DataportabilitySearchUgcMediaStreamingVideoProvidersScope = "https://www.googleapis.com/auth/dataportability.search_ugc.media.streaming_video_providers" + + // Move a copy of your indicated thumbs up and thumbs down on media in + // Google Search and Google TV. + DataportabilitySearchUgcMediaThumbsScope = "https://www.googleapis.com/auth/dataportability.search_ugc.media.thumbs" + + // Move a copy of information about the movies and TV shows you marked + // as watched on Google Search and Google TV. + DataportabilitySearchUgcMediaWatchedScope = "https://www.googleapis.com/auth/dataportability.search_ugc.media.watched" + + // Move a copy of your notification settings on the Google Search app. + DataportabilitySearchnotificationsSettingsScope = "https://www.googleapis.com/auth/dataportability.searchnotifications.settings" + + // Move a copy of your notification subscriptions on Google Search app. + DataportabilitySearchnotificationsSubscriptionsScope = "https://www.googleapis.com/auth/dataportability.searchnotifications.subscriptions" + // Move a copy of your shipping information on Shopping. DataportabilityShoppingAddressesScope = "https://www.googleapis.com/auth/dataportability.shopping.addresses" @@ -171,6 +264,9 @@ const ( // Google Search. DataportabilityShoppingReviewsScope = "https://www.googleapis.com/auth/dataportability.shopping.reviews" + // Move a copy of the images and videos you uploaded to Street View. + DataportabilityStreetviewImageryScope = "https://www.googleapis.com/auth/dataportability.streetview.imagery" + // Move a copy of information about your YouTube channel. DataportabilityYoutubeChannelScope = "https://www.googleapis.com/auth/dataportability.youtube.channel" @@ -221,6 +317,7 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { scopesOption := internaloption.WithDefaultScopes( + "https://www.googleapis.com/auth/dataportability.alerts.subscriptions", "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", "https://www.googleapis.com/auth/dataportability.chrome.autofill", "https://www.googleapis.com/auth/dataportability.chrome.bookmarks", @@ -229,20 +326,48 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err "https://www.googleapis.com/auth/dataportability.chrome.history", "https://www.googleapis.com/auth/dataportability.chrome.reading_list", "https://www.googleapis.com/auth/dataportability.chrome.settings", + "https://www.googleapis.com/auth/dataportability.discover.follows", + "https://www.googleapis.com/auth/dataportability.discover.likes", + "https://www.googleapis.com/auth/dataportability.discover.not_interested", + "https://www.googleapis.com/auth/dataportability.maps.aliased_places", "https://www.googleapis.com/auth/dataportability.maps.commute_routes", "https://www.googleapis.com/auth/dataportability.maps.commute_settings", "https://www.googleapis.com/auth/dataportability.maps.ev_profile", + "https://www.googleapis.com/auth/dataportability.maps.factual_contributions", "https://www.googleapis.com/auth/dataportability.maps.offering_contributions", "https://www.googleapis.com/auth/dataportability.maps.photos_videos", + "https://www.googleapis.com/auth/dataportability.maps.post_trip_feedback", + "https://www.googleapis.com/auth/dataportability.maps.questions_answers", "https://www.googleapis.com/auth/dataportability.maps.reviews", "https://www.googleapis.com/auth/dataportability.maps.starred_places", "https://www.googleapis.com/auth/dataportability.myactivity.maps", + "https://www.googleapis.com/auth/dataportability.myactivity.myadcenter", + "https://www.googleapis.com/auth/dataportability.myactivity.play", "https://www.googleapis.com/auth/dataportability.myactivity.search", "https://www.googleapis.com/auth/dataportability.myactivity.shopping", "https://www.googleapis.com/auth/dataportability.myactivity.youtube", + "https://www.googleapis.com/auth/dataportability.mymaps.maps", + "https://www.googleapis.com/auth/dataportability.order_reserve.purchases_reservations", + "https://www.googleapis.com/auth/dataportability.play.devices", + "https://www.googleapis.com/auth/dataportability.play.grouping", + "https://www.googleapis.com/auth/dataportability.play.installs", + "https://www.googleapis.com/auth/dataportability.play.library", + "https://www.googleapis.com/auth/dataportability.play.playpoints", + "https://www.googleapis.com/auth/dataportability.play.promotions", + "https://www.googleapis.com/auth/dataportability.play.purchases", + "https://www.googleapis.com/auth/dataportability.play.redemptions", + "https://www.googleapis.com/auth/dataportability.play.subscriptions", + "https://www.googleapis.com/auth/dataportability.play.usersettings", "https://www.googleapis.com/auth/dataportability.saved.collections", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.reviews_and_stars", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.streaming_video_providers", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.thumbs", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.watched", + "https://www.googleapis.com/auth/dataportability.searchnotifications.settings", + "https://www.googleapis.com/auth/dataportability.searchnotifications.subscriptions", "https://www.googleapis.com/auth/dataportability.shopping.addresses", "https://www.googleapis.com/auth/dataportability.shopping.reviews", + "https://www.googleapis.com/auth/dataportability.streetview.imagery", "https://www.googleapis.com/auth/dataportability.youtube.channel", "https://www.googleapis.com/auth/dataportability.youtube.comments", "https://www.googleapis.com/auth/dataportability.youtube.live_chat", @@ -652,6 +777,7 @@ func (c *ArchiveJobsGetPortabilityArchiveStateCall) Do(opts ...googleapi.CallOpt // "$ref": "PortabilityArchiveState" // }, // "scopes": [ + // "https://www.googleapis.com/auth/dataportability.alerts.subscriptions", // "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", // "https://www.googleapis.com/auth/dataportability.chrome.autofill", // "https://www.googleapis.com/auth/dataportability.chrome.bookmarks", @@ -660,20 +786,48 @@ func (c *ArchiveJobsGetPortabilityArchiveStateCall) Do(opts ...googleapi.CallOpt // "https://www.googleapis.com/auth/dataportability.chrome.history", // "https://www.googleapis.com/auth/dataportability.chrome.reading_list", // "https://www.googleapis.com/auth/dataportability.chrome.settings", + // "https://www.googleapis.com/auth/dataportability.discover.follows", + // "https://www.googleapis.com/auth/dataportability.discover.likes", + // "https://www.googleapis.com/auth/dataportability.discover.not_interested", + // "https://www.googleapis.com/auth/dataportability.maps.aliased_places", // "https://www.googleapis.com/auth/dataportability.maps.commute_routes", // "https://www.googleapis.com/auth/dataportability.maps.commute_settings", // "https://www.googleapis.com/auth/dataportability.maps.ev_profile", + // "https://www.googleapis.com/auth/dataportability.maps.factual_contributions", // "https://www.googleapis.com/auth/dataportability.maps.offering_contributions", // "https://www.googleapis.com/auth/dataportability.maps.photos_videos", + // "https://www.googleapis.com/auth/dataportability.maps.post_trip_feedback", + // "https://www.googleapis.com/auth/dataportability.maps.questions_answers", // "https://www.googleapis.com/auth/dataportability.maps.reviews", // "https://www.googleapis.com/auth/dataportability.maps.starred_places", // "https://www.googleapis.com/auth/dataportability.myactivity.maps", + // "https://www.googleapis.com/auth/dataportability.myactivity.myadcenter", + // "https://www.googleapis.com/auth/dataportability.myactivity.play", // "https://www.googleapis.com/auth/dataportability.myactivity.search", // "https://www.googleapis.com/auth/dataportability.myactivity.shopping", // "https://www.googleapis.com/auth/dataportability.myactivity.youtube", + // "https://www.googleapis.com/auth/dataportability.mymaps.maps", + // "https://www.googleapis.com/auth/dataportability.order_reserve.purchases_reservations", + // "https://www.googleapis.com/auth/dataportability.play.devices", + // "https://www.googleapis.com/auth/dataportability.play.grouping", + // "https://www.googleapis.com/auth/dataportability.play.installs", + // "https://www.googleapis.com/auth/dataportability.play.library", + // "https://www.googleapis.com/auth/dataportability.play.playpoints", + // "https://www.googleapis.com/auth/dataportability.play.promotions", + // "https://www.googleapis.com/auth/dataportability.play.purchases", + // "https://www.googleapis.com/auth/dataportability.play.redemptions", + // "https://www.googleapis.com/auth/dataportability.play.subscriptions", + // "https://www.googleapis.com/auth/dataportability.play.usersettings", // "https://www.googleapis.com/auth/dataportability.saved.collections", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.reviews_and_stars", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.streaming_video_providers", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.thumbs", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.watched", + // "https://www.googleapis.com/auth/dataportability.searchnotifications.settings", + // "https://www.googleapis.com/auth/dataportability.searchnotifications.subscriptions", // "https://www.googleapis.com/auth/dataportability.shopping.addresses", // "https://www.googleapis.com/auth/dataportability.shopping.reviews", + // "https://www.googleapis.com/auth/dataportability.streetview.imagery", // "https://www.googleapis.com/auth/dataportability.youtube.channel", // "https://www.googleapis.com/auth/dataportability.youtube.comments", // "https://www.googleapis.com/auth/dataportability.youtube.live_chat", @@ -831,6 +985,7 @@ func (c *ArchiveJobsRetryCall) Do(opts ...googleapi.CallOption) (*RetryPortabili // "$ref": "RetryPortabilityArchiveResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/dataportability.alerts.subscriptions", // "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", // "https://www.googleapis.com/auth/dataportability.chrome.autofill", // "https://www.googleapis.com/auth/dataportability.chrome.bookmarks", @@ -839,20 +994,48 @@ func (c *ArchiveJobsRetryCall) Do(opts ...googleapi.CallOption) (*RetryPortabili // "https://www.googleapis.com/auth/dataportability.chrome.history", // "https://www.googleapis.com/auth/dataportability.chrome.reading_list", // "https://www.googleapis.com/auth/dataportability.chrome.settings", + // "https://www.googleapis.com/auth/dataportability.discover.follows", + // "https://www.googleapis.com/auth/dataportability.discover.likes", + // "https://www.googleapis.com/auth/dataportability.discover.not_interested", + // "https://www.googleapis.com/auth/dataportability.maps.aliased_places", // "https://www.googleapis.com/auth/dataportability.maps.commute_routes", // "https://www.googleapis.com/auth/dataportability.maps.commute_settings", // "https://www.googleapis.com/auth/dataportability.maps.ev_profile", + // "https://www.googleapis.com/auth/dataportability.maps.factual_contributions", // "https://www.googleapis.com/auth/dataportability.maps.offering_contributions", // "https://www.googleapis.com/auth/dataportability.maps.photos_videos", + // "https://www.googleapis.com/auth/dataportability.maps.post_trip_feedback", + // "https://www.googleapis.com/auth/dataportability.maps.questions_answers", // "https://www.googleapis.com/auth/dataportability.maps.reviews", // "https://www.googleapis.com/auth/dataportability.maps.starred_places", // "https://www.googleapis.com/auth/dataportability.myactivity.maps", + // "https://www.googleapis.com/auth/dataportability.myactivity.myadcenter", + // "https://www.googleapis.com/auth/dataportability.myactivity.play", // "https://www.googleapis.com/auth/dataportability.myactivity.search", // "https://www.googleapis.com/auth/dataportability.myactivity.shopping", // "https://www.googleapis.com/auth/dataportability.myactivity.youtube", + // "https://www.googleapis.com/auth/dataportability.mymaps.maps", + // "https://www.googleapis.com/auth/dataportability.order_reserve.purchases_reservations", + // "https://www.googleapis.com/auth/dataportability.play.devices", + // "https://www.googleapis.com/auth/dataportability.play.grouping", + // "https://www.googleapis.com/auth/dataportability.play.installs", + // "https://www.googleapis.com/auth/dataportability.play.library", + // "https://www.googleapis.com/auth/dataportability.play.playpoints", + // "https://www.googleapis.com/auth/dataportability.play.promotions", + // "https://www.googleapis.com/auth/dataportability.play.purchases", + // "https://www.googleapis.com/auth/dataportability.play.redemptions", + // "https://www.googleapis.com/auth/dataportability.play.subscriptions", + // "https://www.googleapis.com/auth/dataportability.play.usersettings", // "https://www.googleapis.com/auth/dataportability.saved.collections", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.reviews_and_stars", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.streaming_video_providers", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.thumbs", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.watched", + // "https://www.googleapis.com/auth/dataportability.searchnotifications.settings", + // "https://www.googleapis.com/auth/dataportability.searchnotifications.subscriptions", // "https://www.googleapis.com/auth/dataportability.shopping.addresses", // "https://www.googleapis.com/auth/dataportability.shopping.reviews", + // "https://www.googleapis.com/auth/dataportability.streetview.imagery", // "https://www.googleapis.com/auth/dataportability.youtube.channel", // "https://www.googleapis.com/auth/dataportability.youtube.comments", // "https://www.googleapis.com/auth/dataportability.youtube.live_chat", @@ -996,6 +1179,7 @@ func (c *AuthorizationResetCall) Do(opts ...googleapi.CallOption) (*Empty, error // "$ref": "Empty" // }, // "scopes": [ + // "https://www.googleapis.com/auth/dataportability.alerts.subscriptions", // "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", // "https://www.googleapis.com/auth/dataportability.chrome.autofill", // "https://www.googleapis.com/auth/dataportability.chrome.bookmarks", @@ -1004,20 +1188,48 @@ func (c *AuthorizationResetCall) Do(opts ...googleapi.CallOption) (*Empty, error // "https://www.googleapis.com/auth/dataportability.chrome.history", // "https://www.googleapis.com/auth/dataportability.chrome.reading_list", // "https://www.googleapis.com/auth/dataportability.chrome.settings", + // "https://www.googleapis.com/auth/dataportability.discover.follows", + // "https://www.googleapis.com/auth/dataportability.discover.likes", + // "https://www.googleapis.com/auth/dataportability.discover.not_interested", + // "https://www.googleapis.com/auth/dataportability.maps.aliased_places", // "https://www.googleapis.com/auth/dataportability.maps.commute_routes", // "https://www.googleapis.com/auth/dataportability.maps.commute_settings", // "https://www.googleapis.com/auth/dataportability.maps.ev_profile", + // "https://www.googleapis.com/auth/dataportability.maps.factual_contributions", // "https://www.googleapis.com/auth/dataportability.maps.offering_contributions", // "https://www.googleapis.com/auth/dataportability.maps.photos_videos", + // "https://www.googleapis.com/auth/dataportability.maps.post_trip_feedback", + // "https://www.googleapis.com/auth/dataportability.maps.questions_answers", // "https://www.googleapis.com/auth/dataportability.maps.reviews", // "https://www.googleapis.com/auth/dataportability.maps.starred_places", // "https://www.googleapis.com/auth/dataportability.myactivity.maps", + // "https://www.googleapis.com/auth/dataportability.myactivity.myadcenter", + // "https://www.googleapis.com/auth/dataportability.myactivity.play", // "https://www.googleapis.com/auth/dataportability.myactivity.search", // "https://www.googleapis.com/auth/dataportability.myactivity.shopping", // "https://www.googleapis.com/auth/dataportability.myactivity.youtube", + // "https://www.googleapis.com/auth/dataportability.mymaps.maps", + // "https://www.googleapis.com/auth/dataportability.order_reserve.purchases_reservations", + // "https://www.googleapis.com/auth/dataportability.play.devices", + // "https://www.googleapis.com/auth/dataportability.play.grouping", + // "https://www.googleapis.com/auth/dataportability.play.installs", + // "https://www.googleapis.com/auth/dataportability.play.library", + // "https://www.googleapis.com/auth/dataportability.play.playpoints", + // "https://www.googleapis.com/auth/dataportability.play.promotions", + // "https://www.googleapis.com/auth/dataportability.play.purchases", + // "https://www.googleapis.com/auth/dataportability.play.redemptions", + // "https://www.googleapis.com/auth/dataportability.play.subscriptions", + // "https://www.googleapis.com/auth/dataportability.play.usersettings", // "https://www.googleapis.com/auth/dataportability.saved.collections", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.reviews_and_stars", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.streaming_video_providers", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.thumbs", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.watched", + // "https://www.googleapis.com/auth/dataportability.searchnotifications.settings", + // "https://www.googleapis.com/auth/dataportability.searchnotifications.subscriptions", // "https://www.googleapis.com/auth/dataportability.shopping.addresses", // "https://www.googleapis.com/auth/dataportability.shopping.reviews", + // "https://www.googleapis.com/auth/dataportability.streetview.imagery", // "https://www.googleapis.com/auth/dataportability.youtube.channel", // "https://www.googleapis.com/auth/dataportability.youtube.comments", // "https://www.googleapis.com/auth/dataportability.youtube.live_chat", @@ -1157,6 +1369,7 @@ func (c *PortabilityArchiveInitiateCall) Do(opts ...googleapi.CallOption) (*Init // "$ref": "InitiatePortabilityArchiveResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/dataportability.alerts.subscriptions", // "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", // "https://www.googleapis.com/auth/dataportability.chrome.autofill", // "https://www.googleapis.com/auth/dataportability.chrome.bookmarks", @@ -1165,20 +1378,48 @@ func (c *PortabilityArchiveInitiateCall) Do(opts ...googleapi.CallOption) (*Init // "https://www.googleapis.com/auth/dataportability.chrome.history", // "https://www.googleapis.com/auth/dataportability.chrome.reading_list", // "https://www.googleapis.com/auth/dataportability.chrome.settings", + // "https://www.googleapis.com/auth/dataportability.discover.follows", + // "https://www.googleapis.com/auth/dataportability.discover.likes", + // "https://www.googleapis.com/auth/dataportability.discover.not_interested", + // "https://www.googleapis.com/auth/dataportability.maps.aliased_places", // "https://www.googleapis.com/auth/dataportability.maps.commute_routes", // "https://www.googleapis.com/auth/dataportability.maps.commute_settings", // "https://www.googleapis.com/auth/dataportability.maps.ev_profile", + // "https://www.googleapis.com/auth/dataportability.maps.factual_contributions", // "https://www.googleapis.com/auth/dataportability.maps.offering_contributions", // "https://www.googleapis.com/auth/dataportability.maps.photos_videos", + // "https://www.googleapis.com/auth/dataportability.maps.post_trip_feedback", + // "https://www.googleapis.com/auth/dataportability.maps.questions_answers", // "https://www.googleapis.com/auth/dataportability.maps.reviews", // "https://www.googleapis.com/auth/dataportability.maps.starred_places", // "https://www.googleapis.com/auth/dataportability.myactivity.maps", + // "https://www.googleapis.com/auth/dataportability.myactivity.myadcenter", + // "https://www.googleapis.com/auth/dataportability.myactivity.play", // "https://www.googleapis.com/auth/dataportability.myactivity.search", // "https://www.googleapis.com/auth/dataportability.myactivity.shopping", // "https://www.googleapis.com/auth/dataportability.myactivity.youtube", + // "https://www.googleapis.com/auth/dataportability.mymaps.maps", + // "https://www.googleapis.com/auth/dataportability.order_reserve.purchases_reservations", + // "https://www.googleapis.com/auth/dataportability.play.devices", + // "https://www.googleapis.com/auth/dataportability.play.grouping", + // "https://www.googleapis.com/auth/dataportability.play.installs", + // "https://www.googleapis.com/auth/dataportability.play.library", + // "https://www.googleapis.com/auth/dataportability.play.playpoints", + // "https://www.googleapis.com/auth/dataportability.play.promotions", + // "https://www.googleapis.com/auth/dataportability.play.purchases", + // "https://www.googleapis.com/auth/dataportability.play.redemptions", + // "https://www.googleapis.com/auth/dataportability.play.subscriptions", + // "https://www.googleapis.com/auth/dataportability.play.usersettings", // "https://www.googleapis.com/auth/dataportability.saved.collections", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.reviews_and_stars", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.streaming_video_providers", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.thumbs", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.watched", + // "https://www.googleapis.com/auth/dataportability.searchnotifications.settings", + // "https://www.googleapis.com/auth/dataportability.searchnotifications.subscriptions", // "https://www.googleapis.com/auth/dataportability.shopping.addresses", // "https://www.googleapis.com/auth/dataportability.shopping.reviews", + // "https://www.googleapis.com/auth/dataportability.streetview.imagery", // "https://www.googleapis.com/auth/dataportability.youtube.channel", // "https://www.googleapis.com/auth/dataportability.youtube.comments", // "https://www.googleapis.com/auth/dataportability.youtube.live_chat", diff --git a/dataportability/v1beta/dataportability-api.json b/dataportability/v1beta/dataportability-api.json index 035637e3242..230425e6c6f 100644 --- a/dataportability/v1beta/dataportability-api.json +++ b/dataportability/v1beta/dataportability-api.json @@ -2,6 +2,9 @@ "auth": { "oauth2": { "scopes": { + "https://www.googleapis.com/auth/dataportability.alerts.subscriptions": { + "description": "Move a copy of the Google Alerts subscriptions you created." + }, "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations": { "description": "Move a copy of messages between you and the businesses you have conversations with across Google services." }, @@ -26,6 +29,18 @@ "https://www.googleapis.com/auth/dataportability.chrome.settings": { "description": "Move a copy of your settings in Chrome." }, + "https://www.googleapis.com/auth/dataportability.discover.follows": { + "description": "Move a copy of searches and sites you follow, saved by Discover." + }, + "https://www.googleapis.com/auth/dataportability.discover.likes": { + "description": "Move a copy of links to your liked documents, saved by Discover." + }, + "https://www.googleapis.com/auth/dataportability.discover.not_interested": { + "description": "Move a copy of content you marked as not interested, saved by Discover." + }, + "https://www.googleapis.com/auth/dataportability.maps.aliased_places": { + "description": "Move a copy of the places you labeled on Maps." + }, "https://www.googleapis.com/auth/dataportability.maps.commute_routes": { "description": "Move a copy of your pinned trips on Maps." }, @@ -35,12 +50,21 @@ "https://www.googleapis.com/auth/dataportability.maps.ev_profile": { "description": "Move a copy of your electric vehicle profile on Maps." }, + "https://www.googleapis.com/auth/dataportability.maps.factual_contributions": { + "description": "Move a copy of the corrections you made to places or map information on Maps." + }, "https://www.googleapis.com/auth/dataportability.maps.offering_contributions": { "description": "Move a copy of your updates to places on Maps." }, "https://www.googleapis.com/auth/dataportability.maps.photos_videos": { "description": "Move a copy of the photos and videos you posted on Maps." }, + "https://www.googleapis.com/auth/dataportability.maps.post_trip_feedback": { + "description": "Move a copy of feedback you gave after completing trips using Maps directions." + }, + "https://www.googleapis.com/auth/dataportability.maps.questions_answers": { + "description": "Move a copy of the questions and answers you posted on Maps." + }, "https://www.googleapis.com/auth/dataportability.maps.reviews": { "description": "Move a copy of your reviews and posts on Maps." }, @@ -50,6 +74,12 @@ "https://www.googleapis.com/auth/dataportability.myactivity.maps": { "description": "Move a copy of your Maps activity." }, + "https://www.googleapis.com/auth/dataportability.myactivity.myadcenter": { + "description": "Move a copy of your My Ad Center activity." + }, + "https://www.googleapis.com/auth/dataportability.myactivity.play": { + "description": "Move a copy of your Google Play activity." + }, "https://www.googleapis.com/auth/dataportability.myactivity.search": { "description": "Move a copy of your Google Search activity." }, @@ -59,15 +89,72 @@ "https://www.googleapis.com/auth/dataportability.myactivity.youtube": { "description": "Move a copy of your YouTube activity." }, + "https://www.googleapis.com/auth/dataportability.mymaps.maps": { + "description": "Move a copy of the maps you created in My Maps." + }, + "https://www.googleapis.com/auth/dataportability.order_reserve.purchases_reservations": { + "description": "Move a copy of your food purchase and reservation activity." + }, + "https://www.googleapis.com/auth/dataportability.play.devices": { + "description": "Move a copy of information about your devices with Google Play Store installed." + }, + "https://www.googleapis.com/auth/dataportability.play.grouping": { + "description": "Move a copy of your Google Play Store Grouping tags created by app developers." + }, + "https://www.googleapis.com/auth/dataportability.play.installs": { + "description": "Move a copy of your Google Play Store app installations." + }, + "https://www.googleapis.com/auth/dataportability.play.library": { + "description": "Move a copy of your Google Play Store downloads, including books, games, and apps." + }, + "https://www.googleapis.com/auth/dataportability.play.playpoints": { + "description": "Move a copy of information about your Google Play Store Points." + }, + "https://www.googleapis.com/auth/dataportability.play.promotions": { + "description": "Move a copy of information about your Google Play Store promotions." + }, + "https://www.googleapis.com/auth/dataportability.play.purchases": { + "description": "Move a copy of your Google Play Store purchases." + }, + "https://www.googleapis.com/auth/dataportability.play.redemptions": { + "description": "Move a copy of your Google Play Store redemption activities." + }, + "https://www.googleapis.com/auth/dataportability.play.subscriptions": { + "description": "Move a copy of your Google Play Store subscriptions." + }, + "https://www.googleapis.com/auth/dataportability.play.usersettings": { + "description": "Move a copy of your Google Play Store user settings and preferences." + }, "https://www.googleapis.com/auth/dataportability.saved.collections": { "description": "Move a copy of your saved links, images, places, and collections from your use of Google services." }, + "https://www.googleapis.com/auth/dataportability.search_ugc.media.reviews_and_stars": { + "description": "Move a copy of your media reviews on Google Search." + }, + "https://www.googleapis.com/auth/dataportability.search_ugc.media.streaming_video_providers": { + "description": "Move a copy of your self-reported video streaming provider preferences from Google Search and Google TV." + }, + "https://www.googleapis.com/auth/dataportability.search_ugc.media.thumbs": { + "description": "Move a copy of your indicated thumbs up and thumbs down on media in Google Search and Google TV." + }, + "https://www.googleapis.com/auth/dataportability.search_ugc.media.watched": { + "description": "Move a copy of information about the movies and TV shows you marked as watched on Google Search and Google TV." + }, + "https://www.googleapis.com/auth/dataportability.searchnotifications.settings": { + "description": "Move a copy of your notification settings on the Google Search app." + }, + "https://www.googleapis.com/auth/dataportability.searchnotifications.subscriptions": { + "description": "Move a copy of your notification subscriptions on Google Search app." + }, "https://www.googleapis.com/auth/dataportability.shopping.addresses": { "description": "Move a copy of your shipping information on Shopping." }, "https://www.googleapis.com/auth/dataportability.shopping.reviews": { "description": "Move a copy of reviews you wrote about products or online stores on Google Search." }, + "https://www.googleapis.com/auth/dataportability.streetview.imagery": { + "description": "Move a copy of the images and videos you uploaded to Street View." + }, "https://www.googleapis.com/auth/dataportability.youtube.channel": { "description": "Move a copy of information about your YouTube channel." }, @@ -234,6 +321,7 @@ "$ref": "PortabilityArchiveState" }, "scopes": [ + "https://www.googleapis.com/auth/dataportability.alerts.subscriptions", "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", "https://www.googleapis.com/auth/dataportability.chrome.autofill", "https://www.googleapis.com/auth/dataportability.chrome.bookmarks", @@ -242,20 +330,48 @@ "https://www.googleapis.com/auth/dataportability.chrome.history", "https://www.googleapis.com/auth/dataportability.chrome.reading_list", "https://www.googleapis.com/auth/dataportability.chrome.settings", + "https://www.googleapis.com/auth/dataportability.discover.follows", + "https://www.googleapis.com/auth/dataportability.discover.likes", + "https://www.googleapis.com/auth/dataportability.discover.not_interested", + "https://www.googleapis.com/auth/dataportability.maps.aliased_places", "https://www.googleapis.com/auth/dataportability.maps.commute_routes", "https://www.googleapis.com/auth/dataportability.maps.commute_settings", "https://www.googleapis.com/auth/dataportability.maps.ev_profile", + "https://www.googleapis.com/auth/dataportability.maps.factual_contributions", "https://www.googleapis.com/auth/dataportability.maps.offering_contributions", "https://www.googleapis.com/auth/dataportability.maps.photos_videos", + "https://www.googleapis.com/auth/dataportability.maps.post_trip_feedback", + "https://www.googleapis.com/auth/dataportability.maps.questions_answers", "https://www.googleapis.com/auth/dataportability.maps.reviews", "https://www.googleapis.com/auth/dataportability.maps.starred_places", "https://www.googleapis.com/auth/dataportability.myactivity.maps", + "https://www.googleapis.com/auth/dataportability.myactivity.myadcenter", + "https://www.googleapis.com/auth/dataportability.myactivity.play", "https://www.googleapis.com/auth/dataportability.myactivity.search", "https://www.googleapis.com/auth/dataportability.myactivity.shopping", "https://www.googleapis.com/auth/dataportability.myactivity.youtube", + "https://www.googleapis.com/auth/dataportability.mymaps.maps", + "https://www.googleapis.com/auth/dataportability.order_reserve.purchases_reservations", + "https://www.googleapis.com/auth/dataportability.play.devices", + "https://www.googleapis.com/auth/dataportability.play.grouping", + "https://www.googleapis.com/auth/dataportability.play.installs", + "https://www.googleapis.com/auth/dataportability.play.library", + "https://www.googleapis.com/auth/dataportability.play.playpoints", + "https://www.googleapis.com/auth/dataportability.play.promotions", + "https://www.googleapis.com/auth/dataportability.play.purchases", + "https://www.googleapis.com/auth/dataportability.play.redemptions", + "https://www.googleapis.com/auth/dataportability.play.subscriptions", + "https://www.googleapis.com/auth/dataportability.play.usersettings", "https://www.googleapis.com/auth/dataportability.saved.collections", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.reviews_and_stars", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.streaming_video_providers", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.thumbs", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.watched", + "https://www.googleapis.com/auth/dataportability.searchnotifications.settings", + "https://www.googleapis.com/auth/dataportability.searchnotifications.subscriptions", "https://www.googleapis.com/auth/dataportability.shopping.addresses", "https://www.googleapis.com/auth/dataportability.shopping.reviews", + "https://www.googleapis.com/auth/dataportability.streetview.imagery", "https://www.googleapis.com/auth/dataportability.youtube.channel", "https://www.googleapis.com/auth/dataportability.youtube.comments", "https://www.googleapis.com/auth/dataportability.youtube.live_chat", @@ -297,6 +413,7 @@ "$ref": "RetryPortabilityArchiveResponse" }, "scopes": [ + "https://www.googleapis.com/auth/dataportability.alerts.subscriptions", "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", "https://www.googleapis.com/auth/dataportability.chrome.autofill", "https://www.googleapis.com/auth/dataportability.chrome.bookmarks", @@ -305,20 +422,48 @@ "https://www.googleapis.com/auth/dataportability.chrome.history", "https://www.googleapis.com/auth/dataportability.chrome.reading_list", "https://www.googleapis.com/auth/dataportability.chrome.settings", + "https://www.googleapis.com/auth/dataportability.discover.follows", + "https://www.googleapis.com/auth/dataportability.discover.likes", + "https://www.googleapis.com/auth/dataportability.discover.not_interested", + "https://www.googleapis.com/auth/dataportability.maps.aliased_places", "https://www.googleapis.com/auth/dataportability.maps.commute_routes", "https://www.googleapis.com/auth/dataportability.maps.commute_settings", "https://www.googleapis.com/auth/dataportability.maps.ev_profile", + "https://www.googleapis.com/auth/dataportability.maps.factual_contributions", "https://www.googleapis.com/auth/dataportability.maps.offering_contributions", "https://www.googleapis.com/auth/dataportability.maps.photos_videos", + "https://www.googleapis.com/auth/dataportability.maps.post_trip_feedback", + "https://www.googleapis.com/auth/dataportability.maps.questions_answers", "https://www.googleapis.com/auth/dataportability.maps.reviews", "https://www.googleapis.com/auth/dataportability.maps.starred_places", "https://www.googleapis.com/auth/dataportability.myactivity.maps", + "https://www.googleapis.com/auth/dataportability.myactivity.myadcenter", + "https://www.googleapis.com/auth/dataportability.myactivity.play", "https://www.googleapis.com/auth/dataportability.myactivity.search", "https://www.googleapis.com/auth/dataportability.myactivity.shopping", "https://www.googleapis.com/auth/dataportability.myactivity.youtube", + "https://www.googleapis.com/auth/dataportability.mymaps.maps", + "https://www.googleapis.com/auth/dataportability.order_reserve.purchases_reservations", + "https://www.googleapis.com/auth/dataportability.play.devices", + "https://www.googleapis.com/auth/dataportability.play.grouping", + "https://www.googleapis.com/auth/dataportability.play.installs", + "https://www.googleapis.com/auth/dataportability.play.library", + "https://www.googleapis.com/auth/dataportability.play.playpoints", + "https://www.googleapis.com/auth/dataportability.play.promotions", + "https://www.googleapis.com/auth/dataportability.play.purchases", + "https://www.googleapis.com/auth/dataportability.play.redemptions", + "https://www.googleapis.com/auth/dataportability.play.subscriptions", + "https://www.googleapis.com/auth/dataportability.play.usersettings", "https://www.googleapis.com/auth/dataportability.saved.collections", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.reviews_and_stars", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.streaming_video_providers", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.thumbs", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.watched", + "https://www.googleapis.com/auth/dataportability.searchnotifications.settings", + "https://www.googleapis.com/auth/dataportability.searchnotifications.subscriptions", "https://www.googleapis.com/auth/dataportability.shopping.addresses", "https://www.googleapis.com/auth/dataportability.shopping.reviews", + "https://www.googleapis.com/auth/dataportability.streetview.imagery", "https://www.googleapis.com/auth/dataportability.youtube.channel", "https://www.googleapis.com/auth/dataportability.youtube.comments", "https://www.googleapis.com/auth/dataportability.youtube.live_chat", @@ -354,6 +499,7 @@ "$ref": "Empty" }, "scopes": [ + "https://www.googleapis.com/auth/dataportability.alerts.subscriptions", "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", "https://www.googleapis.com/auth/dataportability.chrome.autofill", "https://www.googleapis.com/auth/dataportability.chrome.bookmarks", @@ -362,20 +508,48 @@ "https://www.googleapis.com/auth/dataportability.chrome.history", "https://www.googleapis.com/auth/dataportability.chrome.reading_list", "https://www.googleapis.com/auth/dataportability.chrome.settings", + "https://www.googleapis.com/auth/dataportability.discover.follows", + "https://www.googleapis.com/auth/dataportability.discover.likes", + "https://www.googleapis.com/auth/dataportability.discover.not_interested", + "https://www.googleapis.com/auth/dataportability.maps.aliased_places", "https://www.googleapis.com/auth/dataportability.maps.commute_routes", "https://www.googleapis.com/auth/dataportability.maps.commute_settings", "https://www.googleapis.com/auth/dataportability.maps.ev_profile", + "https://www.googleapis.com/auth/dataportability.maps.factual_contributions", "https://www.googleapis.com/auth/dataportability.maps.offering_contributions", "https://www.googleapis.com/auth/dataportability.maps.photos_videos", + "https://www.googleapis.com/auth/dataportability.maps.post_trip_feedback", + "https://www.googleapis.com/auth/dataportability.maps.questions_answers", "https://www.googleapis.com/auth/dataportability.maps.reviews", "https://www.googleapis.com/auth/dataportability.maps.starred_places", "https://www.googleapis.com/auth/dataportability.myactivity.maps", + "https://www.googleapis.com/auth/dataportability.myactivity.myadcenter", + "https://www.googleapis.com/auth/dataportability.myactivity.play", "https://www.googleapis.com/auth/dataportability.myactivity.search", "https://www.googleapis.com/auth/dataportability.myactivity.shopping", "https://www.googleapis.com/auth/dataportability.myactivity.youtube", + "https://www.googleapis.com/auth/dataportability.mymaps.maps", + "https://www.googleapis.com/auth/dataportability.order_reserve.purchases_reservations", + "https://www.googleapis.com/auth/dataportability.play.devices", + "https://www.googleapis.com/auth/dataportability.play.grouping", + "https://www.googleapis.com/auth/dataportability.play.installs", + "https://www.googleapis.com/auth/dataportability.play.library", + "https://www.googleapis.com/auth/dataportability.play.playpoints", + "https://www.googleapis.com/auth/dataportability.play.promotions", + "https://www.googleapis.com/auth/dataportability.play.purchases", + "https://www.googleapis.com/auth/dataportability.play.redemptions", + "https://www.googleapis.com/auth/dataportability.play.subscriptions", + "https://www.googleapis.com/auth/dataportability.play.usersettings", "https://www.googleapis.com/auth/dataportability.saved.collections", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.reviews_and_stars", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.streaming_video_providers", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.thumbs", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.watched", + "https://www.googleapis.com/auth/dataportability.searchnotifications.settings", + "https://www.googleapis.com/auth/dataportability.searchnotifications.subscriptions", "https://www.googleapis.com/auth/dataportability.shopping.addresses", "https://www.googleapis.com/auth/dataportability.shopping.reviews", + "https://www.googleapis.com/auth/dataportability.streetview.imagery", "https://www.googleapis.com/auth/dataportability.youtube.channel", "https://www.googleapis.com/auth/dataportability.youtube.comments", "https://www.googleapis.com/auth/dataportability.youtube.live_chat", @@ -411,6 +585,7 @@ "$ref": "InitiatePortabilityArchiveResponse" }, "scopes": [ + "https://www.googleapis.com/auth/dataportability.alerts.subscriptions", "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", "https://www.googleapis.com/auth/dataportability.chrome.autofill", "https://www.googleapis.com/auth/dataportability.chrome.bookmarks", @@ -419,20 +594,48 @@ "https://www.googleapis.com/auth/dataportability.chrome.history", "https://www.googleapis.com/auth/dataportability.chrome.reading_list", "https://www.googleapis.com/auth/dataportability.chrome.settings", + "https://www.googleapis.com/auth/dataportability.discover.follows", + "https://www.googleapis.com/auth/dataportability.discover.likes", + "https://www.googleapis.com/auth/dataportability.discover.not_interested", + "https://www.googleapis.com/auth/dataportability.maps.aliased_places", "https://www.googleapis.com/auth/dataportability.maps.commute_routes", "https://www.googleapis.com/auth/dataportability.maps.commute_settings", "https://www.googleapis.com/auth/dataportability.maps.ev_profile", + "https://www.googleapis.com/auth/dataportability.maps.factual_contributions", "https://www.googleapis.com/auth/dataportability.maps.offering_contributions", "https://www.googleapis.com/auth/dataportability.maps.photos_videos", + "https://www.googleapis.com/auth/dataportability.maps.post_trip_feedback", + "https://www.googleapis.com/auth/dataportability.maps.questions_answers", "https://www.googleapis.com/auth/dataportability.maps.reviews", "https://www.googleapis.com/auth/dataportability.maps.starred_places", "https://www.googleapis.com/auth/dataportability.myactivity.maps", + "https://www.googleapis.com/auth/dataportability.myactivity.myadcenter", + "https://www.googleapis.com/auth/dataportability.myactivity.play", "https://www.googleapis.com/auth/dataportability.myactivity.search", "https://www.googleapis.com/auth/dataportability.myactivity.shopping", "https://www.googleapis.com/auth/dataportability.myactivity.youtube", + "https://www.googleapis.com/auth/dataportability.mymaps.maps", + "https://www.googleapis.com/auth/dataportability.order_reserve.purchases_reservations", + "https://www.googleapis.com/auth/dataportability.play.devices", + "https://www.googleapis.com/auth/dataportability.play.grouping", + "https://www.googleapis.com/auth/dataportability.play.installs", + "https://www.googleapis.com/auth/dataportability.play.library", + "https://www.googleapis.com/auth/dataportability.play.playpoints", + "https://www.googleapis.com/auth/dataportability.play.promotions", + "https://www.googleapis.com/auth/dataportability.play.purchases", + "https://www.googleapis.com/auth/dataportability.play.redemptions", + "https://www.googleapis.com/auth/dataportability.play.subscriptions", + "https://www.googleapis.com/auth/dataportability.play.usersettings", "https://www.googleapis.com/auth/dataportability.saved.collections", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.reviews_and_stars", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.streaming_video_providers", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.thumbs", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.watched", + "https://www.googleapis.com/auth/dataportability.searchnotifications.settings", + "https://www.googleapis.com/auth/dataportability.searchnotifications.subscriptions", "https://www.googleapis.com/auth/dataportability.shopping.addresses", "https://www.googleapis.com/auth/dataportability.shopping.reviews", + "https://www.googleapis.com/auth/dataportability.streetview.imagery", "https://www.googleapis.com/auth/dataportability.youtube.channel", "https://www.googleapis.com/auth/dataportability.youtube.comments", "https://www.googleapis.com/auth/dataportability.youtube.live_chat", @@ -452,7 +655,7 @@ } } }, - "revision": "20240303", + "revision": "20240319", "rootUrl": "https://dataportability.googleapis.com/", "schemas": { "Empty": { diff --git a/dataportability/v1beta/dataportability-gen.go b/dataportability/v1beta/dataportability-gen.go index 377e1426eb1..6c5b136cbce 100644 --- a/dataportability/v1beta/dataportability-gen.go +++ b/dataportability/v1beta/dataportability-gen.go @@ -101,6 +101,9 @@ const defaultUniverseDomain = "googleapis.com" // OAuth2 scopes used by this API. const ( + // Move a copy of the Google Alerts subscriptions you created. + DataportabilityAlertsSubscriptionsScope = "https://www.googleapis.com/auth/dataportability.alerts.subscriptions" + // Move a copy of messages between you and the businesses you have // conversations with across Google services. DataportabilityBusinessmessagingConversationsScope = "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations" @@ -127,6 +130,19 @@ const ( // Move a copy of your settings in Chrome. DataportabilityChromeSettingsScope = "https://www.googleapis.com/auth/dataportability.chrome.settings" + // Move a copy of searches and sites you follow, saved by Discover. + DataportabilityDiscoverFollowsScope = "https://www.googleapis.com/auth/dataportability.discover.follows" + + // Move a copy of links to your liked documents, saved by Discover. + DataportabilityDiscoverLikesScope = "https://www.googleapis.com/auth/dataportability.discover.likes" + + // Move a copy of content you marked as not interested, saved by + // Discover. + DataportabilityDiscoverNotInterestedScope = "https://www.googleapis.com/auth/dataportability.discover.not_interested" + + // Move a copy of the places you labeled on Maps. + DataportabilityMapsAliasedPlacesScope = "https://www.googleapis.com/auth/dataportability.maps.aliased_places" + // Move a copy of your pinned trips on Maps. DataportabilityMapsCommuteRoutesScope = "https://www.googleapis.com/auth/dataportability.maps.commute_routes" @@ -136,12 +152,23 @@ const ( // Move a copy of your electric vehicle profile on Maps. DataportabilityMapsEvProfileScope = "https://www.googleapis.com/auth/dataportability.maps.ev_profile" + // Move a copy of the corrections you made to places or map information + // on Maps. + DataportabilityMapsFactualContributionsScope = "https://www.googleapis.com/auth/dataportability.maps.factual_contributions" + // Move a copy of your updates to places on Maps. DataportabilityMapsOfferingContributionsScope = "https://www.googleapis.com/auth/dataportability.maps.offering_contributions" // Move a copy of the photos and videos you posted on Maps. DataportabilityMapsPhotosVideosScope = "https://www.googleapis.com/auth/dataportability.maps.photos_videos" + // Move a copy of feedback you gave after completing trips using Maps + // directions. + DataportabilityMapsPostTripFeedbackScope = "https://www.googleapis.com/auth/dataportability.maps.post_trip_feedback" + + // Move a copy of the questions and answers you posted on Maps. + DataportabilityMapsQuestionsAnswersScope = "https://www.googleapis.com/auth/dataportability.maps.questions_answers" + // Move a copy of your reviews and posts on Maps. DataportabilityMapsReviewsScope = "https://www.googleapis.com/auth/dataportability.maps.reviews" @@ -151,6 +178,12 @@ const ( // Move a copy of your Maps activity. DataportabilityMyactivityMapsScope = "https://www.googleapis.com/auth/dataportability.myactivity.maps" + // Move a copy of your My Ad Center activity. + DataportabilityMyactivityMyadcenterScope = "https://www.googleapis.com/auth/dataportability.myactivity.myadcenter" + + // Move a copy of your Google Play activity. + DataportabilityMyactivityPlayScope = "https://www.googleapis.com/auth/dataportability.myactivity.play" + // Move a copy of your Google Search activity. DataportabilityMyactivitySearchScope = "https://www.googleapis.com/auth/dataportability.myactivity.search" @@ -160,10 +193,70 @@ const ( // Move a copy of your YouTube activity. DataportabilityMyactivityYoutubeScope = "https://www.googleapis.com/auth/dataportability.myactivity.youtube" + // Move a copy of the maps you created in My Maps. + DataportabilityMymapsMapsScope = "https://www.googleapis.com/auth/dataportability.mymaps.maps" + + // Move a copy of your food purchase and reservation activity. + DataportabilityOrderReservePurchasesReservationsScope = "https://www.googleapis.com/auth/dataportability.order_reserve.purchases_reservations" + + // Move a copy of information about your devices with Google Play Store + // installed. + DataportabilityPlayDevicesScope = "https://www.googleapis.com/auth/dataportability.play.devices" + + // Move a copy of your Google Play Store Grouping tags created by app + // developers. + DataportabilityPlayGroupingScope = "https://www.googleapis.com/auth/dataportability.play.grouping" + + // Move a copy of your Google Play Store app installations. + DataportabilityPlayInstallsScope = "https://www.googleapis.com/auth/dataportability.play.installs" + + // Move a copy of your Google Play Store downloads, including books, + // games, and apps. + DataportabilityPlayLibraryScope = "https://www.googleapis.com/auth/dataportability.play.library" + + // Move a copy of information about your Google Play Store Points. + DataportabilityPlayPlaypointsScope = "https://www.googleapis.com/auth/dataportability.play.playpoints" + + // Move a copy of information about your Google Play Store promotions. + DataportabilityPlayPromotionsScope = "https://www.googleapis.com/auth/dataportability.play.promotions" + + // Move a copy of your Google Play Store purchases. + DataportabilityPlayPurchasesScope = "https://www.googleapis.com/auth/dataportability.play.purchases" + + // Move a copy of your Google Play Store redemption activities. + DataportabilityPlayRedemptionsScope = "https://www.googleapis.com/auth/dataportability.play.redemptions" + + // Move a copy of your Google Play Store subscriptions. + DataportabilityPlaySubscriptionsScope = "https://www.googleapis.com/auth/dataportability.play.subscriptions" + + // Move a copy of your Google Play Store user settings and preferences. + DataportabilityPlayUsersettingsScope = "https://www.googleapis.com/auth/dataportability.play.usersettings" + // Move a copy of your saved links, images, places, and collections from // your use of Google services. DataportabilitySavedCollectionsScope = "https://www.googleapis.com/auth/dataportability.saved.collections" + // Move a copy of your media reviews on Google Search. + DataportabilitySearchUgcMediaReviewsAndStarsScope = "https://www.googleapis.com/auth/dataportability.search_ugc.media.reviews_and_stars" + + // Move a copy of your self-reported video streaming provider + // preferences from Google Search and Google TV. + DataportabilitySearchUgcMediaStreamingVideoProvidersScope = "https://www.googleapis.com/auth/dataportability.search_ugc.media.streaming_video_providers" + + // Move a copy of your indicated thumbs up and thumbs down on media in + // Google Search and Google TV. + DataportabilitySearchUgcMediaThumbsScope = "https://www.googleapis.com/auth/dataportability.search_ugc.media.thumbs" + + // Move a copy of information about the movies and TV shows you marked + // as watched on Google Search and Google TV. + DataportabilitySearchUgcMediaWatchedScope = "https://www.googleapis.com/auth/dataportability.search_ugc.media.watched" + + // Move a copy of your notification settings on the Google Search app. + DataportabilitySearchnotificationsSettingsScope = "https://www.googleapis.com/auth/dataportability.searchnotifications.settings" + + // Move a copy of your notification subscriptions on Google Search app. + DataportabilitySearchnotificationsSubscriptionsScope = "https://www.googleapis.com/auth/dataportability.searchnotifications.subscriptions" + // Move a copy of your shipping information on Shopping. DataportabilityShoppingAddressesScope = "https://www.googleapis.com/auth/dataportability.shopping.addresses" @@ -171,6 +264,9 @@ const ( // Google Search. DataportabilityShoppingReviewsScope = "https://www.googleapis.com/auth/dataportability.shopping.reviews" + // Move a copy of the images and videos you uploaded to Street View. + DataportabilityStreetviewImageryScope = "https://www.googleapis.com/auth/dataportability.streetview.imagery" + // Move a copy of information about your YouTube channel. DataportabilityYoutubeChannelScope = "https://www.googleapis.com/auth/dataportability.youtube.channel" @@ -221,6 +317,7 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { scopesOption := internaloption.WithDefaultScopes( + "https://www.googleapis.com/auth/dataportability.alerts.subscriptions", "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", "https://www.googleapis.com/auth/dataportability.chrome.autofill", "https://www.googleapis.com/auth/dataportability.chrome.bookmarks", @@ -229,20 +326,48 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err "https://www.googleapis.com/auth/dataportability.chrome.history", "https://www.googleapis.com/auth/dataportability.chrome.reading_list", "https://www.googleapis.com/auth/dataportability.chrome.settings", + "https://www.googleapis.com/auth/dataportability.discover.follows", + "https://www.googleapis.com/auth/dataportability.discover.likes", + "https://www.googleapis.com/auth/dataportability.discover.not_interested", + "https://www.googleapis.com/auth/dataportability.maps.aliased_places", "https://www.googleapis.com/auth/dataportability.maps.commute_routes", "https://www.googleapis.com/auth/dataportability.maps.commute_settings", "https://www.googleapis.com/auth/dataportability.maps.ev_profile", + "https://www.googleapis.com/auth/dataportability.maps.factual_contributions", "https://www.googleapis.com/auth/dataportability.maps.offering_contributions", "https://www.googleapis.com/auth/dataportability.maps.photos_videos", + "https://www.googleapis.com/auth/dataportability.maps.post_trip_feedback", + "https://www.googleapis.com/auth/dataportability.maps.questions_answers", "https://www.googleapis.com/auth/dataportability.maps.reviews", "https://www.googleapis.com/auth/dataportability.maps.starred_places", "https://www.googleapis.com/auth/dataportability.myactivity.maps", + "https://www.googleapis.com/auth/dataportability.myactivity.myadcenter", + "https://www.googleapis.com/auth/dataportability.myactivity.play", "https://www.googleapis.com/auth/dataportability.myactivity.search", "https://www.googleapis.com/auth/dataportability.myactivity.shopping", "https://www.googleapis.com/auth/dataportability.myactivity.youtube", + "https://www.googleapis.com/auth/dataportability.mymaps.maps", + "https://www.googleapis.com/auth/dataportability.order_reserve.purchases_reservations", + "https://www.googleapis.com/auth/dataportability.play.devices", + "https://www.googleapis.com/auth/dataportability.play.grouping", + "https://www.googleapis.com/auth/dataportability.play.installs", + "https://www.googleapis.com/auth/dataportability.play.library", + "https://www.googleapis.com/auth/dataportability.play.playpoints", + "https://www.googleapis.com/auth/dataportability.play.promotions", + "https://www.googleapis.com/auth/dataportability.play.purchases", + "https://www.googleapis.com/auth/dataportability.play.redemptions", + "https://www.googleapis.com/auth/dataportability.play.subscriptions", + "https://www.googleapis.com/auth/dataportability.play.usersettings", "https://www.googleapis.com/auth/dataportability.saved.collections", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.reviews_and_stars", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.streaming_video_providers", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.thumbs", + "https://www.googleapis.com/auth/dataportability.search_ugc.media.watched", + "https://www.googleapis.com/auth/dataportability.searchnotifications.settings", + "https://www.googleapis.com/auth/dataportability.searchnotifications.subscriptions", "https://www.googleapis.com/auth/dataportability.shopping.addresses", "https://www.googleapis.com/auth/dataportability.shopping.reviews", + "https://www.googleapis.com/auth/dataportability.streetview.imagery", "https://www.googleapis.com/auth/dataportability.youtube.channel", "https://www.googleapis.com/auth/dataportability.youtube.comments", "https://www.googleapis.com/auth/dataportability.youtube.live_chat", @@ -652,6 +777,7 @@ func (c *ArchiveJobsGetPortabilityArchiveStateCall) Do(opts ...googleapi.CallOpt // "$ref": "PortabilityArchiveState" // }, // "scopes": [ + // "https://www.googleapis.com/auth/dataportability.alerts.subscriptions", // "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", // "https://www.googleapis.com/auth/dataportability.chrome.autofill", // "https://www.googleapis.com/auth/dataportability.chrome.bookmarks", @@ -660,20 +786,48 @@ func (c *ArchiveJobsGetPortabilityArchiveStateCall) Do(opts ...googleapi.CallOpt // "https://www.googleapis.com/auth/dataportability.chrome.history", // "https://www.googleapis.com/auth/dataportability.chrome.reading_list", // "https://www.googleapis.com/auth/dataportability.chrome.settings", + // "https://www.googleapis.com/auth/dataportability.discover.follows", + // "https://www.googleapis.com/auth/dataportability.discover.likes", + // "https://www.googleapis.com/auth/dataportability.discover.not_interested", + // "https://www.googleapis.com/auth/dataportability.maps.aliased_places", // "https://www.googleapis.com/auth/dataportability.maps.commute_routes", // "https://www.googleapis.com/auth/dataportability.maps.commute_settings", // "https://www.googleapis.com/auth/dataportability.maps.ev_profile", + // "https://www.googleapis.com/auth/dataportability.maps.factual_contributions", // "https://www.googleapis.com/auth/dataportability.maps.offering_contributions", // "https://www.googleapis.com/auth/dataportability.maps.photos_videos", + // "https://www.googleapis.com/auth/dataportability.maps.post_trip_feedback", + // "https://www.googleapis.com/auth/dataportability.maps.questions_answers", // "https://www.googleapis.com/auth/dataportability.maps.reviews", // "https://www.googleapis.com/auth/dataportability.maps.starred_places", // "https://www.googleapis.com/auth/dataportability.myactivity.maps", + // "https://www.googleapis.com/auth/dataportability.myactivity.myadcenter", + // "https://www.googleapis.com/auth/dataportability.myactivity.play", // "https://www.googleapis.com/auth/dataportability.myactivity.search", // "https://www.googleapis.com/auth/dataportability.myactivity.shopping", // "https://www.googleapis.com/auth/dataportability.myactivity.youtube", + // "https://www.googleapis.com/auth/dataportability.mymaps.maps", + // "https://www.googleapis.com/auth/dataportability.order_reserve.purchases_reservations", + // "https://www.googleapis.com/auth/dataportability.play.devices", + // "https://www.googleapis.com/auth/dataportability.play.grouping", + // "https://www.googleapis.com/auth/dataportability.play.installs", + // "https://www.googleapis.com/auth/dataportability.play.library", + // "https://www.googleapis.com/auth/dataportability.play.playpoints", + // "https://www.googleapis.com/auth/dataportability.play.promotions", + // "https://www.googleapis.com/auth/dataportability.play.purchases", + // "https://www.googleapis.com/auth/dataportability.play.redemptions", + // "https://www.googleapis.com/auth/dataportability.play.subscriptions", + // "https://www.googleapis.com/auth/dataportability.play.usersettings", // "https://www.googleapis.com/auth/dataportability.saved.collections", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.reviews_and_stars", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.streaming_video_providers", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.thumbs", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.watched", + // "https://www.googleapis.com/auth/dataportability.searchnotifications.settings", + // "https://www.googleapis.com/auth/dataportability.searchnotifications.subscriptions", // "https://www.googleapis.com/auth/dataportability.shopping.addresses", // "https://www.googleapis.com/auth/dataportability.shopping.reviews", + // "https://www.googleapis.com/auth/dataportability.streetview.imagery", // "https://www.googleapis.com/auth/dataportability.youtube.channel", // "https://www.googleapis.com/auth/dataportability.youtube.comments", // "https://www.googleapis.com/auth/dataportability.youtube.live_chat", @@ -831,6 +985,7 @@ func (c *ArchiveJobsRetryCall) Do(opts ...googleapi.CallOption) (*RetryPortabili // "$ref": "RetryPortabilityArchiveResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/dataportability.alerts.subscriptions", // "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", // "https://www.googleapis.com/auth/dataportability.chrome.autofill", // "https://www.googleapis.com/auth/dataportability.chrome.bookmarks", @@ -839,20 +994,48 @@ func (c *ArchiveJobsRetryCall) Do(opts ...googleapi.CallOption) (*RetryPortabili // "https://www.googleapis.com/auth/dataportability.chrome.history", // "https://www.googleapis.com/auth/dataportability.chrome.reading_list", // "https://www.googleapis.com/auth/dataportability.chrome.settings", + // "https://www.googleapis.com/auth/dataportability.discover.follows", + // "https://www.googleapis.com/auth/dataportability.discover.likes", + // "https://www.googleapis.com/auth/dataportability.discover.not_interested", + // "https://www.googleapis.com/auth/dataportability.maps.aliased_places", // "https://www.googleapis.com/auth/dataportability.maps.commute_routes", // "https://www.googleapis.com/auth/dataportability.maps.commute_settings", // "https://www.googleapis.com/auth/dataportability.maps.ev_profile", + // "https://www.googleapis.com/auth/dataportability.maps.factual_contributions", // "https://www.googleapis.com/auth/dataportability.maps.offering_contributions", // "https://www.googleapis.com/auth/dataportability.maps.photos_videos", + // "https://www.googleapis.com/auth/dataportability.maps.post_trip_feedback", + // "https://www.googleapis.com/auth/dataportability.maps.questions_answers", // "https://www.googleapis.com/auth/dataportability.maps.reviews", // "https://www.googleapis.com/auth/dataportability.maps.starred_places", // "https://www.googleapis.com/auth/dataportability.myactivity.maps", + // "https://www.googleapis.com/auth/dataportability.myactivity.myadcenter", + // "https://www.googleapis.com/auth/dataportability.myactivity.play", // "https://www.googleapis.com/auth/dataportability.myactivity.search", // "https://www.googleapis.com/auth/dataportability.myactivity.shopping", // "https://www.googleapis.com/auth/dataportability.myactivity.youtube", + // "https://www.googleapis.com/auth/dataportability.mymaps.maps", + // "https://www.googleapis.com/auth/dataportability.order_reserve.purchases_reservations", + // "https://www.googleapis.com/auth/dataportability.play.devices", + // "https://www.googleapis.com/auth/dataportability.play.grouping", + // "https://www.googleapis.com/auth/dataportability.play.installs", + // "https://www.googleapis.com/auth/dataportability.play.library", + // "https://www.googleapis.com/auth/dataportability.play.playpoints", + // "https://www.googleapis.com/auth/dataportability.play.promotions", + // "https://www.googleapis.com/auth/dataportability.play.purchases", + // "https://www.googleapis.com/auth/dataportability.play.redemptions", + // "https://www.googleapis.com/auth/dataportability.play.subscriptions", + // "https://www.googleapis.com/auth/dataportability.play.usersettings", // "https://www.googleapis.com/auth/dataportability.saved.collections", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.reviews_and_stars", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.streaming_video_providers", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.thumbs", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.watched", + // "https://www.googleapis.com/auth/dataportability.searchnotifications.settings", + // "https://www.googleapis.com/auth/dataportability.searchnotifications.subscriptions", // "https://www.googleapis.com/auth/dataportability.shopping.addresses", // "https://www.googleapis.com/auth/dataportability.shopping.reviews", + // "https://www.googleapis.com/auth/dataportability.streetview.imagery", // "https://www.googleapis.com/auth/dataportability.youtube.channel", // "https://www.googleapis.com/auth/dataportability.youtube.comments", // "https://www.googleapis.com/auth/dataportability.youtube.live_chat", @@ -996,6 +1179,7 @@ func (c *AuthorizationResetCall) Do(opts ...googleapi.CallOption) (*Empty, error // "$ref": "Empty" // }, // "scopes": [ + // "https://www.googleapis.com/auth/dataportability.alerts.subscriptions", // "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", // "https://www.googleapis.com/auth/dataportability.chrome.autofill", // "https://www.googleapis.com/auth/dataportability.chrome.bookmarks", @@ -1004,20 +1188,48 @@ func (c *AuthorizationResetCall) Do(opts ...googleapi.CallOption) (*Empty, error // "https://www.googleapis.com/auth/dataportability.chrome.history", // "https://www.googleapis.com/auth/dataportability.chrome.reading_list", // "https://www.googleapis.com/auth/dataportability.chrome.settings", + // "https://www.googleapis.com/auth/dataportability.discover.follows", + // "https://www.googleapis.com/auth/dataportability.discover.likes", + // "https://www.googleapis.com/auth/dataportability.discover.not_interested", + // "https://www.googleapis.com/auth/dataportability.maps.aliased_places", // "https://www.googleapis.com/auth/dataportability.maps.commute_routes", // "https://www.googleapis.com/auth/dataportability.maps.commute_settings", // "https://www.googleapis.com/auth/dataportability.maps.ev_profile", + // "https://www.googleapis.com/auth/dataportability.maps.factual_contributions", // "https://www.googleapis.com/auth/dataportability.maps.offering_contributions", // "https://www.googleapis.com/auth/dataportability.maps.photos_videos", + // "https://www.googleapis.com/auth/dataportability.maps.post_trip_feedback", + // "https://www.googleapis.com/auth/dataportability.maps.questions_answers", // "https://www.googleapis.com/auth/dataportability.maps.reviews", // "https://www.googleapis.com/auth/dataportability.maps.starred_places", // "https://www.googleapis.com/auth/dataportability.myactivity.maps", + // "https://www.googleapis.com/auth/dataportability.myactivity.myadcenter", + // "https://www.googleapis.com/auth/dataportability.myactivity.play", // "https://www.googleapis.com/auth/dataportability.myactivity.search", // "https://www.googleapis.com/auth/dataportability.myactivity.shopping", // "https://www.googleapis.com/auth/dataportability.myactivity.youtube", + // "https://www.googleapis.com/auth/dataportability.mymaps.maps", + // "https://www.googleapis.com/auth/dataportability.order_reserve.purchases_reservations", + // "https://www.googleapis.com/auth/dataportability.play.devices", + // "https://www.googleapis.com/auth/dataportability.play.grouping", + // "https://www.googleapis.com/auth/dataportability.play.installs", + // "https://www.googleapis.com/auth/dataportability.play.library", + // "https://www.googleapis.com/auth/dataportability.play.playpoints", + // "https://www.googleapis.com/auth/dataportability.play.promotions", + // "https://www.googleapis.com/auth/dataportability.play.purchases", + // "https://www.googleapis.com/auth/dataportability.play.redemptions", + // "https://www.googleapis.com/auth/dataportability.play.subscriptions", + // "https://www.googleapis.com/auth/dataportability.play.usersettings", // "https://www.googleapis.com/auth/dataportability.saved.collections", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.reviews_and_stars", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.streaming_video_providers", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.thumbs", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.watched", + // "https://www.googleapis.com/auth/dataportability.searchnotifications.settings", + // "https://www.googleapis.com/auth/dataportability.searchnotifications.subscriptions", // "https://www.googleapis.com/auth/dataportability.shopping.addresses", // "https://www.googleapis.com/auth/dataportability.shopping.reviews", + // "https://www.googleapis.com/auth/dataportability.streetview.imagery", // "https://www.googleapis.com/auth/dataportability.youtube.channel", // "https://www.googleapis.com/auth/dataportability.youtube.comments", // "https://www.googleapis.com/auth/dataportability.youtube.live_chat", @@ -1157,6 +1369,7 @@ func (c *PortabilityArchiveInitiateCall) Do(opts ...googleapi.CallOption) (*Init // "$ref": "InitiatePortabilityArchiveResponse" // }, // "scopes": [ + // "https://www.googleapis.com/auth/dataportability.alerts.subscriptions", // "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", // "https://www.googleapis.com/auth/dataportability.chrome.autofill", // "https://www.googleapis.com/auth/dataportability.chrome.bookmarks", @@ -1165,20 +1378,48 @@ func (c *PortabilityArchiveInitiateCall) Do(opts ...googleapi.CallOption) (*Init // "https://www.googleapis.com/auth/dataportability.chrome.history", // "https://www.googleapis.com/auth/dataportability.chrome.reading_list", // "https://www.googleapis.com/auth/dataportability.chrome.settings", + // "https://www.googleapis.com/auth/dataportability.discover.follows", + // "https://www.googleapis.com/auth/dataportability.discover.likes", + // "https://www.googleapis.com/auth/dataportability.discover.not_interested", + // "https://www.googleapis.com/auth/dataportability.maps.aliased_places", // "https://www.googleapis.com/auth/dataportability.maps.commute_routes", // "https://www.googleapis.com/auth/dataportability.maps.commute_settings", // "https://www.googleapis.com/auth/dataportability.maps.ev_profile", + // "https://www.googleapis.com/auth/dataportability.maps.factual_contributions", // "https://www.googleapis.com/auth/dataportability.maps.offering_contributions", // "https://www.googleapis.com/auth/dataportability.maps.photos_videos", + // "https://www.googleapis.com/auth/dataportability.maps.post_trip_feedback", + // "https://www.googleapis.com/auth/dataportability.maps.questions_answers", // "https://www.googleapis.com/auth/dataportability.maps.reviews", // "https://www.googleapis.com/auth/dataportability.maps.starred_places", // "https://www.googleapis.com/auth/dataportability.myactivity.maps", + // "https://www.googleapis.com/auth/dataportability.myactivity.myadcenter", + // "https://www.googleapis.com/auth/dataportability.myactivity.play", // "https://www.googleapis.com/auth/dataportability.myactivity.search", // "https://www.googleapis.com/auth/dataportability.myactivity.shopping", // "https://www.googleapis.com/auth/dataportability.myactivity.youtube", + // "https://www.googleapis.com/auth/dataportability.mymaps.maps", + // "https://www.googleapis.com/auth/dataportability.order_reserve.purchases_reservations", + // "https://www.googleapis.com/auth/dataportability.play.devices", + // "https://www.googleapis.com/auth/dataportability.play.grouping", + // "https://www.googleapis.com/auth/dataportability.play.installs", + // "https://www.googleapis.com/auth/dataportability.play.library", + // "https://www.googleapis.com/auth/dataportability.play.playpoints", + // "https://www.googleapis.com/auth/dataportability.play.promotions", + // "https://www.googleapis.com/auth/dataportability.play.purchases", + // "https://www.googleapis.com/auth/dataportability.play.redemptions", + // "https://www.googleapis.com/auth/dataportability.play.subscriptions", + // "https://www.googleapis.com/auth/dataportability.play.usersettings", // "https://www.googleapis.com/auth/dataportability.saved.collections", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.reviews_and_stars", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.streaming_video_providers", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.thumbs", + // "https://www.googleapis.com/auth/dataportability.search_ugc.media.watched", + // "https://www.googleapis.com/auth/dataportability.searchnotifications.settings", + // "https://www.googleapis.com/auth/dataportability.searchnotifications.subscriptions", // "https://www.googleapis.com/auth/dataportability.shopping.addresses", // "https://www.googleapis.com/auth/dataportability.shopping.reviews", + // "https://www.googleapis.com/auth/dataportability.streetview.imagery", // "https://www.googleapis.com/auth/dataportability.youtube.channel", // "https://www.googleapis.com/auth/dataportability.youtube.comments", // "https://www.googleapis.com/auth/dataportability.youtube.live_chat", diff --git a/firebasehosting/v1/firebasehosting-api.json b/firebasehosting/v1/firebasehosting-api.json index 657d333c4e9..4b9d161f6c6 100644 --- a/firebasehosting/v1/firebasehosting-api.json +++ b/firebasehosting/v1/firebasehosting-api.json @@ -269,7 +269,7 @@ } } }, - "revision": "20230913", + "revision": "20240319", "rootUrl": "https://firebasehosting.googleapis.com/", "schemas": { "CancelOperationRequest": { @@ -379,7 +379,7 @@ }, "quickSetupUpdates": { "$ref": "DnsUpdates", - "description": "A set of DNS record updates that allow Hosting to serve secure content on your domain name. The record type determines the update's purpose: - `A` and `AAAA`: Updates your domain name's IP addresses so that they direct traffic to Hosting servers. - `TXT`: Updates ownership permissions on your domain name, letting Hosting know that your custom domain's project has permission to perfrom actions for that domain name. - `CAA`: Updates your domain name's list of authorized Certificate Authorities (CAs). Only present if you have existing `CAA` records that prohibit Hosting's CA from minting certs for your domain name. These updates include all DNS changes you'll need to get started with Hosting, but, if made all at once, can result in a brief period of downtime for your domain name--while Hosting creates and uploads an SSL cert, for example. If you'd like to add your domain name to Hosting without downtime, complete the `liveMigrationSteps` first, before making the remaining updates in this field." + "description": "A set of DNS record updates that allow Hosting to serve secure content on your domain name. The record type determines the update's purpose: - `A` and `AAAA`: Updates your domain name's IP addresses so that they direct traffic to Hosting servers. - `TXT`: Updates ownership permissions on your domain name, letting Hosting know that your custom domain's project has permission to perform actions for that domain name. - `CAA`: Updates your domain name's list of authorized Certificate Authorities (CAs). Only present if you have existing `CAA` records that prohibit Hosting's CA from minting certs for your domain name. These updates include all DNS changes you'll need to get started with Hosting, but, if made all at once, can result in a brief period of downtime for your domain name--while Hosting creates and uploads an SSL cert, for example. If you'd like to add your domain name to Hosting without downtime, complete the `liveMigrationSteps` first, before making the remaining updates in this field." } }, "type": "object" diff --git a/firebasehosting/v1/firebasehosting-gen.go b/firebasehosting/v1/firebasehosting-gen.go index b454a528c5f..a40f0783ddc 100644 --- a/firebasehosting/v1/firebasehosting-gen.go +++ b/firebasehosting/v1/firebasehosting-gen.go @@ -363,7 +363,7 @@ type CustomDomainMetadata struct { // the update's purpose: - `A` and `AAAA`: Updates your domain name's IP // addresses so that they direct traffic to Hosting servers. - `TXT`: // Updates ownership permissions on your domain name, letting Hosting - // know that your custom domain's project has permission to perfrom + // know that your custom domain's project has permission to perform // actions for that domain name. - `CAA`: Updates your domain name's // list of authorized Certificate Authorities (CAs). Only present if you // have existing `CAA` records that prohibit Hosting's CA from minting diff --git a/firebasehosting/v1beta1/firebasehosting-api.json b/firebasehosting/v1beta1/firebasehosting-api.json index 7e447c9ffac..40e430d02e6 100644 --- a/firebasehosting/v1beta1/firebasehosting-api.json +++ b/firebasehosting/v1beta1/firebasehosting-api.json @@ -2422,7 +2422,7 @@ } } }, - "revision": "20230913", + "revision": "20240319", "rootUrl": "https://firebasehosting.googleapis.com/", "schemas": { "ActingUser": { @@ -2885,7 +2885,7 @@ }, "quickSetupUpdates": { "$ref": "DnsUpdates", - "description": "A set of DNS record updates that allow Hosting to serve secure content on your domain name. The record type determines the update's purpose: - `A` and `AAAA`: Updates your domain name's IP addresses so that they direct traffic to Hosting servers. - `TXT`: Updates ownership permissions on your domain name, letting Hosting know that your custom domain's project has permission to perfrom actions for that domain name. - `CAA`: Updates your domain name's list of authorized Certificate Authorities (CAs). Only present if you have existing `CAA` records that prohibit Hosting's CA from minting certs for your domain name. These updates include all DNS changes you'll need to get started with Hosting, but, if made all at once, can result in a brief period of downtime for your domain name--while Hosting creates and uploads an SSL cert, for example. If you'd like to add your domain name to Hosting without downtime, complete the `liveMigrationSteps` first, before making the remaining updates in this field." + "description": "A set of DNS record updates that allow Hosting to serve secure content on your domain name. The record type determines the update's purpose: - `A` and `AAAA`: Updates your domain name's IP addresses so that they direct traffic to Hosting servers. - `TXT`: Updates ownership permissions on your domain name, letting Hosting know that your custom domain's project has permission to perform actions for that domain name. - `CAA`: Updates your domain name's list of authorized Certificate Authorities (CAs). Only present if you have existing `CAA` records that prohibit Hosting's CA from minting certs for your domain name. These updates include all DNS changes you'll need to get started with Hosting, but, if made all at once, can result in a brief period of downtime for your domain name--while Hosting creates and uploads an SSL cert, for example. If you'd like to add your domain name to Hosting without downtime, complete the `liveMigrationSteps` first, before making the remaining updates in this field." } }, "type": "object" diff --git a/firebasehosting/v1beta1/firebasehosting-gen.go b/firebasehosting/v1beta1/firebasehosting-gen.go index 6283cbd51ff..144d077d4fc 100644 --- a/firebasehosting/v1beta1/firebasehosting-gen.go +++ b/firebasehosting/v1beta1/firebasehosting-gen.go @@ -1040,7 +1040,7 @@ type CustomDomainMetadata struct { // the update's purpose: - `A` and `AAAA`: Updates your domain name's IP // addresses so that they direct traffic to Hosting servers. - `TXT`: // Updates ownership permissions on your domain name, letting Hosting - // know that your custom domain's project has permission to perfrom + // know that your custom domain's project has permission to perform // actions for that domain name. - `CAA`: Updates your domain name's // list of authorized Certificate Authorities (CAs). Only present if you // have existing `CAA` records that prohibit Hosting's CA from minting diff --git a/healthcare/v1/healthcare-api.json b/healthcare/v1/healthcare-api.json index 663c042ee07..4c526246356 100644 --- a/healthcare/v1/healthcare-api.json +++ b/healthcare/v1/healthcare-api.json @@ -4554,7 +4554,7 @@ } } }, - "revision": "20240220", + "revision": "20240312", "rootUrl": "https://healthcare.googleapis.com/", "schemas": { "ActivateConsentRequest": { @@ -7135,7 +7135,7 @@ "type": "boolean" }, "inputGcsObject": { - "description": "Optional. GCS object containing list of {resourceType}/{resourceId} lines, identifying resources to be reverted", + "description": "Optional. Cloud Storage object containing list of {resourceType}/{resourceId} lines, identifying resources to be reverted", "type": "string" }, "resultGcsBucket": { diff --git a/healthcare/v1/healthcare-gen.go b/healthcare/v1/healthcare-gen.go index 3661e0139d5..c5b9a45bff1 100644 --- a/healthcare/v1/healthcare-gen.go +++ b/healthcare/v1/healthcare-gen.go @@ -5687,7 +5687,7 @@ type RollbackFhirResourcesRequest struct { // explicit confirmation Force bool `json:"force,omitempty"` - // InputGcsObject: Optional. GCS object containing list of + // InputGcsObject: Optional. Cloud Storage object containing list of // {resourceType}/{resourceId} lines, identifying resources to be // reverted InputGcsObject string `json:"inputGcsObject,omitempty"` diff --git a/healthcare/v1beta1/healthcare-api.json b/healthcare/v1beta1/healthcare-api.json index 4d76667c2c0..3deed5579fc 100644 --- a/healthcare/v1beta1/healthcare-api.json +++ b/healthcare/v1beta1/healthcare-api.json @@ -2650,7 +2650,7 @@ ], "parameters": { "resource": { - "description": "Required. The path of the resource to update the blob storage settings in the format of `projects/{projectID}/datasets/{datasetID}/dicomStores/{dicomStoreID}/dicomWeb/studies/{studyUID}`, `projects/{projectID}/datasets/{datasetID}/dicomStores/{dicomStoreID}/dicomWeb/studies/{studyUID}/series/{seriesUID}/`, or `projects/{projectID}/datasets/{datasetID}/dicomStores/{dicomStoreID}/dicomWeb/studies/{studyUID}/series/{seriesUID}/instances/{instanceUID}`. If `filter_config` is specified, set the value of `resource` to the resource name of a DICOM store in the format `projects/{projectID}/datasets/{datasetID}/dicomStores/{dicomStoreID}`.", + "description": "Required. The path of the resource to update the blob storage settings in the format of `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStores/{dicomStoreID}/dicomWeb/studies/{studyUID}`, `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStores/{dicomStoreID}/dicomWeb/studies/{studyUID}/series/{seriesUID}/`, or `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStores/{dicomStoreID}/dicomWeb/studies/{studyUID}/series/{seriesUID}/instances/{instanceUID}`. If `filter_config` is specified, set the value of `resource` to the resource name of a DICOM store in the format `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStores/{dicomStoreID}`.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", "required": true, @@ -2806,7 +2806,7 @@ ], "parameters": { "resource": { - "description": "Required. The path of the resource to update the blob storage settings in the format of `projects/{projectID}/datasets/{datasetID}/dicomStores/{dicomStoreID}/dicomWeb/studies/{studyUID}`, `projects/{projectID}/datasets/{datasetID}/dicomStores/{dicomStoreID}/dicomWeb/studies/{studyUID}/series/{seriesUID}/`, or `projects/{projectID}/datasets/{datasetID}/dicomStores/{dicomStoreID}/dicomWeb/studies/{studyUID}/series/{seriesUID}/instances/{instanceUID}`. If `filter_config` is specified, set the value of `resource` to the resource name of a DICOM store in the format `projects/{projectID}/datasets/{datasetID}/dicomStores/{dicomStoreID}`.", + "description": "Required. The path of the resource to update the blob storage settings in the format of `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStores/{dicomStoreID}/dicomWeb/studies/{studyUID}`, `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStores/{dicomStoreID}/dicomWeb/studies/{studyUID}/series/{seriesUID}/`, or `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStores/{dicomStoreID}/dicomWeb/studies/{studyUID}/series/{seriesUID}/instances/{instanceUID}`. If `filter_config` is specified, set the value of `resource` to the resource name of a DICOM store in the format `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStores/{dicomStoreID}`.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+/dicomWeb/studies/.*$", "required": true, @@ -2869,7 +2869,7 @@ ], "parameters": { "resource": { - "description": "Required. The path of the resource for which the storage info is requested (for exaxmple for a DICOM Instance: `projects/{projectid}/datasets/{datasetid}/dicomStores/{dicomStoreId}/dicomWeb/studies/{study_uid}/series/{series_uid}/instances/{instance_uid}`)", + "description": "Required. The path of the resource for which the storage info is requested (for exaxmple for a DICOM Instance: `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStores/{dicomStoreId}/dicomWeb/studies/{study_uid}/series/{series_uid}/instances/{instance_uid}`)", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+/dicomWeb/studies/[^/]+/series/[^/]+/instances/[^/]+$", "required": true, @@ -5614,7 +5614,7 @@ } } }, - "revision": "20240220", + "revision": "20240312", "rootUrl": "https://healthcare.googleapis.com/", "schemas": { "AccessDeterminationLogConfig": { @@ -5632,7 +5632,7 @@ "enumDescriptions": [ "No log level specified. This value is unused.", "No additional consent-related logging is added to audit logs.", - "The following information is included: * One of the following [`consentMode`](https://cloud.google.com/healthcare-api/docs/fhir-consent#audit_logs) fields: (`off`|`emptyScope`|`enforced`|`btg`|`bypass`). * The accessor's request headers * The `log_level` of the [AccessDeterminationLogConfig](https://cloud.google.com/healthcare-api/docs/reference/rest/v1beta1/projects.locations.datasets.fhirStores#AccessDeterminationLogConfig) * The final consent evaluation (`PERMIT`, `DENY`, or `NO_CONSENT`) * A human-readable summary of the evaluation", + "The following information is included: * One of the following [`consentMode`](https://cloud.google.com/healthcare-api/docs/fhir-consent#audit_logs) fields: (`off`|`emptyScope`|`enforced`|`btg`|`bypass`). * The accessor's request headers * The `log_level` of the AccessDeterminationLogConfig * The final consent evaluation (`PERMIT`, `DENY`, or `NO_CONSENT`) * A human-readable summary of the evaluation", "Includes `MINIMUM` and, for each resource owner, returns: * The resource owner's name * Most specific part of the `X-Consent-Scope` resulting in consensual determination * Timestamp of the applied enforcement leading to the decision * Enforcement version at the time the applicable consents were applied * The Consent resource name * The timestamp of the Consent resource used for enforcement * Policy type (`PATIENT` or `ADMIN`) Note that this mode adds some overhead to CRUD operations." ], "type": "string" @@ -6400,11 +6400,11 @@ "type": "string" }, "environment": { - "description": "An abstract identifier that describes the environment or conditions under which the accessor is acting. Can be “*” if it applies to all environments.", + "description": "An abstract identifier that describes the environment or conditions under which the accessor is acting. Can be \"*\" if it applies to all environments.", "type": "string" }, "purpose": { - "description": "The intent of data use. Can be “*” if it applies to all purposes.", + "description": "The intent of data use. Can be \"*\" if it applies to all purposes.", "type": "string" } }, @@ -7188,7 +7188,7 @@ "type": "array" }, "consentResource": { - "description": "The resource name of this consent resource. Format: `projects/{projectId}/datasets/{datasetId}/fhirStores/{fhirStoreId}/fhir/{resourceType}/{id}`.", + "description": "The resource name of this consent resource. Format: `projects/{projectId}/locations/{locationId}/datasets/{datasetId}/fhirStores/{fhirStoreId}/fhir/{resourceType}/{id}`.", "type": "string" }, "enforcementTime": { @@ -7225,9 +7225,9 @@ "description": "The consent's variant combinations. A single consent may have multiple variants.", "items": { "enum": [ - "VARIANT_UNSPECIFIED", - "VARIANT_STANDARD", - "VARIANT_CASCADE" + "CONSENT_VARIANT_UNSPECIFIED", + "CONSENT_VARIANT_STANDARD", + "CONSENT_VARIANT_CASCADE" ], "enumDescriptions": [ "Consent variant unspecified.", @@ -9709,7 +9709,7 @@ }, "filterConfig": { "$ref": "DicomFilterConfig", - "description": "Optional. A filter configuration. If `filter_config` is specified, set the value of `resource` to the resource name of a DICOM store in the format `projects/{projectID}/datasets/{datasetID}/dicomStores/{dicomStoreID}`." + "description": "Optional. A filter configuration. If `filter_config` is specified, set the value of `resource` to the resource name of a DICOM store in the format `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStores/{dicomStoreID}`." } }, "type": "object" @@ -9799,7 +9799,7 @@ "description": "Info about the data stored in blob storage for the resource." }, "referencedResource": { - "description": "The resource whose storage info is returned. For example, to specify the resource path of a DICOM Instance: `projects/{projectid}/datasets/{datasetid}/dicomStores/{dicom_store_id}/dicomWeb/studi/{study_uid}/series/{series_uid}/instances/{instance_uid}`", + "description": "The resource whose storage info is returned. For example, to specify the resource path of a DICOM Instance: `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStores/{dicom_store_id}/dicomWeb/studi/{study_uid}/series/{series_uid}/instances/{instance_uid}`", "type": "string" }, "structuredStorageInfo": { diff --git a/healthcare/v1beta1/healthcare-gen.go b/healthcare/v1beta1/healthcare-gen.go index ba1b06768f4..812347dfdba 100644 --- a/healthcare/v1beta1/healthcare-gen.go +++ b/healthcare/v1beta1/healthcare-gen.go @@ -517,11 +517,9 @@ type AccessDeterminationLogConfig struct { // [`consentMode`](https://cloud.google.com/healthcare-api/docs/fhir-cons // ent#audit_logs) fields: // (`off`|`emptyScope`|`enforced`|`btg`|`bypass`). * The accessor's - // request headers * The `log_level` of the - // [AccessDeterminationLogConfig](https://cloud.google.com/healthcare-api - // /docs/reference/rest/v1beta1/projects.locations.datasets.fhirStores#Ac - // cessDeterminationLogConfig) * The final consent evaluation (`PERMIT`, - // `DENY`, or `NO_CONSENT`) * A human-readable summary of the evaluation + // request headers * The `log_level` of the AccessDeterminationLogConfig + // * The final consent evaluation (`PERMIT`, `DENY`, or `NO_CONSENT`) * + // A human-readable summary of the evaluation // "VERBOSE" - Includes `MINIMUM` and, for each resource owner, // returns: * The resource owner's name * Most specific part of the // `X-Consent-Scope` resulting in consensual determination * Timestamp @@ -2003,11 +2001,11 @@ type ConsentAccessorScope struct { Actor string `json:"actor,omitempty"` // Environment: An abstract identifier that describes the environment or - // conditions under which the accessor is acting. Can be “*” if it + // conditions under which the accessor is acting. Can be "*" if it // applies to all environments. Environment string `json:"environment,omitempty"` - // Purpose: The intent of data use. Can be “*” if it applies to all + // Purpose: The intent of data use. Can be "*" if it applies to all // purposes. Purpose string `json:"purpose,omitempty"` @@ -3483,8 +3481,8 @@ type ExplainDataAccessConsentInfo struct { CascadeOrigins []string `json:"cascadeOrigins,omitempty"` // ConsentResource: The resource name of this consent resource. Format: - // `projects/{projectId}/datasets/{datasetId}/fhirStores/{fhirStoreId}/fh - // ir/{resourceType}/{id}`. + // `projects/{projectId}/locations/{locationId}/datasets/{datasetId}/fhir + // Stores/{fhirStoreId}/fhir/{resourceType}/{id}`. ConsentResource string `json:"consentResource,omitempty"` // EnforcementTime: Last enforcement timestamp of this consent resource. @@ -3514,10 +3512,10 @@ type ExplainDataAccessConsentInfo struct { // have multiple variants. // // Possible values: - // "VARIANT_UNSPECIFIED" - Consent variant unspecified. - // "VARIANT_STANDARD" - Consent is a standard patient or admin + // "CONSENT_VARIANT_UNSPECIFIED" - Consent variant unspecified. + // "CONSENT_VARIANT_STANDARD" - Consent is a standard patient or admin // consent. - // "VARIANT_CASCADE" - Consent is a cascading consent. + // "CONSENT_VARIANT_CASCADE" - Consent is a cascading consent. Variants []string `json:"variants,omitempty"` // ForceSendFields is a list of field names (e.g. "CascadeOrigins") to @@ -8506,8 +8504,8 @@ type SetBlobStorageSettingsRequest struct { // FilterConfig: Optional. A filter configuration. If `filter_config` is // specified, set the value of `resource` to the resource name of a // DICOM store in the format - // `projects/{projectID}/datasets/{datasetID}/dicomStores/{dicomStoreID}` - // . + // `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dico + // mStores/{dicomStoreID}`. FilterConfig *DicomFilterConfig `json:"filterConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "BlobStorageSettings") @@ -8667,9 +8665,9 @@ type StorageInfo struct { // ReferencedResource: The resource whose storage info is returned. For // example, to specify the resource path of a DICOM Instance: - // `projects/{projectid}/datasets/{datasetid}/dicomStores/{dicom_store_id - // }/dicomWeb/studi/{study_uid}/series/{series_uid}/instances/{instance_u - // id}` + // `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dico + // mStores/{dicom_store_id}/dicomWeb/studi/{study_uid}/series/{series_uid + // }/instances/{instance_uid}` ReferencedResource string `json:"referencedResource,omitempty"` // StructuredStorageInfo: Info about the data stored in structured @@ -22213,16 +22211,18 @@ type ProjectsLocationsDatasetsDicomStoresSetBlobStorageSettingsCall struct { // // - resource: The path of the resource to update the blob storage // settings in the format of -// `projects/{projectID}/datasets/{datasetID}/dicomStores/{dicomStoreID -// }/dicomWeb/studies/{studyUID}`, -// `projects/{projectID}/datasets/{datasetID}/dicomStores/{dicomStoreID -// }/dicomWeb/studies/{studyUID}/series/{seriesUID}/`, or -// `projects/{projectID}/datasets/{datasetID}/dicomStores/{dicomStoreID -// }/dicomWeb/studies/{studyUID}/series/{seriesUID}/instances/{instance -// UID}`. If `filter_config` is specified, set the value of `resource` -// to the resource name of a DICOM store in the format -// `projects/{projectID}/datasets/{datasetID}/dicomStores/{dicomStoreID -// }`. +// `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/di +// comStores/{dicomStoreID}/dicomWeb/studies/{studyUID}`, +// `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/di +// comStores/{dicomStoreID}/dicomWeb/studies/{studyUID}/series/{seriesU +// ID}/`, or +// `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/di +// comStores/{dicomStoreID}/dicomWeb/studies/{studyUID}/series/{seriesU +// ID}/instances/{instanceUID}`. If `filter_config` is specified, set +// the value of `resource` to the resource name of a DICOM store in +// the format +// `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/di +// comStores/{dicomStoreID}`. func (r *ProjectsLocationsDatasetsDicomStoresService) SetBlobStorageSettings(resource string, setblobstoragesettingsrequest *SetBlobStorageSettingsRequest) *ProjectsLocationsDatasetsDicomStoresSetBlobStorageSettingsCall { c := &ProjectsLocationsDatasetsDicomStoresSetBlobStorageSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -22330,7 +22330,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresSetBlobStorageSettingsCall) Do(opts // ], // "parameters": { // "resource": { - // "description": "Required. The path of the resource to update the blob storage settings in the format of `projects/{projectID}/datasets/{datasetID}/dicomStores/{dicomStoreID}/dicomWeb/studies/{studyUID}`, `projects/{projectID}/datasets/{datasetID}/dicomStores/{dicomStoreID}/dicomWeb/studies/{studyUID}/series/{seriesUID}/`, or `projects/{projectID}/datasets/{datasetID}/dicomStores/{dicomStoreID}/dicomWeb/studies/{studyUID}/series/{seriesUID}/instances/{instanceUID}`. If `filter_config` is specified, set the value of `resource` to the resource name of a DICOM store in the format `projects/{projectID}/datasets/{datasetID}/dicomStores/{dicomStoreID}`.", + // "description": "Required. The path of the resource to update the blob storage settings in the format of `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStores/{dicomStoreID}/dicomWeb/studies/{studyUID}`, `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStores/{dicomStoreID}/dicomWeb/studies/{studyUID}/series/{seriesUID}/`, or `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStores/{dicomStoreID}/dicomWeb/studies/{studyUID}/series/{seriesUID}/instances/{instanceUID}`. If `filter_config` is specified, set the value of `resource` to the resource name of a DICOM store in the format `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStores/{dicomStoreID}`.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", // "required": true, @@ -22945,16 +22945,18 @@ type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSetBlobStorageSettingsCa // // - resource: The path of the resource to update the blob storage // settings in the format of -// `projects/{projectID}/datasets/{datasetID}/dicomStores/{dicomStoreID -// }/dicomWeb/studies/{studyUID}`, -// `projects/{projectID}/datasets/{datasetID}/dicomStores/{dicomStoreID -// }/dicomWeb/studies/{studyUID}/series/{seriesUID}/`, or -// `projects/{projectID}/datasets/{datasetID}/dicomStores/{dicomStoreID -// }/dicomWeb/studies/{studyUID}/series/{seriesUID}/instances/{instance -// UID}`. If `filter_config` is specified, set the value of `resource` -// to the resource name of a DICOM store in the format -// `projects/{projectID}/datasets/{datasetID}/dicomStores/{dicomStoreID -// }`. +// `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/di +// comStores/{dicomStoreID}/dicomWeb/studies/{studyUID}`, +// `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/di +// comStores/{dicomStoreID}/dicomWeb/studies/{studyUID}/series/{seriesU +// ID}/`, or +// `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/di +// comStores/{dicomStoreID}/dicomWeb/studies/{studyUID}/series/{seriesU +// ID}/instances/{instanceUID}`. If `filter_config` is specified, set +// the value of `resource` to the resource name of a DICOM store in +// the format +// `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/di +// comStores/{dicomStoreID}`. func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) SetBlobStorageSettings(resource string, setblobstoragesettingsrequest *SetBlobStorageSettingsRequest) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSetBlobStorageSettingsCall { c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSetBlobStorageSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -23062,7 +23064,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSetBlobStorageSettin // ], // "parameters": { // "resource": { - // "description": "Required. The path of the resource to update the blob storage settings in the format of `projects/{projectID}/datasets/{datasetID}/dicomStores/{dicomStoreID}/dicomWeb/studies/{studyUID}`, `projects/{projectID}/datasets/{datasetID}/dicomStores/{dicomStoreID}/dicomWeb/studies/{studyUID}/series/{seriesUID}/`, or `projects/{projectID}/datasets/{datasetID}/dicomStores/{dicomStoreID}/dicomWeb/studies/{studyUID}/series/{seriesUID}/instances/{instanceUID}`. If `filter_config` is specified, set the value of `resource` to the resource name of a DICOM store in the format `projects/{projectID}/datasets/{datasetID}/dicomStores/{dicomStoreID}`.", + // "description": "Required. The path of the resource to update the blob storage settings in the format of `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStores/{dicomStoreID}/dicomWeb/studies/{studyUID}`, `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStores/{dicomStoreID}/dicomWeb/studies/{studyUID}/series/{seriesUID}/`, or `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStores/{dicomStoreID}/dicomWeb/studies/{studyUID}/series/{seriesUID}/instances/{instanceUID}`. If `filter_config` is specified, set the value of `resource` to the resource name of a DICOM store in the format `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStores/{dicomStoreID}`.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+/dicomWeb/studies/.*$", // "required": true, @@ -23250,9 +23252,9 @@ type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetStorag // // - resource: The path of the resource for which the storage info is // requested (for exaxmple for a DICOM Instance: -// `projects/{projectid}/datasets/{datasetid}/dicomStores/{dicomStoreId -// }/dicomWeb/studies/{study_uid}/series/{series_uid}/instances/{instan -// ce_uid}`). +// `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/di +// comStores/{dicomStoreId}/dicomWeb/studies/{study_uid}/series/{series +// _uid}/instances/{instance_uid}`). func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService) GetStorageInfo(resource string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetStorageInfoCall { c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetStorageInfoCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -23367,7 +23369,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetSt // ], // "parameters": { // "resource": { - // "description": "Required. The path of the resource for which the storage info is requested (for exaxmple for a DICOM Instance: `projects/{projectid}/datasets/{datasetid}/dicomStores/{dicomStoreId}/dicomWeb/studies/{study_uid}/series/{series_uid}/instances/{instance_uid}`)", + // "description": "Required. The path of the resource for which the storage info is requested (for exaxmple for a DICOM Instance: `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStores/{dicomStoreId}/dicomWeb/studies/{study_uid}/series/{series_uid}/instances/{instance_uid}`)", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+/dicomWeb/studies/[^/]+/series/[^/]+/instances/[^/]+$", // "required": true, diff --git a/iam/v2/iam-api.json b/iam/v2/iam-api.json index 785c20b92fe..012b46d5cbd 100644 --- a/iam/v2/iam-api.json +++ b/iam/v2/iam-api.json @@ -12,7 +12,7 @@ "baseUrl": "https://iam.googleapis.com/", "batchPath": "batch", "canonicalName": "Iam", - "description": "Manages identity and access control for Google Cloud Platform resources, including the creation of service accounts, which you can use to authenticate to Google and make API calls. ", + "description": "Manages identity and access control for Google Cloud resources, including the creation of service accounts, which you can use to authenticate to Google and make API calls. Enabling this API also enables the IAM Service Account Credentials API (iamcredentials.googleapis.com). However, disabling this API doesn't disable the IAM Service Account Credentials API. ", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/iam/", "fullyEncodeReservedExpansion": true, @@ -293,9 +293,40 @@ } } }, - "revision": "20240108", + "revision": "20240314", "rootUrl": "https://iam.googleapis.com/", "schemas": { + "CloudControl2SharedOperationsReconciliationOperationMetadata": { + "description": "Operation metadata returned by the CLH during resource state reconciliation.", + "id": "CloudControl2SharedOperationsReconciliationOperationMetadata", + "properties": { + "deleteResource": { + "deprecated": true, + "description": "DEPRECATED. Use exclusive_action instead.", + "type": "boolean" + }, + "exclusiveAction": { + "description": "Excluisive action returned by the CLH.", + "enum": [ + "UNKNOWN_REPAIR_ACTION", + "DELETE", + "RETRY" + ], + "enumDeprecated": [ + false, + true, + false + ], + "enumDescriptions": [ + "Unknown repair action.", + "The resource has to be deleted. When using this bit, the CLH should fail the operation. DEPRECATED. Instead use DELETE_RESOURCE OperationSignal in SideChannel.", + "This resource could not be repaired but the repair should be tried again at a later time. This can happen if there is a dependency that needs to be resolved first- e.g. if a parent resource must be repaired before a child resource." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudCommonOperationMetadata": { "description": "Represents the metadata of the long-running operation.", "id": "GoogleCloudCommonOperationMetadata", diff --git a/iam/v2/iam-gen.go b/iam/v2/iam-gen.go index 5dc6e02d753..8504167ec55 100644 --- a/iam/v2/iam-gen.go +++ b/iam/v2/iam-gen.go @@ -176,6 +176,50 @@ type PoliciesOperationsService struct { s *Service } +// CloudControl2SharedOperationsReconciliationOperationMetadata: +// Operation metadata returned by the CLH during resource state +// reconciliation. +type CloudControl2SharedOperationsReconciliationOperationMetadata struct { + // DeleteResource: DEPRECATED. Use exclusive_action instead. + DeleteResource bool `json:"deleteResource,omitempty"` + + // ExclusiveAction: Excluisive action returned by the CLH. + // + // Possible values: + // "UNKNOWN_REPAIR_ACTION" - Unknown repair action. + // "DELETE" - The resource has to be deleted. When using this bit, the + // CLH should fail the operation. DEPRECATED. Instead use + // DELETE_RESOURCE OperationSignal in SideChannel. + // "RETRY" - This resource could not be repaired but the repair should + // be tried again at a later time. This can happen if there is a + // dependency that needs to be resolved first- e.g. if a parent resource + // must be repaired before a child resource. + ExclusiveAction string `json:"exclusiveAction,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DeleteResource") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DeleteResource") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CloudControl2SharedOperationsReconciliationOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod CloudControl2SharedOperationsReconciliationOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudCommonOperationMetadata: Represents the metadata of the // long-running operation. type GoogleCloudCommonOperationMetadata struct { diff --git a/realtimebidding/v1/realtimebidding-api.json b/realtimebidding/v1/realtimebidding-api.json index f103fc03a1c..5b7fad5236b 100644 --- a/realtimebidding/v1/realtimebidding-api.json +++ b/realtimebidding/v1/realtimebidding-api.json @@ -1305,7 +1305,7 @@ } } }, - "revision": "20231106", + "revision": "20240320", "rootUrl": "https://realtimebidding.googleapis.com/", "schemas": { "ActivatePretargetingConfigRequest": { @@ -2897,13 +2897,15 @@ "USER_ID_TYPE_UNSPECIFIED", "HOSTED_MATCH_DATA", "GOOGLE_COOKIE", - "DEVICE_ID" + "DEVICE_ID", + "PUBLISHER_PROVIDED_ID" ], "enumDescriptions": [ "Placeholder for unspecified user identifier.", "Hosted match data, referring to hosted_match_data in the bid request.", "Google cookie, referring to google_user_id in the bid request.", - "Mobile device advertising ID." + "Mobile device advertising ID.", + "The request has a publisher-provided ID available to the bidder." ], "type": "string" }, diff --git a/realtimebidding/v1/realtimebidding-gen.go b/realtimebidding/v1/realtimebidding-gen.go index 34f0d46af20..22cffae2cf6 100644 --- a/realtimebidding/v1/realtimebidding-gen.go +++ b/realtimebidding/v1/realtimebidding-gen.go @@ -2516,6 +2516,8 @@ type PretargetingConfig struct { // "GOOGLE_COOKIE" - Google cookie, referring to google_user_id in the // bid request. // "DEVICE_ID" - Mobile device advertising ID. + // "PUBLISHER_PROVIDED_ID" - The request has a publisher-provided ID + // available to the bidder. IncludedUserIdTypes []string `json:"includedUserIdTypes,omitempty"` // InterstitialTargeting: The interstitial targeting specified for this diff --git a/recaptchaenterprise/v1/recaptchaenterprise-api.json b/recaptchaenterprise/v1/recaptchaenterprise-api.json index 5b797ce7c89..67245b61ff0 100644 --- a/recaptchaenterprise/v1/recaptchaenterprise-api.json +++ b/recaptchaenterprise/v1/recaptchaenterprise-api.json @@ -694,7 +694,7 @@ } } }, - "revision": "20240211", + "revision": "20240317", "rootUrl": "https://recaptchaenterprise.googleapis.com/", "schemas": { "GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment": { @@ -1415,7 +1415,7 @@ "type": "object" }, "GoogleCloudRecaptchaenterpriseV1ListFirewallPoliciesResponse": { - "description": "Response to request to list firewall policies belonging to a key.", + "description": "Response to request to list firewall policies belonging to a project.", "id": "GoogleCloudRecaptchaenterpriseV1ListFirewallPoliciesResponse", "properties": { "firewallPolicies": { diff --git a/recaptchaenterprise/v1/recaptchaenterprise-gen.go b/recaptchaenterprise/v1/recaptchaenterprise-gen.go index 5804bbb5a5a..57846ee5acb 100644 --- a/recaptchaenterprise/v1/recaptchaenterprise-gen.go +++ b/recaptchaenterprise/v1/recaptchaenterprise-gen.go @@ -1468,7 +1468,7 @@ func (s *GoogleCloudRecaptchaenterpriseV1Key) MarshalJSON() ([]byte, error) { } // GoogleCloudRecaptchaenterpriseV1ListFirewallPoliciesResponse: -// Response to request to list firewall policies belonging to a key. +// Response to request to list firewall policies belonging to a project. type GoogleCloudRecaptchaenterpriseV1ListFirewallPoliciesResponse struct { // FirewallPolicies: Policy details. FirewallPolicies []*GoogleCloudRecaptchaenterpriseV1FirewallPolicy `json:"firewallPolicies,omitempty"` diff --git a/retail/v2/retail-api.json b/retail/v2/retail-api.json index 1329286a111..48e29a9544d 100644 --- a/retail/v2/retail-api.json +++ b/retail/v2/retail-api.json @@ -2087,7 +2087,7 @@ } } }, - "revision": "20240212", + "revision": "20240315", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -3031,7 +3031,7 @@ "id": "GoogleCloudRetailV2ExperimentInfoServingConfigExperiment", "properties": { "experimentServingConfig": { - "description": "The fully qualified resource name of the serving config VariantArm.serving_config_id responsible for generating the search response. For example: `projects/*/locations/*/catalogs/*/servingConfigs/*`.", + "description": "The fully qualified resource name of the serving config Experiment.VariantArm.serving_config_id responsible for generating the search response. For example: `projects/*/locations/*/catalogs/*/servingConfigs/*`.", "type": "string" }, "originalServingConfig": { diff --git a/retail/v2/retail-gen.go b/retail/v2/retail-gen.go index 36c6fbe5873..fb07c81177d 100644 --- a/retail/v2/retail-gen.go +++ b/retail/v2/retail-gen.go @@ -2129,8 +2129,8 @@ func (s *GoogleCloudRetailV2ExperimentInfo) MarshalJSON() ([]byte, error) { // for active serving config A/B tests. type GoogleCloudRetailV2ExperimentInfoServingConfigExperiment struct { // ExperimentServingConfig: The fully qualified resource name of the - // serving config VariantArm.serving_config_id responsible for - // generating the search response. For example: + // serving config Experiment.VariantArm.serving_config_id responsible + // for generating the search response. For example: // `projects/*/locations/*/catalogs/*/servingConfigs/*`. ExperimentServingConfig string `json:"experimentServingConfig,omitempty"` diff --git a/retail/v2alpha/retail-api.json b/retail/v2alpha/retail-api.json index 8545c60ad50..07e19ef4c7f 100644 --- a/retail/v2alpha/retail-api.json +++ b/retail/v2alpha/retail-api.json @@ -286,7 +286,7 @@ "type": "string" }, "updateMask": { - "description": "Indicates which fields in the provided LoggingConfig to update. The following are the only supported fields: * default_log_generation_rule * per_service_log_generation_rules If not set, all supported fields are updated.", + "description": "Indicates which fields in the provided LoggingConfig to update. The following are the only supported fields: * LoggingConfig.default_log_generation_rule * LoggingConfig.per_service_log_generation_rules If not set, all supported fields are updated.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -2475,7 +2475,7 @@ } } }, - "revision": "20240229", + "revision": "20240315", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -4207,7 +4207,7 @@ "id": "GoogleCloudRetailV2alphaExperimentInfoServingConfigExperiment", "properties": { "experimentServingConfig": { - "description": "The fully qualified resource name of the serving config VariantArm.serving_config_id responsible for generating the search response. For example: `projects/*/locations/*/catalogs/*/servingConfigs/*`.", + "description": "The fully qualified resource name of the serving config Experiment.VariantArm.serving_config_id responsible for generating the search response. For example: `projects/*/locations/*/catalogs/*/servingConfigs/*`.", "type": "string" }, "originalServingConfig": { diff --git a/retail/v2alpha/retail-gen.go b/retail/v2alpha/retail-gen.go index 082105a9461..4d87046a217 100644 --- a/retail/v2alpha/retail-gen.go +++ b/retail/v2alpha/retail-gen.go @@ -3551,8 +3551,8 @@ func (s *GoogleCloudRetailV2alphaExperimentInfo) MarshalJSON() ([]byte, error) { // Metadata for active serving config A/B tests. type GoogleCloudRetailV2alphaExperimentInfoServingConfigExperiment struct { // ExperimentServingConfig: The fully qualified resource name of the - // serving config VariantArm.serving_config_id responsible for - // generating the search response. For example: + // serving config Experiment.VariantArm.serving_config_id responsible + // for generating the search response. For example: // `projects/*/locations/*/catalogs/*/servingConfigs/*`. ExperimentServingConfig string `json:"experimentServingConfig,omitempty"` @@ -11948,9 +11948,9 @@ func (r *ProjectsService) UpdateLoggingConfig(name string, googlecloudretailv2al // UpdateMask sets the optional parameter "updateMask": Indicates which // fields in the provided LoggingConfig to update. The following are the -// only supported fields: * default_log_generation_rule * -// per_service_log_generation_rules If not set, all supported fields are -// updated. +// only supported fields: * LoggingConfig.default_log_generation_rule * +// LoggingConfig.per_service_log_generation_rules If not set, all +// supported fields are updated. func (c *ProjectsUpdateLoggingConfigCall) UpdateMask(updateMask string) *ProjectsUpdateLoggingConfigCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -12064,7 +12064,7 @@ func (c *ProjectsUpdateLoggingConfigCall) Do(opts ...googleapi.CallOption) (*Goo // "type": "string" // }, // "updateMask": { - // "description": "Indicates which fields in the provided LoggingConfig to update. The following are the only supported fields: * default_log_generation_rule * per_service_log_generation_rules If not set, all supported fields are updated.", + // "description": "Indicates which fields in the provided LoggingConfig to update. The following are the only supported fields: * LoggingConfig.default_log_generation_rule * LoggingConfig.per_service_log_generation_rules If not set, all supported fields are updated.", // "format": "google-fieldmask", // "location": "query", // "type": "string" diff --git a/retail/v2beta/retail-api.json b/retail/v2beta/retail-api.json index 8d09230d9e9..60d32116a14 100644 --- a/retail/v2beta/retail-api.json +++ b/retail/v2beta/retail-api.json @@ -2115,7 +2115,7 @@ } } }, - "revision": "20240212", + "revision": "20240315", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -4529,7 +4529,7 @@ "id": "GoogleCloudRetailV2betaExperimentInfoServingConfigExperiment", "properties": { "experimentServingConfig": { - "description": "The fully qualified resource name of the serving config VariantArm.serving_config_id responsible for generating the search response. For example: `projects/*/locations/*/catalogs/*/servingConfigs/*`.", + "description": "The fully qualified resource name of the serving config Experiment.VariantArm.serving_config_id responsible for generating the search response. For example: `projects/*/locations/*/catalogs/*/servingConfigs/*`.", "type": "string" }, "originalServingConfig": { diff --git a/retail/v2beta/retail-gen.go b/retail/v2beta/retail-gen.go index 6f5536c7622..d21ece70b2d 100644 --- a/retail/v2beta/retail-gen.go +++ b/retail/v2beta/retail-gen.go @@ -4758,8 +4758,8 @@ func (s *GoogleCloudRetailV2betaExperimentInfo) MarshalJSON() ([]byte, error) { // Metadata for active serving config A/B tests. type GoogleCloudRetailV2betaExperimentInfoServingConfigExperiment struct { // ExperimentServingConfig: The fully qualified resource name of the - // serving config VariantArm.serving_config_id responsible for - // generating the search response. For example: + // serving config Experiment.VariantArm.serving_config_id responsible + // for generating the search response. For example: // `projects/*/locations/*/catalogs/*/servingConfigs/*`. ExperimentServingConfig string `json:"experimentServingConfig,omitempty"` diff --git a/sheets/v4/sheets-api.json b/sheets/v4/sheets-api.json index cf8c02c919c..50698fd5e67 100644 --- a/sheets/v4/sheets-api.json +++ b/sheets/v4/sheets-api.json @@ -870,7 +870,7 @@ } } }, - "revision": "20230829", + "revision": "20240318", "rootUrl": "https://sheets.googleapis.com/", "schemas": { "AddBandingRequest": { @@ -6830,6 +6830,10 @@ "$ref": "CellFormat", "description": "The default format of all cells in the spreadsheet. CellData.effectiveFormat will not be set if the cell's format is equal to this default format. This field is read-only." }, + "importFunctionsExternalUrlAccessAllowed": { + "description": "Whether to allow external url access for image and import functions. Read only when true. When false, you can set to true.", + "type": "boolean" + }, "iterativeCalculationSettings": { "$ref": "IterativeCalculationSettings", "description": "Determines whether and how circular references are resolved with iterative calculation. Absence of this field means that circular references result in calculation errors." diff --git a/sheets/v4/sheets-gen.go b/sheets/v4/sheets-gen.go index 760ef8b65fc..ca9e4863396 100644 --- a/sheets/v4/sheets-gen.go +++ b/sheets/v4/sheets-gen.go @@ -9798,6 +9798,11 @@ type SpreadsheetProperties struct { // equal to this default format. This field is read-only. DefaultFormat *CellFormat `json:"defaultFormat,omitempty"` + // ImportFunctionsExternalUrlAccessAllowed: Whether to allow external + // url access for image and import functions. Read only when true. When + // false, you can set to true. + ImportFunctionsExternalUrlAccessAllowed bool `json:"importFunctionsExternalUrlAccessAllowed,omitempty"` + // IterativeCalculationSettings: Determines whether and how circular // references are resolved with iterative calculation. Absence of this // field means that circular references result in calculation errors.