Skip to content

Commit

Permalink
feat(workspaceevents): update the API
Browse files Browse the repository at this point in the history
#### workspaceevents:v1

The following keys were added:
- auth.oauth2.scopes.https://www.googleapis.com/auth/drive.description
- auth.oauth2.scopes.https://www.googleapis.com/auth/drive.file.description
- auth.oauth2.scopes.https://www.googleapis.com/auth/drive.metadata.description
- auth.oauth2.scopes.https://www.googleapis.com/auth/drive.metadata.readonly.description
- auth.oauth2.scopes.https://www.googleapis.com/auth/drive.readonly.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.parameters.name.description
- resources.subscriptions.methods.patch.scopes
- resources.subscriptions.methods.reactivate.description
- resources.subscriptions.methods.reactivate.scopes
- schemas.Subscription.properties.name.description
  • Loading branch information
yoshi-automation committed Jan 8, 2025
1 parent 398fd66 commit 8fc9a4b
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 7 deletions.
58 changes: 54 additions & 4 deletions discovery/workspaceevents-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,21 @@
"https://www.googleapis.com/auth/chat.spaces.readonly": {
"description": "View chat and spaces in Google Chat"
},
"https://www.googleapis.com/auth/drive": {
"description": "See, edit, create, and delete all of your Google Drive files"
},
"https://www.googleapis.com/auth/drive.file": {
"description": "See, edit, create, and delete only the specific Google Drive files you use with this app"
},
"https://www.googleapis.com/auth/drive.metadata": {
"description": "View and manage metadata of files in your Google Drive"
},
"https://www.googleapis.com/auth/drive.metadata.readonly": {
"description": "See information about your Google Drive files"
},
"https://www.googleapis.com/auth/drive.readonly": {
"description": "See and download all your Google Drive files"
},
"https://www.googleapis.com/auth/meetings.space.created": {
"description": "Create, edit, and see information about your Google Meet conferences created by the app."
},
Expand Down Expand Up @@ -168,6 +183,11 @@
"https://www.googleapis.com/auth/chat.messages.readonly",
"https://www.googleapis.com/auth/chat.spaces",
"https://www.googleapis.com/auth/chat.spaces.readonly",
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.readonly",
"https://www.googleapis.com/auth/meetings.space.created",
"https://www.googleapis.com/auth/meetings.space.readonly"
]
Expand Down Expand Up @@ -205,6 +225,11 @@
"https://www.googleapis.com/auth/chat.messages.readonly",
"https://www.googleapis.com/auth/chat.spaces",
"https://www.googleapis.com/auth/chat.spaces.readonly",
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.readonly",
"https://www.googleapis.com/auth/meetings.space.created",
"https://www.googleapis.com/auth/meetings.space.readonly"
]
Expand Down Expand Up @@ -255,6 +280,11 @@
"https://www.googleapis.com/auth/chat.messages.readonly",
"https://www.googleapis.com/auth/chat.spaces",
"https://www.googleapis.com/auth/chat.spaces.readonly",
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.readonly",
"https://www.googleapis.com/auth/meetings.space.created",
"https://www.googleapis.com/auth/meetings.space.readonly"
]
Expand Down Expand Up @@ -290,6 +320,11 @@
"https://www.googleapis.com/auth/chat.messages.readonly",
"https://www.googleapis.com/auth/chat.spaces",
"https://www.googleapis.com/auth/chat.spaces.readonly",
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.readonly",
"https://www.googleapis.com/auth/meetings.space.created",
"https://www.googleapis.com/auth/meetings.space.readonly"
]
Expand Down Expand Up @@ -332,6 +367,11 @@
"https://www.googleapis.com/auth/chat.messages.readonly",
"https://www.googleapis.com/auth/chat.spaces",
"https://www.googleapis.com/auth/chat.spaces.readonly",
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.readonly",
"https://www.googleapis.com/auth/meetings.space.created",
"https://www.googleapis.com/auth/meetings.space.readonly"
]
Expand All @@ -346,7 +386,7 @@
],
"parameters": {
"name": {
"description": "Optional. Immutable. Identifier. Resource name of the subscription. Format: `subscriptions/{subscription}`",
"description": "Identifier. Resource name of the subscription. Format: `subscriptions/{subscription}`",
"location": "path",
"pattern": "^subscriptions/[^/]+$",
"required": true,
Expand Down Expand Up @@ -380,12 +420,17 @@
"https://www.googleapis.com/auth/chat.messages.readonly",
"https://www.googleapis.com/auth/chat.spaces",
"https://www.googleapis.com/auth/chat.spaces.readonly",
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.readonly",
"https://www.googleapis.com/auth/meetings.space.created",
"https://www.googleapis.com/auth/meetings.space.readonly"
]
},
"reactivate": {
"description": "[Developer Preview](https://developers.google.com/workspace/preview): Reactivates a suspended Google Workspace subscription. This method resets your subscription's `State` field to `ACTIVE`. Before you use this method, you must fix the error that suspended the subscription. To learn how to use this method, see [Reactivate a Google Workspace subscription](https://developers.google.com/workspace/events/guides/reactivate-subscription).",
"description": "[Developer Preview](https://developers.google.com/workspace/preview): Reactivates a suspended Google Workspace subscription. This method resets your subscription's `State` field to `ACTIVE`. Before you use this method, you must fix the error that suspended the subscription. This method will ignore or reject any subscription that isn't currently in a suspended state. To learn how to use this method, see [Reactivate a Google Workspace subscription](https://developers.google.com/workspace/events/guides/reactivate-subscription).",
"flatPath": "v1/subscriptions/{subscriptionsId}:reactivate",
"httpMethod": "POST",
"id": "workspaceevents.subscriptions.reactivate",
Expand Down Expand Up @@ -417,14 +462,19 @@
"https://www.googleapis.com/auth/chat.messages.readonly",
"https://www.googleapis.com/auth/chat.spaces",
"https://www.googleapis.com/auth/chat.spaces.readonly",
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.readonly",
"https://www.googleapis.com/auth/meetings.space.created",
"https://www.googleapis.com/auth/meetings.space.readonly"
]
}
}
}
},
"revision": "20240827",
"revision": "20241210",
"rootUrl": "https://workspaceevents.googleapis.com/",
"schemas": {
"ListSubscriptionsResponse": {
Expand Down Expand Up @@ -572,7 +622,7 @@
"type": "string"
},
"name": {
"description": "Optional. Immutable. Identifier. Resource name of the subscription. Format: `subscriptions/{subscription}`",
"description": "Identifier. Resource name of the subscription. Format: `subscriptions/{subscription}`",
"type": "string"
},
"notificationEndpoint": {
Expand Down
6 changes: 3 additions & 3 deletions src/apis/workspaceevents/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export namespace workspaceevents_v1 {
*/
expireTime?: string | null;
/**
* Optional. Immutable. Identifier. Resource name of the subscription. Format: `subscriptions/{subscription\}`
* Identifier. Resource name of the subscription. Format: `subscriptions/{subscription\}`
*/
name?: string | null;
/**
Expand Down Expand Up @@ -816,7 +816,7 @@ export namespace workspaceevents_v1 {
}

/**
* [Developer Preview](https://developers.google.com/workspace/preview): Reactivates a suspended Google Workspace subscription. This method resets your subscription's `State` field to `ACTIVE`. Before you use this method, you must fix the error that suspended the subscription. To learn how to use this method, see [Reactivate a Google Workspace subscription](https://developers.google.com/workspace/events/guides/reactivate-subscription).
* [Developer Preview](https://developers.google.com/workspace/preview): Reactivates a suspended Google Workspace subscription. This method resets your subscription's `State` field to `ACTIVE`. Before you use this method, you must fix the error that suspended the subscription. This method will ignore or reject any subscription that isn't currently in a suspended state. To learn how to use this method, see [Reactivate a Google Workspace subscription](https://developers.google.com/workspace/events/guides/reactivate-subscription).
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
Expand Down Expand Up @@ -961,7 +961,7 @@ export namespace workspaceevents_v1 {
export interface Params$Resource$Subscriptions$Patch
extends StandardParameters {
/**
* Optional. Immutable. Identifier. Resource name of the subscription. Format: `subscriptions/{subscription\}`
* Identifier. Resource name of the subscription. Format: `subscriptions/{subscription\}`
*/
name?: string;
/**
Expand Down

0 comments on commit 8fc9a4b

Please sign in to comment.