Files
sdk/docs/UsageAPIApi.md
zeekayandHanzo Dev b55332704a feat: Hanzo Cloud SDK for Kotlin (generated from OpenAPI v8.0.0)
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]>
2026-07-25 07:10:32 -07:00

8.0 KiB

UsageAPIApi

All URIs are relative to https://api.hanzo.ai

Method HTTP request Description
cloudApiControllerGetRangeUsages GET /v1/cloud/get-range-usages Api Controller Get Range Usages
cloudApiControllerGetUserTableInfos GET /v1/cloud/get-usages Api Controller Get User Table Infos
cloudApiControllerGetUsers GET /v1/cloud/get-users Api Controller Get Users
nexusGetRangeUsages GET /v1/nexus/get-range-usages get Range Usages
nexusGetUsages GET /v1/nexus/get-usages get Usages
nexusGetUsers GET /v1/nexus/get-users get Users

cloudApiControllerGetRangeUsages

kotlin.collections.List<CloudObjectUsage> cloudApiControllerGetRangeUsages(count)

Api Controller Get Range Usages

get range usages

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = UsageAPIApi()
val count : kotlin.String = count_example // kotlin.String | count of range usages
try {
    val result : kotlin.collections.List<CloudObjectUsage> = apiInstance.cloudApiControllerGetRangeUsages(count)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling UsageAPIApi#cloudApiControllerGetRangeUsages")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling UsageAPIApi#cloudApiControllerGetRangeUsages")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
count kotlin.String count of range usages

Return type

kotlin.collections.List<CloudObjectUsage>

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

cloudApiControllerGetUserTableInfos

kotlin.collections.List<CloudObjectUsage> cloudApiControllerGetUserTableInfos()

Api Controller Get User Table Infos

get userTableInfos

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = UsageAPIApi()
try {
    val result : kotlin.collections.List<CloudObjectUsage> = apiInstance.cloudApiControllerGetUserTableInfos()
    println(result)
} catch (e: ClientException) {
    println("4xx response calling UsageAPIApi#cloudApiControllerGetUserTableInfos")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling UsageAPIApi#cloudApiControllerGetUserTableInfos")
    e.printStackTrace()
}

Parameters

This endpoint does not need any parameter.

Return type

kotlin.collections.List<CloudObjectUsage>

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

cloudApiControllerGetUsers

kotlin.collections.List<kotlin.String> cloudApiControllerGetUsers()

Api Controller Get Users

get users

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = UsageAPIApi()
try {
    val result : kotlin.collections.List<kotlin.String> = apiInstance.cloudApiControllerGetUsers()
    println(result)
} catch (e: ClientException) {
    println("4xx response calling UsageAPIApi#cloudApiControllerGetUsers")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling UsageAPIApi#cloudApiControllerGetUsers")
    e.printStackTrace()
}

Parameters

This endpoint does not need any parameter.

Return type

kotlin.collections.List<kotlin.String>

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

nexusGetRangeUsages

kotlin.collections.List<CloudObjectUsage> nexusGetRangeUsages(count)

get Range Usages

Get range usages

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = UsageAPIApi()
val count : kotlin.String = count_example // kotlin.String | Count of range usages
try {
    val result : kotlin.collections.List<CloudObjectUsage> = apiInstance.nexusGetRangeUsages(count)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling UsageAPIApi#nexusGetRangeUsages")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling UsageAPIApi#nexusGetRangeUsages")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
count kotlin.String Count of range usages

Return type

kotlin.collections.List<CloudObjectUsage>

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

nexusGetUsages

kotlin.collections.List<CloudObjectUsage> nexusGetUsages()

get Usages

Get usage information

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = UsageAPIApi()
try {
    val result : kotlin.collections.List<CloudObjectUsage> = apiInstance.nexusGetUsages()
    println(result)
} catch (e: ClientException) {
    println("4xx response calling UsageAPIApi#nexusGetUsages")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling UsageAPIApi#nexusGetUsages")
    e.printStackTrace()
}

Parameters

This endpoint does not need any parameter.

Return type

kotlin.collections.List<CloudObjectUsage>

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

nexusGetUsers

kotlin.collections.List<kotlin.String> nexusGetUsers()

get Users

Get users

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = UsageAPIApi()
try {
    val result : kotlin.collections.List<kotlin.String> = apiInstance.nexusGetUsers()
    println(result)
} catch (e: ClientException) {
    println("4xx response calling UsageAPIApi#nexusGetUsers")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling UsageAPIApi#nexusGetUsers")
    e.printStackTrace()
}

Parameters

This endpoint does not need any parameter.

Return type

kotlin.collections.List<kotlin.String>

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json