ResourceApi

interface ResourceApi

Retrofit service interface to interact with dataos resources.

Functions

Link copied to clipboard
@GET(value = "api/v1/workspaces/{workspace}/resources/cluster/{name}")
abstract fun fetchCluster(@Path(value = "workspace") workspace: String, @Path(value = "name") name: String): Call<Map<String, Any>>
Link copied to clipboard
@GET(value = "api/v1/workspaces/{workspace}/resources/database/{name}")
abstract fun fetchDatabase(@Path(value = "workspace") workspace: String, @Path(value = "name") name: String): Call<Map<String, Any>>
Link copied to clipboard
@GET(value = "api/v1/resources/depot/{name}")
abstract fun fetchDepot(@Path(value = "name") resourceName: String): Call<Map<String, Any>>
Link copied to clipboard
@GET(value = "api/v1/workspaces/{workspace}/resources/{type}/{name}")
abstract fun fetchResource(@Path(value = "workspace") workspace: String, @Path(value = "type") type: String, @Path(value = "name") name: String): Call<Map<String, Any>>
Link copied to clipboard
@GET(value = "api/v1/workspaces/{workspace}/resources/secret/{name}")
abstract fun fetchSecret(@Path(value = "workspace") workspace: String, @Path(value = "name") name: String): Call<Map<String, Any>>
Link copied to clipboard
@GET(value = "api/v1/workspaces/{workspace}/resources/service/{name}")
abstract fun fetchService(@Path(value = "workspace") workspace: String, @Path(value = "name") name: String): Call<Map<String, Any>>
Link copied to clipboard
@GET(value = "api/v1/workspaces/{workspace}/resources/workflow/{name}")
abstract fun fetchWorkflow(@Path(value = "workspace") workspace: String, @Path(value = "name") name: String): Call<Map<String, Any>>
Link copied to clipboard
@GET(value = "api/v1/workspaces/{workspace}")
abstract fun fetchWorkspace(@Path(value = "workspace") workspace: String): Call<Map<String, Any>>