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

licensing

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

The Google Enterprise License Manager API lets you manage Google Workspace and related licenses for all users of a customer that you manage.

class licensing {
constructor(client?: CredentialsClient, baseUrl?: string);
async licenseAssignmentsDelete(
productId: string,
skuId: string,
userId: string,
): Promise<Empty>;
async licenseAssignmentsGet(
productId: string,
skuId: string,
userId: string,
): Promise<LicenseAssignment>;
async licenseAssignmentsInsert(
productId: string,
skuId: string,
): Promise<LicenseAssignment>;
async licenseAssignmentsListForProduct(productId: string, opts?: LicenseAssignmentsListForProductOptions): Promise<LicenseAssignmentList>;
async licenseAssignmentsListForProductAndSku(
productId: string,
skuId: string,
): Promise<LicenseAssignmentList>;
async licenseAssignmentsPatch(
productId: string,
skuId: string,
userId: string,
): Promise<LicenseAssignment>;
async licenseAssignmentsUpdate(
productId: string,
skuId: string,
userId: string,
): Promise<LicenseAssignment>;
}

§Constructors

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

§Methods

§
licenseAssignmentsDelete(productId: string, skuId: string, userId: string): Promise<Empty>
[src]

Revoke a license.

@param productId

A product's unique identifier. For more information about products in this version of the API, see Products and SKUs.

@param skuId

A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs.

@param userId

The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user's email address changes. If the userId is suspended, the license status changes.

§
licenseAssignmentsGet(productId: string, skuId: string, userId: string): Promise<LicenseAssignment>
[src]

Get a specific user's license by product SKU.

@param productId

A product's unique identifier. For more information about products in this version of the API, see Products and SKUs.

@param skuId

A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs.

@param userId

The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user's email address changes. If the userId is suspended, the license status changes.

§
licenseAssignmentsInsert(productId: string, skuId: string, req: LicenseAssignmentInsert): Promise<LicenseAssignment>
[src]

Assign a license.

@param productId

A product's unique identifier. For more information about products in this version of the API, see Products and SKUs.

@param skuId

A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs.

§
licenseAssignmentsListForProduct(productId: string, opts?: LicenseAssignmentsListForProductOptions): Promise<LicenseAssignmentList>
[src]

List all users assigned licenses for a specific product SKU.

@param productId

A product's unique identifier. For more information about products in this version of the API, see Products and SKUs.

§
licenseAssignmentsListForProductAndSku(productId: string, skuId: string, opts?: LicenseAssignmentsListForProductAndSkuOptions): Promise<LicenseAssignmentList>
[src]

List all users assigned licenses for a specific product SKU.

@param productId

A product's unique identifier. For more information about products in this version of the API, see Products and SKUs.

@param skuId

A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs.

§
licenseAssignmentsPatch(productId: string, skuId: string, userId: string, req: LicenseAssignment): Promise<LicenseAssignment>
[src]

Reassign a user's product SKU with a different SKU in the same product. This method supports patch semantics.

@param productId

A product's unique identifier. For more information about products in this version of the API, see Products and SKUs.

@param skuId

A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs.

@param userId

The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user's email address changes. If the userId is suspended, the license status changes.

§
licenseAssignmentsUpdate(productId: string, skuId: string, userId: string, req: LicenseAssignment): Promise<LicenseAssignment>
[src]

Reassign a user's product SKU with a different SKU in the same product.

@param productId

A product's unique identifier. For more information about products in this version of the API, see Products and SKUs.

@param skuId

A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs.

@param userId

The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user's email address changes. If the userId is suspended, the license status changes.