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

x/windmill/mod.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
Re-export
import { ResourceService } from "https://deno.land/x/windmill@v1.323.0/mod.ts";

Static Methods

createResource(unnamed 0: { workspace: string; requestBody: CreateResource; updateIfExists?: boolean; }): 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

getResourceValueInterpolated(unnamed 0: { workspace: string; path: string; jobId?: string; }): CancelablePromise<any>

get resource interpolated (variables and resources are fully unrolled)

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

list resources

listResourceNames(unnamed 0: { workspace: string; name: string; }): CancelablePromise<Array<{ name: string; path: string; }>>

list resource names

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

list resource_types

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

list resource_types names

listSearchResource(unnamed 0: { workspace: string; }): CancelablePromise<Array<{ path: string; value: any; }>>

list resources for search

queryResourceTypes(unnamed 0: { workspace: string; text: string; limit?: number; }): CancelablePromise<Array<{ name: string; score: number; schema?: any; }>>

query resource types by similarity

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

updateResourceValue(unnamed 0: { workspace: string; path: string; requestBody: { value?: any; }; }): CancelablePromise<string>

update resource value