Class TenancyApi
java.lang.Object
co.permify.sdk.api.TenancyApi
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class TenancyApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ApiExceptiongetApiException(String operationId, HttpResponse<InputStream> response) create tenantcreate tenanttenantsDelete(String id) delete tenantdelete tenanttenantsList(TenantListRequest body) list tenantslist tenants
-
Constructor Details
-
TenancyApi
public TenancyApi() -
TenancyApi
-
-
Method Details
-
getApiException
protected ApiException getApiException(String operationId, HttpResponse<InputStream> response) throws IOException - Throws:
IOException
-
tenantsCreate
create tenant- Parameters:
body- TenantCreateRequest is the message used for the request to create a tenant. (required)- Returns:
- TenantCreateResponse
- Throws:
ApiException- if fails to make API call
-
tenantsCreateWithHttpInfo
public ApiResponse<TenantCreateResponse> tenantsCreateWithHttpInfo(TenantCreateRequest body) throws ApiException create tenant- Parameters:
body- TenantCreateRequest is the message used for the request to create a tenant. (required)- Returns:
- ApiResponse<TenantCreateResponse>
- Throws:
ApiException- if fails to make API call
-
tenantsDelete
delete tenant- Parameters:
id- id is the unique identifier of the tenant to be deleted. (required)- Returns:
- TenantDeleteResponse
- Throws:
ApiException- if fails to make API call
-
tenantsDeleteWithHttpInfo
delete tenant- Parameters:
id- id is the unique identifier of the tenant to be deleted. (required)- Returns:
- ApiResponse<TenantDeleteResponse>
- Throws:
ApiException- if fails to make API call
-
tenantsList
list tenants- Parameters:
body- TenantListRequest is the message used for the request to list all tenants. (required)- Returns:
- TenantListResponse
- Throws:
ApiException- if fails to make API call
-
tenantsListWithHttpInfo
public ApiResponse<TenantListResponse> tenantsListWithHttpInfo(TenantListRequest body) throws ApiException list tenants- Parameters:
body- TenantListRequest is the message used for the request to list all tenants. (required)- Returns:
- ApiResponse<TenantListResponse>
- Throws:
ApiException- if fails to make API call
-