diff --git a/accesscontextmanager/v1/accesscontextmanager-api.json b/accesscontextmanager/v1/accesscontextmanager-api.json index 55f5fa9f6c4..91ff9ddbf39 100644 --- a/accesscontextmanager/v1/accesscontextmanager-api.json +++ b/accesscontextmanager/v1/accesscontextmanager-api.json @@ -1235,7 +1235,7 @@ } } }, - "revision": "20221213", + "revision": "20230109", "rootUrl": "https://accesscontextmanager.googleapis.com/", "schemas": { "AccessContextManagerOperationMetadata": { @@ -1836,7 +1836,7 @@ "type": "string" }, "resource": { - "description": "A Google Cloud resource that is allowed to ingress the perimeter. Requests from these resources will be allowed to access perimeter data. Currently only projects are allowed. Format: `projects/{project_number}` The project may be in any Google Cloud organization, not just the organization that the perimeter is defined in. `*` is not allowed, the case of allowing all Google Cloud resources only is not supported.", + "description": "A Google Cloud resource that is allowed to ingress the perimeter. Requests from these resources will be allowed to access perimeter data. Currently only projects and VPCs are allowed. Project format: `projects/{project_number}` VPC format: `//compute.googleapis.com/projects/{PROJECT_ID}/global/networks/{NAME}`. The project may be in any Google Cloud organization, not just the organization that the perimeter is defined in. `*` is not allowed, the case of allowing all Google Cloud resources only is not supported.", "type": "string" } }, @@ -2222,7 +2222,7 @@ "type": "array" }, "resources": { - "description": "A list of Google Cloud resources that are inside of the service perimeter. Currently only projects are allowed. Format: `projects/{project_number}`", + "description": "A list of Google Cloud resources that are inside of the service perimeter. Currently only projects and VPCs are allowed. Project format: `projects/{project_number}` VPC format: `//compute.googleapis.com/projects/{PROJECT_ID}/global/networks/{NAME}`.", "items": { "type": "string" }, diff --git a/accesscontextmanager/v1/accesscontextmanager-gen.go b/accesscontextmanager/v1/accesscontextmanager-gen.go index 84b463ac75e..def5d66b14c 100644 --- a/accesscontextmanager/v1/accesscontextmanager-gen.go +++ b/accesscontextmanager/v1/accesscontextmanager-gen.go @@ -1391,11 +1391,13 @@ type IngressSource struct { // Resource: A Google Cloud resource that is allowed to ingress the // perimeter. Requests from these resources will be allowed to access - // perimeter data. Currently only projects are allowed. Format: - // `projects/{project_number}` The project may be in any Google Cloud - // organization, not just the organization that the perimeter is defined - // in. `*` is not allowed, the case of allowing all Google Cloud - // resources only is not supported. + // perimeter data. Currently only projects and VPCs are allowed. Project + // format: `projects/{project_number}` VPC format: + // `//compute.googleapis.com/projects/{PROJECT_ID}/global/networks/{NAME} + // `. The project may be in any Google Cloud organization, not just the + // organization that the perimeter is defined in. `*` is not allowed, + // the case of allowing all Google Cloud resources only is not + // supported. Resource string `json:"resource,omitempty"` // ForceSendFields is a list of field names (e.g. "AccessLevel") to @@ -2204,8 +2206,10 @@ type ServicePerimeterConfig struct { IngressPolicies []*IngressPolicy `json:"ingressPolicies,omitempty"` // Resources: A list of Google Cloud resources that are inside of the - // service perimeter. Currently only projects are allowed. Format: - // `projects/{project_number}` + // service perimeter. Currently only projects and VPCs are allowed. + // Project format: `projects/{project_number}` VPC format: + // `//compute.googleapis.com/projects/{PROJECT_ID}/global/networks/{NAME} + // `. Resources []string `json:"resources,omitempty"` // RestrictedServices: Google Cloud services that are subject to the diff --git a/bigquery/v2/bigquery-api.json b/bigquery/v2/bigquery-api.json index 3b57ce9f3c5..a38e57922a6 100644 --- a/bigquery/v2/bigquery-api.json +++ b/bigquery/v2/bigquery-api.json @@ -1710,7 +1710,7 @@ } } }, - "revision": "20221209", + "revision": "20221217", "rootUrl": "https://bigquery.googleapis.com/", "schemas": { "AggregateClassificationMetrics": { @@ -2178,12 +2178,12 @@ "id": "BiEngineReason", "properties": { "code": { - "default": "$(reason.code)", + "default": "", "description": "[Output-only] High-level BI Engine reason for partial or disabled acceleration.", "type": "string" }, "message": { - "default": "$(reason.message)", + "default": "", "description": "[Output-only] Free form human-readable reason for partial or disabled acceleration.", "type": "string" } @@ -2194,7 +2194,7 @@ "id": "BiEngineStatistics", "properties": { "biEngineMode": { - "default": "$(stats.bi_engine_mode)", + "default": "", "description": "[Output-only] Specifies which mode of BI Engine acceleration was performed (if any).", "type": "string" }, diff --git a/cloudtasks/v2beta2/cloudtasks-api.json b/cloudtasks/v2beta2/cloudtasks-api.json index 5f8852f1a46..0644f723fa8 100644 --- a/cloudtasks/v2beta2/cloudtasks-api.json +++ b/cloudtasks/v2beta2/cloudtasks-api.json @@ -876,7 +876,7 @@ } } }, - "revision": "20221025", + "revision": "20230105", "rootUrl": "https://cloudtasks.googleapis.com/", "schemas": { "AcknowledgeTaskRequest": { @@ -1474,6 +1474,17 @@ }, "type": "object" }, + "PathOverride": { + "description": "PathOverride. Path message defines path override for HTTP targets.", + "id": "PathOverride", + "properties": { + "path": { + "description": "The URI path (e.g., a/b/c). Default is Empty string.", + "type": "string" + } + }, + "type": "object" + }, "PauseQueueRequest": { "description": "Request message for PauseQueue.", "id": "PauseQueueRequest", @@ -1532,6 +1543,17 @@ "properties": {}, "type": "object" }, + "QueryOverride": { + "description": "QueryOverride. Query message defines query override for HTTP targets.", + "id": "QueryOverride", + "properties": { + "queryParams": { + "description": "The query parameters (e.g., qparam1=123\u0026qparam2=456). Default is Empty string.", + "type": "string" + } + }, + "type": "object" + }, "Queue": { "description": "A queue is a container of related tasks. Queues are configured to manage how those tasks are dispatched. Configurable properties include rate limits, retry options, target types, and others.", "id": "Queue", @@ -1899,24 +1921,24 @@ "id": "UriOverride", "properties": { "host": { - "description": "Host override. When specified, the host part of url will be overridden. For example, if the original Uri is \"https://www.google.com\", and host is set to \"example.net\", the overridden Uri will be \"https://example.net\".", + "description": "Host override. When specified, will replace the host part of the task URL. For example, if the task URL is \"https://www.google.com\", and host value is set to \"example.net\", the overridden URI will be changed to \"https://example.net\". Host value cannot be an empty string.", "type": "string" }, - "path": { - "description": "Uri path. Will be used as the path for the current Uri (replaces any existing path of the task url).", - "type": "string" + "pathOverride": { + "$ref": "PathOverride", + "description": "URI path. When specified, will replace the existing path of the task URL. Setting the path value to an empty string clears the URI path segment." }, "port": { - "description": "Port override. When specified, the port part of Uri will be replaced by the provided value. For instance, for a Uri http://www.google.com/foo and port=123 the overridden Uri becomes http://www.google.com:123/foo.", + "description": "Port override. When specified, will replace the port part of the task URI. For instance, for a URI http://www.google.com/foo and port=123, the overridden URI becomes http://www.google.com:123/foo. Note that the port value must be a positive integer. Setting the port to 0 (Zero) clears the URI port.", "format": "int64", "type": "string" }, - "query": { - "description": "Uri Query. Will replace the query part of the task uri.", - "type": "string" + "queryOverride": { + "$ref": "QueryOverride", + "description": "URI Query. When specified, will replace the query part of the task URI. Setting the query value to an empty string clears the URI query segment." }, "scheme": { - "description": "Scheme override. When specified, the Uri scheme is replaced by the provided value.", + "description": "Scheme override. When specified, the task URI scheme is replaced by the provided value (HTTP or HTTPS).", "enum": [ "SCHEME_UNSPECIFIED", "HTTP", @@ -1930,7 +1952,7 @@ "type": "string" }, "uriOverrideEnforceMode": { - "description": "Uri Override Enforce Mode Determines the Target UriOverride mode.", + "description": "URI Override Enforce Mode When specified, determines the Target UriOverride mode. If not specified, it defaults to ALWAYS.", "enum": [ "URI_OVERRIDE_ENFORCE_MODE_UNSPECIFIED", "IF_NOT_EXISTS", diff --git a/cloudtasks/v2beta2/cloudtasks-gen.go b/cloudtasks/v2beta2/cloudtasks-gen.go index df3b6b40589..e461e39f377 100644 --- a/cloudtasks/v2beta2/cloudtasks-gen.go +++ b/cloudtasks/v2beta2/cloudtasks-gen.go @@ -1605,6 +1605,35 @@ func (s *OidcToken) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// PathOverride: PathOverride. Path message defines path override for +// HTTP targets. +type PathOverride struct { + // Path: The URI path (e.g., a/b/c). Default is Empty string. + Path string `json:"path,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Path") 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. "Path") 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 *PathOverride) MarshalJSON() ([]byte, error) { + type NoMethod PathOverride + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // PauseQueueRequest: Request message for PauseQueue. type PauseQueueRequest struct { } @@ -1767,6 +1796,36 @@ type PullTarget struct { type PurgeQueueRequest struct { } +// QueryOverride: QueryOverride. Query message defines query override +// for HTTP targets. +type QueryOverride struct { + // QueryParams: The query parameters (e.g., qparam1=123&qparam2=456). + // Default is Empty string. + QueryParams string `json:"queryParams,omitempty"` + + // ForceSendFields is a list of field names (e.g. "QueryParams") 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. "QueryParams") 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 *QueryOverride) MarshalJSON() ([]byte, error) { + type NoMethod QueryOverride + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Queue: A queue is a container of related tasks. Queues are configured // to manage how those tasks are dispatched. Configurable properties // include rate limits, retry options, target types, and others. @@ -2546,27 +2605,32 @@ func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { // the queue will be partially or fully overridden depending on the // configured values. type UriOverride struct { - // Host: Host override. When specified, the host part of url will be - // overridden. For example, if the original Uri is - // "https://www.google.com", and host is set to "example.net", the - // overridden Uri will be "https://example.net". + // Host: Host override. When specified, will replace the host part of + // the task URL. For example, if the task URL is + // "https://www.google.com", and host value is set to "example.net", the + // overridden URI will be changed to "https://example.net". Host value + // cannot be an empty string. Host string `json:"host,omitempty"` - // Path: Uri path. Will be used as the path for the current Uri - // (replaces any existing path of the task url). - Path string `json:"path,omitempty"` + // PathOverride: URI path. When specified, will replace the existing + // path of the task URL. Setting the path value to an empty string + // clears the URI path segment. + PathOverride *PathOverride `json:"pathOverride,omitempty"` - // Port: Port override. When specified, the port part of Uri will be - // replaced by the provided value. For instance, for a Uri - // http://www.google.com/foo and port=123 the overridden Uri becomes - // http://www.google.com:123/foo. + // Port: Port override. When specified, will replace the port part of + // the task URI. For instance, for a URI http://www.google.com/foo and + // port=123, the overridden URI becomes http://www.google.com:123/foo. + // Note that the port value must be a positive integer. Setting the port + // to 0 (Zero) clears the URI port. Port int64 `json:"port,omitempty,string"` - // Query: Uri Query. Will replace the query part of the task uri. - Query string `json:"query,omitempty"` + // QueryOverride: URI Query. When specified, will replace the query part + // of the task URI. Setting the query value to an empty string clears + // the URI query segment. + QueryOverride *QueryOverride `json:"queryOverride,omitempty"` - // Scheme: Scheme override. When specified, the Uri scheme is replaced - // by the provided value. + // Scheme: Scheme override. When specified, the task URI scheme is + // replaced by the provided value (HTTP or HTTPS). // // Possible values: // "SCHEME_UNSPECIFIED" - Scheme unspecified. Defaults to HTTPS. @@ -2576,8 +2640,9 @@ type UriOverride struct { // will change to https://www.google.ca. Scheme string `json:"scheme,omitempty"` - // UriOverrideEnforceMode: Uri Override Enforce Mode Determines the - // Target UriOverride mode. + // UriOverrideEnforceMode: URI Override Enforce Mode When specified, + // determines the Target UriOverride mode. If not specified, it defaults + // to ALWAYS. // // Possible values: // "URI_OVERRIDE_ENFORCE_MODE_UNSPECIFIED" - OverrideMode Unspecified. diff --git a/cloudtasks/v2beta3/cloudtasks-api.json b/cloudtasks/v2beta3/cloudtasks-api.json index aac032fc347..c86e6aad5be 100644 --- a/cloudtasks/v2beta3/cloudtasks-api.json +++ b/cloudtasks/v2beta3/cloudtasks-api.json @@ -516,6 +516,41 @@ "resources": { "tasks": { "methods": { + "buffer": { + "description": "Creates and buffers a new task without the need to explicitly define a Task message. The queue must have HTTP target. To create the task with a custom ID, use the following format and set TASK_ID to your desired ID: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer To create the task with an automatically generated ID, use the following format: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer. Note: This feature is in its experimental stage. You must request access to the API through the [Cloud Tasks BufferTask Experiment Signup form](https://forms.gle/X8Zr5hiXH5tTGFqh8).", + "flatPath": "v2beta3/projects/{projectsId}/locations/{locationsId}/queues/{queuesId}/tasks/{taskId}:buffer", + "httpMethod": "POST", + "id": "cloudtasks.projects.locations.queues.tasks.buffer", + "parameterOrder": [ + "queue", + "taskId" + ], + "parameters": { + "queue": { + "description": "Required. The parent queue name. For example: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/queues/[^/]+$", + "required": true, + "type": "string" + }, + "taskId": { + "description": "Optional. Task ID for the task being created. If not provided, a random task ID is assigned to the task.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "v2beta3/{+queue}/tasks/{taskId}:buffer", + "request": { + "$ref": "BufferTaskRequest" + }, + "response": { + "$ref": "BufferTaskResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "create": { "description": "Creates a task and adds it to a queue. Tasks cannot be updated after creation; there is no UpdateTask command. * The maximum task size is 100KB.", "flatPath": "v2beta3/projects/{projectsId}/locations/{locationsId}/queues/{queuesId}/tasks", @@ -697,7 +732,7 @@ } } }, - "revision": "20220825", + "revision": "20230105", "rootUrl": "https://cloudtasks.googleapis.com/", "schemas": { "AppEngineHttpQueue": { @@ -833,6 +868,28 @@ }, "type": "object" }, + "BufferTaskRequest": { + "description": "Request message for BufferTask.", + "id": "BufferTaskRequest", + "properties": { + "body": { + "$ref": "HttpBody", + "description": "Optional. Body of the HTTP request. The body can take any generic value. The value is written to the HttpRequest of the [Task]." + } + }, + "type": "object" + }, + "BufferTaskResponse": { + "description": "Response message for BufferTask.", + "id": "BufferTaskResponse", + "properties": { + "task": { + "$ref": "Task", + "description": "The created task." + } + }, + "type": "object" + }, "CreateTaskRequest": { "description": "Request message for CreateTask.", "id": "CreateTaskRequest", @@ -910,6 +967,59 @@ }, "type": "object" }, + "Header": { + "description": "Defines a header message. A header can have a key and a value.", + "id": "Header", + "properties": { + "key": { + "description": "The Key of the header.", + "type": "string" + }, + "value": { + "description": "The Value of the header.", + "type": "string" + } + }, + "type": "object" + }, + "HeaderOverride": { + "description": "Wraps the Header object.", + "id": "HeaderOverride", + "properties": { + "header": { + "$ref": "Header", + "description": "header embodying a key and a value." + } + }, + "type": "object" + }, + "HttpBody": { + "description": "Message that represents an arbitrary HTTP body. It should only be used for payload formats that can't be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.", + "id": "HttpBody", + "properties": { + "contentType": { + "description": "The HTTP Content-Type header value specifying the content type of the body.", + "type": "string" + }, + "data": { + "description": "The HTTP request/response body as raw binary.", + "format": "byte", + "type": "string" + }, + "extensions": { + "description": "Application specific response metadata. Must be set in the first response for streaming APIs.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, "HttpRequest": { "description": "HTTP request. The task will be pushed to the worker as an HTTP request. If the worker or the redirected worker acknowledges the task by returning a successful HTTP response code ([`200` - `299`]), the task will be removed from the queue. If any other HTTP response code is returned or no response is received, the task will be retried according to the following: * User-specified throttling: retry configuration, rate limits, and the queue's state. * System throttling: To prevent the worker from overloading, Cloud Tasks may temporarily reduce the queue's effective rate. User-specified settings will not be changed. System throttling happens because: * Cloud Tasks backs off on all errors. Normally the backoff specified in rate limits will be used. But if the worker returns `429` (Too Many Requests), `503` (Service Unavailable), or the rate of errors is high, Cloud Tasks will use a higher backoff rate. The retry specified in the `Retry-After` HTTP response header is considered. * To prevent traffic spikes and to smooth sudden increases in traffic, dispatches ramp up slowly when the queue is newly created or idle and if large numbers of tasks suddenly become available to dispatch (due to spikes in create task rates, the queue being unpaused, or many tasks that are scheduled at the same time).", "id": "HttpRequest", @@ -965,6 +1075,48 @@ }, "type": "object" }, + "HttpTarget": { + "description": "HTTP target. When specified as a Queue, all the tasks with [HttpRequest] will be overridden according to the target.", + "id": "HttpTarget", + "properties": { + "headerOverrides": { + "description": "HTTP target headers. This map contains the header field names and values. Headers will be set when running the CreateTask and/or BufferTask. These headers represent a subset of the headers that will be configured for the task's HTTP request. Some HTTP request headers will be ignored or replaced. A partial list of headers that will be ignored or replaced is: * Several predefined headers, prefixed with \"X-Google-Cloud-Tasks-\", can be used to define properties of the task. * Host: This will be computed by Cloud Tasks and derived from HttpRequest.url. * Content-Length: This will be computed by Cloud Tasks. `Content-Type` won't be set by Cloud Tasks. You can explicitly set `Content-Type` to a media type when the task is created. For example,`Content-Type` can be set to `\"application/octet-stream\"` or `\"application/json\"`. The default value is set to \"application/json\"`. * User-Agent: This will be set to `\"Google-Cloud-Tasks\"`. Headers which can have multiple values (according to RFC2616) can be specified using comma-separated values. The size of the headers must be less than 80KB. Queue-level headers to override headers of all the tasks in the queue.", + "items": { + "$ref": "HeaderOverride" + }, + "type": "array" + }, + "httpMethod": { + "description": "The HTTP method to use for the request. When specified, it will override HttpRequest for the task. Note that if the value is set to HttpMethod the HttpRequest of the task will be ignored at execution time.", + "enum": [ + "HTTP_METHOD_UNSPECIFIED", + "POST", + "GET", + "HEAD", + "PUT", + "DELETE", + "PATCH", + "OPTIONS" + ], + "enumDescriptions": [ + "HTTP method unspecified", + "HTTP POST", + "HTTP GET", + "HTTP HEAD", + "HTTP PUT", + "HTTP DELETE", + "HTTP PATCH", + "HTTP OPTIONS" + ], + "type": "string" + }, + "uriOverride": { + "$ref": "UriOverride", + "description": "URI override. When specified, modifies the execution URI for all the tasks in the queue." + } + }, + "type": "object" + }, "ListLocationsResponse": { "description": "The response message for Locations.ListLocations.", "id": "ListLocationsResponse", @@ -1083,6 +1235,17 @@ }, "type": "object" }, + "PathOverride": { + "description": "PathOverride. Path message defines path override for HTTP targets.", + "id": "PathOverride", + "properties": { + "path": { + "description": "The URI path (e.g., a/b/c). Default is Empty string.", + "type": "string" + } + }, + "type": "object" + }, "PauseQueueRequest": { "description": "Request message for PauseQueue.", "id": "PauseQueueRequest", @@ -1135,6 +1298,17 @@ "properties": {}, "type": "object" }, + "QueryOverride": { + "description": "QueryOverride. Query message defines query override for HTTP targets.", + "id": "QueryOverride", + "properties": { + "queryParams": { + "description": "The query parameters (e.g., qparam1=123\u0026qparam2=456). Default is Empty string.", + "type": "string" + } + }, + "type": "object" + }, "Queue": { "description": "A queue is a container of related tasks. Queues are configured to manage how those tasks are dispatched. Configurable properties include rate limits, retry options, queue types, and others.", "id": "Queue", @@ -1143,6 +1317,10 @@ "$ref": "AppEngineHttpQueue", "description": "AppEngineHttpQueue settings apply only to App Engine tasks in this queue. Http tasks are not affected by this proto." }, + "httpTarget": { + "$ref": "HttpTarget", + "description": "Modifies HTTP target for HTTP tasks." + }, "name": { "description": "Caller-specified and required in CreateQueue, after which it becomes output only. The queue name. The queue name must have the following format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see [Identifying projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) * `LOCATION_ID` is the canonical ID for the queue's location. The list of available locations can be obtained by calling ListLocations. For more information, see https://cloud.google.com/about/locations/. * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or hyphens (-). The maximum length is 100 characters.", "type": "string" @@ -1477,6 +1655,58 @@ } }, "type": "object" + }, + "UriOverride": { + "description": "URI Override. When specified, all the HTTP tasks inside the queue will be partially or fully overridden depending on the configured values.", + "id": "UriOverride", + "properties": { + "host": { + "description": "Host override. When specified, will replace the host part of the task URL. For example, if the task URL is \"https://www.google.com\", and host value is set to \"example.net\", the overridden URI will be changed to \"https://example.net\". Host value cannot be an empty string.", + "type": "string" + }, + "pathOverride": { + "$ref": "PathOverride", + "description": "URI path. When specified, will replace the existing path of the task URL. Setting the path value to an empty string clears the URI path segment." + }, + "port": { + "description": "Port override. When specified, will replace the port part of the task URI. For instance, for a URI http://www.google.com/foo and port=123, the overridden URI becomes http://www.google.com:123/foo. Note that the port value must be a positive integer. Setting the port to 0 (Zero) clears the URI port.", + "format": "int64", + "type": "string" + }, + "queryOverride": { + "$ref": "QueryOverride", + "description": "URI Query. When specified, will replace the query part of the task URI. Setting the query value to an empty string clears the URI query segment." + }, + "scheme": { + "description": "Scheme override. When specified, the task URI scheme is replaced by the provided value (HTTP or HTTPS).", + "enum": [ + "SCHEME_UNSPECIFIED", + "HTTP", + "HTTPS" + ], + "enumDescriptions": [ + "Scheme unspecified. Defaults to HTTPS.", + "Convert the scheme to HTTP, e.g., https://www.google.ca will change to http://www.google.ca.", + "Convert the scheme to HTTPS, e.g., http://www.google.ca will change to https://www.google.ca." + ], + "type": "string" + }, + "uriOverrideEnforceMode": { + "description": "URI Override Enforce Mode When specified, determines the Target UriOverride mode. If not specified, it defaults to ALWAYS.", + "enum": [ + "URI_OVERRIDE_ENFORCE_MODE_UNSPECIFIED", + "IF_NOT_EXISTS", + "ALWAYS" + ], + "enumDescriptions": [ + "OverrideMode Unspecified. Defaults to ALWAYS.", + "In the IF_NOT_EXISTS mode, queue-level configuration is only applied where task-level configuration does not exist.", + "In the ALWAYS mode, queue-level configuration overrides all task-level configuration" + ], + "type": "string" + } + }, + "type": "object" } }, "servicePath": "", diff --git a/cloudtasks/v2beta3/cloudtasks-gen.go b/cloudtasks/v2beta3/cloudtasks-gen.go index bed36e1d911..6b9aef2e2e4 100644 --- a/cloudtasks/v2beta3/cloudtasks-gen.go +++ b/cloudtasks/v2beta3/cloudtasks-gen.go @@ -551,6 +551,67 @@ func (s *Binding) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// BufferTaskRequest: Request message for BufferTask. +type BufferTaskRequest struct { + // Body: Optional. Body of the HTTP request. The body can take any + // generic value. The value is written to the HttpRequest of the [Task]. + Body *HttpBody `json:"body,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Body") 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. "Body") 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 *BufferTaskRequest) MarshalJSON() ([]byte, error) { + type NoMethod BufferTaskRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// BufferTaskResponse: Response message for BufferTask. +type BufferTaskResponse struct { + // Task: The created task. + Task *Task `json:"task,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Task") 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. "Task") 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 *BufferTaskResponse) MarshalJSON() ([]byte, error) { + type NoMethod BufferTaskResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CreateTaskRequest: Request message for CreateTask. type CreateTaskRequest struct { // ResponseView: The response_view specifies which subset of the Task @@ -764,6 +825,119 @@ func (s *GetPolicyOptions) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Header: Defines a header message. A header can have a key and a +// value. +type Header struct { + // Key: The Key of the header. + Key string `json:"key,omitempty"` + + // Value: The Value of the header. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Key") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Key") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Header) MarshalJSON() ([]byte, error) { + type NoMethod Header + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// HeaderOverride: Wraps the Header object. +type HeaderOverride struct { + // Header: header embodying a key and a value. + Header *Header `json:"header,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Header") 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. "Header") 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 *HeaderOverride) MarshalJSON() ([]byte, error) { + type NoMethod HeaderOverride + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// HttpBody: Message that represents an arbitrary HTTP body. It should +// only be used for payload formats that can't be represented as JSON, +// such as raw binary or an HTML page. This message can be used both in +// streaming and non-streaming API methods in the request as well as the +// response. It can be used as a top-level request field, which is +// convenient if one wants to extract parameters from either the URL or +// HTTP template into the request fields and also want access to the raw +// HTTP body. Example: message GetResourceRequest { // A unique request +// id. string request_id = 1; // The raw HTTP body is bound to this +// field. google.api.HttpBody http_body = 2; } service ResourceService { +// rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); +// rpc UpdateResource(google.api.HttpBody) returns +// (google.protobuf.Empty); } Example with streaming methods: service +// CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns +// (stream google.api.HttpBody); rpc UpdateCalendar(stream +// google.api.HttpBody) returns (stream google.api.HttpBody); } Use of +// this type only changes how the request and response bodies are +// handled, all other features will continue to work unchanged. +type HttpBody struct { + // ContentType: The HTTP Content-Type header value specifying the + // content type of the body. + ContentType string `json:"contentType,omitempty"` + + // Data: The HTTP request/response body as raw binary. + Data string `json:"data,omitempty"` + + // Extensions: Application specific response metadata. Must be set in + // the first response for streaming APIs. + Extensions []googleapi.RawMessage `json:"extensions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ContentType") 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. "ContentType") 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 *HttpBody) MarshalJSON() ([]byte, error) { + type NoMethod HttpBody + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // HttpRequest: HTTP request. The task will be pushed to the worker as // an HTTP request. If the worker or the redirected worker acknowledges // the task by returning a successful HTTP response code ([`200` - @@ -868,6 +1042,73 @@ func (s *HttpRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// HttpTarget: HTTP target. When specified as a Queue, all the tasks +// with [HttpRequest] will be overridden according to the target. +type HttpTarget struct { + // HeaderOverrides: HTTP target headers. This map contains the header + // field names and values. Headers will be set when running the + // CreateTask and/or BufferTask. These headers represent a subset of the + // headers that will be configured for the task's HTTP request. Some + // HTTP request headers will be ignored or replaced. A partial list of + // headers that will be ignored or replaced is: * Several predefined + // headers, prefixed with "X-Google-Cloud-Tasks-", can be used to define + // properties of the task. * Host: This will be computed by Cloud Tasks + // and derived from HttpRequest.url. * Content-Length: This will be + // computed by Cloud Tasks. `Content-Type` won't be set by Cloud Tasks. + // You can explicitly set `Content-Type` to a media type when the task + // is created. For example,`Content-Type` can be set to + // "application/octet-stream" or "application/json". The default + // value is set to "application/json". * User-Agent: This will be set + // to "Google-Cloud-Tasks". Headers which can have multiple values + // (according to RFC2616) can be specified using comma-separated values. + // The size of the headers must be less than 80KB. Queue-level headers + // to override headers of all the tasks in the queue. + HeaderOverrides []*HeaderOverride `json:"headerOverrides,omitempty"` + + // HttpMethod: The HTTP method to use for the request. When specified, + // it will override HttpRequest for the task. Note that if the value is + // set to HttpMethod the HttpRequest of the task will be ignored at + // execution time. + // + // Possible values: + // "HTTP_METHOD_UNSPECIFIED" - HTTP method unspecified + // "POST" - HTTP POST + // "GET" - HTTP GET + // "HEAD" - HTTP HEAD + // "PUT" - HTTP PUT + // "DELETE" - HTTP DELETE + // "PATCH" - HTTP PATCH + // "OPTIONS" - HTTP OPTIONS + HttpMethod string `json:"httpMethod,omitempty"` + + // UriOverride: URI override. When specified, modifies the execution URI + // for all the tasks in the queue. + UriOverride *UriOverride `json:"uriOverride,omitempty"` + + // ForceSendFields is a list of field names (e.g. "HeaderOverrides") 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. "HeaderOverrides") 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 *HttpTarget) MarshalJSON() ([]byte, error) { + type NoMethod HttpTarget + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListLocationsResponse: The response message for // Locations.ListLocations. type ListLocationsResponse struct { @@ -1113,6 +1354,35 @@ func (s *OidcToken) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// PathOverride: PathOverride. Path message defines path override for +// HTTP targets. +type PathOverride struct { + // Path: The URI path (e.g., a/b/c). Default is Empty string. + Path string `json:"path,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Path") 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. "Path") 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 *PathOverride) MarshalJSON() ([]byte, error) { + type NoMethod PathOverride + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // PauseQueueRequest: Request message for PauseQueue. type PauseQueueRequest struct { } @@ -1268,6 +1538,36 @@ func (s *PullMessage) MarshalJSON() ([]byte, error) { type PurgeQueueRequest struct { } +// QueryOverride: QueryOverride. Query message defines query override +// for HTTP targets. +type QueryOverride struct { + // QueryParams: The query parameters (e.g., qparam1=123&qparam2=456). + // Default is Empty string. + QueryParams string `json:"queryParams,omitempty"` + + // ForceSendFields is a list of field names (e.g. "QueryParams") 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. "QueryParams") 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 *QueryOverride) MarshalJSON() ([]byte, error) { + type NoMethod QueryOverride + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Queue: A queue is a container of related tasks. Queues are configured // to manage how those tasks are dispatched. Configurable properties // include rate limits, retry options, queue types, and others. @@ -1277,6 +1577,9 @@ type Queue struct { // proto. AppEngineHttpQueue *AppEngineHttpQueue `json:"appEngineHttpQueue,omitempty"` + // HttpTarget: Modifies HTTP target for HTTP tasks. + HttpTarget *HttpTarget `json:"httpTarget,omitempty"` + // Name: Caller-specified and required in CreateQueue, after which it // becomes output only. The queue name. The queue name must have the // following format: @@ -2026,6 +2329,82 @@ func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// UriOverride: URI Override. When specified, all the HTTP tasks inside +// the queue will be partially or fully overridden depending on the +// configured values. +type UriOverride struct { + // Host: Host override. When specified, will replace the host part of + // the task URL. For example, if the task URL is + // "https://www.google.com", and host value is set to "example.net", the + // overridden URI will be changed to "https://example.net". Host value + // cannot be an empty string. + Host string `json:"host,omitempty"` + + // PathOverride: URI path. When specified, will replace the existing + // path of the task URL. Setting the path value to an empty string + // clears the URI path segment. + PathOverride *PathOverride `json:"pathOverride,omitempty"` + + // Port: Port override. When specified, will replace the port part of + // the task URI. For instance, for a URI http://www.google.com/foo and + // port=123, the overridden URI becomes http://www.google.com:123/foo. + // Note that the port value must be a positive integer. Setting the port + // to 0 (Zero) clears the URI port. + Port int64 `json:"port,omitempty,string"` + + // QueryOverride: URI Query. When specified, will replace the query part + // of the task URI. Setting the query value to an empty string clears + // the URI query segment. + QueryOverride *QueryOverride `json:"queryOverride,omitempty"` + + // Scheme: Scheme override. When specified, the task URI scheme is + // replaced by the provided value (HTTP or HTTPS). + // + // Possible values: + // "SCHEME_UNSPECIFIED" - Scheme unspecified. Defaults to HTTPS. + // "HTTP" - Convert the scheme to HTTP, e.g., https://www.google.ca + // will change to http://www.google.ca. + // "HTTPS" - Convert the scheme to HTTPS, e.g., http://www.google.ca + // will change to https://www.google.ca. + Scheme string `json:"scheme,omitempty"` + + // UriOverrideEnforceMode: URI Override Enforce Mode When specified, + // determines the Target UriOverride mode. If not specified, it defaults + // to ALWAYS. + // + // Possible values: + // "URI_OVERRIDE_ENFORCE_MODE_UNSPECIFIED" - OverrideMode Unspecified. + // Defaults to ALWAYS. + // "IF_NOT_EXISTS" - In the IF_NOT_EXISTS mode, queue-level + // configuration is only applied where task-level configuration does not + // exist. + // "ALWAYS" - In the ALWAYS mode, queue-level configuration overrides + // all task-level configuration + UriOverrideEnforceMode string `json:"uriOverrideEnforceMode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Host") 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. "Host") 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 *UriOverride) MarshalJSON() ([]byte, error) { + type NoMethod UriOverride + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // method id "cloudtasks.projects.locations.get": type ProjectsLocationsGetCall struct { @@ -4138,6 +4517,172 @@ func (c *ProjectsLocationsQueuesTestIamPermissionsCall) Do(opts ...googleapi.Cal } +// method id "cloudtasks.projects.locations.queues.tasks.buffer": + +type ProjectsLocationsQueuesTasksBufferCall struct { + s *Service + queue string + taskId string + buffertaskrequest *BufferTaskRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Buffer: Creates and buffers a new task without the need to explicitly +// define a Task message. The queue must have HTTP target. To create the +// task with a custom ID, use the following format and set TASK_ID to +// your desired ID: +// projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_I +// D:buffer To create the task with an automatically generated ID, use +// the following format: +// projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer +// . Note: This feature is in its experimental stage. You must request +// access to the API through the Cloud Tasks BufferTask Experiment +// Signup form (https://forms.gle/X8Zr5hiXH5tTGFqh8). +// +// - queue: The parent queue name. For example: +// projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The +// queue must already exist. +// - taskId: Optional. Task ID for the task being created. If not +// provided, a random task ID is assigned to the task. +func (r *ProjectsLocationsQueuesTasksService) Buffer(queue string, taskId string, buffertaskrequest *BufferTaskRequest) *ProjectsLocationsQueuesTasksBufferCall { + c := &ProjectsLocationsQueuesTasksBufferCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.queue = queue + c.taskId = taskId + c.buffertaskrequest = buffertaskrequest + 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 *ProjectsLocationsQueuesTasksBufferCall) Fields(s ...googleapi.Field) *ProjectsLocationsQueuesTasksBufferCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsQueuesTasksBufferCall) Context(ctx context.Context) *ProjectsLocationsQueuesTasksBufferCall { + 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 *ProjectsLocationsQueuesTasksBufferCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsQueuesTasksBufferCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.buffertaskrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta3/{+queue}/tasks/{taskId}:buffer") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "queue": c.queue, + "taskId": c.taskId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "cloudtasks.projects.locations.queues.tasks.buffer" call. +// Exactly one of *BufferTaskResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *BufferTaskResponse.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 *ProjectsLocationsQueuesTasksBufferCall) Do(opts ...googleapi.CallOption) (*BufferTaskResponse, 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 := &BufferTaskResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates and buffers a new task without the need to explicitly define a Task message. The queue must have HTTP target. To create the task with a custom ID, use the following format and set TASK_ID to your desired ID: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer To create the task with an automatically generated ID, use the following format: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer. Note: This feature is in its experimental stage. You must request access to the API through the [Cloud Tasks BufferTask Experiment Signup form](https://forms.gle/X8Zr5hiXH5tTGFqh8).", + // "flatPath": "v2beta3/projects/{projectsId}/locations/{locationsId}/queues/{queuesId}/tasks/{taskId}:buffer", + // "httpMethod": "POST", + // "id": "cloudtasks.projects.locations.queues.tasks.buffer", + // "parameterOrder": [ + // "queue", + // "taskId" + // ], + // "parameters": { + // "queue": { + // "description": "Required. The parent queue name. For example: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/queues/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "taskId": { + // "description": "Optional. Task ID for the task being created. If not provided, a random task ID is assigned to the task.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2beta3/{+queue}/tasks/{taskId}:buffer", + // "request": { + // "$ref": "BufferTaskRequest" + // }, + // "response": { + // "$ref": "BufferTaskResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "cloudtasks.projects.locations.queues.tasks.create": type ProjectsLocationsQueuesTasksCreateCall struct { diff --git a/content/v2.1/content-api.json b/content/v2.1/content-api.json index 7dec320abca..a7057049fdc 100644 --- a/content/v2.1/content-api.json +++ b/content/v2.1/content-api.json @@ -5953,7 +5953,7 @@ } } }, - "revision": "20221228", + "revision": "20230104", "rootUrl": "https://shoppingcontent.googleapis.com/", "schemas": { "Account": { @@ -14349,6 +14349,11 @@ "description": "Required. The user provided promotion ID to uniquely identify the promotion.", "type": "string" }, + "promotionStatus": { + "$ref": "PromotionPromotionStatus", + "description": "Output only. The current status of the promotion.", + "readOnly": true + }, "promotionUrl": { "description": "URL to the page on the merchant's site where the promotion shows. Local Inventory ads promotions throw an error if no promo url is included. URL is used to confirm that the promotion is valid and can be redeemed.", "type": "string" @@ -14412,6 +14417,83 @@ }, "type": "object" }, + "PromotionPromotionStatus": { + "description": "The status of the promotion.", + "id": "PromotionPromotionStatus", + "properties": { + "creationDate": { + "description": "Date on which the promotion has been created in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time, and offset, for example \"2020-01-02T09:00:00+01:00\" or \"2020-01-02T09:00:00Z\"", + "type": "string" + }, + "destinationStatuses": { + "description": "The intended destinations for the promotion.", + "items": { + "$ref": "PromotionPromotionStatusDestinationStatus" + }, + "type": "array" + }, + "lastUpdateDate": { + "description": "Date on which the promotion status has been last updated in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time, and offset, for example \"2020-01-02T09:00:00+01:00\" or \"2020-01-02T09:00:00Z\"", + "type": "string" + }, + "promotionIssue": { + "description": "A list of issues associated with the promotion.", + "items": { + "$ref": "PromotionPromotionStatusPromotionIssue" + }, + "type": "array" + } + }, + "type": "object" + }, + "PromotionPromotionStatusDestinationStatus": { + "description": "The destination status of the promotion.", + "id": "PromotionPromotionStatusDestinationStatus", + "properties": { + "destination": { + "description": "The name of the destination.", + "type": "string" + }, + "status": { + "description": "The status for the specified destination.", + "enum": [ + "STATE_UNSPECIFIED", + "IN_REVIEW", + "REJECTED", + "LIVE", + "STOPPED", + "EXPIRED", + "PENDING" + ], + "enumDescriptions": [ + "Unknown promotion state.", + "The promotion is under review.", + "The promotion is disapproved", + "The promotion is approved and active.", + "The promotion is stopped by merchant.", + "The promotion is no longer active.", + "The promotion is not stopped, and all reviews are approved, but the active date is in the future." + ], + "type": "string" + } + }, + "type": "object" + }, + "PromotionPromotionStatusPromotionIssue": { + "description": "The issue associated with the promotion.", + "id": "PromotionPromotionStatusPromotionIssue", + "properties": { + "code": { + "description": "Code of the issue.", + "type": "string" + }, + "detail": { + "description": "Explanation of the issue.", + "type": "string" + } + }, + "type": "object" + }, "PubsubNotificationSettings": { "description": "Settings for Pub/Sub notifications, all methods require that the caller is a direct user of the merchant center account.", "id": "PubsubNotificationSettings", diff --git a/content/v2.1/content-gen.go b/content/v2.1/content-gen.go index c3995891564..b8d45ac72e1 100644 --- a/content/v2.1/content-gen.go +++ b/content/v2.1/content-gen.go @@ -14520,6 +14520,9 @@ type Promotion struct { // identify the promotion. PromotionId string `json:"promotionId,omitempty"` + // PromotionStatus: Output only. The current status of the promotion. + PromotionStatus *PromotionPromotionStatus `json:"promotionStatus,omitempty"` + // PromotionUrl: URL to the page on the merchant's site where the // promotion shows. Local Inventory ads promotions throw an error if no // promo url is included. URL is used to confirm that the promotion is @@ -14589,6 +14592,123 @@ func (s *Promotion) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// PromotionPromotionStatus: The status of the promotion. +type PromotionPromotionStatus struct { + // CreationDate: Date on which the promotion has been created in ISO + // 8601 (http://en.wikipedia.org/wiki/ISO_8601) format: Date, time, and + // offset, for example "2020-01-02T09:00:00+01:00" or + // "2020-01-02T09:00:00Z" + CreationDate string `json:"creationDate,omitempty"` + + // DestinationStatuses: The intended destinations for the promotion. + DestinationStatuses []*PromotionPromotionStatusDestinationStatus `json:"destinationStatuses,omitempty"` + + // LastUpdateDate: Date on which the promotion status has been last + // updated in ISO 8601 (http://en.wikipedia.org/wiki/ISO_8601) format: + // Date, time, and offset, for example "2020-01-02T09:00:00+01:00" or + // "2020-01-02T09:00:00Z" + LastUpdateDate string `json:"lastUpdateDate,omitempty"` + + // PromotionIssue: A list of issues associated with the promotion. + PromotionIssue []*PromotionPromotionStatusPromotionIssue `json:"promotionIssue,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreationDate") 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. "CreationDate") 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 *PromotionPromotionStatus) MarshalJSON() ([]byte, error) { + type NoMethod PromotionPromotionStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PromotionPromotionStatusDestinationStatus: The destination status of +// the promotion. +type PromotionPromotionStatusDestinationStatus struct { + // Destination: The name of the destination. + Destination string `json:"destination,omitempty"` + + // Status: The status for the specified destination. + // + // Possible values: + // "STATE_UNSPECIFIED" - Unknown promotion state. + // "IN_REVIEW" - The promotion is under review. + // "REJECTED" - The promotion is disapproved + // "LIVE" - The promotion is approved and active. + // "STOPPED" - The promotion is stopped by merchant. + // "EXPIRED" - The promotion is no longer active. + // "PENDING" - The promotion is not stopped, and all reviews are + // approved, but the active date is in the future. + Status string `json:"status,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Destination") 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. "Destination") 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 *PromotionPromotionStatusDestinationStatus) MarshalJSON() ([]byte, error) { + type NoMethod PromotionPromotionStatusDestinationStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PromotionPromotionStatusPromotionIssue: The issue associated with the +// promotion. +type PromotionPromotionStatusPromotionIssue struct { + // Code: Code of the issue. + Code string `json:"code,omitempty"` + + // Detail: Explanation of the issue. + Detail string `json:"detail,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *PromotionPromotionStatusPromotionIssue) MarshalJSON() ([]byte, error) { + type NoMethod PromotionPromotionStatusPromotionIssue + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // PubsubNotificationSettings: Settings for Pub/Sub notifications, all // methods require that the caller is a direct user of the merchant // center account. diff --git a/dataform/v1beta1/dataform-api.json b/dataform/v1beta1/dataform-api.json index b32f49ee5a4..bd4889a23d1 100644 --- a/dataform/v1beta1/dataform-api.json +++ b/dataform/v1beta1/dataform-api.json @@ -1622,7 +1622,7 @@ } } }, - "revision": "20221217", + "revision": "20230107", "rootUrl": "https://dataform.googleapis.com/", "schemas": { "Assertion": { @@ -2969,6 +2969,10 @@ ], "readOnly": true, "type": "string" + }, + "workflowConfig": { + "description": "Immutable. The name of the workflow config to invoke. Must be in the format `projects/*/locations/*/repositories/*/workflowConfigs/*`.", + "type": "string" } }, "type": "object" diff --git a/dataform/v1beta1/dataform-gen.go b/dataform/v1beta1/dataform-gen.go index e64aa529206..6ec098970b8 100644 --- a/dataform/v1beta1/dataform-gen.go +++ b/dataform/v1beta1/dataform-gen.go @@ -2421,6 +2421,11 @@ type WorkflowInvocation struct { // actions are still running. State string `json:"state,omitempty"` + // WorkflowConfig: Immutable. The name of the workflow config to invoke. + // Must be in the format + // `projects/*/locations/*/repositories/*/workflowConfigs/*`. + WorkflowConfig string `json:"workflowConfig,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` diff --git a/discoveryengine/v1alpha/discoveryengine-api.json b/discoveryengine/v1alpha/discoveryengine-api.json index f96b25815db..3dcfe1f7816 100644 --- a/discoveryengine/v1alpha/discoveryengine-api.json +++ b/discoveryengine/v1alpha/discoveryengine-api.json @@ -793,7 +793,7 @@ } } }, - "revision": "20221212", + "revision": "20230105", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -823,6 +823,125 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineLoggingErrorContext": { + "description": "A description of the context in which an error occurred.", + "id": "GoogleCloudDiscoveryengineLoggingErrorContext", + "properties": { + "httpRequest": { + "$ref": "GoogleCloudDiscoveryengineLoggingHttpRequestContext", + "description": "The HTTP request which was processed when the error was triggered." + }, + "reportLocation": { + "$ref": "GoogleCloudDiscoveryengineLoggingSourceLocation", + "description": "The location in the source code where the decision was made to report the error, usually the place where it was logged." + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineLoggingErrorLog": { + "description": "An error log which is reported to the Error Reporting system.", + "id": "GoogleCloudDiscoveryengineLoggingErrorLog", + "properties": { + "context": { + "$ref": "GoogleCloudDiscoveryengineLoggingErrorContext", + "description": "A description of the context in which the error occurred." + }, + "importPayload": { + "$ref": "GoogleCloudDiscoveryengineLoggingImportErrorContext", + "description": "The error payload that is populated on LRO import APIs." + }, + "message": { + "description": "A message describing the error.", + "type": "string" + }, + "requestPayload": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "The API request payload, represented as a protocol buffer. Most API request types are supported. For example: \"type.googleapis.com/google.cloud.discoveryengine.v1alpha.DocumentService.CreateDocumentRequest\" \"type.googleapis.com/google.cloud.discoveryengine.v1alpha.UserEventService.WriteUserEventRequest\"", + "type": "object" + }, + "responsePayload": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "The API response payload, represented as a protocol buffer. This is used to log some \"soft errors\", where the response is valid but we consider there are some quality issues like unjoined events. The following API responses are supported and no PII is included: \"google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend\" \"google.cloud.discoveryengine.v1alpha.UserEventService.WriteUserEvent\" \"google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEvent\"", + "type": "object" + }, + "serviceContext": { + "$ref": "GoogleCloudDiscoveryengineLoggingServiceContext", + "description": "The service context in which this error has occurred." + }, + "status": { + "$ref": "GoogleRpcStatus", + "description": "The RPC status associated with the error log." + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineLoggingHttpRequestContext": { + "description": "HTTP request data that is related to a reported error.", + "id": "GoogleCloudDiscoveryengineLoggingHttpRequestContext", + "properties": { + "responseStatusCode": { + "description": "The HTTP response status code for the request.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineLoggingImportErrorContext": { + "description": "The error payload that is populated on LRO import APIs. Including: \"google.cloud.discoveryengine.v1alpha.DocumentService.ImportDocuments\" \"google.cloud.discoveryengine.v1alpha.UserEventService.ImportUserEvents\"", + "id": "GoogleCloudDiscoveryengineLoggingImportErrorContext", + "properties": { + "document": { + "description": "The detailed content which caused the error on importing a document.", + "type": "string" + }, + "gcsPath": { + "description": "Google Cloud Storage file path of the import source. Can be set for batch operation error.", + "type": "string" + }, + "lineNumber": { + "description": "Line number of the content in file. Should be empty for permission or batch operation error.", + "type": "string" + }, + "operation": { + "description": "The operation resource name of the LRO.", + "type": "string" + }, + "userEvent": { + "description": "The detailed content which caused the error on importing a user event.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineLoggingServiceContext": { + "description": "Describes a running service that sends errors.", + "id": "GoogleCloudDiscoveryengineLoggingServiceContext", + "properties": { + "service": { + "description": "An identifier of the service. For example, \"discoveryengine.googleapis.com\".", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineLoggingSourceLocation": { + "description": "Indicates a location in the source code of the service for which errors are reported.", + "id": "GoogleCloudDiscoveryengineLoggingSourceLocation", + "properties": { + "functionName": { + "description": "Human-readable name of a function or method. For example, \" google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend\".", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaBigQuerySource": { "description": "BigQuery source import data from.", "id": "GoogleCloudDiscoveryengineV1alphaBigQuerySource", diff --git a/discoveryengine/v1alpha/discoveryengine-gen.go b/discoveryengine/v1alpha/discoveryengine-gen.go index a0f64527a4c..98220f3b84d 100644 --- a/discoveryengine/v1alpha/discoveryengine-gen.go +++ b/discoveryengine/v1alpha/discoveryengine-gen.go @@ -347,6 +347,243 @@ func (s *GoogleApiHttpBody) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineLoggingErrorContext: A description of the +// context in which an error occurred. +type GoogleCloudDiscoveryengineLoggingErrorContext struct { + // HttpRequest: The HTTP request which was processed when the error was + // triggered. + HttpRequest *GoogleCloudDiscoveryengineLoggingHttpRequestContext `json:"httpRequest,omitempty"` + + // ReportLocation: The location in the source code where the decision + // was made to report the error, usually the place where it was logged. + ReportLocation *GoogleCloudDiscoveryengineLoggingSourceLocation `json:"reportLocation,omitempty"` + + // ForceSendFields is a list of field names (e.g. "HttpRequest") 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. "HttpRequest") 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 *GoogleCloudDiscoveryengineLoggingErrorContext) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineLoggingErrorContext + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineLoggingErrorLog: An error log which is +// reported to the Error Reporting system. +type GoogleCloudDiscoveryengineLoggingErrorLog struct { + // Context: A description of the context in which the error occurred. + Context *GoogleCloudDiscoveryengineLoggingErrorContext `json:"context,omitempty"` + + // ImportPayload: The error payload that is populated on LRO import + // APIs. + ImportPayload *GoogleCloudDiscoveryengineLoggingImportErrorContext `json:"importPayload,omitempty"` + + // Message: A message describing the error. + Message string `json:"message,omitempty"` + + // RequestPayload: The API request payload, represented as a protocol + // buffer. Most API request types are supported. For example: + // "type.googleapis.com/google.cloud.discoveryengine.v1alpha.DocumentServ + // ice.CreateDocumentRequest" + // "type.googleapis.com/google.cloud.discoveryengine.v1alpha.UserEventSer + // vice.WriteUserEventRequest" + RequestPayload googleapi.RawMessage `json:"requestPayload,omitempty"` + + // ResponsePayload: The API response payload, represented as a protocol + // buffer. This is used to log some "soft errors", where the response is + // valid but we consider there are some quality issues like unjoined + // events. The following API responses are supported and no PII is + // included: + // "google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend" + // + // "google.cloud.discoveryengine.v1alpha.UserEventService.WriteUserEvent" + // + // "google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEven + // t" + ResponsePayload googleapi.RawMessage `json:"responsePayload,omitempty"` + + // ServiceContext: The service context in which this error has occurred. + ServiceContext *GoogleCloudDiscoveryengineLoggingServiceContext `json:"serviceContext,omitempty"` + + // Status: The RPC status associated with the error log. + Status *GoogleRpcStatus `json:"status,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Context") 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. "Context") 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 *GoogleCloudDiscoveryengineLoggingErrorLog) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineLoggingErrorLog + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineLoggingHttpRequestContext: HTTP request +// data that is related to a reported error. +type GoogleCloudDiscoveryengineLoggingHttpRequestContext struct { + // ResponseStatusCode: The HTTP response status code for the request. + ResponseStatusCode int64 `json:"responseStatusCode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ResponseStatusCode") + // 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. "ResponseStatusCode") 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 *GoogleCloudDiscoveryengineLoggingHttpRequestContext) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineLoggingHttpRequestContext + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineLoggingImportErrorContext: The error +// payload that is populated on LRO import APIs. Including: +// "google.cloud.discoveryengine.v1alpha.DocumentService.ImportDocuments" +// +// "google.cloud.discoveryengine.v1alpha.UserEventService.ImportUserEvent +// s" +type GoogleCloudDiscoveryengineLoggingImportErrorContext struct { + // Document: The detailed content which caused the error on importing a + // document. + Document string `json:"document,omitempty"` + + // GcsPath: Google Cloud Storage file path of the import source. Can be + // set for batch operation error. + GcsPath string `json:"gcsPath,omitempty"` + + // LineNumber: Line number of the content in file. Should be empty for + // permission or batch operation error. + LineNumber string `json:"lineNumber,omitempty"` + + // Operation: The operation resource name of the LRO. + Operation string `json:"operation,omitempty"` + + // UserEvent: The detailed content which caused the error on importing a + // user event. + UserEvent string `json:"userEvent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Document") 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. "Document") 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 *GoogleCloudDiscoveryengineLoggingImportErrorContext) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineLoggingImportErrorContext + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineLoggingServiceContext: Describes a running +// service that sends errors. +type GoogleCloudDiscoveryengineLoggingServiceContext struct { + // Service: An identifier of the service. For example, + // "discoveryengine.googleapis.com". + Service string `json:"service,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Service") 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. "Service") 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 *GoogleCloudDiscoveryengineLoggingServiceContext) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineLoggingServiceContext + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineLoggingSourceLocation: Indicates a location +// in the source code of the service for which errors are reported. +type GoogleCloudDiscoveryengineLoggingSourceLocation struct { + // FunctionName: Human-readable name of a function or method. For + // example, " + // google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend". + FunctionName string `json:"functionName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FunctionName") 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. "FunctionName") 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 *GoogleCloudDiscoveryengineLoggingSourceLocation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineLoggingSourceLocation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaBigQuerySource: BigQuery source // import data from. type GoogleCloudDiscoveryengineV1alphaBigQuerySource struct { diff --git a/discoveryengine/v1beta/discoveryengine-api.json b/discoveryengine/v1beta/discoveryengine-api.json index 61d332a6f24..bec57a6f7d0 100644 --- a/discoveryengine/v1beta/discoveryengine-api.json +++ b/discoveryengine/v1beta/discoveryengine-api.json @@ -793,7 +793,7 @@ } } }, - "revision": "20221212", + "revision": "20230105", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -823,6 +823,125 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineLoggingErrorContext": { + "description": "A description of the context in which an error occurred.", + "id": "GoogleCloudDiscoveryengineLoggingErrorContext", + "properties": { + "httpRequest": { + "$ref": "GoogleCloudDiscoveryengineLoggingHttpRequestContext", + "description": "The HTTP request which was processed when the error was triggered." + }, + "reportLocation": { + "$ref": "GoogleCloudDiscoveryengineLoggingSourceLocation", + "description": "The location in the source code where the decision was made to report the error, usually the place where it was logged." + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineLoggingErrorLog": { + "description": "An error log which is reported to the Error Reporting system.", + "id": "GoogleCloudDiscoveryengineLoggingErrorLog", + "properties": { + "context": { + "$ref": "GoogleCloudDiscoveryengineLoggingErrorContext", + "description": "A description of the context in which the error occurred." + }, + "importPayload": { + "$ref": "GoogleCloudDiscoveryengineLoggingImportErrorContext", + "description": "The error payload that is populated on LRO import APIs." + }, + "message": { + "description": "A message describing the error.", + "type": "string" + }, + "requestPayload": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "The API request payload, represented as a protocol buffer. Most API request types are supported. For example: \"type.googleapis.com/google.cloud.discoveryengine.v1alpha.DocumentService.CreateDocumentRequest\" \"type.googleapis.com/google.cloud.discoveryengine.v1alpha.UserEventService.WriteUserEventRequest\"", + "type": "object" + }, + "responsePayload": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "The API response payload, represented as a protocol buffer. This is used to log some \"soft errors\", where the response is valid but we consider there are some quality issues like unjoined events. The following API responses are supported and no PII is included: \"google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend\" \"google.cloud.discoveryengine.v1alpha.UserEventService.WriteUserEvent\" \"google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEvent\"", + "type": "object" + }, + "serviceContext": { + "$ref": "GoogleCloudDiscoveryengineLoggingServiceContext", + "description": "The service context in which this error has occurred." + }, + "status": { + "$ref": "GoogleRpcStatus", + "description": "The RPC status associated with the error log." + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineLoggingHttpRequestContext": { + "description": "HTTP request data that is related to a reported error.", + "id": "GoogleCloudDiscoveryengineLoggingHttpRequestContext", + "properties": { + "responseStatusCode": { + "description": "The HTTP response status code for the request.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineLoggingImportErrorContext": { + "description": "The error payload that is populated on LRO import APIs. Including: \"google.cloud.discoveryengine.v1alpha.DocumentService.ImportDocuments\" \"google.cloud.discoveryengine.v1alpha.UserEventService.ImportUserEvents\"", + "id": "GoogleCloudDiscoveryengineLoggingImportErrorContext", + "properties": { + "document": { + "description": "The detailed content which caused the error on importing a document.", + "type": "string" + }, + "gcsPath": { + "description": "Google Cloud Storage file path of the import source. Can be set for batch operation error.", + "type": "string" + }, + "lineNumber": { + "description": "Line number of the content in file. Should be empty for permission or batch operation error.", + "type": "string" + }, + "operation": { + "description": "The operation resource name of the LRO.", + "type": "string" + }, + "userEvent": { + "description": "The detailed content which caused the error on importing a user event.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineLoggingServiceContext": { + "description": "Describes a running service that sends errors.", + "id": "GoogleCloudDiscoveryengineLoggingServiceContext", + "properties": { + "service": { + "description": "An identifier of the service. For example, \"discoveryengine.googleapis.com\".", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineLoggingSourceLocation": { + "description": "Indicates a location in the source code of the service for which errors are reported.", + "id": "GoogleCloudDiscoveryengineLoggingSourceLocation", + "properties": { + "functionName": { + "description": "Human-readable name of a function or method. For example, \" google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend\".", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata": { "description": "Metadata related to the progress of the ImportDocuments operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata", diff --git a/discoveryengine/v1beta/discoveryengine-gen.go b/discoveryengine/v1beta/discoveryengine-gen.go index ac3c22eb2e1..38b7e0402b9 100644 --- a/discoveryengine/v1beta/discoveryengine-gen.go +++ b/discoveryengine/v1beta/discoveryengine-gen.go @@ -347,6 +347,243 @@ func (s *GoogleApiHttpBody) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineLoggingErrorContext: A description of the +// context in which an error occurred. +type GoogleCloudDiscoveryengineLoggingErrorContext struct { + // HttpRequest: The HTTP request which was processed when the error was + // triggered. + HttpRequest *GoogleCloudDiscoveryengineLoggingHttpRequestContext `json:"httpRequest,omitempty"` + + // ReportLocation: The location in the source code where the decision + // was made to report the error, usually the place where it was logged. + ReportLocation *GoogleCloudDiscoveryengineLoggingSourceLocation `json:"reportLocation,omitempty"` + + // ForceSendFields is a list of field names (e.g. "HttpRequest") 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. "HttpRequest") 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 *GoogleCloudDiscoveryengineLoggingErrorContext) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineLoggingErrorContext + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineLoggingErrorLog: An error log which is +// reported to the Error Reporting system. +type GoogleCloudDiscoveryengineLoggingErrorLog struct { + // Context: A description of the context in which the error occurred. + Context *GoogleCloudDiscoveryengineLoggingErrorContext `json:"context,omitempty"` + + // ImportPayload: The error payload that is populated on LRO import + // APIs. + ImportPayload *GoogleCloudDiscoveryengineLoggingImportErrorContext `json:"importPayload,omitempty"` + + // Message: A message describing the error. + Message string `json:"message,omitempty"` + + // RequestPayload: The API request payload, represented as a protocol + // buffer. Most API request types are supported. For example: + // "type.googleapis.com/google.cloud.discoveryengine.v1alpha.DocumentServ + // ice.CreateDocumentRequest" + // "type.googleapis.com/google.cloud.discoveryengine.v1alpha.UserEventSer + // vice.WriteUserEventRequest" + RequestPayload googleapi.RawMessage `json:"requestPayload,omitempty"` + + // ResponsePayload: The API response payload, represented as a protocol + // buffer. This is used to log some "soft errors", where the response is + // valid but we consider there are some quality issues like unjoined + // events. The following API responses are supported and no PII is + // included: + // "google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend" + // + // "google.cloud.discoveryengine.v1alpha.UserEventService.WriteUserEvent" + // + // "google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEven + // t" + ResponsePayload googleapi.RawMessage `json:"responsePayload,omitempty"` + + // ServiceContext: The service context in which this error has occurred. + ServiceContext *GoogleCloudDiscoveryengineLoggingServiceContext `json:"serviceContext,omitempty"` + + // Status: The RPC status associated with the error log. + Status *GoogleRpcStatus `json:"status,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Context") 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. "Context") 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 *GoogleCloudDiscoveryengineLoggingErrorLog) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineLoggingErrorLog + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineLoggingHttpRequestContext: HTTP request +// data that is related to a reported error. +type GoogleCloudDiscoveryengineLoggingHttpRequestContext struct { + // ResponseStatusCode: The HTTP response status code for the request. + ResponseStatusCode int64 `json:"responseStatusCode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ResponseStatusCode") + // 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. "ResponseStatusCode") 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 *GoogleCloudDiscoveryengineLoggingHttpRequestContext) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineLoggingHttpRequestContext + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineLoggingImportErrorContext: The error +// payload that is populated on LRO import APIs. Including: +// "google.cloud.discoveryengine.v1alpha.DocumentService.ImportDocuments" +// +// "google.cloud.discoveryengine.v1alpha.UserEventService.ImportUserEvent +// s" +type GoogleCloudDiscoveryengineLoggingImportErrorContext struct { + // Document: The detailed content which caused the error on importing a + // document. + Document string `json:"document,omitempty"` + + // GcsPath: Google Cloud Storage file path of the import source. Can be + // set for batch operation error. + GcsPath string `json:"gcsPath,omitempty"` + + // LineNumber: Line number of the content in file. Should be empty for + // permission or batch operation error. + LineNumber string `json:"lineNumber,omitempty"` + + // Operation: The operation resource name of the LRO. + Operation string `json:"operation,omitempty"` + + // UserEvent: The detailed content which caused the error on importing a + // user event. + UserEvent string `json:"userEvent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Document") 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. "Document") 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 *GoogleCloudDiscoveryengineLoggingImportErrorContext) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineLoggingImportErrorContext + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineLoggingServiceContext: Describes a running +// service that sends errors. +type GoogleCloudDiscoveryengineLoggingServiceContext struct { + // Service: An identifier of the service. For example, + // "discoveryengine.googleapis.com". + Service string `json:"service,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Service") 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. "Service") 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 *GoogleCloudDiscoveryengineLoggingServiceContext) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineLoggingServiceContext + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineLoggingSourceLocation: Indicates a location +// in the source code of the service for which errors are reported. +type GoogleCloudDiscoveryengineLoggingSourceLocation struct { + // FunctionName: Human-readable name of a function or method. For + // example, " + // google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend". + FunctionName string `json:"functionName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FunctionName") 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. "FunctionName") 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 *GoogleCloudDiscoveryengineLoggingSourceLocation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineLoggingSourceLocation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata: Metadata // related to the progress of the ImportDocuments operation. This will // be returned by the google.longrunning.Operation.metadata field. diff --git a/metastore/v1alpha/metastore-api.json b/metastore/v1alpha/metastore-api.json index 6e95da4ffce..00b6a8043f7 100644 --- a/metastore/v1alpha/metastore-api.json +++ b/metastore/v1alpha/metastore-api.json @@ -1551,7 +1551,7 @@ } } }, - "revision": "20221207", + "revision": "20230106", "rootUrl": "https://metastore.googleapis.com/", "schemas": { "AlterMetadataResourceLocationRequest": { @@ -1569,6 +1569,12 @@ }, "type": "object" }, + "AlterMetadataResourceLocationResponse": { + "description": "Response message for DataprocMetastore.AlterMetadataResourceLocation.", + "id": "AlterMetadataResourceLocationResponse", + "properties": {}, + "type": "object" + }, "AuditConfig": { "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs.If there are AuditConfigs for both allServices and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted.Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.", "id": "AuditConfig", @@ -2455,6 +2461,12 @@ }, "type": "object" }, + "MoveTableToDatabaseResponse": { + "description": "Response message for DataprocMetastore.MoveTableToDatabase.", + "id": "MoveTableToDatabaseResponse", + "properties": {}, + "type": "object" + }, "NetworkConfig": { "description": "Network configuration for the Dataproc Metastore service.", "id": "NetworkConfig", diff --git a/metastore/v1alpha/metastore-gen.go b/metastore/v1alpha/metastore-gen.go index 3da495b1239..622978984db 100644 --- a/metastore/v1alpha/metastore-gen.go +++ b/metastore/v1alpha/metastore-gen.go @@ -278,6 +278,11 @@ func (s *AlterMetadataResourceLocationRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AlterMetadataResourceLocationResponse: Response message for +// DataprocMetastore.AlterMetadataResourceLocation. +type AlterMetadataResourceLocationResponse struct { +} + // AuditConfig: Specifies the audit configuration for a service. The // configuration determines which permission types are logged, and what // identities, if any, are exempted from logging. An AuditConfig must @@ -1748,6 +1753,11 @@ func (s *MoveTableToDatabaseRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MoveTableToDatabaseResponse: Response message for +// DataprocMetastore.MoveTableToDatabase. +type MoveTableToDatabaseResponse struct { +} + // NetworkConfig: Network configuration for the Dataproc Metastore // service. type NetworkConfig struct { diff --git a/ondemandscanning/v1beta1/ondemandscanning-api.json b/ondemandscanning/v1beta1/ondemandscanning-api.json index 99453a502e7..d325d7a20f3 100644 --- a/ondemandscanning/v1beta1/ondemandscanning-api.json +++ b/ondemandscanning/v1beta1/ondemandscanning-api.json @@ -339,7 +339,7 @@ } } }, - "revision": "20221024", + "revision": "20230109", "rootUrl": "https://ondemandscanning.googleapis.com/", "schemas": { "AliasContext": { @@ -1718,14 +1718,18 @@ "OS", "MAVEN", "GO", - "GO_STDLIB" + "GO_STDLIB", + "PYPI", + "NPM" ], "enumDescriptions": [ "", "Operating System", "Java packages from Maven.", "Go third-party packages.", - "Go toolchain + standard library packages." + "Go toolchain + standard library packages.", + "Python packages.", + "NPM packages." ], "type": "string" }, diff --git a/ondemandscanning/v1beta1/ondemandscanning-gen.go b/ondemandscanning/v1beta1/ondemandscanning-gen.go index 76ae83e1e04..265d0e6034e 100644 --- a/ondemandscanning/v1beta1/ondemandscanning-gen.go +++ b/ondemandscanning/v1beta1/ondemandscanning-gen.go @@ -2340,6 +2340,8 @@ type PackageData struct { // "MAVEN" - Java packages from Maven. // "GO" - Go third-party packages. // "GO_STDLIB" - Go toolchain + standard library packages. + // "PYPI" - Python packages. + // "NPM" - NPM packages. PackageType string `json:"packageType,omitempty"` // PatchedCve: CVEs that this package is no longer vulnerable to diff --git a/retail/v2alpha/retail-api.json b/retail/v2alpha/retail-api.json index 06b23a2ea86..09b2482c73c 100644 --- a/retail/v2alpha/retail-api.json +++ b/retail/v2alpha/retail-api.json @@ -2100,7 +2100,7 @@ } } }, - "revision": "20230102", + "revision": "20230105", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -2852,7 +2852,7 @@ "type": "array" }, "colors": { - "description": "The color display names, which may be different from standard color family names, such as the color aliases used in the website frontend. Normally it is expected to have only 1 color. May consider using single \"Mixed\" instead of multiple values. A maximum of 25 colors are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).", + "description": "The color display names, which may be different from standard color family names, such as the color aliases used in the website frontend. Normally it is expected to have only 1 color. May consider using single \"Mixed\" instead of multiple values. A maximum of 75 colors are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).", "items": { "type": "string" }, diff --git a/retail/v2alpha/retail-gen.go b/retail/v2alpha/retail-gen.go index 51f69582a32..76f8dc6b3ad 100644 --- a/retail/v2alpha/retail-gen.go +++ b/retail/v2alpha/retail-gen.go @@ -1710,7 +1710,7 @@ type GoogleCloudRetailV2alphaColorInfo struct { // Colors: The color display names, which may be different from standard // color family names, such as the color aliases used in the website // frontend. Normally it is expected to have only 1 color. May consider - // using single "Mixed" instead of multiple values. A maximum of 25 + // using single "Mixed" instead of multiple values. A maximum of 75 // colors are allowed. Each value must be a UTF-8 encoded string with a // length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error // is returned. Google Merchant Center property color diff --git a/retail/v2beta/retail-api.json b/retail/v2beta/retail-api.json index 368990ef815..4280666699e 100644 --- a/retail/v2beta/retail-api.json +++ b/retail/v2beta/retail-api.json @@ -2029,7 +2029,7 @@ } } }, - "revision": "20230102", + "revision": "20230105", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -3425,7 +3425,7 @@ "type": "array" }, "colors": { - "description": "The color display names, which may be different from standard color family names, such as the color aliases used in the website frontend. Normally it is expected to have only 1 color. May consider using single \"Mixed\" instead of multiple values. A maximum of 25 colors are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).", + "description": "The color display names, which may be different from standard color family names, such as the color aliases used in the website frontend. Normally it is expected to have only 1 color. May consider using single \"Mixed\" instead of multiple values. A maximum of 75 colors are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [color](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).", "items": { "type": "string" }, diff --git a/retail/v2beta/retail-gen.go b/retail/v2beta/retail-gen.go index d63d3c587dc..8338ae0026c 100644 --- a/retail/v2beta/retail-gen.go +++ b/retail/v2beta/retail-gen.go @@ -2863,7 +2863,7 @@ type GoogleCloudRetailV2betaColorInfo struct { // Colors: The color display names, which may be different from standard // color family names, such as the color aliases used in the website // frontend. Normally it is expected to have only 1 color. May consider - // using single "Mixed" instead of multiple values. A maximum of 25 + // using single "Mixed" instead of multiple values. A maximum of 75 // colors are allowed. Each value must be a UTF-8 encoded string with a // length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error // is returned. Google Merchant Center property color