Partager via


JobSchedule class

Classe représentant un JobSchedule.

Constructeurs

JobSchedule(BatchServiceClientContext)

Créez un JobSchedule.

Méthodes

add(JobScheduleAddParameter, JobScheduleAddOptionalParams)
add(JobScheduleAddParameter, JobScheduleAddOptionalParams, ServiceCallback<void>)
add(JobScheduleAddParameter, ServiceCallback<void>)
deleteMethod(string, JobScheduleDeleteMethodOptionalParams)

Lorsque vous supprimez une planification de travail, cela supprime également tous les travaux et tâches sous cette planification. Lorsque les tâches sont supprimées, tous les fichiers de leurs répertoires de travail sur les nœuds de calcul sont également supprimés (la période de rétention est ignorée). Les statistiques de planification des travaux ne sont plus accessibles une fois la planification du travail supprimée, bien qu’elles soient toujours comptabilisées dans les statistiques de durée de vie du compte.

deleteMethod(string, JobScheduleDeleteMethodOptionalParams, ServiceCallback<void>)
deleteMethod(string, ServiceCallback<void>)
disable(string, JobScheduleDisableOptionalParams)

Aucun nouveau travail ne sera créé tant que la planification du travail n’est pas à nouveau activée.

disable(string, JobScheduleDisableOptionalParams, ServiceCallback<void>)
disable(string, ServiceCallback<void>)
enable(string, JobScheduleEnableOptionalParams)
enable(string, JobScheduleEnableOptionalParams, ServiceCallback<void>)
enable(string, ServiceCallback<void>)
exists(string, JobScheduleExistsOptionalParams)
exists(string, JobScheduleExistsOptionalParams, ServiceCallback<boolean>)
exists(string, ServiceCallback<boolean>)
get(string, JobScheduleGetOptionalParams)

Obtient des informations sur la planification de travail spécifiée.

get(string, JobScheduleGetOptionalParams, ServiceCallback<CloudJobSchedule>)
get(string, ServiceCallback<CloudJobSchedule>)
list(JobScheduleListOptionalParams)
list(JobScheduleListOptionalParams, ServiceCallback<CloudJobScheduleListResult>)
list(ServiceCallback<CloudJobScheduleListResult>)
listNext(string, JobScheduleListNextOptionalParams)
listNext(string, JobScheduleListNextOptionalParams, ServiceCallback<CloudJobScheduleListResult>)
listNext(string, ServiceCallback<CloudJobScheduleListResult>)
patch(string, JobSchedulePatchParameter, JobSchedulePatchOptionalParams)

Cela remplace uniquement les propriétés de planification de travaux spécifiées dans la requête. Par exemple, si la propriété de planification n’est pas spécifiée avec cette requête, le service Batch conserve la planification existante. Les modifications apportées à une planification de travail ont uniquement un impact sur les travaux créés par la planification une fois la mise à jour effectuée ; Actuellement, les travaux en cours d’exécution ne sont pas affectés.

patch(string, JobSchedulePatchParameter, JobSchedulePatchOptionalParams, ServiceCallback<void>)
patch(string, JobSchedulePatchParameter, ServiceCallback<void>)
terminate(string, JobScheduleTerminateOptionalParams)
terminate(string, JobScheduleTerminateOptionalParams, ServiceCallback<void>)
terminate(string, ServiceCallback<void>)
update(string, JobScheduleUpdateParameter, JobScheduleUpdateOptionalParams)

Cela remplace entièrement toutes les propriétés pouvant être mises à jour de la planification du travail. Par exemple, si la propriété de planification n’est pas spécifiée avec cette requête, le service Batch supprime la planification existante. Les modifications apportées à une planification de travail ont uniquement un impact sur les travaux créés par la planification une fois la mise à jour effectuée ; Actuellement, les travaux en cours d’exécution ne sont pas affectés.

update(string, JobScheduleUpdateParameter, JobScheduleUpdateOptionalParams, ServiceCallback<void>)
update(string, JobScheduleUpdateParameter, ServiceCallback<void>)

Détails du constructeur

JobSchedule(BatchServiceClientContext)

Créez un JobSchedule.

new JobSchedule(client: BatchServiceClientContext)

Paramètres

client
BatchServiceClientContext

Référence au client de service.

Détails de la méthode

add(JobScheduleAddParameter, JobScheduleAddOptionalParams)

function add(cloudJobSchedule: JobScheduleAddParameter, options?: JobScheduleAddOptionalParams): Promise<JobScheduleAddResponse>

Paramètres

cloudJobSchedule
JobScheduleAddParameter

Planification du travail à ajouter.

options
JobScheduleAddOptionalParams

