Class SubscriptionsResource
The "subscriptions" collection of methods.
Inherited Members
Namespace: Google.Apis.WorkspaceEvents.v1
Assembly: Google.Apis.WorkspaceEvents.v1.dll
Syntax
public class SubscriptionsResource
Constructors
SubscriptionsResource(IClientService)
Constructs a new resource.
Declaration
public SubscriptionsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Create(Subscription)
Creates a Google Workspace subscription. To learn how to use this method, see Create a Google Workspace
subscription. For a subscription
on a Chat target resource, you can
create a subscription as: - A Chat app subscribing to space events where the app is a member by specifying
an authorization scope that begins with chat.app and getting one-time administrator approval. To learn
more, see Authorize as a Chat app with administrator
approval. - Developer
Preview: A Chat app subscribing to all events in a Google
Workspace organization by specifying an authorization scope that begins with chat.app.all and obtaining
one-time administrator approval. To learn more, see Subscribe to all Google Chat events in a Workspace
organization. - A user
by specifying an authorization scope that doesn't include app in its name. To learn more, see Authorize
as a Chat user.
Declaration
public virtual SubscriptionsResource.CreateRequest Create(Subscription body)
Parameters
| Type | Name | Description |
|---|---|---|
| Subscription | body | The body of the request. |
Returns
| Type | Description |
|---|---|
| SubscriptionsResource.CreateRequest |
Delete(string)
Deletes a Google Workspace subscription. To learn how to use this method, see Delete a Google Workspace subscription.
Declaration
public virtual SubscriptionsResource.DeleteRequest Delete(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. Resource name of the subscription to delete. Format: |
Returns
| Type | Description |
|---|---|
| SubscriptionsResource.DeleteRequest |
Get(string)
Gets details about a Google Workspace subscription. To learn how to use this method, see Get details about a Google Workspace subscription.
Declaration
public virtual SubscriptionsResource.GetRequest Get(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. Resource name of the subscription. Format: |
Returns
| Type | Description |
|---|---|
| SubscriptionsResource.GetRequest |
List()
Lists Google Workspace subscriptions. To learn how to use this method, see List Google Workspace subscriptions.
Declaration
public virtual SubscriptionsResource.ListRequest List()
Returns
| Type | Description |
|---|---|
| SubscriptionsResource.ListRequest |
Patch(Subscription, string)
Updates or renews a Google Workspace subscription. To learn how to use this method, see Update or renew a
Google Workspace subscription.
For a subscription on a Chat target
resource, you can update a subscription
as: - A Chat app subscribing to space events where the app is a member by specifying an authorization scope
that begins with chat.app and getting one-time administrator approval. To learn more, see Authorize as a
Chat app with administrator
approval. - Developer
Preview: A Chat app subscribing to all events in a Google
Workspace organization by specifying an authorization scope that begins with chat.app.all and getting
one-time administrator approval. To learn more, see Subscribe to all Google Chat events in a Workspace
organization. - A user
by specifying an authorization scope that doesn't include app in its name. To learn more, see Authorize
as a Chat user.
Declaration
public virtual SubscriptionsResource.PatchRequest Patch(Subscription body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| Subscription | body | The body of the request. |
| string | name | Identifier. Resource name of the subscription. Format: |
Returns
| Type | Description |
|---|---|
| SubscriptionsResource.PatchRequest |
Reactivate(ReactivateSubscriptionRequest, string)
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. For a
subscription on a Chat target resource,
you can reactivate a subscription as: - A Chat app subscribing to space events where the app is a member by
specifying an authorization scope that begins with chat.app and getting one-time administrator approval.
To learn more, see Authorize as a Chat app with administrator
approval. - Developer
Preview: A Chat app subscribing to all events in a Google
Workspace organization by specifying an authorization scope that begins with chat.app.all and getting
one-time administrator approval. To learn more, see Subscribe to all Google Chat events in a Workspace
organization. - A user
by specifying an authorization scope that doesn't include app in its name. To learn more, see Authorize
as a Chat user.
Declaration
public virtual SubscriptionsResource.ReactivateRequest Reactivate(ReactivateSubscriptionRequest body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| ReactivateSubscriptionRequest | body | The body of the request. |
| string | name | Required. Resource name of the subscription. Format: |
Returns
| Type | Description |
|---|---|
| SubscriptionsResource.ReactivateRequest |