Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/windmill/windmill-api/types/ObservableAPI.ts>ObservableResourceApi

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
class ObservableResourceApi
import { ObservableResourceApi } from "https://deno.land/x/windmill@v1.38.3/windmill-api/types/ObservableAPI.ts";

Constructors

new
ObservableResourceApi(
configuration: Configuration,
requestFactory?: ResourceApiRequestFactory,
responseProcessor?: ResourceApiResponseProcessor,
)

Properties

private
configuration: Configuration
private
requestFactory: ResourceApiRequestFactory
private
responseProcessor: ResourceApiResponseProcessor

Methods

createResource(
workspace: string,
createResource: CreateResource,
_options?: Configuration,
): Observable<string>

create resource

createResourceType(
workspace: string,
resourceType: ResourceType,
_options?: Configuration,
): Observable<string>

create resource_type

deleteResource(
workspace: string,
path: string,
_options?: Configuration,
): Observable<string>

delete resource

deleteResourceType(
workspace: string,
path: string,
_options?: Configuration,
): Observable<string>

delete resource_type

existsResource(
workspace: string,
path: string,
_options?: Configuration,
): Observable<boolean>

does resource exists

existsResourceType(
workspace: string,
path: string,
_options?: Configuration,
): Observable<boolean>

does resource_type exists

getResource(
workspace: string,
path: string,
_options?: Configuration,
): Observable<Resource>

get resource

getResourceType(
workspace: string,
path: string,
_options?: Configuration,
): Observable<ResourceType>

get resource_type

listResource(
workspace: string,
page?: number,
perPage?: number,
resourceType?: string,
_options?: Configuration,
): Observable<Array<Resource>>

list resources

listResourceType(workspace: string, _options?: Configuration): Observable<Array<ResourceType>>

list resource_types

listResourceTypeNames(workspace: string, _options?: Configuration): Observable<Array<string>>

list resource_types names

updateResource(
workspace: string,
path: string,
editResource: EditResource,
_options?: Configuration,
): Observable<string>

update resource

updateResourceType(
workspace: string,
path: string,
editResourceType: EditResourceType,
_options?: Configuration,
): Observable<string>

update resource_type