Skip to content

Commit 2f97f00

Browse files
feat(workspaceevents): update the API
#### workspaceevents:v1 The following keys were added: - resources.tasks.methods.get.parameters.tenant.description - resources.tasks.methods.get.parameters.tenant.location - resources.tasks.methods.get.parameters.tenant.type - resources.tasks.methods.subscribe.parameters.tenant.description - resources.tasks.methods.subscribe.parameters.tenant.location - resources.tasks.methods.subscribe.parameters.tenant.type - resources.tasks.resources.pushNotificationConfigs.methods.create.parameters.tenant.description - resources.tasks.resources.pushNotificationConfigs.methods.create.parameters.tenant.location - resources.tasks.resources.pushNotificationConfigs.methods.create.parameters.tenant.type - resources.tasks.resources.pushNotificationConfigs.methods.delete.parameters.tenant.description - resources.tasks.resources.pushNotificationConfigs.methods.delete.parameters.tenant.location - resources.tasks.resources.pushNotificationConfigs.methods.delete.parameters.tenant.type - resources.tasks.resources.pushNotificationConfigs.methods.get.parameters.tenant.description - resources.tasks.resources.pushNotificationConfigs.methods.get.parameters.tenant.location - resources.tasks.resources.pushNotificationConfigs.methods.get.parameters.tenant.type - resources.tasks.resources.pushNotificationConfigs.methods.list.parameters.tenant.description - resources.tasks.resources.pushNotificationConfigs.methods.list.parameters.tenant.location - resources.tasks.resources.pushNotificationConfigs.methods.list.parameters.tenant.type - schemas.CancelTaskRequest.properties.tenant.description - schemas.CancelTaskRequest.properties.tenant.type - schemas.SendMessageRequest.properties.tenant.description - schemas.SendMessageRequest.properties.tenant.type
1 parent 38ea295 commit 2f97f00

File tree

2 files changed

+92
-5
lines changed

2 files changed

+92
-5
lines changed

discovery/workspaceevents-v1.json

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,11 @@
558558
"pattern": "^tasks/[^/]+$",
559559
"required": true,
560560
"type": "string"
561+
},
562+
"tenant": {
563+
"description": "Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release.",
564+
"location": "query",
565+
"type": "string"
561566
}
562567
},
563568
"path": "v1/{+name}",
@@ -580,6 +585,11 @@
580585
"pattern": "^tasks/[^/]+$",
581586
"required": true,
582587
"type": "string"
588+
},
589+
"tenant": {
590+
"description": "Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release.",
591+
"location": "query",
592+
"type": "string"
583593
}
584594
},
585595
"path": "v1/{+name}:subscribe",
@@ -611,6 +621,11 @@
611621
"pattern": "^tasks/[^/]+/pushNotificationConfigs$",
612622
"required": true,
613623
"type": "string"
624+
},
625+
"tenant": {
626+
"description": "Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release.",
627+
"location": "query",
628+
"type": "string"
614629
}
615630
},
616631
"path": "v1/{+parent}",
@@ -636,6 +651,11 @@
636651
"pattern": "^tasks/[^/]+/pushNotificationConfigs/[^/]+$",
637652
"required": true,
638653
"type": "string"
654+
},
655+
"tenant": {
656+
"description": "Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release.",
657+
"location": "query",
658+
"type": "string"
639659
}
640660
},
641661
"path": "v1/{+name}",
@@ -658,6 +678,11 @@
658678
"pattern": "^tasks/[^/]+/pushNotificationConfigs/[^/]+$",
659679
"required": true,
660680
"type": "string"
681+
},
682+
"tenant": {
683+
"description": "Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release.",
684+
"location": "query",
685+
"type": "string"
661686
}
662687
},
663688
"path": "v1/{+name}",
@@ -691,6 +716,11 @@
691716
"pattern": "^tasks/[^/]+$",
692717
"required": true,
693718
"type": "string"
719+
},
720+
"tenant": {
721+
"description": "Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release.",
722+
"location": "query",
723+
"type": "string"
694724
}
695725
},
696726
"path": "v1/{+parent}/pushNotificationConfigs",
@@ -703,7 +733,7 @@
703733
}
704734
}
705735
},
706-
"revision": "20251118",
736+
"revision": "20251216",
707737
"rootUrl": "https://workspaceevents.googleapis.com/",
708738
"schemas": {
709739
"Artifact": {
@@ -767,7 +797,12 @@
767797
},
768798
"CancelTaskRequest": {
769799
"id": "CancelTaskRequest",
770-
"properties": {},
800+
"properties": {
801+
"tenant": {
802+
"description": "Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release.",
803+
"type": "string"
804+
}
805+
},
771806
"type": "object"
772807
},
773808
"DataPart": {
@@ -1061,6 +1096,10 @@
10611096
},
10621097
"description": "Optional metadata for the request.",
10631098
"type": "object"
1099+
},
1100+
"tenant": {
1101+
"description": "Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release.",
1102+
"type": "string"
10641103
}
10651104
},
10661105
"type": "object"

