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

x/windmill/windmill-api/types/PromiseAPI.ts>PromiseResourceApi

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 PromiseResourceApi
import { PromiseResourceApi } from "https://deno.land/x/windmill@v1.38.0/windmill-api/types/PromiseAPI.ts";

Constructors

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

Methods

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

create resource

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

create resource_type

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

delete resource

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

delete resource_type

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

does resource exists

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

does resource_type exists

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

get resource

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

get resource_type

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

list resources

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

list resource_types

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

list resource_types names

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

update resource

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

update resource_type