Skip to content

Commit d649e11

Browse files
yoshi-automationsofisl
authored andcommitted
feat(cloudtasks)!: update the API
BREAKING CHANGE: This release has breaking changes. #### cloudtasks:v2beta2 The following keys were deleted: - resources.projects.resources.locations.resources.queues.methods.buffer.description - resources.projects.resources.locations.resources.queues.methods.buffer.flatPath - resources.projects.resources.locations.resources.queues.methods.buffer.httpMethod - resources.projects.resources.locations.resources.queues.methods.buffer.id - resources.projects.resources.locations.resources.queues.methods.buffer.parameterOrder - resources.projects.resources.locations.resources.queues.methods.buffer.parameters.name.description - resources.projects.resources.locations.resources.queues.methods.buffer.parameters.name.location - resources.projects.resources.locations.resources.queues.methods.buffer.parameters.name.pattern - resources.projects.resources.locations.resources.queues.methods.buffer.parameters.name.required - resources.projects.resources.locations.resources.queues.methods.buffer.parameters.name.type - resources.projects.resources.locations.resources.queues.methods.buffer.path - resources.projects.resources.locations.resources.queues.methods.buffer.request.$ref - resources.projects.resources.locations.resources.queues.methods.buffer.response.$ref - resources.projects.resources.locations.resources.queues.methods.buffer.scopes - schemas.BufferQueueRequest.description - schemas.BufferQueueRequest.id - schemas.BufferQueueRequest.properties.body.$ref - schemas.BufferQueueRequest.properties.body.description - schemas.BufferQueueRequest.type - schemas.BufferQueueResponse.description - schemas.BufferQueueResponse.id - schemas.BufferQueueResponse.properties.task.description - schemas.BufferQueueResponse.properties.task.type - schemas.BufferQueueResponse.type 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.parent.description - resources.projects.resources.locations.resources.queues.resources.tasks.methods.buffer.parameters.parent.location - resources.projects.resources.locations.resources.queues.resources.tasks.methods.buffer.parameters.parent.pattern - resources.projects.resources.locations.resources.queues.resources.tasks.methods.buffer.parameters.parent.required - resources.projects.resources.locations.resources.queues.resources.tasks.methods.buffer.parameters.parent.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 The following keys were changed: - schemas.Binding.properties.members.description #### cloudtasks:v2beta3 The following keys were changed: - schemas.Binding.properties.members.description #### cloudtasks:v2 The following keys were changed: - schemas.Binding.properties.members.description
1 parent 43bbd5e commit d649e11

File tree

7 files changed

+206
-206
lines changed

7 files changed

+206
-206
lines changed

