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 by specifying an authorization scope that begins with chat.app and
getting one-time administrator approval (Developer
Preview). To learn more, see Authorize as a Chat app with
administrator approval. - 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 by specifying an authorization scope that begins with chat.app andgetting one-time
administrator approval (Developer Preview). To learn
more, see Authorize as a Chat app with administrator
approval. - 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 by specifying an authorization scope that begins with
chat.app andgetting one-time administrator approval (Developer
Preview). To learn more, see Authorize as a Chat app with
administrator approval. - 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 |