From 89802661d011ff33e3d5988f0e894702eba9c009 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 10 Feb 2023 07:17:16 -0800 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#1850) --- accessapproval/v1/accessapproval-api.json | 4 +- accessapproval/v1/accessapproval-gen.go | 16 +- .../v1alpha/analyticsadmin-api.json | 692 +- analyticsadmin/v1alpha/analyticsadmin-gen.go | 5949 +++++++++---- androidpublisher/v3/androidpublisher-api.json | 27 +- androidpublisher/v3/androidpublisher-gen.go | 37 + api-list.json | 4 +- apigateway/v1beta/apigateway-api.json | 4 +- apigateway/v1beta/apigateway-gen.go | 8 +- apigee/v1/apigee-api.json | 10 +- apigee/v1/apigee-gen.go | 20 +- apigeeregistry/v1/apigeeregistry-api.json | 32 +- apigeeregistry/v1/apigeeregistry-gen.go | 52 +- appengine/v1/appengine-api.json | 21 +- appengine/v1/appengine-gen.go | 37 + artifactregistry/v1/artifactregistry-api.json | 256 +- artifactregistry/v1/artifactregistry-gen.go | 629 +- batch/v1/batch-api.json | 28 +- batch/v1/batch-gen.go | 34 +- bigquery/v2/bigquery-api.json | 4 +- bigquery/v2/bigquery-gen.go | 8 +- .../v1/bigqueryreservation-api.json | 4 +- .../v1/bigqueryreservation-gen.go | 13 +- books/v1/books-api.json | 3 +- chat/v1/chat-api.json | 16 +- chat/v1/chat-gen.go | 35 +- chromemanagement/v1/chromemanagement-api.json | 54 +- chromemanagement/v1/chromemanagement-gen.go | 208 + chromeuxreport/v1/chromeuxreport-api.json | 181 +- chromeuxreport/v1/chromeuxreport-gen.go | 450 + cloudasset/v1/cloudasset-api.json | 4 +- cloudasset/v1/cloudasset-gen.go | 2 +- clouddeploy/v1/clouddeploy-api.json | 4 +- clouddeploy/v1/clouddeploy-gen.go | 8 +- cloudfunctions/v2/cloudfunctions-api.json | 4 +- cloudfunctions/v2/cloudfunctions-gen.go | 7 +- .../v2alpha/cloudfunctions-api.json | 4 +- cloudfunctions/v2alpha/cloudfunctions-gen.go | 7 +- cloudfunctions/v2beta/cloudfunctions-api.json | 4 +- cloudfunctions/v2beta/cloudfunctions-gen.go | 7 +- cloudiot/v1/cloudiot-api.json | 4 +- cloudiot/v1/cloudiot-gen.go | 8 +- cloudsearch/v1/cloudsearch-api.json | 18 +- cloudsearch/v1/cloudsearch-gen.go | 27 +- cloudtasks/v2/cloudtasks-api.json | 4 +- cloudtasks/v2/cloudtasks-gen.go | 8 +- cloudtasks/v2beta2/cloudtasks-api.json | 8 +- cloudtasks/v2beta2/cloudtasks-gen.go | 60 +- cloudtasks/v2beta3/cloudtasks-api.json | 8 +- cloudtasks/v2beta3/cloudtasks-gen.go | 33 +- compute/v0.alpha/compute-api.json | 73 +- compute/v0.alpha/compute-gen.go | 113 +- compute/v0.beta/compute-api.json | 26 +- compute/v0.beta/compute-gen.go | 36 +- compute/v1/compute-api.json | 168 +- compute/v1/compute-gen.go | 494 +- connectors/v1/connectors-api.json | 12 +- connectors/v1/connectors-gen.go | 15 +- .../v1alpha1/contactcenteraiplatform-api.json | 12 +- .../v1alpha1/contactcenteraiplatform-gen.go | 3 + content/v2.1/content-api.json | 6 +- content/v2.1/content-gen.go | 11 +- contentwarehouse/v1/contentwarehouse-api.json | 849 +- contentwarehouse/v1/contentwarehouse-gen.go | 1189 ++- datamigration/v1/datamigration-api.json | 103 +- datamigration/v1/datamigration-gen.go | 482 +- datamigration/v1beta1/datamigration-api.json | 4 +- datamigration/v1beta1/datamigration-gen.go | 8 +- displayvideo/v1/displayvideo-api.json | 20 +- displayvideo/v1/displayvideo-gen.go | 238 +- displayvideo/v2/displayvideo-api.json | 347 +- displayvideo/v2/displayvideo-gen.go | 737 +- dlp/v2/dlp-api.json | 4 +- dlp/v2/dlp-gen.go | 6 +- documentai/v1/documentai-api.json | 47 +- documentai/v1/documentai-gen.go | 66 +- documentai/v1beta2/documentai-api.json | 43 +- documentai/v1beta2/documentai-gen.go | 60 +- documentai/v1beta3/documentai-api.json | 47 +- documentai/v1beta3/documentai-gen.go | 66 +- drive/v2/drive-api.json | 6 +- drive/v2/drive-gen.go | 6 +- drive/v3/drive-api.json | 6 +- drive/v3/drive-gen.go | 5 +- driveactivity/v2/driveactivity-api.json | 8 +- driveactivity/v2/driveactivity-gen.go | 2 + eventarc/v1/eventarc-api.json | 4 +- eventarc/v1/eventarc-gen.go | 8 +- eventarc/v1beta1/eventarc-api.json | 4 +- eventarc/v1beta1/eventarc-gen.go | 8 +- firebase/v1beta1/firebase-api.json | 26 +- firebase/v1beta1/firebase-gen.go | 20 + .../v1beta1/firebasehosting-api.json | 170 +- .../v1beta1/firebasehosting-gen.go | 1400 +++- gameservices/v1/gameservices-api.json | 4 +- gameservices/v1/gameservices-gen.go | 8 +- gkehub/v1/gkehub-api.json | 31 +- gkehub/v1/gkehub-gen.go | 51 +- gkehub/v1alpha/gkehub-api.json | 93 +- gkehub/v1alpha/gkehub-gen.go | 162 +- gkehub/v1alpha2/gkehub-api.json | 6 +- gkehub/v1alpha2/gkehub-gen.go | 11 +- gkehub/v1beta/gkehub-api.json | 91 +- gkehub/v1beta/gkehub-gen.go | 159 +- gkehub/v1beta1/gkehub-api.json | 6 +- gkehub/v1beta1/gkehub-gen.go | 11 +- gmail/v1/gmail-api.json | 10 +- gmail/v1/gmail-gen.go | 32 +- iam/v1/iam-api.json | 741 +- iam/v1/iam-gen.go | 3578 +++++++- memcache/v1/memcache-api.json | 4 +- memcache/v1/memcache-gen.go | 11 +- memcache/v1beta2/memcache-api.json | 4 +- memcache/v1beta2/memcache-gen.go | 11 +- metastore/v1/metastore-api.json | 64 +- metastore/v1/metastore-gen.go | 326 +- metastore/v1alpha/metastore-api.json | 38 +- metastore/v1alpha/metastore-gen.go | 168 +- metastore/v1beta/metastore-api.json | 38 +- metastore/v1beta/metastore-gen.go | 168 +- monitoring/v3/monitoring-api.json | 22 +- monitoring/v3/monitoring-gen.go | 12 + .../v1/mybusinessverifications-api.json | 8 +- .../v1/mybusinessverifications-gen.go | 15 +- networkservices/v1/networkservices-api.json | 4 +- networkservices/v1/networkservices-gen.go | 8 +- .../v1beta1/networkservices-api.json | 4 +- .../v1beta1/networkservices-gen.go | 8 +- orgpolicy/v2/orgpolicy-api.json | 154 +- orgpolicy/v2/orgpolicy-gen.go | 442 +- privateca/v1/privateca-api.json | 4 +- privateca/v1/privateca-gen.go | 8 +- privateca/v1beta1/privateca-api.json | 2498 +----- privateca/v1beta1/privateca-gen.go | 7370 +++-------------- realtimebidding/v1/realtimebidding-api.json | 20 +- realtimebidding/v1/realtimebidding-gen.go | 7 - retail/v2/retail-api.json | 4 +- retail/v2/retail-gen.go | 5 +- retail/v2alpha/retail-api.json | 29 +- retail/v2alpha/retail-gen.go | 153 +- retail/v2beta/retail-api.json | 29 +- retail/v2beta/retail-gen.go | 153 +- run/v2/run-api.json | 7 +- run/v2/run-gen.go | 4 + secretmanager/v1beta1/secretmanager-api.json | 4 +- secretmanager/v1beta1/secretmanager-gen.go | 8 +- servicecontrol/v1/servicecontrol-api.json | 27 +- servicecontrol/v1/servicecontrol-gen.go | 40 + servicecontrol/v2/servicecontrol-api.json | 27 +- servicecontrol/v2/servicecontrol-gen.go | 56 +- tpu/v2alpha1/tpu-api.json | 40 +- tpu/v2alpha1/tpu-gen.go | 66 +- vault/v1/vault-api.json | 4 +- vault/v1/vault-gen.go | 3 +- workstations/v1beta/workstations-api.json | 11 +- workstations/v1beta/workstations-gen.go | 18 +- 156 files changed, 20652 insertions(+), 12469 deletions(-) diff --git a/accessapproval/v1/accessapproval-api.json b/accessapproval/v1/accessapproval-api.json index 3353635326a..48a7af101cf 100644 --- a/accessapproval/v1/accessapproval-api.json +++ b/accessapproval/v1/accessapproval-api.json @@ -913,7 +913,7 @@ } } }, - "revision": "20221209", + "revision": "20230203", "rootUrl": "https://accessapproval.googleapis.com/", "schemas": { "AccessApprovalServiceAccount": { @@ -1140,7 +1140,7 @@ "id": "EnrolledService", "properties": { "cloudProduct": { - "description": "The product for which Access Approval will be enrolled. Allowed values are listed below (case-sensitive): * all * GA * App Engine . * Artifact Registry * BigQuery * Cloud Bigtable * Cloud Key Management Service * Compute Engine * Cloud Dataflow * Cloud Dataproc * Cloud DLP * Cloud EKM * Cloud HSM * Cloud Identity and Access Management * Cloud Logging * Cloud Pub/Sub * Cloud Spanner * Cloud SQL * Cloud Storage * Google Kubernetes Engine * Organization Policy Serivice * Persistent Disk * Resource Manager * Secret Manager * Speaker ID Note: These values are supported as input for legacy purposes, but will not be returned from the API. * all * ga-only * appengine.googleapis.com * artifactregistry.googleapis.com * bigquery.googleapis.com * bigtable.googleapis.com * container.googleapis.com * cloudkms.googleapis.com * cloudresourcemanager.googleapis.com * cloudsql.googleapis.com * compute.googleapis.com * dataflow.googleapis.com * dataproc.googleapis.com * dlp.googleapis.com * iam.googleapis.com * logging.googleapis.com * orgpolicy.googleapis.com * pubsub.googleapis.com * spanner.googleapis.com * secretmanager.googleapis.com * speakerid.googleapis.com * storage.googleapis.com Calls to UpdateAccessApprovalSettings using 'all' or any of the XXX.googleapis.com will be translated to the associated product name ('all', 'App Engine', etc.). Note: 'all' will enroll the resource in all products supported at both 'GA' and 'Preview' levels. More information about levels of support is available at https://cloud.google.com/access-approval/docs/supported-services", + "description": "The product for which Access Approval will be enrolled. Allowed values are listed below (case-sensitive): * all * GA * App Engine * Artifact Registry * BigQuery * Cloud Bigtable * Cloud Key Management Service * Compute Engine * Cloud Dataflow * Cloud Dataproc * Cloud DLP * Cloud EKM * Cloud HSM * Cloud Identity and Access Management * Cloud Logging * Cloud NAT * Cloud Pub/Sub * Cloud Spanner * Cloud SQL * Cloud Storage * Google Kubernetes Engine * Organization Policy Serivice * Persistent Disk * Resource Manager * Secret Manager * Speaker ID Note: These values are supported as input for legacy purposes, but will not be returned from the API. * all * ga-only * appengine.googleapis.com * artifactregistry.googleapis.com * bigquery.googleapis.com * bigtable.googleapis.com * container.googleapis.com * cloudkms.googleapis.com * cloudresourcemanager.googleapis.com * cloudsql.googleapis.com * compute.googleapis.com * dataflow.googleapis.com * dataproc.googleapis.com * dlp.googleapis.com * iam.googleapis.com * logging.googleapis.com * orgpolicy.googleapis.com * pubsub.googleapis.com * spanner.googleapis.com * secretmanager.googleapis.com * speakerid.googleapis.com * storage.googleapis.com Calls to UpdateAccessApprovalSettings using 'all' or any of the XXX.googleapis.com will be translated to the associated product name ('all', 'App Engine', etc.). Note: 'all' will enroll the resource in all products supported at both 'GA' and 'Preview' levels. More information about levels of support is available at https://cloud.google.com/access-approval/docs/supported-services", "type": "string" }, "enrollmentLevel": { diff --git a/accessapproval/v1/accessapproval-gen.go b/accessapproval/v1/accessapproval-gen.go index e74e1a4c049..1441e298fc0 100644 --- a/accessapproval/v1/accessapproval-gen.go +++ b/accessapproval/v1/accessapproval-gen.go @@ -626,16 +626,16 @@ type Empty struct { type EnrolledService struct { // CloudProduct: The product for which Access Approval will be enrolled. // Allowed values are listed below (case-sensitive): * all * GA * App - // Engine . * Artifact Registry * BigQuery * Cloud Bigtable * Cloud Key + // Engine * Artifact Registry * BigQuery * Cloud Bigtable * Cloud Key // Management Service * Compute Engine * Cloud Dataflow * Cloud Dataproc // * Cloud DLP * Cloud EKM * Cloud HSM * Cloud Identity and Access - // Management * Cloud Logging * Cloud Pub/Sub * Cloud Spanner * Cloud - // SQL * Cloud Storage * Google Kubernetes Engine * Organization Policy - // Serivice * Persistent Disk * Resource Manager * Secret Manager * - // Speaker ID Note: These values are supported as input for legacy - // purposes, but will not be returned from the API. * all * ga-only * - // appengine.googleapis.com * artifactregistry.googleapis.com * - // bigquery.googleapis.com * bigtable.googleapis.com * + // Management * Cloud Logging * Cloud NAT * Cloud Pub/Sub * Cloud + // Spanner * Cloud SQL * Cloud Storage * Google Kubernetes Engine * + // Organization Policy Serivice * Persistent Disk * Resource Manager * + // Secret Manager * Speaker ID Note: These values are supported as input + // for legacy purposes, but will not be returned from the API. * all * + // ga-only * appengine.googleapis.com * artifactregistry.googleapis.com + // * bigquery.googleapis.com * bigtable.googleapis.com * // container.googleapis.com * cloudkms.googleapis.com * // cloudresourcemanager.googleapis.com * cloudsql.googleapis.com * // compute.googleapis.com * dataflow.googleapis.com * diff --git a/analyticsadmin/v1alpha/analyticsadmin-api.json b/analyticsadmin/v1alpha/analyticsadmin-api.json index 0f9747f90bd..2777305ff3c 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-api.json +++ b/analyticsadmin/v1alpha/analyticsadmin-api.json @@ -340,6 +340,270 @@ } }, "resources": { + "accessBindings": { + "methods": { + "batchCreate": { + "description": "Creates information about multiple access bindings to an account or property. This method is transactional. If any AccessBinding cannot be created, none of the AccessBindings will be created.", + "flatPath": "v1alpha/accounts/{accountsId}/accessBindings:batchCreate", + "httpMethod": "POST", + "id": "analyticsadmin.accounts.accessBindings.batchCreate", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The account or property that owns the access bindings. The parent field in the CreateAccessBindingRequest messages must either be empty or match this field. Formats: - accounts/{account} - properties/{property}", + "location": "path", + "pattern": "^accounts/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/accessBindings:batchCreate", + "request": { + "$ref": "GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest" + }, + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.manage.users" + ] + }, + "batchDelete": { + "description": "Deletes information about multiple users' links to an account or property.", + "flatPath": "v1alpha/accounts/{accountsId}/accessBindings:batchDelete", + "httpMethod": "POST", + "id": "analyticsadmin.accounts.accessBindings.batchDelete", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The account or property that owns the access bindings. The parent field in the DeleteAccessBindingRequest messages must either be empty or match this field. Formats: - accounts/{account} - properties/{property}", + "location": "path", + "pattern": "^accounts/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/accessBindings:batchDelete", + "request": { + "$ref": "GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest" + }, + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.manage.users" + ] + }, + "batchGet": { + "description": "Gets information about multiple access bindings to an account or property.", + "flatPath": "v1alpha/accounts/{accountsId}/accessBindings:batchGet", + "httpMethod": "GET", + "id": "analyticsadmin.accounts.accessBindings.batchGet", + "parameterOrder": [ + "parent" + ], + "parameters": { + "names": { + "description": "Required. The names of the access bindings to retrieve. A maximum of 1000 access bindings can be retrieved in a batch. Formats: - accounts/{account}/accessBindings/{accessBinding} - properties/{property}/accessBindings/{accessBinding}", + "location": "query", + "repeated": true, + "type": "string" + }, + "parent": { + "description": "Required. The account or property that owns the access bindings. The parent of all provided values for the 'names' field must match this field. Formats: - accounts/{account} - properties/{property}", + "location": "path", + "pattern": "^accounts/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/accessBindings:batchGet", + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.manage.users", + "https://www.googleapis.com/auth/analytics.manage.users.readonly" + ] + }, + "batchUpdate": { + "description": "Updates information about multiple access bindings to an account or property.", + "flatPath": "v1alpha/accounts/{accountsId}/accessBindings:batchUpdate", + "httpMethod": "POST", + "id": "analyticsadmin.accounts.accessBindings.batchUpdate", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The account or property that owns the access bindings. The parent field in the UpdateAccessBindingRequest messages must either be empty or match this field. Formats: - accounts/{account} - properties/{property}", + "location": "path", + "pattern": "^accounts/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/accessBindings:batchUpdate", + "request": { + "$ref": "GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest" + }, + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.manage.users" + ] + }, + "create": { + "description": "Creates an access binding on an account or property.", + "flatPath": "v1alpha/accounts/{accountsId}/accessBindings", + "httpMethod": "POST", + "id": "analyticsadmin.accounts.accessBindings.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Formats: - accounts/{account} - properties/{property}", + "location": "path", + "pattern": "^accounts/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/accessBindings", + "request": { + "$ref": "GoogleAnalyticsAdminV1alphaAccessBinding" + }, + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaAccessBinding" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.manage.users" + ] + }, + "delete": { + "description": "Deletes an access binding on an account or property.", + "flatPath": "v1alpha/accounts/{accountsId}/accessBindings/{accessBindingsId}", + "httpMethod": "DELETE", + "id": "analyticsadmin.accounts.accessBindings.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Formats: - accounts/{account}/accessBindings/{accessBinding} - properties/{property}/accessBindings/{accessBinding}", + "location": "path", + "pattern": "^accounts/[^/]+/accessBindings/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.manage.users" + ] + }, + "get": { + "description": "Gets information about an access binding.", + "flatPath": "v1alpha/accounts/{accountsId}/accessBindings/{accessBindingsId}", + "httpMethod": "GET", + "id": "analyticsadmin.accounts.accessBindings.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the access binding to retrieve. Formats: - accounts/{account}/accessBindings/{accessBinding} - properties/{property}/accessBindings/{accessBinding}", + "location": "path", + "pattern": "^accounts/[^/]+/accessBindings/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaAccessBinding" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.manage.users", + "https://www.googleapis.com/auth/analytics.manage.users.readonly" + ] + }, + "list": { + "description": "Lists all access bindings on an account or property.", + "flatPath": "v1alpha/accounts/{accountsId}/accessBindings", + "httpMethod": "GET", + "id": "analyticsadmin.accounts.accessBindings.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of access bindings to return. The service may return fewer than this value. If unspecified, at most 200 access bindings will be returned. The maximum value is 500; values above 500 will be coerced to 500.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListAccessBindings` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccessBindings` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Formats: - accounts/{account} - properties/{property}", + "location": "path", + "pattern": "^accounts/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/accessBindings", + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaListAccessBindingsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.manage.users", + "https://www.googleapis.com/auth/analytics.manage.users.readonly" + ] + }, + "patch": { + "description": "Updates an access binding on an account or property.", + "flatPath": "v1alpha/accounts/{accountsId}/accessBindings/{accessBindingsId}", + "httpMethod": "PATCH", + "id": "analyticsadmin.accounts.accessBindings.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. Resource name of this binding. Format: accounts/{account}/accessBindings/{access_binding} or properties/{property}/accessBindings/{access_binding} Example: \"accounts/100/accessBindings/200\"", + "location": "path", + "pattern": "^accounts/[^/]+/accessBindings/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "request": { + "$ref": "GoogleAnalyticsAdminV1alphaAccessBinding" + }, + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaAccessBinding" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.manage.users" + ] + } + } + }, "userLinks": { "methods": { "audit": { @@ -1059,6 +1323,270 @@ } }, "resources": { + "accessBindings": { + "methods": { + "batchCreate": { + "description": "Creates information about multiple access bindings to an account or property. This method is transactional. If any AccessBinding cannot be created, none of the AccessBindings will be created.", + "flatPath": "v1alpha/properties/{propertiesId}/accessBindings:batchCreate", + "httpMethod": "POST", + "id": "analyticsadmin.properties.accessBindings.batchCreate", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The account or property that owns the access bindings. The parent field in the CreateAccessBindingRequest messages must either be empty or match this field. Formats: - accounts/{account} - properties/{property}", + "location": "path", + "pattern": "^properties/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/accessBindings:batchCreate", + "request": { + "$ref": "GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest" + }, + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.manage.users" + ] + }, + "batchDelete": { + "description": "Deletes information about multiple users' links to an account or property.", + "flatPath": "v1alpha/properties/{propertiesId}/accessBindings:batchDelete", + "httpMethod": "POST", + "id": "analyticsadmin.properties.accessBindings.batchDelete", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The account or property that owns the access bindings. The parent field in the DeleteAccessBindingRequest messages must either be empty or match this field. Formats: - accounts/{account} - properties/{property}", + "location": "path", + "pattern": "^properties/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/accessBindings:batchDelete", + "request": { + "$ref": "GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest" + }, + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.manage.users" + ] + }, + "batchGet": { + "description": "Gets information about multiple access bindings to an account or property.", + "flatPath": "v1alpha/properties/{propertiesId}/accessBindings:batchGet", + "httpMethod": "GET", + "id": "analyticsadmin.properties.accessBindings.batchGet", + "parameterOrder": [ + "parent" + ], + "parameters": { + "names": { + "description": "Required. The names of the access bindings to retrieve. A maximum of 1000 access bindings can be retrieved in a batch. Formats: - accounts/{account}/accessBindings/{accessBinding} - properties/{property}/accessBindings/{accessBinding}", + "location": "query", + "repeated": true, + "type": "string" + }, + "parent": { + "description": "Required. The account or property that owns the access bindings. The parent of all provided values for the 'names' field must match this field. Formats: - accounts/{account} - properties/{property}", + "location": "path", + "pattern": "^properties/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/accessBindings:batchGet", + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.manage.users", + "https://www.googleapis.com/auth/analytics.manage.users.readonly" + ] + }, + "batchUpdate": { + "description": "Updates information about multiple access bindings to an account or property.", + "flatPath": "v1alpha/properties/{propertiesId}/accessBindings:batchUpdate", + "httpMethod": "POST", + "id": "analyticsadmin.properties.accessBindings.batchUpdate", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The account or property that owns the access bindings. The parent field in the UpdateAccessBindingRequest messages must either be empty or match this field. Formats: - accounts/{account} - properties/{property}", + "location": "path", + "pattern": "^properties/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/accessBindings:batchUpdate", + "request": { + "$ref": "GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest" + }, + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.manage.users" + ] + }, + "create": { + "description": "Creates an access binding on an account or property.", + "flatPath": "v1alpha/properties/{propertiesId}/accessBindings", + "httpMethod": "POST", + "id": "analyticsadmin.properties.accessBindings.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Formats: - accounts/{account} - properties/{property}", + "location": "path", + "pattern": "^properties/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/accessBindings", + "request": { + "$ref": "GoogleAnalyticsAdminV1alphaAccessBinding" + }, + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaAccessBinding" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.manage.users" + ] + }, + "delete": { + "description": "Deletes an access binding on an account or property.", + "flatPath": "v1alpha/properties/{propertiesId}/accessBindings/{accessBindingsId}", + "httpMethod": "DELETE", + "id": "analyticsadmin.properties.accessBindings.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Formats: - accounts/{account}/accessBindings/{accessBinding} - properties/{property}/accessBindings/{accessBinding}", + "location": "path", + "pattern": "^properties/[^/]+/accessBindings/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.manage.users" + ] + }, + "get": { + "description": "Gets information about an access binding.", + "flatPath": "v1alpha/properties/{propertiesId}/accessBindings/{accessBindingsId}", + "httpMethod": "GET", + "id": "analyticsadmin.properties.accessBindings.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the access binding to retrieve. Formats: - accounts/{account}/accessBindings/{accessBinding} - properties/{property}/accessBindings/{accessBinding}", + "location": "path", + "pattern": "^properties/[^/]+/accessBindings/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaAccessBinding" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.manage.users", + "https://www.googleapis.com/auth/analytics.manage.users.readonly" + ] + }, + "list": { + "description": "Lists all access bindings on an account or property.", + "flatPath": "v1alpha/properties/{propertiesId}/accessBindings", + "httpMethod": "GET", + "id": "analyticsadmin.properties.accessBindings.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of access bindings to return. The service may return fewer than this value. If unspecified, at most 200 access bindings will be returned. The maximum value is 500; values above 500 will be coerced to 500.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListAccessBindings` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccessBindings` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Formats: - accounts/{account} - properties/{property}", + "location": "path", + "pattern": "^properties/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/accessBindings", + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaListAccessBindingsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.manage.users", + "https://www.googleapis.com/auth/analytics.manage.users.readonly" + ] + }, + "patch": { + "description": "Updates an access binding on an account or property.", + "flatPath": "v1alpha/properties/{propertiesId}/accessBindings/{accessBindingsId}", + "httpMethod": "PATCH", + "id": "analyticsadmin.properties.accessBindings.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. Resource name of this binding. Format: accounts/{account}/accessBindings/{access_binding} or properties/{property}/accessBindings/{access_binding} Example: \"accounts/100/accessBindings/200\"", + "location": "path", + "pattern": "^properties/[^/]+/accessBindings/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "request": { + "$ref": "GoogleAnalyticsAdminV1alphaAccessBinding" + }, + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaAccessBinding" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.manage.users" + ] + } + } + }, "audiences": { "methods": { "archive": { @@ -3060,7 +3588,7 @@ } } }, - "revision": "20230201", + "revision": "20230203", "rootUrl": "https://analyticsadmin.googleapis.com/", "schemas": { "GoogleAnalyticsAdminV1alphaAccessBetweenFilter": { @@ -3078,6 +3606,29 @@ }, "type": "object" }, + "GoogleAnalyticsAdminV1alphaAccessBinding": { + "description": "A binding of a user to a set of roles.", + "id": "GoogleAnalyticsAdminV1alphaAccessBinding", + "properties": { + "name": { + "description": "Output only. Resource name of this binding. Format: accounts/{account}/accessBindings/{access_binding} or properties/{property}/accessBindings/{access_binding} Example: \"accounts/100/accessBindings/200\"", + "readOnly": true, + "type": "string" + }, + "roles": { + "description": "A list of roles for to grant to the parent resource. Valid values: predefinedRoles/viewer predefinedRoles/analyst predefinedRoles/editor predefinedRoles/admin predefinedRoles/no-cost-data predefinedRoles/no-revenue-data For users, if an empty list of roles is set, this AccessBinding will be deleted.", + "items": { + "type": "string" + }, + "type": "array" + }, + "user": { + "description": "If set, the email address of the user to set roles for. Format: \"someuser@gmail.com\"", + "type": "string" + } + }, + "type": "object" + }, "GoogleAnalyticsAdminV1alphaAccessDateRange": { "description": "A contiguous range of days: startDate, startDate + 1, ..., endDate.", "id": "GoogleAnalyticsAdminV1alphaAccessDateRange", @@ -4086,6 +4637,34 @@ }, "type": "object" }, + "GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest": { + "description": "Request message for BatchCreateAccessBindings RPC.", + "id": "GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest", + "properties": { + "requests": { + "description": "Required. The requests specifying the access bindings to create. A maximum of 1000 access bindings can be created in a batch.", + "items": { + "$ref": "GoogleAnalyticsAdminV1alphaCreateAccessBindingRequest" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse": { + "description": "Response message for BatchCreateAccessBindings RPC.", + "id": "GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse", + "properties": { + "accessBindings": { + "description": "The access bindings created.", + "items": { + "$ref": "GoogleAnalyticsAdminV1alphaAccessBinding" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest": { "description": "Request message for BatchCreateUserLinks RPC.", "id": "GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest", @@ -4118,6 +4697,20 @@ }, "type": "object" }, + "GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest": { + "description": "Request message for BatchDeleteAccessBindings RPC.", + "id": "GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest", + "properties": { + "requests": { + "description": "Required. The requests specifying the access bindings to delete. A maximum of 1000 access bindings can be deleted in a batch.", + "items": { + "$ref": "GoogleAnalyticsAdminV1alphaDeleteAccessBindingRequest" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest": { "description": "Request message for BatchDeleteUserLinks RPC.", "id": "GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest", @@ -4132,6 +4725,20 @@ }, "type": "object" }, + "GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse": { + "description": "Response message for BatchGetAccessBindings RPC.", + "id": "GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse", + "properties": { + "accessBindings": { + "description": "The requested access bindings.", + "items": { + "$ref": "GoogleAnalyticsAdminV1alphaAccessBinding" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse": { "description": "Response message for BatchGetUserLinks RPC.", "id": "GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse", @@ -4146,6 +4753,34 @@ }, "type": "object" }, + "GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest": { + "description": "Request message for BatchUpdateAccessBindings RPC.", + "id": "GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest", + "properties": { + "requests": { + "description": "Required. The requests specifying the access bindings to update. A maximum of 1000 access bindings can be updated in a batch.", + "items": { + "$ref": "GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse": { + "description": "Response message for BatchUpdateAccessBindings RPC.", + "id": "GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse", + "properties": { + "accessBindings": { + "description": "The access bindings updated.", + "items": { + "$ref": "GoogleAnalyticsAdminV1alphaAccessBinding" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest": { "description": "Request message for BatchUpdateUserLinks RPC.", "id": "GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest", @@ -4417,6 +5052,21 @@ }, "type": "object" }, + "GoogleAnalyticsAdminV1alphaCreateAccessBindingRequest": { + "description": "Request message for CreateAccessBinding RPC.", + "id": "GoogleAnalyticsAdminV1alphaCreateAccessBindingRequest", + "properties": { + "accessBinding": { + "$ref": "GoogleAnalyticsAdminV1alphaAccessBinding", + "description": "Required. The access binding to create." + }, + "parent": { + "description": "Required. Formats: - accounts/{account} - properties/{property}", + "type": "string" + } + }, + "type": "object" + }, "GoogleAnalyticsAdminV1alphaCreateUserLinkRequest": { "description": "Request message for CreateUserLink RPC. Users can have multiple email addresses associated with their Google account, and one of these email addresses is the \"primary\" email address. Any of the email addresses associated with a Google account may be used for a new UserLink, but the returned UserLink will always contain the \"primary\" email address. As a result, the input and output email address for this request may differ.", "id": "GoogleAnalyticsAdminV1alphaCreateUserLinkRequest", @@ -4738,6 +5388,17 @@ }, "type": "object" }, + "GoogleAnalyticsAdminV1alphaDeleteAccessBindingRequest": { + "description": "Request message for DeleteAccessBinding RPC.", + "id": "GoogleAnalyticsAdminV1alphaDeleteAccessBindingRequest", + "properties": { + "name": { + "description": "Required. Formats: - accounts/{account}/accessBindings/{accessBinding} - properties/{property}/accessBindings/{accessBinding}", + "type": "string" + } + }, + "type": "object" + }, "GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest": { "description": "Request message for DeleteUserLink RPC.", "id": "GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest", @@ -5160,6 +5821,24 @@ }, "type": "object" }, + "GoogleAnalyticsAdminV1alphaListAccessBindingsResponse": { + "description": "Response message for ListAccessBindings RPC.", + "id": "GoogleAnalyticsAdminV1alphaListAccessBindingsResponse", + "properties": { + "accessBindings": { + "description": "List of AccessBindings. These will be ordered stably, but in an arbitrary order.", + "items": { + "$ref": "GoogleAnalyticsAdminV1alphaAccessBinding" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, "GoogleAnalyticsAdminV1alphaListAccountSummariesResponse": { "description": "Response message for ListAccountSummaries RPC.", "id": "GoogleAnalyticsAdminV1alphaListAccountSummariesResponse", @@ -5973,6 +6652,17 @@ "properties": {}, "type": "object" }, + "GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest": { + "description": "Request message for UpdateAccessBinding RPC.", + "id": "GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest", + "properties": { + "accessBinding": { + "$ref": "GoogleAnalyticsAdminV1alphaAccessBinding", + "description": "Required. The access binding to update." + } + }, + "type": "object" + }, "GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest": { "description": "Request message for UpdateUserLink RPC.", "id": "GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest", diff --git a/analyticsadmin/v1alpha/analyticsadmin-gen.go b/analyticsadmin/v1alpha/analyticsadmin-gen.go index 741dfdd3092..092a177db23 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-gen.go +++ b/analyticsadmin/v1alpha/analyticsadmin-gen.go @@ -169,6 +169,7 @@ type AccountSummariesService struct { func NewAccountsService(s *Service) *AccountsService { rs := &AccountsService{s: s} + rs.AccessBindings = NewAccountsAccessBindingsService(s) rs.UserLinks = NewAccountsUserLinksService(s) return rs } @@ -176,9 +177,20 @@ func NewAccountsService(s *Service) *AccountsService { type AccountsService struct { s *Service + AccessBindings *AccountsAccessBindingsService + UserLinks *AccountsUserLinksService } +func NewAccountsAccessBindingsService(s *Service) *AccountsAccessBindingsService { + rs := &AccountsAccessBindingsService{s: s} + return rs +} + +type AccountsAccessBindingsService struct { + s *Service +} + func NewAccountsUserLinksService(s *Service) *AccountsUserLinksService { rs := &AccountsUserLinksService{s: s} return rs @@ -190,6 +202,7 @@ type AccountsUserLinksService struct { func NewPropertiesService(s *Service) *PropertiesService { rs := &PropertiesService{s: s} + rs.AccessBindings = NewPropertiesAccessBindingsService(s) rs.Audiences = NewPropertiesAudiencesService(s) rs.BigQueryLinks = NewPropertiesBigQueryLinksService(s) rs.ConversionEvents = NewPropertiesConversionEventsService(s) @@ -208,6 +221,8 @@ func NewPropertiesService(s *Service) *PropertiesService { type PropertiesService struct { s *Service + AccessBindings *PropertiesAccessBindingsService + Audiences *PropertiesAudiencesService BigQueryLinks *PropertiesBigQueryLinksService @@ -233,6 +248,15 @@ type PropertiesService struct { UserLinks *PropertiesUserLinksService } +func NewPropertiesAccessBindingsService(s *Service) *PropertiesAccessBindingsService { + rs := &PropertiesAccessBindingsService{s: s} + return rs +} + +type PropertiesAccessBindingsService struct { + s *Service +} + func NewPropertiesAudiencesService(s *Service) *PropertiesAudiencesService { rs := &PropertiesAudiencesService{s: s} return rs @@ -385,6 +409,54 @@ func (s *GoogleAnalyticsAdminV1alphaAccessBetweenFilter) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAnalyticsAdminV1alphaAccessBinding: A binding of a user to a +// set of roles. +type GoogleAnalyticsAdminV1alphaAccessBinding struct { + // Name: Output only. Resource name of this binding. Format: + // accounts/{account}/accessBindings/{access_binding} or + // properties/{property}/accessBindings/{access_binding} Example: + // "accounts/100/accessBindings/200" + Name string `json:"name,omitempty"` + + // Roles: A list of roles for to grant to the parent resource. Valid + // values: predefinedRoles/viewer predefinedRoles/analyst + // predefinedRoles/editor predefinedRoles/admin + // predefinedRoles/no-cost-data predefinedRoles/no-revenue-data For + // users, if an empty list of roles is set, this AccessBinding will be + // deleted. + Roles []string `json:"roles,omitempty"` + + // User: If set, the email address of the user to set roles for. Format: + // "someuser@gmail.com" + User string `json:"user,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 *GoogleAnalyticsAdminV1alphaAccessBinding) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaAccessBinding + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAnalyticsAdminV1alphaAccessDateRange: A contiguous range of // days: startDate, startDate + 1, ..., endDate. type GoogleAnalyticsAdminV1alphaAccessDateRange struct { @@ -2190,6 +2262,70 @@ func (s *GoogleAnalyticsAdminV1alphaAuditUserLinksResponse) MarshalJSON() ([]byt return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest: Request +// message for BatchCreateAccessBindings RPC. +type GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest struct { + // Requests: Required. The requests specifying the access bindings to + // create. A maximum of 1000 access bindings can be created in a batch. + Requests []*GoogleAnalyticsAdminV1alphaCreateAccessBindingRequest `json:"requests,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Requests") 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. "Requests") 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 *GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse: +// Response message for BatchCreateAccessBindings RPC. +type GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse struct { + // AccessBindings: The access bindings created. + AccessBindings []*GoogleAnalyticsAdminV1alphaAccessBinding `json:"accessBindings,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AccessBindings") 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. "AccessBindings") 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 *GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest: Request // message for BatchCreateUserLinks RPC. type GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest struct { @@ -2260,6 +2396,36 @@ func (s *GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse) MarshalJSON() return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest: Request +// message for BatchDeleteAccessBindings RPC. +type GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest struct { + // Requests: Required. The requests specifying the access bindings to + // delete. A maximum of 1000 access bindings can be deleted in a batch. + Requests []*GoogleAnalyticsAdminV1alphaDeleteAccessBindingRequest `json:"requests,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Requests") 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. "Requests") 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 *GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest: Request // message for BatchDeleteUserLinks RPC. type GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest struct { @@ -2290,6 +2456,40 @@ func (s *GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest) MarshalJSON() ( return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse: Response +// message for BatchGetAccessBindings RPC. +type GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse struct { + // AccessBindings: The requested access bindings. + AccessBindings []*GoogleAnalyticsAdminV1alphaAccessBinding `json:"accessBindings,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AccessBindings") 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. "AccessBindings") 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 *GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse: Response // message for BatchGetUserLinks RPC. type GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse struct { @@ -2323,6 +2523,70 @@ func (s *GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse) MarshalJSON() ([] return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest: Request +// message for BatchUpdateAccessBindings RPC. +type GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest struct { + // Requests: Required. The requests specifying the access bindings to + // update. A maximum of 1000 access bindings can be updated in a batch. + Requests []*GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest `json:"requests,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Requests") 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. "Requests") 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 *GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse: +// Response message for BatchUpdateAccessBindings RPC. +type GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse struct { + // AccessBindings: The access bindings updated. + AccessBindings []*GoogleAnalyticsAdminV1alphaAccessBinding `json:"accessBindings,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AccessBindings") 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. "AccessBindings") 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 *GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest: Request // message for BatchUpdateUserLinks RPC. type GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest struct { @@ -2716,6 +2980,39 @@ func (s *GoogleAnalyticsAdminV1alphaConversionEvent) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAnalyticsAdminV1alphaCreateAccessBindingRequest: Request +// message for CreateAccessBinding RPC. +type GoogleAnalyticsAdminV1alphaCreateAccessBindingRequest struct { + // AccessBinding: Required. The access binding to create. + AccessBinding *GoogleAnalyticsAdminV1alphaAccessBinding `json:"accessBinding,omitempty"` + + // Parent: Required. Formats: - accounts/{account} - + // properties/{property} + Parent string `json:"parent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AccessBinding") 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. "AccessBinding") 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 *GoogleAnalyticsAdminV1alphaCreateAccessBindingRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaCreateAccessBindingRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAnalyticsAdminV1alphaCreateUserLinkRequest: Request message for // CreateUserLink RPC. Users can have multiple email addresses // associated with their Google account, and one of these email @@ -3204,6 +3501,37 @@ func (s *GoogleAnalyticsAdminV1alphaDataStreamWebStreamData) MarshalJSON() ([]by return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAnalyticsAdminV1alphaDeleteAccessBindingRequest: Request +// message for DeleteAccessBinding RPC. +type GoogleAnalyticsAdminV1alphaDeleteAccessBindingRequest struct { + // Name: Required. Formats: - + // accounts/{account}/accessBindings/{accessBinding} - + // properties/{property}/accessBindings/{accessBinding} + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 *GoogleAnalyticsAdminV1alphaDeleteAccessBindingRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaDeleteAccessBindingRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest: Request message for // DeleteUserLink RPC. type GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest struct { @@ -3968,12 +4296,12 @@ func (s *GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails) MarshalJSON() ([] return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleAnalyticsAdminV1alphaListAccountSummariesResponse: Response -// message for ListAccountSummaries RPC. -type GoogleAnalyticsAdminV1alphaListAccountSummariesResponse struct { - // AccountSummaries: Account summaries of all accounts the caller has - // access to. - AccountSummaries []*GoogleAnalyticsAdminV1alphaAccountSummary `json:"accountSummaries,omitempty"` +// GoogleAnalyticsAdminV1alphaListAccessBindingsResponse: Response +// message for ListAccessBindings RPC. +type GoogleAnalyticsAdminV1alphaListAccessBindingsResponse struct { + // AccessBindings: List of AccessBindings. These will be ordered stably, + // but in an arbitrary order. + AccessBindings []*GoogleAnalyticsAdminV1alphaAccessBinding `json:"accessBindings,omitempty"` // NextPageToken: A token, which can be sent as `page_token` to retrieve // the next page. If this field is omitted, there are no subsequent @@ -3984,7 +4312,7 @@ type GoogleAnalyticsAdminV1alphaListAccountSummariesResponse struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountSummaries") to + // ForceSendFields is a list of field names (e.g. "AccessBindings") 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 @@ -3992,7 +4320,7 @@ type GoogleAnalyticsAdminV1alphaListAccountSummariesResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AccountSummaries") to + // NullFields is a list of field names (e.g. "AccessBindings") 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 @@ -4002,17 +4330,18 @@ type GoogleAnalyticsAdminV1alphaListAccountSummariesResponse struct { NullFields []string `json:"-"` } -func (s *GoogleAnalyticsAdminV1alphaListAccountSummariesResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAnalyticsAdminV1alphaListAccountSummariesResponse +func (s *GoogleAnalyticsAdminV1alphaListAccessBindingsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaListAccessBindingsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleAnalyticsAdminV1alphaListAccountsResponse: Request message for -// ListAccounts RPC. -type GoogleAnalyticsAdminV1alphaListAccountsResponse struct { - // Accounts: Results that were accessible to the caller. - Accounts []*GoogleAnalyticsAdminV1alphaAccount `json:"accounts,omitempty"` +// GoogleAnalyticsAdminV1alphaListAccountSummariesResponse: Response +// message for ListAccountSummaries RPC. +type GoogleAnalyticsAdminV1alphaListAccountSummariesResponse struct { + // AccountSummaries: Account summaries of all accounts the caller has + // access to. + AccountSummaries []*GoogleAnalyticsAdminV1alphaAccountSummary `json:"accountSummaries,omitempty"` // NextPageToken: A token, which can be sent as `page_token` to retrieve // the next page. If this field is omitted, there are no subsequent @@ -4023,7 +4352,7 @@ type GoogleAnalyticsAdminV1alphaListAccountsResponse struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Accounts") to + // ForceSendFields is a list of field names (e.g. "AccountSummaries") 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 @@ -4031,10 +4360,49 @@ type GoogleAnalyticsAdminV1alphaListAccountsResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Accounts") 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 + // NullFields is a list of field names (e.g. "AccountSummaries") 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 *GoogleAnalyticsAdminV1alphaListAccountSummariesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaListAccountSummariesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAnalyticsAdminV1alphaListAccountsResponse: Request message for +// ListAccounts RPC. +type GoogleAnalyticsAdminV1alphaListAccountsResponse struct { + // Accounts: Results that were accessible to the caller. + Accounts []*GoogleAnalyticsAdminV1alphaAccount `json:"accounts,omitempty"` + + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, 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. "Accounts") 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. "Accounts") 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:"-"` @@ -5335,6 +5703,35 @@ type GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse struc googleapi.ServerResponse `json:"-"` } +// GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest: Request +// message for UpdateAccessBinding RPC. +type GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest struct { + // AccessBinding: Required. The access binding to update. + AccessBinding *GoogleAnalyticsAdminV1alphaAccessBinding `json:"accessBinding,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AccessBinding") 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. "AccessBinding") 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 *GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest: Request message for // UpdateUserLink RPC. type GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest struct { @@ -6707,37 +7104,37 @@ func (c *AccountsSearchChangeHistoryEventsCall) Pages(ctx context.Context, f fun } } -// method id "analyticsadmin.accounts.userLinks.audit": +// method id "analyticsadmin.accounts.accessBindings.batchCreate": -type AccountsUserLinksAuditCall struct { - s *Service - parent string - googleanalyticsadminv1alphaaudituserlinksrequest *GoogleAnalyticsAdminV1alphaAuditUserLinksRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type AccountsAccessBindingsBatchCreateCall struct { + s *Service + parent string + googleanalyticsadminv1alphabatchcreateaccessbindingsrequest *GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Audit: Lists all user links on an account or property, including -// implicit ones that come from effective permissions granted by groups -// or organization admin roles. If a returned user link does not have -// direct permissions, they cannot be removed from the account or -// property directly with the DeleteUserLink command. They have to be -// removed from the group/etc that gives them permissions, which is -// currently only usable/discoverable in the GA or GMP UIs. +// BatchCreate: Creates information about multiple access bindings to an +// account or property. This method is transactional. If any +// AccessBinding cannot be created, none of the AccessBindings will be +// created. // -// - parent: Example format: accounts/1234. -func (r *AccountsUserLinksService) Audit(parent string, googleanalyticsadminv1alphaaudituserlinksrequest *GoogleAnalyticsAdminV1alphaAuditUserLinksRequest) *AccountsUserLinksAuditCall { - c := &AccountsUserLinksAuditCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The account or property that owns the access bindings. The +// parent field in the CreateAccessBindingRequest messages must either +// be empty or match this field. Formats: - accounts/{account} - +// properties/{property}. +func (r *AccountsAccessBindingsService) BatchCreate(parent string, googleanalyticsadminv1alphabatchcreateaccessbindingsrequest *GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest) *AccountsAccessBindingsBatchCreateCall { + c := &AccountsAccessBindingsBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googleanalyticsadminv1alphaaudituserlinksrequest = googleanalyticsadminv1alphaaudituserlinksrequest + c.googleanalyticsadminv1alphabatchcreateaccessbindingsrequest = googleanalyticsadminv1alphabatchcreateaccessbindingsrequest 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 *AccountsUserLinksAuditCall) Fields(s ...googleapi.Field) *AccountsUserLinksAuditCall { +func (c *AccountsAccessBindingsBatchCreateCall) Fields(s ...googleapi.Field) *AccountsAccessBindingsBatchCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6745,21 +7142,21 @@ func (c *AccountsUserLinksAuditCall) Fields(s ...googleapi.Field) *AccountsUserL // 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 *AccountsUserLinksAuditCall) Context(ctx context.Context) *AccountsUserLinksAuditCall { +func (c *AccountsAccessBindingsBatchCreateCall) Context(ctx context.Context) *AccountsAccessBindingsBatchCreateCall { 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 *AccountsUserLinksAuditCall) Header() http.Header { +func (c *AccountsAccessBindingsBatchCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AccountsUserLinksAuditCall) doRequest(alt string) (*http.Response, error) { +func (c *AccountsAccessBindingsBatchCreateCall) 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_ { @@ -6767,14 +7164,14 @@ func (c *AccountsUserLinksAuditCall) doRequest(alt string) (*http.Response, erro } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaaudituserlinksrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphabatchcreateaccessbindingsrequest) 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, "v1alpha/{+parent}/userLinks:audit") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/accessBindings:batchCreate") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -6787,16 +7184,17 @@ func (c *AccountsUserLinksAuditCall) doRequest(alt string) (*http.Response, erro return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.accounts.userLinks.audit" call. -// Exactly one of *GoogleAnalyticsAdminV1alphaAuditUserLinksResponse or +// Do executes the "analyticsadmin.accounts.accessBindings.batchCreate" call. +// Exactly one of +// *GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse or // error will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleAnalyticsAdminV1alphaAuditUserLinksResponse.ServerResponse.Head -// er or (if a response was returned at all) in +// *GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse.ServerRe +// sponse.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 *AccountsUserLinksAuditCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAuditUserLinksResponse, error) { +func (c *AccountsAccessBindingsBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6815,7 +7213,7 @@ func (c *AccountsUserLinksAuditCall) Do(opts ...googleapi.CallOption) (*GoogleAn if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaAuditUserLinksResponse{ + ret := &GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6827,88 +7225,65 @@ func (c *AccountsUserLinksAuditCall) Do(opts ...googleapi.CallOption) (*GoogleAn } return ret, nil // { - // "description": "Lists all user links on an account or property, including implicit ones that come from effective permissions granted by groups or organization admin roles. If a returned user link does not have direct permissions, they cannot be removed from the account or property directly with the DeleteUserLink command. They have to be removed from the group/etc that gives them permissions, which is currently only usable/discoverable in the GA or GMP UIs.", - // "flatPath": "v1alpha/accounts/{accountsId}/userLinks:audit", + // "description": "Creates information about multiple access bindings to an account or property. This method is transactional. If any AccessBinding cannot be created, none of the AccessBindings will be created.", + // "flatPath": "v1alpha/accounts/{accountsId}/accessBindings:batchCreate", // "httpMethod": "POST", - // "id": "analyticsadmin.accounts.userLinks.audit", + // "id": "analyticsadmin.accounts.accessBindings.batchCreate", // "parameterOrder": [ // "parent" // ], // "parameters": { // "parent": { - // "description": "Required. Example format: accounts/1234", + // "description": "Required. The account or property that owns the access bindings. The parent field in the CreateAccessBindingRequest messages must either be empty or match this field. Formats: - accounts/{account} - properties/{property}", // "location": "path", // "pattern": "^accounts/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+parent}/userLinks:audit", + // "path": "v1alpha/{+parent}/accessBindings:batchCreate", // "request": { - // "$ref": "GoogleAnalyticsAdminV1alphaAuditUserLinksRequest" + // "$ref": "GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest" // }, // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaAuditUserLinksResponse" + // "$ref": "GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/analytics.manage.users", - // "https://www.googleapis.com/auth/analytics.manage.users.readonly" + // "https://www.googleapis.com/auth/analytics.manage.users" // ] // } } -// 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 *AccountsUserLinksAuditCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaAuditUserLinksResponse) error) error { - c.ctx_ = ctx - defer func(pt string) { c.googleanalyticsadminv1alphaaudituserlinksrequest.PageToken = pt }(c.googleanalyticsadminv1alphaaudituserlinksrequest.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.googleanalyticsadminv1alphaaudituserlinksrequest.PageToken = x.NextPageToken - } -} - -// method id "analyticsadmin.accounts.userLinks.batchCreate": +// method id "analyticsadmin.accounts.accessBindings.batchDelete": -type AccountsUserLinksBatchCreateCall struct { - s *Service - parent string - googleanalyticsadminv1alphabatchcreateuserlinksrequest *GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type AccountsAccessBindingsBatchDeleteCall struct { + s *Service + parent string + googleanalyticsadminv1alphabatchdeleteaccessbindingsrequest *GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// BatchCreate: Creates information about multiple users' links to an -// account or property. This method is transactional. If any UserLink -// cannot be created, none of the UserLinks will be created. +// BatchDelete: Deletes information about multiple users' links to an +// account or property. // -// - parent: The account or property that all user links in the request -// are for. This field is required. The parent field in the -// CreateUserLinkRequest messages must either be empty or match this -// field. Example format: accounts/1234. -func (r *AccountsUserLinksService) BatchCreate(parent string, googleanalyticsadminv1alphabatchcreateuserlinksrequest *GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest) *AccountsUserLinksBatchCreateCall { - c := &AccountsUserLinksBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The account or property that owns the access bindings. The +// parent field in the DeleteAccessBindingRequest messages must either +// be empty or match this field. Formats: - accounts/{account} - +// properties/{property}. +func (r *AccountsAccessBindingsService) BatchDelete(parent string, googleanalyticsadminv1alphabatchdeleteaccessbindingsrequest *GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest) *AccountsAccessBindingsBatchDeleteCall { + c := &AccountsAccessBindingsBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googleanalyticsadminv1alphabatchcreateuserlinksrequest = googleanalyticsadminv1alphabatchcreateuserlinksrequest + c.googleanalyticsadminv1alphabatchdeleteaccessbindingsrequest = googleanalyticsadminv1alphabatchdeleteaccessbindingsrequest 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 *AccountsUserLinksBatchCreateCall) Fields(s ...googleapi.Field) *AccountsUserLinksBatchCreateCall { +func (c *AccountsAccessBindingsBatchDeleteCall) Fields(s ...googleapi.Field) *AccountsAccessBindingsBatchDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6916,21 +7291,21 @@ func (c *AccountsUserLinksBatchCreateCall) Fields(s ...googleapi.Field) *Account // 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 *AccountsUserLinksBatchCreateCall) Context(ctx context.Context) *AccountsUserLinksBatchCreateCall { +func (c *AccountsAccessBindingsBatchDeleteCall) Context(ctx context.Context) *AccountsAccessBindingsBatchDeleteCall { 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 *AccountsUserLinksBatchCreateCall) Header() http.Header { +func (c *AccountsAccessBindingsBatchDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AccountsUserLinksBatchCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *AccountsAccessBindingsBatchDeleteCall) 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_ { @@ -6938,14 +7313,14 @@ func (c *AccountsUserLinksBatchCreateCall) doRequest(alt string) (*http.Response } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphabatchcreateuserlinksrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphabatchdeleteaccessbindingsrequest) 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, "v1alpha/{+parent}/userLinks:batchCreate") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/accessBindings:batchDelete") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -6958,17 +7333,14 @@ func (c *AccountsUserLinksBatchCreateCall) doRequest(alt string) (*http.Response return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.accounts.userLinks.batchCreate" call. -// Exactly one of -// *GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse.ServerRespons -// e.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 *AccountsUserLinksBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse, error) { +// Do executes the "analyticsadmin.accounts.accessBindings.batchDelete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *AccountsAccessBindingsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6987,7 +7359,7 @@ func (c *AccountsUserLinksBatchCreateCall) Do(opts ...googleapi.CallOption) (*Go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6999,28 +7371,28 @@ func (c *AccountsUserLinksBatchCreateCall) Do(opts ...googleapi.CallOption) (*Go } return ret, nil // { - // "description": "Creates information about multiple users' links to an account or property. This method is transactional. If any UserLink cannot be created, none of the UserLinks will be created.", - // "flatPath": "v1alpha/accounts/{accountsId}/userLinks:batchCreate", + // "description": "Deletes information about multiple users' links to an account or property.", + // "flatPath": "v1alpha/accounts/{accountsId}/accessBindings:batchDelete", // "httpMethod": "POST", - // "id": "analyticsadmin.accounts.userLinks.batchCreate", + // "id": "analyticsadmin.accounts.accessBindings.batchDelete", // "parameterOrder": [ // "parent" // ], // "parameters": { // "parent": { - // "description": "Required. The account or property that all user links in the request are for. This field is required. The parent field in the CreateUserLinkRequest messages must either be empty or match this field. Example format: accounts/1234", + // "description": "Required. The account or property that owns the access bindings. The parent field in the DeleteAccessBindingRequest messages must either be empty or match this field. Formats: - accounts/{account} - properties/{property}", // "location": "path", // "pattern": "^accounts/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+parent}/userLinks:batchCreate", + // "path": "v1alpha/{+parent}/accessBindings:batchDelete", // "request": { - // "$ref": "GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest" + // "$ref": "GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest" // }, // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/analytics.manage.users" @@ -7029,73 +7401,90 @@ func (c *AccountsUserLinksBatchCreateCall) Do(opts ...googleapi.CallOption) (*Go } -// method id "analyticsadmin.accounts.userLinks.batchDelete": +// method id "analyticsadmin.accounts.accessBindings.batchGet": -type AccountsUserLinksBatchDeleteCall struct { - s *Service - parent string - googleanalyticsadminv1alphabatchdeleteuserlinksrequest *GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type AccountsAccessBindingsBatchGetCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// BatchDelete: Deletes information about multiple users' links to an +// BatchGet: Gets information about multiple access bindings to an // account or property. // -// - parent: The account or property that all user links in the request -// are for. The parent of all values for user link names to delete -// must match this field. Example format: accounts/1234. -func (r *AccountsUserLinksService) BatchDelete(parent string, googleanalyticsadminv1alphabatchdeleteuserlinksrequest *GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest) *AccountsUserLinksBatchDeleteCall { - c := &AccountsUserLinksBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The account or property that owns the access bindings. The +// parent of all provided values for the 'names' field must match this +// field. Formats: - accounts/{account} - properties/{property}. +func (r *AccountsAccessBindingsService) BatchGet(parent string) *AccountsAccessBindingsBatchGetCall { + c := &AccountsAccessBindingsBatchGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googleanalyticsadminv1alphabatchdeleteuserlinksrequest = googleanalyticsadminv1alphabatchdeleteuserlinksrequest + return c +} + +// Names sets the optional parameter "names": Required. The names of the +// access bindings to retrieve. A maximum of 1000 access bindings can be +// retrieved in a batch. Formats: - +// accounts/{account}/accessBindings/{accessBinding} - +// properties/{property}/accessBindings/{accessBinding} +func (c *AccountsAccessBindingsBatchGetCall) Names(names ...string) *AccountsAccessBindingsBatchGetCall { + c.urlParams_.SetMulti("names", append([]string{}, names...)) 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 *AccountsUserLinksBatchDeleteCall) Fields(s ...googleapi.Field) *AccountsUserLinksBatchDeleteCall { +func (c *AccountsAccessBindingsBatchGetCall) Fields(s ...googleapi.Field) *AccountsAccessBindingsBatchGetCall { 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 *AccountsAccessBindingsBatchGetCall) IfNoneMatch(entityTag string) *AccountsAccessBindingsBatchGetCall { + 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 *AccountsUserLinksBatchDeleteCall) Context(ctx context.Context) *AccountsUserLinksBatchDeleteCall { +func (c *AccountsAccessBindingsBatchGetCall) Context(ctx context.Context) *AccountsAccessBindingsBatchGetCall { 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 *AccountsUserLinksBatchDeleteCall) Header() http.Header { +func (c *AccountsAccessBindingsBatchGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AccountsUserLinksBatchDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *AccountsAccessBindingsBatchGetCall) 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.googleanalyticsadminv1alphabatchdeleteuserlinksrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/userLinks:batchDelete") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/accessBindings:batchGet") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -7106,14 +7495,17 @@ func (c *AccountsUserLinksBatchDeleteCall) doRequest(alt string) (*http.Response return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.accounts.userLinks.batchDelete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.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 *AccountsUserLinksBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// Do executes the "analyticsadmin.accounts.accessBindings.batchGet" call. +// Exactly one of +// *GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse.ServerRespo +// nse.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 *AccountsAccessBindingsBatchGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7132,7 +7524,7 @@ func (c *AccountsUserLinksBatchDeleteCall) Do(opts ...googleapi.CallOption) (*Go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7144,118 +7536,108 @@ func (c *AccountsUserLinksBatchDeleteCall) Do(opts ...googleapi.CallOption) (*Go } return ret, nil // { - // "description": "Deletes information about multiple users' links to an account or property.", - // "flatPath": "v1alpha/accounts/{accountsId}/userLinks:batchDelete", - // "httpMethod": "POST", - // "id": "analyticsadmin.accounts.userLinks.batchDelete", + // "description": "Gets information about multiple access bindings to an account or property.", + // "flatPath": "v1alpha/accounts/{accountsId}/accessBindings:batchGet", + // "httpMethod": "GET", + // "id": "analyticsadmin.accounts.accessBindings.batchGet", // "parameterOrder": [ // "parent" // ], // "parameters": { + // "names": { + // "description": "Required. The names of the access bindings to retrieve. A maximum of 1000 access bindings can be retrieved in a batch. Formats: - accounts/{account}/accessBindings/{accessBinding} - properties/{property}/accessBindings/{accessBinding}", + // "location": "query", + // "repeated": true, + // "type": "string" + // }, // "parent": { - // "description": "Required. The account or property that all user links in the request are for. The parent of all values for user link names to delete must match this field. Example format: accounts/1234", + // "description": "Required. The account or property that owns the access bindings. The parent of all provided values for the 'names' field must match this field. Formats: - accounts/{account} - properties/{property}", // "location": "path", // "pattern": "^accounts/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+parent}/userLinks:batchDelete", - // "request": { - // "$ref": "GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest" - // }, + // "path": "v1alpha/{+parent}/accessBindings:batchGet", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/analytics.manage.users" + // "https://www.googleapis.com/auth/analytics.manage.users", + // "https://www.googleapis.com/auth/analytics.manage.users.readonly" // ] // } } -// method id "analyticsadmin.accounts.userLinks.batchGet": +// method id "analyticsadmin.accounts.accessBindings.batchUpdate": -type AccountsUserLinksBatchGetCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type AccountsAccessBindingsBatchUpdateCall struct { + s *Service + parent string + googleanalyticsadminv1alphabatchupdateaccessbindingsrequest *GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// BatchGet: Gets information about multiple users' links to an account -// or property. +// BatchUpdate: Updates information about multiple access bindings to an +// account or property. // -// - parent: The account or property that all user links in the request -// are for. The parent of all provided values for the 'names' field -// must match this field. Example format: accounts/1234. -func (r *AccountsUserLinksService) BatchGet(parent string) *AccountsUserLinksBatchGetCall { - c := &AccountsUserLinksBatchGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The account or property that owns the access bindings. The +// parent field in the UpdateAccessBindingRequest messages must either +// be empty or match this field. Formats: - accounts/{account} - +// properties/{property}. +func (r *AccountsAccessBindingsService) BatchUpdate(parent string, googleanalyticsadminv1alphabatchupdateaccessbindingsrequest *GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest) *AccountsAccessBindingsBatchUpdateCall { + c := &AccountsAccessBindingsBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - return c -} - -// Names sets the optional parameter "names": Required. The names of the -// user links to retrieve. A maximum of 1000 user links can be retrieved -// in a batch. Format: accounts/{accountId}/userLinks/{userLinkId} -func (c *AccountsUserLinksBatchGetCall) Names(names ...string) *AccountsUserLinksBatchGetCall { - c.urlParams_.SetMulti("names", append([]string{}, names...)) + c.googleanalyticsadminv1alphabatchupdateaccessbindingsrequest = googleanalyticsadminv1alphabatchupdateaccessbindingsrequest 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 *AccountsUserLinksBatchGetCall) Fields(s ...googleapi.Field) *AccountsUserLinksBatchGetCall { +func (c *AccountsAccessBindingsBatchUpdateCall) Fields(s ...googleapi.Field) *AccountsAccessBindingsBatchUpdateCall { 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 *AccountsUserLinksBatchGetCall) IfNoneMatch(entityTag string) *AccountsUserLinksBatchGetCall { - 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 *AccountsUserLinksBatchGetCall) Context(ctx context.Context) *AccountsUserLinksBatchGetCall { +func (c *AccountsAccessBindingsBatchUpdateCall) Context(ctx context.Context) *AccountsAccessBindingsBatchUpdateCall { 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 *AccountsUserLinksBatchGetCall) Header() http.Header { +func (c *AccountsAccessBindingsBatchUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AccountsUserLinksBatchGetCall) doRequest(alt string) (*http.Response, error) { +func (c *AccountsAccessBindingsBatchUpdateCall) 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 + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphabatchupdateaccessbindingsrequest) + 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, "v1alpha/{+parent}/userLinks:batchGet") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/accessBindings:batchUpdate") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -7266,16 +7648,17 @@ func (c *AccountsUserLinksBatchGetCall) doRequest(alt string) (*http.Response, e return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.accounts.userLinks.batchGet" call. -// Exactly one of *GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse.ServerResponse.H -// eader or (if a response was returned at all) in +// Do executes the "analyticsadmin.accounts.accessBindings.batchUpdate" call. +// Exactly one of +// *GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse.ServerRe +// sponse.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 *AccountsUserLinksBatchGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse, error) { +func (c *AccountsAccessBindingsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7294,7 +7677,7 @@ func (c *AccountsUserLinksBatchGetCall) Do(opts ...googleapi.CallOption) (*Googl if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse{ + ret := &GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7306,69 +7689,61 @@ func (c *AccountsUserLinksBatchGetCall) Do(opts ...googleapi.CallOption) (*Googl } return ret, nil // { - // "description": "Gets information about multiple users' links to an account or property.", - // "flatPath": "v1alpha/accounts/{accountsId}/userLinks:batchGet", - // "httpMethod": "GET", - // "id": "analyticsadmin.accounts.userLinks.batchGet", + // "description": "Updates information about multiple access bindings to an account or property.", + // "flatPath": "v1alpha/accounts/{accountsId}/accessBindings:batchUpdate", + // "httpMethod": "POST", + // "id": "analyticsadmin.accounts.accessBindings.batchUpdate", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "names": { - // "description": "Required. The names of the user links to retrieve. A maximum of 1000 user links can be retrieved in a batch. Format: accounts/{accountId}/userLinks/{userLinkId}", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, // "parent": { - // "description": "Required. The account or property that all user links in the request are for. The parent of all provided values for the 'names' field must match this field. Example format: accounts/1234", + // "description": "Required. The account or property that owns the access bindings. The parent field in the UpdateAccessBindingRequest messages must either be empty or match this field. Formats: - accounts/{account} - properties/{property}", // "location": "path", // "pattern": "^accounts/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+parent}/userLinks:batchGet", + // "path": "v1alpha/{+parent}/accessBindings:batchUpdate", + // "request": { + // "$ref": "GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest" + // }, // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse" + // "$ref": "GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/analytics.manage.users", - // "https://www.googleapis.com/auth/analytics.manage.users.readonly" + // "https://www.googleapis.com/auth/analytics.manage.users" // ] // } } -// method id "analyticsadmin.accounts.userLinks.batchUpdate": +// method id "analyticsadmin.accounts.accessBindings.create": -type AccountsUserLinksBatchUpdateCall struct { - s *Service - parent string - googleanalyticsadminv1alphabatchupdateuserlinksrequest *GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type AccountsAccessBindingsCreateCall struct { + s *Service + parent string + googleanalyticsadminv1alphaaccessbinding *GoogleAnalyticsAdminV1alphaAccessBinding + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// BatchUpdate: Updates information about multiple users' links to an -// account or property. +// Create: Creates an access binding on an account or property. // -// - parent: The account or property that all user links in the request -// are for. The parent field in the UpdateUserLinkRequest messages -// must either be empty or match this field. Example format: -// accounts/1234. -func (r *AccountsUserLinksService) BatchUpdate(parent string, googleanalyticsadminv1alphabatchupdateuserlinksrequest *GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest) *AccountsUserLinksBatchUpdateCall { - c := &AccountsUserLinksBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: Formats: - accounts/{account} - properties/{property}. +func (r *AccountsAccessBindingsService) Create(parent string, googleanalyticsadminv1alphaaccessbinding *GoogleAnalyticsAdminV1alphaAccessBinding) *AccountsAccessBindingsCreateCall { + c := &AccountsAccessBindingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googleanalyticsadminv1alphabatchupdateuserlinksrequest = googleanalyticsadminv1alphabatchupdateuserlinksrequest + c.googleanalyticsadminv1alphaaccessbinding = googleanalyticsadminv1alphaaccessbinding 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 *AccountsUserLinksBatchUpdateCall) Fields(s ...googleapi.Field) *AccountsUserLinksBatchUpdateCall { +func (c *AccountsAccessBindingsCreateCall) Fields(s ...googleapi.Field) *AccountsAccessBindingsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7376,21 +7751,21 @@ func (c *AccountsUserLinksBatchUpdateCall) Fields(s ...googleapi.Field) *Account // 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 *AccountsUserLinksBatchUpdateCall) Context(ctx context.Context) *AccountsUserLinksBatchUpdateCall { +func (c *AccountsAccessBindingsCreateCall) Context(ctx context.Context) *AccountsAccessBindingsCreateCall { 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 *AccountsUserLinksBatchUpdateCall) Header() http.Header { +func (c *AccountsAccessBindingsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AccountsUserLinksBatchUpdateCall) doRequest(alt string) (*http.Response, error) { +func (c *AccountsAccessBindingsCreateCall) 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_ { @@ -7398,14 +7773,14 @@ func (c *AccountsUserLinksBatchUpdateCall) doRequest(alt string) (*http.Response } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphabatchupdateuserlinksrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaaccessbinding) 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, "v1alpha/{+parent}/userLinks:batchUpdate") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/accessBindings") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -7418,17 +7793,16 @@ func (c *AccountsUserLinksBatchUpdateCall) doRequest(alt string) (*http.Response return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.accounts.userLinks.batchUpdate" call. -// Exactly one of -// *GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse or error +// Do executes the "analyticsadmin.accounts.accessBindings.create" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaAccessBinding or error // will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse.ServerRespons -// e.Header or (if a response was returned at all) in +// *GoogleAnalyticsAdminV1alphaAccessBinding.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 *AccountsUserLinksBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse, error) { +func (c *AccountsAccessBindingsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAccessBinding, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7447,7 +7821,7 @@ func (c *AccountsUserLinksBatchUpdateCall) Do(opts ...googleapi.CallOption) (*Go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse{ + ret := &GoogleAnalyticsAdminV1alphaAccessBinding{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7459,28 +7833,28 @@ func (c *AccountsUserLinksBatchUpdateCall) Do(opts ...googleapi.CallOption) (*Go } return ret, nil // { - // "description": "Updates information about multiple users' links to an account or property.", - // "flatPath": "v1alpha/accounts/{accountsId}/userLinks:batchUpdate", + // "description": "Creates an access binding on an account or property.", + // "flatPath": "v1alpha/accounts/{accountsId}/accessBindings", // "httpMethod": "POST", - // "id": "analyticsadmin.accounts.userLinks.batchUpdate", + // "id": "analyticsadmin.accounts.accessBindings.create", // "parameterOrder": [ // "parent" // ], // "parameters": { // "parent": { - // "description": "Required. The account or property that all user links in the request are for. The parent field in the UpdateUserLinkRequest messages must either be empty or match this field. Example format: accounts/1234", + // "description": "Required. Formats: - accounts/{account} - properties/{property}", // "location": "path", // "pattern": "^accounts/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+parent}/userLinks:batchUpdate", + // "path": "v1alpha/{+parent}/accessBindings", // "request": { - // "$ref": "GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest" + // "$ref": "GoogleAnalyticsAdminV1alphaAccessBinding" // }, // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse" + // "$ref": "GoogleAnalyticsAdminV1alphaAccessBinding" // }, // "scopes": [ // "https://www.googleapis.com/auth/analytics.manage.users" @@ -7489,42 +7863,30 @@ func (c *AccountsUserLinksBatchUpdateCall) Do(opts ...googleapi.CallOption) (*Go } -// method id "analyticsadmin.accounts.userLinks.create": +// method id "analyticsadmin.accounts.accessBindings.delete": -type AccountsUserLinksCreateCall struct { - s *Service - parent string - googleanalyticsadminv1alphauserlink *GoogleAnalyticsAdminV1alphaUserLink - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type AccountsAccessBindingsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a user link on an account or property. If the user -// with the specified email already has permissions on the account or -// property, then the user's existing permissions will be unioned with -// the permissions specified in the new UserLink. +// Delete: Deletes an access binding on an account or property. // -// - parent: Example format: accounts/1234. -func (r *AccountsUserLinksService) Create(parent string, googleanalyticsadminv1alphauserlink *GoogleAnalyticsAdminV1alphaUserLink) *AccountsUserLinksCreateCall { - c := &AccountsUserLinksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googleanalyticsadminv1alphauserlink = googleanalyticsadminv1alphauserlink - return c -} - -// NotifyNewUser sets the optional parameter "notifyNewUser": If set, -// then email the new user notifying them that they've been granted -// permissions to the resource. -func (c *AccountsUserLinksCreateCall) NotifyNewUser(notifyNewUser bool) *AccountsUserLinksCreateCall { - c.urlParams_.Set("notifyNewUser", fmt.Sprint(notifyNewUser)) +// - name: Formats: - accounts/{account}/accessBindings/{accessBinding} +// - properties/{property}/accessBindings/{accessBinding}. +func (r *AccountsAccessBindingsService) Delete(name string) *AccountsAccessBindingsDeleteCall { + c := &AccountsAccessBindingsDeleteCall{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 *AccountsUserLinksCreateCall) Fields(s ...googleapi.Field) *AccountsUserLinksCreateCall { +func (c *AccountsAccessBindingsDeleteCall) Fields(s ...googleapi.Field) *AccountsAccessBindingsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7532,21 +7894,21 @@ func (c *AccountsUserLinksCreateCall) Fields(s ...googleapi.Field) *AccountsUser // 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 *AccountsUserLinksCreateCall) Context(ctx context.Context) *AccountsUserLinksCreateCall { +func (c *AccountsAccessBindingsDeleteCall) Context(ctx context.Context) *AccountsAccessBindingsDeleteCall { 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 *AccountsUserLinksCreateCall) Header() http.Header { +func (c *AccountsAccessBindingsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AccountsUserLinksCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *AccountsAccessBindingsDeleteCall) 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_ { @@ -7554,35 +7916,29 @@ func (c *AccountsUserLinksCreateCall) doRequest(alt string) (*http.Response, err } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphauserlink) - 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, "v1alpha/{+parent}/userLinks") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.accounts.userLinks.create" call. -// Exactly one of *GoogleAnalyticsAdminV1alphaUserLink or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleAnalyticsAdminV1alphaUserLink.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 *AccountsUserLinksCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaUserLink, error) { +// Do executes the "analyticsadmin.accounts.accessBindings.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *AccountsAccessBindingsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7601,7 +7957,7 @@ func (c *AccountsUserLinksCreateCall) Do(opts ...googleapi.CallOption) (*GoogleA if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaUserLink{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7613,33 +7969,25 @@ func (c *AccountsUserLinksCreateCall) Do(opts ...googleapi.CallOption) (*GoogleA } return ret, nil // { - // "description": "Creates a user link on an account or property. If the user with the specified email already has permissions on the account or property, then the user's existing permissions will be unioned with the permissions specified in the new UserLink.", - // "flatPath": "v1alpha/accounts/{accountsId}/userLinks", - // "httpMethod": "POST", - // "id": "analyticsadmin.accounts.userLinks.create", + // "description": "Deletes an access binding on an account or property.", + // "flatPath": "v1alpha/accounts/{accountsId}/accessBindings/{accessBindingsId}", + // "httpMethod": "DELETE", + // "id": "analyticsadmin.accounts.accessBindings.delete", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "notifyNewUser": { - // "description": "Optional. If set, then email the new user notifying them that they've been granted permissions to the resource.", - // "location": "query", - // "type": "boolean" - // }, - // "parent": { - // "description": "Required. Example format: accounts/1234", + // "name": { + // "description": "Required. Formats: - accounts/{account}/accessBindings/{accessBinding} - properties/{property}/accessBindings/{accessBinding}", // "location": "path", - // "pattern": "^accounts/[^/]+$", + // "pattern": "^accounts/[^/]+/accessBindings/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+parent}/userLinks", - // "request": { - // "$ref": "GoogleAnalyticsAdminV1alphaUserLink" - // }, + // "path": "v1alpha/{+name}", // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaUserLink" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/analytics.manage.users" @@ -7648,21 +7996,24 @@ func (c *AccountsUserLinksCreateCall) Do(opts ...googleapi.CallOption) (*GoogleA } -// method id "analyticsadmin.accounts.userLinks.delete": +// method id "analyticsadmin.accounts.accessBindings.get": -type AccountsUserLinksDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type AccountsAccessBindingsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a user link on an account or property. +// Get: Gets information about an access binding. // -// - name: Example format: accounts/1234/userLinks/5678. -func (r *AccountsUserLinksService) Delete(name string) *AccountsUserLinksDeleteCall { - c := &AccountsUserLinksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the access binding to retrieve. Formats: - +// accounts/{account}/accessBindings/{accessBinding} - +// properties/{property}/accessBindings/{accessBinding}. +func (r *AccountsAccessBindingsService) Get(name string) *AccountsAccessBindingsGetCall { + c := &AccountsAccessBindingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -7670,140 +8021,7 @@ func (r *AccountsUserLinksService) Delete(name string) *AccountsUserLinksDeleteC // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *AccountsUserLinksDeleteCall) Fields(s ...googleapi.Field) *AccountsUserLinksDeleteCall { - 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 *AccountsUserLinksDeleteCall) Context(ctx context.Context) *AccountsUserLinksDeleteCall { - 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 *AccountsUserLinksDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountsUserLinksDeleteCall) 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, "v1alpha/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", 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 "analyticsadmin.accounts.userLinks.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.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 *AccountsUserLinksDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ - 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 a user link on an account or property.", - // "flatPath": "v1alpha/accounts/{accountsId}/userLinks/{userLinksId}", - // "httpMethod": "DELETE", - // "id": "analyticsadmin.accounts.userLinks.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. Example format: accounts/1234/userLinks/5678", - // "location": "path", - // "pattern": "^accounts/[^/]+/userLinks/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/analytics.manage.users" - // ] - // } - -} - -// method id "analyticsadmin.accounts.userLinks.get": - -type AccountsUserLinksGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets information about a user's link to an account or property. -// -// - name: Example format: accounts/1234/userLinks/5678. -func (r *AccountsUserLinksService) Get(name string) *AccountsUserLinksGetCall { - c := &AccountsUserLinksGetCall{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 *AccountsUserLinksGetCall) Fields(s ...googleapi.Field) *AccountsUserLinksGetCall { +func (c *AccountsAccessBindingsGetCall) Fields(s ...googleapi.Field) *AccountsAccessBindingsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7813,7 +8031,7 @@ func (c *AccountsUserLinksGetCall) Fields(s ...googleapi.Field) *AccountsUserLin // 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 *AccountsUserLinksGetCall) IfNoneMatch(entityTag string) *AccountsUserLinksGetCall { +func (c *AccountsAccessBindingsGetCall) IfNoneMatch(entityTag string) *AccountsAccessBindingsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -7821,21 +8039,21 @@ func (c *AccountsUserLinksGetCall) IfNoneMatch(entityTag string) *AccountsUserLi // 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 *AccountsUserLinksGetCall) Context(ctx context.Context) *AccountsUserLinksGetCall { +func (c *AccountsAccessBindingsGetCall) Context(ctx context.Context) *AccountsAccessBindingsGetCall { 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 *AccountsUserLinksGetCall) Header() http.Header { +func (c *AccountsAccessBindingsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AccountsUserLinksGetCall) doRequest(alt string) (*http.Response, error) { +func (c *AccountsAccessBindingsGetCall) 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_ { @@ -7861,15 +8079,16 @@ func (c *AccountsUserLinksGetCall) doRequest(alt string) (*http.Response, error) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.accounts.userLinks.get" call. -// Exactly one of *GoogleAnalyticsAdminV1alphaUserLink or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleAnalyticsAdminV1alphaUserLink.ServerResponse.Header or +// Do executes the "analyticsadmin.accounts.accessBindings.get" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaAccessBinding or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleAnalyticsAdminV1alphaAccessBinding.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 *AccountsUserLinksGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaUserLink, error) { +func (c *AccountsAccessBindingsGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAccessBinding, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7888,7 +8107,7 @@ func (c *AccountsUserLinksGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaUserLink{ + ret := &GoogleAnalyticsAdminV1alphaAccessBinding{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7900,25 +8119,25 @@ func (c *AccountsUserLinksGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnal } return ret, nil // { - // "description": "Gets information about a user's link to an account or property.", - // "flatPath": "v1alpha/accounts/{accountsId}/userLinks/{userLinksId}", + // "description": "Gets information about an access binding.", + // "flatPath": "v1alpha/accounts/{accountsId}/accessBindings/{accessBindingsId}", // "httpMethod": "GET", - // "id": "analyticsadmin.accounts.userLinks.get", + // "id": "analyticsadmin.accounts.accessBindings.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Example format: accounts/1234/userLinks/5678", + // "description": "Required. The name of the access binding to retrieve. Formats: - accounts/{account}/accessBindings/{accessBinding} - properties/{property}/accessBindings/{accessBinding}", // "location": "path", - // "pattern": "^accounts/[^/]+/userLinks/[^/]+$", + // "pattern": "^accounts/[^/]+/accessBindings/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1alpha/{+name}", // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaUserLink" + // "$ref": "GoogleAnalyticsAdminV1alphaAccessBinding" // }, // "scopes": [ // "https://www.googleapis.com/auth/analytics.manage.users", @@ -7928,9 +8147,9 @@ func (c *AccountsUserLinksGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnal } -// method id "analyticsadmin.accounts.userLinks.list": +// method id "analyticsadmin.accounts.accessBindings.list": -type AccountsUserLinksListCall struct { +type AccountsAccessBindingsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -7939,30 +8158,30 @@ type AccountsUserLinksListCall struct { header_ http.Header } -// List: Lists all user links on an account or property. +// List: Lists all access bindings on an account or property. // -// - parent: Example format: accounts/1234. -func (r *AccountsUserLinksService) List(parent string) *AccountsUserLinksListCall { - c := &AccountsUserLinksListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: Formats: - accounts/{account} - properties/{property}. +func (r *AccountsAccessBindingsService) List(parent string) *AccountsAccessBindingsListCall { + c := &AccountsAccessBindingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } // PageSize sets the optional parameter "pageSize": The maximum number -// of user links to return. The service may return fewer than this -// value. If unspecified, at most 200 user links will be returned. The -// maximum value is 500; values above 500 will be coerced to 500. -func (c *AccountsUserLinksListCall) PageSize(pageSize int64) *AccountsUserLinksListCall { +// of access bindings to return. The service may return fewer than this +// value. If unspecified, at most 200 access bindings will be returned. +// The maximum value is 500; values above 500 will be coerced to 500. +func (c *AccountsAccessBindingsListCall) PageSize(pageSize int64) *AccountsAccessBindingsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": A page token, -// received from a previous `ListUserLinks` call. Provide this to +// received from a previous `ListAccessBindings` call. Provide this to // retrieve the subsequent page. When paginating, all other parameters -// provided to `ListUserLinks` must match the call that provided the -// page token. -func (c *AccountsUserLinksListCall) PageToken(pageToken string) *AccountsUserLinksListCall { +// provided to `ListAccessBindings` must match the call that provided +// the page token. +func (c *AccountsAccessBindingsListCall) PageToken(pageToken string) *AccountsAccessBindingsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -7970,7 +8189,7 @@ func (c *AccountsUserLinksListCall) PageToken(pageToken string) *AccountsUserLin // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *AccountsUserLinksListCall) Fields(s ...googleapi.Field) *AccountsUserLinksListCall { +func (c *AccountsAccessBindingsListCall) Fields(s ...googleapi.Field) *AccountsAccessBindingsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7980,7 +8199,7 @@ func (c *AccountsUserLinksListCall) Fields(s ...googleapi.Field) *AccountsUserLi // 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 *AccountsUserLinksListCall) IfNoneMatch(entityTag string) *AccountsUserLinksListCall { +func (c *AccountsAccessBindingsListCall) IfNoneMatch(entityTag string) *AccountsAccessBindingsListCall { c.ifNoneMatch_ = entityTag return c } @@ -7988,21 +8207,21 @@ func (c *AccountsUserLinksListCall) IfNoneMatch(entityTag string) *AccountsUserL // 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 *AccountsUserLinksListCall) Context(ctx context.Context) *AccountsUserLinksListCall { +func (c *AccountsAccessBindingsListCall) Context(ctx context.Context) *AccountsAccessBindingsListCall { 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 *AccountsUserLinksListCall) Header() http.Header { +func (c *AccountsAccessBindingsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AccountsUserLinksListCall) doRequest(alt string) (*http.Response, error) { +func (c *AccountsAccessBindingsListCall) 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_ { @@ -8015,7 +8234,7 @@ func (c *AccountsUserLinksListCall) 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, "v1alpha/{+parent}/userLinks") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/accessBindings") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -8028,16 +8247,16 @@ func (c *AccountsUserLinksListCall) doRequest(alt string) (*http.Response, error return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.accounts.userLinks.list" call. -// Exactly one of *GoogleAnalyticsAdminV1alphaListUserLinksResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleAnalyticsAdminV1alphaListUserLinksResponse.ServerResponse.Heade -// r or (if a response was returned at all) in +// Do executes the "analyticsadmin.accounts.accessBindings.list" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaListAccessBindingsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleAnalyticsAdminV1alphaListAccessBindingsResponse.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 *AccountsUserLinksListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListUserLinksResponse, error) { +func (c *AccountsAccessBindingsListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListAccessBindingsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8056,7 +8275,7 @@ func (c *AccountsUserLinksListCall) Do(opts ...googleapi.CallOption) (*GoogleAna if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaListUserLinksResponse{ + ret := &GoogleAnalyticsAdminV1alphaListAccessBindingsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8068,36 +8287,36 @@ func (c *AccountsUserLinksListCall) Do(opts ...googleapi.CallOption) (*GoogleAna } return ret, nil // { - // "description": "Lists all user links on an account or property.", - // "flatPath": "v1alpha/accounts/{accountsId}/userLinks", + // "description": "Lists all access bindings on an account or property.", + // "flatPath": "v1alpha/accounts/{accountsId}/accessBindings", // "httpMethod": "GET", - // "id": "analyticsadmin.accounts.userLinks.list", + // "id": "analyticsadmin.accounts.accessBindings.list", // "parameterOrder": [ // "parent" // ], // "parameters": { // "pageSize": { - // "description": "The maximum number of user links to return. The service may return fewer than this value. If unspecified, at most 200 user links will be returned. The maximum value is 500; values above 500 will be coerced to 500.", + // "description": "The maximum number of access bindings to return. The service may return fewer than this value. If unspecified, at most 200 access bindings will be returned. The maximum value is 500; values above 500 will be coerced to 500.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "A page token, received from a previous `ListUserLinks` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListUserLinks` must match the call that provided the page token.", + // "description": "A page token, received from a previous `ListAccessBindings` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccessBindings` must match the call that provided the page token.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. Example format: accounts/1234", + // "description": "Required. Formats: - accounts/{account} - properties/{property}", // "location": "path", // "pattern": "^accounts/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+parent}/userLinks", + // "path": "v1alpha/{+parent}/accessBindings", // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaListUserLinksResponse" + // "$ref": "GoogleAnalyticsAdminV1alphaListAccessBindingsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/analytics.manage.users", @@ -8110,7 +8329,7 @@ func (c *AccountsUserLinksListCall) Do(opts ...googleapi.CallOption) (*GoogleAna // 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 *AccountsUserLinksListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListUserLinksResponse) error) error { +func (c *AccountsAccessBindingsListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListAccessBindingsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -8128,31 +8347,34 @@ func (c *AccountsUserLinksListCall) Pages(ctx context.Context, f func(*GoogleAna } } -// method id "analyticsadmin.accounts.userLinks.patch": +// method id "analyticsadmin.accounts.accessBindings.patch": -type AccountsUserLinksPatchCall struct { - s *Service - name string - googleanalyticsadminv1alphauserlink *GoogleAnalyticsAdminV1alphaUserLink - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type AccountsAccessBindingsPatchCall struct { + s *Service + name string + googleanalyticsadminv1alphaaccessbinding *GoogleAnalyticsAdminV1alphaAccessBinding + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates a user link on an account or property. +// Patch: Updates an access binding on an account or property. // -// - name: Output only. Example format: properties/1234/userLinks/5678. -func (r *AccountsUserLinksService) Patch(name string, googleanalyticsadminv1alphauserlink *GoogleAnalyticsAdminV1alphaUserLink) *AccountsUserLinksPatchCall { - c := &AccountsUserLinksPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Output only. Resource name of this binding. Format: +// accounts/{account}/accessBindings/{access_binding} or +// properties/{property}/accessBindings/{access_binding} Example: +// "accounts/100/accessBindings/200". +func (r *AccountsAccessBindingsService) Patch(name string, googleanalyticsadminv1alphaaccessbinding *GoogleAnalyticsAdminV1alphaAccessBinding) *AccountsAccessBindingsPatchCall { + c := &AccountsAccessBindingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googleanalyticsadminv1alphauserlink = googleanalyticsadminv1alphauserlink + c.googleanalyticsadminv1alphaaccessbinding = googleanalyticsadminv1alphaaccessbinding 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 *AccountsUserLinksPatchCall) Fields(s ...googleapi.Field) *AccountsUserLinksPatchCall { +func (c *AccountsAccessBindingsPatchCall) Fields(s ...googleapi.Field) *AccountsAccessBindingsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -8160,21 +8382,21 @@ func (c *AccountsUserLinksPatchCall) Fields(s ...googleapi.Field) *AccountsUserL // 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 *AccountsUserLinksPatchCall) Context(ctx context.Context) *AccountsUserLinksPatchCall { +func (c *AccountsAccessBindingsPatchCall) Context(ctx context.Context) *AccountsAccessBindingsPatchCall { 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 *AccountsUserLinksPatchCall) Header() http.Header { +func (c *AccountsAccessBindingsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AccountsUserLinksPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *AccountsAccessBindingsPatchCall) 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_ { @@ -8182,7 +8404,7 @@ func (c *AccountsUserLinksPatchCall) doRequest(alt string) (*http.Response, erro } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphauserlink) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaaccessbinding) if err != nil { return nil, err } @@ -8202,15 +8424,16 @@ func (c *AccountsUserLinksPatchCall) doRequest(alt string) (*http.Response, erro return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.accounts.userLinks.patch" call. -// Exactly one of *GoogleAnalyticsAdminV1alphaUserLink or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleAnalyticsAdminV1alphaUserLink.ServerResponse.Header or +// Do executes the "analyticsadmin.accounts.accessBindings.patch" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaAccessBinding or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleAnalyticsAdminV1alphaAccessBinding.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 *AccountsUserLinksPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaUserLink, error) { +func (c *AccountsAccessBindingsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAccessBinding, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8229,7 +8452,7 @@ func (c *AccountsUserLinksPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAn if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaUserLink{ + ret := &GoogleAnalyticsAdminV1alphaAccessBinding{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8241,28 +8464,28 @@ func (c *AccountsUserLinksPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAn } return ret, nil // { - // "description": "Updates a user link on an account or property.", - // "flatPath": "v1alpha/accounts/{accountsId}/userLinks/{userLinksId}", + // "description": "Updates an access binding on an account or property.", + // "flatPath": "v1alpha/accounts/{accountsId}/accessBindings/{accessBindingsId}", // "httpMethod": "PATCH", - // "id": "analyticsadmin.accounts.userLinks.patch", + // "id": "analyticsadmin.accounts.accessBindings.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Output only. Example format: properties/1234/userLinks/5678", + // "description": "Output only. Resource name of this binding. Format: accounts/{account}/accessBindings/{access_binding} or properties/{property}/accessBindings/{access_binding} Example: \"accounts/100/accessBindings/200\"", // "location": "path", - // "pattern": "^accounts/[^/]+/userLinks/[^/]+$", + // "pattern": "^accounts/[^/]+/accessBindings/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1alpha/{+name}", // "request": { - // "$ref": "GoogleAnalyticsAdminV1alphaUserLink" + // "$ref": "GoogleAnalyticsAdminV1alphaAccessBinding" // }, // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaUserLink" + // "$ref": "GoogleAnalyticsAdminV1alphaAccessBinding" // }, // "scopes": [ // "https://www.googleapis.com/auth/analytics.manage.users" @@ -8271,35 +8494,37 @@ func (c *AccountsUserLinksPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAn } -// method id "analyticsadmin.properties.acknowledgeUserDataCollection": +// method id "analyticsadmin.accounts.userLinks.audit": -type PropertiesAcknowledgeUserDataCollectionCall struct { - s *Service - property string - googleanalyticsadminv1alphaacknowledgeuserdatacollectionrequest *GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type AccountsUserLinksAuditCall struct { + s *Service + parent string + googleanalyticsadminv1alphaaudituserlinksrequest *GoogleAnalyticsAdminV1alphaAuditUserLinksRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// AcknowledgeUserDataCollection: Acknowledges the terms of user data -// collection for the specified property. This acknowledgement must be -// completed (either in the Google Analytics UI or via this API) before -// MeasurementProtocolSecret resources may be created. +// Audit: Lists all user links on an account or property, including +// implicit ones that come from effective permissions granted by groups +// or organization admin roles. If a returned user link does not have +// direct permissions, they cannot be removed from the account or +// property directly with the DeleteUserLink command. They have to be +// removed from the group/etc that gives them permissions, which is +// currently only usable/discoverable in the GA or GMP UIs. // -// - property: The property for which to acknowledge user data -// collection. -func (r *PropertiesService) AcknowledgeUserDataCollection(property string, googleanalyticsadminv1alphaacknowledgeuserdatacollectionrequest *GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest) *PropertiesAcknowledgeUserDataCollectionCall { - c := &PropertiesAcknowledgeUserDataCollectionCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.property = property - c.googleanalyticsadminv1alphaacknowledgeuserdatacollectionrequest = googleanalyticsadminv1alphaacknowledgeuserdatacollectionrequest - return c +// - parent: Example format: accounts/1234. +func (r *AccountsUserLinksService) Audit(parent string, googleanalyticsadminv1alphaaudituserlinksrequest *GoogleAnalyticsAdminV1alphaAuditUserLinksRequest) *AccountsUserLinksAuditCall { + c := &AccountsUserLinksAuditCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleanalyticsadminv1alphaaudituserlinksrequest = googleanalyticsadminv1alphaaudituserlinksrequest + 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 *PropertiesAcknowledgeUserDataCollectionCall) Fields(s ...googleapi.Field) *PropertiesAcknowledgeUserDataCollectionCall { +func (c *AccountsUserLinksAuditCall) Fields(s ...googleapi.Field) *AccountsUserLinksAuditCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -8307,21 +8532,21 @@ func (c *PropertiesAcknowledgeUserDataCollectionCall) Fields(s ...googleapi.Fiel // 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 *PropertiesAcknowledgeUserDataCollectionCall) Context(ctx context.Context) *PropertiesAcknowledgeUserDataCollectionCall { +func (c *AccountsUserLinksAuditCall) Context(ctx context.Context) *AccountsUserLinksAuditCall { 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 *PropertiesAcknowledgeUserDataCollectionCall) Header() http.Header { +func (c *AccountsUserLinksAuditCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PropertiesAcknowledgeUserDataCollectionCall) doRequest(alt string) (*http.Response, error) { +func (c *AccountsUserLinksAuditCall) 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_ { @@ -8329,14 +8554,14 @@ func (c *PropertiesAcknowledgeUserDataCollectionCall) doRequest(alt string) (*ht } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaacknowledgeuserdatacollectionrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaaudituserlinksrequest) 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, "v1alpha/{+property}:acknowledgeUserDataCollection") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/userLinks:audit") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -8344,22 +8569,21 @@ func (c *PropertiesAcknowledgeUserDataCollectionCall) doRequest(alt string) (*ht } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "property": c.property, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.properties.acknowledgeUserDataCollection" call. -// Exactly one of -// *GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse or +// Do executes the "analyticsadmin.accounts.userLinks.audit" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaAuditUserLinksResponse or // error will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse.Serv -// erResponse.Header or (if a response was returned at all) in +// *GoogleAnalyticsAdminV1alphaAuditUserLinksResponse.ServerResponse.Head +// er 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 *PropertiesAcknowledgeUserDataCollectionCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse, error) { +func (c *AccountsUserLinksAuditCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAuditUserLinksResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8378,7 +8602,7 @@ func (c *PropertiesAcknowledgeUserDataCollectionCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse{ + ret := &GoogleAnalyticsAdminV1alphaAuditUserLinksResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8390,58 +8614,88 @@ func (c *PropertiesAcknowledgeUserDataCollectionCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Acknowledges the terms of user data collection for the specified property. This acknowledgement must be completed (either in the Google Analytics UI or via this API) before MeasurementProtocolSecret resources may be created.", - // "flatPath": "v1alpha/properties/{propertiesId}:acknowledgeUserDataCollection", + // "description": "Lists all user links on an account or property, including implicit ones that come from effective permissions granted by groups or organization admin roles. If a returned user link does not have direct permissions, they cannot be removed from the account or property directly with the DeleteUserLink command. They have to be removed from the group/etc that gives them permissions, which is currently only usable/discoverable in the GA or GMP UIs.", + // "flatPath": "v1alpha/accounts/{accountsId}/userLinks:audit", // "httpMethod": "POST", - // "id": "analyticsadmin.properties.acknowledgeUserDataCollection", + // "id": "analyticsadmin.accounts.userLinks.audit", // "parameterOrder": [ - // "property" + // "parent" // ], // "parameters": { - // "property": { - // "description": "Required. The property for which to acknowledge user data collection.", + // "parent": { + // "description": "Required. Example format: accounts/1234", // "location": "path", - // "pattern": "^properties/[^/]+$", + // "pattern": "^accounts/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+property}:acknowledgeUserDataCollection", + // "path": "v1alpha/{+parent}/userLinks:audit", // "request": { - // "$ref": "GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest" + // "$ref": "GoogleAnalyticsAdminV1alphaAuditUserLinksRequest" // }, // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse" + // "$ref": "GoogleAnalyticsAdminV1alphaAuditUserLinksResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/analytics.edit" + // "https://www.googleapis.com/auth/analytics.manage.users", + // "https://www.googleapis.com/auth/analytics.manage.users.readonly" // ] // } } -// method id "analyticsadmin.properties.create": +// 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 *AccountsUserLinksAuditCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaAuditUserLinksResponse) error) error { + c.ctx_ = ctx + defer func(pt string) { c.googleanalyticsadminv1alphaaudituserlinksrequest.PageToken = pt }(c.googleanalyticsadminv1alphaaudituserlinksrequest.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.googleanalyticsadminv1alphaaudituserlinksrequest.PageToken = x.NextPageToken + } +} -type PropertiesCreateCall struct { - s *Service - googleanalyticsadminv1alphaproperty *GoogleAnalyticsAdminV1alphaProperty - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "analyticsadmin.accounts.userLinks.batchCreate": + +type AccountsUserLinksBatchCreateCall struct { + s *Service + parent string + googleanalyticsadminv1alphabatchcreateuserlinksrequest *GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates an "GA4" property with the specified location and -// attributes. -func (r *PropertiesService) Create(googleanalyticsadminv1alphaproperty *GoogleAnalyticsAdminV1alphaProperty) *PropertiesCreateCall { - c := &PropertiesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.googleanalyticsadminv1alphaproperty = googleanalyticsadminv1alphaproperty +// BatchCreate: Creates information about multiple users' links to an +// account or property. This method is transactional. If any UserLink +// cannot be created, none of the UserLinks will be created. +// +// - parent: The account or property that all user links in the request +// are for. This field is required. The parent field in the +// CreateUserLinkRequest messages must either be empty or match this +// field. Example format: accounts/1234. +func (r *AccountsUserLinksService) BatchCreate(parent string, googleanalyticsadminv1alphabatchcreateuserlinksrequest *GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest) *AccountsUserLinksBatchCreateCall { + c := &AccountsUserLinksBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleanalyticsadminv1alphabatchcreateuserlinksrequest = googleanalyticsadminv1alphabatchcreateuserlinksrequest 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 *PropertiesCreateCall) Fields(s ...googleapi.Field) *PropertiesCreateCall { +func (c *AccountsUserLinksBatchCreateCall) Fields(s ...googleapi.Field) *AccountsUserLinksBatchCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -8449,21 +8703,21 @@ func (c *PropertiesCreateCall) Fields(s ...googleapi.Field) *PropertiesCreateCal // 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 *PropertiesCreateCall) Context(ctx context.Context) *PropertiesCreateCall { +func (c *AccountsUserLinksBatchCreateCall) Context(ctx context.Context) *AccountsUserLinksBatchCreateCall { 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 *PropertiesCreateCall) Header() http.Header { +func (c *AccountsUserLinksBatchCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PropertiesCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *AccountsUserLinksBatchCreateCall) 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_ { @@ -8471,32 +8725,37 @@ func (c *PropertiesCreateCall) doRequest(alt string) (*http.Response, error) { } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaproperty) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphabatchcreateuserlinksrequest) 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, "v1alpha/properties") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/userLinks:batchCreate") 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{ + "parent": c.parent, + }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.properties.create" call. -// Exactly one of *GoogleAnalyticsAdminV1alphaProperty or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleAnalyticsAdminV1alphaProperty.ServerResponse.Header or -// (if a response was returned at all) in +// Do executes the "analyticsadmin.accounts.userLinks.batchCreate" call. +// Exactly one of +// *GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse.ServerRespons +// e.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 *PropertiesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaProperty, error) { +func (c *AccountsUserLinksBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8515,7 +8774,7 @@ func (c *PropertiesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalytic if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaProperty{ + ret := &GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8527,57 +8786,64 @@ func (c *PropertiesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalytic } return ret, nil // { - // "description": "Creates an \"GA4\" property with the specified location and attributes.", - // "flatPath": "v1alpha/properties", + // "description": "Creates information about multiple users' links to an account or property. This method is transactional. If any UserLink cannot be created, none of the UserLinks will be created.", + // "flatPath": "v1alpha/accounts/{accountsId}/userLinks:batchCreate", // "httpMethod": "POST", - // "id": "analyticsadmin.properties.create", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1alpha/properties", + // "id": "analyticsadmin.accounts.userLinks.batchCreate", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The account or property that all user links in the request are for. This field is required. The parent field in the CreateUserLinkRequest messages must either be empty or match this field. Example format: accounts/1234", + // "location": "path", + // "pattern": "^accounts/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/userLinks:batchCreate", // "request": { - // "$ref": "GoogleAnalyticsAdminV1alphaProperty" + // "$ref": "GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest" // }, // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaProperty" + // "$ref": "GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/analytics.edit" + // "https://www.googleapis.com/auth/analytics.manage.users" // ] // } } -// method id "analyticsadmin.properties.delete": +// method id "analyticsadmin.accounts.userLinks.batchDelete": -type PropertiesDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type AccountsUserLinksBatchDeleteCall struct { + s *Service + parent string + googleanalyticsadminv1alphabatchdeleteuserlinksrequest *GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Marks target Property as soft-deleted (ie: "trashed") and -// returns it. This API does not have a method to restore soft-deleted -// properties. However, they can be restored using the Trash Can UI. If -// the properties are not restored before the expiration time, the -// Property and all child resources (eg: GoogleAdsLinks, Streams, -// UserLinks) will be permanently purged. -// https://support.google.com/analytics/answer/6154772 Returns an error -// if the target is not found, or is not a GA4 Property. +// BatchDelete: Deletes information about multiple users' links to an +// account or property. // -// - name: The name of the Property to soft-delete. Format: -// properties/{property_id} Example: "properties/1000". -func (r *PropertiesService) Delete(name string) *PropertiesDeleteCall { - c := &PropertiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The account or property that all user links in the request +// are for. The parent of all values for user link names to delete +// must match this field. Example format: accounts/1234. +func (r *AccountsUserLinksService) BatchDelete(parent string, googleanalyticsadminv1alphabatchdeleteuserlinksrequest *GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest) *AccountsUserLinksBatchDeleteCall { + c := &AccountsUserLinksBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleanalyticsadminv1alphabatchdeleteuserlinksrequest = googleanalyticsadminv1alphabatchdeleteuserlinksrequest 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 *PropertiesDeleteCall) Fields(s ...googleapi.Field) *PropertiesDeleteCall { +func (c *AccountsUserLinksBatchDeleteCall) Fields(s ...googleapi.Field) *AccountsUserLinksBatchDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -8585,21 +8851,21 @@ func (c *PropertiesDeleteCall) Fields(s ...googleapi.Field) *PropertiesDeleteCal // 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 *PropertiesDeleteCall) Context(ctx context.Context) *PropertiesDeleteCall { +func (c *AccountsUserLinksBatchDeleteCall) Context(ctx context.Context) *AccountsUserLinksBatchDeleteCall { 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 *PropertiesDeleteCall) Header() http.Header { +func (c *AccountsUserLinksBatchDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PropertiesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *AccountsUserLinksBatchDeleteCall) 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_ { @@ -8607,30 +8873,34 @@ func (c *PropertiesDeleteCall) doRequest(alt string) (*http.Response, error) { } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphabatchdeleteuserlinksrequest) + 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, "v1alpha/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/userLinks:batchDelete") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.properties.delete" call. -// Exactly one of *GoogleAnalyticsAdminV1alphaProperty or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleAnalyticsAdminV1alphaProperty.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 *PropertiesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaProperty, error) { +// Do executes the "analyticsadmin.accounts.userLinks.batchDelete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *AccountsUserLinksBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8649,7 +8919,7 @@ func (c *PropertiesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleAnalytic if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaProperty{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8661,56 +8931,2851 @@ func (c *PropertiesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleAnalytic } return ret, nil // { - // "description": "Marks target Property as soft-deleted (ie: \"trashed\") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found, or is not a GA4 Property.", - // "flatPath": "v1alpha/properties/{propertiesId}", - // "httpMethod": "DELETE", - // "id": "analyticsadmin.properties.delete", + // "description": "Deletes information about multiple users' links to an account or property.", + // "flatPath": "v1alpha/accounts/{accountsId}/userLinks:batchDelete", + // "httpMethod": "POST", + // "id": "analyticsadmin.accounts.userLinks.batchDelete", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the Property to soft-delete. Format: properties/{property_id} Example: \"properties/1000\"", - // "location": "path", + // "parent": { + // "description": "Required. The account or property that all user links in the request are for. The parent of all values for user link names to delete must match this field. Example format: accounts/1234", + // "location": "path", + // "pattern": "^accounts/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/userLinks:batchDelete", + // "request": { + // "$ref": "GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest" + // }, + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.manage.users" + // ] + // } + +} + +// method id "analyticsadmin.accounts.userLinks.batchGet": + +type AccountsUserLinksBatchGetCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// BatchGet: Gets information about multiple users' links to an account +// or property. +// +// - parent: The account or property that all user links in the request +// are for. The parent of all provided values for the 'names' field +// must match this field. Example format: accounts/1234. +func (r *AccountsUserLinksService) BatchGet(parent string) *AccountsUserLinksBatchGetCall { + c := &AccountsUserLinksBatchGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Names sets the optional parameter "names": Required. The names of the +// user links to retrieve. A maximum of 1000 user links can be retrieved +// in a batch. Format: accounts/{accountId}/userLinks/{userLinkId} +func (c *AccountsUserLinksBatchGetCall) Names(names ...string) *AccountsUserLinksBatchGetCall { + c.urlParams_.SetMulti("names", append([]string{}, names...)) + 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 *AccountsUserLinksBatchGetCall) Fields(s ...googleapi.Field) *AccountsUserLinksBatchGetCall { + 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 *AccountsUserLinksBatchGetCall) IfNoneMatch(entityTag string) *AccountsUserLinksBatchGetCall { + 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 *AccountsUserLinksBatchGetCall) Context(ctx context.Context) *AccountsUserLinksBatchGetCall { + 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 *AccountsUserLinksBatchGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsUserLinksBatchGetCall) 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, "v1alpha/{+parent}/userLinks:batchGet") + 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 "analyticsadmin.accounts.userLinks.batchGet" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse.ServerResponse.H +// eader 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 *AccountsUserLinksBatchGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse, 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 := &GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse{ + 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 information about multiple users' links to an account or property.", + // "flatPath": "v1alpha/accounts/{accountsId}/userLinks:batchGet", + // "httpMethod": "GET", + // "id": "analyticsadmin.accounts.userLinks.batchGet", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "names": { + // "description": "Required. The names of the user links to retrieve. A maximum of 1000 user links can be retrieved in a batch. Format: accounts/{accountId}/userLinks/{userLinkId}", + // "location": "query", + // "repeated": true, + // "type": "string" + // }, + // "parent": { + // "description": "Required. The account or property that all user links in the request are for. The parent of all provided values for the 'names' field must match this field. Example format: accounts/1234", + // "location": "path", + // "pattern": "^accounts/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/userLinks:batchGet", + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.manage.users", + // "https://www.googleapis.com/auth/analytics.manage.users.readonly" + // ] + // } + +} + +// method id "analyticsadmin.accounts.userLinks.batchUpdate": + +type AccountsUserLinksBatchUpdateCall struct { + s *Service + parent string + googleanalyticsadminv1alphabatchupdateuserlinksrequest *GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BatchUpdate: Updates information about multiple users' links to an +// account or property. +// +// - parent: The account or property that all user links in the request +// are for. The parent field in the UpdateUserLinkRequest messages +// must either be empty or match this field. Example format: +// accounts/1234. +func (r *AccountsUserLinksService) BatchUpdate(parent string, googleanalyticsadminv1alphabatchupdateuserlinksrequest *GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest) *AccountsUserLinksBatchUpdateCall { + c := &AccountsUserLinksBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleanalyticsadminv1alphabatchupdateuserlinksrequest = googleanalyticsadminv1alphabatchupdateuserlinksrequest + 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 *AccountsUserLinksBatchUpdateCall) Fields(s ...googleapi.Field) *AccountsUserLinksBatchUpdateCall { + 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 *AccountsUserLinksBatchUpdateCall) Context(ctx context.Context) *AccountsUserLinksBatchUpdateCall { + 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 *AccountsUserLinksBatchUpdateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsUserLinksBatchUpdateCall) 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.googleanalyticsadminv1alphabatchupdateuserlinksrequest) + 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, "v1alpha/{+parent}/userLinks:batchUpdate") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.accounts.userLinks.batchUpdate" call. +// Exactly one of +// *GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse.ServerRespons +// e.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 *AccountsUserLinksBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse, 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 := &GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse{ + 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 information about multiple users' links to an account or property.", + // "flatPath": "v1alpha/accounts/{accountsId}/userLinks:batchUpdate", + // "httpMethod": "POST", + // "id": "analyticsadmin.accounts.userLinks.batchUpdate", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The account or property that all user links in the request are for. The parent field in the UpdateUserLinkRequest messages must either be empty or match this field. Example format: accounts/1234", + // "location": "path", + // "pattern": "^accounts/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/userLinks:batchUpdate", + // "request": { + // "$ref": "GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest" + // }, + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.manage.users" + // ] + // } + +} + +// method id "analyticsadmin.accounts.userLinks.create": + +type AccountsUserLinksCreateCall struct { + s *Service + parent string + googleanalyticsadminv1alphauserlink *GoogleAnalyticsAdminV1alphaUserLink + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a user link on an account or property. If the user +// with the specified email already has permissions on the account or +// property, then the user's existing permissions will be unioned with +// the permissions specified in the new UserLink. +// +// - parent: Example format: accounts/1234. +func (r *AccountsUserLinksService) Create(parent string, googleanalyticsadminv1alphauserlink *GoogleAnalyticsAdminV1alphaUserLink) *AccountsUserLinksCreateCall { + c := &AccountsUserLinksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleanalyticsadminv1alphauserlink = googleanalyticsadminv1alphauserlink + return c +} + +// NotifyNewUser sets the optional parameter "notifyNewUser": If set, +// then email the new user notifying them that they've been granted +// permissions to the resource. +func (c *AccountsUserLinksCreateCall) NotifyNewUser(notifyNewUser bool) *AccountsUserLinksCreateCall { + c.urlParams_.Set("notifyNewUser", fmt.Sprint(notifyNewUser)) + 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 *AccountsUserLinksCreateCall) Fields(s ...googleapi.Field) *AccountsUserLinksCreateCall { + 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 *AccountsUserLinksCreateCall) Context(ctx context.Context) *AccountsUserLinksCreateCall { + 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 *AccountsUserLinksCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsUserLinksCreateCall) 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.googleanalyticsadminv1alphauserlink) + 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, "v1alpha/{+parent}/userLinks") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.accounts.userLinks.create" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaUserLink or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleAnalyticsAdminV1alphaUserLink.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 *AccountsUserLinksCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaUserLink, 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 := &GoogleAnalyticsAdminV1alphaUserLink{ + 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": "Creates a user link on an account or property. If the user with the specified email already has permissions on the account or property, then the user's existing permissions will be unioned with the permissions specified in the new UserLink.", + // "flatPath": "v1alpha/accounts/{accountsId}/userLinks", + // "httpMethod": "POST", + // "id": "analyticsadmin.accounts.userLinks.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "notifyNewUser": { + // "description": "Optional. If set, then email the new user notifying them that they've been granted permissions to the resource.", + // "location": "query", + // "type": "boolean" + // }, + // "parent": { + // "description": "Required. Example format: accounts/1234", + // "location": "path", + // "pattern": "^accounts/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/userLinks", + // "request": { + // "$ref": "GoogleAnalyticsAdminV1alphaUserLink" + // }, + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaUserLink" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.manage.users" + // ] + // } + +} + +// method id "analyticsadmin.accounts.userLinks.delete": + +type AccountsUserLinksDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a user link on an account or property. +// +// - name: Example format: accounts/1234/userLinks/5678. +func (r *AccountsUserLinksService) Delete(name string) *AccountsUserLinksDeleteCall { + c := &AccountsUserLinksDeleteCall{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 *AccountsUserLinksDeleteCall) Fields(s ...googleapi.Field) *AccountsUserLinksDeleteCall { + 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 *AccountsUserLinksDeleteCall) Context(ctx context.Context) *AccountsUserLinksDeleteCall { + 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 *AccountsUserLinksDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsUserLinksDeleteCall) 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, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", 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 "analyticsadmin.accounts.userLinks.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *AccountsUserLinksDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ + 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 a user link on an account or property.", + // "flatPath": "v1alpha/accounts/{accountsId}/userLinks/{userLinksId}", + // "httpMethod": "DELETE", + // "id": "analyticsadmin.accounts.userLinks.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Example format: accounts/1234/userLinks/5678", + // "location": "path", + // "pattern": "^accounts/[^/]+/userLinks/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.manage.users" + // ] + // } + +} + +// method id "analyticsadmin.accounts.userLinks.get": + +type AccountsUserLinksGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information about a user's link to an account or property. +// +// - name: Example format: accounts/1234/userLinks/5678. +func (r *AccountsUserLinksService) Get(name string) *AccountsUserLinksGetCall { + c := &AccountsUserLinksGetCall{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 *AccountsUserLinksGetCall) Fields(s ...googleapi.Field) *AccountsUserLinksGetCall { + 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 *AccountsUserLinksGetCall) IfNoneMatch(entityTag string) *AccountsUserLinksGetCall { + 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 *AccountsUserLinksGetCall) Context(ctx context.Context) *AccountsUserLinksGetCall { + 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 *AccountsUserLinksGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsUserLinksGetCall) 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, "v1alpha/{+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 "analyticsadmin.accounts.userLinks.get" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaUserLink or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleAnalyticsAdminV1alphaUserLink.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 *AccountsUserLinksGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaUserLink, 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 := &GoogleAnalyticsAdminV1alphaUserLink{ + 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 information about a user's link to an account or property.", + // "flatPath": "v1alpha/accounts/{accountsId}/userLinks/{userLinksId}", + // "httpMethod": "GET", + // "id": "analyticsadmin.accounts.userLinks.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Example format: accounts/1234/userLinks/5678", + // "location": "path", + // "pattern": "^accounts/[^/]+/userLinks/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaUserLink" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.manage.users", + // "https://www.googleapis.com/auth/analytics.manage.users.readonly" + // ] + // } + +} + +// method id "analyticsadmin.accounts.userLinks.list": + +type AccountsUserLinksListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all user links on an account or property. +// +// - parent: Example format: accounts/1234. +func (r *AccountsUserLinksService) List(parent string) *AccountsUserLinksListCall { + c := &AccountsUserLinksListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of user links to return. The service may return fewer than this +// value. If unspecified, at most 200 user links will be returned. The +// maximum value is 500; values above 500 will be coerced to 500. +func (c *AccountsUserLinksListCall) PageSize(pageSize int64) *AccountsUserLinksListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListUserLinks` call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// provided to `ListUserLinks` must match the call that provided the +// page token. +func (c *AccountsUserLinksListCall) PageToken(pageToken string) *AccountsUserLinksListCall { + 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 *AccountsUserLinksListCall) Fields(s ...googleapi.Field) *AccountsUserLinksListCall { + 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 *AccountsUserLinksListCall) IfNoneMatch(entityTag string) *AccountsUserLinksListCall { + 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 *AccountsUserLinksListCall) Context(ctx context.Context) *AccountsUserLinksListCall { + 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 *AccountsUserLinksListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsUserLinksListCall) 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, "v1alpha/{+parent}/userLinks") + 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 "analyticsadmin.accounts.userLinks.list" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaListUserLinksResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleAnalyticsAdminV1alphaListUserLinksResponse.ServerResponse.Heade +// r 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 *AccountsUserLinksListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListUserLinksResponse, 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 := &GoogleAnalyticsAdminV1alphaListUserLinksResponse{ + 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 all user links on an account or property.", + // "flatPath": "v1alpha/accounts/{accountsId}/userLinks", + // "httpMethod": "GET", + // "id": "analyticsadmin.accounts.userLinks.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of user links to return. The service may return fewer than this value. If unspecified, at most 200 user links will be returned. The maximum value is 500; values above 500 will be coerced to 500.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `ListUserLinks` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListUserLinks` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Example format: accounts/1234", + // "location": "path", + // "pattern": "^accounts/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/userLinks", + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaListUserLinksResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.manage.users", + // "https://www.googleapis.com/auth/analytics.manage.users.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 *AccountsUserLinksListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListUserLinksResponse) 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 "analyticsadmin.accounts.userLinks.patch": + +type AccountsUserLinksPatchCall struct { + s *Service + name string + googleanalyticsadminv1alphauserlink *GoogleAnalyticsAdminV1alphaUserLink + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a user link on an account or property. +// +// - name: Output only. Example format: properties/1234/userLinks/5678. +func (r *AccountsUserLinksService) Patch(name string, googleanalyticsadminv1alphauserlink *GoogleAnalyticsAdminV1alphaUserLink) *AccountsUserLinksPatchCall { + c := &AccountsUserLinksPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleanalyticsadminv1alphauserlink = googleanalyticsadminv1alphauserlink + 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 *AccountsUserLinksPatchCall) Fields(s ...googleapi.Field) *AccountsUserLinksPatchCall { + 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 *AccountsUserLinksPatchCall) Context(ctx context.Context) *AccountsUserLinksPatchCall { + 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 *AccountsUserLinksPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsUserLinksPatchCall) 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.googleanalyticsadminv1alphauserlink) + 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, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", 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 "analyticsadmin.accounts.userLinks.patch" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaUserLink or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleAnalyticsAdminV1alphaUserLink.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 *AccountsUserLinksPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaUserLink, 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 := &GoogleAnalyticsAdminV1alphaUserLink{ + 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 a user link on an account or property.", + // "flatPath": "v1alpha/accounts/{accountsId}/userLinks/{userLinksId}", + // "httpMethod": "PATCH", + // "id": "analyticsadmin.accounts.userLinks.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. Example format: properties/1234/userLinks/5678", + // "location": "path", + // "pattern": "^accounts/[^/]+/userLinks/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "request": { + // "$ref": "GoogleAnalyticsAdminV1alphaUserLink" + // }, + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaUserLink" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.manage.users" + // ] + // } + +} + +// method id "analyticsadmin.properties.acknowledgeUserDataCollection": + +type PropertiesAcknowledgeUserDataCollectionCall struct { + s *Service + property string + googleanalyticsadminv1alphaacknowledgeuserdatacollectionrequest *GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// AcknowledgeUserDataCollection: Acknowledges the terms of user data +// collection for the specified property. This acknowledgement must be +// completed (either in the Google Analytics UI or via this API) before +// MeasurementProtocolSecret resources may be created. +// +// - property: The property for which to acknowledge user data +// collection. +func (r *PropertiesService) AcknowledgeUserDataCollection(property string, googleanalyticsadminv1alphaacknowledgeuserdatacollectionrequest *GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest) *PropertiesAcknowledgeUserDataCollectionCall { + c := &PropertiesAcknowledgeUserDataCollectionCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.property = property + c.googleanalyticsadminv1alphaacknowledgeuserdatacollectionrequest = googleanalyticsadminv1alphaacknowledgeuserdatacollectionrequest + 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 *PropertiesAcknowledgeUserDataCollectionCall) Fields(s ...googleapi.Field) *PropertiesAcknowledgeUserDataCollectionCall { + 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 *PropertiesAcknowledgeUserDataCollectionCall) Context(ctx context.Context) *PropertiesAcknowledgeUserDataCollectionCall { + 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 *PropertiesAcknowledgeUserDataCollectionCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesAcknowledgeUserDataCollectionCall) 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.googleanalyticsadminv1alphaacknowledgeuserdatacollectionrequest) + 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, "v1alpha/{+property}:acknowledgeUserDataCollection") + 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{ + "property": c.property, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.properties.acknowledgeUserDataCollection" call. +// Exactly one of +// *GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse.Serv +// erResponse.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 *PropertiesAcknowledgeUserDataCollectionCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse, 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 := &GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse{ + 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": "Acknowledges the terms of user data collection for the specified property. This acknowledgement must be completed (either in the Google Analytics UI or via this API) before MeasurementProtocolSecret resources may be created.", + // "flatPath": "v1alpha/properties/{propertiesId}:acknowledgeUserDataCollection", + // "httpMethod": "POST", + // "id": "analyticsadmin.properties.acknowledgeUserDataCollection", + // "parameterOrder": [ + // "property" + // ], + // "parameters": { + // "property": { + // "description": "Required. The property for which to acknowledge user data collection.", + // "location": "path", + // "pattern": "^properties/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+property}:acknowledgeUserDataCollection", + // "request": { + // "$ref": "GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest" + // }, + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit" + // ] + // } + +} + +// method id "analyticsadmin.properties.create": + +type PropertiesCreateCall struct { + s *Service + googleanalyticsadminv1alphaproperty *GoogleAnalyticsAdminV1alphaProperty + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates an "GA4" property with the specified location and +// attributes. +func (r *PropertiesService) Create(googleanalyticsadminv1alphaproperty *GoogleAnalyticsAdminV1alphaProperty) *PropertiesCreateCall { + c := &PropertiesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googleanalyticsadminv1alphaproperty = googleanalyticsadminv1alphaproperty + 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 *PropertiesCreateCall) Fields(s ...googleapi.Field) *PropertiesCreateCall { + 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 *PropertiesCreateCall) Context(ctx context.Context) *PropertiesCreateCall { + 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 *PropertiesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesCreateCall) 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.googleanalyticsadminv1alphaproperty) + 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, "v1alpha/properties") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.properties.create" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaProperty or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleAnalyticsAdminV1alphaProperty.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 *PropertiesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaProperty, 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 := &GoogleAnalyticsAdminV1alphaProperty{ + 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": "Creates an \"GA4\" property with the specified location and attributes.", + // "flatPath": "v1alpha/properties", + // "httpMethod": "POST", + // "id": "analyticsadmin.properties.create", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1alpha/properties", + // "request": { + // "$ref": "GoogleAnalyticsAdminV1alphaProperty" + // }, + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaProperty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit" + // ] + // } + +} + +// method id "analyticsadmin.properties.delete": + +type PropertiesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Marks target Property as soft-deleted (ie: "trashed") and +// returns it. This API does not have a method to restore soft-deleted +// properties. However, they can be restored using the Trash Can UI. If +// the properties are not restored before the expiration time, the +// Property and all child resources (eg: GoogleAdsLinks, Streams, +// UserLinks) will be permanently purged. +// https://support.google.com/analytics/answer/6154772 Returns an error +// if the target is not found, or is not a GA4 Property. +// +// - name: The name of the Property to soft-delete. Format: +// properties/{property_id} Example: "properties/1000". +func (r *PropertiesService) Delete(name string) *PropertiesDeleteCall { + c := &PropertiesDeleteCall{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 *PropertiesDeleteCall) Fields(s ...googleapi.Field) *PropertiesDeleteCall { + 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 *PropertiesDeleteCall) Context(ctx context.Context) *PropertiesDeleteCall { + 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 *PropertiesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesDeleteCall) 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, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", 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 "analyticsadmin.properties.delete" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaProperty or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleAnalyticsAdminV1alphaProperty.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 *PropertiesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaProperty, 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 := &GoogleAnalyticsAdminV1alphaProperty{ + 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": "Marks target Property as soft-deleted (ie: \"trashed\") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found, or is not a GA4 Property.", + // "flatPath": "v1alpha/properties/{propertiesId}", + // "httpMethod": "DELETE", + // "id": "analyticsadmin.properties.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the Property to soft-delete. Format: properties/{property_id} Example: \"properties/1000\"", + // "location": "path", + // "pattern": "^properties/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaProperty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit" + // ] + // } + +} + +// method id "analyticsadmin.properties.fetchAutomatedGa4ConfigurationOptOut": + +type PropertiesFetchAutomatedGa4ConfigurationOptOutCall struct { + s *Service + googleanalyticsadminv1alphafetchautomatedga4configurationoptoutrequest *GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// FetchAutomatedGa4ConfigurationOptOut: Fetches the opt out status for +// the automated GA4 setup process for a UA property. Note: this has no +// effect on GA4 property. +func (r *PropertiesService) FetchAutomatedGa4ConfigurationOptOut(googleanalyticsadminv1alphafetchautomatedga4configurationoptoutrequest *GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest) *PropertiesFetchAutomatedGa4ConfigurationOptOutCall { + c := &PropertiesFetchAutomatedGa4ConfigurationOptOutCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googleanalyticsadminv1alphafetchautomatedga4configurationoptoutrequest = googleanalyticsadminv1alphafetchautomatedga4configurationoptoutrequest + 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 *PropertiesFetchAutomatedGa4ConfigurationOptOutCall) Fields(s ...googleapi.Field) *PropertiesFetchAutomatedGa4ConfigurationOptOutCall { + 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 *PropertiesFetchAutomatedGa4ConfigurationOptOutCall) Context(ctx context.Context) *PropertiesFetchAutomatedGa4ConfigurationOptOutCall { + 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 *PropertiesFetchAutomatedGa4ConfigurationOptOutCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesFetchAutomatedGa4ConfigurationOptOutCall) 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.googleanalyticsadminv1alphafetchautomatedga4configurationoptoutrequest) + 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, "v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.properties.fetchAutomatedGa4ConfigurationOptOut" call. +// Exactly one of +// *GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRespon +// se or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRespon +// se.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 *PropertiesFetchAutomatedGa4ConfigurationOptOutCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse, 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 := &GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse{ + 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": "Fetches the opt out status for the automated GA4 setup process for a UA property. Note: this has no effect on GA4 property.", + // "flatPath": "v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut", + // "httpMethod": "POST", + // "id": "analyticsadmin.properties.fetchAutomatedGa4ConfigurationOptOut", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut", + // "request": { + // "$ref": "GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest" + // }, + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit", + // "https://www.googleapis.com/auth/analytics.readonly" + // ] + // } + +} + +// method id "analyticsadmin.properties.get": + +type PropertiesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Lookup for a single "GA4" Property. +// +// - name: The name of the property to lookup. Format: +// properties/{property_id} Example: "properties/1000". +func (r *PropertiesService) Get(name string) *PropertiesGetCall { + c := &PropertiesGetCall{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 *PropertiesGetCall) Fields(s ...googleapi.Field) *PropertiesGetCall { + 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 *PropertiesGetCall) IfNoneMatch(entityTag string) *PropertiesGetCall { + 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 *PropertiesGetCall) Context(ctx context.Context) *PropertiesGetCall { + 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 *PropertiesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesGetCall) 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, "v1alpha/{+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 "analyticsadmin.properties.get" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaProperty or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleAnalyticsAdminV1alphaProperty.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 *PropertiesGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaProperty, 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 := &GoogleAnalyticsAdminV1alphaProperty{ + 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": "Lookup for a single \"GA4\" Property.", + // "flatPath": "v1alpha/properties/{propertiesId}", + // "httpMethod": "GET", + // "id": "analyticsadmin.properties.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the property to lookup. Format: properties/{property_id} Example: \"properties/1000\"", + // "location": "path", + // "pattern": "^properties/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaProperty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit", + // "https://www.googleapis.com/auth/analytics.readonly" + // ] + // } + +} + +// method id "analyticsadmin.properties.getAttributionSettings": + +type PropertiesGetAttributionSettingsCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetAttributionSettings: Lookup for a AttributionSettings singleton. +// +// - name: The name of the attribution settings to retrieve. Format: +// properties/{property}/attributionSettings. +func (r *PropertiesService) GetAttributionSettings(name string) *PropertiesGetAttributionSettingsCall { + c := &PropertiesGetAttributionSettingsCall{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 *PropertiesGetAttributionSettingsCall) Fields(s ...googleapi.Field) *PropertiesGetAttributionSettingsCall { + 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 *PropertiesGetAttributionSettingsCall) IfNoneMatch(entityTag string) *PropertiesGetAttributionSettingsCall { + 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 *PropertiesGetAttributionSettingsCall) Context(ctx context.Context) *PropertiesGetAttributionSettingsCall { + 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 *PropertiesGetAttributionSettingsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesGetAttributionSettingsCall) 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, "v1alpha/{+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 "analyticsadmin.properties.getAttributionSettings" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaAttributionSettings or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleAnalyticsAdminV1alphaAttributionSettings.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 *PropertiesGetAttributionSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAttributionSettings, 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 := &GoogleAnalyticsAdminV1alphaAttributionSettings{ + 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": "Lookup for a AttributionSettings singleton.", + // "flatPath": "v1alpha/properties/{propertiesId}/attributionSettings", + // "httpMethod": "GET", + // "id": "analyticsadmin.properties.getAttributionSettings", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the attribution settings to retrieve. Format: properties/{property}/attributionSettings", + // "location": "path", + // "pattern": "^properties/[^/]+/attributionSettings$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaAttributionSettings" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit", + // "https://www.googleapis.com/auth/analytics.readonly" + // ] + // } + +} + +// method id "analyticsadmin.properties.getDataRetentionSettings": + +type PropertiesGetDataRetentionSettingsCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetDataRetentionSettings: Returns the singleton data retention +// settings for this property. +// +// - name: The name of the settings to lookup. Format: +// properties/{property}/dataRetentionSettings Example: +// "properties/1000/dataRetentionSettings". +func (r *PropertiesService) GetDataRetentionSettings(name string) *PropertiesGetDataRetentionSettingsCall { + c := &PropertiesGetDataRetentionSettingsCall{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 *PropertiesGetDataRetentionSettingsCall) Fields(s ...googleapi.Field) *PropertiesGetDataRetentionSettingsCall { + 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 *PropertiesGetDataRetentionSettingsCall) IfNoneMatch(entityTag string) *PropertiesGetDataRetentionSettingsCall { + 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 *PropertiesGetDataRetentionSettingsCall) Context(ctx context.Context) *PropertiesGetDataRetentionSettingsCall { + 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 *PropertiesGetDataRetentionSettingsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesGetDataRetentionSettingsCall) 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, "v1alpha/{+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 "analyticsadmin.properties.getDataRetentionSettings" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaDataRetentionSettings or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleAnalyticsAdminV1alphaDataRetentionSettings.ServerResponse.Heade +// r 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 *PropertiesGetDataRetentionSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaDataRetentionSettings, 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 := &GoogleAnalyticsAdminV1alphaDataRetentionSettings{ + 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 the singleton data retention settings for this property.", + // "flatPath": "v1alpha/properties/{propertiesId}/dataRetentionSettings", + // "httpMethod": "GET", + // "id": "analyticsadmin.properties.getDataRetentionSettings", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the settings to lookup. Format: properties/{property}/dataRetentionSettings Example: \"properties/1000/dataRetentionSettings\"", + // "location": "path", + // "pattern": "^properties/[^/]+/dataRetentionSettings$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaDataRetentionSettings" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit", + // "https://www.googleapis.com/auth/analytics.readonly" + // ] + // } + +} + +// method id "analyticsadmin.properties.getGoogleSignalsSettings": + +type PropertiesGetGoogleSignalsSettingsCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetGoogleSignalsSettings: Lookup for Google Signals settings for a +// property. +// +// - name: The name of the google signals settings to retrieve. Format: +// properties/{property}/googleSignalsSettings. +func (r *PropertiesService) GetGoogleSignalsSettings(name string) *PropertiesGetGoogleSignalsSettingsCall { + c := &PropertiesGetGoogleSignalsSettingsCall{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 *PropertiesGetGoogleSignalsSettingsCall) Fields(s ...googleapi.Field) *PropertiesGetGoogleSignalsSettingsCall { + 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 *PropertiesGetGoogleSignalsSettingsCall) IfNoneMatch(entityTag string) *PropertiesGetGoogleSignalsSettingsCall { + 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 *PropertiesGetGoogleSignalsSettingsCall) Context(ctx context.Context) *PropertiesGetGoogleSignalsSettingsCall { + 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 *PropertiesGetGoogleSignalsSettingsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesGetGoogleSignalsSettingsCall) 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, "v1alpha/{+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 "analyticsadmin.properties.getGoogleSignalsSettings" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaGoogleSignalsSettings or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleAnalyticsAdminV1alphaGoogleSignalsSettings.ServerResponse.Heade +// r 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 *PropertiesGetGoogleSignalsSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaGoogleSignalsSettings, 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 := &GoogleAnalyticsAdminV1alphaGoogleSignalsSettings{ + 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": "Lookup for Google Signals settings for a property.", + // "flatPath": "v1alpha/properties/{propertiesId}/googleSignalsSettings", + // "httpMethod": "GET", + // "id": "analyticsadmin.properties.getGoogleSignalsSettings", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the google signals settings to retrieve. Format: properties/{property}/googleSignalsSettings", + // "location": "path", + // "pattern": "^properties/[^/]+/googleSignalsSettings$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaGoogleSignalsSettings" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit", + // "https://www.googleapis.com/auth/analytics.readonly" + // ] + // } + +} + +// method id "analyticsadmin.properties.list": + +type PropertiesListCall struct { + s *Service + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Returns child Properties under the specified parent Account. +// Only "GA4" properties will be returned. Properties will be excluded +// if the caller does not have access. Soft-deleted (ie: "trashed") +// properties are excluded by default. Returns an empty list if no +// relevant properties are found. +func (r *PropertiesService) List() *PropertiesListCall { + c := &PropertiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + return c +} + +// Filter sets the optional parameter "filter": Required. An expression +// for filtering the results of the request. Fields eligible for +// filtering are: `parent:`(The resource name of the parent +// account/property) or `ancestor:`(The resource name of the parent +// account) or `firebase_project:`(The id or number of the linked +// firebase project). Some examples of filters: ``` | Filter | +// Description | +// |-----------------------------|--------------------------------------- +// ----| | parent:accounts/123 | The account with account id: 123. | | +// parent:properties/123 | The property with property id: 123. | | +// ancestor:accounts/123 | The account with account id: 123. | | +// firebase_project:project-id | The firebase project with id: +// project-id. | | firebase_project:123 | The firebase project with +// number: 123. | ``` +func (c *PropertiesListCall) Filter(filter string) *PropertiesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of resources to return. The service may return fewer than this value, +// even if there are additional pages. If unspecified, at most 50 +// resources will be returned. The maximum value is 200; (higher values +// will be coerced to the maximum) +func (c *PropertiesListCall) PageSize(pageSize int64) *PropertiesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListProperties` call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// provided to `ListProperties` must match the call that provided the +// page token. +func (c *PropertiesListCall) PageToken(pageToken string) *PropertiesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ShowDeleted sets the optional parameter "showDeleted": Whether to +// include soft-deleted (ie: "trashed") Properties in the results. +// Properties can be inspected to determine whether they are deleted or +// not. +func (c *PropertiesListCall) ShowDeleted(showDeleted bool) *PropertiesListCall { + c.urlParams_.Set("showDeleted", fmt.Sprint(showDeleted)) + 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 *PropertiesListCall) Fields(s ...googleapi.Field) *PropertiesListCall { + 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 *PropertiesListCall) IfNoneMatch(entityTag string) *PropertiesListCall { + 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 *PropertiesListCall) Context(ctx context.Context) *PropertiesListCall { + 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 *PropertiesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesListCall) 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, "v1alpha/properties") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.properties.list" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaListPropertiesResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleAnalyticsAdminV1alphaListPropertiesResponse.ServerResponse.Head +// er 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 *PropertiesListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListPropertiesResponse, 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 := &GoogleAnalyticsAdminV1alphaListPropertiesResponse{ + 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 child Properties under the specified parent Account. Only \"GA4\" properties will be returned. Properties will be excluded if the caller does not have access. Soft-deleted (ie: \"trashed\") properties are excluded by default. Returns an empty list if no relevant properties are found.", + // "flatPath": "v1alpha/properties", + // "httpMethod": "GET", + // "id": "analyticsadmin.properties.list", + // "parameterOrder": [], + // "parameters": { + // "filter": { + // "description": "Required. An expression for filtering the results of the request. Fields eligible for filtering are: `parent:`(The resource name of the parent account/property) or `ancestor:`(The resource name of the parent account) or `firebase_project:`(The id or number of the linked firebase project). Some examples of filters: ``` | Filter | Description | |-----------------------------|-------------------------------------------| | parent:accounts/123 | The account with account id: 123. | | parent:properties/123 | The property with property id: 123. | | ancestor:accounts/123 | The account with account id: 123. | | firebase_project:project-id | The firebase project with id: project-id. | | firebase_project:123 | The firebase project with number: 123. | ```", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be returned. The maximum value is 200; (higher values will be coerced to the maximum)", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `ListProperties` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListProperties` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "showDeleted": { + // "description": "Whether to include soft-deleted (ie: \"trashed\") Properties in the results. Properties can be inspected to determine whether they are deleted or not.", + // "location": "query", + // "type": "boolean" + // } + // }, + // "path": "v1alpha/properties", + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaListPropertiesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit", + // "https://www.googleapis.com/auth/analytics.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 *PropertiesListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListPropertiesResponse) 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 "analyticsadmin.properties.patch": + +type PropertiesPatchCall struct { + s *Service + name string + googleanalyticsadminv1alphaproperty *GoogleAnalyticsAdminV1alphaProperty + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a property. +// +// - name: Output only. Resource name of this property. Format: +// properties/{property_id} Example: "properties/1000". +func (r *PropertiesService) Patch(name string, googleanalyticsadminv1alphaproperty *GoogleAnalyticsAdminV1alphaProperty) *PropertiesPatchCall { + c := &PropertiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleanalyticsadminv1alphaproperty = googleanalyticsadminv1alphaproperty + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The +// list of fields to be updated. Field names must be in snake case +// (e.g., "field_to_update"). Omitted fields will not be updated. To +// replace the entire entity, use one path with the string "*" to match +// all fields. +func (c *PropertiesPatchCall) UpdateMask(updateMask string) *PropertiesPatchCall { + c.urlParams_.Set("updateMask", updateMask) + 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 *PropertiesPatchCall) Fields(s ...googleapi.Field) *PropertiesPatchCall { + 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 *PropertiesPatchCall) Context(ctx context.Context) *PropertiesPatchCall { + 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 *PropertiesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesPatchCall) 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.googleanalyticsadminv1alphaproperty) + 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, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", 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 "analyticsadmin.properties.patch" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaProperty or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleAnalyticsAdminV1alphaProperty.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 *PropertiesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaProperty, 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 := &GoogleAnalyticsAdminV1alphaProperty{ + 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 a property.", + // "flatPath": "v1alpha/properties/{propertiesId}", + // "httpMethod": "PATCH", + // "id": "analyticsadmin.properties.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. Resource name of this property. Format: properties/{property_id} Example: \"properties/1000\"", + // "location": "path", + // "pattern": "^properties/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The list of fields to be updated. Field names must be in snake case (e.g., \"field_to_update\"). Omitted fields will not be updated. To replace the entire entity, use one path with the string \"*\" to match all fields.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "request": { + // "$ref": "GoogleAnalyticsAdminV1alphaProperty" + // }, + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaProperty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit" + // ] + // } + +} + +// method id "analyticsadmin.properties.runAccessReport": + +type PropertiesRunAccessReportCall struct { + s *Service + entity string + googleanalyticsadminv1alpharunaccessreportrequest *GoogleAnalyticsAdminV1alphaRunAccessReportRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// RunAccessReport: Returns a customized report of data access records. +// The report provides records of each time a user reads Google +// Analytics reporting data. Access records are retained for up to 2 +// years. Data Access Reports can be requested for a property. The +// property must be in Google Analytics 360. This method is only +// available to Administrators. These data access records include GA4 UI +// Reporting, GA4 UI Explorations, GA4 Data API, and other products like +// Firebase & Admob that can retrieve data from Google Analytics through +// a linkage. These records don't include property configuration changes +// like adding a stream or changing a property's time zone. For +// configuration change history, see searchChangeHistoryEvents +// (https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). +// +// - entity: The Data Access Report is requested for this property. For +// example if "123" is your GA4 property ID, then entity should be +// "properties/123". +func (r *PropertiesService) RunAccessReport(entity string, googleanalyticsadminv1alpharunaccessreportrequest *GoogleAnalyticsAdminV1alphaRunAccessReportRequest) *PropertiesRunAccessReportCall { + c := &PropertiesRunAccessReportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.entity = entity + c.googleanalyticsadminv1alpharunaccessreportrequest = googleanalyticsadminv1alpharunaccessreportrequest + 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 *PropertiesRunAccessReportCall) Fields(s ...googleapi.Field) *PropertiesRunAccessReportCall { + 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 *PropertiesRunAccessReportCall) Context(ctx context.Context) *PropertiesRunAccessReportCall { + 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 *PropertiesRunAccessReportCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesRunAccessReportCall) 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.googleanalyticsadminv1alpharunaccessreportrequest) + 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, "v1alpha/{+entity}:runAccessReport") + 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{ + "entity": c.entity, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.properties.runAccessReport" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaRunAccessReportResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleAnalyticsAdminV1alphaRunAccessReportResponse.ServerResponse.Hea +// der 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 *PropertiesRunAccessReportCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaRunAccessReportResponse, 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 := &GoogleAnalyticsAdminV1alphaRunAccessReportResponse{ + 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 a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years. Data Access Reports can be requested for a property. The property must be in Google Analytics 360. This method is only available to Administrators. These data access records include GA4 UI Reporting, GA4 UI Explorations, GA4 Data API, and other products like Firebase \u0026 Admob that can retrieve data from Google Analytics through a linkage. These records don't include property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).", + // "flatPath": "v1alpha/properties/{propertiesId}:runAccessReport", + // "httpMethod": "POST", + // "id": "analyticsadmin.properties.runAccessReport", + // "parameterOrder": [ + // "entity" + // ], + // "parameters": { + // "entity": { + // "description": "The Data Access Report is requested for this property. For example if \"123\" is your GA4 property ID, then entity should be \"properties/123\".", + // "location": "path", // "pattern": "^properties/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+name}", + // "path": "v1alpha/{+entity}:runAccessReport", + // "request": { + // "$ref": "GoogleAnalyticsAdminV1alphaRunAccessReportRequest" + // }, // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaProperty" + // "$ref": "GoogleAnalyticsAdminV1alphaRunAccessReportResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/analytics.edit" + // "https://www.googleapis.com/auth/analytics.edit", + // "https://www.googleapis.com/auth/analytics.readonly" // ] // } } -// method id "analyticsadmin.properties.fetchAutomatedGa4ConfigurationOptOut": +// method id "analyticsadmin.properties.setAutomatedGa4ConfigurationOptOut": -type PropertiesFetchAutomatedGa4ConfigurationOptOutCall struct { - s *Service - googleanalyticsadminv1alphafetchautomatedga4configurationoptoutrequest *GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type PropertiesSetAutomatedGa4ConfigurationOptOutCall struct { + s *Service + googleanalyticsadminv1alphasetautomatedga4configurationoptoutrequest *GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// FetchAutomatedGa4ConfigurationOptOut: Fetches the opt out status for -// the automated GA4 setup process for a UA property. Note: this has no +// SetAutomatedGa4ConfigurationOptOut: Sets the opt out status for the +// automated GA4 setup process for a UA property. Note: this has no // effect on GA4 property. -func (r *PropertiesService) FetchAutomatedGa4ConfigurationOptOut(googleanalyticsadminv1alphafetchautomatedga4configurationoptoutrequest *GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest) *PropertiesFetchAutomatedGa4ConfigurationOptOutCall { - c := &PropertiesFetchAutomatedGa4ConfigurationOptOutCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.googleanalyticsadminv1alphafetchautomatedga4configurationoptoutrequest = googleanalyticsadminv1alphafetchautomatedga4configurationoptoutrequest +func (r *PropertiesService) SetAutomatedGa4ConfigurationOptOut(googleanalyticsadminv1alphasetautomatedga4configurationoptoutrequest *GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest) *PropertiesSetAutomatedGa4ConfigurationOptOutCall { + c := &PropertiesSetAutomatedGa4ConfigurationOptOutCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googleanalyticsadminv1alphasetautomatedga4configurationoptoutrequest = googleanalyticsadminv1alphasetautomatedga4configurationoptoutrequest 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 *PropertiesFetchAutomatedGa4ConfigurationOptOutCall) Fields(s ...googleapi.Field) *PropertiesFetchAutomatedGa4ConfigurationOptOutCall { +func (c *PropertiesSetAutomatedGa4ConfigurationOptOutCall) Fields(s ...googleapi.Field) *PropertiesSetAutomatedGa4ConfigurationOptOutCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -8718,21 +11783,21 @@ func (c *PropertiesFetchAutomatedGa4ConfigurationOptOutCall) Fields(s ...googlea // 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 *PropertiesFetchAutomatedGa4ConfigurationOptOutCall) Context(ctx context.Context) *PropertiesFetchAutomatedGa4ConfigurationOptOutCall { +func (c *PropertiesSetAutomatedGa4ConfigurationOptOutCall) Context(ctx context.Context) *PropertiesSetAutomatedGa4ConfigurationOptOutCall { 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 *PropertiesFetchAutomatedGa4ConfigurationOptOutCall) Header() http.Header { +func (c *PropertiesSetAutomatedGa4ConfigurationOptOutCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PropertiesFetchAutomatedGa4ConfigurationOptOutCall) doRequest(alt string) (*http.Response, error) { +func (c *PropertiesSetAutomatedGa4ConfigurationOptOutCall) 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_ { @@ -8740,14 +11805,14 @@ func (c *PropertiesFetchAutomatedGa4ConfigurationOptOutCall) doRequest(alt strin } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphafetchautomatedga4configurationoptoutrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphasetautomatedga4configurationoptoutrequest) 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, "v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/properties:setAutomatedGa4ConfigurationOptOut") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -8757,17 +11822,19 @@ func (c *PropertiesFetchAutomatedGa4ConfigurationOptOutCall) doRequest(alt strin return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.properties.fetchAutomatedGa4ConfigurationOptOut" call. +// Do executes the "analyticsadmin.properties.setAutomatedGa4ConfigurationOptOut" call. // Exactly one of -// *GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRespon -// se or error will be non-nil. Any non-2xx status code is an error. +// *GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse +// +// or error will be non-nil. Any non-2xx status code is an error. +// // Response headers are in either -// *GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRespon -// se.ServerResponse.Header or (if a response was returned at all) in +// *GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse +// .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 *PropertiesFetchAutomatedGa4ConfigurationOptOutCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse, error) { +func (c *PropertiesSetAutomatedGa4ConfigurationOptOutCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8786,7 +11853,7 @@ func (c *PropertiesFetchAutomatedGa4ConfigurationOptOutCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse{ + ret := &GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8798,99 +11865,265 @@ func (c *PropertiesFetchAutomatedGa4ConfigurationOptOutCall) Do(opts ...googleap } return ret, nil // { - // "description": "Fetches the opt out status for the automated GA4 setup process for a UA property. Note: this has no effect on GA4 property.", - // "flatPath": "v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut", + // "description": "Sets the opt out status for the automated GA4 setup process for a UA property. Note: this has no effect on GA4 property.", + // "flatPath": "v1alpha/properties:setAutomatedGa4ConfigurationOptOut", // "httpMethod": "POST", - // "id": "analyticsadmin.properties.fetchAutomatedGa4ConfigurationOptOut", + // "id": "analyticsadmin.properties.setAutomatedGa4ConfigurationOptOut", // "parameterOrder": [], // "parameters": {}, - // "path": "v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut", + // "path": "v1alpha/properties:setAutomatedGa4ConfigurationOptOut", // "request": { - // "$ref": "GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest" + // "$ref": "GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest" // }, // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse" + // "$ref": "GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/analytics.edit", - // "https://www.googleapis.com/auth/analytics.readonly" + // "https://www.googleapis.com/auth/analytics.edit" + // ] + // } + +} + +// method id "analyticsadmin.properties.updateAttributionSettings": + +type PropertiesUpdateAttributionSettingsCall struct { + s *Service + name string + googleanalyticsadminv1alphaattributionsettings *GoogleAnalyticsAdminV1alphaAttributionSettings + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpdateAttributionSettings: Updates attribution settings on a +// property. +// +// - name: Output only. Resource name of this attribution settings +// resource. Format: properties/{property_id}/attributionSettings +// Example: "properties/1000/attributionSettings". +func (r *PropertiesService) UpdateAttributionSettings(name string, googleanalyticsadminv1alphaattributionsettings *GoogleAnalyticsAdminV1alphaAttributionSettings) *PropertiesUpdateAttributionSettingsCall { + c := &PropertiesUpdateAttributionSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleanalyticsadminv1alphaattributionsettings = googleanalyticsadminv1alphaattributionsettings + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The +// list of fields to be updated. Field names must be in snake case +// (e.g., "field_to_update"). Omitted fields will not be updated. To +// replace the entire entity, use one path with the string "*" to match +// all fields. +func (c *PropertiesUpdateAttributionSettingsCall) UpdateMask(updateMask string) *PropertiesUpdateAttributionSettingsCall { + c.urlParams_.Set("updateMask", updateMask) + 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 *PropertiesUpdateAttributionSettingsCall) Fields(s ...googleapi.Field) *PropertiesUpdateAttributionSettingsCall { + 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 *PropertiesUpdateAttributionSettingsCall) Context(ctx context.Context) *PropertiesUpdateAttributionSettingsCall { + 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 *PropertiesUpdateAttributionSettingsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesUpdateAttributionSettingsCall) 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.googleanalyticsadminv1alphaattributionsettings) + 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, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", 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 "analyticsadmin.properties.updateAttributionSettings" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaAttributionSettings or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleAnalyticsAdminV1alphaAttributionSettings.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 *PropertiesUpdateAttributionSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAttributionSettings, 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 := &GoogleAnalyticsAdminV1alphaAttributionSettings{ + 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 attribution settings on a property.", + // "flatPath": "v1alpha/properties/{propertiesId}/attributionSettings", + // "httpMethod": "PATCH", + // "id": "analyticsadmin.properties.updateAttributionSettings", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. Resource name of this attribution settings resource. Format: properties/{property_id}/attributionSettings Example: \"properties/1000/attributionSettings\"", + // "location": "path", + // "pattern": "^properties/[^/]+/attributionSettings$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The list of fields to be updated. Field names must be in snake case (e.g., \"field_to_update\"). Omitted fields will not be updated. To replace the entire entity, use one path with the string \"*\" to match all fields.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "request": { + // "$ref": "GoogleAnalyticsAdminV1alphaAttributionSettings" + // }, + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaAttributionSettings" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit" // ] // } } -// method id "analyticsadmin.properties.get": +// method id "analyticsadmin.properties.updateDataRetentionSettings": -type PropertiesGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type PropertiesUpdateDataRetentionSettingsCall struct { + s *Service + name string + googleanalyticsadminv1alphadataretentionsettings *GoogleAnalyticsAdminV1alphaDataRetentionSettings + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Lookup for a single "GA4" Property. +// UpdateDataRetentionSettings: Updates the singleton data retention +// settings for this property. // -// - name: The name of the property to lookup. Format: -// properties/{property_id} Example: "properties/1000". -func (r *PropertiesService) Get(name string) *PropertiesGetCall { - c := &PropertiesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Output only. Resource name for this DataRetentionSetting +// resource. Format: properties/{property}/dataRetentionSettings. +func (r *PropertiesService) UpdateDataRetentionSettings(name string, googleanalyticsadminv1alphadataretentionsettings *GoogleAnalyticsAdminV1alphaDataRetentionSettings) *PropertiesUpdateDataRetentionSettingsCall { + c := &PropertiesUpdateDataRetentionSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googleanalyticsadminv1alphadataretentionsettings = googleanalyticsadminv1alphadataretentionsettings + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The +// list of fields to be updated. Field names must be in snake case +// (e.g., "field_to_update"). Omitted fields will not be updated. To +// replace the entire entity, use one path with the string "*" to match +// all fields. +func (c *PropertiesUpdateDataRetentionSettingsCall) UpdateMask(updateMask string) *PropertiesUpdateDataRetentionSettingsCall { + c.urlParams_.Set("updateMask", updateMask) 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 *PropertiesGetCall) Fields(s ...googleapi.Field) *PropertiesGetCall { +func (c *PropertiesUpdateDataRetentionSettingsCall) Fields(s ...googleapi.Field) *PropertiesUpdateDataRetentionSettingsCall { 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 *PropertiesGetCall) IfNoneMatch(entityTag string) *PropertiesGetCall { - 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 *PropertiesGetCall) Context(ctx context.Context) *PropertiesGetCall { +func (c *PropertiesUpdateDataRetentionSettingsCall) Context(ctx context.Context) *PropertiesUpdateDataRetentionSettingsCall { 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 *PropertiesGetCall) Header() http.Header { +func (c *PropertiesUpdateDataRetentionSettingsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PropertiesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *PropertiesUpdateDataRetentionSettingsCall) 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 + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphadataretentionsettings) + 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, "v1alpha/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -8901,15 +12134,16 @@ func (c *PropertiesGetCall) doRequest(alt string) (*http.Response, error) { return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.properties.get" call. -// Exactly one of *GoogleAnalyticsAdminV1alphaProperty or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleAnalyticsAdminV1alphaProperty.ServerResponse.Header or -// (if a response was returned at all) in +// Do executes the "analyticsadmin.properties.updateDataRetentionSettings" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaDataRetentionSettings or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleAnalyticsAdminV1alphaDataRetentionSettings.ServerResponse.Heade +// r 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 *PropertiesGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaProperty, error) { +func (c *PropertiesUpdateDataRetentionSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaDataRetentionSettings, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8928,7 +12162,7 @@ func (c *PropertiesGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAd if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaProperty{ + ret := &GoogleAnalyticsAdminV1alphaDataRetentionSettings{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8940,106 +12174,119 @@ func (c *PropertiesGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAd } return ret, nil // { - // "description": "Lookup for a single \"GA4\" Property.", - // "flatPath": "v1alpha/properties/{propertiesId}", - // "httpMethod": "GET", - // "id": "analyticsadmin.properties.get", + // "description": "Updates the singleton data retention settings for this property.", + // "flatPath": "v1alpha/properties/{propertiesId}/dataRetentionSettings", + // "httpMethod": "PATCH", + // "id": "analyticsadmin.properties.updateDataRetentionSettings", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the property to lookup. Format: properties/{property_id} Example: \"properties/1000\"", + // "description": "Output only. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings", // "location": "path", - // "pattern": "^properties/[^/]+$", + // "pattern": "^properties/[^/]+/dataRetentionSettings$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The list of fields to be updated. Field names must be in snake case (e.g., \"field_to_update\"). Omitted fields will not be updated. To replace the entire entity, use one path with the string \"*\" to match all fields.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, // "path": "v1alpha/{+name}", + // "request": { + // "$ref": "GoogleAnalyticsAdminV1alphaDataRetentionSettings" + // }, // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaProperty" + // "$ref": "GoogleAnalyticsAdminV1alphaDataRetentionSettings" // }, // "scopes": [ - // "https://www.googleapis.com/auth/analytics.edit", - // "https://www.googleapis.com/auth/analytics.readonly" + // "https://www.googleapis.com/auth/analytics.edit" // ] // } } -// method id "analyticsadmin.properties.getAttributionSettings": +// method id "analyticsadmin.properties.updateGoogleSignalsSettings": -type PropertiesGetAttributionSettingsCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type PropertiesUpdateGoogleSignalsSettingsCall struct { + s *Service + name string + googleanalyticsadminv1alphagooglesignalssettings *GoogleAnalyticsAdminV1alphaGoogleSignalsSettings + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetAttributionSettings: Lookup for a AttributionSettings singleton. +// UpdateGoogleSignalsSettings: Updates Google Signals settings for a +// property. // -// - name: The name of the attribution settings to retrieve. Format: -// properties/{property}/attributionSettings. -func (r *PropertiesService) GetAttributionSettings(name string) *PropertiesGetAttributionSettingsCall { - c := &PropertiesGetAttributionSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Output only. Resource name of this setting. Format: +// properties/{property_id}/googleSignalsSettings Example: +// "properties/1000/googleSignalsSettings". +func (r *PropertiesService) UpdateGoogleSignalsSettings(name string, googleanalyticsadminv1alphagooglesignalssettings *GoogleAnalyticsAdminV1alphaGoogleSignalsSettings) *PropertiesUpdateGoogleSignalsSettingsCall { + c := &PropertiesUpdateGoogleSignalsSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googleanalyticsadminv1alphagooglesignalssettings = googleanalyticsadminv1alphagooglesignalssettings + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The +// list of fields to be updated. Field names must be in snake case +// (e.g., "field_to_update"). Omitted fields will not be updated. To +// replace the entire entity, use one path with the string "*" to match +// all fields. +func (c *PropertiesUpdateGoogleSignalsSettingsCall) UpdateMask(updateMask string) *PropertiesUpdateGoogleSignalsSettingsCall { + c.urlParams_.Set("updateMask", updateMask) 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 *PropertiesGetAttributionSettingsCall) Fields(s ...googleapi.Field) *PropertiesGetAttributionSettingsCall { +func (c *PropertiesUpdateGoogleSignalsSettingsCall) Fields(s ...googleapi.Field) *PropertiesUpdateGoogleSignalsSettingsCall { 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 *PropertiesGetAttributionSettingsCall) IfNoneMatch(entityTag string) *PropertiesGetAttributionSettingsCall { - 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 *PropertiesGetAttributionSettingsCall) Context(ctx context.Context) *PropertiesGetAttributionSettingsCall { +func (c *PropertiesUpdateGoogleSignalsSettingsCall) Context(ctx context.Context) *PropertiesUpdateGoogleSignalsSettingsCall { 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 *PropertiesGetAttributionSettingsCall) Header() http.Header { +func (c *PropertiesUpdateGoogleSignalsSettingsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PropertiesGetAttributionSettingsCall) doRequest(alt string) (*http.Response, error) { +func (c *PropertiesUpdateGoogleSignalsSettingsCall) 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 + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphagooglesignalssettings) + 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, "v1alpha/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -9050,16 +12297,16 @@ func (c *PropertiesGetAttributionSettingsCall) doRequest(alt string) (*http.Resp return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.properties.getAttributionSettings" call. -// Exactly one of *GoogleAnalyticsAdminV1alphaAttributionSettings or +// Do executes the "analyticsadmin.properties.updateGoogleSignalsSettings" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaGoogleSignalsSettings or // error will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleAnalyticsAdminV1alphaAttributionSettings.ServerResponse.Header -// or (if a response was returned at all) in +// *GoogleAnalyticsAdminV1alphaGoogleSignalsSettings.ServerResponse.Heade +// r 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 *PropertiesGetAttributionSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAttributionSettings, error) { +func (c *PropertiesUpdateGoogleSignalsSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaGoogleSignalsSettings, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9078,7 +12325,7 @@ func (c *PropertiesGetAttributionSettingsCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaAttributionSettings{ + ret := &GoogleAnalyticsAdminV1alphaGoogleSignalsSettings{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9090,128 +12337,133 @@ func (c *PropertiesGetAttributionSettingsCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Lookup for a AttributionSettings singleton.", - // "flatPath": "v1alpha/properties/{propertiesId}/attributionSettings", - // "httpMethod": "GET", - // "id": "analyticsadmin.properties.getAttributionSettings", + // "description": "Updates Google Signals settings for a property.", + // "flatPath": "v1alpha/properties/{propertiesId}/googleSignalsSettings", + // "httpMethod": "PATCH", + // "id": "analyticsadmin.properties.updateGoogleSignalsSettings", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the attribution settings to retrieve. Format: properties/{property}/attributionSettings", + // "description": "Output only. Resource name of this setting. Format: properties/{property_id}/googleSignalsSettings Example: \"properties/1000/googleSignalsSettings\"", // "location": "path", - // "pattern": "^properties/[^/]+/attributionSettings$", + // "pattern": "^properties/[^/]+/googleSignalsSettings$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The list of fields to be updated. Field names must be in snake case (e.g., \"field_to_update\"). Omitted fields will not be updated. To replace the entire entity, use one path with the string \"*\" to match all fields.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, // "path": "v1alpha/{+name}", + // "request": { + // "$ref": "GoogleAnalyticsAdminV1alphaGoogleSignalsSettings" + // }, // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaAttributionSettings" + // "$ref": "GoogleAnalyticsAdminV1alphaGoogleSignalsSettings" // }, // "scopes": [ - // "https://www.googleapis.com/auth/analytics.edit", - // "https://www.googleapis.com/auth/analytics.readonly" + // "https://www.googleapis.com/auth/analytics.edit" // ] // } } -// method id "analyticsadmin.properties.getDataRetentionSettings": +// method id "analyticsadmin.properties.accessBindings.batchCreate": -type PropertiesGetDataRetentionSettingsCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type PropertiesAccessBindingsBatchCreateCall struct { + s *Service + parent string + googleanalyticsadminv1alphabatchcreateaccessbindingsrequest *GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetDataRetentionSettings: Returns the singleton data retention -// settings for this property. +// BatchCreate: Creates information about multiple access bindings to an +// account or property. This method is transactional. If any +// AccessBinding cannot be created, none of the AccessBindings will be +// created. // -// - name: The name of the settings to lookup. Format: -// properties/{property}/dataRetentionSettings Example: -// "properties/1000/dataRetentionSettings". -func (r *PropertiesService) GetDataRetentionSettings(name string) *PropertiesGetDataRetentionSettingsCall { - c := &PropertiesGetDataRetentionSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The account or property that owns the access bindings. The +// parent field in the CreateAccessBindingRequest messages must either +// be empty or match this field. Formats: - accounts/{account} - +// properties/{property}. +func (r *PropertiesAccessBindingsService) BatchCreate(parent string, googleanalyticsadminv1alphabatchcreateaccessbindingsrequest *GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest) *PropertiesAccessBindingsBatchCreateCall { + c := &PropertiesAccessBindingsBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleanalyticsadminv1alphabatchcreateaccessbindingsrequest = googleanalyticsadminv1alphabatchcreateaccessbindingsrequest 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 *PropertiesGetDataRetentionSettingsCall) Fields(s ...googleapi.Field) *PropertiesGetDataRetentionSettingsCall { +func (c *PropertiesAccessBindingsBatchCreateCall) Fields(s ...googleapi.Field) *PropertiesAccessBindingsBatchCreateCall { 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 *PropertiesGetDataRetentionSettingsCall) IfNoneMatch(entityTag string) *PropertiesGetDataRetentionSettingsCall { - 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 *PropertiesGetDataRetentionSettingsCall) Context(ctx context.Context) *PropertiesGetDataRetentionSettingsCall { +func (c *PropertiesAccessBindingsBatchCreateCall) Context(ctx context.Context) *PropertiesAccessBindingsBatchCreateCall { 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 *PropertiesGetDataRetentionSettingsCall) Header() http.Header { +func (c *PropertiesAccessBindingsBatchCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PropertiesGetDataRetentionSettingsCall) doRequest(alt string) (*http.Response, error) { +func (c *PropertiesAccessBindingsBatchCreateCall) 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 + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphabatchcreateaccessbindingsrequest) + 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, "v1alpha/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/accessBindings:batchCreate") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.properties.getDataRetentionSettings" call. -// Exactly one of *GoogleAnalyticsAdminV1alphaDataRetentionSettings or +// Do executes the "analyticsadmin.properties.accessBindings.batchCreate" call. +// Exactly one of +// *GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse or // error will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleAnalyticsAdminV1alphaDataRetentionSettings.ServerResponse.Heade -// r or (if a response was returned at all) in +// *GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse.ServerRe +// sponse.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 *PropertiesGetDataRetentionSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaDataRetentionSettings, error) { +func (c *PropertiesAccessBindingsBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9230,7 +12482,7 @@ func (c *PropertiesGetDataRetentionSettingsCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaDataRetentionSettings{ + ret := &GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9242,127 +12494,122 @@ func (c *PropertiesGetDataRetentionSettingsCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "Returns the singleton data retention settings for this property.", - // "flatPath": "v1alpha/properties/{propertiesId}/dataRetentionSettings", - // "httpMethod": "GET", - // "id": "analyticsadmin.properties.getDataRetentionSettings", + // "description": "Creates information about multiple access bindings to an account or property. This method is transactional. If any AccessBinding cannot be created, none of the AccessBindings will be created.", + // "flatPath": "v1alpha/properties/{propertiesId}/accessBindings:batchCreate", + // "httpMethod": "POST", + // "id": "analyticsadmin.properties.accessBindings.batchCreate", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the settings to lookup. Format: properties/{property}/dataRetentionSettings Example: \"properties/1000/dataRetentionSettings\"", + // "parent": { + // "description": "Required. The account or property that owns the access bindings. The parent field in the CreateAccessBindingRequest messages must either be empty or match this field. Formats: - accounts/{account} - properties/{property}", // "location": "path", - // "pattern": "^properties/[^/]+/dataRetentionSettings$", + // "pattern": "^properties/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+name}", + // "path": "v1alpha/{+parent}/accessBindings:batchCreate", + // "request": { + // "$ref": "GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest" + // }, // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaDataRetentionSettings" + // "$ref": "GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/analytics.edit", - // "https://www.googleapis.com/auth/analytics.readonly" + // "https://www.googleapis.com/auth/analytics.manage.users" // ] // } } -// method id "analyticsadmin.properties.getGoogleSignalsSettings": +// method id "analyticsadmin.properties.accessBindings.batchDelete": -type PropertiesGetGoogleSignalsSettingsCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type PropertiesAccessBindingsBatchDeleteCall struct { + s *Service + parent string + googleanalyticsadminv1alphabatchdeleteaccessbindingsrequest *GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetGoogleSignalsSettings: Lookup for Google Signals settings for a -// property. +// BatchDelete: Deletes information about multiple users' links to an +// account or property. // -// - name: The name of the google signals settings to retrieve. Format: -// properties/{property}/googleSignalsSettings. -func (r *PropertiesService) GetGoogleSignalsSettings(name string) *PropertiesGetGoogleSignalsSettingsCall { - c := &PropertiesGetGoogleSignalsSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The account or property that owns the access bindings. The +// parent field in the DeleteAccessBindingRequest messages must either +// be empty or match this field. Formats: - accounts/{account} - +// properties/{property}. +func (r *PropertiesAccessBindingsService) BatchDelete(parent string, googleanalyticsadminv1alphabatchdeleteaccessbindingsrequest *GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest) *PropertiesAccessBindingsBatchDeleteCall { + c := &PropertiesAccessBindingsBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleanalyticsadminv1alphabatchdeleteaccessbindingsrequest = googleanalyticsadminv1alphabatchdeleteaccessbindingsrequest 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 *PropertiesGetGoogleSignalsSettingsCall) Fields(s ...googleapi.Field) *PropertiesGetGoogleSignalsSettingsCall { +func (c *PropertiesAccessBindingsBatchDeleteCall) Fields(s ...googleapi.Field) *PropertiesAccessBindingsBatchDeleteCall { 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 *PropertiesGetGoogleSignalsSettingsCall) IfNoneMatch(entityTag string) *PropertiesGetGoogleSignalsSettingsCall { - 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 *PropertiesGetGoogleSignalsSettingsCall) Context(ctx context.Context) *PropertiesGetGoogleSignalsSettingsCall { +func (c *PropertiesAccessBindingsBatchDeleteCall) Context(ctx context.Context) *PropertiesAccessBindingsBatchDeleteCall { 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 *PropertiesGetGoogleSignalsSettingsCall) Header() http.Header { +func (c *PropertiesAccessBindingsBatchDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PropertiesGetGoogleSignalsSettingsCall) doRequest(alt string) (*http.Response, error) { +func (c *PropertiesAccessBindingsBatchDeleteCall) 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 + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphabatchdeleteaccessbindingsrequest) + 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, "v1alpha/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/accessBindings:batchDelete") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.properties.getGoogleSignalsSettings" call. -// Exactly one of *GoogleAnalyticsAdminV1alphaGoogleSignalsSettings or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleAnalyticsAdminV1alphaGoogleSignalsSettings.ServerResponse.Heade -// r 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 *PropertiesGetGoogleSignalsSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaGoogleSignalsSettings, error) { +// Do executes the "analyticsadmin.properties.accessBindings.batchDelete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *PropertiesAccessBindingsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9381,7 +12628,7 @@ func (c *PropertiesGetGoogleSignalsSettingsCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaGoogleSignalsSettings{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9393,106 +12640,73 @@ func (c *PropertiesGetGoogleSignalsSettingsCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "Lookup for Google Signals settings for a property.", - // "flatPath": "v1alpha/properties/{propertiesId}/googleSignalsSettings", - // "httpMethod": "GET", - // "id": "analyticsadmin.properties.getGoogleSignalsSettings", + // "description": "Deletes information about multiple users' links to an account or property.", + // "flatPath": "v1alpha/properties/{propertiesId}/accessBindings:batchDelete", + // "httpMethod": "POST", + // "id": "analyticsadmin.properties.accessBindings.batchDelete", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the google signals settings to retrieve. Format: properties/{property}/googleSignalsSettings", + // "parent": { + // "description": "Required. The account or property that owns the access bindings. The parent field in the DeleteAccessBindingRequest messages must either be empty or match this field. Formats: - accounts/{account} - properties/{property}", // "location": "path", - // "pattern": "^properties/[^/]+/googleSignalsSettings$", + // "pattern": "^properties/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+name}", + // "path": "v1alpha/{+parent}/accessBindings:batchDelete", + // "request": { + // "$ref": "GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest" + // }, // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaGoogleSignalsSettings" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ - // "https://www.googleapis.com/auth/analytics.edit", - // "https://www.googleapis.com/auth/analytics.readonly" + // "https://www.googleapis.com/auth/analytics.manage.users" // ] // } } -// method id "analyticsadmin.properties.list": +// method id "analyticsadmin.properties.accessBindings.batchGet": -type PropertiesListCall struct { +type PropertiesAccessBindingsBatchGetCall struct { s *Service + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Returns child Properties under the specified parent Account. -// Only "GA4" properties will be returned. Properties will be excluded -// if the caller does not have access. Soft-deleted (ie: "trashed") -// properties are excluded by default. Returns an empty list if no -// relevant properties are found. -func (r *PropertiesService) List() *PropertiesListCall { - c := &PropertiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - return c -} - -// Filter sets the optional parameter "filter": Required. An expression -// for filtering the results of the request. Fields eligible for -// filtering are: `parent:`(The resource name of the parent -// account/property) or `ancestor:`(The resource name of the parent -// account) or `firebase_project:`(The id or number of the linked -// firebase project). Some examples of filters: ``` | Filter | -// Description | -// |-----------------------------|--------------------------------------- -// ----| | parent:accounts/123 | The account with account id: 123. | | -// parent:properties/123 | The property with property id: 123. | | -// ancestor:accounts/123 | The account with account id: 123. | | -// firebase_project:project-id | The firebase project with id: -// project-id. | | firebase_project:123 | The firebase project with -// number: 123. | ``` -func (c *PropertiesListCall) Filter(filter string) *PropertiesListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of resources to return. The service may return fewer than this value, -// even if there are additional pages. If unspecified, at most 50 -// resources will be returned. The maximum value is 200; (higher values -// will be coerced to the maximum) -func (c *PropertiesListCall) PageSize(pageSize int64) *PropertiesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous `ListProperties` call. Provide this to -// retrieve the subsequent page. When paginating, all other parameters -// provided to `ListProperties` must match the call that provided the -// page token. -func (c *PropertiesListCall) PageToken(pageToken string) *PropertiesListCall { - c.urlParams_.Set("pageToken", pageToken) +// BatchGet: Gets information about multiple access bindings to an +// account or property. +// +// - parent: The account or property that owns the access bindings. The +// parent of all provided values for the 'names' field must match this +// field. Formats: - accounts/{account} - properties/{property}. +func (r *PropertiesAccessBindingsService) BatchGet(parent string) *PropertiesAccessBindingsBatchGetCall { + c := &PropertiesAccessBindingsBatchGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } -// ShowDeleted sets the optional parameter "showDeleted": Whether to -// include soft-deleted (ie: "trashed") Properties in the results. -// Properties can be inspected to determine whether they are deleted or -// not. -func (c *PropertiesListCall) ShowDeleted(showDeleted bool) *PropertiesListCall { - c.urlParams_.Set("showDeleted", fmt.Sprint(showDeleted)) +// Names sets the optional parameter "names": Required. The names of the +// access bindings to retrieve. A maximum of 1000 access bindings can be +// retrieved in a batch. Formats: - +// accounts/{account}/accessBindings/{accessBinding} - +// properties/{property}/accessBindings/{accessBinding} +func (c *PropertiesAccessBindingsBatchGetCall) Names(names ...string) *PropertiesAccessBindingsBatchGetCall { + c.urlParams_.SetMulti("names", append([]string{}, names...)) 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 *PropertiesListCall) Fields(s ...googleapi.Field) *PropertiesListCall { +func (c *PropertiesAccessBindingsBatchGetCall) Fields(s ...googleapi.Field) *PropertiesAccessBindingsBatchGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -9502,7 +12716,7 @@ func (c *PropertiesListCall) Fields(s ...googleapi.Field) *PropertiesListCall { // 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 *PropertiesListCall) IfNoneMatch(entityTag string) *PropertiesListCall { +func (c *PropertiesAccessBindingsBatchGetCall) IfNoneMatch(entityTag string) *PropertiesAccessBindingsBatchGetCall { c.ifNoneMatch_ = entityTag return c } @@ -9510,21 +12724,21 @@ func (c *PropertiesListCall) IfNoneMatch(entityTag string) *PropertiesListCall { // 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 *PropertiesListCall) Context(ctx context.Context) *PropertiesListCall { +func (c *PropertiesAccessBindingsBatchGetCall) Context(ctx context.Context) *PropertiesAccessBindingsBatchGetCall { 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 *PropertiesListCall) Header() http.Header { +func (c *PropertiesAccessBindingsBatchGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PropertiesListCall) doRequest(alt string) (*http.Response, error) { +func (c *PropertiesAccessBindingsBatchGetCall) 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_ { @@ -9537,26 +12751,30 @@ func (c *PropertiesListCall) 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, "v1alpha/properties") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/accessBindings:batchGet") 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 "analyticsadmin.properties.list" call. -// Exactly one of *GoogleAnalyticsAdminV1alphaListPropertiesResponse or -// error will be non-nil. Any non-2xx status code is an error. Response +// Do executes the "analyticsadmin.properties.accessBindings.batchGet" call. +// Exactly one of +// *GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleAnalyticsAdminV1alphaListPropertiesResponse.ServerResponse.Head -// er or (if a response was returned at all) in +// *GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse.ServerRespo +// nse.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 *PropertiesListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListPropertiesResponse, error) { +func (c *PropertiesAccessBindingsBatchGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9575,7 +12793,7 @@ func (c *PropertiesListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsA if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaListPropertiesResponse{ + ret := &GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9587,103 +12805,69 @@ func (c *PropertiesListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsA } return ret, nil // { - // "description": "Returns child Properties under the specified parent Account. Only \"GA4\" properties will be returned. Properties will be excluded if the caller does not have access. Soft-deleted (ie: \"trashed\") properties are excluded by default. Returns an empty list if no relevant properties are found.", - // "flatPath": "v1alpha/properties", + // "description": "Gets information about multiple access bindings to an account or property.", + // "flatPath": "v1alpha/properties/{propertiesId}/accessBindings:batchGet", // "httpMethod": "GET", - // "id": "analyticsadmin.properties.list", - // "parameterOrder": [], + // "id": "analyticsadmin.properties.accessBindings.batchGet", + // "parameterOrder": [ + // "parent" + // ], // "parameters": { - // "filter": { - // "description": "Required. An expression for filtering the results of the request. Fields eligible for filtering are: `parent:`(The resource name of the parent account/property) or `ancestor:`(The resource name of the parent account) or `firebase_project:`(The id or number of the linked firebase project). Some examples of filters: ``` | Filter | Description | |-----------------------------|-------------------------------------------| | parent:accounts/123 | The account with account id: 123. | | parent:properties/123 | The property with property id: 123. | | ancestor:accounts/123 | The account with account id: 123. | | firebase_project:project-id | The firebase project with id: project-id. | | firebase_project:123 | The firebase project with number: 123. | ```", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be returned. The maximum value is 200; (higher values will be coerced to the maximum)", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous `ListProperties` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListProperties` must match the call that provided the page token.", + // "names": { + // "description": "Required. The names of the access bindings to retrieve. A maximum of 1000 access bindings can be retrieved in a batch. Formats: - accounts/{account}/accessBindings/{accessBinding} - properties/{property}/accessBindings/{accessBinding}", // "location": "query", + // "repeated": true, // "type": "string" // }, - // "showDeleted": { - // "description": "Whether to include soft-deleted (ie: \"trashed\") Properties in the results. Properties can be inspected to determine whether they are deleted or not.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "v1alpha/properties", - // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaListPropertiesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/analytics.edit", - // "https://www.googleapis.com/auth/analytics.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 *PropertiesListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListPropertiesResponse) 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) - } + // "parent": { + // "description": "Required. The account or property that owns the access bindings. The parent of all provided values for the 'names' field must match this field. Formats: - accounts/{account} - properties/{property}", + // "location": "path", + // "pattern": "^properties/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/accessBindings:batchGet", + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.manage.users", + // "https://www.googleapis.com/auth/analytics.manage.users.readonly" + // ] + // } + } -// method id "analyticsadmin.properties.patch": +// method id "analyticsadmin.properties.accessBindings.batchUpdate": -type PropertiesPatchCall struct { - s *Service - name string - googleanalyticsadminv1alphaproperty *GoogleAnalyticsAdminV1alphaProperty - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type PropertiesAccessBindingsBatchUpdateCall struct { + s *Service + parent string + googleanalyticsadminv1alphabatchupdateaccessbindingsrequest *GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates a property. +// BatchUpdate: Updates information about multiple access bindings to an +// account or property. // -// - name: Output only. Resource name of this property. Format: -// properties/{property_id} Example: "properties/1000". -func (r *PropertiesService) Patch(name string, googleanalyticsadminv1alphaproperty *GoogleAnalyticsAdminV1alphaProperty) *PropertiesPatchCall { - c := &PropertiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googleanalyticsadminv1alphaproperty = googleanalyticsadminv1alphaproperty - return c -} - -// UpdateMask sets the optional parameter "updateMask": Required. The -// list of fields to be updated. Field names must be in snake case -// (e.g., "field_to_update"). Omitted fields will not be updated. To -// replace the entire entity, use one path with the string "*" to match -// all fields. -func (c *PropertiesPatchCall) UpdateMask(updateMask string) *PropertiesPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// - parent: The account or property that owns the access bindings. The +// parent field in the UpdateAccessBindingRequest messages must either +// be empty or match this field. Formats: - accounts/{account} - +// properties/{property}. +func (r *PropertiesAccessBindingsService) BatchUpdate(parent string, googleanalyticsadminv1alphabatchupdateaccessbindingsrequest *GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest) *PropertiesAccessBindingsBatchUpdateCall { + c := &PropertiesAccessBindingsBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleanalyticsadminv1alphabatchupdateaccessbindingsrequest = googleanalyticsadminv1alphabatchupdateaccessbindingsrequest 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 *PropertiesPatchCall) Fields(s ...googleapi.Field) *PropertiesPatchCall { +func (c *PropertiesAccessBindingsBatchUpdateCall) Fields(s ...googleapi.Field) *PropertiesAccessBindingsBatchUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -9691,21 +12875,21 @@ func (c *PropertiesPatchCall) Fields(s ...googleapi.Field) *PropertiesPatchCall // 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 *PropertiesPatchCall) Context(ctx context.Context) *PropertiesPatchCall { +func (c *PropertiesAccessBindingsBatchUpdateCall) Context(ctx context.Context) *PropertiesAccessBindingsBatchUpdateCall { 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 *PropertiesPatchCall) Header() http.Header { +func (c *PropertiesAccessBindingsBatchUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PropertiesPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *PropertiesAccessBindingsBatchUpdateCall) 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_ { @@ -9713,35 +12897,37 @@ func (c *PropertiesPatchCall) doRequest(alt string) (*http.Response, error) { } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaproperty) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphabatchupdateaccessbindingsrequest) 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, "v1alpha/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/accessBindings:batchUpdate") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.properties.patch" call. -// Exactly one of *GoogleAnalyticsAdminV1alphaProperty or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleAnalyticsAdminV1alphaProperty.ServerResponse.Header or -// (if a response was returned at all) in +// Do executes the "analyticsadmin.properties.accessBindings.batchUpdate" call. +// Exactly one of +// *GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse.ServerRe +// sponse.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 *PropertiesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaProperty, error) { +func (c *PropertiesAccessBindingsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9760,7 +12946,7 @@ func (c *PropertiesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalytics if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaProperty{ + ret := &GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9772,80 +12958,61 @@ func (c *PropertiesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalytics } return ret, nil // { - // "description": "Updates a property.", - // "flatPath": "v1alpha/properties/{propertiesId}", - // "httpMethod": "PATCH", - // "id": "analyticsadmin.properties.patch", + // "description": "Updates information about multiple access bindings to an account or property.", + // "flatPath": "v1alpha/properties/{propertiesId}/accessBindings:batchUpdate", + // "httpMethod": "POST", + // "id": "analyticsadmin.properties.accessBindings.batchUpdate", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Output only. Resource name of this property. Format: properties/{property_id} Example: \"properties/1000\"", + // "parent": { + // "description": "Required. The account or property that owns the access bindings. The parent field in the UpdateAccessBindingRequest messages must either be empty or match this field. Formats: - accounts/{account} - properties/{property}", // "location": "path", // "pattern": "^properties/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "Required. The list of fields to be updated. Field names must be in snake case (e.g., \"field_to_update\"). Omitted fields will not be updated. To replace the entire entity, use one path with the string \"*\" to match all fields.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1alpha/{+name}", + // "path": "v1alpha/{+parent}/accessBindings:batchUpdate", // "request": { - // "$ref": "GoogleAnalyticsAdminV1alphaProperty" + // "$ref": "GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest" // }, // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaProperty" + // "$ref": "GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/analytics.edit" + // "https://www.googleapis.com/auth/analytics.manage.users" // ] // } } -// method id "analyticsadmin.properties.runAccessReport": +// method id "analyticsadmin.properties.accessBindings.create": -type PropertiesRunAccessReportCall struct { - s *Service - entity string - googleanalyticsadminv1alpharunaccessreportrequest *GoogleAnalyticsAdminV1alphaRunAccessReportRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type PropertiesAccessBindingsCreateCall struct { + s *Service + parent string + googleanalyticsadminv1alphaaccessbinding *GoogleAnalyticsAdminV1alphaAccessBinding + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// RunAccessReport: Returns a customized report of data access records. -// The report provides records of each time a user reads Google -// Analytics reporting data. Access records are retained for up to 2 -// years. Data Access Reports can be requested for a property. The -// property must be in Google Analytics 360. This method is only -// available to Administrators. These data access records include GA4 UI -// Reporting, GA4 UI Explorations, GA4 Data API, and other products like -// Firebase & Admob that can retrieve data from Google Analytics through -// a linkage. These records don't include property configuration changes -// like adding a stream or changing a property's time zone. For -// configuration change history, see searchChangeHistoryEvents -// (https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). +// Create: Creates an access binding on an account or property. // -// - entity: The Data Access Report is requested for this property. For -// example if "123" is your GA4 property ID, then entity should be -// "properties/123". -func (r *PropertiesService) RunAccessReport(entity string, googleanalyticsadminv1alpharunaccessreportrequest *GoogleAnalyticsAdminV1alphaRunAccessReportRequest) *PropertiesRunAccessReportCall { - c := &PropertiesRunAccessReportCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.entity = entity - c.googleanalyticsadminv1alpharunaccessreportrequest = googleanalyticsadminv1alpharunaccessreportrequest +// - parent: Formats: - accounts/{account} - properties/{property}. +func (r *PropertiesAccessBindingsService) Create(parent string, googleanalyticsadminv1alphaaccessbinding *GoogleAnalyticsAdminV1alphaAccessBinding) *PropertiesAccessBindingsCreateCall { + c := &PropertiesAccessBindingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleanalyticsadminv1alphaaccessbinding = googleanalyticsadminv1alphaaccessbinding 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 *PropertiesRunAccessReportCall) Fields(s ...googleapi.Field) *PropertiesRunAccessReportCall { +func (c *PropertiesAccessBindingsCreateCall) Fields(s ...googleapi.Field) *PropertiesAccessBindingsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -9853,21 +13020,21 @@ func (c *PropertiesRunAccessReportCall) Fields(s ...googleapi.Field) *Properties // 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 *PropertiesRunAccessReportCall) Context(ctx context.Context) *PropertiesRunAccessReportCall { +func (c *PropertiesAccessBindingsCreateCall) Context(ctx context.Context) *PropertiesAccessBindingsCreateCall { 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 *PropertiesRunAccessReportCall) Header() http.Header { +func (c *PropertiesAccessBindingsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PropertiesRunAccessReportCall) doRequest(alt string) (*http.Response, error) { +func (c *PropertiesAccessBindingsCreateCall) 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_ { @@ -9875,14 +13042,14 @@ func (c *PropertiesRunAccessReportCall) doRequest(alt string) (*http.Response, e } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alpharunaccessreportrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaaccessbinding) 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, "v1alpha/{+entity}:runAccessReport") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/accessBindings") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -9890,21 +13057,21 @@ func (c *PropertiesRunAccessReportCall) doRequest(alt string) (*http.Response, e } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "entity": c.entity, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.properties.runAccessReport" call. -// Exactly one of *GoogleAnalyticsAdminV1alphaRunAccessReportResponse or -// error will be non-nil. Any non-2xx status code is an error. Response +// Do executes the "analyticsadmin.properties.accessBindings.create" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaAccessBinding or error +// will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleAnalyticsAdminV1alphaRunAccessReportResponse.ServerResponse.Hea -// der or (if a response was returned at all) in +// *GoogleAnalyticsAdminV1alphaAccessBinding.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 *PropertiesRunAccessReportCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaRunAccessReportResponse, error) { +func (c *PropertiesAccessBindingsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAccessBinding, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9923,7 +13090,7 @@ func (c *PropertiesRunAccessReportCall) Do(opts ...googleapi.CallOption) (*Googl if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaRunAccessReportResponse{ + ret := &GoogleAnalyticsAdminV1alphaAccessBinding{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9935,60 +13102,60 @@ func (c *PropertiesRunAccessReportCall) Do(opts ...googleapi.CallOption) (*Googl } return ret, nil // { - // "description": "Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years. Data Access Reports can be requested for a property. The property must be in Google Analytics 360. This method is only available to Administrators. These data access records include GA4 UI Reporting, GA4 UI Explorations, GA4 Data API, and other products like Firebase \u0026 Admob that can retrieve data from Google Analytics through a linkage. These records don't include property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).", - // "flatPath": "v1alpha/properties/{propertiesId}:runAccessReport", + // "description": "Creates an access binding on an account or property.", + // "flatPath": "v1alpha/properties/{propertiesId}/accessBindings", // "httpMethod": "POST", - // "id": "analyticsadmin.properties.runAccessReport", + // "id": "analyticsadmin.properties.accessBindings.create", // "parameterOrder": [ - // "entity" + // "parent" // ], // "parameters": { - // "entity": { - // "description": "The Data Access Report is requested for this property. For example if \"123\" is your GA4 property ID, then entity should be \"properties/123\".", + // "parent": { + // "description": "Required. Formats: - accounts/{account} - properties/{property}", // "location": "path", // "pattern": "^properties/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+entity}:runAccessReport", + // "path": "v1alpha/{+parent}/accessBindings", // "request": { - // "$ref": "GoogleAnalyticsAdminV1alphaRunAccessReportRequest" + // "$ref": "GoogleAnalyticsAdminV1alphaAccessBinding" // }, // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaRunAccessReportResponse" + // "$ref": "GoogleAnalyticsAdminV1alphaAccessBinding" // }, // "scopes": [ - // "https://www.googleapis.com/auth/analytics.edit", - // "https://www.googleapis.com/auth/analytics.readonly" + // "https://www.googleapis.com/auth/analytics.manage.users" // ] // } } -// method id "analyticsadmin.properties.setAutomatedGa4ConfigurationOptOut": +// method id "analyticsadmin.properties.accessBindings.delete": -type PropertiesSetAutomatedGa4ConfigurationOptOutCall struct { - s *Service - googleanalyticsadminv1alphasetautomatedga4configurationoptoutrequest *GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type PropertiesAccessBindingsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// SetAutomatedGa4ConfigurationOptOut: Sets the opt out status for the -// automated GA4 setup process for a UA property. Note: this has no -// effect on GA4 property. -func (r *PropertiesService) SetAutomatedGa4ConfigurationOptOut(googleanalyticsadminv1alphasetautomatedga4configurationoptoutrequest *GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest) *PropertiesSetAutomatedGa4ConfigurationOptOutCall { - c := &PropertiesSetAutomatedGa4ConfigurationOptOutCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.googleanalyticsadminv1alphasetautomatedga4configurationoptoutrequest = googleanalyticsadminv1alphasetautomatedga4configurationoptoutrequest +// Delete: Deletes an access binding on an account or property. +// +// - name: Formats: - accounts/{account}/accessBindings/{accessBinding} +// - properties/{property}/accessBindings/{accessBinding}. +func (r *PropertiesAccessBindingsService) Delete(name string) *PropertiesAccessBindingsDeleteCall { + c := &PropertiesAccessBindingsDeleteCall{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 *PropertiesSetAutomatedGa4ConfigurationOptOutCall) Fields(s ...googleapi.Field) *PropertiesSetAutomatedGa4ConfigurationOptOutCall { +func (c *PropertiesAccessBindingsDeleteCall) Fields(s ...googleapi.Field) *PropertiesAccessBindingsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -9996,21 +13163,21 @@ func (c *PropertiesSetAutomatedGa4ConfigurationOptOutCall) Fields(s ...googleapi // 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 *PropertiesSetAutomatedGa4ConfigurationOptOutCall) Context(ctx context.Context) *PropertiesSetAutomatedGa4ConfigurationOptOutCall { +func (c *PropertiesAccessBindingsDeleteCall) Context(ctx context.Context) *PropertiesAccessBindingsDeleteCall { 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 *PropertiesSetAutomatedGa4ConfigurationOptOutCall) Header() http.Header { +func (c *PropertiesAccessBindingsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PropertiesSetAutomatedGa4ConfigurationOptOutCall) doRequest(alt string) (*http.Response, error) { +func (c *PropertiesAccessBindingsDeleteCall) 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_ { @@ -10018,36 +13185,29 @@ func (c *PropertiesSetAutomatedGa4ConfigurationOptOutCall) doRequest(alt string) } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphasetautomatedga4configurationoptoutrequest) - 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, "v1alpha/properties:setAutomatedGa4ConfigurationOptOut") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", 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 "analyticsadmin.properties.setAutomatedGa4ConfigurationOptOut" call. -// Exactly one of -// *GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse -// -// or error will be non-nil. Any non-2xx status code is an error. -// -// Response headers are in either -// *GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse -// .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 *PropertiesSetAutomatedGa4ConfigurationOptOutCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse, error) { +// Do executes the "analyticsadmin.properties.accessBindings.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *PropertiesAccessBindingsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10066,7 +13226,7 @@ func (c *PropertiesSetAutomatedGa4ConfigurationOptOutCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10078,103 +13238,106 @@ func (c *PropertiesSetAutomatedGa4ConfigurationOptOutCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Sets the opt out status for the automated GA4 setup process for a UA property. Note: this has no effect on GA4 property.", - // "flatPath": "v1alpha/properties:setAutomatedGa4ConfigurationOptOut", - // "httpMethod": "POST", - // "id": "analyticsadmin.properties.setAutomatedGa4ConfigurationOptOut", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1alpha/properties:setAutomatedGa4ConfigurationOptOut", - // "request": { - // "$ref": "GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest" + // "description": "Deletes an access binding on an account or property.", + // "flatPath": "v1alpha/properties/{propertiesId}/accessBindings/{accessBindingsId}", + // "httpMethod": "DELETE", + // "id": "analyticsadmin.properties.accessBindings.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Formats: - accounts/{account}/accessBindings/{accessBinding} - properties/{property}/accessBindings/{accessBinding}", + // "location": "path", + // "pattern": "^properties/[^/]+/accessBindings/[^/]+$", + // "required": true, + // "type": "string" + // } // }, + // "path": "v1alpha/{+name}", // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ - // "https://www.googleapis.com/auth/analytics.edit" + // "https://www.googleapis.com/auth/analytics.manage.users" // ] // } } -// method id "analyticsadmin.properties.updateAttributionSettings": - -type PropertiesUpdateAttributionSettingsCall struct { - s *Service - name string - googleanalyticsadminv1alphaattributionsettings *GoogleAnalyticsAdminV1alphaAttributionSettings - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} +// method id "analyticsadmin.properties.accessBindings.get": -// UpdateAttributionSettings: Updates attribution settings on a -// property. -// -// - name: Output only. Resource name of this attribution settings -// resource. Format: properties/{property_id}/attributionSettings -// Example: "properties/1000/attributionSettings". -func (r *PropertiesService) UpdateAttributionSettings(name string, googleanalyticsadminv1alphaattributionsettings *GoogleAnalyticsAdminV1alphaAttributionSettings) *PropertiesUpdateAttributionSettingsCall { - c := &PropertiesUpdateAttributionSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googleanalyticsadminv1alphaattributionsettings = googleanalyticsadminv1alphaattributionsettings - return c +type PropertiesAccessBindingsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// UpdateMask sets the optional parameter "updateMask": Required. The -// list of fields to be updated. Field names must be in snake case -// (e.g., "field_to_update"). Omitted fields will not be updated. To -// replace the entire entity, use one path with the string "*" to match -// all fields. -func (c *PropertiesUpdateAttributionSettingsCall) UpdateMask(updateMask string) *PropertiesUpdateAttributionSettingsCall { - c.urlParams_.Set("updateMask", updateMask) +// Get: Gets information about an access binding. +// +// - name: The name of the access binding to retrieve. Formats: - +// accounts/{account}/accessBindings/{accessBinding} - +// properties/{property}/accessBindings/{accessBinding}. +func (r *PropertiesAccessBindingsService) Get(name string) *PropertiesAccessBindingsGetCall { + c := &PropertiesAccessBindingsGetCall{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 *PropertiesUpdateAttributionSettingsCall) Fields(s ...googleapi.Field) *PropertiesUpdateAttributionSettingsCall { +func (c *PropertiesAccessBindingsGetCall) Fields(s ...googleapi.Field) *PropertiesAccessBindingsGetCall { 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 *PropertiesAccessBindingsGetCall) IfNoneMatch(entityTag string) *PropertiesAccessBindingsGetCall { + 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 *PropertiesUpdateAttributionSettingsCall) Context(ctx context.Context) *PropertiesUpdateAttributionSettingsCall { +func (c *PropertiesAccessBindingsGetCall) Context(ctx context.Context) *PropertiesAccessBindingsGetCall { 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 *PropertiesUpdateAttributionSettingsCall) Header() http.Header { +func (c *PropertiesAccessBindingsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PropertiesUpdateAttributionSettingsCall) doRequest(alt string) (*http.Response, error) { +func (c *PropertiesAccessBindingsGetCall) 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.googleanalyticsadminv1alphaattributionsettings) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -10185,16 +13348,16 @@ func (c *PropertiesUpdateAttributionSettingsCall) doRequest(alt string) (*http.R return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.properties.updateAttributionSettings" call. -// Exactly one of *GoogleAnalyticsAdminV1alphaAttributionSettings or -// error will be non-nil. Any non-2xx status code is an error. Response +// Do executes the "analyticsadmin.properties.accessBindings.get" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaAccessBinding or error +// will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleAnalyticsAdminV1alphaAttributionSettings.ServerResponse.Header -// or (if a response was returned at all) in +// *GoogleAnalyticsAdminV1alphaAccessBinding.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 *PropertiesUpdateAttributionSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAttributionSettings, error) { +func (c *PropertiesAccessBindingsGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAccessBinding, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10213,7 +13376,7 @@ func (c *PropertiesUpdateAttributionSettingsCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaAttributionSettings{ + ret := &GoogleAnalyticsAdminV1alphaAccessBinding{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10225,138 +13388,144 @@ func (c *PropertiesUpdateAttributionSettingsCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Updates attribution settings on a property.", - // "flatPath": "v1alpha/properties/{propertiesId}/attributionSettings", - // "httpMethod": "PATCH", - // "id": "analyticsadmin.properties.updateAttributionSettings", + // "description": "Gets information about an access binding.", + // "flatPath": "v1alpha/properties/{propertiesId}/accessBindings/{accessBindingsId}", + // "httpMethod": "GET", + // "id": "analyticsadmin.properties.accessBindings.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Output only. Resource name of this attribution settings resource. Format: properties/{property_id}/attributionSettings Example: \"properties/1000/attributionSettings\"", + // "description": "Required. The name of the access binding to retrieve. Formats: - accounts/{account}/accessBindings/{accessBinding} - properties/{property}/accessBindings/{accessBinding}", // "location": "path", - // "pattern": "^properties/[^/]+/attributionSettings$", + // "pattern": "^properties/[^/]+/accessBindings/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "Required. The list of fields to be updated. Field names must be in snake case (e.g., \"field_to_update\"). Omitted fields will not be updated. To replace the entire entity, use one path with the string \"*\" to match all fields.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, // "path": "v1alpha/{+name}", - // "request": { - // "$ref": "GoogleAnalyticsAdminV1alphaAttributionSettings" - // }, // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaAttributionSettings" + // "$ref": "GoogleAnalyticsAdminV1alphaAccessBinding" // }, // "scopes": [ - // "https://www.googleapis.com/auth/analytics.edit" + // "https://www.googleapis.com/auth/analytics.manage.users", + // "https://www.googleapis.com/auth/analytics.manage.users.readonly" // ] // } } -// method id "analyticsadmin.properties.updateDataRetentionSettings": +// method id "analyticsadmin.properties.accessBindings.list": -type PropertiesUpdateDataRetentionSettingsCall struct { - s *Service - name string - googleanalyticsadminv1alphadataretentionsettings *GoogleAnalyticsAdminV1alphaDataRetentionSettings - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type PropertiesAccessBindingsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// UpdateDataRetentionSettings: Updates the singleton data retention -// settings for this property. +// List: Lists all access bindings on an account or property. // -// - name: Output only. Resource name for this DataRetentionSetting -// resource. Format: properties/{property}/dataRetentionSettings. -func (r *PropertiesService) UpdateDataRetentionSettings(name string, googleanalyticsadminv1alphadataretentionsettings *GoogleAnalyticsAdminV1alphaDataRetentionSettings) *PropertiesUpdateDataRetentionSettingsCall { - c := &PropertiesUpdateDataRetentionSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googleanalyticsadminv1alphadataretentionsettings = googleanalyticsadminv1alphadataretentionsettings +// - parent: Formats: - accounts/{account} - properties/{property}. +func (r *PropertiesAccessBindingsService) List(parent string) *PropertiesAccessBindingsListCall { + c := &PropertiesAccessBindingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } -// UpdateMask sets the optional parameter "updateMask": Required. The -// list of fields to be updated. Field names must be in snake case -// (e.g., "field_to_update"). Omitted fields will not be updated. To -// replace the entire entity, use one path with the string "*" to match -// all fields. -func (c *PropertiesUpdateDataRetentionSettingsCall) UpdateMask(updateMask string) *PropertiesUpdateDataRetentionSettingsCall { - c.urlParams_.Set("updateMask", updateMask) +// PageSize sets the optional parameter "pageSize": The maximum number +// of access bindings to return. The service may return fewer than this +// value. If unspecified, at most 200 access bindings will be returned. +// The maximum value is 500; values above 500 will be coerced to 500. +func (c *PropertiesAccessBindingsListCall) PageSize(pageSize int64) *PropertiesAccessBindingsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListAccessBindings` call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// provided to `ListAccessBindings` must match the call that provided +// the page token. +func (c *PropertiesAccessBindingsListCall) PageToken(pageToken string) *PropertiesAccessBindingsListCall { + 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 *PropertiesUpdateDataRetentionSettingsCall) Fields(s ...googleapi.Field) *PropertiesUpdateDataRetentionSettingsCall { +func (c *PropertiesAccessBindingsListCall) Fields(s ...googleapi.Field) *PropertiesAccessBindingsListCall { 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 *PropertiesAccessBindingsListCall) IfNoneMatch(entityTag string) *PropertiesAccessBindingsListCall { + 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 *PropertiesUpdateDataRetentionSettingsCall) Context(ctx context.Context) *PropertiesUpdateDataRetentionSettingsCall { +func (c *PropertiesAccessBindingsListCall) Context(ctx context.Context) *PropertiesAccessBindingsListCall { 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 *PropertiesUpdateDataRetentionSettingsCall) Header() http.Header { +func (c *PropertiesAccessBindingsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PropertiesUpdateDataRetentionSettingsCall) doRequest(alt string) (*http.Response, error) { +func (c *PropertiesAccessBindingsListCall) 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.googleanalyticsadminv1alphadataretentionsettings) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/accessBindings") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + 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, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.properties.updateDataRetentionSettings" call. -// Exactly one of *GoogleAnalyticsAdminV1alphaDataRetentionSettings or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleAnalyticsAdminV1alphaDataRetentionSettings.ServerResponse.Heade -// r or (if a response was returned at all) in +// Do executes the "analyticsadmin.properties.accessBindings.list" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaListAccessBindingsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleAnalyticsAdminV1alphaListAccessBindingsResponse.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 *PropertiesUpdateDataRetentionSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaDataRetentionSettings, error) { +func (c *PropertiesAccessBindingsListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListAccessBindingsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10375,7 +13544,7 @@ func (c *PropertiesUpdateDataRetentionSettingsCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaDataRetentionSettings{ + ret := &GoogleAnalyticsAdminV1alphaListAccessBindingsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10387,80 +13556,94 @@ func (c *PropertiesUpdateDataRetentionSettingsCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Updates the singleton data retention settings for this property.", - // "flatPath": "v1alpha/properties/{propertiesId}/dataRetentionSettings", - // "httpMethod": "PATCH", - // "id": "analyticsadmin.properties.updateDataRetentionSettings", + // "description": "Lists all access bindings on an account or property.", + // "flatPath": "v1alpha/properties/{propertiesId}/accessBindings", + // "httpMethod": "GET", + // "id": "analyticsadmin.properties.accessBindings.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Output only. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings", - // "location": "path", - // "pattern": "^properties/[^/]+/dataRetentionSettings$", - // "required": true, - // "type": "string" + // "pageSize": { + // "description": "The maximum number of access bindings to return. The service may return fewer than this value. If unspecified, at most 200 access bindings will be returned. The maximum value is 500; values above 500 will be coerced to 500.", + // "format": "int32", + // "location": "query", + // "type": "integer" // }, - // "updateMask": { - // "description": "Required. The list of fields to be updated. Field names must be in snake case (e.g., \"field_to_update\"). Omitted fields will not be updated. To replace the entire entity, use one path with the string \"*\" to match all fields.", - // "format": "google-fieldmask", + // "pageToken": { + // "description": "A page token, received from a previous `ListAccessBindings` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccessBindings` must match the call that provided the page token.", // "location": "query", // "type": "string" + // }, + // "parent": { + // "description": "Required. Formats: - accounts/{account} - properties/{property}", + // "location": "path", + // "pattern": "^properties/[^/]+$", + // "required": true, + // "type": "string" // } // }, - // "path": "v1alpha/{+name}", - // "request": { - // "$ref": "GoogleAnalyticsAdminV1alphaDataRetentionSettings" - // }, + // "path": "v1alpha/{+parent}/accessBindings", // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaDataRetentionSettings" + // "$ref": "GoogleAnalyticsAdminV1alphaListAccessBindingsResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/analytics.edit" + // "https://www.googleapis.com/auth/analytics.manage.users", + // "https://www.googleapis.com/auth/analytics.manage.users.readonly" // ] // } } -// method id "analyticsadmin.properties.updateGoogleSignalsSettings": +// 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 *PropertiesAccessBindingsListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListAccessBindingsResponse) 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) + } +} -type PropertiesUpdateGoogleSignalsSettingsCall struct { - s *Service - name string - googleanalyticsadminv1alphagooglesignalssettings *GoogleAnalyticsAdminV1alphaGoogleSignalsSettings - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "analyticsadmin.properties.accessBindings.patch": + +type PropertiesAccessBindingsPatchCall struct { + s *Service + name string + googleanalyticsadminv1alphaaccessbinding *GoogleAnalyticsAdminV1alphaAccessBinding + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// UpdateGoogleSignalsSettings: Updates Google Signals settings for a -// property. +// Patch: Updates an access binding on an account or property. // -// - name: Output only. Resource name of this setting. Format: -// properties/{property_id}/googleSignalsSettings Example: -// "properties/1000/googleSignalsSettings". -func (r *PropertiesService) UpdateGoogleSignalsSettings(name string, googleanalyticsadminv1alphagooglesignalssettings *GoogleAnalyticsAdminV1alphaGoogleSignalsSettings) *PropertiesUpdateGoogleSignalsSettingsCall { - c := &PropertiesUpdateGoogleSignalsSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Output only. Resource name of this binding. Format: +// accounts/{account}/accessBindings/{access_binding} or +// properties/{property}/accessBindings/{access_binding} Example: +// "accounts/100/accessBindings/200". +func (r *PropertiesAccessBindingsService) Patch(name string, googleanalyticsadminv1alphaaccessbinding *GoogleAnalyticsAdminV1alphaAccessBinding) *PropertiesAccessBindingsPatchCall { + c := &PropertiesAccessBindingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googleanalyticsadminv1alphagooglesignalssettings = googleanalyticsadminv1alphagooglesignalssettings - return c -} - -// UpdateMask sets the optional parameter "updateMask": Required. The -// list of fields to be updated. Field names must be in snake case -// (e.g., "field_to_update"). Omitted fields will not be updated. To -// replace the entire entity, use one path with the string "*" to match -// all fields. -func (c *PropertiesUpdateGoogleSignalsSettingsCall) UpdateMask(updateMask string) *PropertiesUpdateGoogleSignalsSettingsCall { - c.urlParams_.Set("updateMask", updateMask) + c.googleanalyticsadminv1alphaaccessbinding = googleanalyticsadminv1alphaaccessbinding 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 *PropertiesUpdateGoogleSignalsSettingsCall) Fields(s ...googleapi.Field) *PropertiesUpdateGoogleSignalsSettingsCall { +func (c *PropertiesAccessBindingsPatchCall) Fields(s ...googleapi.Field) *PropertiesAccessBindingsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -10468,21 +13651,21 @@ func (c *PropertiesUpdateGoogleSignalsSettingsCall) Fields(s ...googleapi.Field) // 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 *PropertiesUpdateGoogleSignalsSettingsCall) Context(ctx context.Context) *PropertiesUpdateGoogleSignalsSettingsCall { +func (c *PropertiesAccessBindingsPatchCall) Context(ctx context.Context) *PropertiesAccessBindingsPatchCall { 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 *PropertiesUpdateGoogleSignalsSettingsCall) Header() http.Header { +func (c *PropertiesAccessBindingsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PropertiesUpdateGoogleSignalsSettingsCall) doRequest(alt string) (*http.Response, error) { +func (c *PropertiesAccessBindingsPatchCall) 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_ { @@ -10490,7 +13673,7 @@ func (c *PropertiesUpdateGoogleSignalsSettingsCall) doRequest(alt string) (*http } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphagooglesignalssettings) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaaccessbinding) if err != nil { return nil, err } @@ -10510,16 +13693,16 @@ func (c *PropertiesUpdateGoogleSignalsSettingsCall) doRequest(alt string) (*http return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.properties.updateGoogleSignalsSettings" call. -// Exactly one of *GoogleAnalyticsAdminV1alphaGoogleSignalsSettings or -// error will be non-nil. Any non-2xx status code is an error. Response +// Do executes the "analyticsadmin.properties.accessBindings.patch" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaAccessBinding or error +// will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleAnalyticsAdminV1alphaGoogleSignalsSettings.ServerResponse.Heade -// r or (if a response was returned at all) in +// *GoogleAnalyticsAdminV1alphaAccessBinding.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 *PropertiesUpdateGoogleSignalsSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaGoogleSignalsSettings, error) { +func (c *PropertiesAccessBindingsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAccessBinding, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10538,7 +13721,7 @@ func (c *PropertiesUpdateGoogleSignalsSettingsCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaGoogleSignalsSettings{ + ret := &GoogleAnalyticsAdminV1alphaAccessBinding{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10550,37 +13733,31 @@ func (c *PropertiesUpdateGoogleSignalsSettingsCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Updates Google Signals settings for a property.", - // "flatPath": "v1alpha/properties/{propertiesId}/googleSignalsSettings", + // "description": "Updates an access binding on an account or property.", + // "flatPath": "v1alpha/properties/{propertiesId}/accessBindings/{accessBindingsId}", // "httpMethod": "PATCH", - // "id": "analyticsadmin.properties.updateGoogleSignalsSettings", + // "id": "analyticsadmin.properties.accessBindings.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Output only. Resource name of this setting. Format: properties/{property_id}/googleSignalsSettings Example: \"properties/1000/googleSignalsSettings\"", + // "description": "Output only. Resource name of this binding. Format: accounts/{account}/accessBindings/{access_binding} or properties/{property}/accessBindings/{access_binding} Example: \"accounts/100/accessBindings/200\"", // "location": "path", - // "pattern": "^properties/[^/]+/googleSignalsSettings$", + // "pattern": "^properties/[^/]+/accessBindings/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "Required. The list of fields to be updated. Field names must be in snake case (e.g., \"field_to_update\"). Omitted fields will not be updated. To replace the entire entity, use one path with the string \"*\" to match all fields.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, // "path": "v1alpha/{+name}", // "request": { - // "$ref": "GoogleAnalyticsAdminV1alphaGoogleSignalsSettings" + // "$ref": "GoogleAnalyticsAdminV1alphaAccessBinding" // }, // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaGoogleSignalsSettings" + // "$ref": "GoogleAnalyticsAdminV1alphaAccessBinding" // }, // "scopes": [ - // "https://www.googleapis.com/auth/analytics.edit" + // "https://www.googleapis.com/auth/analytics.manage.users" // ] // } diff --git a/androidpublisher/v3/androidpublisher-api.json b/androidpublisher/v3/androidpublisher-api.json index 4c1b8073c41..8a3b1444275 100644 --- a/androidpublisher/v3/androidpublisher-api.json +++ b/androidpublisher/v3/androidpublisher-api.json @@ -3920,7 +3920,7 @@ } } }, - "revision": "20230123", + "revision": "20230209", "rootUrl": "https://androidpublisher.googleapis.com/", "schemas": { "AcquisitionTargetingRule": { @@ -4646,6 +4646,13 @@ "deviceTierSet": { "$ref": "DeviceTierSet", "description": "Definition of the set of device tiers for the app." + }, + "userCountrySets": { + "description": "Definition of user country sets for the app.", + "items": { + "$ref": "UserCountrySet" + }, + "type": "array" } }, "type": "object" @@ -6905,6 +6912,24 @@ }, "type": "object" }, + "UserCountrySet": { + "description": "A set of user countries. A country set determines what variation of app content gets served to a specific location.", + "id": "UserCountrySet", + "properties": { + "countryCodes": { + "description": "List of country codes representing countries. A Country code is represented in ISO 3166 alpha-2 format. For Example:- \"IT\" for Italy, \"GE\" for Georgia.", + "items": { + "type": "string" + }, + "type": "array" + }, + "name": { + "description": "Country set name.", + "type": "string" + } + }, + "type": "object" + }, "UserInitiatedCancellation": { "description": "Information specific to cancellations initiated by users.", "id": "UserInitiatedCancellation", diff --git a/androidpublisher/v3/androidpublisher-gen.go b/androidpublisher/v3/androidpublisher-gen.go index a9a59ddbce6..d3ed6e5e525 100644 --- a/androidpublisher/v3/androidpublisher-gen.go +++ b/androidpublisher/v3/androidpublisher-gen.go @@ -1765,6 +1765,9 @@ type DeviceTierConfig struct { // DeviceTierSet: Definition of the set of device tiers for the app. DeviceTierSet *DeviceTierSet `json:"deviceTierSet,omitempty"` + // UserCountrySets: Definition of user country sets for the app. + UserCountrySets []*UserCountrySet `json:"userCountrySets,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` @@ -5771,6 +5774,40 @@ func (s *UserComment) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// UserCountrySet: A set of user countries. A country set determines +// what variation of app content gets served to a specific location. +type UserCountrySet struct { + // CountryCodes: List of country codes representing countries. A Country + // code is represented in ISO 3166 alpha-2 format. For Example:- "IT" + // for Italy, "GE" for Georgia. + CountryCodes []string `json:"countryCodes,omitempty"` + + // Name: Country set name. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CountryCodes") 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. "CountryCodes") 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 *UserCountrySet) MarshalJSON() ([]byte, error) { + type NoMethod UserCountrySet + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // UserInitiatedCancellation: Information specific to cancellations // initiated by users. type UserInitiatedCancellation struct { diff --git a/api-list.json b/api-list.json index 89e5c15f656..ba6f049ba2b 100644 --- a/api-list.json +++ b/api-list.json @@ -5247,7 +5247,7 @@ "id": "sqladmin:v1beta4", "name": "sqladmin", "version": "v1beta4", - "title": "Cloud SQL Admin API", + "title": "sqladmin API (prod)", "description": "API for Cloud SQL database instance management", "discoveryRestUrl": "https://sqladmin.googleapis.com/$discovery/rest?version=v1beta4", "icons": { @@ -5262,7 +5262,7 @@ "id": "sqladmin:v1", "name": "sqladmin", "version": "v1", - "title": "Cloud SQL Admin API", + "title": "sqladmin API (prod)", "description": "API for Cloud SQL database instance management", "discoveryRestUrl": "https://sqladmin.googleapis.com/$discovery/rest?version=v1", "icons": { diff --git a/apigateway/v1beta/apigateway-api.json b/apigateway/v1beta/apigateway-api.json index 4263bf49930..8c98efc258e 100644 --- a/apigateway/v1beta/apigateway-api.json +++ b/apigateway/v1beta/apigateway-api.json @@ -1083,7 +1083,7 @@ } } }, - "revision": "20220908", + "revision": "20230125", "rootUrl": "https://apigateway.googleapis.com/", "schemas": { "ApigatewayApi": { @@ -1351,7 +1351,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/apigateway/v1beta/apigateway-gen.go b/apigateway/v1beta/apigateway-gen.go index 8cb512f42f2..5dd40798c21 100644 --- a/apigateway/v1beta/apigateway-gen.go +++ b/apigateway/v1beta/apigateway-gen.go @@ -639,7 +639,9 @@ type ApigatewayBinding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -656,9 +658,7 @@ type ApigatewayBinding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. diff --git a/apigee/v1/apigee-api.json b/apigee/v1/apigee-api.json index 83d79ad4d8c..0b40156cda5 100644 --- a/apigee/v1/apigee-api.json +++ b/apigee/v1/apigee-api.json @@ -3506,7 +3506,7 @@ ], "parameters": { "name": { - "description": "Optional. Name of the environment. Alternatively, the name may be specified in the request body in the name field.", + "description": "Optional. Name of the environment.", "location": "query", "type": "string" }, @@ -8674,7 +8674,7 @@ } } }, - "revision": "20230104", + "revision": "20230207", "rootUrl": "https://apigee.googleapis.com/", "schemas": { "EdgeConfigstoreBundleBadBundle": { @@ -14837,7 +14837,7 @@ "enumDescriptions": [ "UNSPECIFIED defaults to HTTP for backwards compatibility.", "The TargetServer uses HTTP.", - "The TargetServer uses GRPC." + "GRPC TargetServer to be used in ExternalCallout Policy. Prefer to use EXTERNAL_CALLOUT instead. TODO(b/266125112) deprecate once EXTERNAL _CALLOUT generally available." ], "type": "string" }, @@ -14878,7 +14878,7 @@ "enumDescriptions": [ "UNSPECIFIED defaults to HTTP for backwards compatibility.", "The TargetServer uses HTTP.", - "The TargetServer uses GRPC." + "GRPC TargetServer to be used in ExternalCallout Policy. Prefer to use EXTERNAL_CALLOUT instead. TODO(b/266125112) deprecate once EXTERNAL _CALLOUT generally available." ], "type": "string" }, @@ -15209,7 +15209,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/apigee/v1/apigee-gen.go b/apigee/v1/apigee-gen.go index 3c236e18a6a..c2d18770489 100644 --- a/apigee/v1/apigee-gen.go +++ b/apigee/v1/apigee-gen.go @@ -10732,7 +10732,9 @@ type GoogleCloudApigeeV1TargetServer struct { // "PROTOCOL_UNSPECIFIED" - UNSPECIFIED defaults to HTTP for backwards // compatibility. // "HTTP" - The TargetServer uses HTTP. - // "GRPC" - The TargetServer uses GRPC. + // "GRPC" - GRPC TargetServer to be used in ExternalCallout Policy. + // Prefer to use EXTERNAL_CALLOUT instead. TODO(b/266125112) deprecate + // once EXTERNAL _CALLOUT generally available. Protocol string `json:"protocol,omitempty"` // SSLInfo: Optional. Specifies TLS configuration info for this @@ -10790,7 +10792,9 @@ type GoogleCloudApigeeV1TargetServerConfig struct { // "PROTOCOL_UNSPECIFIED" - UNSPECIFIED defaults to HTTP for backwards // compatibility. // "HTTP" - The TargetServer uses HTTP. - // "GRPC" - The TargetServer uses GRPC. + // "GRPC" - GRPC TargetServer to be used in ExternalCallout Policy. + // Prefer to use EXTERNAL_CALLOUT instead. TODO(b/266125112) deprecate + // once EXTERNAL _CALLOUT generally available. Protocol string `json:"protocol,omitempty"` // TlsInfo: TLS settings for the target server. @@ -11423,7 +11427,9 @@ type GoogleIamV1Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -11440,9 +11446,7 @@ type GoogleIamV1Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. @@ -29333,8 +29337,6 @@ func (r *OrganizationsEnvironmentsService) Create(parent string, googlecloudapig } // Name sets the optional parameter "name": Name of the environment. -// Alternatively, the name may be specified in the request body in the -// name field. func (c *OrganizationsEnvironmentsCreateCall) Name(name string) *OrganizationsEnvironmentsCreateCall { c.urlParams_.Set("name", name) return c @@ -29440,7 +29442,7 @@ func (c *OrganizationsEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) ( // ], // "parameters": { // "name": { - // "description": "Optional. Name of the environment. Alternatively, the name may be specified in the request body in the name field.", + // "description": "Optional. Name of the environment.", // "location": "query", // "type": "string" // }, diff --git a/apigeeregistry/v1/apigeeregistry-api.json b/apigeeregistry/v1/apigeeregistry-api.json index 3a0d75ba8ab..9003ad9428b 100644 --- a/apigeeregistry/v1/apigeeregistry-api.json +++ b/apigeeregistry/v1/apigeeregistry-api.json @@ -3181,7 +3181,7 @@ } } }, - "revision": "20230118", + "revision": "20230127", "rootUrl": "https://apigeeregistry.googleapis.com/", "schemas": { "Api": { @@ -3516,7 +3516,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, @@ -3529,6 +3529,29 @@ }, "type": "object" }, + "Build": { + "description": "Build information of the Instance if it's in `ACTIVE` state.", + "id": "Build", + "properties": { + "commitId": { + "description": "Output only. Commit ID of the latest commit in the build.", + "readOnly": true, + "type": "string" + }, + "commitTime": { + "description": "Output only. Commit time of the latest commit in the build.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "repo": { + "description": "Output only. Path of the open source repository: github.com/apigee/registry.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "CancelOperationRequest": { "description": "The request message for Operations.CancelOperation.", "id": "CancelOperationRequest", @@ -3611,6 +3634,11 @@ "description": "An Instance represents the instance resources of the Registry. Currently, only one instance is allowed for each project.", "id": "Instance", "properties": { + "build": { + "$ref": "Build", + "description": "Output only. Build info of the Instance if it's in `ACTIVE` state.", + "readOnly": true + }, "config": { "$ref": "Config", "description": "Required. Config of the Instance." diff --git a/apigeeregistry/v1/apigeeregistry-gen.go b/apigeeregistry/v1/apigeeregistry-gen.go index ed043ca811f..88d2f4519a7 100644 --- a/apigeeregistry/v1/apigeeregistry-gen.go +++ b/apigeeregistry/v1/apigeeregistry-gen.go @@ -782,7 +782,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -799,9 +801,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. @@ -831,6 +831,42 @@ func (s *Binding) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Build: Build information of the Instance if it's in `ACTIVE` state. +type Build struct { + // CommitId: Output only. Commit ID of the latest commit in the build. + CommitId string `json:"commitId,omitempty"` + + // CommitTime: Output only. Commit time of the latest commit in the + // build. + CommitTime string `json:"commitTime,omitempty"` + + // Repo: Output only. Path of the open source repository: + // github.com/apigee/registry. + Repo string `json:"repo,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CommitId") 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. "CommitId") 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 *Build) MarshalJSON() ([]byte, error) { + type NoMethod Build + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CancelOperationRequest: The request message for // Operations.CancelOperation. type CancelOperationRequest struct { @@ -1001,6 +1037,10 @@ func (s *HttpBody) MarshalJSON() ([]byte, error) { // Instance: An Instance represents the instance resources of the // Registry. Currently, only one instance is allowed for each project. type Instance struct { + // Build: Output only. Build info of the Instance if it's in `ACTIVE` + // state. + Build *Build `json:"build,omitempty"` + // Config: Required. Config of the Instance. Config *Config `json:"config,omitempty"` @@ -1036,7 +1076,7 @@ type Instance struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Config") to + // ForceSendFields is a list of field names (e.g. "Build") 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 @@ -1044,7 +1084,7 @@ type Instance struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Config") to include in API + // NullFields is a list of field names (e.g. "Build") 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 diff --git a/appengine/v1/appengine-api.json b/appengine/v1/appengine-api.json index 3ff73294d52..6f22d6708c9 100644 --- a/appengine/v1/appengine-api.json +++ b/appengine/v1/appengine-api.json @@ -1647,7 +1647,7 @@ } } }, - "revision": "20230109", + "revision": "20230206", "rootUrl": "https://appengine.googleapis.com/", "schemas": { "ApiConfigHandler": { @@ -2329,6 +2329,21 @@ }, "type": "object" }, + "FlexibleRuntimeSettings": { + "description": "Runtime settings for the App Engine flexible environment.", + "id": "FlexibleRuntimeSettings", + "properties": { + "operatingSystem": { + "description": "The operating system of the application runtime.", + "type": "string" + }, + "runtimeVersion": { + "description": "The runtime version of an App Engine flexible application.", + "type": "string" + } + }, + "type": "object" + }, "GoogleAppengineV1betaLocationMetadata": { "description": "Metadata for the given google.cloud.location.Location.", "id": "GoogleAppengineV1betaLocationMetadata", @@ -3814,6 +3829,10 @@ }, "type": "array" }, + "flexibleRuntimeSettings": { + "$ref": "FlexibleRuntimeSettings", + "description": "Settings for App Engine flexible runtimes." + }, "handlers": { "description": "An ordered list of URL-matching patterns that should be applied to incoming requests. The first matching URL handles the request and other request handlers are not attempted.Only returned in GET requests if view=FULL is set.", "items": { diff --git a/appengine/v1/appengine-gen.go b/appengine/v1/appengine-gen.go index 98aac649752..b9edf4c4884 100644 --- a/appengine/v1/appengine-gen.go +++ b/appengine/v1/appengine-gen.go @@ -1539,6 +1539,40 @@ func (s *FirewallRule) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// FlexibleRuntimeSettings: Runtime settings for the App Engine flexible +// environment. +type FlexibleRuntimeSettings struct { + // OperatingSystem: The operating system of the application runtime. + OperatingSystem string `json:"operatingSystem,omitempty"` + + // RuntimeVersion: The runtime version of an App Engine flexible + // application. + RuntimeVersion string `json:"runtimeVersion,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OperatingSystem") 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. "OperatingSystem") 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 *FlexibleRuntimeSettings) MarshalJSON() ([]byte, error) { + type NoMethod FlexibleRuntimeSettings + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAppengineV1betaLocationMetadata: Metadata for the given // google.cloud.location.Location. type GoogleAppengineV1betaLocationMetadata struct { @@ -3883,6 +3917,9 @@ type Version struct { // page.Only returned in GET requests if view=FULL is set. ErrorHandlers []*ErrorHandler `json:"errorHandlers,omitempty"` + // FlexibleRuntimeSettings: Settings for App Engine flexible runtimes. + FlexibleRuntimeSettings *FlexibleRuntimeSettings `json:"flexibleRuntimeSettings,omitempty"` + // Handlers: An ordered list of URL-matching patterns that should be // applied to incoming requests. The first matching URL handles the // request and other request handlers are not attempted.Only returned in diff --git a/artifactregistry/v1/artifactregistry-api.json b/artifactregistry/v1/artifactregistry-api.json index b751de7125a..9352f46285a 100644 --- a/artifactregistry/v1/artifactregistry-api.json +++ b/artifactregistry/v1/artifactregistry-api.json @@ -200,6 +200,32 @@ "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, + "getVpcscConfig": { + "description": "Retrieves the VPCSC Config for the Project.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/vpcscConfig", + "httpMethod": "GET", + "id": "artifactregistry.projects.locations.getVpcscConfig", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the VPCSCConfig resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/vpcscConfig$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "VPCSCConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, "list": { "description": "Lists information about the supported locations for this service.", "flatPath": "v1/projects/{projectsId}/locations", @@ -241,6 +267,40 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only" ] + }, + "updateVpcscConfig": { + "description": "Updates the VPCSC Config for the Project.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/vpcscConfig", + "httpMethod": "PATCH", + "id": "artifactregistry.projects.locations.updateVpcscConfig", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the project's VPC SC Config. Always of the form: projects/{projectID}/locations/{location}/vpcscConfig In update request: never set In response: always set", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/vpcscConfig$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Field mask to support partial updates.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "VPCSCConfig" + }, + "response": { + "$ref": "VPCSCConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } }, "resources": { @@ -1457,7 +1517,7 @@ } } }, - "revision": "20221022", + "revision": "20230202", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "AptArtifact": { @@ -1531,7 +1591,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, @@ -1591,6 +1651,25 @@ }, "type": "object" }, + "DockerRepository": { + "description": "Configuration for a Docker remote repository.", + "id": "DockerRepository", + "properties": { + "publicRepository": { + "description": "One of the publicly available Docker repositories supported by Artifact Registry.", + "enum": [ + "PUBLIC_REPOSITORY_UNSPECIFIED", + "DOCKER_HUB" + ], + "enumDescriptions": [ + "Unspecified repository.", + "Docker Hub." + ], + "type": "string" + } + }, + "type": "object" + }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", @@ -1629,6 +1708,12 @@ "format": "google-datetime", "type": "string" }, + "fetchTime": { + "description": "Output only. The time when the last attempt to refresh the file's data was made. Only set when the repository is remote.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, "hashes": { "description": "The hashes of the file content.", "items": { @@ -2094,6 +2179,25 @@ }, "type": "object" }, + "MavenRepository": { + "description": "Configuration for a Maven remote repository.", + "id": "MavenRepository", + "properties": { + "publicRepository": { + "description": "One of the publicly available Maven repositories supported by Artifact Registry.", + "enum": [ + "PUBLIC_REPOSITORY_UNSPECIFIED", + "MAVEN_CENTRAL" + ], + "enumDescriptions": [ + "Unspecified repository.", + "Maven Central." + ], + "type": "string" + } + }, + "type": "object" + }, "MavenRepositoryConfig": { "description": "MavenRepositoryConfig is maven related repository details. Provides additional configuration details for repositories of the maven format type.", "id": "MavenRepositoryConfig", @@ -2157,6 +2261,25 @@ }, "type": "object" }, + "NpmRepository": { + "description": "Configuration for a Npm remote repository.", + "id": "NpmRepository", + "properties": { + "publicRepository": { + "description": "One of the publicly available Npm repositories supported by Artifact Registry.", + "enum": [ + "PUBLIC_REPOSITORY_UNSPECIFIED", + "NPMJS" + ], + "enumDescriptions": [ + "Unspecified repository.", + "npmjs." + ], + "type": "string" + } + }, + "type": "object" + }, "Operation": { "description": "This resource represents a long-running operation that is the result of a network API call.", "id": "Operation", @@ -2309,6 +2432,52 @@ }, "type": "object" }, + "PythonRepository": { + "description": "Configuration for a Python remote repository.", + "id": "PythonRepository", + "properties": { + "publicRepository": { + "description": "One of the publicly available Python repositories supported by Artifact Registry.", + "enum": [ + "PUBLIC_REPOSITORY_UNSPECIFIED", + "PYPI" + ], + "enumDescriptions": [ + "Unspecified repository.", + "PyPI." + ], + "type": "string" + } + }, + "type": "object" + }, + "RemoteRepositoryConfig": { + "description": "Remote repository configuration.", + "id": "RemoteRepositoryConfig", + "properties": { + "description": { + "description": "The description of the remote source.", + "type": "string" + }, + "dockerRepository": { + "$ref": "DockerRepository", + "description": "Specific settings for a Docker remote repository." + }, + "mavenRepository": { + "$ref": "MavenRepository", + "description": "Specific settings for a Maven remote repository." + }, + "npmRepository": { + "$ref": "NpmRepository", + "description": "Specific settings for an Npm remote repository." + }, + "pythonRepository": { + "$ref": "PythonRepository", + "description": "Specific settings for a Python remote repository." + } + }, + "type": "object" + }, "Repository": { "description": "A Repository for storing artifacts with a specific format.", "id": "Repository", @@ -2361,10 +2530,30 @@ "$ref": "MavenRepositoryConfig", "description": "Maven repository config contains repository level configuration for the repositories of maven type." }, + "mode": { + "description": "The mode of the repository.", + "enum": [ + "MODE_UNSPECIFIED", + "STANDARD_REPOSITORY", + "VIRTUAL_REPOSITORY", + "REMOTE_REPOSITORY" + ], + "enumDescriptions": [ + "Unspecified mode.", + "A standard repository storing artifacts.", + "A virtual repository to serve artifacts from one or more sources.", + "A remote repository to serve artifacts from a remote source." + ], + "type": "string" + }, "name": { "description": "The name of the repository, for example: \"projects/p1/locations/us-central1/repositories/repo1\".", "type": "string" }, + "remoteRepositoryConfig": { + "$ref": "RemoteRepositoryConfig", + "description": "Configuration specific for a Remote Repository." + }, "satisfiesPzs": { "description": "Output only. If set, the repository satisfies physical zone separation.", "readOnly": true, @@ -2380,6 +2569,10 @@ "description": "The time when the repository was last updated.", "format": "google-datetime", "type": "string" + }, + "virtualRepositoryConfig": { + "$ref": "VirtualRepositoryConfig", + "description": "Configuration specific for a Virtual Repository." } }, "type": "object" @@ -2574,6 +2767,51 @@ }, "type": "object" }, + "UpstreamPolicy": { + "description": "Artifact policy configuration for the repository contents.", + "id": "UpstreamPolicy", + "properties": { + "id": { + "description": "The user-provided ID of the upstream policy.", + "type": "string" + }, + "priority": { + "description": "Entries with a greater priority value take precedence in the pull order.", + "format": "int32", + "type": "integer" + }, + "repository": { + "description": "A reference to the repository resource, for example: \"projects/p1/locations/us-central1/repository/repo1\".", + "type": "string" + } + }, + "type": "object" + }, + "VPCSCConfig": { + "description": "The Artifact Registry VPC SC config that apply to a Project.", + "id": "VPCSCConfig", + "properties": { + "name": { + "description": "The name of the project's VPC SC Config. Always of the form: projects/{projectID}/locations/{location}/vpcscConfig In update request: never set In response: always set", + "type": "string" + }, + "vpcscPolicy": { + "description": "The project per location VPC SC policy that defines the VPC SC behavior for the Remote Repository (Allow/Deny).", + "enum": [ + "VPCSC_POLICY_UNSPECIFIED", + "DENY", + "ALLOW" + ], + "enumDescriptions": [ + "VPCSC_POLICY_UNSPECIFIED - the VPS SC policy is not defined. When VPS SC policy is not defined - the Service will use the default behavior (VPCSC_DENY).", + "VPCSC_DENY - repository will block the requests to the Upstreams for the Remote Repositories if the resource is in the perimeter.", + "VPCSC_ALLOW - repository will allow the requests to the Upstreams for the Remote Repositories if the resource is in the perimeter." + ], + "type": "string" + } + }, + "type": "object" + }, "Version": { "description": "The body of a version resource. A version resource represents a collection of components, such as files and other data. This may correspond to a version in many package management schemes.", "id": "Version", @@ -2615,6 +2853,20 @@ }, "type": "object" }, + "VirtualRepositoryConfig": { + "description": "Virtual repository configuration.", + "id": "VirtualRepositoryConfig", + "properties": { + "upstreamPolicies": { + "description": "Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.", + "items": { + "$ref": "UpstreamPolicy" + }, + "type": "array" + } + }, + "type": "object" + }, "YumArtifact": { "description": "A detailed representation of a Yum artifact.", "id": "YumArtifact", diff --git a/artifactregistry/v1/artifactregistry-gen.go b/artifactregistry/v1/artifactregistry-gen.go index 2f900969921..43e8b619e9d 100644 --- a/artifactregistry/v1/artifactregistry-gen.go +++ b/artifactregistry/v1/artifactregistry-gen.go @@ -435,7 +435,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -452,9 +454,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. @@ -558,6 +558,40 @@ func (s *DockerImage) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DockerRepository: Configuration for a Docker remote repository. +type DockerRepository struct { + // PublicRepository: One of the publicly available Docker repositories + // supported by Artifact Registry. + // + // Possible values: + // "PUBLIC_REPOSITORY_UNSPECIFIED" - Unspecified repository. + // "DOCKER_HUB" - Docker Hub. + PublicRepository string `json:"publicRepository,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PublicRepository") 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. "PublicRepository") 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 *DockerRepository) MarshalJSON() ([]byte, error) { + type NoMethod DockerRepository + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Empty: A generic empty message that you can re-use to avoid defining // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For @@ -635,6 +669,10 @@ type GoogleDevtoolsArtifactregistryV1File struct { // CreateTime: The time when the File was created. CreateTime string `json:"createTime,omitempty"` + // FetchTime: Output only. The time when the last attempt to refresh the + // file's data was made. Only set when the repository is remote. + FetchTime string `json:"fetchTime,omitempty"` + // Hashes: The hashes of the file content. Hashes []*Hash `json:"hashes,omitempty"` @@ -1487,6 +1525,40 @@ func (s *MavenArtifact) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MavenRepository: Configuration for a Maven remote repository. +type MavenRepository struct { + // PublicRepository: One of the publicly available Maven repositories + // supported by Artifact Registry. + // + // Possible values: + // "PUBLIC_REPOSITORY_UNSPECIFIED" - Unspecified repository. + // "MAVEN_CENTRAL" - Maven Central. + PublicRepository string `json:"publicRepository,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PublicRepository") 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. "PublicRepository") 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 *MavenRepository) MarshalJSON() ([]byte, error) { + type NoMethod MavenRepository + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // MavenRepositoryConfig: MavenRepositoryConfig is maven related // repository details. Provides additional configuration details for // repositories of the maven format type. @@ -1584,6 +1656,40 @@ func (s *NpmPackage) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// NpmRepository: Configuration for a Npm remote repository. +type NpmRepository struct { + // PublicRepository: One of the publicly available Npm repositories + // supported by Artifact Registry. + // + // Possible values: + // "PUBLIC_REPOSITORY_UNSPECIFIED" - Unspecified repository. + // "NPMJS" - npmjs. + PublicRepository string `json:"publicRepository,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PublicRepository") 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. "PublicRepository") 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 *NpmRepository) MarshalJSON() ([]byte, error) { + type NoMethod NpmRepository + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Operation: This resource represents a long-running operation that is // the result of a network API call. type Operation struct { @@ -1905,6 +2011,80 @@ func (s *PythonPackage) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// PythonRepository: Configuration for a Python remote repository. +type PythonRepository struct { + // PublicRepository: One of the publicly available Python repositories + // supported by Artifact Registry. + // + // Possible values: + // "PUBLIC_REPOSITORY_UNSPECIFIED" - Unspecified repository. + // "PYPI" - PyPI. + PublicRepository string `json:"publicRepository,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PublicRepository") 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. "PublicRepository") 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 *PythonRepository) MarshalJSON() ([]byte, error) { + type NoMethod PythonRepository + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RemoteRepositoryConfig: Remote repository configuration. +type RemoteRepositoryConfig struct { + // Description: The description of the remote source. + Description string `json:"description,omitempty"` + + // DockerRepository: Specific settings for a Docker remote repository. + DockerRepository *DockerRepository `json:"dockerRepository,omitempty"` + + // MavenRepository: Specific settings for a Maven remote repository. + MavenRepository *MavenRepository `json:"mavenRepository,omitempty"` + + // NpmRepository: Specific settings for an Npm remote repository. + NpmRepository *NpmRepository `json:"npmRepository,omitempty"` + + // PythonRepository: Specific settings for a Python remote repository. + PythonRepository *PythonRepository `json:"pythonRepository,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Description") 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. "Description") 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 *RemoteRepositoryConfig) MarshalJSON() ([]byte, error) { + type NoMethod RemoteRepositoryConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Repository: A Repository for storing artifacts with a specific // format. type Repository struct { @@ -1946,10 +2126,25 @@ type Repository struct { // configuration for the repositories of maven type. MavenConfig *MavenRepositoryConfig `json:"mavenConfig,omitempty"` + // Mode: The mode of the repository. + // + // Possible values: + // "MODE_UNSPECIFIED" - Unspecified mode. + // "STANDARD_REPOSITORY" - A standard repository storing artifacts. + // "VIRTUAL_REPOSITORY" - A virtual repository to serve artifacts from + // one or more sources. + // "REMOTE_REPOSITORY" - A remote repository to serve artifacts from a + // remote source. + Mode string `json:"mode,omitempty"` + // Name: The name of the repository, for example: // "projects/p1/locations/us-central1/repositories/repo1". Name string `json:"name,omitempty"` + // RemoteRepositoryConfig: Configuration specific for a Remote + // Repository. + RemoteRepositoryConfig *RemoteRepositoryConfig `json:"remoteRepositoryConfig,omitempty"` + // SatisfiesPzs: Output only. If set, the repository satisfies physical // zone separation. SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` @@ -1962,6 +2157,10 @@ type Repository struct { // UpdateTime: The time when the repository was last updated. UpdateTime string `json:"updateTime,omitempty"` + // VirtualRepositoryConfig: Configuration specific for a Virtual + // Repository. + VirtualRepositoryConfig *VirtualRepositoryConfig `json:"virtualRepositoryConfig,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` @@ -2383,6 +2582,93 @@ func (s *UploadYumArtifactResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// UpstreamPolicy: Artifact policy configuration for the repository +// contents. +type UpstreamPolicy struct { + // Id: The user-provided ID of the upstream policy. + Id string `json:"id,omitempty"` + + // Priority: Entries with a greater priority value take precedence in + // the pull order. + Priority int64 `json:"priority,omitempty"` + + // Repository: A reference to the repository resource, for example: + // "projects/p1/locations/us-central1/repository/repo1". + Repository string `json:"repository,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Id") 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. "Id") 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 *UpstreamPolicy) MarshalJSON() ([]byte, error) { + type NoMethod UpstreamPolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// VPCSCConfig: The Artifact Registry VPC SC config that apply to a +// Project. +type VPCSCConfig struct { + // Name: The name of the project's VPC SC Config. Always of the form: + // projects/{projectID}/locations/{location}/vpcscConfig In update + // request: never set In response: always set + Name string `json:"name,omitempty"` + + // VpcscPolicy: The project per location VPC SC policy that defines the + // VPC SC behavior for the Remote Repository (Allow/Deny). + // + // Possible values: + // "VPCSC_POLICY_UNSPECIFIED" - VPCSC_POLICY_UNSPECIFIED - the VPS SC + // policy is not defined. When VPS SC policy is not defined - the + // Service will use the default behavior (VPCSC_DENY). + // "DENY" - VPCSC_DENY - repository will block the requests to the + // Upstreams for the Remote Repositories if the resource is in the + // perimeter. + // "ALLOW" - VPCSC_ALLOW - repository will allow the requests to the + // Upstreams for the Remote Repositories if the resource is in the + // perimeter. + VpcscPolicy string `json:"vpcscPolicy,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 *VPCSCConfig) MarshalJSON() ([]byte, error) { + type NoMethod VPCSCConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Version: The body of a version resource. A version resource // represents a collection of components, such as files and other data. // This may correspond to a version in many package management schemes. @@ -2440,6 +2726,37 @@ func (s *Version) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// VirtualRepositoryConfig: Virtual repository configuration. +type VirtualRepositoryConfig struct { + // UpstreamPolicies: Policies that configure the upstream artifacts + // distributed by the Virtual Repository. Upstream policies cannot be + // set on a standard repository. + UpstreamPolicies []*UpstreamPolicy `json:"upstreamPolicies,omitempty"` + + // ForceSendFields is a list of field names (e.g. "UpstreamPolicies") 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. "UpstreamPolicies") 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 *VirtualRepositoryConfig) MarshalJSON() ([]byte, error) { + type NoMethod VirtualRepositoryConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // YumArtifact: A detailed representation of a Yum artifact. type YumArtifact struct { // Architecture: Output only. Operating system architecture of the @@ -2935,6 +3252,153 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, } +// method id "artifactregistry.projects.locations.getVpcscConfig": + +type ProjectsLocationsGetVpcscConfigCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetVpcscConfig: Retrieves the VPCSC Config for the Project. +// +// - name: The name of the VPCSCConfig resource. +func (r *ProjectsLocationsService) GetVpcscConfig(name string) *ProjectsLocationsGetVpcscConfigCall { + c := &ProjectsLocationsGetVpcscConfigCall{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 *ProjectsLocationsGetVpcscConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetVpcscConfigCall { + 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 *ProjectsLocationsGetVpcscConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetVpcscConfigCall { + 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 *ProjectsLocationsGetVpcscConfigCall) Context(ctx context.Context) *ProjectsLocationsGetVpcscConfigCall { + 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 *ProjectsLocationsGetVpcscConfigCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetVpcscConfigCall) 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, "v1/{+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 "artifactregistry.projects.locations.getVpcscConfig" call. +// Exactly one of *VPCSCConfig or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *VPCSCConfig.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 *ProjectsLocationsGetVpcscConfigCall) Do(opts ...googleapi.CallOption) (*VPCSCConfig, 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 := &VPCSCConfig{ + 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 the VPCSC Config for the Project.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/vpcscConfig", + // "httpMethod": "GET", + // "id": "artifactregistry.projects.locations.getVpcscConfig", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the VPCSCConfig resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/vpcscConfig$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "VPCSCConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" + // ] + // } + +} + // method id "artifactregistry.projects.locations.list": type ProjectsLocationsListCall struct { @@ -3145,6 +3609,163 @@ func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocat } } +// method id "artifactregistry.projects.locations.updateVpcscConfig": + +type ProjectsLocationsUpdateVpcscConfigCall struct { + s *Service + name string + vpcscconfig *VPCSCConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpdateVpcscConfig: Updates the VPCSC Config for the Project. +// +// - name: The name of the project's VPC SC Config. Always of the form: +// projects/{projectID}/locations/{location}/vpcscConfig In update +// request: never set In response: always set. +func (r *ProjectsLocationsService) UpdateVpcscConfig(name string, vpcscconfig *VPCSCConfig) *ProjectsLocationsUpdateVpcscConfigCall { + c := &ProjectsLocationsUpdateVpcscConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.vpcscconfig = vpcscconfig + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask to +// support partial updates. +func (c *ProjectsLocationsUpdateVpcscConfigCall) UpdateMask(updateMask string) *ProjectsLocationsUpdateVpcscConfigCall { + c.urlParams_.Set("updateMask", updateMask) + 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 *ProjectsLocationsUpdateVpcscConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsUpdateVpcscConfigCall { + 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 *ProjectsLocationsUpdateVpcscConfigCall) Context(ctx context.Context) *ProjectsLocationsUpdateVpcscConfigCall { + 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 *ProjectsLocationsUpdateVpcscConfigCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsUpdateVpcscConfigCall) 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.vpcscconfig) + 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, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", 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 "artifactregistry.projects.locations.updateVpcscConfig" call. +// Exactly one of *VPCSCConfig or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *VPCSCConfig.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 *ProjectsLocationsUpdateVpcscConfigCall) Do(opts ...googleapi.CallOption) (*VPCSCConfig, 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 := &VPCSCConfig{ + 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 the VPCSC Config for the Project.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/vpcscConfig", + // "httpMethod": "PATCH", + // "id": "artifactregistry.projects.locations.updateVpcscConfig", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the project's VPC SC Config. Always of the form: projects/{projectID}/locations/{location}/vpcscConfig In update request: never set In response: always set", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/vpcscConfig$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Field mask to support partial updates.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "VPCSCConfig" + // }, + // "response": { + // "$ref": "VPCSCConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "artifactregistry.projects.locations.operations.get": type ProjectsLocationsOperationsGetCall struct { diff --git a/batch/v1/batch-api.json b/batch/v1/batch-api.json index 683d24f8972..878d7c10509 100644 --- a/batch/v1/batch-api.json +++ b/batch/v1/batch-api.json @@ -643,7 +643,7 @@ } } }, - "revision": "20230118", + "revision": "20230130", "rootUrl": "https://batch.googleapis.com/", "schemas": { "Accelerator": { @@ -973,7 +973,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, @@ -1893,11 +1893,11 @@ "id": "Script", "properties": { "path": { - "description": "Script file path on the host VM.", + "description": "Script file path on the host VM. To specify an interpreter, please add a `#!`(also known as [shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix))) as the first line of the file.(For example, to execute the script using bash, `#!/bin/bash` should be the first line of the file. To execute the script using`Python3`, `#!/usr/bin/env python3` should be the first line of the file.) Otherwise, the file will by default be excuted by `/bin/sh`.", "type": "string" }, "text": { - "description": "Shell script text.", + "description": "Shell script text. To specify an interpreter, please add a `#!\\n` at the beginning of the text.(For example, to execute the script using bash, `#!/bin/bash\\n` should be added. To execute the script using`Python3`, `#!/usr/bin/env python3\\n` should be added.) Otherwise, the script will by default be excuted by `/bin/sh`.", "type": "string" } }, @@ -1981,6 +1981,26 @@ "$ref": "TaskExecution", "description": "Task Execution" }, + "taskState": { + "description": "Task State", + "enum": [ + "STATE_UNSPECIFIED", + "PENDING", + "ASSIGNED", + "RUNNING", + "FAILED", + "SUCCEEDED" + ], + "enumDescriptions": [ + "unknown state", + "The Task is created and waiting for resources.", + "The Task is assigned to at least one VM.", + "The Task is running.", + "The Task has failed.", + "The Task has succeeded." + ], + "type": "string" + }, "type": { "description": "Type of the event.", "type": "string" diff --git a/batch/v1/batch-gen.go b/batch/v1/batch-gen.go index 3af381a233d..595459c67d9 100644 --- a/batch/v1/batch-gen.go +++ b/batch/v1/batch-gen.go @@ -753,7 +753,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -770,9 +772,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. @@ -2303,10 +2303,21 @@ func (s *Runnable) MarshalJSON() ([]byte, error) { // Script: Script runnable. type Script struct { - // Path: Script file path on the host VM. + // Path: Script file path on the host VM. To specify an interpreter, + // please add a `#!`(also known as shebang line + // (https://en.wikipedia.org/wiki/Shebang_(Unix))) as the first line of + // the file.(For example, to execute the script using bash, + // `#!/bin/bash` should be the first line of the file. To execute the + // script using`Python3`, `#!/usr/bin/env python3` should be the first + // line of the file.) Otherwise, the file will by default be excuted by + // `/bin/sh`. Path string `json:"path,omitempty"` - // Text: Shell script text. + // Text: Shell script text. To specify an interpreter, please add a + // `#!\n` at the beginning of the text.(For example, to execute the + // script using bash, `#!/bin/bash\n` should be added. To execute the + // script using`Python3`, `#!/usr/bin/env python3\n` should be added.) + // Otherwise, the script will by default be excuted by `/bin/sh`. Text string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "Path") to @@ -2462,6 +2473,17 @@ type StatusEvent struct { // TaskExecution: Task Execution TaskExecution *TaskExecution `json:"taskExecution,omitempty"` + // TaskState: Task State + // + // Possible values: + // "STATE_UNSPECIFIED" - unknown state + // "PENDING" - The Task is created and waiting for resources. + // "ASSIGNED" - The Task is assigned to at least one VM. + // "RUNNING" - The Task is running. + // "FAILED" - The Task has failed. + // "SUCCEEDED" - The Task has succeeded. + TaskState string `json:"taskState,omitempty"` + // Type: Type of the event. Type string `json:"type,omitempty"` diff --git a/bigquery/v2/bigquery-api.json b/bigquery/v2/bigquery-api.json index 35023e4c9ce..dc9d820669e 100644 --- a/bigquery/v2/bigquery-api.json +++ b/bigquery/v2/bigquery-api.json @@ -1710,7 +1710,7 @@ } } }, - "revision": "20230114", + "revision": "20230204", "rootUrl": "https://bigquery.googleapis.com/", "schemas": { "AggregateClassificationMetrics": { @@ -2396,7 +2396,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/bigquery/v2/bigquery-gen.go b/bigquery/v2/bigquery-gen.go index ee9c8fb0e48..803bd769c5e 100644 --- a/bigquery/v2/bigquery-gen.go +++ b/bigquery/v2/bigquery-gen.go @@ -1353,7 +1353,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -1370,9 +1372,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. diff --git a/bigqueryreservation/v1/bigqueryreservation-api.json b/bigqueryreservation/v1/bigqueryreservation-api.json index f5c75627497..cb3b8bb40db 100644 --- a/bigqueryreservation/v1/bigqueryreservation-api.json +++ b/bigqueryreservation/v1/bigqueryreservation-api.json @@ -823,7 +823,7 @@ } } }, - "revision": "20230121", + "revision": "20230205", "rootUrl": "https://bigqueryreservation.googleapis.com/", "schemas": { "Assignment": { @@ -876,7 +876,7 @@ "type": "object" }, "Autoscale": { - "description": "Auto scaling settings. max_slots and budget are mutually exclusive. If max_slots is set: * The system will create a dedicated `FLEX` capacity commitment to hold the slots for auto-scale. Users won't be able to manage it, to avoid conflicts. * Scale-up will happen if there are always pending tasks for the past 10 minutes. * Scale-down will happen, if the system detects that scale-up won't be triggered again. If budget is set: * The system will try to use more slots immediately. * At a particular moment, the number of slots scaled is determined by the sytsem, based on the remaining budget and system limit. But overall the usage will conform to the budget if there is enough traffic. * The system will round the slot usage every minute. **Note** this is an alpha feature.", + "description": "Auto scaling settings.", "id": "Autoscale", "properties": { "currentSlots": { diff --git a/bigqueryreservation/v1/bigqueryreservation-gen.go b/bigqueryreservation/v1/bigqueryreservation-gen.go index 6211f126459..d021dc1dcc0 100644 --- a/bigqueryreservation/v1/bigqueryreservation-gen.go +++ b/bigqueryreservation/v1/bigqueryreservation-gen.go @@ -267,18 +267,7 @@ func (s *Assignment) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Autoscale: Auto scaling settings. max_slots and budget are mutually -// exclusive. If max_slots is set: * The system will create a dedicated -// `FLEX` capacity commitment to hold the slots for auto-scale. Users -// won't be able to manage it, to avoid conflicts. * Scale-up will -// happen if there are always pending tasks for the past 10 minutes. * -// Scale-down will happen, if the system detects that scale-up won't be -// triggered again. If budget is set: * The system will try to use more -// slots immediately. * At a particular moment, the number of slots -// scaled is determined by the sytsem, based on the remaining budget and -// system limit. But overall the usage will conform to the budget if -// there is enough traffic. * The system will round the slot usage every -// minute. **Note** this is an alpha feature. +// Autoscale: Auto scaling settings. type Autoscale struct { // CurrentSlots: Output only. The slot capacity added to this // reservation when autoscale happens. Will be between [0, max_slots]. diff --git a/books/v1/books-api.json b/books/v1/books-api.json index 5a23ef48bda..8cdf703d446 100644 --- a/books/v1/books-api.json +++ b/books/v1/books-api.json @@ -14,6 +14,7 @@ "description": "The Google Books API allows clients to access the Google Books repository.", "discoveryVersion": "v1", "documentationLink": "https://code.google.com/apis/books/docs/v1/getting_started.html", + "fullyEncodeReservedExpansion": true, "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", "x32": "http://www.google.com/images/icons/product/search-32.gif" @@ -2671,7 +2672,7 @@ } } }, - "revision": "20220318", + "revision": "20230207", "rootUrl": "https://books.googleapis.com/", "schemas": { "Annotation": { diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index 83df57067b7..200359a6ca3 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -502,7 +502,7 @@ } } }, - "revision": "20230131", + "revision": "20230207", "rootUrl": "https://chat.googleapis.com/", "schemas": { "ActionParameter": { @@ -984,7 +984,7 @@ "description": "Represents information about the user's client, such as locale, host app, and platform. For Chat apps, `CommonEventObject` includes information submitted by users interacting with [dialogs](https://developers.google.com/chat/how-tos/dialogs), like data entered on a card." }, "configCompleteRedirectUrl": { - "description": "The URL the Chat app should redirect the user to after they have completed an authorization or configuration flow outside of Google Chat. See the [Authorizing access to 3p services guide](/chat/how-tos/auth-3p) for more information.", + "description": "The URL the Chat app should redirect the user to after they have completed an authorization or configuration flow outside of Google Chat. For more information, see [Connect a Chat app with other services \u0026 tools](https://developers.google.com/chat/how-tos/connect-web-services-tools).", "type": "string" }, "dialogEventType": { @@ -2248,10 +2248,10 @@ }, "member": { "$ref": "User", - "description": "A Google Chat user or app. Format: `users/{user}` or `users/app` When `users/{user}`, represents a [person](https://developers.google.com/people/api/rest/v1/people) in the People API or a [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the Admin SDK Directory API. When `users/app`, represents a Chat app creating membership for itself." + "description": "The Google Chat user or app the membership corresponds to." }, "name": { - "description": "Resource name of the membership. Format: spaces/{space}/members/{member}", + "description": "Resource name of the membership, assigned by the server. Format: spaces/{space}/members/{member}", "type": "string" }, "role": { @@ -2488,7 +2488,7 @@ "id": "Space", "properties": { "displayName": { - "description": "The space's display name. Required when [creating a space](https://developers.google.com/chat/api/reference/rest/v1/spaces/create). For direct messages, this field may be empty.", + "description": "The space's display name. Required when [creating a space](https://developers.google.com/chat/api/reference/rest/v1/spaces/create). For direct messages, this field may be empty. Supports up to 128 characters.", "type": "string" }, "name": { @@ -2548,11 +2548,11 @@ "id": "SpaceDetails", "properties": { "description": { - "description": "Optional. A description of the space. It could describe the space's discussion topic, functional purpose, or participants.", + "description": "Optional. A description of the space. It could describe the space's discussion topic, functional purpose, or participants. Supports up to 150 characters.", "type": "string" }, "guidelines": { - "description": "Optional. The space's rules, expectations, and etiquette.", + "description": "Optional. The space's rules, expectations, and etiquette. Supports up to 5,000 characters.", "type": "string" } }, @@ -2691,7 +2691,7 @@ "type": "boolean" }, "name": { - "description": "Resource name for a Google Chat user. For human users, represents a person in the People API or a user in the Admin SDK Directory API. Format: `users/{user}`", + "description": "Resource name for a Google Chat user. Format: `users/{user}`. `users/app` can be used as an alias for the calling app bot user. For human users, `{user}` is the same user identifier as: - the `{person_id`} for the [Person](https://developers.google.com/people/api/rest/v1/people) in the People API, where the Person `resource_name` is `people/{person_id}`. For example, `users/123456789` in Chat API represents the same person as `people/123456789` in People API. - the `id` for a [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the Admin SDK Directory API.", "type": "string" }, "type": { diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index e84f8ce1794..f43af2710b6 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -1090,8 +1090,9 @@ type DeprecatedEvent struct { // ConfigCompleteRedirectUrl: The URL the Chat app should redirect the // user to after they have completed an authorization or configuration - // flow outside of Google Chat. See the Authorizing access to 3p - // services guide (/chat/how-tos/auth-3p) for more information. + // flow outside of Google Chat. For more information, see Connect a Chat + // app with other services & tools + // (https://developers.google.com/chat/how-tos/connect-web-services-tools). ConfigCompleteRedirectUrl string `json:"configCompleteRedirectUrl,omitempty"` // DialogEventType: The type of dialog @@ -3322,17 +3323,11 @@ type Membership struct { // when a member joined or was invited to join a space. CreateTime string `json:"createTime,omitempty"` - // Member: A Google Chat user or app. Format: `users/{user}` or - // `users/app` When `users/{user}`, represents a person - // (https://developers.google.com/people/api/rest/v1/people) in the - // People API or a user - // (https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) - // in the Admin SDK Directory API. When `users/app`, represents a Chat - // app creating membership for itself. + // Member: The Google Chat user or app the membership corresponds to. Member *User `json:"member,omitempty"` - // Name: Resource name of the membership. Format: - // spaces/{space}/members/{member} + // Name: Resource name of the membership, assigned by the server. + // Format: spaces/{space}/members/{member} Name string `json:"name,omitempty"` // Role: Output only. User's role within a Chat space, which determines @@ -3683,7 +3678,8 @@ func (s *SlashCommandMetadata) MarshalJSON() ([]byte, error) { type Space struct { // DisplayName: The space's display name. Required when creating a space // (https://developers.google.com/chat/api/reference/rest/v1/spaces/create). - // For direct messages, this field may be empty. + // For direct messages, this field may be empty. Supports up to 128 + // characters. DisplayName string `json:"displayName,omitempty"` // Name: Resource name of the space. Format: spaces/{space} @@ -3758,9 +3754,11 @@ func (s *Space) MarshalJSON() ([]byte, error) { type SpaceDetails struct { // Description: Optional. A description of the space. It could describe // the space's discussion topic, functional purpose, or participants. + // Supports up to 150 characters. Description string `json:"description,omitempty"` // Guidelines: Optional. The space's rules, expectations, and etiquette. + // Supports up to 5,000 characters. Guidelines string `json:"guidelines,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to @@ -4033,9 +4031,16 @@ type User struct { // profile is not visible. IsAnonymous bool `json:"isAnonymous,omitempty"` - // Name: Resource name for a Google Chat user. For human users, - // represents a person in the People API or a user in the Admin SDK - // Directory API. Format: `users/{user}` + // Name: Resource name for a Google Chat user. Format: `users/{user}`. + // `users/app` can be used as an alias for the calling app bot user. For + // human users, `{user}` is the same user identifier as: - the + // `{person_id`} for the Person + // (https://developers.google.com/people/api/rest/v1/people) in the + // People API, where the Person `resource_name` is `people/{person_id}`. + // For example, `users/123456789` in Chat API represents the same person + // as `people/123456789` in People API. - the `id` for a user + // (https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) + // in the Admin SDK Directory API. Name string `json:"name,omitempty"` // Type: User type. diff --git a/chromemanagement/v1/chromemanagement-api.json b/chromemanagement/v1/chromemanagement-api.json index fe2f73afd99..a906641732e 100644 --- a/chromemanagement/v1/chromemanagement-api.json +++ b/chromemanagement/v1/chromemanagement-api.json @@ -254,6 +254,36 @@ }, "reports": { "methods": { + "countChromeBrowsersNeedingAttention": { + "description": "Count of Chrome Browsers that have been recently enrolled, have new policy to be synced, or have no recent activity.", + "flatPath": "v1/customers/{customersId}/reports:countChromeBrowsersNeedingAttention", + "httpMethod": "GET", + "id": "chromemanagement.customers.reports.countChromeBrowsersNeedingAttention", + "parameterOrder": [ + "customer" + ], + "parameters": { + "customer": { + "description": "Required. The customer ID or \"my_customer\" prefixed with \"customers/\".", + "location": "path", + "pattern": "^customers/[^/]+$", + "required": true, + "type": "string" + }, + "orgUnitId": { + "description": "Optional. The ID of the organizational unit. If omitted, all data will be returned.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+customer}/reports:countChromeBrowsersNeedingAttention", + "response": { + "$ref": "GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/chrome.management.reports.readonly" + ] + }, "countChromeDevicesReachingAutoExpirationDate": { "description": "Generate report of the number of devices expiring in each month of the selected time frame. Devices are grouped by auto update expiration date and model. Further information can be found [here](https://support.google.com/chrome/a/answer/10564947).", "flatPath": "v1/customers/{customersId}/reports:countChromeDevicesReachingAutoExpirationDate", @@ -764,7 +794,7 @@ } } }, - "revision": "20230202", + "revision": "20230209", "rootUrl": "https://chromemanagement.googleapis.com/", "schemas": { "GoogleChromeManagementV1AndroidAppInfo": { @@ -1402,6 +1432,28 @@ }, "type": "object" }, + "GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse": { + "description": "Response containing counts for browsers that need attention.", + "id": "GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse", + "properties": { + "noRecentActivityCount": { + "description": "Number of browsers that haven’t had any recent activity", + "format": "int64", + "type": "string" + }, + "pendingBrowserUpdateCount": { + "description": "Number of browsers that are pending an OS update", + "format": "int64", + "type": "string" + }, + "recentlyEnrolledCount": { + "description": "Number of browsers that have been recently enrolled", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse": { "description": "Response containing a list of devices expiring in each month of a selected time frame. Counts are grouped by model and Auto Update Expiration date.", "id": "GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse", diff --git a/chromemanagement/v1/chromemanagement-gen.go b/chromemanagement/v1/chromemanagement-gen.go index d263ae2546d..7a3309ff51c 100644 --- a/chromemanagement/v1/chromemanagement-gen.go +++ b/chromemanagement/v1/chromemanagement-gen.go @@ -1040,6 +1040,50 @@ func (s *GoogleChromeManagementV1CountChromeAppRequestsResponse) MarshalJSON() ( return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse: +// Response containing counts for browsers that need attention. +type GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse struct { + // NoRecentActivityCount: Number of browsers that haven’t had any + // recent activity + NoRecentActivityCount int64 `json:"noRecentActivityCount,omitempty,string"` + + // PendingBrowserUpdateCount: Number of browsers that are pending an OS + // update + PendingBrowserUpdateCount int64 `json:"pendingBrowserUpdateCount,omitempty,string"` + + // RecentlyEnrolledCount: Number of browsers that have been recently + // enrolled + RecentlyEnrolledCount int64 `json:"recentlyEnrolledCount,omitempty,string"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "NoRecentActivityCount") 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. "NoRecentActivityCount") 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 *GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateRe // sponse: Response containing a list of devices expiring in each month // of a selected time frame. Counts are grouped by model and Auto Update @@ -3980,6 +4024,170 @@ func (c *CustomersAppsWebGetCall) Do(opts ...googleapi.CallOption) (*GoogleChrom } +// method id "chromemanagement.customers.reports.countChromeBrowsersNeedingAttention": + +type CustomersReportsCountChromeBrowsersNeedingAttentionCall struct { + s *Service + customer string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// CountChromeBrowsersNeedingAttention: Count of Chrome Browsers that +// have been recently enrolled, have new policy to be synced, or have no +// recent activity. +// +// - customer: The customer ID or "my_customer" prefixed with +// "customers/". +func (r *CustomersReportsService) CountChromeBrowsersNeedingAttention(customer string) *CustomersReportsCountChromeBrowsersNeedingAttentionCall { + c := &CustomersReportsCountChromeBrowsersNeedingAttentionCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.customer = customer + return c +} + +// OrgUnitId sets the optional parameter "orgUnitId": The ID of the +// organizational unit. If omitted, all data will be returned. +func (c *CustomersReportsCountChromeBrowsersNeedingAttentionCall) OrgUnitId(orgUnitId string) *CustomersReportsCountChromeBrowsersNeedingAttentionCall { + c.urlParams_.Set("orgUnitId", orgUnitId) + 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 *CustomersReportsCountChromeBrowsersNeedingAttentionCall) Fields(s ...googleapi.Field) *CustomersReportsCountChromeBrowsersNeedingAttentionCall { + 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 *CustomersReportsCountChromeBrowsersNeedingAttentionCall) IfNoneMatch(entityTag string) *CustomersReportsCountChromeBrowsersNeedingAttentionCall { + 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 *CustomersReportsCountChromeBrowsersNeedingAttentionCall) Context(ctx context.Context) *CustomersReportsCountChromeBrowsersNeedingAttentionCall { + 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 *CustomersReportsCountChromeBrowsersNeedingAttentionCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *CustomersReportsCountChromeBrowsersNeedingAttentionCall) 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, "v1/{+customer}/reports:countChromeBrowsersNeedingAttention") + 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{ + "customer": c.customer, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "chromemanagement.customers.reports.countChromeBrowsersNeedingAttention" call. +// Exactly one of +// *GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse.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 *CustomersReportsCountChromeBrowsersNeedingAttentionCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse, 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 := &GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse{ + 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": "Count of Chrome Browsers that have been recently enrolled, have new policy to be synced, or have no recent activity.", + // "flatPath": "v1/customers/{customersId}/reports:countChromeBrowsersNeedingAttention", + // "httpMethod": "GET", + // "id": "chromemanagement.customers.reports.countChromeBrowsersNeedingAttention", + // "parameterOrder": [ + // "customer" + // ], + // "parameters": { + // "customer": { + // "description": "Required. The customer ID or \"my_customer\" prefixed with \"customers/\".", + // "location": "path", + // "pattern": "^customers/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "orgUnitId": { + // "description": "Optional. The ID of the organizational unit. If omitted, all data will be returned.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+customer}/reports:countChromeBrowsersNeedingAttention", + // "response": { + // "$ref": "GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/chrome.management.reports.readonly" + // ] + // } + +} + // method id "chromemanagement.customers.reports.countChromeDevicesReachingAutoExpirationDate": type CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall struct { diff --git a/chromeuxreport/v1/chromeuxreport-api.json b/chromeuxreport/v1/chromeuxreport-api.json index 26cab74314b..8937faa20f2 100644 --- a/chromeuxreport/v1/chromeuxreport-api.json +++ b/chromeuxreport/v1/chromeuxreport-api.json @@ -98,6 +98,21 @@ "resources": { "records": { "methods": { + "queryHistoryRecord": { + "description": "Queries the Chrome User Experience Report for a timeseries `history record` for a given site. Returns a `history record` that contains one or more `metric timeseries` corresponding to performance data about the requested site.", + "flatPath": "v1/records:queryHistoryRecord", + "httpMethod": "POST", + "id": "chromeuxreport.records.queryHistoryRecord", + "parameterOrder": [], + "parameters": {}, + "path": "v1/records:queryHistoryRecord", + "request": { + "$ref": "QueryHistoryRequest" + }, + "response": { + "$ref": "QueryHistoryResponse" + } + }, "queryRecord": { "description": "Queries the Chrome User Experience for a single `record` for a given site. Returns a `record` that contains one or more `metrics` corresponding to performance data about the requested site.", "flatPath": "v1/records:queryRecord", @@ -116,7 +131,7 @@ } } }, - "revision": "20230117", + "revision": "20230208", "rootUrl": "https://chromeuxreport.googleapis.com/", "schemas": { "Bin": { @@ -176,6 +191,62 @@ }, "type": "object" }, + "HistoryKey": { + "description": "Key defines all the dimensions that identify this record as unique.", + "id": "HistoryKey", + "properties": { + "formFactor": { + "description": "The form factor is the device class that all users used to access the site for this record. If the form factor is unspecified, then aggregated data over all form factors will be returned.", + "enum": [ + "ALL_FORM_FACTORS", + "PHONE", + "DESKTOP", + "TABLET" + ], + "enumDescriptions": [ + "The default value, representing all device classes.", + "The device class representing a \"mobile\"/\"phone\" sized client.", + "The device class representing a \"desktop\"/\"laptop\" type full size client.", + "The device class representing a \"tablet\" type client." + ], + "type": "string" + }, + "origin": { + "description": "Origin specifies the origin that this record is for. Note: When specifying an origin, data for loads under this origin over all pages are aggregated into origin level user experience data.", + "type": "string" + }, + "url": { + "description": "Url specifies a specific url that this record is for. This url should be normalized, following the normalization actions taken in the request to increase the chances of successful lookup. Note: When specifying a \"url\" only data for that specific url will be aggregated.", + "type": "string" + } + }, + "type": "object" + }, + "HistoryRecord": { + "description": "HistoryRecord is a timeseries of Chrome UX Report data. It contains user experience statistics for a single url pattern and a set of dimensions.", + "id": "HistoryRecord", + "properties": { + "collectionPeriods": { + "description": "The collection periods indicate when each of the data points reflected in the time series data in metrics was collected. Note that all the time series share the same collection periods, and it is enforced in the CrUX pipeline that every time series has the same number of data points.", + "items": { + "$ref": "CollectionPeriod" + }, + "type": "array" + }, + "key": { + "$ref": "HistoryKey", + "description": "Key defines all of the unique querying parameters needed to look up a user experience history record." + }, + "metrics": { + "additionalProperties": { + "$ref": "MetricTimeseries" + }, + "description": "Metrics is the map of user experience time series data available for the record defined in the key field. Metrics are keyed on the metric name. Allowed key values: [\"first_contentful_paint\", \"first_input_delay\", \"largest_contentful_paint\", \"cumulative_layout_shift\", \"experimental_time_to_first_byte\", \"experimental_interaction_to_next_paint\"]", + "type": "object" + } + }, + "type": "object" + }, "Key": { "description": "Key defines all the dimensions that identify this record as unique.", "id": "Key", @@ -229,6 +300,24 @@ }, "type": "object" }, + "MetricTimeseries": { + "description": "A `metric timeseries` is a set of user experience data for a single web performance metric, like \"first contentful paint\". It contains a summary histogram of real world Chrome usage as a series of `bins`, where each bin has density values for a particular time period.", + "id": "MetricTimeseries", + "properties": { + "histogramTimeseries": { + "description": "The histogram of user experiences for a metric. The histogram will have at least one bin and the densities of all bins will add up to ~1, for each timeseries entry.", + "items": { + "$ref": "TimeseriesBin" + }, + "type": "array" + }, + "percentilesTimeseries": { + "$ref": "TimeseriesPercentiles", + "description": "Commonly useful percentiles of the Metric. The value type for the percentiles will be the same as the value types given for the Histogram bins." + } + }, + "type": "object" + }, "Percentiles": { "description": "Percentiles contains synthetic values of a metric at a given statistical percentile. These are used for estimating a metric's value as experienced by a percentage of users out of the total number of users.", "id": "Percentiles", @@ -240,6 +329,59 @@ }, "type": "object" }, + "QueryHistoryRequest": { + "description": "Request payload sent by a physical web client. This request includes all necessary context to load a particular user experience history record.", + "id": "QueryHistoryRequest", + "properties": { + "formFactor": { + "description": "The form factor is a query dimension that specifies the device class that the record's data should belong to. Note: If no form factor is specified, then a special record with aggregated data over all form factors will be returned.", + "enum": [ + "ALL_FORM_FACTORS", + "PHONE", + "DESKTOP", + "TABLET" + ], + "enumDescriptions": [ + "The default value, representing all device classes.", + "The device class representing a \"mobile\"/\"phone\" sized client.", + "The device class representing a \"desktop\"/\"laptop\" type full size client.", + "The device class representing a \"tablet\" type client." + ], + "type": "string" + }, + "metrics": { + "description": "The metrics that should be included in the response. If none are specified then any metrics found will be returned. Allowed values: [\"first_contentful_paint\", \"first_input_delay\", \"largest_contentful_paint\", \"cumulative_layout_shift\", \"experimental_time_to_first_byte\", \"experimental_interaction_to_next_paint\"]", + "items": { + "type": "string" + }, + "type": "array" + }, + "origin": { + "description": "The url pattern \"origin\" refers to a url pattern that is the origin of a website. Examples: \"https://example.com\", \"https://cloud.google.com\"", + "type": "string" + }, + "url": { + "description": "The url pattern \"url\" refers to a url pattern that is any arbitrary url. Examples: \"https://example.com/\", \"https://cloud.google.com/why-google-cloud/\"", + "type": "string" + } + }, + "type": "object" + }, + "QueryHistoryResponse": { + "description": "Response payload sent back to a physical web client. This response contains the record found based on the identiers present in a `QueryHistoryRequest`. The returned response will have a history record, and sometimes details on normalization actions taken on the request that were necessary to make the request successful.", + "id": "QueryHistoryResponse", + "properties": { + "record": { + "$ref": "HistoryRecord", + "description": "The record that was found." + }, + "urlNormalizationDetails": { + "$ref": "UrlNormalization", + "description": "These are details about automated normalization actions that were taken in order to make the requested `url_pattern` valid." + } + }, + "type": "object" + }, "QueryRequest": { "description": "Request payload sent by a physical web client. This request includes all necessary context to load a particular user experience record.", "id": "QueryRequest", @@ -319,6 +461,43 @@ }, "type": "object" }, + "TimeseriesBin": { + "description": "A bin is a discrete portion of data spanning from start to end, or if no end is given, then from start to +inf. A bin's start and end values are given in the value type of the metric it represents. For example, \"first contentful paint\" is measured in milliseconds and exposed as ints, therefore its metric bins will use int32s for its start and end types. However, \"cumulative layout shift\" is measured in unitless decimals and is exposed as a decimal encoded as a string, therefore its metric bins will use strings for its value type.", + "id": "TimeseriesBin", + "properties": { + "densities": { + "description": "The proportion of users that experienced this bin's value for the given metric in a given collection period; the index for each of these entries corresponds to an entry in the CollectionPeriods field in the HistoryRecord message, which describes when the density was observed in the field. Thus, the length of this list of densities is equal to the length of the CollectionPeriods field in the HistoryRecord message.", + "items": { + "format": "double", + "type": "number" + }, + "type": "array" + }, + "end": { + "description": "End is the end of the data bin. If end is not populated, then the bin has no end and is valid from start to +inf.", + "type": "any" + }, + "start": { + "description": "Start is the beginning of the data bin.", + "type": "any" + } + }, + "type": "object" + }, + "TimeseriesPercentiles": { + "description": "Percentiles contains synthetic values of a metric at a given statistical percentile. These are used for estimating a metric's value as experienced by a percentage of users out of the total number of users.", + "id": "TimeseriesPercentiles", + "properties": { + "p75s": { + "description": "75% of users experienced the given metric at or below this value. The length of this list of densities is equal to the length of the CollectionPeriods field in the HistoryRecord message, which describes when the density was observed in the field.", + "items": { + "type": "any" + }, + "type": "array" + } + }, + "type": "object" + }, "UrlNormalization": { "description": "Object representing the normalization actions taken to normalize a url to achieve a higher chance of successful lookup. These are simple automated changes that are taken when looking up the provided `url_patten` would be known to fail. Complex actions like following redirects are not handled.", "id": "UrlNormalization", diff --git a/chromeuxreport/v1/chromeuxreport-gen.go b/chromeuxreport/v1/chromeuxreport-gen.go index b7feccf8bc8..b3feb2fafb5 100644 --- a/chromeuxreport/v1/chromeuxreport-gen.go +++ b/chromeuxreport/v1/chromeuxreport-gen.go @@ -270,6 +270,106 @@ func (s *Date) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// HistoryKey: Key defines all the dimensions that identify this record +// as unique. +type HistoryKey struct { + // FormFactor: The form factor is the device class that all users used + // to access the site for this record. If the form factor is + // unspecified, then aggregated data over all form factors will be + // returned. + // + // Possible values: + // "ALL_FORM_FACTORS" - The default value, representing all device + // classes. + // "PHONE" - The device class representing a "mobile"/"phone" sized + // client. + // "DESKTOP" - The device class representing a "desktop"/"laptop" type + // full size client. + // "TABLET" - The device class representing a "tablet" type client. + FormFactor string `json:"formFactor,omitempty"` + + // Origin: Origin specifies the origin that this record is for. Note: + // When specifying an origin, data for loads under this origin over all + // pages are aggregated into origin level user experience data. + Origin string `json:"origin,omitempty"` + + // Url: Url specifies a specific url that this record is for. This url + // should be normalized, following the normalization actions taken in + // the request to increase the chances of successful lookup. Note: When + // specifying a "url" only data for that specific url will be + // aggregated. + Url string `json:"url,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FormFactor") 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. "FormFactor") 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 *HistoryKey) MarshalJSON() ([]byte, error) { + type NoMethod HistoryKey + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// HistoryRecord: HistoryRecord is a timeseries of Chrome UX Report +// data. It contains user experience statistics for a single url pattern +// and a set of dimensions. +type HistoryRecord struct { + // CollectionPeriods: The collection periods indicate when each of the + // data points reflected in the time series data in metrics was + // collected. Note that all the time series share the same collection + // periods, and it is enforced in the CrUX pipeline that every time + // series has the same number of data points. + CollectionPeriods []*CollectionPeriod `json:"collectionPeriods,omitempty"` + + // Key: Key defines all of the unique querying parameters needed to look + // up a user experience history record. + Key *HistoryKey `json:"key,omitempty"` + + // Metrics: Metrics is the map of user experience time series data + // available for the record defined in the key field. Metrics are keyed + // on the metric name. Allowed key values: ["first_contentful_paint", + // "first_input_delay", "largest_contentful_paint", + // "cumulative_layout_shift", "experimental_time_to_first_byte", + // "experimental_interaction_to_next_paint"] + Metrics map[string]MetricTimeseries `json:"metrics,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CollectionPeriods") + // 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. "CollectionPeriods") 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 *HistoryRecord) MarshalJSON() ([]byte, error) { + type NoMethod HistoryRecord + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Key: Key defines all the dimensions that identify this record as // unique. type Key struct { @@ -369,6 +469,46 @@ func (s *Metric) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MetricTimeseries: A `metric timeseries` is a set of user experience +// data for a single web performance metric, like "first contentful +// paint". It contains a summary histogram of real world Chrome usage as +// a series of `bins`, where each bin has density values for a +// particular time period. +type MetricTimeseries struct { + // HistogramTimeseries: The histogram of user experiences for a metric. + // The histogram will have at least one bin and the densities of all + // bins will add up to ~1, for each timeseries entry. + HistogramTimeseries []*TimeseriesBin `json:"histogramTimeseries,omitempty"` + + // PercentilesTimeseries: Commonly useful percentiles of the Metric. The + // value type for the percentiles will be the same as the value types + // given for the Histogram bins. + PercentilesTimeseries *TimeseriesPercentiles `json:"percentilesTimeseries,omitempty"` + + // ForceSendFields is a list of field names (e.g. "HistogramTimeseries") + // 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. "HistogramTimeseries") 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 *MetricTimeseries) MarshalJSON() ([]byte, error) { + type NoMethod MetricTimeseries + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Percentiles: Percentiles contains synthetic values of a metric at a // given statistical percentile. These are used for estimating a // metric's value as experienced by a percentage of users out of the @@ -401,6 +541,108 @@ func (s *Percentiles) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// QueryHistoryRequest: Request payload sent by a physical web client. +// This request includes all necessary context to load a particular user +// experience history record. +type QueryHistoryRequest struct { + // FormFactor: The form factor is a query dimension that specifies the + // device class that the record's data should belong to. Note: If no + // form factor is specified, then a special record with aggregated data + // over all form factors will be returned. + // + // Possible values: + // "ALL_FORM_FACTORS" - The default value, representing all device + // classes. + // "PHONE" - The device class representing a "mobile"/"phone" sized + // client. + // "DESKTOP" - The device class representing a "desktop"/"laptop" type + // full size client. + // "TABLET" - The device class representing a "tablet" type client. + FormFactor string `json:"formFactor,omitempty"` + + // Metrics: The metrics that should be included in the response. If none + // are specified then any metrics found will be returned. Allowed + // values: ["first_contentful_paint", "first_input_delay", + // "largest_contentful_paint", "cumulative_layout_shift", + // "experimental_time_to_first_byte", + // "experimental_interaction_to_next_paint"] + Metrics []string `json:"metrics,omitempty"` + + // Origin: The url pattern "origin" refers to a url pattern that is the + // origin of a website. Examples: "https://example.com", + // "https://cloud.google.com" + Origin string `json:"origin,omitempty"` + + // Url: The url pattern "url" refers to a url pattern that is any + // arbitrary url. Examples: "https://example.com/", + // "https://cloud.google.com/why-google-cloud/" + Url string `json:"url,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FormFactor") 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. "FormFactor") 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 *QueryHistoryRequest) MarshalJSON() ([]byte, error) { + type NoMethod QueryHistoryRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// QueryHistoryResponse: Response payload sent back to a physical web +// client. This response contains the record found based on the +// identiers present in a `QueryHistoryRequest`. The returned response +// will have a history record, and sometimes details on normalization +// actions taken on the request that were necessary to make the request +// successful. +type QueryHistoryResponse struct { + // Record: The record that was found. + Record *HistoryRecord `json:"record,omitempty"` + + // UrlNormalizationDetails: These are details about automated + // normalization actions that were taken in order to make the requested + // `url_pattern` valid. + UrlNormalizationDetails *UrlNormalization `json:"urlNormalizationDetails,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Record") 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. "Record") 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 *QueryHistoryResponse) MarshalJSON() ([]byte, error) { + type NoMethod QueryHistoryResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // QueryRequest: Request payload sent by a physical web client. This // request includes all necessary context to load a particular user // experience record. @@ -557,6 +799,89 @@ func (s *Record) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TimeseriesBin: A bin is a discrete portion of data spanning from +// start to end, or if no end is given, then from start to +inf. A bin's +// start and end values are given in the value type of the metric it +// represents. For example, "first contentful paint" is measured in +// milliseconds and exposed as ints, therefore its metric bins will use +// int32s for its start and end types. However, "cumulative layout +// shift" is measured in unitless decimals and is exposed as a decimal +// encoded as a string, therefore its metric bins will use strings for +// its value type. +type TimeseriesBin struct { + // Densities: The proportion of users that experienced this bin's value + // for the given metric in a given collection period; the index for each + // of these entries corresponds to an entry in the CollectionPeriods + // field in the HistoryRecord message, which describes when the density + // was observed in the field. Thus, the length of this list of densities + // is equal to the length of the CollectionPeriods field in the + // HistoryRecord message. + Densities []float64 `json:"densities,omitempty"` + + // End: End is the end of the data bin. If end is not populated, then + // the bin has no end and is valid from start to +inf. + End interface{} `json:"end,omitempty"` + + // Start: Start is the beginning of the data bin. + Start interface{} `json:"start,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Densities") 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. "Densities") 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 *TimeseriesBin) MarshalJSON() ([]byte, error) { + type NoMethod TimeseriesBin + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TimeseriesPercentiles: Percentiles contains synthetic values of a +// metric at a given statistical percentile. These are used for +// estimating a metric's value as experienced by a percentage of users +// out of the total number of users. +type TimeseriesPercentiles struct { + // P75s: 75% of users experienced the given metric at or below this + // value. The length of this list of densities is equal to the length of + // the CollectionPeriods field in the HistoryRecord message, which + // describes when the density was observed in the field. + P75s []interface{} `json:"p75s,omitempty"` + + // ForceSendFields is a list of field names (e.g. "P75s") 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. "P75s") 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 *TimeseriesPercentiles) MarshalJSON() ([]byte, error) { + type NoMethod TimeseriesPercentiles + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // UrlNormalization: Object representing the normalization actions taken // to normalize a url to achieve a higher chance of successful lookup. // These are simple automated changes that are taken when looking up the @@ -594,6 +919,131 @@ func (s *UrlNormalization) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// method id "chromeuxreport.records.queryHistoryRecord": + +type RecordsQueryHistoryRecordCall struct { + s *Service + queryhistoryrequest *QueryHistoryRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// QueryHistoryRecord: Queries the Chrome User Experience Report for a +// timeseries `history record` for a given site. Returns a `history +// record` that contains one or more `metric timeseries` corresponding +// to performance data about the requested site. +func (r *RecordsService) QueryHistoryRecord(queryhistoryrequest *QueryHistoryRequest) *RecordsQueryHistoryRecordCall { + c := &RecordsQueryHistoryRecordCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.queryhistoryrequest = queryhistoryrequest + 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 *RecordsQueryHistoryRecordCall) Fields(s ...googleapi.Field) *RecordsQueryHistoryRecordCall { + 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 *RecordsQueryHistoryRecordCall) Context(ctx context.Context) *RecordsQueryHistoryRecordCall { + 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 *RecordsQueryHistoryRecordCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RecordsQueryHistoryRecordCall) 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.queryhistoryrequest) + 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, "v1/records:queryHistoryRecord") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "chromeuxreport.records.queryHistoryRecord" call. +// Exactly one of *QueryHistoryResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *QueryHistoryResponse.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 *RecordsQueryHistoryRecordCall) Do(opts ...googleapi.CallOption) (*QueryHistoryResponse, 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 := &QueryHistoryResponse{ + 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": "Queries the Chrome User Experience Report for a timeseries `history record` for a given site. Returns a `history record` that contains one or more `metric timeseries` corresponding to performance data about the requested site.", + // "flatPath": "v1/records:queryHistoryRecord", + // "httpMethod": "POST", + // "id": "chromeuxreport.records.queryHistoryRecord", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1/records:queryHistoryRecord", + // "request": { + // "$ref": "QueryHistoryRequest" + // }, + // "response": { + // "$ref": "QueryHistoryResponse" + // } + // } + +} + // method id "chromeuxreport.records.queryRecord": type RecordsQueryRecordCall struct { diff --git a/cloudasset/v1/cloudasset-api.json b/cloudasset/v1/cloudasset-api.json index 949ae59c262..9007d26938c 100644 --- a/cloudasset/v1/cloudasset-api.json +++ b/cloudasset/v1/cloudasset-api.json @@ -1095,7 +1095,7 @@ } } }, - "revision": "20230128", + "revision": "20230204", "rootUrl": "https://cloudasset.googleapis.com/", "schemas": { "AccessSelector": { @@ -3930,7 +3930,7 @@ "type": "object" }, "ResourceSearchResult": { - "description": "A result of Resource Search, containing information of a cloud resource. Next ID: 31", + "description": "A result of Resource Search, containing information of a cloud resource. Next ID: 32", "id": "ResourceSearchResult", "properties": { "additionalAttributes": { diff --git a/cloudasset/v1/cloudasset-gen.go b/cloudasset/v1/cloudasset-gen.go index 514526685e1..7d1bc3a0a42 100644 --- a/cloudasset/v1/cloudasset-gen.go +++ b/cloudasset/v1/cloudasset-gen.go @@ -5822,7 +5822,7 @@ func (s *Resource) MarshalJSON() ([]byte, error) { } // ResourceSearchResult: A result of Resource Search, containing -// information of a cloud resource. Next ID: 31 +// information of a cloud resource. Next ID: 32 type ResourceSearchResult struct { // AdditionalAttributes: The additional searchable attributes of this // resource. The attributes may vary from one resource type to another. diff --git a/clouddeploy/v1/clouddeploy-api.json b/clouddeploy/v1/clouddeploy-api.json index 671e1711f73..9faa8c66202 100644 --- a/clouddeploy/v1/clouddeploy-api.json +++ b/clouddeploy/v1/clouddeploy-api.json @@ -1339,7 +1339,7 @@ } } }, - "revision": "20230118", + "revision": "20230124", "rootUrl": "https://clouddeploy.googleapis.com/", "schemas": { "AbandonReleaseRequest": { @@ -1439,7 +1439,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/clouddeploy/v1/clouddeploy-gen.go b/clouddeploy/v1/clouddeploy-gen.go index 18d12537df4..395f6e09f90 100644 --- a/clouddeploy/v1/clouddeploy-gen.go +++ b/clouddeploy/v1/clouddeploy-gen.go @@ -433,7 +433,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -450,9 +452,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. diff --git a/cloudfunctions/v2/cloudfunctions-api.json b/cloudfunctions/v2/cloudfunctions-api.json index dac3cc09dcc..8dff53c9f41 100644 --- a/cloudfunctions/v2/cloudfunctions-api.json +++ b/cloudfunctions/v2/cloudfunctions-api.json @@ -344,7 +344,7 @@ "type": "string" }, "pageSize": { - "description": "Maximum number of functions to return per call.", + "description": "Maximum number of functions to return per call. The largest allowed page_size is 1,000, if the page_size is omitted or specified as greater than 1,000 then it will be replaced as 1,000. The size of the list response can be less than specified when used with filters.", "format": "int32", "location": "query", "type": "integer" @@ -571,7 +571,7 @@ } } }, - "revision": "20230126", + "revision": "20230202", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { diff --git a/cloudfunctions/v2/cloudfunctions-gen.go b/cloudfunctions/v2/cloudfunctions-gen.go index 2b305761569..b8b9282d5cf 100644 --- a/cloudfunctions/v2/cloudfunctions-gen.go +++ b/cloudfunctions/v2/cloudfunctions-gen.go @@ -3532,7 +3532,10 @@ func (c *ProjectsLocationsFunctionsListCall) OrderBy(orderBy string) *ProjectsLo } // PageSize sets the optional parameter "pageSize": Maximum number of -// functions to return per call. +// functions to return per call. The largest allowed page_size is 1,000, +// if the page_size is omitted or specified as greater than 1,000 then +// it will be replaced as 1,000. The size of the list response can be +// less than specified when used with filters. func (c *ProjectsLocationsFunctionsListCall) PageSize(pageSize int64) *ProjectsLocationsFunctionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -3665,7 +3668,7 @@ func (c *ProjectsLocationsFunctionsListCall) Do(opts ...googleapi.CallOption) (* // "type": "string" // }, // "pageSize": { - // "description": "Maximum number of functions to return per call.", + // "description": "Maximum number of functions to return per call. The largest allowed page_size is 1,000, if the page_size is omitted or specified as greater than 1,000 then it will be replaced as 1,000. The size of the list response can be less than specified when used with filters.", // "format": "int32", // "location": "query", // "type": "integer" diff --git a/cloudfunctions/v2alpha/cloudfunctions-api.json b/cloudfunctions/v2alpha/cloudfunctions-api.json index 4d41b56f433..6e4801dd985 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-api.json +++ b/cloudfunctions/v2alpha/cloudfunctions-api.json @@ -344,7 +344,7 @@ "type": "string" }, "pageSize": { - "description": "Maximum number of functions to return per call.", + "description": "Maximum number of functions to return per call. The largest allowed page_size is 1,000, if the page_size is omitted or specified as greater than 1,000 then it will be replaced as 1,000. The size of the list response can be less than specified when used with filters.", "format": "int32", "location": "query", "type": "integer" @@ -571,7 +571,7 @@ } } }, - "revision": "20230126", + "revision": "20230202", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { diff --git a/cloudfunctions/v2alpha/cloudfunctions-gen.go b/cloudfunctions/v2alpha/cloudfunctions-gen.go index 6fd364a9dc6..096c227bf84 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-gen.go +++ b/cloudfunctions/v2alpha/cloudfunctions-gen.go @@ -3532,7 +3532,10 @@ func (c *ProjectsLocationsFunctionsListCall) OrderBy(orderBy string) *ProjectsLo } // PageSize sets the optional parameter "pageSize": Maximum number of -// functions to return per call. +// functions to return per call. The largest allowed page_size is 1,000, +// if the page_size is omitted or specified as greater than 1,000 then +// it will be replaced as 1,000. The size of the list response can be +// less than specified when used with filters. func (c *ProjectsLocationsFunctionsListCall) PageSize(pageSize int64) *ProjectsLocationsFunctionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -3665,7 +3668,7 @@ func (c *ProjectsLocationsFunctionsListCall) Do(opts ...googleapi.CallOption) (* // "type": "string" // }, // "pageSize": { - // "description": "Maximum number of functions to return per call.", + // "description": "Maximum number of functions to return per call. The largest allowed page_size is 1,000, if the page_size is omitted or specified as greater than 1,000 then it will be replaced as 1,000. The size of the list response can be less than specified when used with filters.", // "format": "int32", // "location": "query", // "type": "integer" diff --git a/cloudfunctions/v2beta/cloudfunctions-api.json b/cloudfunctions/v2beta/cloudfunctions-api.json index 6836a3c09eb..507326ced76 100644 --- a/cloudfunctions/v2beta/cloudfunctions-api.json +++ b/cloudfunctions/v2beta/cloudfunctions-api.json @@ -344,7 +344,7 @@ "type": "string" }, "pageSize": { - "description": "Maximum number of functions to return per call.", + "description": "Maximum number of functions to return per call. The largest allowed page_size is 1,000, if the page_size is omitted or specified as greater than 1,000 then it will be replaced as 1,000. The size of the list response can be less than specified when used with filters.", "format": "int32", "location": "query", "type": "integer" @@ -571,7 +571,7 @@ } } }, - "revision": "20230126", + "revision": "20230202", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { diff --git a/cloudfunctions/v2beta/cloudfunctions-gen.go b/cloudfunctions/v2beta/cloudfunctions-gen.go index 11318d6ffbc..c3d7e5777d8 100644 --- a/cloudfunctions/v2beta/cloudfunctions-gen.go +++ b/cloudfunctions/v2beta/cloudfunctions-gen.go @@ -3532,7 +3532,10 @@ func (c *ProjectsLocationsFunctionsListCall) OrderBy(orderBy string) *ProjectsLo } // PageSize sets the optional parameter "pageSize": Maximum number of -// functions to return per call. +// functions to return per call. The largest allowed page_size is 1,000, +// if the page_size is omitted or specified as greater than 1,000 then +// it will be replaced as 1,000. The size of the list response can be +// less than specified when used with filters. func (c *ProjectsLocationsFunctionsListCall) PageSize(pageSize int64) *ProjectsLocationsFunctionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -3665,7 +3668,7 @@ func (c *ProjectsLocationsFunctionsListCall) Do(opts ...googleapi.CallOption) (* // "type": "string" // }, // "pageSize": { - // "description": "Maximum number of functions to return per call.", + // "description": "Maximum number of functions to return per call. The largest allowed page_size is 1,000, if the page_size is omitted or specified as greater than 1,000 then it will be replaced as 1,000. The size of the list response can be less than specified when used with filters.", // "format": "int32", // "location": "query", // "type": "integer" diff --git a/cloudiot/v1/cloudiot-api.json b/cloudiot/v1/cloudiot-api.json index f20396b7cad..62e27196bbc 100644 --- a/cloudiot/v1/cloudiot-api.json +++ b/cloudiot/v1/cloudiot-api.json @@ -938,7 +938,7 @@ } } }, - "revision": "20220920", + "revision": "20230131", "rootUrl": "https://cloudiot.googleapis.com/", "schemas": { "BindDeviceToGatewayRequest": { @@ -971,7 +971,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/cloudiot/v1/cloudiot-gen.go b/cloudiot/v1/cloudiot-gen.go index d4444217b5b..a98334cf331 100644 --- a/cloudiot/v1/cloudiot-gen.go +++ b/cloudiot/v1/cloudiot-gen.go @@ -308,7 +308,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -325,9 +327,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. diff --git a/cloudsearch/v1/cloudsearch-api.json b/cloudsearch/v1/cloudsearch-api.json index 739d7820f4c..4da983cdb55 100644 --- a/cloudsearch/v1/cloudsearch-api.json +++ b/cloudsearch/v1/cloudsearch-api.json @@ -2077,7 +2077,7 @@ } } }, - "revision": "20230124", + "revision": "20230131", "rootUrl": "https://cloudsearch.googleapis.com/", "schemas": { "AbuseReportingConfig": { @@ -2384,7 +2384,7 @@ "type": "integer" }, "localId": { - "description": "A unique client-assigned ID for this annotation. This is helpful in matching the back-filled annotations to the original annotations on client side, without having to re-parse the message.", + "description": "* A client-assigned ID for this annotation. This is helpful in matching the back-filled annotations to the original annotations on client side, without having to re-parse the message. There is no guarantee an annotation has a local_id, it's a purely client used and controlled field with no guarantee of uniqueness.", "type": "string" }, "membershipChanged": { @@ -2480,7 +2480,7 @@ "type": "string" }, "uniqueId": { - "description": "A unique server-assigned ID for this annotation. This is helpful in matching annotation objects when fetched from service.", + "description": "* A unique server-assigned ID for this annotation. This is helpful in matching annotation objects when fetched from service. All uploads should have a unique_id after the message they are attached to is successfully sent. Url annotations that originally were uploads (i.e. policy violations) will have a unique_id after the message they are attached to is successfully sent. No other url annotations should have a unique_id. All drive annotations should have a unique_id after the message they are attached to is successfully sent.", "type": "string" }, "uploadMetadata": { @@ -6431,7 +6431,8 @@ "CO_ACTIVITY_APP_KAHOOT", "CO_ACTIVITY_APP_GQUEUES", "CO_ACTIVITY_APP_YOU_TUBE_MUSIC", - "CO_ACTIVITY_APP_SAMSUNG_NOTES" + "CO_ACTIVITY_APP_SAMSUNG_NOTES", + "CO_ACTIVITY_APP_HAPPY_AARDVARK" ], "enumDescriptions": [ "Should never be used.", @@ -6442,7 +6443,8 @@ "Kahoot! educational software.", "GQueues task manager.", "YouTube Music", - "Samsung Notes" + "Samsung Notes", + "." ], "type": "string" } @@ -7559,6 +7561,10 @@ "format": "double", "type": "number" }, + "lastReadTimestampAgeInDays": { + "format": "double", + "type": "number" + }, "messageAgeInDays": { "format": "double", "type": "number" @@ -17558,7 +17564,7 @@ "id": "UploadMetadata", "properties": { "attachmentToken": { - "description": "Opaque token. Clients shall simply pass it back to the Backend. This field will NOT be saved into storage.", + "description": "Opaque token. Clients shall simply pass it back to the Backend. There is no guarantee the attachment_token returned on subsequent reads is the same even if nothing has changed. This field will NOT be saved into storage.", "type": "string" }, "backendUploadMetadata": { diff --git a/cloudsearch/v1/cloudsearch-gen.go b/cloudsearch/v1/cloudsearch-gen.go index 85a58c75571..1d3fe9c9a84 100644 --- a/cloudsearch/v1/cloudsearch-gen.go +++ b/cloudsearch/v1/cloudsearch-gen.go @@ -929,9 +929,11 @@ type Annotation struct { // the Annotation corresponds to. Length int64 `json:"length,omitempty"` - // LocalId: A unique client-assigned ID for this annotation. This is - // helpful in matching the back-filled annotations to the original - // annotations on client side, without having to re-parse the message. + // LocalId: * A client-assigned ID for this annotation. This is helpful + // in matching the back-filled annotations to the original annotations + // on client side, without having to re-parse the message. There is no + // guarantee an annotation has a local_id, it's a purely client used and + // controlled field with no guarantee of uniqueness. LocalId string `json:"localId,omitempty"` // MembershipChanged: Metadata for system messages. Clients should never @@ -1006,8 +1008,14 @@ type Annotation struct { // invite. Should not be set by clients. Type string `json:"type,omitempty"` - // UniqueId: A unique server-assigned ID for this annotation. This is - // helpful in matching annotation objects when fetched from service. + // UniqueId: * A unique server-assigned ID for this annotation. This is + // helpful in matching annotation objects when fetched from service. All + // uploads should have a unique_id after the message they are attached + // to is successfully sent. Url annotations that originally were uploads + // (i.e. policy violations) will have a unique_id after the message they + // are attached to is successfully sent. No other url annotations should + // have a unique_id. All drive annotations should have a unique_id after + // the message they are attached to is successfully sent. UniqueId string `json:"uniqueId,omitempty"` UploadMetadata *UploadMetadata `json:"uploadMetadata,omitempty"` @@ -7157,6 +7165,7 @@ type CoActivity struct { // "CO_ACTIVITY_APP_GQUEUES" - GQueues task manager. // "CO_ACTIVITY_APP_YOU_TUBE_MUSIC" - YouTube Music // "CO_ACTIVITY_APP_SAMSUNG_NOTES" - Samsung Notes + // "CO_ACTIVITY_APP_HAPPY_AARDVARK" - . CoActivityApp string `json:"coActivityApp,omitempty"` // ForceSendFields is a list of field names (e.g. "ActivityTitle") to @@ -9233,6 +9242,8 @@ type DynamiteMessagesScoringInfo struct { JoinedSpaceAffinityScore float64 `json:"joinedSpaceAffinityScore,omitempty"` + LastReadTimestampAgeInDays float64 `json:"lastReadTimestampAgeInDays,omitempty"` + MessageAgeInDays float64 `json:"messageAgeInDays,omitempty"` MessageSenderAffinityScore float64 `json:"messageSenderAffinityScore,omitempty"` @@ -9277,6 +9288,7 @@ func (s *DynamiteMessagesScoringInfo) UnmarshalJSON(data []byte) error { FinalScore gensupport.JSONFloat64 `json:"finalScore"` FreshnessScore gensupport.JSONFloat64 `json:"freshnessScore"` JoinedSpaceAffinityScore gensupport.JSONFloat64 `json:"joinedSpaceAffinityScore"` + LastReadTimestampAgeInDays gensupport.JSONFloat64 `json:"lastReadTimestampAgeInDays"` MessageAgeInDays gensupport.JSONFloat64 `json:"messageAgeInDays"` MessageSenderAffinityScore gensupport.JSONFloat64 `json:"messageSenderAffinityScore"` TopicalityScore gensupport.JSONFloat64 `json:"topicalityScore"` @@ -9292,6 +9304,7 @@ func (s *DynamiteMessagesScoringInfo) UnmarshalJSON(data []byte) error { s.FinalScore = float64(s1.FinalScore) s.FreshnessScore = float64(s1.FreshnessScore) s.JoinedSpaceAffinityScore = float64(s1.JoinedSpaceAffinityScore) + s.LastReadTimestampAgeInDays = float64(s1.LastReadTimestampAgeInDays) s.MessageAgeInDays = float64(s1.MessageAgeInDays) s.MessageSenderAffinityScore = float64(s1.MessageSenderAffinityScore) s.TopicalityScore = float64(s1.TopicalityScore) @@ -24211,7 +24224,9 @@ func (s *UploadItemRef) MarshalJSON() ([]byte, error) { // UploadMetadata: Annotation metadata for user Upload artifacts. type UploadMetadata struct { // AttachmentToken: Opaque token. Clients shall simply pass it back to - // the Backend. This field will NOT be saved into storage. + // the Backend. There is no guarantee the attachment_token returned on + // subsequent reads is the same even if nothing has changed. This field + // will NOT be saved into storage. AttachmentToken string `json:"attachmentToken,omitempty"` // BackendUploadMetadata: Information about the uploaded attachment that diff --git a/cloudtasks/v2/cloudtasks-api.json b/cloudtasks/v2/cloudtasks-api.json index 4c8f5a70e84..83331efe030 100644 --- a/cloudtasks/v2/cloudtasks-api.json +++ b/cloudtasks/v2/cloudtasks-api.json @@ -685,7 +685,7 @@ } } }, - "revision": "20220825", + "revision": "20230201", "rootUrl": "https://cloudtasks.googleapis.com/", "schemas": { "AppEngineHttpRequest": { @@ -797,7 +797,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/cloudtasks/v2/cloudtasks-gen.go b/cloudtasks/v2/cloudtasks-gen.go index 1b190cad17b..45e6deb327d 100644 --- a/cloudtasks/v2/cloudtasks-gen.go +++ b/cloudtasks/v2/cloudtasks-gen.go @@ -467,7 +467,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -484,9 +486,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. diff --git a/cloudtasks/v2beta2/cloudtasks-api.json b/cloudtasks/v2beta2/cloudtasks-api.json index 0644f723fa8..ee7ad3447c7 100644 --- a/cloudtasks/v2beta2/cloudtasks-api.json +++ b/cloudtasks/v2beta2/cloudtasks-api.json @@ -876,7 +876,7 @@ } } }, - "revision": "20230105", + "revision": "20230201", "rootUrl": "https://cloudtasks.googleapis.com/", "schemas": { "AcknowledgeTaskRequest": { @@ -1011,7 +1011,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, @@ -1215,7 +1215,7 @@ "additionalProperties": { "type": "string" }, - "description": "HTTP request headers. This map contains the header field names and values. Headers can be set when running the task is created or task is created. These headers represent a subset of the headers that will accompany the task's HTTP request. Some HTTP request headers will be ignored or replaced. A partial list of headers that will be ignored or replaced is: * Any header that is prefixed with \"X-Google-Cloud-Tasks-\" will be treated as service header. Service headers define properties of the task and are predefined in CloudTask. * Host: This will be computed by Cloud Tasks and derived from HttpRequest.url. * Content-Length: This will be computed by Cloud Tasks. * User-Agent: This will be set to `\"Google-Cloud-Tasks\"`. * `X-Google-*`: Google use only. * `X-AppEngine-*`: Google use only. `Content-Type` won't be set by Cloud Tasks. You can explicitly set `Content-Type` to a media type when the task is created. For example, `Content-Type` can be set to `\"application/octet-stream\"` or `\"application/json\"`. Headers which can have multiple values (according to RFC2616) can be specified using comma-separated values. The size of the headers must be less than 80KB.", + "description": "HTTP request headers. This map contains the header field names and values. Headers can be set when running the task is created or task is created. These headers represent a subset of the headers that will accompany the task's HTTP request. Some HTTP request headers will be ignored or replaced. A partial list of headers that will be ignored or replaced is: * Any header that is prefixed with \"X-CloudTasks-\" will be treated as service header. Service headers define properties of the task and are predefined in CloudTask. * Host: This will be computed by Cloud Tasks and derived from HttpRequest.url. * Content-Length: This will be computed by Cloud Tasks. * User-Agent: This will be set to `\"Google-Cloud-Tasks\"`. * `X-Google-*`: Google use only. * `X-AppEngine-*`: Google use only. `Content-Type` won't be set by Cloud Tasks. You can explicitly set `Content-Type` to a media type when the task is created. For example, `Content-Type` can be set to `\"application/octet-stream\"` or `\"application/json\"`. Headers which can have multiple values (according to RFC2616) can be specified using comma-separated values. The size of the headers must be less than 80KB.", "type": "object" }, "httpMethod": { @@ -1262,7 +1262,7 @@ "id": "HttpTarget", "properties": { "headerOverrides": { - "description": "HTTP target headers. This map contains the header field names and values. Headers will be set when running the task is created and/or task is created. These headers represent a subset of the headers that will accompany the task's HTTP request. Some HTTP request headers will be ignored or replaced. A partial list of headers that will be ignored or replaced is: * Any header that is prefixed with \"X-Google-Cloud-Tasks-\" will be treated as service header. Service headers define properties of the task and are predefined in CloudTask. * Host: This will be computed by Cloud Tasks and derived from HttpRequest.url. * Content-Length: This will be computed by Cloud Tasks. * User-Agent: This will be set to `\"Google-Cloud-Tasks\"`. * `X-Google-*`: Google use only. * `X-AppEngine-*`: Google use only. `Content-Type` won't be set by Cloud Tasks. You can explicitly set `Content-Type` to a media type when the task is created. For example, `Content-Type` can be set to `\"application/octet-stream\"` or `\"application/json\"`. Headers which can have multiple values (according to RFC2616) can be specified using comma-separated values. The size of the headers must be less than 80KB. Queue-level headers to override headers of all the tasks in the queue.", + "description": "HTTP target headers. This map contains the header field names and values. Headers will be set when running the task is created and/or task is created. These headers represent a subset of the headers that will accompany the task's HTTP request. Some HTTP request headers will be ignored or replaced. A partial list of headers that will be ignored or replaced is: * Any header that is prefixed with \"X-CloudTasks-\" will be treated as service header. Service headers define properties of the task and are predefined in CloudTask. * Host: This will be computed by Cloud Tasks and derived from HttpRequest.url. * Content-Length: This will be computed by Cloud Tasks. * User-Agent: This will be set to `\"Google-CloudTasks\"`. * `X-Google-*`: Google use only. * `X-AppEngine-*`: Google use only. `Content-Type` won't be set by Cloud Tasks. You can explicitly set `Content-Type` to a media type when the task is created. For example, `Content-Type` can be set to `\"application/octet-stream\"` or `\"application/json\"`. Headers which can have multiple values (according to RFC2616) can be specified using comma-separated values. The size of the headers must be less than 80KB. Queue-level headers to override headers of all the tasks in the queue.", "items": { "$ref": "HeaderOverride" }, diff --git a/cloudtasks/v2beta2/cloudtasks-gen.go b/cloudtasks/v2beta2/cloudtasks-gen.go index e461e39f377..e1ad12403d2 100644 --- a/cloudtasks/v2beta2/cloudtasks-gen.go +++ b/cloudtasks/v2beta2/cloudtasks-gen.go @@ -578,7 +578,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -595,9 +597,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. @@ -1084,19 +1084,18 @@ type HttpRequest struct { // that will accompany the task's HTTP request. Some HTTP request // headers will be ignored or replaced. A partial list of headers that // will be ignored or replaced is: * Any header that is prefixed with - // "X-Google-Cloud-Tasks-" will be treated as service header. Service - // headers define properties of the task and are predefined in - // CloudTask. * Host: This will be computed by Cloud Tasks and derived - // from HttpRequest.url. * Content-Length: This will be computed by - // Cloud Tasks. * User-Agent: This will be set to - // "Google-Cloud-Tasks". * `X-Google-*`: Google use only. * - // `X-AppEngine-*`: Google use only. `Content-Type` won't be set by - // Cloud Tasks. You can explicitly set `Content-Type` to a media type - // when the task is created. For example, `Content-Type` can be set to - // "application/octet-stream" or "application/json". Headers which - // can have multiple values (according to RFC2616) can be specified - // using comma-separated values. The size of the headers must be less - // than 80KB. + // "X-CloudTasks-" will be treated as service header. Service headers + // define properties of the task and are predefined in CloudTask. * + // Host: This will be computed by Cloud Tasks and derived from + // HttpRequest.url. * Content-Length: This will be computed by Cloud + // Tasks. * User-Agent: This will be set to "Google-Cloud-Tasks". * + // `X-Google-*`: Google use only. * `X-AppEngine-*`: Google use only. + // `Content-Type` won't be set by Cloud Tasks. You can explicitly set + // `Content-Type` to a media type when the task is created. For example, + // `Content-Type` can be set to "application/octet-stream" or + // "application/json". Headers which can have multiple values + // (according to RFC2616) can be specified using comma-separated values. + // The size of the headers must be less than 80KB. Headers map[string]string `json:"headers,omitempty"` // HttpMethod: The HTTP method to use for the request. The default is @@ -1169,20 +1168,19 @@ type HttpTarget struct { // the headers that will accompany the task's HTTP request. Some HTTP // request headers will be ignored or replaced. A partial list of // headers that will be ignored or replaced is: * Any header that is - // prefixed with "X-Google-Cloud-Tasks-" will be treated as service - // header. Service headers define properties of the task and are - // predefined in CloudTask. * Host: This will be computed by Cloud Tasks - // and derived from HttpRequest.url. * Content-Length: This will be - // computed by Cloud Tasks. * User-Agent: This will be set to - // "Google-Cloud-Tasks". * `X-Google-*`: Google use only. * - // `X-AppEngine-*`: Google use only. `Content-Type` won't be set by - // Cloud Tasks. You can explicitly set `Content-Type` to a media type - // when the task is created. For example, `Content-Type` can be set to - // "application/octet-stream" or "application/json". Headers which - // can have multiple values (according to RFC2616) can be specified - // using comma-separated values. The size of the headers must be less - // than 80KB. Queue-level headers to override headers of all the tasks - // in the queue. + // prefixed with "X-CloudTasks-" will be treated as service header. + // Service headers define properties of the task and are predefined in + // CloudTask. * Host: This will be computed by Cloud Tasks and derived + // from HttpRequest.url. * Content-Length: This will be computed by + // Cloud Tasks. * User-Agent: This will be set to "Google-CloudTasks". + // * `X-Google-*`: Google use only. * `X-AppEngine-*`: Google use only. + // `Content-Type` won't be set by Cloud Tasks. You can explicitly set + // `Content-Type` to a media type when the task is created. For example, + // `Content-Type` can be set to "application/octet-stream" or + // "application/json". Headers which can have multiple values + // (according to RFC2616) can be specified using comma-separated values. + // The size of the headers must be less than 80KB. Queue-level headers + // to override headers of all the tasks in the queue. HeaderOverrides []*HeaderOverride `json:"headerOverrides,omitempty"` // HttpMethod: The HTTP method to use for the request. When specified, diff --git a/cloudtasks/v2beta3/cloudtasks-api.json b/cloudtasks/v2beta3/cloudtasks-api.json index c86e6aad5be..ef10339fd35 100644 --- a/cloudtasks/v2beta3/cloudtasks-api.json +++ b/cloudtasks/v2beta3/cloudtasks-api.json @@ -732,7 +732,7 @@ } } }, - "revision": "20230105", + "revision": "20230201", "rootUrl": "https://cloudtasks.googleapis.com/", "schemas": { "AppEngineHttpQueue": { @@ -855,7 +855,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, @@ -1033,7 +1033,7 @@ "additionalProperties": { "type": "string" }, - "description": "HTTP request headers. This map contains the header field names and values. Headers can be set when the task is created. These headers represent a subset of the headers that will accompany the task's HTTP request. Some HTTP request headers will be ignored or replaced. A partial list of headers that will be ignored or replaced is: * Host: This will be computed by Cloud Tasks and derived from HttpRequest.url. * Content-Length: This will be computed by Cloud Tasks. * User-Agent: This will be set to `\"Google-Cloud-Tasks\"`. * `X-Google-*`: Google use only. * `X-AppEngine-*`: Google use only. `Content-Type` won't be set by Cloud Tasks. You can explicitly set `Content-Type` to a media type when the task is created. For example, `Content-Type` can be set to `\"application/octet-stream\"` or `\"application/json\"`. Headers which can have multiple values (according to RFC2616) can be specified using comma-separated values. The size of the headers must be less than 80KB.", + "description": "HTTP request headers. This map contains the header field names and values. Headers can be set when the task is created. These headers represent a subset of the headers that will accompany the task's HTTP request. Some HTTP request headers will be ignored or replaced. A partial list of headers that will be ignored or replaced is: * Any header that is prefixed with \"X-CloudTasks-\" will be treated as service header. Service headers define properties of the task and are predefined in CloudTask. * Host: This will be computed by Cloud Tasks and derived from HttpRequest.url. * Content-Length: This will be computed by Cloud Tasks. * User-Agent: This will be set to `\"Google-Cloud-Tasks\"`. * `X-Google-*`: Google use only. * `X-AppEngine-*`: Google use only. `Content-Type` won't be set by Cloud Tasks. You can explicitly set `Content-Type` to a media type when the task is created. For example, `Content-Type` can be set to `\"application/octet-stream\"` or `\"application/json\"`. Headers which can have multiple values (according to RFC2616) can be specified using comma-separated values. The size of the headers must be less than 80KB.", "type": "object" }, "httpMethod": { @@ -1080,7 +1080,7 @@ "id": "HttpTarget", "properties": { "headerOverrides": { - "description": "HTTP target headers. This map contains the header field names and values. Headers will be set when running the CreateTask and/or BufferTask. These headers represent a subset of the headers that will be configured for the task's HTTP request. Some HTTP request headers will be ignored or replaced. A partial list of headers that will be ignored or replaced is: * Several predefined headers, prefixed with \"X-Google-Cloud-Tasks-\", can be used to define properties of the task. * Host: This will be computed by Cloud Tasks and derived from HttpRequest.url. * Content-Length: This will be computed by Cloud Tasks. `Content-Type` won't be set by Cloud Tasks. You can explicitly set `Content-Type` to a media type when the task is created. For example,`Content-Type` can be set to `\"application/octet-stream\"` or `\"application/json\"`. The default value is set to \"application/json\"`. * User-Agent: This will be set to `\"Google-Cloud-Tasks\"`. Headers which can have multiple values (according to RFC2616) can be specified using comma-separated values. The size of the headers must be less than 80KB. Queue-level headers to override headers of all the tasks in the queue.", + "description": "HTTP target headers. This map contains the header field names and values. Headers will be set when running the CreateTask and/or BufferTask. These headers represent a subset of the headers that will be configured for the task's HTTP request. Some HTTP request headers will be ignored or replaced. A partial list of headers that will be ignored or replaced is: * Several predefined headers, prefixed with \"X-CloudTasks-\", can be used to define properties of the task. * Host: This will be computed by Cloud Tasks and derived from HttpRequest.url. * Content-Length: This will be computed by Cloud Tasks. `Content-Type` won't be set by Cloud Tasks. You can explicitly set `Content-Type` to a media type when the task is created. For example,`Content-Type` can be set to `\"application/octet-stream\"` or `\"application/json\"`. The default value is set to \"application/json\"`. * User-Agent: This will be set to `\"Google-Cloud-Tasks\"`. Headers which can have multiple values (according to RFC2616) can be specified using comma-separated values. The size of the headers must be less than 80KB. Queue-level headers to override headers of all the tasks in the queue.", "items": { "$ref": "HeaderOverride" }, diff --git a/cloudtasks/v2beta3/cloudtasks-gen.go b/cloudtasks/v2beta3/cloudtasks-gen.go index 6b9aef2e2e4..4d2b081a1c9 100644 --- a/cloudtasks/v2beta3/cloudtasks-gen.go +++ b/cloudtasks/v2beta3/cloudtasks-gen.go @@ -502,7 +502,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -519,9 +521,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. @@ -969,16 +969,19 @@ type HttpRequest struct { // headers represent a subset of the headers that will accompany the // task's HTTP request. Some HTTP request headers will be ignored or // replaced. A partial list of headers that will be ignored or replaced - // is: * Host: This will be computed by Cloud Tasks and derived from - // HttpRequest.url. * Content-Length: This will be computed by Cloud - // Tasks. * User-Agent: This will be set to "Google-Cloud-Tasks". * - // `X-Google-*`: Google use only. * `X-AppEngine-*`: Google use only. - // `Content-Type` won't be set by Cloud Tasks. You can explicitly set - // `Content-Type` to a media type when the task is created. For example, - // `Content-Type` can be set to "application/octet-stream" or - // "application/json". Headers which can have multiple values - // (according to RFC2616) can be specified using comma-separated values. - // The size of the headers must be less than 80KB. + // is: * Any header that is prefixed with "X-CloudTasks-" will be + // treated as service header. Service headers define properties of the + // task and are predefined in CloudTask. * Host: This will be computed + // by Cloud Tasks and derived from HttpRequest.url. * Content-Length: + // This will be computed by Cloud Tasks. * User-Agent: This will be set + // to "Google-Cloud-Tasks". * `X-Google-*`: Google use only. * + // `X-AppEngine-*`: Google use only. `Content-Type` won't be set by + // Cloud Tasks. You can explicitly set `Content-Type` to a media type + // when the task is created. For example, `Content-Type` can be set to + // "application/octet-stream" or "application/json". Headers which + // can have multiple values (according to RFC2616) can be specified + // using comma-separated values. The size of the headers must be less + // than 80KB. Headers map[string]string `json:"headers,omitempty"` // HttpMethod: The HTTP method to use for the request. The default is @@ -1051,7 +1054,7 @@ type HttpTarget struct { // headers that will be configured for the task's HTTP request. Some // HTTP request headers will be ignored or replaced. A partial list of // headers that will be ignored or replaced is: * Several predefined - // headers, prefixed with "X-Google-Cloud-Tasks-", can be used to define + // headers, prefixed with "X-CloudTasks-", can be used to define // properties of the task. * Host: This will be computed by Cloud Tasks // and derived from HttpRequest.url. * Content-Length: This will be // computed by Cloud Tasks. `Content-Type` won't be set by Cloud Tasks. diff --git a/compute/v0.alpha/compute-api.json b/compute/v0.alpha/compute-api.json index 0bc01aaead6..8c6be73a277 100644 --- a/compute/v0.alpha/compute-api.json +++ b/compute/v0.alpha/compute-api.json @@ -8260,7 +8260,7 @@ "type": "string" }, "zone": { - "description": "The name of the zone where the managed instance group and the resize request are located. Name should conform to RFC1035.", + "description": "Name of the href=\"/compute/docs/regions-zones/#available\"\u003ezone scoping this request. Name should conform to RFC1035.", "location": "path", "required": true, "type": "string" @@ -40433,7 +40433,7 @@ } } }, - "revision": "20230119", + "revision": "20230201", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -40880,7 +40880,7 @@ "id": "AccessConfig", "properties": { "externalIpv6": { - "description": "The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically.", + "description": "The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, GCP will automatically assign an external IPv6 address from the instance's subnetwork.", "type": "string" }, "externalIpv6PrefixLength": { @@ -41568,10 +41568,12 @@ "description": "The VM family that all instances scheduled against this reservation must belong to.", "enum": [ "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P", + "VM_FAMILY_COMPUTE_OPTIMIZED_C3", "VM_FAMILY_GENERAL_PURPOSE_T2D", "VM_FAMILY_MEMORY_OPTIMIZED_M3" ], "enumDescriptions": [ + "", "", "", "" @@ -44569,7 +44571,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, @@ -44966,7 +44968,7 @@ ], "enumDescriptions": [ "", - "", + "Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.", "", "", "" @@ -44983,6 +44985,7 @@ "ACCELERATOR_OPTIMIZED", "COMPUTE_OPTIMIZED", "COMPUTE_OPTIMIZED_C2D", + "COMPUTE_OPTIMIZED_C3", "GENERAL_PURPOSE", "GENERAL_PURPOSE_E2", "GENERAL_PURPOSE_N2", @@ -45005,6 +45008,7 @@ "", "", "", + "", "" ], "type": "string" @@ -47314,6 +47318,10 @@ "ipAddress": { "description": "IP address of the interface in the external VPN gateway. Only IPv4 is supported. This IP address can be either from your on-premise gateway or another Cloud provider's VPN gateway, it cannot be an IP address from Google Compute Engine.", "type": "string" + }, + "ipv6Address": { + "description": "IPv6 address of the interface in the external VPN gateway. This IPv6 address can be either from your on-premise gateway or another Cloud provider's VPN gateway, it cannot be an IP address from Google Compute Engine. Must specify an IPv6 address (not IPV4-mapped) using any format described in RFC 4291 (e.g. 2001:db8:0:0:2d9:51:0:0). The output format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).", + "type": "string" } }, "type": "object" @@ -48097,6 +48105,10 @@ "type": "string" }, "type": "array" + }, + "tlsInspect": { + "description": "Boolean flag indicating if the traffic should be TLS decrypted. Can be set only if action = 'apply_security_profile_group' and cannot be set for other actions.", + "type": "boolean" } }, "type": "object" @@ -52266,11 +52278,6 @@ "type": "string" }, "machineType": { - "annotations": { - "required": [ - "compute.instances.insert" - ] - }, "description": "Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type. This is provided by the client when the instance is created. For example, the following is a valid partial url to a predefined machine type: zones/us-central1-f/machineTypes/n1-standard-1 To create a custom machine type, provide a URL to a machine type in the following format, where CPUS is 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total memory for this instance. Memory must be a multiple of 256 MB and must be supplied in MB (e.g. 5 GB of memory is 5120 MB): zones/zone/machineTypes/custom-CPUS-MEMORY For example: zones/us-central1-f/machineTypes/custom-4-5120 For a full list of restrictions, read the Specifications for custom machine types.", "type": "string" }, @@ -53636,7 +53643,7 @@ "description": "[Output only] Status of the request. The Status message is aligned with QueuedResource.status. ResizeRequest.queuing_policy contains the queuing policy as provided by the user; it could have either valid_until_time or valid_until_duration. ResizeRequest.status.queuing_policy always contains absolute time as calculated by the server when the request is queued." }, "zone": { - "description": "[Output Only] The URL of a zone where the resize request is located.", + "description": "[Output Only] The URL of a zone where the resize request is located. Populated only for zonal resize requests.", "type": "string" } }, @@ -62334,7 +62341,7 @@ "type": "string" }, "ipv6Address": { - "description": "An IPv6 internal network address for this network interface.", + "description": "An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance's zone. If not specified, GCP will automatically assign an internal IPv6 address from the instance's subnetwork.", "type": "string" }, "kind": { @@ -72209,6 +72216,18 @@ "$ref": "RouterBgpPeerBfd", "description": "BFD configuration for the BGP peering." }, + "customLearnedIpRanges": { + "description": "User-defined Custom Learned Route IP range list for a BGP session.", + "items": { + "$ref": "RouterBgpPeerCustomLearnedIpRange" + }, + "type": "array" + }, + "customLearnedRoutePriority": { + "description": "User-defined Custom Learned Route Priority for a BGP session. This will be applied to all Custom Learned Route ranges of the BGP session, if not given, google-managed priority of 100 is used.", + "format": "int32", + "type": "integer" + }, "enable": { "description": "The status of the BGP peer connection. If set to FALSE, any active session with the peer is terminated and all associated routing information is removed. If set to TRUE, the peer connection can be established with routing information. The default is TRUE.", "enum": [ @@ -72354,6 +72373,16 @@ }, "type": "object" }, + "RouterBgpPeerCustomLearnedIpRange": { + "id": "RouterBgpPeerCustomLearnedIpRange", + "properties": { + "range": { + "description": "The Custom Learned Route IP range. Must be a valid CIDR-formatted prefix. If an IP is provided without a subnet mask, it is interpreted as a /32 singular IP range for IPv4, and /128 for IPv6.", + "type": "string" + } + }, + "type": "object" + }, "RouterInterface": { "id": "RouterInterface", "properties": { @@ -74018,7 +74047,7 @@ "type": "string" }, "type": { - "description": "The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. This field can be set only at resource creation time.", + "description": "The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.", "enum": [ "CLOUD_ARMOR", "CLOUD_ARMOR_EDGE", @@ -82676,6 +82705,18 @@ "description": "An optional description of this resource. Provide this property when you create the resource.", "type": "string" }, + "gatewayIpVersion": { + "description": "The IP family of the gateway IPs for the HA-VPN gateway interfaces. If not specified, IPV4 will be used.", + "enum": [ + "IPV4", + "IPV6" + ], + "enumDescriptions": [ + "Every HA-VPN gateway interface is configured with an IPv4 address.", + "Every HA-VPN gateway interface is configured with an IPv6 address." + ], + "type": "string" + }, "id": { "description": "[Output Only] The unique identifier for the resource. This identifier is defined by the server.", "format": "uint64", @@ -82687,7 +82728,7 @@ "type": "string" }, "labelFingerprint": { - "description": "A fingerprint for the labels being applied to this VpnGateway, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an VpnGateway.", + "description": "A fingerprint for the labels being applied to this VpnGateway, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a VpnGateway.", "format": "byte", "type": "string" }, @@ -83099,6 +83140,10 @@ "ipAddress": { "description": "[Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.", "type": "string" + }, + "ipv6Address": { + "description": "[Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).", + "type": "string" } }, "type": "object" diff --git a/compute/v0.alpha/compute-gen.go b/compute/v0.alpha/compute-gen.go index 6e0f645a10b..8ca5d7df8c6 100644 --- a/compute/v0.alpha/compute-gen.go +++ b/compute/v0.alpha/compute-gen.go @@ -2056,9 +2056,10 @@ func (s *AcceleratorTypesScopedListWarningData) MarshalJSON() ([]byte, error) { type AccessConfig struct { // ExternalIpv6: The first IPv6 address of the external IPv6 range // associated with this instance, prefix length is stored in - // externalIpv6PrefixLength in ipv6AccessConfig. The field is output - // only, an IPv6 address from a subnetwork associated with the instance - // will be allocated dynamically. + // externalIpv6PrefixLength in ipv6AccessConfig. To use a static + // external IP address, it must be unused and in the same region as the + // instance's zone. If not specified, GCP will automatically assign an + // external IPv6 address from the instance's subnetwork. ExternalIpv6 string `json:"externalIpv6,omitempty"` // ExternalIpv6PrefixLength: The prefix length of the external IPv6 @@ -3042,6 +3043,7 @@ type AllocationAggregateReservation struct { // // Possible values: // "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P" + // "VM_FAMILY_COMPUTE_OPTIMIZED_C3" // "VM_FAMILY_GENERAL_PURPOSE_T2D" // "VM_FAMILY_MEMORY_OPTIMIZED_M3" VmFamily string `json:"vmFamily,omitempty"` @@ -7963,7 +7965,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -7980,9 +7984,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. @@ -8595,7 +8597,8 @@ type Commitment struct { // // Possible values: // "ACTIVE" - // "CANCELLED" + // "CANCELLED" - Deprecate CANCELED status. Will use separate status + // to differentiate cancel by mergeCud or manual cancellation. // "CREATING" // "EXPIRED" // "NOT_YET_ACTIVE" @@ -8615,6 +8618,7 @@ type Commitment struct { // "ACCELERATOR_OPTIMIZED" // "COMPUTE_OPTIMIZED" // "COMPUTE_OPTIMIZED_C2D" + // "COMPUTE_OPTIMIZED_C3" // "GENERAL_PURPOSE" // "GENERAL_PURPOSE_E2" // "GENERAL_PURPOSE_N2" @@ -12454,6 +12458,15 @@ type ExternalVpnGatewayInterface struct { // be an IP address from Google Compute Engine. IpAddress string `json:"ipAddress,omitempty"` + // Ipv6Address: IPv6 address of the interface in the external VPN + // gateway. This IPv6 address can be either from your on-premise gateway + // or another Cloud provider's VPN gateway, it cannot be an IP address + // from Google Compute Engine. Must specify an IPv6 address (not + // IPV4-mapped) using any format described in RFC 4291 (e.g. + // 2001:db8:0:0:2d9:51:0:0). The output format is RFC 5952 format (e.g. + // 2001:db8::2d9:51:0:0). + Ipv6Address string `json:"ipv6Address,omitempty"` + // ForceSendFields is a list of field names (e.g. "Id") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -13669,6 +13682,11 @@ type FirewallPolicyRule struct { // of instances that are applied with this rule. TargetServiceAccounts []string `json:"targetServiceAccounts,omitempty"` + // TlsInspect: Boolean flag indicating if the traffic should be TLS + // decrypted. Can be set only if action = 'apply_security_profile_group' + // and cannot be set for other actions. + TlsInspect bool `json:"tlsInspect,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` @@ -22341,7 +22359,7 @@ type InstanceGroupManagerResizeRequest struct { Status *InstanceGroupManagerResizeRequestStatus `json:"status,omitempty"` // Zone: [Output Only] The URL of a zone where the resize request is - // located. + // located. Populated only for zonal resize requests. Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -36332,7 +36350,10 @@ type NetworkInterface struct { Ipv6AccessType string `json:"ipv6AccessType,omitempty"` // Ipv6Address: An IPv6 internal network address for this network - // interface. + // interface. To use a static internal IP address, it must be unused and + // in the same region as the instance's zone. If not specified, GCP will + // automatically assign an internal IPv6 address from the instance's + // subnetwork. Ipv6Address string `json:"ipv6Address,omitempty"` // Kind: [Output Only] Type of the resource. Always @@ -51608,6 +51629,16 @@ type RouterBgpPeer struct { // Bfd: BFD configuration for the BGP peering. Bfd *RouterBgpPeerBfd `json:"bfd,omitempty"` + // CustomLearnedIpRanges: User-defined Custom Learned Route IP range + // list for a BGP session. + CustomLearnedIpRanges []*RouterBgpPeerCustomLearnedIpRange `json:"customLearnedIpRanges,omitempty"` + + // CustomLearnedRoutePriority: User-defined Custom Learned Route + // Priority for a BGP session. This will be applied to all Custom + // Learned Route ranges of the BGP session, if not given, google-managed + // priority of 100 is used. + CustomLearnedRoutePriority int64 `json:"customLearnedRoutePriority,omitempty"` + // Enable: The status of the BGP peer connection. If set to FALSE, any // active session with the peer is terminated and all associated routing // information is removed. If set to TRUE, the peer connection can be @@ -51804,6 +51835,36 @@ func (s *RouterBgpPeerBfd) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type RouterBgpPeerCustomLearnedIpRange struct { + // Range: The Custom Learned Route IP range. Must be a valid + // CIDR-formatted prefix. If an IP is provided without a subnet mask, it + // is interpreted as a /32 singular IP range for IPv4, and /128 for + // IPv6. + Range string `json:"range,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Range") 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. "Range") 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 *RouterBgpPeerCustomLearnedIpRange) MarshalJSON() ([]byte, error) { + type NoMethod RouterBgpPeerCustomLearnedIpRange + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type RouterInterface struct { // IpRange: IP address and range of the interface. The IP range must be // in the RFC3927 link-local IP address space. The value must be a @@ -54108,7 +54169,12 @@ type SecurityPolicy struct { // internal service policies can be configured to filter HTTP requests // targeting services managed by Traffic Director in a service mesh. // They filter requests before the request is served from the - // application. This field can be set only at resource creation time. + // application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can + // be configured to filter packets targeting network load balancing + // resources such as backend services, target pools, target instances, + // and instances with external IPs. They filter requests before the + // request is served from the application. This field can be set only at + // resource creation time. // // Possible values: // "CLOUD_ARMOR" @@ -68019,6 +68085,16 @@ type VpnGateway struct { // property when you create the resource. Description string `json:"description,omitempty"` + // GatewayIpVersion: The IP family of the gateway IPs for the HA-VPN + // gateway interfaces. If not specified, IPV4 will be used. + // + // Possible values: + // "IPV4" - Every HA-VPN gateway interface is configured with an IPv4 + // address. + // "IPV6" - Every HA-VPN gateway interface is configured with an IPv6 + // address. + GatewayIpVersion string `json:"gatewayIpVersion,omitempty"` + // Id: [Output Only] The unique identifier for the resource. This // identifier is defined by the server. Id uint64 `json:"id,omitempty,string"` @@ -68034,7 +68110,7 @@ type VpnGateway struct { // You must always provide an up-to-date fingerprint hash in order to // update or change labels, otherwise the request will fail with error // 412 conditionNotMet. To see the latest fingerprint, make a get() - // request to retrieve an VpnGateway. + // request to retrieve a VpnGateway. LabelFingerprint string `json:"labelFingerprint,omitempty"` // Labels: Labels for this resource. These can only be added or modified @@ -68674,6 +68750,12 @@ type VpnGatewayVpnGatewayInterface struct { // address must be a regional external IP address. IpAddress string `json:"ipAddress,omitempty"` + // Ipv6Address: [Output Only] IPv6 address for this VPN interface + // associated with the VPN gateway. The IPv6 address must be a regional + // external IPv6 address. The format is RFC 5952 format (e.g. + // 2001:db8::2d9:51:0:0). + Ipv6Address string `json:"ipv6Address,omitempty"` + // ForceSendFields is a list of field names (e.g. "Id") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -105705,8 +105787,9 @@ type InstanceGroupManagerResizeRequestsGetCall struct { // - project: Project ID for this request. // - resizeRequest: The name of the resize request. Name should conform // to RFC1035 or be a resource ID. -// - zone: The name of the zone where the managed instance group and the -// resize request are located. Name should conform to RFC1035. +// - zone: Name of the +// href="/compute/docs/regions-zones/#available">zone scoping this +// request. Name should conform to RFC1035. func (r *InstanceGroupManagerResizeRequestsService) Get(project string, zone string, instanceGroupManager string, resizeRequest string) *InstanceGroupManagerResizeRequestsGetCall { c := &InstanceGroupManagerResizeRequestsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -105850,7 +105933,7 @@ func (c *InstanceGroupManagerResizeRequestsGetCall) Do(opts ...googleapi.CallOpt // "type": "string" // }, // "zone": { - // "description": "The name of the zone where the managed instance group and the resize request are located. Name should conform to RFC1035.", + // "description": "Name of the href=\"/compute/docs/regions-zones/#available\"\u003ezone scoping this request. Name should conform to RFC1035.", // "location": "path", // "required": true, // "type": "string" diff --git a/compute/v0.beta/compute-api.json b/compute/v0.beta/compute-api.json index 3d458683284..d54087ce604 100644 --- a/compute/v0.beta/compute-api.json +++ b/compute/v0.beta/compute-api.json @@ -36022,7 +36022,7 @@ } } }, - "revision": "20230119", + "revision": "20230201", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -36465,7 +36465,7 @@ "id": "AccessConfig", "properties": { "externalIpv6": { - "description": "The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically.", + "description": "The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, GCP will automatically assign an external IPv6 address from the instance's subnetwork.", "type": "string" }, "externalIpv6PrefixLength": { @@ -39839,7 +39839,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, @@ -40129,7 +40129,7 @@ ], "enumDescriptions": [ "", - "", + "Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.", "", "", "" @@ -40146,6 +40146,7 @@ "ACCELERATOR_OPTIMIZED", "COMPUTE_OPTIMIZED", "COMPUTE_OPTIMIZED_C2D", + "COMPUTE_OPTIMIZED_C3", "GENERAL_PURPOSE", "GENERAL_PURPOSE_E2", "GENERAL_PURPOSE_N2", @@ -40166,6 +40167,7 @@ "", "", "", + "", "" ], "type": "string" @@ -46309,11 +46311,6 @@ "type": "string" }, "machineType": { - "annotations": { - "required": [ - "compute.instances.insert" - ] - }, "description": "Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type. This is provided by the client when the instance is created. For example, the following is a valid partial url to a predefined machine type: zones/us-central1-f/machineTypes/n1-standard-1 To create a custom machine type, provide a URL to a machine type in the following format, where CPUS is 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total memory for this instance. Memory must be a multiple of 256 MB and must be supplied in MB (e.g. 5 GB of memory is 5120 MB): zones/zone/machineTypes/custom-CPUS-MEMORY For example: zones/us-central1-f/machineTypes/custom-4-5120 For a full list of restrictions, read the Specifications for custom machine types.", "type": "string" }, @@ -54168,7 +54165,7 @@ "type": "string" }, "ipv6Address": { - "description": "An IPv6 internal network address for this network interface.", + "description": "An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance's zone. If not specified, GCP will automatically assign an internal IPv6 address from the instance's subnetwork.", "type": "string" }, "kind": { @@ -61435,6 +61432,11 @@ ], "type": "string" }, + "maxDistance": { + "description": "Specifies the number of max logical switches.", + "format": "int32", + "type": "integer" + }, "vmCount": { "description": "Number of VMs in this placement group. Google does not recommend that you use this field unless you use a compact policy and you want your policy to work only if it contains this exact number of VMs.", "format": "int32", @@ -64243,7 +64245,7 @@ "type": "string" }, "type": { - "description": "The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. This field can be set only at resource creation time.", + "description": "The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.", "enum": [ "CLOUD_ARMOR", "CLOUD_ARMOR_EDGE", @@ -72297,7 +72299,7 @@ "type": "string" }, "labelFingerprint": { - "description": "A fingerprint for the labels being applied to this VpnGateway, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an VpnGateway.", + "description": "A fingerprint for the labels being applied to this VpnGateway, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a VpnGateway.", "format": "byte", "type": "string" }, diff --git a/compute/v0.beta/compute-gen.go b/compute/v0.beta/compute-gen.go index fa960ccc40e..b7875622e22 100644 --- a/compute/v0.beta/compute-gen.go +++ b/compute/v0.beta/compute-gen.go @@ -1968,9 +1968,10 @@ func (s *AcceleratorTypesScopedListWarningData) MarshalJSON() ([]byte, error) { type AccessConfig struct { // ExternalIpv6: The first IPv6 address of the external IPv6 range // associated with this instance, prefix length is stored in - // externalIpv6PrefixLength in ipv6AccessConfig. The field is output - // only, an IPv6 address from a subnetwork associated with the instance - // will be allocated dynamically. + // externalIpv6PrefixLength in ipv6AccessConfig. To use a static + // external IP address, it must be unused and in the same region as the + // instance's zone. If not specified, GCP will automatically assign an + // external IPv6 address from the instance's subnetwork. ExternalIpv6 string `json:"externalIpv6,omitempty"` // ExternalIpv6PrefixLength: The prefix length of the external IPv6 @@ -7447,7 +7448,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -7464,9 +7467,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. @@ -7890,7 +7891,8 @@ type Commitment struct { // // Possible values: // "ACTIVE" - // "CANCELLED" + // "CANCELLED" - Deprecate CANCELED status. Will use separate status + // to differentiate cancel by mergeCud or manual cancellation. // "CREATING" // "EXPIRED" // "NOT_YET_ACTIVE" @@ -7910,6 +7912,7 @@ type Commitment struct { // "ACCELERATOR_OPTIMIZED" // "COMPUTE_OPTIMIZED" // "COMPUTE_OPTIMIZED_C2D" + // "COMPUTE_OPTIMIZED_C3" // "GENERAL_PURPOSE" // "GENERAL_PURPOSE_E2" // "GENERAL_PURPOSE_N2" @@ -30280,7 +30283,10 @@ type NetworkInterface struct { Ipv6AccessType string `json:"ipv6AccessType,omitempty"` // Ipv6Address: An IPv6 internal network address for this network - // interface. + // interface. To use a static internal IP address, it must be unused and + // in the same region as the instance's zone. If not specified, GCP will + // automatically assign an internal IPv6 address from the instance's + // subnetwork. Ipv6Address string `json:"ipv6Address,omitempty"` // Kind: [Output Only] Type of the resource. Always @@ -41522,6 +41528,9 @@ type ResourcePolicyGroupPlacementPolicy struct { // "UNSPECIFIED_COLLOCATION" Collocation string `json:"collocation,omitempty"` + // MaxDistance: Specifies the number of max logical switches. + MaxDistance int64 `json:"maxDistance,omitempty"` + // VmCount: Number of VMs in this placement group. Google does not // recommend that you use this field unless you use a compact policy and // you want your policy to work only if it contains this exact number of @@ -45563,7 +45572,12 @@ type SecurityPolicy struct { // internal service policies can be configured to filter HTTP requests // targeting services managed by Traffic Director in a service mesh. // They filter requests before the request is served from the - // application. This field can be set only at resource creation time. + // application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can + // be configured to filter packets targeting network load balancing + // resources such as backend services, target pools, target instances, + // and instances with external IPs. They filter requests before the + // request is served from the application. This field can be set only at + // resource creation time. // // Possible values: // "CLOUD_ARMOR" @@ -58521,7 +58535,7 @@ type VpnGateway struct { // You must always provide an up-to-date fingerprint hash in order to // update or change labels, otherwise the request will fail with error // 412 conditionNotMet. To see the latest fingerprint, make a get() - // request to retrieve an VpnGateway. + // request to retrieve a VpnGateway. LabelFingerprint string `json:"labelFingerprint,omitempty"` // Labels: Labels for this resource. These can only be added or modified diff --git a/compute/v1/compute-api.json b/compute/v1/compute-api.json index f4083cc5f61..311d18db4b8 100644 --- a/compute/v1/compute-api.json +++ b/compute/v1/compute-api.json @@ -2754,6 +2754,67 @@ "https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly" ] + }, + "update": { + "description": "Updates the specified disk with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license.", + "flatPath": "projects/{project}/zones/{zone}/disks/{disk}", + "httpMethod": "PATCH", + "id": "compute.disks.update", + "parameterOrder": [ + "project", + "zone", + "disk" + ], + "parameters": { + "disk": { + "description": "The disk name for 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" + }, + "paths": { + "location": "query", + "repeated": 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" + }, + "updateMask": { + "description": "update_mask indicates fields to be updated as part of this request.", + "format": "google-fieldmask", + "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}/disks/{disk}", + "request": { + "$ref": "Disk" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] } } }, @@ -19208,6 +19269,67 @@ "https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly" ] + }, + "update": { + "description": "Update the specified disk with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license.", + "flatPath": "projects/{project}/regions/{region}/disks/{disk}", + "httpMethod": "PATCH", + "id": "compute.regionDisks.update", + "parameterOrder": [ + "project", + "region", + "disk" + ], + "parameters": { + "disk": { + "description": "The disk name for 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" + }, + "paths": { + "location": "query", + "repeated": 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" + }, + "region": { + "description": "The 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" + }, + "updateMask": { + "description": "update_mask indicates fields to be updated as part of this request.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/disks/{disk}", + "request": { + "$ref": "Disk" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] } } }, @@ -32692,7 +32814,7 @@ } } }, - "revision": "20230119", + "revision": "20230201", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -33112,7 +33234,7 @@ "id": "AccessConfig", "properties": { "externalIpv6": { - "description": "The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically.", + "description": "The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, GCP will automatically assign an external IPv6 address from the instance's subnetwork.", "type": "string" }, "externalIpv6PrefixLength": { @@ -33724,18 +33846,22 @@ "type": "object" }, "AllocationResourceStatus": { + "description": "[Output Only] Contains output only fields.", "id": "AllocationResourceStatus", "properties": { "specificSkuAllocation": { - "$ref": "AllocationResourceStatusSpecificSKUAllocation" + "$ref": "AllocationResourceStatusSpecificSKUAllocation", + "description": "Allocation Properties of this reservation." } }, "type": "object" }, "AllocationResourceStatusSpecificSKUAllocation": { + "description": "Contains Properties set for the reservation.", "id": "AllocationResourceStatusSpecificSKUAllocation", "properties": { "sourceInstanceTemplateId": { + "description": "ID of the instance template used to populate reservation properties.", "type": "string" } }, @@ -35348,7 +35474,8 @@ "ORIGINAL_DESTINATION", "RANDOM", "RING_HASH", - "ROUND_ROBIN" + "ROUND_ROBIN", + "WEIGHTED_MAGLEV" ], "enumDescriptions": [ "", @@ -35357,7 +35484,8 @@ "Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer.", "The load balancer selects a random healthy host.", "The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests.", - "This is a simple policy in which each healthy backend is selected in round robin order. This is the default." + "This is a simple policy in which each healthy backend is selected in round robin order. This is the default.", + "Per-instance weighted Load Balancing via health check reported weights. If set, the Backend Service must configure a non legacy HTTP-based Health Check, and health check replies are expected to contain non-standard HTTP response header field X-Load-Balancing-Endpoint-Weight to specify the per-instance weights. If set, Load Balancing is weighted based on the per-instance weights reported in the last processed health check replies, as long as every instance either reported a valid weight or had UNAVAILABLE_WEIGHT. Otherwise, Load Balancing remains equal-weight. This option is only supported in Network Load Balancing." ], "type": "string" }, @@ -35983,7 +36111,8 @@ "ORIGINAL_DESTINATION", "RANDOM", "RING_HASH", - "ROUND_ROBIN" + "ROUND_ROBIN", + "WEIGHTED_MAGLEV" ], "enumDescriptions": [ "", @@ -35992,7 +36121,8 @@ "Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer.", "The load balancer selects a random healthy host.", "The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests.", - "This is a simple policy in which each healthy backend is selected in round robin order. This is the default." + "This is a simple policy in which each healthy backend is selected in round robin order. This is the default.", + "Per-instance weighted Load Balancing via health check reported weights. If set, the Backend Service must configure a non legacy HTTP-based Health Check, and health check replies are expected to contain non-standard HTTP response header field X-Load-Balancing-Endpoint-Weight to specify the per-instance weights. If set, Load Balancing is weighted based on the per-instance weights reported in the last processed health check replies, as long as every instance either reported a valid weight or had UNAVAILABLE_WEIGHT. Otherwise, Load Balancing remains equal-weight. This option is only supported in Network Load Balancing." ], "type": "string" } @@ -36403,7 +36533,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, @@ -36674,7 +36804,7 @@ ], "enumDescriptions": [ "", - "", + "Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.", "", "", "" @@ -36691,6 +36821,7 @@ "ACCELERATOR_OPTIMIZED", "COMPUTE_OPTIMIZED", "COMPUTE_OPTIMIZED_C2D", + "COMPUTE_OPTIMIZED_C3", "GENERAL_PURPOSE", "GENERAL_PURPOSE_E2", "GENERAL_PURPOSE_N2", @@ -36711,6 +36842,7 @@ "", "", "", + "", "" ], "type": "string" @@ -42650,11 +42782,6 @@ "type": "string" }, "machineType": { - "annotations": { - "required": [ - "compute.instances.insert" - ] - }, "description": "Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type. This is provided by the client when the instance is created. For example, the following is a valid partial url to a predefined machine type: zones/us-central1-f/machineTypes/n1-standard-1 To create a custom machine type, provide a URL to a machine type in the following format, where CPUS is 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total memory for this instance. Memory must be a multiple of 256 MB and must be supplied in MB (e.g. 5 GB of memory is 5120 MB): zones/zone/machineTypes/custom-CPUS-MEMORY For example: zones/us-central1-f/machineTypes/custom-4-5120 For a full list of restrictions, read the Specifications for custom machine types.", "type": "string" }, @@ -50187,7 +50314,7 @@ "type": "string" }, "ipv6Address": { - "description": "An IPv6 internal network address for this network interface.", + "description": "An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance's zone. If not specified, GCP will automatically assign an internal IPv6 address from the instance's subnetwork.", "type": "string" }, "kind": { @@ -56460,6 +56587,13 @@ "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", "type": "string" }, + "resourcePolicies": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource policies to be added to this reservation. The key is defined by user, and the value is resource policy url. This is to define placement policy with reservation.", + "type": "object" + }, "resourceStatus": { "$ref": "AllocationResourceStatus", "description": "[Output Only] Status information for Reservation resource." @@ -60004,7 +60138,7 @@ "type": "string" }, "type": { - "description": "The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. This field can be set only at resource creation time.", + "description": "The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.", "enum": [ "CLOUD_ARMOR", "CLOUD_ARMOR_EDGE", @@ -67519,7 +67653,7 @@ "type": "string" }, "labelFingerprint": { - "description": "A fingerprint for the labels being applied to this VpnGateway, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an VpnGateway.", + "description": "A fingerprint for the labels being applied to this VpnGateway, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a VpnGateway.", "format": "byte", "type": "string" }, diff --git a/compute/v1/compute-gen.go b/compute/v1/compute-gen.go index dfbdbdfc36e..b477776082d 100644 --- a/compute/v1/compute-gen.go +++ b/compute/v1/compute-gen.go @@ -1907,9 +1907,10 @@ func (s *AcceleratorTypesScopedListWarningData) MarshalJSON() ([]byte, error) { type AccessConfig struct { // ExternalIpv6: The first IPv6 address of the external IPv6 range // associated with this instance, prefix length is stored in - // externalIpv6PrefixLength in ipv6AccessConfig. The field is output - // only, an IPv6 address from a subnetwork associated with the instance - // will be allocated dynamically. + // externalIpv6PrefixLength in ipv6AccessConfig. To use a static + // external IP address, it must be unused and in the same region as the + // instance's zone. If not specified, GCP will automatically assign an + // external IPv6 address from the instance's subnetwork. ExternalIpv6 string `json:"externalIpv6,omitempty"` // ExternalIpv6PrefixLength: The prefix length of the external IPv6 @@ -2827,7 +2828,9 @@ func (s *AliasIpRange) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AllocationResourceStatus: [Output Only] Contains output only fields. type AllocationResourceStatus struct { + // SpecificSkuAllocation: Allocation Properties of this reservation. SpecificSkuAllocation *AllocationResourceStatusSpecificSKUAllocation `json:"specificSkuAllocation,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -2855,7 +2858,11 @@ func (s *AllocationResourceStatus) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AllocationResourceStatusSpecificSKUAllocation: Contains Properties +// set for the reservation. type AllocationResourceStatusSpecificSKUAllocation struct { + // SourceInstanceTemplateId: ID of the instance template used to + // populate reservation properties. SourceInstanceTemplateId string `json:"sourceInstanceTemplateId,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -5544,6 +5551,16 @@ type BackendService struct { // of the requests. // "ROUND_ROBIN" - This is a simple policy in which each healthy // backend is selected in round robin order. This is the default. + // "WEIGHTED_MAGLEV" - Per-instance weighted Load Balancing via health + // check reported weights. If set, the Backend Service must configure a + // non legacy HTTP-based Health Check, and health check replies are + // expected to contain non-standard HTTP response header field + // X-Load-Balancing-Endpoint-Weight to specify the per-instance weights. + // If set, Load Balancing is weighted based on the per-instance weights + // reported in the last processed health check replies, as long as every + // instance either reported a valid weight or had UNAVAILABLE_WEIGHT. + // Otherwise, Load Balancing remains equal-weight. This option is only + // supported in Network Load Balancing. LocalityLbPolicy string `json:"localityLbPolicy,omitempty"` // LogConfig: This field denotes the logging options for the load @@ -6684,6 +6701,16 @@ type BackendServiceLocalityLoadBalancingPolicyConfigPolicy struct { // of the requests. // "ROUND_ROBIN" - This is a simple policy in which each healthy // backend is selected in round robin order. This is the default. + // "WEIGHTED_MAGLEV" - Per-instance weighted Load Balancing via health + // check reported weights. If set, the Backend Service must configure a + // non legacy HTTP-based Health Check, and health check replies are + // expected to contain non-standard HTTP response header field + // X-Load-Balancing-Endpoint-Weight to specify the per-instance weights. + // If set, Load Balancing is weighted based on the per-instance weights + // reported in the last processed health check replies, as long as every + // instance either reported a valid weight or had UNAVAILABLE_WEIGHT. + // Otherwise, Load Balancing remains equal-weight. This option is only + // supported in Network Load Balancing. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to @@ -7252,7 +7279,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -7269,9 +7298,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. @@ -7660,7 +7687,8 @@ type Commitment struct { // // Possible values: // "ACTIVE" - // "CANCELLED" + // "CANCELLED" - Deprecate CANCELED status. Will use separate status + // to differentiate cancel by mergeCud or manual cancellation. // "CREATING" // "EXPIRED" // "NOT_YET_ACTIVE" @@ -7680,6 +7708,7 @@ type Commitment struct { // "ACCELERATOR_OPTIMIZED" // "COMPUTE_OPTIMIZED" // "COMPUTE_OPTIMIZED_C2D" + // "COMPUTE_OPTIMIZED_C3" // "GENERAL_PURPOSE" // "GENERAL_PURPOSE_E2" // "GENERAL_PURPOSE_N2" @@ -29201,7 +29230,10 @@ type NetworkInterface struct { Ipv6AccessType string `json:"ipv6AccessType,omitempty"` // Ipv6Address: An IPv6 internal network address for this network - // interface. + // interface. To use a static internal IP address, it must be unused and + // in the same region as the instance's zone. If not specified, GCP will + // automatically assign an internal IPv6 address from the instance's + // subnetwork. Ipv6Address string `json:"ipv6Address,omitempty"` // Kind: [Output Only] Type of the resource. Always @@ -38871,6 +38903,11 @@ type Reservation struct { // be a dash. Name string `json:"name,omitempty"` + // ResourcePolicies: Resource policies to be added to this reservation. + // The key is defined by user, and the value is resource policy url. + // This is to define placement policy with reservation. + ResourcePolicies map[string]string `json:"resourcePolicies,omitempty"` + // ResourceStatus: [Output Only] Status information for Reservation // resource. ResourceStatus *AllocationResourceStatus `json:"resourceStatus,omitempty"` @@ -44044,7 +44081,12 @@ type SecurityPolicy struct { // internal service policies can be configured to filter HTTP requests // targeting services managed by Traffic Director in a service mesh. // They filter requests before the request is served from the - // application. This field can be set only at resource creation time. + // application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can + // be configured to filter packets targeting network load balancing + // resources such as backend services, target pools, target instances, + // and instances with external IPs. They filter requests before the + // request is served from the application. This field can be set only at + // resource creation time. // // Possible values: // "CLOUD_ARMOR" @@ -56154,7 +56196,7 @@ type VpnGateway struct { // You must always provide an up-to-date fingerprint hash in order to // update or change labels, otherwise the request will fail with error // 412 conditionNotMet. To see the latest fingerprint, make a get() - // request to retrieve an VpnGateway. + // request to retrieve a VpnGateway. LabelFingerprint string `json:"labelFingerprint,omitempty"` // Labels: Labels for this resource. These can only be added or modified @@ -69663,6 +69705,221 @@ func (c *DisksTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPer } +// method id "compute.disks.update": + +type DisksUpdateCall struct { + s *Service + project string + zone string + disk string + disk2 *Disk + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Update: Updates the specified disk with the data included in the +// request. The update is performed only on selected fields included as +// part of update-mask. Only the following fields can be modified: +// user_license. +// +// - disk: The disk name for this request. +// - project: Project ID for this request. +// - zone: The name of the zone for this request. +func (r *DisksService) Update(project string, zone string, disk string, disk2 *Disk) *DisksUpdateCall { + c := &DisksUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.zone = zone + c.disk = disk + c.disk2 = disk2 + return c +} + +// Paths sets the optional parameter "paths": +func (c *DisksUpdateCall) Paths(paths ...string) *DisksUpdateCall { + c.urlParams_.SetMulti("paths", append([]string{}, paths...)) + 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 *DisksUpdateCall) RequestId(requestId string) *DisksUpdateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": update_mask +// indicates fields to be updated as part of this request. +func (c *DisksUpdateCall) UpdateMask(updateMask string) *DisksUpdateCall { + c.urlParams_.Set("updateMask", updateMask) + 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 *DisksUpdateCall) Fields(s ...googleapi.Field) *DisksUpdateCall { + 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 *DisksUpdateCall) Context(ctx context.Context) *DisksUpdateCall { + 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 *DisksUpdateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *DisksUpdateCall) 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.disk2) + 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}/disks/{disk}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "zone": c.zone, + "disk": c.disk, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.disks.update" 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 *DisksUpdateCall) 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 the specified disk with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license.", + // "flatPath": "projects/{project}/zones/{zone}/disks/{disk}", + // "httpMethod": "PATCH", + // "id": "compute.disks.update", + // "parameterOrder": [ + // "project", + // "zone", + // "disk" + // ], + // "parameters": { + // "disk": { + // "description": "The disk name for 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" + // }, + // "paths": { + // "location": "query", + // "repeated": 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" + // }, + // "updateMask": { + // "description": "update_mask indicates fields to be updated as part of this request.", + // "format": "google-fieldmask", + // "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}/disks/{disk}", + // "request": { + // "$ref": "Disk" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + // method id "compute.externalVpnGateways.delete": type ExternalVpnGatewaysDeleteCall struct { @@ -139517,6 +139774,221 @@ func (c *RegionDisksTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*T } +// method id "compute.regionDisks.update": + +type RegionDisksUpdateCall struct { + s *Service + project string + region string + disk string + disk2 *Disk + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Update: Update the specified disk with the data included in the +// request. Update is performed only on selected fields included as part +// of update-mask. Only the following fields can be modified: +// user_license. +// +// - disk: The disk name for this request. +// - project: Project ID for this request. +// - region: The name of the region for this request. +func (r *RegionDisksService) Update(project string, region string, disk string, disk2 *Disk) *RegionDisksUpdateCall { + c := &RegionDisksUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.disk = disk + c.disk2 = disk2 + return c +} + +// Paths sets the optional parameter "paths": +func (c *RegionDisksUpdateCall) Paths(paths ...string) *RegionDisksUpdateCall { + c.urlParams_.SetMulti("paths", append([]string{}, paths...)) + 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 *RegionDisksUpdateCall) RequestId(requestId string) *RegionDisksUpdateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": update_mask +// indicates fields to be updated as part of this request. +func (c *RegionDisksUpdateCall) UpdateMask(updateMask string) *RegionDisksUpdateCall { + c.urlParams_.Set("updateMask", updateMask) + 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 *RegionDisksUpdateCall) Fields(s ...googleapi.Field) *RegionDisksUpdateCall { + 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 *RegionDisksUpdateCall) Context(ctx context.Context) *RegionDisksUpdateCall { + 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 *RegionDisksUpdateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionDisksUpdateCall) 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.disk2) + 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}/disks/{disk}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + "disk": c.disk, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.regionDisks.update" 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 *RegionDisksUpdateCall) 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": "Update the specified disk with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license.", + // "flatPath": "projects/{project}/regions/{region}/disks/{disk}", + // "httpMethod": "PATCH", + // "id": "compute.regionDisks.update", + // "parameterOrder": [ + // "project", + // "region", + // "disk" + // ], + // "parameters": { + // "disk": { + // "description": "The disk name for 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" + // }, + // "paths": { + // "location": "query", + // "repeated": 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" + // }, + // "region": { + // "description": "The 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" + // }, + // "updateMask": { + // "description": "update_mask indicates fields to be updated as part of this request.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "projects/{project}/regions/{region}/disks/{disk}", + // "request": { + // "$ref": "Disk" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + // method id "compute.regionHealthCheckServices.delete": type RegionHealthCheckServicesDeleteCall struct { diff --git a/connectors/v1/connectors-api.json b/connectors/v1/connectors-api.json index cbac0747ffe..b4f57ecdfe2 100644 --- a/connectors/v1/connectors-api.json +++ b/connectors/v1/connectors-api.json @@ -1079,7 +1079,7 @@ } } }, - "revision": "20230103", + "revision": "20230125", "rootUrl": "https://connectors.googleapis.com/", "schemas": { "AuditConfig": { @@ -1210,6 +1210,14 @@ "$ref": "ConfigVariableTemplate" }, "type": "array" + }, + "description": { + "description": "Connector specific description for an authentication template.", + "type": "string" + }, + "displayName": { + "description": "Display name for authentication template.", + "type": "string" } }, "type": "object" @@ -1249,7 +1257,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/connectors/v1/connectors-gen.go b/connectors/v1/connectors-gen.go index 616500a9506..77b81c40586 100644 --- a/connectors/v1/connectors-gen.go +++ b/connectors/v1/connectors-gen.go @@ -425,6 +425,13 @@ type AuthConfigTemplate struct { // for a `Connection`. ConfigVariableTemplates []*ConfigVariableTemplate `json:"configVariableTemplates,omitempty"` + // Description: Connector specific description for an authentication + // template. + Description string `json:"description,omitempty"` + + // DisplayName: Display name for authentication template. + DisplayName string `json:"displayName,omitempty"` + // ForceSendFields is a list of field names (e.g. "AuthType") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -519,7 +526,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -536,9 +545,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. diff --git a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json index 1d82acff1db..67613c94895 100644 --- a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json +++ b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json @@ -512,7 +512,7 @@ } } }, - "revision": "20230105", + "revision": "20230202", "rootUrl": "https://contactcenteraiplatform.googleapis.com/", "schemas": { "CancelOperationRequest": { @@ -636,13 +636,19 @@ "INSTANCE_SIZE_UNSPECIFIED", "STANDARD_SMALL", "STANDARD_MEDIUM", - "STANDARD_LARGE" + "STANDARD_LARGE", + "STANDARD_XLARGE", + "STANDARD_2XLARGE", + "STANDARD_3XLARGE" ], "enumDescriptions": [ "The default value. This value is used if the state is omitted.", "Instance Size STANDARD_SMALL.", "Instance Size STANDARD_MEDIUM.", - "Instance Size STANDARD_LARGE." + "Instance Size STANDARD_LARGE.", + "Instance Size STANDARD_XLARGE.", + "Instance Size STANDARD_2XLARGE.", + "Instance Size STANDARD_3XLARGE." ], "type": "string" } diff --git a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go index d3263119df2..6fe3bf82d09 100644 --- a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go +++ b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go @@ -327,6 +327,9 @@ type InstanceConfig struct { // "STANDARD_SMALL" - Instance Size STANDARD_SMALL. // "STANDARD_MEDIUM" - Instance Size STANDARD_MEDIUM. // "STANDARD_LARGE" - Instance Size STANDARD_LARGE. + // "STANDARD_XLARGE" - Instance Size STANDARD_XLARGE. + // "STANDARD_2XLARGE" - Instance Size STANDARD_2XLARGE. + // "STANDARD_3XLARGE" - Instance Size STANDARD_3XLARGE. InstanceSize string `json:"instanceSize,omitempty"` // ForceSendFields is a list of field names (e.g. "InstanceSize") to diff --git a/content/v2.1/content-api.json b/content/v2.1/content-api.json index 9a40cca6330..0c250769a68 100644 --- a/content/v2.1/content-api.json +++ b/content/v2.1/content-api.json @@ -5953,7 +5953,7 @@ } } }, - "revision": "20230112", + "revision": "20230202", "rootUrl": "https://shoppingcontent.googleapis.com/", "schemas": { "Account": { @@ -14156,7 +14156,7 @@ "type": "array" }, "contentLanguage": { - "description": "Required. The content language used as part of the unique identifier. `en` content language is available for all target countries. `fr` content language is available for `CA` and `FR` target countries, and `de` content language is available for `DE` target country.", + "description": "Required. The content language used as part of the unique identifier. `en` content language is available for all target countries. `fr` content language is available for `CA` and `FR` target countries. `de` content language is available for `DE` target country. `nl` content language is available for `NL` target country. `it` content language is available for `IT` target country. `pt` content language is available for `BR` target country. `ja` content language is available for `JP` target country. `ko` content language is available for `KR` target country.", "type": "string" }, "couponValueType": { @@ -14418,7 +14418,7 @@ "type": "array" }, "targetCountry": { - "description": "Required. The target country used as part of the unique identifier. Can be `AU`, `CA`, `DE`, `FR`, `GB`, `IN` or `US`.", + "description": "Required. The target country used as part of the unique identifier. Can be `AU`, `CA`, `DE`, `FR`, `GB`, `IN`, `US`, `BR`, `ES`, `NL`, `JP`, `IT` or `KR`.", "type": "string" } }, diff --git a/content/v2.1/content-gen.go b/content/v2.1/content-gen.go index 5db1b0cbd3d..f8ed22670a9 100644 --- a/content/v2.1/content-gen.go +++ b/content/v2.1/content-gen.go @@ -14376,8 +14376,12 @@ type Promotion struct { // ContentLanguage: Required. The content language used as part of the // unique identifier. `en` content language is available for all target // countries. `fr` content language is available for `CA` and `FR` - // target countries, and `de` content language is available for `DE` - // target country. + // target countries. `de` content language is available for `DE` target + // country. `nl` content language is available for `NL` target country. + // `it` content language is available for `IT` target country. `pt` + // content language is available for `BR` target country. `ja` content + // language is available for `JP` target country. `ko` content language + // is available for `KR` target country. ContentLanguage string `json:"contentLanguage,omitempty"` // CouponValueType: Required. Coupon value type for the promotion. @@ -14567,7 +14571,8 @@ type Promotion struct { StoreCodeExclusion []string `json:"storeCodeExclusion,omitempty"` // TargetCountry: Required. The target country used as part of the - // unique identifier. Can be `AU`, `CA`, `DE`, `FR`, `GB`, `IN` or `US`. + // unique identifier. Can be `AU`, `CA`, `DE`, `FR`, `GB`, `IN`, `US`, + // `BR`, `ES`, `NL`, `JP`, `IT` or `KR`. TargetCountry string `json:"targetCountry,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/contentwarehouse/v1/contentwarehouse-api.json b/contentwarehouse/v1/contentwarehouse-api.json index a38801f04e6..7c928bf9ac7 100644 --- a/contentwarehouse/v1/contentwarehouse-api.json +++ b/contentwarehouse/v1/contentwarehouse-api.json @@ -194,6 +194,34 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "runPipeline": { + "description": "Run a predefined pipeline.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:runPipeline", + "httpMethod": "POST", + "id": "contentwarehouse.projects.locations.runPipeline", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name which owns the resources of the pipeline. Format: projects/{project_number}/locations/{location}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:runPipeline", + "request": { + "$ref": "GoogleCloudContentwarehouseV1RunPipelineRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } }, "resources": { @@ -1075,7 +1103,7 @@ } } }, - "revision": "20230122", + "revision": "20230203", "rootUrl": "https://contentwarehouse.googleapis.com/", "schemas": { "AbuseiamAbuseType": { @@ -3535,7 +3563,10 @@ "DATA_STUDIO_SPACES_AFFINITY", "SOJI_AFFINITY", "PLAY_MOVIES_ANDROID_AFFINITY", - "DATA_STUDIO_DOMAIN_ONLY_AFFINITY" + "DATA_STUDIO_DOMAIN_ONLY_AFFINITY", + "MONOSPACE_AFFINITY", + "MY_ACCOUNT_AFFINITY", + "NUDGEIT_CAMPAIGN_MANAGER_AFFINITY" ], "enumDescriptions": [ "", @@ -3777,6 +3808,9 @@ "", "", "", + "", + "", + "", "" ], "type": "string" @@ -3969,13 +4003,15 @@ "id": "AppsPeopleOzExternalMergedpeopleapiBirthday", "properties": { "ageDisableGracePeriod": { - "$ref": "AppsPeopleOzExternalMergedpeopleapiBirthdayAgeDisableGracePeriod" + "$ref": "AppsPeopleOzExternalMergedpeopleapiBirthdayAgeDisableGracePeriod", + "description": "Only supported for PROFILE/DOMAIN_PROFILE/ACCOUNT container." }, "birthdayDecoration": { "$ref": "SocialGraphApiProtoBirthdayDecoration", - "description": "Whether the user has opted in to display their birthday via photo decorations." + "description": "Whether the user has opted in to display their birthday via photo decorations. Only supported for PROFILE/DOMAIN_PROFILE container." }, "birthdayResolution": { + "description": "Only supported for PROFILE/DOMAIN_PROFILE/ACCOUNT container.", "enum": [ "FULL", "MONTH_AND_APPROXIMATED_YEAR", @@ -4007,7 +4043,7 @@ }, "prompt": { "$ref": "SocialGraphApiProtoPrompt", - "description": "People Prompts settings for contact birthday data." + "description": "People Prompts settings for contact birthday data. Only supported for CONTACT container." }, "value": { "description": "Actual value entered. Allows unstructured values.", @@ -9400,12 +9436,16 @@ "ADAPTIVE_BRIGHTNESS", "ADAPTIVE_CHARGING", "ADAPTIVE_CONNECTIVITY", + "ADAPTIVE_SOUND", + "ADD_ACCOUNT", "ADD_BLUETOOTH_DEVICE", "ADD_DEVICE", "ADD_FINGERPRINT", + "ADS_TRACKING", "AIRPLANE_MODE", "ALARM_VOLUME", "ALARM_SOUND", + "ALLOW_MULTIPLE_USERS", "AMBIENT_DISPLAY_ALWAYS_ON", "AMBIENT_DISPLAY_NEW_NOTIFICATION", "ANDROID_AUTO", @@ -9441,6 +9481,7 @@ "CALL_VOLUME", "CAMERA_DOUBLE_TWIST", "CAST", + "CAR_CRASH_DETECTION", "COLOR_INVERSION", "COLOR_CORRECTION", "CONVERSATIONS", @@ -9459,6 +9500,7 @@ "DEFAULT_NOTIFICATION_SOUND", "DEFAULT_APPS", "DEVELOPER_OPTIONS", + "DEVICE_ASSISTANT_APP", "DEVICE_NAME", "DISPLAY_OVER_OTHER_APPS", "DISPLAY_SIZE", @@ -9469,8 +9511,10 @@ "DO_NOT_DISTURB_SCHEDULES", "DOUBLE_TAP_CHECK_PHONE", "DRIVING_MODE", + "EARTHQUAKE_ALERTS", "EMERGENCY", "EMERGENCY_ALERTS", + "EMERGENCY_CONTACTS", "EMERGENCY_INFORMATION", "ETHERNET_TETHERING", "EXTRA_DIM", @@ -9481,6 +9525,7 @@ "FOCUS_MODE", "FONT_SIZE", "FREE_UP_SPACE", + "FINGERPRINT_MANAGER", "GESTURES", "HAPTIC_FEEDBACK_VIBRATION", "HARD_KEYBOARD", @@ -9494,6 +9539,7 @@ "JUMP_TO_CAMERA", "KEYBOARD_SHORTCUTS", "LIFT_CHECK_PHONE", + "LIVE_TRANSLATE", "LOCATION", "LOCATION_HISTORY", "LOCATION_BLUETOOTH_SCANNING", @@ -9560,6 +9606,8 @@ "SYSTEM_UPDATE", "SYSTEM_UPDATES", "SYSTEM_NAVIGATION", + "SYSTEM_NAVIGATION_GESTURES", + "SYSTEM_NAVIGATION_BUTTONS", "TALKBACK_PASSWORDS", "TEXT_TO_SPEECH", "TIME_ZONE", @@ -9640,11 +9688,14 @@ "", "", "", + "", + "", "Pair a bluetooth device.", "Link a device to Assistant/Google Home.", "", "", "", + "", "Deprecated, use DEFAULT_ALARM_SOUND instead.", "", "", @@ -9672,6 +9723,7 @@ "", "", "", + "", "Bluetooth on/off toggle", "", "", @@ -9690,6 +9742,7 @@ "", "", "", + "", "Cellular carrier (non-wifi) data usage statistics \u0026 settings for the device.", "Toggle to enable data use limit", "The mobile data use after which mobile data is automatically disabled.", @@ -9699,6 +9752,7 @@ "", "", "", + "Device's voice assistant app selection.", "", "", "", @@ -9709,10 +9763,12 @@ "", "", "Special mode for using device hands-free while driving.", + "", "Main emergency settings", "", "", "", + "", "Makes screen extra dark.", "", "", @@ -9721,6 +9777,7 @@ "", "", "", + "", "A page for device gestures", "Deprecated, use VIBRATION instead.", "", @@ -9738,6 +9795,7 @@ "", "", "", + "", "Settings page for what is visible on the lock screen.", "", "", @@ -9807,6 +9865,8 @@ "", "", "", + "", + "", "Deprecated, use VIBRATION instead.", "Vibration master toggle - controls all vibration functions. Corresponds to \"Vibration \u0026 haptics\" toggle in the Android settings app.", "Controls whether the ringer mode will be silent or will vibrate. Details in https://developer.android.com/reference/android/media/AudioManager#RINGER_MODE_VIBRATE Different from VIBRATION from above.", @@ -11383,7 +11443,14 @@ "CHROMECAST_MANHATTAN", "CLOUD_DEVICE", "CROS", + "FITBIT_OS", + "FITBIT_OS_WATCH", + "FITBIT_OS_WATCH_ANDROID", + "FITBIT_OS_WATCH_IOS", "GOOGLE_HOME", + "HEADPHONE", + "HEADPHONE_ANDROID", + "HEADPHONE_IOS", "IOPA", "IOS", "IOS_SCREENLESS", @@ -11397,12 +11464,17 @@ "PIXEL5", "PIXEL6", "PIXEL7", + "PIXEL_BUDS", + "PIXEL_WATCH", "SCREENLESS", "SMART_DISPLAY", "SPEAKER", "TABLET", "TELEPHONE", - "THING" + "THING", + "WATCH", + "WEAR_OS", + "WEAR_OS_WATCH" ], "enumDescriptions": [ "Unknown surface type.", @@ -11419,7 +11491,7 @@ "Lenovo Smart Clock v1, a stationary smart display device with a 4-inch screen, targeted for bedroom/bedside use cases like alarm, sleep tracking. Based on Android Things. See go/cube-home. OWNERS: cube-eng@", "Former codename for 3P 8-inch and 10-inch Smart Displays from Lenovo, JBL and LG, targeted for use in the kitchen. Based on Android Things. See go/jasper-home. OWNERS: jasper-eng@", "The Android platform that powers smart televisions, set-top-boxes, and over-the-top devices. See go/atv-eng and go/opa-tv. OWNERS: opa-tv-eng@", - "Wear OS Assistant. OWNERS: wear-assistant-eng@", + "Legacy Wear OS Assistant. OWNERS: wear-assistant-eng@", "AssistantKit (go/assistantkit) is a collection of iOS libraries allowing first party apps to integrate Google Assistant features. OWNERS: assistantkit-eng@", "Standalone gRPC based client. See go/easi. OWNERS: assistant-sdk-service-eng@", "Automobile. OWNERS: surfaces-infra-core@", @@ -11428,7 +11500,14 @@ "For chromecast with assistant + screen, e.g. Newman. OWNERS: cast-eng-platform@", "Virtual device for event-based triggering, e.g. executing time scheduled routines: go/scheduled-routines. OWNERS: surfaces-infra-core@", "Assistant on native Chrome OS (go/croissant). OWNERS: croissant@", + "Fitbit OS. OWNERS: surfaces-infra-core@", + "Assistant on Fitbit OS Watch. OWNERS: assistant-wearable-team@", + "Assistant on Fitbit Watch paired with AGSA. OWNERS: assistant-wearable-team@", + "Assistant on Fitbit Watch paired with iOPA. OWNERS: assistant-wearable-team@", "Google home speaker, i.e., Chirp devices. See go/assistant-speakers. OWNERS: assistant-speaker-leads@", + "Headphone. OWNERS: surfaces-infra-core@", + "Assistant on headphones paired with AGSA. OWNERS: assistant-wearable-team@", + "Assistant on headphones paired with iOPA. OWNERS: assistant-wearable-team@", "Assistant on iOS devices (go/opa-ios). OWNERS: opa-ios-eng@", "iOS. OWNERS: surfaces-infra-core@", "Assistant on iOS with screen off/locked. Use go/bisto device to trigger. OWNERS: bisto-team@", @@ -11442,12 +11521,17 @@ "Pixel 5. OWNERS: surfaces-infra-core@", "Pixel 6. OWNERS: surfaces-infra-core@", "Pixel 7. OWNERS: surfaces-infra-core@", + "Assistant on Pixel Buds. OWNERS: assistant-wearable-team@", + "Assistant on Pixel Watch (a.k.a., Rohan). OWNERS: assistant-wearable-team@", "Devices with screen off or locked (go/bisto). OWNERS: surfaces-infra-core@", "Smart surface, such as Titan. OWNERS: surfaces-infra-core@", "A speaker. OWNERS: surfaces-infra-core@", "A tablet. OWNERS: surfaces-infra-core@", "Assistant on a phone call (go/telephone). OWNERS: telephone-assistant-eng@", - "IoT device. OWNERS: surfaces-infra-core@" + "IoT device. OWNERS: surfaces-infra-core@", + "Watch. OWNERS: surfaces-infra-core@", + "Wear OS. OWNERS: surfaces-infra-core@", + "Assistant on Wear OS Watch (a.k.a., Edoras). OWNERS: assistant-wearable-team@" ], "type": "string" }, @@ -16745,6 +16829,66 @@ }, "type": "object" }, + "AssistantGroundingRankerAssistantInteractionFeatures": { + "id": "AssistantGroundingRankerAssistantInteractionFeatures", + "properties": { + "timeDecayed14dHalfLife": { + "format": "float", + "type": "number" + }, + "timeDecayed1dHalfLife": { + "description": "Frequency features.", + "format": "float", + "type": "number" + }, + "timeDecayed7dHalfLife": { + "format": "float", + "type": "number" + }, + "timeDecayedAccepted14dHalfLife": { + "format": "float", + "type": "number" + }, + "timeDecayedAuis14dHalfLife": { + "format": "float", + "type": "number" + }, + "timeDecayedCanceled14dHalfLife": { + "format": "float", + "type": "number" + }, + "timeDecayedDeclined14dHalfLife": { + "format": "float", + "type": "number" + }, + "timeSinceLastButOneCanceledActionSecs": { + "format": "float", + "type": "number" + }, + "timeSinceLastButOneCompletedActionSecs": { + "format": "float", + "type": "number" + }, + "timeSinceLastButTwoCanceledActionSecs": { + "format": "float", + "type": "number" + }, + "timeSinceLastButTwoCompletedActionSecs": { + "format": "float", + "type": "number" + }, + "timeSinceLastCanceledActionSecs": { + "format": "float", + "type": "number" + }, + "timeSinceLastCompletedActionSecs": { + "description": "Recency features.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, "AssistantGroundingRankerContactGroundingProviderFeatures": { "description": "Features to be passed from Contact GP to HGR. Next ID: 13", "id": "AssistantGroundingRankerContactGroundingProviderFeatures", @@ -16885,6 +17029,25 @@ }, "type": "object" }, + "AssistantGroundingRankerDeviceContactAffinityFeatures": { + "description": "Device contact affinity from android call logs.", + "id": "AssistantGroundingRankerDeviceContactAffinityFeatures", + "properties": { + "aggregateAffinity": { + "format": "float", + "type": "number" + }, + "callAffinity": { + "format": "float", + "type": "number" + }, + "messageAffinity": { + "format": "float", + "type": "number" + } + }, + "type": "object" + }, "AssistantGroundingRankerGroundingProviderFeatures": { "description": "Next ID: 4", "id": "AssistantGroundingRankerGroundingProviderFeatures", @@ -16901,6 +17064,63 @@ }, "type": "object" }, + "AssistantGroundingRankerLaaFeatures": { + "id": "AssistantGroundingRankerLaaFeatures", + "properties": { + "bindingSet": { + "$ref": "AssistantGroundingRankerLaaFeaturesBindingSet" + }, + "communicationEndpoint": { + "$ref": "AssistantGroundingRankerLaaFeaturesCommunicationEndpoint" + }, + "contact": { + "$ref": "AssistantGroundingRankerLaaFeaturesContact" + }, + "provider": { + "$ref": "AssistantGroundingRankerLaaFeaturesProvider" + } + }, + "type": "object" + }, + "AssistantGroundingRankerLaaFeaturesBindingSet": { + "id": "AssistantGroundingRankerLaaFeaturesBindingSet", + "properties": { + "assistantInteractionFeatures": { + "$ref": "AssistantGroundingRankerAssistantInteractionFeatures" + } + }, + "type": "object" + }, + "AssistantGroundingRankerLaaFeaturesCommunicationEndpoint": { + "id": "AssistantGroundingRankerLaaFeaturesCommunicationEndpoint", + "properties": { + "assistantInteractionFeatures": { + "$ref": "AssistantGroundingRankerAssistantInteractionFeatures" + } + }, + "type": "object" + }, + "AssistantGroundingRankerLaaFeaturesContact": { + "id": "AssistantGroundingRankerLaaFeaturesContact", + "properties": { + "assistantInteractionFeatures": { + "$ref": "AssistantGroundingRankerAssistantInteractionFeatures" + }, + "deviceContactAffinityFeatures": { + "$ref": "AssistantGroundingRankerDeviceContactAffinityFeatures" + } + }, + "type": "object" + }, + "AssistantGroundingRankerLaaFeaturesProvider": { + "id": "AssistantGroundingRankerLaaFeaturesProvider", + "properties": { + "assistantInteractionFeatures": { + "$ref": "AssistantGroundingRankerAssistantInteractionFeatures" + } + }, + "type": "object" + }, "AssistantGroundingRankerMediaGroundingProviderFeatures": { "description": "Features to be passed from Media GP to HGR. Next ID: 6", "id": "AssistantGroundingRankerMediaGroundingProviderFeatures", @@ -17759,6 +17979,7 @@ "PHOTO", "TV_SHOW_EPISODE", "MUSIC_GENRE", + "MUSIC_STATION", "AUDIO_BOOK", "CHAPTER", "RADIO_STATION", @@ -17771,6 +17992,7 @@ "TV_SHOW", "NEWS", "NARRATED_WEB", + "NEWS_CALL_TO_ACTION", "AUDIO_STORY", "PODCAST_SERIES", "PODCAST_EPISODE" @@ -17795,9 +18017,11 @@ "", "", "", + "", "Representing a TV show which contains multiple TV seasons.", "", "", + "Repesents a Call To Action media item. See go/newsplayer-outro-gnews. Current use case is to ask users to continue their news journey in the Google News app / web app. Future cases could include asking users to adjust their news settings.", "Representing a short audio story. go/tmas-design", "Represent different kinds of podcast content", "" @@ -18690,13 +18914,15 @@ "enum": [ "UNKNOWN_REASON", "LOCAL_FALLBACK", - "STOP_PLAYBACK_ON_PAUSED_PHONE", - "SINGLE_NEARBY_DEVICE" + "MANUAL_DEFINED_REASON", + "SINGLE_NEARBY_DEVICE", + "PERSONAL_RESPONSE_BIT_OPTOUT_ON_LOCKED_PHONE" ], "enumDescriptions": [ "", "", "", + "", "" ], "type": "string" @@ -18718,7 +18944,7 @@ "type": "object" }, "AssistantPrefulfillmentRankerPrefulfillmentSignals": { - "description": "Signals to be used by the Prefulfillment Ranker. Derived from the ParsingSignals and GroundingSignals carried by the FunctionCall. LINT.IfChange Next ID: 36", + "description": "Signals to be used by the Prefulfillment Ranker. Derived from the ParsingSignals and GroundingSignals carried by the FunctionCall. LINT.IfChange Next ID: 39", "id": "AssistantPrefulfillmentRankerPrefulfillmentSignals", "properties": { "bindingSetAuis": { @@ -18736,6 +18962,10 @@ "format": "double", "type": "number" }, + "deepMediaDominant": { + "description": "Whether the intent is dominant according to NSP deep-media.", + "type": "boolean" + }, "dominant": { "description": "Indicates interpretation dominance predicted by KScorer", "type": "boolean" @@ -18745,6 +18975,10 @@ "format": "float", "type": "number" }, + "fulfillableDominantMedia": { + "description": "Whether this is a fulfillable, dominant Media intent.", + "type": "boolean" + }, "groundabilityScore": { "description": "Grounding Signals. Score indicating how grounded the intent is, populated by the Grounding Box.", "format": "double", @@ -18782,6 +19016,10 @@ "format": "int32", "type": "integer" }, + "laaFeatures": { + "$ref": "AssistantGroundingRankerLaaFeatures", + "description": "Learn and adapt(go/laa) related features. Design doc: go/laa-profile-signal-for-grounding." + }, "maskCandidateLevelFeatures": { "description": "This feature is always false / no-op in serving time. In training time, this feature may be set true on specific examples for weighted training where when this signal is true, only cross-intent level features are used for training and other candidate level features are masked (set as missing).", "type": "boolean" @@ -20237,7 +20475,8 @@ "INBOUND_SMB", "CCAI_DEMO", "DIALOGFLOW_DELEGATION", - "AD_LEAD_VERIFICATION" + "AD_LEAD_VERIFICATION", + "GET_HUMAN" ], "enumDescriptions": [ "// Data extraction:", @@ -20284,7 +20523,8 @@ "Duplex for Business - Inbound SMB bot.", "Duplex for Business - Demo for the CCAI integration.", "Duplex for Business - Dialogflow delegation module for CCAI integration.", - "Duplex for Business - ad lead verification module for GLS integration." + "Duplex for Business - ad lead verification module for GLS integration.", + "Get Human bot." ], "type": "string" } @@ -30702,8 +30942,7 @@ "GEOMETRY_PRECISION_METERS", "GEOPOLITICAL_GEOMETRY_REST_OF_WORLD_POLYGON", "GEOPOLITICAL_GEOMETRY_SELF_POLYGON", - "INFERRED_GEOMETRY_INCLUDES_GEOMETRY_OF", - "INFERRED_GEOMETRY_EXCLUDES_GEOMETRY_OF", + "INFERRED_GEOMETRY_GEOMETRY_COMPOSITION", "INFERRED_GEOMETRY_DEFINES_GEOMETRY_FOR", "INTERSECTION", "INTERSECTION_GROUP", @@ -30853,7 +31092,9 @@ "DEPRECATED_DO_NOT_USE_SYLLABUS", "DEPRECATED_DO_NOT_USE_TRACK_CLASS", "DEPRECATED_DO_NOT_USE_VIEWCODE_INFO", - "DEPRECATED_DO_NOT_USE_WORKAREA" + "DEPRECATED_DO_NOT_USE_WORKAREA", + "DEPRECATED_DO_NOT_USE_INFERRED_GEOMETRY_INCLUDES_GEOMETRY_OF", + "DEPRECATED_DO_NOT_USE_INFERRED_GEOMETRY_EXCLUDES_GEOMETRY_OF" ], "enumDescriptions": [ "", @@ -31057,6 +31298,7 @@ "", "", "", + "", "" ], "type": "string" @@ -32569,6 +32811,27 @@ }, "type": "object" }, + "GeostoreGeometryComposition": { + "description": "Encapsulates all the features which, together, define the geometry of a feature. This happens by: 1. taking the union of all polygons of features referenced in includes_geometry_of 2. subtracting the polygons of all the features referenced in excludes_geometry_of", + "id": "GeostoreGeometryComposition", + "properties": { + "excludesGeometryOf": { + "description": "Features whose geometry to exclude while composing the geometry of this feature.", + "items": { + "$ref": "GeostoreFeatureIdProto" + }, + "type": "array" + }, + "includesGeometryOf": { + "description": "Features whose geometry to include while composing the geometry of this feature.", + "items": { + "$ref": "GeostoreFeatureIdProto" + }, + "type": "array" + } + }, + "type": "object" + }, "GeostoreGeopoliticalGeometryProto": { "description": "Geopolitical (unsimplified) polygons for a feature for different geopolitical use cases. See go/unsimplified-poly.", "id": "GeostoreGeopoliticalGeometryProto", @@ -32625,7 +32888,7 @@ "type": "object" }, "GeostoreInferredGeometryProto": { - "description": "The inferred geometry of a feature contains all the features which, together, define the geometry of a feature. This happens by: 1. Taking the union of all polygons of features referenced in \"includes_geometry_of\". 2. Subtract the geometries of all the features referenced in \"excludes_geometry_of\". See: go/inferred-geometry for more information.", + "description": "Inferred geometry defines the geometry of a feature through the geometry of other features. For instance, the geometry of a timezone can be specified as the union of all the countries it applies to. See: go/inferred-geometry and go/geo-schema:composite-geometry-editor for more details.", "id": "GeostoreInferredGeometryProto", "properties": { "definesGeometryFor": { @@ -32635,19 +32898,9 @@ }, "type": "array" }, - "excludesGeometryOf": { - "description": "Features whose geometry to exclude while inferring geometry.", - "items": { - "$ref": "GeostoreFeatureIdProto" - }, - "type": "array" - }, - "includesGeometryOf": { - "description": "Features whose geometry to include while inferring geometry.", - "items": { - "$ref": "GeostoreFeatureIdProto" - }, - "type": "array" + "geometryComposition": { + "$ref": "GeostoreGeometryComposition", + "description": "Features whose geometry defines the geometry of this feature." } }, "type": "object" @@ -44193,6 +44446,28 @@ }, "type": "object" }, + "GoogleCloudContentwarehouseV1ExportToCdwPipeline": { + "description": "The configuration of exporting documents from the Document Warehouse to CDW pipeline.", + "id": "GoogleCloudContentwarehouseV1ExportToCdwPipeline", + "properties": { + "documentIds": { + "description": "The list of all the documents to be processed.", + "items": { + "type": "string" + }, + "type": "array" + }, + "exportFolderPath": { + "description": "The Cloud Storage folder path used to store the exported documents before being sent to CDW. Format: gs:///.", + "type": "string" + }, + "processorInfo": { + "$ref": "GoogleCloudContentwarehouseV1ProcessorInfo", + "description": "The CDW processor information." + } + }, + "type": "object" + }, "GoogleCloudContentwarehouseV1FetchAclRequest": { "description": "Request message for DocumentService.FetchAcl", "id": "GoogleCloudContentwarehouseV1FetchAclRequest", @@ -44267,6 +44542,47 @@ "properties": {}, "type": "object" }, + "GoogleCloudContentwarehouseV1GcsIngestPipeline": { + "description": "The configuration of the Cloud Storage ingestion pipeline.", + "id": "GoogleCloudContentwarehouseV1GcsIngestPipeline", + "properties": { + "inputPath": { + "description": "The input Cloud Storage folder. All files under this folder will be imported to Document Warehouse. Format: gs:///.", + "type": "string" + }, + "schemaName": { + "description": "The Document Warehouse schema resource name. All documents processed by this pipeline will use this schema. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContentwarehouseV1GcsIngestWithDocAiProcessorsPipeline": { + "description": "The configuration of the document classify/split and entity/kvp extraction pipeline.", + "id": "GoogleCloudContentwarehouseV1GcsIngestWithDocAiProcessorsPipeline", + "properties": { + "classifySplitProcessorInfos": { + "$ref": "GoogleCloudContentwarehouseV1ProcessorInfo", + "description": "The classify or split processor information." + }, + "extractProcessorInfos": { + "description": "The entity or key-value pair extracting processor information.", + "items": { + "$ref": "GoogleCloudContentwarehouseV1ProcessorInfo" + }, + "type": "array" + }, + "inputPath": { + "description": "The input Cloud Storage folder. All files under this folder will be imported to Document Warehouse. Format: gs:///.", + "type": "string" + }, + "processorResultsFolderPath": { + "description": "The Cloud Storage folder path used to store the raw results from processors. Format: gs:///.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudContentwarehouseV1GetDocumentRequest": { "description": "Request message for DocumentService.GetDocument.", "id": "GoogleCloudContentwarehouseV1GetDocumentRequest", @@ -44626,6 +44942,25 @@ }, "type": "object" }, + "GoogleCloudContentwarehouseV1ProcessorInfo": { + "description": "The DocAI processor information.", + "id": "GoogleCloudContentwarehouseV1ProcessorInfo", + "properties": { + "documentType": { + "description": "The processor will process the documents with this document type.", + "type": "string" + }, + "processorName": { + "description": "The processor resource name. Format is `projects/{project}/locations/{location}/processors/{processor}`, or `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`", + "type": "string" + }, + "schemaName": { + "description": "The Document schema resource name. All documents processed by this processor will use this schema. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudContentwarehouseV1Property": { "description": "Property of a document.", "id": "GoogleCloudContentwarehouseV1Property", @@ -44761,6 +45096,13 @@ ], "type": "string" }, + "schemaSources": { + "description": "The mapping information between this property to another schema source.", + "items": { + "$ref": "GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSource" + }, + "type": "array" + }, "textTypeOptions": { "$ref": "GoogleCloudContentwarehouseV1TextTypeOptions", "description": "Text/string property." @@ -44772,6 +45114,21 @@ }, "type": "object" }, + "GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSource": { + "description": "The schema source information.", + "id": "GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSource", + "properties": { + "name": { + "description": "The schema name in the source.", + "type": "string" + }, + "processorType": { + "description": "The Doc AI processor type name.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudContentwarehouseV1PropertyFilter": { "id": "GoogleCloudContentwarehouseV1PropertyFilter", "properties": { @@ -45022,6 +45379,25 @@ }, "type": "object" }, + "GoogleCloudContentwarehouseV1RunPipelineRequest": { + "description": "Request message for DocumentService.RunPipeline.", + "id": "GoogleCloudContentwarehouseV1RunPipelineRequest", + "properties": { + "exportCdwPipeline": { + "$ref": "GoogleCloudContentwarehouseV1ExportToCdwPipeline", + "description": "Export docuemnts from Document Warehouseing to CDW for training purpose." + }, + "gcsIngestPipeline": { + "$ref": "GoogleCloudContentwarehouseV1GcsIngestPipeline", + "description": "Cloud Storage ingestion pipeline." + }, + "gcsIngestWithDocAiProcessorsPipeline": { + "$ref": "GoogleCloudContentwarehouseV1GcsIngestWithDocAiProcessorsPipeline", + "description": "Use DocAI processors to process documents in Cloud Storage and ingest them to Document Warehouse." + } + }, + "type": "object" + }, "GoogleCloudContentwarehouseV1SearchDocumentsRequest": { "description": "Request message for DocumentService.SearchDocuments.", "id": "GoogleCloudContentwarehouseV1SearchDocumentsRequest", @@ -46392,6 +46768,7 @@ "OPERATION_TYPE_UNSPECIFIED", "ADD", "REMOVE", + "UPDATE", "REPLACE", "EVAL_REQUESTED", "EVAL_APPROVED", @@ -46401,10 +46778,11 @@ "Operation type unspecified. If no operation is specified a provenance entry is simply used to match against a `parent`.", "Add an element.", "Remove an element identified by `parent`.", - "Replace an element identified by `parent`.", - "Request human review for the element identified by `parent`.", - "Element is reviewed and approved at human review, confidence will be set to 1.0.", - "Element is skipped in the validation process." + "Updates any fields within the given provenance scope of the message. It 'overwrites' the fields rather than replacing them. This is especially relevant when we just want to update a field value of an entity without also affecting all the child properties.", + "Currently unused. Replace an element identified by `parent`.", + "Deprecated. Request human review for the element identified by `parent`.", + "Deprecated. Element is reviewed and approved at human review, confidence will be set to 1.0.", + "Deprecated. Element is skipped in the validation process." ], "type": "string" } @@ -46442,7 +46820,7 @@ "type": "string" }, "createTime": { - "description": "The time that the revision was created.", + "description": "The time that the revision was created, internally generated by doc proto storage at the time of create.", "format": "google-datetime", "type": "string" }, @@ -46451,7 +46829,7 @@ "description": "Human Review information of this revision." }, "id": { - "description": "Id of the revision. Unique within the context of the document.", + "description": "Id of the revision, internally generated by doc proto storage. Unique within the context of the document.", "type": "string" }, "parent": { @@ -46716,7 +47094,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, @@ -46787,12 +47165,12 @@ "id": "GoogleInternalAppsWaldoV1alphaCalendarBusy", "properties": { "committedUntil": { - "description": "The time when the user will stop being committed, i.e., when their status will be neither of InMeeting, DoNotDisturb, Busy or OutOfOffice \u003c Xh. Note that the goal of this field is to provide information to help users decide how to communicate with a user (see also http://shortn/_wXYXtZScgh).", + "description": "The time when the user will either stop being committed or change commitment type (i.e. InMeeting, DoNotDisturb, Busy or OutOfOffice \u003c Xh). Note that the goal of this field is to provide information to help users decide how to communicate with a user (see also http://shortn/_wXYXtZScgh).", "format": "google-datetime", "type": "string" }, "committedUntilIsMixed": { - "description": "Whether the status of the user from this status's start to committed_until has more than one status type (e.g. DoNotDisturb + InMeeting).", + "description": "TODO(b/265939748) To be removed, always false from User Status Service.", "type": "boolean" }, "eventSummary": { @@ -46836,12 +47214,12 @@ "id": "GoogleInternalAppsWaldoV1alphaDoNotDisturb", "properties": { "committedUntil": { - "description": "The time when the user will stop being committed, i.e., when their status will be neither of InMeeting, DoNotDisturb, Busy or OutOfOffice \u003c Xh.", + "description": "The time when the user will either stop being committed or change commitment type (i.e. InMeeting, DoNotDisturb, Busy or OutOfOffice \u003c Xh). Note that the goal of this field is to provide information to help users decide how to communicate with a user (see also http://shortn/_wXYXtZScgh).", "format": "google-datetime", "type": "string" }, "committedUntilIsMixed": { - "description": "Whether the status of the user from this status's start to committed_until has more than one status type (e.g. DoNotDisturb + InMeeting).", + "description": "TODO(b/265939748) To be removed, always false from User Status Service.", "type": "boolean" }, "nextAvailable": { @@ -46868,12 +47246,12 @@ "id": "GoogleInternalAppsWaldoV1alphaInMeeting", "properties": { "committedUntil": { - "description": "The time when the user will stop being committed, i.e., when their status will be neither of InMeeting, DoNotDisturb, Busy or OutOfOffice \u003c Xh. Note that the goal of this field is to provide information to help users decide how to communicate with a user (see also http://shortn/_wXYXtZScgh).", + "description": "The time when the user will either stop being committed or change commitment type (i.e. InMeeting, DoNotDisturb, Busy or OutOfOffice \u003c Xh). Note that the goal of this field is to provide information to help users decide how to communicate with a user (see also http://shortn/_wXYXtZScgh).", "format": "google-datetime", "type": "string" }, "committedUntilIsMixed": { - "description": "Whether the status of the user from this status's start to committed_until has more than one status type (e.g. DoNotDisturb + InMeeting).", + "description": "TODO(b/265939748) To be removed, always false from User Status Service.", "type": "boolean" }, "eventSummary": { @@ -46944,12 +47322,12 @@ "type": "string" }, "committedUntil": { - "description": "The time when the user will stop being committed, i.e., when their status will be neither of InMeeting, DoNotDisturb, Busy or OutOfOffice \u003c Xh. Note that if this OOO block is large (\u003e=Xh), committed_until is not set.", + "description": "The time when the user will either stop being committed or change commitment type (i.e. InMeeting, DoNotDisturb, Busy or OutOfOffice \u003c Xh). Note that the goal of this field is to provide information to help users decide how to communicate with a user (see also http://shortn/_wXYXtZScgh). Note that if this OOO block is large (\u003e=Xh), committed_until is not set.", "format": "google-datetime", "type": "string" }, "committedUntilIsMixed": { - "description": "Whether the status of the user from this status's start to committed_until has more than one status type (e.g. DoNotDisturb + InMeeting). Only set if committed_until is set.", + "description": "TODO(b/265939748) To be removed, always false from User Status Service.", "type": "boolean" }, "eventSummary": { @@ -50124,7 +50502,7 @@ "type": "object" }, "ImageData": { - "description": "This defines the per-doc data which is extracted from thumbnails and propagated over to indexing. It contains all information that can be used for restricts. Next tag id: 128", + "description": "This defines the per-doc data which is extracted from thumbnails and propagated over to indexing. It contains all information that can be used for restricts. Next tag id: 129", "id": "ImageData", "properties": { "adaboostImageFeaturePorn": { @@ -50171,6 +50549,11 @@ "format": "int32", "type": "integer" }, + "clusterId": { + "description": "Superlabels generated cluster id.", + "format": "byte", + "type": "string" + }, "codomainStrength": { "description": "Like is_visible, this is a property of the (web-doc, img_url) pair not just the image. A high codomain_strength indicates high confidence based on collected stats that the image is hosted on a companion domain. If not enough stats are available for codomain strength, this field may be absent in ImageData, and hence the CompositeDoc. Do not place negative values here. Permitted values range between 0 and image_quality_codomain::kMaxCodomainStrength defined in //image/quality/codomain/codomain-stats-utils.h.", "format": "int32", @@ -58060,6 +58443,32 @@ }, "type": "object" }, + "IndexingVideosAsrTranscriptRepairAnnotation": { + "description": "This proto captures the output of analyses that ran on Automatic Speech Recogntion produced by the recognizer.", + "id": "IndexingVideosAsrTranscriptRepairAnnotation", + "properties": { + "gibberishResult": { + "enum": [ + "UNDEFINED_GIBBERISH_RESULT", + "NOT_GIBBERISH", + "IS_GIBBERISH", + "GIBBERISH_UNSUPPORTED_LANGUAGE", + "GIBBERISH_DECLINED", + "GIBBERISH_DETECTION_FAILED" + ], + "enumDescriptions": [ + "The status of this document is unknown.", + "", + "The transcript is gibberish and should not be used.", + "Gibberish detection was not run because the language is not supported. Consider this not gibberish.", + "Gibberish detection declined to run for an unspecified reason. Consider this not gibberish.", + "Gibberish detection ran, but failed. Consider this not gibberish." + ], + "type": "string" + } + }, + "type": "object" + }, "KaltixPerDocData": { "id": "KaltixPerDocData", "properties": { @@ -59692,7 +60101,9 @@ "MEDIA", "CONCEPT", "RELATION", - "ATTENTIONAL_ENTITY" + "ATTENTIONAL_ENTITY", + "AUDIO_MESSAGE_METADATA_ID", + "BROADCAST" ], "enumDescriptions": [ "", @@ -59705,7 +60116,7 @@ "", "", "An go/identifier-for-generalized-device generalized device ID", - "An nlp_semantic_parsing.models.device.DeviceSetting that represents a single device setting.", + "An identifier type for device settings. Its value is a stringified nlp_semantic_parsing.models.device.DeviceSetting enum plus optionally a field path that points to a specific part of the device setting. Examples: \"AIRPLANE_MODE\" (a device setting) \"BRIGHTNESS_LEVEL\" (a device setting) \"AIRPLANE_MODE.status\" (the \"status\" field of AIRPLANE_MODE). \"BRIGHTNESS_LEVEL.level\" (the \"level\" field of BRIGHTNESS_LEVEL). While the device setting itself is represented by the DeviceSetting enum mentioned above, the names of fields depend on how the setting is modeled, and can vary from implementation to implementation.", "An assistant.context.RoomId aka DeviceId.home_graph_device_id", "An assistant.context.StructureId aka DeviceId.home_graph_device_id", "An identifier for a zone. See: go/zone-gp and go/smarthome-zones", @@ -59717,7 +60128,9 @@ "Media specific id types. go/media-gb-data", "Concept and relation identifiers (go/discovered-not-designed)", "", - "" + "", + "A secondary speech id for Audio Message Metadata go/audio-message-gp.", + "Broadcast feature identifier go/routines-broadcast-device-gp" ], "type": "string" } @@ -59936,7 +60349,7 @@ "type": "object" }, "KnowledgeAnswersIntentQueryParsingSignals": { - "description": "Parsing-related signals. Only horizontal signals should appear directly as fields on this message. Each domain should create their own extension for anything that they need to propagate down stream from AQUA. Note that this proto is not the same as the Superroot proto ParsingSignals (http://google3/knowledge/proto/scoring-signals.proto), which is a Superroot-specific signal used in Scoring. Next ID: 5", + "description": "Parsing-related signals. Only horizontal signals should appear directly as fields on this message. Each domain should create their own extension for anything that they need to propagate down stream from AQUA. Note that this proto is not the same as the Superroot proto ParsingSignals (http://google3/knowledge/proto/scoring-signals.proto), which is a Superroot-specific signal used in Scoring. Next ID: 7", "id": "KnowledgeAnswersIntentQueryParsingSignals", "properties": { "calibratedParsingScore": { @@ -59944,6 +60357,16 @@ "format": "double", "type": "number" }, + "effectiveArgSpanLength": { + "description": "The total effective length of the spans for the arguments used to construct the parse. May include vertical specific adjustments. Eg: For the query [delete my 7 p.m. alarm called chicken] and intent Delete_alarm(alarm_object=RD(category=AlarmObject( label=\"chicken\", trigger_time_datetime=\u003c\u003c 7 PM \u003e\u003e))), the effective argument span is \"7 p.m.\" + \"chicken\" (total length of 13).", + "format": "float", + "type": "number" + }, + "inQueryMaxEffectiveArgSpanLength": { + "description": "This is a cross-intent feature which is calculated by iterating all intent candidates. This feature should be populated in post-IG stage (before GB).", + "format": "float", + "type": "number" + }, "qrewriteCallPathInfo": { "$ref": "NlpLoggingQRewriteClientCallPathInfo", "description": "This proto holds the complete call path info of the QRewrite client (e.g. the QUS's phase like \"RBT\",\"QBT\"; the QUS's candidate type like \"Identity\"; and the ACE's candidate type like \"FuzzyMatcher\")." @@ -59960,14 +60383,16 @@ "SAGE", "UNSTRUCTURED_INTENTS", "NSP", - "AQUA" + "AQUA", + "PHONE_GENIE" ], "enumDescriptions": [ "", "Score is calibrated by Sage IG.", "The FunctionCall is produced by the Unstructured Intent IG. See go/unstructured-intents-ig.", "The FunctionCall is produced by NSP in TUIG. This is consumed in QUS, to route behavior specific to NSP.", - "The FunctionCall is produced by Aqua." + "The FunctionCall is produced by Aqua.", + "The FunctionCall is produced by PhoneGenie in TUIG. See go/phone-genie-tuig" ], "type": "string" } @@ -61410,7 +61835,7 @@ }, "dependencyType": { "$ref": "KnowledgeAnswersDependencyType", - "description": "Work in progress: Used for configuring dynamic types to allow for type transparency. See: go/type-dependencies" + "description": "Used for configuring dynamic types to allow for type transparency. See: go/type-dependencies" }, "durationType": { "$ref": "KnowledgeAnswersDurationType" @@ -61471,10 +61896,6 @@ "semanticType": { "$ref": "KnowledgeAnswersSemanticType" }, - "slotName": { - "description": "DEPRECATED: see go/type-dependencies. Please reach out to suwu@, dqwang@ if usage is required.", - "type": "string" - }, "stateOfAffairsType": { "$ref": "KnowledgeAnswersStateOfAffairsType" }, @@ -76370,6 +76791,7 @@ "CDDB", "MONOSPACE", "MY_ACCOUNT", + "NUDGEIT_CAMPAIGN_MANAGER", "DEPRECATED_QUICKSTART_FLUME", "DUO_CLIENT", "ALBERT", @@ -77006,6 +77428,7 @@ "Cddb Team contact: cddb-dev-team@google.com", "Monospace Team contact: monospace-eng@google.com", "My Account Team contact: my-google-eng@google.com", + "Nudgeit Campaign Manager Team contact: nudges-campaign-manager-team@google.com", "", "Duo Client Team contact: duo-eng@google.com", "Project albert (go/albert-frontend) Team contact: albert-eng@google.com", @@ -77909,7 +78332,7 @@ "", "", "CONTACT is only for internal use by Maps Personalization Server. SetAlias and DeleteAlias RPCs will not accept this type.", - "Alias is an user-entered string stored in nickname field." + "Alias is a user-entered string stored in nickname field." ], "type": "string" } @@ -81326,6 +81749,7 @@ "REMINDER_DRAGONGLASS_ARIS", "REMINDER_PROACTIVE_API", "REMINDER_POST_TASK_MIGRATION", + "REMINDER_NOTIFICATION_ENABLE_NOTICE", "CROSS_SURFACE", "CROSS_SURFACE_MOVIE_SHOWTIMES", "CROSS_SURFACE_EVENTS", @@ -81693,6 +82117,8 @@ "MEMORY_TAP_SAVE", "SHELDON_DISCLOSURE", "PROACTIVE_API_FASTTRACK", + "PERSONAL_RESULTS_OPTIN", + "HEADPHONE_PERSONAL_RESULTS_OPTIN", "UNIT_TESTING" ], "enumDescriptions": [ @@ -81745,6 +82171,7 @@ "", "", "", + "", "This is deprecated. Use CROSS_SURFACE_TRANSACTIONS instead.", "", "", @@ -82094,6 +82521,8 @@ "", "Notification for legally-required disclosure of Sheldon project. go/sheldon-notification-prd.", "Notification configured through FastTrack UI: http://fasttrack.", + "Notification for Personal Response (PR) opt-in: go/migrate-pr-notifs-tng-ma-prd", + "Notification for Headphone Personal Response (HPR) opt-in: go/migrate-pr-notifs-tng-ma-prd", "NOTE: This should always stay at the bottom of the list." ], "type": "string" @@ -82672,7 +83101,7 @@ "type": "object" }, "QualityCalypsoAppsUniversalAuLiveOpFormat": { - "description": "Contains the format information for a single LiveOp/LiveEvent. Next ID: 10", + "description": "Contains the format information for a single LiveOp/LiveEvent. Next ID: 11", "id": "QualityCalypsoAppsUniversalAuLiveOpFormat", "properties": { "deeplink": { @@ -82688,6 +83117,9 @@ "imageUrl": { "type": "string" }, + "originalImageUrl": { + "type": "string" + }, "squareImageUrl": { "type": "string" }, @@ -85070,7 +85502,58 @@ "GOOGLE_SCREENSHOT", "MUGSHOT", "CRIME", - "SHOPPING_TOPN" + "SHOPPING_TOPN", + "RESERVED_FOR_NEW_ENUM_128", + "RESERVED_FOR_NEW_ENUM_129", + "RESERVED_FOR_NEW_ENUM_130", + "RESERVED_FOR_NEW_ENUM_131", + "RESERVED_FOR_NEW_ENUM_132", + "RESERVED_FOR_NEW_ENUM_133", + "RESERVED_FOR_NEW_ENUM_134", + "RESERVED_FOR_NEW_ENUM_135", + "RESERVED_FOR_NEW_ENUM_136", + "RESERVED_FOR_NEW_ENUM_137", + "RESERVED_FOR_NEW_ENUM_138", + "RESERVED_FOR_NEW_ENUM_139", + "RESERVED_FOR_NEW_ENUM_140", + "RESERVED_FOR_NEW_ENUM_141", + "RESERVED_FOR_NEW_ENUM_142", + "RESERVED_FOR_NEW_ENUM_143", + "RESERVED_FOR_NEW_ENUM_144", + "RESERVED_FOR_NEW_ENUM_145", + "RESERVED_FOR_NEW_ENUM_146", + "RESERVED_FOR_NEW_ENUM_147", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_97", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_98", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_99", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_100", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_101", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_102", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_103", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_104", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_105", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_106", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_107", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_108", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_109", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_110", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_111", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_112", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_113", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_114", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_115", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_116", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_117", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_118", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_119", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_120", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_121", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_122", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_123", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_124", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_125", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_126", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_127" ], "enumDescriptions": [ "", @@ -85169,7 +85652,58 @@ "This is an image intent", "Image intent representing whether there is a mugshot in the image (or if the image is itself a mugshot).", "Document intent representing whether a page is crime-related (go/crime-demotion-in-image-search-dd)", - "Document intent representing whether a page is recommending best shopping products fulfilling certain application (e.g. \"best laptops for students\"). See go/shopping_topn_orbit." + "Document intent representing whether a page is recommending best shopping products fulfilling certain application (e.g. \"best laptops for students\"). See go/shopping_topn_orbit.", + "========== Enums for new intents ========== Instructions: When adding a new intent, use the reserved enum number from the start of this list, and add a new reserved enum number to the end for the next person. There is a unit test that checks there are at least 20 reserved enums. See go/new-intentkeyenum for details.", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "========== Enums for new large intents ========== Please ask orbit@ before using these.", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" ], "type": "string" }, @@ -85294,7 +85828,58 @@ "GOOGLE_SCREENSHOT", "MUGSHOT", "CRIME", - "SHOPPING_TOPN" + "SHOPPING_TOPN", + "RESERVED_FOR_NEW_ENUM_128", + "RESERVED_FOR_NEW_ENUM_129", + "RESERVED_FOR_NEW_ENUM_130", + "RESERVED_FOR_NEW_ENUM_131", + "RESERVED_FOR_NEW_ENUM_132", + "RESERVED_FOR_NEW_ENUM_133", + "RESERVED_FOR_NEW_ENUM_134", + "RESERVED_FOR_NEW_ENUM_135", + "RESERVED_FOR_NEW_ENUM_136", + "RESERVED_FOR_NEW_ENUM_137", + "RESERVED_FOR_NEW_ENUM_138", + "RESERVED_FOR_NEW_ENUM_139", + "RESERVED_FOR_NEW_ENUM_140", + "RESERVED_FOR_NEW_ENUM_141", + "RESERVED_FOR_NEW_ENUM_142", + "RESERVED_FOR_NEW_ENUM_143", + "RESERVED_FOR_NEW_ENUM_144", + "RESERVED_FOR_NEW_ENUM_145", + "RESERVED_FOR_NEW_ENUM_146", + "RESERVED_FOR_NEW_ENUM_147", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_97", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_98", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_99", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_100", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_101", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_102", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_103", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_104", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_105", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_106", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_107", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_108", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_109", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_110", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_111", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_112", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_113", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_114", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_115", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_116", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_117", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_118", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_119", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_120", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_121", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_122", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_123", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_124", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_125", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_126", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_127" ], "enumDescriptions": [ "", @@ -85393,7 +85978,58 @@ "This is an image intent", "Image intent representing whether there is a mugshot in the image (or if the image is itself a mugshot).", "Document intent representing whether a page is crime-related (go/crime-demotion-in-image-search-dd)", - "Document intent representing whether a page is recommending best shopping products fulfilling certain application (e.g. \"best laptops for students\"). See go/shopping_topn_orbit." + "Document intent representing whether a page is recommending best shopping products fulfilling certain application (e.g. \"best laptops for students\"). See go/shopping_topn_orbit.", + "========== Enums for new intents ========== Instructions: When adding a new intent, use the reserved enum number from the start of this list, and add a new reserved enum number to the end for the next person. There is a unit test that checks there are at least 20 reserved enums. See go/new-intentkeyenum for details.", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "========== Enums for new large intents ========== Please ask orbit@ before using these.", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" ], "type": "string" }, @@ -88035,7 +88671,7 @@ "type": "string" }, "nonDisplayableOrganicScoreMillis": { - "description": "Normalized riskiness score for Organic destinations. It's in range [0,1000] with 0 being the worst score and 1000 being the best.", + "description": "Normalized riskiness score for Organic destinations. It's in range [1,1000] with 1 being the worst score and 1000 being the best.", "format": "int32", "type": "integer" }, @@ -89466,6 +90102,10 @@ "description": "Should precisely match the amarna_docid in ContentBasedVideoMetadata.", "type": "string" }, + "asrRepair": { + "$ref": "IndexingVideosAsrTranscriptRepairAnnotation", + "description": "The results of ASR transcript quality analysis." + }, "lang": { "description": "The language of the transcript as recorded in Amarna.", "type": "string" @@ -98251,11 +98891,8 @@ "description": "The mid and description of a WebRefEntity.", "id": "ResearchScienceSearchSourceUrlDocjoinInfoWebrefEntityInfo", "properties": { - "description": { - "description": "The English description of the mid from the KG.", - "type": "string" - }, - "entityType": { + "deprecatedEntityType": { + "description": "DEPRECATED. See entity_type instead.", "enum": [ "UNKNOWN", "FIELD_OF_STUDY", @@ -98270,6 +98907,28 @@ ], "type": "string" }, + "description": { + "description": "The English description of the mid from the KG.", + "type": "string" + }, + "entityCollectionType": { + "items": { + "enum": [ + "UNKNOWN", + "FIELD_OF_STUDY", + "GEO", + "ORGANIZATION" + ], + "enumDescriptions": [ + "", + "/collection/field_of_studies in KG.", + "/collection/geo/* in KG.", + "/collection/organization/* in KG" + ], + "type": "string" + }, + "type": "array" + }, "kgCollection": { "description": "HRID of the KG collections", "items": { @@ -106821,7 +107480,7 @@ "type": "object" }, "TrawlerTrawlerPrivateFetchReplyData": { - "description": "This is an optional container of arbitrary data that can be added to a FetchReplyData. This data is meant to be logged, but not sent back in a fetch reply (it should be added *after* the reply is prepared). Use FetchResponsePreparatorImpl::AddTrawlerPrivateDataToFetchReplyData to add. See also the comment in fetch_response_preparator_impl.cc. Next Tag: 43", + "description": "This is an optional container of arbitrary data that can be added to a FetchReplyData. This data is meant to be logged, but not sent back in a fetch reply (it should be added *after* the reply is prepared). Use FetchResponsePreparatorImpl::AddTrawlerPrivateDataToFetchReplyData to add. See also the comment in fetch_response_preparator_impl.cc. Next Tag: 44", "id": "TrawlerTrawlerPrivateFetchReplyData", "properties": { "BotGroupName": { @@ -106946,6 +107605,10 @@ ], "type": "string" }, + "bypassedHostOverfull": { + "description": "Cache hit for this url, bypassed host_overfull error.", + "type": "boolean" + }, "cacheAcceptableAfterDate": { "description": "Corresponds to AcceptableAfterDate field in FetchParams.", "format": "int32", @@ -107526,6 +108189,11 @@ "MDP_P13N_GAME_QUERY_L7_EVENT_LEVEL", "MDP_P13N_GAME_QUERY_L8_EVENT_LEVEL", "MDP_P13N_GAME_QUERY_L9_EVENT_LEVEL", + "MDP_P13N_RERANKING_UNKNOWN_EVENT_LEVEL", + "MDP_P13N_RERANKING_CATEGORICAL_EVENT_LEVEL", + "MDP_P13N_RERANKING_NAVIGATIONAL_EVENT_LEVEL", + "MDP_P13N_RERANKING_MULTI_NAVIGATIONAL_EVENT_LEVEL", + "MDP_P13N_RERANKING_NAVIGATIONAL_EXT_EVENT_LEVEL", "SECOND_PASS_POLARIS_RERANKING_EVENT_LEVEL", "SECOND_PASS_POLARIS_WITH_RANKING_CHANGE_EVENT_LEVEL", "EXPLORATORY_BOOSTING_EVENT_LEVEL", @@ -108466,6 +109134,11 @@ "MDP_P13N_GAME_QUERY_L7_SESSION_LEVEL", "MDP_P13N_GAME_QUERY_L8_SESSION_LEVEL", "MDP_P13N_GAME_QUERY_L9_SESSION_LEVEL", + "MDP_P13N_RERANKING_UNKNOWN_SESSION_LEVEL", + "MDP_P13N_RERANKING_CATEGORICAL_SESSION_LEVEL", + "MDP_P13N_RERANKING_NAVIGATIONAL_SESSION_LEVEL", + "MDP_P13N_RERANKING_MULTI_NAVIGATIONAL_SESSION_LEVEL", + "MDP_P13N_RERANKING_NAVIGATIONAL_EXT_SESSION_LEVEL", "VIDEO_CAN_AUTOPLAY", "VIDEO_CANNOT_AUTOPLAY", "YOUTUBE_OPT_IN_NOTIFICATION_DRIVEN_PREFETCH_SESSION_LEVEL", @@ -108483,6 +109156,7 @@ "BOOKS_SEARCH_PAGE_DORA_QUERY_SESSION_LEVEL", "INLINE_DETAILS_TQUALITY_CHECK_UNKNOWN_SESSION_LEVEL", "INLINE_DETAILS_TQUALITY_CHECK_UNKNOWN_FRONTEND_SESSION_LEVEL", + "APPS_LAUNCHER_CLUSTER_AT_SESSION_LEVEL", "SESSION_LEVEL_TEST_CODE_LIMIT", "SHOULD_SEE_LIVE_OP_CLUSTER_USER_LEVEL", "CART_ABANDONMENT_USER_LEVEL", @@ -108761,7 +109435,6 @@ "P13N_INTERSTITIAL_USER_LEVEL", "PLAY_EVENT_SERVICE_LOG_HOOK_USER_EXAMPLE", "FEATURED_SUBSCRIPTIONS_PRESENT_USER_LEVEL", - "NOTIFICATION_USER_AFFINITY_USER_LEVEL", "USE_SUBSCRIPTION_NEW_DOCUMENT_FORMAT_USER_LEVEL", "USE_SUBSCRIPTION_NEW_DOCUMENT_FORMAT_PREVIEW_BATCH_USER_LEVEL", "USE_SUBSCRIPTION_NEW_DOCUMENT_FORMAT_SKU_DETAILS_USER_LEVEL", @@ -108936,6 +109609,14 @@ "POST_PURCHASE_OFFER_POST_PURCHASE_CONFIRMATION_DIALOG_SERVER_USER_LEVEL", "POST_PURCHASE_OFFER_POST_PURCHASE_OFFER_SAVED_DIALOG_SERVER_USER_LEVEL", "POST_PURCHASE_OFFER_VALUE_PROMOTION_DIALOG_SHOWN_SERVER_USER_LEVEL", + "MDP_P13N_RERANKING_UNKNOWN_USER_LEVEL", + "MDP_P13N_RERANKING_CATEGORICAL_USER_LEVEL", + "MDP_P13N_RERANKING_NAVIGATIONAL_USER_LEVEL", + "MDP_P13N_RERANKING_MULTI_NAVIGATIONAL_USER_LEVEL", + "MDP_P13N_RERANKING_NAVIGATIONAL_EXT_USER_LEVEL", + "PLAY_ONBOARDING_QUEST_PLATFORM_SERVING_USER_LEVEL", + "APPS_LAUNCHER_CLUSTER_AT_USER_LEVEL", + "PBUY_V1_SEQUENCE_MODEL_LAUNCH_USER_LEVEL", "USER_LEVEL_TEST_CODE_LIMIT" ], "enumDescriptions": [ @@ -109210,6 +109891,11 @@ "", "", "", + "", + "", + "", + "", + "", "Second pass polaris reranking event level.", "Second pass polaris with ranking change event level.", "Exploratory boosting event level.", @@ -110150,6 +110836,11 @@ "", "", "", + "", + "", + "", + "", + "", "Session level test code to tell if a video can autoplay for the given user based on their settings and connection status", "", "Session level test code for YouTube commerce, tracking users who opt in notification driven prefetch.", @@ -110167,6 +110858,7 @@ "Test code for Books search queries that trigger Dora categorical search.", "Session level test code containing result of tQuality lookup during market details url matching. Unknown means the lookup found nothing.", "", + "Session-level test code that indicates a user was served an Apps Launcher Cluster.", "", "User should see the live op cluster.", "Cart abandonment flow for purchase flow.", @@ -110445,7 +111137,6 @@ "", "", "", - "", "Test code for tracking the new subscription document format in GetSkuDetails, Acquire and SubscriptionDocumentsFetcher flows", "", "", @@ -110620,6 +111311,14 @@ "Post purchase offer test codes User level test code to track the user who sees the post purcahse offer redemption dialog for post purchase offer experiment.", "User level test code to track the user who sees the post purcahse offer saved dialog for post purchase offer experiment.", "User level test code to track the user who sees the value promotion dialog, including loyalty upsell, post purcahse offer and so on for post purchase offer experiment.", + "MDP P13N reranking.", + "", + "", + "", + "", + "User level test code for Play Onboarding quest, tracking users who are eligible in any serving flow via Quest Platform.", + "User-level test code that indicates a user was served an Apps Launcher Cluster.", + "User level test code for v1 sequence model launch layer, tracking users who actually get different experience between control and treatment.", "" ], "type": "string" @@ -126575,7 +127274,7 @@ "type": "object" }, "YoutubeCommentsClusteringMiniStanza": { - "description": "Intended to be simpler to work with than the ExportedStanza it's derived from See documentation: https://g3doc.corp.google.com/company/teams/youtube/community_intelligence/eng_resources/data_sources.md#ministanza Next available: 76", + "description": "Intended to be simpler to work with than the ExportedStanza it's derived from See documentation: https://g3doc.corp.google.com/company/teams/youtube/community_intelligence/eng_resources/data_sources.md#ministanza Next available: 77", "id": "YoutubeCommentsClusteringMiniStanza", "properties": { "ansibleScores": { @@ -127036,6 +127735,10 @@ "$ref": "YoutubeCommentsSentimentSentiment", "description": "Sentiment. This omits entity_sentiment and keeps only the polarity, magnitude, and score. Sentiment as currently implemented is not debiased and has limited language coverage. Please read go/comments-sentiment-access before using." }, + "shortReplyVideoId": { + "description": "Associated Short Reply video ID if the comment represents a Short Reply. See go/yt-comment-sticker-m2.", + "type": "string" + }, "smartReplies": { "additionalProperties": { "$ref": "VideoYoutubeCommentsClassificationProtoYouTubeCommentSmartReply" diff --git a/contentwarehouse/v1/contentwarehouse-gen.go b/contentwarehouse/v1/contentwarehouse-gen.go index 8698af92e7c..98c293f22af 100644 --- a/contentwarehouse/v1/contentwarehouse-gen.go +++ b/contentwarehouse/v1/contentwarehouse-gen.go @@ -3133,6 +3133,9 @@ type AppsPeopleOzExternalMergedpeopleapiAffinity struct { // "SOJI_AFFINITY" // "PLAY_MOVIES_ANDROID_AFFINITY" // "DATA_STUDIO_DOMAIN_ONLY_AFFINITY" + // "MONOSPACE_AFFINITY" + // "MY_ACCOUNT_AFFINITY" + // "NUDGEIT_CAMPAIGN_MANAGER_AFFINITY" AffinityType string `json:"affinityType,omitempty"` // ContainerId: The ID of the container @@ -3466,12 +3469,18 @@ func (s *AppsPeopleOzExternalMergedpeopleapiBestDisplayName) MarshalJSON() ([]by // go/people-api-masks#profile-domain_profile) - See // go/papi-vs-papi++#birthday for more details. type AppsPeopleOzExternalMergedpeopleapiBirthday struct { + // AgeDisableGracePeriod: Only supported for + // PROFILE/DOMAIN_PROFILE/ACCOUNT container. AgeDisableGracePeriod *AppsPeopleOzExternalMergedpeopleapiBirthdayAgeDisableGracePeriod `json:"ageDisableGracePeriod,omitempty"` // BirthdayDecoration: Whether the user has opted in to display their - // birthday via photo decorations. + // birthday via photo decorations. Only supported for + // PROFILE/DOMAIN_PROFILE container. BirthdayDecoration *SocialGraphApiProtoBirthdayDecoration `json:"birthdayDecoration,omitempty"` + // BirthdayResolution: Only supported for PROFILE/DOMAIN_PROFILE/ACCOUNT + // container. + // // Possible values: // "FULL" - Birthday includes year, month, and day. // "MONTH_AND_APPROXIMATED_YEAR" - Birthday includes approximate year @@ -3530,7 +3539,8 @@ type AppsPeopleOzExternalMergedpeopleapiBirthday struct { Metadata *AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata `json:"metadata,omitempty"` - // Prompt: People Prompts settings for contact birthday data. + // Prompt: People Prompts settings for contact birthday data. Only + // supported for CONTACT container. Prompt *SocialGraphApiProtoPrompt `json:"prompt,omitempty"` // Value: Actual value entered. Allows unstructured values. @@ -11296,12 +11306,16 @@ type AssistantApiClientOpPropertiesDeviceModifySettingClientOpProperty struct { // "ADAPTIVE_BRIGHTNESS" // "ADAPTIVE_CHARGING" // "ADAPTIVE_CONNECTIVITY" + // "ADAPTIVE_SOUND" + // "ADD_ACCOUNT" // "ADD_BLUETOOTH_DEVICE" - Pair a bluetooth device. // "ADD_DEVICE" - Link a device to Assistant/Google Home. // "ADD_FINGERPRINT" + // "ADS_TRACKING" // "AIRPLANE_MODE" // "ALARM_VOLUME" // "ALARM_SOUND" - Deprecated, use DEFAULT_ALARM_SOUND instead. + // "ALLOW_MULTIPLE_USERS" // "AMBIENT_DISPLAY_ALWAYS_ON" // "AMBIENT_DISPLAY_NEW_NOTIFICATION" // "ANDROID_AUTO" @@ -11337,6 +11351,7 @@ type AssistantApiClientOpPropertiesDeviceModifySettingClientOpProperty struct { // "CALL_VOLUME" // "CAMERA_DOUBLE_TWIST" // "CAST" + // "CAR_CRASH_DETECTION" // "COLOR_INVERSION" // "COLOR_CORRECTION" // "CONVERSATIONS" @@ -11358,6 +11373,7 @@ type AssistantApiClientOpPropertiesDeviceModifySettingClientOpProperty struct { // "DEFAULT_NOTIFICATION_SOUND" // "DEFAULT_APPS" // "DEVELOPER_OPTIONS" + // "DEVICE_ASSISTANT_APP" - Device's voice assistant app selection. // "DEVICE_NAME" // "DISPLAY_OVER_OTHER_APPS" // "DISPLAY_SIZE" @@ -11369,8 +11385,10 @@ type AssistantApiClientOpPropertiesDeviceModifySettingClientOpProperty struct { // "DOUBLE_TAP_CHECK_PHONE" // "DRIVING_MODE" - Special mode for using device hands-free while // driving. + // "EARTHQUAKE_ALERTS" // "EMERGENCY" - Main emergency settings // "EMERGENCY_ALERTS" + // "EMERGENCY_CONTACTS" // "EMERGENCY_INFORMATION" // "ETHERNET_TETHERING" // "EXTRA_DIM" - Makes screen extra dark. @@ -11381,6 +11399,7 @@ type AssistantApiClientOpPropertiesDeviceModifySettingClientOpProperty struct { // "FOCUS_MODE" // "FONT_SIZE" // "FREE_UP_SPACE" + // "FINGERPRINT_MANAGER" // "GESTURES" - A page for device gestures // "HAPTIC_FEEDBACK_VIBRATION" - Deprecated, use VIBRATION instead. // "HARD_KEYBOARD" @@ -11395,6 +11414,7 @@ type AssistantApiClientOpPropertiesDeviceModifySettingClientOpProperty struct { // "JUMP_TO_CAMERA" // "KEYBOARD_SHORTCUTS" // "LIFT_CHECK_PHONE" + // "LIVE_TRANSLATE" // "LOCATION" // "LOCATION_HISTORY" // "LOCATION_BLUETOOTH_SCANNING" @@ -11473,6 +11493,8 @@ type AssistantApiClientOpPropertiesDeviceModifySettingClientOpProperty struct { // "SYSTEM_NAVIGATION" - Settings page for configuring how navigation // between apps is done. Specifically android has choice between Buttons // of Gestures mode. + // "SYSTEM_NAVIGATION_GESTURES" + // "SYSTEM_NAVIGATION_BUTTONS" // "TALKBACK_PASSWORDS" // "TEXT_TO_SPEECH" // "TIME_ZONE" @@ -13810,7 +13832,8 @@ type AssistantApiCoreTypesSurfaceIdentity struct { // "ANDROID_TV" - The Android platform that powers smart televisions, // set-top-boxes, and over-the-top devices. See go/atv-eng and // go/opa-tv. OWNERS: opa-tv-eng@ - // "ANDROID_WEAR" - Wear OS Assistant. OWNERS: wear-assistant-eng@ + // "ANDROID_WEAR" - Legacy Wear OS Assistant. OWNERS: + // wear-assistant-eng@ // "ASSISTANT_KIT" - AssistantKit (go/assistantkit) is a collection of // iOS libraries allowing first party apps to integrate Google Assistant // features. OWNERS: assistantkit-eng@ @@ -13827,8 +13850,20 @@ type AssistantApiCoreTypesSurfaceIdentity struct { // surfaces-infra-core@ // "CROS" - Assistant on native Chrome OS (go/croissant). OWNERS: // croissant@ + // "FITBIT_OS" - Fitbit OS. OWNERS: surfaces-infra-core@ + // "FITBIT_OS_WATCH" - Assistant on Fitbit OS Watch. OWNERS: + // assistant-wearable-team@ + // "FITBIT_OS_WATCH_ANDROID" - Assistant on Fitbit Watch paired with + // AGSA. OWNERS: assistant-wearable-team@ + // "FITBIT_OS_WATCH_IOS" - Assistant on Fitbit Watch paired with iOPA. + // OWNERS: assistant-wearable-team@ // "GOOGLE_HOME" - Google home speaker, i.e., Chirp devices. See // go/assistant-speakers. OWNERS: assistant-speaker-leads@ + // "HEADPHONE" - Headphone. OWNERS: surfaces-infra-core@ + // "HEADPHONE_ANDROID" - Assistant on headphones paired with AGSA. + // OWNERS: assistant-wearable-team@ + // "HEADPHONE_IOS" - Assistant on headphones paired with iOPA. OWNERS: + // assistant-wearable-team@ // "IOPA" - Assistant on iOS devices (go/opa-ios). OWNERS: // opa-ios-eng@ // "IOS" - iOS. OWNERS: surfaces-infra-core@ @@ -13847,6 +13882,10 @@ type AssistantApiCoreTypesSurfaceIdentity struct { // "PIXEL5" - Pixel 5. OWNERS: surfaces-infra-core@ // "PIXEL6" - Pixel 6. OWNERS: surfaces-infra-core@ // "PIXEL7" - Pixel 7. OWNERS: surfaces-infra-core@ + // "PIXEL_BUDS" - Assistant on Pixel Buds. OWNERS: + // assistant-wearable-team@ + // "PIXEL_WATCH" - Assistant on Pixel Watch (a.k.a., Rohan). OWNERS: + // assistant-wearable-team@ // "SCREENLESS" - Devices with screen off or locked (go/bisto). // OWNERS: surfaces-infra-core@ // "SMART_DISPLAY" - Smart surface, such as Titan. OWNERS: @@ -13856,6 +13895,10 @@ type AssistantApiCoreTypesSurfaceIdentity struct { // "TELEPHONE" - Assistant on a phone call (go/telephone). OWNERS: // telephone-assistant-eng@ // "THING" - IoT device. OWNERS: surfaces-infra-core@ + // "WATCH" - Watch. OWNERS: surfaces-infra-core@ + // "WEAR_OS" - Wear OS. OWNERS: surfaces-infra-core@ + // "WEAR_OS_WATCH" - Assistant on Wear OS Watch (a.k.a., Edoras). + // OWNERS: assistant-wearable-team@ SurfaceType string `json:"surfaceType,omitempty"` // SurfaceTypeString: The device's surface type. This is the string @@ -21672,6 +21715,98 @@ func (s *AssistantDevicesPlatformProtoUnderstandingConfig) MarshalJSON() ([]byte return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type AssistantGroundingRankerAssistantInteractionFeatures struct { + TimeDecayed14dHalfLife float64 `json:"timeDecayed14dHalfLife,omitempty"` + + // TimeDecayed1dHalfLife: Frequency features. + TimeDecayed1dHalfLife float64 `json:"timeDecayed1dHalfLife,omitempty"` + + TimeDecayed7dHalfLife float64 `json:"timeDecayed7dHalfLife,omitempty"` + + TimeDecayedAccepted14dHalfLife float64 `json:"timeDecayedAccepted14dHalfLife,omitempty"` + + TimeDecayedAuis14dHalfLife float64 `json:"timeDecayedAuis14dHalfLife,omitempty"` + + TimeDecayedCanceled14dHalfLife float64 `json:"timeDecayedCanceled14dHalfLife,omitempty"` + + TimeDecayedDeclined14dHalfLife float64 `json:"timeDecayedDeclined14dHalfLife,omitempty"` + + TimeSinceLastButOneCanceledActionSecs float64 `json:"timeSinceLastButOneCanceledActionSecs,omitempty"` + + TimeSinceLastButOneCompletedActionSecs float64 `json:"timeSinceLastButOneCompletedActionSecs,omitempty"` + + TimeSinceLastButTwoCanceledActionSecs float64 `json:"timeSinceLastButTwoCanceledActionSecs,omitempty"` + + TimeSinceLastButTwoCompletedActionSecs float64 `json:"timeSinceLastButTwoCompletedActionSecs,omitempty"` + + TimeSinceLastCanceledActionSecs float64 `json:"timeSinceLastCanceledActionSecs,omitempty"` + + // TimeSinceLastCompletedActionSecs: Recency features. + TimeSinceLastCompletedActionSecs float64 `json:"timeSinceLastCompletedActionSecs,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "TimeDecayed14dHalfLife") 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. "TimeDecayed14dHalfLife") + // 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 *AssistantGroundingRankerAssistantInteractionFeatures) MarshalJSON() ([]byte, error) { + type NoMethod AssistantGroundingRankerAssistantInteractionFeatures + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *AssistantGroundingRankerAssistantInteractionFeatures) UnmarshalJSON(data []byte) error { + type NoMethod AssistantGroundingRankerAssistantInteractionFeatures + var s1 struct { + TimeDecayed14dHalfLife gensupport.JSONFloat64 `json:"timeDecayed14dHalfLife"` + TimeDecayed1dHalfLife gensupport.JSONFloat64 `json:"timeDecayed1dHalfLife"` + TimeDecayed7dHalfLife gensupport.JSONFloat64 `json:"timeDecayed7dHalfLife"` + TimeDecayedAccepted14dHalfLife gensupport.JSONFloat64 `json:"timeDecayedAccepted14dHalfLife"` + TimeDecayedAuis14dHalfLife gensupport.JSONFloat64 `json:"timeDecayedAuis14dHalfLife"` + TimeDecayedCanceled14dHalfLife gensupport.JSONFloat64 `json:"timeDecayedCanceled14dHalfLife"` + TimeDecayedDeclined14dHalfLife gensupport.JSONFloat64 `json:"timeDecayedDeclined14dHalfLife"` + TimeSinceLastButOneCanceledActionSecs gensupport.JSONFloat64 `json:"timeSinceLastButOneCanceledActionSecs"` + TimeSinceLastButOneCompletedActionSecs gensupport.JSONFloat64 `json:"timeSinceLastButOneCompletedActionSecs"` + TimeSinceLastButTwoCanceledActionSecs gensupport.JSONFloat64 `json:"timeSinceLastButTwoCanceledActionSecs"` + TimeSinceLastButTwoCompletedActionSecs gensupport.JSONFloat64 `json:"timeSinceLastButTwoCompletedActionSecs"` + TimeSinceLastCanceledActionSecs gensupport.JSONFloat64 `json:"timeSinceLastCanceledActionSecs"` + TimeSinceLastCompletedActionSecs gensupport.JSONFloat64 `json:"timeSinceLastCompletedActionSecs"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.TimeDecayed14dHalfLife = float64(s1.TimeDecayed14dHalfLife) + s.TimeDecayed1dHalfLife = float64(s1.TimeDecayed1dHalfLife) + s.TimeDecayed7dHalfLife = float64(s1.TimeDecayed7dHalfLife) + s.TimeDecayedAccepted14dHalfLife = float64(s1.TimeDecayedAccepted14dHalfLife) + s.TimeDecayedAuis14dHalfLife = float64(s1.TimeDecayedAuis14dHalfLife) + s.TimeDecayedCanceled14dHalfLife = float64(s1.TimeDecayedCanceled14dHalfLife) + s.TimeDecayedDeclined14dHalfLife = float64(s1.TimeDecayedDeclined14dHalfLife) + s.TimeSinceLastButOneCanceledActionSecs = float64(s1.TimeSinceLastButOneCanceledActionSecs) + s.TimeSinceLastButOneCompletedActionSecs = float64(s1.TimeSinceLastButOneCompletedActionSecs) + s.TimeSinceLastButTwoCanceledActionSecs = float64(s1.TimeSinceLastButTwoCanceledActionSecs) + s.TimeSinceLastButTwoCompletedActionSecs = float64(s1.TimeSinceLastButTwoCompletedActionSecs) + s.TimeSinceLastCanceledActionSecs = float64(s1.TimeSinceLastCanceledActionSecs) + s.TimeSinceLastCompletedActionSecs = float64(s1.TimeSinceLastCompletedActionSecs) + return nil +} + // AssistantGroundingRankerContactGroundingProviderFeatures: Features to // be passed from Contact GP to HGR. Next ID: 13 type AssistantGroundingRankerContactGroundingProviderFeatures struct { @@ -21832,6 +21967,57 @@ func (s *AssistantGroundingRankerContactGroundingProviderFeatures) UnmarshalJSON return nil } +// AssistantGroundingRankerDeviceContactAffinityFeatures: Device contact +// affinity from android call logs. +type AssistantGroundingRankerDeviceContactAffinityFeatures struct { + AggregateAffinity float64 `json:"aggregateAffinity,omitempty"` + + CallAffinity float64 `json:"callAffinity,omitempty"` + + MessageAffinity float64 `json:"messageAffinity,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AggregateAffinity") + // 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. "AggregateAffinity") 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 *AssistantGroundingRankerDeviceContactAffinityFeatures) MarshalJSON() ([]byte, error) { + type NoMethod AssistantGroundingRankerDeviceContactAffinityFeatures + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *AssistantGroundingRankerDeviceContactAffinityFeatures) UnmarshalJSON(data []byte) error { + type NoMethod AssistantGroundingRankerDeviceContactAffinityFeatures + var s1 struct { + AggregateAffinity gensupport.JSONFloat64 `json:"aggregateAffinity"` + CallAffinity gensupport.JSONFloat64 `json:"callAffinity"` + MessageAffinity gensupport.JSONFloat64 `json:"messageAffinity"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.AggregateAffinity = float64(s1.AggregateAffinity) + s.CallAffinity = float64(s1.CallAffinity) + s.MessageAffinity = float64(s1.MessageAffinity) + return nil +} + // AssistantGroundingRankerGroundingProviderFeatures: Next ID: 4 type AssistantGroundingRankerGroundingProviderFeatures struct { ContactGroundingProviderFeatures *AssistantGroundingRankerContactGroundingProviderFeatures `json:"contactGroundingProviderFeatures,omitempty"` @@ -21865,6 +22051,152 @@ func (s *AssistantGroundingRankerGroundingProviderFeatures) MarshalJSON() ([]byt return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type AssistantGroundingRankerLaaFeatures struct { + BindingSet *AssistantGroundingRankerLaaFeaturesBindingSet `json:"bindingSet,omitempty"` + + CommunicationEndpoint *AssistantGroundingRankerLaaFeaturesCommunicationEndpoint `json:"communicationEndpoint,omitempty"` + + Contact *AssistantGroundingRankerLaaFeaturesContact `json:"contact,omitempty"` + + Provider *AssistantGroundingRankerLaaFeaturesProvider `json:"provider,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BindingSet") 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. "BindingSet") 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 *AssistantGroundingRankerLaaFeatures) MarshalJSON() ([]byte, error) { + type NoMethod AssistantGroundingRankerLaaFeatures + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type AssistantGroundingRankerLaaFeaturesBindingSet struct { + AssistantInteractionFeatures *AssistantGroundingRankerAssistantInteractionFeatures `json:"assistantInteractionFeatures,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AssistantInteractionFeatures") 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. + // "AssistantInteractionFeatures") 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 *AssistantGroundingRankerLaaFeaturesBindingSet) MarshalJSON() ([]byte, error) { + type NoMethod AssistantGroundingRankerLaaFeaturesBindingSet + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type AssistantGroundingRankerLaaFeaturesCommunicationEndpoint struct { + AssistantInteractionFeatures *AssistantGroundingRankerAssistantInteractionFeatures `json:"assistantInteractionFeatures,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AssistantInteractionFeatures") 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. + // "AssistantInteractionFeatures") 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 *AssistantGroundingRankerLaaFeaturesCommunicationEndpoint) MarshalJSON() ([]byte, error) { + type NoMethod AssistantGroundingRankerLaaFeaturesCommunicationEndpoint + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type AssistantGroundingRankerLaaFeaturesContact struct { + AssistantInteractionFeatures *AssistantGroundingRankerAssistantInteractionFeatures `json:"assistantInteractionFeatures,omitempty"` + + DeviceContactAffinityFeatures *AssistantGroundingRankerDeviceContactAffinityFeatures `json:"deviceContactAffinityFeatures,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AssistantInteractionFeatures") 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. + // "AssistantInteractionFeatures") 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 *AssistantGroundingRankerLaaFeaturesContact) MarshalJSON() ([]byte, error) { + type NoMethod AssistantGroundingRankerLaaFeaturesContact + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type AssistantGroundingRankerLaaFeaturesProvider struct { + AssistantInteractionFeatures *AssistantGroundingRankerAssistantInteractionFeatures `json:"assistantInteractionFeatures,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AssistantInteractionFeatures") 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. + // "AssistantInteractionFeatures") 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 *AssistantGroundingRankerLaaFeaturesProvider) MarshalJSON() ([]byte, error) { + type NoMethod AssistantGroundingRankerLaaFeaturesProvider + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AssistantGroundingRankerMediaGroundingProviderFeatures: Features to // be passed from Media GP to HGR. Next ID: 6 type AssistantGroundingRankerMediaGroundingProviderFeatures struct { @@ -22966,6 +23298,7 @@ type AssistantLogsDeviceMediaSessionLog struct { // "PHOTO" // "TV_SHOW_EPISODE" // "MUSIC_GENRE" + // "MUSIC_STATION" // "AUDIO_BOOK" // "CHAPTER" // "RADIO_STATION" @@ -22979,6 +23312,10 @@ type AssistantLogsDeviceMediaSessionLog struct { // seasons. // "NEWS" // "NARRATED_WEB" + // "NEWS_CALL_TO_ACTION" - Repesents a Call To Action media item. See + // go/newsplayer-outro-gnews. Current use case is to ask users to + // continue their news journey in the Google News app / web app. Future + // cases could include asking users to adjust their news settings. // "AUDIO_STORY" - Representing a short audio story. go/tmas-design // "PODCAST_SERIES" - Represent different kinds of podcast content // "PODCAST_EPISODE" @@ -24143,8 +24480,9 @@ type AssistantLogsTargetDeviceLog struct { // Possible values: // "UNKNOWN_REASON" // "LOCAL_FALLBACK" - // "STOP_PLAYBACK_ON_PAUSED_PHONE" + // "MANUAL_DEFINED_REASON" // "SINGLE_NEARBY_DEVICE" + // "PERSONAL_RESPONSE_BIT_OPTOUT_ON_LOCKED_PHONE" LowConfidenceReason string `json:"lowConfidenceReason,omitempty"` // Possible values: @@ -24179,7 +24517,7 @@ func (s *AssistantLogsTargetDeviceLog) MarshalJSON() ([]byte, error) { // AssistantPrefulfillmentRankerPrefulfillmentSignals: Signals to be // used by the Prefulfillment Ranker. Derived from the ParsingSignals // and GroundingSignals carried by the FunctionCall. LINT.IfChange Next -// ID: 36 +// ID: 39 type AssistantPrefulfillmentRankerPrefulfillmentSignals struct { // BindingSetAuis: Assistant User Interaction Score for binding set. BindingSetAuis float64 `json:"bindingSetAuis,omitempty"` @@ -24191,6 +24529,10 @@ type AssistantPrefulfillmentRankerPrefulfillmentSignals struct { // calibrated by each parser/IG. CalibratedParsingScore float64 `json:"calibratedParsingScore,omitempty"` + // DeepMediaDominant: Whether the intent is dominant according to NSP + // deep-media. + DeepMediaDominant bool `json:"deepMediaDominant,omitempty"` + // Dominant: Indicates interpretation dominance predicted by KScorer Dominant bool `json:"dominant,omitempty"` @@ -24203,6 +24545,10 @@ type AssistantPrefulfillmentRankerPrefulfillmentSignals struct { // "7 p.m." + "chicken" (total length of 13). EffectiveArgSpanLength float64 `json:"effectiveArgSpanLength,omitempty"` + // FulfillableDominantMedia: Whether this is a fulfillable, dominant + // Media intent. + FulfillableDominantMedia bool `json:"fulfillableDominantMedia,omitempty"` + // GroundabilityScore: Grounding Signals. Score indicating how grounded // the intent is, populated by the Grounding Box. GroundabilityScore float64 `json:"groundabilityScore,omitempty"` @@ -24241,6 +24587,10 @@ type AssistantPrefulfillmentRankerPrefulfillmentSignals struct { // N. KscorerRank int64 `json:"kscorerRank,omitempty"` + // LaaFeatures: Learn and adapt(go/laa) related features. Design doc: + // go/laa-profile-signal-for-grounding. + LaaFeatures *AssistantGroundingRankerLaaFeatures `json:"laaFeatures,omitempty"` + // MaskCandidateLevelFeatures: This feature is always false / no-op in // serving time. In training time, this feature may be set true on // specific examples for weighted training where when this signal is @@ -26583,6 +26933,7 @@ type BlueGingerClientVisibleProtoBlueGingerSupportedServicesBlueGingerModule str // delegation module for CCAI integration. // "AD_LEAD_VERIFICATION" - Duplex for Business - ad lead verification // module for GLS integration. + // "GET_HUMAN" - Get Human bot. UseCase string `json:"useCase,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to @@ -38931,8 +39282,7 @@ type GeostoreFeaturePropertyIdProto struct { // "GEOMETRY_PRECISION_METERS" // "GEOPOLITICAL_GEOMETRY_REST_OF_WORLD_POLYGON" // "GEOPOLITICAL_GEOMETRY_SELF_POLYGON" - // "INFERRED_GEOMETRY_INCLUDES_GEOMETRY_OF" - // "INFERRED_GEOMETRY_EXCLUDES_GEOMETRY_OF" + // "INFERRED_GEOMETRY_GEOMETRY_COMPOSITION" // "INFERRED_GEOMETRY_DEFINES_GEOMETRY_FOR" // "INTERSECTION" // "INTERSECTION_GROUP" @@ -39083,6 +39433,8 @@ type GeostoreFeaturePropertyIdProto struct { // "DEPRECATED_DO_NOT_USE_TRACK_CLASS" // "DEPRECATED_DO_NOT_USE_VIEWCODE_INFO" // "DEPRECATED_DO_NOT_USE_WORKAREA" + // "DEPRECATED_DO_NOT_USE_INFERRED_GEOMETRY_INCLUDES_GEOMETRY_OF" + // "DEPRECATED_DO_NOT_USE_INFERRED_GEOMETRY_EXCLUDES_GEOMETRY_OF" FieldType string `json:"fieldType,omitempty"` // KgPropertyId: Required when field_type == KNOWLEDGE_GRAPH_PROPERTY. @@ -40692,6 +41044,44 @@ func (s *GeostoreGConceptInstanceProto) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GeostoreGeometryComposition: Encapsulates all the features which, +// together, define the geometry of a feature. This happens by: 1. +// taking the union of all polygons of features referenced in +// includes_geometry_of 2. subtracting the polygons of all the features +// referenced in excludes_geometry_of +type GeostoreGeometryComposition struct { + // ExcludesGeometryOf: Features whose geometry to exclude while + // composing the geometry of this feature. + ExcludesGeometryOf []*GeostoreFeatureIdProto `json:"excludesGeometryOf,omitempty"` + + // IncludesGeometryOf: Features whose geometry to include while + // composing the geometry of this feature. + IncludesGeometryOf []*GeostoreFeatureIdProto `json:"includesGeometryOf,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExcludesGeometryOf") + // 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. "ExcludesGeometryOf") 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 *GeostoreGeometryComposition) MarshalJSON() ([]byte, error) { + type NoMethod GeostoreGeometryComposition + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GeostoreGeopoliticalGeometryProto: Geopolitical (unsimplified) // polygons for a feature for different geopolitical use cases. See // go/unsimplified-poly. @@ -40824,24 +41214,19 @@ func (s *GeostoreHtmlTextProto) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GeostoreInferredGeometryProto: The inferred geometry of a feature -// contains all the features which, together, define the geometry of a -// feature. This happens by: 1. Taking the union of all polygons of -// features referenced in "includes_geometry_of". 2. Subtract the -// geometries of all the features referenced in "excludes_geometry_of". -// See: go/inferred-geometry for more information. +// GeostoreInferredGeometryProto: Inferred geometry defines the geometry +// of a feature through the geometry of other features. For instance, +// the geometry of a timezone can be specified as the union of all the +// countries it applies to. See: go/inferred-geometry and +// go/geo-schema:composite-geometry-editor for more details. type GeostoreInferredGeometryProto struct { // DefinesGeometryFor: Features whose geometry depends on this feature's // geometry. DefinesGeometryFor []*GeostoreFeatureIdProto `json:"definesGeometryFor,omitempty"` - // ExcludesGeometryOf: Features whose geometry to exclude while - // inferring geometry. - ExcludesGeometryOf []*GeostoreFeatureIdProto `json:"excludesGeometryOf,omitempty"` - - // IncludesGeometryOf: Features whose geometry to include while - // inferring geometry. - IncludesGeometryOf []*GeostoreFeatureIdProto `json:"includesGeometryOf,omitempty"` + // GeometryComposition: Features whose geometry defines the geometry of + // this feature. + GeometryComposition *GeostoreGeometryComposition `json:"geometryComposition,omitempty"` // ForceSendFields is a list of field names (e.g. "DefinesGeometryFor") // to unconditionally include in API requests. By default, fields with @@ -54544,6 +54929,42 @@ func (s *GoogleCloudContentwarehouseV1EnumValue) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudContentwarehouseV1ExportToCdwPipeline: The configuration +// of exporting documents from the Document Warehouse to CDW pipeline. +type GoogleCloudContentwarehouseV1ExportToCdwPipeline struct { + // DocumentIds: The list of all the documents to be processed. + DocumentIds []string `json:"documentIds,omitempty"` + + // ExportFolderPath: The Cloud Storage folder path used to store the + // exported documents before being sent to CDW. Format: gs:///. + ExportFolderPath string `json:"exportFolderPath,omitempty"` + + // ProcessorInfo: The CDW processor information. + ProcessorInfo *GoogleCloudContentwarehouseV1ProcessorInfo `json:"processorInfo,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DocumentIds") 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. "DocumentIds") 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 *GoogleCloudContentwarehouseV1ExportToCdwPipeline) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContentwarehouseV1ExportToCdwPipeline + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudContentwarehouseV1FetchAclRequest: Request message for // DocumentService.FetchAcl type GoogleCloudContentwarehouseV1FetchAclRequest struct { @@ -54684,6 +55105,87 @@ func (s *GoogleCloudContentwarehouseV1FloatArray) MarshalJSON() ([]byte, error) type GoogleCloudContentwarehouseV1FloatTypeOptions struct { } +// GoogleCloudContentwarehouseV1GcsIngestPipeline: The configuration of +// the Cloud Storage ingestion pipeline. +type GoogleCloudContentwarehouseV1GcsIngestPipeline struct { + // InputPath: The input Cloud Storage folder. All files under this + // folder will be imported to Document Warehouse. Format: gs:///. + InputPath string `json:"inputPath,omitempty"` + + // SchemaName: The Document Warehouse schema resource name. All + // documents processed by this pipeline will use this schema. Format: + // projects/{project_number}/locations/{location}/documentSchemas/{docume + // nt_schema_id}. + SchemaName string `json:"schemaName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "InputPath") 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. "InputPath") 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 *GoogleCloudContentwarehouseV1GcsIngestPipeline) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContentwarehouseV1GcsIngestPipeline + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContentwarehouseV1GcsIngestWithDocAiProcessorsPipeline: +// The configuration of the document classify/split and entity/kvp +// extraction pipeline. +type GoogleCloudContentwarehouseV1GcsIngestWithDocAiProcessorsPipeline struct { + // ClassifySplitProcessorInfos: The classify or split processor + // information. + ClassifySplitProcessorInfos *GoogleCloudContentwarehouseV1ProcessorInfo `json:"classifySplitProcessorInfos,omitempty"` + + // ExtractProcessorInfos: The entity or key-value pair extracting + // processor information. + ExtractProcessorInfos []*GoogleCloudContentwarehouseV1ProcessorInfo `json:"extractProcessorInfos,omitempty"` + + // InputPath: The input Cloud Storage folder. All files under this + // folder will be imported to Document Warehouse. Format: gs:///. + InputPath string `json:"inputPath,omitempty"` + + // ProcessorResultsFolderPath: The Cloud Storage folder path used to + // store the raw results from processors. Format: gs:///. + ProcessorResultsFolderPath string `json:"processorResultsFolderPath,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ClassifySplitProcessorInfos") 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. + // "ClassifySplitProcessorInfos") 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 *GoogleCloudContentwarehouseV1GcsIngestWithDocAiProcessorsPipeline) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContentwarehouseV1GcsIngestWithDocAiProcessorsPipeline + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudContentwarehouseV1GetDocumentRequest: Request message for // DocumentService.GetDocument. type GoogleCloudContentwarehouseV1GetDocumentRequest struct { @@ -55363,6 +55865,48 @@ func (s *GoogleCloudContentwarehouseV1MergeFieldsOptions) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudContentwarehouseV1ProcessorInfo: The DocAI processor +// information. +type GoogleCloudContentwarehouseV1ProcessorInfo struct { + // DocumentType: The processor will process the documents with this + // document type. + DocumentType string `json:"documentType,omitempty"` + + // ProcessorName: The processor resource name. Format is + // `projects/{project}/locations/{location}/processors/{processor}`, or + // `projects/{project}/locations/{location}/processors/{processor}/proces + // sorVersions/{processorVersion}` + ProcessorName string `json:"processorName,omitempty"` + + // SchemaName: The Document schema resource name. All documents + // processed by this processor will use this schema. Format: + // projects/{project_number}/locations/{location}/documentSchemas/{docume + // nt_schema_id}. + SchemaName string `json:"schemaName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DocumentType") 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. "DocumentType") 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 *GoogleCloudContentwarehouseV1ProcessorInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContentwarehouseV1ProcessorInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudContentwarehouseV1Property: Property of a document. type GoogleCloudContentwarehouseV1Property struct { // DateTimeValues: Date time property values. It is not supported by @@ -55514,6 +56058,10 @@ type GoogleCloudContentwarehouseV1PropertyDefinition struct { // "LOWEST" - Lowest importance (negative). RetrievalImportance string `json:"retrievalImportance,omitempty"` + // SchemaSources: The mapping information between this property to + // another schema source. + SchemaSources []*GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSource `json:"schemaSources,omitempty"` + // TextTypeOptions: Text/string property. TextTypeOptions *GoogleCloudContentwarehouseV1TextTypeOptions `json:"textTypeOptions,omitempty"` @@ -55545,6 +56093,38 @@ func (s *GoogleCloudContentwarehouseV1PropertyDefinition) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSource: The +// schema source information. +type GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSource struct { + // Name: The schema name in the source. + Name string `json:"name,omitempty"` + + // ProcessorType: The Doc AI processor type name. + ProcessorType string `json:"processorType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 *GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type GoogleCloudContentwarehouseV1PropertyFilter struct { // Condition: The filter condition. The syntax for this expression is a // subset of SQL syntax. Supported operators are: `=`, `!=`, `<`, `<=`, @@ -56050,6 +56630,44 @@ func (s *GoogleCloudContentwarehouseV1RuleSet) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudContentwarehouseV1RunPipelineRequest: Request message for +// DocumentService.RunPipeline. +type GoogleCloudContentwarehouseV1RunPipelineRequest struct { + // ExportCdwPipeline: Export docuemnts from Document Warehouseing to CDW + // for training purpose. + ExportCdwPipeline *GoogleCloudContentwarehouseV1ExportToCdwPipeline `json:"exportCdwPipeline,omitempty"` + + // GcsIngestPipeline: Cloud Storage ingestion pipeline. + GcsIngestPipeline *GoogleCloudContentwarehouseV1GcsIngestPipeline `json:"gcsIngestPipeline,omitempty"` + + // GcsIngestWithDocAiProcessorsPipeline: Use DocAI processors to process + // documents in Cloud Storage and ingest them to Document Warehouse. + GcsIngestWithDocAiProcessorsPipeline *GoogleCloudContentwarehouseV1GcsIngestWithDocAiProcessorsPipeline `json:"gcsIngestWithDocAiProcessorsPipeline,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExportCdwPipeline") + // 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. "ExportCdwPipeline") 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 *GoogleCloudContentwarehouseV1RunPipelineRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContentwarehouseV1RunPipelineRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudContentwarehouseV1SearchDocumentsRequest: Request message // for DocumentService.SearchDocuments. type GoogleCloudContentwarehouseV1SearchDocumentsRequest struct { @@ -58315,12 +58933,18 @@ type GoogleCloudDocumentaiV1DocumentProvenance struct { // against a `parent`. // "ADD" - Add an element. // "REMOVE" - Remove an element identified by `parent`. - // "REPLACE" - Replace an element identified by `parent`. - // "EVAL_REQUESTED" - Request human review for the element identified - // by `parent`. - // "EVAL_APPROVED" - Element is reviewed and approved at human review, - // confidence will be set to 1.0. - // "EVAL_SKIPPED" - Element is skipped in the validation process. + // "UPDATE" - Updates any fields within the given provenance scope of + // the message. It 'overwrites' the fields rather than replacing them. + // This is especially relevant when we just want to update a field value + // of an entity without also affecting all the child properties. + // "REPLACE" - Currently unused. Replace an element identified by + // `parent`. + // "EVAL_REQUESTED" - Deprecated. Request human review for the element + // identified by `parent`. + // "EVAL_APPROVED" - Deprecated. Element is reviewed and approved at + // human review, confidence will be set to 1.0. + // "EVAL_SKIPPED" - Deprecated. Element is skipped in the validation + // process. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to @@ -58392,13 +59016,15 @@ type GoogleCloudDocumentaiV1DocumentRevision struct { // that person. Agent string `json:"agent,omitempty"` - // CreateTime: The time that the revision was created. + // CreateTime: The time that the revision was created, internally + // generated by doc proto storage at the time of create. CreateTime string `json:"createTime,omitempty"` // HumanReview: Human Review information of this revision. HumanReview *GoogleCloudDocumentaiV1DocumentRevisionHumanReview `json:"humanReview,omitempty"` - // Id: Id of the revision. Unique within the context of the document. + // Id: Id of the revision, internally generated by doc proto storage. + // Unique within the context of the document. Id string `json:"id,omitempty"` // Parent: The revisions that this revision is based on. This can @@ -58928,7 +59554,9 @@ type GoogleIamV1Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -58945,9 +59573,7 @@ type GoogleIamV1Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. @@ -59126,16 +59752,15 @@ func (s *GoogleInternalAppsWaldoV1alphaAvailabilityPeriod) MarshalJSON() ([]byte // user is temporarily busy and there is not a more specific status // derived from calendar that applies (e.g., InMeeting or DoNotDisturb). type GoogleInternalAppsWaldoV1alphaCalendarBusy struct { - // CommittedUntil: The time when the user will stop being committed, - // i.e., when their status will be neither of InMeeting, DoNotDisturb, - // Busy or OutOfOffice < Xh. Note that the goal of this field is to + // CommittedUntil: The time when the user will either stop being + // committed or change commitment type (i.e. InMeeting, DoNotDisturb, + // Busy or OutOfOffice < Xh). Note that the goal of this field is to // provide information to help users decide how to communicate with a // user (see also http://shortn/_wXYXtZScgh). CommittedUntil string `json:"committedUntil,omitempty"` - // CommittedUntilIsMixed: Whether the status of the user from this - // status's start to committed_until has more than one status type (e.g. - // DoNotDisturb + InMeeting). + // CommittedUntilIsMixed: TODO(b/265939748) To be removed, always false + // from User Status Service. CommittedUntilIsMixed bool `json:"committedUntilIsMixed,omitempty"` // EventSummary: The summary of the corresponding event in Calendar. @@ -59214,14 +59839,15 @@ func (s *GoogleInternalAppsWaldoV1alphaCustomLocation) MarshalJSON() ([]byte, er // GoogleInternalAppsWaldoV1alphaDoNotDisturb: The status indicating the // user should not be disturbed. type GoogleInternalAppsWaldoV1alphaDoNotDisturb struct { - // CommittedUntil: The time when the user will stop being committed, - // i.e., when their status will be neither of InMeeting, DoNotDisturb, - // Busy or OutOfOffice < Xh. + // CommittedUntil: The time when the user will either stop being + // committed or change commitment type (i.e. InMeeting, DoNotDisturb, + // Busy or OutOfOffice < Xh). Note that the goal of this field is to + // provide information to help users decide how to communicate with a + // user (see also http://shortn/_wXYXtZScgh). CommittedUntil string `json:"committedUntil,omitempty"` - // CommittedUntilIsMixed: Whether the status of the user from this - // status's start to committed_until has more than one status type (e.g. - // DoNotDisturb + InMeeting). + // CommittedUntilIsMixed: TODO(b/265939748) To be removed, always false + // from User Status Service. CommittedUntilIsMixed bool `json:"committedUntilIsMixed,omitempty"` // NextAvailable: The next time when the user will be available, i.e., @@ -59264,16 +59890,15 @@ type GoogleInternalAppsWaldoV1alphaHomeLocation struct { // GoogleInternalAppsWaldoV1alphaInMeeting: The status indicating the // user is in a meeting. type GoogleInternalAppsWaldoV1alphaInMeeting struct { - // CommittedUntil: The time when the user will stop being committed, - // i.e., when their status will be neither of InMeeting, DoNotDisturb, - // Busy or OutOfOffice < Xh. Note that the goal of this field is to + // CommittedUntil: The time when the user will either stop being + // committed or change commitment type (i.e. InMeeting, DoNotDisturb, + // Busy or OutOfOffice < Xh). Note that the goal of this field is to // provide information to help users decide how to communicate with a // user (see also http://shortn/_wXYXtZScgh). CommittedUntil string `json:"committedUntil,omitempty"` - // CommittedUntilIsMixed: Whether the status of the user from this - // status's start to committed_until has more than one status type (e.g. - // DoNotDisturb + InMeeting). + // CommittedUntilIsMixed: TODO(b/265939748) To be removed, always false + // from User Status Service. CommittedUntilIsMixed bool `json:"committedUntilIsMixed,omitempty"` // EventSummary: The summary of the corresponding event in Calendar. @@ -59401,15 +60026,16 @@ type GoogleInternalAppsWaldoV1alphaOutOfOffice struct { // then the user is outside working hours. ComeBackTime string `json:"comeBackTime,omitempty"` - // CommittedUntil: The time when the user will stop being committed, - // i.e., when their status will be neither of InMeeting, DoNotDisturb, - // Busy or OutOfOffice < Xh. Note that if this OOO block is large - // (>=Xh), committed_until is not set. + // CommittedUntil: The time when the user will either stop being + // committed or change commitment type (i.e. InMeeting, DoNotDisturb, + // Busy or OutOfOffice < Xh). Note that the goal of this field is to + // provide information to help users decide how to communicate with a + // user (see also http://shortn/_wXYXtZScgh). Note that if this OOO + // block is large (>=Xh), committed_until is not set. CommittedUntil string `json:"committedUntil,omitempty"` - // CommittedUntilIsMixed: Whether the status of the user from this - // status's start to committed_until has more than one status type (e.g. - // DoNotDisturb + InMeeting). Only set if committed_until is set. + // CommittedUntilIsMixed: TODO(b/265939748) To be removed, always false + // from User Status Service. CommittedUntilIsMixed bool `json:"committedUntilIsMixed,omitempty"` // EventSummary: The summary of the corresponding OOO block in Calendar. @@ -63692,7 +64318,7 @@ func (s *ImageContentStarburstVersionGroup) MarshalJSON() ([]byte, error) { // ImageData: This defines the per-doc data which is extracted from // thumbnails and propagated over to indexing. It contains all -// information that can be used for restricts. Next tag id: 128 +// information that can be used for restricts. Next tag id: 129 type ImageData struct { // AdaboostImageFeaturePorn: Warning: adaboost_image_feature_porn* and // imageFeaturePorn fields are DEPRECATED in favor of brain_porn_scores. @@ -63732,6 +64358,9 @@ type ImageData struct { ClipartDetectorVersion int64 `json:"clipartDetectorVersion,omitempty"` + // ClusterId: Superlabels generated cluster id. + ClusterId string `json:"clusterId,omitempty"` + // CodomainStrength: Like is_visible, this is a property of the // (web-doc, img_url) pair not just the image. A high codomain_strength // indicates high confidence based on collected stats that the image is @@ -73334,6 +73963,48 @@ func (s *IndexingUrlPatternUrlTreeUrlTreeNode) UnmarshalJSON(data []byte) error return nil } +// IndexingVideosAsrTranscriptRepairAnnotation: This proto captures the +// output of analyses that ran on Automatic Speech Recogntion produced +// by the recognizer. +type IndexingVideosAsrTranscriptRepairAnnotation struct { + // Possible values: + // "UNDEFINED_GIBBERISH_RESULT" - The status of this document is + // unknown. + // "NOT_GIBBERISH" + // "IS_GIBBERISH" - The transcript is gibberish and should not be + // used. + // "GIBBERISH_UNSUPPORTED_LANGUAGE" - Gibberish detection was not run + // because the language is not supported. Consider this not gibberish. + // "GIBBERISH_DECLINED" - Gibberish detection declined to run for an + // unspecified reason. Consider this not gibberish. + // "GIBBERISH_DETECTION_FAILED" - Gibberish detection ran, but failed. + // Consider this not gibberish. + GibberishResult string `json:"gibberishResult,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GibberishResult") 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. "GibberishResult") 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 *IndexingVideosAsrTranscriptRepairAnnotation) MarshalJSON() ([]byte, error) { + type NoMethod IndexingVideosAsrTranscriptRepairAnnotation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type KaltixPerDocData struct { // KaltixRank: approx. 2 bytes for top 1B KaltixRank int64 `json:"KaltixRank,omitempty"` @@ -75759,9 +76430,17 @@ type KnowledgeAnswersIntentQueryIdentifier struct { // "TIMER" // "DEVICE" - An go/identifier-for-generalized-device generalized // device ID - // "DEVICE_SETTING" - An - // nlp_semantic_parsing.models.device.DeviceSetting that represents a - // single device setting. + // "DEVICE_SETTING" - An identifier type for device settings. Its + // value is a stringified + // nlp_semantic_parsing.models.device.DeviceSetting enum plus optionally + // a field path that points to a specific part of the device setting. + // Examples: "AIRPLANE_MODE" (a device setting) "BRIGHTNESS_LEVEL" (a + // device setting) "AIRPLANE_MODE.status" (the "status" field of + // AIRPLANE_MODE). "BRIGHTNESS_LEVEL.level" (the "level" field of + // BRIGHTNESS_LEVEL). While the device setting itself is represented by + // the DeviceSetting enum mentioned above, the names of fields depend on + // how the setting is modeled, and can vary from implementation to + // implementation. // "ROOM" - An assistant.context.RoomId aka // DeviceId.home_graph_device_id // "STRUCTURE" - An assistant.context.StructureId aka @@ -75778,6 +76457,10 @@ type KnowledgeAnswersIntentQueryIdentifier struct { // (go/discovered-not-designed) // "RELATION" // "ATTENTIONAL_ENTITY" + // "AUDIO_MESSAGE_METADATA_ID" - A secondary speech id for Audio + // Message Metadata go/audio-message-gp. + // "BROADCAST" - Broadcast feature identifier + // go/routines-broadcast-device-gp IdType string `json:"idType,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to @@ -76222,13 +76905,27 @@ func (s *KnowledgeAnswersIntentQueryOnDeviceAnnotationSignals) MarshalJSON() ([] // that they need to propagate down stream from AQUA. Note that this // proto is not the same as the Superroot proto ParsingSignals // (http://google3/knowledge/proto/scoring-signals.proto), which is a -// Superroot-specific signal used in Scoring. Next ID: 5 +// Superroot-specific signal used in Scoring. Next ID: 7 type KnowledgeAnswersIntentQueryParsingSignals struct { // CalibratedParsingScore: A parsing score that is independently // calibrated by each parser/IG, used by pre-fulfillment ranker, see // http://go/prefulfillment-ranker. CalibratedParsingScore float64 `json:"calibratedParsingScore,omitempty"` + // EffectiveArgSpanLength: The total effective length of the spans for + // the arguments used to construct the parse. May include vertical + // specific adjustments. Eg: For the query [delete my 7 p.m. alarm + // called chicken] and intent + // Delete_alarm(alarm_object=RD(category=AlarmObject( label="chicken", + // trigger_time_datetime=<< 7 PM >>))), the effective argument span is + // "7 p.m." + "chicken" (total length of 13). + EffectiveArgSpanLength float64 `json:"effectiveArgSpanLength,omitempty"` + + // InQueryMaxEffectiveArgSpanLength: This is a cross-intent feature + // which is calculated by iterating all intent candidates. This feature + // should be populated in post-IG stage (before GB). + InQueryMaxEffectiveArgSpanLength float64 `json:"inQueryMaxEffectiveArgSpanLength,omitempty"` + // QrewriteCallPathInfo: This proto holds the complete call path info of // the QRewrite client (e.g. the QUS's phase like "RBT","QBT"; the QUS's // candidate type like "Identity"; and the ACE's candidate type like @@ -76251,6 +76948,8 @@ type KnowledgeAnswersIntentQueryParsingSignals struct { // "NSP" - The FunctionCall is produced by NSP in TUIG. This is // consumed in QUS, to route behavior specific to NSP. // "AQUA" - The FunctionCall is produced by Aqua. + // "PHONE_GENIE" - The FunctionCall is produced by PhoneGenie in TUIG. + // See go/phone-genie-tuig Source string `json:"source,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -76281,7 +76980,9 @@ func (s *KnowledgeAnswersIntentQueryParsingSignals) MarshalJSON() ([]byte, error func (s *KnowledgeAnswersIntentQueryParsingSignals) UnmarshalJSON(data []byte) error { type NoMethod KnowledgeAnswersIntentQueryParsingSignals var s1 struct { - CalibratedParsingScore gensupport.JSONFloat64 `json:"calibratedParsingScore"` + CalibratedParsingScore gensupport.JSONFloat64 `json:"calibratedParsingScore"` + EffectiveArgSpanLength gensupport.JSONFloat64 `json:"effectiveArgSpanLength"` + InQueryMaxEffectiveArgSpanLength gensupport.JSONFloat64 `json:"inQueryMaxEffectiveArgSpanLength"` *NoMethod } s1.NoMethod = (*NoMethod)(s) @@ -76289,6 +76990,8 @@ func (s *KnowledgeAnswersIntentQueryParsingSignals) UnmarshalJSON(data []byte) e return err } s.CalibratedParsingScore = float64(s1.CalibratedParsingScore) + s.EffectiveArgSpanLength = float64(s1.EffectiveArgSpanLength) + s.InQueryMaxEffectiveArgSpanLength = float64(s1.InQueryMaxEffectiveArgSpanLength) return nil } @@ -78694,8 +79397,8 @@ type KnowledgeAnswersValueType struct { DateType *KnowledgeAnswersDateType `json:"dateType,omitempty"` - // DependencyType: Work in progress: Used for configuring dynamic types - // to allow for type transparency. See: go/type-dependencies + // DependencyType: Used for configuring dynamic types to allow for type + // transparency. See: go/type-dependencies DependencyType *KnowledgeAnswersDependencyType `json:"dependencyType,omitempty"` DurationType *KnowledgeAnswersDurationType `json:"durationType,omitempty"` @@ -78742,10 +79445,6 @@ type KnowledgeAnswersValueType struct { SemanticType *KnowledgeAnswersSemanticType `json:"semanticType,omitempty"` - // SlotName: DEPRECATED: see go/type-dependencies. Please reach out to - // suwu@, dqwang@ if usage is required. - SlotName string `json:"slotName,omitempty"` - StateOfAffairsType *KnowledgeAnswersStateOfAffairsType `json:"stateOfAffairsType,omitempty"` StringType *KnowledgeAnswersStringType `json:"stringType,omitempty"` @@ -98067,6 +98766,8 @@ type PeoplestackFlexorgsProtoInternalExternal struct { // "CDDB" - Cddb Team contact: cddb-dev-team@google.com // "MONOSPACE" - Monospace Team contact: monospace-eng@google.com // "MY_ACCOUNT" - My Account Team contact: my-google-eng@google.com + // "NUDGEIT_CAMPAIGN_MANAGER" - Nudgeit Campaign Manager Team contact: + // nudges-campaign-manager-team@google.com // "DEPRECATED_QUICKSTART_FLUME" // "DUO_CLIENT" - Duo Client Team contact: duo-eng@google.com // "ALBERT" - Project albert (go/albert-frontend) Team contact: @@ -99239,7 +99940,7 @@ type PersonalizationMapsAliasAliasId struct { // "CONTACT" - CONTACT is only for internal use by Maps // Personalization Server. SetAlias and DeleteAlias RPCs will not accept // this type. - // "NICKNAME" - Alias is an user-entered string stored in nickname + // "NICKNAME" - Alias is a user-entered string stored in nickname // field. Type string `json:"type,omitempty"` @@ -102874,6 +103575,7 @@ type QualityActionsReminder struct { // "REMINDER_DRAGONGLASS_ARIS" // "REMINDER_PROACTIVE_API" // "REMINDER_POST_TASK_MIGRATION" + // "REMINDER_NOTIFICATION_ENABLE_NOTICE" // "CROSS_SURFACE" // "CROSS_SURFACE_MOVIE_SHOWTIMES" // "CROSS_SURFACE_EVENTS" @@ -103347,6 +104049,10 @@ type QualityActionsReminder struct { // of Sheldon project. go/sheldon-notification-prd. // "PROACTIVE_API_FASTTRACK" - Notification configured through // FastTrack UI: http://fasttrack. + // "PERSONAL_RESULTS_OPTIN" - Notification for Personal Response (PR) + // opt-in: go/migrate-pr-notifs-tng-ma-prd + // "HEADPHONE_PERSONAL_RESULTS_OPTIN" - Notification for Headphone + // Personal Response (HPR) opt-in: go/migrate-pr-notifs-tng-ma-prd // "UNIT_TESTING" - NOTE: This should always stay at the bottom of the // list. AsyncInteractionType string `json:"asyncInteractionType,omitempty"` @@ -104145,7 +104851,7 @@ func (s *QualityCalypsoAppsUniversalAuLiveOpEvent) MarshalJSON() ([]byte, error) } // QualityCalypsoAppsUniversalAuLiveOpFormat: Contains the format -// information for a single LiveOp/LiveEvent. Next ID: 10 +// information for a single LiveOp/LiveEvent. Next ID: 11 type QualityCalypsoAppsUniversalAuLiveOpFormat struct { Deeplink string `json:"deeplink,omitempty"` @@ -104156,6 +104862,8 @@ type QualityCalypsoAppsUniversalAuLiveOpFormat struct { ImageUrl string `json:"imageUrl,omitempty"` + OriginalImageUrl string `json:"originalImageUrl,omitempty"` + SquareImageUrl string `json:"squareImageUrl,omitempty"` // Status: iOS only, sort of start schedule @@ -106960,6 +107668,64 @@ type QualityOrbitAsteroidBeltDocumentIntentScores struct { // "SHOPPING_TOPN" - Document intent representing whether a page is // recommending best shopping products fulfilling certain application // (e.g. "best laptops for students"). See go/shopping_topn_orbit. + // "RESERVED_FOR_NEW_ENUM_128" - ========== Enums for new intents + // ========== Instructions: When adding a new intent, use the reserved + // enum number from the start of this list, and add a new reserved enum + // number to the end for the next person. There is a unit test that + // checks there are at least 20 reserved enums. See go/new-intentkeyenum + // for details. + // "RESERVED_FOR_NEW_ENUM_129" + // "RESERVED_FOR_NEW_ENUM_130" + // "RESERVED_FOR_NEW_ENUM_131" + // "RESERVED_FOR_NEW_ENUM_132" + // "RESERVED_FOR_NEW_ENUM_133" + // "RESERVED_FOR_NEW_ENUM_134" + // "RESERVED_FOR_NEW_ENUM_135" + // "RESERVED_FOR_NEW_ENUM_136" + // "RESERVED_FOR_NEW_ENUM_137" + // "RESERVED_FOR_NEW_ENUM_138" + // "RESERVED_FOR_NEW_ENUM_139" + // "RESERVED_FOR_NEW_ENUM_140" + // "RESERVED_FOR_NEW_ENUM_141" + // "RESERVED_FOR_NEW_ENUM_142" + // "RESERVED_FOR_NEW_ENUM_143" + // "RESERVED_FOR_NEW_ENUM_144" + // "RESERVED_FOR_NEW_ENUM_145" + // "RESERVED_FOR_NEW_ENUM_146" + // "RESERVED_FOR_NEW_ENUM_147" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_97" - ========== + // Enums for new large intents ========== Please ask orbit@ before using + // these. + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_98" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_99" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_100" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_101" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_102" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_103" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_104" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_105" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_106" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_107" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_108" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_109" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_110" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_111" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_112" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_113" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_114" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_115" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_116" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_117" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_118" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_119" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_120" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_121" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_122" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_123" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_124" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_125" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_126" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_127" Intents []string `json:"intents,omitempty"` // Scores: The intent scores, scaled to integers between 0 and 100 for @@ -107109,6 +107875,64 @@ type QualityOrbitAsteroidBeltImageIntentScores struct { // "SHOPPING_TOPN" - Document intent representing whether a page is // recommending best shopping products fulfilling certain application // (e.g. "best laptops for students"). See go/shopping_topn_orbit. + // "RESERVED_FOR_NEW_ENUM_128" - ========== Enums for new intents + // ========== Instructions: When adding a new intent, use the reserved + // enum number from the start of this list, and add a new reserved enum + // number to the end for the next person. There is a unit test that + // checks there are at least 20 reserved enums. See go/new-intentkeyenum + // for details. + // "RESERVED_FOR_NEW_ENUM_129" + // "RESERVED_FOR_NEW_ENUM_130" + // "RESERVED_FOR_NEW_ENUM_131" + // "RESERVED_FOR_NEW_ENUM_132" + // "RESERVED_FOR_NEW_ENUM_133" + // "RESERVED_FOR_NEW_ENUM_134" + // "RESERVED_FOR_NEW_ENUM_135" + // "RESERVED_FOR_NEW_ENUM_136" + // "RESERVED_FOR_NEW_ENUM_137" + // "RESERVED_FOR_NEW_ENUM_138" + // "RESERVED_FOR_NEW_ENUM_139" + // "RESERVED_FOR_NEW_ENUM_140" + // "RESERVED_FOR_NEW_ENUM_141" + // "RESERVED_FOR_NEW_ENUM_142" + // "RESERVED_FOR_NEW_ENUM_143" + // "RESERVED_FOR_NEW_ENUM_144" + // "RESERVED_FOR_NEW_ENUM_145" + // "RESERVED_FOR_NEW_ENUM_146" + // "RESERVED_FOR_NEW_ENUM_147" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_97" - ========== + // Enums for new large intents ========== Please ask orbit@ before using + // these. + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_98" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_99" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_100" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_101" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_102" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_103" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_104" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_105" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_106" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_107" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_108" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_109" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_110" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_111" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_112" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_113" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_114" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_115" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_116" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_117" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_118" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_119" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_120" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_121" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_122" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_123" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_124" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_125" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_126" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_127" Intents []string `json:"intents,omitempty"` // Scores: The intent scores, scaled to integers between 0 and 100 for @@ -110270,7 +111094,7 @@ type QualityShoppingShoppingAttachmentOffer struct { NonDisplayableCurrency string `json:"nonDisplayableCurrency,omitempty"` // NonDisplayableOrganicScoreMillis: Normalized riskiness score for - // Organic destinations. It's in range [0,1000] with 0 being the worst + // Organic destinations. It's in range [1,1000] with 1 being the worst // score and 1000 being the best. NonDisplayableOrganicScoreMillis int64 `json:"nonDisplayableOrganicScoreMillis,omitempty"` @@ -112040,6 +112864,9 @@ type QualityWebanswersVideoTranscriptAnnotations struct { // ContentBasedVideoMetadata. AmarnaDocid string `json:"amarnaDocid,omitempty"` + // AsrRepair: The results of ASR transcript quality analysis. + AsrRepair *IndexingVideosAsrTranscriptRepairAnnotation `json:"asrRepair,omitempty"` + // Lang: The language of the transcript as recorded in Amarna. Lang string `json:"lang,omitempty"` @@ -124201,6 +125028,15 @@ func (s *ResearchScienceSearchSourceUrlDocjoinInfo) MarshalJSON() ([]byte, error // ResearchScienceSearchSourceUrlDocjoinInfoWebrefEntityInfo: The mid // and description of a WebRefEntity. type ResearchScienceSearchSourceUrlDocjoinInfoWebrefEntityInfo struct { + // DeprecatedEntityType: DEPRECATED. See entity_type instead. + // + // Possible values: + // "UNKNOWN" + // "FIELD_OF_STUDY" - /collection/field_of_studies in KG. + // "GEO" - /collection/geo/* in KG. + // "ORGANIZATION" - /collection/organization/* in KG + DeprecatedEntityType string `json:"deprecatedEntityType,omitempty"` + // Description: The English description of the mid from the KG. Description string `json:"description,omitempty"` @@ -124209,7 +125045,7 @@ type ResearchScienceSearchSourceUrlDocjoinInfoWebrefEntityInfo struct { // "FIELD_OF_STUDY" - /collection/field_of_studies in KG. // "GEO" - /collection/geo/* in KG. // "ORGANIZATION" - /collection/organization/* in KG - EntityType string `json:"entityType,omitempty"` + EntityCollectionType []string `json:"entityCollectionType,omitempty"` // KgCollection: HRID of the KG collections KgCollection []string `json:"kgCollection,omitempty"` @@ -124217,20 +125053,22 @@ type ResearchScienceSearchSourceUrlDocjoinInfoWebrefEntityInfo struct { // Mid: The KG identifier of the WebrefEntity. Mid string `json:"mid,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") 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. + // "DeprecatedEntityType") 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. "Description") 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. "DeprecatedEntityType") 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:"-"` } @@ -136655,7 +137493,7 @@ func (s *TrawlerThrottleClientData) UnmarshalJSON(data []byte) error { // added *after* the reply is prepared). Use // FetchResponsePreparatorImpl::AddTrawlerPrivateDataToFetchReplyData to // add. See also the comment in fetch_response_preparator_impl.cc. Next -// Tag: 43 +// Tag: 44 type TrawlerTrawlerPrivateFetchReplyData struct { // BotGroupName: If we fetched using BotFetchAgent, what is the // BotGroupName? @@ -136787,6 +137625,10 @@ type TrawlerTrawlerPrivateFetchReplyData struct { // server.example.com AuthenticationInfo string `json:"authenticationInfo,omitempty"` + // BypassedHostOverfull: Cache hit for this url, bypassed host_overfull + // error. + BypassedHostOverfull bool `json:"bypassedHostOverfull,omitempty"` + // CacheAcceptableAfterDate: Corresponds to AcceptableAfterDate field in // FetchParams. CacheAcceptableAfterDate int64 `json:"cacheAcceptableAfterDate,omitempty"` @@ -137534,6 +138376,11 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "MDP_P13N_GAME_QUERY_L7_EVENT_LEVEL" // "MDP_P13N_GAME_QUERY_L8_EVENT_LEVEL" // "MDP_P13N_GAME_QUERY_L9_EVENT_LEVEL" + // "MDP_P13N_RERANKING_UNKNOWN_EVENT_LEVEL" + // "MDP_P13N_RERANKING_CATEGORICAL_EVENT_LEVEL" + // "MDP_P13N_RERANKING_NAVIGATIONAL_EVENT_LEVEL" + // "MDP_P13N_RERANKING_MULTI_NAVIGATIONAL_EVENT_LEVEL" + // "MDP_P13N_RERANKING_NAVIGATIONAL_EXT_EVENT_LEVEL" // "SECOND_PASS_POLARIS_RERANKING_EVENT_LEVEL" - Second pass polaris // reranking event level. // "SECOND_PASS_POLARIS_WITH_RANKING_CHANGE_EVENT_LEVEL" - Second pass @@ -138805,6 +139652,11 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "MDP_P13N_GAME_QUERY_L7_SESSION_LEVEL" // "MDP_P13N_GAME_QUERY_L8_SESSION_LEVEL" // "MDP_P13N_GAME_QUERY_L9_SESSION_LEVEL" + // "MDP_P13N_RERANKING_UNKNOWN_SESSION_LEVEL" + // "MDP_P13N_RERANKING_CATEGORICAL_SESSION_LEVEL" + // "MDP_P13N_RERANKING_NAVIGATIONAL_SESSION_LEVEL" + // "MDP_P13N_RERANKING_MULTI_NAVIGATIONAL_SESSION_LEVEL" + // "MDP_P13N_RERANKING_NAVIGATIONAL_EXT_SESSION_LEVEL" // "VIDEO_CAN_AUTOPLAY" - Session level test code to tell if a video // can autoplay for the given user based on their settings and // connection status @@ -138839,6 +139691,8 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // level test code containing result of tQuality lookup during market // details url matching. Unknown means the lookup found nothing. // "INLINE_DETAILS_TQUALITY_CHECK_UNKNOWN_FRONTEND_SESSION_LEVEL" + // "APPS_LAUNCHER_CLUSTER_AT_SESSION_LEVEL" - Session-level test code + // that indicates a user was served an Apps Launcher Cluster. // "SESSION_LEVEL_TEST_CODE_LIMIT" // "SHOULD_SEE_LIVE_OP_CLUSTER_USER_LEVEL" - User should see the live // op cluster. @@ -139205,7 +140059,6 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "P13N_INTERSTITIAL_USER_LEVEL" // "PLAY_EVENT_SERVICE_LOG_HOOK_USER_EXAMPLE" // "FEATURED_SUBSCRIPTIONS_PRESENT_USER_LEVEL" - // "NOTIFICATION_USER_AFFINITY_USER_LEVEL" // "USE_SUBSCRIPTION_NEW_DOCUMENT_FORMAT_USER_LEVEL" - Test code for // tracking the new subscription document format in GetSkuDetails, // Acquire and SubscriptionDocumentsFetcher flows @@ -139533,6 +140386,19 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // - User level test code to track the user who sees the value promotion // dialog, including loyalty upsell, post purcahse offer and so on for // post purchase offer experiment. + // "MDP_P13N_RERANKING_UNKNOWN_USER_LEVEL" - MDP P13N reranking. + // "MDP_P13N_RERANKING_CATEGORICAL_USER_LEVEL" + // "MDP_P13N_RERANKING_NAVIGATIONAL_USER_LEVEL" + // "MDP_P13N_RERANKING_MULTI_NAVIGATIONAL_USER_LEVEL" + // "MDP_P13N_RERANKING_NAVIGATIONAL_EXT_USER_LEVEL" + // "PLAY_ONBOARDING_QUEST_PLATFORM_SERVING_USER_LEVEL" - User level + // test code for Play Onboarding quest, tracking users who are eligible + // in any serving flow via Quest Platform. + // "APPS_LAUNCHER_CLUSTER_AT_USER_LEVEL" - User-level test code that + // indicates a user was served an Apps Launcher Cluster. + // "PBUY_V1_SEQUENCE_MODEL_LAUNCH_USER_LEVEL" - User level test code + // for v1 sequence model launch layer, tracking users who actually get + // different experience between control and treatment. // "USER_LEVEL_TEST_CODE_LIMIT" TestCode []string `json:"testCode,omitempty"` @@ -154680,7 +155546,7 @@ func (s *YoutubeBackstageSuperVodCommentInfo) MarshalJSON() ([]byte, error) { // YoutubeCommentsClusteringMiniStanza: Intended to be simpler to work // with than the ExportedStanza it's derived from See documentation: // https://g3doc.corp.google.com/company/teams/youtube/community_intelligence/eng_resources/data_sources.md#ministanza -// Next available: 76 +// Next available: 77 type YoutubeCommentsClusteringMiniStanza struct { // AnsibleScores: TnS Ansible scores map. Keyed by various model names. AnsibleScores map[string]float64 `json:"ansibleScores,omitempty"` @@ -155007,6 +155873,10 @@ type YoutubeCommentsClusteringMiniStanza struct { // go/comments-sentiment-access before using. Sentiment *YoutubeCommentsSentimentSentiment `json:"sentiment,omitempty"` + // ShortReplyVideoId: Associated Short Reply video ID if the comment + // represents a Short Reply. See go/yt-comment-sticker-m2. + ShortReplyVideoId string `json:"shortReplyVideoId,omitempty"` + // SmartReplies: Smart replies for this comment. Keyed by model names. SmartReplies map[string]VideoYoutubeCommentsClassificationProtoYouTubeCommentSmartReply `json:"smartReplies,omitempty"` @@ -156579,6 +157449,149 @@ func (c *ProjectsLocationsInitializeCall) Do(opts ...googleapi.CallOption) (*Goo } +// method id "contentwarehouse.projects.locations.runPipeline": + +type ProjectsLocationsRunPipelineCall struct { + s *Service + name string + googlecloudcontentwarehousev1runpipelinerequest *GoogleCloudContentwarehouseV1RunPipelineRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// RunPipeline: Run a predefined pipeline. +// +// - name: The resource name which owns the resources of the pipeline. +// Format: projects/{project_number}/locations/{location}. +func (r *ProjectsLocationsService) RunPipeline(name string, googlecloudcontentwarehousev1runpipelinerequest *GoogleCloudContentwarehouseV1RunPipelineRequest) *ProjectsLocationsRunPipelineCall { + c := &ProjectsLocationsRunPipelineCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudcontentwarehousev1runpipelinerequest = googlecloudcontentwarehousev1runpipelinerequest + 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 *ProjectsLocationsRunPipelineCall) Fields(s ...googleapi.Field) *ProjectsLocationsRunPipelineCall { + 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 *ProjectsLocationsRunPipelineCall) Context(ctx context.Context) *ProjectsLocationsRunPipelineCall { + 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 *ProjectsLocationsRunPipelineCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRunPipelineCall) 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.googlecloudcontentwarehousev1runpipelinerequest) + 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, "v1/{+name}:runPipeline") + 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{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contentwarehouse.projects.locations.runPipeline" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsLocationsRunPipelineCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ + 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": "Run a predefined pipeline.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:runPipeline", + // "httpMethod": "POST", + // "id": "contentwarehouse.projects.locations.runPipeline", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name which owns the resources of the pipeline. Format: projects/{project_number}/locations/{location}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:runPipeline", + // "request": { + // "$ref": "GoogleCloudContentwarehouseV1RunPipelineRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "contentwarehouse.projects.locations.documentSchemas.create": type ProjectsLocationsDocumentSchemasCreateCall struct { diff --git a/datamigration/v1/datamigration-api.json b/datamigration/v1/datamigration-api.json index c010201badb..1481ef58e18 100644 --- a/datamigration/v1/datamigration-api.json +++ b/datamigration/v1/datamigration-api.json @@ -748,6 +748,37 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}:getIamPolicy", + "httpMethod": "GET", + "id": "datamigration.projects.locations.conversionWorkspaces.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:getIamPolicy", + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { "description": "Lists conversion workspaces in a given project and location.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces", @@ -925,6 +956,62 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}:setIamPolicy", + "httpMethod": "POST", + "id": "datamigration.projects.locations.conversionWorkspaces.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}:testIamPermissions", + "httpMethod": "POST", + "id": "datamigration.projects.locations.conversionWorkspaces.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } }, "resources": { @@ -1708,7 +1795,7 @@ } } }, - "revision": "20230118", + "revision": "20230125", "rootUrl": "https://datamigration.googleapis.com/", "schemas": { "AlloyDbConnectionProfile": { @@ -1892,7 +1979,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, @@ -2476,7 +2563,8 @@ "DATABASE_ENTITY_TYPE_FUNCTION", "DATABASE_ENTITY_TYPE_SYNONYM", "DATABASE_ENTITY_TYPE_DATABASE_PACKAGE", - "DATABASE_ENTITY_TYPE_UDT" + "DATABASE_ENTITY_TYPE_UDT", + "DATABASE_ENTITY_TYPE_MATERIAL_VIEW" ], "enumDescriptions": [ "Unspecified database entity type", @@ -2492,7 +2580,8 @@ "Function", "Synonym", "Package", - "UDT" + "UDT", + "Material View" ], "type": "string" }, @@ -4088,7 +4177,8 @@ "DATABASE_ENTITY_TYPE_FUNCTION", "DATABASE_ENTITY_TYPE_SYNONYM", "DATABASE_ENTITY_TYPE_DATABASE_PACKAGE", - "DATABASE_ENTITY_TYPE_UDT" + "DATABASE_ENTITY_TYPE_UDT", + "DATABASE_ENTITY_TYPE_MATERIAL_VIEW" ], "enumDescriptions": [ "Unspecified database entity type", @@ -4104,7 +4194,8 @@ "Function", "Synonym", "Package", - "UDT" + "UDT", + "Material View" ], "type": "string" } diff --git a/datamigration/v1/datamigration-gen.go b/datamigration/v1/datamigration-gen.go index 5533325ea8e..2229cfa02b4 100644 --- a/datamigration/v1/datamigration-gen.go +++ b/datamigration/v1/datamigration-gen.go @@ -542,7 +542,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -559,9 +561,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. @@ -1257,6 +1257,7 @@ type DatabaseEntity struct { // "DATABASE_ENTITY_TYPE_SYNONYM" - Synonym // "DATABASE_ENTITY_TYPE_DATABASE_PACKAGE" - Package // "DATABASE_ENTITY_TYPE_UDT" - UDT + // "DATABASE_ENTITY_TYPE_MATERIAL_VIEW" - Material View EntityType string `json:"entityType,omitempty"` // Mappings: Details about entity mappings. For source tree entities, @@ -3687,6 +3688,7 @@ type SynonymEntity struct { // "DATABASE_ENTITY_TYPE_SYNONYM" - Synonym // "DATABASE_ENTITY_TYPE_DATABASE_PACKAGE" - Package // "DATABASE_ENTITY_TYPE_UDT" - UDT + // "DATABASE_ENTITY_TYPE_MATERIAL_VIEW" - Material View SourceType string `json:"sourceType,omitempty"` // ForceSendFields is a list of field names (e.g. "CustomFeatures") to @@ -7168,6 +7170,181 @@ func (c *ProjectsLocationsConversionWorkspacesGetCall) Do(opts ...googleapi.Call } +// method id "datamigration.projects.locations.conversionWorkspaces.getIamPolicy": + +type ProjectsLocationsConversionWorkspacesGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. +// +// - resource: REQUIRED: The resource for which the policy is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsConversionWorkspacesService) GetIamPolicy(resource string) *ProjectsLocationsConversionWorkspacesGetIamPolicyCall { + c := &ProjectsLocationsConversionWorkspacesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that +// will be used to format the policy. Valid values are 0, 1, and 3. +// Requests specifying an invalid value will be rejected. Requests for +// policies with any conditional role bindings must specify version 3. +// Policies with no conditional role bindings may specify any valid +// value or leave the field unset. The policy in the response might use +// the policy version that you specified, or it might use a lower policy +// version. For example, if you specify version 3, but the policy has no +// conditional role bindings, the response uses version 1. To learn +// which resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsConversionWorkspacesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsConversionWorkspacesGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + 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 *ProjectsLocationsConversionWorkspacesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversionWorkspacesGetIamPolicyCall { + 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 *ProjectsLocationsConversionWorkspacesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversionWorkspacesGetIamPolicyCall { + 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 *ProjectsLocationsConversionWorkspacesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsConversionWorkspacesGetIamPolicyCall { + 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 *ProjectsLocationsConversionWorkspacesGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversionWorkspacesGetIamPolicyCall) 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, "v1/{+resource}:getIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.conversionWorkspaces.getIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.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 *ProjectsLocationsConversionWorkspacesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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 := &Policy{ + 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 the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}:getIamPolicy", + // "httpMethod": "GET", + // "id": "datamigration.projects.locations.conversionWorkspaces.getIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "options.requestedPolicyVersion": { + // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:getIamPolicy", + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "datamigration.projects.locations.conversionWorkspaces.list": type ProjectsLocationsConversionWorkspacesListCall struct { @@ -8044,6 +8221,303 @@ func (c *ProjectsLocationsConversionWorkspacesSeedCall) Do(opts ...googleapi.Cal } +// method id "datamigration.projects.locations.conversionWorkspaces.setIamPolicy": + +type ProjectsLocationsConversionWorkspacesSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsConversionWorkspacesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsConversionWorkspacesSetIamPolicyCall { + c := &ProjectsLocationsConversionWorkspacesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest + 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 *ProjectsLocationsConversionWorkspacesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversionWorkspacesSetIamPolicyCall { + 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 *ProjectsLocationsConversionWorkspacesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsConversionWorkspacesSetIamPolicyCall { + 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 *ProjectsLocationsConversionWorkspacesSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversionWorkspacesSetIamPolicyCall) 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.setiampolicyrequest) + 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, "v1/{+resource}:setIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.conversionWorkspaces.setIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.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 *ProjectsLocationsConversionWorkspacesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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 := &Policy{ + 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": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.conversionWorkspaces.setIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.conversionWorkspaces.testIamPermissions": + +type ProjectsLocationsConversionWorkspacesTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsConversionWorkspacesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsConversionWorkspacesTestIamPermissionsCall { + c := &ProjectsLocationsConversionWorkspacesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + 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 *ProjectsLocationsConversionWorkspacesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversionWorkspacesTestIamPermissionsCall { + 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 *ProjectsLocationsConversionWorkspacesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsConversionWorkspacesTestIamPermissionsCall { + 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 *ProjectsLocationsConversionWorkspacesTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversionWorkspacesTestIamPermissionsCall) 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.testiampermissionsrequest) + 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, "v1/{+resource}:testIamPermissions") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.conversionWorkspaces.testIamPermissions" call. +// Exactly one of *TestIamPermissionsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.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 *ProjectsLocationsConversionWorkspacesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, 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 := &TestIamPermissionsResponse{ + 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 permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.conversionWorkspaces.testIamPermissions", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:testIamPermissions", + // "request": { + // "$ref": "TestIamPermissionsRequest" + // }, + // "response": { + // "$ref": "TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "datamigration.projects.locations.conversionWorkspaces.mappingRules.import": type ProjectsLocationsConversionWorkspacesMappingRulesImportCall struct { diff --git a/datamigration/v1beta1/datamigration-api.json b/datamigration/v1beta1/datamigration-api.json index 7cc6d448590..b58f069bb30 100644 --- a/datamigration/v1beta1/datamigration-api.json +++ b/datamigration/v1beta1/datamigration-api.json @@ -1049,7 +1049,7 @@ } } }, - "revision": "20221018", + "revision": "20230125", "rootUrl": "https://datamigration.googleapis.com/", "schemas": { "AuditConfig": { @@ -1109,7 +1109,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/datamigration/v1beta1/datamigration-gen.go b/datamigration/v1beta1/datamigration-gen.go index b0c1b59acec..e936fa9c40c 100644 --- a/datamigration/v1beta1/datamigration-gen.go +++ b/datamigration/v1beta1/datamigration-gen.go @@ -320,7 +320,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -337,9 +339,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. diff --git a/displayvideo/v1/displayvideo-api.json b/displayvideo/v1/displayvideo-api.json index 6ae0b7c5183..bb952accb68 100644 --- a/displayvideo/v1/displayvideo-api.json +++ b/displayvideo/v1/displayvideo-api.json @@ -1890,7 +1890,7 @@ "type": "string" }, "targetingType": { - "description": "Required. Identifies the type of this assigned targeting option.", + "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`", "enum": [ "TARGETING_TYPE_UNSPECIFIED", "TARGETING_TYPE_CHANNEL", @@ -2050,7 +2050,7 @@ "type": "string" }, "targetingType": { - "description": "Required. Identifies the type of assigned targeting options to list.", + "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`", "enum": [ "TARGETING_TYPE_UNSPECIFIED", "TARGETING_TYPE_CHANNEL", @@ -2338,7 +2338,7 @@ "type": "string" }, "pageSize": { - "description": "Requested page size. The size must be an integer between `1` and `5000`. If unspecified, the default is '5000'. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", + "description": "Requested page size. The size must be an integer between `1` and `5000`. If unspecified, the default is `5000`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", "format": "int32", "location": "query", "type": "integer" @@ -2610,7 +2610,7 @@ "type": "string" }, "targetingType": { - "description": "Required. Identifies the type of this assigned targeting option.", + "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`", "enum": [ "TARGETING_TYPE_UNSPECIFIED", "TARGETING_TYPE_CHANNEL", @@ -2760,7 +2760,7 @@ "type": "string" }, "targetingType": { - "description": "Required. Identifies the type of this assigned targeting option.", + "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`", "enum": [ "TARGETING_TYPE_UNSPECIFIED", "TARGETING_TYPE_CHANNEL", @@ -2907,7 +2907,7 @@ "type": "string" }, "targetingType": { - "description": "Required. Identifies the type of this assigned targeting option.", + "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY` * `TARGETING_TYPE_YOUTUBE_CHANNEL` (only for `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items) * `TARGETING_TYPE_YOUTUBE_VIDEO` (only for `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items)", "enum": [ "TARGETING_TYPE_UNSPECIFIED", "TARGETING_TYPE_CHANNEL", @@ -3067,7 +3067,7 @@ "type": "string" }, "targetingType": { - "description": "Required. Identifies the type of assigned targeting options to list.", + "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY` * `TARGETING_TYPE_YOUTUBE_CHANNEL` (only for `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items) * `TARGETING_TYPE_YOUTUBE_VIDEO` (only for `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items)", "enum": [ "TARGETING_TYPE_UNSPECIFIED", "TARGETING_TYPE_CHANNEL", @@ -4452,7 +4452,7 @@ "type": "string" }, "targetingType": { - "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`", + "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_YOUTUBE_VIDEO` * `TARGETING_TYPE_YOUTUBE_CHANNEL`", "enum": [ "TARGETING_TYPE_UNSPECIFIED", "TARGETING_TYPE_CHANNEL", @@ -4603,7 +4603,7 @@ "type": "string" }, "targetingType": { - "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`", + "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_YOUTUBE_VIDEO` * `TARGETING_TYPE_YOUTUBE_CHANNEL`", "enum": [ "TARGETING_TYPE_UNSPECIFIED", "TARGETING_TYPE_CHANNEL", @@ -8146,7 +8146,7 @@ } } }, - "revision": "20230105", + "revision": "20230209", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { diff --git a/displayvideo/v1/displayvideo-gen.go b/displayvideo/v1/displayvideo-gen.go index e1ee453babb..b782ebc835e 100644 --- a/displayvideo/v1/displayvideo-gen.go +++ b/displayvideo/v1/displayvideo-gen.go @@ -23340,7 +23340,39 @@ type AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsGetCall str // - insertionOrderId: The ID of the insertion order the assigned // targeting option belongs to. // - targetingType: Identifies the type of this assigned targeting -// option. +// option. Supported targeting types include: * +// `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * +// `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * +// `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * +// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * +// `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * +// `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * +// `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * +// `TARGETING_TYPE_CONTENT_GENRE` * +// `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * +// `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * +// `TARGETING_TYPE_CONTENT_STREAM_TYPE` * +// `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` +// - `TARGETING_TYPE_DEVICE_TYPE` * +// `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * +// `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * +// `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * +// `TARGETING_TYPE_HOUSEHOLD_INCOME` * +// `TARGETING_TYPE_INVENTORY_SOURCE` * +// `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` +// - `TARGETING_TYPE_LANGUAGE` * +// `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * +// `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * +// `TARGETING_TYPE_ON_SCREEN_POSITION` * +// `TARGETING_TYPE_OPERATING_SYSTEM` * +// `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * +// `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * +// `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * +// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * +// `TARGETING_TYPE_SUB_EXCHANGE` * +// `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * +// `TARGETING_TYPE_USER_REWARDED_CONTENT` * +// `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`. func (r *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsService) Get(advertiserId int64, insertionOrderId int64, targetingType string, assignedTargetingOptionId string) *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsGetCall { c := &AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -23487,7 +23519,7 @@ func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsGetCall // "type": "string" // }, // "targetingType": { - // "description": "Required. Identifies the type of this assigned targeting option.", + // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`", // "enum": [ // "TARGETING_TYPE_UNSPECIFIED", // "TARGETING_TYPE_CHANNEL", @@ -23621,7 +23653,39 @@ type AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCall st // - insertionOrderId: The ID of the insertion order to list assigned // targeting options for. // - targetingType: Identifies the type of assigned targeting options to -// list. +// list. Supported targeting types include: * +// `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * +// `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * +// `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * +// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * +// `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * +// `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * +// `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * +// `TARGETING_TYPE_CONTENT_GENRE` * +// `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * +// `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * +// `TARGETING_TYPE_CONTENT_STREAM_TYPE` * +// `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` +// - `TARGETING_TYPE_DEVICE_TYPE` * +// `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * +// `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * +// `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * +// `TARGETING_TYPE_HOUSEHOLD_INCOME` * +// `TARGETING_TYPE_INVENTORY_SOURCE` * +// `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` +// - `TARGETING_TYPE_LANGUAGE` * +// `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * +// `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * +// `TARGETING_TYPE_ON_SCREEN_POSITION` * +// `TARGETING_TYPE_OPERATING_SYSTEM` * +// `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * +// `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * +// `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * +// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * +// `TARGETING_TYPE_SUB_EXCHANGE` * +// `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * +// `TARGETING_TYPE_USER_REWARDED_CONTENT` * +// `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`. func (r *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsService) List(advertiserId int64, insertionOrderId int64, targetingType string) *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCall { c := &AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -23827,7 +23891,7 @@ func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCal // "type": "string" // }, // "targetingType": { - // "description": "Required. Identifies the type of assigned targeting options to list.", + // "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`", // "enum": [ // "TARGETING_TYPE_UNSPECIFIED", // "TARGETING_TYPE_CHANNEL", @@ -24592,7 +24656,7 @@ func (c *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall) Order // PageSize sets the optional parameter "pageSize": Requested page size. // The size must be an integer between `1` and `5000`. If unspecified, -// the default is '5000'. Returns error code `INVALID_ARGUMENT` if an +// the default is `5000`. Returns error code `INVALID_ARGUMENT` if an // invalid value is specified. func (c *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall) PageSize(pageSize int64) *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) @@ -24747,7 +24811,7 @@ func (c *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall) Do(op // "type": "string" // }, // "pageSize": { - // "description": "Requested page size. The size must be an integer between `1` and `5000`. If unspecified, the default is '5000'. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", + // "description": "Requested page size. The size must be an integer between `1` and `5000`. If unspecified, the default is `5000`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", // "format": "int32", // "location": "query", // "type": "integer" @@ -25851,7 +25915,39 @@ type AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsCreateCall struct // - lineItemId: The ID of the line item the assigned targeting option // will belong to. // - targetingType: Identifies the type of this assigned targeting -// option. +// option. Supported targeting types include: * +// `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * +// `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * +// `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * +// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * +// `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * +// `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * +// `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * +// `TARGETING_TYPE_CONTENT_GENRE` * +// `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * +// `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * +// `TARGETING_TYPE_CONTENT_STREAM_TYPE` * +// `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` +// - `TARGETING_TYPE_DEVICE_TYPE` * +// `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * +// `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * +// `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * +// `TARGETING_TYPE_HOUSEHOLD_INCOME` * +// `TARGETING_TYPE_INVENTORY_SOURCE` * +// `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` +// - `TARGETING_TYPE_LANGUAGE` * +// `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * +// `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * +// `TARGETING_TYPE_ON_SCREEN_POSITION` * +// `TARGETING_TYPE_OPERATING_SYSTEM` * +// `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * +// `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * +// `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * +// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * +// `TARGETING_TYPE_SUB_EXCHANGE` * +// `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * +// `TARGETING_TYPE_USER_REWARDED_CONTENT` * +// `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`. func (r *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsService) Create(advertiserId int64, lineItemId int64, targetingType string, assignedtargetingoption *AssignedTargetingOption) *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsCreateCall { c := &AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -25981,7 +26077,7 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsCreateCall) D // "type": "string" // }, // "targetingType": { - // "description": "Required. Identifies the type of this assigned targeting option.", + // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`", // "enum": [ // "TARGETING_TYPE_UNSPECIFIED", // "TARGETING_TYPE_CHANNEL", @@ -26123,7 +26219,39 @@ type AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsDeleteCall struct // - lineItemId: The ID of the line item the assigned targeting option // belongs to. // - targetingType: Identifies the type of this assigned targeting -// option. +// option. Supported targeting types include: * +// `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * +// `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * +// `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * +// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * +// `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * +// `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * +// `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * +// `TARGETING_TYPE_CONTENT_GENRE` * +// `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * +// `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * +// `TARGETING_TYPE_CONTENT_STREAM_TYPE` * +// `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` +// - `TARGETING_TYPE_DEVICE_TYPE` * +// `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * +// `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * +// `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * +// `TARGETING_TYPE_HOUSEHOLD_INCOME` * +// `TARGETING_TYPE_INVENTORY_SOURCE` * +// `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` +// - `TARGETING_TYPE_LANGUAGE` * +// `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * +// `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * +// `TARGETING_TYPE_ON_SCREEN_POSITION` * +// `TARGETING_TYPE_OPERATING_SYSTEM` * +// `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * +// `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * +// `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * +// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * +// `TARGETING_TYPE_SUB_EXCHANGE` * +// `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * +// `TARGETING_TYPE_USER_REWARDED_CONTENT` * +// `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`. func (r *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsService) Delete(advertiserId int64, lineItemId int64, targetingType string, assignedTargetingOptionId string) *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsDeleteCall { c := &AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -26257,7 +26385,7 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsDeleteCall) D // "type": "string" // }, // "targetingType": { - // "description": "Required. Identifies the type of this assigned targeting option.", + // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`", // "enum": [ // "TARGETING_TYPE_UNSPECIFIED", // "TARGETING_TYPE_CHANNEL", @@ -26394,7 +26522,43 @@ type AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsGetCall struct { // - lineItemId: The ID of the line item the assigned targeting option // belongs to. // - targetingType: Identifies the type of this assigned targeting -// option. +// option. Supported targeting types include: * +// `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * +// `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * +// `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * +// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * +// `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * +// `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * +// `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * +// `TARGETING_TYPE_CONTENT_GENRE` * +// `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * +// `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * +// `TARGETING_TYPE_CONTENT_STREAM_TYPE` * +// `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` +// - `TARGETING_TYPE_DEVICE_TYPE` * +// `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * +// `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * +// `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * +// `TARGETING_TYPE_HOUSEHOLD_INCOME` * +// `TARGETING_TYPE_INVENTORY_SOURCE` * +// `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` +// - `TARGETING_TYPE_LANGUAGE` * +// `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * +// `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * +// `TARGETING_TYPE_ON_SCREEN_POSITION` * +// `TARGETING_TYPE_OPERATING_SYSTEM` * +// `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * +// `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * +// `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * +// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * +// `TARGETING_TYPE_SUB_EXCHANGE` * +// `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * +// `TARGETING_TYPE_USER_REWARDED_CONTENT` * +// `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY` * +// `TARGETING_TYPE_YOUTUBE_CHANNEL` (only for +// `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items) * +// `TARGETING_TYPE_YOUTUBE_VIDEO` (only for +// `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items). func (r *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsService) Get(advertiserId int64, lineItemId int64, targetingType string, assignedTargetingOptionId string) *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsGetCall { c := &AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -26541,7 +26705,7 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsGetCall) Do(o // "type": "string" // }, // "targetingType": { - // "description": "Required. Identifies the type of this assigned targeting option.", + // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY` * `TARGETING_TYPE_YOUTUBE_CHANNEL` (only for `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items) * `TARGETING_TYPE_YOUTUBE_VIDEO` (only for `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items)", // "enum": [ // "TARGETING_TYPE_UNSPECIFIED", // "TARGETING_TYPE_CHANNEL", @@ -26674,7 +26838,43 @@ type AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall struct { // - lineItemId: The ID of the line item to list assigned targeting // options for. // - targetingType: Identifies the type of assigned targeting options to -// list. +// list. Supported targeting types include: * +// `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * +// `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * +// `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * +// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * +// `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * +// `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * +// `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * +// `TARGETING_TYPE_CONTENT_GENRE` * +// `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * +// `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * +// `TARGETING_TYPE_CONTENT_STREAM_TYPE` * +// `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` +// - `TARGETING_TYPE_DEVICE_TYPE` * +// `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * +// `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * +// `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * +// `TARGETING_TYPE_HOUSEHOLD_INCOME` * +// `TARGETING_TYPE_INVENTORY_SOURCE` * +// `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` +// - `TARGETING_TYPE_LANGUAGE` * +// `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * +// `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * +// `TARGETING_TYPE_ON_SCREEN_POSITION` * +// `TARGETING_TYPE_OPERATING_SYSTEM` * +// `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * +// `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * +// `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * +// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * +// `TARGETING_TYPE_SUB_EXCHANGE` * +// `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * +// `TARGETING_TYPE_USER_REWARDED_CONTENT` * +// `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY` * +// `TARGETING_TYPE_YOUTUBE_CHANNEL` (only for +// `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items) * +// `TARGETING_TYPE_YOUTUBE_VIDEO` (only for +// `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items). func (r *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsService) List(advertiserId int64, lineItemId int64, targetingType string) *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall { c := &AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -26880,7 +27080,7 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall) Do( // "type": "string" // }, // "targetingType": { - // "description": "Required. Identifies the type of assigned targeting options to list.", + // "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY` * `TARGETING_TYPE_YOUTUBE_CHANNEL` (only for `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items) * `TARGETING_TYPE_YOUTUBE_VIDEO` (only for `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items)", // "enum": [ // "TARGETING_TYPE_UNSPECIFIED", // "TARGETING_TYPE_CHANNEL", @@ -31719,7 +31919,8 @@ type AdvertisersTargetingTypesAssignedTargetingOptionsGetCall struct { // option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * // `TARGETING_TYPE_OMID` * -// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`. +// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * +// `TARGETING_TYPE_YOUTUBE_VIDEO` * `TARGETING_TYPE_YOUTUBE_CHANNEL`. func (r *AdvertisersTargetingTypesAssignedTargetingOptionsService) Get(advertiserId int64, targetingType string, assignedTargetingOptionId string) *AdvertisersTargetingTypesAssignedTargetingOptionsGetCall { c := &AdvertisersTargetingTypesAssignedTargetingOptionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -31855,7 +32056,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsGetCall) Do(opts ...go // "type": "string" // }, // "targetingType": { - // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`", + // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_YOUTUBE_VIDEO` * `TARGETING_TYPE_YOUTUBE_CHANNEL`", // "enum": [ // "TARGETING_TYPE_UNSPECIFIED", // "TARGETING_TYPE_CHANNEL", @@ -31988,7 +32189,8 @@ type AdvertisersTargetingTypesAssignedTargetingOptionsListCall struct { // list. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * // `TARGETING_TYPE_OMID` * -// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`. +// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * +// `TARGETING_TYPE_YOUTUBE_VIDEO` * `TARGETING_TYPE_YOUTUBE_CHANNEL`. func (r *AdvertisersTargetingTypesAssignedTargetingOptionsService) List(advertiserId int64, targetingType string) *AdvertisersTargetingTypesAssignedTargetingOptionsListCall { c := &AdvertisersTargetingTypesAssignedTargetingOptionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -32180,7 +32382,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsListCall) Do(opts ...g // "type": "string" // }, // "targetingType": { - // "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`", + // "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_YOUTUBE_VIDEO` * `TARGETING_TYPE_YOUTUBE_CHANNEL`", // "enum": [ // "TARGETING_TYPE_UNSPECIFIED", // "TARGETING_TYPE_CHANNEL", diff --git a/displayvideo/v2/displayvideo-api.json b/displayvideo/v2/displayvideo-api.json index 1b35827fc25..e8e35dcca2c 100644 --- a/displayvideo/v2/displayvideo-api.json +++ b/displayvideo/v2/displayvideo-api.json @@ -813,9 +813,9 @@ "Target ads in an Open Measurement enabled inventory.", "Target ads to a specific audio content type.", "Target ads to a specific content genre.", - "Target ads to a specific YouTube video.", - "Target ads to a specific YouTube channel.", - "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." ], "location": "path", "pattern": "^[^/]+$", @@ -979,9 +979,9 @@ "Target ads in an Open Measurement enabled inventory.", "Target ads to a specific audio content type.", "Target ads to a specific content genre.", - "Target ads to a specific YouTube video.", - "Target ads to a specific YouTube channel.", - "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." ], "location": "path", "pattern": "^[^/]+$", @@ -1993,9 +1993,9 @@ "Target ads in an Open Measurement enabled inventory.", "Target ads to a specific audio content type.", "Target ads to a specific content genre.", - "Target ads to a specific YouTube video.", - "Target ads to a specific YouTube channel.", - "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." ], "location": "path", "pattern": "^[^/]+$", @@ -2149,9 +2149,9 @@ "Target ads in an Open Measurement enabled inventory.", "Target ads to a specific audio content type.", "Target ads to a specific content genre.", - "Target ads to a specific YouTube video.", - "Target ads to a specific YouTube channel.", - "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." ], "location": "path", "pattern": "^[^/]+$", @@ -2203,7 +2203,7 @@ "type": "string" }, "targetingType": { - "description": "Required. Identifies the type of this assigned targeting option.", + "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`", "enum": [ "TARGETING_TYPE_UNSPECIFIED", "TARGETING_TYPE_CHANNEL", @@ -2302,9 +2302,9 @@ "Target ads in an Open Measurement enabled inventory.", "Target ads to a specific audio content type.", "Target ads to a specific content genre.", - "Target ads to a specific YouTube video.", - "Target ads to a specific YouTube channel.", - "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." ], "location": "path", "pattern": "^[^/]+$", @@ -2369,7 +2369,7 @@ "type": "string" }, "targetingType": { - "description": "Required. Identifies the type of assigned targeting options to list.", + "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`", "enum": [ "TARGETING_TYPE_UNSPECIFIED", "TARGETING_TYPE_CHANNEL", @@ -2468,9 +2468,9 @@ "Target ads in an Open Measurement enabled inventory.", "Target ads to a specific audio content type.", "Target ads to a specific content genre.", - "Target ads to a specific YouTube video.", - "Target ads to a specific YouTube channel.", - "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." ], "location": "path", "pattern": "^[^/]+$", @@ -2652,7 +2652,7 @@ "type": "string" }, "pageSize": { - "description": "Requested page size. The size must be an integer between `1` and `5000`. If unspecified, the default is '5000'. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", + "description": "Requested page size. The size must be an integer between `1` and `5000`. If unspecified, the default is `5000`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", "format": "int32", "location": "query", "type": "integer" @@ -2991,7 +2991,7 @@ "type": "string" }, "targetingType": { - "description": "Required. Identifies the type of this assigned targeting option.", + "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`", "enum": [ "TARGETING_TYPE_UNSPECIFIED", "TARGETING_TYPE_CHANNEL", @@ -3090,9 +3090,9 @@ "Target ads in an Open Measurement enabled inventory.", "Target ads to a specific audio content type.", "Target ads to a specific content genre.", - "Target ads to a specific YouTube video.", - "Target ads to a specific YouTube channel.", - "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." ], "location": "path", "pattern": "^[^/]+$", @@ -3147,7 +3147,7 @@ "type": "string" }, "targetingType": { - "description": "Required. Identifies the type of this assigned targeting option.", + "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`", "enum": [ "TARGETING_TYPE_UNSPECIFIED", "TARGETING_TYPE_CHANNEL", @@ -3246,9 +3246,9 @@ "Target ads in an Open Measurement enabled inventory.", "Target ads to a specific audio content type.", "Target ads to a specific content genre.", - "Target ads to a specific YouTube video.", - "Target ads to a specific YouTube channel.", - "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." ], "location": "path", "pattern": "^[^/]+$", @@ -3300,7 +3300,7 @@ "type": "string" }, "targetingType": { - "description": "Required. Identifies the type of this assigned targeting option.", + "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY` * `TARGETING_TYPE_YOUTUBE_CHANNEL` (only for `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items) * `TARGETING_TYPE_YOUTUBE_VIDEO` (only for `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items)", "enum": [ "TARGETING_TYPE_UNSPECIFIED", "TARGETING_TYPE_CHANNEL", @@ -3399,9 +3399,9 @@ "Target ads in an Open Measurement enabled inventory.", "Target ads to a specific audio content type.", "Target ads to a specific content genre.", - "Target ads to a specific YouTube video.", - "Target ads to a specific YouTube channel.", - "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." ], "location": "path", "pattern": "^[^/]+$", @@ -3466,7 +3466,7 @@ "type": "string" }, "targetingType": { - "description": "Required. Identifies the type of assigned targeting options to list.", + "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY` * `TARGETING_TYPE_YOUTUBE_CHANNEL` (only for `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items) * `TARGETING_TYPE_YOUTUBE_VIDEO` (only for `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items)", "enum": [ "TARGETING_TYPE_UNSPECIFIED", "TARGETING_TYPE_CHANNEL", @@ -3565,9 +3565,9 @@ "Target ads in an Open Measurement enabled inventory.", "Target ads to a specific audio content type.", "Target ads to a specific content genre.", - "Target ads to a specific YouTube video.", - "Target ads to a specific YouTube channel.", - "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." ], "location": "path", "pattern": "^[^/]+$", @@ -4677,9 +4677,9 @@ "Target ads in an Open Measurement enabled inventory.", "Target ads to a specific audio content type.", "Target ads to a specific content genre.", - "Target ads to a specific YouTube video.", - "Target ads to a specific YouTube channel.", - "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." ], "location": "path", "pattern": "^[^/]+$", @@ -4824,9 +4824,9 @@ "Target ads in an Open Measurement enabled inventory.", "Target ads to a specific audio content type.", "Target ads to a specific content genre.", - "Target ads to a specific YouTube video.", - "Target ads to a specific YouTube channel.", - "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." ], "location": "path", "pattern": "^[^/]+$", @@ -4869,7 +4869,7 @@ "type": "string" }, "targetingType": { - "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`", + "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_YOUTUBE_VIDEO` * `TARGETING_TYPE_YOUTUBE_CHANNEL`", "enum": [ "TARGETING_TYPE_UNSPECIFIED", "TARGETING_TYPE_CHANNEL", @@ -4968,9 +4968,9 @@ "Target ads in an Open Measurement enabled inventory.", "Target ads to a specific audio content type.", "Target ads to a specific content genre.", - "Target ads to a specific YouTube video.", - "Target ads to a specific YouTube channel.", - "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." ], "location": "path", "pattern": "^[^/]+$", @@ -5026,7 +5026,7 @@ "type": "string" }, "targetingType": { - "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`", + "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_YOUTUBE_VIDEO` * `TARGETING_TYPE_YOUTUBE_CHANNEL`", "enum": [ "TARGETING_TYPE_UNSPECIFIED", "TARGETING_TYPE_CHANNEL", @@ -5125,9 +5125,9 @@ "Target ads in an Open Measurement enabled inventory.", "Target ads to a specific audio content type.", "Target ads to a specific content genre.", - "Target ads to a specific YouTube video.", - "Target ads to a specific YouTube channel.", - "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." ], "location": "path", "pattern": "^[^/]+$", @@ -5236,7 +5236,7 @@ "youtubeAdGroups": { "methods": { "bulkListAdGroupAssignedTargetingOptions": { - "description": "Lists assigned targeting options for multiple YouTube ad groups across targeting types.", + "description": "Lists assigned targeting options for multiple YouTube ad groups across targeting types. Inherieted assigned targeting options are not included.", "flatPath": "v2/advertisers/{advertisersId}/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions", "httpMethod": "GET", "id": "displayvideo.advertisers.youtubeAdGroups.bulkListAdGroupAssignedTargetingOptions", @@ -5263,7 +5263,7 @@ "type": "string" }, "pageSize": { - "description": "Requested page size. The size must be an integer between `1` and `5000`. If unspecified, the default is '5000'. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", + "description": "Requested page size. The size must be an integer between `1` and `5000`. If unspecified, the default is `5000`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", "format": "int32", "location": "query", "type": "integer" @@ -5378,7 +5378,7 @@ "assignedTargetingOptions": { "methods": { "get": { - "description": "Gets a single targeting option assigned to a YouTube ad group. Inherited targeting is not included.", + "description": "Gets a single targeting option assigned to a YouTube ad group. Inherited assigned targeting options are not included.", "flatPath": "v2/advertisers/{advertisersId}/youtubeAdGroups/{youtubeAdGroupsId}/targetingTypes/{targetingTypesId}/assignedTargetingOptions/{assignedTargetingOptionsId}", "httpMethod": "GET", "id": "displayvideo.advertisers.youtubeAdGroups.targetingTypes.assignedTargetingOptions.get", @@ -5405,7 +5405,7 @@ "type": "string" }, "targetingType": { - "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types include: * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_SESSION_POSITION` * `TARGETING_TYPE_YOUTUBE_CHANNEL` * `TARGETING_TYPE_YOUTUBE_VIDEO`", + "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_SESSION_POSITION` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_YOUTUBE_CHANNEL` * `TARGETING_TYPE_YOUTUBE_VIDEO`", "enum": [ "TARGETING_TYPE_UNSPECIFIED", "TARGETING_TYPE_CHANNEL", @@ -5504,9 +5504,9 @@ "Target ads in an Open Measurement enabled inventory.", "Target ads to a specific audio content type.", "Target ads to a specific content genre.", - "Target ads to a specific YouTube video.", - "Target ads to a specific YouTube channel.", - "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." ], "location": "path", "pattern": "^[^/]+$", @@ -5531,7 +5531,7 @@ ] }, "list": { - "description": "Lists the targeting options assigned to a YouTube ad group. Inherited targeting is not included.", + "description": "Lists the targeting options assigned to a YouTube ad group. Inherited assigned targeting options are not included.", "flatPath": "v2/advertisers/{advertisersId}/youtubeAdGroups/{youtubeAdGroupsId}/targetingTypes/{targetingTypesId}/assignedTargetingOptions", "httpMethod": "GET", "id": "displayvideo.advertisers.youtubeAdGroups.targetingTypes.assignedTargetingOptions.list", @@ -5571,7 +5571,7 @@ "type": "string" }, "targetingType": { - "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types include: * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_SESSION_POSITION` * `TARGETING_TYPE_YOUTUBE_CHANNEL` * `TARGETING_TYPE_YOUTUBE_VIDEO`", + "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_SESSION_POSITION` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_YOUTUBE_CHANNEL` * `TARGETING_TYPE_YOUTUBE_VIDEO`", "enum": [ "TARGETING_TYPE_UNSPECIFIED", "TARGETING_TYPE_CHANNEL", @@ -5670,9 +5670,9 @@ "Target ads in an Open Measurement enabled inventory.", "Target ads to a specific audio content type.", "Target ads to a specific content genre.", - "Target ads to a specific YouTube video.", - "Target ads to a specific YouTube channel.", - "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." ], "location": "path", "pattern": "^[^/]+$", @@ -8037,9 +8037,9 @@ "Target ads in an Open Measurement enabled inventory.", "Target ads to a specific audio content type.", "Target ads to a specific content genre.", - "Target ads to a specific YouTube video.", - "Target ads to a specific YouTube channel.", - "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." ], "location": "path", "pattern": "^[^/]+$", @@ -8184,9 +8184,9 @@ "Target ads in an Open Measurement enabled inventory.", "Target ads to a specific audio content type.", "Target ads to a specific content genre.", - "Target ads to a specific YouTube video.", - "Target ads to a specific YouTube channel.", - "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." ], "location": "path", "pattern": "^[^/]+$", @@ -8328,9 +8328,9 @@ "Target ads in an Open Measurement enabled inventory.", "Target ads to a specific audio content type.", "Target ads to a specific content genre.", - "Target ads to a specific YouTube video.", - "Target ads to a specific YouTube channel.", - "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." ], "location": "path", "pattern": "^[^/]+$", @@ -8485,9 +8485,9 @@ "Target ads in an Open Measurement enabled inventory.", "Target ads to a specific audio content type.", "Target ads to a specific content genre.", - "Target ads to a specific YouTube video.", - "Target ads to a specific YouTube channel.", - "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." ], "location": "path", "pattern": "^[^/]+$", @@ -8690,9 +8690,9 @@ "Target ads in an Open Measurement enabled inventory.", "Target ads to a specific audio content type.", "Target ads to a specific content genre.", - "Target ads to a specific YouTube video.", - "Target ads to a specific YouTube channel.", - "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." ], "location": "path", "pattern": "^[^/]+$", @@ -8844,9 +8844,9 @@ "Target ads in an Open Measurement enabled inventory.", "Target ads to a specific audio content type.", "Target ads to a specific content genre.", - "Target ads to a specific YouTube video.", - "Target ads to a specific YouTube channel.", - "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." ], "location": "path", "pattern": "^[^/]+$", @@ -8971,9 +8971,9 @@ "Target ads in an Open Measurement enabled inventory.", "Target ads to a specific audio content type.", "Target ads to a specific content genre.", - "Target ads to a specific YouTube video.", - "Target ads to a specific YouTube channel.", - "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." ], "location": "path", "pattern": "^[^/]+$", @@ -9172,7 +9172,7 @@ } } }, - "revision": "20230119", + "revision": "20230209", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -9301,7 +9301,7 @@ "id": "AdUrl", "properties": { "type": { - "description": "The type of the AD url.", + "description": "The type of the Ad URL.", "enum": [ "AD_URL_TYPE_UNSPECIFIED", "AD_URL_TYPE_BEACON_IMPRESSION", @@ -9313,13 +9313,13 @@ "Unknown or unspecified.", "A 1x1 tracking pixel to ping when an impression of a creative is delivered.", "Expandable DCM impression beacon. At serving time, it is expanded to several beacons.", - "Tracking url to ping when the click event is triggered.", - "Tracking url to ping when the skip event is triggered." + "Tracking URL to ping when the click event is triggered.", + "Tracking URL to ping when the skip event is triggered." ], "type": "string" }, "url": { - "description": "The url value of the ad url.", + "description": "The URL string value.", "type": "string" } }, @@ -10152,9 +10152,9 @@ "Target ads in an Open Measurement enabled inventory.", "Target ads to a specific audio content type.", "Target ads to a specific content genre.", - "Target ads to a specific YouTube video.", - "Target ads to a specific YouTube channel.", - "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." ], "readOnly": true, "type": "string" @@ -10279,7 +10279,7 @@ "type": "object" }, "AudioAd": { - "description": "The details for audio ad.", + "description": "Details for an audio ad.", "id": "AudioAd", "properties": { "displayUrl": { @@ -10291,7 +10291,7 @@ "type": "string" }, "trackingUrl": { - "description": "The URL address which is loaded in background for tracking purpose.", + "description": "The URL address loaded in the background for tracking purposes.", "type": "string" }, "video": { @@ -10666,14 +10666,14 @@ "id": "BulkEditAssignedTargetingOptionsRequest", "properties": { "createRequests": { - "description": "The assigned targeting options to create in batch, specified as a list of CreateAssignedTargetingOptionsRequest.", + "description": "The assigned targeting options to create in batch, specified as a list of CreateAssignedTargetingOptionsRequest. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`", "items": { "$ref": "CreateAssignedTargetingOptionsRequest" }, "type": "array" }, "deleteRequests": { - "description": "The assigned targeting options to delete in batch, specified as a list of DeleteAssignedTargetingOptionsRequest.", + "description": "The assigned targeting options to delete in batch, specified as a list of DeleteAssignedTargetingOptionsRequest. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`", "items": { "$ref": "DeleteAssignedTargetingOptionsRequest" }, @@ -11019,12 +11019,12 @@ "type": "object" }, "BumperAd": { - "description": "Ad details for BumperAd.", + "description": "Details for a bumper ad.", "id": "BumperAd", "properties": { "commonInStreamAttribute": { "$ref": "CommonInStreamAttribute", - "description": "Common attributes data model." + "description": "Common ad attributes." } }, "type": "object" @@ -11594,7 +11594,7 @@ "type": "object" }, "CommonInStreamAttribute": { - "description": "The common attributes for InStreamAd, NonSkippableAd and BumperAd.", + "description": "Common attributes for in-stream, non-skippable and bumper ads.", "id": "CommonInStreamAttribute", "properties": { "actionButtonLabel": { @@ -11607,7 +11607,7 @@ }, "companionBanner": { "$ref": "ImageAsset", - "description": "The image which shows next to the video Ad." + "description": "The image which shows next to the video ad." }, "displayUrl": { "description": "The webpage address that appears with the ad.", @@ -11618,7 +11618,7 @@ "type": "string" }, "trackingUrl": { - "description": "The URL address which is loaded in background for tracking purpose.", + "description": "The URL address loaded in the background for tracking purposes.", "type": "string" }, "video": { @@ -12137,9 +12137,9 @@ "Target ads in an Open Measurement enabled inventory.", "Target ads to a specific audio content type.", "Target ads to a specific content genre.", - "Target ads to a specific YouTube video.", - "Target ads to a specific YouTube channel.", - "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." ], "type": "string" } @@ -12838,11 +12838,11 @@ ], "enumDescriptions": [ "Not specified or unknown.", - "index 0.", - "index 1.", - "index 2.", - "index 3.", - "index 4." + "Key index 0.", + "Key index 1.", + "Key index 2.", + "Key index 3.", + "Key index 4." ], "type": "string" }, @@ -13111,9 +13111,9 @@ "Target ads in an Open Measurement enabled inventory.", "Target ads to a specific audio content type.", "Target ads to a specific content genre.", - "Target ads to a specific YouTube video.", - "Target ads to a specific YouTube channel.", - "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." ], "type": "string" } @@ -13286,7 +13286,7 @@ "type": "object" }, "DisplayVideoSourceAd": { - "description": "The ad of which source is DV360 creative.", + "description": "The ad sourced from a DV360 creative.", "id": "DisplayVideoSourceAd", "properties": { "creativeId": { @@ -15687,7 +15687,7 @@ "type": "object" }, "ImageAsset": { - "description": "The meta data of an image asset.", + "description": "Meta data of an image asset.", "id": "ImageAsset", "properties": { "fileSize": { @@ -15707,18 +15707,18 @@ "type": "object" }, "InStreamAd": { - "description": "Ad details for InStreamAd", + "description": "Details for an in-stream ad.", "id": "InStreamAd", "properties": { "commonInStreamAttribute": { "$ref": "CommonInStreamAttribute", - "description": "Common attributes data model." + "description": "Common ad attributes." }, "customParameters": { "additionalProperties": { "type": "string" }, - "description": "The custom parameters to pass custom values to tracking url template.", + "description": "The custom parameters to pass custom values to tracking URL template.", "type": "object" } }, @@ -17670,7 +17670,6 @@ "type": "object" }, "ListYoutubeAdGroupAdsResponse": { - "description": "Response message for YoutubeAdGroupAdService.ListYoutubeAdGroupAds.", "id": "ListYoutubeAdGroupAdsResponse", "properties": { "nextPageToken": { @@ -17844,16 +17843,16 @@ "type": "object" }, "MastheadAd": { - "description": "The details for masthead ad.", + "description": "Details for a Masthead Ad.", "id": "MastheadAd", "properties": { "autoplayVideoDuration": { - "description": "Video will autoplay for certain period of time.", + "description": "The duration of time the video will autoplay.", "format": "google-duration", "type": "string" }, "autoplayVideoStartMillisecond": { - "description": "Video will start to play after certain period of time in millisecond.", + "description": "The amount of time in milliseconds after which the video will start to play.", "format": "int64", "type": "string" }, @@ -17870,7 +17869,7 @@ "type": "string" }, "companionYoutubeVideos": { - "description": "The videos (up to 2) that appear next to the Masthead ad on desktop.", + "description": "The videos that appear next to the Masthead Ad on desktop. Can be no more than two.", "items": { "$ref": "YoutubeVideoDetails" }, @@ -17890,10 +17889,10 @@ }, "video": { "$ref": "YoutubeVideoDetails", - "description": "The YouTube video of the ad." + "description": "The YouTube video used by the ad." }, "videoAspectRatio": { - "description": "Aspect ratio of the autoplaying YouTube video on the Masthead.", + "description": "The aspect ratio of the autoplaying YouTube video on the Masthead.", "enum": [ "VIDEO_ASPECT_RATIO_UNSPECIFIED", "VIDEO_ASPECT_RATIO_WIDESCREEN", @@ -18158,18 +18157,18 @@ "type": "object" }, "NonSkippableAd": { - "description": "Ad details for NonSkippableAd", + "description": "Details for a non-skippable ad.", "id": "NonSkippableAd", "properties": { "commonInStreamAttribute": { "$ref": "CommonInStreamAttribute", - "description": "Common attributes data model." + "description": "Common ad attributes." }, "customParameters": { "additionalProperties": { "type": "string" }, - "description": "The custom parameters to pass custom values to tracking url template.", + "description": "The custom parameters to pass custom values to tracking URL template.", "type": "object" } }, @@ -19050,18 +19049,18 @@ "id": "ProductFeedData", "properties": { "isFeedDisabled": { - "description": "True if opt out of showing products.", + "description": "Whether the product feed has opted-out of showing products.", "type": "boolean" }, "productMatchDimensions": { - "description": "A list of dimensions which are used to match products.", + "description": "A list of dimensions used to match products.", "items": { "$ref": "ProductMatchDimension" }, "type": "array" }, "productMatchType": { - "description": "The type of the way to select the products.", + "description": "How products are selected by the product feed.", "enum": [ "PRODUCT_MATCH_TYPE_UNSPECIFIED", "PRODUCT_MATCH_TYPE_ALL_PRODUCTS", @@ -19080,7 +19079,7 @@ "type": "object" }, "ProductMatchDimension": { - "description": "The dimension which are used to match products.", + "description": "A dimension used to match products.", "id": "ProductMatchDimension", "properties": { "customLabel": { @@ -19088,7 +19087,7 @@ "description": "The custom label to match all the products with the label." }, "productOfferId": { - "description": "The ID of the product offer to match the product with the same offer ID.", + "description": "The ID of the product offer to match with a product with the same offer ID.", "type": "string" } }, @@ -20033,9 +20032,9 @@ "Target ads in an Open Measurement enabled inventory.", "Target ads to a specific audio content type.", "Target ads to a specific content genre.", - "Target ads to a specific YouTube video.", - "Target ads to a specific YouTube channel.", - "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." ], "readOnly": true, "type": "string" @@ -20475,7 +20474,7 @@ "type": "object" }, "VideoDiscoveryAd": { - "description": "The details for video discovery ad.", + "description": "Details for a video discovery ad.", "id": "VideoDiscoveryAd", "properties": { "description1": { @@ -20487,11 +20486,11 @@ "type": "string" }, "headline": { - "description": "The headline of the video discovery ad.", + "description": "The headline of ad.", "type": "string" }, "thumbnail": { - "description": "Thumbnail image to use in the ad.", + "description": "Thumbnail image used in the ad.", "enum": [ "THUMBNAIL_UNSPECIFIED", "THUMBNAIL_DEFAULT", @@ -20510,24 +20509,24 @@ }, "video": { "$ref": "YoutubeVideoDetails", - "description": "The YouTube video which the ad wants to promote." + "description": "The YouTube video the ad promotes." } }, "type": "object" }, "VideoPerformanceAd": { - "description": "The details for video performance ad.", + "description": "Details for a video performance ad.", "id": "VideoPerformanceAd", "properties": { "actionButtonLabels": { - "description": "The list of text assets which show on the call-to-action button.", + "description": "The list of text assets shown on the call-to-action button.", "items": { "type": "string" }, "type": "array" }, "companionBanners": { - "description": "The list of companion banners of this ad.", + "description": "The list of companion banners used by this ad.", "items": { "$ref": "ImageAsset" }, @@ -20537,26 +20536,26 @@ "additionalProperties": { "type": "string" }, - "description": "The custom parameters to pass custom values to tracking url template.", + "description": "The custom parameters to pass custom values to tracking URL template.", "type": "object" }, "descriptions": { - "description": "The list of descriptions which show on the call-to-action banner.", + "description": "The list of descriptions shown on the call-to-action banner.", "items": { "type": "string" }, "type": "array" }, "displayUrlBreadcrumb1": { - "description": "The first piece after the domain in the display url.", + "description": "The first piece after the domain in the display URL.", "type": "string" }, "displayUrlBreadcrumb2": { - "description": "The second piece after the domain in the display url.", + "description": "The second piece after the domain in the display URL.", "type": "string" }, "domain": { - "description": "The domain of the display url", + "description": "The domain of the display URL.", "type": "string" }, "finalUrl": { @@ -20564,25 +20563,25 @@ "type": "string" }, "headlines": { - "description": "The list of headlines which show on the call-to-action banner.", + "description": "The list of headlines shown on the call-to-action banner.", "items": { "type": "string" }, "type": "array" }, "longHeadlines": { - "description": "The list of lone headlines which show on the call-to-action banner.", + "description": "The list of lone headlines shown on the call-to-action banner.", "items": { "type": "string" }, "type": "array" }, "trackingUrl": { - "description": "The URL address which is loaded in background for tracking purpose.", + "description": "The URL address loaded in the background for tracking purposes.", "type": "string" }, "videos": { - "description": "The list of YouTube video assets in this ad.", + "description": "The list of YouTube video assets used by this ad.", "items": { "$ref": "YoutubeVideoDetails" }, @@ -20718,7 +20717,7 @@ "id": "YoutubeAdGroup", "properties": { "adGroupFormat": { - "description": "The format of the ad group.", + "description": "The format of the ads in the ad group.", "enum": [ "YOUTUBE_AND_PARTNERS_AD_GROUP_FORMAT_UNSPECIFIED", "YOUTUBE_AND_PARTNERS_AD_GROUP_FORMAT_IN_STREAM", @@ -20739,7 +20738,7 @@ "Non-skippable in-stream audio ads.", "[Responsive ads for video action campaigns] (https://support.google.com/displayvideo/answer/9065351).", "[Effective reach ad groups] (https://support.google.com/displayvideo/answer/9173684), including in-stream and bumper ads.", - "Video Masthead that is surfaced on the top slot on the YouTube homepage." + "Masthead Ad that is surfaced on the top slot on the YouTube homepage." ], "type": "string" }, @@ -20755,7 +20754,7 @@ }, "biddingStrategy": { "$ref": "YoutubeAndPartnersBiddingStrategy", - "description": "The bidding strategy of the ad group." + "description": "The bidding strategy used by the ad group." }, "displayName": { "description": "The display name of the ad group. Must be UTF-8 encoded with a maximum size of 255 bytes.", @@ -20792,14 +20791,14 @@ }, "productFeedData": { "$ref": "ProductFeedData", - "description": "The data to represent the product feed in this ad group." + "description": "The settings of the product feed in this ad group." }, "targetingExpansion": { "$ref": "TargetingExpansionConfig", "description": "The [targeting expansion](https://support.google.com/displayvideo/answer/10191558) settings of the ad group. This config is only applicable when eligible audience list targeting is assigned to the ad group." }, "youtubeAdIds": { - "description": "The IDs of the YouTubeAds associated with the ad group.", + "description": "The IDs of the youtube_ad_group_ad resources associated with the ad group.", "items": { "format": "int64", "type": "string" @@ -20810,49 +20809,49 @@ "type": "object" }, "YoutubeAdGroupAd": { - "description": "A single YouTube ad group ad associated with a YouTube ad group.", + "description": "A single ad associated with a YouTube ad group.", "id": "YoutubeAdGroupAd", "properties": { "adGroupAdId": { - "description": "The unique ID of the ad group ad. Assigned by the system.", + "description": "The unique ID of the ad. Assigned by the system.", "format": "int64", "type": "string" }, "adGroupId": { - "description": "The unique ID of the ad group that the ad group ad belongs to.", + "description": "The unique ID of the ad group that the ad belongs to.", "format": "int64", "type": "string" }, "adUrls": { - "description": "The list of ad urls.", + "description": "List of URLs used by the ad.", "items": { "$ref": "AdUrl" }, "type": "array" }, "advertiserId": { - "description": "The unique ID of the advertiser the ad group ad belongs to.", + "description": "The unique ID of the advertiser the ad belongs to.", "format": "int64", "type": "string" }, "audioAd": { "$ref": "AudioAd", - "description": "Audio ad for reach purpose. [details](https://support.google.com/displayvideo/answer/6274216)" + "description": "Details of an [audio ad](//support.google.com/displayvideo/answer/6274216) used for reach marketing objectives." }, "bumperAd": { "$ref": "BumperAd", - "description": "Non-skippable short video ad for reach purpose and video length equal to or less than 6 seconds. [details](https://support.google.com/displayvideo/answer/6274216)" + "description": "Details of a [non-skippable short video ad](//support.google.com/displayvideo/answer/6274216), equal to or less than 6 seconds, used for reach." }, "displayName": { - "description": "The display name of the ad group ad. Must be UTF-8 encoded with a maximum size of 255 bytes.", + "description": "The display name of the ad. Must be UTF-8 encoded with a maximum size of 255 bytes.", "type": "string" }, "displayVideoSourceAd": { "$ref": "DisplayVideoSourceAd", - "description": "The ad sourcing DV360 creative." + "description": "Details of an ad sourced from a Display \u0026 Video 360 creative." }, "entityStatus": { - "description": "The entity status of the ad group ad.", + "description": "The entity status of the ad.", "enum": [ "ENTITY_STATUS_UNSPECIFIED", "ENTITY_STATUS_ACTIVE", @@ -20873,27 +20872,27 @@ }, "inStreamAd": { "$ref": "InStreamAd", - "description": "Skippable in-stream ad after 5 seconds for brand awareness or reach marketing objectives. [details](https://support.google.com/displayvideo/answer/6274216)" + "description": "Details of an [in-stream ad skippable after 5 seconds](//support.google.com/displayvideo/answer/6274216), used for brand awareness or reach marketing objectives." }, "mastheadAd": { "$ref": "MastheadAd", - "description": "The ad which shows on YouTube homepage. [details](https://support.google.com/google-ads/answer/9709826)" + "description": "Details of an [ad served on the YouTube Home feed](//support.google.com/google-ads/answer/9709826)." }, "name": { - "description": "The resource name of the ad group ad.", + "description": "The resource name of the ad.", "type": "string" }, "nonSkippableAd": { "$ref": "NonSkippableAd", - "description": "Non-skippable short in-stream ad for reach marketing objectives, and video length is between 6 and 15 seconds. [details](https://support.google.com/displayvideo/answer/6274216)" + "description": "Details of a [non-skippable short in-stream video ad](//support.google.com/displayvideo/answer/6274216), between 6 and 15 seconds, used for reach marketing objectives." }, "videoDiscoverAd": { "$ref": "VideoDiscoveryAd", - "description": "An ad which shows in places of discovery to promote a video. [details](https://support.google.com/displayvideo/answer/6274216)" + "description": "Details of an [ad promoting a video](//support.google.com/displayvideo/answer/6274216) that shows in places of discovery." }, "videoPerformanceAd": { "$ref": "VideoPerformanceAd", - "description": "The ad to drive actions to the business, service or product. [details](https://support.google.com/google-ads/answer/10147229)" + "description": "Details of an [ad used in a video action campaign](//support.google.com/google-ads/answer/10147229) to drive actions to the business, service or product." } }, "type": "object" @@ -21118,11 +21117,11 @@ "type": "object" }, "YoutubeVideoDetails": { - "description": "Details of the YouTube video.", + "description": "Details of a YouTube video.", "id": "YoutubeVideoDetails", "properties": { "id": { - "description": "The ID which can be searched on YouTube webpage.", + "description": "The YouTube video ID which can be searched on YouTube webpage.", "type": "string" }, "unavailableReason": { diff --git a/displayvideo/v2/displayvideo-gen.go b/displayvideo/v2/displayvideo-gen.go index 5270f813e93..abaa70ffc9b 100644 --- a/displayvideo/v2/displayvideo-gen.go +++ b/displayvideo/v2/displayvideo-gen.go @@ -835,7 +835,7 @@ func (s *ActiveViewVideoViewabilityMetricConfig) MarshalJSON() ([]byte, error) { // AdUrl: Additional URLs related to the ad, including beacons. type AdUrl struct { - // Type: The type of the AD url. + // Type: The type of the Ad URL. // // Possible values: // "AD_URL_TYPE_UNSPECIFIED" - Unknown or unspecified. @@ -844,13 +844,13 @@ type AdUrl struct { // "AD_URL_TYPE_BEACON_EXPANDABLE_DCM_IMPRESSION" - Expandable DCM // impression beacon. At serving time, it is expanded to several // beacons. - // "AD_URL_TYPE_BEACON_CLICK" - Tracking url to ping when the click + // "AD_URL_TYPE_BEACON_CLICK" - Tracking URL to ping when the click // event is triggered. - // "AD_URL_TYPE_BEACON_SKIP" - Tracking url to ping when the skip + // "AD_URL_TYPE_BEACON_SKIP" - Tracking URL to ping when the skip // event is triggered. Type string `json:"type,omitempty"` - // Url: The url value of the ad url. + // Url: The URL string value. Url string `json:"url,omitempty"` // ForceSendFields is a list of field names (e.g. "Type") to @@ -2194,12 +2194,17 @@ type AssignedTargetingOption struct { // "TARGETING_TYPE_CONTENT_GENRE" - Target ads to a specific content // genre. // "TARGETING_TYPE_YOUTUBE_VIDEO" - Target ads to a specific YouTube - // video. + // video. Targeting of this type cannot be created or updated using the + // API. Although this targeting is inherited by child resources, + // **inherited targeting of this type will not be retrieveable**. // "TARGETING_TYPE_YOUTUBE_CHANNEL" - Target ads to a specific YouTube - // channel. + // channel. Targeting of this type cannot be created or updated using + // the API. Although this targeting is inherited by child resources, + // **inherited targeting of this type will not be retrieveable**. // "TARGETING_TYPE_SESSION_POSITION" - Target ads to a serve it in a - // certain position of a session. Only supported for the AdGroup of - // YouTube Programmatic Reservation line item. + // certain position of a session. Only supported for Ad Group resources + // under YouTube Programmatic Reservation line items. Targeting of this + // type cannot be created or updated using the API. TargetingType string `json:"targetingType,omitempty"` // ThirdPartyVerifierDetails: Third party verification details. This @@ -2420,7 +2425,7 @@ func (s *AudienceGroupAssignedTargetingOptionDetails) MarshalJSON() ([]byte, err return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AudioAd: The details for audio ad. +// AudioAd: Details for an audio ad. type AudioAd struct { // DisplayUrl: The webpage address that appears with the ad. DisplayUrl string `json:"displayUrl,omitempty"` @@ -2429,8 +2434,8 @@ type AudioAd struct { // click the ad. FinalUrl string `json:"finalUrl,omitempty"` - // TrackingUrl: The URL address which is loaded in background for - // tracking purpose. + // TrackingUrl: The URL address loaded in the background for tracking + // purposes. TrackingUrl string `json:"trackingUrl,omitempty"` // Video: The YouTube video of the ad. @@ -3166,10 +3171,66 @@ func (s *BulkEditAssignedLocationsResponse) MarshalJSON() ([]byte, error) { type BulkEditAssignedTargetingOptionsRequest struct { // CreateRequests: The assigned targeting options to create in batch, // specified as a list of CreateAssignedTargetingOptionsRequest. + // Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * + // `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * + // `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` + // * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * + // `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * + // `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * + // `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * + // `TARGETING_TYPE_CONTENT_GENRE` * + // `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * + // `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * + // `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` + // * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * + // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * + // `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * + // `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * + // `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` + // * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` + // * `TARGETING_TYPE_LANGUAGE` * + // `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * + // `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * + // `TARGETING_TYPE_ON_SCREEN_POSITION` * + // `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` + // * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * + // `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * + // `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * + // `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` + // * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * + // `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY` CreateRequests []*CreateAssignedTargetingOptionsRequest `json:"createRequests,omitempty"` // DeleteRequests: The assigned targeting options to delete in batch, // specified as a list of DeleteAssignedTargetingOptionsRequest. + // Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * + // `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * + // `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` + // * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * + // `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * + // `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * + // `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * + // `TARGETING_TYPE_CONTENT_GENRE` * + // `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * + // `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * + // `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` + // * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * + // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * + // `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * + // `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * + // `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` + // * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` + // * `TARGETING_TYPE_LANGUAGE` * + // `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * + // `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * + // `TARGETING_TYPE_ON_SCREEN_POSITION` * + // `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` + // * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * + // `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * + // `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * + // `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` + // * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * + // `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY` DeleteRequests []*DeleteAssignedTargetingOptionsRequest `json:"deleteRequests,omitempty"` // LineItemIds: Required. The ID of the line items whose targeting is @@ -3821,9 +3882,9 @@ func (s *BulkUpdateLineItemsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// BumperAd: Ad details for BumperAd. +// BumperAd: Details for a bumper ad. type BumperAd struct { - // CommonInStreamAttribute: Common attributes data model. + // CommonInStreamAttribute: Common ad attributes. CommonInStreamAttribute *CommonInStreamAttribute `json:"commonInStreamAttribute,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -4742,8 +4803,8 @@ func (s *CombinedAudienceTargetingSetting) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CommonInStreamAttribute: The common attributes for InStreamAd, -// NonSkippableAd and BumperAd. +// CommonInStreamAttribute: Common attributes for in-stream, +// non-skippable and bumper ads. type CommonInStreamAttribute struct { // ActionButtonLabel: The text on the call-to-action button. ActionButtonLabel string `json:"actionButtonLabel,omitempty"` @@ -4751,7 +4812,7 @@ type CommonInStreamAttribute struct { // ActionHeadline: The headline of the call-to-action banner. ActionHeadline string `json:"actionHeadline,omitempty"` - // CompanionBanner: The image which shows next to the video Ad. + // CompanionBanner: The image which shows next to the video ad. CompanionBanner *ImageAsset `json:"companionBanner,omitempty"` // DisplayUrl: The webpage address that appears with the ad. @@ -4761,8 +4822,8 @@ type CommonInStreamAttribute struct { // click the ad. FinalUrl string `json:"finalUrl,omitempty"` - // TrackingUrl: The URL address which is loaded in background for - // tracking purpose. + // TrackingUrl: The URL address loaded in the background for tracking + // purposes. TrackingUrl string `json:"trackingUrl,omitempty"` // Video: The YouTube video of the ad. @@ -5605,12 +5666,17 @@ type CreateAssignedTargetingOptionsRequest struct { // "TARGETING_TYPE_CONTENT_GENRE" - Target ads to a specific content // genre. // "TARGETING_TYPE_YOUTUBE_VIDEO" - Target ads to a specific YouTube - // video. + // video. Targeting of this type cannot be created or updated using the + // API. Although this targeting is inherited by child resources, + // **inherited targeting of this type will not be retrieveable**. // "TARGETING_TYPE_YOUTUBE_CHANNEL" - Target ads to a specific YouTube - // channel. + // channel. Targeting of this type cannot be created or updated using + // the API. Although this targeting is inherited by child resources, + // **inherited targeting of this type will not be retrieveable**. // "TARGETING_TYPE_SESSION_POSITION" - Target ads to a serve it in a - // certain position of a session. Only supported for the AdGroup of - // YouTube Programmatic Reservation line item. + // certain position of a session. Only supported for Ad Group resources + // under YouTube Programmatic Reservation line items. Targeting of this + // type cannot be created or updated using the API. TargetingType string `json:"targetingType,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -6527,11 +6593,11 @@ type CustomLabel struct { // // Possible values: // "CUSTOM_LABEL_KEY_UNSPECIFIED" - Not specified or unknown. - // "CUSTOM_LABEL_KEY_0" - index 0. - // "CUSTOM_LABEL_KEY_1" - index 1. - // "CUSTOM_LABEL_KEY_2" - index 2. - // "CUSTOM_LABEL_KEY_3" - index 3. - // "CUSTOM_LABEL_KEY_4" - index 4. + // "CUSTOM_LABEL_KEY_0" - Key index 0. + // "CUSTOM_LABEL_KEY_1" - Key index 1. + // "CUSTOM_LABEL_KEY_2" - Key index 2. + // "CUSTOM_LABEL_KEY_3" - Key index 3. + // "CUSTOM_LABEL_KEY_4" - Key index 4. Key string `json:"key,omitempty"` // Value: The value of the label. @@ -6916,12 +6982,17 @@ type DeleteAssignedTargetingOptionsRequest struct { // "TARGETING_TYPE_CONTENT_GENRE" - Target ads to a specific content // genre. // "TARGETING_TYPE_YOUTUBE_VIDEO" - Target ads to a specific YouTube - // video. + // video. Targeting of this type cannot be created or updated using the + // API. Although this targeting is inherited by child resources, + // **inherited targeting of this type will not be retrieveable**. // "TARGETING_TYPE_YOUTUBE_CHANNEL" - Target ads to a specific YouTube - // channel. + // channel. Targeting of this type cannot be created or updated using + // the API. Although this targeting is inherited by child resources, + // **inherited targeting of this type will not be retrieveable**. // "TARGETING_TYPE_SESSION_POSITION" - Target ads to a serve it in a - // certain position of a session. Only supported for the AdGroup of - // YouTube Programmatic Reservation line item. + // certain position of a session. Only supported for Ad Group resources + // under YouTube Programmatic Reservation line items. Targeting of this + // type cannot be created or updated using the API. TargetingType string `json:"targetingType,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -7256,7 +7327,7 @@ func (s *Dimensions) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// DisplayVideoSourceAd: The ad of which source is DV360 creative. +// DisplayVideoSourceAd: The ad sourced from a DV360 creative. type DisplayVideoSourceAd struct { // CreativeId: The ID of the source creative. CreativeId int64 `json:"creativeId,omitempty,string"` @@ -9992,7 +10063,7 @@ func (s *IdFilter) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ImageAsset: The meta data of an image asset. +// ImageAsset: Meta data of an image asset. type ImageAsset struct { // FileSize: File size of the image asset in bytes. FileSize int64 `json:"fileSize,omitempty,string"` @@ -10026,13 +10097,13 @@ func (s *ImageAsset) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// InStreamAd: Ad details for InStreamAd +// InStreamAd: Details for an in-stream ad. type InStreamAd struct { - // CommonInStreamAttribute: Common attributes data model. + // CommonInStreamAttribute: Common ad attributes. CommonInStreamAttribute *CommonInStreamAttribute `json:"commonInStreamAttribute,omitempty"` // CustomParameters: The custom parameters to pass custom values to - // tracking url template. + // tracking URL template. CustomParameters map[string]string `json:"customParameters,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -12996,8 +13067,6 @@ func (s *ListUsersResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ListYoutubeAdGroupAdsResponse: Response message for -// YoutubeAdGroupAdService.ListYoutubeAdGroupAds. type ListYoutubeAdGroupAdsResponse struct { // NextPageToken: A token to retrieve the next page of results. Pass // this value in the page_token field in the subsequent call to @@ -13301,14 +13370,13 @@ func (s *ManualTrigger) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// MastheadAd: The details for masthead ad. +// MastheadAd: Details for a Masthead Ad. type MastheadAd struct { - // AutoplayVideoDuration: Video will autoplay for certain period of - // time. + // AutoplayVideoDuration: The duration of time the video will autoplay. AutoplayVideoDuration string `json:"autoplayVideoDuration,omitempty"` - // AutoplayVideoStartMillisecond: Video will start to play after certain - // period of time in millisecond. + // AutoplayVideoStartMillisecond: The amount of time in milliseconds + // after which the video will start to play. AutoplayVideoStartMillisecond int64 `json:"autoplayVideoStartMillisecond,omitempty,string"` // CallToActionButtonLabel: The text on the call-to-action button. @@ -13322,8 +13390,8 @@ type MastheadAd struct { // button. CallToActionTrackingUrl string `json:"callToActionTrackingUrl,omitempty"` - // CompanionYoutubeVideos: The videos (up to 2) that appear next to the - // Masthead ad on desktop. + // CompanionYoutubeVideos: The videos that appear next to the Masthead + // Ad on desktop. Can be no more than two. CompanionYoutubeVideos []*YoutubeVideoDetails `json:"companionYoutubeVideos,omitempty"` // Description: The description of the ad. @@ -13336,11 +13404,11 @@ type MastheadAd struct { // at the top of a YouTube page. ShowChannelArt bool `json:"showChannelArt,omitempty"` - // Video: The YouTube video of the ad. + // Video: The YouTube video used by the ad. Video *YoutubeVideoDetails `json:"video,omitempty"` - // VideoAspectRatio: Aspect ratio of the autoplaying YouTube video on - // the Masthead. + // VideoAspectRatio: The aspect ratio of the autoplaying YouTube video + // on the Masthead. // // Possible values: // "VIDEO_ASPECT_RATIO_UNSPECIFIED" - Not specified or unknown. @@ -13822,13 +13890,13 @@ func (s *NegativeKeywordListAssignedTargetingOptionDetails) MarshalJSON() ([]byt return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// NonSkippableAd: Ad details for NonSkippableAd +// NonSkippableAd: Details for a non-skippable ad. type NonSkippableAd struct { - // CommonInStreamAttribute: Common attributes data model. + // CommonInStreamAttribute: Common ad attributes. CommonInStreamAttribute *CommonInStreamAttribute `json:"commonInStreamAttribute,omitempty"` // CustomParameters: The custom parameters to pass custom values to - // tracking url template. + // tracking URL template. CustomParameters map[string]string `json:"customParameters,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -15259,14 +15327,14 @@ func (s *PrismaCpeCode) MarshalJSON() ([]byte, error) { // ProductFeedData: The details of product feed. type ProductFeedData struct { - // IsFeedDisabled: True if opt out of showing products. + // IsFeedDisabled: Whether the product feed has opted-out of showing + // products. IsFeedDisabled bool `json:"isFeedDisabled,omitempty"` - // ProductMatchDimensions: A list of dimensions which are used to match - // products. + // ProductMatchDimensions: A list of dimensions used to match products. ProductMatchDimensions []*ProductMatchDimension `json:"productMatchDimensions,omitempty"` - // ProductMatchType: The type of the way to select the products. + // ProductMatchType: How products are selected by the product feed. // // Possible values: // "PRODUCT_MATCH_TYPE_UNSPECIFIED" - Not specified or unknown. @@ -15301,15 +15369,14 @@ func (s *ProductFeedData) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ProductMatchDimension: The dimension which are used to match -// products. +// ProductMatchDimension: A dimension used to match products. type ProductMatchDimension struct { // CustomLabel: The custom label to match all the products with the // label. CustomLabel *CustomLabel `json:"customLabel,omitempty"` - // ProductOfferId: The ID of the product offer to match the product with - // the same offer ID. + // ProductOfferId: The ID of the product offer to match with a product + // with the same offer ID. ProductOfferId string `json:"productOfferId,omitempty"` // ForceSendFields is a list of field names (e.g. "CustomLabel") to @@ -16698,12 +16765,17 @@ type TargetingOption struct { // "TARGETING_TYPE_CONTENT_GENRE" - Target ads to a specific content // genre. // "TARGETING_TYPE_YOUTUBE_VIDEO" - Target ads to a specific YouTube - // video. + // video. Targeting of this type cannot be created or updated using the + // API. Although this targeting is inherited by child resources, + // **inherited targeting of this type will not be retrieveable**. // "TARGETING_TYPE_YOUTUBE_CHANNEL" - Target ads to a specific YouTube - // channel. + // channel. Targeting of this type cannot be created or updated using + // the API. Although this targeting is inherited by child resources, + // **inherited targeting of this type will not be retrieveable**. // "TARGETING_TYPE_SESSION_POSITION" - Target ads to a serve it in a - // certain position of a session. Only supported for the AdGroup of - // YouTube Programmatic Reservation line item. + // certain position of a session. Only supported for Ad Group resources + // under YouTube Programmatic Reservation line items. Targeting of this + // type cannot be created or updated using the API. TargetingType string `json:"targetingType,omitempty"` // UserRewardedContentDetails: User rewarded content details. @@ -17414,7 +17486,7 @@ func (s *VideoAdSequenceStep) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// VideoDiscoveryAd: The details for video discovery ad. +// VideoDiscoveryAd: Details for a video discovery ad. type VideoDiscoveryAd struct { // Description1: First text line for the ad. Description1 string `json:"description1,omitempty"` @@ -17422,10 +17494,10 @@ type VideoDiscoveryAd struct { // Description2: Second text line for the ad. Description2 string `json:"description2,omitempty"` - // Headline: The headline of the video discovery ad. + // Headline: The headline of ad. Headline string `json:"headline,omitempty"` - // Thumbnail: Thumbnail image to use in the ad. + // Thumbnail: Thumbnail image used in the ad. // // Possible values: // "THUMBNAIL_UNSPECIFIED" - Unknown or unspecified. @@ -17436,7 +17508,7 @@ type VideoDiscoveryAd struct { // "THUMBNAIL_3" - Thumbnail 3, generated from the video. Thumbnail string `json:"thumbnail,omitempty"` - // Video: The YouTube video which the ad wants to promote. + // Video: The YouTube video the ad promotes. Video *YoutubeVideoDetails `json:"video,omitempty"` // ForceSendFields is a list of field names (e.g. "Description1") to @@ -17462,51 +17534,50 @@ func (s *VideoDiscoveryAd) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// VideoPerformanceAd: The details for video performance ad. +// VideoPerformanceAd: Details for a video performance ad. type VideoPerformanceAd struct { - // ActionButtonLabels: The list of text assets which show on the + // ActionButtonLabels: The list of text assets shown on the // call-to-action button. ActionButtonLabels []string `json:"actionButtonLabels,omitempty"` - // CompanionBanners: The list of companion banners of this ad. + // CompanionBanners: The list of companion banners used by this ad. CompanionBanners []*ImageAsset `json:"companionBanners,omitempty"` // CustomParameters: The custom parameters to pass custom values to - // tracking url template. + // tracking URL template. CustomParameters map[string]string `json:"customParameters,omitempty"` - // Descriptions: The list of descriptions which show on the - // call-to-action banner. + // Descriptions: The list of descriptions shown on the call-to-action + // banner. Descriptions []string `json:"descriptions,omitempty"` // DisplayUrlBreadcrumb1: The first piece after the domain in the - // display url. + // display URL. DisplayUrlBreadcrumb1 string `json:"displayUrlBreadcrumb1,omitempty"` // DisplayUrlBreadcrumb2: The second piece after the domain in the - // display url. + // display URL. DisplayUrlBreadcrumb2 string `json:"displayUrlBreadcrumb2,omitempty"` - // Domain: The domain of the display url + // Domain: The domain of the display URL. Domain string `json:"domain,omitempty"` // FinalUrl: The URL address of the webpage that people reach after they // click the ad. FinalUrl string `json:"finalUrl,omitempty"` - // Headlines: The list of headlines which show on the call-to-action - // banner. + // Headlines: The list of headlines shown on the call-to-action banner. Headlines []string `json:"headlines,omitempty"` - // LongHeadlines: The list of lone headlines which show on the - // call-to-action banner. + // LongHeadlines: The list of lone headlines shown on the call-to-action + // banner. LongHeadlines []string `json:"longHeadlines,omitempty"` - // TrackingUrl: The URL address which is loaded in background for - // tracking purpose. + // TrackingUrl: The URL address loaded in the background for tracking + // purposes. TrackingUrl string `json:"trackingUrl,omitempty"` - // Videos: The list of YouTube video assets in this ad. + // Videos: The list of YouTube video assets used by this ad. Videos []*YoutubeVideoDetails `json:"videos,omitempty"` // ForceSendFields is a list of field names (e.g. "ActionButtonLabels") @@ -17743,7 +17814,7 @@ func (s *ViewabilityTargetingOptionDetails) MarshalJSON() ([]byte, error) { // YoutubeAdGroup: A single YouTube ad group associated with a YouTube // and Partners line item. type YoutubeAdGroup struct { - // AdGroupFormat: The format of the ad group. + // AdGroupFormat: The format of the ads in the ad group. // // Possible values: // "YOUTUBE_AND_PARTNERS_AD_GROUP_FORMAT_UNSPECIFIED" - Format value @@ -17762,8 +17833,8 @@ type YoutubeAdGroup struct { // "YOUTUBE_AND_PARTNERS_AD_GROUP_FORMAT_REACH" - [Effective reach ad // groups] (https://support.google.com/displayvideo/answer/9173684), // including in-stream and bumper ads. - // "YOUTUBE_AND_PARTNERS_AD_GROUP_FORMAT_MASTHEAD" - Video Masthead - // that is surfaced on the top slot on the YouTube homepage. + // "YOUTUBE_AND_PARTNERS_AD_GROUP_FORMAT_MASTHEAD" - Masthead Ad that + // is surfaced on the top slot on the YouTube homepage. AdGroupFormat string `json:"adGroupFormat,omitempty"` // AdGroupId: The unique ID of the ad group. Assigned by the system. @@ -17773,7 +17844,7 @@ type YoutubeAdGroup struct { // to. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // BiddingStrategy: The bidding strategy of the ad group. + // BiddingStrategy: The bidding strategy used by the ad group. BiddingStrategy *YoutubeAndPartnersBiddingStrategy `json:"biddingStrategy,omitempty"` // DisplayName: The display name of the ad group. Must be UTF-8 encoded @@ -17808,8 +17879,7 @@ type YoutubeAdGroup struct { // Name: The resource name of the ad group. Name string `json:"name,omitempty"` - // ProductFeedData: The data to represent the product feed in this ad - // group. + // ProductFeedData: The settings of the product feed in this ad group. ProductFeedData *ProductFeedData `json:"productFeedData,omitempty"` // TargetingExpansion: The targeting expansion @@ -17818,7 +17888,8 @@ type YoutubeAdGroup struct { // list targeting is assigned to the ad group. TargetingExpansion *TargetingExpansionConfig `json:"targetingExpansion,omitempty"` - // YoutubeAdIds: The IDs of the YouTubeAds associated with the ad group. + // YoutubeAdIds: The IDs of the youtube_ad_group_ad resources associated + // with the ad group. YoutubeAdIds googleapi.Int64s `json:"youtubeAdIds,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -17848,41 +17919,39 @@ func (s *YoutubeAdGroup) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// YoutubeAdGroupAd: A single YouTube ad group ad associated with a -// YouTube ad group. +// YoutubeAdGroupAd: A single ad associated with a YouTube ad group. type YoutubeAdGroupAd struct { - // AdGroupAdId: The unique ID of the ad group ad. Assigned by the - // system. + // AdGroupAdId: The unique ID of the ad. Assigned by the system. AdGroupAdId int64 `json:"adGroupAdId,omitempty,string"` - // AdGroupId: The unique ID of the ad group that the ad group ad belongs - // to. + // AdGroupId: The unique ID of the ad group that the ad belongs to. AdGroupId int64 `json:"adGroupId,omitempty,string"` - // AdUrls: The list of ad urls. + // AdUrls: List of URLs used by the ad. AdUrls []*AdUrl `json:"adUrls,omitempty"` - // AdvertiserId: The unique ID of the advertiser the ad group ad belongs - // to. + // AdvertiserId: The unique ID of the advertiser the ad belongs to. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // AudioAd: Audio ad for reach purpose. details - // (https://support.google.com/displayvideo/answer/6274216) + // AudioAd: Details of an audio ad + // (//support.google.com/displayvideo/answer/6274216) used for reach + // marketing objectives. AudioAd *AudioAd `json:"audioAd,omitempty"` - // BumperAd: Non-skippable short video ad for reach purpose and video - // length equal to or less than 6 seconds. details - // (https://support.google.com/displayvideo/answer/6274216) + // BumperAd: Details of a non-skippable short video ad + // (//support.google.com/displayvideo/answer/6274216), equal to or less + // than 6 seconds, used for reach. BumperAd *BumperAd `json:"bumperAd,omitempty"` - // DisplayName: The display name of the ad group ad. Must be UTF-8 - // encoded with a maximum size of 255 bytes. + // DisplayName: The display name of the ad. Must be UTF-8 encoded with a + // maximum size of 255 bytes. DisplayName string `json:"displayName,omitempty"` - // DisplayVideoSourceAd: The ad sourcing DV360 creative. + // DisplayVideoSourceAd: Details of an ad sourced from a Display & Video + // 360 creative. DisplayVideoSourceAd *DisplayVideoSourceAd `json:"displayVideoSourceAd,omitempty"` - // EntityStatus: The entity status of the ad group ad. + // EntityStatus: The entity status of the ad. // // Possible values: // "ENTITY_STATUS_UNSPECIFIED" - Default value when status is not @@ -17900,31 +17969,31 @@ type YoutubeAdGroupAd struct { // for deletion. EntityStatus string `json:"entityStatus,omitempty"` - // InStreamAd: Skippable in-stream ad after 5 seconds for brand - // awareness or reach marketing objectives. details - // (https://support.google.com/displayvideo/answer/6274216) + // InStreamAd: Details of an in-stream ad skippable after 5 seconds + // (//support.google.com/displayvideo/answer/6274216), used for brand + // awareness or reach marketing objectives. InStreamAd *InStreamAd `json:"inStreamAd,omitempty"` - // MastheadAd: The ad which shows on YouTube homepage. details - // (https://support.google.com/google-ads/answer/9709826) + // MastheadAd: Details of an ad served on the YouTube Home feed + // (//support.google.com/google-ads/answer/9709826). MastheadAd *MastheadAd `json:"mastheadAd,omitempty"` - // Name: The resource name of the ad group ad. + // Name: The resource name of the ad. Name string `json:"name,omitempty"` - // NonSkippableAd: Non-skippable short in-stream ad for reach marketing - // objectives, and video length is between 6 and 15 seconds. details - // (https://support.google.com/displayvideo/answer/6274216) + // NonSkippableAd: Details of a non-skippable short in-stream video ad + // (//support.google.com/displayvideo/answer/6274216), between 6 and 15 + // seconds, used for reach marketing objectives. NonSkippableAd *NonSkippableAd `json:"nonSkippableAd,omitempty"` - // VideoDiscoverAd: An ad which shows in places of discovery to promote - // a video. details - // (https://support.google.com/displayvideo/answer/6274216) + // VideoDiscoverAd: Details of an ad promoting a video + // (//support.google.com/displayvideo/answer/6274216) that shows in + // places of discovery. VideoDiscoverAd *VideoDiscoveryAd `json:"videoDiscoverAd,omitempty"` - // VideoPerformanceAd: The ad to drive actions to the business, service - // or product. details - // (https://support.google.com/google-ads/answer/10147229) + // VideoPerformanceAd: Details of an ad used in a video action campaign + // (//support.google.com/google-ads/answer/10147229) to drive actions to + // the business, service or product. VideoPerformanceAd *VideoPerformanceAd `json:"videoPerformanceAd,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -18313,9 +18382,9 @@ func (s *YoutubeVideoAssignedTargetingOptionDetails) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// YoutubeVideoDetails: Details of the YouTube video. +// YoutubeVideoDetails: Details of a YouTube video. type YoutubeVideoDetails struct { - // Id: The ID which can be searched on YouTube webpage. + // Id: The YouTube video ID which can be searched on YouTube webpage. Id string `json:"id,omitempty"` // UnavailableReason: The reason why the video data is not available. @@ -21345,9 +21414,9 @@ func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsGetCall) Do(o // "Target ads in an Open Measurement enabled inventory.", // "Target ads to a specific audio content type.", // "Target ads to a specific content genre.", - // "Target ads to a specific YouTube video.", - // "Target ads to a specific YouTube channel.", - // "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + // "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." // ], // "location": "path", // "pattern": "^[^/]+$", @@ -21706,9 +21775,9 @@ func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall) Do( // "Target ads in an Open Measurement enabled inventory.", // "Target ads to a specific audio content type.", // "Target ads to a specific content genre.", - // "Target ads to a specific YouTube video.", - // "Target ads to a specific YouTube channel.", - // "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + // "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." // ], // "location": "path", // "pattern": "^[^/]+$", @@ -25725,9 +25794,9 @@ func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsCreateC // "Target ads in an Open Measurement enabled inventory.", // "Target ads to a specific audio content type.", // "Target ads to a specific content genre.", - // "Target ads to a specific YouTube video.", - // "Target ads to a specific YouTube channel.", - // "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + // "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." // ], // "location": "path", // "pattern": "^[^/]+$", @@ -26024,9 +26093,9 @@ func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsDeleteC // "Target ads in an Open Measurement enabled inventory.", // "Target ads to a specific audio content type.", // "Target ads to a specific content genre.", - // "Target ads to a specific YouTube video.", - // "Target ads to a specific YouTube channel.", - // "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + // "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." // ], // "location": "path", // "pattern": "^[^/]+$", @@ -26069,7 +26138,39 @@ type AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsGetCall str // - insertionOrderId: The ID of the insertion order the assigned // targeting option belongs to. // - targetingType: Identifies the type of this assigned targeting -// option. +// option. Supported targeting types include: * +// `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * +// `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * +// `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * +// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * +// `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * +// `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * +// `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * +// `TARGETING_TYPE_CONTENT_GENRE` * +// `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * +// `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * +// `TARGETING_TYPE_CONTENT_STREAM_TYPE` * +// `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` +// - `TARGETING_TYPE_DEVICE_TYPE` * +// `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * +// `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * +// `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * +// `TARGETING_TYPE_HOUSEHOLD_INCOME` * +// `TARGETING_TYPE_INVENTORY_SOURCE` * +// `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` +// - `TARGETING_TYPE_LANGUAGE` * +// `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * +// `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * +// `TARGETING_TYPE_ON_SCREEN_POSITION` * +// `TARGETING_TYPE_OPERATING_SYSTEM` * +// `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * +// `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * +// `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * +// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * +// `TARGETING_TYPE_SUB_EXCHANGE` * +// `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * +// `TARGETING_TYPE_USER_REWARDED_CONTENT` * +// `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`. func (r *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsService) Get(advertiserId int64, insertionOrderId int64, targetingType string, assignedTargetingOptionId string) *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsGetCall { c := &AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -26216,7 +26317,7 @@ func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsGetCall // "type": "string" // }, // "targetingType": { - // "description": "Required. Identifies the type of this assigned targeting option.", + // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`", // "enum": [ // "TARGETING_TYPE_UNSPECIFIED", // "TARGETING_TYPE_CHANNEL", @@ -26315,9 +26416,9 @@ func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsGetCall // "Target ads in an Open Measurement enabled inventory.", // "Target ads to a specific audio content type.", // "Target ads to a specific content genre.", - // "Target ads to a specific YouTube video.", - // "Target ads to a specific YouTube channel.", - // "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + // "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." // ], // "location": "path", // "pattern": "^[^/]+$", @@ -26356,7 +26457,39 @@ type AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCall st // - insertionOrderId: The ID of the insertion order to list assigned // targeting options for. // - targetingType: Identifies the type of assigned targeting options to -// list. +// list. Supported targeting types include: * +// `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * +// `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * +// `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * +// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * +// `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * +// `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * +// `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * +// `TARGETING_TYPE_CONTENT_GENRE` * +// `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * +// `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * +// `TARGETING_TYPE_CONTENT_STREAM_TYPE` * +// `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` +// - `TARGETING_TYPE_DEVICE_TYPE` * +// `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * +// `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * +// `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * +// `TARGETING_TYPE_HOUSEHOLD_INCOME` * +// `TARGETING_TYPE_INVENTORY_SOURCE` * +// `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` +// - `TARGETING_TYPE_LANGUAGE` * +// `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * +// `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * +// `TARGETING_TYPE_ON_SCREEN_POSITION` * +// `TARGETING_TYPE_OPERATING_SYSTEM` * +// `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * +// `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * +// `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * +// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * +// `TARGETING_TYPE_SUB_EXCHANGE` * +// `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * +// `TARGETING_TYPE_USER_REWARDED_CONTENT` * +// `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`. func (r *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsService) List(advertiserId int64, insertionOrderId int64, targetingType string) *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCall { c := &AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -26562,7 +26695,7 @@ func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCal // "type": "string" // }, // "targetingType": { - // "description": "Required. Identifies the type of assigned targeting options to list.", + // "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`", // "enum": [ // "TARGETING_TYPE_UNSPECIFIED", // "TARGETING_TYPE_CHANNEL", @@ -26661,9 +26794,9 @@ func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCal // "Target ads in an Open Measurement enabled inventory.", // "Target ads to a specific audio content type.", // "Target ads to a specific content genre.", - // "Target ads to a specific YouTube video.", - // "Target ads to a specific YouTube channel.", - // "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + // "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." // ], // "location": "path", // "pattern": "^[^/]+$", @@ -27326,7 +27459,7 @@ func (c *AdvertisersLineItemsBulkListAssignedTargetingOptionsCall) OrderBy(order // PageSize sets the optional parameter "pageSize": Requested page size. // The size must be an integer between `1` and `5000`. If unspecified, -// the default is '5000'. Returns error code `INVALID_ARGUMENT` if an +// the default is `5000`. Returns error code `INVALID_ARGUMENT` if an // invalid value is specified. func (c *AdvertisersLineItemsBulkListAssignedTargetingOptionsCall) PageSize(pageSize int64) *AdvertisersLineItemsBulkListAssignedTargetingOptionsCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) @@ -27478,7 +27611,7 @@ func (c *AdvertisersLineItemsBulkListAssignedTargetingOptionsCall) Do(opts ...go // "type": "string" // }, // "pageSize": { - // "description": "Requested page size. The size must be an integer between `1` and `5000`. If unspecified, the default is '5000'. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", + // "description": "Requested page size. The size must be an integer between `1` and `5000`. If unspecified, the default is `5000`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", // "format": "int32", // "location": "query", // "type": "integer" @@ -28886,7 +29019,39 @@ type AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsCreateCall struct // - lineItemId: The ID of the line item the assigned targeting option // will belong to. // - targetingType: Identifies the type of this assigned targeting -// option. +// option. Supported targeting types include: * +// `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * +// `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * +// `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * +// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * +// `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * +// `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * +// `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * +// `TARGETING_TYPE_CONTENT_GENRE` * +// `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * +// `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * +// `TARGETING_TYPE_CONTENT_STREAM_TYPE` * +// `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` +// - `TARGETING_TYPE_DEVICE_TYPE` * +// `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * +// `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * +// `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * +// `TARGETING_TYPE_HOUSEHOLD_INCOME` * +// `TARGETING_TYPE_INVENTORY_SOURCE` * +// `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` +// - `TARGETING_TYPE_LANGUAGE` * +// `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * +// `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * +// `TARGETING_TYPE_ON_SCREEN_POSITION` * +// `TARGETING_TYPE_OPERATING_SYSTEM` * +// `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * +// `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * +// `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * +// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * +// `TARGETING_TYPE_SUB_EXCHANGE` * +// `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * +// `TARGETING_TYPE_USER_REWARDED_CONTENT` * +// `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`. func (r *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsService) Create(advertiserId int64, lineItemId int64, targetingType string, assignedtargetingoption *AssignedTargetingOption) *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsCreateCall { c := &AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -29016,7 +29181,7 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsCreateCall) D // "type": "string" // }, // "targetingType": { - // "description": "Required. Identifies the type of this assigned targeting option.", + // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`", // "enum": [ // "TARGETING_TYPE_UNSPECIFIED", // "TARGETING_TYPE_CHANNEL", @@ -29115,9 +29280,9 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsCreateCall) D // "Target ads in an Open Measurement enabled inventory.", // "Target ads to a specific audio content type.", // "Target ads to a specific content genre.", - // "Target ads to a specific YouTube video.", - // "Target ads to a specific YouTube channel.", - // "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + // "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." // ], // "location": "path", // "pattern": "^[^/]+$", @@ -29164,7 +29329,39 @@ type AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsDeleteCall struct // - lineItemId: The ID of the line item the assigned targeting option // belongs to. // - targetingType: Identifies the type of this assigned targeting -// option. +// option. Supported targeting types include: * +// `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * +// `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * +// `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * +// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * +// `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * +// `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * +// `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * +// `TARGETING_TYPE_CONTENT_GENRE` * +// `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * +// `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * +// `TARGETING_TYPE_CONTENT_STREAM_TYPE` * +// `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` +// - `TARGETING_TYPE_DEVICE_TYPE` * +// `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * +// `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * +// `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * +// `TARGETING_TYPE_HOUSEHOLD_INCOME` * +// `TARGETING_TYPE_INVENTORY_SOURCE` * +// `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` +// - `TARGETING_TYPE_LANGUAGE` * +// `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * +// `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * +// `TARGETING_TYPE_ON_SCREEN_POSITION` * +// `TARGETING_TYPE_OPERATING_SYSTEM` * +// `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * +// `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * +// `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * +// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * +// `TARGETING_TYPE_SUB_EXCHANGE` * +// `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * +// `TARGETING_TYPE_USER_REWARDED_CONTENT` * +// `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`. func (r *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsService) Delete(advertiserId int64, lineItemId int64, targetingType string, assignedTargetingOptionId string) *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsDeleteCall { c := &AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -29298,7 +29495,7 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsDeleteCall) D // "type": "string" // }, // "targetingType": { - // "description": "Required. Identifies the type of this assigned targeting option.", + // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`", // "enum": [ // "TARGETING_TYPE_UNSPECIFIED", // "TARGETING_TYPE_CHANNEL", @@ -29397,9 +29594,9 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsDeleteCall) D // "Target ads in an Open Measurement enabled inventory.", // "Target ads to a specific audio content type.", // "Target ads to a specific content genre.", - // "Target ads to a specific YouTube video.", - // "Target ads to a specific YouTube channel.", - // "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + // "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." // ], // "location": "path", // "pattern": "^[^/]+$", @@ -29441,7 +29638,43 @@ type AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsGetCall struct { // - lineItemId: The ID of the line item the assigned targeting option // belongs to. // - targetingType: Identifies the type of this assigned targeting -// option. +// option. Supported targeting types include: * +// `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * +// `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * +// `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * +// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * +// `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * +// `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * +// `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * +// `TARGETING_TYPE_CONTENT_GENRE` * +// `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * +// `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * +// `TARGETING_TYPE_CONTENT_STREAM_TYPE` * +// `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` +// - `TARGETING_TYPE_DEVICE_TYPE` * +// `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * +// `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * +// `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * +// `TARGETING_TYPE_HOUSEHOLD_INCOME` * +// `TARGETING_TYPE_INVENTORY_SOURCE` * +// `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` +// - `TARGETING_TYPE_LANGUAGE` * +// `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * +// `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * +// `TARGETING_TYPE_ON_SCREEN_POSITION` * +// `TARGETING_TYPE_OPERATING_SYSTEM` * +// `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * +// `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * +// `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * +// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * +// `TARGETING_TYPE_SUB_EXCHANGE` * +// `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * +// `TARGETING_TYPE_USER_REWARDED_CONTENT` * +// `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY` * +// `TARGETING_TYPE_YOUTUBE_CHANNEL` (only for +// `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items) * +// `TARGETING_TYPE_YOUTUBE_VIDEO` (only for +// `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items). func (r *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsService) Get(advertiserId int64, lineItemId int64, targetingType string, assignedTargetingOptionId string) *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsGetCall { c := &AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -29588,7 +29821,7 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsGetCall) Do(o // "type": "string" // }, // "targetingType": { - // "description": "Required. Identifies the type of this assigned targeting option.", + // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY` * `TARGETING_TYPE_YOUTUBE_CHANNEL` (only for `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items) * `TARGETING_TYPE_YOUTUBE_VIDEO` (only for `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items)", // "enum": [ // "TARGETING_TYPE_UNSPECIFIED", // "TARGETING_TYPE_CHANNEL", @@ -29687,9 +29920,9 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsGetCall) Do(o // "Target ads in an Open Measurement enabled inventory.", // "Target ads to a specific audio content type.", // "Target ads to a specific content genre.", - // "Target ads to a specific YouTube video.", - // "Target ads to a specific YouTube channel.", - // "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + // "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." // ], // "location": "path", // "pattern": "^[^/]+$", @@ -29727,7 +29960,43 @@ type AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall struct { // - lineItemId: The ID of the line item to list assigned targeting // options for. // - targetingType: Identifies the type of assigned targeting options to -// list. +// list. Supported targeting types include: * +// `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * +// `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * +// `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * +// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * +// `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * +// `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * +// `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * +// `TARGETING_TYPE_CONTENT_GENRE` * +// `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * +// `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * +// `TARGETING_TYPE_CONTENT_STREAM_TYPE` * +// `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` +// - `TARGETING_TYPE_DEVICE_TYPE` * +// `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * +// `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * +// `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * +// `TARGETING_TYPE_HOUSEHOLD_INCOME` * +// `TARGETING_TYPE_INVENTORY_SOURCE` * +// `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` +// - `TARGETING_TYPE_LANGUAGE` * +// `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * +// `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * +// `TARGETING_TYPE_ON_SCREEN_POSITION` * +// `TARGETING_TYPE_OPERATING_SYSTEM` * +// `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * +// `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * +// `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * +// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * +// `TARGETING_TYPE_SUB_EXCHANGE` * +// `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * +// `TARGETING_TYPE_USER_REWARDED_CONTENT` * +// `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY` * +// `TARGETING_TYPE_YOUTUBE_CHANNEL` (only for +// `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items) * +// `TARGETING_TYPE_YOUTUBE_VIDEO` (only for +// `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items). func (r *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsService) List(advertiserId int64, lineItemId int64, targetingType string) *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall { c := &AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -29933,7 +30202,7 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall) Do( // "type": "string" // }, // "targetingType": { - // "description": "Required. Identifies the type of assigned targeting options to list.", + // "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY` * `TARGETING_TYPE_YOUTUBE_CHANNEL` (only for `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items) * `TARGETING_TYPE_YOUTUBE_VIDEO` (only for `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items)", // "enum": [ // "TARGETING_TYPE_UNSPECIFIED", // "TARGETING_TYPE_CHANNEL", @@ -30032,9 +30301,9 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall) Do( // "Target ads in an Open Measurement enabled inventory.", // "Target ads to a specific audio content type.", // "Target ads to a specific content genre.", - // "Target ads to a specific YouTube video.", - // "Target ads to a specific YouTube channel.", - // "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + // "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." // ], // "location": "path", // "pattern": "^[^/]+$", @@ -34479,9 +34748,9 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsCreateCall) Do(opts .. // "Target ads in an Open Measurement enabled inventory.", // "Target ads to a specific audio content type.", // "Target ads to a specific content genre.", - // "Target ads to a specific YouTube video.", - // "Target ads to a specific YouTube channel.", - // "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + // "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." // ], // "location": "path", // "pattern": "^[^/]+$", @@ -34746,9 +35015,9 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsDeleteCall) Do(opts .. // "Target ads in an Open Measurement enabled inventory.", // "Target ads to a specific audio content type.", // "Target ads to a specific content genre.", - // "Target ads to a specific YouTube video.", - // "Target ads to a specific YouTube channel.", - // "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + // "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." // ], // "location": "path", // "pattern": "^[^/]+$", @@ -34790,7 +35059,8 @@ type AdvertisersTargetingTypesAssignedTargetingOptionsGetCall struct { // option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * // `TARGETING_TYPE_OMID` * -// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`. +// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * +// `TARGETING_TYPE_YOUTUBE_VIDEO` * `TARGETING_TYPE_YOUTUBE_CHANNEL`. func (r *AdvertisersTargetingTypesAssignedTargetingOptionsService) Get(advertiserId int64, targetingType string, assignedTargetingOptionId string) *AdvertisersTargetingTypesAssignedTargetingOptionsGetCall { c := &AdvertisersTargetingTypesAssignedTargetingOptionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -34926,7 +35196,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsGetCall) Do(opts ...go // "type": "string" // }, // "targetingType": { - // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`", + // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_YOUTUBE_VIDEO` * `TARGETING_TYPE_YOUTUBE_CHANNEL`", // "enum": [ // "TARGETING_TYPE_UNSPECIFIED", // "TARGETING_TYPE_CHANNEL", @@ -35025,9 +35295,9 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsGetCall) Do(opts ...go // "Target ads in an Open Measurement enabled inventory.", // "Target ads to a specific audio content type.", // "Target ads to a specific content genre.", - // "Target ads to a specific YouTube video.", - // "Target ads to a specific YouTube channel.", - // "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + // "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." // ], // "location": "path", // "pattern": "^[^/]+$", @@ -35065,7 +35335,8 @@ type AdvertisersTargetingTypesAssignedTargetingOptionsListCall struct { // list. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * // `TARGETING_TYPE_OMID` * -// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`. +// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * +// `TARGETING_TYPE_YOUTUBE_VIDEO` * `TARGETING_TYPE_YOUTUBE_CHANNEL`. func (r *AdvertisersTargetingTypesAssignedTargetingOptionsService) List(advertiserId int64, targetingType string) *AdvertisersTargetingTypesAssignedTargetingOptionsListCall { c := &AdvertisersTargetingTypesAssignedTargetingOptionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -35257,7 +35528,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsListCall) Do(opts ...g // "type": "string" // }, // "targetingType": { - // "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`", + // "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_YOUTUBE_VIDEO` * `TARGETING_TYPE_YOUTUBE_CHANNEL`", // "enum": [ // "TARGETING_TYPE_UNSPECIFIED", // "TARGETING_TYPE_CHANNEL", @@ -35356,9 +35627,9 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsListCall) Do(opts ...g // "Target ads in an Open Measurement enabled inventory.", // "Target ads to a specific audio content type.", // "Target ads to a specific content genre.", - // "Target ads to a specific YouTube video.", - // "Target ads to a specific YouTube channel.", - // "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + // "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." // ], // "location": "path", // "pattern": "^[^/]+$", @@ -35807,6 +36078,7 @@ type AdvertisersYoutubeAdGroupsBulkListAdGroupAssignedTargetingOptionsCall struc // BulkListAdGroupAssignedTargetingOptions: Lists assigned targeting // options for multiple YouTube ad groups across targeting types. +// Inherieted assigned targeting options are not included. // // - advertiserId: The ID of the advertiser the line items belongs to. func (r *AdvertisersYoutubeAdGroupsService) BulkListAdGroupAssignedTargetingOptions(advertiserId int64) *AdvertisersYoutubeAdGroupsBulkListAdGroupAssignedTargetingOptionsCall { @@ -35843,7 +36115,7 @@ func (c *AdvertisersYoutubeAdGroupsBulkListAdGroupAssignedTargetingOptionsCall) // PageSize sets the optional parameter "pageSize": Requested page size. // The size must be an integer between `1` and `5000`. If unspecified, -// the default is '5000'. Returns error code `INVALID_ARGUMENT` if an +// the default is `5000`. Returns error code `INVALID_ARGUMENT` if an // invalid value is specified. func (c *AdvertisersYoutubeAdGroupsBulkListAdGroupAssignedTargetingOptionsCall) PageSize(pageSize int64) *AdvertisersYoutubeAdGroupsBulkListAdGroupAssignedTargetingOptionsCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) @@ -35975,7 +36247,7 @@ func (c *AdvertisersYoutubeAdGroupsBulkListAdGroupAssignedTargetingOptionsCall) } return ret, nil // { - // "description": "Lists assigned targeting options for multiple YouTube ad groups across targeting types.", + // "description": "Lists assigned targeting options for multiple YouTube ad groups across targeting types. Inherieted assigned targeting options are not included.", // "flatPath": "v2/advertisers/{advertisersId}/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions", // "httpMethod": "GET", // "id": "displayvideo.advertisers.youtubeAdGroups.bulkListAdGroupAssignedTargetingOptions", @@ -36002,7 +36274,7 @@ func (c *AdvertisersYoutubeAdGroupsBulkListAdGroupAssignedTargetingOptionsCall) // "type": "string" // }, // "pageSize": { - // "description": "Requested page size. The size must be an integer between `1` and `5000`. If unspecified, the default is '5000'. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", + // "description": "Requested page size. The size must be an integer between `1` and `5000`. If unspecified, the default is `5000`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", // "format": "int32", // "location": "query", // "type": "integer" @@ -36466,7 +36738,7 @@ type AdvertisersYoutubeAdGroupsTargetingTypesAssignedTargetingOptionsGetCall str } // Get: Gets a single targeting option assigned to a YouTube ad group. -// Inherited targeting is not included. +// Inherited assigned targeting options are not included. // // - advertiserId: The ID of the advertiser the ad group belongs to. // - assignedTargetingOptionId: An identifier unique to the targeting @@ -36474,12 +36746,12 @@ type AdvertisersYoutubeAdGroupsTargetingTypesAssignedTargetingOptionsGetCall str // option being requested. // - targetingType: Identifies the type of this assigned targeting // option. Supported targeting types include: * -// `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_AGE_RANGE` * +// `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * +// `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * +// `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_GENDER` * +// `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_KEYWORD` * // `TARGETING_TYPE_PARENTAL_STATUS` * -// `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_AUDIENCE_GROUP` -// - `TARGETING_TYPE_URL` * `TARGETING_TYPE_APP` * -// `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_KEYWORD` * -// `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_SESSION_POSITION` * +// `TARGETING_TYPE_SESSION_POSITION` * `TARGETING_TYPE_URL` * // `TARGETING_TYPE_YOUTUBE_CHANNEL` * `TARGETING_TYPE_YOUTUBE_VIDEO`. // - youtubeAdGroupId: The ID of the ad group the assigned targeting // option belongs to. @@ -36594,7 +36866,7 @@ func (c *AdvertisersYoutubeAdGroupsTargetingTypesAssignedTargetingOptionsGetCall } return ret, nil // { - // "description": "Gets a single targeting option assigned to a YouTube ad group. Inherited targeting is not included.", + // "description": "Gets a single targeting option assigned to a YouTube ad group. Inherited assigned targeting options are not included.", // "flatPath": "v2/advertisers/{advertisersId}/youtubeAdGroups/{youtubeAdGroupsId}/targetingTypes/{targetingTypesId}/assignedTargetingOptions/{assignedTargetingOptionsId}", // "httpMethod": "GET", // "id": "displayvideo.advertisers.youtubeAdGroups.targetingTypes.assignedTargetingOptions.get", @@ -36621,7 +36893,7 @@ func (c *AdvertisersYoutubeAdGroupsTargetingTypesAssignedTargetingOptionsGetCall // "type": "string" // }, // "targetingType": { - // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types include: * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_SESSION_POSITION` * `TARGETING_TYPE_YOUTUBE_CHANNEL` * `TARGETING_TYPE_YOUTUBE_VIDEO`", + // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_SESSION_POSITION` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_YOUTUBE_CHANNEL` * `TARGETING_TYPE_YOUTUBE_VIDEO`", // "enum": [ // "TARGETING_TYPE_UNSPECIFIED", // "TARGETING_TYPE_CHANNEL", @@ -36720,9 +36992,9 @@ func (c *AdvertisersYoutubeAdGroupsTargetingTypesAssignedTargetingOptionsGetCall // "Target ads in an Open Measurement enabled inventory.", // "Target ads to a specific audio content type.", // "Target ads to a specific content genre.", - // "Target ads to a specific YouTube video.", - // "Target ads to a specific YouTube channel.", - // "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + // "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." // ], // "location": "path", // "pattern": "^[^/]+$", @@ -36763,16 +37035,17 @@ type AdvertisersYoutubeAdGroupsTargetingTypesAssignedTargetingOptionsListCall st } // List: Lists the targeting options assigned to a YouTube ad group. -// Inherited targeting is not included. +// Inherited assigned targeting options are not included. // // - advertiserId: The ID of the advertiser the ad group belongs to. // - targetingType: Identifies the type of assigned targeting options to -// list. Supported targeting types include: * `TARGETING_TYPE_GENDER` -// - `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_PARENTAL_STATUS` * -// `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_AUDIENCE_GROUP` -// - `TARGETING_TYPE_URL` * `TARGETING_TYPE_APP` * -// `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_KEYWORD` * -// `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_SESSION_POSITION` * +// list. Supported targeting types include: * +// `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * +// `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * +// `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_GENDER` * +// `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_KEYWORD` * +// `TARGETING_TYPE_PARENTAL_STATUS` * +// `TARGETING_TYPE_SESSION_POSITION` * `TARGETING_TYPE_URL` * // `TARGETING_TYPE_YOUTUBE_CHANNEL` * `TARGETING_TYPE_YOUTUBE_VIDEO`. // - youtubeAdGroupId: The ID of the ad group to list assigned targeting // options for. @@ -36930,7 +37203,7 @@ func (c *AdvertisersYoutubeAdGroupsTargetingTypesAssignedTargetingOptionsListCal } return ret, nil // { - // "description": "Lists the targeting options assigned to a YouTube ad group. Inherited targeting is not included.", + // "description": "Lists the targeting options assigned to a YouTube ad group. Inherited assigned targeting options are not included.", // "flatPath": "v2/advertisers/{advertisersId}/youtubeAdGroups/{youtubeAdGroupsId}/targetingTypes/{targetingTypesId}/assignedTargetingOptions", // "httpMethod": "GET", // "id": "displayvideo.advertisers.youtubeAdGroups.targetingTypes.assignedTargetingOptions.list", @@ -36970,7 +37243,7 @@ func (c *AdvertisersYoutubeAdGroupsTargetingTypesAssignedTargetingOptionsListCal // "type": "string" // }, // "targetingType": { - // "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types include: * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_SESSION_POSITION` * `TARGETING_TYPE_YOUTUBE_CHANNEL` * `TARGETING_TYPE_YOUTUBE_VIDEO`", + // "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_SESSION_POSITION` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_YOUTUBE_CHANNEL` * `TARGETING_TYPE_YOUTUBE_VIDEO`", // "enum": [ // "TARGETING_TYPE_UNSPECIFIED", // "TARGETING_TYPE_CHANNEL", @@ -37069,9 +37342,9 @@ func (c *AdvertisersYoutubeAdGroupsTargetingTypesAssignedTargetingOptionsListCal // "Target ads in an Open Measurement enabled inventory.", // "Target ads to a specific audio content type.", // "Target ads to a specific content genre.", - // "Target ads to a specific YouTube video.", - // "Target ads to a specific YouTube channel.", - // "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + // "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." // ], // "location": "path", // "pattern": "^[^/]+$", @@ -47330,9 +47603,9 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsCreateCall) Do(opts ...go // "Target ads in an Open Measurement enabled inventory.", // "Target ads to a specific audio content type.", // "Target ads to a specific content genre.", - // "Target ads to a specific YouTube video.", - // "Target ads to a specific YouTube channel.", - // "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + // "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." // ], // "location": "path", // "pattern": "^[^/]+$", @@ -47594,9 +47867,9 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsDeleteCall) Do(opts ...go // "Target ads in an Open Measurement enabled inventory.", // "Target ads to a specific audio content type.", // "Target ads to a specific content genre.", - // "Target ads to a specific YouTube video.", - // "Target ads to a specific YouTube channel.", - // "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + // "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." // ], // "location": "path", // "pattern": "^[^/]+$", @@ -47870,9 +48143,9 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsGetCall) Do(opts ...googl // "Target ads in an Open Measurement enabled inventory.", // "Target ads to a specific audio content type.", // "Target ads to a specific content genre.", - // "Target ads to a specific YouTube video.", - // "Target ads to a specific YouTube channel.", - // "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + // "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." // ], // "location": "path", // "pattern": "^[^/]+$", @@ -48198,9 +48471,9 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsListCall) Do(opts ...goog // "Target ads in an Open Measurement enabled inventory.", // "Target ads to a specific audio content type.", // "Target ads to a specific content genre.", - // "Target ads to a specific YouTube video.", - // "Target ads to a specific YouTube channel.", - // "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + // "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." // ], // "location": "path", // "pattern": "^[^/]+$", @@ -48794,9 +49067,9 @@ func (c *TargetingTypesTargetingOptionsGetCall) Do(opts ...googleapi.CallOption) // "Target ads in an Open Measurement enabled inventory.", // "Target ads to a specific audio content type.", // "Target ads to a specific content genre.", - // "Target ads to a specific YouTube video.", - // "Target ads to a specific YouTube channel.", - // "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + // "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." // ], // "location": "path", // "pattern": "^[^/]+$", @@ -49145,9 +49418,9 @@ func (c *TargetingTypesTargetingOptionsListCall) Do(opts ...googleapi.CallOption // "Target ads in an Open Measurement enabled inventory.", // "Target ads to a specific audio content type.", // "Target ads to a specific content genre.", - // "Target ads to a specific YouTube video.", - // "Target ads to a specific YouTube channel.", - // "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + // "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." // ], // "location": "path", // "pattern": "^[^/]+$", @@ -49410,9 +49683,9 @@ func (c *TargetingTypesTargetingOptionsSearchCall) Do(opts ...googleapi.CallOpti // "Target ads in an Open Measurement enabled inventory.", // "Target ads to a specific audio content type.", // "Target ads to a specific content genre.", - // "Target ads to a specific YouTube video.", - // "Target ads to a specific YouTube channel.", - // "Target ads to a serve it in a certain position of a session. Only supported for the AdGroup of YouTube Programmatic Reservation line item." + // "Target ads to a specific YouTube video. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a specific YouTube channel. Targeting of this type cannot be created or updated using the API. Although this targeting is inherited by child resources, **inherited targeting of this type will not be retrieveable**.", + // "Target ads to a serve it in a certain position of a session. Only supported for Ad Group resources under YouTube Programmatic Reservation line items. Targeting of this type cannot be created or updated using the API." // ], // "location": "path", // "pattern": "^[^/]+$", diff --git a/dlp/v2/dlp-api.json b/dlp/v2/dlp-api.json index 7cb61ed3f71..016b5ef4aad 100644 --- a/dlp/v2/dlp-api.json +++ b/dlp/v2/dlp-api.json @@ -3412,7 +3412,7 @@ } } }, - "revision": "20230115", + "revision": "20230206", "rootUrl": "https://dlp.googleapis.com/", "schemas": { "GooglePrivacyDlpV2Action": { @@ -5875,7 +5875,7 @@ }, "limits": { "$ref": "GooglePrivacyDlpV2FindingLimits", - "description": "Configuration to control the number of findings returned. This is not used for data profiling. When redacting sensitive data from images, finding limits don't apply. They can cause unexpected or inconsistent results, where only some data is redacted. Don't include finding limits in RedactImage requests. Otherwise, Cloud DLP returns an error." + "description": "Configuration to control the number of findings returned. This is not used for data profiling. When redacting sensitive data from images, finding limits don't apply. They can cause unexpected or inconsistent results, where only some data is redacted. Don't include finding limits in RedactImage requests. Otherwise, Cloud DLP returns an error. When set within `InspectJobConfig`, the specified maximum values aren't hard limits. If an inspection job reaches these limits, the job ends gradually, not abruptly. Therefore, the actual number of findings that Cloud DLP returns can be multiple times higher than these maximum values." }, "minLikelihood": { "description": "Only returns findings equal or above this threshold. The default is POSSIBLE. See https://cloud.google.com/dlp/docs/likelihood to learn more.", diff --git a/dlp/v2/dlp-gen.go b/dlp/v2/dlp-gen.go index 15ee110795f..a32f1bf55a4 100644 --- a/dlp/v2/dlp-gen.go +++ b/dlp/v2/dlp-gen.go @@ -4838,7 +4838,11 @@ type GooglePrivacyDlpV2InspectConfig struct { // from images, finding limits don't apply. They can cause unexpected or // inconsistent results, where only some data is redacted. Don't include // finding limits in RedactImage requests. Otherwise, Cloud DLP returns - // an error. + // an error. When set within `InspectJobConfig`, the specified maximum + // values aren't hard limits. If an inspection job reaches these limits, + // the job ends gradually, not abruptly. Therefore, the actual number of + // findings that Cloud DLP returns can be multiple times higher than + // these maximum values. Limits *GooglePrivacyDlpV2FindingLimits `json:"limits,omitempty"` // MinLikelihood: Only returns findings equal or above this threshold. diff --git a/documentai/v1/documentai-api.json b/documentai/v1/documentai-api.json index 23fda7df92c..0605015ef30 100644 --- a/documentai/v1/documentai-api.json +++ b/documentai/v1/documentai-api.json @@ -1042,7 +1042,7 @@ } } }, - "revision": "20230129", + "revision": "20230202", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -1296,10 +1296,6 @@ "revisionRef": { "$ref": "GoogleCloudDocumentaiUiv1beta3RevisionRef", "description": "Points to a specific revision of the document if set." - }, - "revisionReference": { - "$ref": "GoogleCloudDocumentaiUiv1beta3RevisionReference", - "description": "Points to a specific revision of the document if set." } }, "type": "object" @@ -1666,35 +1662,6 @@ }, "type": "object" }, - "GoogleCloudDocumentaiUiv1beta3RevisionReference": { - "description": "The revision reference specifies which revision on the document to read.", - "id": "GoogleCloudDocumentaiUiv1beta3RevisionReference", - "properties": { - "latestProcessorVersion": { - "description": "Reads the revision generated by the processor version.", - "type": "string" - }, - "revisionCase": { - "description": "Reads the revision by the predefined case.", - "enum": [ - "REVISION_CASE_UNSPECIFIED", - "LATEST_HUMAN_REVIEW", - "LATEST_TIMESTAMP" - ], - "enumDescriptions": [ - "Unspecified case, fallback to read the LATEST_HUMAN_REVIEW.", - "The latest revision made by a human.", - "The latest revision based on timestamp." - ], - "type": "string" - }, - "revisionId": { - "description": "Reads the revision given by the id.", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata": { "description": "The long running operation metadata for set default processor version method.", "id": "GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata", @@ -3032,7 +2999,7 @@ "type": "string" }, "createTime": { - "description": "The time that the revision was created.", + "description": "The time that the revision was created, internally generated by doc proto storage at the time of create.", "format": "google-datetime", "type": "string" }, @@ -3041,7 +3008,7 @@ "description": "Human Review information of this revision." }, "id": { - "description": "Id of the revision. Unique within the context of the document.", + "description": "Id of the revision, internally generated by doc proto storage. Unique within the context of the document.", "type": "string" }, "parent": { @@ -5262,7 +5229,7 @@ "type": "string" }, "createTime": { - "description": "The time that the revision was created.", + "description": "The time that the revision was created, internally generated by doc proto storage at the time of create.", "format": "google-datetime", "type": "string" }, @@ -5271,7 +5238,7 @@ "description": "Human Review information of this revision." }, "id": { - "description": "Id of the revision. Unique within the context of the document.", + "description": "Id of the revision, internally generated by doc proto storage. Unique within the context of the document.", "type": "string" }, "parent": { @@ -6565,7 +6532,7 @@ "type": "string" }, "createTime": { - "description": "The time that the revision was created.", + "description": "The time that the revision was created, internally generated by doc proto storage at the time of create.", "format": "google-datetime", "type": "string" }, @@ -6574,7 +6541,7 @@ "description": "Human Review information of this revision." }, "id": { - "description": "Id of the revision. Unique within the context of the document.", + "description": "Id of the revision, internally generated by doc proto storage. Unique within the context of the document.", "type": "string" }, "parent": { diff --git a/documentai/v1/documentai-gen.go b/documentai/v1/documentai-gen.go index 230d42a909a..367cffb8915 100644 --- a/documentai/v1/documentai-gen.go +++ b/documentai/v1/documentai-gen.go @@ -669,10 +669,6 @@ type GoogleCloudDocumentaiUiv1beta3DocumentId struct { // RevisionRef: Points to a specific revision of the document if set. RevisionRef *GoogleCloudDocumentaiUiv1beta3RevisionRef `json:"revisionRef,omitempty"` - // RevisionReference: Points to a specific revision of the document if - // set. - RevisionReference *GoogleCloudDocumentaiUiv1beta3RevisionReference `json:"revisionReference,omitempty"` - // ForceSendFields is a list of field names (e.g. "GcsManagedDocId") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -1368,50 +1364,6 @@ func (s *GoogleCloudDocumentaiUiv1beta3RevisionRef) MarshalJSON() ([]byte, error return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDocumentaiUiv1beta3RevisionReference: The revision -// reference specifies which revision on the document to read. -type GoogleCloudDocumentaiUiv1beta3RevisionReference struct { - // LatestProcessorVersion: Reads the revision generated by the processor - // version. - LatestProcessorVersion string `json:"latestProcessorVersion,omitempty"` - - // RevisionCase: Reads the revision by the predefined case. - // - // Possible values: - // "REVISION_CASE_UNSPECIFIED" - Unspecified case, fallback to read - // the LATEST_HUMAN_REVIEW. - // "LATEST_HUMAN_REVIEW" - The latest revision made by a human. - // "LATEST_TIMESTAMP" - The latest revision based on timestamp. - RevisionCase string `json:"revisionCase,omitempty"` - - // RevisionId: Reads the revision given by the id. - RevisionId string `json:"revisionId,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "LatestProcessorVersion") 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. "LatestProcessorVersion") - // 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 *GoogleCloudDocumentaiUiv1beta3RevisionReference) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDocumentaiUiv1beta3RevisionReference - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata: The // long running operation metadata for set default processor version // method. @@ -3604,13 +3556,15 @@ type GoogleCloudDocumentaiV1DocumentRevision struct { // that person. Agent string `json:"agent,omitempty"` - // CreateTime: The time that the revision was created. + // CreateTime: The time that the revision was created, internally + // generated by doc proto storage at the time of create. CreateTime string `json:"createTime,omitempty"` // HumanReview: Human Review information of this revision. HumanReview *GoogleCloudDocumentaiV1DocumentRevisionHumanReview `json:"humanReview,omitempty"` - // Id: Id of the revision. Unique within the context of the document. + // Id: Id of the revision, internally generated by doc proto storage. + // Unique within the context of the document. Id string `json:"id,omitempty"` // Parent: The revisions that this revision is based on. This can @@ -7382,13 +7336,15 @@ type GoogleCloudDocumentaiV1beta1DocumentRevision struct { // that person. Agent string `json:"agent,omitempty"` - // CreateTime: The time that the revision was created. + // CreateTime: The time that the revision was created, internally + // generated by doc proto storage at the time of create. CreateTime string `json:"createTime,omitempty"` // HumanReview: Human Review information of this revision. HumanReview *GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview `json:"humanReview,omitempty"` - // Id: Id of the revision. Unique within the context of the document. + // Id: Id of the revision, internally generated by doc proto storage. + // Unique within the context of the document. Id string `json:"id,omitempty"` // Parent: The revisions that this revision is based on. This can @@ -9552,13 +9508,15 @@ type GoogleCloudDocumentaiV1beta2DocumentRevision struct { // that person. Agent string `json:"agent,omitempty"` - // CreateTime: The time that the revision was created. + // CreateTime: The time that the revision was created, internally + // generated by doc proto storage at the time of create. CreateTime string `json:"createTime,omitempty"` // HumanReview: Human Review information of this revision. HumanReview *GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview `json:"humanReview,omitempty"` - // Id: Id of the revision. Unique within the context of the document. + // Id: Id of the revision, internally generated by doc proto storage. + // Unique within the context of the document. Id string `json:"id,omitempty"` // Parent: The revisions that this revision is based on. This can diff --git a/documentai/v1beta2/documentai-api.json b/documentai/v1beta2/documentai-api.json index 92a270f5fd0..082464f0780 100644 --- a/documentai/v1beta2/documentai-api.json +++ b/documentai/v1beta2/documentai-api.json @@ -292,7 +292,7 @@ } } }, - "revision": "20230129", + "revision": "20230202", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -546,10 +546,6 @@ "revisionRef": { "$ref": "GoogleCloudDocumentaiUiv1beta3RevisionRef", "description": "Points to a specific revision of the document if set." - }, - "revisionReference": { - "$ref": "GoogleCloudDocumentaiUiv1beta3RevisionReference", - "description": "Points to a specific revision of the document if set." } }, "type": "object" @@ -916,35 +912,6 @@ }, "type": "object" }, - "GoogleCloudDocumentaiUiv1beta3RevisionReference": { - "description": "The revision reference specifies which revision on the document to read.", - "id": "GoogleCloudDocumentaiUiv1beta3RevisionReference", - "properties": { - "latestProcessorVersion": { - "description": "Reads the revision generated by the processor version.", - "type": "string" - }, - "revisionCase": { - "description": "Reads the revision by the predefined case.", - "enum": [ - "REVISION_CASE_UNSPECIFIED", - "LATEST_HUMAN_REVIEW", - "LATEST_TIMESTAMP" - ], - "enumDescriptions": [ - "Unspecified case, fallback to read the LATEST_HUMAN_REVIEW.", - "The latest revision made by a human.", - "The latest revision based on timestamp." - ], - "type": "string" - }, - "revisionId": { - "description": "Reads the revision given by the id.", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata": { "description": "The long running operation metadata for set default processor version method.", "id": "GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata", @@ -2413,7 +2380,7 @@ "type": "string" }, "createTime": { - "description": "The time that the revision was created.", + "description": "The time that the revision was created, internally generated by doc proto storage at the time of create.", "format": "google-datetime", "type": "string" }, @@ -2422,7 +2389,7 @@ "description": "Human Review information of this revision." }, "id": { - "description": "Id of the revision. Unique within the context of the document.", + "description": "Id of the revision, internally generated by doc proto storage. Unique within the context of the document.", "type": "string" }, "parent": { @@ -3741,7 +3708,7 @@ "type": "string" }, "createTime": { - "description": "The time that the revision was created.", + "description": "The time that the revision was created, internally generated by doc proto storage at the time of create.", "format": "google-datetime", "type": "string" }, @@ -3750,7 +3717,7 @@ "description": "Human Review information of this revision." }, "id": { - "description": "Id of the revision. Unique within the context of the document.", + "description": "Id of the revision, internally generated by doc proto storage. Unique within the context of the document.", "type": "string" }, "parent": { diff --git a/documentai/v1beta2/documentai-gen.go b/documentai/v1beta2/documentai-gen.go index ded32d81a2f..90cd54d71b7 100644 --- a/documentai/v1beta2/documentai-gen.go +++ b/documentai/v1beta2/documentai-gen.go @@ -621,10 +621,6 @@ type GoogleCloudDocumentaiUiv1beta3DocumentId struct { // RevisionRef: Points to a specific revision of the document if set. RevisionRef *GoogleCloudDocumentaiUiv1beta3RevisionRef `json:"revisionRef,omitempty"` - // RevisionReference: Points to a specific revision of the document if - // set. - RevisionReference *GoogleCloudDocumentaiUiv1beta3RevisionReference `json:"revisionReference,omitempty"` - // ForceSendFields is a list of field names (e.g. "GcsManagedDocId") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -1320,50 +1316,6 @@ func (s *GoogleCloudDocumentaiUiv1beta3RevisionRef) MarshalJSON() ([]byte, error return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDocumentaiUiv1beta3RevisionReference: The revision -// reference specifies which revision on the document to read. -type GoogleCloudDocumentaiUiv1beta3RevisionReference struct { - // LatestProcessorVersion: Reads the revision generated by the processor - // version. - LatestProcessorVersion string `json:"latestProcessorVersion,omitempty"` - - // RevisionCase: Reads the revision by the predefined case. - // - // Possible values: - // "REVISION_CASE_UNSPECIFIED" - Unspecified case, fallback to read - // the LATEST_HUMAN_REVIEW. - // "LATEST_HUMAN_REVIEW" - The latest revision made by a human. - // "LATEST_TIMESTAMP" - The latest revision based on timestamp. - RevisionCase string `json:"revisionCase,omitempty"` - - // RevisionId: Reads the revision given by the id. - RevisionId string `json:"revisionId,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "LatestProcessorVersion") 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. "LatestProcessorVersion") - // 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 *GoogleCloudDocumentaiUiv1beta3RevisionReference) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDocumentaiUiv1beta3RevisionReference - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata: The // long running operation metadata for set default processor version // method. @@ -3815,13 +3767,15 @@ type GoogleCloudDocumentaiV1beta1DocumentRevision struct { // that person. Agent string `json:"agent,omitempty"` - // CreateTime: The time that the revision was created. + // CreateTime: The time that the revision was created, internally + // generated by doc proto storage at the time of create. CreateTime string `json:"createTime,omitempty"` // HumanReview: Human Review information of this revision. HumanReview *GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview `json:"humanReview,omitempty"` - // Id: Id of the revision. Unique within the context of the document. + // Id: Id of the revision, internally generated by doc proto storage. + // Unique within the context of the document. Id string `json:"id,omitempty"` // Parent: The revisions that this revision is based on. This can @@ -6049,13 +6003,15 @@ type GoogleCloudDocumentaiV1beta2DocumentRevision struct { // that person. Agent string `json:"agent,omitempty"` - // CreateTime: The time that the revision was created. + // CreateTime: The time that the revision was created, internally + // generated by doc proto storage at the time of create. CreateTime string `json:"createTime,omitempty"` // HumanReview: Human Review information of this revision. HumanReview *GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview `json:"humanReview,omitempty"` - // Id: Id of the revision. Unique within the context of the document. + // Id: Id of the revision, internally generated by doc proto storage. + // Unique within the context of the document. Id string `json:"id,omitempty"` // Parent: The revisions that this revision is based on. This can diff --git a/documentai/v1beta3/documentai-api.json b/documentai/v1beta3/documentai-api.json index b2e47dc0d38..e2c3007776a 100644 --- a/documentai/v1beta3/documentai-api.json +++ b/documentai/v1beta3/documentai-api.json @@ -984,7 +984,7 @@ } } }, - "revision": "20230129", + "revision": "20230202", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -1238,10 +1238,6 @@ "revisionRef": { "$ref": "GoogleCloudDocumentaiUiv1beta3RevisionRef", "description": "Points to a specific revision of the document if set." - }, - "revisionReference": { - "$ref": "GoogleCloudDocumentaiUiv1beta3RevisionReference", - "description": "Points to a specific revision of the document if set." } }, "type": "object" @@ -1608,35 +1604,6 @@ }, "type": "object" }, - "GoogleCloudDocumentaiUiv1beta3RevisionReference": { - "description": "The revision reference specifies which revision on the document to read.", - "id": "GoogleCloudDocumentaiUiv1beta3RevisionReference", - "properties": { - "latestProcessorVersion": { - "description": "Reads the revision generated by the processor version.", - "type": "string" - }, - "revisionCase": { - "description": "Reads the revision by the predefined case.", - "enum": [ - "REVISION_CASE_UNSPECIFIED", - "LATEST_HUMAN_REVIEW", - "LATEST_TIMESTAMP" - ], - "enumDescriptions": [ - "Unspecified case, fallback to read the LATEST_HUMAN_REVIEW.", - "The latest revision made by a human.", - "The latest revision based on timestamp." - ], - "type": "string" - }, - "revisionId": { - "description": "Reads the revision given by the id.", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata": { "description": "The long running operation metadata for set default processor version method.", "id": "GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata", @@ -3105,7 +3072,7 @@ "type": "string" }, "createTime": { - "description": "The time that the revision was created.", + "description": "The time that the revision was created, internally generated by doc proto storage at the time of create.", "format": "google-datetime", "type": "string" }, @@ -3114,7 +3081,7 @@ "description": "Human Review information of this revision." }, "id": { - "description": "Id of the revision. Unique within the context of the document.", + "description": "Id of the revision, internally generated by doc proto storage. Unique within the context of the document.", "type": "string" }, "parent": { @@ -4408,7 +4375,7 @@ "type": "string" }, "createTime": { - "description": "The time that the revision was created.", + "description": "The time that the revision was created, internally generated by doc proto storage at the time of create.", "format": "google-datetime", "type": "string" }, @@ -4417,7 +4384,7 @@ "description": "Human Review information of this revision." }, "id": { - "description": "Id of the revision. Unique within the context of the document.", + "description": "Id of the revision, internally generated by doc proto storage. Unique within the context of the document.", "type": "string" }, "parent": { @@ -5994,7 +5961,7 @@ "type": "string" }, "createTime": { - "description": "The time that the revision was created.", + "description": "The time that the revision was created, internally generated by doc proto storage at the time of create.", "format": "google-datetime", "type": "string" }, @@ -6003,7 +5970,7 @@ "description": "Human Review information of this revision." }, "id": { - "description": "Id of the revision. Unique within the context of the document.", + "description": "Id of the revision, internally generated by doc proto storage. Unique within the context of the document.", "type": "string" }, "parent": { diff --git a/documentai/v1beta3/documentai-gen.go b/documentai/v1beta3/documentai-gen.go index 455d845766d..e2b60863e9a 100644 --- a/documentai/v1beta3/documentai-gen.go +++ b/documentai/v1beta3/documentai-gen.go @@ -645,10 +645,6 @@ type GoogleCloudDocumentaiUiv1beta3DocumentId struct { // RevisionRef: Points to a specific revision of the document if set. RevisionRef *GoogleCloudDocumentaiUiv1beta3RevisionRef `json:"revisionRef,omitempty"` - // RevisionReference: Points to a specific revision of the document if - // set. - RevisionReference *GoogleCloudDocumentaiUiv1beta3RevisionReference `json:"revisionReference,omitempty"` - // ForceSendFields is a list of field names (e.g. "GcsManagedDocId") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -1344,50 +1340,6 @@ func (s *GoogleCloudDocumentaiUiv1beta3RevisionRef) MarshalJSON() ([]byte, error return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDocumentaiUiv1beta3RevisionReference: The revision -// reference specifies which revision on the document to read. -type GoogleCloudDocumentaiUiv1beta3RevisionReference struct { - // LatestProcessorVersion: Reads the revision generated by the processor - // version. - LatestProcessorVersion string `json:"latestProcessorVersion,omitempty"` - - // RevisionCase: Reads the revision by the predefined case. - // - // Possible values: - // "REVISION_CASE_UNSPECIFIED" - Unspecified case, fallback to read - // the LATEST_HUMAN_REVIEW. - // "LATEST_HUMAN_REVIEW" - The latest revision made by a human. - // "LATEST_TIMESTAMP" - The latest revision based on timestamp. - RevisionCase string `json:"revisionCase,omitempty"` - - // RevisionId: Reads the revision given by the id. - RevisionId string `json:"revisionId,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "LatestProcessorVersion") 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. "LatestProcessorVersion") - // 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 *GoogleCloudDocumentaiUiv1beta3RevisionReference) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDocumentaiUiv1beta3RevisionReference - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata: The // long running operation metadata for set default processor version // method. @@ -3839,13 +3791,15 @@ type GoogleCloudDocumentaiV1beta1DocumentRevision struct { // that person. Agent string `json:"agent,omitempty"` - // CreateTime: The time that the revision was created. + // CreateTime: The time that the revision was created, internally + // generated by doc proto storage at the time of create. CreateTime string `json:"createTime,omitempty"` // HumanReview: Human Review information of this revision. HumanReview *GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview `json:"humanReview,omitempty"` - // Id: Id of the revision. Unique within the context of the document. + // Id: Id of the revision, internally generated by doc proto storage. + // Unique within the context of the document. Id string `json:"id,omitempty"` // Parent: The revisions that this revision is based on. This can @@ -6009,13 +5963,15 @@ type GoogleCloudDocumentaiV1beta2DocumentRevision struct { // that person. Agent string `json:"agent,omitempty"` - // CreateTime: The time that the revision was created. + // CreateTime: The time that the revision was created, internally + // generated by doc proto storage at the time of create. CreateTime string `json:"createTime,omitempty"` // HumanReview: Human Review information of this revision. HumanReview *GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview `json:"humanReview,omitempty"` - // Id: Id of the revision. Unique within the context of the document. + // Id: Id of the revision, internally generated by doc proto storage. + // Unique within the context of the document. Id string `json:"id,omitempty"` // Parent: The revisions that this revision is based on. This can @@ -8650,13 +8606,15 @@ type GoogleCloudDocumentaiV1beta3DocumentRevision struct { // that person. Agent string `json:"agent,omitempty"` - // CreateTime: The time that the revision was created. + // CreateTime: The time that the revision was created, internally + // generated by doc proto storage at the time of create. CreateTime string `json:"createTime,omitempty"` // HumanReview: Human Review information of this revision. HumanReview *GoogleCloudDocumentaiV1beta3DocumentRevisionHumanReview `json:"humanReview,omitempty"` - // Id: Id of the revision. Unique within the context of the document. + // Id: Id of the revision, internally generated by doc proto storage. + // Unique within the context of the document. Id string `json:"id,omitempty"` // Parent: The revisions that this revision is based on. This can diff --git a/drive/v2/drive-api.json b/drive/v2/drive-api.json index e55e50366eb..f235d6920e4 100644 --- a/drive/v2/drive-api.json +++ b/drive/v2/drive-api.json @@ -38,7 +38,7 @@ "description": "Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.", "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/drive/", - "etag": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/32GB2PNZ2lWba9qudN1uJMonks8\"", + "etag": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/S9Ey_-CHeSNYoyZsHdPBhdrnfUY\"", "icons": { "x16": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_16.png", "x32": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_32.png" @@ -3668,7 +3668,7 @@ } } }, - "revision": "20221023", + "revision": "20230206", "rootUrl": "https://www.googleapis.com/", "schemas": { "About": { @@ -5006,7 +5006,7 @@ "type": "string" }, "fileSize": { - "description": "The size of the file in bytes. This field is populated for files with content stored in Google Drive and for files in Docs Editors; it isn't populated for shortcut files.", + "description": "The size of the file's content in bytes. This field is populated for files with binary content stored in Google Drive and for Docs Editors files; it is not populated for shortcuts or folders.", "format": "int64", "type": "string" }, diff --git a/drive/v2/drive-gen.go b/drive/v2/drive-gen.go index 4d3dffba682..d28433a3aa4 100644 --- a/drive/v2/drive-gen.go +++ b/drive/v2/drive-gen.go @@ -2015,9 +2015,9 @@ type File struct { // Drive; it isn't populated for Docs Editors or shortcut files. FileExtension string `json:"fileExtension,omitempty"` - // FileSize: The size of the file in bytes. This field is populated for - // files with content stored in Google Drive and for files in Docs - // Editors; it isn't populated for shortcut files. + // FileSize: The size of the file's content in bytes. This field is + // populated for files with binary content stored in Google Drive and + // for Docs Editors files; it is not populated for shortcuts or folders. FileSize int64 `json:"fileSize,omitempty,string"` // FolderColorRgb: Folder color as an RGB hex string if the file is a diff --git a/drive/v3/drive-api.json b/drive/v3/drive-api.json index 8b634f2eed5..d65da9184f0 100644 --- a/drive/v3/drive-api.json +++ b/drive/v3/drive-api.json @@ -35,7 +35,7 @@ "description": "Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.", "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/drive/", - "etag": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/2TMpck7GTrbcyLtBRwI3Q7B24jA\"", + "etag": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/usHvhS2KEqa4qu-fvyF64hqv4W8\"", "icons": { "x16": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_16.png", "x32": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_32.png" @@ -2312,7 +2312,7 @@ } } }, - "revision": "20221219", + "revision": "20230206", "rootUrl": "https://www.googleapis.com/", "schemas": { "About": { @@ -3452,7 +3452,7 @@ "type": "object" }, "size": { - "description": "The size of the file's content in bytes. This is applicable to binary files in Google Drive and Google Docs files.", + "description": "The size of the file's content in bytes. This field is populated for files with binary content stored in Google Drive and for Docs Editors files; it is not populated for shortcuts or folders.", "format": "int64", "type": "string" }, diff --git a/drive/v3/drive-gen.go b/drive/v3/drive-gen.go index 2fc445a0ccd..06c0d311746 100644 --- a/drive/v3/drive-gen.go +++ b/drive/v3/drive-gen.go @@ -1416,8 +1416,9 @@ type File struct { // application/vnd.google-apps.shortcut. ShortcutDetails *FileShortcutDetails `json:"shortcutDetails,omitempty"` - // Size: The size of the file's content in bytes. This is applicable to - // binary files in Google Drive and Google Docs files. + // Size: The size of the file's content in bytes. This field is + // populated for files with binary content stored in Google Drive and + // for Docs Editors files; it is not populated for shortcuts or folders. Size int64 `json:"size,omitempty,string"` // Spaces: The list of spaces which contain the file. The currently diff --git a/driveactivity/v2/driveactivity-api.json b/driveactivity/v2/driveactivity-api.json index ec5ce2b08f1..cbd66b7bf83 100644 --- a/driveactivity/v2/driveactivity-api.json +++ b/driveactivity/v2/driveactivity-api.json @@ -132,7 +132,7 @@ } } }, - "revision": "20230110", + "revision": "20230207", "rootUrl": "https://driveactivity.googleapis.com/", "schemas": { "Action": { @@ -1127,14 +1127,16 @@ "SHARING_OUTSIDE_DOMAIN", "DIRECT_SHARING", "ITEM_DUPLICATION", - "DRIVE_FILE_STREAM" + "DRIVE_FILE_STREAM", + "FILE_ORGANIZER_CAN_SHARE_FOLDERS" ], "enumDescriptions": [ "The feature which changed restriction settings was not available.", "When restricted, this prevents items from being shared outside the domain.", "When restricted, this prevents direct sharing of individual items.", "When restricted, this prevents actions like copy, download, and print that might result in uncontrolled duplicates of items.", - "When restricted, this prevents use of Drive File Stream." + "When restricted, this prevents use of Drive File Stream.", + "When restricted, this limits sharing of folders to managers only." ], "type": "string" }, diff --git a/driveactivity/v2/driveactivity-gen.go b/driveactivity/v2/driveactivity-gen.go index d3074eb52b4..6d9454ad89a 100644 --- a/driveactivity/v2/driveactivity-gen.go +++ b/driveactivity/v2/driveactivity-gen.go @@ -1712,6 +1712,8 @@ type RestrictionChange struct { // duplicates of items. // "DRIVE_FILE_STREAM" - When restricted, this prevents use of Drive // File Stream. + // "FILE_ORGANIZER_CAN_SHARE_FOLDERS" - When restricted, this limits + // sharing of folders to managers only. Feature string `json:"feature,omitempty"` // NewRestriction: The restriction in place after the change. diff --git a/eventarc/v1/eventarc-api.json b/eventarc/v1/eventarc-api.json index 74810f9d982..b8a89554b1a 100644 --- a/eventarc/v1/eventarc-api.json +++ b/eventarc/v1/eventarc-api.json @@ -1197,7 +1197,7 @@ } } }, - "revision": "20230113", + "revision": "20230127", "rootUrl": "https://eventarc.googleapis.com/", "schemas": { "AuditConfig": { @@ -1257,7 +1257,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/eventarc/v1/eventarc-gen.go b/eventarc/v1/eventarc-gen.go index 3af5b26c6e5..95e0b8f4b5a 100644 --- a/eventarc/v1/eventarc-gen.go +++ b/eventarc/v1/eventarc-gen.go @@ -344,7 +344,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -361,9 +363,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. diff --git a/eventarc/v1beta1/eventarc-api.json b/eventarc/v1beta1/eventarc-api.json index 98a05dca338..5d3e5fbf9af 100644 --- a/eventarc/v1beta1/eventarc-api.json +++ b/eventarc/v1beta1/eventarc-api.json @@ -584,7 +584,7 @@ } } }, - "revision": "20230113", + "revision": "20230127", "rootUrl": "https://eventarc.googleapis.com/", "schemas": { "AuditConfig": { @@ -644,7 +644,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/eventarc/v1beta1/eventarc-gen.go b/eventarc/v1beta1/eventarc-gen.go index 9c8278fbec5..b22adc11f5a 100644 --- a/eventarc/v1beta1/eventarc-gen.go +++ b/eventarc/v1beta1/eventarc-gen.go @@ -308,7 +308,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -325,9 +327,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. diff --git a/firebase/v1beta1/firebase-api.json b/firebase/v1beta1/firebase-api.json index 57113aec0a9..f5d7966ea93 100644 --- a/firebase/v1beta1/firebase-api.json +++ b/firebase/v1beta1/firebase-api.json @@ -1320,7 +1320,7 @@ } } }, - "revision": "20230120", + "revision": "20230207", "rootUrl": "https://firebase.googleapis.com/", "schemas": { "AddFirebaseRequest": { @@ -1428,6 +1428,12 @@ "description": "This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding. Learn more about `etag` in Google's [AIP-154 standard](https://google.aip.dev/154#declarative-friendly-resources). This etag is strongly validated.", "type": "string" }, + "expireTime": { + "description": "Output only. Timestamp of when the App will be considered expired and cannot be undeleted. This value is only provided if the App is in the `DELETED` state.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, "name": { "description": "The resource name of the AndroidApp, in the format: projects/ PROJECT_IDENTIFIER/androidApps/APP_ID * PROJECT_IDENTIFIER: the parent Project's [`ProjectNumber`](../projects#FirebaseProject.FIELDS.project_number) ***(recommended)*** or its [`ProjectId`](../projects#FirebaseProject.FIELDS.project_id). Learn more about using project identifiers in Google's [AIP 2510 standard](https://google.aip.dev/cloud/2510). Note that the value for PROJECT_IDENTIFIER in any response body will be the `ProjectId`. * APP_ID: the globally unique, Firebase-assigned identifier for the App (see [`appId`](../projects.androidApps#AndroidApp.FIELDS.app_id)).", "type": "string" @@ -1549,6 +1555,12 @@ "description": "The user-assigned display name of the Firebase App.", "type": "string" }, + "expireTime": { + "description": "Output only. Timestamp of when the App will be considered expired and cannot be undeleted. This value is only provided if the App is in the `DELETED` state.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, "name": { "description": "The resource name of the Firebase App, in the format: projects/PROJECT_ID /iosApps/APP_ID or projects/PROJECT_ID/androidApps/APP_ID or projects/ PROJECT_ID/webApps/APP_ID", "type": "string" @@ -1678,6 +1690,12 @@ "description": "This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding. Learn more about `etag` in Google's [AIP-154 standard](https://google.aip.dev/154#declarative-friendly-resources). This etag is strongly validated.", "type": "string" }, + "expireTime": { + "description": "Output only. Timestamp of when the App will be considered expired and cannot be undeleted. This value is only provided if the App is in the `DELETED` state.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, "name": { "description": "The resource name of the IosApp, in the format: projects/PROJECT_IDENTIFIER /iosApps/APP_ID * PROJECT_IDENTIFIER: the parent Project's [`ProjectNumber`](../projects#FirebaseProject.FIELDS.project_number) ***(recommended)*** or its [`ProjectId`](../projects#FirebaseProject.FIELDS.project_id). Learn more about using project identifiers in Google's [AIP 2510 standard](https://google.aip.dev/cloud/2510). Note that the value for PROJECT_IDENTIFIER in any response body will be the `ProjectId`. * APP_ID: the globally unique, Firebase-assigned identifier for the App (see [`appId`](../projects.iosApps#IosApp.FIELDS.app_id)).", "type": "string" @@ -2226,6 +2244,12 @@ "description": "This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding. Learn more about `etag` in Google's [AIP-154 standard](https://google.aip.dev/154#declarative-friendly-resources). This etag is strongly validated.", "type": "string" }, + "expireTime": { + "description": "Output only. Timestamp of when the App will be considered expired and cannot be undeleted. This value is only provided if the App is in the `DELETED` state.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, "name": { "description": "The resource name of the WebApp, in the format: projects/PROJECT_IDENTIFIER /webApps/APP_ID * PROJECT_IDENTIFIER: the parent Project's [`ProjectNumber`](../projects#FirebaseProject.FIELDS.project_number) ***(recommended)*** or its [`ProjectId`](../projects#FirebaseProject.FIELDS.project_id). Learn more about using project identifiers in Google's [AIP 2510 standard](https://google.aip.dev/cloud/2510). Note that the value for PROJECT_IDENTIFIER in any response body will be the `ProjectId`. * APP_ID: the globally unique, Firebase-assigned identifier for the App (see [`appId`](../projects.webApps#WebApp.FIELDS.app_id)).", "type": "string" diff --git a/firebase/v1beta1/firebase-gen.go b/firebase/v1beta1/firebase-gen.go index 7303893690d..8b9bbbe3c50 100644 --- a/firebase/v1beta1/firebase-gen.go +++ b/firebase/v1beta1/firebase-gen.go @@ -502,6 +502,11 @@ type AndroidApp struct { // etag is strongly validated. Etag string `json:"etag,omitempty"` + // ExpireTime: Output only. Timestamp of when the App will be considered + // expired and cannot be undeleted. This value is only provided if the + // App is in the `DELETED` state. + ExpireTime string `json:"expireTime,omitempty"` + // Name: The resource name of the AndroidApp, in the format: projects/ // PROJECT_IDENTIFIER/androidApps/APP_ID * PROJECT_IDENTIFIER: the // parent Project's `ProjectNumber` @@ -737,6 +742,11 @@ type FirebaseAppInfo struct { // DisplayName: The user-assigned display name of the Firebase App. DisplayName string `json:"displayName,omitempty"` + // ExpireTime: Output only. Timestamp of when the App will be considered + // expired and cannot be undeleted. This value is only provided if the + // App is in the `DELETED` state. + ExpireTime string `json:"expireTime,omitempty"` + // Name: The resource name of the Firebase App, in the format: // projects/PROJECT_ID /iosApps/APP_ID or // projects/PROJECT_ID/androidApps/APP_ID or projects/ @@ -936,6 +946,11 @@ type IosApp struct { // etag is strongly validated. Etag string `json:"etag,omitempty"` + // ExpireTime: Output only. Timestamp of when the App will be considered + // expired and cannot be undeleted. This value is only provided if the + // App is in the `DELETED` state. + ExpireTime string `json:"expireTime,omitempty"` + // Name: The resource name of the IosApp, in the format: // projects/PROJECT_IDENTIFIER /iosApps/APP_ID * PROJECT_IDENTIFIER: the // parent Project's `ProjectNumber` @@ -2050,6 +2065,11 @@ type WebApp struct { // etag is strongly validated. Etag string `json:"etag,omitempty"` + // ExpireTime: Output only. Timestamp of when the App will be considered + // expired and cannot be undeleted. This value is only provided if the + // App is in the `DELETED` state. + ExpireTime string `json:"expireTime,omitempty"` + // Name: The resource name of the WebApp, in the format: // projects/PROJECT_IDENTIFIER /webApps/APP_ID * PROJECT_IDENTIFIER: the // parent Project's `ProjectNumber` diff --git a/firebasehosting/v1beta1/firebasehosting-api.json b/firebasehosting/v1beta1/firebasehosting-api.json index 933b1f0f256..3ba8cfae45f 100644 --- a/firebasehosting/v1beta1/firebasehosting-api.json +++ b/firebasehosting/v1beta1/firebasehosting-api.json @@ -579,6 +579,34 @@ "https://www.googleapis.com/auth/firebase" ] }, + "get": { + "description": "Gets the specified release for a site or channel. When used to get a release for a site, this can get releases for both the default `live` channel and any active preview channels for the specified site.", + "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/channels/{channelsId}/releases/{releasesId}", + "httpMethod": "GET", + "id": "firebasehosting.projects.sites.channels.releases.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully-qualified resource name for the Hosting release, in either of the following formats: - sites/SITE_ID/channels/CHANNEL_ID/releases/RELEASE_ID - sites/SITE_ID/releases/RELEASE_ID ", + "location": "path", + "pattern": "^projects/[^/]+/sites/[^/]+/channels/[^/]+/releases/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Release" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/firebase", + "https://www.googleapis.com/auth/firebase.readonly" + ] + }, "list": { "description": "Lists the releases that have been created for the specified site or channel. When used to list releases for a site, this list includes releases for both the default `live` channel and any active preview channels for the specified site.", "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/channels/{channelsId}/releases", @@ -813,6 +841,34 @@ "https://www.googleapis.com/auth/firebase" ] }, + "get": { + "description": "Gets the specified release for a site or channel. When used to get a release for a site, this can get releases for both the default `live` channel and any active preview channels for the specified site.", + "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/releases/{releasesId}", + "httpMethod": "GET", + "id": "firebasehosting.projects.sites.releases.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully-qualified resource name for the Hosting release, in either of the following formats: - sites/SITE_ID/channels/CHANNEL_ID/releases/RELEASE_ID - sites/SITE_ID/releases/RELEASE_ID ", + "location": "path", + "pattern": "^projects/[^/]+/sites/[^/]+/releases/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Release" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/firebase", + "https://www.googleapis.com/auth/firebase.readonly" + ] + }, "list": { "description": "Lists the releases that have been created for the specified site or channel. When used to list releases for a site, this list includes releases for both the default `live` channel and any active preview channels for the specified site.", "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/releases", @@ -951,6 +1007,34 @@ "https://www.googleapis.com/auth/firebase" ] }, + "get": { + "description": "Get the specified version that has been created for the specified site. This can include versions that were created for the default `live` channel or for any active preview channels for the specified site.", + "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/versions/{versionsId}", + "httpMethod": "GET", + "id": "firebasehosting.projects.sites.versions.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully-qualified resource name for the version, in the format: sites/SITE_ID/versions/VERSION_ID", + "location": "path", + "pattern": "^projects/[^/]+/sites/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Version" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/firebase", + "https://www.googleapis.com/auth/firebase.readonly" + ] + }, "list": { "description": "Lists the versions that have been created for the specified site. This list includes versions for both the default `live` channel and any active preview channels for the specified site.", "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/versions", @@ -1394,6 +1478,34 @@ "https://www.googleapis.com/auth/firebase" ] }, + "get": { + "description": "Gets the specified release for a site or channel. When used to get a release for a site, this can get releases for both the default `live` channel and any active preview channels for the specified site.", + "flatPath": "v1beta1/sites/{sitesId}/channels/{channelsId}/releases/{releasesId}", + "httpMethod": "GET", + "id": "firebasehosting.sites.channels.releases.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully-qualified resource name for the Hosting release, in either of the following formats: - sites/SITE_ID/channels/CHANNEL_ID/releases/RELEASE_ID - sites/SITE_ID/releases/RELEASE_ID ", + "location": "path", + "pattern": "^sites/[^/]+/channels/[^/]+/releases/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Release" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/firebase", + "https://www.googleapis.com/auth/firebase.readonly" + ] + }, "list": { "description": "Lists the releases that have been created for the specified site or channel. When used to list releases for a site, this list includes releases for both the default `live` channel and any active preview channels for the specified site.", "flatPath": "v1beta1/sites/{sitesId}/channels/{channelsId}/releases", @@ -1628,6 +1740,34 @@ "https://www.googleapis.com/auth/firebase" ] }, + "get": { + "description": "Gets the specified release for a site or channel. When used to get a release for a site, this can get releases for both the default `live` channel and any active preview channels for the specified site.", + "flatPath": "v1beta1/sites/{sitesId}/releases/{releasesId}", + "httpMethod": "GET", + "id": "firebasehosting.sites.releases.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully-qualified resource name for the Hosting release, in either of the following formats: - sites/SITE_ID/channels/CHANNEL_ID/releases/RELEASE_ID - sites/SITE_ID/releases/RELEASE_ID ", + "location": "path", + "pattern": "^sites/[^/]+/releases/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Release" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/firebase", + "https://www.googleapis.com/auth/firebase.readonly" + ] + }, "list": { "description": "Lists the releases that have been created for the specified site or channel. When used to list releases for a site, this list includes releases for both the default `live` channel and any active preview channels for the specified site.", "flatPath": "v1beta1/sites/{sitesId}/releases", @@ -1766,6 +1906,34 @@ "https://www.googleapis.com/auth/firebase" ] }, + "get": { + "description": "Get the specified version that has been created for the specified site. This can include versions that were created for the default `live` channel or for any active preview channels for the specified site.", + "flatPath": "v1beta1/sites/{sitesId}/versions/{versionsId}", + "httpMethod": "GET", + "id": "firebasehosting.sites.versions.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The fully-qualified resource name for the version, in the format: sites/SITE_ID/versions/VERSION_ID", + "location": "path", + "pattern": "^sites/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Version" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/firebase", + "https://www.googleapis.com/auth/firebase.readonly" + ] + }, "list": { "description": "Lists the versions that have been created for the specified site. This list includes versions for both the default `live` channel and any active preview channels for the specified site.", "flatPath": "v1beta1/sites/{sitesId}/versions", @@ -1939,7 +2107,7 @@ } } }, - "revision": "20230107", + "revision": "20230208", "rootUrl": "https://firebasehosting.googleapis.com/", "schemas": { "ActingUser": { diff --git a/firebasehosting/v1beta1/firebasehosting-gen.go b/firebasehosting/v1beta1/firebasehosting-gen.go index 891f8006440..f2ad863a63a 100644 --- a/firebasehosting/v1beta1/firebasehosting-gen.go +++ b/firebasehosting/v1beta1/firebasehosting-gen.go @@ -4028,6 +4028,161 @@ func (c *ProjectsSitesChannelsReleasesCreateCall) Do(opts ...googleapi.CallOptio } +// method id "firebasehosting.projects.sites.channels.releases.get": + +type ProjectsSitesChannelsReleasesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the specified release for a site or channel. When used to +// get a release for a site, this can get releases for both the default +// `live` channel and any active preview channels for the specified +// site. +// +// - name: The fully-qualified resource name for the Hosting release, in +// either of the following formats: - +// sites/SITE_ID/channels/CHANNEL_ID/releases/RELEASE_ID - +// sites/SITE_ID/releases/RELEASE_ID. +func (r *ProjectsSitesChannelsReleasesService) Get(name string) *ProjectsSitesChannelsReleasesGetCall { + c := &ProjectsSitesChannelsReleasesGetCall{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 *ProjectsSitesChannelsReleasesGetCall) Fields(s ...googleapi.Field) *ProjectsSitesChannelsReleasesGetCall { + 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 *ProjectsSitesChannelsReleasesGetCall) IfNoneMatch(entityTag string) *ProjectsSitesChannelsReleasesGetCall { + 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 *ProjectsSitesChannelsReleasesGetCall) Context(ctx context.Context) *ProjectsSitesChannelsReleasesGetCall { + 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 *ProjectsSitesChannelsReleasesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsSitesChannelsReleasesGetCall) 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, "v1beta1/{+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 "firebasehosting.projects.sites.channels.releases.get" call. +// Exactly one of *Release or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Release.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 *ProjectsSitesChannelsReleasesGetCall) Do(opts ...googleapi.CallOption) (*Release, 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 := &Release{ + 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 the specified release for a site or channel. When used to get a release for a site, this can get releases for both the default `live` channel and any active preview channels for the specified site.", + // "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/channels/{channelsId}/releases/{releasesId}", + // "httpMethod": "GET", + // "id": "firebasehosting.projects.sites.channels.releases.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The fully-qualified resource name for the Hosting release, in either of the following formats: - sites/SITE_ID/channels/CHANNEL_ID/releases/RELEASE_ID - sites/SITE_ID/releases/RELEASE_ID ", + // "location": "path", + // "pattern": "^projects/[^/]+/sites/[^/]+/channels/[^/]+/releases/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Release" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/firebase", + // "https://www.googleapis.com/auth/firebase.readonly" + // ] + // } + +} + // method id "firebasehosting.projects.sites.channels.releases.list": type ProjectsSitesChannelsReleasesListCall struct { @@ -5159,52 +5314,36 @@ func (c *ProjectsSitesReleasesCreateCall) Do(opts ...googleapi.CallOption) (*Rel } -// method id "firebasehosting.projects.sites.releases.list": +// method id "firebasehosting.projects.sites.releases.get": -type ProjectsSitesReleasesListCall struct { +type ProjectsSitesReleasesGetCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists the releases that have been created for the specified -// site or channel. When used to list releases for a site, this list -// includes releases for both the default `live` channel and any active -// preview channels for the specified site. +// Get: Gets the specified release for a site or channel. When used to +// get a release for a site, this can get releases for both the default +// `live` channel and any active preview channels for the specified +// site. // -// - parent: The site or channel for which to list releases, in either -// of the following formats: - sites/SITE_ID - -// sites/SITE_ID/channels/CHANNEL_ID. -func (r *ProjectsSitesReleasesService) List(parent string) *ProjectsSitesReleasesListCall { - c := &ProjectsSitesReleasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of releases to return. The service may return a lower number if fewer -// releases exist than this maximum number. If unspecified, defaults to -// 100. -func (c *ProjectsSitesReleasesListCall) PageSize(pageSize int64) *ProjectsSitesReleasesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A token from a -// previous call to `releases.list` or `channels.releases.list` that -// tells the server where to resume listing. -func (c *ProjectsSitesReleasesListCall) PageToken(pageToken string) *ProjectsSitesReleasesListCall { - c.urlParams_.Set("pageToken", pageToken) +// - name: The fully-qualified resource name for the Hosting release, in +// either of the following formats: - +// sites/SITE_ID/channels/CHANNEL_ID/releases/RELEASE_ID - +// sites/SITE_ID/releases/RELEASE_ID. +func (r *ProjectsSitesReleasesService) Get(name string) *ProjectsSitesReleasesGetCall { + c := &ProjectsSitesReleasesGetCall{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 *ProjectsSitesReleasesListCall) Fields(s ...googleapi.Field) *ProjectsSitesReleasesListCall { +func (c *ProjectsSitesReleasesGetCall) Fields(s ...googleapi.Field) *ProjectsSitesReleasesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5214,7 +5353,7 @@ func (c *ProjectsSitesReleasesListCall) Fields(s ...googleapi.Field) *ProjectsSi // 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 *ProjectsSitesReleasesListCall) IfNoneMatch(entityTag string) *ProjectsSitesReleasesListCall { +func (c *ProjectsSitesReleasesGetCall) IfNoneMatch(entityTag string) *ProjectsSitesReleasesGetCall { c.ifNoneMatch_ = entityTag return c } @@ -5222,21 +5361,21 @@ func (c *ProjectsSitesReleasesListCall) IfNoneMatch(entityTag string) *ProjectsS // 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 *ProjectsSitesReleasesListCall) Context(ctx context.Context) *ProjectsSitesReleasesListCall { +func (c *ProjectsSitesReleasesGetCall) Context(ctx context.Context) *ProjectsSitesReleasesGetCall { 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 *ProjectsSitesReleasesListCall) Header() http.Header { +func (c *ProjectsSitesReleasesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsSitesReleasesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsSitesReleasesGetCall) 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_ { @@ -5249,7 +5388,7 @@ func (c *ProjectsSitesReleasesListCall) doRequest(alt string) (*http.Response, e var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/releases") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -5257,19 +5396,19 @@ func (c *ProjectsSitesReleasesListCall) doRequest(alt string) (*http.Response, e } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "firebasehosting.projects.sites.releases.list" call. -// Exactly one of *ListReleasesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListReleasesResponse.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 *ProjectsSitesReleasesListCall) Do(opts ...googleapi.CallOption) (*ListReleasesResponse, error) { +// Do executes the "firebasehosting.projects.sites.releases.get" call. +// Exactly one of *Release or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Release.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 *ProjectsSitesReleasesGetCall) Do(opts ...googleapi.CallOption) (*Release, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5288,7 +5427,7 @@ func (c *ProjectsSitesReleasesListCall) Do(opts ...googleapi.CallOption) (*ListR if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListReleasesResponse{ + ret := &Release{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5300,36 +5439,25 @@ func (c *ProjectsSitesReleasesListCall) Do(opts ...googleapi.CallOption) (*ListR } return ret, nil // { - // "description": "Lists the releases that have been created for the specified site or channel. When used to list releases for a site, this list includes releases for both the default `live` channel and any active preview channels for the specified site.", - // "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/releases", + // "description": "Gets the specified release for a site or channel. When used to get a release for a site, this can get releases for both the default `live` channel and any active preview channels for the specified site.", + // "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/releases/{releasesId}", // "httpMethod": "GET", - // "id": "firebasehosting.projects.sites.releases.list", + // "id": "firebasehosting.projects.sites.releases.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "pageSize": { - // "description": "The maximum number of releases to return. The service may return a lower number if fewer releases exist than this maximum number. If unspecified, defaults to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token from a previous call to `releases.list` or `channels.releases.list` that tells the server where to resume listing.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The site or channel for which to list releases, in either of the following formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID ", + // "name": { + // "description": "Required. The fully-qualified resource name for the Hosting release, in either of the following formats: - sites/SITE_ID/channels/CHANNEL_ID/releases/RELEASE_ID - sites/SITE_ID/releases/RELEASE_ID ", // "location": "path", - // "pattern": "^projects/[^/]+/sites/[^/]+$", + // "pattern": "^projects/[^/]+/sites/[^/]+/releases/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/releases", + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "ListReleasesResponse" + // "$ref": "Release" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -5341,43 +5469,225 @@ func (c *ProjectsSitesReleasesListCall) Do(opts ...googleapi.CallOption) (*ListR } -// 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 *ProjectsSitesReleasesListCall) Pages(ctx context.Context, f func(*ListReleasesResponse) 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 "firebasehosting.projects.sites.versions.clone": +// method id "firebasehosting.projects.sites.releases.list": -type ProjectsSitesVersionsCloneCall struct { - s *Service - parent string - cloneversionrequest *CloneVersionRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsSitesReleasesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Clone: Creates a new version on the specified target site using the -// content of the specified version. -// -// - parent: The target site for the cloned version, in the format: -// sites/ SITE_ID. +// List: Lists the releases that have been created for the specified +// site or channel. When used to list releases for a site, this list +// includes releases for both the default `live` channel and any active +// preview channels for the specified site. +// +// - parent: The site or channel for which to list releases, in either +// of the following formats: - sites/SITE_ID - +// sites/SITE_ID/channels/CHANNEL_ID. +func (r *ProjectsSitesReleasesService) List(parent string) *ProjectsSitesReleasesListCall { + c := &ProjectsSitesReleasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of releases to return. The service may return a lower number if fewer +// releases exist than this maximum number. If unspecified, defaults to +// 100. +func (c *ProjectsSitesReleasesListCall) PageSize(pageSize int64) *ProjectsSitesReleasesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token from a +// previous call to `releases.list` or `channels.releases.list` that +// tells the server where to resume listing. +func (c *ProjectsSitesReleasesListCall) PageToken(pageToken string) *ProjectsSitesReleasesListCall { + 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 *ProjectsSitesReleasesListCall) Fields(s ...googleapi.Field) *ProjectsSitesReleasesListCall { + 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 *ProjectsSitesReleasesListCall) IfNoneMatch(entityTag string) *ProjectsSitesReleasesListCall { + 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 *ProjectsSitesReleasesListCall) Context(ctx context.Context) *ProjectsSitesReleasesListCall { + 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 *ProjectsSitesReleasesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsSitesReleasesListCall) 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, "v1beta1/{+parent}/releases") + 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 "firebasehosting.projects.sites.releases.list" call. +// Exactly one of *ListReleasesResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListReleasesResponse.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 *ProjectsSitesReleasesListCall) Do(opts ...googleapi.CallOption) (*ListReleasesResponse, 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 := &ListReleasesResponse{ + 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 the releases that have been created for the specified site or channel. When used to list releases for a site, this list includes releases for both the default `live` channel and any active preview channels for the specified site.", + // "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/releases", + // "httpMethod": "GET", + // "id": "firebasehosting.projects.sites.releases.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of releases to return. The service may return a lower number if fewer releases exist than this maximum number. If unspecified, defaults to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A token from a previous call to `releases.list` or `channels.releases.list` that tells the server where to resume listing.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The site or channel for which to list releases, in either of the following formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID ", + // "location": "path", + // "pattern": "^projects/[^/]+/sites/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/releases", + // "response": { + // "$ref": "ListReleasesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/firebase", + // "https://www.googleapis.com/auth/firebase.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 *ProjectsSitesReleasesListCall) Pages(ctx context.Context, f func(*ListReleasesResponse) 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 "firebasehosting.projects.sites.versions.clone": + +type ProjectsSitesVersionsCloneCall struct { + s *Service + parent string + cloneversionrequest *CloneVersionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Clone: Creates a new version on the specified target site using the +// content of the specified version. +// +// - parent: The target site for the cloned version, in the format: +// sites/ SITE_ID. func (r *ProjectsSitesVersionsService) Clone(parent string, cloneversionrequest *CloneVersionRequest) *ProjectsSitesVersionsCloneCall { c := &ProjectsSitesVersionsCloneCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -5812,6 +6122,159 @@ func (c *ProjectsSitesVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*Emp } +// method id "firebasehosting.projects.sites.versions.get": + +type ProjectsSitesVersionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get the specified version that has been created for the +// specified site. This can include versions that were created for the +// default `live` channel or for any active preview channels for the +// specified site. +// +// - name: The fully-qualified resource name for the version, in the +// format: sites/SITE_ID/versions/VERSION_ID. +func (r *ProjectsSitesVersionsService) Get(name string) *ProjectsSitesVersionsGetCall { + c := &ProjectsSitesVersionsGetCall{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 *ProjectsSitesVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsSitesVersionsGetCall { + 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 *ProjectsSitesVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsSitesVersionsGetCall { + 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 *ProjectsSitesVersionsGetCall) Context(ctx context.Context) *ProjectsSitesVersionsGetCall { + 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 *ProjectsSitesVersionsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsSitesVersionsGetCall) 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, "v1beta1/{+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 "firebasehosting.projects.sites.versions.get" call. +// Exactly one of *Version or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Version.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 *ProjectsSitesVersionsGetCall) Do(opts ...googleapi.CallOption) (*Version, 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 := &Version{ + 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": "Get the specified version that has been created for the specified site. This can include versions that were created for the default `live` channel or for any active preview channels for the specified site.", + // "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/versions/{versionsId}", + // "httpMethod": "GET", + // "id": "firebasehosting.projects.sites.versions.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The fully-qualified resource name for the version, in the format: sites/SITE_ID/versions/VERSION_ID", + // "location": "path", + // "pattern": "^projects/[^/]+/sites/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Version" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/firebase", + // "https://www.googleapis.com/auth/firebase.readonly" + // ] + // } + +} + // method id "firebasehosting.projects.sites.versions.list": type ProjectsSitesVersionsListCall struct { @@ -7665,19 +8128,180 @@ func (c *SitesChannelsPatchCall) Do(opts ...googleapi.CallOption) (*Channel, err // "required": true, // "type": "string" // }, - // "updateMask": { - // "description": "A comma-separated list of fields to be updated in this request.", - // "format": "google-fieldmask", + // "updateMask": { + // "description": "A comma-separated list of fields to be updated in this request.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "Channel" + // }, + // "response": { + // "$ref": "Channel" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "firebasehosting.sites.channels.releases.create": + +type SitesChannelsReleasesCreateCall struct { + s *Service + parent string + release *Release + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new release, which makes the content of the +// specified version actively display on the appropriate URL(s). +// +// - parent: The site or channel to which the release belongs, in either +// of the following formats: - sites/SITE_ID - +// sites/SITE_ID/channels/CHANNEL_ID. +func (r *SitesChannelsReleasesService) Create(parent string, release *Release) *SitesChannelsReleasesCreateCall { + c := &SitesChannelsReleasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.release = release + return c +} + +// VersionName sets the optional parameter "versionName": The unique +// identifier for a version, in the format: sites/SITE_ID/versions/ +// VERSION_ID The SITE_ID in this version identifier must match the +// SITE_ID in the `parent` parameter. This query parameter must be empty +// if the `type` field in the request body is `SITE_DISABLE`. +func (c *SitesChannelsReleasesCreateCall) VersionName(versionName string) *SitesChannelsReleasesCreateCall { + c.urlParams_.Set("versionName", versionName) + 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 *SitesChannelsReleasesCreateCall) Fields(s ...googleapi.Field) *SitesChannelsReleasesCreateCall { + 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 *SitesChannelsReleasesCreateCall) Context(ctx context.Context) *SitesChannelsReleasesCreateCall { + 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 *SitesChannelsReleasesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *SitesChannelsReleasesCreateCall) 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.release) + 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, "v1beta1/{+parent}/releases") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebasehosting.sites.channels.releases.create" call. +// Exactly one of *Release or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Release.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 *SitesChannelsReleasesCreateCall) Do(opts ...googleapi.CallOption) (*Release, 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 := &Release{ + 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": "Creates a new release, which makes the content of the specified version actively display on the appropriate URL(s).", + // "flatPath": "v1beta1/sites/{sitesId}/channels/{channelsId}/releases", + // "httpMethod": "POST", + // "id": "firebasehosting.sites.channels.releases.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The site or channel to which the release belongs, in either of the following formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID", + // "location": "path", + // "pattern": "^sites/[^/]+/channels/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "versionName": { + // "description": " The unique identifier for a version, in the format: sites/SITE_ID/versions/ VERSION_ID The SITE_ID in this version identifier must match the SITE_ID in the `parent` parameter. This query parameter must be empty if the `type` field in the request body is `SITE_DISABLE`.", // "location": "query", // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+parent}/releases", // "request": { - // "$ref": "Channel" + // "$ref": "Release" // }, // "response": { - // "$ref": "Channel" + // "$ref": "Release" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -7687,101 +8311,101 @@ func (c *SitesChannelsPatchCall) Do(opts ...googleapi.CallOption) (*Channel, err } -// method id "firebasehosting.sites.channels.releases.create": +// method id "firebasehosting.sites.channels.releases.get": -type SitesChannelsReleasesCreateCall struct { - s *Service - parent string - release *Release - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type SitesChannelsReleasesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a new release, which makes the content of the -// specified version actively display on the appropriate URL(s). +// Get: Gets the specified release for a site or channel. When used to +// get a release for a site, this can get releases for both the default +// `live` channel and any active preview channels for the specified +// site. // -// - parent: The site or channel to which the release belongs, in either -// of the following formats: - sites/SITE_ID - -// sites/SITE_ID/channels/CHANNEL_ID. -func (r *SitesChannelsReleasesService) Create(parent string, release *Release) *SitesChannelsReleasesCreateCall { - c := &SitesChannelsReleasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.release = release - return c -} - -// VersionName sets the optional parameter "versionName": The unique -// identifier for a version, in the format: sites/SITE_ID/versions/ -// VERSION_ID The SITE_ID in this version identifier must match the -// SITE_ID in the `parent` parameter. This query parameter must be empty -// if the `type` field in the request body is `SITE_DISABLE`. -func (c *SitesChannelsReleasesCreateCall) VersionName(versionName string) *SitesChannelsReleasesCreateCall { - c.urlParams_.Set("versionName", versionName) +// - name: The fully-qualified resource name for the Hosting release, in +// either of the following formats: - +// sites/SITE_ID/channels/CHANNEL_ID/releases/RELEASE_ID - +// sites/SITE_ID/releases/RELEASE_ID. +func (r *SitesChannelsReleasesService) Get(name string) *SitesChannelsReleasesGetCall { + c := &SitesChannelsReleasesGetCall{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 *SitesChannelsReleasesCreateCall) Fields(s ...googleapi.Field) *SitesChannelsReleasesCreateCall { +func (c *SitesChannelsReleasesGetCall) Fields(s ...googleapi.Field) *SitesChannelsReleasesGetCall { 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 *SitesChannelsReleasesGetCall) IfNoneMatch(entityTag string) *SitesChannelsReleasesGetCall { + 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 *SitesChannelsReleasesCreateCall) Context(ctx context.Context) *SitesChannelsReleasesCreateCall { +func (c *SitesChannelsReleasesGetCall) Context(ctx context.Context) *SitesChannelsReleasesGetCall { 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 *SitesChannelsReleasesCreateCall) Header() http.Header { +func (c *SitesChannelsReleasesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *SitesChannelsReleasesCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *SitesChannelsReleasesGetCall) 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.release) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/releases") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + 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, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "firebasehosting.sites.channels.releases.create" call. +// Do executes the "firebasehosting.sites.channels.releases.get" call. // Exactly one of *Release or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either // *Release.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 *SitesChannelsReleasesCreateCall) Do(opts ...googleapi.CallOption) (*Release, error) { +func (c *SitesChannelsReleasesGetCall) Do(opts ...googleapi.CallOption) (*Release, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7812,37 +8436,31 @@ func (c *SitesChannelsReleasesCreateCall) Do(opts ...googleapi.CallOption) (*Rel } return ret, nil // { - // "description": "Creates a new release, which makes the content of the specified version actively display on the appropriate URL(s).", - // "flatPath": "v1beta1/sites/{sitesId}/channels/{channelsId}/releases", - // "httpMethod": "POST", - // "id": "firebasehosting.sites.channels.releases.create", + // "description": "Gets the specified release for a site or channel. When used to get a release for a site, this can get releases for both the default `live` channel and any active preview channels for the specified site.", + // "flatPath": "v1beta1/sites/{sitesId}/channels/{channelsId}/releases/{releasesId}", + // "httpMethod": "GET", + // "id": "firebasehosting.sites.channels.releases.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The site or channel to which the release belongs, in either of the following formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID", + // "name": { + // "description": "Required. The fully-qualified resource name for the Hosting release, in either of the following formats: - sites/SITE_ID/channels/CHANNEL_ID/releases/RELEASE_ID - sites/SITE_ID/releases/RELEASE_ID ", // "location": "path", - // "pattern": "^sites/[^/]+/channels/[^/]+$", + // "pattern": "^sites/[^/]+/channels/[^/]+/releases/[^/]+$", // "required": true, // "type": "string" - // }, - // "versionName": { - // "description": " The unique identifier for a version, in the format: sites/SITE_ID/versions/ VERSION_ID The SITE_ID in this version identifier must match the SITE_ID in the `parent` parameter. This query parameter must be empty if the `type` field in the request body is `SITE_DISABLE`.", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/releases", - // "request": { - // "$ref": "Release" - // }, + // "path": "v1beta1/{+name}", // "response": { // "$ref": "Release" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/firebase" + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/firebase", + // "https://www.googleapis.com/auth/firebase.readonly" // ] // } @@ -8756,7 +9374,163 @@ func (c *SitesDomainsUpdateCall) doRequest(alt string) (*http.Response, error) { // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. -func (c *SitesDomainsUpdateCall) Do(opts ...googleapi.CallOption) (*Domain, error) { +func (c *SitesDomainsUpdateCall) Do(opts ...googleapi.CallOption) (*Domain, 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 := &Domain{ + 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 the specified domain mapping, creating the mapping as if it does not exist.", + // "flatPath": "v1beta1/sites/{sitesId}/domains/{domainsId}", + // "httpMethod": "PUT", + // "id": "firebasehosting.sites.domains.update", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the domain association to update or create, if an association doesn't already exist.", + // "location": "path", + // "pattern": "^sites/[^/]+/domains/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "Domain" + // }, + // "response": { + // "$ref": "Domain" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "firebasehosting.sites.releases.create": + +type SitesReleasesCreateCall struct { + s *Service + parent string + release *Release + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new release, which makes the content of the +// specified version actively display on the appropriate URL(s). +// +// - parent: The site or channel to which the release belongs, in either +// of the following formats: - sites/SITE_ID - +// sites/SITE_ID/channels/CHANNEL_ID. +func (r *SitesReleasesService) Create(parent string, release *Release) *SitesReleasesCreateCall { + c := &SitesReleasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.release = release + return c +} + +// VersionName sets the optional parameter "versionName": The unique +// identifier for a version, in the format: sites/SITE_ID/versions/ +// VERSION_ID The SITE_ID in this version identifier must match the +// SITE_ID in the `parent` parameter. This query parameter must be empty +// if the `type` field in the request body is `SITE_DISABLE`. +func (c *SitesReleasesCreateCall) VersionName(versionName string) *SitesReleasesCreateCall { + c.urlParams_.Set("versionName", versionName) + 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 *SitesReleasesCreateCall) Fields(s ...googleapi.Field) *SitesReleasesCreateCall { + 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 *SitesReleasesCreateCall) Context(ctx context.Context) *SitesReleasesCreateCall { + 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 *SitesReleasesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *SitesReleasesCreateCall) 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.release) + 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, "v1beta1/{+parent}/releases") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebasehosting.sites.releases.create" call. +// Exactly one of *Release or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Release.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 *SitesReleasesCreateCall) Do(opts ...googleapi.CallOption) (*Release, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8775,7 +9549,7 @@ func (c *SitesDomainsUpdateCall) Do(opts ...googleapi.CallOption) (*Domain, erro if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Domain{ + ret := &Release{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8787,28 +9561,33 @@ func (c *SitesDomainsUpdateCall) Do(opts ...googleapi.CallOption) (*Domain, erro } return ret, nil // { - // "description": "Updates the specified domain mapping, creating the mapping as if it does not exist.", - // "flatPath": "v1beta1/sites/{sitesId}/domains/{domainsId}", - // "httpMethod": "PUT", - // "id": "firebasehosting.sites.domains.update", + // "description": "Creates a new release, which makes the content of the specified version actively display on the appropriate URL(s).", + // "flatPath": "v1beta1/sites/{sitesId}/releases", + // "httpMethod": "POST", + // "id": "firebasehosting.sites.releases.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the domain association to update or create, if an association doesn't already exist.", + // "parent": { + // "description": "Required. The site or channel to which the release belongs, in either of the following formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID", // "location": "path", - // "pattern": "^sites/[^/]+/domains/[^/]+$", + // "pattern": "^sites/[^/]+$", // "required": true, // "type": "string" + // }, + // "versionName": { + // "description": " The unique identifier for a version, in the format: sites/SITE_ID/versions/ VERSION_ID The SITE_ID in this version identifier must match the SITE_ID in the `parent` parameter. This query parameter must be empty if the `type` field in the request body is `SITE_DISABLE`.", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+parent}/releases", // "request": { - // "$ref": "Domain" + // "$ref": "Release" // }, // "response": { - // "$ref": "Domain" + // "$ref": "Release" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -8818,101 +9597,101 @@ func (c *SitesDomainsUpdateCall) Do(opts ...googleapi.CallOption) (*Domain, erro } -// method id "firebasehosting.sites.releases.create": +// method id "firebasehosting.sites.releases.get": -type SitesReleasesCreateCall struct { - s *Service - parent string - release *Release - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type SitesReleasesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a new release, which makes the content of the -// specified version actively display on the appropriate URL(s). +// Get: Gets the specified release for a site or channel. When used to +// get a release for a site, this can get releases for both the default +// `live` channel and any active preview channels for the specified +// site. // -// - parent: The site or channel to which the release belongs, in either -// of the following formats: - sites/SITE_ID - -// sites/SITE_ID/channels/CHANNEL_ID. -func (r *SitesReleasesService) Create(parent string, release *Release) *SitesReleasesCreateCall { - c := &SitesReleasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.release = release - return c -} - -// VersionName sets the optional parameter "versionName": The unique -// identifier for a version, in the format: sites/SITE_ID/versions/ -// VERSION_ID The SITE_ID in this version identifier must match the -// SITE_ID in the `parent` parameter. This query parameter must be empty -// if the `type` field in the request body is `SITE_DISABLE`. -func (c *SitesReleasesCreateCall) VersionName(versionName string) *SitesReleasesCreateCall { - c.urlParams_.Set("versionName", versionName) +// - name: The fully-qualified resource name for the Hosting release, in +// either of the following formats: - +// sites/SITE_ID/channels/CHANNEL_ID/releases/RELEASE_ID - +// sites/SITE_ID/releases/RELEASE_ID. +func (r *SitesReleasesService) Get(name string) *SitesReleasesGetCall { + c := &SitesReleasesGetCall{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 *SitesReleasesCreateCall) Fields(s ...googleapi.Field) *SitesReleasesCreateCall { +func (c *SitesReleasesGetCall) Fields(s ...googleapi.Field) *SitesReleasesGetCall { 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 *SitesReleasesGetCall) IfNoneMatch(entityTag string) *SitesReleasesGetCall { + 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 *SitesReleasesCreateCall) Context(ctx context.Context) *SitesReleasesCreateCall { +func (c *SitesReleasesGetCall) Context(ctx context.Context) *SitesReleasesGetCall { 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 *SitesReleasesCreateCall) Header() http.Header { +func (c *SitesReleasesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *SitesReleasesCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *SitesReleasesGetCall) 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.release) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/releases") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + 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, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "firebasehosting.sites.releases.create" call. +// Do executes the "firebasehosting.sites.releases.get" call. // Exactly one of *Release or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either // *Release.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 *SitesReleasesCreateCall) Do(opts ...googleapi.CallOption) (*Release, error) { +func (c *SitesReleasesGetCall) Do(opts ...googleapi.CallOption) (*Release, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8943,37 +9722,31 @@ func (c *SitesReleasesCreateCall) Do(opts ...googleapi.CallOption) (*Release, er } return ret, nil // { - // "description": "Creates a new release, which makes the content of the specified version actively display on the appropriate URL(s).", - // "flatPath": "v1beta1/sites/{sitesId}/releases", - // "httpMethod": "POST", - // "id": "firebasehosting.sites.releases.create", + // "description": "Gets the specified release for a site or channel. When used to get a release for a site, this can get releases for both the default `live` channel and any active preview channels for the specified site.", + // "flatPath": "v1beta1/sites/{sitesId}/releases/{releasesId}", + // "httpMethod": "GET", + // "id": "firebasehosting.sites.releases.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The site or channel to which the release belongs, in either of the following formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID", + // "name": { + // "description": "Required. The fully-qualified resource name for the Hosting release, in either of the following formats: - sites/SITE_ID/channels/CHANNEL_ID/releases/RELEASE_ID - sites/SITE_ID/releases/RELEASE_ID ", // "location": "path", - // "pattern": "^sites/[^/]+$", + // "pattern": "^sites/[^/]+/releases/[^/]+$", // "required": true, // "type": "string" - // }, - // "versionName": { - // "description": " The unique identifier for a version, in the format: sites/SITE_ID/versions/ VERSION_ID The SITE_ID in this version identifier must match the SITE_ID in the `parent` parameter. This query parameter must be empty if the `type` field in the request body is `SITE_DISABLE`.", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/releases", - // "request": { - // "$ref": "Release" - // }, + // "path": "v1beta1/{+name}", // "response": { // "$ref": "Release" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/firebase" + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/firebase", + // "https://www.googleapis.com/auth/firebase.readonly" // ] // } @@ -9632,6 +10405,159 @@ func (c *SitesVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, erro } +// method id "firebasehosting.sites.versions.get": + +type SitesVersionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get the specified version that has been created for the +// specified site. This can include versions that were created for the +// default `live` channel or for any active preview channels for the +// specified site. +// +// - name: The fully-qualified resource name for the version, in the +// format: sites/SITE_ID/versions/VERSION_ID. +func (r *SitesVersionsService) Get(name string) *SitesVersionsGetCall { + c := &SitesVersionsGetCall{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 *SitesVersionsGetCall) Fields(s ...googleapi.Field) *SitesVersionsGetCall { + 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 *SitesVersionsGetCall) IfNoneMatch(entityTag string) *SitesVersionsGetCall { + 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 *SitesVersionsGetCall) Context(ctx context.Context) *SitesVersionsGetCall { + 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 *SitesVersionsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *SitesVersionsGetCall) 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, "v1beta1/{+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 "firebasehosting.sites.versions.get" call. +// Exactly one of *Version or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Version.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 *SitesVersionsGetCall) Do(opts ...googleapi.CallOption) (*Version, 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 := &Version{ + 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": "Get the specified version that has been created for the specified site. This can include versions that were created for the default `live` channel or for any active preview channels for the specified site.", + // "flatPath": "v1beta1/sites/{sitesId}/versions/{versionsId}", + // "httpMethod": "GET", + // "id": "firebasehosting.sites.versions.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The fully-qualified resource name for the version, in the format: sites/SITE_ID/versions/VERSION_ID", + // "location": "path", + // "pattern": "^sites/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Version" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/firebase", + // "https://www.googleapis.com/auth/firebase.readonly" + // ] + // } + +} + // method id "firebasehosting.sites.versions.list": type SitesVersionsListCall struct { diff --git a/gameservices/v1/gameservices-api.json b/gameservices/v1/gameservices-api.json index a3503194403..4bd84e9704c 100644 --- a/gameservices/v1/gameservices-api.json +++ b/gameservices/v1/gameservices-api.json @@ -401,7 +401,7 @@ } } }, - "revision": "20220825", + "revision": "20230125", "rootUrl": "https://gameservices.googleapis.com/", "schemas": { "AuditConfig": { @@ -492,7 +492,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/gameservices/v1/gameservices-gen.go b/gameservices/v1/gameservices-gen.go index 8ecc96e7211..4fff9df9402 100644 --- a/gameservices/v1/gameservices-gen.go +++ b/gameservices/v1/gameservices-gen.go @@ -349,7 +349,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -366,9 +368,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. diff --git a/gkehub/v1/gkehub-api.json b/gkehub/v1/gkehub-api.json index e8d7ee21d1c..feeae00e3ab 100644 --- a/gkehub/v1/gkehub-api.json +++ b/gkehub/v1/gkehub-api.json @@ -665,7 +665,7 @@ "type": "string" }, "parent": { - "description": "Required. The parent (project and location) where the Memberships will be listed. Specified in the format `projects/*/locations/*`.", + "description": "Required. The parent (project and location) where the Memberships will be listed. Specified in the format `projects/*/locations/*`. `projects/*/locations/-` list memberships in all the regions.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, @@ -905,7 +905,7 @@ } } }, - "revision": "20230119", + "revision": "20230129", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceFeatureSpec": { @@ -1019,7 +1019,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, @@ -1682,6 +1682,27 @@ }, "type": "object" }, + "ConfigManagementPolicyControllerMigration": { + "description": "State for the migration of PolicyController from ACM -\u003e PoCo Hub.", + "id": "ConfigManagementPolicyControllerMigration", + "properties": { + "stage": { + "description": "Stage of the migration.", + "enum": [ + "STAGE_UNSPECIFIED", + "ACM_MANAGED", + "POCO_MANAGED" + ], + "enumDescriptions": [ + "Unknown state of migration.", + "ACM Hub/Operator manages policycontroller. No migration yet completed.", + "All migrations steps complete; Poco Hub now manages policycontroller." + ], + "type": "string" + } + }, + "type": "object" + }, "ConfigManagementPolicyControllerMonitoring": { "description": "PolicyControllerMonitoring specifies the backends Policy Controller should export metrics to. For example, to specify metrics should be exported to Cloud Monitoring and Prometheus, specify backends: [\"cloudmonitoring\", \"prometheus\"]", "id": "ConfigManagementPolicyControllerMonitoring", @@ -1714,6 +1735,10 @@ "$ref": "ConfigManagementGatekeeperDeploymentState", "description": "The state about the policy controller installation." }, + "migration": { + "$ref": "ConfigManagementPolicyControllerMigration", + "description": "Record state of ACM -\u003e PoCo Hub migration for this feature." + }, "version": { "$ref": "ConfigManagementPolicyControllerVersion", "description": "The version of Gatekeeper Policy Controller deployed." diff --git a/gkehub/v1/gkehub-gen.go b/gkehub/v1/gkehub-gen.go index 62f6c2f1222..6bd70bde341 100644 --- a/gkehub/v1/gkehub-gen.go +++ b/gkehub/v1/gkehub-gen.go @@ -445,7 +445,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -462,9 +464,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. @@ -1427,6 +1427,42 @@ func (s *ConfigManagementPolicyController) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ConfigManagementPolicyControllerMigration: State for the migration of +// PolicyController from ACM -> PoCo Hub. +type ConfigManagementPolicyControllerMigration struct { + // Stage: Stage of the migration. + // + // Possible values: + // "STAGE_UNSPECIFIED" - Unknown state of migration. + // "ACM_MANAGED" - ACM Hub/Operator manages policycontroller. No + // migration yet completed. + // "POCO_MANAGED" - All migrations steps complete; Poco Hub now + // manages policycontroller. + Stage string `json:"stage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Stage") 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. "Stage") 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 *ConfigManagementPolicyControllerMigration) MarshalJSON() ([]byte, error) { + type NoMethod ConfigManagementPolicyControllerMigration + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ConfigManagementPolicyControllerMonitoring: // PolicyControllerMonitoring specifies the backends Policy Controller // should export metrics to. For example, to specify metrics should be @@ -1472,6 +1508,10 @@ type ConfigManagementPolicyControllerState struct { // DeploymentState: The state about the policy controller installation. DeploymentState *ConfigManagementGatekeeperDeploymentState `json:"deploymentState,omitempty"` + // Migration: Record state of ACM -> PoCo Hub migration for this + // feature. + Migration *ConfigManagementPolicyControllerMigration `json:"migration,omitempty"` + // Version: The version of Gatekeeper Policy Controller deployed. Version *ConfigManagementPolicyControllerVersion `json:"version,omitempty"` @@ -6442,6 +6482,7 @@ type ProjectsLocationsMembershipsListCall struct { // // - parent: The parent (project and location) where the Memberships // will be listed. Specified in the format `projects/*/locations/*`. +// `projects/*/locations/-` list memberships in all the regions. func (r *ProjectsLocationsMembershipsService) List(parent string) *ProjectsLocationsMembershipsListCall { c := &ProjectsLocationsMembershipsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -6614,7 +6655,7 @@ func (c *ProjectsLocationsMembershipsListCall) Do(opts ...googleapi.CallOption) // "type": "string" // }, // "parent": { - // "description": "Required. The parent (project and location) where the Memberships will be listed. Specified in the format `projects/*/locations/*`.", + // "description": "Required. The parent (project and location) where the Memberships will be listed. Specified in the format `projects/*/locations/*`. `projects/*/locations/-` list memberships in all the regions.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, diff --git a/gkehub/v1alpha/gkehub-api.json b/gkehub/v1alpha/gkehub-api.json index a46c5437168..019aea89403 100644 --- a/gkehub/v1alpha/gkehub-api.json +++ b/gkehub/v1alpha/gkehub-api.json @@ -865,7 +865,7 @@ "type": "string" }, "parent": { - "description": "Required. The parent (project and location) where the Memberships will be listed. Specified in the format `projects/*/locations/*`.", + "description": "Required. The parent (project and location) where the Memberships will be listed. Specified in the format `projects/*/locations/*`. `projects/*/locations/-` list memberships in all the regions.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, @@ -1179,7 +1179,7 @@ } } }, - "revision": "20230119", + "revision": "20230129", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -1323,7 +1323,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, @@ -2103,6 +2103,27 @@ }, "type": "object" }, + "ConfigManagementPolicyControllerMigration": { + "description": "State for the migration of PolicyController from ACM -\u003e PoCo Hub.", + "id": "ConfigManagementPolicyControllerMigration", + "properties": { + "stage": { + "description": "Stage of the migration.", + "enum": [ + "STAGE_UNSPECIFIED", + "ACM_MANAGED", + "POCO_MANAGED" + ], + "enumDescriptions": [ + "Unknown state of migration.", + "ACM Hub/Operator manages policycontroller. No migration yet completed.", + "All migrations steps complete; Poco Hub now manages policycontroller." + ], + "type": "string" + } + }, + "type": "object" + }, "ConfigManagementPolicyControllerMonitoring": { "description": "PolicyControllerMonitoring specifies the backends Policy Controller should export metrics to. For example, to specify metrics should be exported to Cloud Monitoring and Prometheus, specify backends: [\"cloudmonitoring\", \"prometheus\"]", "id": "ConfigManagementPolicyControllerMonitoring", @@ -2135,6 +2156,10 @@ "$ref": "ConfigManagementGatekeeperDeploymentState", "description": "The state about the policy controller installation." }, + "migration": { + "$ref": "ConfigManagementPolicyControllerMigration", + "description": "Record state of ACM -\u003e PoCo Hub migration for this feature." + }, "version": { "$ref": "ConfigManagementPolicyControllerVersion", "description": "The version of Gatekeeper Policy Controller deployed." @@ -3494,6 +3519,18 @@ "format": "int64", "type": "string" }, + "constraintViolationLimit": { + "description": "The maximum number of audit violations to be stored in a constraint. If not set, the internal default (currently 20) will be used.", + "format": "int64", + "type": "string" + }, + "deploymentConfigs": { + "additionalProperties": { + "$ref": "PolicyControllerPolicyControllerDeploymentConfig" + }, + "description": "Map of deployment configs to deployments (“admission”, “audit”, “mutation”).", + "type": "object" + }, "exemptableNamespaces": { "description": "The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster.", "items": { @@ -3681,6 +3718,56 @@ }, "type": "object" }, + "PolicyControllerPolicyControllerDeploymentConfig": { + "description": "Deployment-specific configuration.", + "id": "PolicyControllerPolicyControllerDeploymentConfig", + "properties": { + "containerResources": { + "$ref": "PolicyControllerResourceRequirements", + "description": "Container resource requirements." + }, + "podAntiAffinity": { + "description": "Pod anti-affinity enablement.", + "type": "boolean" + }, + "replicaCount": { + "description": "Pod replica count.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "PolicyControllerResourceList": { + "description": "ResourceList contains container resource requirements.", + "id": "PolicyControllerResourceList", + "properties": { + "cpu": { + "description": "CPU requirement expressed in Kubernetes resource units.", + "type": "string" + }, + "memory": { + "description": "Memory requirement expressed in Kubernetes resource units.", + "type": "string" + } + }, + "type": "object" + }, + "PolicyControllerResourceRequirements": { + "description": "ResourceRequirements describes the compute resource requirements.", + "id": "PolicyControllerResourceRequirements", + "properties": { + "limits": { + "$ref": "PolicyControllerResourceList", + "description": "Limits describes the maximum amount of compute resources allowed for use by the running container." + }, + "requests": { + "$ref": "PolicyControllerResourceList", + "description": "Requests describes the amount of compute resources reserved for the container by the kube-scheduler." + } + }, + "type": "object" + }, "PolicyControllerTemplateLibraryConfig": { "description": "The config specifying which default library templates to install.", "id": "PolicyControllerTemplateLibraryConfig", diff --git a/gkehub/v1alpha/gkehub-gen.go b/gkehub/v1alpha/gkehub-gen.go index 5f59ce48394..d81884ff251 100644 --- a/gkehub/v1alpha/gkehub-gen.go +++ b/gkehub/v1alpha/gkehub-gen.go @@ -564,7 +564,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -581,9 +583,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. @@ -1759,6 +1759,42 @@ func (s *ConfigManagementPolicyController) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ConfigManagementPolicyControllerMigration: State for the migration of +// PolicyController from ACM -> PoCo Hub. +type ConfigManagementPolicyControllerMigration struct { + // Stage: Stage of the migration. + // + // Possible values: + // "STAGE_UNSPECIFIED" - Unknown state of migration. + // "ACM_MANAGED" - ACM Hub/Operator manages policycontroller. No + // migration yet completed. + // "POCO_MANAGED" - All migrations steps complete; Poco Hub now + // manages policycontroller. + Stage string `json:"stage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Stage") 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. "Stage") 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 *ConfigManagementPolicyControllerMigration) MarshalJSON() ([]byte, error) { + type NoMethod ConfigManagementPolicyControllerMigration + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ConfigManagementPolicyControllerMonitoring: // PolicyControllerMonitoring specifies the backends Policy Controller // should export metrics to. For example, to specify metrics should be @@ -1804,6 +1840,10 @@ type ConfigManagementPolicyControllerState struct { // DeploymentState: The state about the policy controller installation. DeploymentState *ConfigManagementGatekeeperDeploymentState `json:"deploymentState,omitempty"` + // Migration: Record state of ACM -> PoCo Hub migration for this + // feature. + Migration *ConfigManagementPolicyControllerMigration `json:"migration,omitempty"` + // Version: The version of Gatekeeper Policy Controller deployed. Version *ConfigManagementPolicyControllerVersion `json:"version,omitempty"` @@ -4014,6 +4054,15 @@ type PolicyControllerHubConfig struct { // altogether. AuditIntervalSeconds int64 `json:"auditIntervalSeconds,omitempty,string"` + // ConstraintViolationLimit: The maximum number of audit violations to + // be stored in a constraint. If not set, the internal default + // (currently 20) will be used. + ConstraintViolationLimit int64 `json:"constraintViolationLimit,omitempty,string"` + + // DeploymentConfigs: Map of deployment configs to deployments + // (“admission”, “audit”, “mutation”). + DeploymentConfigs map[string]PolicyControllerPolicyControllerDeploymentConfig `json:"deploymentConfigs,omitempty"` + // ExemptableNamespaces: The set of namespaces that are excluded from // Policy Controller checks. Namespaces do not need to currently exist // on the cluster. @@ -4333,6 +4382,108 @@ func (s *PolicyControllerPolicyContentSpec) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// PolicyControllerPolicyControllerDeploymentConfig: Deployment-specific +// configuration. +type PolicyControllerPolicyControllerDeploymentConfig struct { + // ContainerResources: Container resource requirements. + ContainerResources *PolicyControllerResourceRequirements `json:"containerResources,omitempty"` + + // PodAntiAffinity: Pod anti-affinity enablement. + PodAntiAffinity bool `json:"podAntiAffinity,omitempty"` + + // ReplicaCount: Pod replica count. + ReplicaCount int64 `json:"replicaCount,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "ContainerResources") + // 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. "ContainerResources") 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 *PolicyControllerPolicyControllerDeploymentConfig) MarshalJSON() ([]byte, error) { + type NoMethod PolicyControllerPolicyControllerDeploymentConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PolicyControllerResourceList: ResourceList contains container +// resource requirements. +type PolicyControllerResourceList struct { + // Cpu: CPU requirement expressed in Kubernetes resource units. + Cpu string `json:"cpu,omitempty"` + + // Memory: Memory requirement expressed in Kubernetes resource units. + Memory string `json:"memory,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Cpu") 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. "Cpu") 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 *PolicyControllerResourceList) MarshalJSON() ([]byte, error) { + type NoMethod PolicyControllerResourceList + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PolicyControllerResourceRequirements: ResourceRequirements describes +// the compute resource requirements. +type PolicyControllerResourceRequirements struct { + // Limits: Limits describes the maximum amount of compute resources + // allowed for use by the running container. + Limits *PolicyControllerResourceList `json:"limits,omitempty"` + + // Requests: Requests describes the amount of compute resources reserved + // for the container by the kube-scheduler. + Requests *PolicyControllerResourceList `json:"requests,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Limits") 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. "Limits") 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 *PolicyControllerResourceRequirements) MarshalJSON() ([]byte, error) { + type NoMethod PolicyControllerResourceRequirements + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // PolicyControllerTemplateLibraryConfig: The config specifying which // default library templates to install. type PolicyControllerTemplateLibraryConfig struct { @@ -8772,6 +8923,7 @@ type ProjectsLocationsMembershipsListCall struct { // // - parent: The parent (project and location) where the Memberships // will be listed. Specified in the format `projects/*/locations/*`. +// `projects/*/locations/-` list memberships in all the regions. func (r *ProjectsLocationsMembershipsService) List(parent string) *ProjectsLocationsMembershipsListCall { c := &ProjectsLocationsMembershipsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -8944,7 +9096,7 @@ func (c *ProjectsLocationsMembershipsListCall) Do(opts ...googleapi.CallOption) // "type": "string" // }, // "parent": { - // "description": "Required. The parent (project and location) where the Memberships will be listed. Specified in the format `projects/*/locations/*`.", + // "description": "Required. The parent (project and location) where the Memberships will be listed. Specified in the format `projects/*/locations/*`. `projects/*/locations/-` list memberships in all the regions.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, diff --git a/gkehub/v1alpha2/gkehub-api.json b/gkehub/v1alpha2/gkehub-api.json index c66fb6817d0..27484401dc0 100644 --- a/gkehub/v1alpha2/gkehub-api.json +++ b/gkehub/v1alpha2/gkehub-api.json @@ -417,7 +417,7 @@ "type": "string" }, "parent": { - "description": "Required. The parent (project and location) where the Memberships will be listed. Specified in the format `projects/*/locations/*`.", + "description": "Required. The parent (project and location) where the Memberships will be listed. Specified in the format `projects/*/locations/*`. `projects/*/locations/-` list memberships in all the regions.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, @@ -652,7 +652,7 @@ } } }, - "revision": "20220828", + "revision": "20230129", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "ApplianceCluster": { @@ -749,7 +749,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/gkehub/v1alpha2/gkehub-gen.go b/gkehub/v1alpha2/gkehub-gen.go index 2cef72cb9a4..ced7bd7db2c 100644 --- a/gkehub/v1alpha2/gkehub-gen.go +++ b/gkehub/v1alpha2/gkehub-gen.go @@ -422,7 +422,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -439,9 +441,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. @@ -3159,6 +3159,7 @@ type ProjectsLocationsMembershipsListCall struct { // // - parent: The parent (project and location) where the Memberships // will be listed. Specified in the format `projects/*/locations/*`. +// `projects/*/locations/-` list memberships in all the regions. func (r *ProjectsLocationsMembershipsService) List(parent string) *ProjectsLocationsMembershipsListCall { c := &ProjectsLocationsMembershipsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -3331,7 +3332,7 @@ func (c *ProjectsLocationsMembershipsListCall) Do(opts ...googleapi.CallOption) // "type": "string" // }, // "parent": { - // "description": "Required. The parent (project and location) where the Memberships will be listed. Specified in the format `projects/*/locations/*`.", + // "description": "Required. The parent (project and location) where the Memberships will be listed. Specified in the format `projects/*/locations/*`. `projects/*/locations/-` list memberships in all the regions.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, diff --git a/gkehub/v1beta/gkehub-api.json b/gkehub/v1beta/gkehub-api.json index cd862ccc695..43087002531 100644 --- a/gkehub/v1beta/gkehub-api.json +++ b/gkehub/v1beta/gkehub-api.json @@ -670,7 +670,7 @@ } } }, - "revision": "20230119", + "revision": "20230129", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -777,7 +777,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, @@ -1506,6 +1506,27 @@ }, "type": "object" }, + "ConfigManagementPolicyControllerMigration": { + "description": "State for the migration of PolicyController from ACM -\u003e PoCo Hub.", + "id": "ConfigManagementPolicyControllerMigration", + "properties": { + "stage": { + "description": "Stage of the migration.", + "enum": [ + "STAGE_UNSPECIFIED", + "ACM_MANAGED", + "POCO_MANAGED" + ], + "enumDescriptions": [ + "Unknown state of migration.", + "ACM Hub/Operator manages policycontroller. No migration yet completed.", + "All migrations steps complete; Poco Hub now manages policycontroller." + ], + "type": "string" + } + }, + "type": "object" + }, "ConfigManagementPolicyControllerMonitoring": { "description": "PolicyControllerMonitoring specifies the backends Policy Controller should export metrics to. For example, to specify metrics should be exported to Cloud Monitoring and Prometheus, specify backends: [\"cloudmonitoring\", \"prometheus\"]", "id": "ConfigManagementPolicyControllerMonitoring", @@ -1538,6 +1559,10 @@ "$ref": "ConfigManagementGatekeeperDeploymentState", "description": "The state about the policy controller installation." }, + "migration": { + "$ref": "ConfigManagementPolicyControllerMigration", + "description": "Record state of ACM -\u003e PoCo Hub migration for this feature." + }, "version": { "$ref": "ConfigManagementPolicyControllerVersion", "description": "The version of Gatekeeper Policy Controller deployed." @@ -2418,6 +2443,18 @@ "format": "int64", "type": "string" }, + "constraintViolationLimit": { + "description": "The maximum number of audit violations to be stored in a constraint. If not set, the internal default (currently 20) will be used.", + "format": "int64", + "type": "string" + }, + "deploymentConfigs": { + "additionalProperties": { + "$ref": "PolicyControllerPolicyControllerDeploymentConfig" + }, + "description": "Map of deployment configs to deployments (“admission”, “audit”, “mutation”).", + "type": "object" + }, "exemptableNamespaces": { "description": "The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster.", "items": { @@ -2605,6 +2642,56 @@ }, "type": "object" }, + "PolicyControllerPolicyControllerDeploymentConfig": { + "description": "Deployment-specific configuration.", + "id": "PolicyControllerPolicyControllerDeploymentConfig", + "properties": { + "containerResources": { + "$ref": "PolicyControllerResourceRequirements", + "description": "Container resource requirements." + }, + "podAntiAffinity": { + "description": "Pod anti-affinity enablement.", + "type": "boolean" + }, + "replicaCount": { + "description": "Pod replica count.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "PolicyControllerResourceList": { + "description": "ResourceList contains container resource requirements.", + "id": "PolicyControllerResourceList", + "properties": { + "cpu": { + "description": "CPU requirement expressed in Kubernetes resource units.", + "type": "string" + }, + "memory": { + "description": "Memory requirement expressed in Kubernetes resource units.", + "type": "string" + } + }, + "type": "object" + }, + "PolicyControllerResourceRequirements": { + "description": "ResourceRequirements describes the compute resource requirements.", + "id": "PolicyControllerResourceRequirements", + "properties": { + "limits": { + "$ref": "PolicyControllerResourceList", + "description": "Limits describes the maximum amount of compute resources allowed for use by the running container." + }, + "requests": { + "$ref": "PolicyControllerResourceList", + "description": "Requests describes the amount of compute resources reserved for the container by the kube-scheduler." + } + }, + "type": "object" + }, "PolicyControllerTemplateLibraryConfig": { "description": "The config specifying which default library templates to install.", "id": "PolicyControllerTemplateLibraryConfig", diff --git a/gkehub/v1beta/gkehub-gen.go b/gkehub/v1beta/gkehub-gen.go index 78083b48ea7..db8dc81127c 100644 --- a/gkehub/v1beta/gkehub-gen.go +++ b/gkehub/v1beta/gkehub-gen.go @@ -426,7 +426,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -443,9 +445,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. @@ -1537,6 +1537,42 @@ func (s *ConfigManagementPolicyController) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ConfigManagementPolicyControllerMigration: State for the migration of +// PolicyController from ACM -> PoCo Hub. +type ConfigManagementPolicyControllerMigration struct { + // Stage: Stage of the migration. + // + // Possible values: + // "STAGE_UNSPECIFIED" - Unknown state of migration. + // "ACM_MANAGED" - ACM Hub/Operator manages policycontroller. No + // migration yet completed. + // "POCO_MANAGED" - All migrations steps complete; Poco Hub now + // manages policycontroller. + Stage string `json:"stage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Stage") 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. "Stage") 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 *ConfigManagementPolicyControllerMigration) MarshalJSON() ([]byte, error) { + type NoMethod ConfigManagementPolicyControllerMigration + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ConfigManagementPolicyControllerMonitoring: // PolicyControllerMonitoring specifies the backends Policy Controller // should export metrics to. For example, to specify metrics should be @@ -1582,6 +1618,10 @@ type ConfigManagementPolicyControllerState struct { // DeploymentState: The state about the policy controller installation. DeploymentState *ConfigManagementGatekeeperDeploymentState `json:"deploymentState,omitempty"` + // Migration: Record state of ACM -> PoCo Hub migration for this + // feature. + Migration *ConfigManagementPolicyControllerMigration `json:"migration,omitempty"` + // Version: The version of Gatekeeper Policy Controller deployed. Version *ConfigManagementPolicyControllerVersion `json:"version,omitempty"` @@ -3000,6 +3040,15 @@ type PolicyControllerHubConfig struct { // altogether. AuditIntervalSeconds int64 `json:"auditIntervalSeconds,omitempty,string"` + // ConstraintViolationLimit: The maximum number of audit violations to + // be stored in a constraint. If not set, the internal default + // (currently 20) will be used. + ConstraintViolationLimit int64 `json:"constraintViolationLimit,omitempty,string"` + + // DeploymentConfigs: Map of deployment configs to deployments + // (“admission”, “audit”, “mutation”). + DeploymentConfigs map[string]PolicyControllerPolicyControllerDeploymentConfig `json:"deploymentConfigs,omitempty"` + // ExemptableNamespaces: The set of namespaces that are excluded from // Policy Controller checks. Namespaces do not need to currently exist // on the cluster. @@ -3319,6 +3368,108 @@ func (s *PolicyControllerPolicyContentSpec) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// PolicyControllerPolicyControllerDeploymentConfig: Deployment-specific +// configuration. +type PolicyControllerPolicyControllerDeploymentConfig struct { + // ContainerResources: Container resource requirements. + ContainerResources *PolicyControllerResourceRequirements `json:"containerResources,omitempty"` + + // PodAntiAffinity: Pod anti-affinity enablement. + PodAntiAffinity bool `json:"podAntiAffinity,omitempty"` + + // ReplicaCount: Pod replica count. + ReplicaCount int64 `json:"replicaCount,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "ContainerResources") + // 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. "ContainerResources") 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 *PolicyControllerPolicyControllerDeploymentConfig) MarshalJSON() ([]byte, error) { + type NoMethod PolicyControllerPolicyControllerDeploymentConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PolicyControllerResourceList: ResourceList contains container +// resource requirements. +type PolicyControllerResourceList struct { + // Cpu: CPU requirement expressed in Kubernetes resource units. + Cpu string `json:"cpu,omitempty"` + + // Memory: Memory requirement expressed in Kubernetes resource units. + Memory string `json:"memory,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Cpu") 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. "Cpu") 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 *PolicyControllerResourceList) MarshalJSON() ([]byte, error) { + type NoMethod PolicyControllerResourceList + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PolicyControllerResourceRequirements: ResourceRequirements describes +// the compute resource requirements. +type PolicyControllerResourceRequirements struct { + // Limits: Limits describes the maximum amount of compute resources + // allowed for use by the running container. + Limits *PolicyControllerResourceList `json:"limits,omitempty"` + + // Requests: Requests describes the amount of compute resources reserved + // for the container by the kube-scheduler. + Requests *PolicyControllerResourceList `json:"requests,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Limits") 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. "Limits") 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 *PolicyControllerResourceRequirements) MarshalJSON() ([]byte, error) { + type NoMethod PolicyControllerResourceRequirements + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // PolicyControllerTemplateLibraryConfig: The config specifying which // default library templates to install. type PolicyControllerTemplateLibraryConfig struct { diff --git a/gkehub/v1beta1/gkehub-api.json b/gkehub/v1beta1/gkehub-api.json index 34d8a3b8a7f..9e34b0ba089 100644 --- a/gkehub/v1beta1/gkehub-api.json +++ b/gkehub/v1beta1/gkehub-api.json @@ -431,7 +431,7 @@ "type": "string" }, "parent": { - "description": "Required. The parent (project and location) where the Memberships will be listed. Specified in the format `projects/*/locations/*`.", + "description": "Required. The parent (project and location) where the Memberships will be listed. Specified in the format `projects/*/locations/*`. `projects/*/locations/-` list memberships in all the regions.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, @@ -706,7 +706,7 @@ } } }, - "revision": "20220828", + "revision": "20230129", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "ApplianceCluster": { @@ -803,7 +803,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/gkehub/v1beta1/gkehub-gen.go b/gkehub/v1beta1/gkehub-gen.go index 699878176c8..34d7808518a 100644 --- a/gkehub/v1beta1/gkehub-gen.go +++ b/gkehub/v1beta1/gkehub-gen.go @@ -398,7 +398,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -415,9 +417,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. @@ -3262,6 +3262,7 @@ type ProjectsLocationsMembershipsListCall struct { // // - parent: The parent (project and location) where the Memberships // will be listed. Specified in the format `projects/*/locations/*`. +// `projects/*/locations/-` list memberships in all the regions. func (r *ProjectsLocationsMembershipsService) List(parent string) *ProjectsLocationsMembershipsListCall { c := &ProjectsLocationsMembershipsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -3434,7 +3435,7 @@ func (c *ProjectsLocationsMembershipsListCall) Do(opts ...googleapi.CallOption) // "type": "string" // }, // "parent": { - // "description": "Required. The parent (project and location) where the Memberships will be listed. Specified in the format `projects/*/locations/*`.", + // "description": "Required. The parent (project and location) where the Memberships will be listed. Specified in the format `projects/*/locations/*`. `projects/*/locations/-` list memberships in all the regions.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, diff --git a/gmail/v1/gmail-api.json b/gmail/v1/gmail-api.json index a507529de74..cc2a787744a 100644 --- a/gmail/v1/gmail-api.json +++ b/gmail/v1/gmail-api.json @@ -971,7 +971,7 @@ "parameters": { "deleted": { "default": "false", - "description": "Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for G Suite accounts.", + "description": "Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for Google Workspace accounts.", "location": "query", "type": "boolean" }, @@ -1050,7 +1050,7 @@ "parameters": { "deleted": { "default": "false", - "description": "Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for G Suite accounts.", + "description": "Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for Google Workspace accounts.", "location": "query", "type": "boolean" }, @@ -2031,7 +2031,7 @@ "delegates": { "methods": { "create": { - "description": "Adds a delegate with its verification status set directly to `accepted`, without sending any verification email. The delegate user must be a member of the same G Suite organization as the delegator user. Gmail imposes limitations on the number of delegates and delegators each user in a G Suite organization can have. These limits depend on your organization, but in general each user can have up to 25 delegates and up to 10 delegators. Note that a delegate user must be referred to by their primary email address, and not an email alias. Also note that when a new delegate is created, there may be up to a one minute delay before the new delegate is available for use. This method is only available to service account clients that have been delegated domain-wide authority.", + "description": "Adds a delegate with its verification status set directly to `accepted`, without sending any verification email. The delegate user must be a member of the same Google Workspace organization as the delegator user. Gmail imposes limitations on the number of delegates and delegators each user in a Google Workspace organization can have. These limits depend on your organization, but in general each user can have up to 25 delegates and up to 10 delegators. Note that a delegate user must be referred to by their primary email address, and not an email alias. Also note that when a new delegate is created, there may be up to a one minute delay before the new delegate is available for use. This method is only available to service account clients that have been delegated domain-wide authority.", "flatPath": "gmail/v1/users/{userId}/settings/delegates", "httpMethod": "POST", "id": "gmail.users.settings.delegates.create", @@ -3077,7 +3077,7 @@ } } }, - "revision": "20230123", + "revision": "20230206", "rootUrl": "https://gmail.googleapis.com/", "schemas": { "AutoForwarding": { @@ -4332,7 +4332,7 @@ "type": "boolean" }, "restrictToDomain": { - "description": "Flag that determines whether responses are sent to recipients who are outside of the user's domain. This feature is only available for G Suite users.", + "description": "Flag that determines whether responses are sent to recipients who are outside of the user's domain. This feature is only available for Google Workspace users.", "type": "boolean" }, "startTime": { diff --git a/gmail/v1/gmail-gen.go b/gmail/v1/gmail-gen.go index 94c72ddf130..f8d80e5e38f 100644 --- a/gmail/v1/gmail-gen.go +++ b/gmail/v1/gmail-gen.go @@ -2440,7 +2440,7 @@ type VacationSettings struct { // RestrictToDomain: Flag that determines whether responses are sent to // recipients who are outside of the user's domain. This feature is only - // available for G Suite users. + // available for Google Workspace users. RestrictToDomain bool `json:"restrictToDomain,omitempty"` // StartTime: An optional start time for sending auto-replies (epoch @@ -5994,7 +5994,7 @@ func (r *UsersMessagesService) Import(userId string, message *Message) *UsersMes // Deleted sets the optional parameter "deleted": Mark the email as // permanently deleted (not TRASH) and only visible in Google Vault to a -// Vault administrator. Only used for G Suite accounts. +// Vault administrator. Only used for Google Workspace accounts. func (c *UsersMessagesImportCall) Deleted(deleted bool) *UsersMessagesImportCall { c.urlParams_.Set("deleted", fmt.Sprint(deleted)) return c @@ -6217,7 +6217,7 @@ func (c *UsersMessagesImportCall) Do(opts ...googleapi.CallOption) (*Message, er // "parameters": { // "deleted": { // "default": "false", - // "description": "Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for G Suite accounts.", + // "description": "Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for Google Workspace accounts.", // "location": "query", // "type": "boolean" // }, @@ -6299,7 +6299,7 @@ func (r *UsersMessagesService) Insert(userId string, message *Message) *UsersMes // Deleted sets the optional parameter "deleted": Mark the email as // permanently deleted (not TRASH) and only visible in Google Vault to a -// Vault administrator. Only used for G Suite accounts. +// Vault administrator. Only used for Google Workspace accounts. func (c *UsersMessagesInsertCall) Deleted(deleted bool) *UsersMessagesInsertCall { c.urlParams_.Set("deleted", fmt.Sprint(deleted)) return c @@ -6506,7 +6506,7 @@ func (c *UsersMessagesInsertCall) Do(opts ...googleapi.CallOption) (*Message, er // "parameters": { // "deleted": { // "default": "false", - // "description": "Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for G Suite accounts.", + // "description": "Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for Google Workspace accounts.", // "location": "query", // "type": "boolean" // }, @@ -10880,16 +10880,16 @@ type UsersSettingsDelegatesCreateCall struct { // Create: Adds a delegate with its verification status set directly to // `accepted`, without sending any verification email. The delegate user -// must be a member of the same G Suite organization as the delegator -// user. Gmail imposes limitations on the number of delegates and -// delegators each user in a G Suite organization can have. These limits -// depend on your organization, but in general each user can have up to -// 25 delegates and up to 10 delegators. Note that a delegate user must -// be referred to by their primary email address, and not an email -// alias. Also note that when a new delegate is created, there may be up -// to a one minute delay before the new delegate is available for use. -// This method is only available to service account clients that have -// been delegated domain-wide authority. +// must be a member of the same Google Workspace organization as the +// delegator user. Gmail imposes limitations on the number of delegates +// and delegators each user in a Google Workspace organization can have. +// These limits depend on your organization, but in general each user +// can have up to 25 delegates and up to 10 delegators. Note that a +// delegate user must be referred to by their primary email address, and +// not an email alias. Also note that when a new delegate is created, +// there may be up to a one minute delay before the new delegate is +// available for use. This method is only available to service account +// clients that have been delegated domain-wide authority. // // - userId: User's email address. The special value "me" can be used to // indicate the authenticated user. @@ -10991,7 +10991,7 @@ func (c *UsersSettingsDelegatesCreateCall) Do(opts ...googleapi.CallOption) (*De } return ret, nil // { - // "description": "Adds a delegate with its verification status set directly to `accepted`, without sending any verification email. The delegate user must be a member of the same G Suite organization as the delegator user. Gmail imposes limitations on the number of delegates and delegators each user in a G Suite organization can have. These limits depend on your organization, but in general each user can have up to 25 delegates and up to 10 delegators. Note that a delegate user must be referred to by their primary email address, and not an email alias. Also note that when a new delegate is created, there may be up to a one minute delay before the new delegate is available for use. This method is only available to service account clients that have been delegated domain-wide authority.", + // "description": "Adds a delegate with its verification status set directly to `accepted`, without sending any verification email. The delegate user must be a member of the same Google Workspace organization as the delegator user. Gmail imposes limitations on the number of delegates and delegators each user in a Google Workspace organization can have. These limits depend on your organization, but in general each user can have up to 25 delegates and up to 10 delegators. Note that a delegate user must be referred to by their primary email address, and not an email alias. Also note that when a new delegate is created, there may be up to a one minute delay before the new delegate is available for use. This method is only available to service account clients that have been delegated domain-wide authority.", // "flatPath": "gmail/v1/users/{userId}/settings/delegates", // "httpMethod": "POST", // "id": "gmail.users.settings.delegates.create", diff --git a/iam/v1/iam-api.json b/iam/v1/iam-api.json index 667dbd9251c..719f67aa195 100644 --- a/iam/v1/iam-api.json +++ b/iam/v1/iam-api.json @@ -148,6 +148,283 @@ "locations": { "resources": { "workforcePools": { + "methods": { + "create": { + "description": "Creates a new WorkforcePool. You cannot reuse the name of a deleted pool until 30 days after deletion.", + "flatPath": "v1/locations/{locationsId}/workforcePools", + "httpMethod": "POST", + "id": "iam.locations.workforcePools.create", + "parameterOrder": [ + "location" + ], + "parameters": { + "location": { + "description": "The location of the pool to create. Format: `locations/{location}`.", + "location": "path", + "pattern": "^locations/[^/]+$", + "required": true, + "type": "string" + }, + "workforcePoolId": { + "description": "The ID to use for the pool, which becomes the final component of the resource name. The IDs must be a globally unique string of 6 to 63 lowercase letters, digits, or hyphens. It must start with a letter, and cannot have a trailing hyphen. The prefix `gcp-` is reserved for use by Google, and may not be specified.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+location}/workforcePools", + "request": { + "$ref": "WorkforcePool" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a WorkforcePool. You cannot use a deleted WorkforcePool to exchange external credentials for Google Cloud credentials. However, deletion does not revoke credentials that have already been issued. Credentials issued for a deleted pool do not grant access to resources. If the pool is undeleted, and the credentials are not expired, they grant access again. You can undelete a pool for 30 days. After 30 days, deletion is permanent. You cannot update deleted pools. However, you can view and list them.", + "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}", + "httpMethod": "DELETE", + "id": "iam.locations.workforcePools.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the pool to delete. Format: `locations/{location}/workforcePools/{workforce_pool_id}`", + "location": "path", + "pattern": "^locations/[^/]+/workforcePools/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets an individual WorkforcePool.", + "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}", + "httpMethod": "GET", + "id": "iam.locations.workforcePools.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the pool to retrieve. Format: `locations/{location}/workforcePools/{workforce_pool_id}`", + "location": "path", + "pattern": "^locations/[^/]+/workforcePools/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "WorkforcePool" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getIamPolicy": { + "description": "Gets IAM policies on a WorkforcePool.", + "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}:getIamPolicy", + "httpMethod": "POST", + "id": "iam.locations.workforcePools.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^locations/[^/]+/workforcePools/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:getIamPolicy", + "request": { + "$ref": "GetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all non-deleted WorkforcePools under the specified parent. If `show_deleted` is set to `true`, then deleted pools are also listed.", + "flatPath": "v1/locations/{locationsId}/workforcePools", + "httpMethod": "GET", + "id": "iam.locations.workforcePools.list", + "parameterOrder": [ + "location" + ], + "parameters": { + "location": { + "description": "The location of the pool. Format: `locations/{location}`.", + "location": "path", + "pattern": "^locations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The maximum number of pools to return. If unspecified, at most 50 pools will be returned. The maximum value is 1000; values above 1000 are truncated to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListWorkforcePools` call. Provide this to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource to list pools for. Format: `organizations/{org-id}`.", + "location": "query", + "type": "string" + }, + "showDeleted": { + "description": "Whether to return soft-deleted pools.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+location}/workforcePools", + "response": { + "$ref": "ListWorkforcePoolsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates an existing WorkforcePool.", + "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}", + "httpMethod": "PATCH", + "id": "iam.locations.workforcePools.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The resource name of the pool. Format: `locations/{location}/workforcePools/{workforce_pool_id}`", + "location": "path", + "pattern": "^locations/[^/]+/workforcePools/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The list of fields to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "WorkforcePool" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets IAM policies on a WorkforcePool.", + "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}:setIamPolicy", + "httpMethod": "POST", + "id": "iam.locations.workforcePools.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^locations/[^/]+/workforcePools/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns the caller's permissions on the WorkforcePool. If the pool does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error.", + "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}:testIamPermissions", + "httpMethod": "POST", + "id": "iam.locations.workforcePools.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^locations/[^/]+/workforcePools/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "undelete": { + "description": "Undeletes a WorkforcePool, as long as it was deleted fewer than 30 days ago.", + "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}:undelete", + "httpMethod": "POST", + "id": "iam.locations.workforcePools.undelete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the pool to undelete. Format: `locations/{location}/workforcePools/{workforce_pool_id}`", + "location": "path", + "pattern": "^locations/[^/]+/workforcePools/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:undelete", + "request": { + "$ref": "UndeleteWorkforcePoolRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, "resources": { "operations": { "methods": { @@ -161,14 +438,204 @@ ], "parameters": { "name": { - "description": "The name of the operation resource.", + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^locations/[^/]+/workforcePools/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "providers": { + "methods": { + "create": { + "description": "Creates a new WorkforcePoolProvider in a WorkforcePool. You cannot reuse the name of a deleted provider until 30 days after deletion.", + "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers", + "httpMethod": "POST", + "id": "iam.locations.workforcePools.providers.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The pool to create this provider in. Format: `locations/{location}/workforcePools/{workforce_pool_id}`", + "location": "path", + "pattern": "^locations/[^/]+/workforcePools/[^/]+$", + "required": true, + "type": "string" + }, + "workforcePoolProviderId": { + "description": "Required. The ID for the provider, which becomes the final component of the resource name. This value must be 4-32 characters, and may contain the characters [a-z0-9-]. The prefix `gcp-` is reserved for use by Google, and may not be specified.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/providers", + "request": { + "$ref": "WorkforcePoolProvider" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a WorkforcePoolProvider. Deleting a provider does not revoke credentials that have already been\\ issued; they continue to grant access. You can undelete a provider for 30 days. After 30 days, deletion is permanent. You cannot update deleted providers. However, you can view and list them.", + "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers/{providersId}", + "httpMethod": "DELETE", + "id": "iam.locations.workforcePools.providers.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the provider to delete. Format: `locations/{location}/workforcePools/{workforce_pool_id}/providers/{provider_id}`", + "location": "path", + "pattern": "^locations/[^/]+/workforcePools/[^/]+/providers/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets an individual WorkforcePoolProvider.", + "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers/{providersId}", + "httpMethod": "GET", + "id": "iam.locations.workforcePools.providers.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the provider to retrieve. Format: `locations/{location}/workforcePools/{workforce_pool_id}/providers/{provider_id}`", + "location": "path", + "pattern": "^locations/[^/]+/workforcePools/[^/]+/providers/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "WorkforcePoolProvider" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all non-deleted WorkforcePoolProviders in a WorkforcePool. If `show_deleted` is set to `true`, then deleted providers are also listed.", + "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers", + "httpMethod": "GET", + "id": "iam.locations.workforcePools.providers.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of providers to return. If unspecified, at most 50 providers are returned. The maximum value is 100; values above 100 are truncated to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListWorkforcePoolProviders` call. Provide this to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The pool to list providers for. Format: `locations/{location}/workforcePools/{workforce_pool_id}`", + "location": "path", + "pattern": "^locations/[^/]+/workforcePools/[^/]+$", + "required": true, + "type": "string" + }, + "showDeleted": { + "description": "Whether to return soft-deleted providers.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+parent}/providers", + "response": { + "$ref": "ListWorkforcePoolProvidersResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates an existing WorkforcePoolProvider.", + "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers/{providersId}", + "httpMethod": "PATCH", + "id": "iam.locations.workforcePools.providers.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The resource name of the provider. Format: `locations/{location}/workforcePools/{workforce_pool_id}/providers/{provider_id}`", "location": "path", - "pattern": "^locations/[^/]+/workforcePools/[^/]+/operations/[^/]+$", + "pattern": "^locations/[^/]+/workforcePools/[^/]+/providers/[^/]+$", "required": true, "type": "string" + }, + "updateMask": { + "description": "Required. The list of fields to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" } }, "path": "v1/{+name}", + "request": { + "$ref": "WorkforcePoolProvider" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "undelete": { + "description": "Undeletes a WorkforcePoolProvider, as long as it was deleted fewer than 30 days ago.", + "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers/{providersId}:undelete", + "httpMethod": "POST", + "id": "iam.locations.workforcePools.providers.undelete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the provider to undelete. Format: `locations/{location}/workforcePools/{workforce_pool_id}/providers/{provider_id}`", + "location": "path", + "pattern": "^locations/[^/]+/workforcePools/[^/]+/providers/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:undelete", + "request": { + "$ref": "UndeleteWorkforcePoolProviderRequest" + }, "response": { "$ref": "Operation" }, @@ -176,9 +643,7 @@ "https://www.googleapis.com/auth/cloud-platform" ] } - } - }, - "providers": { + }, "resources": { "keys": { "resources": { @@ -245,6 +710,61 @@ } }, "subjects": { + "methods": { + "delete": { + "description": "Deletes a WorkforcePoolSubject. Subject must not already be in a deleted state. A WorkforcePoolSubject is automatically created the first time an external credential is exchanged for a Google Cloud credential with a mapped `google.subject` attribute. There is no path to manually create WorkforcePoolSubjects. Once deleted, the WorkforcePoolSubject may not be used for 30 days. After 30 days, the WorkforcePoolSubject will be deleted forever and can be reused in token exchanges with Google Cloud STS. This will automatically create a new WorkforcePoolSubject that is independent of the previously deleted WorkforcePoolSubject with the same google.subject value.", + "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/subjects/{subjectsId}", + "httpMethod": "DELETE", + "id": "iam.locations.workforcePools.subjects.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the WorkforcePoolSubject. Special characters, like '/' and ':', must be escaped, because all URLs need to conform to the \"When to Escape and Unescape\" section of [RFC3986](https://www.ietf.org/rfc/rfc2396.txt). Format: `locations/{location}/workforcePools/{workforce_pool_id}/subjects/{subject_id}`", + "location": "path", + "pattern": "^locations/[^/]+/workforcePools/[^/]+/subjects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "undelete": { + "description": "Undeletes a WorkforcePoolSubject, as long as it was deleted fewer than 30 days ago.", + "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/subjects/{subjectsId}:undelete", + "httpMethod": "POST", + "id": "iam.locations.workforcePools.subjects.undelete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the WorkforcePoolSubject. Special characters, like '/' and ':', must be escaped, because all URLs need to conform to the \"When to Escape and Unescape\" section of [RFC3986](https://www.ietf.org/rfc/rfc2396.txt). Format: `locations/{location}/workforcePools/{workforce_pool_id}/subjects/{subject_id}`", + "location": "path", + "pattern": "^locations/[^/]+/workforcePools/[^/]+/subjects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:undelete", + "request": { + "$ref": "UndeleteWorkforcePoolSubjectRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, "resources": { "operations": { "methods": { @@ -1921,7 +2441,7 @@ } } }, - "revision": "20230126", + "revision": "20230202", "rootUrl": "https://iam.googleapis.com/", "schemas": { "AdminAuditData": { @@ -2189,6 +2709,55 @@ }, "type": "object" }, + "GetIamPolicyRequest": { + "description": "Request message for `GetIamPolicy` method.", + "id": "GetIamPolicyRequest", + "properties": { + "options": { + "$ref": "GetPolicyOptions", + "description": "OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`." + } + }, + "type": "object" + }, + "GetPolicyOptions": { + "description": "Encapsulates settings provided to GetIamPolicy.", + "id": "GetPolicyOptions", + "properties": { + "requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleIamAdminV1WorkforcePoolProviderOidc": { + "description": "Represents an OpenId Connect 1.0 identity provider.", + "id": "GoogleIamAdminV1WorkforcePoolProviderOidc", + "properties": { + "clientId": { + "description": "Required. The client ID. Must match the audience claim of the JWT issued by the identity provider.", + "type": "string" + }, + "issuerUri": { + "description": "Required. The OIDC issuer URI. Must be a valid URI using the 'https' scheme.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleIamAdminV1WorkforcePoolProviderSaml": { + "description": "Represents a SAML identity provider.", + "id": "GoogleIamAdminV1WorkforcePoolProviderSaml", + "properties": { + "idpMetadataXml": { + "description": "Required. SAML Identity provider configuration metadata xml doc. The xml document should comply with [SAML 2.0 specification](https://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.pdf). The max size of the acceptable xml document will be bounded to 128k characters. The metadata xml document should satisfy the following constraints: 1) Must contain an Identity Provider Entity ID. 2) Must contain at least one non-expired signing key certificate. 3) For each signing key: a) Valid from should be no more than 7 days from now. b) Valid to should be no more than 14 years in the future. 4) Up to 3 IdP signing keys are allowed in the metadata xml. When updating the provider's metadata xml, at least one non-expired signing key must overlap with the existing metadata. This requirement is skipped if there are no non-expired signing keys present in the existing metadata.", + "type": "string" + } + }, + "type": "object" + }, "LintPolicyRequest": { "description": "The request to lint a Cloud IAM policy object.", "id": "LintPolicyRequest", @@ -2324,6 +2893,42 @@ }, "type": "object" }, + "ListWorkforcePoolProvidersResponse": { + "description": "Response message for ListWorkforcePoolProviders.", + "id": "ListWorkforcePoolProvidersResponse", + "properties": { + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "workforcePoolProviders": { + "description": "A list of providers.", + "items": { + "$ref": "WorkforcePoolProvider" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListWorkforcePoolsResponse": { + "description": "Response message for ListWorkforcePools.", + "id": "ListWorkforcePoolsResponse", + "properties": { + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "workforcePools": { + "description": "A list of pools.", + "items": { + "$ref": "WorkforcePool" + }, + "type": "array" + } + }, + "type": "object" + }, "ListWorkloadIdentityPoolProvidersResponse": { "description": "Response message for ListWorkloadIdentityPoolProviders.", "id": "ListWorkloadIdentityPoolProvidersResponse", @@ -3024,6 +3629,24 @@ }, "type": "object" }, + "UndeleteWorkforcePoolProviderRequest": { + "description": "Request message for UndeleteWorkforcePoolProvider.", + "id": "UndeleteWorkforcePoolProviderRequest", + "properties": {}, + "type": "object" + }, + "UndeleteWorkforcePoolRequest": { + "description": "Request message for UndeleteWorkforcePool.", + "id": "UndeleteWorkforcePoolRequest", + "properties": {}, + "type": "object" + }, + "UndeleteWorkforcePoolSubjectRequest": { + "description": "Request message for UndeleteWorkforcePoolSubject.", + "id": "UndeleteWorkforcePoolSubjectRequest", + "properties": {}, + "type": "object" + }, "UndeleteWorkloadIdentityPoolProviderRequest": { "description": "Request message for UndeleteWorkloadIdentityPoolProvider.", "id": "UndeleteWorkloadIdentityPoolProviderRequest", @@ -3048,6 +3671,112 @@ }, "type": "object" }, + "WorkforcePool": { + "description": "Represents a collection of external workforces. Provides namespaces for federated users that can be referenced in IAM policies.", + "id": "WorkforcePool", + "properties": { + "description": { + "description": "A user-specified description of the pool. Cannot exceed 256 characters.", + "type": "string" + }, + "disabled": { + "description": "Whether the pool is disabled. You cannot use a disabled pool to exchange tokens, or use existing tokens to access resources. If the pool is re-enabled, existing tokens grant access again.", + "type": "boolean" + }, + "displayName": { + "description": "A user-specified display name of the pool in Google Cloud Console. Cannot exceed 32 characters.", + "type": "string" + }, + "name": { + "description": "Output only. The resource name of the pool. Format: `locations/{location}/workforcePools/{workforce_pool_id}`", + "readOnly": true, + "type": "string" + }, + "parent": { + "description": "Immutable. The resource name of the parent. Format: `organizations/{org-id}`.", + "type": "string" + }, + "sessionDuration": { + "description": "Duration that the Google Cloud access tokens, console sign-in sessions, and `gcloud` sign-in sessions from this pool are valid. Must be greater than 15 minutes (900s) and less than 12 hours (43200s). If `session_duration` is not configured, minted credentials have a default duration of one hour (3600s). For SAML providers, the lifetime of the token is the minimum of the `session_duration` and the SessionNotOnOrAfter claim in the SAML assertion.", + "format": "google-duration", + "type": "string" + }, + "state": { + "description": "Output only. The state of the pool.", + "enum": [ + "STATE_UNSPECIFIED", + "ACTIVE", + "DELETED" + ], + "enumDescriptions": [ + "State unspecified.", + "The pool is active and may be used in Google Cloud policies.", + "The pool is soft-deleted. Soft-deleted pools are permanently deleted after approximately 30 days. You can restore a soft-deleted pool using UndeleteWorkforcePool. You cannot reuse the ID of a soft-deleted pool until it is permanently deleted. While a pool is deleted, you cannot use it to exchange tokens, or use existing tokens to access resources. If the pool is undeleted, existing tokens grant access again." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "WorkforcePoolProvider": { + "description": "A configuration for an external identity provider.", + "id": "WorkforcePoolProvider", + "properties": { + "attributeCondition": { + "description": "A [Common Expression Language](https://opensource.google/projects/cel) expression, in plain text, to restrict what otherwise valid authentication credentials issued by the provider should not be accepted. The expression must output a boolean representing whether to allow the federation. The following keywords may be referenced in the expressions: * `assertion`: JSON representing the authentication credential issued by the provider. * `google`: The Google attributes mapped from the assertion in the `attribute_mappings`. `google.profile_photo` and `google.display_name` are not supported. * `attribute`: The custom attributes mapped from the assertion in the `attribute_mappings`. The maximum length of the attribute condition expression is 4096 characters. If unspecified, all valid authentication credentials will be accepted. The following example shows how to only allow credentials with a mapped `google.groups` value of `admins`: ``` \"'admins' in google.groups\" ```", + "type": "string" + }, + "attributeMapping": { + "additionalProperties": { + "type": "string" + }, + "description": "Required. Maps attributes from the authentication credentials issued by an external identity provider to Google Cloud attributes, such as `subject` and `segment`. Each key must be a string specifying the Google Cloud IAM attribute to map to. The following keys are supported: * `google.subject`: The principal IAM is authenticating. You can reference this value in IAM bindings. This is also the subject that appears in Cloud Logging logs. This is a required field and the mapped subject cannot exceed 127 bytes. * `google.groups`: Groups the authenticating user belongs to. You can grant groups access to resources using an IAM `principalSet` binding; access applies to all members of the group. * `google.display_name`: The name of the authenticated user. This is an optional field and the mapped display name cannot exceed 100 bytes. If not set, `google.subject` will be displayed instead. This attribute cannot be referenced in IAM bindings. * `google.profile_photo`: The URL that specifies the authenticated user's thumbnail photo. This is an optional field. When set, the image will be visible as the user's profile picture. If not set, a generic user icon will be displayed instead. This attribute cannot be referenced in IAM bindings. You can also provide custom attributes by specifying `attribute.{custom_attribute}`, where {custom_attribute} is the name of the custom attribute to be mapped. You can define a maximum of 50 custom attributes. The maximum length of a mapped attribute key is 100 characters, and the key may only contain the characters [a-z0-9_]. You can reference these attributes in IAM policies to define fine-grained access for a workforce pool to Google Cloud resources. For example: * `google.subject`: `principal://iam.googleapis.com/locations/global/workforcePools/{pool}/subject/{value}` * `google.groups`: `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool}/group/{value}` * `attribute.{custom_attribute}`: `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool}/attribute.{custom_attribute}/{value}` Each value must be a [Common Expression Language] (https://opensource.google/projects/cel) function that maps an identity provider credential to the normalized attribute specified by the corresponding map key. You can use the `assertion` keyword in the expression to access a JSON representation of the authentication credential issued by the provider. The maximum length of an attribute mapping expression is 2048 characters. When evaluated, the total size of all mapped attributes must not exceed 4KB. For OIDC providers, you must supply a custom mapping that includes the `google.subject` attribute. For example, the following maps the `sub` claim of the incoming credential to the `subject` attribute on a Google token: ``` {\"google.subject\": \"assertion.sub\"} ```", + "type": "object" + }, + "description": { + "description": "A user-specified description of the provider. Cannot exceed 256 characters.", + "type": "string" + }, + "disabled": { + "description": "Whether the provider is disabled. You cannot use a disabled provider to exchange tokens. However, existing tokens still grant access.", + "type": "boolean" + }, + "displayName": { + "description": "A user-specified display name for the provider. Cannot exceed 32 characters.", + "type": "string" + }, + "name": { + "description": "Output only. The resource name of the provider. Format: `locations/{location}/workforcePools/{workforce_pool_id}/providers/{provider_id}`", + "readOnly": true, + "type": "string" + }, + "oidc": { + "$ref": "GoogleIamAdminV1WorkforcePoolProviderOidc", + "description": "An OpenId Connect 1.0 identity provider configuration." + }, + "saml": { + "$ref": "GoogleIamAdminV1WorkforcePoolProviderSaml", + "description": "A SAML identity provider configuration." + }, + "state": { + "description": "Output only. The state of the provider.", + "enum": [ + "STATE_UNSPECIFIED", + "ACTIVE", + "DELETED" + ], + "enumDescriptions": [ + "State unspecified.", + "The provider is active and may be used to validate authentication credentials.", + "The provider is soft-deleted. Soft-deleted providers are permanently deleted after approximately 30 days. You can restore a soft-deleted provider using UndeleteWorkforcePoolProvider." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "WorkloadIdentityPool": { "description": "Represents a collection of external workload identities. You can define IAM policies to grant these identities access to Google Cloud resources.", "id": "WorkloadIdentityPool", diff --git a/iam/v1/iam-gen.go b/iam/v1/iam-gen.go index f125a948084..49966786579 100644 --- a/iam/v1/iam-gen.go +++ b/iam/v1/iam-gen.go @@ -983,6 +983,154 @@ func (s *Expr) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GetIamPolicyRequest: Request message for `GetIamPolicy` method. +type GetIamPolicyRequest struct { + // Options: OPTIONAL: A `GetPolicyOptions` object for specifying options + // to `GetIamPolicy`. + Options *GetPolicyOptions `json:"options,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Options") 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. "Options") 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 *GetIamPolicyRequest) MarshalJSON() ([]byte, error) { + type NoMethod GetIamPolicyRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GetPolicyOptions: Encapsulates settings provided to GetIamPolicy. +type GetPolicyOptions struct { + // RequestedPolicyVersion: Optional. The maximum policy version that + // will be used to format the policy. Valid values are 0, 1, and 3. + // Requests specifying an invalid value will be rejected. Requests for + // policies with any conditional role bindings must specify version 3. + // Policies with no conditional role bindings may specify any valid + // value or leave the field unset. The policy in the response might use + // the policy version that you specified, or it might use a lower policy + // version. For example, if you specify version 3, but the policy has no + // conditional role bindings, the response uses version 1. To learn + // which resources support conditions in their IAM policies, see the IAM + // documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). + RequestedPolicyVersion int64 `json:"requestedPolicyVersion,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "RequestedPolicyVersion") 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. "RequestedPolicyVersion") + // 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 *GetPolicyOptions) MarshalJSON() ([]byte, error) { + type NoMethod GetPolicyOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleIamAdminV1WorkforcePoolProviderOidc: Represents an OpenId +// Connect 1.0 identity provider. +type GoogleIamAdminV1WorkforcePoolProviderOidc struct { + // ClientId: Required. The client ID. Must match the audience claim of + // the JWT issued by the identity provider. + ClientId string `json:"clientId,omitempty"` + + // IssuerUri: Required. The OIDC issuer URI. Must be a valid URI using + // the 'https' scheme. + IssuerUri string `json:"issuerUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ClientId") 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. "ClientId") 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 *GoogleIamAdminV1WorkforcePoolProviderOidc) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamAdminV1WorkforcePoolProviderOidc + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleIamAdminV1WorkforcePoolProviderSaml: Represents a SAML identity +// provider. +type GoogleIamAdminV1WorkforcePoolProviderSaml struct { + // IdpMetadataXml: Required. SAML Identity provider configuration + // metadata xml doc. The xml document should comply with SAML 2.0 + // specification + // (https://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.pdf). + // The max size of the acceptable xml document will be bounded to 128k + // characters. The metadata xml document should satisfy the following + // constraints: 1) Must contain an Identity Provider Entity ID. 2) Must + // contain at least one non-expired signing key certificate. 3) For each + // signing key: a) Valid from should be no more than 7 days from now. b) + // Valid to should be no more than 14 years in the future. 4) Up to 3 + // IdP signing keys are allowed in the metadata xml. When updating the + // provider's metadata xml, at least one non-expired signing key must + // overlap with the existing metadata. This requirement is skipped if + // there are no non-expired signing keys present in the existing + // metadata. + IdpMetadataXml string `json:"idpMetadataXml,omitempty"` + + // ForceSendFields is a list of field names (e.g. "IdpMetadataXml") 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. "IdpMetadataXml") 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 *GoogleIamAdminV1WorkforcePoolProviderSaml) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamAdminV1WorkforcePoolProviderSaml + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // LintPolicyRequest: The request to lint a Cloud IAM policy object. type LintPolicyRequest struct { // Condition: google.iam.v1.Binding.condition object to be linted. @@ -1240,6 +1388,81 @@ func (s *ListServiceAccountsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListWorkforcePoolProvidersResponse: Response message for +// ListWorkforcePoolProviders. +type ListWorkforcePoolProvidersResponse struct { + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // WorkforcePoolProviders: A list of providers. + WorkforcePoolProviders []*WorkforcePoolProvider `json:"workforcePoolProviders,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 *ListWorkforcePoolProvidersResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListWorkforcePoolProvidersResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListWorkforcePoolsResponse: Response message for ListWorkforcePools. +type ListWorkforcePoolsResponse struct { + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // WorkforcePools: A list of pools. + WorkforcePools []*WorkforcePool `json:"workforcePools,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 *ListWorkforcePoolsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListWorkforcePoolsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListWorkloadIdentityPoolProvidersResponse: Response message for // ListWorkloadIdentityPoolProviders. type ListWorkloadIdentityPoolProvidersResponse struct { @@ -2602,6 +2825,21 @@ func (s *UndeleteServiceAccountResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// UndeleteWorkforcePoolProviderRequest: Request message for +// UndeleteWorkforcePoolProvider. +type UndeleteWorkforcePoolProviderRequest struct { +} + +// UndeleteWorkforcePoolRequest: Request message for +// UndeleteWorkforcePool. +type UndeleteWorkforcePoolRequest struct { +} + +// UndeleteWorkforcePoolSubjectRequest: Request message for +// UndeleteWorkforcePoolSubject. +type UndeleteWorkforcePoolSubjectRequest struct { +} + // UndeleteWorkloadIdentityPoolProviderRequest: Request message for // UndeleteWorkloadIdentityPoolProvider. type UndeleteWorkloadIdentityPoolProviderRequest struct { @@ -2644,11 +2882,12 @@ func (s *UploadServiceAccountKeyRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// WorkloadIdentityPool: Represents a collection of external workload -// identities. You can define IAM policies to grant these identities -// access to Google Cloud resources. -type WorkloadIdentityPool struct { - // Description: A description of the pool. Cannot exceed 256 characters. +// WorkforcePool: Represents a collection of external workforces. +// Provides namespaces for federated users that can be referenced in IAM +// policies. +type WorkforcePool struct { + // Description: A user-specified description of the pool. Cannot exceed + // 256 characters. Description string `json:"description,omitempty"` // Disabled: Whether the pool is disabled. You cannot use a disabled @@ -2656,24 +2895,39 @@ type WorkloadIdentityPool struct { // If the pool is re-enabled, existing tokens grant access again. Disabled bool `json:"disabled,omitempty"` - // DisplayName: A display name for the pool. Cannot exceed 32 - // characters. + // DisplayName: A user-specified display name of the pool in Google + // Cloud Console. Cannot exceed 32 characters. DisplayName string `json:"displayName,omitempty"` - // Name: Output only. The resource name of the pool. + // Name: Output only. The resource name of the pool. Format: + // `locations/{location}/workforcePools/{workforce_pool_id}` Name string `json:"name,omitempty"` + // Parent: Immutable. The resource name of the parent. Format: + // `organizations/{org-id}`. + Parent string `json:"parent,omitempty"` + + // SessionDuration: Duration that the Google Cloud access tokens, + // console sign-in sessions, and `gcloud` sign-in sessions from this + // pool are valid. Must be greater than 15 minutes (900s) and less than + // 12 hours (43200s). If `session_duration` is not configured, minted + // credentials have a default duration of one hour (3600s). For SAML + // providers, the lifetime of the token is the minimum of the + // `session_duration` and the SessionNotOnOrAfter claim in the SAML + // assertion. + SessionDuration string `json:"sessionDuration,omitempty"` + // State: Output only. The state of the pool. // // Possible values: // "STATE_UNSPECIFIED" - State unspecified. - // "ACTIVE" - The pool is active, and may be used in Google Cloud + // "ACTIVE" - The pool is active and may be used in Google Cloud // policies. // "DELETED" - The pool is soft-deleted. Soft-deleted pools are // permanently deleted after approximately 30 days. You can restore a - // soft-deleted pool using UndeleteWorkloadIdentityPool. You cannot - // reuse the ID of a soft-deleted pool until it is permanently deleted. - // While a pool is deleted, you cannot use it to exchange tokens, or use + // soft-deleted pool using UndeleteWorkforcePool. You cannot reuse the + // ID of a soft-deleted pool until it is permanently deleted. While a + // pool is deleted, you cannot use it to exchange tokens, or use // existing tokens to access resources. If the pool is undeleted, // existing tokens grant access again. State string `json:"state,omitempty"` @@ -2699,20 +2953,15 @@ type WorkloadIdentityPool struct { NullFields []string `json:"-"` } -func (s *WorkloadIdentityPool) MarshalJSON() ([]byte, error) { - type NoMethod WorkloadIdentityPool +func (s *WorkforcePool) MarshalJSON() ([]byte, error) { + type NoMethod WorkforcePool raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// WorkloadIdentityPoolOperationMetadata: Metadata for long-running -// WorkloadIdentityPool operations. -type WorkloadIdentityPoolOperationMetadata struct { -} - -// WorkloadIdentityPoolProvider: A configuration for an external -// identity provider. -type WorkloadIdentityPoolProvider struct { +// WorkforcePoolProvider: A configuration for an external identity +// provider. +type WorkforcePoolProvider struct { // AttributeCondition: A Common Expression Language // (https://opensource.google/projects/cel) expression, in plain text, // to restrict what otherwise valid authentication credentials issued by @@ -2721,66 +2970,65 @@ type WorkloadIdentityPoolProvider struct { // keywords may be referenced in the expressions: * `assertion`: JSON // representing the authentication credential issued by the provider. * // `google`: The Google attributes mapped from the assertion in the - // `attribute_mappings`. * `attribute`: The custom attributes mapped - // from the assertion in the `attribute_mappings`. The maximum length of - // the attribute condition expression is 4096 characters. If - // unspecified, all valid authentication credential are accepted. The - // following example shows how to only allow credentials with a mapped - // `google.groups` value of `admins`: ``` "'admins' in google.groups" - // ``` + // `attribute_mappings`. `google.profile_photo` and + // `google.display_name` are not supported. * `attribute`: The custom + // attributes mapped from the assertion in the `attribute_mappings`. The + // maximum length of the attribute condition expression is 4096 + // characters. If unspecified, all valid authentication credentials will + // be accepted. The following example shows how to only allow + // credentials with a mapped `google.groups` value of `admins`: ``` + // "'admins' in google.groups" ``` AttributeCondition string `json:"attributeCondition,omitempty"` - // AttributeMapping: Maps attributes from authentication credentials - // issued by an external identity provider to Google Cloud attributes, - // such as `subject` and `segment`. Each key must be a string specifying - // the Google Cloud IAM attribute to map to. The following keys are - // supported: * `google.subject`: The principal IAM is authenticating. - // You can reference this value in IAM bindings. This is also the - // subject that appears in Cloud Logging logs. Cannot exceed 127 bytes. - // * `google.groups`: Groups the external identity belongs to. You can + // AttributeMapping: Required. Maps attributes from the authentication + // credentials issued by an external identity provider to Google Cloud + // attributes, such as `subject` and `segment`. Each key must be a + // string specifying the Google Cloud IAM attribute to map to. The + // following keys are supported: * `google.subject`: The principal IAM + // is authenticating. You can reference this value in IAM bindings. This + // is also the subject that appears in Cloud Logging logs. This is a + // required field and the mapped subject cannot exceed 127 bytes. * + // `google.groups`: Groups the authenticating user belongs to. You can // grant groups access to resources using an IAM `principalSet` binding; - // access applies to all members of the group. You can also provide - // custom attributes by specifying `attribute.{custom_attribute}`, where - // `{custom_attribute}` is the name of the custom attribute to be - // mapped. You can define a maximum of 50 custom attributes. The maximum - // length of a mapped attribute key is 100 characters, and the key may - // only contain the characters [a-z0-9_]. You can reference these - // attributes in IAM policies to define fine-grained access for a - // workload to Google Cloud resources. For example: * `google.subject`: - // `principal://iam.googleapis.com/projects/{project}/locations/{location - // }/workloadIdentityPools/{pool}/subject/{value}` * `google.groups`: - // `principalSet://iam.googleapis.com/projects/{project}/locations/{locat - // ion}/workloadIdentityPools/{pool}/group/{value}` * - // `attribute.{custom_attribute}`: - // `principalSet://iam.googleapis.com/projects/{project}/locations/{locat - // ion}/workloadIdentityPools/{pool}/attribute.{custom_attribute}/{value} - // ` Each value must be a [Common Expression Language] - // (https://opensource.google/projects/cel) function that maps an - // identity provider credential to the normalized attribute specified by - // the corresponding map key. You can use the `assertion` keyword in the - // expression to access a JSON representation of the authentication - // credential issued by the provider. The maximum length of an attribute - // mapping expression is 2048 characters. When evaluated, the total size - // of all mapped attributes must not exceed 8KB. For AWS providers, if - // no attribute mapping is defined, the following default mapping - // applies: ``` { "google.subject":"assertion.arn", - // "attribute.aws_role": "assertion.arn.contains('assumed-role')" " ? - // assertion.arn.extract('{account_arn}assumed-role/')" " + - // 'assumed-role/'" " + - // assertion.arn.extract('assumed-role/{role_name}/')" " : - // assertion.arn", } ``` If any custom attribute mappings are defined, - // they must include a mapping to the `google.subject` attribute. For - // OIDC providers, you must supply a custom mapping, which must include - // the `google.subject` attribute. For example, the following maps the - // `sub` claim of the incoming credential to the `subject` attribute on - // a Google token: ``` {"google.subject": "assertion.sub"} ``` + // access applies to all members of the group. * `google.display_name`: + // The name of the authenticated user. This is an optional field and the + // mapped display name cannot exceed 100 bytes. If not set, + // `google.subject` will be displayed instead. This attribute cannot be + // referenced in IAM bindings. * `google.profile_photo`: The URL that + // specifies the authenticated user's thumbnail photo. This is an + // optional field. When set, the image will be visible as the user's + // profile picture. If not set, a generic user icon will be displayed + // instead. This attribute cannot be referenced in IAM bindings. You can + // also provide custom attributes by specifying + // `attribute.{custom_attribute}`, where {custom_attribute} is the name + // of the custom attribute to be mapped. You can define a maximum of 50 + // custom attributes. The maximum length of a mapped attribute key is + // 100 characters, and the key may only contain the characters + // [a-z0-9_]. You can reference these attributes in IAM policies to + // define fine-grained access for a workforce pool to Google Cloud + // resources. For example: * `google.subject`: + // `principal://iam.googleapis.com/locations/global/workforcePools/{pool} + // /subject/{value}` * `google.groups`: + // `principalSet://iam.googleapis.com/locations/global/workforcePools/{po + // ol}/group/{value}` * `attribute.{custom_attribute}`: + // `principalSet://iam.googleapis.com/locations/global/workforcePools/{po + // ol}/attribute.{custom_attribute}/{value}` Each value must be a + // [Common Expression Language] (https://opensource.google/projects/cel) + // function that maps an identity provider credential to the normalized + // attribute specified by the corresponding map key. You can use the + // `assertion` keyword in the expression to access a JSON representation + // of the authentication credential issued by the provider. The maximum + // length of an attribute mapping expression is 2048 characters. When + // evaluated, the total size of all mapped attributes must not exceed + // 4KB. For OIDC providers, you must supply a custom mapping that + // includes the `google.subject` attribute. For example, the following + // maps the `sub` claim of the incoming credential to the `subject` + // attribute on a Google token: ``` {"google.subject": "assertion.sub"} + // ``` AttributeMapping map[string]string `json:"attributeMapping,omitempty"` - // Aws: An Amazon Web Services identity provider. - Aws *Aws `json:"aws,omitempty"` - - // Description: A description for the provider. Cannot exceed 256 - // characters. + // Description: A user-specified description of the provider. Cannot + // exceed 256 characters. Description string `json:"description,omitempty"` // Disabled: Whether the provider is disabled. You cannot use a disabled @@ -2788,30 +3036,30 @@ type WorkloadIdentityPoolProvider struct { // access. Disabled bool `json:"disabled,omitempty"` - // DisplayName: A display name for the provider. Cannot exceed 32 - // characters. + // DisplayName: A user-specified display name for the provider. Cannot + // exceed 32 characters. DisplayName string `json:"displayName,omitempty"` - // Name: Output only. The resource name of the provider. + // Name: Output only. The resource name of the provider. Format: + // `locations/{location}/workforcePools/{workforce_pool_id}/providers/{pr + // ovider_id}` Name string `json:"name,omitempty"` - // Oidc: An OpenId Connect 1.0 identity provider. - Oidc *Oidc `json:"oidc,omitempty"` + // Oidc: An OpenId Connect 1.0 identity provider configuration. + Oidc *GoogleIamAdminV1WorkforcePoolProviderOidc `json:"oidc,omitempty"` - // Saml: An SAML 2.0 identity provider. - Saml *Saml `json:"saml,omitempty"` + // Saml: A SAML identity provider configuration. + Saml *GoogleIamAdminV1WorkforcePoolProviderSaml `json:"saml,omitempty"` // State: Output only. The state of the provider. // // Possible values: // "STATE_UNSPECIFIED" - State unspecified. - // "ACTIVE" - The provider is active, and may be used to validate + // "ACTIVE" - The provider is active and may be used to validate // authentication credentials. // "DELETED" - The provider is soft-deleted. Soft-deleted providers // are permanently deleted after approximately 30 days. You can restore - // a soft-deleted provider using UndeleteWorkloadIdentityPoolProvider. - // You cannot reuse the ID of a soft-deleted provider until it is - // permanently deleted. + // a soft-deleted provider using UndeleteWorkforcePoolProvider. State string `json:"state,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -2836,17 +3084,215 @@ type WorkloadIdentityPoolProvider struct { NullFields []string `json:"-"` } -func (s *WorkloadIdentityPoolProvider) MarshalJSON() ([]byte, error) { - type NoMethod WorkloadIdentityPoolProvider +func (s *WorkforcePoolProvider) MarshalJSON() ([]byte, error) { + type NoMethod WorkforcePoolProvider raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// method id "iam.iamPolicies.lintPolicy": - -type IamPoliciesLintPolicyCall struct { - s *Service - lintpolicyrequest *LintPolicyRequest +// WorkloadIdentityPool: Represents a collection of external workload +// identities. You can define IAM policies to grant these identities +// access to Google Cloud resources. +type WorkloadIdentityPool struct { + // Description: A description of the pool. Cannot exceed 256 characters. + Description string `json:"description,omitempty"` + + // Disabled: Whether the pool is disabled. You cannot use a disabled + // pool to exchange tokens, or use existing tokens to access resources. + // If the pool is re-enabled, existing tokens grant access again. + Disabled bool `json:"disabled,omitempty"` + + // DisplayName: A display name for the pool. Cannot exceed 32 + // characters. + DisplayName string `json:"displayName,omitempty"` + + // Name: Output only. The resource name of the pool. + Name string `json:"name,omitempty"` + + // State: Output only. The state of the pool. + // + // Possible values: + // "STATE_UNSPECIFIED" - State unspecified. + // "ACTIVE" - The pool is active, and may be used in Google Cloud + // policies. + // "DELETED" - The pool is soft-deleted. Soft-deleted pools are + // permanently deleted after approximately 30 days. You can restore a + // soft-deleted pool using UndeleteWorkloadIdentityPool. You cannot + // reuse the ID of a soft-deleted pool until it is permanently deleted. + // While a pool is deleted, you cannot use it to exchange tokens, or use + // existing tokens to access resources. If the pool is undeleted, + // existing tokens grant access again. + State string `json:"state,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Description") 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. "Description") 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 *WorkloadIdentityPool) MarshalJSON() ([]byte, error) { + type NoMethod WorkloadIdentityPool + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// WorkloadIdentityPoolOperationMetadata: Metadata for long-running +// WorkloadIdentityPool operations. +type WorkloadIdentityPoolOperationMetadata struct { +} + +// WorkloadIdentityPoolProvider: A configuration for an external +// identity provider. +type WorkloadIdentityPoolProvider struct { + // AttributeCondition: A Common Expression Language + // (https://opensource.google/projects/cel) expression, in plain text, + // to restrict what otherwise valid authentication credentials issued by + // the provider should not be accepted. The expression must output a + // boolean representing whether to allow the federation. The following + // keywords may be referenced in the expressions: * `assertion`: JSON + // representing the authentication credential issued by the provider. * + // `google`: The Google attributes mapped from the assertion in the + // `attribute_mappings`. * `attribute`: The custom attributes mapped + // from the assertion in the `attribute_mappings`. The maximum length of + // the attribute condition expression is 4096 characters. If + // unspecified, all valid authentication credential are accepted. The + // following example shows how to only allow credentials with a mapped + // `google.groups` value of `admins`: ``` "'admins' in google.groups" + // ``` + AttributeCondition string `json:"attributeCondition,omitempty"` + + // AttributeMapping: Maps attributes from authentication credentials + // issued by an external identity provider to Google Cloud attributes, + // such as `subject` and `segment`. Each key must be a string specifying + // the Google Cloud IAM attribute to map to. The following keys are + // supported: * `google.subject`: The principal IAM is authenticating. + // You can reference this value in IAM bindings. This is also the + // subject that appears in Cloud Logging logs. Cannot exceed 127 bytes. + // * `google.groups`: Groups the external identity belongs to. You can + // grant groups access to resources using an IAM `principalSet` binding; + // access applies to all members of the group. You can also provide + // custom attributes by specifying `attribute.{custom_attribute}`, where + // `{custom_attribute}` is the name of the custom attribute to be + // mapped. You can define a maximum of 50 custom attributes. The maximum + // length of a mapped attribute key is 100 characters, and the key may + // only contain the characters [a-z0-9_]. You can reference these + // attributes in IAM policies to define fine-grained access for a + // workload to Google Cloud resources. For example: * `google.subject`: + // `principal://iam.googleapis.com/projects/{project}/locations/{location + // }/workloadIdentityPools/{pool}/subject/{value}` * `google.groups`: + // `principalSet://iam.googleapis.com/projects/{project}/locations/{locat + // ion}/workloadIdentityPools/{pool}/group/{value}` * + // `attribute.{custom_attribute}`: + // `principalSet://iam.googleapis.com/projects/{project}/locations/{locat + // ion}/workloadIdentityPools/{pool}/attribute.{custom_attribute}/{value} + // ` Each value must be a [Common Expression Language] + // (https://opensource.google/projects/cel) function that maps an + // identity provider credential to the normalized attribute specified by + // the corresponding map key. You can use the `assertion` keyword in the + // expression to access a JSON representation of the authentication + // credential issued by the provider. The maximum length of an attribute + // mapping expression is 2048 characters. When evaluated, the total size + // of all mapped attributes must not exceed 8KB. For AWS providers, if + // no attribute mapping is defined, the following default mapping + // applies: ``` { "google.subject":"assertion.arn", + // "attribute.aws_role": "assertion.arn.contains('assumed-role')" " ? + // assertion.arn.extract('{account_arn}assumed-role/')" " + + // 'assumed-role/'" " + + // assertion.arn.extract('assumed-role/{role_name}/')" " : + // assertion.arn", } ``` If any custom attribute mappings are defined, + // they must include a mapping to the `google.subject` attribute. For + // OIDC providers, you must supply a custom mapping, which must include + // the `google.subject` attribute. For example, the following maps the + // `sub` claim of the incoming credential to the `subject` attribute on + // a Google token: ``` {"google.subject": "assertion.sub"} ``` + AttributeMapping map[string]string `json:"attributeMapping,omitempty"` + + // Aws: An Amazon Web Services identity provider. + Aws *Aws `json:"aws,omitempty"` + + // Description: A description for the provider. Cannot exceed 256 + // characters. + Description string `json:"description,omitempty"` + + // Disabled: Whether the provider is disabled. You cannot use a disabled + // provider to exchange tokens. However, existing tokens still grant + // access. + Disabled bool `json:"disabled,omitempty"` + + // DisplayName: A display name for the provider. Cannot exceed 32 + // characters. + DisplayName string `json:"displayName,omitempty"` + + // Name: Output only. The resource name of the provider. + Name string `json:"name,omitempty"` + + // Oidc: An OpenId Connect 1.0 identity provider. + Oidc *Oidc `json:"oidc,omitempty"` + + // Saml: An SAML 2.0 identity provider. + Saml *Saml `json:"saml,omitempty"` + + // State: Output only. The state of the provider. + // + // Possible values: + // "STATE_UNSPECIFIED" - State unspecified. + // "ACTIVE" - The provider is active, and may be used to validate + // authentication credentials. + // "DELETED" - The provider is soft-deleted. Soft-deleted providers + // are permanently deleted after approximately 30 days. You can restore + // a soft-deleted provider using UndeleteWorkloadIdentityPoolProvider. + // You cannot reuse the ID of a soft-deleted provider until it is + // permanently deleted. + State string `json:"state,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AttributeCondition") + // 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. "AttributeCondition") 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 *WorkloadIdentityPoolProvider) MarshalJSON() ([]byte, error) { + type NoMethod WorkloadIdentityPoolProvider + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "iam.iamPolicies.lintPolicy": + +type IamPoliciesLintPolicyCall struct { + s *Service + lintpolicyrequest *LintPolicyRequest urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header @@ -2959,10 +3405,2650 @@ func (c *IamPoliciesLintPolicyCall) Do(opts ...googleapi.CallOption) (*LintPolic // "parameters": {}, // "path": "v1/iamPolicies:lintPolicy", // "request": { - // "$ref": "LintPolicyRequest" + // "$ref": "LintPolicyRequest" + // }, + // "response": { + // "$ref": "LintPolicyResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "iam.iamPolicies.queryAuditableServices": + +type IamPoliciesQueryAuditableServicesCall struct { + s *Service + queryauditableservicesrequest *QueryAuditableServicesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// QueryAuditableServices: Returns a list of services that allow you to +// opt into audit logs that are not generated by default. To learn more +// about audit logs, see the Logging documentation +// (https://cloud.google.com/logging/docs/audit). +func (r *IamPoliciesService) QueryAuditableServices(queryauditableservicesrequest *QueryAuditableServicesRequest) *IamPoliciesQueryAuditableServicesCall { + c := &IamPoliciesQueryAuditableServicesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.queryauditableservicesrequest = queryauditableservicesrequest + 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 *IamPoliciesQueryAuditableServicesCall) Fields(s ...googleapi.Field) *IamPoliciesQueryAuditableServicesCall { + 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 *IamPoliciesQueryAuditableServicesCall) Context(ctx context.Context) *IamPoliciesQueryAuditableServicesCall { + 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 *IamPoliciesQueryAuditableServicesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *IamPoliciesQueryAuditableServicesCall) 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.queryauditableservicesrequest) + 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, "v1/iamPolicies:queryAuditableServices") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "iam.iamPolicies.queryAuditableServices" call. +// Exactly one of *QueryAuditableServicesResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *QueryAuditableServicesResponse.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 *IamPoliciesQueryAuditableServicesCall) Do(opts ...googleapi.CallOption) (*QueryAuditableServicesResponse, 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 := &QueryAuditableServicesResponse{ + 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 a list of services that allow you to opt into audit logs that are not generated by default. To learn more about audit logs, see the [Logging documentation](https://cloud.google.com/logging/docs/audit).", + // "flatPath": "v1/iamPolicies:queryAuditableServices", + // "httpMethod": "POST", + // "id": "iam.iamPolicies.queryAuditableServices", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1/iamPolicies:queryAuditableServices", + // "request": { + // "$ref": "QueryAuditableServicesRequest" + // }, + // "response": { + // "$ref": "QueryAuditableServicesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "iam.locations.workforcePools.create": + +type LocationsWorkforcePoolsCreateCall struct { + s *Service + location string + workforcepool *WorkforcePool + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new WorkforcePool. You cannot reuse the name of a +// deleted pool until 30 days after deletion. +// +// - location: The location of the pool to create. Format: +// `locations/{location}`. +func (r *LocationsWorkforcePoolsService) Create(location string, workforcepool *WorkforcePool) *LocationsWorkforcePoolsCreateCall { + c := &LocationsWorkforcePoolsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.location = location + c.workforcepool = workforcepool + return c +} + +// WorkforcePoolId sets the optional parameter "workforcePoolId": The ID +// to use for the pool, which becomes the final component of the +// resource name. The IDs must be a globally unique string of 6 to 63 +// lowercase letters, digits, or hyphens. It must start with a letter, +// and cannot have a trailing hyphen. The prefix `gcp-` is reserved for +// use by Google, and may not be specified. +func (c *LocationsWorkforcePoolsCreateCall) WorkforcePoolId(workforcePoolId string) *LocationsWorkforcePoolsCreateCall { + c.urlParams_.Set("workforcePoolId", workforcePoolId) + 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 *LocationsWorkforcePoolsCreateCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsCreateCall { + 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 *LocationsWorkforcePoolsCreateCall) Context(ctx context.Context) *LocationsWorkforcePoolsCreateCall { + 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 *LocationsWorkforcePoolsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *LocationsWorkforcePoolsCreateCall) 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.workforcepool) + 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, "v1/{+location}/workforcePools") + 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{ + "location": c.location, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "iam.locations.workforcePools.create" 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 *LocationsWorkforcePoolsCreateCall) 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": "Creates a new WorkforcePool. You cannot reuse the name of a deleted pool until 30 days after deletion.", + // "flatPath": "v1/locations/{locationsId}/workforcePools", + // "httpMethod": "POST", + // "id": "iam.locations.workforcePools.create", + // "parameterOrder": [ + // "location" + // ], + // "parameters": { + // "location": { + // "description": "The location of the pool to create. Format: `locations/{location}`.", + // "location": "path", + // "pattern": "^locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "workforcePoolId": { + // "description": "The ID to use for the pool, which becomes the final component of the resource name. The IDs must be a globally unique string of 6 to 63 lowercase letters, digits, or hyphens. It must start with a letter, and cannot have a trailing hyphen. The prefix `gcp-` is reserved for use by Google, and may not be specified.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+location}/workforcePools", + // "request": { + // "$ref": "WorkforcePool" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "iam.locations.workforcePools.delete": + +type LocationsWorkforcePoolsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a WorkforcePool. You cannot use a deleted +// WorkforcePool to exchange external credentials for Google Cloud +// credentials. However, deletion does not revoke credentials that have +// already been issued. Credentials issued for a deleted pool do not +// grant access to resources. If the pool is undeleted, and the +// credentials are not expired, they grant access again. You can +// undelete a pool for 30 days. After 30 days, deletion is permanent. +// You cannot update deleted pools. However, you can view and list them. +// +// - name: The name of the pool to delete. Format: +// `locations/{location}/workforcePools/{workforce_pool_id}`. +func (r *LocationsWorkforcePoolsService) Delete(name string) *LocationsWorkforcePoolsDeleteCall { + c := &LocationsWorkforcePoolsDeleteCall{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 *LocationsWorkforcePoolsDeleteCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsDeleteCall { + 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 *LocationsWorkforcePoolsDeleteCall) Context(ctx context.Context) *LocationsWorkforcePoolsDeleteCall { + 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 *LocationsWorkforcePoolsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *LocationsWorkforcePoolsDeleteCall) 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, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", 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 "iam.locations.workforcePools.delete" 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 *LocationsWorkforcePoolsDeleteCall) 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 a WorkforcePool. You cannot use a deleted WorkforcePool to exchange external credentials for Google Cloud credentials. However, deletion does not revoke credentials that have already been issued. Credentials issued for a deleted pool do not grant access to resources. If the pool is undeleted, and the credentials are not expired, they grant access again. You can undelete a pool for 30 days. After 30 days, deletion is permanent. You cannot update deleted pools. However, you can view and list them.", + // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}", + // "httpMethod": "DELETE", + // "id": "iam.locations.workforcePools.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the pool to delete. Format: `locations/{location}/workforcePools/{workforce_pool_id}`", + // "location": "path", + // "pattern": "^locations/[^/]+/workforcePools/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "iam.locations.workforcePools.get": + +type LocationsWorkforcePoolsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets an individual WorkforcePool. +// +// - name: The name of the pool to retrieve. Format: +// `locations/{location}/workforcePools/{workforce_pool_id}`. +func (r *LocationsWorkforcePoolsService) Get(name string) *LocationsWorkforcePoolsGetCall { + c := &LocationsWorkforcePoolsGetCall{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 *LocationsWorkforcePoolsGetCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsGetCall { + 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 *LocationsWorkforcePoolsGetCall) IfNoneMatch(entityTag string) *LocationsWorkforcePoolsGetCall { + 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 *LocationsWorkforcePoolsGetCall) Context(ctx context.Context) *LocationsWorkforcePoolsGetCall { + 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 *LocationsWorkforcePoolsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *LocationsWorkforcePoolsGetCall) 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, "v1/{+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 "iam.locations.workforcePools.get" call. +// Exactly one of *WorkforcePool or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *WorkforcePool.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 *LocationsWorkforcePoolsGetCall) Do(opts ...googleapi.CallOption) (*WorkforcePool, 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 := &WorkforcePool{ + 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 an individual WorkforcePool.", + // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}", + // "httpMethod": "GET", + // "id": "iam.locations.workforcePools.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the pool to retrieve. Format: `locations/{location}/workforcePools/{workforce_pool_id}`", + // "location": "path", + // "pattern": "^locations/[^/]+/workforcePools/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "WorkforcePool" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "iam.locations.workforcePools.getIamPolicy": + +type LocationsWorkforcePoolsGetIamPolicyCall struct { + s *Service + resource string + getiampolicyrequest *GetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets IAM policies on a WorkforcePool. +// +// - resource: REQUIRED: The resource for which the policy is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *LocationsWorkforcePoolsService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *LocationsWorkforcePoolsGetIamPolicyCall { + c := &LocationsWorkforcePoolsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.getiampolicyrequest = getiampolicyrequest + 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 *LocationsWorkforcePoolsGetIamPolicyCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsGetIamPolicyCall { + 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 *LocationsWorkforcePoolsGetIamPolicyCall) Context(ctx context.Context) *LocationsWorkforcePoolsGetIamPolicyCall { + 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 *LocationsWorkforcePoolsGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *LocationsWorkforcePoolsGetIamPolicyCall) 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.getiampolicyrequest) + 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, "v1/{+resource}:getIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "iam.locations.workforcePools.getIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.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 *LocationsWorkforcePoolsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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 := &Policy{ + 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 IAM policies on a WorkforcePool.", + // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}:getIamPolicy", + // "httpMethod": "POST", + // "id": "iam.locations.workforcePools.getIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^locations/[^/]+/workforcePools/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:getIamPolicy", + // "request": { + // "$ref": "GetIamPolicyRequest" + // }, + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "iam.locations.workforcePools.list": + +type LocationsWorkforcePoolsListCall struct { + s *Service + location string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all non-deleted WorkforcePools under the specified +// parent. If `show_deleted` is set to `true`, then deleted pools are +// also listed. +// +// - location: The location of the pool. Format: `locations/{location}`. +func (r *LocationsWorkforcePoolsService) List(location string) *LocationsWorkforcePoolsListCall { + c := &LocationsWorkforcePoolsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.location = location + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of pools to return. If unspecified, at most 50 pools will be +// returned. The maximum value is 1000; values above 1000 are truncated +// to 1000. +func (c *LocationsWorkforcePoolsListCall) PageSize(pageSize int64) *LocationsWorkforcePoolsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListWorkforcePools` call. Provide this to +// retrieve the subsequent page. +func (c *LocationsWorkforcePoolsListCall) PageToken(pageToken string) *LocationsWorkforcePoolsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Parent sets the optional parameter "parent": Required. The parent +// resource to list pools for. Format: `organizations/{org-id}`. +func (c *LocationsWorkforcePoolsListCall) Parent(parent string) *LocationsWorkforcePoolsListCall { + c.urlParams_.Set("parent", parent) + return c +} + +// ShowDeleted sets the optional parameter "showDeleted": Whether to +// return soft-deleted pools. +func (c *LocationsWorkforcePoolsListCall) ShowDeleted(showDeleted bool) *LocationsWorkforcePoolsListCall { + c.urlParams_.Set("showDeleted", fmt.Sprint(showDeleted)) + 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 *LocationsWorkforcePoolsListCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsListCall { + 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 *LocationsWorkforcePoolsListCall) IfNoneMatch(entityTag string) *LocationsWorkforcePoolsListCall { + 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 *LocationsWorkforcePoolsListCall) Context(ctx context.Context) *LocationsWorkforcePoolsListCall { + 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 *LocationsWorkforcePoolsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *LocationsWorkforcePoolsListCall) 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, "v1/{+location}/workforcePools") + 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{ + "location": c.location, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "iam.locations.workforcePools.list" call. +// Exactly one of *ListWorkforcePoolsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListWorkforcePoolsResponse.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 *LocationsWorkforcePoolsListCall) Do(opts ...googleapi.CallOption) (*ListWorkforcePoolsResponse, 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 := &ListWorkforcePoolsResponse{ + 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 all non-deleted WorkforcePools under the specified parent. If `show_deleted` is set to `true`, then deleted pools are also listed.", + // "flatPath": "v1/locations/{locationsId}/workforcePools", + // "httpMethod": "GET", + // "id": "iam.locations.workforcePools.list", + // "parameterOrder": [ + // "location" + // ], + // "parameters": { + // "location": { + // "description": "The location of the pool. Format: `locations/{location}`.", + // "location": "path", + // "pattern": "^locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of pools to return. If unspecified, at most 50 pools will be returned. The maximum value is 1000; values above 1000 are truncated to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `ListWorkforcePools` call. Provide this to retrieve the subsequent page.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent resource to list pools for. Format: `organizations/{org-id}`.", + // "location": "query", + // "type": "string" + // }, + // "showDeleted": { + // "description": "Whether to return soft-deleted pools.", + // "location": "query", + // "type": "boolean" + // } + // }, + // "path": "v1/{+location}/workforcePools", + // "response": { + // "$ref": "ListWorkforcePoolsResponse" + // }, + // "scopes": [ + // "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 *LocationsWorkforcePoolsListCall) Pages(ctx context.Context, f func(*ListWorkforcePoolsResponse) 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 "iam.locations.workforcePools.patch": + +type LocationsWorkforcePoolsPatchCall struct { + s *Service + name string + workforcepool *WorkforcePool + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates an existing WorkforcePool. +// +// - name: Output only. The resource name of the pool. Format: +// `locations/{location}/workforcePools/{workforce_pool_id}`. +func (r *LocationsWorkforcePoolsService) Patch(name string, workforcepool *WorkforcePool) *LocationsWorkforcePoolsPatchCall { + c := &LocationsWorkforcePoolsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.workforcepool = workforcepool + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The +// list of fields to update. +func (c *LocationsWorkforcePoolsPatchCall) UpdateMask(updateMask string) *LocationsWorkforcePoolsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + 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 *LocationsWorkforcePoolsPatchCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsPatchCall { + 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 *LocationsWorkforcePoolsPatchCall) Context(ctx context.Context) *LocationsWorkforcePoolsPatchCall { + 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 *LocationsWorkforcePoolsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *LocationsWorkforcePoolsPatchCall) 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.workforcepool) + 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, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", 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 "iam.locations.workforcePools.patch" 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 *LocationsWorkforcePoolsPatchCall) 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 an existing WorkforcePool.", + // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}", + // "httpMethod": "PATCH", + // "id": "iam.locations.workforcePools.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. The resource name of the pool. Format: `locations/{location}/workforcePools/{workforce_pool_id}`", + // "location": "path", + // "pattern": "^locations/[^/]+/workforcePools/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The list of fields to update.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "WorkforcePool" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "iam.locations.workforcePools.setIamPolicy": + +type LocationsWorkforcePoolsSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets IAM policies on a WorkforcePool. +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *LocationsWorkforcePoolsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *LocationsWorkforcePoolsSetIamPolicyCall { + c := &LocationsWorkforcePoolsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest + 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 *LocationsWorkforcePoolsSetIamPolicyCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsSetIamPolicyCall { + 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 *LocationsWorkforcePoolsSetIamPolicyCall) Context(ctx context.Context) *LocationsWorkforcePoolsSetIamPolicyCall { + 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 *LocationsWorkforcePoolsSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *LocationsWorkforcePoolsSetIamPolicyCall) 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.setiampolicyrequest) + 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, "v1/{+resource}:setIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "iam.locations.workforcePools.setIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.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 *LocationsWorkforcePoolsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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 := &Policy{ + 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": "Sets IAM policies on a WorkforcePool.", + // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "iam.locations.workforcePools.setIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^locations/[^/]+/workforcePools/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "iam.locations.workforcePools.testIamPermissions": + +type LocationsWorkforcePoolsTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns the caller's permissions on the +// WorkforcePool. If the pool does not exist, this will return an empty +// set of permissions, not a `NOT_FOUND` error. +// +// - resource: REQUIRED: The resource for which the policy detail is +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *LocationsWorkforcePoolsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *LocationsWorkforcePoolsTestIamPermissionsCall { + c := &LocationsWorkforcePoolsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + 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 *LocationsWorkforcePoolsTestIamPermissionsCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsTestIamPermissionsCall { + 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 *LocationsWorkforcePoolsTestIamPermissionsCall) Context(ctx context.Context) *LocationsWorkforcePoolsTestIamPermissionsCall { + 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 *LocationsWorkforcePoolsTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *LocationsWorkforcePoolsTestIamPermissionsCall) 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.testiampermissionsrequest) + 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, "v1/{+resource}:testIamPermissions") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "iam.locations.workforcePools.testIamPermissions" call. +// Exactly one of *TestIamPermissionsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.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 *LocationsWorkforcePoolsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, 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 := &TestIamPermissionsResponse{ + 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 the caller's permissions on the WorkforcePool. If the pool does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error.", + // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "iam.locations.workforcePools.testIamPermissions", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^locations/[^/]+/workforcePools/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:testIamPermissions", + // "request": { + // "$ref": "TestIamPermissionsRequest" + // }, + // "response": { + // "$ref": "TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "iam.locations.workforcePools.undelete": + +type LocationsWorkforcePoolsUndeleteCall struct { + s *Service + name string + undeleteworkforcepoolrequest *UndeleteWorkforcePoolRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Undelete: Undeletes a WorkforcePool, as long as it was deleted fewer +// than 30 days ago. +// +// - name: The name of the pool to undelete. Format: +// `locations/{location}/workforcePools/{workforce_pool_id}`. +func (r *LocationsWorkforcePoolsService) Undelete(name string, undeleteworkforcepoolrequest *UndeleteWorkforcePoolRequest) *LocationsWorkforcePoolsUndeleteCall { + c := &LocationsWorkforcePoolsUndeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.undeleteworkforcepoolrequest = undeleteworkforcepoolrequest + 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 *LocationsWorkforcePoolsUndeleteCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsUndeleteCall { + 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 *LocationsWorkforcePoolsUndeleteCall) Context(ctx context.Context) *LocationsWorkforcePoolsUndeleteCall { + 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 *LocationsWorkforcePoolsUndeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *LocationsWorkforcePoolsUndeleteCall) 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.undeleteworkforcepoolrequest) + 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, "v1/{+name}:undelete") + 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{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "iam.locations.workforcePools.undelete" 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 *LocationsWorkforcePoolsUndeleteCall) 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": "Undeletes a WorkforcePool, as long as it was deleted fewer than 30 days ago.", + // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}:undelete", + // "httpMethod": "POST", + // "id": "iam.locations.workforcePools.undelete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the pool to undelete. Format: `locations/{location}/workforcePools/{workforce_pool_id}`", + // "location": "path", + // "pattern": "^locations/[^/]+/workforcePools/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:undelete", + // "request": { + // "$ref": "UndeleteWorkforcePoolRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "iam.locations.workforcePools.operations.get": + +type LocationsWorkforcePoolsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +// +// - name: The name of the operation resource. +func (r *LocationsWorkforcePoolsOperationsService) Get(name string) *LocationsWorkforcePoolsOperationsGetCall { + c := &LocationsWorkforcePoolsOperationsGetCall{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 *LocationsWorkforcePoolsOperationsGetCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsOperationsGetCall { + 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 *LocationsWorkforcePoolsOperationsGetCall) IfNoneMatch(entityTag string) *LocationsWorkforcePoolsOperationsGetCall { + 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 *LocationsWorkforcePoolsOperationsGetCall) Context(ctx context.Context) *LocationsWorkforcePoolsOperationsGetCall { + 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 *LocationsWorkforcePoolsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *LocationsWorkforcePoolsOperationsGetCall) 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, "v1/{+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 "iam.locations.workforcePools.operations.get" 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 *LocationsWorkforcePoolsOperationsGetCall) 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": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "iam.locations.workforcePools.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^locations/[^/]+/workforcePools/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "iam.locations.workforcePools.providers.create": + +type LocationsWorkforcePoolsProvidersCreateCall struct { + s *Service + parent string + workforcepoolprovider *WorkforcePoolProvider + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new WorkforcePoolProvider in a WorkforcePool. You +// cannot reuse the name of a deleted provider until 30 days after +// deletion. +// +// - parent: The pool to create this provider in. Format: +// `locations/{location}/workforcePools/{workforce_pool_id}`. +func (r *LocationsWorkforcePoolsProvidersService) Create(parent string, workforcepoolprovider *WorkforcePoolProvider) *LocationsWorkforcePoolsProvidersCreateCall { + c := &LocationsWorkforcePoolsProvidersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.workforcepoolprovider = workforcepoolprovider + return c +} + +// WorkforcePoolProviderId sets the optional parameter +// "workforcePoolProviderId": Required. The ID for the provider, which +// becomes the final component of the resource name. This value must be +// 4-32 characters, and may contain the characters [a-z0-9-]. The prefix +// `gcp-` is reserved for use by Google, and may not be specified. +func (c *LocationsWorkforcePoolsProvidersCreateCall) WorkforcePoolProviderId(workforcePoolProviderId string) *LocationsWorkforcePoolsProvidersCreateCall { + c.urlParams_.Set("workforcePoolProviderId", workforcePoolProviderId) + 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 *LocationsWorkforcePoolsProvidersCreateCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsProvidersCreateCall { + 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 *LocationsWorkforcePoolsProvidersCreateCall) Context(ctx context.Context) *LocationsWorkforcePoolsProvidersCreateCall { + 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 *LocationsWorkforcePoolsProvidersCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *LocationsWorkforcePoolsProvidersCreateCall) 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.workforcepoolprovider) + 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, "v1/{+parent}/providers") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "iam.locations.workforcePools.providers.create" 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 *LocationsWorkforcePoolsProvidersCreateCall) 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": "Creates a new WorkforcePoolProvider in a WorkforcePool. You cannot reuse the name of a deleted provider until 30 days after deletion.", + // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers", + // "httpMethod": "POST", + // "id": "iam.locations.workforcePools.providers.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The pool to create this provider in. Format: `locations/{location}/workforcePools/{workforce_pool_id}`", + // "location": "path", + // "pattern": "^locations/[^/]+/workforcePools/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "workforcePoolProviderId": { + // "description": "Required. The ID for the provider, which becomes the final component of the resource name. This value must be 4-32 characters, and may contain the characters [a-z0-9-]. The prefix `gcp-` is reserved for use by Google, and may not be specified.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/providers", + // "request": { + // "$ref": "WorkforcePoolProvider" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "iam.locations.workforcePools.providers.delete": + +type LocationsWorkforcePoolsProvidersDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a WorkforcePoolProvider. Deleting a provider does not +// revoke credentials that have already been\ issued; they continue to +// grant access. You can undelete a provider for 30 days. After 30 days, +// deletion is permanent. You cannot update deleted providers. However, +// you can view and list them. +// +// - name: The name of the provider to delete. Format: +// `locations/{location}/workforcePools/{workforce_pool_id}/providers/{ +// provider_id}`. +func (r *LocationsWorkforcePoolsProvidersService) Delete(name string) *LocationsWorkforcePoolsProvidersDeleteCall { + c := &LocationsWorkforcePoolsProvidersDeleteCall{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 *LocationsWorkforcePoolsProvidersDeleteCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsProvidersDeleteCall { + 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 *LocationsWorkforcePoolsProvidersDeleteCall) Context(ctx context.Context) *LocationsWorkforcePoolsProvidersDeleteCall { + 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 *LocationsWorkforcePoolsProvidersDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *LocationsWorkforcePoolsProvidersDeleteCall) 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, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", 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 "iam.locations.workforcePools.providers.delete" 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 *LocationsWorkforcePoolsProvidersDeleteCall) 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 a WorkforcePoolProvider. Deleting a provider does not revoke credentials that have already been\\ issued; they continue to grant access. You can undelete a provider for 30 days. After 30 days, deletion is permanent. You cannot update deleted providers. However, you can view and list them.", + // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers/{providersId}", + // "httpMethod": "DELETE", + // "id": "iam.locations.workforcePools.providers.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the provider to delete. Format: `locations/{location}/workforcePools/{workforce_pool_id}/providers/{provider_id}`", + // "location": "path", + // "pattern": "^locations/[^/]+/workforcePools/[^/]+/providers/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "iam.locations.workforcePools.providers.get": + +type LocationsWorkforcePoolsProvidersGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets an individual WorkforcePoolProvider. +// +// - name: The name of the provider to retrieve. Format: +// `locations/{location}/workforcePools/{workforce_pool_id}/providers/{ +// provider_id}`. +func (r *LocationsWorkforcePoolsProvidersService) Get(name string) *LocationsWorkforcePoolsProvidersGetCall { + c := &LocationsWorkforcePoolsProvidersGetCall{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 *LocationsWorkforcePoolsProvidersGetCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsProvidersGetCall { + 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 *LocationsWorkforcePoolsProvidersGetCall) IfNoneMatch(entityTag string) *LocationsWorkforcePoolsProvidersGetCall { + 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 *LocationsWorkforcePoolsProvidersGetCall) Context(ctx context.Context) *LocationsWorkforcePoolsProvidersGetCall { + 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 *LocationsWorkforcePoolsProvidersGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *LocationsWorkforcePoolsProvidersGetCall) 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, "v1/{+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 "iam.locations.workforcePools.providers.get" call. +// Exactly one of *WorkforcePoolProvider or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *WorkforcePoolProvider.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 *LocationsWorkforcePoolsProvidersGetCall) Do(opts ...googleapi.CallOption) (*WorkforcePoolProvider, 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 := &WorkforcePoolProvider{ + 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 an individual WorkforcePoolProvider.", + // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers/{providersId}", + // "httpMethod": "GET", + // "id": "iam.locations.workforcePools.providers.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the provider to retrieve. Format: `locations/{location}/workforcePools/{workforce_pool_id}/providers/{provider_id}`", + // "location": "path", + // "pattern": "^locations/[^/]+/workforcePools/[^/]+/providers/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "WorkforcePoolProvider" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "iam.locations.workforcePools.providers.list": + +type LocationsWorkforcePoolsProvidersListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all non-deleted WorkforcePoolProviders in a +// WorkforcePool. If `show_deleted` is set to `true`, then deleted +// providers are also listed. +// +// - parent: The pool to list providers for. Format: +// `locations/{location}/workforcePools/{workforce_pool_id}`. +func (r *LocationsWorkforcePoolsProvidersService) List(parent string) *LocationsWorkforcePoolsProvidersListCall { + c := &LocationsWorkforcePoolsProvidersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of providers to return. If unspecified, at most 50 providers are +// returned. The maximum value is 100; values above 100 are truncated to +// 100. +func (c *LocationsWorkforcePoolsProvidersListCall) PageSize(pageSize int64) *LocationsWorkforcePoolsProvidersListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListWorkforcePoolProviders` call. Provide +// this to retrieve the subsequent page. +func (c *LocationsWorkforcePoolsProvidersListCall) PageToken(pageToken string) *LocationsWorkforcePoolsProvidersListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ShowDeleted sets the optional parameter "showDeleted": Whether to +// return soft-deleted providers. +func (c *LocationsWorkforcePoolsProvidersListCall) ShowDeleted(showDeleted bool) *LocationsWorkforcePoolsProvidersListCall { + c.urlParams_.Set("showDeleted", fmt.Sprint(showDeleted)) + 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 *LocationsWorkforcePoolsProvidersListCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsProvidersListCall { + 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 *LocationsWorkforcePoolsProvidersListCall) IfNoneMatch(entityTag string) *LocationsWorkforcePoolsProvidersListCall { + 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 *LocationsWorkforcePoolsProvidersListCall) Context(ctx context.Context) *LocationsWorkforcePoolsProvidersListCall { + 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 *LocationsWorkforcePoolsProvidersListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *LocationsWorkforcePoolsProvidersListCall) 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, "v1/{+parent}/providers") + 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 "iam.locations.workforcePools.providers.list" call. +// Exactly one of *ListWorkforcePoolProvidersResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListWorkforcePoolProvidersResponse.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 *LocationsWorkforcePoolsProvidersListCall) Do(opts ...googleapi.CallOption) (*ListWorkforcePoolProvidersResponse, 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 := &ListWorkforcePoolProvidersResponse{ + 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 all non-deleted WorkforcePoolProviders in a WorkforcePool. If `show_deleted` is set to `true`, then deleted providers are also listed.", + // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers", + // "httpMethod": "GET", + // "id": "iam.locations.workforcePools.providers.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of providers to return. If unspecified, at most 50 providers are returned. The maximum value is 100; values above 100 are truncated to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `ListWorkforcePoolProviders` call. Provide this to retrieve the subsequent page.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The pool to list providers for. Format: `locations/{location}/workforcePools/{workforce_pool_id}`", + // "location": "path", + // "pattern": "^locations/[^/]+/workforcePools/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "showDeleted": { + // "description": "Whether to return soft-deleted providers.", + // "location": "query", + // "type": "boolean" + // } + // }, + // "path": "v1/{+parent}/providers", + // "response": { + // "$ref": "ListWorkforcePoolProvidersResponse" + // }, + // "scopes": [ + // "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 *LocationsWorkforcePoolsProvidersListCall) Pages(ctx context.Context, f func(*ListWorkforcePoolProvidersResponse) 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 "iam.locations.workforcePools.providers.patch": + +type LocationsWorkforcePoolsProvidersPatchCall struct { + s *Service + name string + workforcepoolprovider *WorkforcePoolProvider + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates an existing WorkforcePoolProvider. +// +// - name: Output only. The resource name of the provider. Format: +// `locations/{location}/workforcePools/{workforce_pool_id}/providers/{ +// provider_id}`. +func (r *LocationsWorkforcePoolsProvidersService) Patch(name string, workforcepoolprovider *WorkforcePoolProvider) *LocationsWorkforcePoolsProvidersPatchCall { + c := &LocationsWorkforcePoolsProvidersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.workforcepoolprovider = workforcepoolprovider + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The +// list of fields to update. +func (c *LocationsWorkforcePoolsProvidersPatchCall) UpdateMask(updateMask string) *LocationsWorkforcePoolsProvidersPatchCall { + c.urlParams_.Set("updateMask", updateMask) + 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 *LocationsWorkforcePoolsProvidersPatchCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsProvidersPatchCall { + 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 *LocationsWorkforcePoolsProvidersPatchCall) Context(ctx context.Context) *LocationsWorkforcePoolsProvidersPatchCall { + 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 *LocationsWorkforcePoolsProvidersPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *LocationsWorkforcePoolsProvidersPatchCall) 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.workforcepoolprovider) + 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, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", 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 "iam.locations.workforcePools.providers.patch" 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 *LocationsWorkforcePoolsProvidersPatchCall) 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 an existing WorkforcePoolProvider.", + // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers/{providersId}", + // "httpMethod": "PATCH", + // "id": "iam.locations.workforcePools.providers.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. The resource name of the provider. Format: `locations/{location}/workforcePools/{workforce_pool_id}/providers/{provider_id}`", + // "location": "path", + // "pattern": "^locations/[^/]+/workforcePools/[^/]+/providers/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The list of fields to update.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "WorkforcePoolProvider" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "iam.locations.workforcePools.providers.undelete": + +type LocationsWorkforcePoolsProvidersUndeleteCall struct { + s *Service + name string + undeleteworkforcepoolproviderrequest *UndeleteWorkforcePoolProviderRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Undelete: Undeletes a WorkforcePoolProvider, as long as it was +// deleted fewer than 30 days ago. +// +// - name: The name of the provider to undelete. Format: +// `locations/{location}/workforcePools/{workforce_pool_id}/providers/{ +// provider_id}`. +func (r *LocationsWorkforcePoolsProvidersService) Undelete(name string, undeleteworkforcepoolproviderrequest *UndeleteWorkforcePoolProviderRequest) *LocationsWorkforcePoolsProvidersUndeleteCall { + c := &LocationsWorkforcePoolsProvidersUndeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.undeleteworkforcepoolproviderrequest = undeleteworkforcepoolproviderrequest + 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 *LocationsWorkforcePoolsProvidersUndeleteCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsProvidersUndeleteCall { + 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 *LocationsWorkforcePoolsProvidersUndeleteCall) Context(ctx context.Context) *LocationsWorkforcePoolsProvidersUndeleteCall { + 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 *LocationsWorkforcePoolsProvidersUndeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *LocationsWorkforcePoolsProvidersUndeleteCall) 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.undeleteworkforcepoolproviderrequest) + 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, "v1/{+name}:undelete") + 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{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "iam.locations.workforcePools.providers.undelete" 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 *LocationsWorkforcePoolsProvidersUndeleteCall) 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": "Undeletes a WorkforcePoolProvider, as long as it was deleted fewer than 30 days ago.", + // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers/{providersId}:undelete", + // "httpMethod": "POST", + // "id": "iam.locations.workforcePools.providers.undelete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the provider to undelete. Format: `locations/{location}/workforcePools/{workforce_pool_id}/providers/{provider_id}`", + // "location": "path", + // "pattern": "^locations/[^/]+/workforcePools/[^/]+/providers/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:undelete", + // "request": { + // "$ref": "UndeleteWorkforcePoolProviderRequest" // }, // "response": { - // "$ref": "LintPolicyResponse" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -2971,84 +6057,97 @@ func (c *IamPoliciesLintPolicyCall) Do(opts ...googleapi.CallOption) (*LintPolic } -// method id "iam.iamPolicies.queryAuditableServices": +// method id "iam.locations.workforcePools.providers.keys.operations.get": -type IamPoliciesQueryAuditableServicesCall struct { - s *Service - queryauditableservicesrequest *QueryAuditableServicesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type LocationsWorkforcePoolsProvidersKeysOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// QueryAuditableServices: Returns a list of services that allow you to -// opt into audit logs that are not generated by default. To learn more -// about audit logs, see the Logging documentation -// (https://cloud.google.com/logging/docs/audit). -func (r *IamPoliciesService) QueryAuditableServices(queryauditableservicesrequest *QueryAuditableServicesRequest) *IamPoliciesQueryAuditableServicesCall { - c := &IamPoliciesQueryAuditableServicesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.queryauditableservicesrequest = queryauditableservicesrequest +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +// +// - name: The name of the operation resource. +func (r *LocationsWorkforcePoolsProvidersKeysOperationsService) Get(name string) *LocationsWorkforcePoolsProvidersKeysOperationsGetCall { + c := &LocationsWorkforcePoolsProvidersKeysOperationsGetCall{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 *IamPoliciesQueryAuditableServicesCall) Fields(s ...googleapi.Field) *IamPoliciesQueryAuditableServicesCall { +func (c *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsProvidersKeysOperationsGetCall { 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 *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) IfNoneMatch(entityTag string) *LocationsWorkforcePoolsProvidersKeysOperationsGetCall { + 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 *IamPoliciesQueryAuditableServicesCall) Context(ctx context.Context) *IamPoliciesQueryAuditableServicesCall { +func (c *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) Context(ctx context.Context) *LocationsWorkforcePoolsProvidersKeysOperationsGetCall { 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 *IamPoliciesQueryAuditableServicesCall) Header() http.Header { +func (c *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *IamPoliciesQueryAuditableServicesCall) doRequest(alt string) (*http.Response, error) { +func (c *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) 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.queryauditableservicesrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/iamPolicies:queryAuditableServices") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + 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 "iam.iamPolicies.queryAuditableServices" call. -// Exactly one of *QueryAuditableServicesResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *QueryAuditableServicesResponse.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 *IamPoliciesQueryAuditableServicesCall) Do(opts ...googleapi.CallOption) (*QueryAuditableServicesResponse, error) { +// Do executes the "iam.locations.workforcePools.providers.keys.operations.get" 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 *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3067,7 +6166,7 @@ func (c *IamPoliciesQueryAuditableServicesCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &QueryAuditableServicesResponse{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -3079,18 +6178,25 @@ func (c *IamPoliciesQueryAuditableServicesCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Returns a list of services that allow you to opt into audit logs that are not generated by default. To learn more about audit logs, see the [Logging documentation](https://cloud.google.com/logging/docs/audit).", - // "flatPath": "v1/iamPolicies:queryAuditableServices", - // "httpMethod": "POST", - // "id": "iam.iamPolicies.queryAuditableServices", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1/iamPolicies:queryAuditableServices", - // "request": { - // "$ref": "QueryAuditableServicesRequest" + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers/{providersId}/keys/{keysId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "iam.locations.workforcePools.providers.keys.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^locations/[^/]+/workforcePools/[^/]+/providers/[^/]+/keys/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } // }, + // "path": "v1/{+name}", // "response": { - // "$ref": "QueryAuditableServicesResponse" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -3099,9 +6205,9 @@ func (c *IamPoliciesQueryAuditableServicesCall) Do(opts ...googleapi.CallOption) } -// method id "iam.locations.workforcePools.operations.get": +// method id "iam.locations.workforcePools.providers.operations.get": -type LocationsWorkforcePoolsOperationsGetCall struct { +type LocationsWorkforcePoolsProvidersOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -3115,8 +6221,8 @@ type LocationsWorkforcePoolsOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *LocationsWorkforcePoolsOperationsService) Get(name string) *LocationsWorkforcePoolsOperationsGetCall { - c := &LocationsWorkforcePoolsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *LocationsWorkforcePoolsProvidersOperationsService) Get(name string) *LocationsWorkforcePoolsProvidersOperationsGetCall { + c := &LocationsWorkforcePoolsProvidersOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -3124,7 +6230,7 @@ func (r *LocationsWorkforcePoolsOperationsService) Get(name string) *LocationsWo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *LocationsWorkforcePoolsOperationsGetCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsOperationsGetCall { +func (c *LocationsWorkforcePoolsProvidersOperationsGetCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsProvidersOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -3134,7 +6240,7 @@ func (c *LocationsWorkforcePoolsOperationsGetCall) Fields(s ...googleapi.Field) // 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 *LocationsWorkforcePoolsOperationsGetCall) IfNoneMatch(entityTag string) *LocationsWorkforcePoolsOperationsGetCall { +func (c *LocationsWorkforcePoolsProvidersOperationsGetCall) IfNoneMatch(entityTag string) *LocationsWorkforcePoolsProvidersOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -3142,21 +6248,21 @@ func (c *LocationsWorkforcePoolsOperationsGetCall) IfNoneMatch(entityTag string) // 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 *LocationsWorkforcePoolsOperationsGetCall) Context(ctx context.Context) *LocationsWorkforcePoolsOperationsGetCall { +func (c *LocationsWorkforcePoolsProvidersOperationsGetCall) Context(ctx context.Context) *LocationsWorkforcePoolsProvidersOperationsGetCall { 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 *LocationsWorkforcePoolsOperationsGetCall) Header() http.Header { +func (c *LocationsWorkforcePoolsProvidersOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *LocationsWorkforcePoolsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *LocationsWorkforcePoolsProvidersOperationsGetCall) 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_ { @@ -3182,14 +6288,14 @@ func (c *LocationsWorkforcePoolsOperationsGetCall) doRequest(alt string) (*http. return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "iam.locations.workforcePools.operations.get" call. +// Do executes the "iam.locations.workforcePools.providers.operations.get" 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 *LocationsWorkforcePoolsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *LocationsWorkforcePoolsProvidersOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3221,9 +6327,9 @@ func (c *LocationsWorkforcePoolsOperationsGetCall) Do(opts ...googleapi.CallOpti return ret, nil // { // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/operations/{operationsId}", + // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers/{providersId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "iam.locations.workforcePools.operations.get", + // "id": "iam.locations.workforcePools.providers.operations.get", // "parameterOrder": [ // "name" // ], @@ -3231,7 +6337,7 @@ func (c *LocationsWorkforcePoolsOperationsGetCall) Do(opts ...googleapi.CallOpti // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^locations/[^/]+/workforcePools/[^/]+/operations/[^/]+$", + // "pattern": "^locations/[^/]+/workforcePools/[^/]+/providers/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -3247,24 +6353,35 @@ func (c *LocationsWorkforcePoolsOperationsGetCall) Do(opts ...googleapi.CallOpti } -// method id "iam.locations.workforcePools.providers.keys.operations.get": +// method id "iam.locations.workforcePools.subjects.delete": -type LocationsWorkforcePoolsProvidersKeysOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type LocationsWorkforcePoolsSubjectsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Delete: Deletes a WorkforcePoolSubject. Subject must not already be +// in a deleted state. A WorkforcePoolSubject is automatically created +// the first time an external credential is exchanged for a Google Cloud +// credential with a mapped `google.subject` attribute. There is no path +// to manually create WorkforcePoolSubjects. Once deleted, the +// WorkforcePoolSubject may not be used for 30 days. After 30 days, the +// WorkforcePoolSubject will be deleted forever and can be reused in +// token exchanges with Google Cloud STS. This will automatically create +// a new WorkforcePoolSubject that is independent of the previously +// deleted WorkforcePoolSubject with the same google.subject value. // -// - name: The name of the operation resource. -func (r *LocationsWorkforcePoolsProvidersKeysOperationsService) Get(name string) *LocationsWorkforcePoolsProvidersKeysOperationsGetCall { - c := &LocationsWorkforcePoolsProvidersKeysOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name of the WorkforcePoolSubject. Special +// characters, like '/' and ':', must be escaped, because all URLs +// need to conform to the "When to Escape and Unescape" section of +// RFC3986 (https://www.ietf.org/rfc/rfc2396.txt). Format: +// `locations/{location}/workforcePools/{workforce_pool_id}/subjects/{s +// ubject_id}`. +func (r *LocationsWorkforcePoolsSubjectsService) Delete(name string) *LocationsWorkforcePoolsSubjectsDeleteCall { + c := &LocationsWorkforcePoolsSubjectsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -3272,54 +6389,41 @@ func (r *LocationsWorkforcePoolsProvidersKeysOperationsService) Get(name string) // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsProvidersKeysOperationsGetCall { +func (c *LocationsWorkforcePoolsSubjectsDeleteCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsSubjectsDeleteCall { 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 *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) IfNoneMatch(entityTag string) *LocationsWorkforcePoolsProvidersKeysOperationsGetCall { - 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 *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) Context(ctx context.Context) *LocationsWorkforcePoolsProvidersKeysOperationsGetCall { +func (c *LocationsWorkforcePoolsSubjectsDeleteCall) Context(ctx context.Context) *LocationsWorkforcePoolsSubjectsDeleteCall { 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 *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) Header() http.Header { +func (c *LocationsWorkforcePoolsSubjectsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *LocationsWorkforcePoolsSubjectsDeleteCall) 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, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -3330,14 +6434,14 @@ func (c *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) doRequest(alt st return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "iam.locations.workforcePools.providers.keys.operations.get" call. +// Do executes the "iam.locations.workforcePools.subjects.delete" 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 *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *LocationsWorkforcePoolsSubjectsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3368,18 +6472,18 @@ func (c *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) Do(opts ...googl } return ret, nil // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers/{providersId}/keys/{keysId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "iam.locations.workforcePools.providers.keys.operations.get", + // "description": "Deletes a WorkforcePoolSubject. Subject must not already be in a deleted state. A WorkforcePoolSubject is automatically created the first time an external credential is exchanged for a Google Cloud credential with a mapped `google.subject` attribute. There is no path to manually create WorkforcePoolSubjects. Once deleted, the WorkforcePoolSubject may not be used for 30 days. After 30 days, the WorkforcePoolSubject will be deleted forever and can be reused in token exchanges with Google Cloud STS. This will automatically create a new WorkforcePoolSubject that is independent of the previously deleted WorkforcePoolSubject with the same google.subject value.", + // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/subjects/{subjectsId}", + // "httpMethod": "DELETE", + // "id": "iam.locations.workforcePools.subjects.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource.", + // "description": "Required. The resource name of the WorkforcePoolSubject. Special characters, like '/' and ':', must be escaped, because all URLs need to conform to the \"When to Escape and Unescape\" section of [RFC3986](https://www.ietf.org/rfc/rfc2396.txt). Format: `locations/{location}/workforcePools/{workforce_pool_id}/subjects/{subject_id}`", // "location": "path", - // "pattern": "^locations/[^/]+/workforcePools/[^/]+/providers/[^/]+/keys/[^/]+/operations/[^/]+$", + // "pattern": "^locations/[^/]+/workforcePools/[^/]+/subjects/[^/]+$", // "required": true, // "type": "string" // } @@ -3395,79 +6499,76 @@ func (c *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) Do(opts ...googl } -// method id "iam.locations.workforcePools.providers.operations.get": +// method id "iam.locations.workforcePools.subjects.undelete": -type LocationsWorkforcePoolsProvidersOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type LocationsWorkforcePoolsSubjectsUndeleteCall struct { + s *Service + name string + undeleteworkforcepoolsubjectrequest *UndeleteWorkforcePoolSubjectRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Undelete: Undeletes a WorkforcePoolSubject, as long as it was deleted +// fewer than 30 days ago. // -// - name: The name of the operation resource. -func (r *LocationsWorkforcePoolsProvidersOperationsService) Get(name string) *LocationsWorkforcePoolsProvidersOperationsGetCall { - c := &LocationsWorkforcePoolsProvidersOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name of the WorkforcePoolSubject. Special +// characters, like '/' and ':', must be escaped, because all URLs +// need to conform to the "When to Escape and Unescape" section of +// RFC3986 (https://www.ietf.org/rfc/rfc2396.txt). Format: +// `locations/{location}/workforcePools/{workforce_pool_id}/subjects/{s +// ubject_id}`. +func (r *LocationsWorkforcePoolsSubjectsService) Undelete(name string, undeleteworkforcepoolsubjectrequest *UndeleteWorkforcePoolSubjectRequest) *LocationsWorkforcePoolsSubjectsUndeleteCall { + c := &LocationsWorkforcePoolsSubjectsUndeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.undeleteworkforcepoolsubjectrequest = undeleteworkforcepoolsubjectrequest 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 *LocationsWorkforcePoolsProvidersOperationsGetCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsProvidersOperationsGetCall { +func (c *LocationsWorkforcePoolsSubjectsUndeleteCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsSubjectsUndeleteCall { 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 *LocationsWorkforcePoolsProvidersOperationsGetCall) IfNoneMatch(entityTag string) *LocationsWorkforcePoolsProvidersOperationsGetCall { - 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 *LocationsWorkforcePoolsProvidersOperationsGetCall) Context(ctx context.Context) *LocationsWorkforcePoolsProvidersOperationsGetCall { +func (c *LocationsWorkforcePoolsSubjectsUndeleteCall) Context(ctx context.Context) *LocationsWorkforcePoolsSubjectsUndeleteCall { 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 *LocationsWorkforcePoolsProvidersOperationsGetCall) Header() http.Header { +func (c *LocationsWorkforcePoolsSubjectsUndeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *LocationsWorkforcePoolsProvidersOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *LocationsWorkforcePoolsSubjectsUndeleteCall) 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 + body, err := googleapi.WithoutDataWrapper.JSONReader(c.undeleteworkforcepoolsubjectrequest) + 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, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:undelete") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -3478,14 +6579,14 @@ func (c *LocationsWorkforcePoolsProvidersOperationsGetCall) doRequest(alt string return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "iam.locations.workforcePools.providers.operations.get" call. +// Do executes the "iam.locations.workforcePools.subjects.undelete" 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 *LocationsWorkforcePoolsProvidersOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *LocationsWorkforcePoolsSubjectsUndeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3516,23 +6617,26 @@ func (c *LocationsWorkforcePoolsProvidersOperationsGetCall) Do(opts ...googleapi } return ret, nil // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers/{providersId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "iam.locations.workforcePools.providers.operations.get", + // "description": "Undeletes a WorkforcePoolSubject, as long as it was deleted fewer than 30 days ago.", + // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/subjects/{subjectsId}:undelete", + // "httpMethod": "POST", + // "id": "iam.locations.workforcePools.subjects.undelete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource.", + // "description": "Required. The resource name of the WorkforcePoolSubject. Special characters, like '/' and ':', must be escaped, because all URLs need to conform to the \"When to Escape and Unescape\" section of [RFC3986](https://www.ietf.org/rfc/rfc2396.txt). Format: `locations/{location}/workforcePools/{workforce_pool_id}/subjects/{subject_id}`", // "location": "path", - // "pattern": "^locations/[^/]+/workforcePools/[^/]+/providers/[^/]+/operations/[^/]+$", + // "pattern": "^locations/[^/]+/workforcePools/[^/]+/subjects/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+name}:undelete", + // "request": { + // "$ref": "UndeleteWorkforcePoolSubjectRequest" + // }, // "response": { // "$ref": "Operation" // }, diff --git a/memcache/v1/memcache-api.json b/memcache/v1/memcache-api.json index b251c18698a..551fa96e216 100644 --- a/memcache/v1/memcache-api.json +++ b/memcache/v1/memcache-api.json @@ -556,7 +556,7 @@ } } }, - "revision": "20230111", + "revision": "20230202", "rootUrl": "https://memcache.googleapis.com/", "schemas": { "ApplyParametersRequest": { @@ -745,7 +745,7 @@ "id": "GoogleCloudSaasacceleratorManagementProvidersV1Instance", "properties": { "consumerDefinedName": { - "description": "consumer_defined_name is the name that is set by the consumer. On the other hand Name field represents system-assigned id of an instance so consumers are not necessarily aware of it. consumer_defined_name is used for notification/UI purposes for consumer to recognize their instances.", + "description": "consumer_defined_name is the name of the instance set by the service consumers. Generally this is different from the `name` field which reperesents the system-assigned id of the instance which the service consumers do not recognize. This is a required field for tenants onboarding to Maintenance Window notifications (go/slm-rollout-maintenance-policies#prerequisites).", "type": "string" }, "createTime": { diff --git a/memcache/v1/memcache-gen.go b/memcache/v1/memcache-gen.go index 4048757545a..e5de90c502a 100644 --- a/memcache/v1/memcache-gen.go +++ b/memcache/v1/memcache-gen.go @@ -508,11 +508,12 @@ type GoogleCloudMemcacheV1ZoneMetadata struct { // 1526406431, }, "end_time": { "seconds": 1535406431, }, } }, // "consumer_defined_name": "my-sql-instance1", } ``` LINT.IfChange type GoogleCloudSaasacceleratorManagementProvidersV1Instance struct { - // ConsumerDefinedName: consumer_defined_name is the name that is set by - // the consumer. On the other hand Name field represents system-assigned - // id of an instance so consumers are not necessarily aware of it. - // consumer_defined_name is used for notification/UI purposes for - // consumer to recognize their instances. + // ConsumerDefinedName: consumer_defined_name is the name of the + // instance set by the service consumers. Generally this is different + // from the `name` field which reperesents the system-assigned id of the + // instance which the service consumers do not recognize. This is a + // required field for tenants onboarding to Maintenance Window + // notifications (go/slm-rollout-maintenance-policies#prerequisites). ConsumerDefinedName string `json:"consumerDefinedName,omitempty"` // CreateTime: Output only. Timestamp when the resource was created. diff --git a/memcache/v1beta2/memcache-api.json b/memcache/v1beta2/memcache-api.json index cc42e6eadb9..8e628652143 100644 --- a/memcache/v1beta2/memcache-api.json +++ b/memcache/v1beta2/memcache-api.json @@ -584,7 +584,7 @@ } } }, - "revision": "20230111", + "revision": "20230202", "rootUrl": "https://memcache.googleapis.com/", "schemas": { "ApplyParametersRequest": { @@ -791,7 +791,7 @@ "id": "GoogleCloudSaasacceleratorManagementProvidersV1Instance", "properties": { "consumerDefinedName": { - "description": "consumer_defined_name is the name that is set by the consumer. On the other hand Name field represents system-assigned id of an instance so consumers are not necessarily aware of it. consumer_defined_name is used for notification/UI purposes for consumer to recognize their instances.", + "description": "consumer_defined_name is the name of the instance set by the service consumers. Generally this is different from the `name` field which reperesents the system-assigned id of the instance which the service consumers do not recognize. This is a required field for tenants onboarding to Maintenance Window notifications (go/slm-rollout-maintenance-policies#prerequisites).", "type": "string" }, "createTime": { diff --git a/memcache/v1beta2/memcache-gen.go b/memcache/v1beta2/memcache-gen.go index 7d36a77db86..6f2ec2b00ee 100644 --- a/memcache/v1beta2/memcache-gen.go +++ b/memcache/v1beta2/memcache-gen.go @@ -542,11 +542,12 @@ type GoogleCloudMemcacheV1beta2ZoneMetadata struct { // 1526406431, }, "end_time": { "seconds": 1535406431, }, } }, // "consumer_defined_name": "my-sql-instance1", } ``` LINT.IfChange type GoogleCloudSaasacceleratorManagementProvidersV1Instance struct { - // ConsumerDefinedName: consumer_defined_name is the name that is set by - // the consumer. On the other hand Name field represents system-assigned - // id of an instance so consumers are not necessarily aware of it. - // consumer_defined_name is used for notification/UI purposes for - // consumer to recognize their instances. + // ConsumerDefinedName: consumer_defined_name is the name of the + // instance set by the service consumers. Generally this is different + // from the `name` field which reperesents the system-assigned id of the + // instance which the service consumers do not recognize. This is a + // required field for tenants onboarding to Maintenance Window + // notifications (go/slm-rollout-maintenance-policies#prerequisites). ConsumerDefinedName string `json:"consumerDefinedName,omitempty"` // CreateTime: Output only. Timestamp when the resource was created. diff --git a/metastore/v1/metastore-api.json b/metastore/v1/metastore-api.json index b9752bad37b..c89b065e156 100644 --- a/metastore/v1/metastore-api.json +++ b/metastore/v1/metastore-api.json @@ -105,38 +105,6 @@ }, "protocol": "rest", "resources": { - "operations": { - "methods": { - "cancel": { - "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.", - "flatPath": "v1/operations/{operationsId}:cancel", - "httpMethod": "POST", - "id": "metastore.operations.cancel", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be cancelled.", - "location": "path", - "pattern": "^operations/.*$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}:cancel", - "request": { - "$ref": "CancelOperationRequest" - }, - "response": { - "$ref": "Empty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, "projects": { "resources": { "locations": { @@ -480,6 +448,34 @@ }, "operations": { "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "metastore.projects.locations.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "request": { + "$ref": "CancelOperationRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "delete": { "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", @@ -1259,7 +1255,7 @@ } } }, - "revision": "20230111", + "revision": "20230131", "rootUrl": "https://metastore.googleapis.com/", "schemas": { "AuditConfig": { @@ -1403,7 +1399,7 @@ "description": "The condition that is associated with this binding.If the condition evaluates to true, then this binding applies to the current request.If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. members can have the following values: allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account. allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. user:{emailid}: An email address that represents a specific Google account. For example, alice@example.com . serviceAccount:{emailid}: An email address that represents a Google service account. For example, my-other-app@appspot.gserviceaccount.com. serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: An identifier for a Kubernetes service account (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, my-project.svc.id.goog[my-namespace/my-kubernetes-sa]. group:{emailid}: An email address that represents a Google group. For example, admins@example.com. deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that has been recently deleted. For example, alice@example.com?uid=123456789012345678901. If the user is recovered, this value reverts to user:{emailid} and the recovered user retains the role in the binding. deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the undeleted service account retains the role in the binding. deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, admins@example.com?uid=123456789012345678901. If the group is recovered, this value reverts to group:{emailid} and the recovered group retains the role in the binding. domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com.", + "description": "Specifies the principals requesting access for a Google Cloud resource. members can have the following values: allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account. allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. user:{emailid}: An email address that represents a specific Google account. For example, alice@example.com . serviceAccount:{emailid}: An email address that represents a Google service account. For example, my-other-app@appspot.gserviceaccount.com. serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: An identifier for a Kubernetes service account (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, my-project.svc.id.goog[my-namespace/my-kubernetes-sa]. group:{emailid}: An email address that represents a Google group. For example, admins@example.com. domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com. deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that has been recently deleted. For example, alice@example.com?uid=123456789012345678901. If the user is recovered, this value reverts to user:{emailid} and the recovered user retains the role in the binding. deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the undeleted service account retains the role in the binding. deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, admins@example.com?uid=123456789012345678901. If the group is recovered, this value reverts to group:{emailid} and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/metastore/v1/metastore-gen.go b/metastore/v1/metastore-gen.go index a1f61d741d6..3e80e860846 100644 --- a/metastore/v1/metastore-gen.go +++ b/metastore/v1/metastore-gen.go @@ -118,7 +118,6 @@ func New(client *http.Client) (*APIService, error) { return nil, errors.New("client is nil") } s := &APIService{client: client, BasePath: basePath} - s.Operations = NewOperationsService(s) s.Projects = NewProjectsService(s) return s, nil } @@ -128,8 +127,6 @@ type APIService struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment - Operations *OperationsService - Projects *ProjectsService } @@ -140,15 +137,6 @@ func (s *APIService) userAgent() string { return googleapi.UserAgent + " " + s.UserAgent } -func NewOperationsService(s *APIService) *OperationsService { - rs := &OperationsService{s: s} - return rs -} - -type OperationsService struct { - s *APIService -} - func NewProjectsService(s *APIService) *ProjectsService { rs := &ProjectsService{s: s} rs.Locations = NewProjectsLocationsService(s) @@ -457,9 +445,11 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, my-project.svc.id.goog[my-namespace/my-kubernetes-sa]. // group:{emailid}: An email address that represents a Google group. For - // example, admins@example.com. deleted:user:{emailid}?uid={uniqueid}: - // An email address (plus unique identifier) representing a user that - // has been recently deleted. For example, + // example, admins@example.com. domain:{domain}: The G Suite domain + // (primary) that represents all the users of that domain. For example, + // google.com or example.com. deleted:user:{emailid}?uid={uniqueid}: An + // email address (plus unique identifier) representing a user that has + // been recently deleted. For example, // alice@example.com?uid=123456789012345678901. If the user is // recovered, this value reverts to user:{emailid} and the recovered // user retains the role in the binding. @@ -474,9 +464,7 @@ type Binding struct { // that has been recently deleted. For example, // admins@example.com?uid=123456789012345678901. If the group is // recovered, this value reverts to group:{emailid} and the recovered - // group retains the role in the binding. domain:{domain}: The G Suite - // domain (primary) that represents all the users of that domain. For - // example, google.com or example.com. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of members, or principals. @@ -2208,157 +2196,6 @@ func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// method id "metastore.operations.cancel": - -type OperationsCancelCall struct { - s *APIService - name string - canceloperationrequest *CancelOperationRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Cancel: Starts asynchronous cancellation on a long-running operation. -// The server makes a best effort to cancel the operation, but success -// is not guaranteed. If the server doesn't support this method, it -// returns google.rpc.Code.UNIMPLEMENTED. Clients can use -// Operations.GetOperation or other methods to check whether the -// cancellation succeeded or whether the operation completed despite -// cancellation. On successful cancellation, the operation is not -// deleted; instead, it becomes an operation with an Operation.error -// value with a google.rpc.Status.code of 1, corresponding to -// Code.CANCELLED. -// -// - name: The name of the operation resource to be cancelled. -func (r *OperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *OperationsCancelCall { - c := &OperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.canceloperationrequest = canceloperationrequest - 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 *OperationsCancelCall) Fields(s ...googleapi.Field) *OperationsCancelCall { - 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 *OperationsCancelCall) Context(ctx context.Context) *OperationsCancelCall { - 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 *OperationsCancelCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *OperationsCancelCall) 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.canceloperationrequest) - 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, "v1/{+name}:cancel") - 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{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "metastore.operations.cancel" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.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 *OperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, 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 := &Empty{ - 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": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.", - // "flatPath": "v1/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "metastore.operations.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", - // "location": "path", - // "pattern": "^operations/.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:cancel", - // "request": { - // "$ref": "CancelOperationRequest" - // }, - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - // method id "metastore.projects.locations.get": type ProjectsLocationsGetCall struct { @@ -4078,6 +3915,157 @@ func (c *ProjectsLocationsFederationsTestIamPermissionsCall) Do(opts ...googleap } +// method id "metastore.projects.locations.operations.cancel": + +type ProjectsLocationsOperationsCancelCall struct { + s *APIService + name string + canceloperationrequest *CancelOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns google.rpc.Code.UNIMPLEMENTED. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// Code.CANCELLED. +// +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall { + c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.canceloperationrequest = canceloperationrequest + 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 *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { + 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 *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { + 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 *ProjectsLocationsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsCancelCall) 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.canceloperationrequest) + 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, "v1/{+name}:cancel") + 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{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "metastore.projects.locations.operations.cancel" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.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 *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, 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 := &Empty{ + 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": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "metastore.projects.locations.operations.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be cancelled.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:cancel", + // "request": { + // "$ref": "CancelOperationRequest" + // }, + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "metastore.projects.locations.operations.delete": type ProjectsLocationsOperationsDeleteCall struct { diff --git a/metastore/v1alpha/metastore-api.json b/metastore/v1alpha/metastore-api.json index 189acbbff23..cc8393401ba 100644 --- a/metastore/v1alpha/metastore-api.json +++ b/metastore/v1alpha/metastore-api.json @@ -448,6 +448,34 @@ }, "operations": { "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "metastore.projects.locations.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}:cancel", + "request": { + "$ref": "CancelOperationRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "delete": { "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", @@ -1551,7 +1579,7 @@ } } }, - "revision": "20230111", + "revision": "20230131", "rootUrl": "https://metastore.googleapis.com/", "schemas": { "AlterMetadataResourceLocationRequest": { @@ -1741,7 +1769,7 @@ "description": "The condition that is associated with this binding.If the condition evaluates to true, then this binding applies to the current request.If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. members can have the following values: allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account. allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. user:{emailid}: An email address that represents a specific Google account. For example, alice@example.com . serviceAccount:{emailid}: An email address that represents a Google service account. For example, my-other-app@appspot.gserviceaccount.com. serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: An identifier for a Kubernetes service account (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, my-project.svc.id.goog[my-namespace/my-kubernetes-sa]. group:{emailid}: An email address that represents a Google group. For example, admins@example.com. deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that has been recently deleted. For example, alice@example.com?uid=123456789012345678901. If the user is recovered, this value reverts to user:{emailid} and the recovered user retains the role in the binding. deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the undeleted service account retains the role in the binding. deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, admins@example.com?uid=123456789012345678901. If the group is recovered, this value reverts to group:{emailid} and the recovered group retains the role in the binding. domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com.", + "description": "Specifies the principals requesting access for a Google Cloud resource. members can have the following values: allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account. allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. user:{emailid}: An email address that represents a specific Google account. For example, alice@example.com . serviceAccount:{emailid}: An email address that represents a Google service account. For example, my-other-app@appspot.gserviceaccount.com. serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: An identifier for a Kubernetes service account (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, my-project.svc.id.goog[my-namespace/my-kubernetes-sa]. group:{emailid}: An email address that represents a Google group. For example, admins@example.com. domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com. deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that has been recently deleted. For example, alice@example.com?uid=123456789012345678901. If the user is recovered, this value reverts to user:{emailid} and the recovered user retains the role in the binding. deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the undeleted service account retains the role in the binding. deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, admins@example.com?uid=123456789012345678901. If the group is recovered, this value reverts to group:{emailid} and the recovered group retains the role in the binding.", "items": { "type": "string" }, @@ -1754,6 +1782,12 @@ }, "type": "object" }, + "CancelOperationRequest": { + "description": "The request message for Operations.CancelOperation.", + "id": "CancelOperationRequest", + "properties": {}, + "type": "object" + }, "Consumer": { "description": "Contains information of the customer's network configurations.", "id": "Consumer", diff --git a/metastore/v1alpha/metastore-gen.go b/metastore/v1alpha/metastore-gen.go index a760f6c12eb..2a93e05a3ca 100644 --- a/metastore/v1alpha/metastore-gen.go +++ b/metastore/v1alpha/metastore-gen.go @@ -554,9 +554,11 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, my-project.svc.id.goog[my-namespace/my-kubernetes-sa]. // group:{emailid}: An email address that represents a Google group. For - // example, admins@example.com. deleted:user:{emailid}?uid={uniqueid}: - // An email address (plus unique identifier) representing a user that - // has been recently deleted. For example, + // example, admins@example.com. domain:{domain}: The G Suite domain + // (primary) that represents all the users of that domain. For example, + // google.com or example.com. deleted:user:{emailid}?uid={uniqueid}: An + // email address (plus unique identifier) representing a user that has + // been recently deleted. For example, // alice@example.com?uid=123456789012345678901. If the user is // recovered, this value reverts to user:{emailid} and the recovered // user retains the role in the binding. @@ -571,9 +573,7 @@ type Binding struct { // that has been recently deleted. For example, // admins@example.com?uid=123456789012345678901. If the group is // recovered, this value reverts to group:{emailid} and the recovered - // group retains the role in the binding. domain:{domain}: The G Suite - // domain (primary) that represents all the users of that domain. For - // example, google.com or example.com. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of members, or principals. @@ -603,6 +603,11 @@ func (s *Binding) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CancelOperationRequest: The request message for +// Operations.CancelOperation. +type CancelOperationRequest struct { +} + // Consumer: Contains information of the customer's network // configurations. type Consumer struct { @@ -4337,6 +4342,157 @@ func (c *ProjectsLocationsFederationsTestIamPermissionsCall) Do(opts ...googleap } +// method id "metastore.projects.locations.operations.cancel": + +type ProjectsLocationsOperationsCancelCall struct { + s *APIService + name string + canceloperationrequest *CancelOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns google.rpc.Code.UNIMPLEMENTED. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// Code.CANCELLED. +// +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall { + c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.canceloperationrequest = canceloperationrequest + 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 *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { + 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 *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { + 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 *ProjectsLocationsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsCancelCall) 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.canceloperationrequest) + 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, "v1alpha/{+name}:cancel") + 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{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "metastore.projects.locations.operations.cancel" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.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 *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, 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 := &Empty{ + 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": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "metastore.projects.locations.operations.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be cancelled.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}:cancel", + // "request": { + // "$ref": "CancelOperationRequest" + // }, + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "metastore.projects.locations.operations.delete": type ProjectsLocationsOperationsDeleteCall struct { diff --git a/metastore/v1beta/metastore-api.json b/metastore/v1beta/metastore-api.json index ecd5e51bd8f..328be36e177 100644 --- a/metastore/v1beta/metastore-api.json +++ b/metastore/v1beta/metastore-api.json @@ -448,6 +448,34 @@ }, "operations": { "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "metastore.projects.locations.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+name}:cancel", + "request": { + "$ref": "CancelOperationRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "delete": { "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", @@ -1551,7 +1579,7 @@ } } }, - "revision": "20230111", + "revision": "20230131", "rootUrl": "https://metastore.googleapis.com/", "schemas": { "AlterMetadataResourceLocationRequest": { @@ -1741,7 +1769,7 @@ "description": "The condition that is associated with this binding.If the condition evaluates to true, then this binding applies to the current request.If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. members can have the following values: allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account. allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. user:{emailid}: An email address that represents a specific Google account. For example, alice@example.com . serviceAccount:{emailid}: An email address that represents a Google service account. For example, my-other-app@appspot.gserviceaccount.com. serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: An identifier for a Kubernetes service account (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, my-project.svc.id.goog[my-namespace/my-kubernetes-sa]. group:{emailid}: An email address that represents a Google group. For example, admins@example.com. deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that has been recently deleted. For example, alice@example.com?uid=123456789012345678901. If the user is recovered, this value reverts to user:{emailid} and the recovered user retains the role in the binding. deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the undeleted service account retains the role in the binding. deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, admins@example.com?uid=123456789012345678901. If the group is recovered, this value reverts to group:{emailid} and the recovered group retains the role in the binding. domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com.", + "description": "Specifies the principals requesting access for a Google Cloud resource. members can have the following values: allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account. allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. user:{emailid}: An email address that represents a specific Google account. For example, alice@example.com . serviceAccount:{emailid}: An email address that represents a Google service account. For example, my-other-app@appspot.gserviceaccount.com. serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: An identifier for a Kubernetes service account (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, my-project.svc.id.goog[my-namespace/my-kubernetes-sa]. group:{emailid}: An email address that represents a Google group. For example, admins@example.com. domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com. deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that has been recently deleted. For example, alice@example.com?uid=123456789012345678901. If the user is recovered, this value reverts to user:{emailid} and the recovered user retains the role in the binding. deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the undeleted service account retains the role in the binding. deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, admins@example.com?uid=123456789012345678901. If the group is recovered, this value reverts to group:{emailid} and the recovered group retains the role in the binding.", "items": { "type": "string" }, @@ -1754,6 +1782,12 @@ }, "type": "object" }, + "CancelOperationRequest": { + "description": "The request message for Operations.CancelOperation.", + "id": "CancelOperationRequest", + "properties": {}, + "type": "object" + }, "Consumer": { "description": "Contains information of the customer's network configurations.", "id": "Consumer", diff --git a/metastore/v1beta/metastore-gen.go b/metastore/v1beta/metastore-gen.go index dc2ef54bc02..dbc92aa774f 100644 --- a/metastore/v1beta/metastore-gen.go +++ b/metastore/v1beta/metastore-gen.go @@ -554,9 +554,11 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, my-project.svc.id.goog[my-namespace/my-kubernetes-sa]. // group:{emailid}: An email address that represents a Google group. For - // example, admins@example.com. deleted:user:{emailid}?uid={uniqueid}: - // An email address (plus unique identifier) representing a user that - // has been recently deleted. For example, + // example, admins@example.com. domain:{domain}: The G Suite domain + // (primary) that represents all the users of that domain. For example, + // google.com or example.com. deleted:user:{emailid}?uid={uniqueid}: An + // email address (plus unique identifier) representing a user that has + // been recently deleted. For example, // alice@example.com?uid=123456789012345678901. If the user is // recovered, this value reverts to user:{emailid} and the recovered // user retains the role in the binding. @@ -571,9 +573,7 @@ type Binding struct { // that has been recently deleted. For example, // admins@example.com?uid=123456789012345678901. If the group is // recovered, this value reverts to group:{emailid} and the recovered - // group retains the role in the binding. domain:{domain}: The G Suite - // domain (primary) that represents all the users of that domain. For - // example, google.com or example.com. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of members, or principals. @@ -603,6 +603,11 @@ func (s *Binding) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CancelOperationRequest: The request message for +// Operations.CancelOperation. +type CancelOperationRequest struct { +} + // Consumer: Contains information of the customer's network // configurations. type Consumer struct { @@ -4337,6 +4342,157 @@ func (c *ProjectsLocationsFederationsTestIamPermissionsCall) Do(opts ...googleap } +// method id "metastore.projects.locations.operations.cancel": + +type ProjectsLocationsOperationsCancelCall struct { + s *APIService + name string + canceloperationrequest *CancelOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns google.rpc.Code.UNIMPLEMENTED. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// Code.CANCELLED. +// +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall { + c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.canceloperationrequest = canceloperationrequest + 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 *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { + 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 *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { + 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 *ProjectsLocationsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsCancelCall) 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.canceloperationrequest) + 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, "v1beta/{+name}:cancel") + 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{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "metastore.projects.locations.operations.cancel" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.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 *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, 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 := &Empty{ + 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": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.", + // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "metastore.projects.locations.operations.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be cancelled.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+name}:cancel", + // "request": { + // "$ref": "CancelOperationRequest" + // }, + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "metastore.projects.locations.operations.delete": type ProjectsLocationsOperationsDeleteCall struct { diff --git a/monitoring/v3/monitoring-api.json b/monitoring/v3/monitoring-api.json index 49f4ba7b2aa..a31e0170b74 100644 --- a/monitoring/v3/monitoring-api.json +++ b/monitoring/v3/monitoring-api.json @@ -2714,7 +2714,7 @@ } } }, - "revision": "20230130", + "revision": "20230206", "rootUrl": "https://monitoring.googleapis.com/", "schemas": { "Aggregation": { @@ -5760,14 +5760,20 @@ "USA", "EUROPE", "SOUTH_AMERICA", - "ASIA_PACIFIC" + "ASIA_PACIFIC", + "USA_OREGON", + "USA_IOWA", + "USA_VIRGINIA" ], "enumDescriptions": [ "Default value if no region is specified. Will result in Uptime checks running from all regions.", "Allows checks to run from locations within the United States of America.", "Allows checks to run from locations within the continent of Europe.", "Allows checks to run from locations within the continent of South America.", - "Allows checks to run from locations within the Asia Pacific area (ex: Singapore)." + "Allows checks to run from locations within the Asia Pacific area (ex: Singapore).", + "Allows checks to run from locations within the western United States of America", + "Allows checks to run from locations within the central United States of America", + "Allows checks to run from locations within the eastern United States of America" ], "type": "string" }, @@ -5811,14 +5817,20 @@ "USA", "EUROPE", "SOUTH_AMERICA", - "ASIA_PACIFIC" + "ASIA_PACIFIC", + "USA_OREGON", + "USA_IOWA", + "USA_VIRGINIA" ], "enumDescriptions": [ "Default value if no region is specified. Will result in Uptime checks running from all regions.", "Allows checks to run from locations within the United States of America.", "Allows checks to run from locations within the continent of Europe.", "Allows checks to run from locations within the continent of South America.", - "Allows checks to run from locations within the Asia Pacific area (ex: Singapore)." + "Allows checks to run from locations within the Asia Pacific area (ex: Singapore).", + "Allows checks to run from locations within the western United States of America", + "Allows checks to run from locations within the central United States of America", + "Allows checks to run from locations within the eastern United States of America" ], "type": "string" } diff --git a/monitoring/v3/monitoring-gen.go b/monitoring/v3/monitoring-gen.go index b7a994b0b9a..5105a9980f6 100644 --- a/monitoring/v3/monitoring-gen.go +++ b/monitoring/v3/monitoring-gen.go @@ -6190,6 +6190,12 @@ type UptimeCheckConfig struct { // continent of South America. // "ASIA_PACIFIC" - Allows checks to run from locations within the // Asia Pacific area (ex: Singapore). + // "USA_OREGON" - Allows checks to run from locations within the + // western United States of America + // "USA_IOWA" - Allows checks to run from locations within the central + // United States of America + // "USA_VIRGINIA" - Allows checks to run from locations within the + // eastern United States of America SelectedRegions []string `json:"selectedRegions,omitempty"` // TcpCheck: Contains information needed to make a TCP check. @@ -6264,6 +6270,12 @@ type UptimeCheckIp struct { // continent of South America. // "ASIA_PACIFIC" - Allows checks to run from locations within the // Asia Pacific area (ex: Singapore). + // "USA_OREGON" - Allows checks to run from locations within the + // western United States of America + // "USA_IOWA" - Allows checks to run from locations within the central + // United States of America + // "USA_VIRGINIA" - Allows checks to run from locations within the + // eastern United States of America Region string `json:"region,omitempty"` // ForceSendFields is a list of field names (e.g. "IpAddress") to diff --git a/mybusinessverifications/v1/mybusinessverifications-api.json b/mybusinessverifications/v1/mybusinessverifications-api.json index 83de1829394..6b84cefd9f9 100644 --- a/mybusinessverifications/v1/mybusinessverifications-api.json +++ b/mybusinessverifications/v1/mybusinessverifications-api.json @@ -256,7 +256,7 @@ } } }, - "revision": "20230126", + "revision": "20230209", "rootUrl": "https://mybusinessverifications.googleapis.com/", "schemas": { "AddressVerificationData": { @@ -543,7 +543,7 @@ "Make a phone call with a verification PIN to a specific phone number. The PIN is used to complete verification with Google.", "Send an SMS with a verification PIN to a specific phone number. The PIN is used to complete verification with Google.", "Verify the location without additional user action. This option may not be available for all locations.", - "Used for vetted [partners](https://support.google.com/business/answer/7674102). This option may not be available for all locations." + "This option may not be available for all locations." ], "type": "string" }, @@ -608,7 +608,7 @@ "Make a phone call with a verification PIN to a specific phone number. The PIN is used to complete verification with Google.", "Send an SMS with a verification PIN to a specific phone number. The PIN is used to complete verification with Google.", "Verify the location without additional user action. This option may not be available for all locations.", - "Used for vetted [partners](https://support.google.com/business/answer/7674102). This option may not be available for all locations." + "This option may not be available for all locations." ], "type": "string" } @@ -675,7 +675,7 @@ "Make a phone call with a verification PIN to a specific phone number. The PIN is used to complete verification with Google.", "Send an SMS with a verification PIN to a specific phone number. The PIN is used to complete verification with Google.", "Verify the location without additional user action. This option may not be available for all locations.", - "Used for vetted [partners](https://support.google.com/business/answer/7674102). This option may not be available for all locations." + "This option may not be available for all locations." ], "type": "string" }, diff --git a/mybusinessverifications/v1/mybusinessverifications-gen.go b/mybusinessverifications/v1/mybusinessverifications-gen.go index 434b7d29eea..2438c369e81 100644 --- a/mybusinessverifications/v1/mybusinessverifications-gen.go +++ b/mybusinessverifications/v1/mybusinessverifications-gen.go @@ -756,9 +756,8 @@ type Verification struct { // number. The PIN is used to complete verification with Google. // "AUTO" - Verify the location without additional user action. This // option may not be available for all locations. - // "VETTED_PARTNER" - Used for vetted - // [partners](https://support.google.com/business/answer/7674102). This - // option may not be available for all locations. + // "VETTED_PARTNER" - This option may not be available for all + // locations. Method string `json:"method,omitempty"` // Name: Resource name of the verification. @@ -830,9 +829,8 @@ type VerificationOption struct { // number. The PIN is used to complete verification with Google. // "AUTO" - Verify the location without additional user action. This // option may not be available for all locations. - // "VETTED_PARTNER" - Used for vetted - // [partners](https://support.google.com/business/answer/7674102). This - // option may not be available for all locations. + // "VETTED_PARTNER" - This option may not be available for all + // locations. VerificationMethod string `json:"verificationMethod,omitempty"` // ForceSendFields is a list of field names (e.g. "AddressData") to @@ -965,9 +963,8 @@ type VerifyLocationRequest struct { // number. The PIN is used to complete verification with Google. // "AUTO" - Verify the location without additional user action. This // option may not be available for all locations. - // "VETTED_PARTNER" - Used for vetted - // [partners](https://support.google.com/business/answer/7674102). This - // option may not be available for all locations. + // "VETTED_PARTNER" - This option may not be available for all + // locations. Method string `json:"method,omitempty"` // PhoneNumber: Optional. The input for PHONE_CALL/SMS method The phone diff --git a/networkservices/v1/networkservices-api.json b/networkservices/v1/networkservices-api.json index 560f1ca64a1..0e12df9d56c 100644 --- a/networkservices/v1/networkservices-api.json +++ b/networkservices/v1/networkservices-api.json @@ -2148,7 +2148,7 @@ } } }, - "revision": "20220825", + "revision": "20230130", "rootUrl": "https://networkservices.googleapis.com/", "schemas": { "AuditConfig": { @@ -2208,7 +2208,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/networkservices/v1/networkservices-gen.go b/networkservices/v1/networkservices-gen.go index 194f77ac7e5..b78763643a6 100644 --- a/networkservices/v1/networkservices-gen.go +++ b/networkservices/v1/networkservices-gen.go @@ -428,7 +428,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -445,9 +447,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. diff --git a/networkservices/v1beta1/networkservices-api.json b/networkservices/v1beta1/networkservices-api.json index ab5d47a22a1..b19ebd73a8e 100644 --- a/networkservices/v1beta1/networkservices-api.json +++ b/networkservices/v1beta1/networkservices-api.json @@ -1875,7 +1875,7 @@ } } }, - "revision": "20220825", + "revision": "20230130", "rootUrl": "https://networkservices.googleapis.com/", "schemas": { "AuditConfig": { @@ -1935,7 +1935,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/networkservices/v1beta1/networkservices-gen.go b/networkservices/v1beta1/networkservices-gen.go index 3d68266eab2..e3d433417f9 100644 --- a/networkservices/v1beta1/networkservices-gen.go +++ b/networkservices/v1beta1/networkservices-gen.go @@ -392,7 +392,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -409,9 +411,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. diff --git a/orgpolicy/v2/orgpolicy-api.json b/orgpolicy/v2/orgpolicy-api.json index 8537cdb2786..0ee4948c309 100644 --- a/orgpolicy/v2/orgpolicy-api.json +++ b/orgpolicy/v2/orgpolicy-api.json @@ -110,7 +110,7 @@ "constraints": { "methods": { "list": { - "description": "Lists `Constraints` that could be applied on the specified resource.", + "description": "Lists constraints that could be applied on the specified resource.", "flatPath": "v2/folders/{foldersId}/constraints", "httpMethod": "GET", "id": "orgpolicy.folders.constraints.list", @@ -130,7 +130,7 @@ "type": "string" }, "parent": { - "description": "Required. The Cloud resource that parents the constraint. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", + "description": "Required. The Google Cloud resource that parents the constraint. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", "location": "path", "pattern": "^folders/[^/]+$", "required": true, @@ -150,7 +150,7 @@ "policies": { "methods": { "create": { - "description": "Creates a Policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the policy already exists on the given Cloud resource.", + "description": "Creates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the policy already exists on the given Google Cloud resource.", "flatPath": "v2/folders/{foldersId}/policies", "httpMethod": "POST", "id": "orgpolicy.folders.policies.create", @@ -159,7 +159,7 @@ ], "parameters": { "parent": { - "description": "Required. The Cloud resource that will parent the new Policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", + "description": "Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", "location": "path", "pattern": "^folders/[^/]+$", "required": true, @@ -178,7 +178,7 @@ ] }, "delete": { - "description": "Deletes a Policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or Org Policy does not exist.", + "description": "Deletes a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or organization policy does not exist.", "flatPath": "v2/folders/{foldersId}/policies/{policiesId}", "httpMethod": "DELETE", "id": "orgpolicy.folders.policies.delete", @@ -187,7 +187,7 @@ ], "parameters": { "name": { - "description": "Required. Name of the policy to delete. See `Policy` for naming rules.", + "description": "Required. Name of the policy to delete. See the policy entry for naming rules.", "location": "path", "pattern": "^folders/[^/]+/policies/[^/]+$", "required": true, @@ -203,7 +203,7 @@ ] }, "get": { - "description": "Gets a `Policy` on a resource. If no `Policy` is set on the resource, NOT_FOUND is returned. The `etag` value can be used with `UpdatePolicy()` to update a `Policy` during read-modify-write.", + "description": "Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND` is returned. The `etag` value can be used with `UpdatePolicy()` to update a policy during read-modify-write.", "flatPath": "v2/folders/{foldersId}/policies/{policiesId}", "httpMethod": "GET", "id": "orgpolicy.folders.policies.get", @@ -228,7 +228,7 @@ ] }, "getEffectivePolicy": { - "description": "Gets the effective `Policy` on a resource. This is the result of merging `Policies` in the resource hierarchy and evaluating conditions. The returned `Policy` will not have an `etag` or `condition` set because it is a computed `Policy` across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded.", + "description": "Gets the effective policy on a resource. This is the result of merging policies in the resource hierarchy and evaluating conditions. The returned policy will not have an `etag` or `condition` set because it is an evaluated policy across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded.", "flatPath": "v2/folders/{foldersId}/policies/{policiesId}:getEffectivePolicy", "httpMethod": "GET", "id": "orgpolicy.folders.policies.getEffectivePolicy", @@ -253,7 +253,7 @@ ] }, "list": { - "description": "Retrieves all of the `Policies` that exist on a particular resource.", + "description": "Retrieves all of the policies that exist on a particular resource.", "flatPath": "v2/folders/{foldersId}/policies", "httpMethod": "GET", "id": "orgpolicy.folders.policies.list", @@ -273,7 +273,7 @@ "type": "string" }, "parent": { - "description": "Required. The target Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", + "description": "Required. The target Google Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", "location": "path", "pattern": "^folders/[^/]+$", "required": true, @@ -289,7 +289,7 @@ ] }, "patch": { - "description": "Updates a Policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or the policy do not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the etag supplied in the request does not match the persisted etag of the policy Note: the supplied policy will perform a full overwrite of all fields.", + "description": "Updates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or the policy do not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the etag supplied in the request does not match the persisted etag of the policy Note: the supplied policy will perform a full overwrite of all fields.", "flatPath": "v2/folders/{foldersId}/policies/{policiesId}", "httpMethod": "PATCH", "id": "orgpolicy.folders.policies.patch", @@ -298,7 +298,7 @@ ], "parameters": { "name": { - "description": "Immutable. The resource name of the Policy. Must be one of the following forms, where constraint_name is the name of the constraint which this Policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, \"projects/123/policies/compute.disableSerialPortAccess\". Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number.", + "description": "Immutable. The resource name of the policy. Must be one of the following forms, where constraint_name is the name of the constraint which this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, \"projects/123/policies/compute.disableSerialPortAccess\". Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number.", "location": "path", "pattern": "^folders/[^/]+/policies/[^/]+$", "required": true, @@ -331,7 +331,7 @@ "constraints": { "methods": { "list": { - "description": "Lists `Constraints` that could be applied on the specified resource.", + "description": "Lists constraints that could be applied on the specified resource.", "flatPath": "v2/organizations/{organizationsId}/constraints", "httpMethod": "GET", "id": "orgpolicy.organizations.constraints.list", @@ -351,7 +351,7 @@ "type": "string" }, "parent": { - "description": "Required. The Cloud resource that parents the constraint. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", + "description": "Required. The Google Cloud resource that parents the constraint. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", "location": "path", "pattern": "^organizations/[^/]+$", "required": true, @@ -371,7 +371,7 @@ "customConstraints": { "methods": { "create": { - "description": "Creates a CustomConstraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the organization does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the constraint already exists on the given organization.", + "description": "Creates a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the organization does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the constraint already exists on the given organization.", "flatPath": "v2/organizations/{organizationsId}/customConstraints", "httpMethod": "POST", "id": "orgpolicy.organizations.customConstraints.create", @@ -399,7 +399,7 @@ ] }, "delete": { - "description": "Deletes a Custom Constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist.", + "description": "Deletes a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist.", "flatPath": "v2/organizations/{organizationsId}/customConstraints/{customConstraintsId}", "httpMethod": "DELETE", "id": "orgpolicy.organizations.customConstraints.delete", @@ -408,7 +408,7 @@ ], "parameters": { "name": { - "description": "Required. Name of the custom constraint to delete. See `CustomConstraint` for naming rules.", + "description": "Required. Name of the custom constraint to delete. See the custom constraint entry for naming rules.", "location": "path", "pattern": "^organizations/[^/]+/customConstraints/[^/]+$", "required": true, @@ -424,7 +424,7 @@ ] }, "get": { - "description": "Gets a CustomConstraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the CustomConstraint does not exist.", + "description": "Gets a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the custom constraint does not exist.", "flatPath": "v2/organizations/{organizationsId}/customConstraints/{customConstraintsId}", "httpMethod": "GET", "id": "orgpolicy.organizations.customConstraints.get", @@ -433,7 +433,7 @@ ], "parameters": { "name": { - "description": "Required. Resource name of the custom constraint. See `CustomConstraint` for naming requirements.", + "description": "Required. Resource name of the custom constraint. See the custom constraint entry for naming requirements.", "location": "path", "pattern": "^organizations/[^/]+/customConstraints/[^/]+$", "required": true, @@ -449,7 +449,7 @@ ] }, "list": { - "description": "Retrieves all of the `CustomConstraints` that exist on a particular organization resource.", + "description": "Retrieves all of the custom constraints that exist on a particular organization resource.", "flatPath": "v2/organizations/{organizationsId}/customConstraints", "httpMethod": "GET", "id": "orgpolicy.organizations.customConstraints.list", @@ -469,7 +469,7 @@ "type": "string" }, "parent": { - "description": "Required. The target Cloud resource that parents the set of custom constraints that will be returned from this call. Must be in one of the following forms: * `organizations/{organization_id}`", + "description": "Required. The target Google Cloud resource that parents the set of custom constraints that will be returned from this call. Must be in one of the following forms: * `organizations/{organization_id}`", "location": "path", "pattern": "^organizations/[^/]+$", "required": true, @@ -485,7 +485,7 @@ ] }, "patch": { - "description": "Updates a Custom Constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Note: the supplied policy will perform a full overwrite of all fields.", + "description": "Updates a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Note: the supplied policy will perform a full overwrite of all fields.", "flatPath": "v2/organizations/{organizationsId}/customConstraints/{customConstraintsId}", "httpMethod": "PATCH", "id": "orgpolicy.organizations.customConstraints.patch", @@ -494,7 +494,7 @@ ], "parameters": { "name": { - "description": "Immutable. Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example : \"organizations/123/customConstraints/custom.createOnlyE2TypeVms\" The max length is 70 characters and the min length is 1. Note that the prefix \"organizations/{organization_id}/customConstraints/\" is not counted.", + "description": "Immutable. Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms` The max length is 70 characters and the minimum length is 1. Note that the prefix `organizations/{organization_id}/customConstraints/` is not counted.", "location": "path", "pattern": "^organizations/[^/]+/customConstraints/[^/]+$", "required": true, @@ -517,7 +517,7 @@ "policies": { "methods": { "create": { - "description": "Creates a Policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the policy already exists on the given Cloud resource.", + "description": "Creates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the policy already exists on the given Google Cloud resource.", "flatPath": "v2/organizations/{organizationsId}/policies", "httpMethod": "POST", "id": "orgpolicy.organizations.policies.create", @@ -526,7 +526,7 @@ ], "parameters": { "parent": { - "description": "Required. The Cloud resource that will parent the new Policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", + "description": "Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", "location": "path", "pattern": "^organizations/[^/]+$", "required": true, @@ -545,7 +545,7 @@ ] }, "delete": { - "description": "Deletes a Policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or Org Policy does not exist.", + "description": "Deletes a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or organization policy does not exist.", "flatPath": "v2/organizations/{organizationsId}/policies/{policiesId}", "httpMethod": "DELETE", "id": "orgpolicy.organizations.policies.delete", @@ -554,7 +554,7 @@ ], "parameters": { "name": { - "description": "Required. Name of the policy to delete. See `Policy` for naming rules.", + "description": "Required. Name of the policy to delete. See the policy entry for naming rules.", "location": "path", "pattern": "^organizations/[^/]+/policies/[^/]+$", "required": true, @@ -570,7 +570,7 @@ ] }, "get": { - "description": "Gets a `Policy` on a resource. If no `Policy` is set on the resource, NOT_FOUND is returned. The `etag` value can be used with `UpdatePolicy()` to update a `Policy` during read-modify-write.", + "description": "Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND` is returned. The `etag` value can be used with `UpdatePolicy()` to update a policy during read-modify-write.", "flatPath": "v2/organizations/{organizationsId}/policies/{policiesId}", "httpMethod": "GET", "id": "orgpolicy.organizations.policies.get", @@ -595,7 +595,7 @@ ] }, "getEffectivePolicy": { - "description": "Gets the effective `Policy` on a resource. This is the result of merging `Policies` in the resource hierarchy and evaluating conditions. The returned `Policy` will not have an `etag` or `condition` set because it is a computed `Policy` across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded.", + "description": "Gets the effective policy on a resource. This is the result of merging policies in the resource hierarchy and evaluating conditions. The returned policy will not have an `etag` or `condition` set because it is an evaluated policy across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded.", "flatPath": "v2/organizations/{organizationsId}/policies/{policiesId}:getEffectivePolicy", "httpMethod": "GET", "id": "orgpolicy.organizations.policies.getEffectivePolicy", @@ -620,7 +620,7 @@ ] }, "list": { - "description": "Retrieves all of the `Policies` that exist on a particular resource.", + "description": "Retrieves all of the policies that exist on a particular resource.", "flatPath": "v2/organizations/{organizationsId}/policies", "httpMethod": "GET", "id": "orgpolicy.organizations.policies.list", @@ -640,7 +640,7 @@ "type": "string" }, "parent": { - "description": "Required. The target Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", + "description": "Required. The target Google Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", "location": "path", "pattern": "^organizations/[^/]+$", "required": true, @@ -656,7 +656,7 @@ ] }, "patch": { - "description": "Updates a Policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or the policy do not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the etag supplied in the request does not match the persisted etag of the policy Note: the supplied policy will perform a full overwrite of all fields.", + "description": "Updates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or the policy do not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the etag supplied in the request does not match the persisted etag of the policy Note: the supplied policy will perform a full overwrite of all fields.", "flatPath": "v2/organizations/{organizationsId}/policies/{policiesId}", "httpMethod": "PATCH", "id": "orgpolicy.organizations.policies.patch", @@ -665,7 +665,7 @@ ], "parameters": { "name": { - "description": "Immutable. The resource name of the Policy. Must be one of the following forms, where constraint_name is the name of the constraint which this Policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, \"projects/123/policies/compute.disableSerialPortAccess\". Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number.", + "description": "Immutable. The resource name of the policy. Must be one of the following forms, where constraint_name is the name of the constraint which this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, \"projects/123/policies/compute.disableSerialPortAccess\". Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number.", "location": "path", "pattern": "^organizations/[^/]+/policies/[^/]+$", "required": true, @@ -698,7 +698,7 @@ "constraints": { "methods": { "list": { - "description": "Lists `Constraints` that could be applied on the specified resource.", + "description": "Lists constraints that could be applied on the specified resource.", "flatPath": "v2/projects/{projectsId}/constraints", "httpMethod": "GET", "id": "orgpolicy.projects.constraints.list", @@ -718,7 +718,7 @@ "type": "string" }, "parent": { - "description": "Required. The Cloud resource that parents the constraint. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", + "description": "Required. The Google Cloud resource that parents the constraint. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", "location": "path", "pattern": "^projects/[^/]+$", "required": true, @@ -738,7 +738,7 @@ "policies": { "methods": { "create": { - "description": "Creates a Policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the policy already exists on the given Cloud resource.", + "description": "Creates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the policy already exists on the given Google Cloud resource.", "flatPath": "v2/projects/{projectsId}/policies", "httpMethod": "POST", "id": "orgpolicy.projects.policies.create", @@ -747,7 +747,7 @@ ], "parameters": { "parent": { - "description": "Required. The Cloud resource that will parent the new Policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", + "description": "Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", "location": "path", "pattern": "^projects/[^/]+$", "required": true, @@ -766,7 +766,7 @@ ] }, "delete": { - "description": "Deletes a Policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or Org Policy does not exist.", + "description": "Deletes a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or organization policy does not exist.", "flatPath": "v2/projects/{projectsId}/policies/{policiesId}", "httpMethod": "DELETE", "id": "orgpolicy.projects.policies.delete", @@ -775,7 +775,7 @@ ], "parameters": { "name": { - "description": "Required. Name of the policy to delete. See `Policy` for naming rules.", + "description": "Required. Name of the policy to delete. See the policy entry for naming rules.", "location": "path", "pattern": "^projects/[^/]+/policies/[^/]+$", "required": true, @@ -791,7 +791,7 @@ ] }, "get": { - "description": "Gets a `Policy` on a resource. If no `Policy` is set on the resource, NOT_FOUND is returned. The `etag` value can be used with `UpdatePolicy()` to update a `Policy` during read-modify-write.", + "description": "Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND` is returned. The `etag` value can be used with `UpdatePolicy()` to update a policy during read-modify-write.", "flatPath": "v2/projects/{projectsId}/policies/{policiesId}", "httpMethod": "GET", "id": "orgpolicy.projects.policies.get", @@ -816,7 +816,7 @@ ] }, "getEffectivePolicy": { - "description": "Gets the effective `Policy` on a resource. This is the result of merging `Policies` in the resource hierarchy and evaluating conditions. The returned `Policy` will not have an `etag` or `condition` set because it is a computed `Policy` across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded.", + "description": "Gets the effective policy on a resource. This is the result of merging policies in the resource hierarchy and evaluating conditions. The returned policy will not have an `etag` or `condition` set because it is an evaluated policy across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded.", "flatPath": "v2/projects/{projectsId}/policies/{policiesId}:getEffectivePolicy", "httpMethod": "GET", "id": "orgpolicy.projects.policies.getEffectivePolicy", @@ -841,7 +841,7 @@ ] }, "list": { - "description": "Retrieves all of the `Policies` that exist on a particular resource.", + "description": "Retrieves all of the policies that exist on a particular resource.", "flatPath": "v2/projects/{projectsId}/policies", "httpMethod": "GET", "id": "orgpolicy.projects.policies.list", @@ -861,7 +861,7 @@ "type": "string" }, "parent": { - "description": "Required. The target Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", + "description": "Required. The target Google Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", "location": "path", "pattern": "^projects/[^/]+$", "required": true, @@ -877,7 +877,7 @@ ] }, "patch": { - "description": "Updates a Policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or the policy do not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the etag supplied in the request does not match the persisted etag of the policy Note: the supplied policy will perform a full overwrite of all fields.", + "description": "Updates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or the policy do not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the etag supplied in the request does not match the persisted etag of the policy Note: the supplied policy will perform a full overwrite of all fields.", "flatPath": "v2/projects/{projectsId}/policies/{policiesId}", "httpMethod": "PATCH", "id": "orgpolicy.projects.policies.patch", @@ -886,7 +886,7 @@ ], "parameters": { "name": { - "description": "Immutable. The resource name of the Policy. Must be one of the following forms, where constraint_name is the name of the constraint which this Policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, \"projects/123/policies/compute.disableSerialPortAccess\". Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number.", + "description": "Immutable. The resource name of the policy. Must be one of the following forms, where constraint_name is the name of the constraint which this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, \"projects/123/policies/compute.disableSerialPortAccess\". Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number.", "location": "path", "pattern": "^projects/[^/]+/policies/[^/]+$", "required": true, @@ -915,7 +915,7 @@ } } }, - "revision": "20230116", + "revision": "20230209", "rootUrl": "https://orgpolicy.googleapis.com/", "schemas": { "GoogleCloudOrgpolicyV2AlternatePolicySpec": { @@ -928,13 +928,13 @@ }, "spec": { "$ref": "GoogleCloudOrgpolicyV2PolicySpec", - "description": "Specify `Constraint` for configurations of Cloud Platform resources." + "description": "Specify constraint for configurations of Google Cloud resources." } }, "type": "object" }, "GoogleCloudOrgpolicyV2Constraint": { - "description": "A `constraint` describes a way to restrict resource's configuration. For example, you could enforce a constraint that controls which cloud services can be activated across an organization, or whether a Compute Engine instance can have serial port connections established. `Constraints` can be configured by the organization's policy administrator to fit the needs of the organization by setting a `policy` that includes `constraints` at different locations in the organization's resource hierarchy. Policies are inherited down the resource hierarchy from higher levels, but can also be overridden. For details about the inheritance rules please read about `policies`. `Constraints` have a default behavior determined by the `constraint_default` field, which is the enforcement behavior that is used in the absence of a `policy` being defined or inherited for the resource in question.", + "description": "A constraint describes a way to restrict resource's configuration. For example, you could enforce a constraint that controls which Google Cloud services can be activated across an organization, or whether a Compute Engine instance can have serial port connections established. Constraints can be configured by the organization policy administrator to fit the needs of the organization by setting a policy that includes constraints at different locations in the organization's resource hierarchy. Policies are inherited down the resource hierarchy from higher levels, but can also be overridden. For details about the inheritance rules please read about `policies`. Constraints have a default behavior determined by the `constraint_default` field, which is the enforcement behavior that is used in the absence of a policy being defined or inherited for the resource in question.", "id": "GoogleCloudOrgpolicyV2Constraint", "properties": { "booleanConstraint": { @@ -942,7 +942,7 @@ "description": "Defines this constraint as being a BooleanConstraint." }, "constraintDefault": { - "description": "The evaluation behavior of this constraint in the absence of 'Policy'.", + "description": "The evaluation behavior of this constraint in the absence of a policy.", "enum": [ "CONSTRAINT_DEFAULT_UNSPECIFIED", "ALLOW", @@ -956,7 +956,7 @@ "type": "string" }, "description": { - "description": "Detailed description of what this `Constraint` controls as well as how and where it is enforced. Mutable.", + "description": "Detailed description of what this constraint controls as well as how and where it is enforced. Mutable.", "type": "string" }, "displayName": { @@ -968,20 +968,20 @@ "description": "Defines this constraint as being a ListConstraint." }, "name": { - "description": "Immutable. The resource name of the Constraint. Must be in one of the following forms: * `projects/{project_number}/constraints/{constraint_name}` * `folders/{folder_id}/constraints/{constraint_name}` * `organizations/{organization_id}/constraints/{constraint_name}` For example, \"/projects/123/constraints/compute.disableSerialPortAccess\".", + "description": "Immutable. The resource name of the constraint. Must be in one of the following forms: * `projects/{project_number}/constraints/{constraint_name}` * `folders/{folder_id}/constraints/{constraint_name}` * `organizations/{organization_id}/constraints/{constraint_name}` For example, \"/projects/123/constraints/compute.disableSerialPortAccess\".", "type": "string" } }, "type": "object" }, "GoogleCloudOrgpolicyV2ConstraintBooleanConstraint": { - "description": "A `Constraint` that is either enforced or not. For example a constraint `constraints/compute.disableSerialPortAccess`. If it is enforced on a VM instance, serial port connections will not be opened to that instance.", + "description": "A constraint that is either enforced or not. For example, a constraint `constraints/compute.disableSerialPortAccess`. If it is enforced on a VM instance, serial port connections will not be opened to that instance.", "id": "GoogleCloudOrgpolicyV2ConstraintBooleanConstraint", "properties": {}, "type": "object" }, "GoogleCloudOrgpolicyV2ConstraintListConstraint": { - "description": "A `Constraint` that allows or disallows a list of string values, which are configured by an Organization's policy administrator with a `Policy`.", + "description": "A constraint that allows or disallows a list of string values, which are configured by an Organization Policy administrator with a policy.", "id": "GoogleCloudOrgpolicyV2ConstraintListConstraint", "properties": { "supportsIn": { @@ -989,14 +989,14 @@ "type": "boolean" }, "supportsUnder": { - "description": "Indicates whether subtrees of Cloud Resource Manager resource hierarchy can be used in `Policy.allowed_values` and `Policy.denied_values`. For example, `\"under:folders/123\"` would match any resource under the 'folders/123' folder.", + "description": "Indicates whether subtrees of the Resource Manager resource hierarchy can be used in `Policy.allowed_values` and `Policy.denied_values`. For example, `\"under:folders/123\"` would match any resource under the 'folders/123' folder.", "type": "boolean" } }, "type": "object" }, "GoogleCloudOrgpolicyV2CustomConstraint": { - "description": "A custom constraint defined by customers which can *only* be applied to the given resource types and organization. By creating a custom constraint, customers can applied policies of this custom constraint. *Creating a custom constraint itself does NOT apply any policy enforcement*.", + "description": "A custom constraint defined by customers which can *only* be applied to the given resource types and organization. By creating a custom constraint, customers can apply policies of this custom constraint. *Creating a custom constraint itself does NOT apply any policy enforcement*.", "id": "GoogleCloudOrgpolicyV2CustomConstraint", "properties": { "actionType": { @@ -1007,7 +1007,7 @@ "DENY" ], "enumDescriptions": [ - "Unspecified. Will results in user error.", + "Unspecified. Results in an error.", "Allowed action type.", "Deny action type." ], @@ -1035,7 +1035,7 @@ "DELETE" ], "enumDescriptions": [ - "Unspecified. Will results in user error.", + "Unspecified. Results in an error.", "Constraint applied when creating the resource.", "Constraint applied when updating the resource.", "Constraint applied when deleting the resource. Not supported yet." @@ -1045,11 +1045,11 @@ "type": "array" }, "name": { - "description": "Immutable. Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example : \"organizations/123/customConstraints/custom.createOnlyE2TypeVms\" The max length is 70 characters and the min length is 1. Note that the prefix \"organizations/{organization_id}/customConstraints/\" is not counted.", + "description": "Immutable. Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms` The max length is 70 characters and the minimum length is 1. Note that the prefix `organizations/{organization_id}/customConstraints/` is not counted.", "type": "string" }, "resourceTypes": { - "description": "Immutable. The Resource Instance type on which this policy applies to. Format will be of the form : \"/\" Example: * `compute.googleapis.com/Instance`.", + "description": "Immutable. The resource instance type on which this policy applies. Format will be of the form : \"/\" Example: * `compute.googleapis.com/Instance`.", "items": { "type": "string" }, @@ -1083,11 +1083,11 @@ "type": "object" }, "GoogleCloudOrgpolicyV2ListCustomConstraintsResponse": { - "description": "The response returned from the ListCustomConstraints method. It will be empty if no `CustomConstraints` are set on the organization resource.", + "description": "The response returned from the ListCustomConstraints method. It will be empty if no custom constraints are set on the organization resource.", "id": "GoogleCloudOrgpolicyV2ListCustomConstraintsResponse", "properties": { "customConstraints": { - "description": "All `CustomConstraints` that exist on the organization resource. It will be empty if no `CustomConstraints` are set.", + "description": "All custom constraints that exist on the organization resource. It will be empty if no custom constraints are set.", "items": { "$ref": "GoogleCloudOrgpolicyV2CustomConstraint" }, @@ -1101,7 +1101,7 @@ "type": "object" }, "GoogleCloudOrgpolicyV2ListPoliciesResponse": { - "description": "The response returned from the ListPolicies method. It will be empty if no `Policies` are set on the resource.", + "description": "The response returned from the ListPolicies method. It will be empty if no policies are set on the resource.", "id": "GoogleCloudOrgpolicyV2ListPoliciesResponse", "properties": { "nextPageToken": { @@ -1109,7 +1109,7 @@ "type": "string" }, "policies": { - "description": "All `Policies` that exist on the resource. It will be empty if no `Policies` are set.", + "description": "All policies that exist on the resource. It will be empty if no policies are set.", "items": { "$ref": "GoogleCloudOrgpolicyV2Policy" }, @@ -1119,7 +1119,7 @@ "type": "object" }, "GoogleCloudOrgpolicyV2Policy": { - "description": "Defines a Cloud Organization `Policy` which is used to specify `Constraints` for configurations of Cloud Platform resources.", + "description": "Defines an organization policy which is used to specify constraints for configurations of Google Cloud resources.", "id": "GoogleCloudOrgpolicyV2Policy", "properties": { "alternate": { @@ -1128,10 +1128,10 @@ }, "dryRunSpec": { "$ref": "GoogleCloudOrgpolicyV2PolicySpec", - "description": "dry-run policy. Audit-only policy, can be used to monitor how the policy would have impacted the existing and future resources if it's enforced." + "description": "Dry-run policy. Audit-only policy, can be used to monitor how the policy would have impacted the existing and future resources if it's enforced." }, "name": { - "description": "Immutable. The resource name of the Policy. Must be one of the following forms, where constraint_name is the name of the constraint which this Policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, \"projects/123/policies/compute.disableSerialPortAccess\". Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number.", + "description": "Immutable. The resource name of the policy. Must be one of the following forms, where constraint_name is the name of the constraint which this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, \"projects/123/policies/compute.disableSerialPortAccess\". Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number.", "type": "string" }, "spec": { @@ -1142,30 +1142,30 @@ "type": "object" }, "GoogleCloudOrgpolicyV2PolicySpec": { - "description": "Defines a Cloud Organization `PolicySpec` which is used to specify `Constraints` for configurations of Cloud Platform resources.", + "description": "Defines a Google Cloud policy specification which is used to specify constraints for configurations of Google Cloud resources.", "id": "GoogleCloudOrgpolicyV2PolicySpec", "properties": { "etag": { - "description": "An opaque tag indicating the current version of the `Policy`, used for concurrency control. This field is ignored if used in a `CreatePolicy` request. When the `Policy` is returned from either a `GetPolicy` or a `ListPolicies` request, this `etag` indicates the version of the current `Policy` to use when executing a read-modify-write loop. When the `Policy` is returned from a `GetEffectivePolicy` request, the `etag` will be unset.", + "description": "An opaque tag indicating the current version of the policy, used for concurrency control. This field is ignored if used in a `CreatePolicy` request. When the policy` is returned from either a `GetPolicy` or a `ListPolicies` request, this `etag` indicates the version of the current policy to use when executing a read-modify-write loop. When the policy is returned from a `GetEffectivePolicy` request, the `etag` will be unset.", "type": "string" }, "inheritFromParent": { - "description": "Determines the inheritance behavior for this `Policy`. If `inherit_from_parent` is true, PolicyRules set higher up in the hierarchy (up to the closest root) are inherited and present in the effective policy. If it is false, then no rules are inherited, and this Policy becomes the new root for evaluation. This field can be set only for Policies which configure list constraints.", + "description": "Determines the inheritance behavior for this policy. If `inherit_from_parent` is true, policy rules set higher up in the hierarchy (up to the closest root) are inherited and present in the effective policy. If it is false, then no rules are inherited, and this policy becomes the new root for evaluation. This field can be set only for policies which configure list constraints.", "type": "boolean" }, "reset": { - "description": "Ignores policies set above this resource and restores the `constraint_default` enforcement behavior of the specific `Constraint` at this resource. This field can be set in policies for either list or boolean constraints. If set, `rules` must be empty and `inherit_from_parent` must be set to false.", + "description": "Ignores policies set above this resource and restores the `constraint_default` enforcement behavior of the specific constraint at this resource. This field can be set in policies for either list or boolean constraints. If set, `rules` must be empty and `inherit_from_parent` must be set to false.", "type": "boolean" }, "rules": { - "description": "Up to 10 PolicyRules are allowed. In Policies for boolean constraints, the following requirements apply: - There must be one and only one PolicyRule where condition is unset. - BooleanPolicyRules with conditions must set `enforced` to the opposite of the PolicyRule without a condition. - During policy evaluation, PolicyRules with conditions that are true for a target resource take precedence.", + "description": "Up to 10 policy rules are allowed. In policies for boolean constraints, the following requirements apply: - There must be one and only one policy rule where condition is unset. - Boolean policy rules with conditions must set `enforced` to the opposite of the policy rule without a condition. - During policy evaluation, policy rules with conditions that are true for a target resource take precedence.", "items": { "$ref": "GoogleCloudOrgpolicyV2PolicySpecPolicyRule" }, "type": "array" }, "updateTime": { - "description": "Output only. The time stamp this was previously updated. This represents the last time a call to `CreatePolicy` or `UpdatePolicy` was made for that `Policy`.", + "description": "Output only. The time stamp this was previously updated. This represents the last time a call to `CreatePolicy` or `UpdatePolicy` was made for that policy.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -1178,7 +1178,7 @@ "id": "GoogleCloudOrgpolicyV2PolicySpecPolicyRule", "properties": { "allowAll": { - "description": "Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.", + "description": "Setting this to true means that all values are allowed. This field can be set only in policies for list constraints.", "type": "boolean" }, "condition": { @@ -1186,22 +1186,22 @@ "description": "A condition which determines whether this rule is used in the evaluation of the policy. When set, the `expression` field in the `Expr' must include from 1 to 10 subexpressions, joined by the \"||\" or \"\u0026\u0026\" operators. Each subexpression must be of the form \"resource.matchTag('/tag_key_short_name, 'tag_value_short_name')\". or \"resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')\". where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Tag Manager Service. An example expression is: \"resource.matchTag('123456789/environment, 'prod')\". or \"resource.matchTagId('tagKeys/123', 'tagValues/456')\"." }, "denyAll": { - "description": "Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.", + "description": "Setting this to true means that all values are denied. This field can be set only in policies for list constraints.", "type": "boolean" }, "enforce": { - "description": "If `true`, then the `Policy` is enforced. If `false`, then any configuration is acceptable. This field can be set only in Policies for boolean constraints.", + "description": "If `true`, then the policy is enforced. If `false`, then any configuration is acceptable. This field can be set only in policies for boolean constraints.", "type": "boolean" }, "values": { "$ref": "GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues", - "description": "List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints." + "description": "List of values to be used for this policy rule. This field can be set only in policies for list constraints." } }, "type": "object" }, "GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues": { - "description": "A message that holds specific allowed and denied values. This message can define specific values and subtrees of Cloud Resource Manager resource hierarchy (`Organizations`, `Folders`, `Projects`) that are allowed or denied. This is achieved by using the `under:` and optional `is:` prefixes. The `under:` prefix is used to denote resource subtree values. The `is:` prefix is used to denote specific values, and is required only if the value contains a \":\". Values prefixed with \"is:\" are treated the same as values with no prefix. Ancestry subtrees must be in one of the following formats: - \"projects/\", e.g. \"projects/tokyo-rain-123\" - \"folders/\", e.g. \"folders/1234\" - \"organizations/\", e.g. \"organizations/1234\" The `supports_under` field of the associated `Constraint` defines whether ancestry prefixes can be used.", + "description": "A message that holds specific allowed and denied values. This message can define specific values and subtrees of the Resource Manager resource hierarchy (`Organizations`, `Folders`, `Projects`) that are allowed or denied. This is achieved by using the `under:` and optional `is:` prefixes. The `under:` prefix is used to denote resource subtree values. The `is:` prefix is used to denote specific values, and is required only if the value contains a \":\". Values prefixed with \"is:\" are treated the same as values with no prefix. Ancestry subtrees must be in one of the following formats: - \"projects/\", e.g. \"projects/tokyo-rain-123\" - \"folders/\", e.g. \"folders/1234\" - \"organizations/\", e.g. \"organizations/1234\" The `supports_under` field of the associated `Constraint` defines whether ancestry prefixes can be used.", "id": "GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues", "properties": { "allowedValues": { diff --git a/orgpolicy/v2/orgpolicy-gen.go b/orgpolicy/v2/orgpolicy-gen.go index 72778699368..ee340c91f06 100644 --- a/orgpolicy/v2/orgpolicy-gen.go +++ b/orgpolicy/v2/orgpolicy-gen.go @@ -263,7 +263,7 @@ type GoogleCloudOrgpolicyV2AlternatePolicySpec struct { // policy. Launch string `json:"launch,omitempty"` - // Spec: Specify `Constraint` for configurations of Cloud Platform + // Spec: Specify constraint for configurations of Google Cloud // resources. Spec *GoogleCloudOrgpolicyV2PolicySpec `json:"spec,omitempty"` @@ -290,19 +290,19 @@ func (s *GoogleCloudOrgpolicyV2AlternatePolicySpec) MarshalJSON() ([]byte, error return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudOrgpolicyV2Constraint: A `constraint` describes a way to +// GoogleCloudOrgpolicyV2Constraint: A constraint describes a way to // restrict resource's configuration. For example, you could enforce a -// constraint that controls which cloud services can be activated across -// an organization, or whether a Compute Engine instance can have serial -// port connections established. `Constraints` can be configured by the -// organization's policy administrator to fit the needs of the -// organization by setting a `policy` that includes `constraints` at +// constraint that controls which Google Cloud services can be activated +// across an organization, or whether a Compute Engine instance can have +// serial port connections established. Constraints can be configured by +// the organization policy administrator to fit the needs of the +// organization by setting a policy that includes constraints at // different locations in the organization's resource hierarchy. // Policies are inherited down the resource hierarchy from higher // levels, but can also be overridden. For details about the inheritance -// rules please read about `policies`. `Constraints` have a default +// rules please read about `policies`. Constraints have a default // behavior determined by the `constraint_default` field, which is the -// enforcement behavior that is used in the absence of a `policy` being +// enforcement behavior that is used in the absence of a policy being // defined or inherited for the resource in question. type GoogleCloudOrgpolicyV2Constraint struct { // BooleanConstraint: Defines this constraint as being a @@ -310,7 +310,7 @@ type GoogleCloudOrgpolicyV2Constraint struct { BooleanConstraint *GoogleCloudOrgpolicyV2ConstraintBooleanConstraint `json:"booleanConstraint,omitempty"` // ConstraintDefault: The evaluation behavior of this constraint in the - // absence of 'Policy'. + // absence of a policy. // // Possible values: // "CONSTRAINT_DEFAULT_UNSPECIFIED" - This is only used for @@ -322,8 +322,8 @@ type GoogleCloudOrgpolicyV2Constraint struct { // Indicate that enforcement is on for boolean constraints. ConstraintDefault string `json:"constraintDefault,omitempty"` - // Description: Detailed description of what this `Constraint` controls - // as well as how and where it is enforced. Mutable. + // Description: Detailed description of what this constraint controls as + // well as how and where it is enforced. Mutable. Description string `json:"description,omitempty"` // DisplayName: The human readable name. Mutable. @@ -332,7 +332,7 @@ type GoogleCloudOrgpolicyV2Constraint struct { // ListConstraint: Defines this constraint as being a ListConstraint. ListConstraint *GoogleCloudOrgpolicyV2ConstraintListConstraint `json:"listConstraint,omitempty"` - // Name: Immutable. The resource name of the Constraint. Must be in one + // Name: Immutable. The resource name of the constraint. Must be in one // of the following forms: * // `projects/{project_number}/constraints/{constraint_name}` * // `folders/{folder_id}/constraints/{constraint_name}` * @@ -364,24 +364,24 @@ func (s *GoogleCloudOrgpolicyV2Constraint) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudOrgpolicyV2ConstraintBooleanConstraint: A `Constraint` -// that is either enforced or not. For example a constraint +// GoogleCloudOrgpolicyV2ConstraintBooleanConstraint: A constraint that +// is either enforced or not. For example, a constraint // `constraints/compute.disableSerialPortAccess`. If it is enforced on a // VM instance, serial port connections will not be opened to that // instance. type GoogleCloudOrgpolicyV2ConstraintBooleanConstraint struct { } -// GoogleCloudOrgpolicyV2ConstraintListConstraint: A `Constraint` that +// GoogleCloudOrgpolicyV2ConstraintListConstraint: A constraint that // allows or disallows a list of string values, which are configured by -// an Organization's policy administrator with a `Policy`. +// an Organization Policy administrator with a policy. type GoogleCloudOrgpolicyV2ConstraintListConstraint struct { // SupportsIn: Indicates whether values grouped into categories can be // used in `Policy.allowed_values` and `Policy.denied_values`. For // example, "in:Python" would match any value in the 'Python' group. SupportsIn bool `json:"supportsIn,omitempty"` - // SupportsUnder: Indicates whether subtrees of Cloud Resource Manager + // SupportsUnder: Indicates whether subtrees of the Resource Manager // resource hierarchy can be used in `Policy.allowed_values` and // `Policy.denied_values`. For example, "under:folders/123" would // match any resource under the 'folders/123' folder. @@ -413,14 +413,13 @@ func (s *GoogleCloudOrgpolicyV2ConstraintListConstraint) MarshalJSON() ([]byte, // GoogleCloudOrgpolicyV2CustomConstraint: A custom constraint defined // by customers which can *only* be applied to the given resource types // and organization. By creating a custom constraint, customers can -// applied policies of this custom constraint. *Creating a custom +// apply policies of this custom constraint. *Creating a custom // constraint itself does NOT apply any policy enforcement*. type GoogleCloudOrgpolicyV2CustomConstraint struct { // ActionType: Allow or deny type. // // Possible values: - // "ACTION_TYPE_UNSPECIFIED" - Unspecified. Will results in user - // error. + // "ACTION_TYPE_UNSPECIFIED" - Unspecified. Results in an error. // "ALLOW" - Allowed action type. // "DENY" - Deny action type. ActionType string `json:"actionType,omitempty"` @@ -442,8 +441,7 @@ type GoogleCloudOrgpolicyV2CustomConstraint struct { // MethodTypes: All the operations being applied for this constraint. // // Possible values: - // "METHOD_TYPE_UNSPECIFIED" - Unspecified. Will results in user - // error. + // "METHOD_TYPE_UNSPECIFIED" - Unspecified. Results in an error. // "CREATE" - Constraint applied when creating the resource. // "UPDATE" - Constraint applied when updating the resource. // "DELETE" - Constraint applied when deleting the resource. Not @@ -453,15 +451,15 @@ type GoogleCloudOrgpolicyV2CustomConstraint struct { // Name: Immutable. Name of the constraint. This is unique within the // organization. Format of the name should be * // `organizations/{organization_id}/customConstraints/{custom_constraint_ - // id}` Example : - // "organizations/123/customConstraints/custom.createOnlyE2TypeVms" The - // max length is 70 characters and the min length is 1. Note that the - // prefix "organizations/{organization_id}/customConstraints/" is not - // counted. + // id}` Example: + // `organizations/123/customConstraints/custom.createOnlyE2TypeVms` The + // max length is 70 characters and the minimum length is 1. Note that + // the prefix `organizations/{organization_id}/customConstraints/` is + // not counted. Name string `json:"name,omitempty"` - // ResourceTypes: Immutable. The Resource Instance type on which this - // policy applies to. Format will be of the form : "/" Example: * + // ResourceTypes: Immutable. The resource instance type on which this + // policy applies. Format will be of the form : "/" Example: * // `compute.googleapis.com/Instance`. ResourceTypes []string `json:"resourceTypes,omitempty"` @@ -537,10 +535,10 @@ func (s *GoogleCloudOrgpolicyV2ListConstraintsResponse) MarshalJSON() ([]byte, e // GoogleCloudOrgpolicyV2ListCustomConstraintsResponse: The response // returned from the ListCustomConstraints method. It will be empty if -// no `CustomConstraints` are set on the organization resource. +// no custom constraints are set on the organization resource. type GoogleCloudOrgpolicyV2ListCustomConstraintsResponse struct { - // CustomConstraints: All `CustomConstraints` that exist on the - // organization resource. It will be empty if no `CustomConstraints` are + // CustomConstraints: All custom constraints that exist on the + // organization resource. It will be empty if no custom constraints are // set. CustomConstraints []*GoogleCloudOrgpolicyV2CustomConstraint `json:"customConstraints,omitempty"` @@ -578,16 +576,16 @@ func (s *GoogleCloudOrgpolicyV2ListCustomConstraintsResponse) MarshalJSON() ([]b } // GoogleCloudOrgpolicyV2ListPoliciesResponse: The response returned -// from the ListPolicies method. It will be empty if no `Policies` are -// set on the resource. +// from the ListPolicies method. It will be empty if no policies are set +// on the resource. type GoogleCloudOrgpolicyV2ListPoliciesResponse struct { // NextPageToken: Page token used to retrieve the next page. This is // currently not used, but the server may at any point start supplying a // valid token. NextPageToken string `json:"nextPageToken,omitempty"` - // Policies: All `Policies` that exist on the resource. It will be empty - // if no `Policies` are set. + // Policies: All policies that exist on the resource. It will be empty + // if no policies are set. Policies []*GoogleCloudOrgpolicyV2Policy `json:"policies,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -617,21 +615,21 @@ func (s *GoogleCloudOrgpolicyV2ListPoliciesResponse) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudOrgpolicyV2Policy: Defines a Cloud Organization `Policy` -// which is used to specify `Constraints` for configurations of Cloud -// Platform resources. +// GoogleCloudOrgpolicyV2Policy: Defines an organization policy which is +// used to specify constraints for configurations of Google Cloud +// resources. type GoogleCloudOrgpolicyV2Policy struct { // Alternate: Deprecated. Alternate *GoogleCloudOrgpolicyV2AlternatePolicySpec `json:"alternate,omitempty"` - // DryRunSpec: dry-run policy. Audit-only policy, can be used to monitor + // DryRunSpec: Dry-run policy. Audit-only policy, can be used to monitor // how the policy would have impacted the existing and future resources // if it's enforced. DryRunSpec *GoogleCloudOrgpolicyV2PolicySpec `json:"dryRunSpec,omitempty"` - // Name: Immutable. The resource name of the Policy. Must be one of the + // Name: Immutable. The resource name of the policy. Must be one of the // following forms, where constraint_name is the name of the constraint - // which this Policy configures: * + // which this policy configures: * // `projects/{project_number}/policies/{constraint_name}` * // `folders/{folder_id}/policies/{constraint_name}` * // `organizations/{organization_id}/policies/{constraint_name}` For @@ -671,46 +669,46 @@ func (s *GoogleCloudOrgpolicyV2Policy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudOrgpolicyV2PolicySpec: Defines a Cloud Organization -// `PolicySpec` which is used to specify `Constraints` for -// configurations of Cloud Platform resources. +// GoogleCloudOrgpolicyV2PolicySpec: Defines a Google Cloud policy +// specification which is used to specify constraints for configurations +// of Google Cloud resources. type GoogleCloudOrgpolicyV2PolicySpec struct { - // Etag: An opaque tag indicating the current version of the `Policy`, + // Etag: An opaque tag indicating the current version of the policy, // used for concurrency control. This field is ignored if used in a - // `CreatePolicy` request. When the `Policy` is returned from either a + // `CreatePolicy` request. When the policy` is returned from either a // `GetPolicy` or a `ListPolicies` request, this `etag` indicates the - // version of the current `Policy` to use when executing a - // read-modify-write loop. When the `Policy` is returned from a + // version of the current policy to use when executing a + // read-modify-write loop. When the policy is returned from a // `GetEffectivePolicy` request, the `etag` will be unset. Etag string `json:"etag,omitempty"` // InheritFromParent: Determines the inheritance behavior for this - // `Policy`. If `inherit_from_parent` is true, PolicyRules set higher up + // policy. If `inherit_from_parent` is true, policy rules set higher up // in the hierarchy (up to the closest root) are inherited and present // in the effective policy. If it is false, then no rules are inherited, - // and this Policy becomes the new root for evaluation. This field can - // be set only for Policies which configure list constraints. + // and this policy becomes the new root for evaluation. This field can + // be set only for policies which configure list constraints. InheritFromParent bool `json:"inheritFromParent,omitempty"` // Reset: Ignores policies set above this resource and restores the - // `constraint_default` enforcement behavior of the specific - // `Constraint` at this resource. This field can be set in policies for - // either list or boolean constraints. If set, `rules` must be empty and + // `constraint_default` enforcement behavior of the specific constraint + // at this resource. This field can be set in policies for either list + // or boolean constraints. If set, `rules` must be empty and // `inherit_from_parent` must be set to false. Reset bool `json:"reset,omitempty"` - // Rules: Up to 10 PolicyRules are allowed. In Policies for boolean + // Rules: Up to 10 policy rules are allowed. In policies for boolean // constraints, the following requirements apply: - There must be one - // and only one PolicyRule where condition is unset. - - // BooleanPolicyRules with conditions must set `enforced` to the - // opposite of the PolicyRule without a condition. - During policy - // evaluation, PolicyRules with conditions that are true for a target - // resource take precedence. + // and only one policy rule where condition is unset. - Boolean policy + // rules with conditions must set `enforced` to the opposite of the + // policy rule without a condition. - During policy evaluation, policy + // rules with conditions that are true for a target resource take + // precedence. Rules []*GoogleCloudOrgpolicyV2PolicySpecPolicyRule `json:"rules,omitempty"` // UpdateTime: Output only. The time stamp this was previously updated. // This represents the last time a call to `CreatePolicy` or - // `UpdatePolicy` was made for that `Policy`. + // `UpdatePolicy` was made for that policy. UpdateTime string `json:"updateTime,omitempty"` // ForceSendFields is a list of field names (e.g. "Etag") to @@ -740,7 +738,7 @@ func (s *GoogleCloudOrgpolicyV2PolicySpec) MarshalJSON() ([]byte, error) { // this policy. type GoogleCloudOrgpolicyV2PolicySpecPolicyRule struct { // AllowAll: Setting this to true means that all values are allowed. - // This field can be set only in Policies for list constraints. + // This field can be set only in policies for list constraints. AllowAll bool `json:"allowAll,omitempty"` // Condition: A condition which determines whether this rule is used in @@ -756,16 +754,16 @@ type GoogleCloudOrgpolicyV2PolicySpecPolicyRule struct { Condition *GoogleTypeExpr `json:"condition,omitempty"` // DenyAll: Setting this to true means that all values are denied. This - // field can be set only in Policies for list constraints. + // field can be set only in policies for list constraints. DenyAll bool `json:"denyAll,omitempty"` - // Enforce: If `true`, then the `Policy` is enforced. If `false`, then - // any configuration is acceptable. This field can be set only in - // Policies for boolean constraints. + // Enforce: If `true`, then the policy is enforced. If `false`, then any + // configuration is acceptable. This field can be set only in policies + // for boolean constraints. Enforce bool `json:"enforce,omitempty"` - // Values: List of values to be used for this PolicyRule. This field can - // be set only in Policies for list constraints. + // Values: List of values to be used for this policy rule. This field + // can be set only in policies for list constraints. Values *GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues `json:"values,omitempty"` // ForceSendFields is a list of field names (e.g. "AllowAll") to @@ -793,18 +791,18 @@ func (s *GoogleCloudOrgpolicyV2PolicySpecPolicyRule) MarshalJSON() ([]byte, erro // GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues: A message // that holds specific allowed and denied values. This message can -// define specific values and subtrees of Cloud Resource Manager -// resource hierarchy (`Organizations`, `Folders`, `Projects`) that are -// allowed or denied. This is achieved by using the `under:` and -// optional `is:` prefixes. The `under:` prefix is used to denote -// resource subtree values. The `is:` prefix is used to denote specific -// values, and is required only if the value contains a ":". Values -// prefixed with "is:" are treated the same as values with no prefix. -// Ancestry subtrees must be in one of the following formats: - -// "projects/", e.g. "projects/tokyo-rain-123" - "folders/", e.g. -// "folders/1234" - "organizations/", e.g. "organizations/1234" The -// `supports_under` field of the associated `Constraint` defines whether -// ancestry prefixes can be used. +// define specific values and subtrees of the Resource Manager resource +// hierarchy (`Organizations`, `Folders`, `Projects`) that are allowed +// or denied. This is achieved by using the `under:` and optional `is:` +// prefixes. The `under:` prefix is used to denote resource subtree +// values. The `is:` prefix is used to denote specific values, and is +// required only if the value contains a ":". Values prefixed with "is:" +// are treated the same as values with no prefix. Ancestry subtrees must +// be in one of the following formats: - "projects/", e.g. +// "projects/tokyo-rain-123" - "folders/", e.g. "folders/1234" - +// "organizations/", e.g. "organizations/1234" The `supports_under` +// field of the associated `Constraint` defines whether ancestry +// prefixes can be used. type GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues struct { // AllowedValues: List of values allowed at this resource. AllowedValues []string `json:"allowedValues,omitempty"` @@ -917,11 +915,11 @@ type FoldersConstraintsListCall struct { header_ http.Header } -// List: Lists `Constraints` that could be applied on the specified +// List: Lists constraints that could be applied on the specified // resource. // -// - parent: The Cloud resource that parents the constraint. Must be in -// one of the following forms: * `projects/{project_number}` * +// - parent: The Google Cloud resource that parents the constraint. Must +// be in one of the following forms: * `projects/{project_number}` * // `projects/{project_id}` * `folders/{folder_id}` * // `organizations/{organization_id}`. func (r *FoldersConstraintsService) List(parent string) *FoldersConstraintsListCall { @@ -1047,7 +1045,7 @@ func (c *FoldersConstraintsListCall) Do(opts ...googleapi.CallOption) (*GoogleCl } return ret, nil // { - // "description": "Lists `Constraints` that could be applied on the specified resource.", + // "description": "Lists constraints that could be applied on the specified resource.", // "flatPath": "v2/folders/{foldersId}/constraints", // "httpMethod": "GET", // "id": "orgpolicy.folders.constraints.list", @@ -1067,7 +1065,7 @@ func (c *FoldersConstraintsListCall) Do(opts ...googleapi.CallOption) (*GoogleCl // "type": "string" // }, // "parent": { - // "description": "Required. The Cloud resource that parents the constraint. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", + // "description": "Required. The Google Cloud resource that parents the constraint. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", // "location": "path", // "pattern": "^folders/[^/]+$", // "required": true, @@ -1117,15 +1115,15 @@ type FoldersPoliciesCreateCall struct { header_ http.Header } -// Create: Creates a Policy. Returns a `google.rpc.Status` with +// Create: Creates a policy. Returns a `google.rpc.Status` with // `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns // a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the -// policy already exists on the given Cloud resource. +// policy already exists on the given Google Cloud resource. // -// - parent: The Cloud resource that will parent the new Policy. Must be -// in one of the following forms: * `projects/{project_number}` * -// `projects/{project_id}` * `folders/{folder_id}` * -// `organizations/{organization_id}`. +// - parent: The Google Cloud resource that will parent the new policy. +// Must be in one of the following forms: * +// `projects/{project_number}` * `projects/{project_id}` * +// `folders/{folder_id}` * `organizations/{organization_id}`. func (r *FoldersPoliciesService) Create(parent string, googlecloudorgpolicyv2policy *GoogleCloudOrgpolicyV2Policy) *FoldersPoliciesCreateCall { c := &FoldersPoliciesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -1224,7 +1222,7 @@ func (c *FoldersPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleClo } return ret, nil // { - // "description": "Creates a Policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the policy already exists on the given Cloud resource.", + // "description": "Creates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the policy already exists on the given Google Cloud resource.", // "flatPath": "v2/folders/{foldersId}/policies", // "httpMethod": "POST", // "id": "orgpolicy.folders.policies.create", @@ -1233,7 +1231,7 @@ func (c *FoldersPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleClo // ], // "parameters": { // "parent": { - // "description": "Required. The Cloud resource that will parent the new Policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", + // "description": "Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", // "location": "path", // "pattern": "^folders/[^/]+$", // "required": true, @@ -1264,11 +1262,12 @@ type FoldersPoliciesDeleteCall struct { header_ http.Header } -// Delete: Deletes a Policy. Returns a `google.rpc.Status` with -// `google.rpc.Code.NOT_FOUND` if the constraint or Org Policy does not -// exist. +// Delete: Deletes a policy. Returns a `google.rpc.Status` with +// `google.rpc.Code.NOT_FOUND` if the constraint or organization policy +// does not exist. // -// - name: Name of the policy to delete. See `Policy` for naming rules. +// - name: Name of the policy to delete. See the policy entry for naming +// rules. func (r *FoldersPoliciesService) Delete(name string) *FoldersPoliciesDeleteCall { c := &FoldersPoliciesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -1361,7 +1360,7 @@ func (c *FoldersPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*GooglePro } return ret, nil // { - // "description": "Deletes a Policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or Org Policy does not exist.", + // "description": "Deletes a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or organization policy does not exist.", // "flatPath": "v2/folders/{foldersId}/policies/{policiesId}", // "httpMethod": "DELETE", // "id": "orgpolicy.folders.policies.delete", @@ -1370,7 +1369,7 @@ func (c *FoldersPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*GooglePro // ], // "parameters": { // "name": { - // "description": "Required. Name of the policy to delete. See `Policy` for naming rules.", + // "description": "Required. Name of the policy to delete. See the policy entry for naming rules.", // "location": "path", // "pattern": "^folders/[^/]+/policies/[^/]+$", // "required": true, @@ -1399,9 +1398,9 @@ type FoldersPoliciesGetCall struct { header_ http.Header } -// Get: Gets a `Policy` on a resource. If no `Policy` is set on the -// resource, NOT_FOUND is returned. The `etag` value can be used with -// `UpdatePolicy()` to update a `Policy` during read-modify-write. +// Get: Gets a policy on a resource. If no policy is set on the +// resource, `NOT_FOUND` is returned. The `etag` value can be used with +// `UpdatePolicy()` to update a policy during read-modify-write. // // - name: Resource name of the policy. See `Policy` for naming // requirements. @@ -1510,7 +1509,7 @@ func (c *FoldersPoliciesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudO } return ret, nil // { - // "description": "Gets a `Policy` on a resource. If no `Policy` is set on the resource, NOT_FOUND is returned. The `etag` value can be used with `UpdatePolicy()` to update a `Policy` during read-modify-write.", + // "description": "Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND` is returned. The `etag` value can be used with `UpdatePolicy()` to update a policy during read-modify-write.", // "flatPath": "v2/folders/{foldersId}/policies/{policiesId}", // "httpMethod": "GET", // "id": "orgpolicy.folders.policies.get", @@ -1548,10 +1547,10 @@ type FoldersPoliciesGetEffectivePolicyCall struct { header_ http.Header } -// GetEffectivePolicy: Gets the effective `Policy` on a resource. This -// is the result of merging `Policies` in the resource hierarchy and -// evaluating conditions. The returned `Policy` will not have an `etag` -// or `condition` set because it is a computed `Policy` across multiple +// GetEffectivePolicy: Gets the effective policy on a resource. This is +// the result of merging policies in the resource hierarchy and +// evaluating conditions. The returned policy will not have an `etag` or +// `condition` set because it is an evaluated policy across multiple // resources. Subtrees of Resource Manager resource hierarchy with // 'under:' prefix will not be expanded. // @@ -1662,7 +1661,7 @@ func (c *FoldersPoliciesGetEffectivePolicyCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Gets the effective `Policy` on a resource. This is the result of merging `Policies` in the resource hierarchy and evaluating conditions. The returned `Policy` will not have an `etag` or `condition` set because it is a computed `Policy` across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded.", + // "description": "Gets the effective policy on a resource. This is the result of merging policies in the resource hierarchy and evaluating conditions. The returned policy will not have an `etag` or `condition` set because it is an evaluated policy across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded.", // "flatPath": "v2/folders/{foldersId}/policies/{policiesId}:getEffectivePolicy", // "httpMethod": "GET", // "id": "orgpolicy.folders.policies.getEffectivePolicy", @@ -1700,10 +1699,10 @@ type FoldersPoliciesListCall struct { header_ http.Header } -// List: Retrieves all of the `Policies` that exist on a particular +// List: Retrieves all of the policies that exist on a particular // resource. // -// - parent: The target Cloud resource that parents the set of +// - parent: The target Google Cloud resource that parents the set of // constraints and policies that will be returned from this call. Must // be in one of the following forms: * `projects/{project_number}` * // `projects/{project_id}` * `folders/{folder_id}` * @@ -1831,7 +1830,7 @@ func (c *FoldersPoliciesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloud } return ret, nil // { - // "description": "Retrieves all of the `Policies` that exist on a particular resource.", + // "description": "Retrieves all of the policies that exist on a particular resource.", // "flatPath": "v2/folders/{foldersId}/policies", // "httpMethod": "GET", // "id": "orgpolicy.folders.policies.list", @@ -1851,7 +1850,7 @@ func (c *FoldersPoliciesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloud // "type": "string" // }, // "parent": { - // "description": "Required. The target Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", + // "description": "Required. The target Google Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", // "location": "path", // "pattern": "^folders/[^/]+$", // "required": true, @@ -1901,16 +1900,16 @@ type FoldersPoliciesPatchCall struct { header_ http.Header } -// Patch: Updates a Policy. Returns a `google.rpc.Status` with +// Patch: Updates a policy. Returns a `google.rpc.Status` with // `google.rpc.Code.NOT_FOUND` if the constraint or the policy do not // exist. Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` // if the etag supplied in the request does not match the persisted etag // of the policy Note: the supplied policy will perform a full overwrite // of all fields. // -// - name: Immutable. The resource name of the Policy. Must be one of +// - name: Immutable. The resource name of the policy. Must be one of // the following forms, where constraint_name is the name of the -// constraint which this Policy configures: * +// constraint which this policy configures: * // `projects/{project_number}/policies/{constraint_name}` * // `folders/{folder_id}/policies/{constraint_name}` * // `organizations/{organization_id}/policies/{constraint_name}` For @@ -2025,7 +2024,7 @@ func (c *FoldersPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleClou } return ret, nil // { - // "description": "Updates a Policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or the policy do not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the etag supplied in the request does not match the persisted etag of the policy Note: the supplied policy will perform a full overwrite of all fields.", + // "description": "Updates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or the policy do not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the etag supplied in the request does not match the persisted etag of the policy Note: the supplied policy will perform a full overwrite of all fields.", // "flatPath": "v2/folders/{foldersId}/policies/{policiesId}", // "httpMethod": "PATCH", // "id": "orgpolicy.folders.policies.patch", @@ -2034,7 +2033,7 @@ func (c *FoldersPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleClou // ], // "parameters": { // "name": { - // "description": "Immutable. The resource name of the Policy. Must be one of the following forms, where constraint_name is the name of the constraint which this Policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, \"projects/123/policies/compute.disableSerialPortAccess\". Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number.", + // "description": "Immutable. The resource name of the policy. Must be one of the following forms, where constraint_name is the name of the constraint which this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, \"projects/123/policies/compute.disableSerialPortAccess\". Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number.", // "location": "path", // "pattern": "^folders/[^/]+/policies/[^/]+$", // "required": true, @@ -2072,11 +2071,11 @@ type OrganizationsConstraintsListCall struct { header_ http.Header } -// List: Lists `Constraints` that could be applied on the specified +// List: Lists constraints that could be applied on the specified // resource. // -// - parent: The Cloud resource that parents the constraint. Must be in -// one of the following forms: * `projects/{project_number}` * +// - parent: The Google Cloud resource that parents the constraint. Must +// be in one of the following forms: * `projects/{project_number}` * // `projects/{project_id}` * `folders/{folder_id}` * // `organizations/{organization_id}`. func (r *OrganizationsConstraintsService) List(parent string) *OrganizationsConstraintsListCall { @@ -2202,7 +2201,7 @@ func (c *OrganizationsConstraintsListCall) Do(opts ...googleapi.CallOption) (*Go } return ret, nil // { - // "description": "Lists `Constraints` that could be applied on the specified resource.", + // "description": "Lists constraints that could be applied on the specified resource.", // "flatPath": "v2/organizations/{organizationsId}/constraints", // "httpMethod": "GET", // "id": "orgpolicy.organizations.constraints.list", @@ -2222,7 +2221,7 @@ func (c *OrganizationsConstraintsListCall) Do(opts ...googleapi.CallOption) (*Go // "type": "string" // }, // "parent": { - // "description": "Required. The Cloud resource that parents the constraint. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", + // "description": "Required. The Google Cloud resource that parents the constraint. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", // "location": "path", // "pattern": "^organizations/[^/]+$", // "required": true, @@ -2272,7 +2271,7 @@ type OrganizationsCustomConstraintsCreateCall struct { header_ http.Header } -// Create: Creates a CustomConstraint. Returns a `google.rpc.Status` +// Create: Creates a custom constraint. Returns a `google.rpc.Status` // with `google.rpc.Code.NOT_FOUND` if the organization does not exist. // Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` // if the constraint already exists on the given organization. @@ -2378,7 +2377,7 @@ func (c *OrganizationsCustomConstraintsCreateCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Creates a CustomConstraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the organization does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the constraint already exists on the given organization.", + // "description": "Creates a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the organization does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the constraint already exists on the given organization.", // "flatPath": "v2/organizations/{organizationsId}/customConstraints", // "httpMethod": "POST", // "id": "orgpolicy.organizations.customConstraints.create", @@ -2418,11 +2417,11 @@ type OrganizationsCustomConstraintsDeleteCall struct { header_ http.Header } -// Delete: Deletes a Custom Constraint. Returns a `google.rpc.Status` +// Delete: Deletes a custom constraint. Returns a `google.rpc.Status` // with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. // -// - name: Name of the custom constraint to delete. See -// `CustomConstraint` for naming rules. +// - name: Name of the custom constraint to delete. See the custom +// constraint entry for naming rules. func (r *OrganizationsCustomConstraintsService) Delete(name string) *OrganizationsCustomConstraintsDeleteCall { c := &OrganizationsCustomConstraintsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2515,7 +2514,7 @@ func (c *OrganizationsCustomConstraintsDeleteCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Deletes a Custom Constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist.", + // "description": "Deletes a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist.", // "flatPath": "v2/organizations/{organizationsId}/customConstraints/{customConstraintsId}", // "httpMethod": "DELETE", // "id": "orgpolicy.organizations.customConstraints.delete", @@ -2524,7 +2523,7 @@ func (c *OrganizationsCustomConstraintsDeleteCall) Do(opts ...googleapi.CallOpti // ], // "parameters": { // "name": { - // "description": "Required. Name of the custom constraint to delete. See `CustomConstraint` for naming rules.", + // "description": "Required. Name of the custom constraint to delete. See the custom constraint entry for naming rules.", // "location": "path", // "pattern": "^organizations/[^/]+/customConstraints/[^/]+$", // "required": true, @@ -2553,11 +2552,11 @@ type OrganizationsCustomConstraintsGetCall struct { header_ http.Header } -// Get: Gets a CustomConstraint. Returns a `google.rpc.Status` with -// `google.rpc.Code.NOT_FOUND` if the CustomConstraint does not exist. +// Get: Gets a custom constraint. Returns a `google.rpc.Status` with +// `google.rpc.Code.NOT_FOUND` if the custom constraint does not exist. // -// - name: Resource name of the custom constraint. See -// `CustomConstraint` for naming requirements. +// - name: Resource name of the custom constraint. See the custom +// constraint entry for naming requirements. func (r *OrganizationsCustomConstraintsService) Get(name string) *OrganizationsCustomConstraintsGetCall { c := &OrganizationsCustomConstraintsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2664,7 +2663,7 @@ func (c *OrganizationsCustomConstraintsGetCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Gets a CustomConstraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the CustomConstraint does not exist.", + // "description": "Gets a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the custom constraint does not exist.", // "flatPath": "v2/organizations/{organizationsId}/customConstraints/{customConstraintsId}", // "httpMethod": "GET", // "id": "orgpolicy.organizations.customConstraints.get", @@ -2673,7 +2672,7 @@ func (c *OrganizationsCustomConstraintsGetCall) Do(opts ...googleapi.CallOption) // ], // "parameters": { // "name": { - // "description": "Required. Resource name of the custom constraint. See `CustomConstraint` for naming requirements.", + // "description": "Required. Resource name of the custom constraint. See the custom constraint entry for naming requirements.", // "location": "path", // "pattern": "^organizations/[^/]+/customConstraints/[^/]+$", // "required": true, @@ -2702,12 +2701,12 @@ type OrganizationsCustomConstraintsListCall struct { header_ http.Header } -// List: Retrieves all of the `CustomConstraints` that exist on a +// List: Retrieves all of the custom constraints that exist on a // particular organization resource. // -// - parent: The target Cloud resource that parents the set of custom -// constraints that will be returned from this call. Must be in one of -// the following forms: * `organizations/{organization_id}`. +// - parent: The target Google Cloud resource that parents the set of +// custom constraints that will be returned from this call. Must be in +// one of the following forms: * `organizations/{organization_id}`. func (r *OrganizationsCustomConstraintsService) List(parent string) *OrganizationsCustomConstraintsListCall { c := &OrganizationsCustomConstraintsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -2831,7 +2830,7 @@ func (c *OrganizationsCustomConstraintsListCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "Retrieves all of the `CustomConstraints` that exist on a particular organization resource.", + // "description": "Retrieves all of the custom constraints that exist on a particular organization resource.", // "flatPath": "v2/organizations/{organizationsId}/customConstraints", // "httpMethod": "GET", // "id": "orgpolicy.organizations.customConstraints.list", @@ -2851,7 +2850,7 @@ func (c *OrganizationsCustomConstraintsListCall) Do(opts ...googleapi.CallOption // "type": "string" // }, // "parent": { - // "description": "Required. The target Cloud resource that parents the set of custom constraints that will be returned from this call. Must be in one of the following forms: * `organizations/{organization_id}`", + // "description": "Required. The target Google Cloud resource that parents the set of custom constraints that will be returned from this call. Must be in one of the following forms: * `organizations/{organization_id}`", // "location": "path", // "pattern": "^organizations/[^/]+$", // "required": true, @@ -2901,7 +2900,7 @@ type OrganizationsCustomConstraintsPatchCall struct { header_ http.Header } -// Patch: Updates a Custom Constraint. Returns a `google.rpc.Status` +// Patch: Updates a custom constraint. Returns a `google.rpc.Status` // with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. // Note: the supplied policy will perform a full overwrite of all // fields. @@ -2909,11 +2908,12 @@ type OrganizationsCustomConstraintsPatchCall struct { // - name: Immutable. Name of the constraint. This is unique within the // organization. Format of the name should be * // `organizations/{organization_id}/customConstraints/{custom_constrain -// t_id}` Example : -// "organizations/123/customConstraints/custom.createOnlyE2TypeVms" -// The max length is 70 characters and the min length is 1. Note that -// the prefix "organizations/{organization_id}/customConstraints/" is -// not counted. +// t_id}` Example: +// `organizations/123/customConstraints/custom.createOnlyE2TypeVms` +// The max length is 70 characters and the minimum length is 1. Note +// that the prefix +// `organizations/{organization_id}/customConstraints/` is not +// counted. func (r *OrganizationsCustomConstraintsService) Patch(name string, googlecloudorgpolicyv2customconstraint *GoogleCloudOrgpolicyV2CustomConstraint) *OrganizationsCustomConstraintsPatchCall { c := &OrganizationsCustomConstraintsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3013,7 +3013,7 @@ func (c *OrganizationsCustomConstraintsPatchCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Updates a Custom Constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Note: the supplied policy will perform a full overwrite of all fields.", + // "description": "Updates a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Note: the supplied policy will perform a full overwrite of all fields.", // "flatPath": "v2/organizations/{organizationsId}/customConstraints/{customConstraintsId}", // "httpMethod": "PATCH", // "id": "orgpolicy.organizations.customConstraints.patch", @@ -3022,7 +3022,7 @@ func (c *OrganizationsCustomConstraintsPatchCall) Do(opts ...googleapi.CallOptio // ], // "parameters": { // "name": { - // "description": "Immutable. Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example : \"organizations/123/customConstraints/custom.createOnlyE2TypeVms\" The max length is 70 characters and the min length is 1. Note that the prefix \"organizations/{organization_id}/customConstraints/\" is not counted.", + // "description": "Immutable. Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms` The max length is 70 characters and the minimum length is 1. Note that the prefix `organizations/{organization_id}/customConstraints/` is not counted.", // "location": "path", // "pattern": "^organizations/[^/]+/customConstraints/[^/]+$", // "required": true, @@ -3054,15 +3054,15 @@ type OrganizationsPoliciesCreateCall struct { header_ http.Header } -// Create: Creates a Policy. Returns a `google.rpc.Status` with +// Create: Creates a policy. Returns a `google.rpc.Status` with // `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns // a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the -// policy already exists on the given Cloud resource. +// policy already exists on the given Google Cloud resource. // -// - parent: The Cloud resource that will parent the new Policy. Must be -// in one of the following forms: * `projects/{project_number}` * -// `projects/{project_id}` * `folders/{folder_id}` * -// `organizations/{organization_id}`. +// - parent: The Google Cloud resource that will parent the new policy. +// Must be in one of the following forms: * +// `projects/{project_number}` * `projects/{project_id}` * +// `folders/{folder_id}` * `organizations/{organization_id}`. func (r *OrganizationsPoliciesService) Create(parent string, googlecloudorgpolicyv2policy *GoogleCloudOrgpolicyV2Policy) *OrganizationsPoliciesCreateCall { c := &OrganizationsPoliciesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -3161,7 +3161,7 @@ func (c *OrganizationsPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*Goo } return ret, nil // { - // "description": "Creates a Policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the policy already exists on the given Cloud resource.", + // "description": "Creates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the policy already exists on the given Google Cloud resource.", // "flatPath": "v2/organizations/{organizationsId}/policies", // "httpMethod": "POST", // "id": "orgpolicy.organizations.policies.create", @@ -3170,7 +3170,7 @@ func (c *OrganizationsPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*Goo // ], // "parameters": { // "parent": { - // "description": "Required. The Cloud resource that will parent the new Policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", + // "description": "Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", // "location": "path", // "pattern": "^organizations/[^/]+$", // "required": true, @@ -3201,11 +3201,12 @@ type OrganizationsPoliciesDeleteCall struct { header_ http.Header } -// Delete: Deletes a Policy. Returns a `google.rpc.Status` with -// `google.rpc.Code.NOT_FOUND` if the constraint or Org Policy does not -// exist. +// Delete: Deletes a policy. Returns a `google.rpc.Status` with +// `google.rpc.Code.NOT_FOUND` if the constraint or organization policy +// does not exist. // -// - name: Name of the policy to delete. See `Policy` for naming rules. +// - name: Name of the policy to delete. See the policy entry for naming +// rules. func (r *OrganizationsPoliciesService) Delete(name string) *OrganizationsPoliciesDeleteCall { c := &OrganizationsPoliciesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3298,7 +3299,7 @@ func (c *OrganizationsPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Goo } return ret, nil // { - // "description": "Deletes a Policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or Org Policy does not exist.", + // "description": "Deletes a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or organization policy does not exist.", // "flatPath": "v2/organizations/{organizationsId}/policies/{policiesId}", // "httpMethod": "DELETE", // "id": "orgpolicy.organizations.policies.delete", @@ -3307,7 +3308,7 @@ func (c *OrganizationsPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Goo // ], // "parameters": { // "name": { - // "description": "Required. Name of the policy to delete. See `Policy` for naming rules.", + // "description": "Required. Name of the policy to delete. See the policy entry for naming rules.", // "location": "path", // "pattern": "^organizations/[^/]+/policies/[^/]+$", // "required": true, @@ -3336,9 +3337,9 @@ type OrganizationsPoliciesGetCall struct { header_ http.Header } -// Get: Gets a `Policy` on a resource. If no `Policy` is set on the -// resource, NOT_FOUND is returned. The `etag` value can be used with -// `UpdatePolicy()` to update a `Policy` during read-modify-write. +// Get: Gets a policy on a resource. If no policy is set on the +// resource, `NOT_FOUND` is returned. The `etag` value can be used with +// `UpdatePolicy()` to update a policy during read-modify-write. // // - name: Resource name of the policy. See `Policy` for naming // requirements. @@ -3447,7 +3448,7 @@ func (c *OrganizationsPoliciesGetCall) Do(opts ...googleapi.CallOption) (*Google } return ret, nil // { - // "description": "Gets a `Policy` on a resource. If no `Policy` is set on the resource, NOT_FOUND is returned. The `etag` value can be used with `UpdatePolicy()` to update a `Policy` during read-modify-write.", + // "description": "Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND` is returned. The `etag` value can be used with `UpdatePolicy()` to update a policy during read-modify-write.", // "flatPath": "v2/organizations/{organizationsId}/policies/{policiesId}", // "httpMethod": "GET", // "id": "orgpolicy.organizations.policies.get", @@ -3485,10 +3486,10 @@ type OrganizationsPoliciesGetEffectivePolicyCall struct { header_ http.Header } -// GetEffectivePolicy: Gets the effective `Policy` on a resource. This -// is the result of merging `Policies` in the resource hierarchy and -// evaluating conditions. The returned `Policy` will not have an `etag` -// or `condition` set because it is a computed `Policy` across multiple +// GetEffectivePolicy: Gets the effective policy on a resource. This is +// the result of merging policies in the resource hierarchy and +// evaluating conditions. The returned policy will not have an `etag` or +// `condition` set because it is an evaluated policy across multiple // resources. Subtrees of Resource Manager resource hierarchy with // 'under:' prefix will not be expanded. // @@ -3599,7 +3600,7 @@ func (c *OrganizationsPoliciesGetEffectivePolicyCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Gets the effective `Policy` on a resource. This is the result of merging `Policies` in the resource hierarchy and evaluating conditions. The returned `Policy` will not have an `etag` or `condition` set because it is a computed `Policy` across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded.", + // "description": "Gets the effective policy on a resource. This is the result of merging policies in the resource hierarchy and evaluating conditions. The returned policy will not have an `etag` or `condition` set because it is an evaluated policy across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded.", // "flatPath": "v2/organizations/{organizationsId}/policies/{policiesId}:getEffectivePolicy", // "httpMethod": "GET", // "id": "orgpolicy.organizations.policies.getEffectivePolicy", @@ -3637,10 +3638,10 @@ type OrganizationsPoliciesListCall struct { header_ http.Header } -// List: Retrieves all of the `Policies` that exist on a particular +// List: Retrieves all of the policies that exist on a particular // resource. // -// - parent: The target Cloud resource that parents the set of +// - parent: The target Google Cloud resource that parents the set of // constraints and policies that will be returned from this call. Must // be in one of the following forms: * `projects/{project_number}` * // `projects/{project_id}` * `folders/{folder_id}` * @@ -3768,7 +3769,7 @@ func (c *OrganizationsPoliciesListCall) Do(opts ...googleapi.CallOption) (*Googl } return ret, nil // { - // "description": "Retrieves all of the `Policies` that exist on a particular resource.", + // "description": "Retrieves all of the policies that exist on a particular resource.", // "flatPath": "v2/organizations/{organizationsId}/policies", // "httpMethod": "GET", // "id": "orgpolicy.organizations.policies.list", @@ -3788,7 +3789,7 @@ func (c *OrganizationsPoliciesListCall) Do(opts ...googleapi.CallOption) (*Googl // "type": "string" // }, // "parent": { - // "description": "Required. The target Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", + // "description": "Required. The target Google Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", // "location": "path", // "pattern": "^organizations/[^/]+$", // "required": true, @@ -3838,16 +3839,16 @@ type OrganizationsPoliciesPatchCall struct { header_ http.Header } -// Patch: Updates a Policy. Returns a `google.rpc.Status` with +// Patch: Updates a policy. Returns a `google.rpc.Status` with // `google.rpc.Code.NOT_FOUND` if the constraint or the policy do not // exist. Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` // if the etag supplied in the request does not match the persisted etag // of the policy Note: the supplied policy will perform a full overwrite // of all fields. // -// - name: Immutable. The resource name of the Policy. Must be one of +// - name: Immutable. The resource name of the policy. Must be one of // the following forms, where constraint_name is the name of the -// constraint which this Policy configures: * +// constraint which this policy configures: * // `projects/{project_number}/policies/{constraint_name}` * // `folders/{folder_id}/policies/{constraint_name}` * // `organizations/{organization_id}/policies/{constraint_name}` For @@ -3962,7 +3963,7 @@ func (c *OrganizationsPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Goog } return ret, nil // { - // "description": "Updates a Policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or the policy do not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the etag supplied in the request does not match the persisted etag of the policy Note: the supplied policy will perform a full overwrite of all fields.", + // "description": "Updates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or the policy do not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the etag supplied in the request does not match the persisted etag of the policy Note: the supplied policy will perform a full overwrite of all fields.", // "flatPath": "v2/organizations/{organizationsId}/policies/{policiesId}", // "httpMethod": "PATCH", // "id": "orgpolicy.organizations.policies.patch", @@ -3971,7 +3972,7 @@ func (c *OrganizationsPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Goog // ], // "parameters": { // "name": { - // "description": "Immutable. The resource name of the Policy. Must be one of the following forms, where constraint_name is the name of the constraint which this Policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, \"projects/123/policies/compute.disableSerialPortAccess\". Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number.", + // "description": "Immutable. The resource name of the policy. Must be one of the following forms, where constraint_name is the name of the constraint which this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, \"projects/123/policies/compute.disableSerialPortAccess\". Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number.", // "location": "path", // "pattern": "^organizations/[^/]+/policies/[^/]+$", // "required": true, @@ -4009,11 +4010,11 @@ type ProjectsConstraintsListCall struct { header_ http.Header } -// List: Lists `Constraints` that could be applied on the specified +// List: Lists constraints that could be applied on the specified // resource. // -// - parent: The Cloud resource that parents the constraint. Must be in -// one of the following forms: * `projects/{project_number}` * +// - parent: The Google Cloud resource that parents the constraint. Must +// be in one of the following forms: * `projects/{project_number}` * // `projects/{project_id}` * `folders/{folder_id}` * // `organizations/{organization_id}`. func (r *ProjectsConstraintsService) List(parent string) *ProjectsConstraintsListCall { @@ -4139,7 +4140,7 @@ func (c *ProjectsConstraintsListCall) Do(opts ...googleapi.CallOption) (*GoogleC } return ret, nil // { - // "description": "Lists `Constraints` that could be applied on the specified resource.", + // "description": "Lists constraints that could be applied on the specified resource.", // "flatPath": "v2/projects/{projectsId}/constraints", // "httpMethod": "GET", // "id": "orgpolicy.projects.constraints.list", @@ -4159,7 +4160,7 @@ func (c *ProjectsConstraintsListCall) Do(opts ...googleapi.CallOption) (*GoogleC // "type": "string" // }, // "parent": { - // "description": "Required. The Cloud resource that parents the constraint. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", + // "description": "Required. The Google Cloud resource that parents the constraint. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", // "location": "path", // "pattern": "^projects/[^/]+$", // "required": true, @@ -4209,15 +4210,15 @@ type ProjectsPoliciesCreateCall struct { header_ http.Header } -// Create: Creates a Policy. Returns a `google.rpc.Status` with +// Create: Creates a policy. Returns a `google.rpc.Status` with // `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns // a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the -// policy already exists on the given Cloud resource. +// policy already exists on the given Google Cloud resource. // -// - parent: The Cloud resource that will parent the new Policy. Must be -// in one of the following forms: * `projects/{project_number}` * -// `projects/{project_id}` * `folders/{folder_id}` * -// `organizations/{organization_id}`. +// - parent: The Google Cloud resource that will parent the new policy. +// Must be in one of the following forms: * +// `projects/{project_number}` * `projects/{project_id}` * +// `folders/{folder_id}` * `organizations/{organization_id}`. func (r *ProjectsPoliciesService) Create(parent string, googlecloudorgpolicyv2policy *GoogleCloudOrgpolicyV2Policy) *ProjectsPoliciesCreateCall { c := &ProjectsPoliciesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -4316,7 +4317,7 @@ func (c *ProjectsPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCl } return ret, nil // { - // "description": "Creates a Policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the policy already exists on the given Cloud resource.", + // "description": "Creates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the policy already exists on the given Google Cloud resource.", // "flatPath": "v2/projects/{projectsId}/policies", // "httpMethod": "POST", // "id": "orgpolicy.projects.policies.create", @@ -4325,7 +4326,7 @@ func (c *ProjectsPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCl // ], // "parameters": { // "parent": { - // "description": "Required. The Cloud resource that will parent the new Policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", + // "description": "Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", // "location": "path", // "pattern": "^projects/[^/]+$", // "required": true, @@ -4356,11 +4357,12 @@ type ProjectsPoliciesDeleteCall struct { header_ http.Header } -// Delete: Deletes a Policy. Returns a `google.rpc.Status` with -// `google.rpc.Code.NOT_FOUND` if the constraint or Org Policy does not -// exist. +// Delete: Deletes a policy. Returns a `google.rpc.Status` with +// `google.rpc.Code.NOT_FOUND` if the constraint or organization policy +// does not exist. // -// - name: Name of the policy to delete. See `Policy` for naming rules. +// - name: Name of the policy to delete. See the policy entry for naming +// rules. func (r *ProjectsPoliciesService) Delete(name string) *ProjectsPoliciesDeleteCall { c := &ProjectsPoliciesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4453,7 +4455,7 @@ func (c *ProjectsPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*GooglePr } return ret, nil // { - // "description": "Deletes a Policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or Org Policy does not exist.", + // "description": "Deletes a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or organization policy does not exist.", // "flatPath": "v2/projects/{projectsId}/policies/{policiesId}", // "httpMethod": "DELETE", // "id": "orgpolicy.projects.policies.delete", @@ -4462,7 +4464,7 @@ func (c *ProjectsPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*GooglePr // ], // "parameters": { // "name": { - // "description": "Required. Name of the policy to delete. See `Policy` for naming rules.", + // "description": "Required. Name of the policy to delete. See the policy entry for naming rules.", // "location": "path", // "pattern": "^projects/[^/]+/policies/[^/]+$", // "required": true, @@ -4491,9 +4493,9 @@ type ProjectsPoliciesGetCall struct { header_ http.Header } -// Get: Gets a `Policy` on a resource. If no `Policy` is set on the -// resource, NOT_FOUND is returned. The `etag` value can be used with -// `UpdatePolicy()` to update a `Policy` during read-modify-write. +// Get: Gets a policy on a resource. If no policy is set on the +// resource, `NOT_FOUND` is returned. The `etag` value can be used with +// `UpdatePolicy()` to update a policy during read-modify-write. // // - name: Resource name of the policy. See `Policy` for naming // requirements. @@ -4602,7 +4604,7 @@ func (c *ProjectsPoliciesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloud } return ret, nil // { - // "description": "Gets a `Policy` on a resource. If no `Policy` is set on the resource, NOT_FOUND is returned. The `etag` value can be used with `UpdatePolicy()` to update a `Policy` during read-modify-write.", + // "description": "Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND` is returned. The `etag` value can be used with `UpdatePolicy()` to update a policy during read-modify-write.", // "flatPath": "v2/projects/{projectsId}/policies/{policiesId}", // "httpMethod": "GET", // "id": "orgpolicy.projects.policies.get", @@ -4640,10 +4642,10 @@ type ProjectsPoliciesGetEffectivePolicyCall struct { header_ http.Header } -// GetEffectivePolicy: Gets the effective `Policy` on a resource. This -// is the result of merging `Policies` in the resource hierarchy and -// evaluating conditions. The returned `Policy` will not have an `etag` -// or `condition` set because it is a computed `Policy` across multiple +// GetEffectivePolicy: Gets the effective policy on a resource. This is +// the result of merging policies in the resource hierarchy and +// evaluating conditions. The returned policy will not have an `etag` or +// `condition` set because it is an evaluated policy across multiple // resources. Subtrees of Resource Manager resource hierarchy with // 'under:' prefix will not be expanded. // @@ -4754,7 +4756,7 @@ func (c *ProjectsPoliciesGetEffectivePolicyCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "Gets the effective `Policy` on a resource. This is the result of merging `Policies` in the resource hierarchy and evaluating conditions. The returned `Policy` will not have an `etag` or `condition` set because it is a computed `Policy` across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded.", + // "description": "Gets the effective policy on a resource. This is the result of merging policies in the resource hierarchy and evaluating conditions. The returned policy will not have an `etag` or `condition` set because it is an evaluated policy across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded.", // "flatPath": "v2/projects/{projectsId}/policies/{policiesId}:getEffectivePolicy", // "httpMethod": "GET", // "id": "orgpolicy.projects.policies.getEffectivePolicy", @@ -4792,10 +4794,10 @@ type ProjectsPoliciesListCall struct { header_ http.Header } -// List: Retrieves all of the `Policies` that exist on a particular +// List: Retrieves all of the policies that exist on a particular // resource. // -// - parent: The target Cloud resource that parents the set of +// - parent: The target Google Cloud resource that parents the set of // constraints and policies that will be returned from this call. Must // be in one of the following forms: * `projects/{project_number}` * // `projects/{project_id}` * `folders/{folder_id}` * @@ -4923,7 +4925,7 @@ func (c *ProjectsPoliciesListCall) Do(opts ...googleapi.CallOption) (*GoogleClou } return ret, nil // { - // "description": "Retrieves all of the `Policies` that exist on a particular resource.", + // "description": "Retrieves all of the policies that exist on a particular resource.", // "flatPath": "v2/projects/{projectsId}/policies", // "httpMethod": "GET", // "id": "orgpolicy.projects.policies.list", @@ -4943,7 +4945,7 @@ func (c *ProjectsPoliciesListCall) Do(opts ...googleapi.CallOption) (*GoogleClou // "type": "string" // }, // "parent": { - // "description": "Required. The target Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", + // "description": "Required. The target Google Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`", // "location": "path", // "pattern": "^projects/[^/]+$", // "required": true, @@ -4993,16 +4995,16 @@ type ProjectsPoliciesPatchCall struct { header_ http.Header } -// Patch: Updates a Policy. Returns a `google.rpc.Status` with +// Patch: Updates a policy. Returns a `google.rpc.Status` with // `google.rpc.Code.NOT_FOUND` if the constraint or the policy do not // exist. Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` // if the etag supplied in the request does not match the persisted etag // of the policy Note: the supplied policy will perform a full overwrite // of all fields. // -// - name: Immutable. The resource name of the Policy. Must be one of +// - name: Immutable. The resource name of the policy. Must be one of // the following forms, where constraint_name is the name of the -// constraint which this Policy configures: * +// constraint which this policy configures: * // `projects/{project_number}/policies/{constraint_name}` * // `folders/{folder_id}/policies/{constraint_name}` * // `organizations/{organization_id}/policies/{constraint_name}` For @@ -5117,7 +5119,7 @@ func (c *ProjectsPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleClo } return ret, nil // { - // "description": "Updates a Policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or the policy do not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the etag supplied in the request does not match the persisted etag of the policy Note: the supplied policy will perform a full overwrite of all fields.", + // "description": "Updates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or the policy do not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the etag supplied in the request does not match the persisted etag of the policy Note: the supplied policy will perform a full overwrite of all fields.", // "flatPath": "v2/projects/{projectsId}/policies/{policiesId}", // "httpMethod": "PATCH", // "id": "orgpolicy.projects.policies.patch", @@ -5126,7 +5128,7 @@ func (c *ProjectsPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleClo // ], // "parameters": { // "name": { - // "description": "Immutable. The resource name of the Policy. Must be one of the following forms, where constraint_name is the name of the constraint which this Policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, \"projects/123/policies/compute.disableSerialPortAccess\". Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number.", + // "description": "Immutable. The resource name of the policy. Must be one of the following forms, where constraint_name is the name of the constraint which this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, \"projects/123/policies/compute.disableSerialPortAccess\". Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number.", // "location": "path", // "pattern": "^projects/[^/]+/policies/[^/]+$", // "required": true, diff --git a/privateca/v1/privateca-api.json b/privateca/v1/privateca-api.json index 79ef6197486..3970350045b 100644 --- a/privateca/v1/privateca-api.json +++ b/privateca/v1/privateca-api.json @@ -1595,7 +1595,7 @@ } } }, - "revision": "20220915", + "revision": "20230202", "rootUrl": "https://privateca.googleapis.com/", "schemas": { "AccessUrls": { @@ -1707,7 +1707,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/privateca/v1/privateca-gen.go b/privateca/v1/privateca-gen.go index c050d5a6797..1f45f3e6355 100644 --- a/privateca/v1/privateca-gen.go +++ b/privateca/v1/privateca-gen.go @@ -476,7 +476,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -493,9 +495,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. diff --git a/privateca/v1beta1/privateca-api.json b/privateca/v1beta1/privateca-api.json index de036eca402..39c8f106c4d 100644 --- a/privateca/v1beta1/privateca-api.json +++ b/privateca/v1beta1/privateca-api.json @@ -179,1013 +179,339 @@ "resources": { "certificateAuthorities": { "methods": { - "activate": { - "description": "Activate a CertificateAuthority that is in state PENDING_ACTIVATION and is of type SUBORDINATE. After the parent Certificate Authority signs a certificate signing request from FetchCertificateAuthorityCsr, this method can complete the activation process.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:activate", - "httpMethod": "POST", - "id": "privateca.projects.locations.certificateAuthorities.activate", + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:getIamPolicy", + "httpMethod": "GET", + "id": "privateca.projects.locations.certificateAuthorities.getIamPolicy", "parameterOrder": [ - "name" + "resource" ], "parameters": { - "name": { - "description": "Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", + "options.requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", "required": true, "type": "string" } }, - "path": "v1beta1/{+name}:activate", - "request": { - "$ref": "ActivateCertificateAuthorityRequest" - }, + "path": "v1beta1/{+resource}:getIamPolicy", "response": { - "$ref": "Operation" + "$ref": "Policy" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "create": { - "description": "Create a new CertificateAuthority in a given Project and Location.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities", + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:setIamPolicy", "httpMethod": "POST", - "id": "privateca.projects.locations.certificateAuthorities.create", + "id": "privateca.projects.locations.certificateAuthorities.setIamPolicy", "parameterOrder": [ - "parent" + "resource" ], "parameters": { - "certificateAuthorityId": { - "description": "Required. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The resource name of the location associated with the CertificateAuthorities, in the format `projects/*/locations/*`.", + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", "required": true, "type": "string" - }, - "requestId": { - "description": "Optional. An 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. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he 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" } }, - "path": "v1beta1/{+parent}/certificateAuthorities", + "path": "v1beta1/{+resource}:setIamPolicy", "request": { - "$ref": "CertificateAuthority" + "$ref": "SetIamPolicyRequest" }, "response": { - "$ref": "Operation" + "$ref": "Policy" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "disable": { - "description": "Disable a CertificateAuthority.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:disable", + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:testIamPermissions", "httpMethod": "POST", - "id": "privateca.projects.locations.certificateAuthorities.disable", + "id": "privateca.projects.locations.certificateAuthorities.testIamPermissions", "parameterOrder": [ - "name" + "resource" ], "parameters": { - "name": { - "description": "Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", "required": true, "type": "string" } }, - "path": "v1beta1/{+name}:disable", + "path": "v1beta1/{+resource}:testIamPermissions", "request": { - "$ref": "DisableCertificateAuthorityRequest" + "$ref": "TestIamPermissionsRequest" }, "response": { - "$ref": "Operation" + "$ref": "TestIamPermissionsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - }, - "enable": { - "description": "Enable a CertificateAuthority.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:enable", + } + }, + "resources": { + "certificateRevocationLists": { + "methods": { + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists/{certificateRevocationListsId}:getIamPolicy", + "httpMethod": "GET", + "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:getIamPolicy", + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists/{certificateRevocationListsId}:setIamPolicy", + "httpMethod": "POST", + "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists/{certificateRevocationListsId}:testIamPermissions", + "httpMethod": "POST", + "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", "httpMethod": "POST", - "id": "privateca.projects.locations.certificateAuthorities.enable", + "id": "privateca.projects.locations.operations.cancel", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", + "description": "The name of the operation resource to be cancelled.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1beta1/{+name}:enable", + "path": "v1beta1/{+name}:cancel", "request": { - "$ref": "EnableCertificateAuthorityRequest" + "$ref": "CancelOperationRequest" }, "response": { - "$ref": "Operation" + "$ref": "Empty" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "fetch": { - "description": "Fetch a certificate signing request (CSR) from a CertificateAuthority that is in state PENDING_ACTIVATION and is of type SUBORDINATE. The CSR must then be signed by the desired parent Certificate Authority, which could be another CertificateAuthority resource, or could be an on-prem certificate authority. See also ActivateCertificateAuthority.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:fetch", - "httpMethod": "GET", - "id": "privateca.projects.locations.certificateAuthorities.fetch", + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "privateca.projects.locations.operations.delete", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", + "description": "The name of the operation resource to be deleted.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1beta1/{+name}:fetch", + "path": "v1beta1/{+name}", "response": { - "$ref": "FetchCertificateAuthorityCsrResponse" + "$ref": "Empty" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "get": { - "description": "Returns a CertificateAuthority.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}", + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", "httpMethod": "GET", - "id": "privateca.projects.locations.certificateAuthorities.get", + "id": "privateca.projects.locations.operations.get", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The name of the CertificateAuthority to get.", + "description": "The name of the operation resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, "path": "v1beta1/{+name}", "response": { - "$ref": "CertificateAuthority" + "$ref": "Operation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "getIamPolicy": { - "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:getIamPolicy", + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations", "httpMethod": "GET", - "id": "privateca.projects.locations.certificateAuthorities.getIamPolicy", + "id": "privateca.projects.locations.operations.list", "parameterOrder": [ - "resource" + "name" ], "parameters": { - "options.requestedPolicyVersion": { - "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", - "format": "int32", + "filter": { + "description": "The standard list filter.", "location": "query", - "type": "integer" + "type": "string" }, - "resource": { - "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "name": { + "description": "The name of the operation's parent resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" } }, - "path": "v1beta1/{+resource}:getIamPolicy", + "path": "v1beta1/{+name}/operations", "response": { - "$ref": "Policy" + "$ref": "ListOperationsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - }, - "list": { - "description": "Lists CertificateAuthorities.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities", + } + } + }, + "reusableConfigs": { + "methods": { + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reusableConfigs/{reusableConfigsId}:getIamPolicy", "httpMethod": "GET", - "id": "privateca.projects.locations.certificateAuthorities.list", + "id": "privateca.projects.locations.reusableConfigs.getIamPolicy", "parameterOrder": [ - "parent" + "resource" ], "parameters": { - "filter": { - "description": "Optional. Only include resources that match the filter in the response.", - "location": "query", - "type": "string" - }, - "orderBy": { - "description": "Optional. Specify how the results should be sorted.", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "Optional. Limit on the number of CertificateAuthorities to include in the response. Further CertificateAuthorities can subsequently be obtained by including the ListCertificateAuthoritiesResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.", + "options.requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", "format": "int32", "location": "query", "type": "integer" }, - "pageToken": { - "description": "Optional. Pagination token, returned earlier via ListCertificateAuthoritiesResponse.next_page_token.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The resource name of the location associated with the CertificateAuthorities, in the format `projects/*/locations/*`.", + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/reusableConfigs/[^/]+$", "required": true, "type": "string" } }, - "path": "v1beta1/{+parent}/certificateAuthorities", + "path": "v1beta1/{+resource}:getIamPolicy", "response": { - "$ref": "ListCertificateAuthoritiesResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "patch": { - "description": "Update a CertificateAuthority.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}", - "httpMethod": "PATCH", - "id": "privateca.projects.locations.certificateAuthorities.patch", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Output only. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", - "required": true, - "type": "string" - }, - "requestId": { - "description": "Optional. An 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. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he 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" - }, - "updateMask": { - "description": "Required. A list of fields to be updated in this request.", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "v1beta1/{+name}", - "request": { - "$ref": "CertificateAuthority" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "restore": { - "description": "Restore a CertificateAuthority that is scheduled for deletion.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:restore", - "httpMethod": "POST", - "id": "privateca.projects.locations.certificateAuthorities.restore", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+name}:restore", - "request": { - "$ref": "RestoreCertificateAuthorityRequest" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "scheduleDelete": { - "description": "Schedule a CertificateAuthority for deletion.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:scheduleDelete", - "httpMethod": "POST", - "id": "privateca.projects.locations.certificateAuthorities.scheduleDelete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+name}:scheduleDelete", - "request": { - "$ref": "ScheduleDeleteCertificateAuthorityRequest" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "setIamPolicy": { - "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:setIamPolicy", - "httpMethod": "POST", - "id": "privateca.projects.locations.certificateAuthorities.setIamPolicy", - "parameterOrder": [ - "resource" - ], - "parameters": { - "resource": { - "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+resource}:setIamPolicy", - "request": { - "$ref": "SetIamPolicyRequest" - }, - "response": { - "$ref": "Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "testIamPermissions": { - "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:testIamPermissions", - "httpMethod": "POST", - "id": "privateca.projects.locations.certificateAuthorities.testIamPermissions", - "parameterOrder": [ - "resource" - ], - "parameters": { - "resource": { - "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+resource}:testIamPermissions", - "request": { - "$ref": "TestIamPermissionsRequest" - }, - "response": { - "$ref": "TestIamPermissionsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - }, - "resources": { - "certificateRevocationLists": { - "methods": { - "get": { - "description": "Returns a CertificateRevocationList.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists/{certificateRevocationListsId}", - "httpMethod": "GET", - "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the CertificateRevocationList to get.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+name}", - "response": { - "$ref": "CertificateRevocationList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "getIamPolicy": { - "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists/{certificateRevocationListsId}:getIamPolicy", - "httpMethod": "GET", - "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.getIamPolicy", - "parameterOrder": [ - "resource" - ], - "parameters": { - "options.requestedPolicyVersion": { - "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", - "format": "int32", - "location": "query", - "type": "integer" - }, - "resource": { - "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+resource}:getIamPolicy", - "response": { - "$ref": "Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists CertificateRevocationLists.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists", - "httpMethod": "GET", - "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "filter": { - "description": "Optional. Only include resources that match the filter in the response.", - "location": "query", - "type": "string" - }, - "orderBy": { - "description": "Optional. Specify how the results should be sorted.", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "Optional. Limit on the number of CertificateRevocationLists to include in the response. Further CertificateRevocationLists can subsequently be obtained by including the ListCertificateRevocationListsResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Optional. Pagination token, returned earlier via ListCertificateRevocationListsResponse.next_page_token.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The resource name of the location associated with the CertificateRevocationLists, in the format `projects/*/locations/*/certificateauthorities/*`.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+parent}/certificateRevocationLists", - "response": { - "$ref": "ListCertificateRevocationListsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "patch": { - "description": "Update a CertificateRevocationList.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists/{certificateRevocationListsId}", - "httpMethod": "PATCH", - "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.patch", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Output only. The resource path for this CertificateRevocationList in the format `projects/*/locations/*/certificateAuthorities/*/ certificateRevocationLists/*`.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+$", - "required": true, - "type": "string" - }, - "requestId": { - "description": "Optional. An 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. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he 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" - }, - "updateMask": { - "description": "Required. A list of fields to be updated in this request.", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "v1beta1/{+name}", - "request": { - "$ref": "CertificateRevocationList" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "setIamPolicy": { - "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists/{certificateRevocationListsId}:setIamPolicy", - "httpMethod": "POST", - "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.setIamPolicy", - "parameterOrder": [ - "resource" - ], - "parameters": { - "resource": { - "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+resource}:setIamPolicy", - "request": { - "$ref": "SetIamPolicyRequest" - }, - "response": { - "$ref": "Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "testIamPermissions": { - "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists/{certificateRevocationListsId}:testIamPermissions", - "httpMethod": "POST", - "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.testIamPermissions", - "parameterOrder": [ - "resource" - ], - "parameters": { - "resource": { - "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+resource}:testIamPermissions", - "request": { - "$ref": "TestIamPermissionsRequest" - }, - "response": { - "$ref": "TestIamPermissionsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, - "certificates": { - "methods": { - "create": { - "description": "Create a new Certificate in a given Project, Location from a particular CertificateAuthority.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificates", - "httpMethod": "POST", - "id": "privateca.projects.locations.certificateAuthorities.certificates.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "certificateId": { - "description": "Optional. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a CertificateAuthority in the Enterprise CertificateAuthority.Tier, but is optional and its value is ignored otherwise.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The resource name of the location and CertificateAuthority associated with the Certificate, in the format `projects/*/locations/*/certificateAuthorities/*`.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", - "required": true, - "type": "string" - }, - "requestId": { - "description": "Optional. An 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. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he 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" - } - }, - "path": "v1beta1/{+parent}/certificates", - "request": { - "$ref": "Certificate" - }, - "response": { - "$ref": "Certificate" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Returns a Certificate.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificates/{certificatesId}", - "httpMethod": "GET", - "id": "privateca.projects.locations.certificateAuthorities.certificates.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the Certificate to get.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificates/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+name}", - "response": { - "$ref": "Certificate" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists Certificates.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificates", - "httpMethod": "GET", - "id": "privateca.projects.locations.certificateAuthorities.certificates.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "filter": { - "description": "Optional. Only include resources that match the filter in the response. For details on supported filters and syntax, see [Certificates Filtering documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#filtering_support).", - "location": "query", - "type": "string" - }, - "orderBy": { - "description": "Optional. Specify how the results should be sorted. For details on supported fields and syntax, see [Certificates Sorting documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#sorting_support).", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "Optional. Limit on the number of Certificates to include in the response. Further Certificates can subsequently be obtained by including the ListCertificatesResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Optional. Pagination token, returned earlier via ListCertificatesResponse.next_page_token.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The resource name of the location associated with the Certificates, in the format `projects/*/locations/*/certificateauthorities/*`.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+parent}/certificates", - "response": { - "$ref": "ListCertificatesResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "patch": { - "description": "Update a Certificate. Currently, the only field you can update is the labels field.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificates/{certificatesId}", - "httpMethod": "PATCH", - "id": "privateca.projects.locations.certificateAuthorities.certificates.patch", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Output only. The resource path for this Certificate in the format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificates/[^/]+$", - "required": true, - "type": "string" - }, - "requestId": { - "description": "Optional. An 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. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he 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" - }, - "updateMask": { - "description": "Required. A list of fields to be updated in this request.", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "v1beta1/{+name}", - "request": { - "$ref": "Certificate" - }, - "response": { - "$ref": "Certificate" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "revoke": { - "description": "Revoke a Certificate.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificates/{certificatesId}:revoke", - "httpMethod": "POST", - "id": "privateca.projects.locations.certificateAuthorities.certificates.revoke", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The resource name for this Certificate in the format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificates/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+name}:revoke", - "request": { - "$ref": "RevokeCertificateRequest" - }, - "response": { - "$ref": "Certificate" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - } - } - }, - "operations": { - "methods": { - "cancel": { - "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", - "httpMethod": "POST", - "id": "privateca.projects.locations.operations.cancel", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be cancelled.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+name}:cancel", - "request": { - "$ref": "CancelOperationRequest" - }, - "response": { - "$ref": "Empty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - "httpMethod": "DELETE", - "id": "privateca.projects.locations.operations.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be deleted.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+name}", - "response": { - "$ref": "Empty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - "httpMethod": "GET", - "id": "privateca.projects.locations.operations.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+name}", - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations", - "httpMethod": "GET", - "id": "privateca.projects.locations.operations.list", - "parameterOrder": [ - "name" - ], - "parameters": { - "filter": { - "description": "The standard list filter.", - "location": "query", - "type": "string" - }, - "name": { - "description": "The name of the operation's parent resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - }, - "pageSize": { - "description": "The standard list page size.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "The standard list page token.", - "location": "query", - "type": "string" - } - }, - "path": "v1beta1/{+name}/operations", - "response": { - "$ref": "ListOperationsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, - "reusableConfigs": { - "methods": { - "get": { - "description": "Returns a ReusableConfig.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reusableConfigs/{reusableConfigsId}", - "httpMethod": "GET", - "id": "privateca.projects.locations.reusableConfigs.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the ReusableConfigs to get.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/reusableConfigs/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+name}", - "response": { - "$ref": "ReusableConfig" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "getIamPolicy": { - "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reusableConfigs/{reusableConfigsId}:getIamPolicy", - "httpMethod": "GET", - "id": "privateca.projects.locations.reusableConfigs.getIamPolicy", - "parameterOrder": [ - "resource" - ], - "parameters": { - "options.requestedPolicyVersion": { - "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", - "format": "int32", - "location": "query", - "type": "integer" - }, - "resource": { - "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/reusableConfigs/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+resource}:getIamPolicy", - "response": { - "$ref": "Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists ReusableConfigs.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reusableConfigs", - "httpMethod": "GET", - "id": "privateca.projects.locations.reusableConfigs.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "filter": { - "description": "Optional. Only include resources that match the filter in the response.", - "location": "query", - "type": "string" - }, - "orderBy": { - "description": "Optional. Specify how the results should be sorted.", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "Optional. Limit on the number of ReusableConfigs to include in the response. Further ReusableConfigs can subsequently be obtained by including the ListReusableConfigsResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Optional. Pagination token, returned earlier via ListReusableConfigsResponse.next_page_token.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The resource name of the location associated with the ReusableConfigs, in the format `projects/*/locations/*`.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+parent}/reusableConfigs", - "response": { - "$ref": "ListReusableConfigsResponse" + "$ref": "Policy" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -1238,604 +564,99 @@ }, "path": "v1beta1/{+resource}:testIamPermissions", "request": { - "$ref": "TestIamPermissionsRequest" - }, - "response": { - "$ref": "TestIamPermissionsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - } - } - } - } - } - }, - "revision": "20220915", - "rootUrl": "https://privateca.googleapis.com/", - "schemas": { - "AccessUrls": { - "description": "URLs where a CertificateAuthority will publish content.", - "id": "AccessUrls", - "properties": { - "caCertificateAccessUrl": { - "description": "The URL where this CertificateAuthority's CA certificate is published. This will only be set for CAs that have been activated.", - "type": "string" - }, - "crlAccessUrl": { - "description": "The URL where this CertificateAuthority's CRLs are published. This will only be set for CAs that have been activated.", - "type": "string" - } - }, - "type": "object" - }, - "ActivateCertificateAuthorityRequest": { - "description": "Request message for CertificateAuthorityService.ActivateCertificateAuthority.", - "id": "ActivateCertificateAuthorityRequest", - "properties": { - "pemCaCertificate": { - "description": "Required. The signed CA certificate issued from FetchCertificateAuthorityCsrResponse.pem_csr.", - "type": "string" - }, - "requestId": { - "description": "Optional. An 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. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he 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).", - "type": "string" - }, - "subordinateConfig": { - "$ref": "SubordinateConfig", - "description": "Required. Must include information about the issuer of 'pem_ca_certificate', and any further issuers until the self-signed CA." - } - }, - "type": "object" - }, - "AllowedConfigList": { - "id": "AllowedConfigList", - "properties": { - "allowedConfigValues": { - "description": "Required. All Certificates issued by the CertificateAuthority must match at least one listed ReusableConfigWrapper. If a ReusableConfigWrapper has an empty field, any value will be allowed for that field.", - "items": { - "$ref": "ReusableConfigWrapper" - }, - "type": "array" - } - }, - "type": "object" - }, - "AllowedSubjectAltNames": { - "description": "AllowedSubjectAltNames specifies the allowed values for SubjectAltNames by the CertificateAuthority when issuing Certificates.", - "id": "AllowedSubjectAltNames", - "properties": { - "allowCustomSans": { - "description": "Optional. Specifies if to allow custom X509Extension values.", - "type": "boolean" - }, - "allowGlobbingDnsWildcards": { - "description": "Optional. Specifies if glob patterns used for allowed_dns_names allow wildcard certificates. If this is set, certificate requests with wildcard domains will be permitted to match a glob pattern specified in allowed_dns_names. Otherwise, certificate requests with wildcard domains will be permitted only if allowed_dns_names contains a literal wildcard.", - "type": "boolean" - }, - "allowedDnsNames": { - "description": "Optional. Contains valid, fully-qualified host names. Glob patterns are also supported. To allow an explicit wildcard certificate, escape with backlash (i.e. `\\*`). E.g. for globbed entries: `*bar.com` will allow `foo.bar.com`, but not `*.bar.com`, unless the allow_globbing_dns_wildcards field is set. E.g. for wildcard entries: `\\*.bar.com` will allow `*.bar.com`, but not `foo.bar.com`.", - "items": { - "type": "string" - }, - "type": "array" - }, - "allowedEmailAddresses": { - "description": "Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also supported.", - "items": { - "type": "string" - }, - "type": "array" - }, - "allowedIps": { - "description": "Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6 addresses and subnet ranges. Subnet ranges are specified using the '/' notation (e.g. 10.0.0.0/8, 2001:700:300:1800::/64). Glob patterns are supported only for ip address entries (i.e. not for subnet ranges).", - "items": { - "type": "string" - }, - "type": "array" - }, - "allowedUris": { - "description": "Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To match across path seperators (i.e. '/') use the double star glob pattern (i.e. '**').", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "AuditConfig": { - "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.", - "id": "AuditConfig", - "properties": { - "auditLogConfigs": { - "description": "The configuration for logging of each type of permission.", - "items": { - "$ref": "AuditLogConfig" - }, - "type": "array" - }, - "service": { - "description": "Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.", - "type": "string" - } - }, - "type": "object" - }, - "AuditLogConfig": { - "description": "Provides the configuration for logging a type of permissions. Example: { \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.", - "id": "AuditLogConfig", - "properties": { - "exemptedMembers": { - "description": "Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.", - "items": { - "type": "string" - }, - "type": "array" - }, - "logType": { - "description": "The log type that this config enables.", - "enum": [ - "LOG_TYPE_UNSPECIFIED", - "ADMIN_READ", - "DATA_WRITE", - "DATA_READ" - ], - "enumDescriptions": [ - "Default case. Should never be this.", - "Admin reads. Example: CloudIAM getIamPolicy", - "Data writes. Example: CloudSQL Users create", - "Data reads. Example: CloudSQL Users list" - ], - "type": "string" - } - }, - "type": "object" - }, - "Binding": { - "description": "Associates `members`, or principals, with a `role`.", - "id": "Binding", - "properties": { - "condition": { - "$ref": "Expr", - "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." - }, - "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", - "items": { - "type": "string" - }, - "type": "array" - }, - "role": { - "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", - "type": "string" - } - }, - "type": "object" - }, - "CaOptions": { - "description": "Describes values that are relevant in a CA certificate.", - "id": "CaOptions", - "properties": { - "isCa": { - "description": "Optional. Refers to the \"CA\" X.509 extension, which is a boolean value. When this value is missing, the extension will be omitted from the CA certificate.", - "type": "boolean" - }, - "maxIssuerPathLength": { - "description": "Optional. Refers to the path length restriction X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "CancelOperationRequest": { - "description": "The request message for Operations.CancelOperation.", - "id": "CancelOperationRequest", - "properties": {}, - "type": "object" - }, - "Certificate": { - "description": "A Certificate corresponds to a signed X.509 certificate issued by a CertificateAuthority.", - "id": "Certificate", - "properties": { - "certificateDescription": { - "$ref": "CertificateDescription", - "description": "Output only. A structured description of the issued X.509 certificate.", - "readOnly": true - }, - "config": { - "$ref": "CertificateConfig", - "description": "Immutable. A description of the certificate and key that does not require X.509 or ASN.1." - }, - "createTime": { - "description": "Output only. The time at which this Certificate was created.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Optional. Labels with user-defined metadata.", - "type": "object" - }, - "lifetime": { - "description": "Required. Immutable. The desired lifetime of a certificate. Used to create the \"not_before_time\" and \"not_after_time\" fields inside an X.509 certificate. Note that the lifetime may be truncated if it would extend past the life of any certificate authority in the issuing chain.", - "format": "google-duration", - "type": "string" - }, - "name": { - "description": "Output only. The resource path for this Certificate in the format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.", - "readOnly": true, - "type": "string" - }, - "pemCertificate": { - "description": "Output only. The pem-encoded, signed X.509 certificate.", - "readOnly": true, - "type": "string" - }, - "pemCertificateChain": { - "description": "Output only. The chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.", - "items": { - "type": "string" - }, - "readOnly": true, - "type": "array" - }, - "pemCsr": { - "description": "Immutable. A pem-encoded X.509 certificate signing request (CSR).", - "type": "string" - }, - "revocationDetails": { - "$ref": "RevocationDetails", - "description": "Output only. Details regarding the revocation of this Certificate. This Certificate is considered revoked if and only if this field is present.", - "readOnly": true - }, - "updateTime": { - "description": "Output only. The time at which this Certificate was updated.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, - "CertificateAuthority": { - "description": "A CertificateAuthority represents an individual Certificate Authority. A CertificateAuthority can be used to create Certificates.", - "id": "CertificateAuthority", - "properties": { - "accessUrls": { - "$ref": "AccessUrls", - "description": "Output only. URLs for accessing content published by this CA, such as the CA certificate and CRLs.", - "readOnly": true - }, - "caCertificateDescriptions": { - "description": "Output only. A structured description of this CertificateAuthority's CA certificate and its issuers. Ordered as self-to-root.", - "items": { - "$ref": "CertificateDescription" - }, - "readOnly": true, - "type": "array" - }, - "certificatePolicy": { - "$ref": "CertificateAuthorityPolicy", - "description": "Optional. The CertificateAuthorityPolicy to enforce when issuing Certificates from this CertificateAuthority." - }, - "config": { - "$ref": "CertificateConfig", - "description": "Required. Immutable. The config used to create a self-signed X.509 certificate or CSR." - }, - "createTime": { - "description": "Output only. The time at which this CertificateAuthority was created.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "deleteTime": { - "description": "Output only. The time at which this CertificateAuthority will be deleted, if scheduled for deletion.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "gcsBucket": { - "description": "Immutable. The name of a Cloud Storage bucket where this CertificateAuthority will publish content, such as the CA certificate and CRLs. This must be a bucket name, without any prefixes (such as `gs://`) or suffixes (such as `.googleapis.com`). For example, to use a bucket named `my-bucket`, you would simply specify `my-bucket`. If not specified, a managed bucket will be created.", - "type": "string" - }, - "issuingOptions": { - "$ref": "IssuingOptions", - "description": "Optional. The IssuingOptions to follow when issuing Certificates from this CertificateAuthority." - }, - "keySpec": { - "$ref": "KeyVersionSpec", - "description": "Required. Immutable. Used when issuing certificates for this CertificateAuthority. If this CertificateAuthority is a self-signed CertificateAuthority, this key is also used to sign the self-signed CA certificate. Otherwise, it is used to sign a CSR." - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Optional. Labels with user-defined metadata.", - "type": "object" - }, - "lifetime": { - "description": "Required. The desired lifetime of the CA certificate. Used to create the \"not_before_time\" and \"not_after_time\" fields inside an X.509 certificate.", - "format": "google-duration", - "type": "string" - }, - "name": { - "description": "Output only. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", - "readOnly": true, - "type": "string" - }, - "pemCaCertificates": { - "description": "Output only. This CertificateAuthority's certificate chain, including the current CertificateAuthority's certificate. Ordered such that the root issuer is the final element (consistent with RFC 5246). For a self-signed CA, this will only list the current CertificateAuthority's certificate.", - "items": { - "type": "string" - }, - "readOnly": true, - "type": "array" - }, - "state": { - "description": "Output only. The State for this CertificateAuthority.", - "enum": [ - "STATE_UNSPECIFIED", - "ENABLED", - "DISABLED", - "PENDING_ACTIVATION", - "PENDING_DELETION" - ], - "enumDescriptions": [ - "Not specified.", - "Certificates can be issued from this CA. CRLs will be generated for this CA.", - "Certificates cannot be issued from this CA. CRLs will still be generated.", - "Certificates cannot be issued from this CA. CRLs will not be generated.", - "Certificates cannot be issued from this CA. CRLs will not be generated." - ], - "readOnly": true, - "type": "string" - }, - "subordinateConfig": { - "$ref": "SubordinateConfig", - "description": "Optional. If this is a subordinate CertificateAuthority, this field will be set with the subordinate configuration, which describes its issuers. This may be updated, but this CertificateAuthority must continue to validate." - }, - "tier": { - "description": "Required. Immutable. The Tier of this CertificateAuthority.", - "enum": [ - "TIER_UNSPECIFIED", - "ENTERPRISE", - "DEVOPS" - ], - "enumDescriptions": [ - "Not specified.", - "Enterprise tier.", - "DevOps tier." - ], - "type": "string" - }, - "type": { - "description": "Required. Immutable. The Type of this CertificateAuthority.", - "enum": [ - "TYPE_UNSPECIFIED", - "SELF_SIGNED", - "SUBORDINATE" - ], - "enumDescriptions": [ - "Not specified.", - "Self-signed CA.", - "Subordinate CA. Could be issued by a Private CA CertificateAuthority or an unmanaged CA." - ], - "type": "string" - }, - "updateTime": { - "description": "Output only. The time at which this CertificateAuthority was updated.", - "format": "google-datetime", - "readOnly": true, - "type": "string" + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } } - }, - "type": "object" - }, - "CertificateAuthorityPolicy": { - "description": "The issuing policy for a CertificateAuthority. Certificates will not be successfully issued from this CertificateAuthority if they violate the policy.", - "id": "CertificateAuthorityPolicy", + } + } + }, + "revision": "20230202", + "rootUrl": "https://privateca.googleapis.com/", + "schemas": { + "AuditConfig": { + "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.", + "id": "AuditConfig", "properties": { - "allowedCommonNames": { - "description": "Optional. If any value is specified here, then all Certificates issued by the CertificateAuthority must match at least one listed value. If no value is specified, all values will be allowed for this fied. Glob patterns are also supported.", - "items": { - "type": "string" - }, - "type": "array" - }, - "allowedConfigList": { - "$ref": "AllowedConfigList", - "description": "Optional. All Certificates issued by the CertificateAuthority must match at least one listed ReusableConfigWrapper in the list." - }, - "allowedIssuanceModes": { - "$ref": "IssuanceModes", - "description": "Optional. If specified, then only methods allowed in the IssuanceModes may be used to issue Certificates." - }, - "allowedLocationsAndOrganizations": { - "description": "Optional. If any Subject is specified here, then all Certificates issued by the CertificateAuthority must match at least one listed Subject. If a Subject has an empty field, any value will be allowed for that field.", + "auditLogConfigs": { + "description": "The configuration for logging of each type of permission.", "items": { - "$ref": "Subject" + "$ref": "AuditLogConfig" }, "type": "array" }, - "allowedSans": { - "$ref": "AllowedSubjectAltNames", - "description": "Optional. If a AllowedSubjectAltNames is specified here, then all Certificates issued by the CertificateAuthority must match AllowedSubjectAltNames. If no value or an empty value is specified, any value will be allowed for the SubjectAltNames field." - }, - "maximumLifetime": { - "description": "Optional. The maximum lifetime allowed by the CertificateAuthority. Note that if the any part if the issuing chain expires before a Certificate's requested maximum_lifetime, the effective lifetime will be explicitly truncated.", - "format": "google-duration", + "service": { + "description": "Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.", "type": "string" - }, - "overwriteConfigValues": { - "$ref": "ReusableConfigWrapper", - "description": "Optional. All Certificates issued by the CertificateAuthority will use the provided configuration values, overwriting any requested configuration values." - } - }, - "type": "object" - }, - "CertificateConfig": { - "description": "A CertificateConfig describes an X.509 certificate or CSR that is to be created, as an alternative to using ASN.1.", - "id": "CertificateConfig", - "properties": { - "publicKey": { - "$ref": "PublicKey", - "description": "Optional. The public key that corresponds to this config. This is, for example, used when issuing Certificates, but not when creating a self-signed CertificateAuthority or CertificateAuthority CSR." - }, - "reusableConfig": { - "$ref": "ReusableConfigWrapper", - "description": "Required. Describes how some of the technical fields in a certificate should be populated." - }, - "subjectConfig": { - "$ref": "SubjectConfig", - "description": "Required. Specifies some of the values in a certificate that are related to the subject." } }, "type": "object" }, - "CertificateDescription": { - "description": "A CertificateDescription describes an X.509 certificate or CSR that has been issued, as an alternative to using ASN.1 / X.509.", - "id": "CertificateDescription", + "AuditLogConfig": { + "description": "Provides the configuration for logging a type of permissions. Example: { \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.", + "id": "AuditLogConfig", "properties": { - "aiaIssuingCertificateUrls": { - "description": "Describes lists of issuer CA certificate URLs that appear in the \"Authority Information Access\" extension in the certificate.", - "items": { - "type": "string" - }, - "type": "array" - }, - "authorityKeyId": { - "$ref": "KeyId", - "description": "Identifies the subject_key_id of the parent certificate, per https://tools.ietf.org/html/rfc5280#section-4.2.1.1" - }, - "certFingerprint": { - "$ref": "CertificateFingerprint", - "description": "The hash of the x.509 certificate." - }, - "configValues": { - "$ref": "ReusableConfigValues", - "description": "Describes some of the technical fields in a certificate." - }, - "crlDistributionPoints": { - "description": "Describes a list of locations to obtain CRL information, i.e. the DistributionPoint.fullName described by https://tools.ietf.org/html/rfc5280#section-4.2.1.13", + "exemptedMembers": { + "description": "Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.", "items": { "type": "string" }, "type": "array" }, - "publicKey": { - "$ref": "PublicKey", - "description": "The public key that corresponds to an issued certificate." - }, - "subjectDescription": { - "$ref": "SubjectDescription", - "description": "Describes some of the values in a certificate that are related to the subject and lifetime." - }, - "subjectKeyId": { - "$ref": "KeyId", - "description": "Provides a means of identifiying certificates that contain a particular public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2." - } - }, - "type": "object" - }, - "CertificateFingerprint": { - "description": "A group of fingerprints for the x509 certificate.", - "id": "CertificateFingerprint", - "properties": { - "sha256Hash": { - "description": "The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.", + "logType": { + "description": "The log type that this config enables.", + "enum": [ + "LOG_TYPE_UNSPECIFIED", + "ADMIN_READ", + "DATA_WRITE", + "DATA_READ" + ], + "enumDescriptions": [ + "Default case. Should never be this.", + "Admin reads. Example: CloudIAM getIamPolicy", + "Data writes. Example: CloudSQL Users create", + "Data reads. Example: CloudSQL Users list" + ], "type": "string" } }, "type": "object" }, - "CertificateRevocationList": { - "description": "A CertificateRevocationList corresponds to a signed X.509 certificate Revocation List (CRL). A CRL contains the serial numbers of certificates that should no longer be trusted.", - "id": "CertificateRevocationList", + "Binding": { + "description": "Associates `members`, or principals, with a `role`.", + "id": "Binding", "properties": { - "accessUrl": { - "description": "Output only. The location where 'pem_crl' can be accessed.", - "readOnly": true, - "type": "string" - }, - "createTime": { - "description": "Output only. The time at which this CertificateRevocationList was created.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Optional. Labels with user-defined metadata.", - "type": "object" - }, - "name": { - "description": "Output only. The resource path for this CertificateRevocationList in the format `projects/*/locations/*/certificateAuthorities/*/ certificateRevocationLists/*`.", - "readOnly": true, - "type": "string" - }, - "pemCrl": { - "description": "Output only. The PEM-encoded X.509 CRL.", - "readOnly": true, - "type": "string" + "condition": { + "$ref": "Expr", + "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, - "revokedCertificates": { - "description": "Output only. The revoked serial numbers that appear in pem_crl.", + "members": { + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { - "$ref": "RevokedCertificate" + "type": "string" }, - "readOnly": true, "type": "array" }, - "sequenceNumber": { - "description": "Output only. The CRL sequence number that appears in pem_crl.", - "format": "int64", - "readOnly": true, - "type": "string" - }, - "state": { - "description": "Output only. The State for this CertificateRevocationList.", - "enum": [ - "STATE_UNSPECIFIED", - "ACTIVE", - "SUPERSEDED" - ], - "enumDescriptions": [ - "Not specified.", - "The CertificateRevocationList is up to date.", - "The CertificateRevocationList is no longer current." - ], - "readOnly": true, - "type": "string" - }, - "updateTime": { - "description": "Output only. The time at which this CertificateRevocationList was updated.", - "format": "google-datetime", - "readOnly": true, + "role": { + "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", "type": "string" } }, "type": "object" }, - "DisableCertificateAuthorityRequest": { - "description": "Request message for CertificateAuthorityService.DisableCertificateAuthority.", - "id": "DisableCertificateAuthorityRequest", - "properties": { - "requestId": { - "description": "Optional. An 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. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he 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).", - "type": "string" - } - }, + "CancelOperationRequest": { + "description": "The request message for Operations.CancelOperation.", + "id": "CancelOperationRequest", + "properties": {}, "type": "object" }, "Empty": { @@ -1844,17 +665,6 @@ "properties": {}, "type": "object" }, - "EnableCertificateAuthorityRequest": { - "description": "Request message for CertificateAuthorityService.EnableCertificateAuthority.", - "id": "EnableCertificateAuthorityRequest", - "properties": { - "requestId": { - "description": "Optional. An 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. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he 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).", - "type": "string" - } - }, - "type": "object" - }, "Expr": { "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", "id": "Expr", @@ -1872,269 +682,8 @@ "type": "string" }, "title": { - "description": "Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.", - "type": "string" - } - }, - "type": "object" - }, - "ExtendedKeyUsageOptions": { - "description": "KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value.", - "id": "ExtendedKeyUsageOptions", - "properties": { - "clientAuth": { - "description": "Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as \"TLS WWW client authentication\", though regularly used for non-WWW TLS.", - "type": "boolean" - }, - "codeSigning": { - "description": "Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as \"Signing of downloadable executable code client authentication\".", - "type": "boolean" - }, - "emailProtection": { - "description": "Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as \"Email protection\".", - "type": "boolean" - }, - "ocspSigning": { - "description": "Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as \"Signing OCSP responses\".", - "type": "boolean" - }, - "serverAuth": { - "description": "Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as \"TLS WWW server authentication\", though regularly used for non-WWW TLS.", - "type": "boolean" - }, - "timeStamping": { - "description": "Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as \"Binding the hash of an object to a time\".", - "type": "boolean" - } - }, - "type": "object" - }, - "FetchCertificateAuthorityCsrResponse": { - "description": "Response message for CertificateAuthorityService.FetchCertificateAuthorityCsr.", - "id": "FetchCertificateAuthorityCsrResponse", - "properties": { - "pemCsr": { - "description": "Output only. The PEM-encoded signed certificate signing request (CSR).", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, - "IssuanceModes": { - "description": "IssuanceModes specifies the allowed ways in which Certificates may be requested from this CertificateAuthority.", - "id": "IssuanceModes", - "properties": { - "allowConfigBasedIssuance": { - "description": "Required. When true, allows callers to create Certificates by specifying a CertificateConfig.", - "type": "boolean" - }, - "allowCsrBasedIssuance": { - "description": "Required. When true, allows callers to create Certificates by specifying a CSR.", - "type": "boolean" - } - }, - "type": "object" - }, - "IssuingOptions": { - "description": "Options that affect all certificates issued by a CertificateAuthority.", - "id": "IssuingOptions", - "properties": { - "includeCaCertUrl": { - "description": "Required. When true, includes a URL to the issuing CA certificate in the \"authority information access\" X.509 extension.", - "type": "boolean" - }, - "includeCrlAccessUrl": { - "description": "Required. When true, includes a URL to the CRL corresponding to certificates issued from a CertificateAuthority. CRLs will expire 7 days from their creation. However, we will rebuild daily. CRLs are also rebuilt shortly after a certificate is revoked.", - "type": "boolean" - } - }, - "type": "object" - }, - "KeyId": { - "description": "A KeyId identifies a specific public key, usually by hashing the public key.", - "id": "KeyId", - "properties": { - "keyId": { - "description": "Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key.", - "type": "string" - } - }, - "type": "object" - }, - "KeyUsage": { - "description": "A KeyUsage describes key usage values that may appear in an X.509 certificate.", - "id": "KeyUsage", - "properties": { - "baseKeyUsage": { - "$ref": "KeyUsageOptions", - "description": "Describes high-level ways in which a key may be used." - }, - "extendedKeyUsage": { - "$ref": "ExtendedKeyUsageOptions", - "description": "Detailed scenarios in which a key may be used." - }, - "unknownExtendedKeyUsages": { - "description": "Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.", - "items": { - "$ref": "ObjectId" - }, - "type": "array" - } - }, - "type": "object" - }, - "KeyUsageOptions": { - "description": "KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3.", - "id": "KeyUsageOptions", - "properties": { - "certSign": { - "description": "The key may be used to sign certificates.", - "type": "boolean" - }, - "contentCommitment": { - "description": "The key may be used for cryptographic commitments. Note that this may also be referred to as \"non-repudiation\".", - "type": "boolean" - }, - "crlSign": { - "description": "The key may be used sign certificate revocation lists.", - "type": "boolean" - }, - "dataEncipherment": { - "description": "The key may be used to encipher data.", - "type": "boolean" - }, - "decipherOnly": { - "description": "The key may be used to decipher only.", - "type": "boolean" - }, - "digitalSignature": { - "description": "The key may be used for digital signatures.", - "type": "boolean" - }, - "encipherOnly": { - "description": "The key may be used to encipher only.", - "type": "boolean" - }, - "keyAgreement": { - "description": "The key may be used in a key agreement protocol.", - "type": "boolean" - }, - "keyEncipherment": { - "description": "The key may be used to encipher other keys.", - "type": "boolean" - } - }, - "type": "object" - }, - "KeyVersionSpec": { - "description": "A Cloud KMS key configuration that a CertificateAuthority will use.", - "id": "KeyVersionSpec", - "properties": { - "algorithm": { - "description": "Required. The algorithm to use for creating a managed Cloud KMS key for a for a simplified experience. All managed keys will be have their ProtectionLevel as `HSM`.", - "enum": [ - "SIGN_HASH_ALGORITHM_UNSPECIFIED", - "RSA_PSS_2048_SHA256", - "RSA_PSS_3072_SHA256", - "RSA_PSS_4096_SHA256", - "RSA_PKCS1_2048_SHA256", - "RSA_PKCS1_3072_SHA256", - "RSA_PKCS1_4096_SHA256", - "EC_P256_SHA256", - "EC_P384_SHA384" - ], - "enumDescriptions": [ - "Not specified.", - "maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_2048_SHA256", - "maps to CryptoKeyVersionAlgorithm. RSA_SIGN_PSS_3072_SHA256", - "maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_4096_SHA256", - "maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_2048_SHA256", - "maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_3072_SHA256", - "maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_4096_SHA256", - "maps to CryptoKeyVersionAlgorithm.EC_SIGN_P256_SHA256", - "maps to CryptoKeyVersionAlgorithm.EC_SIGN_P384_SHA384" - ], - "type": "string" - }, - "cloudKmsKeyVersion": { - "description": "Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the format `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`. This option enables full flexibility in the key's capabilities and properties.", - "type": "string" - } - }, - "type": "object" - }, - "ListCertificateAuthoritiesResponse": { - "description": "Response message for CertificateAuthorityService.ListCertificateAuthorities.", - "id": "ListCertificateAuthoritiesResponse", - "properties": { - "certificateAuthorities": { - "description": "The list of CertificateAuthorities.", - "items": { - "$ref": "CertificateAuthority" - }, - "type": "array" - }, - "nextPageToken": { - "description": "A token to retrieve next page of results. Pass this value in ListCertificateAuthoritiesRequest.next_page_token to retrieve the next page of results.", - "type": "string" - }, - "unreachable": { - "description": "A list of locations (e.g. \"us-west1\") that could not be reached.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "ListCertificateRevocationListsResponse": { - "description": "Response message for CertificateAuthorityService.ListCertificateRevocationLists.", - "id": "ListCertificateRevocationListsResponse", - "properties": { - "certificateRevocationLists": { - "description": "The list of CertificateRevocationLists.", - "items": { - "$ref": "CertificateRevocationList" - }, - "type": "array" - }, - "nextPageToken": { - "description": "A token to retrieve next page of results. Pass this value in ListCertificateRevocationListsRequest.next_page_token to retrieve the next page of results.", - "type": "string" - }, - "unreachable": { - "description": "A list of locations (e.g. \"us-west1\") that could not be reached.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "ListCertificatesResponse": { - "description": "Response message for CertificateAuthorityService.ListCertificates.", - "id": "ListCertificatesResponse", - "properties": { - "certificates": { - "description": "The list of Certificates.", - "items": { - "$ref": "Certificate" - }, - "type": "array" - }, - "nextPageToken": { - "description": "A token to retrieve next page of results. Pass this value in ListCertificatesRequest.next_page_token to retrieve the next page of results.", + "description": "Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.", "type": "string" - }, - "unreachable": { - "description": "A list of locations (e.g. \"us-west1\") that could not be reached.", - "items": { - "type": "string" - }, - "type": "array" } }, "type": "object" @@ -2175,31 +724,6 @@ }, "type": "object" }, - "ListReusableConfigsResponse": { - "description": "Response message for CertificateAuthorityService.ListReusableConfigs.", - "id": "ListReusableConfigsResponse", - "properties": { - "nextPageToken": { - "description": "A token to retrieve next page of results. Pass this value in ListReusableConfigsRequest.next_page_token to retrieve the next page of results.", - "type": "string" - }, - "reusableConfigs": { - "description": "The list of ReusableConfigs.", - "items": { - "$ref": "ReusableConfig" - }, - "type": "array" - }, - "unreachable": { - "description": "A list of locations (e.g. \"us-west1\") that could not be reached.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, "Location": { "description": "A resource that represents Google Cloud Platform location.", "id": "Location", @@ -2234,21 +758,6 @@ }, "type": "object" }, - "ObjectId": { - "description": "An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages.", - "id": "ObjectId", - "properties": { - "objectIdPath": { - "description": "Required. The parts of an OID path. The most significant parts of the path come first.", - "items": { - "format": "int32", - "type": "integer" - }, - "type": "array" - } - }, - "type": "object" - }, "Operation": { "description": "This resource represents a long-running operation that is the result of a network API call.", "id": "Operation", @@ -2284,50 +793,6 @@ }, "type": "object" }, - "OperationMetadata": { - "description": "Represents the metadata of the long-running operation.", - "id": "OperationMetadata", - "properties": { - "apiVersion": { - "description": "Output only. API version used to start the operation.", - "readOnly": true, - "type": "string" - }, - "createTime": { - "description": "Output only. The time the operation was created.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "endTime": { - "description": "Output only. The time the operation finished running.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "requestedCancellation": { - "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - "readOnly": true, - "type": "boolean" - }, - "statusMessage": { - "description": "Output only. Human-readable status of the operation, if any.", - "readOnly": true, - "type": "string" - }, - "target": { - "description": "Output only. Server-defined resource path for the target of the operation.", - "readOnly": true, - "type": "string" - }, - "verb": { - "description": "Output only. Name of the verb executed by the operation.", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, "Policy": { "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", "id": "Policy", @@ -2359,32 +824,6 @@ }, "type": "object" }, - "PublicKey": { - "description": "A PublicKey describes a public key.", - "id": "PublicKey", - "properties": { - "key": { - "description": "Required. A public key. When this is specified in a request, the padding and encoding can be any of the options described by the respective 'KeyType' value. When this is generated by the service, it will always be an RFC 5280 [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1) structure containing an algorithm identifier and a key.", - "format": "byte", - "type": "string" - }, - "type": { - "description": "Optional. The type of public key. If specified, it must match the public key used for the`key` field.", - "enum": [ - "KEY_TYPE_UNSPECIFIED", - "PEM_RSA_KEY", - "PEM_EC_KEY" - ], - "enumDescriptions": [ - "Default unspecified value.", - "A PEM-encoded PKCS#1/RFC 3447 RSAPublicKey structure, or an RFC 5280 [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1) structure containing the former.", - "An RFC 5280 [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1) structure containing a PEM-encoded compressed NIST P-256/secp256r1/prime256v1 or P-384 key." - ], - "type": "string" - } - }, - "type": "object" - }, "ReconciliationOperationMetadata": { "description": "Operation metadata returned by the CLH during resource state reconciliation.", "id": "ReconciliationOperationMetadata", @@ -2410,238 +849,6 @@ }, "type": "object" }, - "RestoreCertificateAuthorityRequest": { - "description": "Request message for CertificateAuthorityService.RestoreCertificateAuthority.", - "id": "RestoreCertificateAuthorityRequest", - "properties": { - "requestId": { - "description": "Optional. An 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. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he 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).", - "type": "string" - } - }, - "type": "object" - }, - "ReusableConfig": { - "description": "A ReusableConfig refers to a managed ReusableConfigValues. Those, in turn, are used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions.", - "id": "ReusableConfig", - "properties": { - "createTime": { - "description": "Output only. The time at which this ReusableConfig was created.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "description": { - "description": "Optional. A human-readable description of scenarios these ReusableConfigValues may be compatible with.", - "type": "string" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Optional. Labels with user-defined metadata.", - "type": "object" - }, - "name": { - "description": "Output only. The resource path for this ReusableConfig in the format `projects/*/locations/*/reusableConfigs/*`.", - "readOnly": true, - "type": "string" - }, - "updateTime": { - "description": "Output only. The time at which this ReusableConfig was updated.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "values": { - "$ref": "ReusableConfigValues", - "description": "Required. The config values." - } - }, - "type": "object" - }, - "ReusableConfigValues": { - "description": "A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions.", - "id": "ReusableConfigValues", - "properties": { - "additionalExtensions": { - "description": "Optional. Describes custom X.509 extensions.", - "items": { - "$ref": "X509Extension" - }, - "type": "array" - }, - "aiaOcspServers": { - "description": "Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the \"Authority Information Access\" extension in the certificate.", - "items": { - "type": "string" - }, - "type": "array" - }, - "caOptions": { - "$ref": "CaOptions", - "description": "Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate." - }, - "keyUsage": { - "$ref": "KeyUsage", - "description": "Optional. Indicates the intended use for keys that correspond to a certificate." - }, - "policyIds": { - "description": "Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.", - "items": { - "$ref": "ObjectId" - }, - "type": "array" - } - }, - "type": "object" - }, - "ReusableConfigWrapper": { - "description": "A ReusableConfigWrapper describes values that may assist in creating an X.509 certificate, or a reference to a pre-defined set of values.", - "id": "ReusableConfigWrapper", - "properties": { - "reusableConfig": { - "description": "Required. A resource path to a ReusableConfig in the format `projects/*/locations/*/reusableConfigs/*`.", - "type": "string" - }, - "reusableConfigValues": { - "$ref": "ReusableConfigValues", - "description": "Required. A user-specified inline ReusableConfigValues." - } - }, - "type": "object" - }, - "RevocationDetails": { - "description": "Describes fields that are relavent to the revocation of a Certificate.", - "id": "RevocationDetails", - "properties": { - "revocationState": { - "description": "Indicates why a Certificate was revoked.", - "enum": [ - "REVOCATION_REASON_UNSPECIFIED", - "KEY_COMPROMISE", - "CERTIFICATE_AUTHORITY_COMPROMISE", - "AFFILIATION_CHANGED", - "SUPERSEDED", - "CESSATION_OF_OPERATION", - "CERTIFICATE_HOLD", - "PRIVILEGE_WITHDRAWN", - "ATTRIBUTE_AUTHORITY_COMPROMISE" - ], - "enumDescriptions": [ - "Default unspecified value. This value does indicate that a Certificate has been revoked, but that a reason has not been recorded.", - "Key material for this Certificate may have leaked.", - "The key material for a certificate authority in the issuing path may have leaked.", - "The subject or other attributes in this Certificate have changed.", - "This Certificate has been superseded.", - "This Certificate or entities in the issuing path have ceased to operate.", - "This Certificate should not be considered valid, it is expected that it may become valid in the future.", - "This Certificate no longer has permission to assert the listed attributes.", - "The authority which determines appropriate attributes for a Certificate may have been compromised." - ], - "type": "string" - }, - "revocationTime": { - "description": "The time at which this Certificate was revoked.", - "format": "google-datetime", - "type": "string" - } - }, - "type": "object" - }, - "RevokeCertificateRequest": { - "description": "Request message for CertificateAuthorityService.RevokeCertificate.", - "id": "RevokeCertificateRequest", - "properties": { - "reason": { - "description": "Required. The RevocationReason for revoking this certificate.", - "enum": [ - "REVOCATION_REASON_UNSPECIFIED", - "KEY_COMPROMISE", - "CERTIFICATE_AUTHORITY_COMPROMISE", - "AFFILIATION_CHANGED", - "SUPERSEDED", - "CESSATION_OF_OPERATION", - "CERTIFICATE_HOLD", - "PRIVILEGE_WITHDRAWN", - "ATTRIBUTE_AUTHORITY_COMPROMISE" - ], - "enumDescriptions": [ - "Default unspecified value. This value does indicate that a Certificate has been revoked, but that a reason has not been recorded.", - "Key material for this Certificate may have leaked.", - "The key material for a certificate authority in the issuing path may have leaked.", - "The subject or other attributes in this Certificate have changed.", - "This Certificate has been superseded.", - "This Certificate or entities in the issuing path have ceased to operate.", - "This Certificate should not be considered valid, it is expected that it may become valid in the future.", - "This Certificate no longer has permission to assert the listed attributes.", - "The authority which determines appropriate attributes for a Certificate may have been compromised." - ], - "type": "string" - }, - "requestId": { - "description": "Optional. An 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. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he 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).", - "type": "string" - } - }, - "type": "object" - }, - "RevokedCertificate": { - "description": "Describes a revoked Certificate.", - "id": "RevokedCertificate", - "properties": { - "certificate": { - "description": "The resource path for the Certificate in the format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.", - "type": "string" - }, - "hexSerialNumber": { - "description": "The serial number of the Certificate.", - "type": "string" - }, - "revocationReason": { - "description": "The reason the Certificate was revoked.", - "enum": [ - "REVOCATION_REASON_UNSPECIFIED", - "KEY_COMPROMISE", - "CERTIFICATE_AUTHORITY_COMPROMISE", - "AFFILIATION_CHANGED", - "SUPERSEDED", - "CESSATION_OF_OPERATION", - "CERTIFICATE_HOLD", - "PRIVILEGE_WITHDRAWN", - "ATTRIBUTE_AUTHORITY_COMPROMISE" - ], - "enumDescriptions": [ - "Default unspecified value. This value does indicate that a Certificate has been revoked, but that a reason has not been recorded.", - "Key material for this Certificate may have leaked.", - "The key material for a certificate authority in the issuing path may have leaked.", - "The subject or other attributes in this Certificate have changed.", - "This Certificate has been superseded.", - "This Certificate or entities in the issuing path have ceased to operate.", - "This Certificate should not be considered valid, it is expected that it may become valid in the future.", - "This Certificate no longer has permission to assert the listed attributes.", - "The authority which determines appropriate attributes for a Certificate may have been compromised." - ], - "type": "string" - } - }, - "type": "object" - }, - "ScheduleDeleteCertificateAuthorityRequest": { - "description": "Request message for CertificateAuthorityService.ScheduleDeleteCertificateAuthority.", - "id": "ScheduleDeleteCertificateAuthorityRequest", - "properties": { - "ignoreActiveCertificates": { - "description": "Optional. This field allows the CA to be scheduled for deletion even if the CA has active certs. Active certs include both unrevoked and unexpired certs.", - "type": "boolean" - }, - "requestId": { - "description": "Optional. An 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. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he 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).", - "type": "string" - } - }, - "type": "object" - }, "SetIamPolicyRequest": { "description": "Request message for `SetIamPolicy` method.", "id": "SetIamPolicyRequest", @@ -2685,169 +892,6 @@ }, "type": "object" }, - "Subject": { - "description": "Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate.", - "id": "Subject", - "properties": { - "countryCode": { - "description": "The country code of the subject.", - "type": "string" - }, - "locality": { - "description": "The locality or city of the subject.", - "type": "string" - }, - "organization": { - "description": "The organization of the subject.", - "type": "string" - }, - "organizationalUnit": { - "description": "The organizational_unit of the subject.", - "type": "string" - }, - "postalCode": { - "description": "The postal code of the subject.", - "type": "string" - }, - "province": { - "description": "The province, territory, or regional state of the subject.", - "type": "string" - }, - "streetAddress": { - "description": "The street address of the subject.", - "type": "string" - } - }, - "type": "object" - }, - "SubjectAltNames": { - "description": "SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the \"common name\" in the distinguished name).", - "id": "SubjectAltNames", - "properties": { - "customSans": { - "description": "Contains additional subject alternative name values.", - "items": { - "$ref": "X509Extension" - }, - "type": "array" - }, - "dnsNames": { - "description": "Contains only valid, fully-qualified host names.", - "items": { - "type": "string" - }, - "type": "array" - }, - "emailAddresses": { - "description": "Contains only valid RFC 2822 E-mail addresses.", - "items": { - "type": "string" - }, - "type": "array" - }, - "ipAddresses": { - "description": "Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.", - "items": { - "type": "string" - }, - "type": "array" - }, - "uris": { - "description": "Contains only valid RFC 3986 URIs.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "SubjectConfig": { - "description": "These values are used to create the distinguished name and subject alternative name fields in an X.509 certificate.", - "id": "SubjectConfig", - "properties": { - "commonName": { - "description": "Optional. The \"common name\" of the distinguished name.", - "type": "string" - }, - "subject": { - "$ref": "Subject", - "description": "Required. Contains distinguished name fields such as the location and organization." - }, - "subjectAltName": { - "$ref": "SubjectAltNames", - "description": "Optional. The subject alternative name fields." - } - }, - "type": "object" - }, - "SubjectDescription": { - "description": "These values describe fields in an issued X.509 certificate such as the distinguished name, subject alternative names, serial number, and lifetime.", - "id": "SubjectDescription", - "properties": { - "commonName": { - "description": "The \"common name\" of the distinguished name.", - "type": "string" - }, - "hexSerialNumber": { - "description": "The serial number encoded in lowercase hexadecimal.", - "type": "string" - }, - "lifetime": { - "description": "For convenience, the actual lifetime of an issued certificate. Corresponds to 'not_after_time' - 'not_before_time'.", - "format": "google-duration", - "type": "string" - }, - "notAfterTime": { - "description": "The time at which the certificate expires.", - "format": "google-datetime", - "type": "string" - }, - "notBeforeTime": { - "description": "The time at which the certificate becomes valid.", - "format": "google-datetime", - "type": "string" - }, - "subject": { - "$ref": "Subject", - "description": "Contains distinguished name fields such as the location and organization." - }, - "subjectAltName": { - "$ref": "SubjectAltNames", - "description": "The subject alternative name fields." - } - }, - "type": "object" - }, - "SubordinateConfig": { - "description": "Describes a subordinate CA's issuers. This is either a resource path to a known issuing CertificateAuthority, or a PEM issuer certificate chain.", - "id": "SubordinateConfig", - "properties": { - "certificateAuthority": { - "description": "Required. This can refer to a CertificateAuthority that was used to create a subordinate CertificateAuthority. This field is used for information and usability purposes only. The resource name is in the format `projects/*/locations/*/certificateAuthorities/*`.", - "type": "string" - }, - "pemIssuerChain": { - "$ref": "SubordinateConfigChain", - "description": "Required. Contains the PEM certificate chain for the issuers of this CertificateAuthority, but not pem certificate for this CA itself." - } - }, - "type": "object" - }, - "SubordinateConfigChain": { - "description": "This message describes a subordinate CA's issuer certificate chain. This wrapper exists for compatibility reasons.", - "id": "SubordinateConfigChain", - "properties": { - "pemCertificates": { - "description": "Required. Expected to be in leaf-to-root order according to RFC 5246.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, "TestIamPermissionsRequest": { "description": "Request message for `TestIamPermissions` method.", "id": "TestIamPermissionsRequest", @@ -2875,26 +919,6 @@ } }, "type": "object" - }, - "X509Extension": { - "description": "An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs.", - "id": "X509Extension", - "properties": { - "critical": { - "description": "Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error).", - "type": "boolean" - }, - "objectId": { - "$ref": "ObjectId", - "description": "Required. The OID for this X.509 extension." - }, - "value": { - "description": "Required. The value of this X.509 extension.", - "format": "byte", - "type": "string" - } - }, - "type": "object" } }, "servicePath": "", diff --git a/privateca/v1beta1/privateca-gen.go b/privateca/v1beta1/privateca-gen.go index 5cf6a7f40fa..741c0741b38 100644 --- a/privateca/v1beta1/privateca-gen.go +++ b/privateca/v1beta1/privateca-gen.go @@ -170,7 +170,6 @@ type ProjectsLocationsService struct { func NewProjectsLocationsCertificateAuthoritiesService(s *Service) *ProjectsLocationsCertificateAuthoritiesService { rs := &ProjectsLocationsCertificateAuthoritiesService{s: s} rs.CertificateRevocationLists = NewProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService(s) - rs.Certificates = NewProjectsLocationsCertificateAuthoritiesCertificatesService(s) return rs } @@ -178,8 +177,6 @@ type ProjectsLocationsCertificateAuthoritiesService struct { s *Service CertificateRevocationLists *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService - - Certificates *ProjectsLocationsCertificateAuthoritiesCertificatesService } func NewProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService(s *Service) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService { @@ -191,15 +188,6 @@ type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService st s *Service } -func NewProjectsLocationsCertificateAuthoritiesCertificatesService(s *Service) *ProjectsLocationsCertificateAuthoritiesCertificatesService { - rs := &ProjectsLocationsCertificateAuthoritiesCertificatesService{s: s} - return rs -} - -type ProjectsLocationsCertificateAuthoritiesCertificatesService struct { - s *Service -} - func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { rs := &ProjectsLocationsOperationsService{s: s} return rs @@ -218,188 +206,6 @@ type ProjectsLocationsReusableConfigsService struct { s *Service } -// AccessUrls: URLs where a CertificateAuthority will publish content. -type AccessUrls struct { - // CaCertificateAccessUrl: The URL where this CertificateAuthority's CA - // certificate is published. This will only be set for CAs that have - // been activated. - CaCertificateAccessUrl string `json:"caCertificateAccessUrl,omitempty"` - - // CrlAccessUrl: The URL where this CertificateAuthority's CRLs are - // published. This will only be set for CAs that have been activated. - CrlAccessUrl string `json:"crlAccessUrl,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CaCertificateAccessUrl") 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. "CaCertificateAccessUrl") - // 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 *AccessUrls) MarshalJSON() ([]byte, error) { - type NoMethod AccessUrls - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ActivateCertificateAuthorityRequest: Request message for -// CertificateAuthorityService.ActivateCertificateAuthority. -type ActivateCertificateAuthorityRequest struct { - // PemCaCertificate: Required. The signed CA certificate issued from - // FetchCertificateAuthorityCsrResponse.pem_csr. - PemCaCertificate string `json:"pemCaCertificate,omitempty"` - - // RequestId: Optional. An 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. The - // server will guarantee that for at least 60 minutes since the first - // request. For example, consider a situation where you make an initial - // request and t he 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). - RequestId string `json:"requestId,omitempty"` - - // SubordinateConfig: Required. Must include information about the - // issuer of 'pem_ca_certificate', and any further issuers until the - // self-signed CA. - SubordinateConfig *SubordinateConfig `json:"subordinateConfig,omitempty"` - - // ForceSendFields is a list of field names (e.g. "PemCaCertificate") 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. "PemCaCertificate") 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 *ActivateCertificateAuthorityRequest) MarshalJSON() ([]byte, error) { - type NoMethod ActivateCertificateAuthorityRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type AllowedConfigList struct { - // AllowedConfigValues: Required. All Certificates issued by the - // CertificateAuthority must match at least one listed - // ReusableConfigWrapper. If a ReusableConfigWrapper has an empty field, - // any value will be allowed for that field. - AllowedConfigValues []*ReusableConfigWrapper `json:"allowedConfigValues,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AllowedConfigValues") - // 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. "AllowedConfigValues") 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 *AllowedConfigList) MarshalJSON() ([]byte, error) { - type NoMethod AllowedConfigList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AllowedSubjectAltNames: AllowedSubjectAltNames specifies the allowed -// values for SubjectAltNames by the CertificateAuthority when issuing -// Certificates. -type AllowedSubjectAltNames struct { - // AllowCustomSans: Optional. Specifies if to allow custom X509Extension - // values. - AllowCustomSans bool `json:"allowCustomSans,omitempty"` - - // AllowGlobbingDnsWildcards: Optional. Specifies if glob patterns used - // for allowed_dns_names allow wildcard certificates. If this is set, - // certificate requests with wildcard domains will be permitted to match - // a glob pattern specified in allowed_dns_names. Otherwise, certificate - // requests with wildcard domains will be permitted only if - // allowed_dns_names contains a literal wildcard. - AllowGlobbingDnsWildcards bool `json:"allowGlobbingDnsWildcards,omitempty"` - - // AllowedDnsNames: Optional. Contains valid, fully-qualified host - // names. Glob patterns are also supported. To allow an explicit - // wildcard certificate, escape with backlash (i.e. `\*`). E.g. for - // globbed entries: `*bar.com` will allow `foo.bar.com`, but not - // `*.bar.com`, unless the allow_globbing_dns_wildcards field is set. - // E.g. for wildcard entries: `\*.bar.com` will allow `*.bar.com`, but - // not `foo.bar.com`. - AllowedDnsNames []string `json:"allowedDnsNames,omitempty"` - - // AllowedEmailAddresses: Optional. Contains valid RFC 2822 E-mail - // addresses. Glob patterns are also supported. - AllowedEmailAddresses []string `json:"allowedEmailAddresses,omitempty"` - - // AllowedIps: Optional. Contains valid 32-bit IPv4 addresses and subnet - // ranges or RFC 4291 IPv6 addresses and subnet ranges. Subnet ranges - // are specified using the '/' notation (e.g. 10.0.0.0/8, - // 2001:700:300:1800::/64). Glob patterns are supported only for ip - // address entries (i.e. not for subnet ranges). - AllowedIps []string `json:"allowedIps,omitempty"` - - // AllowedUris: Optional. Contains valid RFC 3986 URIs. Glob patterns - // are also supported. To match across path seperators (i.e. '/') use - // the double star glob pattern (i.e. '**'). - AllowedUris []string `json:"allowedUris,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AllowCustomSans") 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. "AllowCustomSans") 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 *AllowedSubjectAltNames) MarshalJSON() ([]byte, error) { - type NoMethod AllowedSubjectAltNames - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // AuditConfig: Specifies the audit configuration for a service. The // configuration determines which permission types are logged, and what // identities, if any, are exempted from logging. An AuditConfig must @@ -526,7 +332,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -543,9 +351,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. @@ -575,241 +381,60 @@ func (s *Binding) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CaOptions: Describes values that are relevant in a CA certificate. -type CaOptions struct { - // IsCa: Optional. Refers to the "CA" X.509 extension, which is a - // boolean value. When this value is missing, the extension will be - // omitted from the CA certificate. - IsCa bool `json:"isCa,omitempty"` - - // MaxIssuerPathLength: Optional. Refers to the path length restriction - // X.509 extension. For a CA certificate, this value describes the depth - // of subordinate CA certificates that are allowed. If this value is - // less than 0, the request will fail. If this value is missing, the max - // path length will be omitted from the CA certificate. - MaxIssuerPathLength int64 `json:"maxIssuerPathLength,omitempty"` - - // ForceSendFields is a list of field names (e.g. "IsCa") 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. "IsCa") 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 *CaOptions) MarshalJSON() ([]byte, error) { - type NoMethod CaOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // CancelOperationRequest: The request message for // Operations.CancelOperation. type CancelOperationRequest struct { } -// Certificate: A Certificate corresponds to a signed X.509 certificate -// issued by a CertificateAuthority. -type Certificate struct { - // CertificateDescription: Output only. A structured description of the - // issued X.509 certificate. - CertificateDescription *CertificateDescription `json:"certificateDescription,omitempty"` - - // Config: Immutable. A description of the certificate and key that does - // not require X.509 or ASN.1. - Config *CertificateConfig `json:"config,omitempty"` - - // CreateTime: Output only. The time at which this Certificate was - // created. - CreateTime string `json:"createTime,omitempty"` - - // Labels: Optional. Labels with user-defined metadata. - Labels map[string]string `json:"labels,omitempty"` - - // Lifetime: Required. Immutable. The desired lifetime of a certificate. - // Used to create the "not_before_time" and "not_after_time" fields - // inside an X.509 certificate. Note that the lifetime may be truncated - // if it would extend past the life of any certificate authority in the - // issuing chain. - Lifetime string `json:"lifetime,omitempty"` - - // Name: Output only. The resource path for this Certificate in the - // format - // `projects/*/locations/*/certificateAuthorities/*/certificates/*`. - Name string `json:"name,omitempty"` - - // PemCertificate: Output only. The pem-encoded, signed X.509 - // certificate. - PemCertificate string `json:"pemCertificate,omitempty"` - - // PemCertificateChain: Output only. The chain that may be used to - // verify the X.509 certificate. Expected to be in issuer-to-root order - // according to RFC 5246. - PemCertificateChain []string `json:"pemCertificateChain,omitempty"` - - // PemCsr: Immutable. A pem-encoded X.509 certificate signing request - // (CSR). - PemCsr string `json:"pemCsr,omitempty"` - - // RevocationDetails: Output only. Details regarding the revocation of - // this Certificate. This Certificate is considered revoked if and only - // if this field is present. - RevocationDetails *RevocationDetails `json:"revocationDetails,omitempty"` - - // UpdateTime: Output only. The time at which this Certificate was - // updated. - UpdateTime string `json:"updateTime,omitempty"` - +// Empty: A generic empty message that you can re-use to avoid defining +// duplicated empty messages in your APIs. A typical example is to use +// it as the request or the response type of an API method. For +// instance: service Foo { rpc Bar(google.protobuf.Empty) returns +// (google.protobuf.Empty); } +type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "CertificateDescription") 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. "CertificateDescription") - // 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 *Certificate) MarshalJSON() ([]byte, error) { - type NoMethod Certificate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CertificateAuthority: A CertificateAuthority represents an individual -// Certificate Authority. A CertificateAuthority can be used to create -// Certificates. -type CertificateAuthority struct { - // AccessUrls: Output only. URLs for accessing content published by this - // CA, such as the CA certificate and CRLs. - AccessUrls *AccessUrls `json:"accessUrls,omitempty"` - - // CaCertificateDescriptions: Output only. A structured description of - // this CertificateAuthority's CA certificate and its issuers. Ordered - // as self-to-root. - CaCertificateDescriptions []*CertificateDescription `json:"caCertificateDescriptions,omitempty"` - - // CertificatePolicy: Optional. The CertificateAuthorityPolicy to - // enforce when issuing Certificates from this CertificateAuthority. - CertificatePolicy *CertificateAuthorityPolicy `json:"certificatePolicy,omitempty"` - - // Config: Required. Immutable. The config used to create a self-signed - // X.509 certificate or CSR. - Config *CertificateConfig `json:"config,omitempty"` - - // CreateTime: Output only. The time at which this CertificateAuthority - // was created. - CreateTime string `json:"createTime,omitempty"` - - // DeleteTime: Output only. The time at which this CertificateAuthority - // will be deleted, if scheduled for deletion. - DeleteTime string `json:"deleteTime,omitempty"` - - // GcsBucket: Immutable. The name of a Cloud Storage bucket where this - // CertificateAuthority will publish content, such as the CA certificate - // and CRLs. This must be a bucket name, without any prefixes (such as - // `gs://`) or suffixes (such as `.googleapis.com`). For example, to use - // a bucket named `my-bucket`, you would simply specify `my-bucket`. If - // not specified, a managed bucket will be created. - GcsBucket string `json:"gcsBucket,omitempty"` - - // IssuingOptions: Optional. The IssuingOptions to follow when issuing - // Certificates from this CertificateAuthority. - IssuingOptions *IssuingOptions `json:"issuingOptions,omitempty"` - - // KeySpec: Required. Immutable. Used when issuing certificates for this - // CertificateAuthority. If this CertificateAuthority is a self-signed - // CertificateAuthority, this key is also used to sign the self-signed - // CA certificate. Otherwise, it is used to sign a CSR. - KeySpec *KeyVersionSpec `json:"keySpec,omitempty"` - - // Labels: Optional. Labels with user-defined metadata. - Labels map[string]string `json:"labels,omitempty"` - - // Lifetime: Required. The desired lifetime of the CA certificate. Used - // to create the "not_before_time" and "not_after_time" fields inside an - // X.509 certificate. - Lifetime string `json:"lifetime,omitempty"` - - // Name: Output only. The resource name for this CertificateAuthority in - // the format `projects/*/locations/*/certificateAuthorities/*`. - Name string `json:"name,omitempty"` - - // PemCaCertificates: Output only. This CertificateAuthority's - // certificate chain, including the current CertificateAuthority's - // certificate. Ordered such that the root issuer is the final element - // (consistent with RFC 5246). For a self-signed CA, this will only list - // the current CertificateAuthority's certificate. - PemCaCertificates []string `json:"pemCaCertificates,omitempty"` - - // State: Output only. The State for this CertificateAuthority. - // - // Possible values: - // "STATE_UNSPECIFIED" - Not specified. - // "ENABLED" - Certificates can be issued from this CA. CRLs will be - // generated for this CA. - // "DISABLED" - Certificates cannot be issued from this CA. CRLs will - // still be generated. - // "PENDING_ACTIVATION" - Certificates cannot be issued from this CA. - // CRLs will not be generated. - // "PENDING_DELETION" - Certificates cannot be issued from this CA. - // CRLs will not be generated. - State string `json:"state,omitempty"` - - // SubordinateConfig: Optional. If this is a subordinate - // CertificateAuthority, this field will be set with the subordinate - // configuration, which describes its issuers. This may be updated, but - // this CertificateAuthority must continue to validate. - SubordinateConfig *SubordinateConfig `json:"subordinateConfig,omitempty"` - - // Tier: Required. Immutable. The Tier of this CertificateAuthority. - // - // Possible values: - // "TIER_UNSPECIFIED" - Not specified. - // "ENTERPRISE" - Enterprise tier. - // "DEVOPS" - DevOps tier. - Tier string `json:"tier,omitempty"` +// Expr: Represents a textual expression in the Common Expression +// Language (CEL) syntax. CEL is a C-like expression language. The +// syntax and semantics of CEL are documented at +// https://github.com/google/cel-spec. Example (Comparison): title: +// "Summary size limit" description: "Determines if a summary is less +// than 100 chars" expression: "document.summary.size() < 100" Example +// (Equality): title: "Requestor is owner" description: "Determines if +// requestor is the document owner" expression: "document.owner == +// request.auth.claims.email" Example (Logic): title: "Public documents" +// description: "Determine whether the document should be publicly +// visible" expression: "document.type != 'private' && document.type != +// 'internal'" Example (Data Manipulation): title: "Notification string" +// description: "Create a notification string with a timestamp." +// expression: "'New message received at ' + +// string(document.create_time)" The exact variables and functions that +// may be referenced within an expression are determined by the service +// that evaluates it. See the service documentation for additional +// information. +type Expr struct { + // Description: Optional. Description of the expression. This is a + // longer text which describes the expression, e.g. when hovered over it + // in a UI. + Description string `json:"description,omitempty"` - // Type: Required. Immutable. The Type of this CertificateAuthority. - // - // Possible values: - // "TYPE_UNSPECIFIED" - Not specified. - // "SELF_SIGNED" - Self-signed CA. - // "SUBORDINATE" - Subordinate CA. Could be issued by a Private CA - // CertificateAuthority or an unmanaged CA. - Type string `json:"type,omitempty"` + // Expression: Textual representation of an expression in Common + // Expression Language syntax. + Expression string `json:"expression,omitempty"` - // UpdateTime: Output only. The time at which this CertificateAuthority - // was updated. - UpdateTime string `json:"updateTime,omitempty"` + // Location: Optional. String indicating the location of the expression + // for error reporting, e.g. a file name and a position in the file. + Location string `json:"location,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // Title: Optional. Title for the expression, i.e. a short string + // describing its purpose. This can be used e.g. in UIs which allow to + // enter the expression. + Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccessUrls") to + // ForceSendFields is a list of field names (e.g. "Description") 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 @@ -817,105 +442,36 @@ type CertificateAuthority struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AccessUrls") 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 + // NullFields is a list of field names (e.g. "Description") 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 *CertificateAuthority) MarshalJSON() ([]byte, error) { - type NoMethod CertificateAuthority - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CertificateAuthorityPolicy: The issuing policy for a -// CertificateAuthority. Certificates will not be successfully issued -// from this CertificateAuthority if they violate the policy. -type CertificateAuthorityPolicy struct { - // AllowedCommonNames: Optional. If any value is specified here, then - // all Certificates issued by the CertificateAuthority must match at - // least one listed value. If no value is specified, all values will be - // allowed for this fied. Glob patterns are also supported. - AllowedCommonNames []string `json:"allowedCommonNames,omitempty"` - - // AllowedConfigList: Optional. All Certificates issued by the - // CertificateAuthority must match at least one listed - // ReusableConfigWrapper in the list. - AllowedConfigList *AllowedConfigList `json:"allowedConfigList,omitempty"` - - // AllowedIssuanceModes: Optional. If specified, then only methods - // allowed in the IssuanceModes may be used to issue Certificates. - AllowedIssuanceModes *IssuanceModes `json:"allowedIssuanceModes,omitempty"` - - // AllowedLocationsAndOrganizations: Optional. If any Subject is - // specified here, then all Certificates issued by the - // CertificateAuthority must match at least one listed Subject. If a - // Subject has an empty field, any value will be allowed for that field. - AllowedLocationsAndOrganizations []*Subject `json:"allowedLocationsAndOrganizations,omitempty"` - - // AllowedSans: Optional. If a AllowedSubjectAltNames is specified here, - // then all Certificates issued by the CertificateAuthority must match - // AllowedSubjectAltNames. If no value or an empty value is specified, - // any value will be allowed for the SubjectAltNames field. - AllowedSans *AllowedSubjectAltNames `json:"allowedSans,omitempty"` - - // MaximumLifetime: Optional. The maximum lifetime allowed by the - // CertificateAuthority. Note that if the any part if the issuing chain - // expires before a Certificate's requested maximum_lifetime, the - // effective lifetime will be explicitly truncated. - MaximumLifetime string `json:"maximumLifetime,omitempty"` - - // OverwriteConfigValues: Optional. All Certificates issued by the - // CertificateAuthority will use the provided configuration values, - // overwriting any requested configuration values. - OverwriteConfigValues *ReusableConfigWrapper `json:"overwriteConfigValues,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AllowedCommonNames") - // 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. "AllowedCommonNames") 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 *CertificateAuthorityPolicy) MarshalJSON() ([]byte, error) { - type NoMethod CertificateAuthorityPolicy +func (s *Expr) MarshalJSON() ([]byte, error) { + type NoMethod Expr raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CertificateConfig: A CertificateConfig describes an X.509 certificate -// or CSR that is to be created, as an alternative to using ASN.1. -type CertificateConfig struct { - // PublicKey: Optional. The public key that corresponds to this config. - // This is, for example, used when issuing Certificates, but not when - // creating a self-signed CertificateAuthority or CertificateAuthority - // CSR. - PublicKey *PublicKey `json:"publicKey,omitempty"` +// ListLocationsResponse: The response message for +// Locations.ListLocations. +type ListLocationsResponse struct { + // Locations: A list of locations that matches the specified filter in + // the request. + Locations []*Location `json:"locations,omitempty"` - // ReusableConfig: Required. Describes how some of the technical fields - // in a certificate should be populated. - ReusableConfig *ReusableConfigWrapper `json:"reusableConfig,omitempty"` + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` - // SubjectConfig: Required. Specifies some of the values in a - // certificate that are related to the subject. - SubjectConfig *SubjectConfig `json:"subjectConfig,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "PublicKey") to + // ForceSendFields is a list of field names (e.g. "Locations") 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 @@ -923,7 +479,7 @@ type CertificateConfig struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PublicKey") to include in + // NullFields is a list of field names (e.g. "Locations") 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 @@ -932,82 +488,27 @@ type CertificateConfig struct { NullFields []string `json:"-"` } -func (s *CertificateConfig) MarshalJSON() ([]byte, error) { - type NoMethod CertificateConfig +func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListLocationsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CertificateDescription: A CertificateDescription describes an X.509 -// certificate or CSR that has been issued, as an alternative to using -// ASN.1 / X.509. -type CertificateDescription struct { - // AiaIssuingCertificateUrls: Describes lists of issuer CA certificate - // URLs that appear in the "Authority Information Access" extension in - // the certificate. - AiaIssuingCertificateUrls []string `json:"aiaIssuingCertificateUrls,omitempty"` - - // AuthorityKeyId: Identifies the subject_key_id of the parent - // certificate, per https://tools.ietf.org/html/rfc5280#section-4.2.1.1 - AuthorityKeyId *KeyId `json:"authorityKeyId,omitempty"` - - // CertFingerprint: The hash of the x.509 certificate. - CertFingerprint *CertificateFingerprint `json:"certFingerprint,omitempty"` - - // ConfigValues: Describes some of the technical fields in a - // certificate. - ConfigValues *ReusableConfigValues `json:"configValues,omitempty"` - - // CrlDistributionPoints: Describes a list of locations to obtain CRL - // information, i.e. the DistributionPoint.fullName described by - // https://tools.ietf.org/html/rfc5280#section-4.2.1.13 - CrlDistributionPoints []string `json:"crlDistributionPoints,omitempty"` - - // PublicKey: The public key that corresponds to an issued certificate. - PublicKey *PublicKey `json:"publicKey,omitempty"` - - // SubjectDescription: Describes some of the values in a certificate - // that are related to the subject and lifetime. - SubjectDescription *SubjectDescription `json:"subjectDescription,omitempty"` - - // SubjectKeyId: Provides a means of identifiying certificates that - // contain a particular public key, per - // https://tools.ietf.org/html/rfc5280#section-4.2.1.2. - SubjectKeyId *KeyId `json:"subjectKeyId,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AiaIssuingCertificateUrls") 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. - // "AiaIssuingCertificateUrls") 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:"-"` -} +// ListOperationsResponse: The response message for +// Operations.ListOperations. +type ListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` -func (s *CertificateDescription) MarshalJSON() ([]byte, error) { - type NoMethod CertificateDescription - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // Operations: A list of operations that matches the specified filter in + // the request. + Operations []*Operation `json:"operations,omitempty"` -// CertificateFingerprint: A group of fingerprints for the x509 -// certificate. -type CertificateFingerprint struct { - // Sha256Hash: The SHA 256 hash, encoded in hexadecimal, of the DER x509 - // certificate. - Sha256Hash string `json:"sha256Hash,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Sha256Hash") to + // ForceSendFields is a list of field names (e.g. "NextPageToken") 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 @@ -1015,69 +516,49 @@ type CertificateFingerprint struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Sha256Hash") 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 + // NullFields is a list of field names (e.g. "NextPageToken") 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 *CertificateFingerprint) MarshalJSON() ([]byte, error) { - type NoMethod CertificateFingerprint +func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListOperationsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CertificateRevocationList: A CertificateRevocationList corresponds to -// a signed X.509 certificate Revocation List (CRL). A CRL contains the -// serial numbers of certificates that should no longer be trusted. -type CertificateRevocationList struct { - // AccessUrl: Output only. The location where 'pem_crl' can be accessed. - AccessUrl string `json:"accessUrl,omitempty"` - - // CreateTime: Output only. The time at which this - // CertificateRevocationList was created. - CreateTime string `json:"createTime,omitempty"` +// Location: A resource that represents Google Cloud Platform location. +type Location struct { + // DisplayName: The friendly name for this location, typically a nearby + // city name. For example, "Tokyo". + DisplayName string `json:"displayName,omitempty"` - // Labels: Optional. Labels with user-defined metadata. + // Labels: Cross-service attributes for the location. For example + // {"cloud.googleapis.com/region": "us-east1"} Labels map[string]string `json:"labels,omitempty"` - // Name: Output only. The resource path for this - // CertificateRevocationList in the format - // `projects/*/locations/*/certificateAuthorities/*/ - // certificateRevocationLists/*`. - Name string `json:"name,omitempty"` - - // PemCrl: Output only. The PEM-encoded X.509 CRL. - PemCrl string `json:"pemCrl,omitempty"` - - // RevokedCertificates: Output only. The revoked serial numbers that - // appear in pem_crl. - RevokedCertificates []*RevokedCertificate `json:"revokedCertificates,omitempty"` - - // SequenceNumber: Output only. The CRL sequence number that appears in - // pem_crl. - SequenceNumber int64 `json:"sequenceNumber,omitempty,string"` + // LocationId: The canonical id for this location. For example: + // "us-east1". + LocationId string `json:"locationId,omitempty"` - // State: Output only. The State for this CertificateRevocationList. - // - // Possible values: - // "STATE_UNSPECIFIED" - Not specified. - // "ACTIVE" - The CertificateRevocationList is up to date. - // "SUPERSEDED" - The CertificateRevocationList is no longer current. - State string `json:"state,omitempty"` + // Metadata: Service-specific metadata. For example the available + // capacity at the given location. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // UpdateTime: Output only. The time at which this - // CertificateRevocationList was updated. - UpdateTime string `json:"updateTime,omitempty"` + // Name: Resource name for the location, which may vary between + // implementations. For example: + // "projects/example-project/locations/us-east1" + Name string `json:"name,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccessUrl") to + // 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 @@ -1085,90 +566,61 @@ type CertificateRevocationList struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AccessUrl") 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 + // 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 []string `json:"-"` } -func (s *CertificateRevocationList) MarshalJSON() ([]byte, error) { - type NoMethod CertificateRevocationList +func (s *Location) MarshalJSON() ([]byte, error) { + type NoMethod Location raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// DisableCertificateAuthorityRequest: Request message for -// CertificateAuthorityService.DisableCertificateAuthority. -type DisableCertificateAuthorityRequest struct { - // RequestId: Optional. An 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. The - // server will guarantee that for at least 60 minutes since the first - // request. For example, consider a situation where you make an initial - // request and t he 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). - RequestId string `json:"requestId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "RequestId") 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:"-"` +// Operation: This resource represents a long-running operation that is +// the result of a network API call. +type Operation struct { + // Done: If the value is `false`, it means the operation is still in + // progress. If `true`, the operation is completed, and either `error` + // or `response` is available. + Done bool `json:"done,omitempty"` - // NullFields is a list of field names (e.g. "RequestId") 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:"-"` -} + // Error: The error result of the operation in case of failure or + // cancellation. + Error *Status `json:"error,omitempty"` -func (s *DisableCertificateAuthorityRequest) MarshalJSON() ([]byte, error) { - type NoMethod DisableCertificateAuthorityRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as + // create time. Some services might not provide such metadata. Any + // method that returns a long-running operation should document the + // metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: The server-assigned name, which is only unique within the same + // service that originally returns it. If you use the default HTTP + // mapping, the `name` should be a resource name ending with + // `operations/{unique_id}`. + Name string `json:"name,omitempty"` + + // Response: The normal response of the operation in case of success. If + // the original method returns no data on success, such as `Delete`, the + // response is `google.protobuf.Empty`. If the original method is + // standard `Get`/`Create`/`Update`, the response should be the + // resource. For other methods, the response should have the type + // `XxxResponse`, where `Xxx` is the original method name. For example, + // if the original method name is `TakeSnapshot()`, the inferred + // response type is `TakeSnapshotResponse`. + Response googleapi.RawMessage `json:"response,omitempty"` -// Empty: A generic empty message that you can re-use to avoid defining -// duplicated empty messages in your APIs. A typical example is to use -// it as the request or the response type of an API method. For -// instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } -type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` -} -// EnableCertificateAuthorityRequest: Request message for -// CertificateAuthorityService.EnableCertificateAuthority. -type EnableCertificateAuthorityRequest struct { - // RequestId: Optional. An 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. The - // server will guarantee that for at least 60 minutes since the first - // request. For example, consider a situation where you make an initial - // request and t he 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). - RequestId string `json:"requestId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "RequestId") to + // ForceSendFields is a list of field names (e.g. "Done") 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 @@ -1176,8 +628,8 @@ type EnableCertificateAuthorityRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RequestId") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Done") 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. @@ -1185,50 +637,100 @@ type EnableCertificateAuthorityRequest struct { NullFields []string `json:"-"` } -func (s *EnableCertificateAuthorityRequest) MarshalJSON() ([]byte, error) { - type NoMethod EnableCertificateAuthorityRequest +func (s *Operation) MarshalJSON() ([]byte, error) { + type NoMethod Operation raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Expr: Represents a textual expression in the Common Expression -// Language (CEL) syntax. CEL is a C-like expression language. The -// syntax and semantics of CEL are documented at -// https://github.com/google/cel-spec. Example (Comparison): title: -// "Summary size limit" description: "Determines if a summary is less -// than 100 chars" expression: "document.summary.size() < 100" Example -// (Equality): title: "Requestor is owner" description: "Determines if -// requestor is the document owner" expression: "document.owner == -// request.auth.claims.email" Example (Logic): title: "Public documents" -// description: "Determine whether the document should be publicly -// visible" expression: "document.type != 'private' && document.type != -// 'internal'" Example (Data Manipulation): title: "Notification string" -// description: "Create a notification string with a timestamp." -// expression: "'New message received at ' + -// string(document.create_time)" The exact variables and functions that -// may be referenced within an expression are determined by the service -// that evaluates it. See the service documentation for additional -// information. -type Expr struct { - // Description: Optional. Description of the expression. This is a - // longer text which describes the expression, e.g. when hovered over it - // in a UI. - Description string `json:"description,omitempty"` +// Policy: An Identity and Access Management (IAM) policy, which +// specifies access controls for Google Cloud resources. A `Policy` is a +// collection of `bindings`. A `binding` binds one or more `members`, or +// principals, to a single `role`. Principals can be user accounts, +// service accounts, Google groups, and domains (such as G Suite). A +// `role` is a named list of permissions; each `role` can be an IAM +// predefined role or a user-created custom role. For some types of +// Google Cloud resources, a `binding` can also specify a `condition`, +// which is a logical expression that allows access to a resource only +// if the expression evaluates to `true`. A condition can add +// constraints based on attributes of the request, the resource, or +// both. To learn which resources support conditions in their IAM +// policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +// **JSON example:** { "bindings": [ { "role": +// "roles/resourcemanager.organizationAdmin", "members": [ +// "user:mike@example.com", "group:admins@example.com", +// "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { +// "role": "roles/resourcemanager.organizationViewer", "members": [ +// "user:eve@example.com" ], "condition": { "title": "expirable access", +// "description": "Does not grant access after Sep 2020", "expression": +// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], +// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - +// members: - user:mike@example.com - group:admins@example.com - +// domain:google.com - +// serviceAccount:my-project-id@appspot.gserviceaccount.com role: +// roles/resourcemanager.organizationAdmin - members: - +// user:eve@example.com role: roles/resourcemanager.organizationViewer +// condition: title: expirable access description: Does not grant access +// after Sep 2020 expression: request.time < +// timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 +// For a description of IAM and its features, see the IAM documentation +// (https://cloud.google.com/iam/docs/). +type Policy struct { + // AuditConfigs: Specifies cloud audit logging configuration for this + // policy. + AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"` - // Expression: Textual representation of an expression in Common - // Expression Language syntax. - Expression string `json:"expression,omitempty"` + // Bindings: Associates a list of `members`, or principals, with a + // `role`. Optionally, may specify a `condition` that determines how and + // when the `bindings` are applied. Each of the `bindings` must contain + // at least one principal. The `bindings` in a `Policy` can refer to up + // to 1,500 principals; up to 250 of these principals can be Google + // groups. Each occurrence of a principal counts towards these limits. + // For example, if the `bindings` grant 50 different roles to + // `user:alice@example.com`, and not to any other principal, then you + // can add another 1,450 principals to the `bindings` in the `Policy`. + Bindings []*Binding `json:"bindings,omitempty"` - // Location: Optional. String indicating the location of the expression - // for error reporting, e.g. a file name and a position in the file. - Location string `json:"location,omitempty"` + // Etag: `etag` is used for optimistic concurrency control as a way to + // help prevent simultaneous updates of a policy from overwriting each + // other. It is strongly suggested that systems make use of the `etag` + // in the read-modify-write cycle to perform policy updates in order to + // avoid race conditions: An `etag` is returned in the response to + // `getIamPolicy`, and systems are expected to put that etag in the + // request to `setIamPolicy` to ensure that their change will be applied + // to the same version of the policy. **Important:** If you use IAM + // Conditions, you must include the `etag` field whenever you call + // `setIamPolicy`. If you omit this field, then IAM allows you to + // overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. + Etag string `json:"etag,omitempty"` - // Title: Optional. Title for the expression, i.e. a short string - // describing its purpose. This can be used e.g. in UIs which allow to - // enter the expression. - Title string `json:"title,omitempty"` + // Version: Specifies the format of the policy. Valid values are `0`, + // `1`, and `3`. Requests that specify an invalid value are rejected. + // Any operation that affects conditional role bindings must specify + // version `3`. This requirement applies to the following operations: * + // Getting a policy that includes a conditional role binding * Adding a + // conditional role binding to a policy * Changing a conditional role + // binding in a policy * Removing any role binding, with or without a + // condition, from a policy that includes conditions **Important:** If + // you use IAM Conditions, you must include the `etag` field whenever + // you call `setIamPolicy`. If you omit this field, then IAM allows you + // to overwrite a version `3` policy with a version `1` policy, and all + // of the conditions in the version `3` policy are lost. If a policy + // does not include any conditions, operations on that policy may + // specify any valid version or leave the field unset. To learn which + // resources support conditions in their IAM policies, see the IAM + // documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). + Version int64 `json:"version,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AuditConfigs") 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 @@ -1236,7 +738,7 @@ type Expr struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Description") to include + // NullFields is a list of field names (e.g. "AuditConfigs") 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 @@ -1245,44 +747,34 @@ type Expr struct { NullFields []string `json:"-"` } -func (s *Expr) MarshalJSON() ([]byte, error) { - type NoMethod Expr +func (s *Policy) MarshalJSON() ([]byte, error) { + type NoMethod Policy raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ExtendedKeyUsageOptions: KeyUsage.ExtendedKeyUsageOptions has fields -// that correspond to certain common OIDs that could be specified as an -// extended key usage value. -type ExtendedKeyUsageOptions struct { - // ClientAuth: Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially - // described as "TLS WWW client authentication", though regularly used - // for non-WWW TLS. - ClientAuth bool `json:"clientAuth,omitempty"` - - // CodeSigning: Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially - // described as "Signing of downloadable executable code client - // authentication". - CodeSigning bool `json:"codeSigning,omitempty"` - - // EmailProtection: Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially - // described as "Email protection". - EmailProtection bool `json:"emailProtection,omitempty"` - - // OcspSigning: Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially - // described as "Signing OCSP responses". - OcspSigning bool `json:"ocspSigning,omitempty"` - - // ServerAuth: Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially - // described as "TLS WWW server authentication", though regularly used - // for non-WWW TLS. - ServerAuth bool `json:"serverAuth,omitempty"` +// ReconciliationOperationMetadata: Operation metadata returned by the +// CLH during resource state reconciliation. +type ReconciliationOperationMetadata struct { + // DeleteResource: DEPRECATED. Use exclusive_action instead. + DeleteResource bool `json:"deleteResource,omitempty"` - // TimeStamping: Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially - // described as "Binding the hash of an object to a time". - TimeStamping bool `json:"timeStamping,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. For more information + // - go/ccfe-delete-on-upsert, + // go/ccfe-reconciliation-protocol-ug#apply_delete + // "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. "ClientAuth") to + // 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 @@ -1290,137 +782,37 @@ type ExtendedKeyUsageOptions struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClientAuth") 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. "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 *ExtendedKeyUsageOptions) MarshalJSON() ([]byte, error) { - type NoMethod ExtendedKeyUsageOptions +func (s *ReconciliationOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod ReconciliationOperationMetadata raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// FetchCertificateAuthorityCsrResponse: Response message for -// CertificateAuthorityService.FetchCertificateAuthorityCsr. -type FetchCertificateAuthorityCsrResponse struct { - // PemCsr: Output only. The PEM-encoded signed certificate signing - // request (CSR). - PemCsr string `json:"pemCsr,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "PemCsr") 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. "PemCsr") 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 *FetchCertificateAuthorityCsrResponse) MarshalJSON() ([]byte, error) { - type NoMethod FetchCertificateAuthorityCsrResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// IssuanceModes: IssuanceModes specifies the allowed ways in which -// Certificates may be requested from this CertificateAuthority. -type IssuanceModes struct { - // AllowConfigBasedIssuance: Required. When true, allows callers to - // create Certificates by specifying a CertificateConfig. - AllowConfigBasedIssuance bool `json:"allowConfigBasedIssuance,omitempty"` - - // AllowCsrBasedIssuance: Required. When true, allows callers to create - // Certificates by specifying a CSR. - AllowCsrBasedIssuance bool `json:"allowCsrBasedIssuance,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AllowConfigBasedIssuance") 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. "AllowConfigBasedIssuance") - // 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 *IssuanceModes) MarshalJSON() ([]byte, error) { - type NoMethod IssuanceModes - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// IssuingOptions: Options that affect all certificates issued by a -// CertificateAuthority. -type IssuingOptions struct { - // IncludeCaCertUrl: Required. When true, includes a URL to the issuing - // CA certificate in the "authority information access" X.509 extension. - IncludeCaCertUrl bool `json:"includeCaCertUrl,omitempty"` - - // IncludeCrlAccessUrl: Required. When true, includes a URL to the CRL - // corresponding to certificates issued from a CertificateAuthority. - // CRLs will expire 7 days from their creation. However, we will rebuild - // daily. CRLs are also rebuilt shortly after a certificate is revoked. - IncludeCrlAccessUrl bool `json:"includeCrlAccessUrl,omitempty"` - - // ForceSendFields is a list of field names (e.g. "IncludeCaCertUrl") 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. "IncludeCaCertUrl") 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 *IssuingOptions) MarshalJSON() ([]byte, error) { - type NoMethod IssuingOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} +// SetIamPolicyRequest: Request message for `SetIamPolicy` method. +type SetIamPolicyRequest struct { + // Policy: REQUIRED: The complete policy to be applied to the + // `resource`. The size of the policy is limited to a few 10s of KB. An + // empty policy is a valid policy but certain Google Cloud services + // (such as Projects) might reject them. + Policy *Policy `json:"policy,omitempty"` -// KeyId: A KeyId identifies a specific public key, usually by hashing -// the public key. -type KeyId struct { - // KeyId: Optional. The value of this KeyId encoded in lowercase - // hexadecimal. This is most likely the 160 bit SHA-1 hash of the public - // key. - KeyId string `json:"keyId,omitempty"` + // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the + // policy to modify. Only the fields in the mask will be modified. If no + // mask is provided, the following default mask is used: `paths: + // "bindings, etag" + UpdateMask string `json:"updateMask,omitempty"` - // ForceSendFields is a list of field names (e.g. "KeyId") to + // ForceSendFields is a list of field names (e.g. "Policy") 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 @@ -1428,7 +820,7 @@ type KeyId struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "KeyId") to include in API + // NullFields is a list of field names (e.g. "Policy") 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 @@ -1437,305 +829,34 @@ type KeyId struct { NullFields []string `json:"-"` } -func (s *KeyId) MarshalJSON() ([]byte, error) { - type NoMethod KeyId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// KeyUsage: A KeyUsage describes key usage values that may appear in an -// X.509 certificate. -type KeyUsage struct { - // BaseKeyUsage: Describes high-level ways in which a key may be used. - BaseKeyUsage *KeyUsageOptions `json:"baseKeyUsage,omitempty"` - - // ExtendedKeyUsage: Detailed scenarios in which a key may be used. - ExtendedKeyUsage *ExtendedKeyUsageOptions `json:"extendedKeyUsage,omitempty"` - - // UnknownExtendedKeyUsages: Used to describe extended key usages that - // are not listed in the KeyUsage.ExtendedKeyUsageOptions message. - UnknownExtendedKeyUsages []*ObjectId `json:"unknownExtendedKeyUsages,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BaseKeyUsage") 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. "BaseKeyUsage") 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 *KeyUsage) MarshalJSON() ([]byte, error) { - type NoMethod KeyUsage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// KeyUsageOptions: KeyUsage.KeyUsageOptions corresponds to the key -// usage values described in -// https://tools.ietf.org/html/rfc5280#section-4.2.1.3. -type KeyUsageOptions struct { - // CertSign: The key may be used to sign certificates. - CertSign bool `json:"certSign,omitempty"` - - // ContentCommitment: The key may be used for cryptographic commitments. - // Note that this may also be referred to as "non-repudiation". - ContentCommitment bool `json:"contentCommitment,omitempty"` - - // CrlSign: The key may be used sign certificate revocation lists. - CrlSign bool `json:"crlSign,omitempty"` - - // DataEncipherment: The key may be used to encipher data. - DataEncipherment bool `json:"dataEncipherment,omitempty"` - - // DecipherOnly: The key may be used to decipher only. - DecipherOnly bool `json:"decipherOnly,omitempty"` - - // DigitalSignature: The key may be used for digital signatures. - DigitalSignature bool `json:"digitalSignature,omitempty"` - - // EncipherOnly: The key may be used to encipher only. - EncipherOnly bool `json:"encipherOnly,omitempty"` - - // KeyAgreement: The key may be used in a key agreement protocol. - KeyAgreement bool `json:"keyAgreement,omitempty"` - - // KeyEncipherment: The key may be used to encipher other keys. - KeyEncipherment bool `json:"keyEncipherment,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CertSign") 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. "CertSign") 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 *KeyUsageOptions) MarshalJSON() ([]byte, error) { - type NoMethod KeyUsageOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// KeyVersionSpec: A Cloud KMS key configuration that a -// CertificateAuthority will use. -type KeyVersionSpec struct { - // Algorithm: Required. The algorithm to use for creating a managed - // Cloud KMS key for a for a simplified experience. All managed keys - // will be have their ProtectionLevel as `HSM`. - // - // Possible values: - // "SIGN_HASH_ALGORITHM_UNSPECIFIED" - Not specified. - // "RSA_PSS_2048_SHA256" - maps to - // CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_2048_SHA256 - // "RSA_PSS_3072_SHA256" - maps to CryptoKeyVersionAlgorithm. - // RSA_SIGN_PSS_3072_SHA256 - // "RSA_PSS_4096_SHA256" - maps to - // CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_4096_SHA256 - // "RSA_PKCS1_2048_SHA256" - maps to - // CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_2048_SHA256 - // "RSA_PKCS1_3072_SHA256" - maps to - // CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_3072_SHA256 - // "RSA_PKCS1_4096_SHA256" - maps to - // CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_4096_SHA256 - // "EC_P256_SHA256" - maps to - // CryptoKeyVersionAlgorithm.EC_SIGN_P256_SHA256 - // "EC_P384_SHA384" - maps to - // CryptoKeyVersionAlgorithm.EC_SIGN_P384_SHA384 - Algorithm string `json:"algorithm,omitempty"` - - // CloudKmsKeyVersion: Required. The resource name for an existing Cloud - // KMS CryptoKeyVersion in the format - // `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`. - // This option enables full flexibility in the key's capabilities and - // properties. - CloudKmsKeyVersion string `json:"cloudKmsKeyVersion,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Algorithm") 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. "Algorithm") 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 *KeyVersionSpec) MarshalJSON() ([]byte, error) { - type NoMethod KeyVersionSpec - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ListCertificateAuthoritiesResponse: Response message for -// CertificateAuthorityService.ListCertificateAuthorities. -type ListCertificateAuthoritiesResponse struct { - // CertificateAuthorities: The list of CertificateAuthorities. - CertificateAuthorities []*CertificateAuthority `json:"certificateAuthorities,omitempty"` - - // NextPageToken: A token to retrieve next page of results. Pass this - // value in ListCertificateAuthoritiesRequest.next_page_token to - // retrieve the next page of results. - NextPageToken string `json:"nextPageToken,omitempty"` - - // Unreachable: A list of locations (e.g. "us-west1") that could not be - // reached. - Unreachable []string `json:"unreachable,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "CertificateAuthorities") 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. "CertificateAuthorities") - // 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 *ListCertificateAuthoritiesResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListCertificateAuthoritiesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ListCertificateRevocationListsResponse: Response message for -// CertificateAuthorityService.ListCertificateRevocationLists. -type ListCertificateRevocationListsResponse struct { - // CertificateRevocationLists: The list of CertificateRevocationLists. - CertificateRevocationLists []*CertificateRevocationList `json:"certificateRevocationLists,omitempty"` - - // NextPageToken: A token to retrieve next page of results. Pass this - // value in ListCertificateRevocationListsRequest.next_page_token to - // retrieve the next page of results. - NextPageToken string `json:"nextPageToken,omitempty"` - - // Unreachable: A list of locations (e.g. "us-west1") that could not be - // reached. - Unreachable []string `json:"unreachable,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "CertificateRevocationLists") 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. - // "CertificateRevocationLists") 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 *ListCertificateRevocationListsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListCertificateRevocationListsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ListCertificatesResponse: Response message for -// CertificateAuthorityService.ListCertificates. -type ListCertificatesResponse struct { - // Certificates: The list of Certificates. - Certificates []*Certificate `json:"certificates,omitempty"` - - // NextPageToken: A token to retrieve next page of results. Pass this - // value in ListCertificatesRequest.next_page_token to retrieve the next - // page of results. - NextPageToken string `json:"nextPageToken,omitempty"` - - // Unreachable: A list of locations (e.g. "us-west1") that could not be - // reached. - Unreachable []string `json:"unreachable,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Certificates") 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. "Certificates") 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 *ListCertificatesResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListCertificatesResponse +func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { + type NoMethod SetIamPolicyRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ListLocationsResponse: The response message for -// Locations.ListLocations. -type ListLocationsResponse struct { - // Locations: A list of locations that matches the specified filter in - // the request. - Locations []*Location `json:"locations,omitempty"` +// Status: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs +// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each +// `Status` message contains three pieces of data: error code, error +// message, and error details. You can find out more about this error +// model and how to work with it in the API Design Guide +// (https://cloud.google.com/apis/design/errors). +type Status struct { + // Code: The status code, which should be an enum value of + // google.rpc.Code. + Code int64 `json:"code,omitempty"` - // NextPageToken: The standard List next-page token. - NextPageToken string `json:"nextPageToken,omitempty"` + // Details: A list of messages that carry the error details. There is a + // common set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` - // ForceSendFields is a list of field names (e.g. "Locations") to + // 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 @@ -1743,8 +864,8 @@ type ListLocationsResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Locations") to include in - // API requests with the JSON null value. By default, fields with empty + // 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. @@ -1752,4382 +873,149 @@ type ListLocationsResponse struct { NullFields []string `json:"-"` } -func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListLocationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ListOperationsResponse: The response message for -// Operations.ListOperations. -type ListOperationsResponse struct { - // NextPageToken: The standard List next-page token. - NextPageToken string `json:"nextPageToken,omitempty"` - - // Operations: A list of operations that matches the specified filter in - // the request. - Operations []*Operation `json:"operations,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 *ListOperationsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListOperationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ListReusableConfigsResponse: Response message for -// CertificateAuthorityService.ListReusableConfigs. -type ListReusableConfigsResponse struct { - // NextPageToken: A token to retrieve next page of results. Pass this - // value in ListReusableConfigsRequest.next_page_token to retrieve the - // next page of results. - NextPageToken string `json:"nextPageToken,omitempty"` - - // ReusableConfigs: The list of ReusableConfigs. - ReusableConfigs []*ReusableConfig `json:"reusableConfigs,omitempty"` - - // Unreachable: A list of locations (e.g. "us-west1") that could not be - // reached. - Unreachable []string `json:"unreachable,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 *ListReusableConfigsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListReusableConfigsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Location: A resource that represents Google Cloud Platform location. -type Location struct { - // DisplayName: The friendly name for this location, typically a nearby - // city name. For example, "Tokyo". - DisplayName string `json:"displayName,omitempty"` - - // Labels: Cross-service attributes for the location. For example - // {"cloud.googleapis.com/region": "us-east1"} - Labels map[string]string `json:"labels,omitempty"` - - // LocationId: The canonical id for this location. For example: - // "us-east1". - LocationId string `json:"locationId,omitempty"` - - // Metadata: Service-specific metadata. For example the available - // capacity at the given location. - Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: Resource name for the location, which may vary between - // implementations. For example: - // "projects/example-project/locations/us-east1" - Name string `json:"name,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // 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 []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 []string `json:"-"` -} - -func (s *Location) MarshalJSON() ([]byte, error) { - type NoMethod Location - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ObjectId: An ObjectId specifies an object identifier (OID). These -// provide context and describe types in ASN.1 messages. -type ObjectId struct { - // ObjectIdPath: Required. The parts of an OID path. The most - // significant parts of the path come first. - ObjectIdPath []int64 `json:"objectIdPath,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ObjectIdPath") 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. "ObjectIdPath") 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 *ObjectId) MarshalJSON() ([]byte, error) { - type NoMethod ObjectId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Operation: This resource represents a long-running operation that is -// the result of a network API call. -type Operation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. - Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. - Error *Status `json:"error,omitempty"` - - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. - Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. - Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. - Response googleapi.RawMessage `json:"response,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") 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. "Done") 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 *Operation) MarshalJSON() ([]byte, error) { - type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// OperationMetadata: Represents the metadata of the long-running -// operation. -type OperationMetadata struct { - // ApiVersion: Output only. API version used to start the operation. - ApiVersion string `json:"apiVersion,omitempty"` - - // CreateTime: Output only. The time the operation was created. - CreateTime string `json:"createTime,omitempty"` - - // EndTime: Output only. The time the operation finished running. - EndTime string `json:"endTime,omitempty"` - - // RequestedCancellation: Output only. Identifies whether the user has - // requested cancellation of the operation. Operations that have - // successfully been cancelled have Operation.error value with a - // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. - RequestedCancellation bool `json:"requestedCancellation,omitempty"` - - // StatusMessage: Output only. Human-readable status of the operation, - // if any. - StatusMessage string `json:"statusMessage,omitempty"` - - // Target: Output only. Server-defined resource path for the target of - // the operation. - Target string `json:"target,omitempty"` - - // Verb: Output only. Name of the verb executed by the operation. - Verb string `json:"verb,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ApiVersion") 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. "ApiVersion") 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 *OperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod OperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Policy: An Identity and Access Management (IAM) policy, which -// specifies access controls for Google Cloud resources. A `Policy` is a -// collection of `bindings`. A `binding` binds one or more `members`, or -// principals, to a single `role`. Principals can be user accounts, -// service accounts, Google groups, and domains (such as G Suite). A -// `role` is a named list of permissions; each `role` can be an IAM -// predefined role or a user-created custom role. For some types of -// Google Cloud resources, a `binding` can also specify a `condition`, -// which is a logical expression that allows access to a resource only -// if the expression evaluates to `true`. A condition can add -// constraints based on attributes of the request, the resource, or -// both. To learn which resources support conditions in their IAM -// policies, see the IAM documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). -// **JSON example:** { "bindings": [ { "role": -// "roles/resourcemanager.organizationAdmin", "members": [ -// "user:mike@example.com", "group:admins@example.com", -// "domain:google.com", -// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { -// "role": "roles/resourcemanager.organizationViewer", "members": [ -// "user:eve@example.com" ], "condition": { "title": "expirable access", -// "description": "Does not grant access after Sep 2020", "expression": -// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], -// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - -// members: - user:mike@example.com - group:admins@example.com - -// domain:google.com - -// serviceAccount:my-project-id@appspot.gserviceaccount.com role: -// roles/resourcemanager.organizationAdmin - members: - -// user:eve@example.com role: roles/resourcemanager.organizationViewer -// condition: title: expirable access description: Does not grant access -// after Sep 2020 expression: request.time < -// timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 -// For a description of IAM and its features, see the IAM documentation -// (https://cloud.google.com/iam/docs/). -type Policy struct { - // AuditConfigs: Specifies cloud audit logging configuration for this - // policy. - AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"` - - // Bindings: Associates a list of `members`, or principals, with a - // `role`. Optionally, may specify a `condition` that determines how and - // when the `bindings` are applied. Each of the `bindings` must contain - // at least one principal. The `bindings` in a `Policy` can refer to up - // to 1,500 principals; up to 250 of these principals can be Google - // groups. Each occurrence of a principal counts towards these limits. - // For example, if the `bindings` grant 50 different roles to - // `user:alice@example.com`, and not to any other principal, then you - // can add another 1,450 principals to the `bindings` in the `Policy`. - Bindings []*Binding `json:"bindings,omitempty"` - - // Etag: `etag` is used for optimistic concurrency control as a way to - // help prevent simultaneous updates of a policy from overwriting each - // other. It is strongly suggested that systems make use of the `etag` - // in the read-modify-write cycle to perform policy updates in order to - // avoid race conditions: An `etag` is returned in the response to - // `getIamPolicy`, and systems are expected to put that etag in the - // request to `setIamPolicy` to ensure that their change will be applied - // to the same version of the policy. **Important:** If you use IAM - // Conditions, you must include the `etag` field whenever you call - // `setIamPolicy`. If you omit this field, then IAM allows you to - // overwrite a version `3` policy with a version `1` policy, and all of - // the conditions in the version `3` policy are lost. - Etag string `json:"etag,omitempty"` - - // Version: Specifies the format of the policy. Valid values are `0`, - // `1`, and `3`. Requests that specify an invalid value are rejected. - // Any operation that affects conditional role bindings must specify - // version `3`. This requirement applies to the following operations: * - // Getting a policy that includes a conditional role binding * Adding a - // conditional role binding to a policy * Changing a conditional role - // binding in a policy * Removing any role binding, with or without a - // condition, from a policy that includes conditions **Important:** If - // you use IAM Conditions, you must include the `etag` field whenever - // you call `setIamPolicy`. If you omit this field, then IAM allows you - // to overwrite a version `3` policy with a version `1` policy, and all - // of the conditions in the version `3` policy are lost. If a policy - // does not include any conditions, operations on that policy may - // specify any valid version or leave the field unset. To learn which - // resources support conditions in their IAM policies, see the IAM - // documentation - // (https://cloud.google.com/iam/help/conditions/resource-policies). - Version int64 `json:"version,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AuditConfigs") 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. "AuditConfigs") 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 *Policy) MarshalJSON() ([]byte, error) { - type NoMethod Policy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PublicKey: A PublicKey describes a public key. -type PublicKey struct { - // Key: Required. A public key. When this is specified in a request, the - // padding and encoding can be any of the options described by the - // respective 'KeyType' value. When this is generated by the service, it - // will always be an RFC 5280 SubjectPublicKeyInfo - // (https://tools.ietf.org/html/rfc5280#section-4.1) structure - // containing an algorithm identifier and a key. - Key string `json:"key,omitempty"` - - // Type: Optional. The type of public key. If specified, it must match - // the public key used for the`key` field. - // - // Possible values: - // "KEY_TYPE_UNSPECIFIED" - Default unspecified value. - // "PEM_RSA_KEY" - A PEM-encoded PKCS#1/RFC 3447 RSAPublicKey - // structure, or an RFC 5280 - // [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1 - // ) structure containing the former. - // "PEM_EC_KEY" - An RFC 5280 - // [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1 - // ) structure containing a PEM-encoded compressed NIST - // P-256/secp256r1/prime256v1 or P-384 key. - Type string `json:"type,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 *PublicKey) MarshalJSON() ([]byte, error) { - type NoMethod PublicKey - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ReconciliationOperationMetadata: Operation metadata returned by the -// CLH during resource state reconciliation. -type ReconciliationOperationMetadata 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. For more information - // - go/ccfe-delete-on-upsert, - // go/ccfe-reconciliation-protocol-ug#apply_delete - // "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 *ReconciliationOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod ReconciliationOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// RestoreCertificateAuthorityRequest: Request message for -// CertificateAuthorityService.RestoreCertificateAuthority. -type RestoreCertificateAuthorityRequest struct { - // RequestId: Optional. An 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. The - // server will guarantee that for at least 60 minutes since the first - // request. For example, consider a situation where you make an initial - // request and t he 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). - RequestId string `json:"requestId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "RequestId") 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. "RequestId") 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 *RestoreCertificateAuthorityRequest) MarshalJSON() ([]byte, error) { - type NoMethod RestoreCertificateAuthorityRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ReusableConfig: A ReusableConfig refers to a managed -// ReusableConfigValues. Those, in turn, are used to describe certain -// fields of an X.509 certificate, such as the key usage fields, fields -// specific to CA certificates, certificate policy extensions and custom -// extensions. -type ReusableConfig struct { - // CreateTime: Output only. The time at which this ReusableConfig was - // created. - CreateTime string `json:"createTime,omitempty"` - - // Description: Optional. A human-readable description of scenarios - // these ReusableConfigValues may be compatible with. - Description string `json:"description,omitempty"` - - // Labels: Optional. Labels with user-defined metadata. - Labels map[string]string `json:"labels,omitempty"` - - // Name: Output only. The resource path for this ReusableConfig in the - // format `projects/*/locations/*/reusableConfigs/*`. - Name string `json:"name,omitempty"` - - // UpdateTime: Output only. The time at which this ReusableConfig was - // updated. - UpdateTime string `json:"updateTime,omitempty"` - - // Values: Required. The config values. - Values *ReusableConfigValues `json:"values,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 *ReusableConfig) MarshalJSON() ([]byte, error) { - type NoMethod ReusableConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ReusableConfigValues: A ReusableConfigValues is used to describe -// certain fields of an X.509 certificate, such as the key usage fields, -// fields specific to CA certificates, certificate policy extensions and -// custom extensions. -type ReusableConfigValues struct { - // AdditionalExtensions: Optional. Describes custom X.509 extensions. - AdditionalExtensions []*X509Extension `json:"additionalExtensions,omitempty"` - - // AiaOcspServers: Optional. Describes Online Certificate Status - // Protocol (OCSP) endpoint addresses that appear in the "Authority - // Information Access" extension in the certificate. - AiaOcspServers []string `json:"aiaOcspServers,omitempty"` - - // CaOptions: Optional. Describes options in this ReusableConfigValues - // that are relevant in a CA certificate. - CaOptions *CaOptions `json:"caOptions,omitempty"` - - // KeyUsage: Optional. Indicates the intended use for keys that - // correspond to a certificate. - KeyUsage *KeyUsage `json:"keyUsage,omitempty"` - - // PolicyIds: Optional. Describes the X.509 certificate policy object - // identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. - PolicyIds []*ObjectId `json:"policyIds,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AdditionalExtensions") 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. "AdditionalExtensions") 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 *ReusableConfigValues) MarshalJSON() ([]byte, error) { - type NoMethod ReusableConfigValues - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ReusableConfigWrapper: A ReusableConfigWrapper describes values that -// may assist in creating an X.509 certificate, or a reference to a -// pre-defined set of values. -type ReusableConfigWrapper struct { - // ReusableConfig: Required. A resource path to a ReusableConfig in the - // format `projects/*/locations/*/reusableConfigs/*`. - ReusableConfig string `json:"reusableConfig,omitempty"` - - // ReusableConfigValues: Required. A user-specified inline - // ReusableConfigValues. - ReusableConfigValues *ReusableConfigValues `json:"reusableConfigValues,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ReusableConfig") 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. "ReusableConfig") 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 *ReusableConfigWrapper) MarshalJSON() ([]byte, error) { - type NoMethod ReusableConfigWrapper - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// RevocationDetails: Describes fields that are relavent to the -// revocation of a Certificate. -type RevocationDetails struct { - // RevocationState: Indicates why a Certificate was revoked. - // - // Possible values: - // "REVOCATION_REASON_UNSPECIFIED" - Default unspecified value. This - // value does indicate that a Certificate has been revoked, but that a - // reason has not been recorded. - // "KEY_COMPROMISE" - Key material for this Certificate may have - // leaked. - // "CERTIFICATE_AUTHORITY_COMPROMISE" - The key material for a - // certificate authority in the issuing path may have leaked. - // "AFFILIATION_CHANGED" - The subject or other attributes in this - // Certificate have changed. - // "SUPERSEDED" - This Certificate has been superseded. - // "CESSATION_OF_OPERATION" - This Certificate or entities in the - // issuing path have ceased to operate. - // "CERTIFICATE_HOLD" - This Certificate should not be considered - // valid, it is expected that it may become valid in the future. - // "PRIVILEGE_WITHDRAWN" - This Certificate no longer has permission - // to assert the listed attributes. - // "ATTRIBUTE_AUTHORITY_COMPROMISE" - The authority which determines - // appropriate attributes for a Certificate may have been compromised. - RevocationState string `json:"revocationState,omitempty"` - - // RevocationTime: The time at which this Certificate was revoked. - RevocationTime string `json:"revocationTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "RevocationState") 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. "RevocationState") 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 *RevocationDetails) MarshalJSON() ([]byte, error) { - type NoMethod RevocationDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// RevokeCertificateRequest: Request message for -// CertificateAuthorityService.RevokeCertificate. -type RevokeCertificateRequest struct { - // Reason: Required. The RevocationReason for revoking this certificate. - // - // Possible values: - // "REVOCATION_REASON_UNSPECIFIED" - Default unspecified value. This - // value does indicate that a Certificate has been revoked, but that a - // reason has not been recorded. - // "KEY_COMPROMISE" - Key material for this Certificate may have - // leaked. - // "CERTIFICATE_AUTHORITY_COMPROMISE" - The key material for a - // certificate authority in the issuing path may have leaked. - // "AFFILIATION_CHANGED" - The subject or other attributes in this - // Certificate have changed. - // "SUPERSEDED" - This Certificate has been superseded. - // "CESSATION_OF_OPERATION" - This Certificate or entities in the - // issuing path have ceased to operate. - // "CERTIFICATE_HOLD" - This Certificate should not be considered - // valid, it is expected that it may become valid in the future. - // "PRIVILEGE_WITHDRAWN" - This Certificate no longer has permission - // to assert the listed attributes. - // "ATTRIBUTE_AUTHORITY_COMPROMISE" - The authority which determines - // appropriate attributes for a Certificate may have been compromised. - Reason string `json:"reason,omitempty"` - - // RequestId: Optional. An 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. The - // server will guarantee that for at least 60 minutes since the first - // request. For example, consider a situation where you make an initial - // request and t he 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). - RequestId string `json:"requestId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Reason") 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. "Reason") 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 *RevokeCertificateRequest) MarshalJSON() ([]byte, error) { - type NoMethod RevokeCertificateRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// RevokedCertificate: Describes a revoked Certificate. -type RevokedCertificate struct { - // Certificate: The resource path for the Certificate in the format - // `projects/*/locations/*/certificateAuthorities/*/certificates/*`. - Certificate string `json:"certificate,omitempty"` - - // HexSerialNumber: The serial number of the Certificate. - HexSerialNumber string `json:"hexSerialNumber,omitempty"` - - // RevocationReason: The reason the Certificate was revoked. - // - // Possible values: - // "REVOCATION_REASON_UNSPECIFIED" - Default unspecified value. This - // value does indicate that a Certificate has been revoked, but that a - // reason has not been recorded. - // "KEY_COMPROMISE" - Key material for this Certificate may have - // leaked. - // "CERTIFICATE_AUTHORITY_COMPROMISE" - The key material for a - // certificate authority in the issuing path may have leaked. - // "AFFILIATION_CHANGED" - The subject or other attributes in this - // Certificate have changed. - // "SUPERSEDED" - This Certificate has been superseded. - // "CESSATION_OF_OPERATION" - This Certificate or entities in the - // issuing path have ceased to operate. - // "CERTIFICATE_HOLD" - This Certificate should not be considered - // valid, it is expected that it may become valid in the future. - // "PRIVILEGE_WITHDRAWN" - This Certificate no longer has permission - // to assert the listed attributes. - // "ATTRIBUTE_AUTHORITY_COMPROMISE" - The authority which determines - // appropriate attributes for a Certificate may have been compromised. - RevocationReason string `json:"revocationReason,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Certificate") 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. "Certificate") 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 *RevokedCertificate) MarshalJSON() ([]byte, error) { - type NoMethod RevokedCertificate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ScheduleDeleteCertificateAuthorityRequest: Request message for -// CertificateAuthorityService.ScheduleDeleteCertificateAuthority. -type ScheduleDeleteCertificateAuthorityRequest struct { - // IgnoreActiveCertificates: Optional. This field allows the CA to be - // scheduled for deletion even if the CA has active certs. Active certs - // include both unrevoked and unexpired certs. - IgnoreActiveCertificates bool `json:"ignoreActiveCertificates,omitempty"` - - // RequestId: Optional. An 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. The - // server will guarantee that for at least 60 minutes since the first - // request. For example, consider a situation where you make an initial - // request and t he 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). - RequestId string `json:"requestId,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "IgnoreActiveCertificates") 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. "IgnoreActiveCertificates") - // 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 *ScheduleDeleteCertificateAuthorityRequest) MarshalJSON() ([]byte, error) { - type NoMethod ScheduleDeleteCertificateAuthorityRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SetIamPolicyRequest: Request message for `SetIamPolicy` method. -type SetIamPolicyRequest struct { - // Policy: REQUIRED: The complete policy to be applied to the - // `resource`. The size of the policy is limited to a few 10s of KB. An - // empty policy is a valid policy but certain Google Cloud services - // (such as Projects) might reject them. - Policy *Policy `json:"policy,omitempty"` - - // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the - // policy to modify. Only the fields in the mask will be modified. If no - // mask is provided, the following default mask is used: `paths: - // "bindings, etag" - UpdateMask string `json:"updateMask,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Policy") 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. "Policy") 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 *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { - type NoMethod SetIamPolicyRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). -type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. - Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. - Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. - 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 *Status) MarshalJSON() ([]byte, error) { - type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Subject: Subject describes parts of a distinguished name that, in -// turn, describes the subject of the certificate. -type Subject struct { - // CountryCode: The country code of the subject. - CountryCode string `json:"countryCode,omitempty"` - - // Locality: The locality or city of the subject. - Locality string `json:"locality,omitempty"` - - // Organization: The organization of the subject. - Organization string `json:"organization,omitempty"` - - // OrganizationalUnit: The organizational_unit of the subject. - OrganizationalUnit string `json:"organizationalUnit,omitempty"` - - // PostalCode: The postal code of the subject. - PostalCode string `json:"postalCode,omitempty"` - - // Province: The province, territory, or regional state of the subject. - Province string `json:"province,omitempty"` - - // StreetAddress: The street address of the subject. - StreetAddress string `json:"streetAddress,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CountryCode") 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. "CountryCode") 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 *Subject) MarshalJSON() ([]byte, error) { - type NoMethod Subject - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SubjectAltNames: SubjectAltNames corresponds to a more modern way of -// listing what the asserted identity is in a certificate (i.e., -// compared to the "common name" in the distinguished name). -type SubjectAltNames struct { - // CustomSans: Contains additional subject alternative name values. - CustomSans []*X509Extension `json:"customSans,omitempty"` - - // DnsNames: Contains only valid, fully-qualified host names. - DnsNames []string `json:"dnsNames,omitempty"` - - // EmailAddresses: Contains only valid RFC 2822 E-mail addresses. - EmailAddresses []string `json:"emailAddresses,omitempty"` - - // IpAddresses: Contains only valid 32-bit IPv4 addresses or RFC 4291 - // IPv6 addresses. - IpAddresses []string `json:"ipAddresses,omitempty"` - - // Uris: Contains only valid RFC 3986 URIs. - Uris []string `json:"uris,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CustomSans") 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. "CustomSans") 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 *SubjectAltNames) MarshalJSON() ([]byte, error) { - type NoMethod SubjectAltNames - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SubjectConfig: These values are used to create the distinguished name -// and subject alternative name fields in an X.509 certificate. -type SubjectConfig struct { - // CommonName: Optional. The "common name" of the distinguished name. - CommonName string `json:"commonName,omitempty"` - - // Subject: Required. Contains distinguished name fields such as the - // location and organization. - Subject *Subject `json:"subject,omitempty"` - - // SubjectAltName: Optional. The subject alternative name fields. - SubjectAltName *SubjectAltNames `json:"subjectAltName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CommonName") 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. "CommonName") 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 *SubjectConfig) MarshalJSON() ([]byte, error) { - type NoMethod SubjectConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SubjectDescription: These values describe fields in an issued X.509 -// certificate such as the distinguished name, subject alternative -// names, serial number, and lifetime. -type SubjectDescription struct { - // CommonName: The "common name" of the distinguished name. - CommonName string `json:"commonName,omitempty"` - - // HexSerialNumber: The serial number encoded in lowercase hexadecimal. - HexSerialNumber string `json:"hexSerialNumber,omitempty"` - - // Lifetime: For convenience, the actual lifetime of an issued - // certificate. Corresponds to 'not_after_time' - 'not_before_time'. - Lifetime string `json:"lifetime,omitempty"` - - // NotAfterTime: The time at which the certificate expires. - NotAfterTime string `json:"notAfterTime,omitempty"` - - // NotBeforeTime: The time at which the certificate becomes valid. - NotBeforeTime string `json:"notBeforeTime,omitempty"` - - // Subject: Contains distinguished name fields such as the location and - // organization. - Subject *Subject `json:"subject,omitempty"` - - // SubjectAltName: The subject alternative name fields. - SubjectAltName *SubjectAltNames `json:"subjectAltName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CommonName") 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. "CommonName") 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 *SubjectDescription) MarshalJSON() ([]byte, error) { - type NoMethod SubjectDescription - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SubordinateConfig: Describes a subordinate CA's issuers. This is -// either a resource path to a known issuing CertificateAuthority, or a -// PEM issuer certificate chain. -type SubordinateConfig struct { - // CertificateAuthority: Required. This can refer to a - // CertificateAuthority that was used to create a subordinate - // CertificateAuthority. This field is used for information and - // usability purposes only. The resource name is in the format - // `projects/*/locations/*/certificateAuthorities/*`. - CertificateAuthority string `json:"certificateAuthority,omitempty"` - - // PemIssuerChain: Required. Contains the PEM certificate chain for the - // issuers of this CertificateAuthority, but not pem certificate for - // this CA itself. - PemIssuerChain *SubordinateConfigChain `json:"pemIssuerChain,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CertificateAuthority") 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. "CertificateAuthority") 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 *SubordinateConfig) MarshalJSON() ([]byte, error) { - type NoMethod SubordinateConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SubordinateConfigChain: This message describes a subordinate CA's -// issuer certificate chain. This wrapper exists for compatibility -// reasons. -type SubordinateConfigChain struct { - // PemCertificates: Required. Expected to be in leaf-to-root order - // according to RFC 5246. - PemCertificates []string `json:"pemCertificates,omitempty"` - - // ForceSendFields is a list of field names (e.g. "PemCertificates") 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. "PemCertificates") 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 *SubordinateConfigChain) MarshalJSON() ([]byte, error) { - type NoMethod SubordinateConfigChain - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// TestIamPermissionsRequest: Request message for `TestIamPermissions` -// method. -type TestIamPermissionsRequest struct { - // Permissions: The set of permissions to check for the `resource`. - // Permissions with wildcards (such as `*` or `storage.*`) are not - // allowed. For more information see IAM Overview - // (https://cloud.google.com/iam/docs/overview#permissions). - Permissions []string `json:"permissions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Permissions") 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. "Permissions") 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 *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { - type NoMethod TestIamPermissionsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// TestIamPermissionsResponse: Response message for `TestIamPermissions` -// method. -type TestIamPermissionsResponse struct { - // Permissions: A subset of `TestPermissionsRequest.permissions` that - // the caller is allowed. - Permissions []string `json:"permissions,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Permissions") 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. "Permissions") 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 *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { - type NoMethod TestIamPermissionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// X509Extension: An X509Extension specifies an X.509 extension, which -// may be used in different parts of X.509 objects like certificates, -// CSRs, and CRLs. -type X509Extension struct { - // Critical: Required. Indicates whether or not this extension is - // critical (i.e., if the client does not know how to handle this - // extension, the client should consider this to be an error). - Critical bool `json:"critical,omitempty"` - - // ObjectId: Required. The OID for this X.509 extension. - ObjectId *ObjectId `json:"objectId,omitempty"` - - // Value: Required. The value of this X.509 extension. - Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Critical") 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. "Critical") 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 *X509Extension) MarshalJSON() ([]byte, error) { - type NoMethod X509Extension - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// method id "privateca.projects.locations.get": - -type ProjectsLocationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets information about a location. -// -// - name: Resource name for the location. -func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { - c := &ProjectsLocationsGetCall{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 *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { - 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 *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { - 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 *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { - 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 *ProjectsLocationsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsGetCall) 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, "v1beta1/{+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 "privateca.projects.locations.get" call. -// Exactly one of *Location or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Location.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 *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, 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 := &Location{ - 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 information about a location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}", - // "httpMethod": "GET", - // "id": "privateca.projects.locations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Resource name for the location.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "Location" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "privateca.projects.locations.list": - -type ProjectsLocationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists information about the supported locations for this -// service. -// -// - name: The resource that owns the locations collection, if -// applicable. -func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { - c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": A filter to narrow down -// results to a preferred subset. The filtering language accepts strings -// like "displayName=tokyo", and is documented in more detail in -// AIP-160 (https://google.aip.dev/160). -func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return. If not set, the service selects a default. -func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token -// received from the `next_page_token` field in the response. Send that -// page token to receive the subsequent page. -func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { - 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 *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { - 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 *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { - 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 *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { - 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 *ProjectsLocationsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsListCall) 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, "v1beta1/{+name}/locations") - 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 "privateca.projects.locations.list" call. -// Exactly one of *ListLocationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListLocationsResponse.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 *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, 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 := &ListLocationsResponse{ - 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 information about the supported locations for this service.", - // "flatPath": "v1beta1/projects/{projectsId}/locations", - // "httpMethod": "GET", - // "id": "privateca.projects.locations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The resource that owns the locations collection, if applicable.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of results to return. If not set, the service selects a default.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}/locations", - // "response": { - // "$ref": "ListLocationsResponse" - // }, - // "scopes": [ - // "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 *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) 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 "privateca.projects.locations.certificateAuthorities.activate": - -type ProjectsLocationsCertificateAuthoritiesActivateCall struct { - s *Service - name string - activatecertificateauthorityrequest *ActivateCertificateAuthorityRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Activate: Activate a CertificateAuthority that is in state -// PENDING_ACTIVATION and is of type SUBORDINATE. After the parent -// Certificate Authority signs a certificate signing request from -// FetchCertificateAuthorityCsr, this method can complete the activation -// process. -// -// - name: The resource name for this CertificateAuthority in the format -// `projects/*/locations/*/certificateAuthorities/*`. -func (r *ProjectsLocationsCertificateAuthoritiesService) Activate(name string, activatecertificateauthorityrequest *ActivateCertificateAuthorityRequest) *ProjectsLocationsCertificateAuthoritiesActivateCall { - c := &ProjectsLocationsCertificateAuthoritiesActivateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.activatecertificateauthorityrequest = activatecertificateauthorityrequest - 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 *ProjectsLocationsCertificateAuthoritiesActivateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesActivateCall { - 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 *ProjectsLocationsCertificateAuthoritiesActivateCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesActivateCall { - 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 *ProjectsLocationsCertificateAuthoritiesActivateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsCertificateAuthoritiesActivateCall) 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.activatecertificateauthorityrequest) - 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, "v1beta1/{+name}:activate") - 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{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "privateca.projects.locations.certificateAuthorities.activate" 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 *ProjectsLocationsCertificateAuthoritiesActivateCall) 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": "Activate a CertificateAuthority that is in state PENDING_ACTIVATION and is of type SUBORDINATE. After the parent Certificate Authority signs a certificate signing request from FetchCertificateAuthorityCsr, this method can complete the activation process.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:activate", - // "httpMethod": "POST", - // "id": "privateca.projects.locations.certificateAuthorities.activate", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}:activate", - // "request": { - // "$ref": "ActivateCertificateAuthorityRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "privateca.projects.locations.certificateAuthorities.create": - -type ProjectsLocationsCertificateAuthoritiesCreateCall struct { - s *Service - parent string - certificateauthority *CertificateAuthority - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Create a new CertificateAuthority in a given Project and -// Location. -// -// - parent: The resource name of the location associated with the -// CertificateAuthorities, in the format `projects/*/locations/*`. -func (r *ProjectsLocationsCertificateAuthoritiesService) Create(parent string, certificateauthority *CertificateAuthority) *ProjectsLocationsCertificateAuthoritiesCreateCall { - c := &ProjectsLocationsCertificateAuthoritiesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.certificateauthority = certificateauthority - return c -} - -// CertificateAuthorityId sets the optional parameter -// "certificateAuthorityId": Required. It must be unique within a -// location and match the regular expression `[a-zA-Z0-9_-]{1,63}` -func (c *ProjectsLocationsCertificateAuthoritiesCreateCall) CertificateAuthorityId(certificateAuthorityId string) *ProjectsLocationsCertificateAuthoritiesCreateCall { - c.urlParams_.Set("certificateAuthorityId", certificateAuthorityId) - return c -} - -// RequestId sets the optional parameter "requestId": An 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. The server will guarantee that for at least 60 -// minutes since the first request. For example, consider a situation -// where you make an initial request and t he 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 *ProjectsLocationsCertificateAuthoritiesCreateCall) RequestId(requestId string) *ProjectsLocationsCertificateAuthoritiesCreateCall { - 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 *ProjectsLocationsCertificateAuthoritiesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCreateCall { - 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 *ProjectsLocationsCertificateAuthoritiesCreateCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCreateCall { - 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 *ProjectsLocationsCertificateAuthoritiesCreateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsCertificateAuthoritiesCreateCall) 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.certificateauthority) - 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, "v1beta1/{+parent}/certificateAuthorities") - 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{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "privateca.projects.locations.certificateAuthorities.create" 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 *ProjectsLocationsCertificateAuthoritiesCreateCall) 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": "Create a new CertificateAuthority in a given Project and Location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities", - // "httpMethod": "POST", - // "id": "privateca.projects.locations.certificateAuthorities.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "certificateAuthorityId": { - // "description": "Required. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the location associated with the CertificateAuthorities, in the format `projects/*/locations/*`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "requestId": { - // "description": "Optional. An 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. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he 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" - // } - // }, - // "path": "v1beta1/{+parent}/certificateAuthorities", - // "request": { - // "$ref": "CertificateAuthority" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "privateca.projects.locations.certificateAuthorities.disable": - -type ProjectsLocationsCertificateAuthoritiesDisableCall struct { - s *Service - name string - disablecertificateauthorityrequest *DisableCertificateAuthorityRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Disable: Disable a CertificateAuthority. -// -// - name: The resource name for this CertificateAuthority in the format -// `projects/*/locations/*/certificateAuthorities/*`. -func (r *ProjectsLocationsCertificateAuthoritiesService) Disable(name string, disablecertificateauthorityrequest *DisableCertificateAuthorityRequest) *ProjectsLocationsCertificateAuthoritiesDisableCall { - c := &ProjectsLocationsCertificateAuthoritiesDisableCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.disablecertificateauthorityrequest = disablecertificateauthorityrequest - 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 *ProjectsLocationsCertificateAuthoritiesDisableCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesDisableCall { - 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 *ProjectsLocationsCertificateAuthoritiesDisableCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesDisableCall { - 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 *ProjectsLocationsCertificateAuthoritiesDisableCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsCertificateAuthoritiesDisableCall) 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.disablecertificateauthorityrequest) - 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, "v1beta1/{+name}:disable") - 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{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "privateca.projects.locations.certificateAuthorities.disable" 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 *ProjectsLocationsCertificateAuthoritiesDisableCall) 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": "Disable a CertificateAuthority.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:disable", - // "httpMethod": "POST", - // "id": "privateca.projects.locations.certificateAuthorities.disable", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}:disable", - // "request": { - // "$ref": "DisableCertificateAuthorityRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "privateca.projects.locations.certificateAuthorities.enable": - -type ProjectsLocationsCertificateAuthoritiesEnableCall struct { - s *Service - name string - enablecertificateauthorityrequest *EnableCertificateAuthorityRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Enable: Enable a CertificateAuthority. -// -// - name: The resource name for this CertificateAuthority in the format -// `projects/*/locations/*/certificateAuthorities/*`. -func (r *ProjectsLocationsCertificateAuthoritiesService) Enable(name string, enablecertificateauthorityrequest *EnableCertificateAuthorityRequest) *ProjectsLocationsCertificateAuthoritiesEnableCall { - c := &ProjectsLocationsCertificateAuthoritiesEnableCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.enablecertificateauthorityrequest = enablecertificateauthorityrequest - 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 *ProjectsLocationsCertificateAuthoritiesEnableCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesEnableCall { - 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 *ProjectsLocationsCertificateAuthoritiesEnableCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesEnableCall { - 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 *ProjectsLocationsCertificateAuthoritiesEnableCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsCertificateAuthoritiesEnableCall) 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.enablecertificateauthorityrequest) - 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, "v1beta1/{+name}:enable") - 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{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "privateca.projects.locations.certificateAuthorities.enable" 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 *ProjectsLocationsCertificateAuthoritiesEnableCall) 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": "Enable a CertificateAuthority.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:enable", - // "httpMethod": "POST", - // "id": "privateca.projects.locations.certificateAuthorities.enable", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}:enable", - // "request": { - // "$ref": "EnableCertificateAuthorityRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "privateca.projects.locations.certificateAuthorities.fetch": - -type ProjectsLocationsCertificateAuthoritiesFetchCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Fetch: Fetch a certificate signing request (CSR) from a -// CertificateAuthority that is in state PENDING_ACTIVATION and is of -// type SUBORDINATE. The CSR must then be signed by the desired parent -// Certificate Authority, which could be another CertificateAuthority -// resource, or could be an on-prem certificate authority. See also -// ActivateCertificateAuthority. -// -// - name: The resource name for this CertificateAuthority in the format -// `projects/*/locations/*/certificateAuthorities/*`. -func (r *ProjectsLocationsCertificateAuthoritiesService) Fetch(name string) *ProjectsLocationsCertificateAuthoritiesFetchCall { - c := &ProjectsLocationsCertificateAuthoritiesFetchCall{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 *ProjectsLocationsCertificateAuthoritiesFetchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesFetchCall { - 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 *ProjectsLocationsCertificateAuthoritiesFetchCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesFetchCall { - 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 *ProjectsLocationsCertificateAuthoritiesFetchCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesFetchCall { - 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 *ProjectsLocationsCertificateAuthoritiesFetchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsCertificateAuthoritiesFetchCall) 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, "v1beta1/{+name}:fetch") - 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 "privateca.projects.locations.certificateAuthorities.fetch" call. -// Exactly one of *FetchCertificateAuthorityCsrResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *FetchCertificateAuthorityCsrResponse.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 *ProjectsLocationsCertificateAuthoritiesFetchCall) Do(opts ...googleapi.CallOption) (*FetchCertificateAuthorityCsrResponse, 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 := &FetchCertificateAuthorityCsrResponse{ - 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": "Fetch a certificate signing request (CSR) from a CertificateAuthority that is in state PENDING_ACTIVATION and is of type SUBORDINATE. The CSR must then be signed by the desired parent Certificate Authority, which could be another CertificateAuthority resource, or could be an on-prem certificate authority. See also ActivateCertificateAuthority.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:fetch", - // "httpMethod": "GET", - // "id": "privateca.projects.locations.certificateAuthorities.fetch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}:fetch", - // "response": { - // "$ref": "FetchCertificateAuthorityCsrResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "privateca.projects.locations.certificateAuthorities.get": - -type ProjectsLocationsCertificateAuthoritiesGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Returns a CertificateAuthority. -// -// - name: The name of the CertificateAuthority to get. -func (r *ProjectsLocationsCertificateAuthoritiesService) Get(name string) *ProjectsLocationsCertificateAuthoritiesGetCall { - c := &ProjectsLocationsCertificateAuthoritiesGetCall{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 *ProjectsLocationsCertificateAuthoritiesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesGetCall { - 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 *ProjectsLocationsCertificateAuthoritiesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesGetCall { - 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 *ProjectsLocationsCertificateAuthoritiesGetCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesGetCall { - 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 *ProjectsLocationsCertificateAuthoritiesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsCertificateAuthoritiesGetCall) 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, "v1beta1/{+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 "privateca.projects.locations.certificateAuthorities.get" call. -// Exactly one of *CertificateAuthority or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CertificateAuthority.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 *ProjectsLocationsCertificateAuthoritiesGetCall) Do(opts ...googleapi.CallOption) (*CertificateAuthority, 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 := &CertificateAuthority{ - 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 a CertificateAuthority.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}", - // "httpMethod": "GET", - // "id": "privateca.projects.locations.certificateAuthorities.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the CertificateAuthority to get.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "CertificateAuthority" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "privateca.projects.locations.certificateAuthorities.getIamPolicy": - -type ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall struct { - s *Service - resource string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. -// -// - resource: REQUIRED: The resource for which the policy is being -// requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsCertificateAuthoritiesService) GetIamPolicy(resource string) *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall { - c := &ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - return c -} - -// OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": The maximum policy version that -// will be used to format the policy. Valid values are 0, 1, and 3. -// Requests specifying an invalid value will be rejected. Requests for -// policies with any conditional role bindings must specify version 3. -// Policies with no conditional role bindings may specify any valid -// value or leave the field unset. The policy in the response might use -// the policy version that you specified, or it might use a lower policy -// version. For example, if you specify version 3, but the policy has no -// conditional role bindings, the response uses version 1. To learn -// which resources support conditions in their IAM policies, see the IAM -// documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). -func (c *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) - 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 *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall { - 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 *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall { - 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 *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall { - 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 *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) 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, "v1beta1/{+resource}:getIamPolicy") - 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{ - "resource": c.resource, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "privateca.projects.locations.certificateAuthorities.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.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 *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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 := &Policy{ - 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 the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "privateca.projects.locations.certificateAuthorities.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+resource}:getIamPolicy", - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "privateca.projects.locations.certificateAuthorities.list": - -type ProjectsLocationsCertificateAuthoritiesListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists CertificateAuthorities. -// -// - parent: The resource name of the location associated with the -// CertificateAuthorities, in the format `projects/*/locations/*`. -func (r *ProjectsLocationsCertificateAuthoritiesService) List(parent string) *ProjectsLocationsCertificateAuthoritiesListCall { - c := &ProjectsLocationsCertificateAuthoritiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": Only include resources -// that match the filter in the response. -func (c *ProjectsLocationsCertificateAuthoritiesListCall) Filter(filter string) *ProjectsLocationsCertificateAuthoritiesListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// OrderBy sets the optional parameter "orderBy": Specify how the -// results should be sorted. -func (c *ProjectsLocationsCertificateAuthoritiesListCall) OrderBy(orderBy string) *ProjectsLocationsCertificateAuthoritiesListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": Limit on the number -// of CertificateAuthorities to include in the response. Further -// CertificateAuthorities can subsequently be obtained by including the -// ListCertificateAuthoritiesResponse.next_page_token in a subsequent -// request. If unspecified, the server will pick an appropriate default. -func (c *ProjectsLocationsCertificateAuthoritiesListCall) PageSize(pageSize int64) *ProjectsLocationsCertificateAuthoritiesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": Pagination token, -// returned earlier via -// ListCertificateAuthoritiesResponse.next_page_token. -func (c *ProjectsLocationsCertificateAuthoritiesListCall) PageToken(pageToken string) *ProjectsLocationsCertificateAuthoritiesListCall { - 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 *ProjectsLocationsCertificateAuthoritiesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesListCall { - 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 *ProjectsLocationsCertificateAuthoritiesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesListCall { - 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 *ProjectsLocationsCertificateAuthoritiesListCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesListCall { - 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 *ProjectsLocationsCertificateAuthoritiesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsCertificateAuthoritiesListCall) 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, "v1beta1/{+parent}/certificateAuthorities") - 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 "privateca.projects.locations.certificateAuthorities.list" call. -// Exactly one of *ListCertificateAuthoritiesResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListCertificateAuthoritiesResponse.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 *ProjectsLocationsCertificateAuthoritiesListCall) Do(opts ...googleapi.CallOption) (*ListCertificateAuthoritiesResponse, 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 := &ListCertificateAuthoritiesResponse{ - 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 CertificateAuthorities.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities", - // "httpMethod": "GET", - // "id": "privateca.projects.locations.certificateAuthorities.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Optional. Only include resources that match the filter in the response.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Optional. Specify how the results should be sorted.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Optional. Limit on the number of CertificateAuthorities to include in the response. Further CertificateAuthorities can subsequently be obtained by including the ListCertificateAuthoritiesResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. Pagination token, returned earlier via ListCertificateAuthoritiesResponse.next_page_token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the location associated with the CertificateAuthorities, in the format `projects/*/locations/*`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/certificateAuthorities", - // "response": { - // "$ref": "ListCertificateAuthoritiesResponse" - // }, - // "scopes": [ - // "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 *ProjectsLocationsCertificateAuthoritiesListCall) Pages(ctx context.Context, f func(*ListCertificateAuthoritiesResponse) 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 "privateca.projects.locations.certificateAuthorities.patch": - -type ProjectsLocationsCertificateAuthoritiesPatchCall struct { - s *Service - name string - certificateauthority *CertificateAuthority - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Update a CertificateAuthority. -// -// - name: Output only. The resource name for this CertificateAuthority -// in the format `projects/*/locations/*/certificateAuthorities/*`. -func (r *ProjectsLocationsCertificateAuthoritiesService) Patch(name string, certificateauthority *CertificateAuthority) *ProjectsLocationsCertificateAuthoritiesPatchCall { - c := &ProjectsLocationsCertificateAuthoritiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.certificateauthority = certificateauthority - return c -} - -// RequestId sets the optional parameter "requestId": An 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. The server will guarantee that for at least 60 -// minutes since the first request. For example, consider a situation -// where you make an initial request and t he 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 *ProjectsLocationsCertificateAuthoritiesPatchCall) RequestId(requestId string) *ProjectsLocationsCertificateAuthoritiesPatchCall { - c.urlParams_.Set("requestId", requestId) - return c -} - -// UpdateMask sets the optional parameter "updateMask": Required. A list -// of fields to be updated in this request. -func (c *ProjectsLocationsCertificateAuthoritiesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCertificateAuthoritiesPatchCall { - c.urlParams_.Set("updateMask", updateMask) - 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 *ProjectsLocationsCertificateAuthoritiesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesPatchCall { - 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 *ProjectsLocationsCertificateAuthoritiesPatchCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesPatchCall { - 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 *ProjectsLocationsCertificateAuthoritiesPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsCertificateAuthoritiesPatchCall) 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.certificateauthority) - 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, "v1beta1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", 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 "privateca.projects.locations.certificateAuthorities.patch" 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 *ProjectsLocationsCertificateAuthoritiesPatchCall) 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": "Update a CertificateAuthority.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}", - // "httpMethod": "PATCH", - // "id": "privateca.projects.locations.certificateAuthorities.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "requestId": { - // "description": "Optional. An 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. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he 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" - // }, - // "updateMask": { - // "description": "Required. A list of fields to be updated in this request.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "request": { - // "$ref": "CertificateAuthority" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "privateca.projects.locations.certificateAuthorities.restore": - -type ProjectsLocationsCertificateAuthoritiesRestoreCall struct { - s *Service - name string - restorecertificateauthorityrequest *RestoreCertificateAuthorityRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Restore: Restore a CertificateAuthority that is scheduled for -// deletion. -// -// - name: The resource name for this CertificateAuthority in the format -// `projects/*/locations/*/certificateAuthorities/*`. -func (r *ProjectsLocationsCertificateAuthoritiesService) Restore(name string, restorecertificateauthorityrequest *RestoreCertificateAuthorityRequest) *ProjectsLocationsCertificateAuthoritiesRestoreCall { - c := &ProjectsLocationsCertificateAuthoritiesRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.restorecertificateauthorityrequest = restorecertificateauthorityrequest - 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 *ProjectsLocationsCertificateAuthoritiesRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesRestoreCall { - 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 *ProjectsLocationsCertificateAuthoritiesRestoreCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesRestoreCall { - 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 *ProjectsLocationsCertificateAuthoritiesRestoreCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsCertificateAuthoritiesRestoreCall) 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.restorecertificateauthorityrequest) - 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, "v1beta1/{+name}:restore") - 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{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "privateca.projects.locations.certificateAuthorities.restore" 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 *ProjectsLocationsCertificateAuthoritiesRestoreCall) 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": "Restore a CertificateAuthority that is scheduled for deletion.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:restore", - // "httpMethod": "POST", - // "id": "privateca.projects.locations.certificateAuthorities.restore", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}:restore", - // "request": { - // "$ref": "RestoreCertificateAuthorityRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "privateca.projects.locations.certificateAuthorities.scheduleDelete": - -type ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall struct { - s *Service - name string - scheduledeletecertificateauthorityrequest *ScheduleDeleteCertificateAuthorityRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// ScheduleDelete: Schedule a CertificateAuthority for deletion. -// -// - name: The resource name for this CertificateAuthority in the format -// `projects/*/locations/*/certificateAuthorities/*`. -func (r *ProjectsLocationsCertificateAuthoritiesService) ScheduleDelete(name string, scheduledeletecertificateauthorityrequest *ScheduleDeleteCertificateAuthorityRequest) *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall { - c := &ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.scheduledeletecertificateauthorityrequest = scheduledeletecertificateauthorityrequest - 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 *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall { - 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 *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall { - 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 *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall) 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.scheduledeletecertificateauthorityrequest) - 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, "v1beta1/{+name}:scheduleDelete") - 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{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "privateca.projects.locations.certificateAuthorities.scheduleDelete" 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 *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall) 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": "Schedule a CertificateAuthority for deletion.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:scheduleDelete", - // "httpMethod": "POST", - // "id": "privateca.projects.locations.certificateAuthorities.scheduleDelete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}:scheduleDelete", - // "request": { - // "$ref": "ScheduleDeleteCertificateAuthorityRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "privateca.projects.locations.certificateAuthorities.setIamPolicy": - -type ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall struct { - s *Service - resource string - setiampolicyrequest *SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy. Can return `NOT_FOUND`, -// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. -// -// - resource: REQUIRED: The resource for which the policy is being -// specified. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsCertificateAuthoritiesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall { - c := &ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.setiampolicyrequest = setiampolicyrequest - 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 *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall { - 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 *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall { - 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 *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall) 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.setiampolicyrequest) - 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, "v1beta1/{+resource}:setIamPolicy") - 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{ - "resource": c.resource, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "privateca.projects.locations.certificateAuthorities.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.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 *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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 := &Policy{ - 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": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "privateca.projects.locations.certificateAuthorities.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "privateca.projects.locations.certificateAuthorities.testIamPermissions": - -type ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall struct { - s *Service - resource string - testiampermissionsrequest *TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a `NOT_FOUND` error. Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. -// -// - resource: REQUIRED: The resource for which the policy detail is -// being requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsCertificateAuthoritiesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall { - c := &ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.testiampermissionsrequest = testiampermissionsrequest - 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 *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall { - 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 *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall { - 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 *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall) 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.testiampermissionsrequest) - 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, "v1beta1/{+resource}:testIamPermissions") - 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{ - "resource": c.resource, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "privateca.projects.locations.certificateAuthorities.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.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 *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, 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 := &TestIamPermissionsResponse{ - 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 permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "privateca.projects.locations.certificateAuthorities.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+resource}:testIamPermissions", - // "request": { - // "$ref": "TestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "TestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.get": - -type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Returns a CertificateRevocationList. -// -// - name: The name of the CertificateRevocationList to get. -func (r *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) Get(name string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall { - c := &ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall{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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall { - 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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall { - 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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall { - 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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall) 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, "v1beta1/{+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 "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.get" call. -// Exactly one of *CertificateRevocationList or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *CertificateRevocationList.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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall) Do(opts ...googleapi.CallOption) (*CertificateRevocationList, 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 := &CertificateRevocationList{ - 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 a CertificateRevocationList.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists/{certificateRevocationListsId}", - // "httpMethod": "GET", - // "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the CertificateRevocationList to get.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "CertificateRevocationList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.getIamPolicy": - -type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall struct { - s *Service - resource string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. -// -// - resource: REQUIRED: The resource for which the policy is being -// requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) GetIamPolicy(resource string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall { - c := &ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - return c -} - -// OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": The maximum policy version that -// will be used to format the policy. Valid values are 0, 1, and 3. -// Requests specifying an invalid value will be rejected. Requests for -// policies with any conditional role bindings must specify version 3. -// Policies with no conditional role bindings may specify any valid -// value or leave the field unset. The policy in the response might use -// the policy version that you specified, or it might use a lower policy -// version. For example, if you specify version 3, but the policy has no -// conditional role bindings, the response uses version 1. To learn -// which resources support conditions in their IAM policies, see the IAM -// documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). -func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) - 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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall { - 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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall { - 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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall { - 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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) 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, "v1beta1/{+resource}:getIamPolicy") - 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{ - "resource": c.resource, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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 := &Policy{ - 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 the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists/{certificateRevocationListsId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+resource}:getIamPolicy", - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.list": - -type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists CertificateRevocationLists. -// -// - parent: The resource name of the location associated with the -// CertificateRevocationLists, in the format -// `projects/*/locations/*/certificateauthorities/*`. -func (r *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) List(parent string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall { - c := &ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": Only include resources -// that match the filter in the response. -func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Filter(filter string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// OrderBy sets the optional parameter "orderBy": Specify how the -// results should be sorted. -func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) OrderBy(orderBy string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": Limit on the number -// of CertificateRevocationLists to include in the response. Further -// CertificateRevocationLists can subsequently be obtained by including -// the ListCertificateRevocationListsResponse.next_page_token in a -// subsequent request. If unspecified, the server will pick an -// appropriate default. -func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) PageSize(pageSize int64) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": Pagination token, -// returned earlier via -// ListCertificateRevocationListsResponse.next_page_token. -func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) PageToken(pageToken string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall { - 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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall { - 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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall { - 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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall { - 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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) 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, "v1beta1/{+parent}/certificateRevocationLists") - 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 "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.list" call. -// Exactly one of *ListCertificateRevocationListsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *ListCertificateRevocationListsResponse.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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Do(opts ...googleapi.CallOption) (*ListCertificateRevocationListsResponse, 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 := &ListCertificateRevocationListsResponse{ - 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 CertificateRevocationLists.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists", - // "httpMethod": "GET", - // "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Optional. Only include resources that match the filter in the response.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Optional. Specify how the results should be sorted.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Optional. Limit on the number of CertificateRevocationLists to include in the response. Further CertificateRevocationLists can subsequently be obtained by including the ListCertificateRevocationListsResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. Pagination token, returned earlier via ListCertificateRevocationListsResponse.next_page_token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the location associated with the CertificateRevocationLists, in the format `projects/*/locations/*/certificateauthorities/*`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/certificateRevocationLists", - // "response": { - // "$ref": "ListCertificateRevocationListsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - +func (s *Status) MarshalJSON() ([]byte, error) { + type NoMethod Status + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// 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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Pages(ctx context.Context, f func(*ListCertificateRevocationListsResponse) 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) - } +// TestIamPermissionsRequest: Request message for `TestIamPermissions` +// method. +type TestIamPermissionsRequest struct { + // Permissions: The set of permissions to check for the `resource`. + // Permissions with wildcards (such as `*` or `storage.*`) are not + // allowed. For more information see IAM Overview + // (https://cloud.google.com/iam/docs/overview#permissions). + Permissions []string `json:"permissions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Permissions") 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. "Permissions") 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 *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { + type NoMethod TestIamPermissionsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// method id "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.patch": +// TestIamPermissionsResponse: Response message for `TestIamPermissions` +// method. +type TestIamPermissionsResponse struct { + // Permissions: A subset of `TestPermissionsRequest.permissions` that + // the caller is allowed. + Permissions []string `json:"permissions,omitempty"` -type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall struct { - s *Service - name string - certificaterevocationlist *CertificateRevocationList - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Permissions") 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. "Permissions") 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:"-"` } -// Patch: Update a CertificateRevocationList. -// -// - name: Output only. The resource path for this -// CertificateRevocationList in the format -// `projects/*/locations/*/certificateAuthorities/*/ -// certificateRevocationLists/*`. -func (r *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) Patch(name string, certificaterevocationlist *CertificateRevocationList) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall { - c := &ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.certificaterevocationlist = certificaterevocationlist - return c +func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod TestIamPermissionsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// RequestId sets the optional parameter "requestId": An 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. The server will guarantee that for at least 60 -// minutes since the first request. For example, consider a situation -// where you make an initial request and t he 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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) RequestId(requestId string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall { - c.urlParams_.Set("requestId", requestId) - return c +// method id "privateca.projects.locations.get": + +type ProjectsLocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// UpdateMask sets the optional parameter "updateMask": Required. A list -// of fields to be updated in this request. -func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// Get: Gets information about a location. +// +// - name: Resource name for the location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall { +func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { 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 *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { + 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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall { +func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { 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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) Header() http.Header { +func (c *ProjectsLocationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsGetCall) 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.certificaterevocationlist) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -6138,14 +1026,14 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchC return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.patch" 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 +// Do executes the "privateca.projects.locations.get" call. +// Exactly one of *Location or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Location.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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6164,7 +1052,7 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchC if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &Location{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6176,39 +1064,25 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchC } return ret, nil // { - // "description": "Update a CertificateRevocationList.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists/{certificateRevocationListsId}", - // "httpMethod": "PATCH", - // "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.patch", + // "description": "Gets information about a location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}", + // "httpMethod": "GET", + // "id": "privateca.projects.locations.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Output only. The resource path for this CertificateRevocationList in the format `projects/*/locations/*/certificateAuthorities/*/ certificateRevocationLists/*`.", + // "description": "Resource name for the location.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" - // }, - // "requestId": { - // "description": "Optional. An 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. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he 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" - // }, - // "updateMask": { - // "description": "Required. A list of fields to be updated in this request.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, // "path": "v1beta1/{+name}", - // "request": { - // "$ref": "CertificateRevocationList" - // }, // "response": { - // "$ref": "Operation" + // "$ref": "Location" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -6217,93 +1091,121 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchC } -// method id "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.setIamPolicy": +// method id "privateca.projects.locations.list": -type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall struct { - s *Service - resource string - setiampolicyrequest *SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy. Can return `NOT_FOUND`, -// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// List: Lists information about the supported locations for this +// service. // -// - resource: REQUIRED: The resource for which the policy is being -// specified. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall { - c := &ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.setiampolicyrequest = setiampolicyrequest +// - name: The resource that owns the locations collection, if +// applicable. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": A filter to narrow down +// results to a preferred subset. The filtering language accepts strings +// like "displayName=tokyo", and is documented in more detail in +// AIP-160 (https://google.aip.dev/160). +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return. If not set, the service selects a default. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token +// received from the `next_page_token` field in the response. Send that +// page token to receive the subsequent page. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { + 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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall { +func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { 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 *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { + 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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall { +func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { 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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsListCall) 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.setiampolicyrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/locations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + 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 "privateca.projects.locations.list" call. +// Exactly one of *ListLocationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.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 *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6322,7 +1224,7 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIam if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Policy{ + ret := &ListLocationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6334,28 +1236,41 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIam } return ret, nil // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists/{certificateRevocationListsId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.setIamPolicy", + // "description": "Lists information about the supported locations for this service.", + // "flatPath": "v1beta1/projects/{projectsId}/locations", + // "httpMethod": "GET", + // "id": "privateca.projects.locations.list", // "parameterOrder": [ - // "resource" + // "name" // ], // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "filter": { + // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The resource that owns the locations collection, if applicable.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+$", + // "pattern": "^projects/[^/]+$", // "required": true, // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of results to return. If not set, the service selects a default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1beta1/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, + // "path": "v1beta1/{+name}/locations", // "response": { - // "$ref": "Policy" + // "$ref": "ListLocationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -6364,78 +1279,121 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIam } -// method id "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.testIamPermissions": +// 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 *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) 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) + } +} -type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall struct { - s *Service - resource string - testiampermissionsrequest *TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "privateca.projects.locations.certificateAuthorities.getIamPolicy": + +type ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a `NOT_FOUND` error. Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. // -// - resource: REQUIRED: The resource for which the policy detail is -// being requested. See Resource names +// - resource: REQUIRED: The resource for which the policy is being +// requested. See Resource names // (https://cloud.google.com/apis/design/resource_names) for the // appropriate value for this field. -func (r *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall { - c := &ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsCertificateAuthoritiesService) GetIamPolicy(resource string) *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall { + c := &ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource - c.testiampermissionsrequest = testiampermissionsrequest + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that +// will be used to format the policy. Valid values are 0, 1, and 3. +// Requests specifying an invalid value will be rejected. Requests for +// policies with any conditional role bindings must specify version 3. +// Policies with no conditional role bindings may specify any valid +// value or leave the field unset. The policy in the response might use +// the policy version that you specified, or it might use a lower policy +// version. For example, if you specify version 3, but the policy has no +// conditional role bindings, the response uses version 1. To learn +// which resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) 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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall { +func (c *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall { 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 *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall { + 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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall { +func (c *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall { 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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) 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.testiampermissionsrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -6446,14 +1404,14 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIa return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { +// Do executes the "privateca.projects.locations.certificateAuthorities.getIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.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 *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6472,7 +1430,7 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIa if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &TestIamPermissionsResponse{ + ret := &Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6484,28 +1442,31 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIa } return ret, nil // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists/{certificateRevocationListsId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.testIamPermissions", + // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:getIamPolicy", + // "httpMethod": "GET", + // "id": "privateca.projects.locations.certificateAuthorities.getIamPolicy", // "parameterOrder": [ // "resource" // ], // "parameters": { + // "options.requestedPolicyVersion": { + // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+resource}:testIamPermissions", - // "request": { - // "$ref": "TestIamPermissionsRequest" - // }, + // "path": "v1beta1/{+resource}:getIamPolicy", // "response": { - // "$ref": "TestIamPermissionsResponse" + // "$ref": "Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -6514,61 +1475,36 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIa } -// method id "privateca.projects.locations.certificateAuthorities.certificates.create": +// method id "privateca.projects.locations.certificateAuthorities.setIamPolicy": -type ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall struct { - s *Service - parent string - certificate *Certificate - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Create a new Certificate in a given Project, Location from a -// particular CertificateAuthority. +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. // -// - parent: The resource name of the location and CertificateAuthority -// associated with the Certificate, in the format -// `projects/*/locations/*/certificateAuthorities/*`. -func (r *ProjectsLocationsCertificateAuthoritiesCertificatesService) Create(parent string, certificate *Certificate) *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall { - c := &ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.certificate = certificate - return c -} - -// CertificateId sets the optional parameter "certificateId": It must be -// unique within a location and match the regular expression -// `[a-zA-Z0-9_-]{1,63}`. This field is required when using a -// CertificateAuthority in the Enterprise CertificateAuthority.Tier, but -// is optional and its value is ignored otherwise. -func (c *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) CertificateId(certificateId string) *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall { - c.urlParams_.Set("certificateId", certificateId) - return c -} - -// RequestId sets the optional parameter "requestId": An 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. The server will guarantee that for at least 60 -// minutes since the first request. For example, consider a situation -// where you make an initial request and t he 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 *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) RequestId(requestId string) *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall { - c.urlParams_.Set("requestId", requestId) +// - resource: REQUIRED: The resource for which the policy is being +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsCertificateAuthoritiesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall { + c := &ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest 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 *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall { +func (c *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6576,21 +1512,21 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) Fields(s // 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 *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall { +func (c *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall { 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 *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) Header() http.Header { +func (c *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall) 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_ { @@ -6598,14 +1534,14 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) doReques } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.certificate) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) 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, "v1beta1/{+parent}/certificates") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -6613,19 +1549,19 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) doReques } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "privateca.projects.locations.certificateAuthorities.certificates.create" call. -// Exactly one of *Certificate or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Certificate.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 *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) Do(opts ...googleapi.CallOption) (*Certificate, error) { +// Do executes the "privateca.projects.locations.certificateAuthorities.setIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.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 *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6644,7 +1580,7 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) Do(opts if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Certificate{ + ret := &Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6656,38 +1592,28 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) Do(opts } return ret, nil // { - // "description": "Create a new Certificate in a given Project, Location from a particular CertificateAuthority.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificates", + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:setIamPolicy", // "httpMethod": "POST", - // "id": "privateca.projects.locations.certificateAuthorities.certificates.create", + // "id": "privateca.projects.locations.certificateAuthorities.setIamPolicy", // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "certificateId": { - // "description": "Optional. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a CertificateAuthority in the Enterprise CertificateAuthority.Tier, but is optional and its value is ignored otherwise.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the location and CertificateAuthority associated with the Certificate, in the format `projects/*/locations/*/certificateAuthorities/*`.", + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", // "required": true, // "type": "string" - // }, - // "requestId": { - // "description": "Optional. An 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. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he 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" // } // }, - // "path": "v1beta1/{+parent}/certificates", + // "path": "v1beta1/{+resource}:setIamPolicy", // "request": { - // "$ref": "Certificate" + // "$ref": "SetIamPolicyRequest" // }, // "response": { - // "$ref": "Certificate" + // "$ref": "Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -6696,95 +1622,96 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) Do(opts } -// method id "privateca.projects.locations.certificateAuthorities.certificates.get": +// method id "privateca.projects.locations.certificateAuthorities.testIamPermissions": -type ProjectsLocationsCertificateAuthoritiesCertificatesGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Returns a Certificate. +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. // -// - name: The name of the Certificate to get. -func (r *ProjectsLocationsCertificateAuthoritiesCertificatesService) Get(name string) *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall { - c := &ProjectsLocationsCertificateAuthoritiesCertificatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - resource: REQUIRED: The resource for which the policy detail is +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsCertificateAuthoritiesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall { + c := &ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest 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 *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall { +func (c *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall { 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 *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall { - 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 *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall { +func (c *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall { 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 *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) Header() http.Header { +func (c *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall) 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 + body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) + 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, "v1beta1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "privateca.projects.locations.certificateAuthorities.certificates.get" call. -// Exactly one of *Certificate or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Certificate.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 *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) Do(opts ...googleapi.CallOption) (*Certificate, error) { +// Do executes the "privateca.projects.locations.certificateAuthorities.testIamPermissions" call. +// Exactly one of *TestIamPermissionsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.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 *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6803,7 +1730,7 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) Do(opts ... if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Certificate{ + ret := &TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6815,25 +1742,28 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) Do(opts ... } return ret, nil // { - // "description": "Returns a Certificate.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificates/{certificatesId}", - // "httpMethod": "GET", - // "id": "privateca.projects.locations.certificateAuthorities.certificates.get", + // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "privateca.projects.locations.certificateAuthorities.testIamPermissions", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the Certificate to get.", + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificates/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+resource}:testIamPermissions", + // "request": { + // "$ref": "TestIamPermissionsRequest" + // }, // "response": { - // "$ref": "Certificate" + // "$ref": "TestIamPermissionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -6842,67 +1772,53 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) Do(opts ... } -// method id "privateca.projects.locations.certificateAuthorities.certificates.list": +// method id "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.getIamPolicy": -type ProjectsLocationsCertificateAuthoritiesCertificatesListCall struct { +type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall struct { s *Service - parent string + resource string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists Certificates. +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. // -// - parent: The resource name of the location associated with the -// Certificates, in the format -// `projects/*/locations/*/certificateauthorities/*`. -func (r *ProjectsLocationsCertificateAuthoritiesCertificatesService) List(parent string) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall { - c := &ProjectsLocationsCertificateAuthoritiesCertificatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": Only include resources -// that match the filter in the response. For details on supported -// filters and syntax, see Certificates Filtering documentation -// (https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#filtering_support). -func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Filter(filter string) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// OrderBy sets the optional parameter "orderBy": Specify how the -// results should be sorted. For details on supported fields and syntax, -// see Certificates Sorting documentation -// (https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#sorting_support). -func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) OrderBy(orderBy string) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": Limit on the number -// of Certificates to include in the response. Further Certificates can -// subsequently be obtained by including the -// ListCertificatesResponse.next_page_token in a subsequent request. If -// unspecified, the server will pick an appropriate default. -func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) PageSize(pageSize int64) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// - resource: REQUIRED: The resource for which the policy is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) GetIamPolicy(resource string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall { + c := &ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource return c } -// PageToken sets the optional parameter "pageToken": Pagination token, -// returned earlier via ListCertificatesResponse.next_page_token. -func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) PageToken(pageToken string) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall { - c.urlParams_.Set("pageToken", pageToken) +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that +// will be used to format the policy. Valid values are 0, 1, and 3. +// Requests specifying an invalid value will be rejected. Requests for +// policies with any conditional role bindings must specify version 3. +// Policies with no conditional role bindings may specify any valid +// value or leave the field unset. The policy in the response might use +// the policy version that you specified, or it might use a lower policy +// version. For example, if you specify version 3, but the policy has no +// conditional role bindings, the response uses version 1. To learn +// which resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) 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 *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall { +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6912,7 +1828,7 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Fields(s . // 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 *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall { +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } @@ -6920,21 +1836,21 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) IfNoneMatc // 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 *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall { +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall { 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 *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Header() http.Header { +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) 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_ { @@ -6947,7 +1863,7 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) doRequest( var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/certificates") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -6955,19 +1871,19 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) doRequest( } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "privateca.projects.locations.certificateAuthorities.certificates.list" call. -// Exactly one of *ListCertificatesResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *ListCertificatesResponse.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 *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Do(opts ...googleapi.CallOption) (*ListCertificatesResponse, error) { +// Do executes the "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.getIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6986,7 +1902,7 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Do(opts .. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListCertificatesResponse{ + ret := &Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6998,46 +1914,31 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Do(opts .. } return ret, nil // { - // "description": "Lists Certificates.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificates", + // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists/{certificateRevocationListsId}:getIamPolicy", // "httpMethod": "GET", - // "id": "privateca.projects.locations.certificateAuthorities.certificates.list", + // "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.getIamPolicy", // "parameterOrder": [ - // "parent" + // "resource" // ], // "parameters": { - // "filter": { - // "description": "Optional. Only include resources that match the filter in the response. For details on supported filters and syntax, see [Certificates Filtering documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#filtering_support).", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Optional. Specify how the results should be sorted. For details on supported fields and syntax, see [Certificates Sorting documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#sorting_support).", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Optional. Limit on the number of Certificates to include in the response. Further Certificates can subsequently be obtained by including the ListCertificatesResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.", + // "options.requestedPolicyVersion": { + // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", // "format": "int32", // "location": "query", // "type": "integer" // }, - // "pageToken": { - // "description": "Optional. Pagination token, returned earlier via ListCertificatesResponse.next_page_token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the location associated with the Certificates, in the format `projects/*/locations/*/certificateauthorities/*`.", + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/certificates", + // "path": "v1beta1/{+resource}:getIamPolicy", // "response": { - // "$ref": "ListCertificatesResponse" + // "$ref": "Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -7046,79 +1947,36 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Do(opts .. } -// 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 *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Pages(ctx context.Context, f func(*ListCertificatesResponse) 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 "privateca.projects.locations.certificateAuthorities.certificates.patch": +// method id "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.setIamPolicy": -type ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall struct { - s *Service - name string - certificate *Certificate - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Update a Certificate. Currently, the only field you can update -// is the labels field. +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. // -// - name: Output only. The resource path for this Certificate in the -// format -// `projects/*/locations/*/certificateAuthorities/*/certificates/*`. -func (r *ProjectsLocationsCertificateAuthoritiesCertificatesService) Patch(name string, certificate *Certificate) *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall { - c := &ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.certificate = certificate - return c -} - -// RequestId sets the optional parameter "requestId": An 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. The server will guarantee that for at least 60 -// minutes since the first request. For example, consider a situation -// where you make an initial request and t he 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 *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) RequestId(requestId string) *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall { - c.urlParams_.Set("requestId", requestId) - return c -} - -// UpdateMask sets the optional parameter "updateMask": Required. A list -// of fields to be updated in this request. -func (c *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// - resource: REQUIRED: The resource for which the policy is being +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall { + c := &ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest 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 *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall { +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7126,21 +1984,21 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) Fields(s // 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 *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall { +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall { 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 *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) Header() http.Header { +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall) 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_ { @@ -7148,34 +2006,34 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) doRequest } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.certificate) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) 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, "v1beta1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "privateca.projects.locations.certificateAuthorities.certificates.patch" call. -// Exactly one of *Certificate or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Certificate.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 *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) Do(opts ...googleapi.CallOption) (*Certificate, error) { +// Do executes the "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.setIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7194,7 +2052,7 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) Do(opts . if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Certificate{ + ret := &Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7206,39 +2064,28 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) Do(opts . } return ret, nil // { - // "description": "Update a Certificate. Currently, the only field you can update is the labels field.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificates/{certificatesId}", - // "httpMethod": "PATCH", - // "id": "privateca.projects.locations.certificateAuthorities.certificates.patch", + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists/{certificateRevocationListsId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.setIamPolicy", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "name": { - // "description": "Output only. The resource path for this Certificate in the format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.", + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificates/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+$", // "required": true, // "type": "string" - // }, - // "requestId": { - // "description": "Optional. An 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. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he 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" - // }, - // "updateMask": { - // "description": "Required. A list of fields to be updated in this request.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+resource}:setIamPolicy", // "request": { - // "$ref": "Certificate" + // "$ref": "SetIamPolicyRequest" // }, // "response": { - // "$ref": "Certificate" + // "$ref": "Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -7247,32 +2094,39 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) Do(opts . } -// method id "privateca.projects.locations.certificateAuthorities.certificates.revoke": +// method id "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.testIamPermissions": -type ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall struct { - s *Service - name string - revokecertificaterequest *RevokeCertificateRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Revoke: Revoke a Certificate. +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. // -// - name: The resource name for this Certificate in the format -// `projects/*/locations/*/certificateAuthorities/*/certificates/*`. -func (r *ProjectsLocationsCertificateAuthoritiesCertificatesService) Revoke(name string, revokecertificaterequest *RevokeCertificateRequest) *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall { - c := &ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.revokecertificaterequest = revokecertificaterequest +// - resource: REQUIRED: The resource for which the policy detail is +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall { + c := &ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest 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 *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall { +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7280,21 +2134,21 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall) Fields(s // 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 *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall { +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall { 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 *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall) Header() http.Header { +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall) 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_ { @@ -7302,14 +2156,14 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall) doReques } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.revokecertificaterequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) 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, "v1beta1/{+name}:revoke") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -7317,19 +2171,19 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall) doReques } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "privateca.projects.locations.certificateAuthorities.certificates.revoke" call. -// Exactly one of *Certificate or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Certificate.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 *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall) Do(opts ...googleapi.CallOption) (*Certificate, error) { +// Do executes the "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.testIamPermissions" call. +// Exactly one of *TestIamPermissionsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.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 *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7348,7 +2202,7 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall) Do(opts if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Certificate{ + ret := &TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7360,28 +2214,28 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall) Do(opts } return ret, nil // { - // "description": "Revoke a Certificate.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificates/{certificatesId}:revoke", + // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/certificateAuthorities/{certificateAuthoritiesId}/certificateRevocationLists/{certificateRevocationListsId}:testIamPermissions", // "httpMethod": "POST", - // "id": "privateca.projects.locations.certificateAuthorities.certificates.revoke", + // "id": "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.testIamPermissions", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "name": { - // "description": "Required. The resource name for this Certificate in the format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.", + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificates/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}:revoke", + // "path": "v1beta1/{+resource}:testIamPermissions", // "request": { - // "$ref": "RevokeCertificateRequest" + // "$ref": "TestIamPermissionsRequest" // }, // "response": { - // "$ref": "Certificate" + // "$ref": "TestIamPermissionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -7848,219 +2702,36 @@ type ProjectsLocationsOperationsListCall struct { // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { - c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { - 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 *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { - 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 *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { - 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 *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { - 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 *ProjectsLocationsOperationsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsOperationsListCall) 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, "v1beta1/{+name}/operations") - 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 "privateca.projects.locations.operations.list" call. -// Exactly one of *ListOperationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListOperationsResponse.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 *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, 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 := &ListOperationsResponse{ - 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 operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations", - // "httpMethod": "GET", - // "id": "privateca.projects.locations.operations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}/operations", - // "response": { - // "$ref": "ListOperationsResponse" - // }, - // "scopes": [ - // "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 *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) 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) - } + c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c } -// method id "privateca.projects.locations.reusableConfigs.get": +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} -type ProjectsLocationsReusableConfigsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c } -// Get: Returns a ReusableConfig. -// -// - name: The name of the ReusableConfigs to get. -func (r *ProjectsLocationsReusableConfigsService) Get(name string) *ProjectsLocationsReusableConfigsGetCall { - c := &ProjectsLocationsReusableConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { + 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 *ProjectsLocationsReusableConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsReusableConfigsGetCall { +func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -8070,7 +2741,7 @@ func (c *ProjectsLocationsReusableConfigsGetCall) Fields(s ...googleapi.Field) * // 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 *ProjectsLocationsReusableConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsReusableConfigsGetCall { +func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -8078,21 +2749,21 @@ func (c *ProjectsLocationsReusableConfigsGetCall) IfNoneMatch(entityTag string) // 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 *ProjectsLocationsReusableConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsReusableConfigsGetCall { +func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { 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 *ProjectsLocationsReusableConfigsGetCall) Header() http.Header { +func (c *ProjectsLocationsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsReusableConfigsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsOperationsListCall) 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_ { @@ -8105,7 +2776,7 @@ func (c *ProjectsLocationsReusableConfigsGetCall) doRequest(alt string) (*http.R var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -8118,14 +2789,14 @@ func (c *ProjectsLocationsReusableConfigsGetCall) doRequest(alt string) (*http.R return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "privateca.projects.locations.reusableConfigs.get" call. -// Exactly one of *ReusableConfig or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ReusableConfig.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use +// Do executes the "privateca.projects.locations.operations.list" call. +// Exactly one of *ListOperationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.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 *ProjectsLocationsReusableConfigsGetCall) Do(opts ...googleapi.CallOption) (*ReusableConfig, error) { +func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8144,7 +2815,7 @@ func (c *ProjectsLocationsReusableConfigsGetCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ReusableConfig{ + ret := &ListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8156,25 +2827,41 @@ func (c *ProjectsLocationsReusableConfigsGetCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Returns a ReusableConfig.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reusableConfigs/{reusableConfigsId}", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", - // "id": "privateca.projects.locations.reusableConfigs.get", + // "id": "privateca.projects.locations.operations.list", // "parameterOrder": [ // "name" // ], // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, // "name": { - // "description": "Required. The name of the ReusableConfigs to get.", + // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/reusableConfigs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+name}/operations", // "response": { - // "$ref": "ReusableConfig" + // "$ref": "ListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -8183,6 +2870,27 @@ func (c *ProjectsLocationsReusableConfigsGetCall) Do(opts ...googleapi.CallOptio } +// 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 *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) 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 "privateca.projects.locations.reusableConfigs.getIamPolicy": type ProjectsLocationsReusableConfigsGetIamPolicyCall struct { @@ -8358,226 +3066,6 @@ func (c *ProjectsLocationsReusableConfigsGetIamPolicyCall) Do(opts ...googleapi. } -// method id "privateca.projects.locations.reusableConfigs.list": - -type ProjectsLocationsReusableConfigsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists ReusableConfigs. -// -// - parent: The resource name of the location associated with the -// ReusableConfigs, in the format `projects/*/locations/*`. -func (r *ProjectsLocationsReusableConfigsService) List(parent string) *ProjectsLocationsReusableConfigsListCall { - c := &ProjectsLocationsReusableConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": Only include resources -// that match the filter in the response. -func (c *ProjectsLocationsReusableConfigsListCall) Filter(filter string) *ProjectsLocationsReusableConfigsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// OrderBy sets the optional parameter "orderBy": Specify how the -// results should be sorted. -func (c *ProjectsLocationsReusableConfigsListCall) OrderBy(orderBy string) *ProjectsLocationsReusableConfigsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": Limit on the number -// of ReusableConfigs to include in the response. Further -// ReusableConfigs can subsequently be obtained by including the -// ListReusableConfigsResponse.next_page_token in a subsequent request. -// If unspecified, the server will pick an appropriate default. -func (c *ProjectsLocationsReusableConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsReusableConfigsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": Pagination token, -// returned earlier via ListReusableConfigsResponse.next_page_token. -func (c *ProjectsLocationsReusableConfigsListCall) PageToken(pageToken string) *ProjectsLocationsReusableConfigsListCall { - 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 *ProjectsLocationsReusableConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsReusableConfigsListCall { - 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 *ProjectsLocationsReusableConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsReusableConfigsListCall { - 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 *ProjectsLocationsReusableConfigsListCall) Context(ctx context.Context) *ProjectsLocationsReusableConfigsListCall { - 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 *ProjectsLocationsReusableConfigsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsReusableConfigsListCall) 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, "v1beta1/{+parent}/reusableConfigs") - 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 "privateca.projects.locations.reusableConfigs.list" call. -// Exactly one of *ListReusableConfigsResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *ListReusableConfigsResponse.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 *ProjectsLocationsReusableConfigsListCall) Do(opts ...googleapi.CallOption) (*ListReusableConfigsResponse, 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 := &ListReusableConfigsResponse{ - 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 ReusableConfigs.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reusableConfigs", - // "httpMethod": "GET", - // "id": "privateca.projects.locations.reusableConfigs.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Optional. Only include resources that match the filter in the response.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Optional. Specify how the results should be sorted.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Optional. Limit on the number of ReusableConfigs to include in the response. Further ReusableConfigs can subsequently be obtained by including the ListReusableConfigsResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. Pagination token, returned earlier via ListReusableConfigsResponse.next_page_token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the location associated with the ReusableConfigs, in the format `projects/*/locations/*`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/reusableConfigs", - // "response": { - // "$ref": "ListReusableConfigsResponse" - // }, - // "scopes": [ - // "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 *ProjectsLocationsReusableConfigsListCall) Pages(ctx context.Context, f func(*ListReusableConfigsResponse) 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 "privateca.projects.locations.reusableConfigs.setIamPolicy": type ProjectsLocationsReusableConfigsSetIamPolicyCall struct { diff --git a/realtimebidding/v1/realtimebidding-api.json b/realtimebidding/v1/realtimebidding-api.json index 7356b321dbc..572030333ff 100644 --- a/realtimebidding/v1/realtimebidding-api.json +++ b/realtimebidding/v1/realtimebidding-api.json @@ -1305,7 +1305,7 @@ } } }, - "revision": "20221108", + "revision": "20230209", "rootUrl": "https://realtimebidding.googleapis.com/", "schemas": { "ActivatePretargetingConfigRequest": { @@ -2262,27 +2262,13 @@ "BID_PROTOCOL_UNSPECIFIED", "GOOGLE_RTB", "OPENRTB_JSON", - "OPENRTB_PROTOBUF", - "OPENRTB_2_2", - "OPENRTB_2_3", - "OPENRTB_PROTOBUF_2_3", - "OPENRTB_2_4", - "OPENRTB_PROTOBUF_2_4", - "OPENRTB_2_5", - "OPENRTB_PROTOBUF_2_5" + "OPENRTB_PROTOBUF" ], "enumDescriptions": [ "Placeholder for undefined bid protocol. This value should not be used.", "Google RTB protocol / Protobuf encoding.", "OpenRTB / JSON encoding (unversioned/latest).", - "OpenRTB / Protobuf encoding (unversioned/latest).", - "Deprecated: Use OPENRTB_JSON.", - "Deprecated: Use OPENRTB_JSON.", - "Deprecated: Use OPENRTB_PROTOBUF.", - "Deprecated: Use OPENRTB_JSON.", - "Deprecated: Use OPENRTB_PROTOBUF.", - "Deprecated: Use OPENRTB_JSON.", - "Deprecated: Use OPENRTB_PROTOBUF." + "OpenRTB / Protobuf encoding (unversioned/latest)." ], "type": "string" }, diff --git a/realtimebidding/v1/realtimebidding-gen.go b/realtimebidding/v1/realtimebidding-gen.go index 4eca5c49759..7055de3c8ef 100644 --- a/realtimebidding/v1/realtimebidding-gen.go +++ b/realtimebidding/v1/realtimebidding-gen.go @@ -1548,13 +1548,6 @@ type Endpoint struct { // "OPENRTB_JSON" - OpenRTB / JSON encoding (unversioned/latest). // "OPENRTB_PROTOBUF" - OpenRTB / Protobuf encoding // (unversioned/latest). - // "OPENRTB_2_2" - Deprecated: Use OPENRTB_JSON. - // "OPENRTB_2_3" - Deprecated: Use OPENRTB_JSON. - // "OPENRTB_PROTOBUF_2_3" - Deprecated: Use OPENRTB_PROTOBUF. - // "OPENRTB_2_4" - Deprecated: Use OPENRTB_JSON. - // "OPENRTB_PROTOBUF_2_4" - Deprecated: Use OPENRTB_PROTOBUF. - // "OPENRTB_2_5" - Deprecated: Use OPENRTB_JSON. - // "OPENRTB_PROTOBUF_2_5" - Deprecated: Use OPENRTB_PROTOBUF. BidProtocol string `json:"bidProtocol,omitempty"` // MaximumQps: The maximum number of queries per second allowed to be diff --git a/retail/v2/retail-api.json b/retail/v2/retail-api.json index 7bba31f5a2a..94a384363a0 100644 --- a/retail/v2/retail-api.json +++ b/retail/v2/retail-api.json @@ -2001,7 +2001,7 @@ } } }, - "revision": "20230126", + "revision": "20230202", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -3360,7 +3360,7 @@ "id": "GoogleCloudRetailV2PredictRequest", "properties": { "filter": { - "description": "Filter for restricting prediction results with a length limit of 5,000 characters. Accepts values for tags and the `filterOutOfStockItems` flag. * Tag expressions. Restricts predictions to products that match all of the specified tags. Boolean operators `OR` and `NOT` are supported if the expression is enclosed in parentheses, and must be separated from the tag values by a space. `-\"tagA\"` is also supported and is equivalent to `NOT \"tagA\"`. Tag values must be double quoted UTF-8 encoded strings with a size limit of 1,000 characters. Note: \"Recently viewed\" models don't support tag filtering at the moment. * filterOutOfStockItems. Restricts predictions to products that do not have a stockState value of OUT_OF_STOCK. Examples: * tag=(\"Red\" OR \"Blue\") tag=\"New-Arrival\" tag=(NOT \"promotional\") * filterOutOfStockItems tag=(-\"promotional\") * filterOutOfStockItems If your filter blocks all prediction results, the API will return *no* results. If instead you want empty result sets to return generic (unfiltered) popular products, set `strictFiltering` to False in `PredictRequest.params`. Note that the API will never return items with storageStatus of \"EXPIRED\" or \"DELETED\" regardless of filter choices. If `filterSyntaxV2` is set to true under the `params` field, then attribute-based expressions are expected instead of the above described tag-based syntax. Examples: * (colors: ANY(\"Red\", \"Blue\")) AND NOT (categories: ANY(\"Phones\")) * (availability: ANY(\"IN_STOCK\")) AND (colors: ANY(\"Red\") OR categories: ANY(\"Phones\"))", + "description": "Filter for restricting prediction results with a length limit of 5,000 characters. Accepts values for tags and the `filterOutOfStockItems` flag. * Tag expressions. Restricts predictions to products that match all of the specified tags. Boolean operators `OR` and `NOT` are supported if the expression is enclosed in parentheses, and must be separated from the tag values by a space. `-\"tagA\"` is also supported and is equivalent to `NOT \"tagA\"`. Tag values must be double quoted UTF-8 encoded strings with a size limit of 1,000 characters. Note: \"Recently viewed\" models don't support tag filtering at the moment. * filterOutOfStockItems. Restricts predictions to products that do not have a stockState value of OUT_OF_STOCK. Examples: * tag=(\"Red\" OR \"Blue\") tag=\"New-Arrival\" tag=(NOT \"promotional\") * filterOutOfStockItems tag=(-\"promotional\") * filterOutOfStockItems If your filter blocks all prediction results, the API will return *no* results. If instead you want empty result sets to return generic (unfiltered) popular products, set `strictFiltering` to False in `PredictRequest.params`. Note that the API will never return items with storageStatus of \"EXPIRED\" or \"DELETED\" regardless of filter choices. If `filterSyntaxV2` is set to true under the `params` field, then attribute-based expressions are expected instead of the above described tag-based syntax. Examples: * (colors: ANY(\"Red\", \"Blue\")) AND NOT (categories: ANY(\"Phones\")) * (brands: ANY(\"Pixel\")) AND (colors: ANY(\"Red\") OR categories: ANY(\"Phones\")) For more information, see [Filter recommendations](https://cloud.google.com/retail/docs/filter-recs).", "type": "string" }, "labels": { diff --git a/retail/v2/retail-gen.go b/retail/v2/retail-gen.go index 0417c883116..d99a8fedf10 100644 --- a/retail/v2/retail-gen.go +++ b/retail/v2/retail-gen.go @@ -2890,8 +2890,9 @@ type GoogleCloudRetailV2PredictRequest struct { // true under the `params` field, then attribute-based expressions are // expected instead of the above described tag-based syntax. Examples: * // (colors: ANY("Red", "Blue")) AND NOT (categories: ANY("Phones")) * - // (availability: ANY("IN_STOCK")) AND (colors: ANY("Red") OR - // categories: ANY("Phones")) + // (brands: ANY("Pixel")) AND (colors: ANY("Red") OR categories: + // ANY("Phones")) For more information, see Filter recommendations + // (https://cloud.google.com/retail/docs/filter-recs). Filter string `json:"filter,omitempty"` // Labels: The labels applied to a resource must meet the following diff --git a/retail/v2alpha/retail-api.json b/retail/v2alpha/retail-api.json index a52ff5db21e..1594e98bb97 100644 --- a/retail/v2alpha/retail-api.json +++ b/retail/v2alpha/retail-api.json @@ -1231,6 +1231,31 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "get": { + "description": "Gets a model.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/models/{modelsId}", + "httpMethod": "GET", + "id": "retail.projects.locations.catalogs.models.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the Model to get. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog}/models/{model_id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/models/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha/{+name}", + "response": { + "$ref": "GoogleCloudRetailV2alphaModel" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { "description": "Lists all the models linked to this event store.", "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/models", @@ -2105,7 +2130,7 @@ } } }, - "revision": "20230126", + "revision": "20230202", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -4200,7 +4225,7 @@ "id": "GoogleCloudRetailV2alphaPredictRequest", "properties": { "filter": { - "description": "Filter for restricting prediction results with a length limit of 5,000 characters. Accepts values for tags and the `filterOutOfStockItems` flag. * Tag expressions. Restricts predictions to products that match all of the specified tags. Boolean operators `OR` and `NOT` are supported if the expression is enclosed in parentheses, and must be separated from the tag values by a space. `-\"tagA\"` is also supported and is equivalent to `NOT \"tagA\"`. Tag values must be double quoted UTF-8 encoded strings with a size limit of 1,000 characters. Note: \"Recently viewed\" models don't support tag filtering at the moment. * filterOutOfStockItems. Restricts predictions to products that do not have a stockState value of OUT_OF_STOCK. Examples: * tag=(\"Red\" OR \"Blue\") tag=\"New-Arrival\" tag=(NOT \"promotional\") * filterOutOfStockItems tag=(-\"promotional\") * filterOutOfStockItems If your filter blocks all prediction results, the API will return *no* results. If instead you want empty result sets to return generic (unfiltered) popular products, set `strictFiltering` to False in `PredictRequest.params`. Note that the API will never return items with storageStatus of \"EXPIRED\" or \"DELETED\" regardless of filter choices. If `filterSyntaxV2` is set to true under the `params` field, then attribute-based expressions are expected instead of the above described tag-based syntax. Examples: * (colors: ANY(\"Red\", \"Blue\")) AND NOT (categories: ANY(\"Phones\")) * (availability: ANY(\"IN_STOCK\")) AND (colors: ANY(\"Red\") OR categories: ANY(\"Phones\"))", + "description": "Filter for restricting prediction results with a length limit of 5,000 characters. Accepts values for tags and the `filterOutOfStockItems` flag. * Tag expressions. Restricts predictions to products that match all of the specified tags. Boolean operators `OR` and `NOT` are supported if the expression is enclosed in parentheses, and must be separated from the tag values by a space. `-\"tagA\"` is also supported and is equivalent to `NOT \"tagA\"`. Tag values must be double quoted UTF-8 encoded strings with a size limit of 1,000 characters. Note: \"Recently viewed\" models don't support tag filtering at the moment. * filterOutOfStockItems. Restricts predictions to products that do not have a stockState value of OUT_OF_STOCK. Examples: * tag=(\"Red\" OR \"Blue\") tag=\"New-Arrival\" tag=(NOT \"promotional\") * filterOutOfStockItems tag=(-\"promotional\") * filterOutOfStockItems If your filter blocks all prediction results, the API will return *no* results. If instead you want empty result sets to return generic (unfiltered) popular products, set `strictFiltering` to False in `PredictRequest.params`. Note that the API will never return items with storageStatus of \"EXPIRED\" or \"DELETED\" regardless of filter choices. If `filterSyntaxV2` is set to true under the `params` field, then attribute-based expressions are expected instead of the above described tag-based syntax. Examples: * (colors: ANY(\"Red\", \"Blue\")) AND NOT (categories: ANY(\"Phones\")) * (brands: ANY(\"Pixel\")) AND (colors: ANY(\"Red\") OR categories: ANY(\"Phones\")) For more information, see [Filter recommendations](https://cloud.google.com/retail/docs/filter-recs).", "type": "string" }, "labels": { diff --git a/retail/v2alpha/retail-gen.go b/retail/v2alpha/retail-gen.go index 7366c04d0b2..f430b644549 100644 --- a/retail/v2alpha/retail-gen.go +++ b/retail/v2alpha/retail-gen.go @@ -4268,8 +4268,9 @@ type GoogleCloudRetailV2alphaPredictRequest struct { // true under the `params` field, then attribute-based expressions are // expected instead of the above described tag-based syntax. Examples: * // (colors: ANY("Red", "Blue")) AND NOT (categories: ANY("Phones")) * - // (availability: ANY("IN_STOCK")) AND (colors: ANY("Red") OR - // categories: ANY("Phones")) + // (brands: ANY("Pixel")) AND (colors: ANY("Red") OR categories: + // ANY("Phones")) For more information, see Filter recommendations + // (https://cloud.google.com/retail/docs/filter-recs). Filter string `json:"filter,omitempty"` // Labels: The labels applied to a resource must meet the following @@ -14673,6 +14674,154 @@ func (c *ProjectsLocationsCatalogsModelsDeleteCall) Do(opts ...googleapi.CallOpt } +// method id "retail.projects.locations.catalogs.models.get": + +type ProjectsLocationsCatalogsModelsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a model. +// +// - name: The resource name of the Model to get. Format: +// `projects/{project_number}/locations/{location_id}/catalogs/{catalog +// }/models/{model_id}`. +func (r *ProjectsLocationsCatalogsModelsService) Get(name string) *ProjectsLocationsCatalogsModelsGetCall { + c := &ProjectsLocationsCatalogsModelsGetCall{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 *ProjectsLocationsCatalogsModelsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsModelsGetCall { + 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 *ProjectsLocationsCatalogsModelsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCatalogsModelsGetCall { + 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 *ProjectsLocationsCatalogsModelsGetCall) Context(ctx context.Context) *ProjectsLocationsCatalogsModelsGetCall { + 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 *ProjectsLocationsCatalogsModelsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsModelsGetCall) 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, "v2alpha/{+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 "retail.projects.locations.catalogs.models.get" call. +// Exactly one of *GoogleCloudRetailV2alphaModel or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudRetailV2alphaModel.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 *ProjectsLocationsCatalogsModelsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRetailV2alphaModel, 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 := &GoogleCloudRetailV2alphaModel{ + 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 model.", + // "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/models/{modelsId}", + // "httpMethod": "GET", + // "id": "retail.projects.locations.catalogs.models.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name of the Model to get. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog}/models/{model_id}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/models/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2alpha/{+name}", + // "response": { + // "$ref": "GoogleCloudRetailV2alphaModel" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "retail.projects.locations.catalogs.models.list": type ProjectsLocationsCatalogsModelsListCall struct { diff --git a/retail/v2beta/retail-api.json b/retail/v2beta/retail-api.json index 63ef0508152..5ebf980c709 100644 --- a/retail/v2beta/retail-api.json +++ b/retail/v2beta/retail-api.json @@ -1155,6 +1155,31 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "get": { + "description": "Gets a model.", + "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/models/{modelsId}", + "httpMethod": "GET", + "id": "retail.projects.locations.catalogs.models.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the Model to get. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog}/models/{model_id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/models/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2beta/{+name}", + "response": { + "$ref": "GoogleCloudRetailV2betaModel" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { "description": "Lists all the models linked to this event store.", "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/models", @@ -2029,7 +2054,7 @@ } } }, - "revision": "20230126", + "revision": "20230202", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -4661,7 +4686,7 @@ "id": "GoogleCloudRetailV2betaPredictRequest", "properties": { "filter": { - "description": "Filter for restricting prediction results with a length limit of 5,000 characters. Accepts values for tags and the `filterOutOfStockItems` flag. * Tag expressions. Restricts predictions to products that match all of the specified tags. Boolean operators `OR` and `NOT` are supported if the expression is enclosed in parentheses, and must be separated from the tag values by a space. `-\"tagA\"` is also supported and is equivalent to `NOT \"tagA\"`. Tag values must be double quoted UTF-8 encoded strings with a size limit of 1,000 characters. Note: \"Recently viewed\" models don't support tag filtering at the moment. * filterOutOfStockItems. Restricts predictions to products that do not have a stockState value of OUT_OF_STOCK. Examples: * tag=(\"Red\" OR \"Blue\") tag=\"New-Arrival\" tag=(NOT \"promotional\") * filterOutOfStockItems tag=(-\"promotional\") * filterOutOfStockItems If your filter blocks all prediction results, the API will return *no* results. If instead you want empty result sets to return generic (unfiltered) popular products, set `strictFiltering` to False in `PredictRequest.params`. Note that the API will never return items with storageStatus of \"EXPIRED\" or \"DELETED\" regardless of filter choices. If `filterSyntaxV2` is set to true under the `params` field, then attribute-based expressions are expected instead of the above described tag-based syntax. Examples: * (colors: ANY(\"Red\", \"Blue\")) AND NOT (categories: ANY(\"Phones\")) * (availability: ANY(\"IN_STOCK\")) AND (colors: ANY(\"Red\") OR categories: ANY(\"Phones\"))", + "description": "Filter for restricting prediction results with a length limit of 5,000 characters. Accepts values for tags and the `filterOutOfStockItems` flag. * Tag expressions. Restricts predictions to products that match all of the specified tags. Boolean operators `OR` and `NOT` are supported if the expression is enclosed in parentheses, and must be separated from the tag values by a space. `-\"tagA\"` is also supported and is equivalent to `NOT \"tagA\"`. Tag values must be double quoted UTF-8 encoded strings with a size limit of 1,000 characters. Note: \"Recently viewed\" models don't support tag filtering at the moment. * filterOutOfStockItems. Restricts predictions to products that do not have a stockState value of OUT_OF_STOCK. Examples: * tag=(\"Red\" OR \"Blue\") tag=\"New-Arrival\" tag=(NOT \"promotional\") * filterOutOfStockItems tag=(-\"promotional\") * filterOutOfStockItems If your filter blocks all prediction results, the API will return *no* results. If instead you want empty result sets to return generic (unfiltered) popular products, set `strictFiltering` to False in `PredictRequest.params`. Note that the API will never return items with storageStatus of \"EXPIRED\" or \"DELETED\" regardless of filter choices. If `filterSyntaxV2` is set to true under the `params` field, then attribute-based expressions are expected instead of the above described tag-based syntax. Examples: * (colors: ANY(\"Red\", \"Blue\")) AND NOT (categories: ANY(\"Phones\")) * (brands: ANY(\"Pixel\")) AND (colors: ANY(\"Red\") OR categories: ANY(\"Phones\")) For more information, see [Filter recommendations](https://cloud.google.com/retail/docs/filter-recs).", "type": "string" }, "labels": { diff --git a/retail/v2beta/retail-gen.go b/retail/v2beta/retail-gen.go index 620a43c1fb6..15ffcb61b85 100644 --- a/retail/v2beta/retail-gen.go +++ b/retail/v2beta/retail-gen.go @@ -5187,8 +5187,9 @@ type GoogleCloudRetailV2betaPredictRequest struct { // true under the `params` field, then attribute-based expressions are // expected instead of the above described tag-based syntax. Examples: * // (colors: ANY("Red", "Blue")) AND NOT (categories: ANY("Phones")) * - // (availability: ANY("IN_STOCK")) AND (colors: ANY("Red") OR - // categories: ANY("Phones")) + // (brands: ANY("Pixel")) AND (colors: ANY("Red") OR categories: + // ANY("Phones")) For more information, see Filter recommendations + // (https://cloud.google.com/retail/docs/filter-recs). Filter string `json:"filter,omitempty"` // Labels: The labels applied to a resource must meet the following @@ -14183,6 +14184,154 @@ func (c *ProjectsLocationsCatalogsModelsDeleteCall) Do(opts ...googleapi.CallOpt } +// method id "retail.projects.locations.catalogs.models.get": + +type ProjectsLocationsCatalogsModelsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a model. +// +// - name: The resource name of the Model to get. Format: +// `projects/{project_number}/locations/{location_id}/catalogs/{catalog +// }/models/{model_id}`. +func (r *ProjectsLocationsCatalogsModelsService) Get(name string) *ProjectsLocationsCatalogsModelsGetCall { + c := &ProjectsLocationsCatalogsModelsGetCall{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 *ProjectsLocationsCatalogsModelsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsModelsGetCall { + 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 *ProjectsLocationsCatalogsModelsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCatalogsModelsGetCall { + 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 *ProjectsLocationsCatalogsModelsGetCall) Context(ctx context.Context) *ProjectsLocationsCatalogsModelsGetCall { + 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 *ProjectsLocationsCatalogsModelsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsModelsGetCall) 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, "v2beta/{+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 "retail.projects.locations.catalogs.models.get" call. +// Exactly one of *GoogleCloudRetailV2betaModel or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudRetailV2betaModel.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 *ProjectsLocationsCatalogsModelsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRetailV2betaModel, 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 := &GoogleCloudRetailV2betaModel{ + 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 model.", + // "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/models/{modelsId}", + // "httpMethod": "GET", + // "id": "retail.projects.locations.catalogs.models.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name of the Model to get. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog}/models/{model_id}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/models/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2beta/{+name}", + // "response": { + // "$ref": "GoogleCloudRetailV2betaModel" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "retail.projects.locations.catalogs.models.list": type ProjectsLocationsCatalogsModelsListCall struct { diff --git a/run/v2/run-api.json b/run/v2/run-api.json index d9301afd417..5585a4e23b6 100644 --- a/run/v2/run-api.json +++ b/run/v2/run-api.json @@ -1087,7 +1087,7 @@ } } }, - "revision": "20230129", + "revision": "20230205", "rootUrl": "https://run.googleapis.com/", "schemas": { "GoogleCloudRunV2BinaryAuthorization": { @@ -1637,6 +1637,11 @@ "path": { "description": "Path to access on the HTTP server. Defaults to '/'.", "type": "string" + }, + "port": { + "description": "Port number to access on the container. Must be in the range 1 to 65535.", + "format": "int32", + "type": "integer" } }, "type": "object" diff --git a/run/v2/run-gen.go b/run/v2/run-gen.go index 8d788f1db99..fcb36df55ae 100644 --- a/run/v2/run-gen.go +++ b/run/v2/run-gen.go @@ -970,6 +970,10 @@ type GoogleCloudRunV2HTTPGetAction struct { // Path: Path to access on the HTTP server. Defaults to '/'. Path string `json:"path,omitempty"` + // Port: Port number to access on the container. Must be in the range 1 + // to 65535. + Port int64 `json:"port,omitempty"` + // ForceSendFields is a list of field names (e.g. "HttpHeaders") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/secretmanager/v1beta1/secretmanager-api.json b/secretmanager/v1beta1/secretmanager-api.json index c60b83e6929..437825fbdb0 100644 --- a/secretmanager/v1beta1/secretmanager-api.json +++ b/secretmanager/v1beta1/secretmanager-api.json @@ -628,7 +628,7 @@ } } }, - "revision": "20220826", + "revision": "20230204", "rootUrl": "https://secretmanager.googleapis.com/", "schemas": { "AccessSecretVersionResponse": { @@ -720,7 +720,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, diff --git a/secretmanager/v1beta1/secretmanager-gen.go b/secretmanager/v1beta1/secretmanager-gen.go index e8e61693d1c..f833ea271ab 100644 --- a/secretmanager/v1beta1/secretmanager-gen.go +++ b/secretmanager/v1beta1/secretmanager-gen.go @@ -379,7 +379,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -396,9 +398,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. diff --git a/servicecontrol/v1/servicecontrol-api.json b/servicecontrol/v1/servicecontrol-api.json index 3b4fbd23881..d722df1cd7a 100644 --- a/servicecontrol/v1/servicecontrol-api.json +++ b/servicecontrol/v1/servicecontrol-api.json @@ -197,7 +197,7 @@ } } }, - "revision": "20230104", + "revision": "20230127", "rootUrl": "https://servicecontrol.googleapis.com/", "schemas": { "AllocateInfo": { @@ -646,6 +646,10 @@ "$ref": "CheckInfo", "description": "Feedback data returned from the server during processing a Check request." }, + "esfMigrationServerOverride": { + "$ref": "EsfMigrationServerOverride", + "description": "Esf migration server override during check v2 migration. This is temporary and Chemist internal only." + }, "operationId": { "description": "The same operation_id value used in the CheckRequest. Used for logging and diagnostics purposes.", "type": "string" @@ -759,6 +763,27 @@ }, "type": "object" }, + "EsfMigrationServerOverride": { + "description": "Esf migration server override during chemist check v2 migration", + "id": "EsfMigrationServerOverride", + "properties": { + "overrideMode": { + "description": "Esf migration override mode", + "enum": [ + "ESF_MIGRATION_OVERRIDE_MODE_UNSPECIFIED", + "DRY_RUN", + "NO_OVERRIDE" + ], + "enumDescriptions": [ + "Default, ESF should use the mode that is determined by the configuration.", + "ESF should send 95% v1 request and 5% dry run request.", + "Same as ESF_MIGRATION_OVERRIDE_MODE_UNSPECIFIED, remove the override mode. This is used for safe unpush." + ], + "type": "string" + } + }, + "type": "object" + }, "Exemplar": { "description": "Exemplars are example points that may be used to annotate aggregated distribution values. They are metadata that gives information about a particular value added to a Distribution bucket, such as a trace ID that was active when a value was added. They may contain further information, such as a example values and timestamps, origin, etc.", "id": "Exemplar", diff --git a/servicecontrol/v1/servicecontrol-gen.go b/servicecontrol/v1/servicecontrol-gen.go index e334d0d6558..358c015c129 100644 --- a/servicecontrol/v1/servicecontrol-gen.go +++ b/servicecontrol/v1/servicecontrol-gen.go @@ -846,6 +846,10 @@ type CheckResponse struct { // Check request. CheckInfo *CheckInfo `json:"checkInfo,omitempty"` + // EsfMigrationServerOverride: Esf migration server override during + // check v2 migration. This is temporary and Chemist internal only. + EsfMigrationServerOverride *EsfMigrationServerOverride `json:"esfMigrationServerOverride,omitempty"` + // OperationId: The same operation_id value used in the CheckRequest. // Used for logging and diagnostics purposes. OperationId string `json:"operationId,omitempty"` @@ -1034,6 +1038,42 @@ func (s *Distribution) UnmarshalJSON(data []byte) error { return nil } +// EsfMigrationServerOverride: Esf migration server override during +// chemist check v2 migration +type EsfMigrationServerOverride struct { + // OverrideMode: Esf migration override mode + // + // Possible values: + // "ESF_MIGRATION_OVERRIDE_MODE_UNSPECIFIED" - Default, ESF should use + // the mode that is determined by the configuration. + // "DRY_RUN" - ESF should send 95% v1 request and 5% dry run request. + // "NO_OVERRIDE" - Same as ESF_MIGRATION_OVERRIDE_MODE_UNSPECIFIED, + // remove the override mode. This is used for safe unpush. + OverrideMode string `json:"overrideMode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OverrideMode") 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. "OverrideMode") 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 *EsfMigrationServerOverride) MarshalJSON() ([]byte, error) { + type NoMethod EsfMigrationServerOverride + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Exemplar: Exemplars are example points that may be used to annotate // aggregated distribution values. They are metadata that gives // information about a particular value added to a Distribution bucket, diff --git a/servicecontrol/v2/servicecontrol-api.json b/servicecontrol/v2/servicecontrol-api.json index 863be1ff51d..f9b21dda15d 100644 --- a/servicecontrol/v2/servicecontrol-api.json +++ b/servicecontrol/v2/servicecontrol-api.json @@ -169,7 +169,7 @@ } } }, - "revision": "20221014", + "revision": "20230127", "rootUrl": "https://servicecontrol.googleapis.com/", "schemas": { "Api": { @@ -460,6 +460,10 @@ "description": "Response message for the Check method.", "id": "CheckResponse", "properties": { + "esfMigrationServerOverride": { + "$ref": "EsfMigrationServerOverride", + "description": "Esf migration server override during check v2 migration. This is temporary and Chemist internal only." + }, "headers": { "additionalProperties": { "type": "string" @@ -474,6 +478,27 @@ }, "type": "object" }, + "EsfMigrationServerOverride": { + "description": "Esf migration server override during chemist check v2 migration", + "id": "EsfMigrationServerOverride", + "properties": { + "overrideMode": { + "description": "Esf migration override mode", + "enum": [ + "ESF_MIGRATION_OVERRIDE_MODE_UNSPECIFIED", + "DRY_RUN", + "NO_OVERRIDE" + ], + "enumDescriptions": [ + "Default, ESF should use the mode that is determined by the configuration.", + "ESF should send 95% v1 request and 5% dry run request.", + "Same as ESF_MIGRATION_OVERRIDE_MODE_UNSPECIFIED, remove the override mode. This is used for safe unpush." + ], + "type": "string" + } + }, + "type": "object" + }, "FirstPartyPrincipal": { "description": "First party identity principal.", "id": "FirstPartyPrincipal", diff --git a/servicecontrol/v2/servicecontrol-gen.go b/servicecontrol/v2/servicecontrol-gen.go index 08d3e3529ef..dcef2faaeea 100644 --- a/servicecontrol/v2/servicecontrol-gen.go +++ b/servicecontrol/v2/servicecontrol-gen.go @@ -605,6 +605,10 @@ func (s *CheckRequest) MarshalJSON() ([]byte, error) { // CheckResponse: Response message for the Check method. type CheckResponse struct { + // EsfMigrationServerOverride: Esf migration server override during + // check v2 migration. This is temporary and Chemist internal only. + EsfMigrationServerOverride *EsfMigrationServerOverride `json:"esfMigrationServerOverride,omitempty"` + // Headers: Returns a set of request contexts generated from the // `CheckRequest`. Headers map[string]string `json:"headers,omitempty"` @@ -618,7 +622,45 @@ type CheckResponse struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Headers") to + // ForceSendFields is a list of field names (e.g. + // "EsfMigrationServerOverride") 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. + // "EsfMigrationServerOverride") 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 *CheckResponse) MarshalJSON() ([]byte, error) { + type NoMethod CheckResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EsfMigrationServerOverride: Esf migration server override during +// chemist check v2 migration +type EsfMigrationServerOverride struct { + // OverrideMode: Esf migration override mode + // + // Possible values: + // "ESF_MIGRATION_OVERRIDE_MODE_UNSPECIFIED" - Default, ESF should use + // the mode that is determined by the configuration. + // "DRY_RUN" - ESF should send 95% v1 request and 5% dry run request. + // "NO_OVERRIDE" - Same as ESF_MIGRATION_OVERRIDE_MODE_UNSPECIFIED, + // remove the override mode. This is used for safe unpush. + OverrideMode string `json:"overrideMode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OverrideMode") 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 @@ -626,17 +668,17 @@ type CheckResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Headers") 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 + // NullFields is a list of field names (e.g. "OverrideMode") 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 *CheckResponse) MarshalJSON() ([]byte, error) { - type NoMethod CheckResponse +func (s *EsfMigrationServerOverride) MarshalJSON() ([]byte, error) { + type NoMethod EsfMigrationServerOverride raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } diff --git a/tpu/v2alpha1/tpu-api.json b/tpu/v2alpha1/tpu-api.json index b4ae5f776e8..020da8e6d35 100644 --- a/tpu/v2alpha1/tpu-api.json +++ b/tpu/v2alpha1/tpu-api.json @@ -892,13 +892,47 @@ } } }, - "revision": "20230105", + "revision": "20230131", "rootUrl": "https://tpu.googleapis.com/", "schemas": { + "AcceleratorConfig": { + "description": "A TPU accelerator configuration.", + "id": "AcceleratorConfig", + "properties": { + "topology": { + "description": "Required. Topology of TPU in chips.", + "type": "string" + }, + "type": { + "description": "Required. Type of TPU.", + "enum": [ + "TYPE_UNSPECIFIED", + "V2", + "V3", + "V4" + ], + "enumDescriptions": [ + "Unspecified version.", + "TPU v2.", + "TPU v3.", + "TPU v4." + ], + "type": "string" + } + }, + "type": "object" + }, "AcceleratorType": { "description": "A accelerator type that a Node can be configured with.", "id": "AcceleratorType", "properties": { + "acceleratorConfigs": { + "description": "The accelerator config.", + "items": { + "$ref": "AcceleratorConfig" + }, + "type": "array" + }, "name": { "description": "The resource name.", "type": "string" @@ -1341,6 +1375,10 @@ "description": "A TPU instance.", "id": "Node", "properties": { + "acceleratorConfig": { + "$ref": "AcceleratorConfig", + "description": "The AccleratorConfig for the TPU Node." + }, "acceleratorType": { "description": "The type of hardware accelerators associated with this node.", "type": "string" diff --git a/tpu/v2alpha1/tpu-gen.go b/tpu/v2alpha1/tpu-gen.go index 227f2c3c010..a14b311d730 100644 --- a/tpu/v2alpha1/tpu-gen.go +++ b/tpu/v2alpha1/tpu-gen.go @@ -218,9 +218,49 @@ type ProjectsLocationsRuntimeVersionsService struct { s *Service } +// AcceleratorConfig: A TPU accelerator configuration. +type AcceleratorConfig struct { + // Topology: Required. Topology of TPU in chips. + Topology string `json:"topology,omitempty"` + + // Type: Required. Type of TPU. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Unspecified version. + // "V2" - TPU v2. + // "V3" - TPU v3. + // "V4" - TPU v4. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Topology") 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. "Topology") 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 *AcceleratorConfig) MarshalJSON() ([]byte, error) { + type NoMethod AcceleratorConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AcceleratorType: A accelerator type that a Node can be configured // with. type AcceleratorType struct { + // AcceleratorConfigs: The accelerator config. + AcceleratorConfigs []*AcceleratorConfig `json:"acceleratorConfigs,omitempty"` + // Name: The resource name. Name string `json:"name,omitempty"` @@ -231,20 +271,21 @@ type AcceleratorType struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "AcceleratorConfigs") + // 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. "Name") 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. "AcceleratorConfigs") 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:"-"` } @@ -1011,6 +1052,9 @@ func (s *NetworkEndpoint) MarshalJSON() ([]byte, error) { // Node: A TPU instance. type Node struct { + // AcceleratorConfig: The AccleratorConfig for the TPU Node. + AcceleratorConfig *AcceleratorConfig `json:"acceleratorConfig,omitempty"` + // AcceleratorType: The type of hardware accelerators associated with // this node. AcceleratorType string `json:"acceleratorType,omitempty"` @@ -1134,15 +1178,15 @@ type Node struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AcceleratorType") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "AcceleratorConfig") + // 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. "AcceleratorType") to + // NullFields is a list of field names (e.g. "AcceleratorConfig") 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 diff --git a/vault/v1/vault-api.json b/vault/v1/vault-api.json index 0306f12359a..9452144f136 100644 --- a/vault/v1/vault-api.json +++ b/vault/v1/vault-api.json @@ -1193,7 +1193,7 @@ } } }, - "revision": "20220423", + "revision": "20230203", "rootUrl": "https://vault.googleapis.com/", "schemas": { "AccountCount": { @@ -1747,7 +1747,7 @@ "id": "HangoutsChatInfo", "properties": { "roomId": { - "description": "A list of Chat spaces IDs, as provided by the [Chat API](https://developers.google.com/hangouts/chat).", + "description": "A list of Chat spaces IDs, as provided by the [Chat API](https://developers.google.com/chat). There is a limit of exporting from 500 Chat spaces per request.", "items": { "type": "string" }, diff --git a/vault/v1/vault-gen.go b/vault/v1/vault-gen.go index 254368da56d..0ad24ee5789 100644 --- a/vault/v1/vault-gen.go +++ b/vault/v1/vault-gen.go @@ -1104,7 +1104,8 @@ func (s *HangoutsChatExportOptions) MarshalJSON() ([]byte, error) { // HangoutsChatInfo: The Chat spaces to search type HangoutsChatInfo struct { // RoomId: A list of Chat spaces IDs, as provided by the Chat API - // (https://developers.google.com/hangouts/chat). + // (https://developers.google.com/chat). There is a limit of exporting + // from 500 Chat spaces per request. RoomId []string `json:"roomId,omitempty"` // ForceSendFields is a list of field names (e.g. "RoomId") to diff --git a/workstations/v1beta/workstations-api.json b/workstations/v1beta/workstations-api.json index 62f27bba840..0c35afe5738 100644 --- a/workstations/v1beta/workstations-api.json +++ b/workstations/v1beta/workstations-api.json @@ -1127,7 +1127,7 @@ } } }, - "revision": "20230113", + "revision": "20230201", "rootUrl": "https://workstations.googleapis.com/", "schemas": { "AuditConfig": { @@ -1187,7 +1187,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, @@ -1715,6 +1715,13 @@ "description": "Configuration options for private clusters.", "id": "PrivateClusterConfig", "properties": { + "allowedProjects": { + "description": "Additional projects that are allowed to attach to the workstation cluster's service attachment. By default, the workstation cluster's project and the VPC host project (if different) are allowed.", + "items": { + "type": "string" + }, + "type": "array" + }, "clusterHostname": { "description": "Output only. Hostname for the workstation cluster. This field will be populated only when private endpoint is enabled. To access workstations in the cluster, create a new DNS zone mapping this domain name to an internal IP address and a forwarding rule mapping that address to the service attachment.", "readOnly": true, diff --git a/workstations/v1beta/workstations-gen.go b/workstations/v1beta/workstations-gen.go index c4c80c14893..2c1b81ff231 100644 --- a/workstations/v1beta/workstations-gen.go +++ b/workstations/v1beta/workstations-gen.go @@ -332,7 +332,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -349,9 +351,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. @@ -1314,6 +1314,12 @@ func (s *Policy) MarshalJSON() ([]byte, error) { // PrivateClusterConfig: Configuration options for private clusters. type PrivateClusterConfig struct { + // AllowedProjects: Additional projects that are allowed to attach to + // the workstation cluster's service attachment. By default, the + // workstation cluster's project and the VPC host project (if different) + // are allowed. + AllowedProjects []string `json:"allowedProjects,omitempty"` + // ClusterHostname: Output only. Hostname for the workstation cluster. // This field will be populated only when private endpoint is enabled. // To access workstations in the cluster, create a new DNS zone mapping @@ -1332,7 +1338,7 @@ type PrivateClusterConfig struct { // (https://cloud.google.com/vpc/docs/configure-private-service-connect-services). ServiceAttachmentUri string `json:"serviceAttachmentUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterHostname") to + // ForceSendFields is a list of field names (e.g. "AllowedProjects") 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 @@ -1340,7 +1346,7 @@ type PrivateClusterConfig struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClusterHostname") to + // NullFields is a list of field names (e.g. "AllowedProjects") 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