Coroutine-native client covering the full Hanzo /v1 cloud surface, for JVM and Android. Generated with openapi-generator kotlin (library=jvm-okhttp4, useCoroutines=true). Coordinate: ai.hanzo:sdk. Base URL: https://api.hanzo.ai. Co-authored-by: Hanzo Dev <[email protected]>
17 KiB
TaskAPIApi
All URIs are relative to https://api.hanzo.ai
| Method | HTTP request | Description |
|---|---|---|
| cloudApiControllerAddTask | POST /v1/cloud/add-task | Api Controller Add Task |
| cloudApiControllerDeleteTask | POST /v1/cloud/delete-task | Api Controller Delete Task |
| cloudApiControllerGetGlobalTasks | GET /v1/cloud/get-global-tasks | Api Controller Get Global Tasks |
| cloudApiControllerGetTask | GET /v1/cloud/get-task | Api Controller Get Task |
| cloudApiControllerGetTasks | GET /v1/cloud/get-tasks | Api Controller Get Tasks |
| cloudApiControllerUpdateTask | POST /v1/cloud/update-task | Api Controller Update Task |
| nexusAddTask | POST /v1/nexus/add-task | add Task |
| nexusDeleteTask | POST /v1/nexus/delete-task | delete Task |
| nexusGetGlobalTasks | GET /v1/nexus/get-global-tasks | get Global Tasks |
| nexusGetTask | GET /v1/nexus/get-task | get Task |
| nexusGetTasks | GET /v1/nexus/get-tasks | get Tasks |
| nexusUpdateTask | POST /v1/nexus/update-task | update Task |
cloudApiControllerAddTask
CloudControllersResponse cloudApiControllerAddTask(cloudObjectTask)
Api Controller Add Task
add task
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = TaskAPIApi()
val cloudObjectTask : CloudObjectTask = // CloudObjectTask | The details of the task
try {
val result : CloudControllersResponse = apiInstance.cloudApiControllerAddTask(cloudObjectTask)
println(result)
} catch (e: ClientException) {
println("4xx response calling TaskAPIApi#cloudApiControllerAddTask")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TaskAPIApi#cloudApiControllerAddTask")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| cloudObjectTask | CloudObjectTask | The details of the task |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: application/json
- Accept: application/json
cloudApiControllerDeleteTask
CloudControllersResponse cloudApiControllerDeleteTask(cloudObjectTask)
Api Controller Delete Task
delete task
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = TaskAPIApi()
val cloudObjectTask : CloudObjectTask = // CloudObjectTask | The details of the task
try {
val result : CloudControllersResponse = apiInstance.cloudApiControllerDeleteTask(cloudObjectTask)
println(result)
} catch (e: ClientException) {
println("4xx response calling TaskAPIApi#cloudApiControllerDeleteTask")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TaskAPIApi#cloudApiControllerDeleteTask")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| cloudObjectTask | CloudObjectTask | The details of the task |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: application/json
- Accept: application/json
cloudApiControllerGetGlobalTasks
kotlin.collections.List<CloudObjectTask> cloudApiControllerGetGlobalTasks()
Api Controller Get Global Tasks
get global tasks
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = TaskAPIApi()
try {
val result : kotlin.collections.List<CloudObjectTask> = apiInstance.cloudApiControllerGetGlobalTasks()
println(result)
} catch (e: ClientException) {
println("4xx response calling TaskAPIApi#cloudApiControllerGetGlobalTasks")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TaskAPIApi#cloudApiControllerGetGlobalTasks")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
kotlin.collections.List<CloudObjectTask>
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
cloudApiControllerGetTask
CloudObjectTask cloudApiControllerGetTask(id)
Api Controller Get Task
get task
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = TaskAPIApi()
val id : kotlin.String = id_example // kotlin.String | The id (owner/name) of task
try {
val result : CloudObjectTask = apiInstance.cloudApiControllerGetTask(id)
println(result)
} catch (e: ClientException) {
println("4xx response calling TaskAPIApi#cloudApiControllerGetTask")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TaskAPIApi#cloudApiControllerGetTask")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| id | kotlin.String | The id (owner/name) of task |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
cloudApiControllerGetTasks
kotlin.collections.List<CloudObjectTask> cloudApiControllerGetTasks(owner)
Api Controller Get Tasks
get tasks
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = TaskAPIApi()
val owner : kotlin.String = owner_example // kotlin.String | The owner of task
try {
val result : kotlin.collections.List<CloudObjectTask> = apiInstance.cloudApiControllerGetTasks(owner)
println(result)
} catch (e: ClientException) {
println("4xx response calling TaskAPIApi#cloudApiControllerGetTasks")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TaskAPIApi#cloudApiControllerGetTasks")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| owner | kotlin.String | The owner of task |
Return type
kotlin.collections.List<CloudObjectTask>
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
cloudApiControllerUpdateTask
CloudControllersResponse cloudApiControllerUpdateTask(id, cloudObjectTask)
Api Controller Update Task
update task
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = TaskAPIApi()
val id : kotlin.String = id_example // kotlin.String | The id (owner/name) of the task
val cloudObjectTask : CloudObjectTask = // CloudObjectTask | The details of the task
try {
val result : CloudControllersResponse = apiInstance.cloudApiControllerUpdateTask(id, cloudObjectTask)
println(result)
} catch (e: ClientException) {
println("4xx response calling TaskAPIApi#cloudApiControllerUpdateTask")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TaskAPIApi#cloudApiControllerUpdateTask")
e.printStackTrace()
}
Parameters
| id | kotlin.String| The id (owner/name) of the task | |
| Name | Type | Description | Notes |
|---|---|---|---|
| cloudObjectTask | CloudObjectTask | The details of the task |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: application/json
- Accept: application/json
nexusAddTask
NexusResponse nexusAddTask(nexusTask)
add Task
Add a task
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = TaskAPIApi()
val nexusTask : NexusTask = // NexusTask | The details of the task
try {
val result : NexusResponse = apiInstance.nexusAddTask(nexusTask)
println(result)
} catch (e: ClientException) {
println("4xx response calling TaskAPIApi#nexusAddTask")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TaskAPIApi#nexusAddTask")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| nexusTask | NexusTask | The details of the task |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: application/json
- Accept: application/json
nexusDeleteTask
NexusResponse nexusDeleteTask(nexusTask)
delete Task
Delete a task
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = TaskAPIApi()
val nexusTask : NexusTask = // NexusTask | The details of the task
try {
val result : NexusResponse = apiInstance.nexusDeleteTask(nexusTask)
println(result)
} catch (e: ClientException) {
println("4xx response calling TaskAPIApi#nexusDeleteTask")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TaskAPIApi#nexusDeleteTask")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| nexusTask | NexusTask | The details of the task |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: application/json
- Accept: application/json
nexusGetGlobalTasks
kotlin.collections.List<NexusTask> nexusGetGlobalTasks()
get Global Tasks
Get global tasks
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = TaskAPIApi()
try {
val result : kotlin.collections.List<NexusTask> = apiInstance.nexusGetGlobalTasks()
println(result)
} catch (e: ClientException) {
println("4xx response calling TaskAPIApi#nexusGetGlobalTasks")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TaskAPIApi#nexusGetGlobalTasks")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
kotlin.collections.List<NexusTask>
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
nexusGetTask
NexusTask nexusGetTask(id)
get Task
Get a task
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = TaskAPIApi()
val id : kotlin.String = id_example // kotlin.String | The id (owner/name) of the task
try {
val result : NexusTask = apiInstance.nexusGetTask(id)
println(result)
} catch (e: ClientException) {
println("4xx response calling TaskAPIApi#nexusGetTask")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TaskAPIApi#nexusGetTask")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| id | kotlin.String | The id (owner/name) of the task |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
nexusGetTasks
kotlin.collections.List<NexusTask> nexusGetTasks(owner)
get Tasks
Get tasks
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = TaskAPIApi()
val owner : kotlin.String = owner_example // kotlin.String | The owner of the tasks
try {
val result : kotlin.collections.List<NexusTask> = apiInstance.nexusGetTasks(owner)
println(result)
} catch (e: ClientException) {
println("4xx response calling TaskAPIApi#nexusGetTasks")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TaskAPIApi#nexusGetTasks")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| owner | kotlin.String | The owner of the tasks |
Return type
kotlin.collections.List<NexusTask>
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
nexusUpdateTask
NexusResponse nexusUpdateTask(id, nexusTask)
update Task
Update a task
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = TaskAPIApi()
val id : kotlin.String = id_example // kotlin.String | The id (owner/name) of the task
val nexusTask : NexusTask = // NexusTask | The details of the task
try {
val result : NexusResponse = apiInstance.nexusUpdateTask(id, nexusTask)
println(result)
} catch (e: ClientException) {
println("4xx response calling TaskAPIApi#nexusUpdateTask")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TaskAPIApi#nexusUpdateTask")
e.printStackTrace()
}
Parameters
| id | kotlin.String| The id (owner/name) of the task | |
| Name | Type | Description | Notes |
|---|---|---|---|
| nexusTask | NexusTask | The details of the task |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: application/json
- Accept: application/json