Skip to content

Commit 08f87fe

Browse files
feat(workspaceevents): update the API
#### workspaceevents:v1 The following keys were added: - 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
1 parent aee14eb commit 08f87fe

2 files changed

Lines changed: 32 additions & 1 deletion

File tree

discovery/workspaceevents-v1.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@
765765
}
766766
}
767767
},
768-
"revision": "20260422",
768+
"revision": "20260510",
769769
"rootUrl": "https://workspaceevents.googleapis.com/",
770770
"schemas": {
771771
"Artifact": {
@@ -851,6 +851,17 @@
851851
},
852852
"type": "object"
853853
},
854+
"DriveOptions": {
855+
"description": "Additional supported options for serving Drive events.",
856+
"id": "DriveOptions",
857+
"properties": {
858+
"includeDescendants": {
859+
"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).",
860+
"type": "boolean"
861+
}
862+
},
863+
"type": "object"
864+
},
854865
"Empty": {
855866
"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); }",
856867
"id": "Empty",
@@ -1197,6 +1208,10 @@
11971208
"readOnly": true,
11981209
"type": "string"
11991210
},
1211+
"driveOptions": {
1212+
"$ref": "DriveOptions",
1213+
"description": "Optional. Features that are supported only for subscriptions on Drive resources."
1214+
},
12001215
"etag": {
12011216
"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.",
12021217
"type": "string"

src/apis/workspaceevents/v1.ts

Lines changed: 16 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
*/
@@ -988,6 +1001,7 @@ export namespace workspaceevents_v1 {
9881001
* // {
9891002
* // "authority": "my_authority",
9901003
* // "createTime": "my_createTime",
1004+
* // "driveOptions": {},
9911005
* // "etag": "my_etag",
9921006
* // "eventTypes": [],
9931007
* // "expireTime": "my_expireTime",
@@ -1334,6 +1348,7 @@ export namespace workspaceevents_v1 {
13341348
* // {
13351349
* // "authority": "my_authority",
13361350
* // "createTime": "my_createTime",
1351+
* // "driveOptions": {},
13371352
* // "etag": "my_etag",
13381353
* // "eventTypes": [],
13391354
* // "expireTime": "my_expireTime",
@@ -1675,6 +1690,7 @@ export namespace workspaceevents_v1 {
16751690
* // {
16761691
* // "authority": "my_authority",
16771692
* // "createTime": "my_createTime",
1693+
* // "driveOptions": {},
16781694
* // "etag": "my_etag",
16791695
* // "eventTypes": [],
16801696
* // "expireTime": "my_expireTime",

0 commit comments

Comments
 (0)