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]>
6.7 KiB
GlobalConnectionsApi
All URIs are relative to https://api.hanzo.ai
| Method | HTTP request | Description |
|---|---|---|
| autoListGlobalConnections | GET /v1/auto/global-connections | List platform-wide connections (EE) |
| flowCreateGlobalConnection | POST /v1/flow/global-connections | Create a global connection (EE) |
| flowDeleteGlobalConnection | DELETE /v1/flow/global-connections/{id} | Delete a global connection (EE) |
| flowListGlobalConnections | GET /v1/flow/global-connections | List platform-wide connections (EE) |
| flowUpdateGlobalConnection | POST /v1/flow/global-connections/{id} | Update a global connection (EE) |
autoListGlobalConnections
kotlin.Any autoListGlobalConnections()
List platform-wide connections (EE)
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = GlobalConnectionsApi()
try {
val result : kotlin.Any = apiInstance.autoListGlobalConnections()
println(result)
} catch (e: ClientException) {
println("4xx response calling GlobalConnectionsApi#autoListGlobalConnections")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling GlobalConnectionsApi#autoListGlobalConnections")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
flowCreateGlobalConnection
kotlin.Any flowCreateGlobalConnection(body)
Create a global connection (EE)
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = GlobalConnectionsApi()
val body : kotlin.Any = Object // kotlin.Any |
try {
val result : kotlin.Any = apiInstance.flowCreateGlobalConnection(body)
println(result)
} catch (e: ClientException) {
println("4xx response calling GlobalConnectionsApi#flowCreateGlobalConnection")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling GlobalConnectionsApi#flowCreateGlobalConnection")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| body | kotlin.Any |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: application/json
- Accept: application/json
flowDeleteGlobalConnection
flowDeleteGlobalConnection(id)
Delete a global connection (EE)
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = GlobalConnectionsApi()
val id : kotlin.String = id_example // kotlin.String |
try {
apiInstance.flowDeleteGlobalConnection(id)
} catch (e: ClientException) {
println("4xx response calling GlobalConnectionsApi#flowDeleteGlobalConnection")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling GlobalConnectionsApi#flowDeleteGlobalConnection")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| id | kotlin.String |
Return type
null (empty response body)
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
flowListGlobalConnections
kotlin.Any flowListGlobalConnections()
List platform-wide connections (EE)
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = GlobalConnectionsApi()
try {
val result : kotlin.Any = apiInstance.flowListGlobalConnections()
println(result)
} catch (e: ClientException) {
println("4xx response calling GlobalConnectionsApi#flowListGlobalConnections")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling GlobalConnectionsApi#flowListGlobalConnections")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
flowUpdateGlobalConnection
kotlin.Any flowUpdateGlobalConnection(id, body)
Update a global connection (EE)
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = GlobalConnectionsApi()
val id : kotlin.String = id_example // kotlin.String |
val body : kotlin.Any = Object // kotlin.Any |
try {
val result : kotlin.Any = apiInstance.flowUpdateGlobalConnection(id, body)
println(result)
} catch (e: ClientException) {
println("4xx response calling GlobalConnectionsApi#flowUpdateGlobalConnection")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling GlobalConnectionsApi#flowUpdateGlobalConnection")
e.printStackTrace()
}
Parameters
| id | kotlin.String| | |
| Name | Type | Description | Notes |
|---|---|---|---|
| body | kotlin.Any |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: application/json
- Accept: application/json