Skip to content

Commit 7949ede

Browse files
feat(workspaceevents): update the API
#### workspaceevents:v1 The following keys were added: - auth.oauth2.scopes.https://www.googleapis.com/auth/chat.users.availability.description - auth.oauth2.scopes.https://www.googleapis.com/auth/chat.users.availability.readonly.description - schemas.DriveOptions.description - schemas.DriveOptions.id - schemas.DriveOptions.properties.includeDescendants.description - schemas.DriveOptions.properties.includeDescendants.type - schemas.DriveOptions.type - schemas.Subscription.properties.driveOptions.$ref - schemas.Subscription.properties.driveOptions.description The following keys were changed: - resources.operations.methods.get.scopes - resources.subscriptions.methods.create.scopes - resources.subscriptions.methods.delete.scopes - resources.subscriptions.methods.get.scopes - resources.subscriptions.methods.list.scopes - resources.subscriptions.methods.patch.scopes - resources.subscriptions.methods.reactivate.scopes
1 parent c0e853b commit 7949ede

2 files changed

Lines changed: 66 additions & 1 deletion

File tree

discovery/workspaceevents-v1.json

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@
4444
"https://www.googleapis.com/auth/chat.spaces.readonly": {
4545
"description": "View chat and spaces in Google Chat"
4646
},
47+
"https://www.googleapis.com/auth/chat.users.availability": {
48+
"description": "See and change your availability status in Google Chat."
49+
},
50+
"https://www.googleapis.com/auth/chat.users.availability.readonly": {
51+
"description": "See your availability status in Google Chat."
52+
},
4753
"https://www.googleapis.com/auth/chat.users.readstate": {
4854
"description": "View and modify last read time for Google Chat conversations"
4955
},
@@ -223,6 +229,8 @@
223229
"https://www.googleapis.com/auth/chat.messages.readonly",
224230
"https://www.googleapis.com/auth/chat.spaces",
225231
"https://www.googleapis.com/auth/chat.spaces.readonly",
232+
"https://www.googleapis.com/auth/chat.users.availability",
233+
"https://www.googleapis.com/auth/chat.users.availability.readonly",
226234
"https://www.googleapis.com/auth/chat.users.readstate",
227235
"https://www.googleapis.com/auth/chat.users.readstate.readonly",
228236
"https://www.googleapis.com/auth/drive",
@@ -272,6 +280,8 @@
272280
"https://www.googleapis.com/auth/chat.messages.readonly",
273281
"https://www.googleapis.com/auth/chat.spaces",
274282
"https://www.googleapis.com/auth/chat.spaces.readonly",
283+
"https://www.googleapis.com/auth/chat.users.availability",
284+
"https://www.googleapis.com/auth/chat.users.availability.readonly",
275285
"https://www.googleapis.com/auth/chat.users.readstate",
276286
"https://www.googleapis.com/auth/chat.users.readstate.readonly",
277287
"https://www.googleapis.com/auth/drive",
@@ -329,6 +339,8 @@
329339
"https://www.googleapis.com/auth/chat.messages.readonly",
330340
"https://www.googleapis.com/auth/chat.spaces",
331341
"https://www.googleapis.com/auth/chat.spaces.readonly",
342+
"https://www.googleapis.com/auth/chat.users.availability",
343+
"https://www.googleapis.com/auth/chat.users.availability.readonly",
332344
"https://www.googleapis.com/auth/chat.users.readstate",
333345
"https://www.googleapis.com/auth/chat.users.readstate.readonly",
334346
"https://www.googleapis.com/auth/drive",
@@ -371,6 +383,8 @@
371383
"https://www.googleapis.com/auth/chat.messages.readonly",
372384
"https://www.googleapis.com/auth/chat.spaces",
373385
"https://www.googleapis.com/auth/chat.spaces.readonly",
386+
"https://www.googleapis.com/auth/chat.users.availability",
387+
"https://www.googleapis.com/auth/chat.users.availability.readonly",
374388
"https://www.googleapis.com/auth/chat.users.readstate",
375389
"https://www.googleapis.com/auth/chat.users.readstate.readonly",
376390
"https://www.googleapis.com/auth/drive",
@@ -420,6 +434,8 @@
420434
"https://www.googleapis.com/auth/chat.messages.readonly",
421435
"https://www.googleapis.com/auth/chat.spaces",
422436
"https://www.googleapis.com/auth/chat.spaces.readonly",
437+
"https://www.googleapis.com/auth/chat.users.availability",
438+
"https://www.googleapis.com/auth/chat.users.availability.readonly",
423439
"https://www.googleapis.com/auth/chat.users.readstate",
424440
"https://www.googleapis.com/auth/chat.users.readstate.readonly",
425441
"https://www.googleapis.com/auth/drive",
@@ -480,6 +496,8 @@
480496
"https://www.googleapis.com/auth/chat.messages.readonly",
481497
"https://www.googleapis.com/auth/chat.spaces",
482498
"https://www.googleapis.com/auth/chat.spaces.readonly",
499+
"https://www.googleapis.com/auth/chat.users.availability",
500+
"https://www.googleapis.com/auth/chat.users.availability.readonly",
483501
"https://www.googleapis.com/auth/chat.users.readstate",
484502
"https://www.googleapis.com/auth/chat.users.readstate.readonly",
485503
"https://www.googleapis.com/auth/drive",
@@ -529,6 +547,8 @@
529547
"https://www.googleapis.com/auth/chat.messages.readonly",
530548
"https://www.googleapis.com/auth/chat.spaces",
531549
"https://www.googleapis.com/auth/chat.spaces.readonly",
550+
"https://www.googleapis.com/auth/chat.users.availability",
551+
"https://www.googleapis.com/auth/chat.users.availability.readonly",
532552
"https://www.googleapis.com/auth/chat.users.readstate",
533553
"https://www.googleapis.com/auth/chat.users.readstate.readonly",
534554
"https://www.googleapis.com/auth/drive",
@@ -765,7 +785,7 @@
765785
}
766786
}
767787
},
768-
"revision": "20260422",
788+
"revision": "20260517",
769789
"rootUrl": "https://workspaceevents.googleapis.com/",
770790
"schemas": {
771791
"Artifact": {
@@ -851,6 +871,17 @@
851871
},
852872
"type": "object"
853873
},
874+
"DriveOptions": {
875+
"description": "Additional supported options for serving Drive events.",
876+
"id": "DriveOptions",
877+
"properties": {
878+
"includeDescendants": {
879+
"description": "Optional. Immutable. For subscriptions to Google Drive events, whether to receive events about Drive files that are children of the target folder or shared drive. * If `false`, the subscription only receives events about changes to the folder or shared drive that's specified as the `targetResource`. * If `true`, the `mimeType` field of the `file` resource must be set to `application/vnd.google-apps.folder`. For details, see [Google Drive event types](https://developers.google.com/workspace/events/guides/events-drive#event-types).",
880+
"type": "boolean"
881+
}
882+
},
883+
"type": "object"
884+
},
854885
"Empty": {
855886
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }",
856887
"id": "Empty",
@@ -1197,6 +1228,10 @@
11971228
"readOnly": true,
11981229
"type": "string"
11991230
},
1231+
"driveOptions": {
1232+
"$ref": "DriveOptions",
1233+
"description": "Optional. Features that are supported only for subscriptions on Drive resources."
1234+
},
12001235
"etag": {
12011236
"description": "Optional. This checksum is computed by the server based on the value of other fields, and might be sent on update requests to ensure the client has an up-to-date value before proceeding.",
12021237
"type": "string"

src/apis/workspaceevents/v1.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,15 @@ export namespace workspaceevents_v1 {
184184
export interface Schema$DataPart {
185185
data?: {[key: string]: any} | null;
186186
}
187+
/**
188+
* Additional supported options for serving Drive events.
189+
*/
190+
export interface Schema$DriveOptions {
191+
/**
192+
* Optional. Immutable. For subscriptions to Google Drive events, whether to receive events about Drive files that are children of the target folder or shared drive. * If `false`, the subscription only receives events about changes to the folder or shared drive that's specified as the `targetResource`. * If `true`, the `mimeType` field of the `file` resource must be set to `application/vnd.google-apps.folder`. For details, see [Google Drive event types](https://developers.google.com/workspace/events/guides/events-drive#event-types).
193+
*/
194+
includeDescendants?: boolean | null;
195+
}
187196
/**
188197
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
189198
*/
@@ -417,6 +426,10 @@ export namespace workspaceevents_v1 {
417426
* Output only. The time when the subscription is created.
418427
*/
419428
createTime?: string | null;
429+
/**
430+
* Optional. Features that are supported only for subscriptions on Drive resources.
431+
*/
432+
driveOptions?: Schema$DriveOptions;
420433
/**
421434
* Optional. This checksum is computed by the server based on the value of other fields, and might be sent on update requests to ensure the client has an up-to-date value before proceeding.
422435
*/
@@ -786,6 +799,8 @@ export namespace workspaceevents_v1 {
786799
* 'https://www.googleapis.com/auth/chat.messages.readonly',
787800
* 'https://www.googleapis.com/auth/chat.spaces',
788801
* 'https://www.googleapis.com/auth/chat.spaces.readonly',
802+
* 'https://www.googleapis.com/auth/chat.users.availability',
803+
* 'https://www.googleapis.com/auth/chat.users.availability.readonly',
789804
* 'https://www.googleapis.com/auth/chat.users.readstate',
790805
* 'https://www.googleapis.com/auth/chat.users.readstate.readonly',
791806
* 'https://www.googleapis.com/auth/drive',
@@ -961,6 +976,8 @@ export namespace workspaceevents_v1 {
961976
* 'https://www.googleapis.com/auth/chat.messages.readonly',
962977
* 'https://www.googleapis.com/auth/chat.spaces',
963978
* 'https://www.googleapis.com/auth/chat.spaces.readonly',
979+
* 'https://www.googleapis.com/auth/chat.users.availability',
980+
* 'https://www.googleapis.com/auth/chat.users.availability.readonly',
964981
* 'https://www.googleapis.com/auth/chat.users.readstate',
965982
* 'https://www.googleapis.com/auth/chat.users.readstate.readonly',
966983
* 'https://www.googleapis.com/auth/drive',
@@ -988,6 +1005,7 @@ export namespace workspaceevents_v1 {
9881005
* // {
9891006
* // "authority": "my_authority",
9901007
* // "createTime": "my_createTime",
1008+
* // "driveOptions": {},
9911009
* // "etag": "my_etag",
9921010
* // "eventTypes": [],
9931011
* // "expireTime": "my_expireTime",
@@ -1143,6 +1161,8 @@ export namespace workspaceevents_v1 {
11431161
* 'https://www.googleapis.com/auth/chat.messages.readonly',
11441162
* 'https://www.googleapis.com/auth/chat.spaces',
11451163
* 'https://www.googleapis.com/auth/chat.spaces.readonly',
1164+
* 'https://www.googleapis.com/auth/chat.users.availability',
1165+
* 'https://www.googleapis.com/auth/chat.users.availability.readonly',
11461166
* 'https://www.googleapis.com/auth/chat.users.readstate',
11471167
* 'https://www.googleapis.com/auth/chat.users.readstate.readonly',
11481168
* 'https://www.googleapis.com/auth/drive',
@@ -1307,6 +1327,8 @@ export namespace workspaceevents_v1 {
13071327
* 'https://www.googleapis.com/auth/chat.messages.readonly',
13081328
* 'https://www.googleapis.com/auth/chat.spaces',
13091329
* 'https://www.googleapis.com/auth/chat.spaces.readonly',
1330+
* 'https://www.googleapis.com/auth/chat.users.availability',
1331+
* 'https://www.googleapis.com/auth/chat.users.availability.readonly',
13101332
* 'https://www.googleapis.com/auth/chat.users.readstate',
13111333
* 'https://www.googleapis.com/auth/chat.users.readstate.readonly',
13121334
* 'https://www.googleapis.com/auth/drive',
@@ -1334,6 +1356,7 @@ export namespace workspaceevents_v1 {
13341356
* // {
13351357
* // "authority": "my_authority",
13361358
* // "createTime": "my_createTime",
1359+
* // "driveOptions": {},
13371360
* // "etag": "my_etag",
13381361
* // "eventTypes": [],
13391362
* // "expireTime": "my_expireTime",
@@ -1477,6 +1500,8 @@ export namespace workspaceevents_v1 {
14771500
* 'https://www.googleapis.com/auth/chat.messages.readonly',
14781501
* 'https://www.googleapis.com/auth/chat.spaces',
14791502
* 'https://www.googleapis.com/auth/chat.spaces.readonly',
1503+
* 'https://www.googleapis.com/auth/chat.users.availability',
1504+
* 'https://www.googleapis.com/auth/chat.users.availability.readonly',
14801505
* 'https://www.googleapis.com/auth/chat.users.readstate',
14811506
* 'https://www.googleapis.com/auth/chat.users.readstate.readonly',
14821507
* 'https://www.googleapis.com/auth/drive',
@@ -1644,6 +1669,8 @@ export namespace workspaceevents_v1 {
16441669
* 'https://www.googleapis.com/auth/chat.messages.readonly',
16451670
* 'https://www.googleapis.com/auth/chat.spaces',
16461671
* 'https://www.googleapis.com/auth/chat.spaces.readonly',
1672+
* 'https://www.googleapis.com/auth/chat.users.availability',
1673+
* 'https://www.googleapis.com/auth/chat.users.availability.readonly',
16471674
* 'https://www.googleapis.com/auth/chat.users.readstate',
16481675
* 'https://www.googleapis.com/auth/chat.users.readstate.readonly',
16491676
* 'https://www.googleapis.com/auth/drive',
@@ -1675,6 +1702,7 @@ export namespace workspaceevents_v1 {
16751702
* // {
16761703
* // "authority": "my_authority",
16771704
* // "createTime": "my_createTime",
1705+
* // "driveOptions": {},
16781706
* // "etag": "my_etag",
16791707
* // "eventTypes": [],
16801708
* // "expireTime": "my_expireTime",
@@ -1834,6 +1862,8 @@ export namespace workspaceevents_v1 {
18341862
* 'https://www.googleapis.com/auth/chat.messages.readonly',
18351863
* 'https://www.googleapis.com/auth/chat.spaces',
18361864
* 'https://www.googleapis.com/auth/chat.spaces.readonly',
1865+
* 'https://www.googleapis.com/auth/chat.users.availability',
1866+
* 'https://www.googleapis.com/auth/chat.users.availability.readonly',
18371867
* 'https://www.googleapis.com/auth/chat.users.readstate',
18381868
* 'https://www.googleapis.com/auth/chat.users.readstate.readonly',
18391869
* 'https://www.googleapis.com/auth/drive',

0 commit comments

Comments
 (0)