Paramètres facultatifs

Retours

Promise<Models.JobScheduleAddResponse>

add(JobScheduleAddParameter, JobScheduleAddOptionalParams, ServiceCallback<void>)

function add(cloudJobSchedule: JobScheduleAddParameter, options: JobScheduleAddOptionalParams, callback: ServiceCallback<void>)

Paramètres

cloudJobSchedule
JobScheduleAddParameter

Planification du travail à ajouter.

options
JobScheduleAddOptionalParams

Paramètres facultatifs

callback

ServiceCallback<void>

Rappel

add(JobScheduleAddParameter, ServiceCallback<void>)

function add(cloudJobSchedule: JobScheduleAddParameter, callback: ServiceCallback<void>)

Paramètres

cloudJobSchedule
JobScheduleAddParameter

Planification du travail à ajouter.

callback

ServiceCallback<void>

Rappel

deleteMethod(string, JobScheduleDeleteMethodOptionalParams)

Lorsque vous supprimez une planification de travail, cela supprime également tous les travaux et tâches sous cette planification. Lorsque les tâches sont supprimées, tous les fichiers de leurs répertoires de travail sur les nœuds de calcul sont également supprimés (la période de rétention est ignorée). Les statistiques de planification des travaux ne sont plus accessibles une fois la planification du travail supprimée, bien qu’elles soient toujours comptabilisées dans les statistiques de durée de vie du compte.

function deleteMethod(jobScheduleId: string, options?: JobScheduleDeleteMethodOptionalParams): Promise<JobScheduleDeleteResponse>

Paramètres

jobScheduleId

string

ID de la planification du travail à supprimer.

options
JobScheduleDeleteMethodOptionalParams

Paramètres facultatifs

Retours

Promise<Models.JobScheduleDeleteResponse>

deleteMethod(string, JobScheduleDeleteMethodOptionalParams, ServiceCallback<void>)

function deleteMethod(jobScheduleId: string, options: JobScheduleDeleteMethodOptionalParams, callback: ServiceCallback<void>)

Paramètres

jobScheduleId

string

ID de la planification du travail à supprimer.

options
JobScheduleDeleteMethodOptionalParams

Paramètres facultatifs

callback

ServiceCallback<void>

Rappel

deleteMethod(string, ServiceCallback<void>)

function deleteMethod(jobScheduleId: string, callback: ServiceCallback<void>)

Paramètres

jobScheduleId

string

ID de la planification du travail à supprimer.

callback

ServiceCallback<void>

Rappel

disable(string, JobScheduleDisableOptionalParams)

Aucun nouveau travail ne sera créé tant que la planification du travail n’est pas à nouveau activée.

function disable(jobScheduleId: string, options?: JobScheduleDisableOptionalParams): Promise<JobScheduleDisableResponse>

Paramètres

jobScheduleId

string

ID de la planification du travail à désactiver.

options
JobScheduleDisableOptionalParams

Paramètres facultatifs

Retours

Promise<Models.JobScheduleDisableResponse>

disable(string, JobScheduleDisableOptionalParams, ServiceCallback<void>)

function disable(jobScheduleId: string, options: JobScheduleDisableOptionalParams, callback: ServiceCallback<void>)

Paramètres

jobScheduleId

string

ID de la planification du travail à désactiver.

options
JobScheduleDisableOptionalParams

Paramètres facultatifs

callback

ServiceCallback<void>

Rappel

disable(string, ServiceCallback<void>)

function disable(jobScheduleId: string, callback: ServiceCallback<void>)

Paramètres

jobScheduleId

string

ID de la planification du travail à désactiver.

callback

ServiceCallback<void>

Rappel

enable(string, JobScheduleEnableOptionalParams)

function enable(jobScheduleId: string, options?: JobScheduleEnableOptionalParams): Promise<JobScheduleEnableResponse>

Paramètres

jobScheduleId

string

ID de la planification du travail à activer.

options
JobScheduleEnableOptionalParams

Paramètres facultatifs

Retours

Promise<Models.JobScheduleEnableResponse>

enable(string, JobScheduleEnableOptionalParams, ServiceCallback<void>)

function enable(jobScheduleId: string, options: JobScheduleEnableOptionalParams, callback: ServiceCallback<void>)

Paramètres

jobScheduleId

string

ID de la planification du travail à activer.

options
JobScheduleEnableOptionalParams

Paramètres facultatifs

callback

ServiceCallback<void>

Rappel

enable(string, ServiceCallback<void>)

function enable(jobScheduleId: string, callback: ServiceCallback<void>)

Paramètres

jobScheduleId

string

ID de la planification du travail à activer.