src/apis/workspaceevents/v1.ts

Lines changed: 51 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,12 @@ export namespace workspaceevents_v1 {
172172
*/
173173
schemes?: string[] | null;
174174
}
175-
export interface Schema$CancelTaskRequest {}
175+
export interface Schema$CancelTaskRequest {
176+
/**
177+
* Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release.
178+
*/
179+
tenant?: string | null;
180+
}
176181
/**
177182
* DataPart represents a structured blob. This is most commonly a JSON payload.
178183
*/
@@ -369,6 +374,10 @@ export namespace workspaceevents_v1 {
369374
* Optional metadata for the request.
370375
*/
371376
metadata?: {[key: string]: any} | null;
377+
/**
378+
* Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release.
379+
*/
380+
tenant?: string | null;
372381
}
373382
/**
374383
* The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
@@ -615,7 +624,8 @@ export namespace workspaceevents_v1 {
615624
* // {
616625
* // "configuration": {},
617626
* // "message": {},
618-
* // "metadata": {}
627+
* // "metadata": {},
628+
* // "tenant": "my_tenant"
619629
* // }
620630
* },
621631
* });
@@ -2053,7 +2063,9 @@ export namespace workspaceevents_v1 {
20532063
* // Request body metadata
20542064
* requestBody: {
20552065
* // request body parameters
2056-
* // {}
2066+
* // {
2067+
* // "tenant": "my_tenant"
2068+
* // }
20572069
* },
20582070
* });
20592071
* console.log(res.data);
@@ -2196,6 +2208,8 @@ export namespace workspaceevents_v1 {
21962208
* historyLength: 'placeholder-value',
21972209
* // Required. The resource name of the task. Format: tasks/{task_id\}
21982210
* name: 'tasks/my-task',
2211+
* // Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release.
2212+
* tenant: 'placeholder-value',
21992213
* });
22002214
* console.log(res.data);
22012215
*
@@ -2335,6 +2349,8 @@ export namespace workspaceevents_v1 {
23352349
* const res = await workspaceevents.tasks.subscribe({
23362350
* // The resource name of the task to subscribe to. Format: tasks/{task_id\}
23372351
* name: 'tasks/my-task',
2352+
* // Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release.
2353+
* tenant: 'placeholder-value',
23382354
* });
23392355
* console.log(res.data);
23402356
*
@@ -2463,12 +2479,20 @@ export namespace workspaceevents_v1 {
24632479
* Required. The resource name of the task. Format: tasks/{task_id\}
24642480
*/
24652481
name?: string;
2482+
/**
2483+
* Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release.
2484+
*/
2485+
tenant?: string;
24662486
}
24672487
export interface Params$Resource$Tasks$Subscribe extends StandardParameters {
24682488
/**
24692489
* The resource name of the task to subscribe to. Format: tasks/{task_id\}
24702490
*/
24712491
name?: string;
2492+
/**
2493+
* Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release.
2494+
*/
2495+
tenant?: string;
24722496
}
24732497

