Skip to main content
Module

x/windmill/mod.ts>ResourceApi

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

Constructors

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

Properties

private
api: ObservableResourceApi

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