From d22da1806db891da12d7290ef4334e18fbaf0ca2 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 5 Mar 2024 00:22:17 -0800 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2450) --- apphub/v1/apphub-api.json | 84 +++- apphub/v1/apphub-gen.go | 388 ++++++++++++++++++ apphub/v1alpha/apphub-api.json | 84 +++- apphub/v1alpha/apphub-gen.go | 388 ++++++++++++++++++ .../v1/authorizedbuyersmarketplace-api.json | 35 +- .../v1/authorizedbuyersmarketplace-gen.go | 57 ++- chromemanagement/v1/chromemanagement-api.json | 12 +- chromemanagement/v1/chromemanagement-gen.go | 50 ++- cloudsupport/v2/cloudsupport-api.json | 4 +- cloudsupport/v2/cloudsupport-gen.go | 3 +- cloudsupport/v2beta/cloudsupport-api.json | 6 +- cloudsupport/v2beta/cloudsupport-gen.go | 8 +- connectors/v1/connectors-api.json | 28 +- connectors/v1/connectors-gen.go | 16 +- .../v1beta/dataportability-api.json | 72 +++- dataportability/v1beta/dataportability-gen.go | 82 ++++ metastore/v1/metastore-api.json | 89 +++- metastore/v1/metastore-gen.go | 116 ++++++ metastore/v1alpha/metastore-api.json | 89 +++- metastore/v1alpha/metastore-gen.go | 116 ++++++ metastore/v1beta/metastore-api.json | 89 +++- metastore/v1beta/metastore-gen.go | 116 ++++++ serviceusage/v1beta1/serviceusage-api.json | 17 +- serviceusage/v1beta1/serviceusage-gen.go | 36 ++ youtube/v3/youtube-api.json | 23 +- youtube/v3/youtube-gen.go | 89 +++- 26 files changed, 2035 insertions(+), 62 deletions(-) diff --git a/apphub/v1/apphub-api.json b/apphub/v1/apphub-api.json index 41130847f1b..18a31aef083 100644 --- a/apphub/v1/apphub-api.json +++ b/apphub/v1/apphub-api.json @@ -937,6 +937,36 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "lookup": { + "description": "Looks up a discovered service in a host project and location and with a given resource URI.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/discoveredServices:lookup", + "httpMethod": "GET", + "id": "apphub.projects.locations.discoveredServices.lookup", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Value for parent.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "uri": { + "description": "Required. Resource URI to find service for. Accepts both project number and project id and does translation when needed.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/discoveredServices:lookup", + "response": { + "$ref": "LookupDiscoveredServiceResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } }, @@ -1012,6 +1042,36 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "lookup": { + "description": "Looks up a discovered Workload in a host project and location and with a given resource URI.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/discoveredWorkloads:lookup", + "httpMethod": "GET", + "id": "apphub.projects.locations.discoveredWorkloads.lookup", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Value for parent.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "uri": { + "description": "Required. Resource URI to find workload for. Accepts both project number and project id and does translation when needed.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/discoveredWorkloads:lookup", + "response": { + "$ref": "LookupDiscoveredWorkloadResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } }, @@ -1286,7 +1346,7 @@ } } }, - "revision": "20240217", + "revision": "20240301", "rootUrl": "https://apphub.googleapis.com/", "schemas": { "Application": { @@ -1830,6 +1890,28 @@ }, "type": "object" }, + "LookupDiscoveredServiceResponse": { + "description": "Response for LookupDiscoveredService.", + "id": "LookupDiscoveredServiceResponse", + "properties": { + "discoveredService": { + "$ref": "DiscoveredService", + "description": "Discovered service if exists, empty otherwise." + } + }, + "type": "object" + }, + "LookupDiscoveredWorkloadResponse": { + "description": "Response for LookupDiscoveredWorkload.", + "id": "LookupDiscoveredWorkloadResponse", + "properties": { + "discoveredWorkload": { + "$ref": "DiscoveredWorkload", + "description": "Discovered workload if exists, empty otherwise." + } + }, + "type": "object" + }, "LookupServiceProjectAttachmentResponse": { "description": "Response for LookupServiceProjectAttachment.", "id": "LookupServiceProjectAttachmentResponse", diff --git a/apphub/v1/apphub-gen.go b/apphub/v1/apphub-gen.go index 593fc0b1162..cc7c3f44b5f 100644 --- a/apphub/v1/apphub-gen.go +++ b/apphub/v1/apphub-gen.go @@ -1229,6 +1229,74 @@ func (s *Location) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// LookupDiscoveredServiceResponse: Response for +// LookupDiscoveredService. +type LookupDiscoveredServiceResponse struct { + // DiscoveredService: Discovered service if exists, empty otherwise. + DiscoveredService *DiscoveredService `json:"discoveredService,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DiscoveredService") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DiscoveredService") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *LookupDiscoveredServiceResponse) MarshalJSON() ([]byte, error) { + type NoMethod LookupDiscoveredServiceResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LookupDiscoveredWorkloadResponse: Response for +// LookupDiscoveredWorkload. +type LookupDiscoveredWorkloadResponse struct { + // DiscoveredWorkload: Discovered workload if exists, empty otherwise. + DiscoveredWorkload *DiscoveredWorkload `json:"discoveredWorkload,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DiscoveredWorkload") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DiscoveredWorkload") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *LookupDiscoveredWorkloadResponse) MarshalJSON() ([]byte, error) { + type NoMethod LookupDiscoveredWorkloadResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // LookupServiceProjectAttachmentResponse: Response for // LookupServiceProjectAttachment. type LookupServiceProjectAttachmentResponse struct { @@ -6202,6 +6270,166 @@ func (c *ProjectsLocationsDiscoveredServicesListCall) Pages(ctx context.Context, } } +// method id "apphub.projects.locations.discoveredServices.lookup": + +type ProjectsLocationsDiscoveredServicesLookupCall struct { + s *APIService + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Lookup: Looks up a discovered service in a host project and location +// and with a given resource URI. +// +// - parent: Value for parent. +func (r *ProjectsLocationsDiscoveredServicesService) Lookup(parent string) *ProjectsLocationsDiscoveredServicesLookupCall { + c := &ProjectsLocationsDiscoveredServicesLookupCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Uri sets the optional parameter "uri": Required. Resource URI to find +// service for. Accepts both project number and project id and does +// translation when needed. +func (c *ProjectsLocationsDiscoveredServicesLookupCall) Uri(uri string) *ProjectsLocationsDiscoveredServicesLookupCall { + c.urlParams_.Set("uri", uri) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsDiscoveredServicesLookupCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveredServicesLookupCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsDiscoveredServicesLookupCall) IfNoneMatch(entityTag string) *ProjectsLocationsDiscoveredServicesLookupCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsDiscoveredServicesLookupCall) Context(ctx context.Context) *ProjectsLocationsDiscoveredServicesLookupCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsDiscoveredServicesLookupCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDiscoveredServicesLookupCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/discoveredServices:lookup") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "apphub.projects.locations.discoveredServices.lookup" call. +// Exactly one of *LookupDiscoveredServiceResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *LookupDiscoveredServiceResponse.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 *ProjectsLocationsDiscoveredServicesLookupCall) Do(opts ...googleapi.CallOption) (*LookupDiscoveredServiceResponse, 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 := &LookupDiscoveredServiceResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Looks up a discovered service in a host project and location and with a given resource URI.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/discoveredServices:lookup", + // "httpMethod": "GET", + // "id": "apphub.projects.locations.discoveredServices.lookup", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Value for parent.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "uri": { + // "description": "Required. Resource URI to find service for. Accepts both project number and project id and does translation when needed.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/discoveredServices:lookup", + // "response": { + // "$ref": "LookupDiscoveredServiceResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "apphub.projects.locations.discoveredWorkloads.get": type ProjectsLocationsDiscoveredWorkloadsGetCall struct { @@ -6565,6 +6793,166 @@ func (c *ProjectsLocationsDiscoveredWorkloadsListCall) Pages(ctx context.Context } } +// method id "apphub.projects.locations.discoveredWorkloads.lookup": + +type ProjectsLocationsDiscoveredWorkloadsLookupCall struct { + s *APIService + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Lookup: Looks up a discovered Workload in a host project and location +// and with a given resource URI. +// +// - parent: Value for parent. +func (r *ProjectsLocationsDiscoveredWorkloadsService) Lookup(parent string) *ProjectsLocationsDiscoveredWorkloadsLookupCall { + c := &ProjectsLocationsDiscoveredWorkloadsLookupCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Uri sets the optional parameter "uri": Required. Resource URI to find +// workload for. Accepts both project number and project id and does +// translation when needed. +func (c *ProjectsLocationsDiscoveredWorkloadsLookupCall) Uri(uri string) *ProjectsLocationsDiscoveredWorkloadsLookupCall { + c.urlParams_.Set("uri", uri) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsDiscoveredWorkloadsLookupCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveredWorkloadsLookupCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsDiscoveredWorkloadsLookupCall) IfNoneMatch(entityTag string) *ProjectsLocationsDiscoveredWorkloadsLookupCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsDiscoveredWorkloadsLookupCall) Context(ctx context.Context) *ProjectsLocationsDiscoveredWorkloadsLookupCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsDiscoveredWorkloadsLookupCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDiscoveredWorkloadsLookupCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/discoveredWorkloads:lookup") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "apphub.projects.locations.discoveredWorkloads.lookup" call. +// Exactly one of *LookupDiscoveredWorkloadResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *LookupDiscoveredWorkloadResponse.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 *ProjectsLocationsDiscoveredWorkloadsLookupCall) Do(opts ...googleapi.CallOption) (*LookupDiscoveredWorkloadResponse, 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 := &LookupDiscoveredWorkloadResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Looks up a discovered Workload in a host project and location and with a given resource URI.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/discoveredWorkloads:lookup", + // "httpMethod": "GET", + // "id": "apphub.projects.locations.discoveredWorkloads.lookup", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Value for parent.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "uri": { + // "description": "Required. Resource URI to find workload for. Accepts both project number and project id and does translation when needed.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/discoveredWorkloads:lookup", + // "response": { + // "$ref": "LookupDiscoveredWorkloadResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "apphub.projects.locations.operations.cancel": type ProjectsLocationsOperationsCancelCall struct { diff --git a/apphub/v1alpha/apphub-api.json b/apphub/v1alpha/apphub-api.json index d1d3f3ff4b2..73fe88ebb64 100644 --- a/apphub/v1alpha/apphub-api.json +++ b/apphub/v1alpha/apphub-api.json @@ -983,6 +983,36 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "lookup": { + "description": "Looks up a discovered service in a host project and location and with a given resource URI.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/discoveredServices:lookup", + "httpMethod": "GET", + "id": "apphub.projects.locations.discoveredServices.lookup", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Value for parent.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "uri": { + "description": "Required. Resource URI to find service for. Accepts both project number and project id and does translation when needed.", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+parent}/discoveredServices:lookup", + "response": { + "$ref": "LookupDiscoveredServiceResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } }, @@ -1104,6 +1134,36 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "lookup": { + "description": "Looks up a discovered Workload in a host project and location and with a given resource URI.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/discoveredWorkloads:lookup", + "httpMethod": "GET", + "id": "apphub.projects.locations.discoveredWorkloads.lookup", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Value for parent.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "uri": { + "description": "Required. Resource URI to find workload for. Accepts both project number and project id and does translation when needed.", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+parent}/discoveredWorkloads:lookup", + "response": { + "$ref": "LookupDiscoveredWorkloadResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } }, @@ -1378,7 +1438,7 @@ } } }, - "revision": "20240217", + "revision": "20240301", "rootUrl": "https://apphub.googleapis.com/", "schemas": { "Application": { @@ -1999,6 +2059,28 @@ }, "type": "object" }, + "LookupDiscoveredServiceResponse": { + "description": "Response for LookupDiscoveredService.", + "id": "LookupDiscoveredServiceResponse", + "properties": { + "discoveredService": { + "$ref": "DiscoveredService", + "description": "Discovered service if exists, empty otherwise." + } + }, + "type": "object" + }, + "LookupDiscoveredWorkloadResponse": { + "description": "Response for LookupDiscoveredWorkload.", + "id": "LookupDiscoveredWorkloadResponse", + "properties": { + "discoveredWorkload": { + "$ref": "DiscoveredWorkload", + "description": "Discovered workload if exists, empty otherwise." + } + }, + "type": "object" + }, "LookupServiceProjectAttachmentResponse": { "description": "Response for LookupServiceProjectAttachment.", "id": "LookupServiceProjectAttachmentResponse", diff --git a/apphub/v1alpha/apphub-gen.go b/apphub/v1alpha/apphub-gen.go index 630658f8536..f9e662f28db 100644 --- a/apphub/v1alpha/apphub-gen.go +++ b/apphub/v1alpha/apphub-gen.go @@ -1357,6 +1357,74 @@ func (s *Location) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// LookupDiscoveredServiceResponse: Response for +// LookupDiscoveredService. +type LookupDiscoveredServiceResponse struct { + // DiscoveredService: Discovered service if exists, empty otherwise. + DiscoveredService *DiscoveredService `json:"discoveredService,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DiscoveredService") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DiscoveredService") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *LookupDiscoveredServiceResponse) MarshalJSON() ([]byte, error) { + type NoMethod LookupDiscoveredServiceResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LookupDiscoveredWorkloadResponse: Response for +// LookupDiscoveredWorkload. +type LookupDiscoveredWorkloadResponse struct { + // DiscoveredWorkload: Discovered workload if exists, empty otherwise. + DiscoveredWorkload *DiscoveredWorkload `json:"discoveredWorkload,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DiscoveredWorkload") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DiscoveredWorkload") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *LookupDiscoveredWorkloadResponse) MarshalJSON() ([]byte, error) { + type NoMethod LookupDiscoveredWorkloadResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // LookupServiceProjectAttachmentResponse: Response for // LookupServiceProjectAttachment. type LookupServiceProjectAttachmentResponse struct { @@ -6509,6 +6577,166 @@ func (c *ProjectsLocationsDiscoveredServicesListCall) Pages(ctx context.Context, } } +// method id "apphub.projects.locations.discoveredServices.lookup": + +type ProjectsLocationsDiscoveredServicesLookupCall struct { + s *APIService + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Lookup: Looks up a discovered service in a host project and location +// and with a given resource URI. +// +// - parent: Value for parent. +func (r *ProjectsLocationsDiscoveredServicesService) Lookup(parent string) *ProjectsLocationsDiscoveredServicesLookupCall { + c := &ProjectsLocationsDiscoveredServicesLookupCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Uri sets the optional parameter "uri": Required. Resource URI to find +// service for. Accepts both project number and project id and does +// translation when needed. +func (c *ProjectsLocationsDiscoveredServicesLookupCall) Uri(uri string) *ProjectsLocationsDiscoveredServicesLookupCall { + c.urlParams_.Set("uri", uri) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsDiscoveredServicesLookupCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveredServicesLookupCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsDiscoveredServicesLookupCall) IfNoneMatch(entityTag string) *ProjectsLocationsDiscoveredServicesLookupCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsDiscoveredServicesLookupCall) Context(ctx context.Context) *ProjectsLocationsDiscoveredServicesLookupCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsDiscoveredServicesLookupCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDiscoveredServicesLookupCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/discoveredServices:lookup") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "apphub.projects.locations.discoveredServices.lookup" call. +// Exactly one of *LookupDiscoveredServiceResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *LookupDiscoveredServiceResponse.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 *ProjectsLocationsDiscoveredServicesLookupCall) Do(opts ...googleapi.CallOption) (*LookupDiscoveredServiceResponse, 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 := &LookupDiscoveredServiceResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Looks up a discovered service in a host project and location and with a given resource URI.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/discoveredServices:lookup", + // "httpMethod": "GET", + // "id": "apphub.projects.locations.discoveredServices.lookup", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Value for parent.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "uri": { + // "description": "Required. Resource URI to find service for. Accepts both project number and project id and does translation when needed.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/discoveredServices:lookup", + // "response": { + // "$ref": "LookupDiscoveredServiceResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "apphub.projects.locations.discoveredWorkloads.findUnregistered": type ProjectsLocationsDiscoveredWorkloadsFindUnregisteredCall struct { @@ -7090,6 +7318,166 @@ func (c *ProjectsLocationsDiscoveredWorkloadsListCall) Pages(ctx context.Context } } +// method id "apphub.projects.locations.discoveredWorkloads.lookup": + +type ProjectsLocationsDiscoveredWorkloadsLookupCall struct { + s *APIService + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Lookup: Looks up a discovered Workload in a host project and location +// and with a given resource URI. +// +// - parent: Value for parent. +func (r *ProjectsLocationsDiscoveredWorkloadsService) Lookup(parent string) *ProjectsLocationsDiscoveredWorkloadsLookupCall { + c := &ProjectsLocationsDiscoveredWorkloadsLookupCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Uri sets the optional parameter "uri": Required. Resource URI to find +// workload for. Accepts both project number and project id and does +// translation when needed. +func (c *ProjectsLocationsDiscoveredWorkloadsLookupCall) Uri(uri string) *ProjectsLocationsDiscoveredWorkloadsLookupCall { + c.urlParams_.Set("uri", uri) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsDiscoveredWorkloadsLookupCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveredWorkloadsLookupCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsDiscoveredWorkloadsLookupCall) IfNoneMatch(entityTag string) *ProjectsLocationsDiscoveredWorkloadsLookupCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsDiscoveredWorkloadsLookupCall) Context(ctx context.Context) *ProjectsLocationsDiscoveredWorkloadsLookupCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsDiscoveredWorkloadsLookupCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDiscoveredWorkloadsLookupCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/discoveredWorkloads:lookup") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "apphub.projects.locations.discoveredWorkloads.lookup" call. +// Exactly one of *LookupDiscoveredWorkloadResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *LookupDiscoveredWorkloadResponse.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 *ProjectsLocationsDiscoveredWorkloadsLookupCall) Do(opts ...googleapi.CallOption) (*LookupDiscoveredWorkloadResponse, 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 := &LookupDiscoveredWorkloadResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Looks up a discovered Workload in a host project and location and with a given resource URI.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/discoveredWorkloads:lookup", + // "httpMethod": "GET", + // "id": "apphub.projects.locations.discoveredWorkloads.lookup", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Value for parent.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "uri": { + // "description": "Required. Resource URI to find workload for. Accepts both project number and project id and does translation when needed.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/discoveredWorkloads:lookup", + // "response": { + // "$ref": "LookupDiscoveredWorkloadResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "apphub.projects.locations.operations.cancel": type ProjectsLocationsOperationsCancelCall struct { diff --git a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-api.json b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-api.json index 8a7efc0f524..9fb50719b77 100644 --- a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-api.json +++ b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-api.json @@ -119,7 +119,7 @@ ], "parameters": { "filter": { - "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) Supported columns for filtering are: * deal.displayName * deal.dealType * deal.createTime * deal.updateTime * deal.flightStartTime * deal.flightEndTime * dealServingStatus", + "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) Supported columns for filtering are: * deal.displayName * deal.dealType * deal.createTime * deal.updateTime * deal.flightStartTime * deal.flightEndTime * deal.eligibleSeatIds * dealServingStatus", "location": "query", "type": "string" }, @@ -767,7 +767,7 @@ ], "parameters": { "filter": { - "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) Supported columns for filtering are: * deal.displayName * deal.dealType * deal.createTime * deal.updateTime * deal.flightStartTime * deal.flightEndTime * dealServingStatus", + "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) Supported columns for filtering are: * deal.displayName * deal.dealType * deal.createTime * deal.updateTime * deal.flightStartTime * deal.flightEndTime * deal.eligibleSeatIds * dealServingStatus", "location": "query", "type": "string" }, @@ -1307,7 +1307,7 @@ } } }, - "revision": "20231129", + "revision": "20240304", "rootUrl": "https://authorizedbuyersmarketplace.googleapis.com/", "schemas": { "AcceptProposalRequest": { @@ -1774,12 +1774,12 @@ "id": "Deal", "properties": { "billedBuyer": { - "description": "Output only. When the client field is populated, this field refers to the buyer who creates and manages the client buyer and gets billed on behalf of the client buyer; when the buyer field is populated, this field is the same value as buyer. Format : `buyers/{buyerAccountId}`", + "description": "Output only. When the client field is populated, this field refers to the buyer who creates and manages the client buyer and gets billed on behalf of the client buyer; when the buyer field is populated, this field is the same value as buyer; when the deal belongs to a media planner account, this field will be empty. Format : `buyers/{buyerAccountId}`", "readOnly": true, "type": "string" }, "buyer": { - "description": "Output only. Refers to a buyer in The Realtime-bidding API. Format: `buyers/{buyerAccountId}`", + "description": "Output only. Refers to a buyer in Real-time Bidding API's Buyer resource. Format: `buyers/{buyerAccountId}`", "readOnly": true, "type": "string" }, @@ -1831,6 +1831,14 @@ "readOnly": true, "type": "string" }, + "eligibleSeatIds": { + "description": "Output only. If set, this field contains the list of DSP specific seat ids set by media planners that are eligible to transact on this deal. The seat ID is in the calling DSP's namespace.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, "estimatedGrossSpend": { "$ref": "Money", "description": "Specified by buyers in request for proposal (RFP) to notify publisher the total estimated spend for the proposal. Publishers will receive this information and send back proposed deals accordingly." @@ -1845,6 +1853,11 @@ "format": "google-datetime", "type": "string" }, + "mediaPlanner": { + "$ref": "MediaPlanner", + "description": "Output only. Refers to a buyer in Real-time Bidding API's Buyer resource. This field represents a media planner (For example, agency or big advertiser).", + "readOnly": true + }, "name": { "description": "Immutable. The unique identifier of the deal. Auto-generated by the server when a deal is created. Format: buyers/{accountId}/proposals/{proposalId}/deals/{dealId}", "type": "string" @@ -2340,6 +2353,18 @@ }, "type": "object" }, + "MediaPlanner": { + "description": "Describes a single Media Planner account.", + "id": "MediaPlanner", + "properties": { + "accountId": { + "description": "Output only. Account ID of the media planner.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "MobileApplicationTargeting": { "description": "Mobile application targeting settings.", "id": "MobileApplicationTargeting", diff --git a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go index 49aaa59e7bf..f8b493b8397 100644 --- a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go +++ b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go @@ -949,12 +949,13 @@ type Deal struct { // BilledBuyer: Output only. When the client field is populated, this // field refers to the buyer who creates and manages the client buyer // and gets billed on behalf of the client buyer; when the buyer field - // is populated, this field is the same value as buyer. Format : - // `buyers/{buyerAccountId}` + // is populated, this field is the same value as buyer; when the deal + // belongs to a media planner account, this field will be empty. Format + // : `buyers/{buyerAccountId}` BilledBuyer string `json:"billedBuyer,omitempty"` - // Buyer: Output only. Refers to a buyer in The Realtime-bidding API. - // Format: `buyers/{buyerAccountId}` + // Buyer: Output only. Refers to a buyer in Real-time Bidding API's + // Buyer resource. Format: `buyers/{buyerAccountId}` Buyer string `json:"buyer,omitempty"` // Client: Output only. Refers to a Client. Format: @@ -990,6 +991,11 @@ type Deal struct { // which is a unique identifier of the deal. DisplayName string `json:"displayName,omitempty"` + // EligibleSeatIds: Output only. If set, this field contains the list of + // DSP specific seat ids set by media planners that are eligible to + // transact on this deal. The seat ID is in the calling DSP's namespace. + EligibleSeatIds []string `json:"eligibleSeatIds,omitempty"` + // EstimatedGrossSpend: Specified by buyers in request for proposal // (RFP) to notify publisher the total estimated spend for the proposal. // Publishers will receive this information and send back proposed deals @@ -1008,6 +1014,11 @@ type Deal struct { // the start of time in seconds. FlightStartTime string `json:"flightStartTime,omitempty"` + // MediaPlanner: Output only. Refers to a buyer in Real-time Bidding + // API's Buyer resource. This field represents a media planner (For + // example, agency or big advertiser). + MediaPlanner *MediaPlanner `json:"mediaPlanner,omitempty"` + // Name: Immutable. The unique identifier of the deal. Auto-generated by // the server when a deal is created. Format: // buyers/{accountId}/proposals/{proposalId}/deals/{dealId} @@ -1775,6 +1786,34 @@ func (s *MarketplaceTargeting) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MediaPlanner: Describes a single Media Planner account. +type MediaPlanner struct { + // AccountId: Output only. Account ID of the media planner. + AccountId string `json:"accountId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AccountId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AccountId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MediaPlanner) MarshalJSON() ([]byte, error) { + type NoMethod MediaPlanner + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // MobileApplicationTargeting: Mobile application targeting settings. type MobileApplicationTargeting struct { // FirstPartyTargeting: Publisher owned apps to be targeted or excluded @@ -2983,7 +3022,8 @@ func (r *BiddersFinalizedDealsService) List(parent string) *BiddersFinalizedDeal // (https://developers.google.com/authorized-buyers/apis/guides/list-filters) // Supported columns for filtering are: * deal.displayName * // deal.dealType * deal.createTime * deal.updateTime * -// deal.flightStartTime * deal.flightEndTime * dealServingStatus +// deal.flightStartTime * deal.flightEndTime * deal.eligibleSeatIds * +// dealServingStatus func (c *BiddersFinalizedDealsListCall) Filter(filter string) *BiddersFinalizedDealsListCall { c.urlParams_.Set("filter", filter) return c @@ -3129,7 +3169,7 @@ func (c *BiddersFinalizedDealsListCall) Do(opts ...googleapi.CallOption) (*ListF // ], // "parameters": { // "filter": { - // "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) Supported columns for filtering are: * deal.displayName * deal.dealType * deal.createTime * deal.updateTime * deal.flightStartTime * deal.flightEndTime * dealServingStatus", + // "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) Supported columns for filtering are: * deal.displayName * deal.dealType * deal.createTime * deal.updateTime * deal.flightStartTime * deal.flightEndTime * deal.eligibleSeatIds * dealServingStatus", // "location": "query", // "type": "string" // }, @@ -6317,7 +6357,8 @@ func (r *BuyersFinalizedDealsService) List(parent string) *BuyersFinalizedDealsL // (https://developers.google.com/authorized-buyers/apis/guides/list-filters) // Supported columns for filtering are: * deal.displayName * // deal.dealType * deal.createTime * deal.updateTime * -// deal.flightStartTime * deal.flightEndTime * dealServingStatus +// deal.flightStartTime * deal.flightEndTime * deal.eligibleSeatIds * +// dealServingStatus func (c *BuyersFinalizedDealsListCall) Filter(filter string) *BuyersFinalizedDealsListCall { c.urlParams_.Set("filter", filter) return c @@ -6463,7 +6504,7 @@ func (c *BuyersFinalizedDealsListCall) Do(opts ...googleapi.CallOption) (*ListFi // ], // "parameters": { // "filter": { - // "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) Supported columns for filtering are: * deal.displayName * deal.dealType * deal.createTime * deal.updateTime * deal.flightStartTime * deal.flightEndTime * dealServingStatus", + // "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) Supported columns for filtering are: * deal.displayName * deal.dealType * deal.createTime * deal.updateTime * deal.flightStartTime * deal.flightEndTime * deal.eligibleSeatIds * dealServingStatus", // "location": "query", // "type": "string" // }, diff --git a/chromemanagement/v1/chromemanagement-api.json b/chromemanagement/v1/chromemanagement-api.json index b789c19d219..689c815db7b 100644 --- a/chromemanagement/v1/chromemanagement-api.json +++ b/chromemanagement/v1/chromemanagement-api.json @@ -746,7 +746,7 @@ "type": "string" }, "readMask": { - "description": "Required. Read mask to specify which fields to return.", + "description": "Required. Read mask to specify which fields to return. Supported read_mask paths are: - name - org_unit_id - device_id - serial_number - cpu_info - cpu_status_report - memory_info - memory_status_report - network_info - network_diagnostics_report - network_status_report - os_update_status - graphics_info - graphics_status_report - battery_info - battery_status_report - storage_info - storage_status_report - thunderbolt_info - audio_status_report - boot_performance_report - heartbeat_status_report - network_bandwidth_report - peripherals_report - kiosk_app_status_report - app_report - runtime_counters_report ", "format": "google-fieldmask", "location": "query", "type": "string" @@ -793,7 +793,7 @@ "type": "string" }, "readMask": { - "description": "Required. Read mask to specify which fields to return.", + "description": "Required. Read mask to specify which fields to return. Supported read_mask paths are: - name - org_unit_id - device_id - serial_number - cpu_info - cpu_status_report - memory_info - memory_status_report - network_info - network_diagnostics_report - network_status_report - os_update_status - graphics_info - graphics_status_report - battery_info - battery_status_report - storage_info - storage_status_report - thunderbolt_info - audio_status_report - boot_performance_report - heartbeat_status_report - network_bandwidth_report - peripherals_report - kiosk_app_status_report - app_report - runtime_counters_report ", "format": "google-fieldmask", "location": "query", "type": "string" @@ -844,7 +844,7 @@ "type": "string" }, "readMask": { - "description": "Required. Read mask to specify which fields to return. Although currently required, this field will become optional, while the filter parameter with an event type will be come required.", + "description": "Required. Read mask to specify which fields to return. Although currently required, this field will become optional, while the filter parameter with an event type will be come required. Supported read_mask paths are: - device - user - audio_severe_underrun_event - usb_peripherals_event - https_latency_change_event - network_state_change_event - wifi_signal_strength_event - vpn_connection_state_change_event - app_install_event - app_uninstall_event - app_launch_event ", "format": "google-fieldmask", "location": "query", "type": "string" @@ -972,7 +972,7 @@ "type": "string" }, "readMask": { - "description": "Read mask to specify which fields to return.", + "description": "Read mask to specify which fields to return. Supported read_mask paths are: - name - org_unit_id - user_id - user_email - user_device.device_id - user_device.audio_status_report - user_device.device_activity_report - user_device.network_bandwidth_report - user_device.peripherals_report ", "format": "google-fieldmask", "location": "query", "type": "string" @@ -1019,7 +1019,7 @@ "type": "string" }, "readMask": { - "description": "Read mask to specify which fields to return.", + "description": "Read mask to specify which fields to return. Supported read_mask paths are: - name - org_unit_id - user_id - user_email - user_device.device_id - user_device.audio_status_report - user_device.device_activity_report - user_device.network_bandwidth_report - user_device.peripherals_report ", "format": "google-fieldmask", "location": "query", "type": "string" @@ -1040,7 +1040,7 @@ } } }, - "revision": "20240227", + "revision": "20240303", "rootUrl": "https://chromemanagement.googleapis.com/", "schemas": { "GoogleChromeManagementV1AndroidAppInfo": { diff --git a/chromemanagement/v1/chromemanagement-gen.go b/chromemanagement/v1/chromemanagement-gen.go index 7160d7c97c4..bb5f737bf89 100644 --- a/chromemanagement/v1/chromemanagement-gen.go +++ b/chromemanagement/v1/chromemanagement-gen.go @@ -7240,7 +7240,16 @@ func (r *CustomersTelemetryDevicesService) Get(name string) *CustomersTelemetryD } // ReadMask sets the optional parameter "readMask": Required. Read mask -// to specify which fields to return. +// to specify which fields to return. Supported read_mask paths are: - +// name - org_unit_id - device_id - serial_number - cpu_info - +// cpu_status_report - memory_info - memory_status_report - network_info +// - network_diagnostics_report - network_status_report - +// os_update_status - graphics_info - graphics_status_report - +// battery_info - battery_status_report - storage_info - +// storage_status_report - thunderbolt_info - audio_status_report - +// boot_performance_report - heartbeat_status_report - +// network_bandwidth_report - peripherals_report - +// kiosk_app_status_report - app_report - runtime_counters_report func (c *CustomersTelemetryDevicesGetCall) ReadMask(readMask string) *CustomersTelemetryDevicesGetCall { c.urlParams_.Set("readMask", readMask) return c @@ -7362,7 +7371,7 @@ func (c *CustomersTelemetryDevicesGetCall) Do(opts ...googleapi.CallOption) (*Go // "type": "string" // }, // "readMask": { - // "description": "Required. Read mask to specify which fields to return.", + // "description": "Required. Read mask to specify which fields to return. Supported read_mask paths are: - name - org_unit_id - device_id - serial_number - cpu_info - cpu_status_report - memory_info - memory_status_report - network_info - network_diagnostics_report - network_status_report - os_update_status - graphics_info - graphics_status_report - battery_info - battery_status_report - storage_info - storage_status_report - thunderbolt_info - audio_status_report - boot_performance_report - heartbeat_status_report - network_bandwidth_report - peripherals_report - kiosk_app_status_report - app_report - runtime_counters_report ", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -7428,7 +7437,16 @@ func (c *CustomersTelemetryDevicesListCall) PageToken(pageToken string) *Custome } // ReadMask sets the optional parameter "readMask": Required. Read mask -// to specify which fields to return. +// to specify which fields to return. Supported read_mask paths are: - +// name - org_unit_id - device_id - serial_number - cpu_info - +// cpu_status_report - memory_info - memory_status_report - network_info +// - network_diagnostics_report - network_status_report - +// os_update_status - graphics_info - graphics_status_report - +// battery_info - battery_status_report - storage_info - +// storage_status_report - thunderbolt_info - audio_status_report - +// boot_performance_report - heartbeat_status_report - +// network_bandwidth_report - peripherals_report - +// kiosk_app_status_report - app_report - runtime_counters_report func (c *CustomersTelemetryDevicesListCall) ReadMask(readMask string) *CustomersTelemetryDevicesListCall { c.urlParams_.Set("readMask", readMask) return c @@ -7567,7 +7585,7 @@ func (c *CustomersTelemetryDevicesListCall) Do(opts ...googleapi.CallOption) (*G // "type": "string" // }, // "readMask": { - // "description": "Required. Read mask to specify which fields to return.", + // "description": "Required. Read mask to specify which fields to return. Supported read_mask paths are: - name - org_unit_id - device_id - serial_number - cpu_info - cpu_status_report - memory_info - memory_status_report - network_info - network_diagnostics_report - network_status_report - os_update_status - graphics_info - graphics_status_report - battery_info - battery_status_report - storage_info - storage_status_report - thunderbolt_info - audio_status_report - boot_performance_report - heartbeat_status_report - network_bandwidth_report - peripherals_report - kiosk_app_status_report - app_report - runtime_counters_report ", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -7658,7 +7676,11 @@ func (c *CustomersTelemetryEventsListCall) PageToken(pageToken string) *Customer // ReadMask sets the optional parameter "readMask": Required. Read mask // to specify which fields to return. Although currently required, this // field will become optional, while the filter parameter with an event -// type will be come required. +// type will be come required. Supported read_mask paths are: - device - +// user - audio_severe_underrun_event - usb_peripherals_event - +// https_latency_change_event - network_state_change_event - +// wifi_signal_strength_event - vpn_connection_state_change_event - +// app_install_event - app_uninstall_event - app_launch_event func (c *CustomersTelemetryEventsListCall) ReadMask(readMask string) *CustomersTelemetryEventsListCall { c.urlParams_.Set("readMask", readMask) return c @@ -7797,7 +7819,7 @@ func (c *CustomersTelemetryEventsListCall) Do(opts ...googleapi.CallOption) (*Go // "type": "string" // }, // "readMask": { - // "description": "Required. Read mask to specify which fields to return. Although currently required, this field will become optional, while the filter parameter with an event type will be come required.", + // "description": "Required. Read mask to specify which fields to return. Although currently required, this field will become optional, while the filter parameter with an event type will be come required. Supported read_mask paths are: - device - user - audio_severe_underrun_event - usb_peripherals_event - https_latency_change_event - network_state_change_event - wifi_signal_strength_event - vpn_connection_state_change_event - app_install_event - app_uninstall_event - app_launch_event ", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -8336,7 +8358,11 @@ func (r *CustomersTelemetryUsersService) Get(name string) *CustomersTelemetryUse } // ReadMask sets the optional parameter "readMask": Read mask to specify -// which fields to return. +// which fields to return. Supported read_mask paths are: - name - +// org_unit_id - user_id - user_email - user_device.device_id - +// user_device.audio_status_report - user_device.device_activity_report +// - user_device.network_bandwidth_report - +// user_device.peripherals_report func (c *CustomersTelemetryUsersGetCall) ReadMask(readMask string) *CustomersTelemetryUsersGetCall { c.urlParams_.Set("readMask", readMask) return c @@ -8458,7 +8484,7 @@ func (c *CustomersTelemetryUsersGetCall) Do(opts ...googleapi.CallOption) (*Goog // "type": "string" // }, // "readMask": { - // "description": "Read mask to specify which fields to return.", + // "description": "Read mask to specify which fields to return. Supported read_mask paths are: - name - org_unit_id - user_id - user_email - user_device.device_id - user_device.audio_status_report - user_device.device_activity_report - user_device.network_bandwidth_report - user_device.peripherals_report ", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -8519,7 +8545,11 @@ func (c *CustomersTelemetryUsersListCall) PageToken(pageToken string) *Customers } // ReadMask sets the optional parameter "readMask": Read mask to specify -// which fields to return. +// which fields to return. Supported read_mask paths are: - name - +// org_unit_id - user_id - user_email - user_device.device_id - +// user_device.audio_status_report - user_device.device_activity_report +// - user_device.network_bandwidth_report - +// user_device.peripherals_report func (c *CustomersTelemetryUsersListCall) ReadMask(readMask string) *CustomersTelemetryUsersListCall { c.urlParams_.Set("readMask", readMask) return c @@ -8658,7 +8688,7 @@ func (c *CustomersTelemetryUsersListCall) Do(opts ...googleapi.CallOption) (*Goo // "type": "string" // }, // "readMask": { - // "description": "Read mask to specify which fields to return.", + // "description": "Read mask to specify which fields to return. Supported read_mask paths are: - name - org_unit_id - user_id - user_email - user_device.device_id - user_device.audio_status_report - user_device.device_activity_report - user_device.network_bandwidth_report - user_device.peripherals_report ", // "format": "google-fieldmask", // "location": "query", // "type": "string" diff --git a/cloudsupport/v2/cloudsupport-api.json b/cloudsupport/v2/cloudsupport-api.json index b7742238974..53ffe0633d4 100644 --- a/cloudsupport/v2/cloudsupport-api.json +++ b/cloudsupport/v2/cloudsupport-api.json @@ -552,7 +552,7 @@ } } }, - "revision": "20240212", + "revision": "20240303", "rootUrl": "https://cloudsupport.googleapis.com/", "schemas": { "Actor": { @@ -650,7 +650,7 @@ "type": "object" }, "Case": { - "description": "A Case is an object that contains the details of a support case. It contains fields for the time it was created, its priority, its classification, and more. Cases can also have comments and attachments that get added over time. A case is parented by a Google Cloud organization or project. Organizations are identified by a number, so the name of a case parented by an organization would look like this: ``` organizations/123/cases/456 ``` Projects have two unique identifiers, an ID and a number, and they look like this: ``` projects/abc/cases/456 ``` ``` projects/123/cases/456 ``` You can use either of them when calling the API. To learn more about project identifiers, see [AIP-2510](https://google.aip.dev/cloud/2510). Next ID: 38", + "description": "A Case is an object that contains the details of a support case. It contains fields for the time it was created, its priority, its classification, and more. Cases can also have comments and attachments that get added over time. A case is parented by a Google Cloud organization or project. Organizations are identified by a number, so the name of a case parented by an organization would look like this: ``` organizations/123/cases/456 ``` Projects have two unique identifiers, an ID and a number, and they look like this: ``` projects/abc/cases/456 ``` ``` projects/123/cases/456 ``` You can use either of them when calling the API. To learn more about project identifiers, see [AIP-2510](https://google.aip.dev/cloud/2510).", "id": "Case", "properties": { "classification": { diff --git a/cloudsupport/v2/cloudsupport-gen.go b/cloudsupport/v2/cloudsupport-gen.go index 8aa57b2b234..2707e26ca16 100644 --- a/cloudsupport/v2/cloudsupport-gen.go +++ b/cloudsupport/v2/cloudsupport-gen.go @@ -375,8 +375,7 @@ func (s *Blobstore2Info) MarshalJSON() ([]byte, error) { // unique identifiers, an ID and a number, and they look like this: ``` // projects/abc/cases/456 ``` ``` projects/123/cases/456 ``` You can use // either of them when calling the API. To learn more about project -// identifiers, see AIP-2510 (https://google.aip.dev/cloud/2510). Next -// ID: 38 +// identifiers, see AIP-2510 (https://google.aip.dev/cloud/2510). type Case struct { // Classification: The issue classification applicable to this case. Classification *CaseClassification `json:"classification,omitempty"` diff --git a/cloudsupport/v2beta/cloudsupport-api.json b/cloudsupport/v2beta/cloudsupport-api.json index c75d633528e..5ef20774b3c 100644 --- a/cloudsupport/v2beta/cloudsupport-api.json +++ b/cloudsupport/v2beta/cloudsupport-api.json @@ -305,7 +305,7 @@ "type": "string" }, "productLine": { - "description": "The product line to request cases for.", + "description": "The product line for which to request cases for. If unspecified, only Google Cloud cases will be returned.", "enum": [ "PRODUCT_LINE_UNSPECIFIED", "GOOGLE_CLOUD", @@ -583,7 +583,7 @@ } } }, - "revision": "20240212", + "revision": "20240303", "rootUrl": "https://cloudsupport.googleapis.com/", "schemas": { "Actor": { @@ -681,7 +681,7 @@ "type": "object" }, "Case": { - "description": "A Case is an object that contains the details of a support case. It contains fields for the time it was created, its priority, its classification, and more. Cases can also have comments and attachments that get added over time. A case is parented by a Google Cloud organization or project. Organizations are identified by a number, so the name of a case parented by an organization would look like this: ``` organizations/123/cases/456 ``` Projects have two unique identifiers, an ID and a number, and they look like this: ``` projects/abc/cases/456 ``` ``` projects/123/cases/456 ``` You can use either of them when calling the API. To learn more about project identifiers, see [AIP-2510](https://google.aip.dev/cloud/2510). Next ID: 38", + "description": "A Case is an object that contains the details of a support case. It contains fields for the time it was created, its priority, its classification, and more. Cases can also have comments and attachments that get added over time. A case is parented by a Google Cloud organization or project. Organizations are identified by a number, so the name of a case parented by an organization would look like this: ``` organizations/123/cases/456 ``` Projects have two unique identifiers, an ID and a number, and they look like this: ``` projects/abc/cases/456 ``` ``` projects/123/cases/456 ``` You can use either of them when calling the API. To learn more about project identifiers, see [AIP-2510](https://google.aip.dev/cloud/2510).", "id": "Case", "properties": { "classification": { diff --git a/cloudsupport/v2beta/cloudsupport-gen.go b/cloudsupport/v2beta/cloudsupport-gen.go index 33407adefa9..9cf108476ca 100644 --- a/cloudsupport/v2beta/cloudsupport-gen.go +++ b/cloudsupport/v2beta/cloudsupport-gen.go @@ -375,8 +375,7 @@ func (s *Blobstore2Info) MarshalJSON() ([]byte, error) { // unique identifiers, an ID and a number, and they look like this: ``` // projects/abc/cases/456 ``` ``` projects/123/cases/456 ``` You can use // either of them when calling the API. To learn more about project -// identifiers, see AIP-2510 (https://google.aip.dev/cloud/2510). Next -// ID: 38 +// identifiers, see AIP-2510 (https://google.aip.dev/cloud/2510). type Case struct { // Classification: The issue classification applicable to this case. Classification *CaseClassification `json:"classification,omitempty"` @@ -2459,7 +2458,8 @@ func (c *CasesListCall) PageToken(pageToken string) *CasesListCall { } // ProductLine sets the optional parameter "productLine": The product -// line to request cases for. +// line for which to request cases for. If unspecified, only Google +// Cloud cases will be returned. // // Possible values: // @@ -2602,7 +2602,7 @@ func (c *CasesListCall) Do(opts ...googleapi.CallOption) (*ListCasesResponse, er // "type": "string" // }, // "productLine": { - // "description": "The product line to request cases for.", + // "description": "The product line for which to request cases for. If unspecified, only Google Cloud cases will be returned.", // "enum": [ // "PRODUCT_LINE_UNSPECIFIED", // "GOOGLE_CLOUD", diff --git a/connectors/v1/connectors-api.json b/connectors/v1/connectors-api.json index 9b21d5ef8eb..cdfed9c637c 100644 --- a/connectors/v1/connectors-api.json +++ b/connectors/v1/connectors-api.json @@ -2354,7 +2354,7 @@ } } }, - "revision": "20240221", + "revision": "20240226", "rootUrl": "https://connectors.googleapis.com/", "schemas": { "AuditConfig": { @@ -2622,6 +2622,18 @@ }, "type": "array" }, + "enumSource": { + "description": "Optional. enum source denotes the source of api to fill the enum options", + "enum": [ + "ENUM_SOURCE_UNSPECIFIED", + "EVENT_TYPES_API" + ], + "enumDescriptions": [ + "Api type unspecified.", + "list event types." + ], + "type": "string" + }, "isAdvanced": { "description": "Indicates if current template is part of advanced settings", "type": "boolean" @@ -3826,6 +3838,13 @@ "description": "Optional. Link for Subscriber of the current EventSubscription.", "type": "string" }, + "triggerConfigVariables": { + "description": "Optional. Configuration for configuring the trigger", + "items": { + "$ref": "ConfigVariable" + }, + "type": "array" + }, "updateTime": { "description": "Output only. Updated time.", "format": "google-datetime", @@ -3986,13 +4005,6 @@ "registrationDestinationConfig": { "$ref": "DestinationConfig", "description": "Registration endpoint for auto registration." - }, - "triggerConfigVariables": { - "description": "Optional. Additional eventing related field values", - "items": { - "$ref": "ConfigVariable" - }, - "type": "array" } }, "type": "object" diff --git a/connectors/v1/connectors-gen.go b/connectors/v1/connectors-gen.go index ad4b3c93e70..56becd90cc8 100644 --- a/connectors/v1/connectors-gen.go +++ b/connectors/v1/connectors-gen.go @@ -785,6 +785,14 @@ type ConfigVariableTemplate struct { // EnumOptions: Enum options. To be populated if `ValueType` is `ENUM` EnumOptions []*EnumOption `json:"enumOptions,omitempty"` + // EnumSource: Optional. enum source denotes the source of api to fill + // the enum options + // + // Possible values: + // "ENUM_SOURCE_UNSPECIFIED" - Api type unspecified. + // "EVENT_TYPES_API" - list event types. + EnumSource string `json:"enumSource,omitempty"` + // IsAdvanced: Indicates if current template is part of advanced // settings IsAdvanced bool `json:"isAdvanced,omitempty"` @@ -2194,6 +2202,10 @@ type EventSubscription struct { // EventSubscription. SubscriberLink string `json:"subscriberLink,omitempty"` + // TriggerConfigVariables: Optional. Configuration for configuring the + // trigger + TriggerConfigVariables []*ConfigVariable `json:"triggerConfigVariables,omitempty"` + // UpdateTime: Output only. Updated time. UpdateTime string `json:"updateTime,omitempty"` @@ -2399,10 +2411,6 @@ type EventingConfig struct { // registration. RegistrationDestinationConfig *DestinationConfig `json:"registrationDestinationConfig,omitempty"` - // TriggerConfigVariables: Optional. Additional eventing related field - // values - TriggerConfigVariables []*ConfigVariable `json:"triggerConfigVariables,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdditionalVariables") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/dataportability/v1beta/dataportability-api.json b/dataportability/v1beta/dataportability-api.json index ce67c8aade5..035637e3242 100644 --- a/dataportability/v1beta/dataportability-api.json +++ b/dataportability/v1beta/dataportability-api.json @@ -5,6 +5,27 @@ "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations": { "description": "Move a copy of messages between you and the businesses you have conversations with across Google services." }, + "https://www.googleapis.com/auth/dataportability.chrome.autofill": { + "description": "Move a copy of the information you entered into online forms in Chrome." + }, + "https://www.googleapis.com/auth/dataportability.chrome.bookmarks": { + "description": "Move a copy of pages you bookmarked in Chrome." + }, + "https://www.googleapis.com/auth/dataportability.chrome.dictionary": { + "description": "Move a copy of words you added to Chrome's dictionary." + }, + "https://www.googleapis.com/auth/dataportability.chrome.extensions": { + "description": "Move a copy of extensions you installed from the Chrome Web Store." + }, + "https://www.googleapis.com/auth/dataportability.chrome.history": { + "description": "Move a copy of sites you visited in Chrome." + }, + "https://www.googleapis.com/auth/dataportability.chrome.reading_list": { + "description": "Move a copy of pages you added to your reading list in Chrome." + }, + "https://www.googleapis.com/auth/dataportability.chrome.settings": { + "description": "Move a copy of your settings in Chrome." + }, "https://www.googleapis.com/auth/dataportability.maps.commute_routes": { "description": "Move a copy of your pinned trips on Maps." }, @@ -38,6 +59,9 @@ "https://www.googleapis.com/auth/dataportability.myactivity.youtube": { "description": "Move a copy of your YouTube activity." }, + "https://www.googleapis.com/auth/dataportability.saved.collections": { + "description": "Move a copy of your saved links, images, places, and collections from your use of Google services." + }, "https://www.googleapis.com/auth/dataportability.shopping.addresses": { "description": "Move a copy of your shipping information on Shopping." }, @@ -56,6 +80,12 @@ "https://www.googleapis.com/auth/dataportability.youtube.music": { "description": "Move a copy of your uploaded YouTube music tracks and your YouTube music library." }, + "https://www.googleapis.com/auth/dataportability.youtube.playable": { + "description": "Move a copy of your YouTube playables saved game progress files." + }, + "https://www.googleapis.com/auth/dataportability.youtube.posts": { + "description": "Move a copy of your YouTube posts." + }, "https://www.googleapis.com/auth/dataportability.youtube.private_playlists": { "description": "Move a copy of your YouTube private playlists." }, @@ -205,6 +235,13 @@ }, "scopes": [ "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", + "https://www.googleapis.com/auth/dataportability.chrome.autofill", + "https://www.googleapis.com/auth/dataportability.chrome.bookmarks", + "https://www.googleapis.com/auth/dataportability.chrome.dictionary", + "https://www.googleapis.com/auth/dataportability.chrome.extensions", + "https://www.googleapis.com/auth/dataportability.chrome.history", + "https://www.googleapis.com/auth/dataportability.chrome.reading_list", + "https://www.googleapis.com/auth/dataportability.chrome.settings", "https://www.googleapis.com/auth/dataportability.maps.commute_routes", "https://www.googleapis.com/auth/dataportability.maps.commute_settings", "https://www.googleapis.com/auth/dataportability.maps.ev_profile", @@ -216,12 +253,15 @@ "https://www.googleapis.com/auth/dataportability.myactivity.search", "https://www.googleapis.com/auth/dataportability.myactivity.shopping", "https://www.googleapis.com/auth/dataportability.myactivity.youtube", + "https://www.googleapis.com/auth/dataportability.saved.collections", "https://www.googleapis.com/auth/dataportability.shopping.addresses", "https://www.googleapis.com/auth/dataportability.shopping.reviews", "https://www.googleapis.com/auth/dataportability.youtube.channel", "https://www.googleapis.com/auth/dataportability.youtube.comments", "https://www.googleapis.com/auth/dataportability.youtube.live_chat", "https://www.googleapis.com/auth/dataportability.youtube.music", + "https://www.googleapis.com/auth/dataportability.youtube.playable", + "https://www.googleapis.com/auth/dataportability.youtube.posts", "https://www.googleapis.com/auth/dataportability.youtube.private_playlists", "https://www.googleapis.com/auth/dataportability.youtube.private_videos", "https://www.googleapis.com/auth/dataportability.youtube.public_playlists", @@ -258,6 +298,13 @@ }, "scopes": [ "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", + "https://www.googleapis.com/auth/dataportability.chrome.autofill", + "https://www.googleapis.com/auth/dataportability.chrome.bookmarks", + "https://www.googleapis.com/auth/dataportability.chrome.dictionary", + "https://www.googleapis.com/auth/dataportability.chrome.extensions", + "https://www.googleapis.com/auth/dataportability.chrome.history", + "https://www.googleapis.com/auth/dataportability.chrome.reading_list", + "https://www.googleapis.com/auth/dataportability.chrome.settings", "https://www.googleapis.com/auth/dataportability.maps.commute_routes", "https://www.googleapis.com/auth/dataportability.maps.commute_settings", "https://www.googleapis.com/auth/dataportability.maps.ev_profile", @@ -269,12 +316,15 @@ "https://www.googleapis.com/auth/dataportability.myactivity.search", "https://www.googleapis.com/auth/dataportability.myactivity.shopping", "https://www.googleapis.com/auth/dataportability.myactivity.youtube", + "https://www.googleapis.com/auth/dataportability.saved.collections", "https://www.googleapis.com/auth/dataportability.shopping.addresses", "https://www.googleapis.com/auth/dataportability.shopping.reviews", "https://www.googleapis.com/auth/dataportability.youtube.channel", "https://www.googleapis.com/auth/dataportability.youtube.comments", "https://www.googleapis.com/auth/dataportability.youtube.live_chat", "https://www.googleapis.com/auth/dataportability.youtube.music", + "https://www.googleapis.com/auth/dataportability.youtube.playable", + "https://www.googleapis.com/auth/dataportability.youtube.posts", "https://www.googleapis.com/auth/dataportability.youtube.private_playlists", "https://www.googleapis.com/auth/dataportability.youtube.private_videos", "https://www.googleapis.com/auth/dataportability.youtube.public_playlists", @@ -305,6 +355,13 @@ }, "scopes": [ "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", + "https://www.googleapis.com/auth/dataportability.chrome.autofill", + "https://www.googleapis.com/auth/dataportability.chrome.bookmarks", + "https://www.googleapis.com/auth/dataportability.chrome.dictionary", + "https://www.googleapis.com/auth/dataportability.chrome.extensions", + "https://www.googleapis.com/auth/dataportability.chrome.history", + "https://www.googleapis.com/auth/dataportability.chrome.reading_list", + "https://www.googleapis.com/auth/dataportability.chrome.settings", "https://www.googleapis.com/auth/dataportability.maps.commute_routes", "https://www.googleapis.com/auth/dataportability.maps.commute_settings", "https://www.googleapis.com/auth/dataportability.maps.ev_profile", @@ -316,12 +373,15 @@ "https://www.googleapis.com/auth/dataportability.myactivity.search", "https://www.googleapis.com/auth/dataportability.myactivity.shopping", "https://www.googleapis.com/auth/dataportability.myactivity.youtube", + "https://www.googleapis.com/auth/dataportability.saved.collections", "https://www.googleapis.com/auth/dataportability.shopping.addresses", "https://www.googleapis.com/auth/dataportability.shopping.reviews", "https://www.googleapis.com/auth/dataportability.youtube.channel", "https://www.googleapis.com/auth/dataportability.youtube.comments", "https://www.googleapis.com/auth/dataportability.youtube.live_chat", "https://www.googleapis.com/auth/dataportability.youtube.music", + "https://www.googleapis.com/auth/dataportability.youtube.playable", + "https://www.googleapis.com/auth/dataportability.youtube.posts", "https://www.googleapis.com/auth/dataportability.youtube.private_playlists", "https://www.googleapis.com/auth/dataportability.youtube.private_videos", "https://www.googleapis.com/auth/dataportability.youtube.public_playlists", @@ -352,6 +412,13 @@ }, "scopes": [ "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", + "https://www.googleapis.com/auth/dataportability.chrome.autofill", + "https://www.googleapis.com/auth/dataportability.chrome.bookmarks", + "https://www.googleapis.com/auth/dataportability.chrome.dictionary", + "https://www.googleapis.com/auth/dataportability.chrome.extensions", + "https://www.googleapis.com/auth/dataportability.chrome.history", + "https://www.googleapis.com/auth/dataportability.chrome.reading_list", + "https://www.googleapis.com/auth/dataportability.chrome.settings", "https://www.googleapis.com/auth/dataportability.maps.commute_routes", "https://www.googleapis.com/auth/dataportability.maps.commute_settings", "https://www.googleapis.com/auth/dataportability.maps.ev_profile", @@ -363,12 +430,15 @@ "https://www.googleapis.com/auth/dataportability.myactivity.search", "https://www.googleapis.com/auth/dataportability.myactivity.shopping", "https://www.googleapis.com/auth/dataportability.myactivity.youtube", + "https://www.googleapis.com/auth/dataportability.saved.collections", "https://www.googleapis.com/auth/dataportability.shopping.addresses", "https://www.googleapis.com/auth/dataportability.shopping.reviews", "https://www.googleapis.com/auth/dataportability.youtube.channel", "https://www.googleapis.com/auth/dataportability.youtube.comments", "https://www.googleapis.com/auth/dataportability.youtube.live_chat", "https://www.googleapis.com/auth/dataportability.youtube.music", + "https://www.googleapis.com/auth/dataportability.youtube.playable", + "https://www.googleapis.com/auth/dataportability.youtube.posts", "https://www.googleapis.com/auth/dataportability.youtube.private_playlists", "https://www.googleapis.com/auth/dataportability.youtube.private_videos", "https://www.googleapis.com/auth/dataportability.youtube.public_playlists", @@ -382,7 +452,7 @@ } } }, - "revision": "20240221", + "revision": "20240303", "rootUrl": "https://dataportability.googleapis.com/", "schemas": { "Empty": { diff --git a/dataportability/v1beta/dataportability-gen.go b/dataportability/v1beta/dataportability-gen.go index c5333acba2c..377e1426eb1 100644 --- a/dataportability/v1beta/dataportability-gen.go +++ b/dataportability/v1beta/dataportability-gen.go @@ -105,6 +105,28 @@ const ( // conversations with across Google services. DataportabilityBusinessmessagingConversationsScope = "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations" + // Move a copy of the information you entered into online forms in + // Chrome. + DataportabilityChromeAutofillScope = "https://www.googleapis.com/auth/dataportability.chrome.autofill" + + // Move a copy of pages you bookmarked in Chrome. + DataportabilityChromeBookmarksScope = "https://www.googleapis.com/auth/dataportability.chrome.bookmarks" + + // Move a copy of words you added to Chrome's dictionary. + DataportabilityChromeDictionaryScope = "https://www.googleapis.com/auth/dataportability.chrome.dictionary" + + // Move a copy of extensions you installed from the Chrome Web Store. + DataportabilityChromeExtensionsScope = "https://www.googleapis.com/auth/dataportability.chrome.extensions" + + // Move a copy of sites you visited in Chrome. + DataportabilityChromeHistoryScope = "https://www.googleapis.com/auth/dataportability.chrome.history" + + // Move a copy of pages you added to your reading list in Chrome. + DataportabilityChromeReadingListScope = "https://www.googleapis.com/auth/dataportability.chrome.reading_list" + + // Move a copy of your settings in Chrome. + DataportabilityChromeSettingsScope = "https://www.googleapis.com/auth/dataportability.chrome.settings" + // Move a copy of your pinned trips on Maps. DataportabilityMapsCommuteRoutesScope = "https://www.googleapis.com/auth/dataportability.maps.commute_routes" @@ -138,6 +160,10 @@ const ( // Move a copy of your YouTube activity. DataportabilityMyactivityYoutubeScope = "https://www.googleapis.com/auth/dataportability.myactivity.youtube" + // Move a copy of your saved links, images, places, and collections from + // your use of Google services. + DataportabilitySavedCollectionsScope = "https://www.googleapis.com/auth/dataportability.saved.collections" + // Move a copy of your shipping information on Shopping. DataportabilityShoppingAddressesScope = "https://www.googleapis.com/auth/dataportability.shopping.addresses" @@ -158,6 +184,12 @@ const ( // music library. DataportabilityYoutubeMusicScope = "https://www.googleapis.com/auth/dataportability.youtube.music" + // Move a copy of your YouTube playables saved game progress files. + DataportabilityYoutubePlayableScope = "https://www.googleapis.com/auth/dataportability.youtube.playable" + + // Move a copy of your YouTube posts. + DataportabilityYoutubePostsScope = "https://www.googleapis.com/auth/dataportability.youtube.posts" + // Move a copy of your YouTube private playlists. DataportabilityYoutubePrivatePlaylistsScope = "https://www.googleapis.com/auth/dataportability.youtube.private_playlists" @@ -190,6 +222,13 @@ const ( func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", + "https://www.googleapis.com/auth/dataportability.chrome.autofill", + "https://www.googleapis.com/auth/dataportability.chrome.bookmarks", + "https://www.googleapis.com/auth/dataportability.chrome.dictionary", + "https://www.googleapis.com/auth/dataportability.chrome.extensions", + "https://www.googleapis.com/auth/dataportability.chrome.history", + "https://www.googleapis.com/auth/dataportability.chrome.reading_list", + "https://www.googleapis.com/auth/dataportability.chrome.settings", "https://www.googleapis.com/auth/dataportability.maps.commute_routes", "https://www.googleapis.com/auth/dataportability.maps.commute_settings", "https://www.googleapis.com/auth/dataportability.maps.ev_profile", @@ -201,12 +240,15 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err "https://www.googleapis.com/auth/dataportability.myactivity.search", "https://www.googleapis.com/auth/dataportability.myactivity.shopping", "https://www.googleapis.com/auth/dataportability.myactivity.youtube", + "https://www.googleapis.com/auth/dataportability.saved.collections", "https://www.googleapis.com/auth/dataportability.shopping.addresses", "https://www.googleapis.com/auth/dataportability.shopping.reviews", "https://www.googleapis.com/auth/dataportability.youtube.channel", "https://www.googleapis.com/auth/dataportability.youtube.comments", "https://www.googleapis.com/auth/dataportability.youtube.live_chat", "https://www.googleapis.com/auth/dataportability.youtube.music", + "https://www.googleapis.com/auth/dataportability.youtube.playable", + "https://www.googleapis.com/auth/dataportability.youtube.posts", "https://www.googleapis.com/auth/dataportability.youtube.private_playlists", "https://www.googleapis.com/auth/dataportability.youtube.private_videos", "https://www.googleapis.com/auth/dataportability.youtube.public_playlists", @@ -611,6 +653,13 @@ func (c *ArchiveJobsGetPortabilityArchiveStateCall) Do(opts ...googleapi.CallOpt // }, // "scopes": [ // "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", + // "https://www.googleapis.com/auth/dataportability.chrome.autofill", + // "https://www.googleapis.com/auth/dataportability.chrome.bookmarks", + // "https://www.googleapis.com/auth/dataportability.chrome.dictionary", + // "https://www.googleapis.com/auth/dataportability.chrome.extensions", + // "https://www.googleapis.com/auth/dataportability.chrome.history", + // "https://www.googleapis.com/auth/dataportability.chrome.reading_list", + // "https://www.googleapis.com/auth/dataportability.chrome.settings", // "https://www.googleapis.com/auth/dataportability.maps.commute_routes", // "https://www.googleapis.com/auth/dataportability.maps.commute_settings", // "https://www.googleapis.com/auth/dataportability.maps.ev_profile", @@ -622,12 +671,15 @@ func (c *ArchiveJobsGetPortabilityArchiveStateCall) Do(opts ...googleapi.CallOpt // "https://www.googleapis.com/auth/dataportability.myactivity.search", // "https://www.googleapis.com/auth/dataportability.myactivity.shopping", // "https://www.googleapis.com/auth/dataportability.myactivity.youtube", + // "https://www.googleapis.com/auth/dataportability.saved.collections", // "https://www.googleapis.com/auth/dataportability.shopping.addresses", // "https://www.googleapis.com/auth/dataportability.shopping.reviews", // "https://www.googleapis.com/auth/dataportability.youtube.channel", // "https://www.googleapis.com/auth/dataportability.youtube.comments", // "https://www.googleapis.com/auth/dataportability.youtube.live_chat", // "https://www.googleapis.com/auth/dataportability.youtube.music", + // "https://www.googleapis.com/auth/dataportability.youtube.playable", + // "https://www.googleapis.com/auth/dataportability.youtube.posts", // "https://www.googleapis.com/auth/dataportability.youtube.private_playlists", // "https://www.googleapis.com/auth/dataportability.youtube.private_videos", // "https://www.googleapis.com/auth/dataportability.youtube.public_playlists", @@ -780,6 +832,13 @@ func (c *ArchiveJobsRetryCall) Do(opts ...googleapi.CallOption) (*RetryPortabili // }, // "scopes": [ // "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", + // "https://www.googleapis.com/auth/dataportability.chrome.autofill", + // "https://www.googleapis.com/auth/dataportability.chrome.bookmarks", + // "https://www.googleapis.com/auth/dataportability.chrome.dictionary", + // "https://www.googleapis.com/auth/dataportability.chrome.extensions", + // "https://www.googleapis.com/auth/dataportability.chrome.history", + // "https://www.googleapis.com/auth/dataportability.chrome.reading_list", + // "https://www.googleapis.com/auth/dataportability.chrome.settings", // "https://www.googleapis.com/auth/dataportability.maps.commute_routes", // "https://www.googleapis.com/auth/dataportability.maps.commute_settings", // "https://www.googleapis.com/auth/dataportability.maps.ev_profile", @@ -791,12 +850,15 @@ func (c *ArchiveJobsRetryCall) Do(opts ...googleapi.CallOption) (*RetryPortabili // "https://www.googleapis.com/auth/dataportability.myactivity.search", // "https://www.googleapis.com/auth/dataportability.myactivity.shopping", // "https://www.googleapis.com/auth/dataportability.myactivity.youtube", + // "https://www.googleapis.com/auth/dataportability.saved.collections", // "https://www.googleapis.com/auth/dataportability.shopping.addresses", // "https://www.googleapis.com/auth/dataportability.shopping.reviews", // "https://www.googleapis.com/auth/dataportability.youtube.channel", // "https://www.googleapis.com/auth/dataportability.youtube.comments", // "https://www.googleapis.com/auth/dataportability.youtube.live_chat", // "https://www.googleapis.com/auth/dataportability.youtube.music", + // "https://www.googleapis.com/auth/dataportability.youtube.playable", + // "https://www.googleapis.com/auth/dataportability.youtube.posts", // "https://www.googleapis.com/auth/dataportability.youtube.private_playlists", // "https://www.googleapis.com/auth/dataportability.youtube.private_videos", // "https://www.googleapis.com/auth/dataportability.youtube.public_playlists", @@ -935,6 +997,13 @@ func (c *AuthorizationResetCall) Do(opts ...googleapi.CallOption) (*Empty, error // }, // "scopes": [ // "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", + // "https://www.googleapis.com/auth/dataportability.chrome.autofill", + // "https://www.googleapis.com/auth/dataportability.chrome.bookmarks", + // "https://www.googleapis.com/auth/dataportability.chrome.dictionary", + // "https://www.googleapis.com/auth/dataportability.chrome.extensions", + // "https://www.googleapis.com/auth/dataportability.chrome.history", + // "https://www.googleapis.com/auth/dataportability.chrome.reading_list", + // "https://www.googleapis.com/auth/dataportability.chrome.settings", // "https://www.googleapis.com/auth/dataportability.maps.commute_routes", // "https://www.googleapis.com/auth/dataportability.maps.commute_settings", // "https://www.googleapis.com/auth/dataportability.maps.ev_profile", @@ -946,12 +1015,15 @@ func (c *AuthorizationResetCall) Do(opts ...googleapi.CallOption) (*Empty, error // "https://www.googleapis.com/auth/dataportability.myactivity.search", // "https://www.googleapis.com/auth/dataportability.myactivity.shopping", // "https://www.googleapis.com/auth/dataportability.myactivity.youtube", + // "https://www.googleapis.com/auth/dataportability.saved.collections", // "https://www.googleapis.com/auth/dataportability.shopping.addresses", // "https://www.googleapis.com/auth/dataportability.shopping.reviews", // "https://www.googleapis.com/auth/dataportability.youtube.channel", // "https://www.googleapis.com/auth/dataportability.youtube.comments", // "https://www.googleapis.com/auth/dataportability.youtube.live_chat", // "https://www.googleapis.com/auth/dataportability.youtube.music", + // "https://www.googleapis.com/auth/dataportability.youtube.playable", + // "https://www.googleapis.com/auth/dataportability.youtube.posts", // "https://www.googleapis.com/auth/dataportability.youtube.private_playlists", // "https://www.googleapis.com/auth/dataportability.youtube.private_videos", // "https://www.googleapis.com/auth/dataportability.youtube.public_playlists", @@ -1086,6 +1158,13 @@ func (c *PortabilityArchiveInitiateCall) Do(opts ...googleapi.CallOption) (*Init // }, // "scopes": [ // "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", + // "https://www.googleapis.com/auth/dataportability.chrome.autofill", + // "https://www.googleapis.com/auth/dataportability.chrome.bookmarks", + // "https://www.googleapis.com/auth/dataportability.chrome.dictionary", + // "https://www.googleapis.com/auth/dataportability.chrome.extensions", + // "https://www.googleapis.com/auth/dataportability.chrome.history", + // "https://www.googleapis.com/auth/dataportability.chrome.reading_list", + // "https://www.googleapis.com/auth/dataportability.chrome.settings", // "https://www.googleapis.com/auth/dataportability.maps.commute_routes", // "https://www.googleapis.com/auth/dataportability.maps.commute_settings", // "https://www.googleapis.com/auth/dataportability.maps.ev_profile", @@ -1097,12 +1176,15 @@ func (c *PortabilityArchiveInitiateCall) Do(opts ...googleapi.CallOption) (*Init // "https://www.googleapis.com/auth/dataportability.myactivity.search", // "https://www.googleapis.com/auth/dataportability.myactivity.shopping", // "https://www.googleapis.com/auth/dataportability.myactivity.youtube", + // "https://www.googleapis.com/auth/dataportability.saved.collections", // "https://www.googleapis.com/auth/dataportability.shopping.addresses", // "https://www.googleapis.com/auth/dataportability.shopping.reviews", // "https://www.googleapis.com/auth/dataportability.youtube.channel", // "https://www.googleapis.com/auth/dataportability.youtube.comments", // "https://www.googleapis.com/auth/dataportability.youtube.live_chat", // "https://www.googleapis.com/auth/dataportability.youtube.music", + // "https://www.googleapis.com/auth/dataportability.youtube.playable", + // "https://www.googleapis.com/auth/dataportability.youtube.posts", // "https://www.googleapis.com/auth/dataportability.youtube.private_playlists", // "https://www.googleapis.com/auth/dataportability.youtube.private_videos", // "https://www.googleapis.com/auth/dataportability.youtube.public_playlists", diff --git a/metastore/v1/metastore-api.json b/metastore/v1/metastore-api.json index 3d41a080817..8c95c76279b 100644 --- a/metastore/v1/metastore-api.json +++ b/metastore/v1/metastore-api.json @@ -1401,7 +1401,7 @@ } } }, - "revision": "20240218", + "revision": "20240228", "rootUrl": "https://metastore.googleapis.com/", "schemas": { "AlterMetadataResourceLocationRequest": { @@ -1945,6 +1945,47 @@ }, "type": "object" }, + "LatestBackup": { + "description": "The details of the latest scheduled backup.", + "id": "LatestBackup", + "properties": { + "backupId": { + "description": "Output only. The ID of an in-progress scheduled backup. Empty if no backup is in progress.", + "readOnly": true, + "type": "string" + }, + "duration": { + "description": "Output only. The duration of the backup completion.", + "format": "google-duration", + "readOnly": true, + "type": "string" + }, + "startTime": { + "description": "Output only. The time when the backup was started.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. The current state of the backup.", + "enum": [ + "STATE_UNSPECIFIED", + "IN_PROGRESS", + "SUCCEEDED", + "FAILED" + ], + "enumDescriptions": [ + "The state of the backup is unknown.", + "The backup is in progress.", + "The backup completed.", + "The backup failed." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "ListBackupsResponse": { "description": "Response message for DataprocMetastore.ListBackups.", "id": "ListBackupsResponse", @@ -2511,6 +2552,10 @@ "readOnly": true, "type": "string" }, + "backupLocation": { + "description": "Optional. A Cloud Storage URI specifying where the backup artifacts are stored, in the format gs:///.", + "type": "string" + }, "details": { "description": "Output only. The restore details containing the revision of the service to be restored to, in format of JSON.", "readOnly": true, @@ -2573,6 +2618,10 @@ "description": "Optional. The relative resource name of the metastore service backup to restore from, in the following form:projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}. Mutually exclusive with backup_location, and exactly one of the two must be set.", "type": "string" }, + "backupLocation": { + "description": "Optional. A Cloud Storage URI specifying the location of the backup artifacts, namely - backup avro files under \"avro/\", backup_metastore.json and service.json, in the following form:gs://. Mutually exclusive with backup, and exactly one of the two must be set.", + "type": "string" + }, "requestId": { "description": "Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.", "type": "string" @@ -2626,6 +2675,40 @@ }, "type": "object" }, + "ScheduledBackup": { + "description": "This specifies the configuration of scheduled backup.", + "id": "ScheduledBackup", + "properties": { + "backupLocation": { + "description": "Optional. A Cloud Storage URI of a folder, in the format gs:///. A sub-folder containing backup files will be stored below it.", + "type": "string" + }, + "cronSchedule": { + "description": "Optional. The scheduled interval in Cron format, see https://en.wikipedia.org/wiki/Cron The default is empty: scheduled backup is not enabled. Must be specified to enable scheduled backups.", + "type": "string" + }, + "enabled": { + "description": "Optional. Defines whether the scheduled backup is enabled. The default value is false.", + "type": "boolean" + }, + "latestBackup": { + "$ref": "LatestBackup", + "description": "Output only. The details of the latest scheduled backup.", + "readOnly": true + }, + "nextScheduledTime": { + "description": "Output only. The time when the next backups execution is scheduled to start.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "timeZone": { + "description": "Optional. Specifies the time zone to be used when interpreting cron_schedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g. America/Los_Angeles or Africa/Abidjan. If left unspecified, the default is UTC.", + "type": "string" + } + }, + "type": "object" + }, "Secret": { "description": "A securely stored value.", "id": "Secret", @@ -2734,6 +2817,10 @@ "$ref": "ScalingConfig", "description": "Scaling configuration of the metastore service." }, + "scheduledBackup": { + "$ref": "ScheduledBackup", + "description": "Optional. The configuration of scheduled backup for the metastore service." + }, "state": { "description": "Output only. The current state of the metastore service.", "enum": [ diff --git a/metastore/v1/metastore-gen.go b/metastore/v1/metastore-gen.go index f30d0728d36..3637b6694d4 100644 --- a/metastore/v1/metastore-gen.go +++ b/metastore/v1/metastore-gen.go @@ -1236,6 +1236,50 @@ func (s *KerberosConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// LatestBackup: The details of the latest scheduled backup. +type LatestBackup struct { + // BackupId: Output only. The ID of an in-progress scheduled backup. + // Empty if no backup is in progress. + BackupId string `json:"backupId,omitempty"` + + // Duration: Output only. The duration of the backup completion. + Duration string `json:"duration,omitempty"` + + // StartTime: Output only. The time when the backup was started. + StartTime string `json:"startTime,omitempty"` + + // State: Output only. The current state of the backup. + // + // Possible values: + // "STATE_UNSPECIFIED" - The state of the backup is unknown. + // "IN_PROGRESS" - The backup is in progress. + // "SUCCEEDED" - The backup completed. + // "FAILED" - The backup failed. + State string `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BackupId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BackupId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *LatestBackup) MarshalJSON() ([]byte, error) { + type NoMethod LatestBackup + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListBackupsResponse: Response message for // DataprocMetastore.ListBackups. type ListBackupsResponse struct { @@ -2177,6 +2221,10 @@ type Restore struct { // d}/backups/{backup_id}. Backup string `json:"backup,omitempty"` + // BackupLocation: Optional. A Cloud Storage URI specifying where the + // backup artifacts are stored, in the format gs:///. + BackupLocation string `json:"backupLocation,omitempty"` + // Details: Output only. The restore details containing the revision of // the service to be restored to, in format of JSON. Details string `json:"details,omitempty"` @@ -2237,6 +2285,13 @@ type RestoreServiceRequest struct { // exactly one of the two must be set. Backup string `json:"backup,omitempty"` + // BackupLocation: Optional. A Cloud Storage URI specifying the location + // of the backup artifacts, namely - backup avro files under "avro/", + // backup_metastore.json and service.json, in the following form:gs://. + // Mutually exclusive with backup, and exactly one of the two must be + // set. + BackupLocation string `json:"backupLocation,omitempty"` + // RequestId: Optional. A request ID. Specify a unique request ID to // allow the server to ignore the request if it has completed. The // server will ignore subsequent requests that provide a duplicate @@ -2340,6 +2395,63 @@ func (s *ScalingConfig) UnmarshalJSON(data []byte) error { return nil } +// ScheduledBackup: This specifies the configuration of scheduled +// backup. +type ScheduledBackup struct { + // BackupLocation: Optional. A Cloud Storage URI of a folder, in the + // format gs:///. A sub-folder containing backup files will be stored + // below it. + BackupLocation string `json:"backupLocation,omitempty"` + + // CronSchedule: Optional. The scheduled interval in Cron format, see + // https://en.wikipedia.org/wiki/Cron The default is empty: scheduled + // backup is not enabled. Must be specified to enable scheduled backups. + CronSchedule string `json:"cronSchedule,omitempty"` + + // Enabled: Optional. Defines whether the scheduled backup is enabled. + // The default value is false. + Enabled bool `json:"enabled,omitempty"` + + // LatestBackup: Output only. The details of the latest scheduled + // backup. + LatestBackup *LatestBackup `json:"latestBackup,omitempty"` + + // NextScheduledTime: Output only. The time when the next backups + // execution is scheduled to start. + NextScheduledTime string `json:"nextScheduledTime,omitempty"` + + // TimeZone: Optional. Specifies the time zone to be used when + // interpreting cron_schedule. Must be a time zone name from the time + // zone database + // (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g. + // America/Los_Angeles or Africa/Abidjan. If left unspecified, the + // default is UTC. + TimeZone string `json:"timeZone,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BackupLocation") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BackupLocation") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ScheduledBackup) MarshalJSON() ([]byte, error) { + type NoMethod ScheduledBackup + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Secret: A securely stored value. type Secret struct { // CloudSecret: The relative resource name of a Secret Manager secret @@ -2456,6 +2568,10 @@ type Service struct { // ScalingConfig: Scaling configuration of the metastore service. ScalingConfig *ScalingConfig `json:"scalingConfig,omitempty"` + // ScheduledBackup: Optional. The configuration of scheduled backup for + // the metastore service. + ScheduledBackup *ScheduledBackup `json:"scheduledBackup,omitempty"` + // State: Output only. The current state of the metastore service. // // Possible values: diff --git a/metastore/v1alpha/metastore-api.json b/metastore/v1alpha/metastore-api.json index 8da0fd9b6a5..4d4c82fa83f 100644 --- a/metastore/v1alpha/metastore-api.json +++ b/metastore/v1alpha/metastore-api.json @@ -1641,7 +1641,7 @@ } } }, - "revision": "20240218", + "revision": "20240228", "rootUrl": "https://metastore.googleapis.com/", "schemas": { "AlterMetadataResourceLocationRequest": { @@ -2212,6 +2212,47 @@ }, "type": "object" }, + "LatestBackup": { + "description": "The details of the latest scheduled backup.", + "id": "LatestBackup", + "properties": { + "backupId": { + "description": "Output only. The ID of an in-progress scheduled backup. Empty if no backup is in progress.", + "readOnly": true, + "type": "string" + }, + "duration": { + "description": "Output only. The duration of the backup completion.", + "format": "google-duration", + "readOnly": true, + "type": "string" + }, + "startTime": { + "description": "Output only. The time when the backup was started.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. The current state of the backup.", + "enum": [ + "STATE_UNSPECIFIED", + "IN_PROGRESS", + "SUCCEEDED", + "FAILED" + ], + "enumDescriptions": [ + "The state of the backup is unknown.", + "The backup is in progress.", + "The backup completed.", + "The backup failed." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "ListBackupsResponse": { "description": "Response message for DataprocMetastore.ListBackups.", "id": "ListBackupsResponse", @@ -2808,6 +2849,10 @@ "readOnly": true, "type": "string" }, + "backupLocation": { + "description": "Optional. A Cloud Storage URI specifying where the backup artifacts are stored, in the format gs:///.", + "type": "string" + }, "details": { "description": "Output only. The restore details containing the revision of the service to be restored to, in format of JSON.", "readOnly": true, @@ -2870,6 +2915,10 @@ "description": "Optional. The relative resource name of the metastore service backup to restore from, in the following form:projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}. Mutually exclusive with backup_location, and exactly one of the two must be set.", "type": "string" }, + "backupLocation": { + "description": "Optional. A Cloud Storage URI specifying the location of the backup artifacts, namely - backup avro files under \"avro/\", backup_metastore.json and service.json, in the following form:gs://. Mutually exclusive with backup, and exactly one of the two must be set.", + "type": "string" + }, "requestId": { "description": "Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.", "type": "string" @@ -2923,6 +2972,40 @@ }, "type": "object" }, + "ScheduledBackup": { + "description": "This specifies the configuration of scheduled backup.", + "id": "ScheduledBackup", + "properties": { + "backupLocation": { + "description": "Optional. A Cloud Storage URI of a folder, in the format gs:///. A sub-folder containing backup files will be stored below it.", + "type": "string" + }, + "cronSchedule": { + "description": "Optional. The scheduled interval in Cron format, see https://en.wikipedia.org/wiki/Cron The default is empty: scheduled backup is not enabled. Must be specified to enable scheduled backups.", + "type": "string" + }, + "enabled": { + "description": "Optional. Defines whether the scheduled backup is enabled. The default value is false.", + "type": "boolean" + }, + "latestBackup": { + "$ref": "LatestBackup", + "description": "Output only. The details of the latest scheduled backup.", + "readOnly": true + }, + "nextScheduledTime": { + "description": "Output only. The time when the next backups execution is scheduled to start.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "timeZone": { + "description": "Optional. Specifies the time zone to be used when interpreting cron_schedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g. America/Los_Angeles or Africa/Abidjan. If left unspecified, the default is UTC.", + "type": "string" + } + }, + "type": "object" + }, "Secret": { "description": "A securely stored value.", "id": "Secret", @@ -3031,6 +3114,10 @@ "$ref": "ScalingConfig", "description": "Scaling configuration of the metastore service." }, + "scheduledBackup": { + "$ref": "ScheduledBackup", + "description": "Optional. The configuration of scheduled backup for the metastore service." + }, "state": { "description": "Output only. The current state of the metastore service.", "enum": [ diff --git a/metastore/v1alpha/metastore-gen.go b/metastore/v1alpha/metastore-gen.go index 09af5ff496b..6bbdb4b712d 100644 --- a/metastore/v1alpha/metastore-gen.go +++ b/metastore/v1alpha/metastore-gen.go @@ -1321,6 +1321,50 @@ func (s *Lake) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// LatestBackup: The details of the latest scheduled backup. +type LatestBackup struct { + // BackupId: Output only. The ID of an in-progress scheduled backup. + // Empty if no backup is in progress. + BackupId string `json:"backupId,omitempty"` + + // Duration: Output only. The duration of the backup completion. + Duration string `json:"duration,omitempty"` + + // StartTime: Output only. The time when the backup was started. + StartTime string `json:"startTime,omitempty"` + + // State: Output only. The current state of the backup. + // + // Possible values: + // "STATE_UNSPECIFIED" - The state of the backup is unknown. + // "IN_PROGRESS" - The backup is in progress. + // "SUCCEEDED" - The backup completed. + // "FAILED" - The backup failed. + State string `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BackupId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BackupId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *LatestBackup) MarshalJSON() ([]byte, error) { + type NoMethod LatestBackup + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListBackupsResponse: Response message for // DataprocMetastore.ListBackups. type ListBackupsResponse struct { @@ -2332,6 +2376,10 @@ type Restore struct { // d}/backups/{backup_id}. Backup string `json:"backup,omitempty"` + // BackupLocation: Optional. A Cloud Storage URI specifying where the + // backup artifacts are stored, in the format gs:///. + BackupLocation string `json:"backupLocation,omitempty"` + // Details: Output only. The restore details containing the revision of // the service to be restored to, in format of JSON. Details string `json:"details,omitempty"` @@ -2392,6 +2440,13 @@ type RestoreServiceRequest struct { // exactly one of the two must be set. Backup string `json:"backup,omitempty"` + // BackupLocation: Optional. A Cloud Storage URI specifying the location + // of the backup artifacts, namely - backup avro files under "avro/", + // backup_metastore.json and service.json, in the following form:gs://. + // Mutually exclusive with backup, and exactly one of the two must be + // set. + BackupLocation string `json:"backupLocation,omitempty"` + // RequestId: Optional. A request ID. Specify a unique request ID to // allow the server to ignore the request if it has completed. The // server will ignore subsequent requests that provide a duplicate @@ -2495,6 +2550,63 @@ func (s *ScalingConfig) UnmarshalJSON(data []byte) error { return nil } +// ScheduledBackup: This specifies the configuration of scheduled +// backup. +type ScheduledBackup struct { + // BackupLocation: Optional. A Cloud Storage URI of a folder, in the + // format gs:///. A sub-folder containing backup files will be stored + // below it. + BackupLocation string `json:"backupLocation,omitempty"` + + // CronSchedule: Optional. The scheduled interval in Cron format, see + // https://en.wikipedia.org/wiki/Cron The default is empty: scheduled + // backup is not enabled. Must be specified to enable scheduled backups. + CronSchedule string `json:"cronSchedule,omitempty"` + + // Enabled: Optional. Defines whether the scheduled backup is enabled. + // The default value is false. + Enabled bool `json:"enabled,omitempty"` + + // LatestBackup: Output only. The details of the latest scheduled + // backup. + LatestBackup *LatestBackup `json:"latestBackup,omitempty"` + + // NextScheduledTime: Output only. The time when the next backups + // execution is scheduled to start. + NextScheduledTime string `json:"nextScheduledTime,omitempty"` + + // TimeZone: Optional. Specifies the time zone to be used when + // interpreting cron_schedule. Must be a time zone name from the time + // zone database + // (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g. + // America/Los_Angeles or Africa/Abidjan. If left unspecified, the + // default is UTC. + TimeZone string `json:"timeZone,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BackupLocation") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BackupLocation") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ScheduledBackup) MarshalJSON() ([]byte, error) { + type NoMethod ScheduledBackup + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Secret: A securely stored value. type Secret struct { // CloudSecret: The relative resource name of a Secret Manager secret @@ -2611,6 +2723,10 @@ type Service struct { // ScalingConfig: Scaling configuration of the metastore service. ScalingConfig *ScalingConfig `json:"scalingConfig,omitempty"` + // ScheduledBackup: Optional. The configuration of scheduled backup for + // the metastore service. + ScheduledBackup *ScheduledBackup `json:"scheduledBackup,omitempty"` + // State: Output only. The current state of the metastore service. // // Possible values: diff --git a/metastore/v1beta/metastore-api.json b/metastore/v1beta/metastore-api.json index 06c72cffe6e..3bbaaf954b8 100644 --- a/metastore/v1beta/metastore-api.json +++ b/metastore/v1beta/metastore-api.json @@ -1641,7 +1641,7 @@ } } }, - "revision": "20240218", + "revision": "20240228", "rootUrl": "https://metastore.googleapis.com/", "schemas": { "AlterMetadataResourceLocationRequest": { @@ -2212,6 +2212,47 @@ }, "type": "object" }, + "LatestBackup": { + "description": "The details of the latest scheduled backup.", + "id": "LatestBackup", + "properties": { + "backupId": { + "description": "Output only. The ID of an in-progress scheduled backup. Empty if no backup is in progress.", + "readOnly": true, + "type": "string" + }, + "duration": { + "description": "Output only. The duration of the backup completion.", + "format": "google-duration", + "readOnly": true, + "type": "string" + }, + "startTime": { + "description": "Output only. The time when the backup was started.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. The current state of the backup.", + "enum": [ + "STATE_UNSPECIFIED", + "IN_PROGRESS", + "SUCCEEDED", + "FAILED" + ], + "enumDescriptions": [ + "The state of the backup is unknown.", + "The backup is in progress.", + "The backup completed.", + "The backup failed." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "ListBackupsResponse": { "description": "Response message for DataprocMetastore.ListBackups.", "id": "ListBackupsResponse", @@ -2808,6 +2849,10 @@ "readOnly": true, "type": "string" }, + "backupLocation": { + "description": "Optional. A Cloud Storage URI specifying where the backup artifacts are stored, in the format gs:///.", + "type": "string" + }, "details": { "description": "Output only. The restore details containing the revision of the service to be restored to, in format of JSON.", "readOnly": true, @@ -2870,6 +2915,10 @@ "description": "Optional. The relative resource name of the metastore service backup to restore from, in the following form:projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}. Mutually exclusive with backup_location, and exactly one of the two must be set.", "type": "string" }, + "backupLocation": { + "description": "Optional. A Cloud Storage URI specifying the location of the backup artifacts, namely - backup avro files under \"avro/\", backup_metastore.json and service.json, in the following form:gs://. Mutually exclusive with backup, and exactly one of the two must be set.", + "type": "string" + }, "requestId": { "description": "Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.", "type": "string" @@ -2923,6 +2972,40 @@ }, "type": "object" }, + "ScheduledBackup": { + "description": "This specifies the configuration of scheduled backup.", + "id": "ScheduledBackup", + "properties": { + "backupLocation": { + "description": "Optional. A Cloud Storage URI of a folder, in the format gs:///. A sub-folder containing backup files will be stored below it.", + "type": "string" + }, + "cronSchedule": { + "description": "Optional. The scheduled interval in Cron format, see https://en.wikipedia.org/wiki/Cron The default is empty: scheduled backup is not enabled. Must be specified to enable scheduled backups.", + "type": "string" + }, + "enabled": { + "description": "Optional. Defines whether the scheduled backup is enabled. The default value is false.", + "type": "boolean" + }, + "latestBackup": { + "$ref": "LatestBackup", + "description": "Output only. The details of the latest scheduled backup.", + "readOnly": true + }, + "nextScheduledTime": { + "description": "Output only. The time when the next backups execution is scheduled to start.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "timeZone": { + "description": "Optional. Specifies the time zone to be used when interpreting cron_schedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g. America/Los_Angeles or Africa/Abidjan. If left unspecified, the default is UTC.", + "type": "string" + } + }, + "type": "object" + }, "Secret": { "description": "A securely stored value.", "id": "Secret", @@ -3031,6 +3114,10 @@ "$ref": "ScalingConfig", "description": "Scaling configuration of the metastore service." }, + "scheduledBackup": { + "$ref": "ScheduledBackup", + "description": "Optional. The configuration of scheduled backup for the metastore service." + }, "state": { "description": "Output only. The current state of the metastore service.", "enum": [ diff --git a/metastore/v1beta/metastore-gen.go b/metastore/v1beta/metastore-gen.go index 1f89fcd46f5..8b198cb96d2 100644 --- a/metastore/v1beta/metastore-gen.go +++ b/metastore/v1beta/metastore-gen.go @@ -1321,6 +1321,50 @@ func (s *Lake) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// LatestBackup: The details of the latest scheduled backup. +type LatestBackup struct { + // BackupId: Output only. The ID of an in-progress scheduled backup. + // Empty if no backup is in progress. + BackupId string `json:"backupId,omitempty"` + + // Duration: Output only. The duration of the backup completion. + Duration string `json:"duration,omitempty"` + + // StartTime: Output only. The time when the backup was started. + StartTime string `json:"startTime,omitempty"` + + // State: Output only. The current state of the backup. + // + // Possible values: + // "STATE_UNSPECIFIED" - The state of the backup is unknown. + // "IN_PROGRESS" - The backup is in progress. + // "SUCCEEDED" - The backup completed. + // "FAILED" - The backup failed. + State string `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BackupId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BackupId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *LatestBackup) MarshalJSON() ([]byte, error) { + type NoMethod LatestBackup + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListBackupsResponse: Response message for // DataprocMetastore.ListBackups. type ListBackupsResponse struct { @@ -2332,6 +2376,10 @@ type Restore struct { // d}/backups/{backup_id}. Backup string `json:"backup,omitempty"` + // BackupLocation: Optional. A Cloud Storage URI specifying where the + // backup artifacts are stored, in the format gs:///. + BackupLocation string `json:"backupLocation,omitempty"` + // Details: Output only. The restore details containing the revision of // the service to be restored to, in format of JSON. Details string `json:"details,omitempty"` @@ -2392,6 +2440,13 @@ type RestoreServiceRequest struct { // exactly one of the two must be set. Backup string `json:"backup,omitempty"` + // BackupLocation: Optional. A Cloud Storage URI specifying the location + // of the backup artifacts, namely - backup avro files under "avro/", + // backup_metastore.json and service.json, in the following form:gs://. + // Mutually exclusive with backup, and exactly one of the two must be + // set. + BackupLocation string `json:"backupLocation,omitempty"` + // RequestId: Optional. A request ID. Specify a unique request ID to // allow the server to ignore the request if it has completed. The // server will ignore subsequent requests that provide a duplicate @@ -2495,6 +2550,63 @@ func (s *ScalingConfig) UnmarshalJSON(data []byte) error { return nil } +// ScheduledBackup: This specifies the configuration of scheduled +// backup. +type ScheduledBackup struct { + // BackupLocation: Optional. A Cloud Storage URI of a folder, in the + // format gs:///. A sub-folder containing backup files will be stored + // below it. + BackupLocation string `json:"backupLocation,omitempty"` + + // CronSchedule: Optional. The scheduled interval in Cron format, see + // https://en.wikipedia.org/wiki/Cron The default is empty: scheduled + // backup is not enabled. Must be specified to enable scheduled backups. + CronSchedule string `json:"cronSchedule,omitempty"` + + // Enabled: Optional. Defines whether the scheduled backup is enabled. + // The default value is false. + Enabled bool `json:"enabled,omitempty"` + + // LatestBackup: Output only. The details of the latest scheduled + // backup. + LatestBackup *LatestBackup `json:"latestBackup,omitempty"` + + // NextScheduledTime: Output only. The time when the next backups + // execution is scheduled to start. + NextScheduledTime string `json:"nextScheduledTime,omitempty"` + + // TimeZone: Optional. Specifies the time zone to be used when + // interpreting cron_schedule. Must be a time zone name from the time + // zone database + // (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g. + // America/Los_Angeles or Africa/Abidjan. If left unspecified, the + // default is UTC. + TimeZone string `json:"timeZone,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BackupLocation") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BackupLocation") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ScheduledBackup) MarshalJSON() ([]byte, error) { + type NoMethod ScheduledBackup + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Secret: A securely stored value. type Secret struct { // CloudSecret: The relative resource name of a Secret Manager secret @@ -2611,6 +2723,10 @@ type Service struct { // ScalingConfig: Scaling configuration of the metastore service. ScalingConfig *ScalingConfig `json:"scalingConfig,omitempty"` + // ScheduledBackup: Optional. The configuration of scheduled backup for + // the metastore service. + ScheduledBackup *ScheduledBackup `json:"scheduledBackup,omitempty"` + // State: Output only. The current state of the metastore service. // // Possible values: diff --git a/serviceusage/v1beta1/serviceusage-api.json b/serviceusage/v1beta1/serviceusage-api.json index ab36610ec06..a5a5b34f416 100644 --- a/serviceusage/v1beta1/serviceusage-api.json +++ b/serviceusage/v1beta1/serviceusage-api.json @@ -964,7 +964,7 @@ } } }, - "revision": "20240220", + "revision": "20240303", "rootUrl": "https://serviceusage.googleapis.com/", "schemas": { "AddEnableRulesMetadata": { @@ -3662,6 +3662,10 @@ "producerQuotaPolicy": { "$ref": "ProducerQuotaPolicy", "description": "Producer policy inherited from the closet ancestor of the current consumer." + }, + "rolloutInfo": { + "$ref": "RolloutInfo", + "description": "Rollout information of this quota bucket. This field is present only if the effective limit will change due to the ongoing rollout of the service config." } }, "type": "object" @@ -3780,6 +3784,17 @@ }, "type": "object" }, + "RolloutInfo": { + "description": "[Output only] Rollout information of a quota.", + "id": "RolloutInfo", + "properties": { + "defaultLimitOngoingRollout": { + "description": "Whether there is an ongoing rollout for the default limit or not.", + "type": "boolean" + } + }, + "type": "object" + }, "RubySettings": { "description": "Settings for Ruby client libraries.", "id": "RubySettings", diff --git a/serviceusage/v1beta1/serviceusage-gen.go b/serviceusage/v1beta1/serviceusage-gen.go index 15227d67586..9ed65714630 100644 --- a/serviceusage/v1beta1/serviceusage-gen.go +++ b/serviceusage/v1beta1/serviceusage-gen.go @@ -5056,6 +5056,11 @@ type QuotaBucket struct { // ancestor of the current consumer. ProducerQuotaPolicy *ProducerQuotaPolicy `json:"producerQuotaPolicy,omitempty"` + // RolloutInfo: Rollout information of this quota bucket. This field is + // present only if the effective limit will change due to the ongoing + // rollout of the service config. + RolloutInfo *RolloutInfo `json:"rolloutInfo,omitempty"` + // ForceSendFields is a list of field names (e.g. "AdminOverride") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -5290,6 +5295,37 @@ func (s *RemoveEnableRulesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// RolloutInfo: [Output only] Rollout information of a quota. +type RolloutInfo struct { + // DefaultLimitOngoingRollout: Whether there is an ongoing rollout for + // the default limit or not. + DefaultLimitOngoingRollout bool `json:"defaultLimitOngoingRollout,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "DefaultLimitOngoingRollout") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "DefaultLimitOngoingRollout") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RolloutInfo) MarshalJSON() ([]byte, error) { + type NoMethod RolloutInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // RubySettings: Settings for Ruby client libraries. type RubySettings struct { // Common: Some settings. diff --git a/youtube/v3/youtube-api.json b/youtube/v3/youtube-api.json index 10786a671d8..db996fcf121 100644 --- a/youtube/v3/youtube-api.json +++ b/youtube/v3/youtube-api.json @@ -2313,6 +2313,24 @@ "flatPath": "youtube/v3/playlistImages", "httpMethod": "PUT", "id": "youtube.playlistImages.update", + "mediaUpload": { + "accept": [ + "image/jpeg", + "image/png", + "application/octet-stream" + ], + "maxSize": "2097152", + "protocols": { + "resumable": { + "multipart": true, + "path": "/resumable/upload/youtube/v3/playlistImages" + }, + "simple": { + "multipart": true, + "path": "/upload/youtube/v3/playlistImages" + } + } + }, "parameterOrder": [], "parameters": { "onBehalfOfContentOwner": { @@ -2338,7 +2356,8 @@ "https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.force-ssl", "https://www.googleapis.com/auth/youtubepartner" - ] + ], + "supportsMediaUpload": true } } }, @@ -4018,7 +4037,7 @@ } } }, - "revision": "20240225", + "revision": "20240303", "rootUrl": "https://youtube.googleapis.com/", "schemas": { "AbuseReport": { diff --git a/youtube/v3/youtube-gen.go b/youtube/v3/youtube-gen.go index 0e966c96128..413649a0172 100644 --- a/youtube/v3/youtube-gen.go +++ b/youtube/v3/youtube-gen.go @@ -20017,6 +20017,7 @@ type PlaylistImagesUpdateCall struct { s *Service playlistimage *PlaylistImage urlParams_ gensupport.URLParams + mediaInfo_ *gensupport.MediaInfo ctx_ context.Context header_ http.Header } @@ -20052,6 +20053,43 @@ func (c *PlaylistImagesUpdateCall) Part(part ...string) *PlaylistImagesUpdateCal return c } +// Media specifies the media to upload in one or more chunks. The chunk +// size may be controlled by supplying a MediaOption generated by +// googleapi.ChunkSize. The chunk size defaults to +// googleapi.DefaultUploadChunkSize.The Content-Type header used in the +// upload request will be determined by sniffing the contents of r, +// unless a MediaOption generated by googleapi.ContentType is +// supplied. +// At most one of Media and ResumableMedia may be set. +func (c *PlaylistImagesUpdateCall) Media(r io.Reader, options ...googleapi.MediaOption) *PlaylistImagesUpdateCall { + c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) + return c +} + +// ResumableMedia specifies the media to upload in chunks and can be +// canceled with ctx. +// +// Deprecated: use Media instead. +// +// At most one of Media and ResumableMedia may be set. mediaType +// identifies the MIME media type of the upload, such as "image/png". If +// mediaType is "", it will be auto-detected. The provided ctx will +// supersede any context previously provided to the Context method. +func (c *PlaylistImagesUpdateCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *PlaylistImagesUpdateCall { + c.ctx_ = ctx + c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) + return c +} + +// ProgressUpdater provides a callback function that will be called +// after every chunk. It should be a low-latency function in order to +// not slow down the upload operation. This should only be called when +// using ResumableMedia (as opposed to Media). +func (c *PlaylistImagesUpdateCall) ProgressUpdater(pu googleapi.ProgressUpdater) *PlaylistImagesUpdateCall { + c.mediaInfo_.SetProgressUpdater(pu) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -20063,6 +20101,8 @@ func (c *PlaylistImagesUpdateCall) Fields(s ...googleapi.Field) *PlaylistImagesU // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. +// This context will supersede any context previously provided to the +// ResumableMedia method. func (c *PlaylistImagesUpdateCall) Context(ctx context.Context) *PlaylistImagesUpdateCall { c.ctx_ = ctx return c @@ -20093,12 +20133,23 @@ func (c *PlaylistImagesUpdateCall) doRequest(alt string) (*http.Response, error) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "youtube/v3/playlistImages") + if c.mediaInfo_ != nil { + urls = googleapi.ResolveRelative(c.s.BasePath, "/upload/youtube/v3/playlistImages") + c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType()) + } + if body == nil { + body = new(bytes.Buffer) + reqHeaders.Set("Content-Type", "application/json") + } + body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body) + defer cleanup() urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PUT", urls, body) if err != nil { return nil, err } req.Header = reqHeaders + req.GetBody = getBody return gensupport.SendRequest(c.ctx_, c.s.client, req) } @@ -20128,6 +20179,23 @@ func (c *PlaylistImagesUpdateCall) Do(opts ...googleapi.CallOption) (*PlaylistIm if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } + rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location")) + if rx != nil { + rx.Client = c.s.client + rx.UserAgent = c.s.userAgent() + ctx := c.ctx_ + if ctx == nil { + ctx = context.TODO() + } + res, err = rx.Upload(ctx) + if err != nil { + return nil, err + } + defer res.Body.Close() + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + } ret := &PlaylistImage{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, @@ -20144,6 +20212,24 @@ func (c *PlaylistImagesUpdateCall) Do(opts ...googleapi.CallOption) (*PlaylistIm // "flatPath": "youtube/v3/playlistImages", // "httpMethod": "PUT", // "id": "youtube.playlistImages.update", + // "mediaUpload": { + // "accept": [ + // "image/jpeg", + // "image/png", + // "application/octet-stream" + // ], + // "maxSize": "2097152", + // "protocols": { + // "resumable": { + // "multipart": true, + // "path": "/resumable/upload/youtube/v3/playlistImages" + // }, + // "simple": { + // "multipart": true, + // "path": "/upload/youtube/v3/playlistImages" + // } + // } + // }, // "parameterOrder": [], // "parameters": { // "onBehalfOfContentOwner": { @@ -20169,7 +20255,8 @@ func (c *PlaylistImagesUpdateCall) Do(opts ...googleapi.CallOption) (*PlaylistIm // "https://www.googleapis.com/auth/youtube", // "https://www.googleapis.com/auth/youtube.force-ssl", // "https://www.googleapis.com/auth/youtubepartner" - // ] + // ], + // "supportsMediaUpload": true // } }