From 394e94314cecdfafe5fe0b795c506468ec31edf7 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 25 Jan 2024 08:11:34 +0000 Subject: [PATCH] feat(all): auto-regenerate discovery clients --- admin/reports/v1/admin-api.json | 4 +- admin/reports/v1/admin-gen.go | 8 +- cloudbilling/v1/cloudbilling-api.json | 4 +- cloudbilling/v1/cloudbilling-gen.go | 6 +- container/v1beta1/container-api.json | 6 +- container/v1beta1/container-gen.go | 10 +- content/v2.1/content-api.json | 165 +---- content/v2.1/content-gen.go | 713 ---------------------- datacatalog/v1/datacatalog-api.json | 4 +- datacatalog/v1/datacatalog-gen.go | 6 +- datacatalog/v1beta1/datacatalog-api.json | 4 +- datacatalog/v1beta1/datacatalog-gen.go | 6 +- dns/v1/dns-api.json | 4 +- dns/v1/dns-gen.go | 6 +- dns/v1beta2/dns-api.json | 4 +- dns/v1beta2/dns-gen.go | 6 +- iam/v1/iam-api.json | 4 +- iam/v1/iam-gen.go | 6 +- iap/v1/iap-api.json | 4 +- iap/v1/iap-gen.go | 6 +- iap/v1beta1/iap-api.json | 4 +- iap/v1beta1/iap-gen.go | 6 +- retail/v2/retail-api.json | 24 +- retail/v2/retail-gen.go | 40 ++ retail/v2alpha/retail-api.json | 24 +- retail/v2alpha/retail-gen.go | 40 ++ retail/v2beta/retail-api.json | 112 +++- retail/v2beta/retail-gen.go | 335 ++++++++++ run/v1/run-api.json | 4 +- run/v1/run-gen.go | 6 +- sourcerepo/v1/sourcerepo-api.json | 4 +- sourcerepo/v1/sourcerepo-gen.go | 6 +- spanner/v1/spanner-api.json | 8 +- spanner/v1/spanner-gen.go | 4 + versionhistory/v1/versionhistory-api.json | 10 +- versionhistory/v1/versionhistory-gen.go | 2 + youtube/v3/youtube-api.json | 7 +- youtube/v3/youtube-gen.go | 12 + 38 files changed, 693 insertions(+), 931 deletions(-) diff --git a/admin/reports/v1/admin-api.json b/admin/reports/v1/admin-api.json index 3023a1ab765..d867452e53a 100644 --- a/admin/reports/v1/admin-api.json +++ b/admin/reports/v1/admin-api.json @@ -623,7 +623,7 @@ } } }, - "revision": "20230612", + "revision": "20240123", "rootUrl": "https://admin.googleapis.com/", "schemas": { "Activities": { @@ -688,7 +688,7 @@ "items": { "properties": { "name": { - "description": "Name of the event. This is the specific name of the activity reported by the API. And each `eventName` is related to a specific Google Workspace service or feature which the API organizes into types of events. For `eventName` request parameters in general: - If no `eventName` is given, the report returns all possible instances of an `eventName`. - When you request an `eventName`, the API's response returns all activities which contain that `eventName`. It is possible that the returned activities will have other `eventName` properties in addition to the one requested. For more information about `eventName` properties, see the list of event names for various applications above in `applicationName`.", + "description": "Name of the event. This is the specific name of the activity reported by the API. And each `eventName` is related to a specific Google Workspace service or feature which the API organizes into types of events. For `eventName` request parameters in general: - If no `eventName` is given, the report returns all possible instances of an `eventName`. - When you request an `eventName`, the API's response returns all activities which contain that `eventName`. For more information about `eventName` properties, see the list of event names for various applications above in `applicationName`.", "type": "string" }, "parameters": { diff --git a/admin/reports/v1/admin-gen.go b/admin/reports/v1/admin-gen.go index 76a624495df..9250c438ccc 100644 --- a/admin/reports/v1/admin-gen.go +++ b/admin/reports/v1/admin-gen.go @@ -368,11 +368,9 @@ type ActivityEvents struct { // types of events. For `eventName` request parameters in general: - If // no `eventName` is given, the report returns all possible instances of // an `eventName`. - When you request an `eventName`, the API's response - // returns all activities which contain that `eventName`. It is possible - // that the returned activities will have other `eventName` properties - // in addition to the one requested. For more information about - // `eventName` properties, see the list of event names for various - // applications above in `applicationName`. + // returns all activities which contain that `eventName`. For more + // information about `eventName` properties, see the list of event names + // for various applications above in `applicationName`. Name string `json:"name,omitempty"` // Parameters: Parameter value pairs for various applications. For more diff --git a/cloudbilling/v1/cloudbilling-api.json b/cloudbilling/v1/cloudbilling-api.json index e20bc204421..15134dee610 100644 --- a/cloudbilling/v1/cloudbilling-api.json +++ b/cloudbilling/v1/cloudbilling-api.json @@ -751,7 +751,7 @@ } } }, - "revision": "20240112", + "revision": "20240119", "rootUrl": "https://cloudbilling.googleapis.com/", "schemas": { "AggregationInfo": { @@ -886,7 +886,7 @@ "type": "array" }, "role": { - "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", + "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).", "type": "string" } }, diff --git a/cloudbilling/v1/cloudbilling-gen.go b/cloudbilling/v1/cloudbilling-gen.go index 82b9eb0ca8e..83836d9eda2 100644 --- a/cloudbilling/v1/cloudbilling-gen.go +++ b/cloudbilling/v1/cloudbilling-gen.go @@ -544,7 +544,11 @@ type Binding struct { Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. - // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an + // overview of the IAM roles and permissions, see the IAM documentation + // (https://cloud.google.com/iam/docs/roles-overview). For a list of the + // available pre-defined roles, see here + // (https://cloud.google.com/iam/docs/understanding-roles). Role string `json:"role,omitempty"` // ForceSendFields is a list of field names (e.g. "Condition") to diff --git a/container/v1beta1/container-api.json b/container/v1beta1/container-api.json index f23137b47ee..64d58badbc4 100644 --- a/container/v1beta1/container-api.json +++ b/container/v1beta1/container-api.json @@ -392,7 +392,7 @@ ] }, "getJwks": { - "description": "Gets the public component of the cluster signing keys in JSON Web Key format. This API is not yet intended for general use, and is not available for all clusters.", + "description": "Gets the public component of the cluster signing keys in JSON Web Key format.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/jwks", "httpMethod": "GET", "id": "container.projects.locations.clusters.getJwks", @@ -1133,7 +1133,7 @@ "well-known": { "methods": { "getOpenid-configuration": { - "description": "Gets the OIDC discovery document for the cluster. See the [OpenID Connect Discovery 1.0 specification](https://openid.net/specs/openid-connect-discovery-1_0.html) for details. This API is not yet intended for general use, and is not available for all clusters.", + "description": "Gets the OIDC discovery document for the cluster. See the [OpenID Connect Discovery 1.0 specification](https://openid.net/specs/openid-connect-discovery-1_0.html) for details.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/.well-known/openid-configuration", "httpMethod": "GET", "id": "container.projects.locations.clusters.well-known.getOpenid-configuration", @@ -2565,7 +2565,7 @@ } } }, - "revision": "20231201", + "revision": "20240109", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { diff --git a/container/v1beta1/container-gen.go b/container/v1beta1/container-gen.go index 0da5ee41da2..323114235c7 100644 --- a/container/v1beta1/container-gen.go +++ b/container/v1beta1/container-gen.go @@ -10876,8 +10876,7 @@ type ProjectsLocationsClustersGetJwksCall struct { } // GetJwks: Gets the public component of the cluster signing keys in -// JSON Web Key format. This API is not yet intended for general use, -// and is not available for all clusters. +// JSON Web Key format. // // - parent: The cluster (project, location, cluster name) to get keys // for. Specified in the format `projects/*/locations/*/clusters/*`. @@ -10986,7 +10985,7 @@ func (c *ProjectsLocationsClustersGetJwksCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Gets the public component of the cluster signing keys in JSON Web Key format. This API is not yet intended for general use, and is not available for all clusters.", + // "description": "Gets the public component of the cluster signing keys in JSON Web Key format.", // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/jwks", // "httpMethod": "GET", // "id": "container.projects.locations.clusters.getJwks", @@ -14549,8 +14548,7 @@ type ProjectsLocationsClustersWellKnownGetOpenidConfigurationCall struct { // GetOpenidConfiguration: Gets the OIDC discovery document for the // cluster. See the OpenID Connect Discovery 1.0 specification // (https://openid.net/specs/openid-connect-discovery-1_0.html) for -// details. This API is not yet intended for general use, and is not -// available for all clusters. +// details. // // - parent: The cluster (project, location, cluster name) to get the // discovery document for. Specified in the format @@ -14660,7 +14658,7 @@ func (c *ProjectsLocationsClustersWellKnownGetOpenidConfigurationCall) Do(opts . } return ret, nil // { - // "description": "Gets the OIDC discovery document for the cluster. See the [OpenID Connect Discovery 1.0 specification](https://openid.net/specs/openid-connect-discovery-1_0.html) for details. This API is not yet intended for general use, and is not available for all clusters.", + // "description": "Gets the OIDC discovery document for the cluster. See the [OpenID Connect Discovery 1.0 specification](https://openid.net/specs/openid-connect-discovery-1_0.html) for details.", // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/.well-known/openid-configuration", // "httpMethod": "GET", // "id": "container.projects.locations.clusters.well-known.getOpenid-configuration", diff --git a/content/v2.1/content-api.json b/content/v2.1/content-api.json index 848b60210c1..ad9f4ab0297 100644 --- a/content/v2.1/content-api.json +++ b/content/v2.1/content-api.json @@ -574,135 +574,6 @@ } }, "resources": { - "businessmessageslinks": { - "methods": { - "create": { - "description": "Creates a `BusinessMessagesLink` in Merchant Center account.", - "flatPath": "accounts/{accountId}/businessmessageslinks", - "httpMethod": "POST", - "id": "content.accounts.businessmessageslinks.create", - "parameterOrder": [ - "accountId" - ], - "parameters": { - "accountId": { - "description": "Required. The ID of the Merchant Center account.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "accounts/{accountId}/businessmessageslinks", - "request": { - "$ref": "BusinessMessagesLink" - }, - "response": { - "$ref": "BusinessMessagesLink" - }, - "scopes": [ - "https://www.googleapis.com/auth/content" - ] - }, - "delete": { - "description": "Deletes the specified `BusinessMessagesLink` resource from Merchant Center account.", - "flatPath": "accounts/{accountId}/businessmessageslinks/{businessMessagesLinkId}", - "httpMethod": "DELETE", - "id": "content.accounts.businessmessageslinks.delete", - "parameterOrder": [ - "accountId", - "businessMessagesLinkId" - ], - "parameters": { - "accountId": { - "description": "Required. The ID of the Merchant Center account.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "businessMessagesLinkId": { - "description": "Required. The identifier for the Business Messages Link.", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "accounts/{accountId}/businessmessageslinks/{businessMessagesLinkId}", - "scopes": [ - "https://www.googleapis.com/auth/content" - ] - }, - "get": { - "description": "Retrieves `BusinessMessagesLink` in Merchant Center account.", - "flatPath": "accounts/{accountId}/businessmessageslinks/{businessMessagesLinkId}", - "httpMethod": "GET", - "id": "content.accounts.businessmessageslinks.get", - "parameterOrder": [ - "accountId", - "businessMessagesLinkId" - ], - "parameters": { - "accountId": { - "description": "Required. The ID of the Merchant Center account.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "businessMessagesLinkId": { - "description": "Required. The identifier for the Business Messages Link.", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "accounts/{accountId}/businessmessageslinks/{businessMessagesLinkId}", - "response": { - "$ref": "BusinessMessagesLink" - }, - "scopes": [ - "https://www.googleapis.com/auth/content" - ] - }, - "list": { - "description": "Lists the `BusinessMessagesLink` resources for Merchant Center account.", - "flatPath": "accounts/{accountId}/businessmessageslinks", - "httpMethod": "GET", - "id": "content.accounts.businessmessageslinks.list", - "parameterOrder": [ - "accountId" - ], - "parameters": { - "accountId": { - "description": "Required. The ID of the account.", - "format": "int64", - "location": "path", - "required": true, - "type": "string" - }, - "pageSize": { - "description": "Optional. The maximum number of `BusinessMessagesLink` resources for the Merchant Center account to return. Defaults to 50; values above 1000 will be coerced to 1000.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Optional. A page token, received from a previous `ListBusinessMessagesLinks` call. Provide the page token to retrieve the subsequent page. When paginating, all other parameters provided to `ListBusinessMessagesLinks` must match the call that provided the page token.", - "location": "query", - "type": "string" - } - }, - "path": "accounts/{accountId}/businessmessageslinks", - "response": { - "$ref": "ListBusinessMessagesLinksResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/content" - ] - } - } - }, "credentials": { "methods": { "create": { @@ -6315,7 +6186,7 @@ } } }, - "revision": "20240116", + "revision": "20240123", "rootUrl": "https://shoppingcontent.googleapis.com/", "schemas": { "Account": { @@ -7997,22 +7868,6 @@ }, "type": "object" }, - "BusinessMessagesLink": { - "description": "A Link from a [Business Messages](https://businessmessages.google) Agent Id to the Merchant Center account. You can create multiple `BusinessMessagesLink` to Merchant Center Account. Only available to selected merchants. See [Create agents to manage brands](https://developers.google.com/business-communications/business-messages/guides/how-to/agents) for more information.", - "id": "BusinessMessagesLink", - "properties": { - "agentId": { - "description": "Required. Agent ID from Business Messages to link to the Merchant Center account. The Agent ID can be found in the [Business Communications Developer Console](https://developers.google.com/business-communications/business-messages/guides/concepts/developer-console#agent_selection).", - "type": "string" - }, - "businessMessagesLinkId": { - "description": "Output only. Immutable. The ID uniquely identifying each `BusinessMessagesLink`.", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, "BuyOnGoogleProgramStatus": { "description": "Response message for the GetProgramStatus method.", "id": "BuyOnGoogleProgramStatus", @@ -10326,24 +10181,6 @@ }, "type": "object" }, - "ListBusinessMessagesLinksResponse": { - "description": "Response message for the `ListBusinessMessagesLinks` method.", - "id": "ListBusinessMessagesLinksResponse", - "properties": { - "businessMessagesLinks": { - "description": "The `BusinessMessagesLink` resources for the given Merchant Center account.", - "items": { - "$ref": "BusinessMessagesLink" - }, - "type": "array" - }, - "nextPageToken": { - "description": "A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages.", - "type": "string" - } - }, - "type": "object" - }, "ListCollectionStatusesResponse": { "description": "Response message for the ListCollectionStatuses method.", "id": "ListCollectionStatusesResponse", diff --git a/content/v2.1/content-gen.go b/content/v2.1/content-gen.go index f896d739ee0..a3e850f3f2d 100644 --- a/content/v2.1/content-gen.go +++ b/content/v2.1/content-gen.go @@ -264,7 +264,6 @@ func (s *APIService) userAgent() string { func NewAccountsService(s *APIService) *AccountsService { rs := &AccountsService{s: s} - rs.Businessmessageslinks = NewAccountsBusinessmessageslinksService(s) rs.Credentials = NewAccountsCredentialsService(s) rs.Labels = NewAccountsLabelsService(s) rs.Returncarrier = NewAccountsReturncarrierService(s) @@ -274,8 +273,6 @@ func NewAccountsService(s *APIService) *AccountsService { type AccountsService struct { s *APIService - Businessmessageslinks *AccountsBusinessmessageslinksService - Credentials *AccountsCredentialsService Labels *AccountsLabelsService @@ -283,15 +280,6 @@ type AccountsService struct { Returncarrier *AccountsReturncarrierService } -func NewAccountsBusinessmessageslinksService(s *APIService) *AccountsBusinessmessageslinksService { - rs := &AccountsBusinessmessageslinksService{s: s} - return rs -} - -type AccountsBusinessmessageslinksService struct { - s *APIService -} - func NewAccountsCredentialsService(s *APIService) *AccountsCredentialsService { rs := &AccountsCredentialsService{s: s} return rs @@ -3632,51 +3620,6 @@ func (s *BusinessDayConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// BusinessMessagesLink: A Link from a Business Messages -// (https://businessmessages.google) Agent Id to the Merchant Center -// account. You can create multiple `BusinessMessagesLink` to Merchant -// Center Account. Only available to selected merchants. See Create -// agents to manage brands -// (https://developers.google.com/business-communications/business-messages/guides/how-to/agents) -// for more information. -type BusinessMessagesLink struct { - // AgentId: Required. Agent ID from Business Messages to link to the - // Merchant Center account. The Agent ID can be found in the Business - // Communications Developer Console - // (https://developers.google.com/business-communications/business-messages/guides/concepts/developer-console#agent_selection). - AgentId string `json:"agentId,omitempty"` - - // BusinessMessagesLinkId: Output only. Immutable. The ID uniquely - // identifying each `BusinessMessagesLink`. - BusinessMessagesLinkId string `json:"businessMessagesLinkId,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AgentId") 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. "AgentId") 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 *BusinessMessagesLink) MarshalJSON() ([]byte, error) { - type NoMethod BusinessMessagesLink - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // BuyOnGoogleProgramStatus: Response message for the GetProgramStatus // method. type BuyOnGoogleProgramStatus struct { @@ -7517,47 +7460,6 @@ func (s *ListAccountReturnCarrierResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ListBusinessMessagesLinksResponse: Response message for the -// `ListBusinessMessagesLinks` method. -type ListBusinessMessagesLinksResponse struct { - // BusinessMessagesLinks: The `BusinessMessagesLink` resources for the - // given Merchant Center account. - BusinessMessagesLinks []*BusinessMessagesLink `json:"businessMessagesLinks,omitempty"` - - // NextPageToken: A token, which can be sent as `pageToken` 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. - // "BusinessMessagesLinks") 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. "BusinessMessagesLinks") 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 *ListBusinessMessagesLinksResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListBusinessMessagesLinksResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // ListCollectionStatusesResponse: Response message for the // ListCollectionStatuses method. type ListCollectionStatusesResponse struct { @@ -23176,621 +23078,6 @@ func (c *AccountsVerifyphonenumberCall) Do(opts ...googleapi.CallOption) (*Verif } -// method id "content.accounts.businessmessageslinks.create": - -type AccountsBusinessmessageslinksCreateCall struct { - s *APIService - accountId int64 - businessmessageslink *BusinessMessagesLink - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Creates a `BusinessMessagesLink` in Merchant Center account. -// -// - accountId: The ID of the Merchant Center account. -func (r *AccountsBusinessmessageslinksService) Create(accountId int64, businessmessageslink *BusinessMessagesLink) *AccountsBusinessmessageslinksCreateCall { - c := &AccountsBusinessmessageslinksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.accountId = accountId - c.businessmessageslink = businessmessageslink - 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 *AccountsBusinessmessageslinksCreateCall) Fields(s ...googleapi.Field) *AccountsBusinessmessageslinksCreateCall { - 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 *AccountsBusinessmessageslinksCreateCall) Context(ctx context.Context) *AccountsBusinessmessageslinksCreateCall { - 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 *AccountsBusinessmessageslinksCreateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountsBusinessmessageslinksCreateCall) 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.businessmessageslink) - 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, "accounts/{accountId}/businessmessageslinks") - 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{ - "accountId": strconv.FormatInt(c.accountId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "content.accounts.businessmessageslinks.create" call. -// Exactly one of *BusinessMessagesLink or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *BusinessMessagesLink.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 *AccountsBusinessmessageslinksCreateCall) Do(opts ...googleapi.CallOption) (*BusinessMessagesLink, 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 := &BusinessMessagesLink{ - 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 `BusinessMessagesLink` in Merchant Center account.", - // "flatPath": "accounts/{accountId}/businessmessageslinks", - // "httpMethod": "POST", - // "id": "content.accounts.businessmessageslinks.create", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "Required. The ID of the Merchant Center account.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/businessmessageslinks", - // "request": { - // "$ref": "BusinessMessagesLink" - // }, - // "response": { - // "$ref": "BusinessMessagesLink" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.accounts.businessmessageslinks.delete": - -type AccountsBusinessmessageslinksDeleteCall struct { - s *APIService - accountId int64 - businessMessagesLinkId string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes the specified `BusinessMessagesLink` resource from -// Merchant Center account. -// -// - accountId: The ID of the Merchant Center account. -// - businessMessagesLinkId: The identifier for the Business Messages -// Link. -func (r *AccountsBusinessmessageslinksService) Delete(accountId int64, businessMessagesLinkId string) *AccountsBusinessmessageslinksDeleteCall { - c := &AccountsBusinessmessageslinksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.accountId = accountId - c.businessMessagesLinkId = businessMessagesLinkId - 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 *AccountsBusinessmessageslinksDeleteCall) Fields(s ...googleapi.Field) *AccountsBusinessmessageslinksDeleteCall { - 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 *AccountsBusinessmessageslinksDeleteCall) Context(ctx context.Context) *AccountsBusinessmessageslinksDeleteCall { - 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 *AccountsBusinessmessageslinksDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountsBusinessmessageslinksDeleteCall) 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, "accounts/{accountId}/businessmessageslinks/{businessMessagesLinkId}") - 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{ - "accountId": strconv.FormatInt(c.accountId, 10), - "businessMessagesLinkId": c.businessMessagesLinkId, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "content.accounts.businessmessageslinks.delete" call. -func (c *AccountsBusinessmessageslinksDeleteCall) Do(opts ...googleapi.CallOption) error { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if err != nil { - return err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return gensupport.WrapError(err) - } - return nil - // { - // "description": "Deletes the specified `BusinessMessagesLink` resource from Merchant Center account.", - // "flatPath": "accounts/{accountId}/businessmessageslinks/{businessMessagesLinkId}", - // "httpMethod": "DELETE", - // "id": "content.accounts.businessmessageslinks.delete", - // "parameterOrder": [ - // "accountId", - // "businessMessagesLinkId" - // ], - // "parameters": { - // "accountId": { - // "description": "Required. The ID of the Merchant Center account.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "businessMessagesLinkId": { - // "description": "Required. The identifier for the Business Messages Link.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/businessmessageslinks/{businessMessagesLinkId}", - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.accounts.businessmessageslinks.get": - -type AccountsBusinessmessageslinksGetCall struct { - s *APIService - accountId int64 - businessMessagesLinkId string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Retrieves `BusinessMessagesLink` in Merchant Center account. -// -// - accountId: The ID of the Merchant Center account. -// - businessMessagesLinkId: The identifier for the Business Messages -// Link. -func (r *AccountsBusinessmessageslinksService) Get(accountId int64, businessMessagesLinkId string) *AccountsBusinessmessageslinksGetCall { - c := &AccountsBusinessmessageslinksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.accountId = accountId - c.businessMessagesLinkId = businessMessagesLinkId - 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 *AccountsBusinessmessageslinksGetCall) Fields(s ...googleapi.Field) *AccountsBusinessmessageslinksGetCall { - 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 *AccountsBusinessmessageslinksGetCall) IfNoneMatch(entityTag string) *AccountsBusinessmessageslinksGetCall { - 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 *AccountsBusinessmessageslinksGetCall) Context(ctx context.Context) *AccountsBusinessmessageslinksGetCall { - 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 *AccountsBusinessmessageslinksGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountsBusinessmessageslinksGetCall) 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, "accounts/{accountId}/businessmessageslinks/{businessMessagesLinkId}") - 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{ - "accountId": strconv.FormatInt(c.accountId, 10), - "businessMessagesLinkId": c.businessMessagesLinkId, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "content.accounts.businessmessageslinks.get" call. -// Exactly one of *BusinessMessagesLink or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *BusinessMessagesLink.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 *AccountsBusinessmessageslinksGetCall) Do(opts ...googleapi.CallOption) (*BusinessMessagesLink, 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 := &BusinessMessagesLink{ - 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 `BusinessMessagesLink` in Merchant Center account.", - // "flatPath": "accounts/{accountId}/businessmessageslinks/{businessMessagesLinkId}", - // "httpMethod": "GET", - // "id": "content.accounts.businessmessageslinks.get", - // "parameterOrder": [ - // "accountId", - // "businessMessagesLinkId" - // ], - // "parameters": { - // "accountId": { - // "description": "Required. The ID of the Merchant Center account.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "businessMessagesLinkId": { - // "description": "Required. The identifier for the Business Messages Link.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/businessmessageslinks/{businessMessagesLinkId}", - // "response": { - // "$ref": "BusinessMessagesLink" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.accounts.businessmessageslinks.list": - -type AccountsBusinessmessageslinksListCall struct { - s *APIService - accountId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists the `BusinessMessagesLink` resources for Merchant Center -// account. -// -// - accountId: The ID of the account. -func (r *AccountsBusinessmessageslinksService) List(accountId int64) *AccountsBusinessmessageslinksListCall { - c := &AccountsBusinessmessageslinksListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.accountId = accountId - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of `BusinessMessagesLink` resources for the Merchant Center account -// to return. Defaults to 50; values above 1000 will be coerced to 1000. -func (c *AccountsBusinessmessageslinksListCall) PageSize(pageSize int64) *AccountsBusinessmessageslinksListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous `ListBusinessMessagesLinks` call. Provide -// the page token to retrieve the subsequent page. When paginating, all -// other parameters provided to `ListBusinessMessagesLinks` must match -// the call that provided the page token. -func (c *AccountsBusinessmessageslinksListCall) PageToken(pageToken string) *AccountsBusinessmessageslinksListCall { - 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 *AccountsBusinessmessageslinksListCall) Fields(s ...googleapi.Field) *AccountsBusinessmessageslinksListCall { - 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 *AccountsBusinessmessageslinksListCall) IfNoneMatch(entityTag string) *AccountsBusinessmessageslinksListCall { - 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 *AccountsBusinessmessageslinksListCall) Context(ctx context.Context) *AccountsBusinessmessageslinksListCall { - 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 *AccountsBusinessmessageslinksListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountsBusinessmessageslinksListCall) 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, "accounts/{accountId}/businessmessageslinks") - 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{ - "accountId": strconv.FormatInt(c.accountId, 10), - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "content.accounts.businessmessageslinks.list" call. -// Exactly one of *ListBusinessMessagesLinksResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListBusinessMessagesLinksResponse.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 *AccountsBusinessmessageslinksListCall) Do(opts ...googleapi.CallOption) (*ListBusinessMessagesLinksResponse, 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 := &ListBusinessMessagesLinksResponse{ - 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 `BusinessMessagesLink` resources for Merchant Center account.", - // "flatPath": "accounts/{accountId}/businessmessageslinks", - // "httpMethod": "GET", - // "id": "content.accounts.businessmessageslinks.list", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "Required. The ID of the account.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "Optional. The maximum number of `BusinessMessagesLink` resources for the Merchant Center account to return. Defaults to 50; values above 1000 will be coerced to 1000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. A page token, received from a previous `ListBusinessMessagesLinks` call. Provide the page token to retrieve the subsequent page. When paginating, all other parameters provided to `ListBusinessMessagesLinks` must match the call that provided the page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/businessmessageslinks", - // "response": { - // "$ref": "ListBusinessMessagesLinksResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// 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 *AccountsBusinessmessageslinksListCall) Pages(ctx context.Context, f func(*ListBusinessMessagesLinksResponse) 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 "content.accounts.credentials.create": type AccountsCredentialsCreateCall struct { diff --git a/datacatalog/v1/datacatalog-api.json b/datacatalog/v1/datacatalog-api.json index 40619bcf594..5b2012ab0f5 100644 --- a/datacatalog/v1/datacatalog-api.json +++ b/datacatalog/v1/datacatalog-api.json @@ -2144,7 +2144,7 @@ } } }, - "revision": "20231228", + "revision": "20240118", "rootUrl": "https://datacatalog.googleapis.com/", "schemas": { "Binding": { @@ -2163,7 +2163,7 @@ "type": "array" }, "role": { - "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", + "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).", "type": "string" } }, diff --git a/datacatalog/v1/datacatalog-gen.go b/datacatalog/v1/datacatalog-gen.go index cab0e1a02c0..b8369d304ff 100644 --- a/datacatalog/v1/datacatalog-gen.go +++ b/datacatalog/v1/datacatalog-gen.go @@ -400,7 +400,11 @@ type Binding struct { Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. - // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an + // overview of the IAM roles and permissions, see the IAM documentation + // (https://cloud.google.com/iam/docs/roles-overview). For a list of the + // available pre-defined roles, see here + // (https://cloud.google.com/iam/docs/understanding-roles). Role string `json:"role,omitempty"` // ForceSendFields is a list of field names (e.g. "Condition") to diff --git a/datacatalog/v1beta1/datacatalog-api.json b/datacatalog/v1beta1/datacatalog-api.json index f77ddc90be2..f61412befd6 100644 --- a/datacatalog/v1beta1/datacatalog-api.json +++ b/datacatalog/v1beta1/datacatalog-api.json @@ -1813,7 +1813,7 @@ } } }, - "revision": "20231228", + "revision": "20240118", "rootUrl": "https://datacatalog.googleapis.com/", "schemas": { "Binding": { @@ -1832,7 +1832,7 @@ "type": "array" }, "role": { - "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", + "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).", "type": "string" } }, diff --git a/datacatalog/v1beta1/datacatalog-gen.go b/datacatalog/v1beta1/datacatalog-gen.go index 3148f76cea1..220d67dc9da 100644 --- a/datacatalog/v1beta1/datacatalog-gen.go +++ b/datacatalog/v1beta1/datacatalog-gen.go @@ -388,7 +388,11 @@ type Binding struct { Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. - // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an + // overview of the IAM roles and permissions, see the IAM documentation + // (https://cloud.google.com/iam/docs/roles-overview). For a list of the + // available pre-defined roles, see here + // (https://cloud.google.com/iam/docs/understanding-roles). Role string `json:"role,omitempty"` // ForceSendFields is a list of field names (e.g. "Condition") to diff --git a/dns/v1/dns-api.json b/dns/v1/dns-api.json index 273856288bc..df8fb1d2509 100644 --- a/dns/v1/dns-api.json +++ b/dns/v1/dns-api.json @@ -1824,7 +1824,7 @@ } } }, - "revision": "20231218", + "revision": "20240118", "rootUrl": "https://dns.googleapis.com/", "schemas": { "Change": { @@ -2163,7 +2163,7 @@ "type": "array" }, "role": { - "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", + "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).", "type": "string" } }, diff --git a/dns/v1/dns-gen.go b/dns/v1/dns-gen.go index 54f4494fb99..e46c889d77f 100644 --- a/dns/v1/dns-gen.go +++ b/dns/v1/dns-gen.go @@ -862,7 +862,11 @@ type GoogleIamV1Binding struct { Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. - // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an + // overview of the IAM roles and permissions, see the IAM documentation + // (https://cloud.google.com/iam/docs/roles-overview). For a list of the + // available pre-defined roles, see here + // (https://cloud.google.com/iam/docs/understanding-roles). Role string `json:"role,omitempty"` // ForceSendFields is a list of field names (e.g. "Condition") to diff --git a/dns/v1beta2/dns-api.json b/dns/v1beta2/dns-api.json index 134206b3f89..2f33917df8e 100644 --- a/dns/v1beta2/dns-api.json +++ b/dns/v1beta2/dns-api.json @@ -1821,7 +1821,7 @@ } } }, - "revision": "20231218", + "revision": "20240118", "rootUrl": "https://dns.googleapis.com/", "schemas": { "Change": { @@ -2160,7 +2160,7 @@ "type": "array" }, "role": { - "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", + "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).", "type": "string" } }, diff --git a/dns/v1beta2/dns-gen.go b/dns/v1beta2/dns-gen.go index 86ca6024dd3..fd70899506b 100644 --- a/dns/v1beta2/dns-gen.go +++ b/dns/v1beta2/dns-gen.go @@ -862,7 +862,11 @@ type GoogleIamV1Binding struct { Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. - // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an + // overview of the IAM roles and permissions, see the IAM documentation + // (https://cloud.google.com/iam/docs/roles-overview). For a list of the + // available pre-defined roles, see here + // (https://cloud.google.com/iam/docs/understanding-roles). Role string `json:"role,omitempty"` // ForceSendFields is a list of field names (e.g. "Condition") to diff --git a/iam/v1/iam-api.json b/iam/v1/iam-api.json index 793a61839fb..d1d00631df5 100644 --- a/iam/v1/iam-api.json +++ b/iam/v1/iam-api.json @@ -2850,7 +2850,7 @@ } } }, - "revision": "20240108", + "revision": "20240118", "rootUrl": "https://iam.googleapis.com/", "schemas": { "AccessRestrictions": { @@ -2979,7 +2979,7 @@ "type": "array" }, "role": { - "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", + "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).", "type": "string" } }, diff --git a/iam/v1/iam-gen.go b/iam/v1/iam-gen.go index 5d6fd36eb7f..fe4953b994e 100644 --- a/iam/v1/iam-gen.go +++ b/iam/v1/iam-gen.go @@ -859,7 +859,11 @@ type Binding struct { Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. - // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an + // overview of the IAM roles and permissions, see the IAM documentation + // (https://cloud.google.com/iam/docs/roles-overview). For a list of the + // available pre-defined roles, see here + // (https://cloud.google.com/iam/docs/understanding-roles). Role string `json:"role,omitempty"` // ForceSendFields is a list of field names (e.g. "Condition") to diff --git a/iap/v1/iap-api.json b/iap/v1/iap-api.json index 9b4a3a48aaf..427979aedfe 100644 --- a/iap/v1/iap-api.json +++ b/iap/v1/iap-api.json @@ -682,7 +682,7 @@ } } }, - "revision": "20231229", + "revision": "20240119", "rootUrl": "https://iap.googleapis.com/", "schemas": { "AccessDeniedPageSettings": { @@ -826,7 +826,7 @@ "type": "array" }, "role": { - "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", + "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).", "type": "string" } }, diff --git a/iap/v1/iap-gen.go b/iap/v1/iap-gen.go index 3b156765e63..ac1d0e6927e 100644 --- a/iap/v1/iap-gen.go +++ b/iap/v1/iap-gen.go @@ -547,7 +547,11 @@ type Binding struct { Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. - // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an + // overview of the IAM roles and permissions, see the IAM documentation + // (https://cloud.google.com/iam/docs/roles-overview). For a list of the + // available pre-defined roles, see here + // (https://cloud.google.com/iam/docs/understanding-roles). Role string `json:"role,omitempty"` // ForceSendFields is a list of field names (e.g. "Condition") to diff --git a/iap/v1beta1/iap-api.json b/iap/v1beta1/iap-api.json index a8725027255..4ec53a3cf47 100644 --- a/iap/v1beta1/iap-api.json +++ b/iap/v1beta1/iap-api.json @@ -194,7 +194,7 @@ } } }, - "revision": "20231215", + "revision": "20240119", "rootUrl": "https://iap.googleapis.com/", "schemas": { "Binding": { @@ -213,7 +213,7 @@ "type": "array" }, "role": { - "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", + "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).", "type": "string" } }, diff --git a/iap/v1beta1/iap-gen.go b/iap/v1beta1/iap-gen.go index b85982f8a5c..76fefed6b52 100644 --- a/iap/v1beta1/iap-gen.go +++ b/iap/v1beta1/iap-gen.go @@ -244,7 +244,11 @@ type Binding struct { Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. - // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an + // overview of the IAM roles and permissions, see the IAM documentation + // (https://cloud.google.com/iam/docs/roles-overview). For a list of the + // available pre-defined roles, see here + // (https://cloud.google.com/iam/docs/understanding-roles). Role string `json:"role,omitempty"` // ForceSendFields is a list of field names (e.g. "Condition") to diff --git a/retail/v2/retail-api.json b/retail/v2/retail-api.json index 05e4644ad8c..a405aa16c28 100644 --- a/retail/v2/retail-api.json +++ b/retail/v2/retail-api.json @@ -2059,7 +2059,7 @@ } } }, - "revision": "20240109", + "revision": "20240118", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -6328,6 +6328,28 @@ }, "type": "object" }, + "GoogleCloudRetailV2betaExportAnalyticsMetricsResponse": { + "description": "Response of the ExportAnalyticsMetricsRequest. If the long running operation was successful, then this message is returned by the google.longrunning.Operations.response field if the operation was successful.", + "id": "GoogleCloudRetailV2betaExportAnalyticsMetricsResponse", + "properties": { + "errorSamples": { + "description": "A sample of errors encountered while processing the request.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + }, + "errorsConfig": { + "$ref": "GoogleCloudRetailV2betaExportErrorsConfig", + "description": "This field is never set." + }, + "outputResult": { + "$ref": "GoogleCloudRetailV2betaOutputResult", + "description": "Output result indicating where the data were exported to." + } + }, + "type": "object" + }, "GoogleCloudRetailV2betaExportErrorsConfig": { "description": "Configuration of destination for Export related errors.", "id": "GoogleCloudRetailV2betaExportErrorsConfig", diff --git a/retail/v2/retail-gen.go b/retail/v2/retail-gen.go index ec0e35ac52f..48b5fc29810 100644 --- a/retail/v2/retail-gen.go +++ b/retail/v2/retail-gen.go @@ -8529,6 +8529,46 @@ func (s *GoogleCloudRetailV2betaCreateModelMetadata) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2betaExportAnalyticsMetricsResponse: Response of +// the ExportAnalyticsMetricsRequest. If the long running operation was +// successful, then this message is returned by the +// google.longrunning.Operations.response field if the operation was +// successful. +type GoogleCloudRetailV2betaExportAnalyticsMetricsResponse struct { + // ErrorSamples: A sample of errors encountered while processing the + // request. + ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"` + + // ErrorsConfig: This field is never set. + ErrorsConfig *GoogleCloudRetailV2betaExportErrorsConfig `json:"errorsConfig,omitempty"` + + // OutputResult: Output result indicating where the data were exported + // to. + OutputResult *GoogleCloudRetailV2betaOutputResult `json:"outputResult,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ErrorSamples") 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. "ErrorSamples") 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 *GoogleCloudRetailV2betaExportAnalyticsMetricsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaExportAnalyticsMetricsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2betaExportErrorsConfig: Configuration of // destination for Export related errors. type GoogleCloudRetailV2betaExportErrorsConfig struct { diff --git a/retail/v2alpha/retail-api.json b/retail/v2alpha/retail-api.json index 17958ba92da..4e7b6ef3865 100644 --- a/retail/v2alpha/retail-api.json +++ b/retail/v2alpha/retail-api.json @@ -2416,7 +2416,7 @@ } } }, - "revision": "20240109", + "revision": "20240118", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -7093,6 +7093,28 @@ }, "type": "object" }, + "GoogleCloudRetailV2betaExportAnalyticsMetricsResponse": { + "description": "Response of the ExportAnalyticsMetricsRequest. If the long running operation was successful, then this message is returned by the google.longrunning.Operations.response field if the operation was successful.", + "id": "GoogleCloudRetailV2betaExportAnalyticsMetricsResponse", + "properties": { + "errorSamples": { + "description": "A sample of errors encountered while processing the request.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + }, + "errorsConfig": { + "$ref": "GoogleCloudRetailV2betaExportErrorsConfig", + "description": "This field is never set." + }, + "outputResult": { + "$ref": "GoogleCloudRetailV2betaOutputResult", + "description": "Output result indicating where the data were exported to." + } + }, + "type": "object" + }, "GoogleCloudRetailV2betaExportErrorsConfig": { "description": "Configuration of destination for Export related errors.", "id": "GoogleCloudRetailV2betaExportErrorsConfig", diff --git a/retail/v2alpha/retail-gen.go b/retail/v2alpha/retail-gen.go index bb34b184ec3..66896418929 100644 --- a/retail/v2alpha/retail-gen.go +++ b/retail/v2alpha/retail-gen.go @@ -9359,6 +9359,46 @@ func (s *GoogleCloudRetailV2betaCreateModelMetadata) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2betaExportAnalyticsMetricsResponse: Response of +// the ExportAnalyticsMetricsRequest. If the long running operation was +// successful, then this message is returned by the +// google.longrunning.Operations.response field if the operation was +// successful. +type GoogleCloudRetailV2betaExportAnalyticsMetricsResponse struct { + // ErrorSamples: A sample of errors encountered while processing the + // request. + ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"` + + // ErrorsConfig: This field is never set. + ErrorsConfig *GoogleCloudRetailV2betaExportErrorsConfig `json:"errorsConfig,omitempty"` + + // OutputResult: Output result indicating where the data were exported + // to. + OutputResult *GoogleCloudRetailV2betaOutputResult `json:"outputResult,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ErrorSamples") 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. "ErrorSamples") 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 *GoogleCloudRetailV2betaExportAnalyticsMetricsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaExportAnalyticsMetricsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2betaExportErrorsConfig: Configuration of // destination for Export related errors. type GoogleCloudRetailV2betaExportErrorsConfig struct { diff --git a/retail/v2beta/retail-api.json b/retail/v2beta/retail-api.json index f958adaed36..2e5bec87eee 100644 --- a/retail/v2beta/retail-api.json +++ b/retail/v2beta/retail-api.json @@ -173,6 +173,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "exportAnalyticsMetrics": { + "description": "Exports analytics metrics. `Operation.response` is of type `ExportAnalyticsMetricsResponse`. `Operation.metadata` is of type `ExportMetadata`.", + "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}:exportAnalyticsMetrics", + "httpMethod": "POST", + "id": "retail.projects.locations.catalogs.exportAnalyticsMetrics", + "parameterOrder": [ + "catalog" + ], + "parameters": { + "catalog": { + "description": "Required. Full resource name of the parent catalog. Expected format: `projects/*/locations/*/catalogs/*`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2beta/{+catalog}:exportAnalyticsMetrics", + "request": { + "$ref": "GoogleCloudRetailV2betaExportAnalyticsMetricsRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "getAttributesConfig": { "description": "Gets an AttributesConfig.", "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/attributesConfig", @@ -2087,7 +2115,7 @@ } } }, - "revision": "20240109", + "revision": "20240118", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -4391,6 +4419,43 @@ }, "type": "object" }, + "GoogleCloudRetailV2betaExportAnalyticsMetricsRequest": { + "description": "Request message for the `ExportAnalyticsMetrics` method.", + "id": "GoogleCloudRetailV2betaExportAnalyticsMetricsRequest", + "properties": { + "filter": { + "description": "A filtering expression to specify restrictions on returned metrics. The expression is a sequence of terms. Each term applies a restriction to the returned metrics. Use this expression to restrict results to a specific time range. Currently we expect only one types of fields: * `timestamp`: This can be specified twice, once with a less than operator and once with a greater than operator. The `timestamp` restriction should result in one, contiguous, valid, `timestamp` range. Some examples of valid filters expressions: * Example 1: `timestamp \u003e \"2012-04-23T18:25:43.511Z\" timestamp \u003c \"2012-04-23T18:30:43.511Z\"` * Example 2: `timestamp \u003e \"2012-04-23T18:25:43.511Z\"`", + "type": "string" + }, + "outputConfig": { + "$ref": "GoogleCloudRetailV2betaOutputConfig", + "description": "Required. The output location of the data." + } + }, + "type": "object" + }, + "GoogleCloudRetailV2betaExportAnalyticsMetricsResponse": { + "description": "Response of the ExportAnalyticsMetricsRequest. If the long running operation was successful, then this message is returned by the google.longrunning.Operations.response field if the operation was successful.", + "id": "GoogleCloudRetailV2betaExportAnalyticsMetricsResponse", + "properties": { + "errorSamples": { + "description": "A sample of errors encountered while processing the request.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + }, + "errorsConfig": { + "$ref": "GoogleCloudRetailV2betaExportErrorsConfig", + "description": "This field is never set." + }, + "outputResult": { + "$ref": "GoogleCloudRetailV2betaOutputResult", + "description": "Output result indicating where the data were exported to." + } + }, + "type": "object" + }, "GoogleCloudRetailV2betaExportErrorsConfig": { "description": "Configuration of destination for Export related errors.", "id": "GoogleCloudRetailV2betaExportErrorsConfig", @@ -5202,6 +5267,51 @@ }, "type": "object" }, + "GoogleCloudRetailV2betaOutputConfig": { + "description": "The output configuration setting.", + "id": "GoogleCloudRetailV2betaOutputConfig", + "properties": { + "bigqueryDestination": { + "$ref": "GoogleCloudRetailV2betaOutputConfigBigQueryDestination", + "description": "The BigQuery location where the output is to be written to." + }, + "gcsDestination": { + "$ref": "GoogleCloudRetailV2betaOutputConfigGcsDestination", + "description": "The Google Cloud Storage location where the output is to be written to." + } + }, + "type": "object" + }, + "GoogleCloudRetailV2betaOutputConfigBigQueryDestination": { + "description": "The BigQuery output destination configuration.", + "id": "GoogleCloudRetailV2betaOutputConfigBigQueryDestination", + "properties": { + "datasetId": { + "description": "Required. The ID of a BigQuery Dataset.", + "type": "string" + }, + "tableIdPrefix": { + "description": "Required. The prefix of exported BigQuery tables.", + "type": "string" + }, + "tableType": { + "description": "Required. Describes the table type. The following values are supported: * `table`: A BigQuery native table. * `view`: A virtual table defined by a SQL query.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudRetailV2betaOutputConfigGcsDestination": { + "description": "The Google Cloud Storage output destination configuration.", + "id": "GoogleCloudRetailV2betaOutputConfigGcsDestination", + "properties": { + "outputUriPrefix": { + "description": "Required. The output uri prefix for saving output data to json files. Some mapping examples are as follows: output_uri_prefix sample output(assuming the object is foo.json) ======================== ============================================= gs://bucket/ gs://bucket/foo.json gs://bucket/folder/ gs://bucket/folder/foo.json gs://bucket/folder/item_ gs://bucket/folder/item_foo.json", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2betaOutputResult": { "description": "Output result that stores the information about where the exported data is stored.", "id": "GoogleCloudRetailV2betaOutputResult", diff --git a/retail/v2beta/retail-gen.go b/retail/v2beta/retail-gen.go index 454cc44c430..6ff23932054 100644 --- a/retail/v2beta/retail-gen.go +++ b/retail/v2beta/retail-gen.go @@ -4546,6 +4546,88 @@ func (s *GoogleCloudRetailV2betaExperimentInfoServingConfigExperiment) MarshalJS return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2betaExportAnalyticsMetricsRequest: Request message +// for the `ExportAnalyticsMetrics` method. +type GoogleCloudRetailV2betaExportAnalyticsMetricsRequest struct { + // Filter: A filtering expression to specify restrictions on returned + // metrics. The expression is a sequence of terms. Each term applies a + // restriction to the returned metrics. Use this expression to restrict + // results to a specific time range. Currently we expect only one types + // of fields: * `timestamp`: This can be specified twice, once with a + // less than operator and once with a greater than operator. The + // `timestamp` restriction should result in one, contiguous, valid, + // `timestamp` range. Some examples of valid filters expressions: * + // Example 1: `timestamp > "2012-04-23T18:25:43.511Z" timestamp < + // "2012-04-23T18:30:43.511Z" * Example 2: `timestamp > + // "2012-04-23T18:25:43.511Z" + Filter string `json:"filter,omitempty"` + + // OutputConfig: Required. The output location of the data. + OutputConfig *GoogleCloudRetailV2betaOutputConfig `json:"outputConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Filter") 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. "Filter") 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 *GoogleCloudRetailV2betaExportAnalyticsMetricsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaExportAnalyticsMetricsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRetailV2betaExportAnalyticsMetricsResponse: Response of +// the ExportAnalyticsMetricsRequest. If the long running operation was +// successful, then this message is returned by the +// google.longrunning.Operations.response field if the operation was +// successful. +type GoogleCloudRetailV2betaExportAnalyticsMetricsResponse struct { + // ErrorSamples: A sample of errors encountered while processing the + // request. + ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"` + + // ErrorsConfig: This field is never set. + ErrorsConfig *GoogleCloudRetailV2betaExportErrorsConfig `json:"errorsConfig,omitempty"` + + // OutputResult: Output result indicating where the data were exported + // to. + OutputResult *GoogleCloudRetailV2betaOutputResult `json:"outputResult,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ErrorSamples") 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. "ErrorSamples") 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 *GoogleCloudRetailV2betaExportAnalyticsMetricsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaExportAnalyticsMetricsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2betaExportErrorsConfig: Configuration of // destination for Export related errors. type GoogleCloudRetailV2betaExportErrorsConfig struct { @@ -6064,6 +6146,114 @@ func (s *GoogleCloudRetailV2betaModelServingConfigList) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2betaOutputConfig: The output configuration +// setting. +type GoogleCloudRetailV2betaOutputConfig struct { + // BigqueryDestination: The BigQuery location where the output is to be + // written to. + BigqueryDestination *GoogleCloudRetailV2betaOutputConfigBigQueryDestination `json:"bigqueryDestination,omitempty"` + + // GcsDestination: The Google Cloud Storage location where the output is + // to be written to. + GcsDestination *GoogleCloudRetailV2betaOutputConfigGcsDestination `json:"gcsDestination,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BigqueryDestination") + // 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. "BigqueryDestination") 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 *GoogleCloudRetailV2betaOutputConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaOutputConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRetailV2betaOutputConfigBigQueryDestination: The BigQuery +// output destination configuration. +type GoogleCloudRetailV2betaOutputConfigBigQueryDestination struct { + // DatasetId: Required. The ID of a BigQuery Dataset. + DatasetId string `json:"datasetId,omitempty"` + + // TableIdPrefix: Required. The prefix of exported BigQuery tables. + TableIdPrefix string `json:"tableIdPrefix,omitempty"` + + // TableType: Required. Describes the table type. The following values + // are supported: * `table`: A BigQuery native table. * `view`: A + // virtual table defined by a SQL query. + TableType string `json:"tableType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DatasetId") 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. "DatasetId") 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 *GoogleCloudRetailV2betaOutputConfigBigQueryDestination) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaOutputConfigBigQueryDestination + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRetailV2betaOutputConfigGcsDestination: The Google Cloud +// Storage output destination configuration. +type GoogleCloudRetailV2betaOutputConfigGcsDestination struct { + // OutputUriPrefix: Required. The output uri prefix for saving output + // data to json files. Some mapping examples are as follows: + // output_uri_prefix sample output(assuming the object is foo.json) + // ======================== + // ============================================= gs://bucket/ + // gs://bucket/foo.json gs://bucket/folder/ gs://bucket/folder/foo.json + // gs://bucket/folder/item_ gs://bucket/folder/item_foo.json + OutputUriPrefix string `json:"outputUriPrefix,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OutputUriPrefix") 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. "OutputUriPrefix") 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 *GoogleCloudRetailV2betaOutputConfigGcsDestination) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaOutputConfigGcsDestination + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2betaOutputResult: Output result that stores the // information about where the exported data is stored. type GoogleCloudRetailV2betaOutputResult struct { @@ -10307,6 +10497,151 @@ func (c *ProjectsLocationsCatalogsCompleteQueryCall) Do(opts ...googleapi.CallOp } +// method id "retail.projects.locations.catalogs.exportAnalyticsMetrics": + +type ProjectsLocationsCatalogsExportAnalyticsMetricsCall struct { + s *Service + catalog string + googlecloudretailv2betaexportanalyticsmetricsrequest *GoogleCloudRetailV2betaExportAnalyticsMetricsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// ExportAnalyticsMetrics: Exports analytics metrics. +// `Operation.response` is of type `ExportAnalyticsMetricsResponse`. +// `Operation.metadata` is of type `ExportMetadata`. +// +// - catalog: Full resource name of the parent catalog. Expected format: +// `projects/*/locations/*/catalogs/*`. +func (r *ProjectsLocationsCatalogsService) ExportAnalyticsMetrics(catalog string, googlecloudretailv2betaexportanalyticsmetricsrequest *GoogleCloudRetailV2betaExportAnalyticsMetricsRequest) *ProjectsLocationsCatalogsExportAnalyticsMetricsCall { + c := &ProjectsLocationsCatalogsExportAnalyticsMetricsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.catalog = catalog + c.googlecloudretailv2betaexportanalyticsmetricsrequest = googlecloudretailv2betaexportanalyticsmetricsrequest + 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 *ProjectsLocationsCatalogsExportAnalyticsMetricsCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsExportAnalyticsMetricsCall { + 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 *ProjectsLocationsCatalogsExportAnalyticsMetricsCall) Context(ctx context.Context) *ProjectsLocationsCatalogsExportAnalyticsMetricsCall { + 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 *ProjectsLocationsCatalogsExportAnalyticsMetricsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsExportAnalyticsMetricsCall) 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.googlecloudretailv2betaexportanalyticsmetricsrequest) + 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, "v2beta/{+catalog}:exportAnalyticsMetrics") + 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{ + "catalog": c.catalog, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "retail.projects.locations.catalogs.exportAnalyticsMetrics" 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 *ProjectsLocationsCatalogsExportAnalyticsMetricsCall) 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": "Exports analytics metrics. `Operation.response` is of type `ExportAnalyticsMetricsResponse`. `Operation.metadata` is of type `ExportMetadata`.", + // "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}:exportAnalyticsMetrics", + // "httpMethod": "POST", + // "id": "retail.projects.locations.catalogs.exportAnalyticsMetrics", + // "parameterOrder": [ + // "catalog" + // ], + // "parameters": { + // "catalog": { + // "description": "Required. Full resource name of the parent catalog. Expected format: `projects/*/locations/*/catalogs/*`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2beta/{+catalog}:exportAnalyticsMetrics", + // "request": { + // "$ref": "GoogleCloudRetailV2betaExportAnalyticsMetricsRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "retail.projects.locations.catalogs.getAttributesConfig": type ProjectsLocationsCatalogsGetAttributesConfigCall struct { diff --git a/run/v1/run-api.json b/run/v1/run-api.json index 1c708eb1f47..d9e2480ee42 100644 --- a/run/v1/run-api.json +++ b/run/v1/run-api.json @@ -2609,7 +2609,7 @@ } } }, - "revision": "20240114", + "revision": "20240121", "rootUrl": "https://run.googleapis.com/", "schemas": { "Addressable": { @@ -2702,7 +2702,7 @@ "type": "array" }, "role": { - "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", + "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).", "type": "string" } }, diff --git a/run/v1/run-gen.go b/run/v1/run-gen.go index f4ffe176ad1..611dad894d9 100644 --- a/run/v1/run-gen.go +++ b/run/v1/run-gen.go @@ -644,7 +644,11 @@ type Binding struct { Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. - // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an + // overview of the IAM roles and permissions, see the IAM documentation + // (https://cloud.google.com/iam/docs/roles-overview). For a list of the + // available pre-defined roles, see here + // (https://cloud.google.com/iam/docs/understanding-roles). Role string `json:"role,omitempty"` // ForceSendFields is a list of field names (e.g. "Condition") to diff --git a/sourcerepo/v1/sourcerepo-api.json b/sourcerepo/v1/sourcerepo-api.json index c896620fca3..35789d9fbb7 100644 --- a/sourcerepo/v1/sourcerepo-api.json +++ b/sourcerepo/v1/sourcerepo-api.json @@ -450,7 +450,7 @@ } } }, - "revision": "20231218", + "revision": "20240122", "rootUrl": "https://sourcerepo.googleapis.com/", "schemas": { "AuditConfig": { @@ -517,7 +517,7 @@ "type": "array" }, "role": { - "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", + "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).", "type": "string" } }, diff --git a/sourcerepo/v1/sourcerepo-gen.go b/sourcerepo/v1/sourcerepo-gen.go index 0cc7530f8b3..9b5bda1fe5f 100644 --- a/sourcerepo/v1/sourcerepo-gen.go +++ b/sourcerepo/v1/sourcerepo-gen.go @@ -370,7 +370,11 @@ type Binding struct { Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. - // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an + // overview of the IAM roles and permissions, see the IAM documentation + // (https://cloud.google.com/iam/docs/roles-overview). For a list of the + // available pre-defined roles, see here + // (https://cloud.google.com/iam/docs/understanding-roles). Role string `json:"role,omitempty"` // ForceSendFields is a list of field names (e.g. "Condition") to diff --git a/spanner/v1/spanner-api.json b/spanner/v1/spanner-api.json index 800b3ed47be..b9729028c05 100644 --- a/spanner/v1/spanner-api.json +++ b/spanner/v1/spanner-api.json @@ -2729,7 +2729,7 @@ } } }, - "revision": "20240106", + "revision": "20240120", "rootUrl": "https://spanner.googleapis.com/", "schemas": { "AutoscalingConfig": { @@ -4145,6 +4145,12 @@ ], "readOnly": true, "type": "string" + }, + "storageLimitPerProcessingUnit": { + "description": "Output only. The storage limit in bytes per processing unit.", + "format": "int64", + "readOnly": true, + "type": "string" } }, "type": "object" diff --git a/spanner/v1/spanner-gen.go b/spanner/v1/spanner-gen.go index c96ed29236f..03f8f7da14b 100644 --- a/spanner/v1/spanner-gen.go +++ b/spanner/v1/spanner-gen.go @@ -2992,6 +2992,10 @@ type InstanceConfig struct { // to create instances. State string `json:"state,omitempty"` + // StorageLimitPerProcessingUnit: Output only. The storage limit in + // bytes per processing unit. + StorageLimitPerProcessingUnit int64 `json:"storageLimitPerProcessingUnit,omitempty,string"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` diff --git a/versionhistory/v1/versionhistory-api.json b/versionhistory/v1/versionhistory-api.json index ef1c1de3723..3fdaccea427 100644 --- a/versionhistory/v1/versionhistory-api.json +++ b/versionhistory/v1/versionhistory-api.json @@ -271,7 +271,7 @@ } } }, - "revision": "20221031", + "revision": "20240123", "rootUrl": "https://versionhistory.googleapis.com/", "schemas": { "Channel": { @@ -288,7 +288,9 @@ "CANARY", "CANARY_ASAN", "ALL", - "EXTENDED" + "EXTENDED", + "LTS", + "LTC" ], "enumDescriptions": [ "", @@ -298,7 +300,9 @@ "", "", "", - "" + "", + "The Long-term support channel for ChromeOS.", + "The Long-term support candidate channel for ChromeOS." ], "type": "string" }, diff --git a/versionhistory/v1/versionhistory-gen.go b/versionhistory/v1/versionhistory-gen.go index 2f1482b24ee..55240b8f807 100644 --- a/versionhistory/v1/versionhistory-gen.go +++ b/versionhistory/v1/versionhistory-gen.go @@ -204,6 +204,8 @@ type Channel struct { // "CANARY_ASAN" // "ALL" // "EXTENDED" + // "LTS" - The Long-term support channel for ChromeOS. + // "LTC" - The Long-term support candidate channel for ChromeOS. ChannelType string `json:"channelType,omitempty"` // Name: Channel name. Format is diff --git a/youtube/v3/youtube-api.json b/youtube/v3/youtube-api.json index 82a32410854..95161ea9452 100644 --- a/youtube/v3/youtube-api.json +++ b/youtube/v3/youtube-api.json @@ -717,6 +717,11 @@ "location": "query", "type": "string" }, + "forHandle": { + "description": "Return the channel associated with a YouTube handle.", + "location": "query", + "type": "string" + }, "forUsername": { "description": "Return the channel associated with a YouTube username.", "location": "query", @@ -3994,7 +3999,7 @@ } } }, - "revision": "20231011", + "revision": "20240123", "rootUrl": "https://youtube.googleapis.com/", "schemas": { "AbuseReport": { diff --git a/youtube/v3/youtube-gen.go b/youtube/v3/youtube-gen.go index 2f852a2c925..ae064efe639 100644 --- a/youtube/v3/youtube-gen.go +++ b/youtube/v3/youtube-gen.go @@ -13160,6 +13160,13 @@ func (c *ChannelsListCall) CategoryId(categoryId string) *ChannelsListCall { return c } +// ForHandle sets the optional parameter "forHandle": Return the channel +// associated with a YouTube handle. +func (c *ChannelsListCall) ForHandle(forHandle string) *ChannelsListCall { + c.urlParams_.Set("forHandle", forHandle) + return c +} + // ForUsername sets the optional parameter "forUsername": Return the // channel associated with a YouTube username. func (c *ChannelsListCall) ForUsername(forUsername string) *ChannelsListCall { @@ -13349,6 +13356,11 @@ func (c *ChannelsListCall) Do(opts ...googleapi.CallOption) (*ChannelListRespons // "location": "query", // "type": "string" // }, + // "forHandle": { + // "description": "Return the channel associated with a YouTube handle.", + // "location": "query", + // "type": "string" + // }, // "forUsername": { // "description": "Return the channel associated with a YouTube username.", // "location": "query",