Class BatchServiceClient

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(storageAccount: string, storageAccessKey: string, host: string, usePathstyleUri: boolean, authenticationProvider: any): BatchServiceClient

Parameters

  • storageAccount: string
  • storageAccessKey: string
  • host: string
  • usePathstyleUri: boolean
  • authenticationProvider: any

Returns

BatchServiceClient

Properties

public apiVersion: string

public operations: Array<any>

public usePathStyleUri: string

Methods

public addListener(event: string, listener: Function): EventEmitter

Parameters

  • event: string
  • listener: Function

Returns

EventEmitter

public addOperation(webResource: WebResource, outputData: any)

Parameters

public beginBatch()

public commitBatch(callback: (error: any, operationResponses: any[], response: any) => void)

Parameters

  • callback: (error: any, operationResponses: any[], response: any) => void

public commitBatch(options: any, callback: (error: any, operationResponses: any[], response: any) => void)

Parameters

  • options: any
  • callback: (error: any, operationResponses: any[], response: any) => void

public emit(event: string, args?: Array<any>): boolean

Parameters

  • event: string
  • args?: Array<any> optional

Returns

boolean

public hasOperations(): boolean

Returns

boolean

public isEmulated(): boolean

Returns

boolean

public isInBatch(): boolean

Returns

boolean

public listeners(event: string): Array<Function>

Parameters

  • event: string

Returns

Array<Function>

public on(event: string, listener: Function): EventEmitter

Parameters

  • event: string
  • listener: Function

Returns

EventEmitter

public once(event: string, listener: Function): EventEmitter

Parameters

  • event: string
  • listener: Function

Returns

EventEmitter

public parseMetadataHeaders(headers: any): any

Parameters

  • headers: any

Returns

any

public performRequest(webResource: WebResource, outputData: string, options: any, callback: Function)

Parameters

  • webResource: WebResource
  • outputData: string
  • options: any
  • callback: Function

public performRequestInputStream(webResource: WebResource, outputData: string, inputStream: any, options: any, callback: Function)

Parameters

  • webResource: WebResource
  • outputData: string
  • inputStream: any
  • options: any
  • callback: Function

public performRequestOutputStream(webResource: WebResource, outputStream: any, options: any, callback: Function)

Parameters

  • webResource: WebResource
  • outputStream: any
  • options: any
  • callback: Function

public processOperation(webResource: WebResource, rawResponse: string): any

Parameters

Returns

any

public processResponse(responseObject: any, requestOperations: Array<any>): Array<any>

Parameters

  • responseObject: any
  • requestOperations: Array<any>

Returns

Array<any>

public removeAllListeners(event?: string): EventEmitter

Parameters

  • event?: string optional

Returns

EventEmitter

public removeListener(event: string, listener: Function): EventEmitter

Parameters

  • event: string
  • listener: Function

Returns

EventEmitter

public rollback()

public setHost(host: string)

Parameters

  • host: string

public setMaxListeners(n: number)

Parameters

  • n: number

public setProxy(proxyUrl: string, proxyPort: number)

Parameters

  • proxyUrl: string
  • proxyPort: number

public withFilter(newFilter: { handle: (requestOptions: any, next: Function) => void; }): ServiceClient

Parameters

  • newFilter: { handle: (requestOptions: any, next: Function) => void; }

Returns

ServiceClient