From 78d790921afd246d57f46b0248828991d5c90667 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 5 Oct 2025 07:12:32 +0000 Subject: [PATCH] feat(all): auto-regenerate discovery clients --- appengine/v1alpha/appengine-api.json | 127 +++++++- appengine/v1alpha/appengine-gen.go | 292 +++++++++++++++++- appengine/v1beta/appengine-api.json | 122 +++++++- appengine/v1beta/appengine-gen.go | 281 ++++++++++++++++- chat/v1/chat-api.json | 17 +- chat/v1/chat-gen.go | 30 +- .../v1alpha1/containeranalysis-api.json | 50 ++- .../v1alpha1/containeranalysis-gen.go | 35 ++- redis/v1/redis-api.json | 145 ++++++++- redis/v1/redis-gen.go | 159 +++++++++- 10 files changed, 1216 insertions(+), 42 deletions(-) diff --git a/appengine/v1alpha/appengine-api.json b/appengine/v1alpha/appengine-api.json index 0565af3cee2..51c39b0c528 100644 --- a/appengine/v1alpha/appengine-api.json +++ b/appengine/v1alpha/appengine-api.json @@ -599,7 +599,7 @@ "type": "string" }, "extraLocationTypes": { - "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -698,6 +698,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to true, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field.This can only be true when reading across collections e.g. when parent is set to \"projects/example/locations/-\".This field is not by default supported and will result in an UNIMPLEMENTED error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1alpha/apps/{appsId}/operations", @@ -761,7 +766,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -1189,6 +1194,51 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "delete": { + "description": "Deletes the specified domain mapping. A user must be authorized to administer the associated domain in order to delete a DomainMapping resource.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/domainMappings/{domainMappingsId}", + "httpMethod": "DELETE", + "id": "appengine.projects.locations.applications.domainMappings.delete", + "parameterOrder": [ + "projectsId", + "locationsId", + "applicationsId", + "domainMappingsId" + ], + "parameters": { + "applicationsId": { + "description": "Part of `name`. See documentation of `projectsId`.", + "location": "path", + "required": true, + "type": "string" + }, + "domainMappingsId": { + "description": "Part of `name`. See documentation of `projectsId`.", + "location": "path", + "required": true, + "type": "string" + }, + "locationsId": { + "description": "Part of `name`. See documentation of `projectsId`.", + "location": "path", + "required": true, + "type": "string" + }, + "projectsId": { + "description": "Part of `name`. Required. Name of the resource to delete. Example: apps/myapp/domainMappings/example.com.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/domainMappings/{domainMappingsId}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "get": { "description": "Gets the specified domain mapping.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/domainMappings/{domainMappingsId}", @@ -1235,6 +1285,65 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only" ] + }, + "patch": { + "description": "Updates the specified domain mapping. To map an SSL certificate to a domain mapping, update certificate_id to point to an AuthorizedCertificate resource. A user must be authorized to administer the associated domain in order to update a DomainMapping resource.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/domainMappings/{domainMappingsId}", + "httpMethod": "PATCH", + "id": "appengine.projects.locations.applications.domainMappings.patch", + "parameterOrder": [ + "projectsId", + "locationsId", + "applicationsId", + "domainMappingsId" + ], + "parameters": { + "applicationsId": { + "description": "Part of `name`. See documentation of `projectsId`.", + "location": "path", + "required": true, + "type": "string" + }, + "domainMappingsId": { + "description": "Part of `name`. See documentation of `projectsId`.", + "location": "path", + "required": true, + "type": "string" + }, + "locationsId": { + "description": "Part of `name`. See documentation of `projectsId`.", + "location": "path", + "required": true, + "type": "string" + }, + "noManagedCertificate": { + "description": "Whether a managed certificate should be provided by App Engine. If true, a certificate ID must be manually set in the DomainMapping resource to configure SSL for this domain. If false, a managed certificate will be provisioned and a certificate ID will be automatically populated. Only applicable if ssl_settings.certificate_id is specified in the update mask.", + "location": "query", + "type": "boolean" + }, + "projectsId": { + "description": "Part of `name`. Required. Name of the resource to update. Example: apps/myapp/domainMappings/example.com.", + "location": "path", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. Standard field mask for the set of fields to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/domainMappings/{domainMappingsId}", + "request": { + "$ref": "DomainMapping" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } } @@ -1319,6 +1428,11 @@ "location": "path", "required": true, "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to true, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field.This can only be true when reading across collections e.g. when parent is set to \"projects/example/locations/-\".This field is not by default supported and will result in an UNIMPLEMENTED error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1alpha/projects/{projectsId}/locations/{locationsId}/operations", @@ -1338,7 +1452,7 @@ } } }, - "revision": "20250816", + "revision": "20250930", "rootUrl": "https://appengine.googleapis.com/", "schemas": { "AuthorizedCertificate": { @@ -1641,6 +1755,13 @@ "$ref": "Operation" }, "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets ListOperationsRequest.return_partial_success and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/appengine/v1alpha/appengine-gen.go b/appengine/v1alpha/appengine-gen.go index d38b7565b6f..0f8ea072035 100644 --- a/appengine/v1alpha/appengine-gen.go +++ b/appengine/v1alpha/appengine-gen.go @@ -801,6 +801,11 @@ type ListOperationsResponse struct { // Operations: A list of operations that matches the specified filter in the // request. Operations []*Operation `json:"operations,omitempty"` + // Unreachable: Unordered list. Unreachable resources. Populated when the + // request sets ListOperationsRequest.return_partial_success and reads across + // collections e.g. when attempting to list all resources across all supported + // locations. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -2986,9 +2991,9 @@ func (r *AppsLocationsService) List(appsId string) *AppsLocationsListCall { return c } -// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do not -// use this field. It is unsupported and is ignored unless explicitly -// documented otherwise. This is primarily for internal usage. +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Unless +// explicitly documented otherwise, don't use this unsupported field which is +// primarily intended for internal usage. func (c *AppsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *AppsLocationsListCall { c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) return c @@ -3285,6 +3290,19 @@ func (c *AppsOperationsListCall) PageToken(pageToken string) *AppsOperationsList return c } +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to true, operations that are reachable are returned as normal, and +// those that are unreachable are returned in the +// ListOperationsResponse.unreachable field.This can only be true when reading +// across collections e.g. when parent is set to +// "projects/example/locations/-".This field is not by default supported and +// will result in an UNIMPLEMENTED error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *AppsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *AppsOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. @@ -3530,9 +3548,9 @@ func (r *ProjectsLocationsService) List(projectsId string) *ProjectsLocationsLis return c } -// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do not -// use this field. It is unsupported and is ignored unless explicitly -// documented otherwise. This is primarily for internal usage. +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Unless +// explicitly documented otherwise, don't use this unsupported field which is +// primarily intended for internal usage. func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) return c @@ -4643,6 +4661,118 @@ func (c *ProjectsLocationsApplicationsDomainMappingsCreateCall) Do(opts ...googl return ret, nil } +type ProjectsLocationsApplicationsDomainMappingsDeleteCall struct { + s *APIService + projectsId string + locationsId string + applicationsId string + domainMappingsId string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the specified domain mapping. A user must be authorized to +// administer the associated domain in order to delete a DomainMapping +// resource. +// +// - applicationsId: Part of `name`. See documentation of `projectsId`. +// - domainMappingsId: Part of `name`. See documentation of `projectsId`. +// - locationsId: Part of `name`. See documentation of `projectsId`. +// - projectsId: Part of `name`. Name of the resource to delete. Example: +// apps/myapp/domainMappings/example.com. +func (r *ProjectsLocationsApplicationsDomainMappingsService) Delete(projectsId string, locationsId string, applicationsId string, domainMappingsId string) *ProjectsLocationsApplicationsDomainMappingsDeleteCall { + c := &ProjectsLocationsApplicationsDomainMappingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.projectsId = projectsId + c.locationsId = locationsId + c.applicationsId = applicationsId + c.domainMappingsId = domainMappingsId + 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 *ProjectsLocationsApplicationsDomainMappingsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsDomainMappingsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsApplicationsDomainMappingsDeleteCall) Context(ctx context.Context) *ProjectsLocationsApplicationsDomainMappingsDeleteCall { + 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 *ProjectsLocationsApplicationsDomainMappingsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsApplicationsDomainMappingsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/domainMappings/{domainMappingsId}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "projectsId": c.projectsId, + "locationsId": c.locationsId, + "applicationsId": c.applicationsId, + "domainMappingsId": c.domainMappingsId, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "appengine.projects.locations.applications.domainMappings.delete", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "appengine.projects.locations.applications.domainMappings.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsApplicationsDomainMappingsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "appengine.projects.locations.applications.domainMappings.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsLocationsApplicationsDomainMappingsGetCall struct { s *APIService projectsId string @@ -4765,6 +4895,143 @@ func (c *ProjectsLocationsApplicationsDomainMappingsGetCall) Do(opts ...googleap return ret, nil } +type ProjectsLocationsApplicationsDomainMappingsPatchCall struct { + s *APIService + projectsId string + locationsId string + applicationsId string + domainMappingsId string + domainmapping *DomainMapping + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the specified domain mapping. To map an SSL certificate to a +// domain mapping, update certificate_id to point to an AuthorizedCertificate +// resource. A user must be authorized to administer the associated domain in +// order to update a DomainMapping resource. +// +// - applicationsId: Part of `name`. See documentation of `projectsId`. +// - domainMappingsId: Part of `name`. See documentation of `projectsId`. +// - locationsId: Part of `name`. See documentation of `projectsId`. +// - projectsId: Part of `name`. Name of the resource to update. Example: +// apps/myapp/domainMappings/example.com. +func (r *ProjectsLocationsApplicationsDomainMappingsService) Patch(projectsId string, locationsId string, applicationsId string, domainMappingsId string, domainmapping *DomainMapping) *ProjectsLocationsApplicationsDomainMappingsPatchCall { + c := &ProjectsLocationsApplicationsDomainMappingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.projectsId = projectsId + c.locationsId = locationsId + c.applicationsId = applicationsId + c.domainMappingsId = domainMappingsId + c.domainmapping = domainmapping + return c +} + +// NoManagedCertificate sets the optional parameter "noManagedCertificate": +// Whether a managed certificate should be provided by App Engine. If true, a +// certificate ID must be manually set in the DomainMapping resource to +// configure SSL for this domain. If false, a managed certificate will be +// provisioned and a certificate ID will be automatically populated. Only +// applicable if ssl_settings.certificate_id is specified in the update mask. +func (c *ProjectsLocationsApplicationsDomainMappingsPatchCall) NoManagedCertificate(noManagedCertificate bool) *ProjectsLocationsApplicationsDomainMappingsPatchCall { + c.urlParams_.Set("noManagedCertificate", fmt.Sprint(noManagedCertificate)) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Standard +// field mask for the set of fields to be updated. +func (c *ProjectsLocationsApplicationsDomainMappingsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsApplicationsDomainMappingsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsApplicationsDomainMappingsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsDomainMappingsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsApplicationsDomainMappingsPatchCall) Context(ctx context.Context) *ProjectsLocationsApplicationsDomainMappingsPatchCall { + 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 *ProjectsLocationsApplicationsDomainMappingsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsApplicationsDomainMappingsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.domainmapping) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/domainMappings/{domainMappingsId}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "projectsId": c.projectsId, + "locationsId": c.locationsId, + "applicationsId": c.applicationsId, + "domainMappingsId": c.domainMappingsId, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "appengine.projects.locations.applications.domainMappings.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "appengine.projects.locations.applications.domainMappings.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsApplicationsDomainMappingsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "appengine.projects.locations.applications.domainMappings.patch", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsLocationsOperationsGetCall struct { s *APIService projectsId string @@ -4926,6 +5193,19 @@ func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *Proje return c } +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to true, operations that are reachable are returned as normal, and +// those that are unreachable are returned in the +// ListOperationsResponse.unreachable field.This can only be true when reading +// across collections e.g. when parent is set to +// "projects/example/locations/-".This field is not by default supported and +// will result in an UNIMPLEMENTED error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. diff --git a/appengine/v1beta/appengine-api.json b/appengine/v1beta/appengine-api.json index 8ef998055d1..7cfd61ccc2d 100644 --- a/appengine/v1beta/appengine-api.json +++ b/appengine/v1beta/appengine-api.json @@ -959,7 +959,7 @@ "type": "string" }, "extraLocationTypes": { - "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -1058,6 +1058,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to true, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field.This can only be true when reading across collections e.g. when parent is set to \"projects/example/locations/-\".This field is not by default supported and will result in an UNIMPLEMENTED error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1beta/apps/{appsId}/operations", @@ -1733,7 +1738,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -2205,6 +2210,51 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "delete": { + "description": "Deletes the specified domain mapping. A user must be authorized to administer the associated domain in order to delete a DomainMapping resource.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/domainMappings/{domainMappingsId}", + "httpMethod": "DELETE", + "id": "appengine.projects.locations.applications.domainMappings.delete", + "parameterOrder": [ + "projectsId", + "locationsId", + "applicationsId", + "domainMappingsId" + ], + "parameters": { + "applicationsId": { + "description": "Part of `name`. See documentation of `projectsId`.", + "location": "path", + "required": true, + "type": "string" + }, + "domainMappingsId": { + "description": "Part of `name`. See documentation of `projectsId`.", + "location": "path", + "required": true, + "type": "string" + }, + "locationsId": { + "description": "Part of `name`. See documentation of `projectsId`.", + "location": "path", + "required": true, + "type": "string" + }, + "projectsId": { + "description": "Part of `name`. Required. Name of the resource to delete. Example: apps/myapp/domainMappings/example.com.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/domainMappings/{domainMappingsId}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "get": { "description": "Gets the specified domain mapping.", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/domainMappings/{domainMappingsId}", @@ -2251,6 +2301,60 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only" ] + }, + "patch": { + "description": "Updates the specified domain mapping. To map an SSL certificate to a domain mapping, update certificate_id to point to an AuthorizedCertificate resource. A user must be authorized to administer the associated domain in order to update a DomainMapping resource.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/domainMappings/{domainMappingsId}", + "httpMethod": "PATCH", + "id": "appengine.projects.locations.applications.domainMappings.patch", + "parameterOrder": [ + "projectsId", + "locationsId", + "applicationsId", + "domainMappingsId" + ], + "parameters": { + "applicationsId": { + "description": "Part of `name`. See documentation of `projectsId`.", + "location": "path", + "required": true, + "type": "string" + }, + "domainMappingsId": { + "description": "Part of `name`. See documentation of `projectsId`.", + "location": "path", + "required": true, + "type": "string" + }, + "locationsId": { + "description": "Part of `name`. See documentation of `projectsId`.", + "location": "path", + "required": true, + "type": "string" + }, + "projectsId": { + "description": "Part of `name`. Required. Name of the resource to update. Example: apps/myapp/domainMappings/example.com.", + "location": "path", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. Standard field mask for the set of fields to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/domainMappings/{domainMappingsId}", + "request": { + "$ref": "DomainMapping" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } }, @@ -2562,6 +2666,11 @@ "location": "path", "required": true, "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to true, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field.This can only be true when reading across collections e.g. when parent is set to \"projects/example/locations/-\".This field is not by default supported and will result in an UNIMPLEMENTED error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1beta/projects/{projectsId}/locations/{locationsId}/operations", @@ -2581,7 +2690,7 @@ } } }, - "revision": "20250816", + "revision": "20250930", "rootUrl": "https://appengine.googleapis.com/", "schemas": { "ApiConfigHandler": { @@ -3769,6 +3878,13 @@ "$ref": "Operation" }, "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets ListOperationsRequest.return_partial_success and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/appengine/v1beta/appengine-gen.go b/appengine/v1beta/appengine-gen.go index 752c154c353..d63616cdda3 100644 --- a/appengine/v1beta/appengine-gen.go +++ b/appengine/v1beta/appengine-gen.go @@ -2011,6 +2011,11 @@ type ListOperationsResponse struct { // Operations: A list of operations that matches the specified filter in the // request. Operations []*Operation `json:"operations,omitempty"` + // Unreachable: Unordered list. Unreachable resources. Populated when the + // request sets ListOperationsRequest.return_partial_success and reads across + // collections e.g. when attempting to list all resources across all supported + // locations. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -6527,9 +6532,9 @@ func (r *AppsLocationsService) List(appsId string) *AppsLocationsListCall { return c } -// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do not -// use this field. It is unsupported and is ignored unless explicitly -// documented otherwise. This is primarily for internal usage. +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Unless +// explicitly documented otherwise, don't use this unsupported field which is +// primarily intended for internal usage. func (c *AppsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *AppsLocationsListCall { c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) return c @@ -6826,6 +6831,19 @@ func (c *AppsOperationsListCall) PageToken(pageToken string) *AppsOperationsList return c } +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to true, operations that are reachable are returned as normal, and +// those that are unreachable are returned in the +// ListOperationsResponse.unreachable field.This can only be true when reading +// across collections e.g. when parent is set to +// "projects/example/locations/-".This field is not by default supported and +// will result in an UNIMPLEMENTED error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *AppsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *AppsOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. @@ -8791,9 +8809,9 @@ func (r *ProjectsLocationsService) List(projectsId string) *ProjectsLocationsLis return c } -// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do not -// use this field. It is unsupported and is ignored unless explicitly -// documented otherwise. This is primarily for internal usage. +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Unless +// explicitly documented otherwise, don't use this unsupported field which is +// primarily intended for internal usage. func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) return c @@ -10017,6 +10035,118 @@ func (c *ProjectsLocationsApplicationsDomainMappingsCreateCall) Do(opts ...googl return ret, nil } +type ProjectsLocationsApplicationsDomainMappingsDeleteCall struct { + s *APIService + projectsId string + locationsId string + applicationsId string + domainMappingsId string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the specified domain mapping. A user must be authorized to +// administer the associated domain in order to delete a DomainMapping +// resource. +// +// - applicationsId: Part of `name`. See documentation of `projectsId`. +// - domainMappingsId: Part of `name`. See documentation of `projectsId`. +// - locationsId: Part of `name`. See documentation of `projectsId`. +// - projectsId: Part of `name`. Name of the resource to delete. Example: +// apps/myapp/domainMappings/example.com. +func (r *ProjectsLocationsApplicationsDomainMappingsService) Delete(projectsId string, locationsId string, applicationsId string, domainMappingsId string) *ProjectsLocationsApplicationsDomainMappingsDeleteCall { + c := &ProjectsLocationsApplicationsDomainMappingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.projectsId = projectsId + c.locationsId = locationsId + c.applicationsId = applicationsId + c.domainMappingsId = domainMappingsId + 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 *ProjectsLocationsApplicationsDomainMappingsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsDomainMappingsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsApplicationsDomainMappingsDeleteCall) Context(ctx context.Context) *ProjectsLocationsApplicationsDomainMappingsDeleteCall { + 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 *ProjectsLocationsApplicationsDomainMappingsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsApplicationsDomainMappingsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/domainMappings/{domainMappingsId}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "projectsId": c.projectsId, + "locationsId": c.locationsId, + "applicationsId": c.applicationsId, + "domainMappingsId": c.domainMappingsId, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "appengine.projects.locations.applications.domainMappings.delete", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "appengine.projects.locations.applications.domainMappings.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsApplicationsDomainMappingsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "appengine.projects.locations.applications.domainMappings.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsLocationsApplicationsDomainMappingsGetCall struct { s *APIService projectsId string @@ -10139,6 +10269,132 @@ func (c *ProjectsLocationsApplicationsDomainMappingsGetCall) Do(opts ...googleap return ret, nil } +type ProjectsLocationsApplicationsDomainMappingsPatchCall struct { + s *APIService + projectsId string + locationsId string + applicationsId string + domainMappingsId string + domainmapping *DomainMapping + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the specified domain mapping. To map an SSL certificate to a +// domain mapping, update certificate_id to point to an AuthorizedCertificate +// resource. A user must be authorized to administer the associated domain in +// order to update a DomainMapping resource. +// +// - applicationsId: Part of `name`. See documentation of `projectsId`. +// - domainMappingsId: Part of `name`. See documentation of `projectsId`. +// - locationsId: Part of `name`. See documentation of `projectsId`. +// - projectsId: Part of `name`. Name of the resource to update. Example: +// apps/myapp/domainMappings/example.com. +func (r *ProjectsLocationsApplicationsDomainMappingsService) Patch(projectsId string, locationsId string, applicationsId string, domainMappingsId string, domainmapping *DomainMapping) *ProjectsLocationsApplicationsDomainMappingsPatchCall { + c := &ProjectsLocationsApplicationsDomainMappingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.projectsId = projectsId + c.locationsId = locationsId + c.applicationsId = applicationsId + c.domainMappingsId = domainMappingsId + c.domainmapping = domainmapping + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Standard +// field mask for the set of fields to be updated. +func (c *ProjectsLocationsApplicationsDomainMappingsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsApplicationsDomainMappingsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsApplicationsDomainMappingsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsDomainMappingsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsApplicationsDomainMappingsPatchCall) Context(ctx context.Context) *ProjectsLocationsApplicationsDomainMappingsPatchCall { + 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 *ProjectsLocationsApplicationsDomainMappingsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsApplicationsDomainMappingsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.domainmapping) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/domainMappings/{domainMappingsId}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "projectsId": c.projectsId, + "locationsId": c.locationsId, + "applicationsId": c.applicationsId, + "domainMappingsId": c.domainMappingsId, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "appengine.projects.locations.applications.domainMappings.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "appengine.projects.locations.applications.domainMappings.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsApplicationsDomainMappingsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "appengine.projects.locations.applications.domainMappings.patch", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsLocationsApplicationsServicesDeleteCall struct { s *APIService projectsId string @@ -10824,6 +11080,19 @@ func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *Proje return c } +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to true, operations that are reachable are returned as normal, and +// those that are unreachable are returned in the +// ListOperationsResponse.unreachable field.This can only be true when reading +// across collections e.g. when parent is set to +// "projects/example/locations/-".This field is not by default supported and +// will result in an UNIMPLEMENTED error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index d6fb1949da8..6d8346ee0a3 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -23,6 +23,9 @@ "https://www.googleapis.com/auth/chat.app.memberships": { "description": "On their own behalf, apps in Google Chat can see, add, update, and remove members from conversations and spaces" }, + "https://www.googleapis.com/auth/chat.app.messages.readonly": { + "description": "On their own behalf, apps in Google Chat can see all messages and their associated reactions and message content" + }, "https://www.googleapis.com/auth/chat.app.spaces": { "description": "On their own behalf, apps in Google Chat can create conversations and spaces and see or update their metadata (including history settings and access settings)" }, @@ -995,6 +998,7 @@ "$ref": "Message" }, "scopes": [ + "https://www.googleapis.com/auth/chat.app.messages.readonly", "https://www.googleapis.com/auth/chat.bot", "https://www.googleapis.com/auth/chat.messages", "https://www.googleapis.com/auth/chat.messages.readonly" @@ -1048,6 +1052,7 @@ "$ref": "ListMessagesResponse" }, "scopes": [ + "https://www.googleapis.com/auth/chat.app.messages.readonly", "https://www.googleapis.com/auth/chat.import", "https://www.googleapis.com/auth/chat.messages", "https://www.googleapis.com/auth/chat.messages.readonly" @@ -1299,6 +1304,7 @@ }, "scopes": [ "https://www.googleapis.com/auth/chat.app.memberships", + "https://www.googleapis.com/auth/chat.app.messages.readonly", "https://www.googleapis.com/auth/chat.app.spaces", "https://www.googleapis.com/auth/chat.memberships", "https://www.googleapis.com/auth/chat.memberships.readonly", @@ -1349,6 +1355,7 @@ }, "scopes": [ "https://www.googleapis.com/auth/chat.app.memberships", + "https://www.googleapis.com/auth/chat.app.messages.readonly", "https://www.googleapis.com/auth/chat.app.spaces", "https://www.googleapis.com/auth/chat.memberships", "https://www.googleapis.com/auth/chat.memberships.readonly", @@ -1528,7 +1535,7 @@ } } }, - "revision": "20250923", + "revision": "20250930", "rootUrl": "https://chat.googleapis.com/", "schemas": { "AccessSettings": { @@ -4491,8 +4498,8 @@ ], "enumDescriptions": [ "Default value. For users: they aren't a member of the space, but can be invited. For Google Groups: they're always assigned this role (other enum values might be used in the future).", - "A member of the space. The user has basic permissions, like sending messages to the space. In 1:1 and unnamed group conversations, everyone has this role.", - "A space manager. The user has all basic permissions plus administrative permissions that let them manage the space, like adding or removing members. Only supported in SpaceType.SPACE." + "A member of the space. In the Chat UI, this role is called Member. The user has basic permissions, like sending messages to the space. Managers and owners can grant members additional permissions in a space, including: - Add or remove members. - Modify space details. - Turn history on or off. - Mention everyone in the space with `@all`. - Manage Chat apps and webhooks installed in the space. In direct messages and unnamed group conversations, everyone has this role.", + "A space owner. In the Chat UI, this role is called Owner. The user has the complete set of space permissions to manage the space, including: - Change the role of other members in the space to member, manager, or owner. - Delete the space. Only supported in SpaceType.SPACE (named spaces). To learn more, see [Learn more about your role as a space owner or manager](https://support.google.com/chat/answer/11833441)." ], "type": "string" }, @@ -4865,11 +4872,11 @@ "id": "PermissionSetting", "properties": { "managersAllowed": { - "description": "Optional. Whether spaces managers have this permission.", + "description": "Optional. Whether space owners (`ROLE_MANAGER`) have this permission.", "type": "boolean" }, "membersAllowed": { - "description": "Optional. Whether non-manager members have this permission.", + "description": "Optional. Whether basic space members (`ROLE_MEMBER`) have this permission.", "type": "boolean" } }, diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index ed34332b176..460694946b5 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -130,6 +130,10 @@ const ( // members from conversations and spaces ChatAppMembershipsScope = "https://www.googleapis.com/auth/chat.app.memberships" + // On their own behalf, apps in Google Chat can see all messages and their + // associated reactions and message content + ChatAppMessagesReadonlyScope = "https://www.googleapis.com/auth/chat.app.messages.readonly" + // On their own behalf, apps in Google Chat can create conversations and spaces // and see or update their metadata (including history settings and access // settings) @@ -214,6 +218,7 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err "https://www.googleapis.com/auth/chat.admin.spaces.readonly", "https://www.googleapis.com/auth/chat.app.delete", "https://www.googleapis.com/auth/chat.app.memberships", + "https://www.googleapis.com/auth/chat.app.messages.readonly", "https://www.googleapis.com/auth/chat.app.spaces", "https://www.googleapis.com/auth/chat.app.spaces.create", "https://www.googleapis.com/auth/chat.bot", @@ -4824,12 +4829,19 @@ type Membership struct { // "MEMBERSHIP_ROLE_UNSPECIFIED" - Default value. For users: they aren't a // member of the space, but can be invited. For Google Groups: they're always // assigned this role (other enum values might be used in the future). - // "ROLE_MEMBER" - A member of the space. The user has basic permissions, - // like sending messages to the space. In 1:1 and unnamed group conversations, - // everyone has this role. - // "ROLE_MANAGER" - A space manager. The user has all basic permissions plus - // administrative permissions that let them manage the space, like adding or - // removing members. Only supported in SpaceType.SPACE. + // "ROLE_MEMBER" - A member of the space. In the Chat UI, this role is called + // Member. The user has basic permissions, like sending messages to the space. + // Managers and owners can grant members additional permissions in a space, + // including: - Add or remove members. - Modify space details. - Turn history + // on or off. - Mention everyone in the space with `@all`. - Manage Chat apps + // and webhooks installed in the space. In direct messages and unnamed group + // conversations, everyone has this role. + // "ROLE_MANAGER" - A space owner. In the Chat UI, this role is called Owner. + // The user has the complete set of space permissions to manage the space, + // including: - Change the role of other members in the space to member, + // manager, or owner. - Delete the space. Only supported in SpaceType.SPACE + // (named spaces). To learn more, see [Learn more about your role as a space + // owner or manager](https://support.google.com/chat/answer/11833441). Role string `json:"role,omitempty"` // State: Output only. State of the membership. // @@ -5390,9 +5402,11 @@ func (s OpenLink) MarshalJSON() ([]byte, error) { // PermissionSetting: Represents a space permission setting. type PermissionSetting struct { - // ManagersAllowed: Optional. Whether spaces managers have this permission. + // ManagersAllowed: Optional. Whether space owners (`ROLE_MANAGER`) have this + // permission. ManagersAllowed bool `json:"managersAllowed,omitempty"` - // MembersAllowed: Optional. Whether non-manager members have this permission. + // MembersAllowed: Optional. Whether basic space members (`ROLE_MEMBER`) have + // this permission. MembersAllowed bool `json:"membersAllowed,omitempty"` // ForceSendFields is a list of field names (e.g. "ManagersAllowed") to // unconditionally include in API requests. By default, fields with empty or diff --git a/containeranalysis/v1alpha1/containeranalysis-api.json b/containeranalysis/v1alpha1/containeranalysis-api.json index f6cba5852e8..0411c44a685 100644 --- a/containeranalysis/v1alpha1/containeranalysis-api.json +++ b/containeranalysis/v1alpha1/containeranalysis-api.json @@ -1452,7 +1452,7 @@ } } }, - "revision": "20250829", + "revision": "20250928", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AnalysisCompleted": { @@ -5150,6 +5150,10 @@ }, "type": "array" }, + "chainId": { + "description": "The chain ID of the layer in the container image.", + "type": "string" + }, "command": { "description": "The layer build command that was used to build the layer. This may not be found in all layers depending on how the container image is built.", "type": "string" @@ -6624,12 +6628,52 @@ "enum": [ "SECRET_KIND_UNSPECIFIED", "SECRET_KIND_UNKNOWN", - "SECRET_KIND_GCP_SERVICE_ACCOUNT_KEY" + "SECRET_KIND_GCP_SERVICE_ACCOUNT_KEY", + "SECRET_KIND_GCP_API_KEY", + "SECRET_KIND_GCP_OAUTH2_CLIENT_CREDENTIALS", + "SECRET_KIND_GCP_OAUTH2_ACCESS_TOKEN", + "SECRET_KIND_ANTHROPIC_ADMIN_API_KEY", + "SECRET_KIND_ANTHROPIC_API_KEY", + "SECRET_KIND_AZURE_ACCESS_TOKEN", + "SECRET_KIND_AZURE_IDENTITY_TOKEN", + "SECRET_KIND_DOCKER_HUB_PERSONAL_ACCESS_TOKEN", + "SECRET_KIND_GITHUB_APP_REFRESH_TOKEN", + "SECRET_KIND_GITHUB_APP_SERVER_TO_SERVER_TOKEN", + "SECRET_KIND_GITHUB_APP_USER_TO_SERVER_TOKEN", + "SECRET_KIND_GITHUB_CLASSIC_PERSONAL_ACCESS_TOKEN", + "SECRET_KIND_GITHUB_FINE_GRAINED_PERSONAL_ACCESS_TOKEN", + "SECRET_KIND_GITHUB_OAUTH_TOKEN", + "SECRET_KIND_HUGGINGFACE_API_KEY", + "SECRET_KIND_OPENAI_API_KEY", + "SECRET_KIND_PERPLEXITY_API_KEY", + "SECRET_KIND_STRIPE_SECRET_KEY", + "SECRET_KIND_STRIPE_RESTRICTED_KEY", + "SECRET_KIND_STRIPE_WEBHOOK_SECRET" ], "enumDescriptions": [ "Unspecified", "The secret kind is unknown.", - "A GCP service account key per: https://cloud.google.com/iam/docs/creating-managing-service-account-keys" + "A Google Cloud service account key per: https://cloud.google.com/iam/docs/creating-managing-service-account-keys", + "A Google Cloud API key per: https://cloud.google.com/docs/authentication/api-keys", + "A Google Cloud OAuth2 client credentials per: https://developers.google.com/identity/protocols/oauth2", + "A Google Cloud OAuth2 access token per: https://cloud.google.com/docs/authentication/token-types#access", + "An Anthropic Admin API key. This is called Workspace API key in Scalibr.", + "An Anthropic API key. This is called Model key in Scalibr.", + "An Azure access token.", + "An Azure Identity Platform ID token.", + "A Docker Hub personal access token.", + "A GitHub App refresh token.", + "A GitHub App server-to-server token.", + "A GitHub App user-to-server token.", + "A GitHub personal access token (classic).", + "A GitHub fine-grained personal access token.", + "A GitHub OAuth token.", + "A Hugging Face API key.", + "An OpenAI API key.", + "A Perplexity API key.", + "A Stripe secret key.", + "A Stripe restricted key.", + "A Stripe webhook secret." ], "type": "string" }, diff --git a/containeranalysis/v1alpha1/containeranalysis-gen.go b/containeranalysis/v1alpha1/containeranalysis-gen.go index 4f5c84099be..7d9ec357629 100644 --- a/containeranalysis/v1alpha1/containeranalysis-gen.go +++ b/containeranalysis/v1alpha1/containeranalysis-gen.go @@ -4695,6 +4695,8 @@ func (s Layer) MarshalJSON() ([]byte, error) { type LayerDetails struct { // BaseImages: The base images the layer is found within. BaseImages []*BaseImage `json:"baseImages,omitempty"` + // ChainId: The chain ID of the layer in the container image. + ChainId string `json:"chainId,omitempty"` // Command: The layer build command that was used to build the layer. This may // not be found in all layers depending on how the container image is built. Command string `json:"command,omitempty"` @@ -6359,8 +6361,39 @@ type SecretOccurrence struct { // Possible values: // "SECRET_KIND_UNSPECIFIED" - Unspecified // "SECRET_KIND_UNKNOWN" - The secret kind is unknown. - // "SECRET_KIND_GCP_SERVICE_ACCOUNT_KEY" - A GCP service account key per: + // "SECRET_KIND_GCP_SERVICE_ACCOUNT_KEY" - A Google Cloud service account key + // per: // https://cloud.google.com/iam/docs/creating-managing-service-account-keys + // "SECRET_KIND_GCP_API_KEY" - A Google Cloud API key per: + // https://cloud.google.com/docs/authentication/api-keys + // "SECRET_KIND_GCP_OAUTH2_CLIENT_CREDENTIALS" - A Google Cloud OAuth2 client + // credentials per: https://developers.google.com/identity/protocols/oauth2 + // "SECRET_KIND_GCP_OAUTH2_ACCESS_TOKEN" - A Google Cloud OAuth2 access token + // per: https://cloud.google.com/docs/authentication/token-types#access + // "SECRET_KIND_ANTHROPIC_ADMIN_API_KEY" - An Anthropic Admin API key. This + // is called Workspace API key in Scalibr. + // "SECRET_KIND_ANTHROPIC_API_KEY" - An Anthropic API key. This is called + // Model key in Scalibr. + // "SECRET_KIND_AZURE_ACCESS_TOKEN" - An Azure access token. + // "SECRET_KIND_AZURE_IDENTITY_TOKEN" - An Azure Identity Platform ID token. + // "SECRET_KIND_DOCKER_HUB_PERSONAL_ACCESS_TOKEN" - A Docker Hub personal + // access token. + // "SECRET_KIND_GITHUB_APP_REFRESH_TOKEN" - A GitHub App refresh token. + // "SECRET_KIND_GITHUB_APP_SERVER_TO_SERVER_TOKEN" - A GitHub App + // server-to-server token. + // "SECRET_KIND_GITHUB_APP_USER_TO_SERVER_TOKEN" - A GitHub App + // user-to-server token. + // "SECRET_KIND_GITHUB_CLASSIC_PERSONAL_ACCESS_TOKEN" - A GitHub personal + // access token (classic). + // "SECRET_KIND_GITHUB_FINE_GRAINED_PERSONAL_ACCESS_TOKEN" - A GitHub + // fine-grained personal access token. + // "SECRET_KIND_GITHUB_OAUTH_TOKEN" - A GitHub OAuth token. + // "SECRET_KIND_HUGGINGFACE_API_KEY" - A Hugging Face API key. + // "SECRET_KIND_OPENAI_API_KEY" - An OpenAI API key. + // "SECRET_KIND_PERPLEXITY_API_KEY" - A Perplexity API key. + // "SECRET_KIND_STRIPE_SECRET_KEY" - A Stripe secret key. + // "SECRET_KIND_STRIPE_RESTRICTED_KEY" - A Stripe restricted key. + // "SECRET_KIND_STRIPE_WEBHOOK_SECRET" - A Stripe webhook secret. Kind string `json:"kind,omitempty"` // Locations: Optional. Locations where the secret is detected. Locations []*SecretLocation `json:"locations,omitempty"` diff --git a/redis/v1/redis-api.json b/redis/v1/redis-api.json index bb9940a289d..2b9d1ffdabe 100644 --- a/redis/v1/redis-api.json +++ b/redis/v1/redis-api.json @@ -1073,7 +1073,7 @@ } } }, - "revision": "20250909", + "revision": "20250930", "rootUrl": "https://redis.googleapis.com/", "schemas": { "AOFConfig": { @@ -1608,6 +1608,10 @@ "description": "Output only. ClusterMaintenanceSchedule Output only Published maintenance schedule.", "readOnly": true }, + "maintenanceVersion": { + "description": "Optional. This field can be used to trigger self service update to indicate the desired maintenance version. The input to this field can be determined by the available_maintenance_versions field.", + "type": "string" + }, "managedBackupSource": { "$ref": "ManagedBackupSource", "description": "Optional. Backups generated and managed by memorystore service." @@ -2303,7 +2307,8 @@ "SIGNAL_TYPE_MANY_IDLE_CONNECTIONS", "SIGNAL_TYPE_REPLICATION_LAG", "SIGNAL_TYPE_OUTDATED_VERSION", - "SIGNAL_TYPE_OUTDATED_CLIENT" + "SIGNAL_TYPE_OUTDATED_CLIENT", + "SIGNAL_TYPE_DATABOOST_DISABLED" ], "enumDeprecated": [ false, @@ -2407,6 +2412,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -2511,7 +2517,8 @@ "High number of idle connections.", "Replication delay.", "Outdated version.", - "Outdated client." + "Outdated client.", + "Databoost is disabled." ], "type": "string" }, @@ -2575,7 +2582,7 @@ "type": "object" }, "DatabaseResourceMetadata": { - "description": "Common model for database resource instance metadata. Next ID: 27", + "description": "Common model for database resource instance metadata. Next ID: 29", "id": "DatabaseResourceMetadata", "properties": { "availabilityConfiguration": { @@ -2726,6 +2733,10 @@ "$ref": "MachineConfiguration", "description": "Machine configuration for this resource." }, + "maintenanceInfo": { + "$ref": "ResourceMaintenanceInfo", + "description": "Optional. Maintenance info for the resource." + }, "primaryResourceId": { "$ref": "DatabaseResourceId", "description": "Identifier for this resource's immediate parent/primary resource if the current resource is a replica or derived form of another Database resource. Else it would be NULL. REQUIRED if the immediate parent exists when first time resource is getting ingested, otherwise optional." @@ -2945,7 +2956,8 @@ "SIGNAL_TYPE_MANY_IDLE_CONNECTIONS", "SIGNAL_TYPE_REPLICATION_LAG", "SIGNAL_TYPE_OUTDATED_VERSION", - "SIGNAL_TYPE_OUTDATED_CLIENT" + "SIGNAL_TYPE_OUTDATED_CLIENT", + "SIGNAL_TYPE_DATABOOST_DISABLED" ], "enumDeprecated": [ false, @@ -3049,6 +3061,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -3153,7 +3166,8 @@ "High number of idle connections.", "Replication delay.", "Outdated version.", - "Outdated client." + "Outdated client.", + "Databoost is disabled." ], "type": "string" } @@ -3221,6 +3235,28 @@ }, "type": "object" }, + "Date": { + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", + "id": "Date", + "properties": { + "day": { + "description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.", + "format": "int32", + "type": "integer" + }, + "month": { + "description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.", + "format": "int32", + "type": "integer" + }, + "year": { + "description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "DiscoveryEndpoint": { "description": "Endpoints on each network, for Redis clients to connect to the cluster.", "id": "DiscoveryEndpoint", @@ -4495,6 +4531,7 @@ "PRODUCT_TYPE_FIRESTORE", "PRODUCT_TYPE_COMPUTE_ENGINE", "PRODUCT_TYPE_ORACLE_ON_GCP", + "PRODUCT_TYPE_BIGQUERY", "PRODUCT_TYPE_OTHER" ], "enumDeprecated": [ @@ -4511,6 +4548,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -4527,6 +4565,7 @@ "Firestore product area in GCP.", "Compute Engine self managed databases", "Oracle product area in GCP", + "BigQuery product area in GCP", "Other refers to rest of other product type. This is to be when product type is known, but it is not present in this enum." ], "type": "string" @@ -4845,6 +4884,100 @@ }, "type": "object" }, + "ResourceMaintenanceDenySchedule": { + "description": "Deny maintenance period for the database resource. It specifies the time range during which the maintenance cannot start. This is configured by the customer.", + "id": "ResourceMaintenanceDenySchedule", + "properties": { + "endDate": { + "$ref": "Date", + "description": "Optional. Deny period end date." + }, + "startDate": { + "$ref": "Date", + "description": "Optional. The start date of the deny maintenance period." + }, + "time": { + "$ref": "TimeOfDay", + "description": "Optional. Time in UTC when the deny period starts on start_date and ends on end_date." + } + }, + "type": "object" + }, + "ResourceMaintenanceInfo": { + "description": "MaintenanceInfo to capture the maintenance details of database resource.", + "id": "ResourceMaintenanceInfo", + "properties": { + "denyMaintenanceSchedules": { + "description": "Optional. List of Deny maintenance period for the database resource.", + "items": { + "$ref": "ResourceMaintenanceDenySchedule" + }, + "type": "array" + }, + "maintenanceSchedule": { + "$ref": "ResourceMaintenanceSchedule", + "description": "Optional. Maintenance window for the database resource." + }, + "maintenanceVersion": { + "description": "Optional. Current Maintenance version of the database resource. Example: \"MYSQL_8_0_41.R20250531.01_15\"", + "type": "string" + } + }, + "type": "object" + }, + "ResourceMaintenanceSchedule": { + "description": "Maintenance window for the database resource. It specifies preferred time and day of the week and phase in some cases, when the maintenance can start. This is configured by the customer.", + "id": "ResourceMaintenanceSchedule", + "properties": { + "day": { + "description": "Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.", + "enum": [ + "DAY_OF_WEEK_UNSPECIFIED", + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ], + "enumDescriptions": [ + "The day of the week is unspecified.", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ], + "type": "string" + }, + "phase": { + "description": "Optional. Phase of the maintenance window. This is to capture order of maintenance. For example, for Cloud SQL resources, this can be used to capture if the maintenance window is in Week1, Week2, Week5, etc. Non production resources are usually part of early phase. For more details, refer to Cloud SQL resources - https://cloud.google.com/sql/docs/mysql/maintenance", + "enum": [ + "WINDOW_PHASE_UNSPECIFIED", + "WINDOW_PHASE_ANY", + "WINDOW_PHASE_WEEK1", + "WINDOW_PHASE_WEEK2", + "WINDOW_PHASE_WEEK5" + ], + "enumDescriptions": [ + "Phase is unspecified.", + "Any phase.", + "Week 1.", + "Week 2.", + "Week 5." + ], + "type": "string" + }, + "time": { + "$ref": "TimeOfDay", + "description": "Optional. Preferred time to start the maintenance operation on the specified day." + } + }, + "type": "object" + }, "RetentionSettings": { "id": "RetentionSettings", "properties": { diff --git a/redis/v1/redis-gen.go b/redis/v1/redis-gen.go index 6eb6a576632..17e5221b4e5 100644 --- a/redis/v1/redis-gen.go +++ b/redis/v1/redis-gen.go @@ -750,6 +750,10 @@ type Cluster struct { // MaintenanceSchedule: Output only. ClusterMaintenanceSchedule Output only // Published maintenance schedule. MaintenanceSchedule *ClusterMaintenanceSchedule `json:"maintenanceSchedule,omitempty"` + // MaintenanceVersion: Optional. This field can be used to trigger self service + // update to indicate the desired maintenance version. The input to this field + // can be determined by the available_maintenance_versions field. + MaintenanceVersion string `json:"maintenanceVersion,omitempty"` // ManagedBackupSource: Optional. Backups generated and managed by memorystore // service. ManagedBackupSource *ManagedBackupSource `json:"managedBackupSource,omitempty"` @@ -1564,6 +1568,7 @@ type DatabaseResourceHealthSignalData struct { // "SIGNAL_TYPE_REPLICATION_LAG" - Replication delay. // "SIGNAL_TYPE_OUTDATED_VERSION" - Outdated version. // "SIGNAL_TYPE_OUTDATED_CLIENT" - Outdated client. + // "SIGNAL_TYPE_DATABOOST_DISABLED" - Databoost is disabled. SignalType string `json:"signalType,omitempty"` // Possible values: // "STATE_UNSPECIFIED" - Unspecified state. @@ -1648,7 +1653,7 @@ func (s DatabaseResourceId) MarshalJSON() ([]byte, error) { } // DatabaseResourceMetadata: Common model for database resource instance -// metadata. Next ID: 27 +// metadata. Next ID: 29 type DatabaseResourceMetadata struct { // AvailabilityConfiguration: Availability configuration for this instance AvailabilityConfiguration *AvailabilityConfiguration `json:"availabilityConfiguration,omitempty"` @@ -1725,6 +1730,8 @@ type DatabaseResourceMetadata struct { Location string `json:"location,omitempty"` // MachineConfiguration: Machine configuration for this resource. MachineConfiguration *MachineConfiguration `json:"machineConfiguration,omitempty"` + // MaintenanceInfo: Optional. Maintenance info for the resource. + MaintenanceInfo *ResourceMaintenanceInfo `json:"maintenanceInfo,omitempty"` // PrimaryResourceId: Identifier for this resource's immediate parent/primary // resource if the current resource is a replica or derived form of another // Database resource. Else it would be NULL. REQUIRED if the immediate parent @@ -2060,6 +2067,7 @@ type DatabaseResourceRecommendationSignalData struct { // "SIGNAL_TYPE_REPLICATION_LAG" - Replication delay. // "SIGNAL_TYPE_OUTDATED_VERSION" - Outdated version. // "SIGNAL_TYPE_OUTDATED_CLIENT" - Outdated client. + // "SIGNAL_TYPE_DATABOOST_DISABLED" - Databoost is disabled. SignalType string `json:"signalType,omitempty"` // ForceSendFields is a list of field names (e.g. "AdditionalMetadata") to // unconditionally include in API requests. By default, fields with empty or @@ -2133,6 +2141,44 @@ func (s DatabaseResourceSignalData) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// Date: Represents a whole or partial calendar date, such as a birthday. The +// time of day and time zone are either specified elsewhere or are +// insignificant. The date is relative to the Gregorian Calendar. This can +// represent one of the following: * A full date, with non-zero year, month, +// and day values. * A month and day, with a zero year (for example, an +// anniversary). * A year on its own, with a zero month and a zero day. * A +// year and month, with a zero day (for example, a credit card expiration +// date). Related types: * google.type.TimeOfDay * google.type.DateTime * +// google.protobuf.Timestamp +type Date struct { + // Day: Day of a month. Must be from 1 to 31 and valid for the year and month, + // or 0 to specify a year by itself or a year and month where the day isn't + // significant. + Day int64 `json:"day,omitempty"` + // Month: Month of a year. Must be from 1 to 12, or 0 to specify a year without + // a month and day. + Month int64 `json:"month,omitempty"` + // Year: Year of the date. Must be from 1 to 9999, or 0 to specify a date + // without a year. + Year int64 `json:"year,omitempty"` + // ForceSendFields is a list of field names (e.g. "Day") 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. "Day") 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 Date) MarshalJSON() ([]byte, error) { + type NoMethod Date + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // DiscoveryEndpoint: Endpoints on each network, for Redis clients to connect // to the cluster. type DiscoveryEndpoint struct { @@ -3601,6 +3647,7 @@ type Product struct { // "PRODUCT_TYPE_FIRESTORE" - Firestore product area in GCP. // "PRODUCT_TYPE_COMPUTE_ENGINE" - Compute Engine self managed databases // "PRODUCT_TYPE_ORACLE_ON_GCP" - Oracle product area in GCP + // "PRODUCT_TYPE_BIGQUERY" - BigQuery product area in GCP // "PRODUCT_TYPE_OTHER" - Other refers to rest of other product type. This is // to be when product type is known, but it is not present in this enum. Type string `json:"type,omitempty"` @@ -3977,6 +4024,116 @@ func (s RescheduleMaintenanceRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ResourceMaintenanceDenySchedule: Deny maintenance period for the database +// resource. It specifies the time range during which the maintenance cannot +// start. This is configured by the customer. +type ResourceMaintenanceDenySchedule struct { + // EndDate: Optional. Deny period end date. + EndDate *Date `json:"endDate,omitempty"` + // StartDate: Optional. The start date of the deny maintenance period. + StartDate *Date `json:"startDate,omitempty"` + // Time: Optional. Time in UTC when the deny period starts on start_date and + // ends on end_date. + Time *TimeOfDay `json:"time,omitempty"` + // ForceSendFields is a list of field names (e.g. "EndDate") 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. "EndDate") 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 ResourceMaintenanceDenySchedule) MarshalJSON() ([]byte, error) { + type NoMethod ResourceMaintenanceDenySchedule + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ResourceMaintenanceInfo: MaintenanceInfo to capture the maintenance details +// of database resource. +type ResourceMaintenanceInfo struct { + // DenyMaintenanceSchedules: Optional. List of Deny maintenance period for the + // database resource. + DenyMaintenanceSchedules []*ResourceMaintenanceDenySchedule `json:"denyMaintenanceSchedules,omitempty"` + // MaintenanceSchedule: Optional. Maintenance window for the database resource. + MaintenanceSchedule *ResourceMaintenanceSchedule `json:"maintenanceSchedule,omitempty"` + // MaintenanceVersion: Optional. Current Maintenance version of the database + // resource. Example: "MYSQL_8_0_41.R20250531.01_15" + MaintenanceVersion string `json:"maintenanceVersion,omitempty"` + // ForceSendFields is a list of field names (e.g. "DenyMaintenanceSchedules") + // 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. "DenyMaintenanceSchedules") 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 ResourceMaintenanceInfo) MarshalJSON() ([]byte, error) { + type NoMethod ResourceMaintenanceInfo + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ResourceMaintenanceSchedule: Maintenance window for the database resource. +// It specifies preferred time and day of the week and phase in some cases, +// when the maintenance can start. This is configured by the customer. +type ResourceMaintenanceSchedule struct { + // Day: Optional. Preferred day of the week for maintenance, e.g. MONDAY, + // TUESDAY, etc. + // + // Possible values: + // "DAY_OF_WEEK_UNSPECIFIED" - The day of the week is unspecified. + // "MONDAY" - Monday + // "TUESDAY" - Tuesday + // "WEDNESDAY" - Wednesday + // "THURSDAY" - Thursday + // "FRIDAY" - Friday + // "SATURDAY" - Saturday + // "SUNDAY" - Sunday + Day string `json:"day,omitempty"` + // Phase: Optional. Phase of the maintenance window. This is to capture order + // of maintenance. For example, for Cloud SQL resources, this can be used to + // capture if the maintenance window is in Week1, Week2, Week5, etc. Non + // production resources are usually part of early phase. For more details, + // refer to Cloud SQL resources - + // https://cloud.google.com/sql/docs/mysql/maintenance + // + // Possible values: + // "WINDOW_PHASE_UNSPECIFIED" - Phase is unspecified. + // "WINDOW_PHASE_ANY" - Any phase. + // "WINDOW_PHASE_WEEK1" - Week 1. + // "WINDOW_PHASE_WEEK2" - Week 2. + // "WINDOW_PHASE_WEEK5" - Week 5. + Phase string `json:"phase,omitempty"` + // Time: Optional. Preferred time to start the maintenance operation on the + // specified day. + Time *TimeOfDay `json:"time,omitempty"` + // ForceSendFields is a list of field names (e.g. "Day") 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. "Day") 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 ResourceMaintenanceSchedule) MarshalJSON() ([]byte, error) { + type NoMethod ResourceMaintenanceSchedule + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + type RetentionSettings struct { // DurationBasedRetention: Duration based retention period i.e. 172800 seconds // (2 days)