Share via


File class

Class representing a File.

Constructors

File(BatchServiceClientContext)

Create a File.

Methods

deleteFromComputeNode(string, string, string, FileDeleteFromComputeNodeOptionalParams)
deleteFromComputeNode(string, string, string, FileDeleteFromComputeNodeOptionalParams, ServiceCallback<void>)
deleteFromComputeNode(string, string, string, ServiceCallback<void>)
deleteFromTask(string, string, string, FileDeleteFromTaskOptionalParams)
deleteFromTask(string, string, string, FileDeleteFromTaskOptionalParams, ServiceCallback<void>)
deleteFromTask(string, string, string, ServiceCallback<void>)
getFromComputeNode(string, string, string, FileGetFromComputeNodeOptionalParams)

Returns the content of the specified Compute Node file.

getFromComputeNode(string, string, string, FileGetFromComputeNodeOptionalParams, ServiceCallback<void>)
getFromComputeNode(string, string, string, ServiceCallback<void>)
getFromTask(string, string, string, FileGetFromTaskOptionalParams)

Returns the content of the specified Task file.

getFromTask(string, string, string, FileGetFromTaskOptionalParams, ServiceCallback<void>)
getFromTask(string, string, string, ServiceCallback<void>)
getPropertiesFromComputeNode(string, string, string, FileGetPropertiesFromComputeNodeOptionalParams)

Gets the properties of the specified Compute Node file.

getPropertiesFromComputeNode(string, string, string, FileGetPropertiesFromComputeNodeOptionalParams, ServiceCallback<void>)
getPropertiesFromComputeNode(string, string, string, ServiceCallback<void>)
getPropertiesFromTask(string, string, string, FileGetPropertiesFromTaskOptionalParams)

Gets the properties of the specified Task file.

getPropertiesFromTask(string, string, string, FileGetPropertiesFromTaskOptionalParams, ServiceCallback<void>)
getPropertiesFromTask(string, string, string, ServiceCallback<void>)
listFromComputeNode(string, string, FileListFromComputeNodeOptionalParams)
listFromComputeNode(string, string, FileListFromComputeNodeOptionalParams, ServiceCallback<NodeFileListResult>)
listFromComputeNode(string, string, ServiceCallback<NodeFileListResult>)
listFromComputeNodeNext(string, FileListFromComputeNodeNextOptionalParams)
listFromComputeNodeNext(string, FileListFromComputeNodeNextOptionalParams, ServiceCallback<NodeFileListResult>)
listFromComputeNodeNext(string, ServiceCallback<NodeFileListResult>)
listFromTask(string, string, FileListFromTaskOptionalParams)
listFromTask(string, string, FileListFromTaskOptionalParams, ServiceCallback<NodeFileListResult>)
listFromTask(string, string, ServiceCallback<NodeFileListResult>)
listFromTaskNext(string, FileListFromTaskNextOptionalParams)
listFromTaskNext(string, FileListFromTaskNextOptionalParams, ServiceCallback<NodeFileListResult>)
listFromTaskNext(string, ServiceCallback<NodeFileListResult>)

Constructor Details

File(BatchServiceClientContext)

Create a File.

new File(client: BatchServiceClientContext)

Parameters

client
BatchServiceClientContext

Reference to the service client.

Method Details

deleteFromComputeNode(string, string, string, FileDeleteFromComputeNodeOptionalParams)

function deleteFromComputeNode(poolId: string, nodeId: string, filePath: string, options?: FileDeleteFromComputeNodeOptionalParams): Promise<FileDeleteFromComputeNodeResponse>

Parameters

poolId

string

The ID of the Pool that contains the Compute Node.

nodeId

string

The ID of the Compute Node from which you want to delete the file.

filePath

string

The path to the file or directory that you want to delete.

options
FileDeleteFromComputeNodeOptionalParams

The optional parameters

Returns

Promise<Models.FileDeleteFromComputeNodeResponse>

deleteFromComputeNode(string, string, string, FileDeleteFromComputeNodeOptionalParams, ServiceCallback<void>)

function deleteFromComputeNode(poolId: string, nodeId: string, filePath: string, options: FileDeleteFromComputeNodeOptionalParams, callback: ServiceCallback<void>)

Parameters

poolId

string

The ID of the Pool that contains the Compute Node.

nodeId

string

The ID of the Compute Node from which you want to delete the file.

filePath

string

The path to the file or directory that you want to delete.

options
FileDeleteFromComputeNodeOptionalParams

The optional parameters

callback

ServiceCallback<void>

