From 0bf19b3736d5fc9b329e2fc73f7b45c79911373f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 16 Jan 2025 10:50:26 -0800 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2963) --- .../v1alpha/adsenseplatform-api.json | 92 +++++- .../v1alpha/adsenseplatform-gen.go | 282 ++++++++++++++++++ classroom/v1/classroom-api.json | 6 +- classroom/v1/classroom-gen.go | 6 +- cloudbuild/v1/cloudbuild-api.json | 80 ++++- cloudbuild/v1/cloudbuild-gen.go | 94 +++++- cloudbuild/v2/cloudbuild-api.json | 7 +- discoveryengine/v1/discoveryengine-api.json | 12 +- discoveryengine/v1/discoveryengine-gen.go | 13 +- .../v1alpha/discoveryengine-api.json | 43 ++- .../v1alpha/discoveryengine-gen.go | 67 ++++- .../v1beta/discoveryengine-api.json | 31 +- discoveryengine/v1beta/discoveryengine-gen.go | 46 ++- firebase/v1beta1/firebase-api.json | 4 +- firebase/v1beta1/firebase-gen.go | 3 +- go.work.sum | 12 +- looker/v1/looker-api.json | 5 +- looker/v1/looker-gen.go | 3 +- monitoring/v3/monitoring-api.json | 7 +- monitoring/v3/monitoring-gen.go | 15 + retail/v2/retail-api.json | 6 +- retail/v2/retail-gen.go | 2 +- retail/v2alpha/retail-api.json | 6 +- retail/v2alpha/retail-gen.go | 2 +- retail/v2beta/retail-api.json | 6 +- retail/v2beta/retail-gen.go | 2 +- tpu/v2/tpu-api.json | 6 +- tpu/v2/tpu-gen.go | 4 +- .../v1/websecurityscanner-api.json | 30 +- .../v1/websecurityscanner-gen.go | 26 +- 30 files changed, 815 insertions(+), 103 deletions(-) diff --git a/adsenseplatform/v1alpha/adsenseplatform-api.json b/adsenseplatform/v1alpha/adsenseplatform-api.json index 9c1e4bda5a5..5bee5b992fd 100644 --- a/adsenseplatform/v1alpha/adsenseplatform-api.json +++ b/adsenseplatform/v1alpha/adsenseplatform-api.json @@ -221,6 +221,47 @@ } } } + }, + "groups": { + "methods": { + "list": { + "description": "Lists Platform Groups for a specified Platform.", + "flatPath": "v1alpha/accounts/{accountsId}/platforms/{platformsId}/groups", + "httpMethod": "GET", + "id": "adsenseplatform.accounts.platforms.groups.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of groups to include in the response, used for paging. If unspecified, at most 10000 groups will be returned. The maximum value is 10000; values above 10000 will be coerced to 10000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListPlatformGroups` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPlatformGroups` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the platform to retrieve. Format: accounts/{account}/platforms/{platform}", + "location": "path", + "pattern": "^accounts/[^/]+/platforms/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/groups", + "response": { + "$ref": "ListPlatformGroupsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/adsense", + "https://www.googleapis.com/auth/adsense.readonly" + ] + } + } } } } @@ -564,7 +605,7 @@ } } }, - "revision": "20250114", + "revision": "20250115", "rootUrl": "https://adsenseplatform.googleapis.com/", "schemas": { "Account": { @@ -677,6 +718,17 @@ "properties": {}, "type": "object" }, + "Decimal": { + "description": "A representation of a decimal value, such as 2.5. Clients may convert values into language-native decimal formats, such as Java's [BigDecimal](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html) or Python's [decimal.Decimal](https://docs.python.org/3/library/decimal.html).", + "id": "Decimal", + "properties": { + "value": { + "description": "The decimal value, as a string. The string representation consists of an optional sign, `+` (`U+002B`) or `-` (`U+002D`), followed by a sequence of zero or more decimal digits (\"the integer\"), optionally followed by a fraction, optionally followed by an exponent. An empty string **should** be interpreted as `0`. The fraction consists of a decimal point followed by zero or more decimal digits. The string must contain at least one digit in either the integer or the fraction. The number formed by the sign, the integer and the fraction is referred to as the significand. The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`) followed by one or more decimal digits. Services **should** normalize decimal values before storing them by: - Removing an explicitly-provided `+` sign (`+2.5` -\u003e `2.5`). - Replacing a zero-length integer value with `0` (`.5` -\u003e `0.5`). - Coercing the exponent character to upper-case, with explicit sign (`2.5e8` -\u003e `2.5E+8`). - Removing an explicitly-provided zero exponent (`2.5E0` -\u003e `2.5`). Services **may** perform additional normalization based on its own needs and the internal decimal implementation selected, such as shifting the decimal point and exponent value together (example: `2.5E-1` \u003c-\u003e `0.25`). Additionally, services **may** preserve trailing zeroes in the fraction to indicate increased precision, but are not required to do so. Note that only the `.` character is supported to divide the integer and the fraction; `,` **should not** be supported regardless of locale. Additionally, thousand separators **should not** be supported. If a service does support them, values **must** be normalized. The ENBF grammar is: DecimalString = '' | [Sign] Significand [Exponent]; Sign = '+' | '-'; Significand = Digits '.' | [Digits] '.' Digits; Exponent = ('e' | 'E') [Sign] Digits; Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; Services **should** clearly document the range of supported values, the maximum supported precision (total number of digits), and, if applicable, the scale (number of digits after the decimal point), as well as how it behaves when receiving out-of-bounds values. Services **may** choose to accept values passed as input even when the value has a higher precision or scale than the service supports, and **should** round the value to fit the supported scale. Alternatively, the service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) if precision would be lost. Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) if the service receives a value outside of the supported range.", + "type": "string" + } + }, + "type": "object" + }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", @@ -764,6 +816,24 @@ }, "type": "object" }, + "ListPlatformGroupsResponse": { + "description": "Response definition for the platform groups list rpc.", + "id": "ListPlatformGroupsResponse", + "properties": { + "nextPageToken": { + "description": "Continuation token used to page through platforms. To retrieve the next page of the results, set the next request's \"page_token\" value to this.", + "type": "string" + }, + "platformGroups": { + "description": "The platform groups returned in this list response.", + "items": { + "$ref": "PlatformGroup" + }, + "type": "array" + } + }, + "type": "object" + }, "ListPlatformsResponse": { "description": "Response definition for the platform list rpc.", "id": "ListPlatformsResponse", @@ -851,6 +921,26 @@ }, "type": "object" }, + "PlatformGroup": { + "description": "Representation of a Transparent Platform Group.", + "id": "PlatformGroup", + "properties": { + "description": { + "description": "Output only. Description of the PlatformGroup.", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Identifier. Format: accounts/{account}/platforms/{platform}/groups/{platform_group}", + "type": "string" + }, + "revshareMillipercent": { + "$ref": "Decimal", + "description": "The revenue share of the PlatformGroup, in millipercent (e.g. 15000 = 15%)." + } + }, + "type": "object" + }, "RequestSiteReviewResponse": { "description": "Response definition for the site request review rpc.", "id": "RequestSiteReviewResponse", diff --git a/adsenseplatform/v1alpha/adsenseplatform-gen.go b/adsenseplatform/v1alpha/adsenseplatform-gen.go index 7bab3e4f640..25dfa07c50e 100644 --- a/adsenseplatform/v1alpha/adsenseplatform-gen.go +++ b/adsenseplatform/v1alpha/adsenseplatform-gen.go @@ -183,6 +183,7 @@ type AccountsService struct { func NewAccountsPlatformsService(s *Service) *AccountsPlatformsService { rs := &AccountsPlatformsService{s: s} rs.ChildAccounts = NewAccountsPlatformsChildAccountsService(s) + rs.Groups = NewAccountsPlatformsGroupsService(s) return rs } @@ -190,6 +191,8 @@ type AccountsPlatformsService struct { s *Service ChildAccounts *AccountsPlatformsChildAccountsService + + Groups *AccountsPlatformsGroupsService } func NewAccountsPlatformsChildAccountsService(s *Service) *AccountsPlatformsChildAccountsService { @@ -213,6 +216,15 @@ type AccountsPlatformsChildAccountsSitesService struct { s *Service } +func NewAccountsPlatformsGroupsService(s *Service) *AccountsPlatformsGroupsService { + rs := &AccountsPlatformsGroupsService{s: s} + return rs +} + +type AccountsPlatformsGroupsService struct { + s *Service +} + func NewPlatformsService(s *Service) *PlatformsService { rs := &PlatformsService{s: s} rs.Accounts = NewPlatformsAccountsService(s) @@ -368,6 +380,68 @@ type CloseAccountResponse struct { googleapi.ServerResponse `json:"-"` } +// Decimal: A representation of a decimal value, such as 2.5. Clients may +// convert values into language-native decimal formats, such as Java's +// BigDecimal +// (https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html) +// or Python's decimal.Decimal +// (https://docs.python.org/3/library/decimal.html). +type Decimal struct { + // Value: The decimal value, as a string. The string representation consists of + // an optional sign, `+` (`U+002B`) or `-` (`U+002D`), followed by a sequence + // of zero or more decimal digits ("the integer"), optionally followed by a + // fraction, optionally followed by an exponent. An empty string **should** be + // interpreted as `0`. The fraction consists of a decimal point followed by + // zero or more decimal digits. The string must contain at least one digit in + // either the integer or the fraction. The number formed by the sign, the + // integer and the fraction is referred to as the significand. The exponent + // consists of the character `e` (`U+0065`) or `E` (`U+0045`) followed by one + // or more decimal digits. Services **should** normalize decimal values before + // storing them by: - Removing an explicitly-provided `+` sign (`+2.5` -> + // `2.5`). - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). - + // Coercing the exponent character to upper-case, with explicit sign (`2.5e8` + // -> `2.5E+8`). - Removing an explicitly-provided zero exponent (`2.5E0` -> + // `2.5`). Services **may** perform additional normalization based on its own + // needs and the internal decimal implementation selected, such as shifting the + // decimal point and exponent value together (example: `2.5E-1` <-> `0.25`). + // Additionally, services **may** preserve trailing zeroes in the fraction to + // indicate increased precision, but are not required to do so. Note that only + // the `.` character is supported to divide the integer and the fraction; `,` + // **should not** be supported regardless of locale. Additionally, thousand + // separators **should not** be supported. If a service does support them, + // values **must** be normalized. The ENBF grammar is: DecimalString = '' | + // [Sign] Significand [Exponent]; Sign = '+' | '-'; Significand = Digits '.' | + // [Digits] '.' Digits; Exponent = ('e' | 'E') [Sign] Digits; Digits = { '0' | + // '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; Services **should** + // clearly document the range of supported values, the maximum supported + // precision (total number of digits), and, if applicable, the scale (number of + // digits after the decimal point), as well as how it behaves when receiving + // out-of-bounds values. Services **may** choose to accept values passed as + // input even when the value has a higher precision or scale than the service + // supports, and **should** round the value to fit the supported scale. + // Alternatively, the service **may** error with `400 Bad Request` + // (`INVALID_ARGUMENT` in gRPC) if precision would be lost. Services **should** + // error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) if the service + // receives a value outside of the supported range. + Value string `json:"value,omitempty"` + // ForceSendFields is a list of field names (e.g. "Value") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Value") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s Decimal) MarshalJSON() ([]byte, error) { + type NoMethod Decimal + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Empty: A generic empty message that you can re-use to avoid defining // duplicated empty messages in your APIs. A typical example is to use it as // the request or the response type of an API method. For instance: service Foo @@ -499,6 +573,36 @@ func (s ListPlatformChildSitesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ListPlatformGroupsResponse: Response definition for the platform groups list +// rpc. +type ListPlatformGroupsResponse struct { + // NextPageToken: Continuation token used to page through platforms. To + // retrieve the next page of the results, set the next request's "page_token" + // value to this. + NextPageToken string `json:"nextPageToken,omitempty"` + // PlatformGroups: The platform groups returned in this list response. + PlatformGroups []*PlatformGroup `json:"platformGroups,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListPlatformGroupsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListPlatformGroupsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ListPlatformsResponse: Response definition for the platform list rpc. type ListPlatformsResponse struct { // NextPageToken: Continuation token used to page through platforms. To @@ -643,6 +747,34 @@ func (s PlatformChildSite) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// PlatformGroup: Representation of a Transparent Platform Group. +type PlatformGroup struct { + // Description: Output only. Description of the PlatformGroup. + Description string `json:"description,omitempty"` + // Name: Identifier. Format: + // accounts/{account}/platforms/{platform}/groups/{platform_group} + Name string `json:"name,omitempty"` + // RevshareMillipercent: The revenue share of the PlatformGroup, in + // millipercent (e.g. 15000 = 15%). + RevshareMillipercent *Decimal `json:"revshareMillipercent,omitempty"` + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s PlatformGroup) MarshalJSON() ([]byte, error) { + type NoMethod PlatformGroup + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // RequestSiteReviewResponse: Response definition for the site request review // rpc. type RequestSiteReviewResponse struct { @@ -1133,6 +1265,156 @@ func (c *AccountsPlatformsChildAccountsSitesListCall) Pages(ctx context.Context, } } +type AccountsPlatformsGroupsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists Platform Groups for a specified Platform. +// +// - parent: The name of the platform to retrieve. Format: +// accounts/{account}/platforms/{platform}. +func (r *AccountsPlatformsGroupsService) List(parent string) *AccountsPlatformsGroupsListCall { + c := &AccountsPlatformsGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// groups to include in the response, used for paging. If unspecified, at most +// 10000 groups will be returned. The maximum value is 10000; values above +// 10000 will be coerced to 10000. +func (c *AccountsPlatformsGroupsListCall) PageSize(pageSize int64) *AccountsPlatformsGroupsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListPlatformGroups` call. Provide this to retrieve the +// subsequent page. When paginating, all other parameters provided to +// `ListPlatformGroups` must match the call that provided the page token. +func (c *AccountsPlatformsGroupsListCall) PageToken(pageToken string) *AccountsPlatformsGroupsListCall { + 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 +// details. +func (c *AccountsPlatformsGroupsListCall) Fields(s ...googleapi.Field) *AccountsPlatformsGroupsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *AccountsPlatformsGroupsListCall) IfNoneMatch(entityTag string) *AccountsPlatformsGroupsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AccountsPlatformsGroupsListCall) Context(ctx context.Context) *AccountsPlatformsGroupsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *AccountsPlatformsGroupsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsPlatformsGroupsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/groups") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "adsenseplatform.accounts.platforms.groups.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "adsenseplatform.accounts.platforms.groups.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListPlatformGroupsResponse.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 *AccountsPlatformsGroupsListCall) Do(opts ...googleapi.CallOption) (*ListPlatformGroupsResponse, 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 := &ListPlatformGroupsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "adsenseplatform.accounts.platforms.groups.list", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +// 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 *AccountsPlatformsGroupsListCall) Pages(ctx context.Context, f func(*ListPlatformGroupsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + type PlatformsAccountsCloseCall struct { s *Service name string diff --git a/classroom/v1/classroom-api.json b/classroom/v1/classroom-api.json index 75d2143507c..f56d6b3fb83 100644 --- a/classroom/v1/classroom-api.json +++ b/classroom/v1/classroom-api.json @@ -3297,7 +3297,7 @@ "topics": { "methods": { "create": { - "description": "Creates a topic. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course, create a topic in the requested course, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course does not exist.", + "description": "Creates a topic. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course, create a topic in the requested course, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `ALREADY_EXISTS` if there exists a topic in the course with the same name. * `NOT_FOUND` if the requested course does not exist.", "flatPath": "v1/courses/{courseId}/topics", "httpMethod": "POST", "id": "classroom.courses.topics.create", @@ -3423,7 +3423,7 @@ ] }, "patch": { - "description": "Updates one or more fields of a topic. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project did not create the corresponding topic or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course or topic does not exist", + "description": "Updates one or more fields of a topic. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project did not create the corresponding topic or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `FAILED_PRECONDITION` if there exists a topic in the course with the same name. * `NOT_FOUND` if the requested course or topic does not exist", "flatPath": "v1/courses/{courseId}/topics/{id}", "httpMethod": "PATCH", "id": "classroom.courses.topics.patch", @@ -3949,7 +3949,7 @@ } } }, - "revision": "20241209", + "revision": "20250111", "rootUrl": "https://classroom.googleapis.com/", "schemas": { "AddOnAttachment": { diff --git a/classroom/v1/classroom-gen.go b/classroom/v1/classroom-gen.go index c32093ad746..9bfa394d8d5 100644 --- a/classroom/v1/classroom-gen.go +++ b/classroom/v1/classroom-gen.go @@ -13257,7 +13257,8 @@ type CoursesTopicsCreateCall struct { // Create: Creates a topic. This method returns the following error codes: * // `PERMISSION_DENIED` if the requesting user is not permitted to access the // requested course, create a topic in the requested course, or for access -// errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if +// errors. * `INVALID_ARGUMENT` if the request is malformed. * `ALREADY_EXISTS` +// if there exists a topic in the course with the same name. * `NOT_FOUND` if // the requested course does not exist. // // - courseId: Identifier of the course. This identifier can be either the @@ -13742,7 +13743,8 @@ type CoursesTopicsPatchCall struct { // Patch: Updates one or more fields of a topic. This method returns the // following error codes: * `PERMISSION_DENIED` if the requesting developer // project did not create the corresponding topic or for access errors. * -// `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the +// `INVALID_ARGUMENT` if the request is malformed. * `FAILED_PRECONDITION` if +// there exists a topic in the course with the same name. * `NOT_FOUND` if the // requested course or topic does not exist // // - courseId: Identifier of the course. This identifier can be either the diff --git a/cloudbuild/v1/cloudbuild-api.json b/cloudbuild/v1/cloudbuild-api.json index e0e2dff0184..bcfa8cb6100 100644 --- a/cloudbuild/v1/cloudbuild-api.json +++ b/cloudbuild/v1/cloudbuild-api.json @@ -161,11 +161,6 @@ "endpointUrl": "https://cloudbuild.northamerica-northeast2.rep.googleapis.com/", "location": "northamerica-northeast2" }, - { - "description": "Regional Endpoint", - "endpointUrl": "https://cloudbuild.northamerica-south1.rep.googleapis.com/", - "location": "northamerica-south1" - }, { "description": "Regional Endpoint", "endpointUrl": "https://cloudbuild.southamerica-east1.rep.googleapis.com/", @@ -2568,7 +2563,7 @@ } } }, - "revision": "20250102", + "revision": "20250114", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ApprovalConfig": { @@ -2678,6 +2673,13 @@ "description": "Artifacts produced by a build that should be uploaded upon successful completion of all build steps.", "id": "Artifacts", "properties": { + "goModules": { + "description": "Optional. A list of Go modules to be uploaded to Artifact Registry upon successful completion of all build steps. If any objects fail to be pushed, the build is marked FAILURE.", + "items": { + "$ref": "GoModule" + }, + "type": "array" + }, "images": { "description": "A list of images to be pushed upon the successful completion of all build steps. The images will be pushed using the builder service account's credentials. The digests of the pushed images will be stored in the Build resource's results field. If any of the images fail to be pushed, the build is marked FAILURE.", "items": { @@ -3258,6 +3260,10 @@ "description": "Option to specify whether or not to apply bash style string operations to the substitutions. NOTE: this is always enabled for triggered builds and cannot be overridden in the build configuration file.", "type": "boolean" }, + "enableStructuredLogging": { + "description": "Optional. Option to specify whether structured logging is enabled. If true, JSON-formatted logs are parsed as structured logs.", + "type": "boolean" + }, "env": { "description": "A list of global environment variable definitions that will exist for all build steps in this build. If a variable is defined in both globally and in a build step, the variable will use the build step value. The elements are of the form \"KEY=VALUE\" for the environment variable \"KEY\" being given the value \"VALUE\".", "items": { @@ -3365,12 +3371,14 @@ "NONE", "SHA256", "MD5", + "GO_MODULE_H1", "SHA512" ], "enumDescriptions": [ "No hash requested.", "Use a sha256 hash.", "Use a md5 hash.", + "Dirhash of a Go module's source code which is then hex-encoded.", "Use a sha512 hash." ], "type": "string" @@ -4459,6 +4467,37 @@ }, "type": "object" }, + "GoModule": { + "description": "Go module to upload to Artifact Registry upon successful completion of all build steps. A module refers to all dependencies in a go.mod file.", + "id": "GoModule", + "properties": { + "modulePath": { + "description": "Optional. The Go module's \"module path\". e.g. example.com/foo/v2", + "type": "string" + }, + "moduleVersion": { + "description": "Optional. The Go module's semantic version in the form vX.Y.Z. e.g. v0.1.1 Pre-release identifiers can also be added by appending a dash and dot separated ASCII alphanumeric characters and hyphens. e.g. v0.2.3-alpha.x.12m.5", + "type": "string" + }, + "repositoryLocation": { + "description": "Optional. Location of the Artifact Registry repository. i.e. us-east1 Defaults to the build’s location.", + "type": "string" + }, + "repositoryName": { + "description": "Optional. Artifact Registry repository name. Specified Go modules will be zipped and uploaded to Artifact Registry with this location as a prefix. e.g. my-go-repo", + "type": "string" + }, + "repositoryProjectId": { + "description": "Optional. Project ID of the Artifact Registry repository. Defaults to the build project.", + "type": "string" + }, + "sourcePath": { + "description": "Optional. Source path of the go.mod file in the build's workspace. If not specified, this will default to the current directory. e.g. ~/code/go/mypackage", + "type": "string" + } + }, + "type": "object" + }, "Hash": { "description": "Container message for hash values.", "id": "Hash", @@ -4469,12 +4508,14 @@ "NONE", "SHA256", "MD5", + "GO_MODULE_H1", "SHA512" ], "enumDescriptions": [ "No hash requested.", "Use a sha256 hash.", "Use a md5 hash.", + "Dirhash of a Go module's source code which is then hex-encoded.", "Use a sha512 hash." ], "type": "string" @@ -5145,6 +5186,13 @@ }, "type": "array" }, + "goModules": { + "description": "Optional. Go module artifacts uploaded to Artifact Registry at the end of the build.", + "items": { + "$ref": "UploadedGoModule" + }, + "type": "array" + }, "images": { "description": "Container images that were built as a part of the build.", "items": { @@ -5535,6 +5583,26 @@ }, "type": "object" }, + "UploadedGoModule": { + "description": "A Go module artifact uploaded to Artifact Registry using the GoModule directive.", + "id": "UploadedGoModule", + "properties": { + "fileHashes": { + "$ref": "FileHashes", + "description": "Hash types and values of the Go Module Artifact." + }, + "pushTiming": { + "$ref": "TimeSpan", + "description": "Output only. Stores timing information for pushing the specified artifact.", + "readOnly": true + }, + "uri": { + "description": "URI of the uploaded artifact.", + "type": "string" + } + }, + "type": "object" + }, "UploadedMavenArtifact": { "description": "A Maven artifact uploaded using the MavenArtifact directive.", "id": "UploadedMavenArtifact", diff --git a/cloudbuild/v1/cloudbuild-gen.go b/cloudbuild/v1/cloudbuild-gen.go index 6c54c83a114..3407c8a9468 100644 --- a/cloudbuild/v1/cloudbuild-gen.go +++ b/cloudbuild/v1/cloudbuild-gen.go @@ -543,6 +543,10 @@ func (s ArtifactResult) MarshalJSON() ([]byte, error) { // Artifacts: Artifacts produced by a build that should be uploaded upon // successful completion of all build steps. type Artifacts struct { + // GoModules: Optional. A list of Go modules to be uploaded to Artifact + // Registry upon successful completion of all build steps. If any objects fail + // to be pushed, the build is marked FAILURE. + GoModules []*GoModule `json:"goModules,omitempty"` // Images: A list of images to be pushed upon the successful completion of all // build steps. The images will be pushed using the builder service account's // credentials. The digests of the pushed images will be stored in the Build @@ -574,13 +578,13 @@ type Artifacts struct { // account credentials will be used to perform the upload. If any objects fail // to be pushed, the build is marked FAILURE. PythonPackages []*PythonPackage `json:"pythonPackages,omitempty"` - // ForceSendFields is a list of field names (e.g. "Images") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "GoModules") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Images") to include in API + // NullFields is a list of field names (e.g. "GoModules") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -1202,6 +1206,10 @@ type BuildOptions struct { // string operations to the substitutions. NOTE: this is always enabled for // triggered builds and cannot be overridden in the build configuration file. DynamicSubstitutions bool `json:"dynamicSubstitutions,omitempty"` + // EnableStructuredLogging: Optional. Option to specify whether structured + // logging is enabled. If true, JSON-formatted logs are parsed as structured + // logs. + EnableStructuredLogging bool `json:"enableStructuredLogging,omitempty"` // Env: A list of global environment variable definitions that will exist for // all build steps in this build. If a variable is defined in both globally and // in a build step, the variable will use the build step value. The elements @@ -1265,6 +1273,8 @@ type BuildOptions struct { // "NONE" - No hash requested. // "SHA256" - Use a sha256 hash. // "MD5" - Use a md5 hash. + // "GO_MODULE_H1" - Dirhash of a Go module's source code which is then + // hex-encoded. // "SHA512" - Use a sha512 hash. SourceProvenanceHash []string `json:"sourceProvenanceHash,omitempty"` // SubstitutionOption: Option to specify behavior when there is an error in the @@ -2590,6 +2600,49 @@ func (s GitSource) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoModule: Go module to upload to Artifact Registry upon successful +// completion of all build steps. A module refers to all dependencies in a +// go.mod file. +type GoModule struct { + // ModulePath: Optional. The Go module's "module path". e.g. example.com/foo/v2 + ModulePath string `json:"modulePath,omitempty"` + // ModuleVersion: Optional. The Go module's semantic version in the form + // vX.Y.Z. e.g. v0.1.1 Pre-release identifiers can also be added by appending a + // dash and dot separated ASCII alphanumeric characters and hyphens. e.g. + // v0.2.3-alpha.x.12m.5 + ModuleVersion string `json:"moduleVersion,omitempty"` + // RepositoryLocation: Optional. Location of the Artifact Registry repository. + // i.e. us-east1 Defaults to the build’s location. + RepositoryLocation string `json:"repositoryLocation,omitempty"` + // RepositoryName: Optional. Artifact Registry repository name. Specified Go + // modules will be zipped and uploaded to Artifact Registry with this location + // as a prefix. e.g. my-go-repo + RepositoryName string `json:"repositoryName,omitempty"` + // RepositoryProjectId: Optional. Project ID of the Artifact Registry + // repository. Defaults to the build project. + RepositoryProjectId string `json:"repositoryProjectId,omitempty"` + // SourcePath: Optional. Source path of the go.mod file in the build's + // workspace. If not specified, this will default to the current directory. + // e.g. ~/code/go/mypackage + SourcePath string `json:"sourcePath,omitempty"` + // ForceSendFields is a list of field names (e.g. "ModulePath") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ModulePath") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoModule) MarshalJSON() ([]byte, error) { + type NoMethod GoModule + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Hash: Container message for hash values. type Hash struct { // Type: The type of hash that was performed. @@ -2598,6 +2651,8 @@ type Hash struct { // "NONE" - No hash requested. // "SHA256" - Use a sha256 hash. // "MD5" - Use a md5 hash. + // "GO_MODULE_H1" - Dirhash of a Go module's source code which is then + // hex-encoded. // "SHA512" - Use a sha512 hash. Type string `json:"type,omitempty"` // Value: The hash value. @@ -3579,6 +3634,9 @@ type Results struct { // is stored. Note that the `$BUILDER_OUTPUT` variable is read-only and can't // be substituted. BuildStepOutputs []string `json:"buildStepOutputs,omitempty"` + // GoModules: Optional. Go module artifacts uploaded to Artifact Registry at + // the end of the build. + GoModules []*UploadedGoModule `json:"goModules,omitempty"` // Images: Container images that were built as a part of the build. Images []*BuiltImage `json:"images,omitempty"` // MavenArtifacts: Maven artifacts uploaded to Artifact Registry at the end of @@ -4104,6 +4162,34 @@ func (s UpdateWorkerPoolOperationMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// UploadedGoModule: A Go module artifact uploaded to Artifact Registry using +// the GoModule directive. +type UploadedGoModule struct { + // FileHashes: Hash types and values of the Go Module Artifact. + FileHashes *FileHashes `json:"fileHashes,omitempty"` + // PushTiming: Output only. Stores timing information for pushing the specified + // artifact. + PushTiming *TimeSpan `json:"pushTiming,omitempty"` + // Uri: URI of the uploaded artifact. + Uri string `json:"uri,omitempty"` + // ForceSendFields is a list of field names (e.g. "FileHashes") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "FileHashes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s UploadedGoModule) MarshalJSON() ([]byte, error) { + type NoMethod UploadedGoModule + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // UploadedMavenArtifact: A Maven artifact uploaded using the MavenArtifact // directive. type UploadedMavenArtifact struct { diff --git a/cloudbuild/v2/cloudbuild-api.json b/cloudbuild/v2/cloudbuild-api.json index a5884ae4653..9d7cf3c0343 100644 --- a/cloudbuild/v2/cloudbuild-api.json +++ b/cloudbuild/v2/cloudbuild-api.json @@ -161,11 +161,6 @@ "endpointUrl": "https://cloudbuild.northamerica-northeast2.rep.googleapis.com/", "location": "northamerica-northeast2" }, - { - "description": "Regional Endpoint", - "endpointUrl": "https://cloudbuild.northamerica-south1.rep.googleapis.com/", - "location": "northamerica-south1" - }, { "description": "Regional Endpoint", "endpointUrl": "https://cloudbuild.southamerica-east1.rep.googleapis.com/", @@ -1066,7 +1061,7 @@ } } }, - "revision": "20250102", + "revision": "20250114", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "AuditConfig": { diff --git a/discoveryengine/v1/discoveryengine-api.json b/discoveryengine/v1/discoveryengine-api.json index fc3a9bacec2..62123a3e3ed 100644 --- a/discoveryengine/v1/discoveryengine-api.json +++ b/discoveryengine/v1/discoveryengine-api.json @@ -6371,7 +6371,7 @@ } } }, - "revision": "20250107", + "revision": "20250114", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiDistribution": { @@ -10557,6 +10557,10 @@ "$ref": "GoogleCloudDiscoveryengineV1FirestoreSource", "description": "Firestore input source." }, + "forceRefreshContent": { + "description": "Optional. Whether to force refresh the unstructured content of the documents. If set to `true`, the content part of the documents will be refreshed regardless of the update status of the referencing content.", + "type": "boolean" + }, "gcsSource": { "$ref": "GoogleCloudDiscoveryengineV1GcsSource", "description": "Cloud Storage location for the input content." @@ -13476,7 +13480,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "Required. Params needed to support actions in the format of (Key, Value) pairs. Required parameters for sources that support OAUTH, i.e. `gmail`, `google_calendar`, `jira`, `workday`, `salesforce`, `confluence`: * Key: `client_id` * Value: type STRING. The client id for the service provider to identify your application. * Key: `client_secret` * Value:type STRING. The client secret generated by the application's authorization server.", + "description": "Required. Params needed to support actions in the format of (Key, Value) pairs. Required parameters for sources that support OAUTH, i.e. `gmail`, `google_calendar`, `jira`, `workday`, `salesforce`, `confluence`: * Key: `client_id` * Value: type STRING. The client ID for the service provider to identify your application. * Key: `client_secret` * Value:type STRING. The client secret generated by the application's authorization server.", "type": "object" }, "isActionConfigured": { @@ -14775,7 +14779,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "Required. Params needed to access the source in the format of (Key, Value) pairs. Required parameters for all data sources: * Key: `instance_uri` * Value: type STRING. The uri to access the data source. Required parameters for sources that support OAUTH, i.e. `salesforce`: * Key: `client_id` * Value: type STRING. The client id for the third party service provider to identify your application. * Key: `client_secret` * Value:type STRING. The client secret generated by the third party authorization server. * Key: `access_token` * Value: type STRING. OAuth token for UCS to access to the protected resource. * Key: `refresh_token` * Value: type STRING. OAuth refresh token for UCS to obtain a new access token without user interaction. Required parameters for sources that support basic API token auth, i.e. `jira`, `confluence`: * Key: `user_account` * Value: type STRING. The username or email with the source. * Key: `api_token` * Value: type STRING. The API token generated for the source account, that is used for authenticating anywhere where you would have used a password. Example: ```json { \"instance_uri\": \"https://xxx.atlassian.net\", \"user_account\": \"xxxx.xxx@xxx.com\", \"api_token\": \"test-token\" } ``` Optional parameter to specify the authorization type to use for multiple authorization types support: * Key: `auth_type` * Value: type STRING. The authorization type for the data source. Supported values: `BASIC_AUTH`, `OAUTH`, `OAUTH_ACCESS_TOKEN`, `OAUTH_TWO_LEGGED`, `OAUTH_JWT_BEARER`, `OAUTH_PASSWORD_GRANT`, `JWT`, `API_TOKEN`, `FEDERATED_CREDENTIAL`.", + "description": "Required. Params needed to access the source in the format of (Key, Value) pairs. Required parameters for all data sources: * Key: `instance_uri` * Value: type STRING. The uri to access the data source. Required parameters for sources that support OAUTH, i.e. `salesforce`: * Key: `client_id` * Value: type STRING. The client ID for the third party service provider to identify your application. * Key: `client_secret` * Value:type STRING. The client secret generated by the third party authorization server. * Key: `access_token` * Value: type STRING. OAuth token for UCS to access to the protected resource. * Key: `refresh_token` * Value: type STRING. OAuth refresh token for UCS to obtain a new access token without user interaction. Required parameters for sources that support basic API token auth, i.e. `jira`, `confluence`: * Key: `user_account` * Value: type STRING. The username or email with the source. * Key: `api_token` * Value: type STRING. The API token generated for the source account, that is used for authenticating anywhere where you would have used a password. Example: ```json { \"instance_uri\": \"https://xxx.atlassian.net\", \"user_account\": \"xxxx.xxx@xxx.com\", \"api_token\": \"test-token\" } ``` Optional parameter to specify the authorization type to use for multiple authorization types support: * Key: `auth_type` * Value: type STRING. The authorization type for the data source. Supported values: `BASIC_AUTH`, `OAUTH`, `OAUTH_ACCESS_TOKEN`, `OAUTH_TWO_LEGGED`, `OAUTH_JWT_BEARER`, `OAUTH_PASSWORD_GRANT`, `JWT`, `API_TOKEN`, `FEDERATED_CREDENTIAL`.", "type": "object" }, "privateConnectivityProjectId": { @@ -14865,7 +14869,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "The parameters for the entity to facilitate data ingestion. E.g. for BQ connectors: * Key: `document_id_column` * Value: type STRING. The value of the column id.", + "description": "The parameters for the entity to facilitate data ingestion. E.g. for BigQuery connectors: * Key: `document_id_column` * Value: type STRING. The value of the column ID.", "type": "object" } }, diff --git a/discoveryengine/v1/discoveryengine-gen.go b/discoveryengine/v1/discoveryengine-gen.go index 7d6a51df748..830d277e576 100644 --- a/discoveryengine/v1/discoveryengine-gen.go +++ b/discoveryengine/v1/discoveryengine-gen.go @@ -6782,6 +6782,11 @@ type GoogleCloudDiscoveryengineV1ImportDocumentsRequest struct { FhirStoreSource *GoogleCloudDiscoveryengineV1FhirStoreSource `json:"fhirStoreSource,omitempty"` // FirestoreSource: Firestore input source. FirestoreSource *GoogleCloudDiscoveryengineV1FirestoreSource `json:"firestoreSource,omitempty"` + // ForceRefreshContent: Optional. Whether to force refresh the unstructured + // content of the documents. If set to `true`, the content part of the + // documents will be refreshed regardless of the update status of the + // referencing content. + ForceRefreshContent bool `json:"forceRefreshContent,omitempty"` // GcsSource: Cloud Storage location for the input content. GcsSource *GoogleCloudDiscoveryengineV1GcsSource `json:"gcsSource,omitempty"` // IdField: The field indicates the ID field or column to be used as unique IDs @@ -11139,7 +11144,7 @@ type GoogleCloudDiscoveryengineV1alphaActionConfig struct { // ActionParams: Required. Params needed to support actions in the format of // (Key, Value) pairs. Required parameters for sources that support OAUTH, i.e. // `gmail`, `google_calendar`, `jira`, `workday`, `salesforce`, `confluence`: * - // Key: `client_id` * Value: type STRING. The client id for the service + // Key: `client_id` * Value: type STRING. The client ID for the service // provider to identify your application. * Key: `client_secret` * Value:type // STRING. The client secret generated by the application's authorization // server. @@ -12713,7 +12718,7 @@ type GoogleCloudDiscoveryengineV1alphaDataConnector struct { // Value) pairs. Required parameters for all data sources: * Key: // `instance_uri` * Value: type STRING. The uri to access the data source. // Required parameters for sources that support OAUTH, i.e. `salesforce`: * - // Key: `client_id` * Value: type STRING. The client id for the third party + // Key: `client_id` * Value: type STRING. The client ID for the third party // service provider to identify your application. * Key: `client_secret` * // Value:type STRING. The client secret generated by the third party // authorization server. * Key: `access_token` * Value: type STRING. OAuth @@ -12808,8 +12813,8 @@ type GoogleCloudDiscoveryengineV1alphaDataConnectorSourceEntity struct { // record. This would be displayed on search results. KeyPropertyMappings map[string]string `json:"keyPropertyMappings,omitempty"` // Params: The parameters for the entity to facilitate data ingestion. E.g. for - // BQ connectors: * Key: `document_id_column` * Value: type STRING. The value - // of the column id. + // BigQuery connectors: * Key: `document_id_column` * Value: type STRING. The + // value of the column ID. Params googleapi.RawMessage `json:"params,omitempty"` // ForceSendFields is a list of field names (e.g. "DataStore") to // unconditionally include in API requests. By default, fields with empty or diff --git a/discoveryengine/v1alpha/discoveryengine-api.json b/discoveryengine/v1alpha/discoveryengine-api.json index f34a0eddf71..e845fd2a7ed 100644 --- a/discoveryengine/v1alpha/discoveryengine-api.json +++ b/discoveryengine/v1alpha/discoveryengine-api.json @@ -8552,7 +8552,7 @@ } } }, - "revision": "20250107", + "revision": "20250114", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiDistribution": { @@ -11020,7 +11020,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "Required. Params needed to support actions in the format of (Key, Value) pairs. Required parameters for sources that support OAUTH, i.e. `gmail`, `google_calendar`, `jira`, `workday`, `salesforce`, `confluence`: * Key: `client_id` * Value: type STRING. The client id for the service provider to identify your application. * Key: `client_secret` * Value:type STRING. The client secret generated by the application's authorization server.", + "description": "Required. Params needed to support actions in the format of (Key, Value) pairs. Required parameters for sources that support OAUTH, i.e. `gmail`, `google_calendar`, `jira`, `workday`, `salesforce`, `confluence`: * Key: `client_id` * Value: type STRING. The client ID for the service provider to identify your application. * Key: `client_secret` * Value:type STRING. The client secret generated by the application's authorization server.", "type": "object" }, "isActionConfigured": { @@ -14073,7 +14073,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "Required. Params needed to access the source in the format of (Key, Value) pairs. Required parameters for all data sources: * Key: `instance_uri` * Value: type STRING. The uri to access the data source. Required parameters for sources that support OAUTH, i.e. `salesforce`: * Key: `client_id` * Value: type STRING. The client id for the third party service provider to identify your application. * Key: `client_secret` * Value:type STRING. The client secret generated by the third party authorization server. * Key: `access_token` * Value: type STRING. OAuth token for UCS to access to the protected resource. * Key: `refresh_token` * Value: type STRING. OAuth refresh token for UCS to obtain a new access token without user interaction. Required parameters for sources that support basic API token auth, i.e. `jira`, `confluence`: * Key: `user_account` * Value: type STRING. The username or email with the source. * Key: `api_token` * Value: type STRING. The API token generated for the source account, that is used for authenticating anywhere where you would have used a password. Example: ```json { \"instance_uri\": \"https://xxx.atlassian.net\", \"user_account\": \"xxxx.xxx@xxx.com\", \"api_token\": \"test-token\" } ``` Optional parameter to specify the authorization type to use for multiple authorization types support: * Key: `auth_type` * Value: type STRING. The authorization type for the data source. Supported values: `BASIC_AUTH`, `OAUTH`, `OAUTH_ACCESS_TOKEN`, `OAUTH_TWO_LEGGED`, `OAUTH_JWT_BEARER`, `OAUTH_PASSWORD_GRANT`, `JWT`, `API_TOKEN`, `FEDERATED_CREDENTIAL`.", + "description": "Required. Params needed to access the source in the format of (Key, Value) pairs. Required parameters for all data sources: * Key: `instance_uri` * Value: type STRING. The uri to access the data source. Required parameters for sources that support OAUTH, i.e. `salesforce`: * Key: `client_id` * Value: type STRING. The client ID for the third party service provider to identify your application. * Key: `client_secret` * Value:type STRING. The client secret generated by the third party authorization server. * Key: `access_token` * Value: type STRING. OAuth token for UCS to access to the protected resource. * Key: `refresh_token` * Value: type STRING. OAuth refresh token for UCS to obtain a new access token without user interaction. Required parameters for sources that support basic API token auth, i.e. `jira`, `confluence`: * Key: `user_account` * Value: type STRING. The username or email with the source. * Key: `api_token` * Value: type STRING. The API token generated for the source account, that is used for authenticating anywhere where you would have used a password. Example: ```json { \"instance_uri\": \"https://xxx.atlassian.net\", \"user_account\": \"xxxx.xxx@xxx.com\", \"api_token\": \"test-token\" } ``` Optional parameter to specify the authorization type to use for multiple authorization types support: * Key: `auth_type` * Value: type STRING. The authorization type for the data source. Supported values: `BASIC_AUTH`, `OAUTH`, `OAUTH_ACCESS_TOKEN`, `OAUTH_TWO_LEGGED`, `OAUTH_JWT_BEARER`, `OAUTH_PASSWORD_GRANT`, `JWT`, `API_TOKEN`, `FEDERATED_CREDENTIAL`.", "type": "object" }, "privateConnectivityProjectId": { @@ -14163,7 +14163,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "The parameters for the entity to facilitate data ingestion. E.g. for BQ connectors: * Key: `document_id_column` * Value: type STRING. The value of the column id.", + "description": "The parameters for the entity to facilitate data ingestion. E.g. for BigQuery connectors: * Key: `document_id_column` * Value: type STRING. The value of the column ID.", "type": "object" } }, @@ -16381,6 +16381,10 @@ "$ref": "GoogleCloudDiscoveryengineV1alphaFirestoreSource", "description": "Firestore input source." }, + "forceRefreshContent": { + "description": "Optional. Whether to force refresh the unstructured content of the documents. If set to `true`, the content part of the documents will be refreshed regardless of the update status of the referencing content.", + "type": "boolean" + }, "gcsSource": { "$ref": "GoogleCloudDiscoveryengineV1alphaGcsSource", "description": "Cloud Storage location for the input content." @@ -17173,7 +17177,7 @@ "id": "GoogleCloudDiscoveryengineV1alphaObtainCrawlRateRequest", "properties": { "crawlRateScope": { - "description": "Required. The scope of the crawl rate that the user wants to monitor. Currently, only domain and host name are supported. A domain name example: `abc.com`. A host name example: `www.abc.com`. Please do not include `/` in the domain or host name.", + "description": "Required. The scope of the crawl rate that the user wants to monitor. Currently, only domain and host name are supported. A domain name example: `example.com`. A host name example: `www.example.com`. Please do not include `/` in the domain or host name.", "type": "string" } }, @@ -18052,7 +18056,7 @@ "id": "GoogleCloudDiscoveryengineV1alphaRemoveDedicatedCrawlRateRequest", "properties": { "crawlRateScope": { - "description": "Required. The scope of the crawl rate change. Currently, only domain and host name are supported. A domain name example: `abc.com`. A host name example: `www.abc.com`. Please do not include `/` in the domain or host name.", + "description": "Required. The scope of the crawl rate change. Currently, only domain and host name are supported. A domain name example: `example.com`. A host name example: `www.example.com`. Please do not include `/` in the domain or host name.", "type": "string" } }, @@ -19336,6 +19340,10 @@ "$ref": "GoogleCloudDiscoveryengineV1alphaSearchResponseSessionInfo", "description": "Session information. Only set if SearchRequest.session is provided. See its description for more details." }, + "suggestedQuery": { + "description": "Corrected query with low confidence, AKA did you mean query. Compared with corrected_query, this field is set when SpellCorrector returned a response, but FPR(full page replacement) is not triggered because the corrction is of low confidence(eg, reversed because there are matches of the original query in document corpus).", + "type": "string" + }, "summary": { "$ref": "GoogleCloudDiscoveryengineV1alphaSearchResponseSummary", "description": "A summary as part of the search results. This field is only returned if SearchRequest.ContentSearchSpec.summary_spec is set." @@ -19453,6 +19461,10 @@ "description": "Rewritten input query minus the extracted filters.", "type": "string" }, + "sqlRequest": { + "$ref": "GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoSqlRequest", + "description": "Optional. The SQL request that was generated from the natural language query understanding phase." + }, "structuredExtractedFilter": { "$ref": "GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilter", "description": "The filters that were extracted from the input query represented in a structured form." @@ -19460,6 +19472,17 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoSqlRequest": { + "description": "The SQL request that was generated from the natural language query understanding phase.", + "id": "GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoSqlRequest", + "properties": { + "sqlQuery": { + "description": "Optional. The SQL query in text format.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilter": { "description": "The filters that were extracted from the input query represented in a structured form.", "id": "GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilter", @@ -20179,11 +20202,11 @@ "type": "integer" }, "crawlRateScope": { - "description": "Required. The scope of the crawl rate that the user wants to config. Currently, only domain and host name are supported. A domain name example: `abc.com`. A host name example: `www.abc.com`. Please do not include `/` in the domain or host name.", + "description": "Required. The scope of the crawl rate that the user wants to config. Currently, only domain and host name are supported. A domain name example: `example.com`. A host name example: `www.example.com`. Please do not include `/` in the domain or host name.", "type": "string" }, "crawlType": { - "description": "Optional. Whether it’s the crawl rate of user-triggered or auto-refresh.", + "description": "Optional. Whether it's the crawl rate of user-triggered or auto-refresh.", "enum": [ "CRAWL_TYPE_UNSPECIFIED", "USER_TRIGGERED", @@ -20427,6 +20450,10 @@ }, "type": "array" }, + "forceRefreshContent": { + "description": "Optional. Whether to force refresh the unstructured content of the documents. If set to `true`, the content part of the documents will be refreshed regardless of the update status of the referencing content.", + "type": "boolean" + }, "healthcareFhirResourceTypes": { "description": "The FHIR resource types to import. The resource types should be a subset of all [supported FHIR resource types](https://cloud.google.com/generative-ai-app-builder/docs/fhir-schema-reference#resource-level-specification). Default to all supported FHIR resource types if empty.", "items": { diff --git a/discoveryengine/v1alpha/discoveryengine-gen.go b/discoveryengine/v1alpha/discoveryengine-gen.go index b400aa3d5e9..e64dcbe6010 100644 --- a/discoveryengine/v1alpha/discoveryengine-gen.go +++ b/discoveryengine/v1alpha/discoveryengine-gen.go @@ -4580,7 +4580,7 @@ type GoogleCloudDiscoveryengineV1alphaActionConfig struct { // ActionParams: Required. Params needed to support actions in the format of // (Key, Value) pairs. Required parameters for sources that support OAUTH, i.e. // `gmail`, `google_calendar`, `jira`, `workday`, `salesforce`, `confluence`: * - // Key: `client_id` * Value: type STRING. The client id for the service + // Key: `client_id` * Value: type STRING. The client ID for the service // provider to identify your application. * Key: `client_secret` * Value:type // STRING. The client secret generated by the application's authorization // server. @@ -8601,7 +8601,7 @@ type GoogleCloudDiscoveryengineV1alphaDataConnector struct { // Value) pairs. Required parameters for all data sources: * Key: // `instance_uri` * Value: type STRING. The uri to access the data source. // Required parameters for sources that support OAUTH, i.e. `salesforce`: * - // Key: `client_id` * Value: type STRING. The client id for the third party + // Key: `client_id` * Value: type STRING. The client ID for the third party // service provider to identify your application. * Key: `client_secret` * // Value:type STRING. The client secret generated by the third party // authorization server. * Key: `access_token` * Value: type STRING. OAuth @@ -8699,8 +8699,8 @@ type GoogleCloudDiscoveryengineV1alphaDataConnectorSourceEntity struct { // record. This would be displayed on search results. KeyPropertyMappings map[string]string `json:"keyPropertyMappings,omitempty"` // Params: The parameters for the entity to facilitate data ingestion. E.g. for - // BQ connectors: * Key: `document_id_column` * Value: type STRING. The value - // of the column id. + // BigQuery connectors: * Key: `document_id_column` * Value: type STRING. The + // value of the column ID. Params googleapi.RawMessage `json:"params,omitempty"` // ForceSendFields is a list of field names (e.g. "DataStore") to // unconditionally include in API requests. By default, fields with empty or @@ -11860,6 +11860,11 @@ type GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest struct { FhirStoreSource *GoogleCloudDiscoveryengineV1alphaFhirStoreSource `json:"fhirStoreSource,omitempty"` // FirestoreSource: Firestore input source. FirestoreSource *GoogleCloudDiscoveryengineV1alphaFirestoreSource `json:"firestoreSource,omitempty"` + // ForceRefreshContent: Optional. Whether to force refresh the unstructured + // content of the documents. If set to `true`, the content part of the + // documents will be refreshed regardless of the update status of the + // referencing content. + ForceRefreshContent bool `json:"forceRefreshContent,omitempty"` // GcsSource: Cloud Storage location for the input content. GcsSource *GoogleCloudDiscoveryengineV1alphaGcsSource `json:"gcsSource,omitempty"` // IdField: The field indicates the ID field or column to be used as unique IDs @@ -13084,8 +13089,8 @@ func (s GoogleCloudDiscoveryengineV1alphaNaturalLanguageQueryUnderstandingConfig type GoogleCloudDiscoveryengineV1alphaObtainCrawlRateRequest struct { // CrawlRateScope: Required. The scope of the crawl rate that the user wants to // monitor. Currently, only domain and host name are supported. A domain name - // example: `abc.com`. A host name example: `www.abc.com`. Please do not - // include `/` in the domain or host name. + // example: `example.com`. A host name example: `www.example.com`. Please do + // not include `/` in the domain or host name. CrawlRateScope string `json:"crawlRateScope,omitempty"` // ForceSendFields is a list of field names (e.g. "CrawlRateScope") to // unconditionally include in API requests. By default, fields with empty or @@ -14415,9 +14420,9 @@ func (s GoogleCloudDiscoveryengineV1alphaRemoveDedicatedCrawlRateMetadata) Marsh // determined by Google. type GoogleCloudDiscoveryengineV1alphaRemoveDedicatedCrawlRateRequest struct { // CrawlRateScope: Required. The scope of the crawl rate change. Currently, - // only domain and host name are supported. A domain name example: `abc.com`. A - // host name example: `www.abc.com`. Please do not include `/` in the domain or - // host name. + // only domain and host name are supported. A domain name example: + // `example.com`. A host name example: `www.example.com`. Please do not include + // `/` in the domain or host name. CrawlRateScope string `json:"crawlRateScope,omitempty"` // ForceSendFields is a list of field names (e.g. "CrawlRateScope") to // unconditionally include in API requests. By default, fields with empty or @@ -16294,6 +16299,12 @@ type GoogleCloudDiscoveryengineV1alphaSearchResponse struct { // SessionInfo: Session information. Only set if SearchRequest.session is // provided. See its description for more details. SessionInfo *GoogleCloudDiscoveryengineV1alphaSearchResponseSessionInfo `json:"sessionInfo,omitempty"` + // SuggestedQuery: Corrected query with low confidence, AKA did you mean query. + // Compared with corrected_query, this field is set when SpellCorrector + // returned a response, but FPR(full page replacement) is not triggered because + // the corrction is of low confidence(eg, reversed because there are matches of + // the original query in document corpus). + SuggestedQuery string `json:"suggestedQuery,omitempty"` // Summary: A summary as part of the search results. This field is only // returned if SearchRequest.ContentSearchSpec.summary_spec is set. Summary *GoogleCloudDiscoveryengineV1alphaSearchResponseSummary `json:"summary,omitempty"` @@ -16465,6 +16476,9 @@ type GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUndersta ExtractedFilters string `json:"extractedFilters,omitempty"` // RewrittenQuery: Rewritten input query minus the extracted filters. RewrittenQuery string `json:"rewrittenQuery,omitempty"` + // SqlRequest: Optional. The SQL request that was generated from the natural + // language query understanding phase. + SqlRequest *GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoSqlRequest `json:"sqlRequest,omitempty"` // StructuredExtractedFilter: The filters that were extracted from the input // query represented in a structured form. StructuredExtractedFilter *GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilter `json:"structuredExtractedFilter,omitempty"` @@ -16486,6 +16500,30 @@ func (s GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnder return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstand +// ingInfoSqlRequest: The SQL request that was generated from the natural +// language query understanding phase. +type GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoSqlRequest struct { + // SqlQuery: Optional. The SQL query in text format. + SqlQuery string `json:"sqlQuery,omitempty"` + // ForceSendFields is a list of field names (e.g. "SqlQuery") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "SqlQuery") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoSqlRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoSqlRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstand // ingInfoStructuredExtractedFilter: The filters that were extracted from the // input query represented in a structured form. @@ -17474,10 +17512,10 @@ type GoogleCloudDiscoveryengineV1alphaSetDedicatedCrawlRateRequest struct { CrawlRate int64 `json:"crawlRate,omitempty"` // CrawlRateScope: Required. The scope of the crawl rate that the user wants to // config. Currently, only domain and host name are supported. A domain name - // example: `abc.com`. A host name example: `www.abc.com`. Please do not - // include `/` in the domain or host name. + // example: `example.com`. A host name example: `www.example.com`. Please do + // not include `/` in the domain or host name. CrawlRateScope string `json:"crawlRateScope,omitempty"` - // CrawlType: Optional. Whether it’s the crawl rate of user-triggered or + // CrawlType: Optional. Whether it's the crawl rate of user-triggered or // auto-refresh. // // Possible values: @@ -17813,6 +17851,11 @@ type GoogleCloudDiscoveryengineV1alphaStartConnectorRunRequest struct { // Entities: Specifies which Third Party Connector entities should be synced. // If not specified, all entities will be synced. Entities []string `json:"entities,omitempty"` + // ForceRefreshContent: Optional. Whether to force refresh the unstructured + // content of the documents. If set to `true`, the content part of the + // documents will be refreshed regardless of the update status of the + // referencing content. + ForceRefreshContent bool `json:"forceRefreshContent,omitempty"` // HealthcareFhirResourceTypes: The FHIR resource types to import. The resource // types should be a subset of all supported FHIR resource types // (https://cloud.google.com/generative-ai-app-builder/docs/fhir-schema-reference#resource-level-specification). diff --git a/discoveryengine/v1beta/discoveryengine-api.json b/discoveryengine/v1beta/discoveryengine-api.json index a562ab57c40..3589964df6a 100644 --- a/discoveryengine/v1beta/discoveryengine-api.json +++ b/discoveryengine/v1beta/discoveryengine-api.json @@ -7384,7 +7384,7 @@ } } }, - "revision": "20250107", + "revision": "20250114", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiDistribution": { @@ -9852,7 +9852,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "Required. Params needed to support actions in the format of (Key, Value) pairs. Required parameters for sources that support OAUTH, i.e. `gmail`, `google_calendar`, `jira`, `workday`, `salesforce`, `confluence`: * Key: `client_id` * Value: type STRING. The client id for the service provider to identify your application. * Key: `client_secret` * Value:type STRING. The client secret generated by the application's authorization server.", + "description": "Required. Params needed to support actions in the format of (Key, Value) pairs. Required parameters for sources that support OAUTH, i.e. `gmail`, `google_calendar`, `jira`, `workday`, `salesforce`, `confluence`: * Key: `client_id` * Value: type STRING. The client ID for the service provider to identify your application. * Key: `client_secret` * Value:type STRING. The client secret generated by the application's authorization server.", "type": "object" }, "isActionConfigured": { @@ -11151,7 +11151,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "Required. Params needed to access the source in the format of (Key, Value) pairs. Required parameters for all data sources: * Key: `instance_uri` * Value: type STRING. The uri to access the data source. Required parameters for sources that support OAUTH, i.e. `salesforce`: * Key: `client_id` * Value: type STRING. The client id for the third party service provider to identify your application. * Key: `client_secret` * Value:type STRING. The client secret generated by the third party authorization server. * Key: `access_token` * Value: type STRING. OAuth token for UCS to access to the protected resource. * Key: `refresh_token` * Value: type STRING. OAuth refresh token for UCS to obtain a new access token without user interaction. Required parameters for sources that support basic API token auth, i.e. `jira`, `confluence`: * Key: `user_account` * Value: type STRING. The username or email with the source. * Key: `api_token` * Value: type STRING. The API token generated for the source account, that is used for authenticating anywhere where you would have used a password. Example: ```json { \"instance_uri\": \"https://xxx.atlassian.net\", \"user_account\": \"xxxx.xxx@xxx.com\", \"api_token\": \"test-token\" } ``` Optional parameter to specify the authorization type to use for multiple authorization types support: * Key: `auth_type` * Value: type STRING. The authorization type for the data source. Supported values: `BASIC_AUTH`, `OAUTH`, `OAUTH_ACCESS_TOKEN`, `OAUTH_TWO_LEGGED`, `OAUTH_JWT_BEARER`, `OAUTH_PASSWORD_GRANT`, `JWT`, `API_TOKEN`, `FEDERATED_CREDENTIAL`.", + "description": "Required. Params needed to access the source in the format of (Key, Value) pairs. Required parameters for all data sources: * Key: `instance_uri` * Value: type STRING. The uri to access the data source. Required parameters for sources that support OAUTH, i.e. `salesforce`: * Key: `client_id` * Value: type STRING. The client ID for the third party service provider to identify your application. * Key: `client_secret` * Value:type STRING. The client secret generated by the third party authorization server. * Key: `access_token` * Value: type STRING. OAuth token for UCS to access to the protected resource. * Key: `refresh_token` * Value: type STRING. OAuth refresh token for UCS to obtain a new access token without user interaction. Required parameters for sources that support basic API token auth, i.e. `jira`, `confluence`: * Key: `user_account` * Value: type STRING. The username or email with the source. * Key: `api_token` * Value: type STRING. The API token generated for the source account, that is used for authenticating anywhere where you would have used a password. Example: ```json { \"instance_uri\": \"https://xxx.atlassian.net\", \"user_account\": \"xxxx.xxx@xxx.com\", \"api_token\": \"test-token\" } ``` Optional parameter to specify the authorization type to use for multiple authorization types support: * Key: `auth_type` * Value: type STRING. The authorization type for the data source. Supported values: `BASIC_AUTH`, `OAUTH`, `OAUTH_ACCESS_TOKEN`, `OAUTH_TWO_LEGGED`, `OAUTH_JWT_BEARER`, `OAUTH_PASSWORD_GRANT`, `JWT`, `API_TOKEN`, `FEDERATED_CREDENTIAL`.", "type": "object" }, "privateConnectivityProjectId": { @@ -11241,7 +11241,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "The parameters for the entity to facilitate data ingestion. E.g. for BQ connectors: * Key: `document_id_column` * Value: type STRING. The value of the column id.", + "description": "The parameters for the entity to facilitate data ingestion. E.g. for BigQuery connectors: * Key: `document_id_column` * Value: type STRING. The value of the column ID.", "type": "object" } }, @@ -18963,6 +18963,10 @@ "$ref": "GoogleCloudDiscoveryengineV1betaFirestoreSource", "description": "Firestore input source." }, + "forceRefreshContent": { + "description": "Optional. Whether to force refresh the unstructured content of the documents. If set to `true`, the content part of the documents will be refreshed regardless of the update status of the referencing content.", + "type": "boolean" + }, "gcsSource": { "$ref": "GoogleCloudDiscoveryengineV1betaGcsSource", "description": "Cloud Storage location for the input content." @@ -21305,6 +21309,10 @@ "$ref": "GoogleCloudDiscoveryengineV1betaSearchResponseSessionInfo", "description": "Session information. Only set if SearchRequest.session is provided. See its description for more details." }, + "suggestedQuery": { + "description": "Corrected query with low confidence, AKA did you mean query. Compared with corrected_query, this field is set when SpellCorrector returned a response, but FPR(full page replacement) is not triggered because the corrction is of low confidence(eg, reversed because there are matches of the original query in document corpus).", + "type": "string" + }, "summary": { "$ref": "GoogleCloudDiscoveryengineV1betaSearchResponseSummary", "description": "A summary as part of the search results. This field is only returned if SearchRequest.ContentSearchSpec.summary_spec is set." @@ -21422,6 +21430,10 @@ "description": "Rewritten input query minus the extracted filters.", "type": "string" }, + "sqlRequest": { + "$ref": "GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoSqlRequest", + "description": "Optional. The SQL request that was generated from the natural language query understanding phase." + }, "structuredExtractedFilter": { "$ref": "GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilter", "description": "The filters that were extracted from the input query represented in a structured form." @@ -21429,6 +21441,17 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoSqlRequest": { + "description": "The SQL request that was generated from the natural language query understanding phase.", + "id": "GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoSqlRequest", + "properties": { + "sqlQuery": { + "description": "Optional. The SQL query in text format.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilter": { "description": "The filters that were extracted from the input query represented in a structured form.", "id": "GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilter", diff --git a/discoveryengine/v1beta/discoveryengine-gen.go b/discoveryengine/v1beta/discoveryengine-gen.go index f17f2d1174d..c31e68a0710 100644 --- a/discoveryengine/v1beta/discoveryengine-gen.go +++ b/discoveryengine/v1beta/discoveryengine-gen.go @@ -4493,7 +4493,7 @@ type GoogleCloudDiscoveryengineV1alphaActionConfig struct { // ActionParams: Required. Params needed to support actions in the format of // (Key, Value) pairs. Required parameters for sources that support OAUTH, i.e. // `gmail`, `google_calendar`, `jira`, `workday`, `salesforce`, `confluence`: * - // Key: `client_id` * Value: type STRING. The client id for the service + // Key: `client_id` * Value: type STRING. The client ID for the service // provider to identify your application. * Key: `client_secret` * Value:type // STRING. The client secret generated by the application's authorization // server. @@ -6067,7 +6067,7 @@ type GoogleCloudDiscoveryengineV1alphaDataConnector struct { // Value) pairs. Required parameters for all data sources: * Key: // `instance_uri` * Value: type STRING. The uri to access the data source. // Required parameters for sources that support OAUTH, i.e. `salesforce`: * - // Key: `client_id` * Value: type STRING. The client id for the third party + // Key: `client_id` * Value: type STRING. The client ID for the third party // service provider to identify your application. * Key: `client_secret` * // Value:type STRING. The client secret generated by the third party // authorization server. * Key: `access_token` * Value: type STRING. OAuth @@ -6162,8 +6162,8 @@ type GoogleCloudDiscoveryengineV1alphaDataConnectorSourceEntity struct { // record. This would be displayed on search results. KeyPropertyMappings map[string]string `json:"keyPropertyMappings,omitempty"` // Params: The parameters for the entity to facilitate data ingestion. E.g. for - // BQ connectors: * Key: `document_id_column` * Value: type STRING. The value - // of the column id. + // BigQuery connectors: * Key: `document_id_column` * Value: type STRING. The + // value of the column ID. Params googleapi.RawMessage `json:"params,omitempty"` // ForceSendFields is a list of field names (e.g. "DataStore") to // unconditionally include in API requests. By default, fields with empty or @@ -16865,6 +16865,11 @@ type GoogleCloudDiscoveryengineV1betaImportDocumentsRequest struct { FhirStoreSource *GoogleCloudDiscoveryengineV1betaFhirStoreSource `json:"fhirStoreSource,omitempty"` // FirestoreSource: Firestore input source. FirestoreSource *GoogleCloudDiscoveryengineV1betaFirestoreSource `json:"firestoreSource,omitempty"` + // ForceRefreshContent: Optional. Whether to force refresh the unstructured + // content of the documents. If set to `true`, the content part of the + // documents will be refreshed regardless of the update status of the + // referencing content. + ForceRefreshContent bool `json:"forceRefreshContent,omitempty"` // GcsSource: Cloud Storage location for the input content. GcsSource *GoogleCloudDiscoveryengineV1betaGcsSource `json:"gcsSource,omitempty"` // IdField: The field indicates the ID field or column to be used as unique IDs @@ -20417,6 +20422,12 @@ type GoogleCloudDiscoveryengineV1betaSearchResponse struct { // SessionInfo: Session information. Only set if SearchRequest.session is // provided. See its description for more details. SessionInfo *GoogleCloudDiscoveryengineV1betaSearchResponseSessionInfo `json:"sessionInfo,omitempty"` + // SuggestedQuery: Corrected query with low confidence, AKA did you mean query. + // Compared with corrected_query, this field is set when SpellCorrector + // returned a response, but FPR(full page replacement) is not triggered because + // the corrction is of low confidence(eg, reversed because there are matches of + // the original query in document corpus). + SuggestedQuery string `json:"suggestedQuery,omitempty"` // Summary: A summary as part of the search results. This field is only // returned if SearchRequest.ContentSearchSpec.summary_spec is set. Summary *GoogleCloudDiscoveryengineV1betaSearchResponseSummary `json:"summary,omitempty"` @@ -20588,6 +20599,9 @@ type GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstan ExtractedFilters string `json:"extractedFilters,omitempty"` // RewrittenQuery: Rewritten input query minus the extracted filters. RewrittenQuery string `json:"rewrittenQuery,omitempty"` + // SqlRequest: Optional. The SQL request that was generated from the natural + // language query understanding phase. + SqlRequest *GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoSqlRequest `json:"sqlRequest,omitempty"` // StructuredExtractedFilter: The filters that were extracted from the input // query represented in a structured form. StructuredExtractedFilter *GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilter `json:"structuredExtractedFilter,omitempty"` @@ -20609,6 +20623,30 @@ func (s GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnders return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandi +// ngInfoSqlRequest: The SQL request that was generated from the natural +// language query understanding phase. +type GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoSqlRequest struct { + // SqlQuery: Optional. The SQL query in text format. + SqlQuery string `json:"sqlQuery,omitempty"` + // ForceSendFields is a list of field names (e.g. "SqlQuery") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "SqlQuery") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoSqlRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoSqlRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandi // ngInfoStructuredExtractedFilter: The filters that were extracted from the // input query represented in a structured form. diff --git a/firebase/v1beta1/firebase-api.json b/firebase/v1beta1/firebase-api.json index d2d5605478a..782d6fddaff 100644 --- a/firebase/v1beta1/firebase-api.json +++ b/firebase/v1beta1/firebase-api.json @@ -1324,7 +1324,7 @@ } } }, - "revision": "20250107", + "revision": "20250113", "rootUrl": "https://firebase.googleapis.com/", "schemas": { "AddFirebaseRequest": { @@ -2170,7 +2170,7 @@ "description": "message_set associates an arbitrary proto message with the status. copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional proto2.bridge.MessageSet message_set = 5;" }, "space": { - "description": "The following are usually only present when code != 0 Space to which this status belongs", + "description": "The following are usually only present when code != 0 Space to which this status belongs copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional string space = 2;", "type": "string" } }, diff --git a/firebase/v1beta1/firebase-gen.go b/firebase/v1beta1/firebase-gen.go index 8648b2ab615..53f38ca5bc0 100644 --- a/firebase/v1beta1/firebase-gen.go +++ b/firebase/v1beta1/firebase-gen.go @@ -1610,7 +1610,8 @@ type StatusProto struct { // optional proto2.bridge.MessageSet message_set = 5; MessageSet *MessageSet `json:"messageSet,omitempty"` // Space: The following are usually only present when code != 0 Space to which - // this status belongs + // this status belongs copybara:strip_begin(b/383363683) + // copybara:strip_end_and_replace optional string space = 2; Space string `json:"space,omitempty"` // ForceSendFields is a list of field names (e.g. "CanonicalCode") to // unconditionally include in API requests. By default, fields with empty or diff --git a/go.work.sum b/go.work.sum index 426a8a30c4f..37cc0fc9287 100644 --- a/go.work.sum +++ b/go.work.sum @@ -626,9 +626,7 @@ cloud.google.com/go/workflows v1.12.10/go.mod h1:RcKqCiOmKs8wFUEf3EwWZPH5eHc7Oq0 cloud.google.com/go/workflows v1.13.0/go.mod h1:StCuY3jhBj1HYMjCPqZs7J0deQLHPhF6hDtzWJaVF+Y= cloud.google.com/go/workflows v1.13.1/go.mod h1:xNdYtD6Sjoug+khNCAtBMK/rdh8qkjyL6aBas2XlkNc= cloud.google.com/go/workflows v1.13.2/go.mod h1:l5Wj2Eibqba4BsADIRzPLaevLmIuYF2W+wfFBkRG3vU= -github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= -github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= github.com/census-instrumentation/opencensus-proto v0.4.1/go.mod h1:4T9NM4+4Vw91VeyqjLS6ao50K5bOcLKN6Q42XnYaRYw= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= @@ -653,7 +651,6 @@ github.com/envoyproxy/protoc-gen-validate v1.0.4/go.mod h1:qys6tmnRsYrQqIhm2bvKZ github.com/envoyproxy/protoc-gen-validate v1.1.0/go.mod h1:sXRDRVmzEbkM7CVcM06s9shE/m23dg3wzjl0UWqJ2q4= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gliderlabs/ssh v0.3.7/go.mod h1:zpHEXBstFnQYtGnB8k8kQLol82umzn/2/snG7alWVD8= -github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399/go.mod h1:1OCfN199q1Jm3HZlxleg+Dw/mwps2Wbk9frAWm+4FII= github.com/go-logr/logr v1.3.0/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/glog v1.2.1/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= @@ -661,8 +658,6 @@ github.com/golang/glog v1.2.2/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwm github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= -github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= @@ -679,8 +674,6 @@ github.com/googleapis/gax-go/v2 v2.12.0/go.mod h1:y+aIqrI5eb1YGMVJfuV3185Ts/D7qK github.com/googleapis/gax-go/v2 v2.14.0 h1:f+jMrjBPl+DL9nI4IQzLUxMq7XrAqFYB7hBPqMNIe8o= github.com/googleapis/gax-go/v2 v2.14.0/go.mod h1:lhBCnjdLrWRaPvLWhmc8IS24m9mr07qSYnHncrgo+zk= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/mmcloughlin/avo v0.5.0/go.mod h1:ChHFdoV7ql95Wi7vuq2YT1bwCJqiWdZrQ1im3VujLYM= github.com/onsi/gomega v1.27.10/go.mod h1:RsS8tutOdbdgzbPtzzATp12yT7kM5I5aElG3evPbQ0M= github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10/go.mod h1:t/avpk3KcrXxUnYOhZhMXJlSEyie6gQbtLq5NM3loB8= @@ -710,7 +703,6 @@ golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= golang.org/x/crypto v0.30.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/mod v0.13.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= -golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= @@ -750,11 +742,10 @@ golang.org/x/term v0.23.0/go.mod h1:DgV24QBUrK6jhZXl+20l6UWznPlwAHm1Q1mGHtydmSk= golang.org/x/term v0.24.0/go.mod h1:lOBK/LVxemqiMij05LGJ0tzNr8xlmwBRJ81PX6wVLH8= golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= golang.org/x/term v0.26.0/go.mod h1:Si5m1o57C5nBNQo5z1iq+XDijt21BDBDp2bK0QI8e3E= -golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= +golang.org/x/term v0.28.0/go.mod h1:Sw/lC2IAUZ92udQNf3WodGtn4k/XoLyZoh8v/8uiwek= golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/tools v0.14.0/go.mod h1:uYBEerGOWcJyEORxN+Ek8+TT266gXkNlHdJBwexUsBg= -golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028/go.mod h1:NDW/Ps6MPRej6fsCIbMTohpP40sJ/P/vI1MoTEGwX90= @@ -798,5 +789,4 @@ google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJai google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= -gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/looker/v1/looker-api.json b/looker/v1/looker-api.json index fcddcaac7ca..21c62b2bd56 100644 --- a/looker/v1/looker-api.json +++ b/looker/v1/looker-api.json @@ -731,7 +731,7 @@ } } }, - "revision": "20241204", + "revision": "20250108", "rootUrl": "https://looker.googleapis.com/", "schemas": { "AdminSettings": { @@ -1077,7 +1077,8 @@ "type": "string" }, "customDomain": { - "$ref": "CustomDomain" + "$ref": "CustomDomain", + "description": "Custom domain configuration for the instance." }, "denyMaintenancePeriod": { "$ref": "DenyMaintenancePeriod", diff --git a/looker/v1/looker-gen.go b/looker/v1/looker-gen.go index c68f65de211..e52c8ae48d9 100644 --- a/looker/v1/looker-gen.go +++ b/looker/v1/looker-gen.go @@ -758,7 +758,8 @@ type Instance struct { ConsumerNetwork string `json:"consumerNetwork,omitempty"` // CreateTime: Output only. The time when the Looker instance provisioning was // first requested. - CreateTime string `json:"createTime,omitempty"` + CreateTime string `json:"createTime,omitempty"` + // CustomDomain: Custom domain configuration for the instance. CustomDomain *CustomDomain `json:"customDomain,omitempty"` // DenyMaintenancePeriod: Maintenance denial period for this instance. DenyMaintenancePeriod *DenyMaintenancePeriod `json:"denyMaintenancePeriod,omitempty"` diff --git a/monitoring/v3/monitoring-api.json b/monitoring/v3/monitoring-api.json index f222207feba..d4862403ea8 100644 --- a/monitoring/v3/monitoring-api.json +++ b/monitoring/v3/monitoring-api.json @@ -1204,6 +1204,11 @@ "name" ], "parameters": { + "activeOnly": { + "description": "Optional. If true, only metrics and monitored resource types that have recent data (within roughly 25 hours) will be included in the response. - If a metric descriptor enumerates monitored resource types, only the monitored resource types for which the metric type has recent data will be included in the returned metric descriptor, and if none of them have recent data, the metric descriptor will not be returned. - If a metric descriptor does not enumerate the compatible monitored resource types, it will be returned only if the metric type has recent data for some monitored resource type. The returned descriptor will not enumerate any monitored resource types.", + "location": "query", + "type": "boolean" + }, "filter": { "description": "Optional. If this field is empty, all custom and system-defined metric descriptors are returned. Otherwise, the filter (https://cloud.google.com/monitoring/api/v3/filters) specifies which metric descriptors are to be returned. For example, the following filter matches all custom metrics (https://cloud.google.com/monitoring/custom-metrics): metric.type = starts_with(\"custom.googleapis.com/\") ", "location": "query", @@ -2715,7 +2720,7 @@ } } }, - "revision": "20250102", + "revision": "20250111", "rootUrl": "https://monitoring.googleapis.com/", "schemas": { "Aggregation": { diff --git a/monitoring/v3/monitoring-gen.go b/monitoring/v3/monitoring-gen.go index 50cc2fff8e3..3009d9adb17 100644 --- a/monitoring/v3/monitoring-gen.go +++ b/monitoring/v3/monitoring-gen.go @@ -9290,6 +9290,21 @@ func (r *ProjectsMetricDescriptorsService) List(name string) *ProjectsMetricDesc return c } +// ActiveOnly sets the optional parameter "activeOnly": If true, only metrics +// and monitored resource types that have recent data (within roughly 25 hours) +// will be included in the response. - If a metric descriptor enumerates +// monitored resource types, only the monitored resource types for which the +// metric type has recent data will be included in the returned metric +// descriptor, and if none of them have recent data, the metric descriptor will +// not be returned. - If a metric descriptor does not enumerate the compatible +// monitored resource types, it will be returned only if the metric type has +// recent data for some monitored resource type. The returned descriptor will +// not enumerate any monitored resource types. +func (c *ProjectsMetricDescriptorsListCall) ActiveOnly(activeOnly bool) *ProjectsMetricDescriptorsListCall { + c.urlParams_.Set("activeOnly", fmt.Sprint(activeOnly)) + return c +} + // Filter sets the optional parameter "filter": If this field is empty, all // custom and system-defined metric descriptors are returned. Otherwise, the // filter (https://cloud.google.com/monitoring/api/v3/filters) specifies which diff --git a/retail/v2/retail-api.json b/retail/v2/retail-api.json index 9fc069488f7..9257c27f71d 100644 --- a/retail/v2/retail-api.json +++ b/retail/v2/retail-api.json @@ -12,7 +12,7 @@ "baseUrl": "https://retail.googleapis.com/", "batchPath": "batch", "canonicalName": "Cloud Retail", - "description": "Vertex AI Search for Retail API is made up of Retail Search, Browse and Recommendations. These discovery AI solutions help you implement personalized search, browse and recommendations, based on machine learning models, across your websites and mobile applications.", + "description": "Vertex AI Search for commerce API is made up of Retail Search, Browse and Recommendations. These discovery AI solutions help you implement personalized search, browse and recommendations, based on machine learning models, across your websites and mobile applications.", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/recommendations", "fullyEncodeReservedExpansion": true, @@ -2223,7 +2223,7 @@ } } }, - "revision": "20250107", + "revision": "20250109", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -7773,7 +7773,7 @@ } }, "servicePath": "", - "title": "Vertex AI Search for Retail API", + "title": "Vertex AI Search for commerce API", "version": "v2", "version_module": true } \ No newline at end of file diff --git a/retail/v2/retail-gen.go b/retail/v2/retail-gen.go index b6bbe2cb637..834294af412 100644 --- a/retail/v2/retail-gen.go +++ b/retail/v2/retail-gen.go @@ -4,7 +4,7 @@ // Code generated file. DO NOT EDIT. -// Package retail provides access to the Vertex AI Search for Retail API. +// Package retail provides access to the Vertex AI Search for commerce API. // // For product documentation, see: https://cloud.google.com/recommendations // diff --git a/retail/v2alpha/retail-api.json b/retail/v2alpha/retail-api.json index 18301771d0d..7e0202eb1db 100644 --- a/retail/v2alpha/retail-api.json +++ b/retail/v2alpha/retail-api.json @@ -12,7 +12,7 @@ "baseUrl": "https://retail.googleapis.com/", "batchPath": "batch", "canonicalName": "Cloud Retail", - "description": "Vertex AI Search for Retail API is made up of Retail Search, Browse and Recommendations. These discovery AI solutions help you implement personalized search, browse and recommendations, based on machine learning models, across your websites and mobile applications.", + "description": "Vertex AI Search for commerce API is made up of Retail Search, Browse and Recommendations. These discovery AI solutions help you implement personalized search, browse and recommendations, based on machine learning models, across your websites and mobile applications.", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/recommendations", "fullyEncodeReservedExpansion": true, @@ -2744,7 +2744,7 @@ } } }, - "revision": "20250107", + "revision": "20250109", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -8831,7 +8831,7 @@ } }, "servicePath": "", - "title": "Vertex AI Search for Retail API", + "title": "Vertex AI Search for commerce API", "version": "v2alpha", "version_module": true } \ No newline at end of file diff --git a/retail/v2alpha/retail-gen.go b/retail/v2alpha/retail-gen.go index 40d1a7b46eb..b3bd08fc2fe 100644 --- a/retail/v2alpha/retail-gen.go +++ b/retail/v2alpha/retail-gen.go @@ -4,7 +4,7 @@ // Code generated file. DO NOT EDIT. -// Package retail provides access to the Vertex AI Search for Retail API. +// Package retail provides access to the Vertex AI Search for commerce API. // // For product documentation, see: https://cloud.google.com/recommendations // diff --git a/retail/v2beta/retail-api.json b/retail/v2beta/retail-api.json index edbb2e26661..c1480a87e69 100644 --- a/retail/v2beta/retail-api.json +++ b/retail/v2beta/retail-api.json @@ -12,7 +12,7 @@ "baseUrl": "https://retail.googleapis.com/", "batchPath": "batch", "canonicalName": "Cloud Retail", - "description": "Vertex AI Search for Retail API is made up of Retail Search, Browse and Recommendations. These discovery AI solutions help you implement personalized search, browse and recommendations, based on machine learning models, across your websites and mobile applications.", + "description": "Vertex AI Search for commerce API is made up of Retail Search, Browse and Recommendations. These discovery AI solutions help you implement personalized search, browse and recommendations, based on machine learning models, across your websites and mobile applications.", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/recommendations", "fullyEncodeReservedExpansion": true, @@ -2368,7 +2368,7 @@ } } }, - "revision": "20250107", + "revision": "20250109", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -8135,7 +8135,7 @@ } }, "servicePath": "", - "title": "Vertex AI Search for Retail API", + "title": "Vertex AI Search for commerce API", "version": "v2beta", "version_module": true } \ No newline at end of file diff --git a/retail/v2beta/retail-gen.go b/retail/v2beta/retail-gen.go index 90d3fef4183..08be07d8427 100644 --- a/retail/v2beta/retail-gen.go +++ b/retail/v2beta/retail-gen.go @@ -4,7 +4,7 @@ // Code generated file. DO NOT EDIT. -// Package retail provides access to the Vertex AI Search for Retail API. +// Package retail provides access to the Vertex AI Search for commerce API. // // For product documentation, see: https://cloud.google.com/recommendations // diff --git a/tpu/v2/tpu-api.json b/tpu/v2/tpu-api.json index 81cfe41de8c..6bc1e7624ac 100644 --- a/tpu/v2/tpu-api.json +++ b/tpu/v2/tpu-api.json @@ -887,7 +887,7 @@ } } }, - "revision": "20250103", + "revision": "20250109", "rootUrl": "https://tpu.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -915,8 +915,8 @@ "TPU v3.", "TPU v4.", "TPU v5lite pod.", - "TPU v5p", - "TPU v6e" + "TPU v5p.", + "TPU v6e." ], "type": "string" } diff --git a/tpu/v2/tpu-gen.go b/tpu/v2/tpu-gen.go index cd699d2bb7d..2d2b2100085 100644 --- a/tpu/v2/tpu-gen.go +++ b/tpu/v2/tpu-gen.go @@ -250,8 +250,8 @@ type AcceleratorConfig struct { // "V3" - TPU v3. // "V4" - TPU v4. // "V5LITE_POD" - TPU v5lite pod. - // "V5P" - TPU v5p - // "V6E" - TPU v6e + // "V5P" - TPU v5p. + // "V6E" - TPU v6e. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Topology") to // unconditionally include in API requests. By default, fields with empty or diff --git a/websecurityscanner/v1/websecurityscanner-api.json b/websecurityscanner/v1/websecurityscanner-api.json index 3b4cf741040..d68bf26c837 100644 --- a/websecurityscanner/v1/websecurityscanner-api.json +++ b/websecurityscanner/v1/websecurityscanner-api.json @@ -233,7 +233,7 @@ ], "parameters": { "name": { - "description": "The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system.", + "description": "Identifier. The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system.", "location": "path", "pattern": "^projects/[^/]+/scanConfigs/[^/]+$", "required": true, @@ -526,7 +526,7 @@ } } }, - "revision": "20231021", + "revision": "20250105", "rootUrl": "https://websecurityscanner.googleapis.com/", "schemas": { "Authentication": { @@ -920,6 +920,9 @@ "description": "Whether to keep scanning even if most requests return HTTP error codes.", "type": "boolean" }, + "latestRun": { + "$ref": "ScanRun" + }, "managedScan": { "description": "Whether the scan config is managed by Web Security Scanner, output only.", "type": "boolean" @@ -930,7 +933,7 @@ "type": "integer" }, "name": { - "description": "The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system.", + "description": "Identifier. The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system.", "type": "string" }, "riskLevel": { @@ -962,6 +965,27 @@ "description": "Whether the scan configuration has enabled static IP address scan feature. If enabled, the scanner will access applications from static IP addresses.", "type": "boolean" }, + "targetPlatforms": { + "description": "Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.", + "items": { + "enum": [ + "TARGET_PLATFORM_UNSPECIFIED", + "APP_ENGINE", + "COMPUTE", + "CLOUD_RUN", + "CLOUD_FUNCTIONS" + ], + "enumDescriptions": [ + "The target platform is unknown. Requests with this enum value will be rejected with INVALID_ARGUMENT error.", + "Google App Engine service.", + "Google Compute Engine service.", + "Google Cloud Run service.", + "Google Cloud Function service." + ], + "type": "string" + }, + "type": "array" + }, "userAgent": { "description": "The user agent used during scanning.", "enum": [ diff --git a/websecurityscanner/v1/websecurityscanner-gen.go b/websecurityscanner/v1/websecurityscanner-gen.go index c6802f1d628..2ac9407101f 100644 --- a/websecurityscanner/v1/websecurityscanner-gen.go +++ b/websecurityscanner/v1/websecurityscanner-gen.go @@ -744,7 +744,8 @@ type ScanConfig struct { ExportToSecurityCommandCenter string `json:"exportToSecurityCommandCenter,omitempty"` // IgnoreHttpStatusErrors: Whether to keep scanning even if most requests // return HTTP error codes. - IgnoreHttpStatusErrors bool `json:"ignoreHttpStatusErrors,omitempty"` + IgnoreHttpStatusErrors bool `json:"ignoreHttpStatusErrors,omitempty"` + LatestRun *ScanRun `json:"latestRun,omitempty"` // ManagedScan: Whether the scan config is managed by Web Security Scanner, // output only. ManagedScan bool `json:"managedScan,omitempty"` @@ -753,9 +754,9 @@ type ScanConfig struct { // default to 15. Other values outside of [5, 20] range will be rejected with // INVALID_ARGUMENT error. MaxQps int64 `json:"maxQps,omitempty"` - // Name: The resource name of the ScanConfig. The name follows the format of - // 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are - // generated by the system. + // Name: Identifier. The resource name of the ScanConfig. The name follows the + // format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig + // IDs are generated by the system. Name string `json:"name,omitempty"` // RiskLevel: The risk level selected for the scan // @@ -773,6 +774,17 @@ type ScanConfig struct { // scan feature. If enabled, the scanner will access applications from static // IP addresses. StaticIpScan bool `json:"staticIpScan,omitempty"` + // TargetPlatforms: Set of Google Cloud platforms targeted by the scan. If + // empty, APP_ENGINE will be used as a default. + // + // Possible values: + // "TARGET_PLATFORM_UNSPECIFIED" - The target platform is unknown. Requests + // with this enum value will be rejected with INVALID_ARGUMENT error. + // "APP_ENGINE" - Google App Engine service. + // "COMPUTE" - Google Compute Engine service. + // "CLOUD_RUN" - Google Cloud Run service. + // "CLOUD_FUNCTIONS" - Google Cloud Function service. + TargetPlatforms []string `json:"targetPlatforms,omitempty"` // UserAgent: The user agent used during scanning. // // Possible values: @@ -1746,9 +1758,9 @@ type ProjectsScanConfigsPatchCall struct { // Patch: Updates a ScanConfig. This method support partial update of a // ScanConfig. // -// - name: The resource name of the ScanConfig. The name follows the format of -// 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are -// generated by the system. +// - name: Identifier. The resource name of the ScanConfig. The name follows +// the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The +// ScanConfig IDs are generated by the system. func (r *ProjectsScanConfigsService) Patch(name string, scanconfig *ScanConfig) *ProjectsScanConfigsPatchCall { c := &ProjectsScanConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name