Class SubscriptionsServiceClientImpl
SubscriptionsService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Apps.Events.Subscriptions.V1
Assembly: Google.Apps.Events.Subscriptions.V1.dll
Syntax
public sealed class SubscriptionsServiceClientImpl : SubscriptionsServiceClient
Remarks
A service that manages subscriptions to Google Workspace events.
Constructors
SubscriptionsServiceClientImpl(SubscriptionsServiceClient, SubscriptionsServiceSettings, ILogger)
Constructs a client wrapper for the SubscriptionsService service, with the specified gRPC client and settings.
Declaration
public SubscriptionsServiceClientImpl(SubscriptionsService.SubscriptionsServiceClient grpcClient, SubscriptionsServiceSettings settings, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
SubscriptionsService.SubscriptionsServiceClient | grpcClient | The underlying gRPC client. |
SubscriptionsServiceSettings | settings | The base SubscriptionsServiceSettings used within this client. |
ILogger | logger | Optional ILogger to use within this client. |
Properties
CreateSubscriptionOperationsClient
The long-running operations client for CreateSubscription
.
Declaration
public override OperationsClient CreateSubscriptionOperationsClient { get; }
Property Value
Type | Description |
---|---|
OperationsClient |
Overrides
DeleteSubscriptionOperationsClient
The long-running operations client for DeleteSubscription
.
Declaration
public override OperationsClient DeleteSubscriptionOperationsClient { get; }
Property Value
Type | Description |
---|---|
OperationsClient |
Overrides
GrpcClient
The underlying gRPC SubscriptionsService client
Declaration
public override SubscriptionsService.SubscriptionsServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
SubscriptionsService.SubscriptionsServiceClient |
Overrides
ReactivateSubscriptionOperationsClient
The long-running operations client for ReactivateSubscription
.
Declaration
public override OperationsClient ReactivateSubscriptionOperationsClient { get; }
Property Value
Type | Description |
---|---|
OperationsClient |
Overrides
UpdateSubscriptionOperationsClient
The long-running operations client for UpdateSubscription
.
Declaration
public override OperationsClient UpdateSubscriptionOperationsClient { get; }
Property Value
Type | Description |
---|---|
OperationsClient |
Overrides
Methods
CreateSubscription(CreateSubscriptionRequest, CallSettings)
Creates a Google Workspace subscription. To learn how to use this method, see Create a Google Workspace subscription.
Declaration
public override Operation<Subscription, CreateSubscriptionMetadata> CreateSubscription(CreateSubscriptionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateSubscriptionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Operation<Subscription, CreateSubscriptionMetadata> | The RPC response. |
Overrides
CreateSubscriptionAsync(CreateSubscriptionRequest, CallSettings)
Creates a Google Workspace subscription. To learn how to use this method, see Create a Google Workspace subscription.
Declaration
public override Task<Operation<Subscription, CreateSubscriptionMetadata>> CreateSubscriptionAsync(CreateSubscriptionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateSubscriptionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Operation<Subscription, CreateSubscriptionMetadata>> | A Task containing the RPC response. |
Overrides
DeleteSubscription(DeleteSubscriptionRequest, CallSettings)
Deletes a Google Workspace subscription. To learn how to use this method, see Delete a Google Workspace subscription.
Declaration
public override Operation<Empty, DeleteSubscriptionMetadata> DeleteSubscription(DeleteSubscriptionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteSubscriptionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Operation<Empty, DeleteSubscriptionMetadata> | The RPC response. |
Overrides
DeleteSubscriptionAsync(DeleteSubscriptionRequest, CallSettings)
Deletes a Google Workspace subscription. To learn how to use this method, see Delete a Google Workspace subscription.
Declaration
public override Task<Operation<Empty, DeleteSubscriptionMetadata>> DeleteSubscriptionAsync(DeleteSubscriptionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteSubscriptionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Operation<Empty, DeleteSubscriptionMetadata>> | A Task containing the RPC response. |
Overrides
GetSubscription(GetSubscriptionRequest, CallSettings)
Gets details about a Google Workspace subscription. To learn how to use this method, see Get details about a Google Workspace subscription.
Declaration
public override Subscription GetSubscription(GetSubscriptionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetSubscriptionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Subscription | The RPC response. |
Overrides
GetSubscriptionAsync(GetSubscriptionRequest, CallSettings)
Gets details about a Google Workspace subscription. To learn how to use this method, see Get details about a Google Workspace subscription.
Declaration
public override Task<Subscription> GetSubscriptionAsync(GetSubscriptionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetSubscriptionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Subscription> | A Task containing the RPC response. |
Overrides
ListSubscriptions(ListSubscriptionsRequest, CallSettings)
Lists Google Workspace subscriptions. To learn how to use this method, see List Google Workspace subscriptions.
Declaration
public override PagedEnumerable<ListSubscriptionsResponse, Subscription> ListSubscriptions(ListSubscriptionsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListSubscriptionsRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedEnumerable<ListSubscriptionsResponse, Subscription> | A pageable sequence of Subscription resources. |
Overrides
ListSubscriptionsAsync(ListSubscriptionsRequest, CallSettings)
Lists Google Workspace subscriptions. To learn how to use this method, see List Google Workspace subscriptions.
Declaration
public override PagedAsyncEnumerable<ListSubscriptionsResponse, Subscription> ListSubscriptionsAsync(ListSubscriptionsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListSubscriptionsRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedAsyncEnumerable<ListSubscriptionsResponse, Subscription> | A pageable asynchronous sequence of Subscription resources. |
Overrides
ReactivateSubscription(ReactivateSubscriptionRequest, CallSettings)
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 override Operation<Subscription, ReactivateSubscriptionMetadata> ReactivateSubscription(ReactivateSubscriptionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ReactivateSubscriptionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Operation<Subscription, ReactivateSubscriptionMetadata> | The RPC response. |
Overrides
ReactivateSubscriptionAsync(ReactivateSubscriptionRequest, CallSettings)
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 override Task<Operation<Subscription, ReactivateSubscriptionMetadata>> ReactivateSubscriptionAsync(ReactivateSubscriptionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ReactivateSubscriptionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Operation<Subscription, ReactivateSubscriptionMetadata>> | A Task containing the RPC response. |
Overrides
UpdateSubscription(UpdateSubscriptionRequest, CallSettings)
Updates or renews a Google Workspace subscription. To learn how to use this method, see Update or renew a Google Workspace subscription.
Declaration
public override Operation<Subscription, UpdateSubscriptionMetadata> UpdateSubscription(UpdateSubscriptionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateSubscriptionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Operation<Subscription, UpdateSubscriptionMetadata> | The RPC response. |
Overrides
UpdateSubscriptionAsync(UpdateSubscriptionRequest, CallSettings)
Updates or renews a Google Workspace subscription. To learn how to use this method, see Update or renew a Google Workspace subscription.
Declaration
public override Task<Operation<Subscription, UpdateSubscriptionMetadata>> UpdateSubscriptionAsync(UpdateSubscriptionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateSubscriptionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Operation<Subscription, UpdateSubscriptionMetadata>> | A Task containing the RPC response. |