The callback

deleteFromComputeNode(string, string, string, ServiceCallback<void>)

function deleteFromComputeNode(poolId: string, nodeId: string, filePath: string, callback: ServiceCallback<void>)

Parameters

poolId

string

The ID of the Pool that contains the Compute Node.

nodeId

string

The ID of the Compute Node from which you want to delete the file.

filePath

string

The path to the file or directory that you want to delete.

callback

ServiceCallback<void>

The callback

deleteFromTask(string, string, string, FileDeleteFromTaskOptionalParams)

function deleteFromTask(jobId: string, taskId: string, filePath: string, options?: FileDeleteFromTaskOptionalParams): Promise<FileDeleteFromTaskResponse>

Parameters

jobId

string

The ID of the Job that contains the Task.

taskId

string

The ID of the Task whose file you want to delete.

filePath

string

The path to the Task file or directory that you want to delete.

options
FileDeleteFromTaskOptionalParams

The optional parameters

Returns

Promise<Models.FileDeleteFromTaskResponse>

deleteFromTask(string, string, string, FileDeleteFromTaskOptionalParams, ServiceCallback<void>)

function deleteFromTask(jobId: string, taskId: string, filePath: string, options: FileDeleteFromTaskOptionalParams, callback: ServiceCallback<void>)

Parameters

jobId

string

The ID of the Job that contains the Task.

taskId

string

The ID of the Task whose file you want to delete.

filePath

string

The path to the Task file or directory that you want to delete.

options
FileDeleteFromTaskOptionalParams

The optional parameters

callback

ServiceCallback<void>

The callback

deleteFromTask(string, string, string, ServiceCallback<void>)

function deleteFromTask(jobId: string, taskId: string, filePath: string, callback: ServiceCallback<void>)

Parameters

jobId

string

The ID of the Job that contains the Task.

taskId

string

The ID of the Task whose file you want to delete.

filePath

string

The path to the Task file or directory that you want to delete.

callback

ServiceCallback<void>

The callback

getFromComputeNode(string, string, string, FileGetFromComputeNodeOptionalParams)

Returns the content of the specified Compute Node file.

function getFromComputeNode(poolId: string, nodeId: string, filePath: string, options?: FileGetFromComputeNodeOptionalParams): Promise<FileGetFromComputeNodeResponse>

Parameters

poolId

string

The ID of the Pool that contains the Compute Node.

nodeId

string

The ID of the Compute Node that contains the file.

filePath

string

The path to the Compute Node file that you want to get the content of.

options
FileGetFromComputeNodeOptionalParams

The optional parameters

Returns

Promise<Models.FileGetFromComputeNodeResponse>

getFromComputeNode(string, string, string, FileGetFromComputeNodeOptionalParams, ServiceCallback<void>)

function getFromComputeNode(poolId: string, nodeId: string, filePath: string, options: FileGetFromComputeNodeOptionalParams, callback: ServiceCallback<void>)

Parameters

poolId

string

The ID of the Pool that contains the Compute Node.

nodeId

string

The ID of the Compute Node that contains the file.

filePath

string

The path to the Compute Node file that you want to get the content of.

options
FileGetFromComputeNodeOptionalParams

The optional parameters

callback

ServiceCallback<void>

The callback

getFromComputeNode(string, string, string, ServiceCallback<void>)

function getFromComputeNode(poolId: string, nodeId: string, filePath: string, callback: ServiceCallback<void>)

Parameters

poolId

string

The ID of the Pool that contains the Compute Node.

nodeId

string

The ID of the Compute Node that contains the file.

filePath

string

The path to the Compute Node file that you want to get the content of.

callback

ServiceCallback<void>

The callback

getFromTask(string, string, string, FileGetFromTaskOptionalParams)

Returns the content of the specified Task file.

function getFromTask(jobId: string, taskId: string, filePath: string, options?: FileGetFromTaskOptionalParams): Promise<FileGetFromTaskResponse>

Parameters

jobId

string

The ID of the Job that contains the Task.

taskId

string

The ID of the Task whose file you want to retrieve.

filePath

string

The path to the Task file that you want to get the content of.

options
FileGetFromTaskOptionalParams

The optional parameters

Returns

Promise<Models.FileGetFromTaskResponse>

getFromTask(string, string, string, FileGetFromTaskOptionalParams, ServiceCallback<void>)

function getFromTask(jobId: string, taskId: string, filePath: string, options: FileGetFromTaskOptionalParams, callback: ServiceCallback<void>)

Parameters

jobId

