public class TenantsApi
extends java.lang.Object
| Constructor and Description |
|---|
TenantsApi() |
TenantsApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
GrantData |
assignOrUpdateGrant(java.lang.String tenantCode,
GrantData body) |
com.squareup.okhttp.Call |
assignOrUpdateGrantAsync(java.lang.String tenantCode,
GrantData body,
ApiCallback<GrantData> callback)
(asynchronously)
|
ApiResponse<GrantData> |
assignOrUpdateGrantWithHttpInfo(java.lang.String tenantCode,
GrantData body) |
void |
create(CreateTenantData body)
Creates a tenant and makes the user calling owner of it
|
com.squareup.okhttp.Call |
createAsync(CreateTenantData body,
ApiCallback<java.lang.Void> callback)
Creates a tenant and makes the user calling owner of it (asynchronously)
|
ApiResponse<java.lang.Void> |
createWithHttpInfo(CreateTenantData body)
Creates a tenant and makes the user calling owner of it
|
void |
delete(java.lang.String tenantCode,
java.lang.Boolean cascade) |
com.squareup.okhttp.Call |
deleteAsync(java.lang.String tenantCode,
java.lang.Boolean cascade,
ApiCallback<java.lang.Void> callback)
(asynchronously)
|
void |
deleteGrant(java.lang.String tenantCode,
java.lang.Long grantId) |
com.squareup.okhttp.Call |
deleteGrantAsync(java.lang.String tenantCode,
java.lang.Long grantId,
ApiCallback<java.lang.Void> callback)
(asynchronously)
|
ApiResponse<java.lang.Void> |
deleteGrantWithHttpInfo(java.lang.String tenantCode,
java.lang.Long grantId) |
ApiResponse<java.lang.Void> |
deleteWithHttpInfo(java.lang.String tenantCode,
java.lang.Boolean cascade) |
PagedTenantData |
find(java.lang.Integer page,
java.lang.Integer size,
java.lang.String sortOn,
java.lang.String sortDir,
java.lang.String name,
java.lang.String code,
java.lang.String codeOrName,
java.lang.String country,
java.lang.Boolean current,
java.lang.Boolean all,
java.lang.Boolean ownerOnly,
java.lang.String type,
java.lang.String attrName,
java.lang.String attrValue,
java.lang.String email)
Searches for tenants of current user
|
com.squareup.okhttp.Call |
findAsync(java.lang.Integer page,
java.lang.Integer size,
java.lang.String sortOn,
java.lang.String sortDir,
java.lang.String name,
java.lang.String code,
java.lang.String codeOrName,
java.lang.String country,
java.lang.Boolean current,
java.lang.Boolean all,
java.lang.Boolean ownerOnly,
java.lang.String type,
java.lang.String attrName,
java.lang.String attrValue,
java.lang.String email,
ApiCallback<PagedTenantData> callback)
Searches for tenants of current user (asynchronously)
|
ApiResponse<PagedTenantData> |
findWithHttpInfo(java.lang.Integer page,
java.lang.Integer size,
java.lang.String sortOn,
java.lang.String sortDir,
java.lang.String name,
java.lang.String code,
java.lang.String codeOrName,
java.lang.String country,
java.lang.Boolean current,
java.lang.Boolean all,
java.lang.Boolean ownerOnly,
java.lang.String type,
java.lang.String attrName,
java.lang.String attrValue,
java.lang.String email)
Searches for tenants of current user
|
ApiClient |
getApiClient() |
PagedGrantData |
grants_0(java.lang.String tenantCode,
java.lang.Integer page,
java.lang.Integer size,
java.lang.String sortOn,
java.lang.String sortDir,
java.lang.String email,
java.lang.Boolean current,
java.lang.Boolean direct)
Search for grants of tenant.
|
com.squareup.okhttp.Call |
grants_0Async(java.lang.String tenantCode,
java.lang.Integer page,
java.lang.Integer size,
java.lang.String sortOn,
java.lang.String sortDir,
java.lang.String email,
java.lang.Boolean current,
java.lang.Boolean direct,
ApiCallback<PagedGrantData> callback)
Search for grants of tenant.
|
ApiResponse<PagedGrantData> |
grants_0WithHttpInfo(java.lang.String tenantCode,
java.lang.Integer page,
java.lang.Integer size,
java.lang.String sortOn,
java.lang.String sortDir,
java.lang.String email,
java.lang.Boolean current,
java.lang.Boolean direct)
Search for grants of tenant.
|
GrantData |
grants_1(java.lang.String tenantCode)
Returns requesting user grants for tenant
|
com.squareup.okhttp.Call |
grants_1Async(java.lang.String tenantCode,
ApiCallback<GrantData> callback)
Returns requesting user grants for tenant (asynchronously)
|
ApiResponse<GrantData> |
grants_1WithHttpInfo(java.lang.String tenantCode)
Returns requesting user grants for tenant
|
GrantData |
grants() |
com.squareup.okhttp.Call |
grantsAsync(ApiCallback<GrantData> callback)
(asynchronously)
|
ApiResponse<GrantData> |
grantsWithHttpInfo() |
TenantData |
register(RegisterTenantData body)
Registers a tenant and makes defined user an owner of it
|
com.squareup.okhttp.Call |
registerAsync(RegisterTenantData body,
ApiCallback<TenantData> callback)
Registers a tenant and makes defined user an owner of it (asynchronously)
|
ApiResponse<TenantData> |
registerWithHttpInfo(RegisterTenantData body)
Registers a tenant and makes defined user an owner of it
|
void |
setApiClient(ApiClient apiClient) |
void |
update(java.lang.String tenantCode,
TenantData body)
Updates a tenant, so e.g.
|
com.squareup.okhttp.Call |
updateAsync(java.lang.String tenantCode,
TenantData body,
ApiCallback<java.lang.Void> callback)
Updates a tenant, so e.g.
|
ApiResponse<java.lang.Void> |
updateWithHttpInfo(java.lang.String tenantCode,
TenantData body)
Updates a tenant, so e.g.
|
public TenantsApi()
public TenantsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public GrantData assignOrUpdateGrant(java.lang.String tenantCode, GrantData body) throws ApiException
tenantCode - (required)body - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<GrantData> assignOrUpdateGrantWithHttpInfo(java.lang.String tenantCode, GrantData body) throws ApiException
tenantCode - (required)body - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call assignOrUpdateGrantAsync(java.lang.String tenantCode,
GrantData body,
ApiCallback<GrantData> callback)
throws ApiException
tenantCode - (required)body - (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic void create(CreateTenantData body) throws ApiException
body - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<java.lang.Void> createWithHttpInfo(CreateTenantData body) throws ApiException
body - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call createAsync(CreateTenantData body, ApiCallback<java.lang.Void> callback) throws ApiException
body - (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic void delete(java.lang.String tenantCode,
java.lang.Boolean cascade)
throws ApiException
tenantCode - (required)cascade - If set to true it will also remove all children (optional, default to false)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<java.lang.Void> deleteWithHttpInfo(java.lang.String tenantCode, java.lang.Boolean cascade) throws ApiException
tenantCode - (required)cascade - If set to true it will also remove all children (optional, default to false)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call deleteAsync(java.lang.String tenantCode,
java.lang.Boolean cascade,
ApiCallback<java.lang.Void> callback)
throws ApiException
tenantCode - (required)cascade - If set to true it will also remove all children (optional, default to false)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic void deleteGrant(java.lang.String tenantCode,
java.lang.Long grantId)
throws ApiException
tenantCode - (required)grantId - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<java.lang.Void> deleteGrantWithHttpInfo(java.lang.String tenantCode, java.lang.Long grantId) throws ApiException
tenantCode - (required)grantId - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call deleteGrantAsync(java.lang.String tenantCode,
java.lang.Long grantId,
ApiCallback<java.lang.Void> callback)
throws ApiException
tenantCode - (required)grantId - (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic PagedTenantData find(java.lang.Integer page, java.lang.Integer size, java.lang.String sortOn, java.lang.String sortDir, java.lang.String name, java.lang.String code, java.lang.String codeOrName, java.lang.String country, java.lang.Boolean current, java.lang.Boolean all, java.lang.Boolean ownerOnly, java.lang.String type, java.lang.String attrName, java.lang.String attrValue, java.lang.String email) throws ApiException
page - Page number (optional, default to 0)size - Page size (optional, default to 10)sortOn - Sort column (optional)sortDir - Sort direction (optional, default to ASC)name - Tenant name (optional)code - Tenant code (optional)codeOrName - Tenant code or name (optional)country - Iso country code (optional)current - Only tenants which date ranges are valid for current date (optional, default to true)all - Set to true to disable user assigned tenants filter (optional)ownerOnly - Filter by user owned tenants (not working when 'all' set to true) (optional, default to false)type - Select filter type. HUB - tenant in hub meaning, DATA - tenant which is related to data permissions (optional, default to HUB)attrName - (optional)attrValue - (optional)email - Search for tenants assigned to the user. Available for privileged executor. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<PagedTenantData> findWithHttpInfo(java.lang.Integer page, java.lang.Integer size, java.lang.String sortOn, java.lang.String sortDir, java.lang.String name, java.lang.String code, java.lang.String codeOrName, java.lang.String country, java.lang.Boolean current, java.lang.Boolean all, java.lang.Boolean ownerOnly, java.lang.String type, java.lang.String attrName, java.lang.String attrValue, java.lang.String email) throws ApiException
page - Page number (optional, default to 0)size - Page size (optional, default to 10)sortOn - Sort column (optional)sortDir - Sort direction (optional, default to ASC)name - Tenant name (optional)code - Tenant code (optional)codeOrName - Tenant code or name (optional)country - Iso country code (optional)current - Only tenants which date ranges are valid for current date (optional, default to true)all - Set to true to disable user assigned tenants filter (optional)ownerOnly - Filter by user owned tenants (not working when 'all' set to true) (optional, default to false)type - Select filter type. HUB - tenant in hub meaning, DATA - tenant which is related to data permissions (optional, default to HUB)attrName - (optional)attrValue - (optional)email - Search for tenants assigned to the user. Available for privileged executor. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call findAsync(java.lang.Integer page,
java.lang.Integer size,
java.lang.String sortOn,
java.lang.String sortDir,
java.lang.String name,
java.lang.String code,
java.lang.String codeOrName,
java.lang.String country,
java.lang.Boolean current,
java.lang.Boolean all,
java.lang.Boolean ownerOnly,
java.lang.String type,
java.lang.String attrName,
java.lang.String attrValue,
java.lang.String email,
ApiCallback<PagedTenantData> callback)
throws ApiException
page - Page number (optional, default to 0)size - Page size (optional, default to 10)sortOn - Sort column (optional)sortDir - Sort direction (optional, default to ASC)name - Tenant name (optional)code - Tenant code (optional)codeOrName - Tenant code or name (optional)country - Iso country code (optional)current - Only tenants which date ranges are valid for current date (optional, default to true)all - Set to true to disable user assigned tenants filter (optional)ownerOnly - Filter by user owned tenants (not working when 'all' set to true) (optional, default to false)type - Select filter type. HUB - tenant in hub meaning, DATA - tenant which is related to data permissions (optional, default to HUB)attrName - (optional)attrValue - (optional)email - Search for tenants assigned to the user. Available for privileged executor. (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic GrantData grants() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<GrantData> grantsWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call grantsAsync(ApiCallback<GrantData> callback) throws ApiException
callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic PagedGrantData grants_0(java.lang.String tenantCode, java.lang.Integer page, java.lang.Integer size, java.lang.String sortOn, java.lang.String sortDir, java.lang.String email, java.lang.Boolean current, java.lang.Boolean direct) throws ApiException
tenantCode - Code of tenant (required)page - Page number (optional, default to 0)size - Page size (optional, default to 10)sortOn - Sort column (optional)sortDir - Sort direction (optional, default to ASC)email - Email name (optional)current - Should only return current grants with valid dates (optional, default to true)direct - Return grants assigned to this tenant by inheritance (optional, default to false)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<PagedGrantData> grants_0WithHttpInfo(java.lang.String tenantCode, java.lang.Integer page, java.lang.Integer size, java.lang.String sortOn, java.lang.String sortDir, java.lang.String email, java.lang.Boolean current, java.lang.Boolean direct) throws ApiException
tenantCode - Code of tenant (required)page - Page number (optional, default to 0)size - Page size (optional, default to 10)sortOn - Sort column (optional)sortDir - Sort direction (optional, default to ASC)email - Email name (optional)current - Should only return current grants with valid dates (optional, default to true)direct - Return grants assigned to this tenant by inheritance (optional, default to false)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call grants_0Async(java.lang.String tenantCode,
java.lang.Integer page,
java.lang.Integer size,
java.lang.String sortOn,
java.lang.String sortDir,
java.lang.String email,
java.lang.Boolean current,
java.lang.Boolean direct,
ApiCallback<PagedGrantData> callback)
throws ApiException
tenantCode - Code of tenant (required)page - Page number (optional, default to 0)size - Page size (optional, default to 10)sortOn - Sort column (optional)sortDir - Sort direction (optional, default to ASC)email - Email name (optional)current - Should only return current grants with valid dates (optional, default to true)direct - Return grants assigned to this tenant by inheritance (optional, default to false)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic GrantData grants_1(java.lang.String tenantCode) throws ApiException
tenantCode - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<GrantData> grants_1WithHttpInfo(java.lang.String tenantCode) throws ApiException
tenantCode - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call grants_1Async(java.lang.String tenantCode,
ApiCallback<GrantData> callback)
throws ApiException
tenantCode - (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic TenantData register(RegisterTenantData body) throws ApiException
body - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<TenantData> registerWithHttpInfo(RegisterTenantData body) throws ApiException
body - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call registerAsync(RegisterTenantData body, ApiCallback<TenantData> callback) throws ApiException
body - (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic void update(java.lang.String tenantCode,
TenantData body)
throws ApiException
tenantCode - (required)body - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<java.lang.Void> updateWithHttpInfo(java.lang.String tenantCode, TenantData body) throws ApiException
tenantCode - (required)body - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call updateAsync(java.lang.String tenantCode,
TenantData body,
ApiCallback<java.lang.Void> callback)
throws ApiException
tenantCode - (required)body - (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object