Options
All
  • Public
  • Public/Protected
  • All
Menu

Class JobSchedule

Package version

Class representing a JobSchedule.

Hierarchy

  • JobSchedule

Index

Constructors

constructor

Methods

add

deleteMethod

  • deleteMethod(jobScheduleId: string, options?: Models.JobScheduleDeleteMethodOptionalParams): Promise<Models.JobScheduleDeleteResponse>
  • deleteMethod(jobScheduleId: string, callback: msRest.ServiceCallback<void>): void
  • deleteMethod(jobScheduleId: string, options: JobScheduleDeleteMethodOptionalParams, callback: msRest.ServiceCallback<void>): void
  • When you delete a job schedule, this also deletes all jobs and tasks under that schedule. When tasks are deleted, all the files in their working directories on the compute nodes are also deleted (the retention period is ignored). The job schedule statistics are no longer accessible once the job schedule is deleted, though they are still counted towards account lifetime statistics.

    summary

    Deletes a job schedule from the specified account.

    Parameters

    • jobScheduleId: string

      The ID of the job schedule to delete.

    • Optional options: Models.JobScheduleDeleteMethodOptionalParams

    Returns Promise<Models.JobScheduleDeleteResponse>

    Promise<Models.JobScheduleDeleteResponse>

  • Parameters

    • jobScheduleId: string

      The ID of the job schedule to delete.

    • callback: msRest.ServiceCallback<void>

      The callback

    Returns void

  • Parameters

    Returns void

disable

  • disable(jobScheduleId: string, options?: Models.JobScheduleDisableOptionalParams): Promise<Models.JobScheduleDisableResponse>
  • disable(jobScheduleId: string, callback: msRest.ServiceCallback<void>): void
  • disable(jobScheduleId: string, options: JobScheduleDisableOptionalParams, callback: msRest.ServiceCallback<void>): void
  • No new jobs will be created until the job schedule is enabled again.

    summary

    Disables a job schedule.

    Parameters

    • jobScheduleId: string

      The ID of the job schedule to disable.

    • Optional options: Models.JobScheduleDisableOptionalParams

    Returns Promise<Models.JobScheduleDisableResponse>

    Promise<Models.JobScheduleDisableResponse>

  • Parameters

    • jobScheduleId: string

      The ID of the job schedule to disable.

    • callback: msRest.ServiceCallback<void>

      The callback

    Returns void

  • Parameters

    • jobScheduleId: string

      The ID of the job schedule to disable.

    • options: JobScheduleDisableOptionalParams

      The optional parameters

    • callback: msRest.ServiceCallback<void>

      The callback

    Returns void

enable

  • enable(jobScheduleId: string, options?: Models.JobScheduleEnableOptionalParams): Promise<Models.JobScheduleEnableResponse>
  • enable(jobScheduleId: string, callback: msRest.ServiceCallback<void>): void
  • enable(jobScheduleId: string, options: JobScheduleEnableOptionalParams, callback: msRest.ServiceCallback<void>): void
  • summary

    Enables a job schedule.

    Parameters

    • jobScheduleId: string

      The ID of the job schedule to enable.

    • Optional options: Models.JobScheduleEnableOptionalParams

    Returns Promise<Models.JobScheduleEnableResponse>

    Promise<Models.JobScheduleEnableResponse>

  • Parameters

    • jobScheduleId: string

      The ID of the job schedule to enable.

    • callback: msRest.ServiceCallback<void>

      The callback

    Returns void

  • Parameters

    • jobScheduleId: string

      The ID of the job schedule to enable.

    • options: JobScheduleEnableOptionalParams

      The optional parameters

    • callback: msRest.ServiceCallback<void>

      The callback

    Returns void

exists

  • exists(jobScheduleId: string, options?: Models.JobScheduleExistsOptionalParams): Promise<Models.JobScheduleExistsResponse>
  • exists(jobScheduleId: string, callback: msRest.ServiceCallback<boolean>): void
  • exists(jobScheduleId: string, options: JobScheduleExistsOptionalParams, callback: msRest.ServiceCallback<boolean>): void
  • summary

    Checks the specified job schedule exists.

    Parameters

    • jobScheduleId: string

      The ID of the job schedule which you want to check.

    • Optional options: Models.JobScheduleExistsOptionalParams

    Returns Promise<Models.JobScheduleExistsResponse>

    Promise<Models.JobScheduleExistsResponse>

  • Parameters

    • jobScheduleId: string

      The ID of the job schedule which you want to check.

    • callback: msRest.ServiceCallback<boolean>

      The callback

    Returns void

  • Parameters

    • jobScheduleId: string

      The ID of the job schedule which you want to check.

    • options: JobScheduleExistsOptionalParams

      The optional parameters

    • callback: msRest.ServiceCallback<boolean>

      The callback

    Returns void

