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

5.8 KiB

S3Api

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

Method HTTP request Description
provisioningCreateS3 POST /v1/s3 Provision an object-storage bucket
provisioningDeleteS3 DELETE /v1/s3/{name} Deprovision an object-storage bucket
provisioningGetS3 GET /v1/s3/{name} Get one object-storage bucket
provisioningListS3 GET /v1/s3 List object-storage buckets for the caller's org

provisioningCreateS3

ProvisioningCreateResponse provisioningCreateS3(provisioningCreateRequest)

Provision an object-storage bucket

Example

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

val apiInstance = S3Api()
val provisioningCreateRequest : ProvisioningCreateRequest =  // ProvisioningCreateRequest | 
try {
    val result : ProvisioningCreateResponse = apiInstance.provisioningCreateS3(provisioningCreateRequest)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling S3Api#provisioningCreateS3")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling S3Api#provisioningCreateS3")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
provisioningCreateRequest ProvisioningCreateRequest

Return type

ProvisioningCreateResponse

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

provisioningDeleteS3

provisioningDeleteS3(name)

Deprovision an object-storage bucket

Example

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

val apiInstance = S3Api()
val name : kotlin.String = name_example // kotlin.String | The user-supplied resource name (slug). Lowercased and trimmed server-side; must match `^[a-z0-9]([a-z0-9-]{0,38}[a-z0-9])?$`. 
try {
    apiInstance.provisioningDeleteS3(name)
} catch (e: ClientException) {
    println("4xx response calling S3Api#provisioningDeleteS3")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling S3Api#provisioningDeleteS3")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
name kotlin.String The user-supplied resource name (slug). Lowercased and trimmed server-side; must match `^a-z0-9?$`.

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

provisioningGetS3

ProvisioningGetResponse provisioningGetS3(name)

Get one object-storage bucket

Example

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

val apiInstance = S3Api()
val name : kotlin.String = name_example // kotlin.String | The user-supplied resource name (slug). Lowercased and trimmed server-side; must match `^[a-z0-9]([a-z0-9-]{0,38}[a-z0-9])?$`. 
try {
    val result : ProvisioningGetResponse = apiInstance.provisioningGetS3(name)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling S3Api#provisioningGetS3")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling S3Api#provisioningGetS3")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
name kotlin.String The user-supplied resource name (slug). Lowercased and trimmed server-side; must match `^a-z0-9?$`.

Return type

ProvisioningGetResponse

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

provisioningListS3

kotlin.collections.List<ProvisioningListItem> provisioningListS3()

List object-storage buckets for the caller's org

Example

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

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

Parameters

This endpoint does not need any parameter.

Return type

kotlin.collections.List<ProvisioningListItem>

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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