UNPKG

node-tfe

Version:

A Typescript Client for Terraform Cloud/Enterprise V2 API

32 lines (31 loc) 2.28 kB
import { InlcudeRelatedResourcesOptions } from '../interfaces/InlcudeRelatedResourcesOptions'; import { Workspace } from '../interfaces/Workspace'; import { WorkspaceCreateOptions } from '../interfaces/WorkspaceCreateOptions'; import { WorkspaceList } from '../interfaces/WorkspaceList'; import { WorkspaceListOptions } from '../interfaces/WorkspaceListOptions'; import { WorkspaceLockOptions } from '../interfaces/WorkspaceLockOptions'; import { Workspaces as IWorkspaces } from '../interfaces/Workspaces'; import { WorkspaceUpdateOptions } from '../interfaces/WorkspaceUpdateOptions'; import { WorkspaceVariable } from '../interfaces/WorkspaceVariable'; import { WorkspaceVariableCreateOptions } from '../interfaces/WorkspaceVariableCreateOptions'; import { WorkspaceVariableUpdateOptions } from '../interfaces/WorkspaceVariableUpdateOptions'; import { Client } from '../tfe'; export declare class Workspaces implements IWorkspaces { private client; constructor(client: Client); create(organization: string, options: WorkspaceCreateOptions): Promise<Workspace>; list(organization: string, options?: WorkspaceListOptions): Promise<WorkspaceList>; read(organization: string, workspaceName: string, options?: InlcudeRelatedResourcesOptions): Promise<Workspace>; readById(workspaceId: string, options?: InlcudeRelatedResourcesOptions): Promise<Workspace>; update(organization: string, workspace: string, options: WorkspaceUpdateOptions): Promise<Workspace>; updateById(workspaceId: string, options: WorkspaceUpdateOptions): Promise<Workspace>; delete(organization: string, workspace: string): Promise<void>; deleteById(workspaceId: string): Promise<void>; lock(workspaceId: string, options?: WorkspaceLockOptions): Promise<Workspace>; unlock(workspaceId: string): Promise<Workspace>; forceUnlock(workspaceId: string): Promise<Workspace>; createVariable(workspaceId: string, options: WorkspaceVariableCreateOptions): Promise<WorkspaceVariable>; listVariables(workspaceId: string): Promise<WorkspaceVariable[]>; updateVariable(workspaceId: string, variableId: string, options: WorkspaceVariableUpdateOptions): Promise<WorkspaceVariable>; deleteVariable(workspaceId: string, variableId: string): Promise<void>; }