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

x/windmill/windmill-api/index.ts>ResourceService

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 ResourceService
import { ResourceService } from "https://deno.land/x/windmill@v1.49.1/windmill-api/index.ts";

Static Methods

createResource(unnamed 0: { workspace: string; requestBody: CreateResource; }): CancelablePromise<string>

create resource

createResourceType(unnamed 0: { workspace: string; requestBody: ResourceType; }): CancelablePromise<string>

create resource_type

deleteResource(unnamed 0: { workspace: string; path: string; }): CancelablePromise<string>

delete resource

deleteResourceType(unnamed 0: { workspace: string; path: string; }): CancelablePromise<string>

delete resource_type

existsResource(unnamed 0: { workspace: string; path: string; }): CancelablePromise<boolean>

does resource exists

existsResourceType(unnamed 0: { workspace: string; path: string; }): CancelablePromise<boolean>

does resource_type exists

getResource(unnamed 0: { workspace: string; path: string; }): CancelablePromise<Resource>

get resource

getResourceType(unnamed 0: { workspace: string; path: string; }): CancelablePromise<ResourceType>

get resource_type

getResourceValue(unnamed 0: { workspace: string; path: string; }): CancelablePromise<any>

get resource value

listResource(unnamed 0: { workspace: string; page?: number; perPage?: number; resourceType?: string; }): CancelablePromise<Array<Resource>>

list resources

listResourceType(unnamed 0: { workspace: string; }): CancelablePromise<Array<ResourceType>>

list resource_types

listResourceTypeNames(unnamed 0: { workspace: string; }): CancelablePromise<Array<string>>

list resource_types names

updateResource(unnamed 0: { workspace: string; path: string; requestBody: EditResource; }): CancelablePromise<string>

update resource

updateResourceType(unnamed 0: { workspace: string; path: string; requestBody: EditResourceType; }): CancelablePromise<string>

update resource_type