Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

WorkspaceEvents

import { WorkspaceEvents } from "https://googleapis.deno.dev/v1/workspaceevents:v1.ts";

The Google Workspace Events API lets you subscribe to events and manage change notifications across Google Workspace applications.

class WorkspaceEvents {
constructor(client?: CredentialsClient, baseUrl?: string);
async operationsGet(name: string): Promise<Operation>;
async subscriptionsCreate(req: Subscription, opts?: SubscriptionsCreateOptions): Promise<Operation>;
async subscriptionsDelete(name: string, opts?: SubscriptionsDeleteOptions): Promise<Operation>;
async subscriptionsGet(name: string): Promise<Subscription>;
async subscriptionsList(opts?: SubscriptionsListOptions): Promise<ListSubscriptionsResponse>;
async subscriptionsPatch(
name: string,
): Promise<Operation>;
async subscriptionsReactivate(name: string, req: ReactivateSubscriptionRequest): Promise<Operation>;
}

§Constructors

§
new WorkspaceEvents(client?: CredentialsClient, baseUrl?: string)
[src]

§Methods

§
operationsGet(name: string): Promise<Operation>
[src]

Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

@param name

The name of the operation resource.

§
subscriptionsCreate(req: Subscription, opts?: SubscriptionsCreateOptions): Promise<Operation>
[src]

Developer Preview: Creates a Google Workspace subscription. To learn how to use this method, see Create a Google Workspace subscription.

§
subscriptionsDelete(name: string, opts?: SubscriptionsDeleteOptions): Promise<Operation>
[src]

Developer Preview: Deletes a Google Workspace subscription. To learn how to use this method, see Delete a Google Workspace subscription.

@param name

Required. Resource name of the subscription to delete. Format: subscriptions/{subscription}

§
subscriptionsGet(name: string): Promise<Subscription>
[src]

Developer Preview: Gets details about a Google Workspace subscription. To learn how to use this method, see Get details about a Google Workspace subscription.

@param name

Required. Resource name of the subscription. Format: subscriptions/{subscription}

§
subscriptionsList(opts?: SubscriptionsListOptions): Promise<ListSubscriptionsResponse>
[src]

Developer Preview: Lists Google Workspace subscriptions. To learn how to use this method, see List Google Workspace subscriptions.

§
subscriptionsPatch(name: string, req: Subscription, opts?: SubscriptionsPatchOptions): Promise<Operation>
[src]

Developer Preview: Updates or renews a Google Workspace subscription. To learn how to use this method, see Update or renew a Google Workspace subscription.

@param name

Optional. Immutable. Identifier. Resource name of the subscription. Format: subscriptions/{subscription}

§
subscriptionsReactivate(name: string, req: ReactivateSubscriptionRequest): Promise<Operation>
[src]

Developer Preview: 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.

@param name

Required. Resource name of the subscription. Format: subscriptions/{subscription}