callback

ServiceCallback<void>

Rappel

exists(string, JobScheduleExistsOptionalParams)

function exists(jobScheduleId: string, options?: JobScheduleExistsOptionalParams): Promise<JobScheduleExistsResponse>

Paramètres

jobScheduleId

string

ID de la planification du travail que vous souhaitez vérifier.

options
JobScheduleExistsOptionalParams

Paramètres facultatifs

Retours

Promise<Models.JobScheduleExistsResponse>

exists(string, JobScheduleExistsOptionalParams, ServiceCallback<boolean>)

function exists(jobScheduleId: string, options: JobScheduleExistsOptionalParams, callback: ServiceCallback<boolean>)

Paramètres

jobScheduleId

string

ID de la planification du travail que vous souhaitez vérifier.

options
JobScheduleExistsOptionalParams

Paramètres facultatifs

callback

ServiceCallback<boolean>

Rappel

exists(string, ServiceCallback<boolean>)

function exists(jobScheduleId: string, callback: ServiceCallback<boolean>)

Paramètres

jobScheduleId

string

ID de la planification du travail que vous souhaitez vérifier.

callback

ServiceCallback<boolean>

Rappel

get(string, JobScheduleGetOptionalParams)

Obtient des informations sur la planification de travail spécifiée.

function get(jobScheduleId: string, options?: JobScheduleGetOptionalParams): Promise<JobScheduleGetResponse>

Paramètres

jobScheduleId

string

ID de la planification du travail à obtenir.

options
JobScheduleGetOptionalParams

Paramètres facultatifs

Retours

Promise<Models.JobScheduleGetResponse>

get(string, JobScheduleGetOptionalParams, ServiceCallback<CloudJobSchedule>)

function get(jobScheduleId: string, options: JobScheduleGetOptionalParams, callback: ServiceCallback<CloudJobSchedule>)

Paramètres

jobScheduleId

string

ID de la planification du travail à obtenir.

options
JobScheduleGetOptionalParams

Paramètres facultatifs

get(string, ServiceCallback<CloudJobSchedule>)

function get(jobScheduleId: string, callback: ServiceCallback<CloudJobSchedule>)

Paramètres

jobScheduleId

string

ID de la planification du travail à obtenir.

list(JobScheduleListOptionalParams)

function list(options?: JobScheduleListOptionalParams): Promise<JobScheduleListResponse>

Paramètres

options
JobScheduleListOptionalParams

Paramètres facultatifs

Retours

Promise<Models.JobScheduleListResponse>

list(JobScheduleListOptionalParams, ServiceCallback<CloudJobScheduleListResult>)

function list(options: JobScheduleListOptionalParams, callback: ServiceCallback<CloudJobScheduleListResult>)

Paramètres

options
JobScheduleListOptionalParams

Paramètres facultatifs

list(ServiceCallback<CloudJobScheduleListResult>)

function list(callback: ServiceCallback<CloudJobScheduleListResult>)

Paramètres

listNext(string, JobScheduleListNextOptionalParams)

function listNext(nextPageLink: string, options?: JobScheduleListNextOptionalParams): Promise<JobScheduleListResponse>

Paramètres

nextPageLink

string

NextLink de l’appel réussi précédent à l’opération De liste.

options
JobScheduleListNextOptionalParams

Paramètres facultatifs

Retours

Promise<Models.JobScheduleListResponse>

listNext(string, JobScheduleListNextOptionalParams, ServiceCallback<CloudJobScheduleListResult>)

function listNext(nextPageLink: string, options: JobScheduleListNextOptionalParams, callback: ServiceCallback<CloudJobScheduleListResult>)

Paramètres

nextPageLink

string

NextLink de l’appel réussi précédent à l’opération De liste.

options
JobScheduleListNextOptionalParams

Paramètres facultatifs

listNext(string, ServiceCallback<CloudJobScheduleListResult>)

function listNext(nextPageLink: string, callback: ServiceCallback<CloudJobScheduleListResult>)

Paramètres

nextPageLink

string

NextLink de l’appel réussi précédent à l’opération De liste.

patch(string, JobSchedulePatchParameter, JobSchedulePatchOptionalParams)

Cela remplace uniquement les propriétés de planification de travaux spécifiées dans la requête. Par exemple, si la propriété de planification n’est pas spécifiée avec cette requête, le service Batch conserve la planification existante. Les modifications apportées à une planification de travail ont uniquement un impact sur les travaux créés par la planification une fois la mise à jour effectuée ; Actuellement, les travaux en cours d’exécution ne sont pas affectés.

