| Modifier and Type | Class and Description |
|---|---|
class |
Licensing.LicenseAssignments.Delete |
class |
Licensing.LicenseAssignments.Get |
class |
Licensing.LicenseAssignments.Insert |
class |
Licensing.LicenseAssignments.ListForProduct |
class |
Licensing.LicenseAssignments.ListForProductAndSku |
class |
Licensing.LicenseAssignments.Patch |
class |
Licensing.LicenseAssignments.Update |
| Constructor and Description |
|---|
LicenseAssignments() |
| Modifier and Type | Method and Description |
|---|---|
Licensing.LicenseAssignments.Delete |
delete(String productId,
String skuId,
String userId)
Revoke a license.
|
Licensing.LicenseAssignments.Get |
get(String productId,
String skuId,
String userId)
Get a specific user's license by product SKU.
|
Licensing.LicenseAssignments.Insert |
insert(String productId,
String skuId,
LicenseAssignmentInsert content)
Assign a license.
|
Licensing.LicenseAssignments.ListForProduct |
listForProduct(String productId,
String customerId)
List all users assigned licenses for a specific product SKU.
|
Licensing.LicenseAssignments.ListForProductAndSku |
listForProductAndSku(String productId,
String skuId,
String customerId)
List all users assigned licenses for a specific product SKU.
|
Licensing.LicenseAssignments.Patch |
patch(String productId,
String skuId,
String userId,
LicenseAssignment content)
Reassign a user's product SKU with a different SKU in the same product.
|
Licensing.LicenseAssignments.Update |
update(String productId,
String skuId,
String userId,
LicenseAssignment content)
Reassign a user's product SKU with a different SKU in the same product.
|
public Licensing.LicenseAssignments.Delete delete(String productId, String skuId, String userId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.productId - A product's unique identifier. For more information about products in this version of the API, see
Products and SKUs.skuId - A product SKU's unique identifier. For more information about available SKUs in this version of the
API, see Products and SKUs.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.IOExceptionpublic Licensing.LicenseAssignments.Get get(String productId, String skuId, String userId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.productId - A product's unique identifier. For more information about products in this version of the API, see
Products and SKUs.skuId - A product SKU's unique identifier. For more information about available SKUs in this version of the
API, see Products and SKUs.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.IOExceptionpublic Licensing.LicenseAssignments.Insert insert(String productId, String skuId, LicenseAssignmentInsert content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.productId - A product's unique identifier. For more information about products in this version of the API, see
Products and SKUs.skuId - A product SKU's unique identifier. For more information about available SKUs in this version of the
API, see Products and SKUs.content - the LicenseAssignmentInsertIOExceptionpublic Licensing.LicenseAssignments.ListForProduct listForProduct(String productId, String customerId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.productId - A product's unique identifier. For more information about products in this version of the API, see
Products and SKUs.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.IOExceptionpublic Licensing.LicenseAssignments.ListForProductAndSku listForProductAndSku(String productId, String skuId, String customerId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.productId - A product's unique identifier. For more information about products in this version of the API, see
Products and SKUs.skuId - A product SKU's unique identifier. For more information about available SKUs in this version of the
API, see Products and SKUs.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.IOExceptionpublic Licensing.LicenseAssignments.Patch patch(String productId, String skuId, String userId, LicenseAssignment content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.productId - A product's unique identifier. For more information about products in this version of the API, see
Products and SKUs.skuId - A product SKU's unique identifier. For more information about available SKUs in this version of the
API, see Products and SKUs.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.content - the LicenseAssignmentIOExceptionpublic Licensing.LicenseAssignments.Update update(String productId, String skuId, String userId, LicenseAssignment content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.productId - A product's unique identifier. For more information about products in this version of the API, see
Products and SKUs.skuId - A product SKU's unique identifier. For more information about available SKUs in this version of the
API, see Products and SKUs.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.content - the LicenseAssignmentIOExceptionCopyright © 2011–2025 Google. All rights reserved.