string

The ID of the Job that contains the Task.

taskId

string

The ID of the Task whose file you want to retrieve.

filePath

string

The path to the Task file that you want to get the content of.

options
FileGetFromTaskOptionalParams

The optional parameters

callback

ServiceCallback<void>

The callback

getFromTask(string, string, string, ServiceCallback<void>)

function getFromTask(jobId: string, taskId: string, filePath: string, callback: ServiceCallback<void>)

Parameters

jobId

string

The ID of the Job that contains the Task.

taskId

string

The ID of the Task whose file you want to retrieve.

filePath

string

The path to the Task file that you want to get the content of.

callback

ServiceCallback<void>

The callback

getPropertiesFromComputeNode(string, string, string, FileGetPropertiesFromComputeNodeOptionalParams)

Gets the properties of the specified Compute Node file.

function getPropertiesFromComputeNode(poolId: string, nodeId: string, filePath: string, options?: FileGetPropertiesFromComputeNodeOptionalParams): Promise<FileGetPropertiesFromComputeNodeResponse>

Parameters

poolId

string

The ID of the Pool that contains the Compute Node.

nodeId

string

The ID of the Compute Node that contains the file.

filePath

string

The path to the Compute Node file that you want to get the properties of.

options
FileGetPropertiesFromComputeNodeOptionalParams

The optional parameters

Returns

Promise<Models.FileGetPropertiesFromComputeNodeResponse>

getPropertiesFromComputeNode(string, string, string, FileGetPropertiesFromComputeNodeOptionalParams, ServiceCallback<void>)

function getPropertiesFromComputeNode(poolId: string, nodeId: string, filePath: string, options: FileGetPropertiesFromComputeNodeOptionalParams, callback: ServiceCallback<void>)

Parameters

poolId

string

The ID of the Pool that contains the Compute Node.

nodeId

string

The ID of the Compute Node that contains the file.

filePath

string

The path to the Compute Node file that you want to get the properties of.

options
FileGetPropertiesFromComputeNodeOptionalParams

The optional parameters

callback

ServiceCallback<void>

The callback

getPropertiesFromComputeNode(string, string, string, ServiceCallback<void>)

function getPropertiesFromComputeNode(poolId: string, nodeId: string, filePath: string, callback: ServiceCallback<void>)

Parameters

poolId

string

The ID of the Pool that contains the Compute Node.

nodeId

string

The ID of the Compute Node that contains the file.

filePath

string

The path to the Compute Node file that you want to get the properties of.

callback

ServiceCallback<void>

The callback

getPropertiesFromTask(string, string, string, FileGetPropertiesFromTaskOptionalParams)

Gets the properties of the specified Task file.

function getPropertiesFromTask(jobId: string, taskId: string, filePath: string, options?: FileGetPropertiesFromTaskOptionalParams): Promise<FileGetPropertiesFromTaskResponse>

Parameters

jobId

string

The ID of the Job that contains the Task.

taskId

string

The ID of the Task whose file you want to get the properties of.

filePath

string

The path to the Task file that you want to get the properties of.

options
FileGetPropertiesFromTaskOptionalParams

The optional parameters

Returns

Promise<Models.FileGetPropertiesFromTaskResponse>

getPropertiesFromTask(string, string, string, FileGetPropertiesFromTaskOptionalParams, ServiceCallback<void>)

function getPropertiesFromTask(jobId: string, taskId: string, filePath: string, options: FileGetPropertiesFromTaskOptionalParams, callback: ServiceCallback<void>)

Parameters

jobId

string

The ID of the Job that contains the Task.

taskId

string

The ID of the Task whose file you want to get the properties of.

filePath

string

The path to the Task file that you want to get the properties of.

options
FileGetPropertiesFromTaskOptionalParams

The optional parameters

callback

ServiceCallback<void>

The callback

getPropertiesFromTask(string, string, string, ServiceCallback<void>)

function getPropertiesFromTask(jobId: string, taskId: string, filePath: string, callback: ServiceCallback<void>)

Parameters

jobId

string

The ID of the Job that contains the Task.

taskId

string

The ID of the Task whose file you want to get the properties of.

filePath

string

The path to the Task file that you want to get the properties of.

callback

ServiceCallback<void>

The callback

listFromComputeNode(string, string, FileListFromComputeNodeOptionalParams)

function listFromComputeNode(poolId: string, nodeId: string, options?: FileListFromComputeNodeOptionalParams): Promise<FileListFromComputeNodeResponse>

Parameters

poolId

string