discovery/cloudtasks-v2.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@
685685
}
686686
}
687687
},
688-
"revision": "20220818",
688+
"revision": "20220909",
689689
"rootUrl": "https://cloudtasks.googleapis.com/",
690690
"schemas": {
691691
"AppEngineHttpRequest": {
@@ -797,7 +797,7 @@
797797
"description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)."
798798
},
799799
"members": {
800-
"description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `[email protected]`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ",
800+
"description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `[email protected]`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ",
801801
"items": {
802802
"type": "string"
803803
},

discovery/cloudtasks-v2beta2.json

+39-39
Original file line numberDiff line numberDiff line change
@@ -179,34 +179,6 @@
179179
"resources": {
180180
"queues": {
181181
"methods": {
182-
"buffer": {
183-
"description": "Note: This feature is in its experimental stage. You must request access to the API through the [Cloud Tasks BufferQueues Experiment Signup form](https://forms.gle/X8Zr5hiXH5tTGFqh8). Creates and buffers a new task without the need to explicitly define a Task message. The queue must be an http queue (i.e., must have HTTP target). This method is used for a simplified application of Cloud Tasks queues in buffer and rate limitting HTTP requests.",
184-
"flatPath": "v2beta2/projects/{projectsId}/locations/{locationsId}/queues/{queuesId}:buffer",
185-
"httpMethod": "POST",
186-
"id": "cloudtasks.projects.locations.queues.buffer",
187-
"parameterOrder": [
188-
"name"
189-
],
190-
"parameters": {
191-
"name": {
192-
"description": "Required. The queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist.",
193-
"location": "path",
194-
"pattern": "^projects/[^/]+/locations/[^/]+/queues/[^/]+$",
195-
"required": true,
196-
"type": "string"
197-
}
198-
},
199-
"path": "v2beta2/{+name}:buffer",
200-
"request": {
201-
"$ref": "BufferQueueRequest"
202-
},
203-
"response": {
204-
"$ref": "BufferQueueResponse"
205-
},
206-
"scopes": [
207-
"https://www.googleapis.com/auth/cloud-platform"
208-
]
209-
},
210182
"create": {
211183
"description": "Creates a queue. Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was dispatched or not. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.",
212184
"flatPath": "v2beta2/projects/{projectsId}/locations/{locationsId}/queues",
@@ -572,6 +544,34 @@
572544
"https://www.googleapis.com/auth/cloud-platform"
573545
]
574546
},
547+
"buffer": {
548+
"description": "Creates and buffers a new task without the need to explicitly define a Task message. The queue must have HTTP target. Note: This feature is in its experimental stage. You must request access to the API through the [Cloud Tasks BufferTasks Experiment Signup form](https://forms.gle/X8Zr5hiXH5tTGFqh8).",
549+
"flatPath": "v2beta2/projects/{projectsId}/locations/{locationsId}/queues/{queuesId}/tasks:buffer",
550+
"httpMethod": "POST",
551+
"id": "cloudtasks.projects.locations.queues.tasks.buffer",
552+
"parameterOrder": [
553+
"parent"
554+
],
555+
"parameters": {
556+
"parent": {
557+
"description": "Required. The parent queue name. For example: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist.",
558+
"location": "path",
559+
"pattern": "^projects/[^/]+/locations/[^/]+/queues/[^/]+$",
560+
"required": true,
561+
"type": "string"
562+
}
563+
},
564+
"path": "v2beta2/{+parent}/tasks:buffer",
565+
"request": {
566+
"$ref": "BufferTaskRequest"
567+
},
568+
"response": {
569+
"$ref": "BufferTaskResponse"
570+
},
571+
"scopes": [
572+
"https://www.googleapis.com/auth/cloud-platform"
573+
]
574+
},
575575
"cancelLease": {
576576
"description": "Cancel a pull task's lease. The worker can use this method to cancel a task's lease by setting its schedule_time to now. This will make the task available to be leased to the next caller of LeaseTasks.",
577577
"flatPath": "v2beta2/projects/{projectsId}/locations/{locationsId}/queues/{queuesId}/tasks/{tasksId}:cancelLease",
@@ -837,7 +837,7 @@
837837
}
838838
}
839839
},
840-
"revision": "20220818",
840+
"revision": "20220909",
841841
"rootUrl": "https://cloudtasks.googleapis.com/",
842842
"schemas": {
843843
"AcknowledgeTaskRequest": {
@@ -972,7 +972,7 @@
972972
"description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)."
973973
},
974974
"members": {
975-
"description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `[email protected]`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ",
975+
"description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `[email protected]`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ",
976976
"items": {
977977
"type": "string"
978978
},
@@ -985,24 +985,24 @@
985985
},
986986
"type": "object"
987987
},
988-
"BufferQueueRequest": {
989-
"description": "Request message for BufferQueue.",
990-
"id": "BufferQueueRequest",
988+
"BufferTaskRequest": {
989+
"description": "Request message for BufferTask.",
990+
"id": "BufferTaskRequest",
991991
"properties": {
992992
"body": {
993993
"$ref": "HttpBody",
994-
"description": "Body of the HTTP request. The body can take any generic value. The value will be written to the HttpRequest of the [Task]."
994+
"description": "Optional. Body of the HTTP request. The body can take any generic value. The value will be written to the HttpRequest of the [Task]."
995995
}
996996
},
997997
"type": "object"
998998
},
999-
"BufferQueueResponse": {
1000-
"description": "Response message for BufferQueue.",
1001-
"id": "BufferQueueResponse",
999+
"BufferTaskResponse": {
1000+
"description": "Response message for BufferTask.",
1001+
"id": "BufferTaskResponse",
10021002
"properties": {
10031003
"task": {
1004-
"description": "The name of the created task. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. TASK_ID is randomly generated and is unique within the queue.",
1005-
"type": "string"
1004+
"$ref": "Task",
1005+
"description": "The created task."
10061006
}
10071007
},
10081008
"type": "object"

0 commit comments

Comments
 (0)