Class AsyncDepartmentsClient
- java.lang.Object
-
- com.chrt.api.resources.operations.departments.AsyncDepartmentsClient
-
public class AsyncDepartmentsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description AsyncDepartmentsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Boolean>addOperatorV1(java.lang.String departmentId, java.lang.String userId)Adds an operator to a department.java.util.concurrent.CompletableFuture<java.lang.Boolean>addOperatorV1(java.lang.String departmentId, java.lang.String userId, RequestOptions requestOptions)Adds an operator to a department.java.util.concurrent.CompletableFuture<java.lang.String>createV1(DepartmentClientCreate1 request)Creates a new department configuration for the caller's organization.java.util.concurrent.CompletableFuture<java.lang.String>createV1(DepartmentClientCreate1 request, RequestOptions requestOptions)Creates a new department configuration for the caller's organization.java.util.concurrent.CompletableFuture<java.lang.Boolean>deleteV1(java.lang.String departmentId)Deletes a department configuration.java.util.concurrent.CompletableFuture<java.lang.Boolean>deleteV1(java.lang.String departmentId, RequestOptions requestOptions)Deletes a department configuration.java.util.concurrent.CompletableFuture<Department1>getV1(java.lang.String departmentId)Retrieves a single department configuration.java.util.concurrent.CompletableFuture<Department1>getV1(java.lang.String departmentId, RequestOptions requestOptions)Retrieves a single department configuration.java.util.concurrent.CompletableFuture<DepartmentListRes>listV1()Lists department configurations for the caller's organization.java.util.concurrent.CompletableFuture<DepartmentListRes>listV1(DepartmentsListV1Request request)Lists department configurations for the caller's organization.java.util.concurrent.CompletableFuture<DepartmentListRes>listV1(DepartmentsListV1Request request, RequestOptions requestOptions)Lists department configurations for the caller's organization.java.util.concurrent.CompletableFuture<java.lang.Boolean>removeOperatorV1(java.lang.String departmentId, java.lang.String userId)Removes an operator from a department.java.util.concurrent.CompletableFuture<java.lang.Boolean>removeOperatorV1(java.lang.String departmentId, java.lang.String userId, RequestOptions requestOptions)Removes an operator from a department.java.util.concurrent.CompletableFuture<java.lang.Boolean>updateV1(java.lang.String departmentId)Updates a department configuration.java.util.concurrent.CompletableFuture<java.lang.Boolean>updateV1(java.lang.String departmentId, DepartmentClientUpdate1 request)Updates a department configuration.java.util.concurrent.CompletableFuture<java.lang.Boolean>updateV1(java.lang.String departmentId, DepartmentClientUpdate1 request, RequestOptions requestOptions)Updates a department configuration.AsyncRawDepartmentsClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
AsyncDepartmentsClient
public AsyncDepartmentsClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public AsyncRawDepartmentsClient withRawResponse()
Get responses with HTTP metadata like headers
-
listV1
public java.util.concurrent.CompletableFuture<DepartmentListRes> listV1()
Lists department configurations for the caller's organization. | authz: min_org_role=operator | () -> (DepartmentListRes)
-
listV1
public java.util.concurrent.CompletableFuture<DepartmentListRes> listV1(DepartmentsListV1Request request)
Lists department configurations for the caller's organization. | authz: min_org_role=operator | () -> (DepartmentListRes)
-
listV1
public java.util.concurrent.CompletableFuture<DepartmentListRes> listV1(DepartmentsListV1Request request, RequestOptions requestOptions)
Lists department configurations for the caller's organization. | authz: min_org_role=operator | () -> (DepartmentListRes)
-
getV1
public java.util.concurrent.CompletableFuture<Department1> getV1(java.lang.String departmentId)
Retrieves a single department configuration. | authz: min_org_role=operator | () -> (Department1)
-
getV1
public java.util.concurrent.CompletableFuture<Department1> getV1(java.lang.String departmentId, RequestOptions requestOptions)
Retrieves a single department configuration. | authz: min_org_role=operator | () -> (Department1)
-
deleteV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> deleteV1(java.lang.String departmentId)
Deletes a department configuration. | authz: min_org_role=administrator | () -> (bool)
-
deleteV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> deleteV1(java.lang.String departmentId, RequestOptions requestOptions)Deletes a department configuration. | authz: min_org_role=administrator | () -> (bool)
-
updateV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> updateV1(java.lang.String departmentId)
Updates a department configuration. | authz: min_org_role=administrator | (DepartmentClientUpdate1) -> (bool)
-
updateV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> updateV1(java.lang.String departmentId, DepartmentClientUpdate1 request)Updates a department configuration. | authz: min_org_role=administrator | (DepartmentClientUpdate1) -> (bool)
-
updateV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> updateV1(java.lang.String departmentId, DepartmentClientUpdate1 request, RequestOptions requestOptions)Updates a department configuration. | authz: min_org_role=administrator | (DepartmentClientUpdate1) -> (bool)
-
createV1
public java.util.concurrent.CompletableFuture<java.lang.String> createV1(DepartmentClientCreate1 request)
Creates a new department configuration for the caller's organization. | authz: min_org_role=administrator | (DepartmentClientCreate1) -> (PydanticObjectId)
-
createV1
public java.util.concurrent.CompletableFuture<java.lang.String> createV1(DepartmentClientCreate1 request, RequestOptions requestOptions)
Creates a new department configuration for the caller's organization. | authz: min_org_role=administrator | (DepartmentClientCreate1) -> (PydanticObjectId)
-
addOperatorV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> addOperatorV1(java.lang.String departmentId, java.lang.String userId)Adds an operator to a department. | authz: min_org_role=administrator | () -> (bool)
-
addOperatorV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> addOperatorV1(java.lang.String departmentId, java.lang.String userId, RequestOptions requestOptions)Adds an operator to a department. | authz: min_org_role=administrator | () -> (bool)
-
removeOperatorV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> removeOperatorV1(java.lang.String departmentId, java.lang.String userId)Removes an operator from a department. | authz: min_org_role=administrator | () -> (bool)
-
removeOperatorV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> removeOperatorV1(java.lang.String departmentId, java.lang.String userId, RequestOptions requestOptions)Removes an operator from a department. | authz: min_org_role=administrator | () -> (bool)
-
-