Package com.mypurecloud.sdk.v2.api
Class LicenseApiAsync
java.lang.Object
com.mypurecloud.sdk.v2.api.LicenseApiAsync
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLicenseDefinitionAsync(GetLicenseDefinitionRequest request, AsyncApiCallback<LicenseDefinition> callback) Get PureCloud license definition.getLicenseDefinitionAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<LicenseDefinition>> callback) Get PureCloud license definition.getLicenseDefinitionsAsync(GetLicenseDefinitionsRequest request, AsyncApiCallback<List<LicenseDefinition>> callback) Get all PureCloud license definitions available for the organization.getLicenseDefinitionsAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<List<LicenseDefinition>>> callback) Get all PureCloud license definitions available for the organization.getLicenseToggleAsync(GetLicenseToggleRequest request, AsyncApiCallback<LicenseOrgToggle> callback) Deprecated - no alternative required.getLicenseToggleAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<LicenseOrgToggle>> callback) Deprecated - no alternative required.getLicenseUserAsync(GetLicenseUserRequest request, AsyncApiCallback<LicenseUser> callback) Get licenses for specified user.getLicenseUserAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<LicenseUser>> callback) Get licenses for specified user.getLicenseUsersAsync(GetLicenseUsersRequest request, AsyncApiCallback<UserLicensesEntityListing> callback) Get a page of users and their licenses Retrieve a page of users in an organization along with the licenses they possess.getLicenseUsersAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<UserLicensesEntityListing>> callback) Get a page of users and their licenses Retrieve a page of users in an organization along with the licenses they possess.postLicenseInferAsync(PostLicenseInferRequest request, AsyncApiCallback<List<String>> callback) Get a list of licenses inferred based on a list of roleIdspostLicenseInferAsync(ApiRequest<List<String>> request, AsyncApiCallback<ApiResponse<List<String>>> callback) Get a list of licenses inferred based on a list of roleIdspostLicenseInferPermissionsAsync(PostLicenseInferPermissionsRequest request, AsyncApiCallback<List<String>> callback) Get a list of licenses inferred based on a list of permissions postLicenseInferPermissions is a preview method and is subject to both breaking and non-breaking changes at any time without noticepostLicenseInferPermissionsAsync(ApiRequest<List<String>> request, AsyncApiCallback<ApiResponse<List<String>>> callback) Get a list of licenses inferred based on a list of permissions postLicenseInferPermissions is a preview method and is subject to both breaking and non-breaking changes at any time without noticepostLicenseOrganizationAsync(PostLicenseOrganizationRequest request, AsyncApiCallback<List<LicenseUpdateStatus>> callback) Update the organization's license assignments in a batch.postLicenseOrganizationAsync(ApiRequest<LicenseBatchAssignmentRequest> request, AsyncApiCallback<ApiResponse<List<LicenseUpdateStatus>>> callback) Update the organization's license assignments in a batch.postLicenseToggleAsync(PostLicenseToggleRequest request, AsyncApiCallback<LicenseOrgToggle> callback) Deprecated.postLicenseToggleAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<LicenseOrgToggle>> callback) Deprecated.postLicenseUsersAsync(PostLicenseUsersRequest request, AsyncApiCallback<Map<String, Object>> callback) Fetch user licenses in a batch.postLicenseUsersAsync(ApiRequest<List<String>> request, AsyncApiCallback<ApiResponse<Map<String, Object>>> callback) Fetch user licenses in a batch.
-
Constructor Details
-
LicenseApiAsync
public LicenseApiAsync() -
LicenseApiAsync
-
-
Method Details
-
getLicenseDefinitionAsync
public Future<LicenseDefinition> getLicenseDefinitionAsync(GetLicenseDefinitionRequest request, AsyncApiCallback<LicenseDefinition> callback) Get PureCloud license definition.- Parameters:
request- the request objectcallback- the action to perform when the request is completed- Returns:
- the future indication when the request has completed
-
getLicenseDefinitionAsync
public Future<ApiResponse<LicenseDefinition>> getLicenseDefinitionAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<LicenseDefinition>> callback) Get PureCloud license definition.- Parameters:
request- the request objectcallback- the action to perform when the request is completed- Returns:
- the future indication when the request has completed
-
getLicenseDefinitionsAsync
public Future<List<LicenseDefinition>> getLicenseDefinitionsAsync(GetLicenseDefinitionsRequest request, AsyncApiCallback<List<LicenseDefinition>> callback) Get all PureCloud license definitions available for the organization.- Parameters:
request- the request objectcallback- the action to perform when the request is completed- Returns:
- the future indication when the request has completed
-
getLicenseDefinitionsAsync
public Future<ApiResponse<List<LicenseDefinition>>> getLicenseDefinitionsAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<List<LicenseDefinition>>> callback) Get all PureCloud license definitions available for the organization.- Parameters:
request- the request objectcallback- the action to perform when the request is completed- Returns:
- the future indication when the request has completed
-
getLicenseToggleAsync
public Future<LicenseOrgToggle> getLicenseToggleAsync(GetLicenseToggleRequest request, AsyncApiCallback<LicenseOrgToggle> callback) Deprecated - no alternative required. This operation will always return 'true' for requested toggles- Parameters:
request- the request objectcallback- the action to perform when the request is completed- Returns:
- the future indication when the request has completed
-
getLicenseToggleAsync
public Future<ApiResponse<LicenseOrgToggle>> getLicenseToggleAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<LicenseOrgToggle>> callback) Deprecated - no alternative required. This operation will always return 'true' for requested toggles- Parameters:
request- the request objectcallback- the action to perform when the request is completed- Returns:
- the future indication when the request has completed
-
getLicenseUserAsync
public Future<LicenseUser> getLicenseUserAsync(GetLicenseUserRequest request, AsyncApiCallback<LicenseUser> callback) Get licenses for specified user.- Parameters:
request- the request objectcallback- the action to perform when the request is completed- Returns:
- the future indication when the request has completed
-
getLicenseUserAsync
public Future<ApiResponse<LicenseUser>> getLicenseUserAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<LicenseUser>> callback) Get licenses for specified user.- Parameters:
request- the request objectcallback- the action to perform when the request is completed- Returns:
- the future indication when the request has completed
-
getLicenseUsersAsync
public Future<UserLicensesEntityListing> getLicenseUsersAsync(GetLicenseUsersRequest request, AsyncApiCallback<UserLicensesEntityListing> callback) Get a page of users and their licenses Retrieve a page of users in an organization along with the licenses they possess.- Parameters:
request- the request objectcallback- the action to perform when the request is completed- Returns:
- the future indication when the request has completed
-
getLicenseUsersAsync
public Future<ApiResponse<UserLicensesEntityListing>> getLicenseUsersAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<UserLicensesEntityListing>> callback) Get a page of users and their licenses Retrieve a page of users in an organization along with the licenses they possess.- Parameters:
request- the request objectcallback- the action to perform when the request is completed- Returns:
- the future indication when the request has completed
-
postLicenseInferAsync
public Future<List<String>> postLicenseInferAsync(PostLicenseInferRequest request, AsyncApiCallback<List<String>> callback) Get a list of licenses inferred based on a list of roleIds- Parameters:
request- the request objectcallback- the action to perform when the request is completed- Returns:
- the future indication when the request has completed
-
postLicenseInferAsync
public Future<ApiResponse<List<String>>> postLicenseInferAsync(ApiRequest<List<String>> request, AsyncApiCallback<ApiResponse<List<String>>> callback) Get a list of licenses inferred based on a list of roleIds- Parameters:
request- the request objectcallback- the action to perform when the request is completed- Returns:
- the future indication when the request has completed
-
postLicenseInferPermissionsAsync
public Future<List<String>> postLicenseInferPermissionsAsync(PostLicenseInferPermissionsRequest request, AsyncApiCallback<List<String>> callback) Get a list of licenses inferred based on a list of permissions postLicenseInferPermissions is a preview method and is subject to both breaking and non-breaking changes at any time without notice- Parameters:
request- the request objectcallback- the action to perform when the request is completed- Returns:
- the future indication when the request has completed
-
postLicenseInferPermissionsAsync
public Future<ApiResponse<List<String>>> postLicenseInferPermissionsAsync(ApiRequest<List<String>> request, AsyncApiCallback<ApiResponse<List<String>>> callback) Get a list of licenses inferred based on a list of permissions postLicenseInferPermissions is a preview method and is subject to both breaking and non-breaking changes at any time without notice- Parameters:
request- the request objectcallback- the action to perform when the request is completed- Returns:
- the future indication when the request has completed
-
postLicenseOrganizationAsync
public Future<List<LicenseUpdateStatus>> postLicenseOrganizationAsync(PostLicenseOrganizationRequest request, AsyncApiCallback<List<LicenseUpdateStatus>> callback) Update the organization's license assignments in a batch.- Parameters:
request- the request objectcallback- the action to perform when the request is completed- Returns:
- the future indication when the request has completed
-
postLicenseOrganizationAsync
public Future<ApiResponse<List<LicenseUpdateStatus>>> postLicenseOrganizationAsync(ApiRequest<LicenseBatchAssignmentRequest> request, AsyncApiCallback<ApiResponse<List<LicenseUpdateStatus>>> callback) Update the organization's license assignments in a batch.- Parameters:
request- the request objectcallback- the action to perform when the request is completed- Returns:
- the future indication when the request has completed
-
postLicenseToggleAsync
public Future<LicenseOrgToggle> postLicenseToggleAsync(PostLicenseToggleRequest request, AsyncApiCallback<LicenseOrgToggle> callback) Deprecated. No alternative required - this endpoint has no effect- Parameters:
request- the request objectcallback- the action to perform when the request is completed- Returns:
- the future indication when the request has completed
-
postLicenseToggleAsync
public Future<ApiResponse<LicenseOrgToggle>> postLicenseToggleAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<LicenseOrgToggle>> callback) Deprecated. No alternative required - this endpoint has no effect- Parameters:
request- the request objectcallback- the action to perform when the request is completed- Returns:
- the future indication when the request has completed
-
postLicenseUsersAsync
public Future<Map<String,Object>> postLicenseUsersAsync(PostLicenseUsersRequest request, AsyncApiCallback<Map<String, Object>> callback) Fetch user licenses in a batch.- Parameters:
request- the request objectcallback- the action to perform when the request is completed- Returns:
- the future indication when the request has completed
-
postLicenseUsersAsync
public Future<ApiResponse<Map<String,Object>>> postLicenseUsersAsync(ApiRequest<List<String>> request, AsyncApiCallback<ApiResponse<Map<String, Object>>> callback) Fetch user licenses in a batch.- Parameters:
request- the request objectcallback- the action to perform when the request is completed- Returns:
- the future indication when the request has completed
-