24742498
export class Resource$Tasks$Pushnotificationconfigs {
@@ -2512,6 +2536,8 @@ export namespace workspaceevents_v1 {
25122536
* configId: 'placeholder-value',
25132537
* // Required. The parent task resource for this config. Format: tasks/{task_id\}
25142538
* parent: 'tasks/my-task/pushNotificationConfigs',
2539+
* // Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release.
2540+
* tenant: 'placeholder-value',
25152541
*
25162542
* // Request body metadata
25172543
* requestBody: {
@@ -2661,6 +2687,8 @@ export namespace workspaceevents_v1 {
26612687
* const res = await workspaceevents.tasks.pushNotificationConfigs.delete({
26622688
* // The resource name of the config to delete. Format: tasks/{task_id\}/pushNotificationConfigs/{config_id\}
26632689
* name: 'tasks/my-task/pushNotificationConfigs/my-pushNotificationConfig',
2690+
* // Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release.
2691+
* tenant: 'placeholder-value',
26642692
* });
26652693
* console.log(res.data);
26662694
*
@@ -2794,6 +2822,8 @@ export namespace workspaceevents_v1 {
27942822
* const res = await workspaceevents.tasks.pushNotificationConfigs.get({
27952823
* // The resource name of the config to retrieve. Format: tasks/{task_id\}/pushNotificationConfigs/{config_id\}
27962824
* name: 'tasks/my-task/pushNotificationConfigs/my-pushNotificationConfig',
2825+
* // Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release.
2826+
* tenant: 'placeholder-value',
27972827
* });
27982828
* console.log(res.data);
27992829
*
@@ -2938,6 +2968,8 @@ export namespace workspaceevents_v1 {
29382968
* pageToken: 'placeholder-value',
29392969
* // The parent task resource. Format: tasks/{task_id\}
29402970
* parent: 'tasks/my-task',
2971+
* // Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release.
2972+
* tenant: 'placeholder-value',
29412973
* });
29422974
* console.log(res.data);
29432975
*
@@ -3064,6 +3096,10 @@ export namespace workspaceevents_v1 {
30643096
* Required. The parent task resource for this config. Format: tasks/{task_id\}
30653097
*/
30663098
parent?: string;
3099+
/**
3100+
* Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release.
3101+
*/
3102+
tenant?: string;
30673103

30683104
/**
30693105
* Request body metadata
@@ -3075,12 +3111,20 @@ export namespace workspaceevents_v1 {
30753111
* The resource name of the config to delete. Format: tasks/{task_id\}/pushNotificationConfigs/{config_id\}
30763112
*/
30773113
name?: string;
3114+
/**
3115+
* Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release.
3116+
*/
3117+
tenant?: string;
30783118
}
30793119
export interface Params$Resource$Tasks$Pushnotificationconfigs$Get extends StandardParameters {
30803120
/**
30813121
* The resource name of the config to retrieve. Format: tasks/{task_id\}/pushNotificationConfigs/{config_id\}
30823122
*/
30833123
name?: string;
3124+
/**
3125+
* Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release.
3126+
*/
3127+
tenant?: string;
30843128
}
30853129
export interface Params$Resource$Tasks$Pushnotificationconfigs$List extends StandardParameters {
30863130
/**
@@ -3095,5 +3139,9 @@ export namespace workspaceevents_v1 {
30953139
* The parent task resource. Format: tasks/{task_id\}
30963140
*/
30973141
parent?: string;
3142+
/**
3143+
* Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release.
3144+
*/
3145+
tenant?: string;
30983146
}
30993147
}

0 commit comments

Comments
 (0)