function patch(jobScheduleId: string, jobSchedulePatchParameter: JobSchedulePatchParameter, options?: JobSchedulePatchOptionalParams): Promise<JobSchedulePatchResponse>

Paramètres

jobScheduleId

string

ID de la planification du travail à mettre à jour.

jobSchedulePatchParameter
JobSchedulePatchParameter

Paramètres de la requête.

options
JobSchedulePatchOptionalParams

Paramètres facultatifs

Retours

Promise<Models.JobSchedulePatchResponse>

patch(string, JobSchedulePatchParameter, JobSchedulePatchOptionalParams, ServiceCallback<void>)

function patch(jobScheduleId: string, jobSchedulePatchParameter: JobSchedulePatchParameter, options: JobSchedulePatchOptionalParams, callback: ServiceCallback<void>)

Paramètres

jobScheduleId

string

ID de la planification du travail à mettre à jour.

jobSchedulePatchParameter
JobSchedulePatchParameter

Paramètres de la requête.

options
JobSchedulePatchOptionalParams

Paramètres facultatifs

callback

ServiceCallback<void>

Rappel

patch(string, JobSchedulePatchParameter, ServiceCallback<void>)

function patch(jobScheduleId: string, jobSchedulePatchParameter: JobSchedulePatchParameter, callback: ServiceCallback<void>)

Paramètres

jobScheduleId

string

ID de la planification du travail à mettre à jour.

jobSchedulePatchParameter
JobSchedulePatchParameter

Paramètres de la requête.

callback

ServiceCallback<void>

Rappel

terminate(string, JobScheduleTerminateOptionalParams)

function terminate(jobScheduleId: string, options?: JobScheduleTerminateOptionalParams): Promise<JobScheduleTerminateResponse>

Paramètres

jobScheduleId

string

ID de la planification du travail à arrêter.

options
JobScheduleTerminateOptionalParams

Paramètres facultatifs

Retours

Promise<Models.JobScheduleTerminateResponse>

terminate(string, JobScheduleTerminateOptionalParams, ServiceCallback<void>)

function terminate(jobScheduleId: string, options: JobScheduleTerminateOptionalParams, callback: ServiceCallback<void>)

Paramètres

jobScheduleId

string

ID de la planification du travail à arrêter.

options
JobScheduleTerminateOptionalParams

Paramètres facultatifs

callback

ServiceCallback<void>

Rappel

terminate(string, ServiceCallback<void>)

function terminate(jobScheduleId: string, callback: ServiceCallback<void>)

Paramètres

jobScheduleId

string

ID de la planification du travail à arrêter.

callback

ServiceCallback<void>

Rappel

update(string, JobScheduleUpdateParameter, JobScheduleUpdateOptionalParams)

Cela remplace entièrement toutes les propriétés pouvant être mises à jour de la planification du travail. Par exemple, si la propriété de planification n’est pas spécifiée avec cette requête, le service Batch supprime la planification existante. Les modifications apportées à une planification de travail ont uniquement un impact sur les travaux créés par la planification une fois la mise à jour effectuée ; Actuellement, les travaux en cours d’exécution ne sont pas affectés.

function update(jobScheduleId: string, jobScheduleUpdateParameter: JobScheduleUpdateParameter, options?: JobScheduleUpdateOptionalParams): Promise<JobScheduleUpdateResponse>

Paramètres

jobScheduleId

string

ID de la planification du travail à mettre à jour.

jobScheduleUpdateParameter
JobScheduleUpdateParameter

Paramètres de la requête.

options
JobScheduleUpdateOptionalParams

Paramètres facultatifs

Retours

Promise<Models.JobScheduleUpdateResponse>

update(string, JobScheduleUpdateParameter, JobScheduleUpdateOptionalParams, ServiceCallback<void>)

function update(jobScheduleId: string, jobScheduleUpdateParameter: JobScheduleUpdateParameter, options: JobScheduleUpdateOptionalParams, callback: ServiceCallback<void>)

Paramètres

jobScheduleId

string

ID de la planification du travail à mettre à jour.

jobScheduleUpdateParameter
JobScheduleUpdateParameter

Paramètres de la requête.

options
JobScheduleUpdateOptionalParams

Paramètres facultatifs

callback

ServiceCallback<void>

Rappel

update(string, JobScheduleUpdateParameter, ServiceCallback<void>)

function update(jobScheduleId: string, jobScheduleUpdateParameter: JobScheduleUpdateParameter, callback: ServiceCallback<void>)

Paramètres

jobScheduleId

string

ID de la planification du travail à mettre à jour.

jobScheduleUpdateParameter
JobScheduleUpdateParameter

Paramètres de la requête.

callback

ServiceCallback<void>

Rappel