class Entitlements extends Resource (View source)

The "entitlements" collection of methods.

Typical usage is:

 $androidenterpriseService = new Google\Service\AndroidEnterprise(...);
 $entitlements = $androidenterpriseService->entitlements;

Methods

delete(string $enterpriseId, string $userId, string $entitlementId, array $optParams = [])

Removes an entitlement to an app for a user. Note: This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations. (entitlements.delete)

get(string $enterpriseId, string $userId, string $entitlementId, array $optParams = [])

Retrieves details of an entitlement. Note: This item has been deprecated.

listEntitlements(string $enterpriseId, string $userId, array $optParams = [])

Lists all entitlements for the specified user. Only the ID is set. Note: This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations. (entitlements.listEntitlements)

update(string $enterpriseId, string $userId, string $entitlementId, Entitlement $postBody, array $optParams = [])

Adds or updates an entitlement to an app for a user. Note: This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations. (entitlements.update)

Details

delete(string $enterpriseId, string $userId, string $entitlementId, array $optParams = [])

Removes an entitlement to an app for a user. Note: This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations. (entitlements.delete)

Parameters

string $enterpriseId

The ID of the enterprise.

string $userId

The ID of the user.

string $entitlementId

The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".

array $optParams

Optional parameters.

Exceptions

Exception

Entitlement get(string $enterpriseId, string $userId, string $entitlementId, array $optParams = [])

Retrieves details of an entitlement. Note: This item has been deprecated.

New integrations cannot use this method and can refer to our new recommendations. (entitlements.get)

Parameters

string $enterpriseId

The ID of the enterprise.

string $userId

The ID of the user.

string $entitlementId

The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".

array $optParams

Optional parameters.

Return Value

Entitlement

Exceptions

Exception

EntitlementsListResponse listEntitlements(string $enterpriseId, string $userId, array $optParams = [])

Lists all entitlements for the specified user. Only the ID is set. Note: This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations. (entitlements.listEntitlements)

Parameters

string $enterpriseId

The ID of the enterprise.

string $userId

The ID of the user.

array $optParams

Optional parameters.

Return Value

EntitlementsListResponse

Exceptions

Exception

Entitlement update(string $enterpriseId, string $userId, string $entitlementId, Entitlement $postBody, array $optParams = [])

Adds or updates an entitlement to an app for a user. Note: This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations. (entitlements.update)

Parameters

string $enterpriseId

The ID of the enterprise.

string $userId

The ID of the user.

string $entitlementId

The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".

Entitlement $postBody
array $optParams

Optional parameters.

Return Value

Entitlement

Exceptions

Exception