Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ContextManager

Hierarchy

  • ContextManager

Constructors

constructor

Accessors

getDefaultComputeContexts

  • get getDefaultComputeContexts(): string[]

getDefaultLauncherContexts

  • get getDefaultLauncherContexts(): string[]

Methods

createComputeContext

  • createComputeContext(contextName: string, launchContextName: string, sharedAccountId: string, autoExecLines: string[], accessToken?: undefined | string, authorizedUsers?: string[]): Promise<Context>
  • Parameters

    • contextName: string
    • launchContextName: string
    • sharedAccountId: string
    • autoExecLines: string[]
    • Optional accessToken: undefined | string
    • Optional authorizedUsers: string[]

    Returns Promise<Context>

createLauncherContext

  • createLauncherContext(contextName: string, description: string, launchType?: string, accessToken?: undefined | string): Promise<Context>
  • Parameters

    • contextName: string
    • description: string
    • Default value launchType: string = "direct"
    • Optional accessToken: undefined | string

    Returns Promise<Context>

deleteComputeContext

  • deleteComputeContext(contextName: string, accessToken?: undefined | string): Promise<object>

editComputeContext

  • editComputeContext(contextName: string, editedContext: EditContextInput, accessToken?: undefined | string): Promise<object>

getComputeContextById

  • getComputeContextById(contextId: string, accessToken?: undefined | string): Promise<ContextAllAttributes>

getComputeContextByName

  • getComputeContextByName(contextName: string, accessToken?: undefined | string): Promise<Context>

getComputeContexts

  • getComputeContexts(accessToken?: undefined | string): Promise<object[]>

getExecutableContexts

  • getExecutableContexts(executeScript: Function, authConfig?: AuthConfig): Promise<any[]>

getLauncherContexts

  • getLauncherContexts(accessToken?: undefined | string): Promise<object[]>

isDefaultContext

  • isDefaultContext(context: string, defaultContexts?: string[], errorMessage?: string, listDefaults?: boolean): void
  • Parameters

    • context: string
    • Default value defaultContexts: string[] = this.defaultComputeContexts
    • Default value errorMessage: string = ""
    • Default value listDefaults: boolean = false

    Returns void

Generated using TypeDoc