Class SubscriptionsResource
The "subscriptions" collection of methods.
Inherited Members
Namespace: Google.Apis.WorkspaceEvents.v1
Assembly: Google.Apis.WorkspaceEvents.v1.dll
Syntax
public class SubscriptionsResourceConstructors
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.
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.
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.
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 |