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]>
12 KiB
ApplicationsApi
All URIs are relative to https://api.hanzo.ai
| Method | HTTP request | Description |
|---|---|---|
| iamApiControllerAddApplication | POST /v1/iam/applications | Api Controller Add Application |
| iamApiControllerDeleteApplication | DELETE /v1/iam/applications/{id} | Api Controller Delete Application |
| iamApiControllerGetApplication | GET /v1/iam/applications/{id} | Api Controller Get Application |
| iamApiControllerGetApplications | GET /v1/iam/applications | Api Controller Get Applications |
| iamApiControllerGetOrganizationApplications | GET /v1/iam/organizations/applications | Api Controller Get Organization Applications |
| iamApiControllerGetUserApplication | GET /v1/iam/users/application | Api Controller Get User Application |
| iamApiControllerUpdateApplication | PUT /v1/iam/applications/{id} | Api Controller Update Application |
iamApiControllerAddApplication
IamControllersResponse iamApiControllerAddApplication(iamObjectApplication)
Api Controller Add Application
add an application
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = ApplicationsApi()
val iamObjectApplication : IamObjectApplication = // IamObjectApplication | The details of the application
try {
val result : IamControllersResponse = apiInstance.iamApiControllerAddApplication(iamObjectApplication)
println(result)
} catch (e: ClientException) {
println("4xx response calling ApplicationsApi#iamApiControllerAddApplication")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ApplicationsApi#iamApiControllerAddApplication")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| iamObjectApplication | IamObjectApplication | The details of the application |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: application/json
- Accept: application/json
iamApiControllerDeleteApplication
IamControllersResponse iamApiControllerDeleteApplication(id, iamObjectApplication)
Api Controller Delete Application
delete an application
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = ApplicationsApi()
val id : kotlin.String = id_example // kotlin.String | Resource identifier (owner/name)
val iamObjectApplication : IamObjectApplication = // IamObjectApplication | The details of the application
try {
val result : IamControllersResponse = apiInstance.iamApiControllerDeleteApplication(id, iamObjectApplication)
println(result)
} catch (e: ClientException) {
println("4xx response calling ApplicationsApi#iamApiControllerDeleteApplication")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ApplicationsApi#iamApiControllerDeleteApplication")
e.printStackTrace()
}
Parameters
| id | kotlin.String| Resource identifier (owner/name) | |
| Name | Type | Description | Notes |
|---|---|---|---|
| iamObjectApplication | IamObjectApplication | The details of the application |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: application/json
- Accept: application/json
iamApiControllerGetApplication
IamObjectApplication iamApiControllerGetApplication(id)
Api Controller Get Application
get the detail of an application
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = ApplicationsApi()
val id : kotlin.String = id_example // kotlin.String | The id ( owner/name ) of the application.
try {
val result : IamObjectApplication = apiInstance.iamApiControllerGetApplication(id)
println(result)
} catch (e: ClientException) {
println("4xx response calling ApplicationsApi#iamApiControllerGetApplication")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ApplicationsApi#iamApiControllerGetApplication")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| id | kotlin.String | The id ( owner/name ) of the application. |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
iamApiControllerGetApplications
kotlin.collections.List<IamObjectApplication> iamApiControllerGetApplications(owner)
Api Controller Get Applications
get all applications
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = ApplicationsApi()
val owner : kotlin.String = owner_example // kotlin.String | The owner of applications.
try {
val result : kotlin.collections.List<IamObjectApplication> = apiInstance.iamApiControllerGetApplications(owner)
println(result)
} catch (e: ClientException) {
println("4xx response calling ApplicationsApi#iamApiControllerGetApplications")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ApplicationsApi#iamApiControllerGetApplications")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| owner | kotlin.String | The owner of applications. |
Return type
kotlin.collections.List<IamObjectApplication>
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
iamApiControllerGetOrganizationApplications
kotlin.collections.List<IamObjectApplication> iamApiControllerGetOrganizationApplications(organization)
Api Controller Get Organization Applications
get the detail of the organization's application
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = ApplicationsApi()
val organization : kotlin.String = organization_example // kotlin.String | The organization name
try {
val result : kotlin.collections.List<IamObjectApplication> = apiInstance.iamApiControllerGetOrganizationApplications(organization)
println(result)
} catch (e: ClientException) {
println("4xx response calling ApplicationsApi#iamApiControllerGetOrganizationApplications")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ApplicationsApi#iamApiControllerGetOrganizationApplications")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| organization | kotlin.String | The organization name |
Return type
kotlin.collections.List<IamObjectApplication>
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
iamApiControllerGetUserApplication
IamObjectApplication iamApiControllerGetUserApplication(id)
Api Controller Get User Application
get the detail of the user's application
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = ApplicationsApi()
val id : kotlin.String = id_example // kotlin.String | The id ( owner/name ) of the user
try {
val result : IamObjectApplication = apiInstance.iamApiControllerGetUserApplication(id)
println(result)
} catch (e: ClientException) {
println("4xx response calling ApplicationsApi#iamApiControllerGetUserApplication")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ApplicationsApi#iamApiControllerGetUserApplication")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| id | kotlin.String | The id ( owner/name ) of the user |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
iamApiControllerUpdateApplication
IamControllersResponse iamApiControllerUpdateApplication(id, iamObjectApplication)
Api Controller Update Application
update an application
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = ApplicationsApi()
val id : kotlin.String = id_example // kotlin.String | The id ( owner/name ) of the application
val iamObjectApplication : IamObjectApplication = // IamObjectApplication | The details of the application
try {
val result : IamControllersResponse = apiInstance.iamApiControllerUpdateApplication(id, iamObjectApplication)
println(result)
} catch (e: ClientException) {
println("4xx response calling ApplicationsApi#iamApiControllerUpdateApplication")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ApplicationsApi#iamApiControllerUpdateApplication")
e.printStackTrace()
}
Parameters
| id | kotlin.String| The id ( owner/name ) of the application | |
| Name | Type | Description | Notes |
|---|---|---|---|
| iamObjectApplication | IamObjectApplication | The details of the application |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: application/json
- Accept: application/json