The ID of the Pool that contains the Compute Node.

nodeId

string

The ID of the Compute Node whose files you want to list.

options
FileListFromComputeNodeOptionalParams

The optional parameters

Returns

Promise<Models.FileListFromComputeNodeResponse>

listFromComputeNode(string, string, FileListFromComputeNodeOptionalParams, ServiceCallback<NodeFileListResult>)

function listFromComputeNode(poolId: string, nodeId: string, options: FileListFromComputeNodeOptionalParams, callback: ServiceCallback<NodeFileListResult>)

Parameters

poolId

string

The ID of the Pool that contains the Compute Node.

nodeId

string

The ID of the Compute Node whose files you want to list.

options
FileListFromComputeNodeOptionalParams

The optional parameters

callback

ServiceCallback<NodeFileListResult>

The callback

listFromComputeNode(string, string, ServiceCallback<NodeFileListResult>)

function listFromComputeNode(poolId: string, nodeId: string, callback: ServiceCallback<NodeFileListResult>)

Parameters

poolId

string

The ID of the Pool that contains the Compute Node.

nodeId

string

The ID of the Compute Node whose files you want to list.

callback

ServiceCallback<NodeFileListResult>

The callback

listFromComputeNodeNext(string, FileListFromComputeNodeNextOptionalParams)

function listFromComputeNodeNext(nextPageLink: string, options?: FileListFromComputeNodeNextOptionalParams): Promise<FileListFromComputeNodeResponse>

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
FileListFromComputeNodeNextOptionalParams

The optional parameters

Returns

Promise<Models.FileListFromComputeNodeResponse>

listFromComputeNodeNext(string, FileListFromComputeNodeNextOptionalParams, ServiceCallback<NodeFileListResult>)

function listFromComputeNodeNext(nextPageLink: string, options: FileListFromComputeNodeNextOptionalParams, callback: ServiceCallback<NodeFileListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
FileListFromComputeNodeNextOptionalParams

The optional parameters

callback

ServiceCallback<NodeFileListResult>

The callback

listFromComputeNodeNext(string, ServiceCallback<NodeFileListResult>)

function listFromComputeNodeNext(nextPageLink: string, callback: ServiceCallback<NodeFileListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

callback

ServiceCallback<NodeFileListResult>

The callback

listFromTask(string, string, FileListFromTaskOptionalParams)

function listFromTask(jobId: string, taskId: string, options?: FileListFromTaskOptionalParams): Promise<FileListFromTaskResponse>

Parameters

jobId

string

The ID of the Job that contains the Task.

taskId

string

The ID of the Task whose files you want to list.

options
FileListFromTaskOptionalParams

The optional parameters

Returns

Promise<Models.FileListFromTaskResponse>

listFromTask(string, string, FileListFromTaskOptionalParams, ServiceCallback<NodeFileListResult>)

function listFromTask(jobId: string, taskId: string, options: FileListFromTaskOptionalParams, callback: ServiceCallback<NodeFileListResult>)

Parameters

jobId

string

The ID of the Job that contains the Task.

taskId

string

The ID of the Task whose files you want to list.

options
FileListFromTaskOptionalParams

The optional parameters

callback

ServiceCallback<NodeFileListResult>

The callback

listFromTask(string, string, ServiceCallback<NodeFileListResult>)

function listFromTask(jobId: string, taskId: string, callback: ServiceCallback<NodeFileListResult>)

Parameters

jobId

string

The ID of the Job that contains the Task.

taskId

string

The ID of the Task whose files you want to list.

callback

ServiceCallback<NodeFileListResult>

The callback

listFromTaskNext(string, FileListFromTaskNextOptionalParams)

function listFromTaskNext(nextPageLink: string, options?: FileListFromTaskNextOptionalParams): Promise<FileListFromTaskResponse>

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
FileListFromTaskNextOptionalParams

The optional parameters

Returns

Promise<Models.FileListFromTaskResponse>

listFromTaskNext(string, FileListFromTaskNextOptionalParams, ServiceCallback<NodeFileListResult>)

function listFromTaskNext(nextPageLink: string, options: FileListFromTaskNextOptionalParams, callback: ServiceCallback<NodeFileListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
FileListFromTaskNextOptionalParams

The optional parameters

callback

ServiceCallback<NodeFileListResult>

The callback

listFromTaskNext(string, ServiceCallback<NodeFileListResult>)

function listFromTaskNext(nextPageLink: string, callback: ServiceCallback<NodeFileListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

callback

ServiceCallback<NodeFileListResult>

The callback