Show / Hide Table of Contents

Class LicenseAssignmentsResource

The "licenseAssignments" collection of methods.

Inheritance
object
LicenseAssignmentsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Licensing.v1
Assembly: Google.Apis.Licensing.v1.dll
Syntax
public class LicenseAssignmentsResource

Constructors

LicenseAssignmentsResource(IClientService)

Constructs a new resource.

Declaration
public LicenseAssignmentsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Delete(string, string, string)

Revoke a license.

Declaration
public virtual LicenseAssignmentsResource.DeleteRequest Delete(string productId, string skuId, string userId)
Parameters
Type Name Description
string productId

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

string skuId

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

string 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.

Returns
Type Description
LicenseAssignmentsResource.DeleteRequest

Get(string, string, string)

Get a specific user's license by product SKU.

Declaration
public virtual LicenseAssignmentsResource.GetRequest Get(string productId, string skuId, string userId)
Parameters
Type Name Description
string productId

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

string skuId

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

string 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.

Returns
Type Description
LicenseAssignmentsResource.GetRequest

Insert(LicenseAssignmentInsert, string, string)

Assign a license.

Declaration
public virtual LicenseAssignmentsResource.InsertRequest Insert(LicenseAssignmentInsert body, string productId, string skuId)
Parameters
Type Name Description
LicenseAssignmentInsert body

The body of the request.

string productId

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

string skuId

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

Returns
Type Description
LicenseAssignmentsResource.InsertRequest

ListForProduct(string, string)

List all users assigned licenses for a specific product SKU.

Declaration
public virtual LicenseAssignmentsResource.ListForProductRequest ListForProduct(string productId, string customerId)
Parameters
Type Name Description
string productId

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

string customerId

The customer's unique ID as defined in the Admin console, such as C00000000. If the customer is suspended, the server returns an error.

Returns
Type Description
LicenseAssignmentsResource.ListForProductRequest

ListForProductAndSku(string, string, string)

List all users assigned licenses for a specific product SKU.

Declaration
public virtual LicenseAssignmentsResource.ListForProductAndSkuRequest ListForProductAndSku(string productId, string skuId, string customerId)
Parameters
Type Name Description
string productId

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

string skuId

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

string customerId

The customer's unique ID as defined in the Admin console, such as C00000000. If the customer is suspended, the server returns an error.

Returns
Type Description
LicenseAssignmentsResource.ListForProductAndSkuRequest

Patch(LicenseAssignment, string, string, string)

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

Declaration
public virtual LicenseAssignmentsResource.PatchRequest Patch(LicenseAssignment body, string productId, string skuId, string userId)
Parameters
Type Name Description
LicenseAssignment body

The body of the request.

string productId

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

string skuId

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

string 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.

Returns
Type Description
LicenseAssignmentsResource.PatchRequest

Update(LicenseAssignment, string, string, string)

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

Declaration
public virtual LicenseAssignmentsResource.UpdateRequest Update(LicenseAssignment body, string productId, string skuId, string userId)
Parameters
Type Name Description
LicenseAssignment body

The body of the request.

string productId

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

string skuId

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

string 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.

Returns
Type Description
LicenseAssignmentsResource.UpdateRequest
In this article
Back to top Generated by DocFX