Class SubscriptionsService.SubscriptionsServiceBase
Base class for server-side implementations of SubscriptionsService
Namespace: Google.Apps.Events.Subscriptions.V1
Assembly: Google.Apps.Events.Subscriptions.V1.dll
Syntax
[BindServiceMethod(typeof(SubscriptionsService), "BindService")]
public abstract class SubscriptionsService.SubscriptionsServiceBase
Methods
CreateSubscription(CreateSubscriptionRequest, ServerCallContext)
Creates a Google Workspace subscription. To learn how to use this method, see Create a Google Workspace subscription.
Declaration
public virtual Task<Operation> CreateSubscription(CreateSubscriptionRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
CreateSubscriptionRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<Operation> | The response to send back to the client (wrapped by a task). |
DeleteSubscription(DeleteSubscriptionRequest, ServerCallContext)
Deletes a Google Workspace subscription. To learn how to use this method, see Delete a Google Workspace subscription.
Declaration
public virtual Task<Operation> DeleteSubscription(DeleteSubscriptionRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
DeleteSubscriptionRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<Operation> | The response to send back to the client (wrapped by a task). |
GetSubscription(GetSubscriptionRequest, ServerCallContext)
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 Task<Subscription> GetSubscription(GetSubscriptionRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
GetSubscriptionRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<Subscription> | The response to send back to the client (wrapped by a task). |
ListSubscriptions(ListSubscriptionsRequest, ServerCallContext)
Lists Google Workspace subscriptions. To learn how to use this method, see List Google Workspace subscriptions.
Declaration
public virtual Task<ListSubscriptionsResponse> ListSubscriptions(ListSubscriptionsRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
ListSubscriptionsRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<ListSubscriptionsResponse> | The response to send back to the client (wrapped by a task). |
ReactivateSubscription(ReactivateSubscriptionRequest, ServerCallContext)
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.
Declaration
public virtual Task<Operation> ReactivateSubscription(ReactivateSubscriptionRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
ReactivateSubscriptionRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<Operation> | The response to send back to the client (wrapped by a task). |
UpdateSubscription(UpdateSubscriptionRequest, ServerCallContext)
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 Task<Operation> UpdateSubscription(UpdateSubscriptionRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
UpdateSubscriptionRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<Operation> | The response to send back to the client (wrapped by a task). |