Files
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

4.6 KiB

VPCsApi

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

Method HTTP request Description
doCreateVpc POST /v1/vpcs Create a VPC
doDeleteVpc DELETE /v1/vpcs/{id} Delete one VPC (owned)
doGetVpc GET /v1/vpcs/{id} Get one VPC (owned)
doListVpcs GET /v1/vpcs List the caller's VPCs

doCreateVpc

DoVpc doCreateVpc(doVpcCreate)

Create a VPC

Example

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

val apiInstance = VPCsApi()
val doVpcCreate : DoVpcCreate =  // DoVpcCreate | 
try {
    val result : DoVpc = apiInstance.doCreateVpc(doVpcCreate)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling VPCsApi#doCreateVpc")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling VPCsApi#doCreateVpc")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
doVpcCreate DoVpcCreate

Return type

DoVpc

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

doDeleteVpc

doDeleteVpc(id)

Delete one VPC (owned)

Example

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

val apiInstance = VPCsApi()
val id : kotlin.String = id_example // kotlin.String | DO VPC id
try {
    apiInstance.doDeleteVpc(id)
} catch (e: ClientException) {
    println("4xx response calling VPCsApi#doDeleteVpc")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling VPCsApi#doDeleteVpc")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
id kotlin.String DO VPC id

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: application/json

doGetVpc

DoVpc doGetVpc(id)

Get one VPC (owned)

Example

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

val apiInstance = VPCsApi()
val id : kotlin.String = id_example // kotlin.String | DO VPC id
try {
    val result : DoVpc = apiInstance.doGetVpc(id)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling VPCsApi#doGetVpc")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling VPCsApi#doGetVpc")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
id kotlin.String DO VPC id

Return type

DoVpc

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

doListVpcs

DoListVpcs200Response doListVpcs()

List the caller's VPCs

Example

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

val apiInstance = VPCsApi()
try {
    val result : DoListVpcs200Response = apiInstance.doListVpcs()
    println(result)
} catch (e: ClientException) {
    println("4xx response calling VPCsApi#doListVpcs")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling VPCsApi#doListVpcs")
    e.printStackTrace()
}

Parameters

This endpoint does not need any parameter.

Return type

DoListVpcs200Response

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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