get

  • get(jobScheduleId: string, options?: Models.JobScheduleGetOptionalParams): Promise<Models.JobScheduleGetResponse>
  • get(jobScheduleId: string, callback: msRest.ServiceCallback<CloudJobSchedule>): void
  • get(jobScheduleId: string, options: JobScheduleGetOptionalParams, callback: msRest.ServiceCallback<CloudJobSchedule>): void
  • Gets information about the specified job schedule.

    Parameters

    • jobScheduleId: string

      The ID of the job schedule to get.

    • Optional options: Models.JobScheduleGetOptionalParams

    Returns Promise<Models.JobScheduleGetResponse>

    Promise<Models.JobScheduleGetResponse>

  • Parameters

    • jobScheduleId: string

      The ID of the job schedule to get.

    • callback: msRest.ServiceCallback<CloudJobSchedule>

      The callback

    Returns void

  • Parameters

    Returns void

list

listNext

  • summary

    Lists all of the job schedules in the specified account.

    Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • Optional options: Models.JobScheduleListNextOptionalParams

    Returns Promise<Models.JobScheduleListResponse>

    Promise<Models.JobScheduleListResponse>

  • Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • callback: msRest.ServiceCallback<CloudJobScheduleListResult>

      The callback

    Returns void

  • Parameters

    Returns void

patch

  • This replaces only the job schedule properties specified in the request. For example, if the schedule property is not specified with this request, then the Batch service will keep the existing schedule. Changes to a job schedule only impact jobs created by the schedule after the update has taken place; currently running jobs are unaffected.

    summary

    Updates the properties of the specified job schedule.

    Parameters

    • jobScheduleId: string

      The ID of the job schedule to update.

    • jobSchedulePatchParameter: JobSchedulePatchParameter

      The parameters for the request.

    • Optional options: Models.JobSchedulePatchOptionalParams

    Returns Promise<Models.JobSchedulePatchResponse>

    Promise<Models.JobSchedulePatchResponse>

  • Parameters

    • jobScheduleId: string

      The ID of the job schedule to update.

    • jobSchedulePatchParameter: JobSchedulePatchParameter

      The parameters for the request.

    • callback: msRest.ServiceCallback<void>

      The callback

    Returns void

  • Parameters

    Returns void

terminate

  • terminate(jobScheduleId: string, options?: Models.JobScheduleTerminateOptionalParams): Promise<Models.JobScheduleTerminateResponse>
  • terminate(jobScheduleId: string, callback: msRest.ServiceCallback<void>): void
  • terminate(jobScheduleId: string, options: JobScheduleTerminateOptionalParams, callback: msRest.ServiceCallback<void>): void
  • summary

    Terminates a job schedule.

    Parameters

    • jobScheduleId: string

      The ID of the job schedule to terminates.

    • Optional options: Models.JobScheduleTerminateOptionalParams

    Returns Promise<Models.JobScheduleTerminateResponse>

    Promise<Models.JobScheduleTerminateResponse>

  • Parameters

    • jobScheduleId: string

      The ID of the job schedule to terminates.

    • callback: msRest.ServiceCallback<void>

      The callback

    Returns void

  • Parameters

    • jobScheduleId: string

      The ID of the job schedule to terminates.

    • options: JobScheduleTerminateOptionalParams

      The optional parameters

    • callback: msRest.ServiceCallback<void>

      The callback

    Returns void

update

  • This fully replaces all the updatable properties of the job schedule. For example, if the schedule property is not specified with this request, then the Batch service will remove the existing schedule. Changes to a job schedule only impact jobs created by the schedule after the update has taken place; currently running jobs are unaffected.

    summary

    Updates the properties of the specified job schedule.

    Parameters

    • jobScheduleId: string

      The ID of the job schedule to update.

    • jobScheduleUpdateParameter: JobScheduleUpdateParameter

      The parameters for the request.

    • Optional options: Models.JobScheduleUpdateOptionalParams

    Returns Promise<Models.JobScheduleUpdateResponse>

    Promise<Models.JobScheduleUpdateResponse>

  • Parameters

    • jobScheduleId: string

      The ID of the job schedule to update.

    • jobScheduleUpdateParameter: JobScheduleUpdateParameter

      The parameters for the request.

    • callback: msRest.ServiceCallback<void>

      The callback

    Returns void

  • Parameters

    Returns void

Generated using TypeDoc