Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ContextManager

Hierarchy

  • ContextManager

Constructors

constructor

  • new ContextManager(serverUrl: string, setCsrfToken: function): ContextManager

Properties

defaultComputeContexts

defaultComputeContexts: string[] = ['CAS Formats service compute context','SAS Model Manager compute context','SAS Studio compute context','SAS Visual Forecasting compute context','Data Mining compute context','SAS Job Execution compute context']

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>

deleteContext

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

    • contextName: string
    • Optional accessToken: undefined | string

    Returns 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[]>
  • Parameters

    • Optional accessToken: undefined | string

    Returns Promise<object[]>

getExecutableContexts

  • getExecutableContexts(executeScript: Function, accessToken?: undefined | string): Promise<any[]>
  • Parameters

    • executeScript: Function
    • Optional accessToken: undefined | string

    Returns Promise<any[]>

getLauncherContexts

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

    • Optional accessToken: undefined | string

    Returns Promise<object[]>

Generated using TypeDoc