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]>
18 KiB
PlansApi
All URIs are relative to https://api.hanzo.ai
| Method | HTTP request | Description |
|---|---|---|
| planGetPlanEntitlements | GET /v1/plans/entitlements/{id} | Entitlements for a plan |
| planGetPlanPolicy | GET /v1/plans/policy | Plan policy |
| planGetPlanSchema | GET /v1/plans/schema | Entitlement schema |
| planGetPlanVocab | GET /v1/plans/vocab | Entitlement vocabulary |
| planListBlockchainPlans | GET /v1/plans/blockchain | Blockchain plans |
| planListCloudPlans | GET /v1/plans/cloud | Cloud plans |
| planListDnsPlans | GET /v1/plans/dns | DNS plans |
| planListGpuPlans | GET /v1/plans/gpu | GPU plans |
| planListPlanRegions | GET /v1/plans/regions | Regions |
| planListPlanTools | GET /v1/plans/tools | Tools catalog |
| planListPlans | GET /v1/plans | The full plan catalog |
| planListStoragePlans | GET /v1/plans/storage | Storage plans |
| planListSubscriptionPlans | GET /v1/plans/subscriptions | Subscription plans |
| planPlansHealth | GET /v1/plans/health | Health check |
| planResolvePlan | GET /v1/plans/resolve/{id} | Resolve a plan by id |
planGetPlanEntitlements
kotlin.collections.Map<kotlin.String, kotlin.Any> planGetPlanEntitlements(id)
Entitlements for a plan
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = PlansApi()
val id : kotlin.String = id_example // kotlin.String | Plan id
try {
val result : kotlin.collections.Map<kotlin.String, kotlin.Any> = apiInstance.planGetPlanEntitlements(id)
println(result)
} catch (e: ClientException) {
println("4xx response calling PlansApi#planGetPlanEntitlements")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling PlansApi#planGetPlanEntitlements")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| id | kotlin.String | Plan id |
Return type
kotlin.collections.Map<kotlin.String, kotlin.Any>
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
planGetPlanPolicy
kotlin.collections.Map<kotlin.String, kotlin.Any> planGetPlanPolicy()
Plan policy
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = PlansApi()
try {
val result : kotlin.collections.Map<kotlin.String, kotlin.Any> = apiInstance.planGetPlanPolicy()
println(result)
} catch (e: ClientException) {
println("4xx response calling PlansApi#planGetPlanPolicy")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling PlansApi#planGetPlanPolicy")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
kotlin.collections.Map<kotlin.String, kotlin.Any>
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
planGetPlanSchema
kotlin.collections.Map<kotlin.String, kotlin.Any> planGetPlanSchema()
Entitlement schema
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = PlansApi()
try {
val result : kotlin.collections.Map<kotlin.String, kotlin.Any> = apiInstance.planGetPlanSchema()
println(result)
} catch (e: ClientException) {
println("4xx response calling PlansApi#planGetPlanSchema")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling PlansApi#planGetPlanSchema")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
kotlin.collections.Map<kotlin.String, kotlin.Any>
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
planGetPlanVocab
kotlin.collections.Map<kotlin.String, kotlin.Any> planGetPlanVocab()
Entitlement vocabulary
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = PlansApi()
try {
val result : kotlin.collections.Map<kotlin.String, kotlin.Any> = apiInstance.planGetPlanVocab()
println(result)
} catch (e: ClientException) {
println("4xx response calling PlansApi#planGetPlanVocab")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling PlansApi#planGetPlanVocab")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
kotlin.collections.Map<kotlin.String, kotlin.Any>
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
planListBlockchainPlans
kotlin.collections.Map<kotlin.String, kotlin.Any> planListBlockchainPlans()
Blockchain plans
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = PlansApi()
try {
val result : kotlin.collections.Map<kotlin.String, kotlin.Any> = apiInstance.planListBlockchainPlans()
println(result)
} catch (e: ClientException) {
println("4xx response calling PlansApi#planListBlockchainPlans")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling PlansApi#planListBlockchainPlans")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
kotlin.collections.Map<kotlin.String, kotlin.Any>
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
planListCloudPlans
kotlin.collections.Map<kotlin.String, kotlin.Any> planListCloudPlans()
Cloud plans
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = PlansApi()
try {
val result : kotlin.collections.Map<kotlin.String, kotlin.Any> = apiInstance.planListCloudPlans()
println(result)
} catch (e: ClientException) {
println("4xx response calling PlansApi#planListCloudPlans")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling PlansApi#planListCloudPlans")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
kotlin.collections.Map<kotlin.String, kotlin.Any>
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
planListDnsPlans
kotlin.collections.Map<kotlin.String, kotlin.Any> planListDnsPlans()
DNS plans
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = PlansApi()
try {
val result : kotlin.collections.Map<kotlin.String, kotlin.Any> = apiInstance.planListDnsPlans()
println(result)
} catch (e: ClientException) {
println("4xx response calling PlansApi#planListDnsPlans")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling PlansApi#planListDnsPlans")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
kotlin.collections.Map<kotlin.String, kotlin.Any>
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
planListGpuPlans
kotlin.collections.Map<kotlin.String, kotlin.Any> planListGpuPlans()
GPU plans
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = PlansApi()
try {
val result : kotlin.collections.Map<kotlin.String, kotlin.Any> = apiInstance.planListGpuPlans()
println(result)
} catch (e: ClientException) {
println("4xx response calling PlansApi#planListGpuPlans")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling PlansApi#planListGpuPlans")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
kotlin.collections.Map<kotlin.String, kotlin.Any>
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
planListPlanRegions
kotlin.collections.Map<kotlin.String, kotlin.Any> planListPlanRegions()
Regions
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = PlansApi()
try {
val result : kotlin.collections.Map<kotlin.String, kotlin.Any> = apiInstance.planListPlanRegions()
println(result)
} catch (e: ClientException) {
println("4xx response calling PlansApi#planListPlanRegions")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling PlansApi#planListPlanRegions")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
kotlin.collections.Map<kotlin.String, kotlin.Any>
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
planListPlanTools
kotlin.collections.Map<kotlin.String, kotlin.Any> planListPlanTools()
Tools catalog
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = PlansApi()
try {
val result : kotlin.collections.Map<kotlin.String, kotlin.Any> = apiInstance.planListPlanTools()
println(result)
} catch (e: ClientException) {
println("4xx response calling PlansApi#planListPlanTools")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling PlansApi#planListPlanTools")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
kotlin.collections.Map<kotlin.String, kotlin.Any>
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
planListPlans
kotlin.collections.Map<kotlin.String, kotlin.Any> planListPlans()
The full plan catalog
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = PlansApi()
try {
val result : kotlin.collections.Map<kotlin.String, kotlin.Any> = apiInstance.planListPlans()
println(result)
} catch (e: ClientException) {
println("4xx response calling PlansApi#planListPlans")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling PlansApi#planListPlans")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
kotlin.collections.Map<kotlin.String, kotlin.Any>
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
planListStoragePlans
kotlin.collections.Map<kotlin.String, kotlin.Any> planListStoragePlans()
Storage plans
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = PlansApi()
try {
val result : kotlin.collections.Map<kotlin.String, kotlin.Any> = apiInstance.planListStoragePlans()
println(result)
} catch (e: ClientException) {
println("4xx response calling PlansApi#planListStoragePlans")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling PlansApi#planListStoragePlans")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
kotlin.collections.Map<kotlin.String, kotlin.Any>
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
planListSubscriptionPlans
kotlin.collections.Map<kotlin.String, kotlin.Any> planListSubscriptionPlans()
Subscription plans
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = PlansApi()
try {
val result : kotlin.collections.Map<kotlin.String, kotlin.Any> = apiInstance.planListSubscriptionPlans()
println(result)
} catch (e: ClientException) {
println("4xx response calling PlansApi#planListSubscriptionPlans")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling PlansApi#planListSubscriptionPlans")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
kotlin.collections.Map<kotlin.String, kotlin.Any>
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
planPlansHealth
PlanPlansHealth200Response planPlansHealth()
Health check
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = PlansApi()
try {
val result : PlanPlansHealth200Response = apiInstance.planPlansHealth()
println(result)
} catch (e: ClientException) {
println("4xx response calling PlansApi#planPlansHealth")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling PlansApi#planPlansHealth")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
planResolvePlan
kotlin.collections.Map<kotlin.String, kotlin.Any> planResolvePlan(id)
Resolve a plan by id
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = PlansApi()
val id : kotlin.String = id_example // kotlin.String | Plan id
try {
val result : kotlin.collections.Map<kotlin.String, kotlin.Any> = apiInstance.planResolvePlan(id)
println(result)
} catch (e: ClientException) {
println("4xx response calling PlansApi#planResolvePlan")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling PlansApi#planResolvePlan")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| id | kotlin.String | Plan id |
Return type
kotlin.collections.Map<kotlin.String, kotlin.Any>
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json