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.Binding.properties.bindingId.description

The following keys were added:
- resources.projects.resources.locations.resources.queues.methods.list.parameters.readMask.description
- resources.projects.resources.locations.resources.queues.methods.list.parameters.readMask.format
- resources.projects.resources.locations.resources.queues.methods.list.parameters.readMask.location
- resources.projects.resources.locations.resources.queues.methods.list.parameters.readMask.type

The following keys were changed:
- resources.projects.resources.locations.resources.queues.methods.get.parameters.readMask.description

#### cloudtasks:v2beta3
The following keys were deleted:
- schemas.Binding.properties.bindingId.description

#### cloudtasks:v2
The following keys were deleted:
- schemas.Binding.properties.bindingId.description
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Nov 9, 2020
1 parent 3539f67 commit 5ad7200
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
3 changes: 1 addition & 2 deletions discovery/cloudtasks-v2.json
Expand Up @@ -685,7 +685,7 @@
}
}
},
"revision": "20200924",
"revision": "20201030",
"rootUrl": "https://cloudtasks.googleapis.com/",
"schemas": {
"AppEngineHttpRequest": {
Expand Down Expand Up @@ -793,7 +793,6 @@
"id": "Binding",
"properties": {
"bindingId": {
"description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.",
"type": "string"
},
"condition": {
Expand Down
11 changes: 8 additions & 3 deletions discovery/cloudtasks-v2beta2.json
Expand Up @@ -249,7 +249,7 @@
"type": "string"
},
"readMask": {
"description": "Optional. Read mask is used for a more granular control over what the API returns. By it includes all fields in Queue except for stats.",
"description": "Optional. Read mask is used for a more granular control over what the API returns. If the mask is not present all fields will be returned except [Queue.stats], if the mask is set to \"*\" all fields including [Queue.stats] will be returned, otherwise only the fields explicitly specified in the mask will be returned.",
"format": "google-fieldmask",
"location": "query",
"type": "string"
Expand Down Expand Up @@ -322,6 +322,12 @@
"pattern": "^projects/[^/]+/locations/[^/]+$",
"required": true,
"type": "string"
},
"readMask": {
"description": "Optional. Read mask is used for a more granular control over what the API returns. If the mask is not present all fields will be returned except [Queue.stats], if the mask is set to \"*\" all fields including [Queue.stats] will be returned, otherwise only the fields explicitly specified in the mask will be returned.",
"format": "google-fieldmask",
"location": "query",
"type": "string"
}
},
"path": "v2beta2/{+parent}/queues",
Expand Down Expand Up @@ -803,7 +809,7 @@
}
}
},
"revision": "20200924",
"revision": "20201030",
"rootUrl": "https://cloudtasks.googleapis.com/",
"schemas": {
"AcknowledgeTaskRequest": {
Expand Down Expand Up @@ -930,7 +936,6 @@
"id": "Binding",
"properties": {
"bindingId": {
"description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.",
"type": "string"
},
"condition": {
Expand Down
3 changes: 1 addition & 2 deletions discovery/cloudtasks-v2beta3.json
Expand Up @@ -685,7 +685,7 @@
}
}
},
"revision": "20200924",
"revision": "20201030",
"rootUrl": "https://cloudtasks.googleapis.com/",
"schemas": {
"AppEngineHttpQueue": {
Expand Down Expand Up @@ -804,7 +804,6 @@
"id": "Binding",
"properties": {
"bindingId": {
"description": "A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.",
"type": "string"
},
"condition": {
Expand Down
3 changes: 0 additions & 3 deletions src/apis/cloudtasks/v2.ts
Expand Up @@ -194,9 +194,6 @@ export namespace cloudtasks_v2 {
* Associates `members` with a `role`.
*/
export interface Schema$Binding {
/**
* A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.
*/
bindingId?: string | null;
/**
* 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 members 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).
Expand Down
13 changes: 8 additions & 5 deletions src/apis/cloudtasks/v2beta2.ts
Expand Up @@ -212,9 +212,6 @@ export namespace cloudtasks_v2beta2 {
* Associates `members` with a `role`.
*/
export interface Schema$Binding {
/**
* A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.
*/
bindingId?: string | null;
/**
* 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 members 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).
Expand Down Expand Up @@ -1268,7 +1265,7 @@ export namespace cloudtasks_v2beta2 {
* const res = await cloudtasks.projects.locations.queues.get({
* // Required. The resource name of the queue. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
* name: 'projects/my-project/locations/my-location/queues/my-queue',
* // Optional. Read mask is used for a more granular control over what the API returns. By it includes all fields in Queue except for stats.
* // Optional. Read mask is used for a more granular control over what the API returns. If the mask is not present all fields will be returned except [Queue.stats], if the mask is set to "*" all fields including [Queue.stats] will be returned, otherwise only the fields explicitly specified in the mask will be returned.
* readMask: 'placeholder-value',
* });
* console.log(res.data);
Expand Down Expand Up @@ -1547,6 +1544,8 @@ export namespace cloudtasks_v2beta2 {
* pageToken: 'placeholder-value',
* // Required. The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`
* parent: 'projects/my-project/locations/my-location',
* // Optional. Read mask is used for a more granular control over what the API returns. If the mask is not present all fields will be returned except [Queue.stats], if the mask is set to "*" all fields including [Queue.stats] will be returned, otherwise only the fields explicitly specified in the mask will be returned.
* readMask: 'placeholder-value',
* });
* console.log(res.data);
*
Expand Down Expand Up @@ -2532,7 +2531,7 @@ export namespace cloudtasks_v2beta2 {
*/
name?: string;
/**
* Optional. Read mask is used for a more granular control over what the API returns. By it includes all fields in Queue except for stats.
* Optional. Read mask is used for a more granular control over what the API returns. If the mask is not present all fields will be returned except [Queue.stats], if the mask is set to "*" all fields including [Queue.stats] will be returned, otherwise only the fields explicitly specified in the mask will be returned.
*/
readMask?: string;
}
Expand Down Expand Up @@ -2566,6 +2565,10 @@ export namespace cloudtasks_v2beta2 {
* Required. The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`
*/
parent?: string;
/**
* Optional. Read mask is used for a more granular control over what the API returns. If the mask is not present all fields will be returned except [Queue.stats], if the mask is set to "*" all fields including [Queue.stats] will be returned, otherwise only the fields explicitly specified in the mask will be returned.
*/
readMask?: string;
}
export interface Params$Resource$Projects$Locations$Queues$Patch
extends StandardParameters {
Expand Down
3 changes: 0 additions & 3 deletions src/apis/cloudtasks/v2beta3.ts
Expand Up @@ -203,9 +203,6 @@ export namespace cloudtasks_v2beta3 {
* Associates `members` with a `role`.
*/
export interface Schema$Binding {
/**
* A client-specified ID for this binding. Expected to be globally unique to support the internal bindings-by-ID API.
*/
bindingId?: string | null;
/**
* 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 members 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).
Expand Down

0 comments on commit 5ad7200

Please sign in to comment.