Skip to content

Commit

Permalink
feat(cloudtasks)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.

#### cloudtasks:v2beta2

The following keys were deleted:
- schemas.UriOverride.properties.path.description
- schemas.UriOverride.properties.path.type
- schemas.UriOverride.properties.query.description
- schemas.UriOverride.properties.query.type

The following keys were added:
- schemas.PathOverride.description
- schemas.PathOverride.id
- schemas.PathOverride.properties.path.description
- schemas.PathOverride.properties.path.type
- schemas.PathOverride.type
- schemas.QueryOverride.description
- schemas.QueryOverride.id
- schemas.QueryOverride.properties.queryParams.description
- schemas.QueryOverride.properties.queryParams.type
- schemas.QueryOverride.type
- schemas.UriOverride.properties.pathOverride.$ref
- schemas.UriOverride.properties.pathOverride.description
- schemas.UriOverride.properties.queryOverride.$ref
- schemas.UriOverride.properties.queryOverride.description

The following keys were changed:
- schemas.UriOverride.properties.host.description
- schemas.UriOverride.properties.port.description
- schemas.UriOverride.properties.scheme.description
- schemas.UriOverride.properties.uriOverrideEnforceMode.description

#### cloudtasks:v2beta3

The following keys were added:
- resources.projects.resources.locations.resources.queues.resources.tasks.methods.buffer.description
- resources.projects.resources.locations.resources.queues.resources.tasks.methods.buffer.flatPath
- resources.projects.resources.locations.resources.queues.resources.tasks.methods.buffer.httpMethod
- resources.projects.resources.locations.resources.queues.resources.tasks.methods.buffer.id
- resources.projects.resources.locations.resources.queues.resources.tasks.methods.buffer.parameterOrder
- resources.projects.resources.locations.resources.queues.resources.tasks.methods.buffer.parameters.queue.description
- resources.projects.resources.locations.resources.queues.resources.tasks.methods.buffer.parameters.queue.location
- resources.projects.resources.locations.resources.queues.resources.tasks.methods.buffer.parameters.queue.pattern
- resources.projects.resources.locations.resources.queues.resources.tasks.methods.buffer.parameters.queue.required
- resources.projects.resources.locations.resources.queues.resources.tasks.methods.buffer.parameters.queue.type
- resources.projects.resources.locations.resources.queues.resources.tasks.methods.buffer.parameters.taskId.description
- resources.projects.resources.locations.resources.queues.resources.tasks.methods.buffer.parameters.taskId.location
- resources.projects.resources.locations.resources.queues.resources.tasks.methods.buffer.parameters.taskId.required
- resources.projects.resources.locations.resources.queues.resources.tasks.methods.buffer.parameters.taskId.type
- resources.projects.resources.locations.resources.queues.resources.tasks.methods.buffer.path
- resources.projects.resources.locations.resources.queues.resources.tasks.methods.buffer.request.$ref
- resources.projects.resources.locations.resources.queues.resources.tasks.methods.buffer.response.$ref
- resources.projects.resources.locations.resources.queues.resources.tasks.methods.buffer.scopes
- schemas.BufferTaskRequest.description
- schemas.BufferTaskRequest.id
- schemas.BufferTaskRequest.properties.body.$ref
- schemas.BufferTaskRequest.properties.body.description
- schemas.BufferTaskRequest.type
- schemas.BufferTaskResponse.description
- schemas.BufferTaskResponse.id
- schemas.BufferTaskResponse.properties.task.$ref
- schemas.BufferTaskResponse.properties.task.description
- schemas.BufferTaskResponse.type
- schemas.Header.description
- schemas.Header.id
- schemas.Header.properties.key.description
- schemas.Header.properties.key.type
- schemas.Header.properties.value.description
- schemas.Header.properties.value.type
- schemas.Header.type
- schemas.HeaderOverride.description
- schemas.HeaderOverride.id
- schemas.HeaderOverride.properties.header.$ref
- schemas.HeaderOverride.properties.header.description
- schemas.HeaderOverride.type
- schemas.HttpBody.description
- schemas.HttpBody.id
- schemas.HttpBody.properties.contentType.description
- schemas.HttpBody.properties.contentType.type
- schemas.HttpBody.properties.data.description
- schemas.HttpBody.properties.data.format
- schemas.HttpBody.properties.data.type
- schemas.HttpBody.properties.extensions.description
- schemas.HttpBody.properties.extensions.items.additionalProperties.description
- schemas.HttpBody.properties.extensions.items.additionalProperties.type
- schemas.HttpBody.properties.extensions.items.type
- schemas.HttpBody.properties.extensions.type
- schemas.HttpBody.type
- schemas.HttpTarget.description
- schemas.HttpTarget.id
- schemas.HttpTarget.properties.headerOverrides.description
- schemas.HttpTarget.properties.headerOverrides.items.$ref
- schemas.HttpTarget.properties.headerOverrides.type
- schemas.HttpTarget.properties.httpMethod.description
- schemas.HttpTarget.properties.httpMethod.enum
- schemas.HttpTarget.properties.httpMethod.enumDescriptions
- schemas.HttpTarget.properties.httpMethod.type
- schemas.HttpTarget.properties.uriOverride.$ref
- schemas.HttpTarget.properties.uriOverride.description
- schemas.HttpTarget.type
- schemas.PathOverride.description
- schemas.PathOverride.id
- schemas.PathOverride.properties.path.description
- schemas.PathOverride.properties.path.type
- schemas.PathOverride.type
- schemas.QueryOverride.description
- schemas.QueryOverride.id
- schemas.QueryOverride.properties.queryParams.description
- schemas.QueryOverride.properties.queryParams.type
- schemas.QueryOverride.type
- schemas.Queue.properties.httpTarget.$ref
- schemas.Queue.properties.httpTarget.description
- schemas.UriOverride.description
- schemas.UriOverride.id
- schemas.UriOverride.properties.host.description
- schemas.UriOverride.properties.host.type
- schemas.UriOverride.properties.pathOverride.$ref
- schemas.UriOverride.properties.pathOverride.description
- schemas.UriOverride.properties.port.description
- schemas.UriOverride.properties.port.format
- schemas.UriOverride.properties.port.type
- schemas.UriOverride.properties.queryOverride.$ref
- schemas.UriOverride.properties.queryOverride.description
- schemas.UriOverride.properties.scheme.description
- schemas.UriOverride.properties.scheme.enum
- schemas.UriOverride.properties.scheme.enumDescriptions
- schemas.UriOverride.properties.scheme.type
- schemas.UriOverride.properties.uriOverrideEnforceMode.description
- schemas.UriOverride.properties.uriOverrideEnforceMode.enum
- schemas.UriOverride.properties.uriOverrideEnforceMode.enumDescriptions
- schemas.UriOverride.properties.uriOverrideEnforceMode.type
- schemas.UriOverride.type
  • Loading branch information
yoshi-automation authored and sofisl committed Feb 2, 2023
1 parent 9d69ef4 commit 6c5644c
Show file tree
Hide file tree
Showing 4 changed files with 581 additions and 20 deletions.
44 changes: 33 additions & 11 deletions discovery/cloudtasks-v2beta2.json
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@
}
}
},
"revision": "20221208",
"revision": "20230105",
"rootUrl": "https://cloudtasks.googleapis.com/",
"schemas": {
"AcknowledgeTaskRequest": {
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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&qparam2=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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 6c5644c

Please sign in to comment.