From 7bf50af0f33295a8f41a87f355908692e25b3502 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 8 Mar 2019 14:51:44 -0800 Subject: [PATCH] Generated from 11c705caee395c4991964c1025807b6ce95cad93 (#4850) Update some descriptions. --- lib/services/batch/LICENSE.txt | 2 +- lib/services/batch/lib/models/cloudJob.js | 8 +- lib/services/batch/lib/models/cloudPool.js | 4 +- lib/services/batch/lib/models/computeNode.js | 2 +- lib/services/batch/lib/models/index.d.ts | 34 +- .../batch/lib/models/multiInstanceSettings.js | 5 +- lib/services/batch/lib/models/resourceFile.js | 4 +- .../lib/models/virtualMachineConfiguration.js | 2 +- lib/services/batch/lib/operations/account.js | 54 +-- .../batch/lib/operations/application.js | 36 +- .../lib/operations/certificateOperations.js | 81 ++--- .../lib/operations/computeNodeOperations.js | 174 +++------ lib/services/batch/lib/operations/file.js | 156 +++----- lib/services/batch/lib/operations/index.d.ts | 28 +- lib/services/batch/lib/operations/job.js | 330 ++++++----------- .../batch/lib/operations/jobSchedule.js | 261 +++++--------- lib/services/batch/lib/operations/pool.js | 333 ++++++------------ lib/services/batch/lib/operations/task.js | 204 ++++------- 18 files changed, 601 insertions(+), 1117 deletions(-) diff --git a/lib/services/batch/LICENSE.txt b/lib/services/batch/LICENSE.txt index 5431ba98b9..8f3d856145 100644 --- a/lib/services/batch/LICENSE.txt +++ b/lib/services/batch/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/lib/services/batch/lib/models/cloudJob.js b/lib/services/batch/lib/models/cloudJob.js index 850e8b5a0e..e1fedbf047 100644 --- a/lib/services/batch/lib/models/cloudJob.js +++ b/lib/services/batch/lib/models/cloudJob.js @@ -713,9 +713,11 @@ class CloudJob { * of terminatejob. Any other string is a user-defined reason specified in a * call to the 'Terminate a job' operation. * @property {object} [stats] Resource usage statistics for the entire - * lifetime of the job. The statistics may not be immediately available. The - * Batch service performs periodic roll-up of statistics. The typical delay - * is about 30 minutes. + * lifetime of the job. This property is populated only if the CloudJob was + * retrieved with an expand clause including the 'stats' attribute; otherwise + * it is null. The statistics may not be immediately available. The Batch + * service performs periodic roll-up of statistics. The typical delay is + * about 30 minutes. * @property {string} [stats.url] * @property {date} [stats.startTime] * @property {date} [stats.lastUpdateTime] diff --git a/lib/services/batch/lib/models/cloudPool.js b/lib/services/batch/lib/models/cloudPool.js index eca6e31f3a..fa1b770cca 100644 --- a/lib/services/batch/lib/models/cloudPool.js +++ b/lib/services/batch/lib/models/cloudPool.js @@ -286,7 +286,9 @@ class CloudPool { * @property {array} [metadata] A list of name-value pairs associated with * the pool as metadata. * @property {object} [stats] Utilization and resource usage statistics for - * the entire lifetime of the pool. The statistics may not be immediately + * the entire lifetime of the pool. This property is populated only if the + * CloudPool was retrieved with an expand clause including the 'stats' + * attribute; otherwise it is null. The statistics may not be immediately * available. The Batch service performs periodic roll-up of statistics. The * typical delay is about 30 minutes. * @property {string} [stats.url] diff --git a/lib/services/batch/lib/models/computeNode.js b/lib/services/batch/lib/models/computeNode.js index 06638c3f1b..6f639a4ef7 100644 --- a/lib/services/batch/lib/models/computeNode.js +++ b/lib/services/batch/lib/models/computeNode.js @@ -24,7 +24,7 @@ class ComputeNode { * @property {string} [url] The URL of the compute node. * @property {string} [state] The current state of the compute node. The * low-priority node has been preempted. Tasks which were running on the node - * when it was pre-empted will be rescheduled when another node becomes + * when it was preempted will be rescheduled when another node becomes * available. Possible values include: 'idle', 'rebooting', 'reimaging', * 'running', 'unusable', 'creating', 'starting', 'waitingForStartTask', * 'startTaskFailed', 'unknown', 'leavingPool', 'offline', 'preempted' diff --git a/lib/services/batch/lib/models/index.d.ts b/lib/services/batch/lib/models/index.d.ts index 0c52790ca0..e6306b5061 100644 --- a/lib/services/batch/lib/models/index.d.ts +++ b/lib/services/batch/lib/models/index.d.ts @@ -659,8 +659,8 @@ export interface ResourceFile { * mutually exclusive and one of them must be specified. This URL must be readable and listable * using anonymous access; that is, the Batch service does not present any credentials when * downloading blobs from the container. There are two ways to get such a URL for a container in - * Azure storage: include a Shared Access Signature (SAS) granting read permissions on the - * container, or set the ACL for the container to allow public access. + * Azure storage: include a Shared Access Signature (SAS) granting read and list permissions on + * the container, or set the ACL for the container to allow public access. */ storageContainerUrl?: string; /** @@ -1604,7 +1604,7 @@ export interface VirtualMachineConfiguration { */ windowsConfiguration?: WindowsConfiguration; /** - * @summary The configuration for data disks attached to the comptue nodes in the pool. + * @summary The configuration for data disks attached to the compute nodes in the pool. * @description This property must be specified if the compute nodes in the pool need to have * empty data disks attached to them. This cannot be updated. Each node gets its own disk (the * disk is not a file share). Existing disks cannot be attached, each attached disk is empty. @@ -2495,9 +2495,11 @@ export interface CloudJob { */ executionInfo?: JobExecutionInformation; /** - * @summary Resource usage statistics for the entire lifetime of the job. The statistics may not - * be immediately available. The Batch service performs periodic roll-up of statistics. The - * typical delay is about 30 minutes. + * @summary Resource usage statistics for the entire lifetime of the job. + * @description This property is populated only if the CloudJob was retrieved with an expand + * clause including the 'stats' attribute; otherwise it is null. The statistics may not be + * immediately available. The Batch service performs periodic roll-up of statistics. The typical + * delay is about 30 minutes. */ stats?: JobStatistics; } @@ -3090,9 +3092,11 @@ export interface CloudPool { */ metadata?: MetadataItem[]; /** - * @summary Utilization and resource usage statistics for the entire lifetime of the pool. The - * statistics may not be immediately available. The Batch service performs periodic roll-up of - * statistics. The typical delay is about 30 minutes. + * @summary Utilization and resource usage statistics for the entire lifetime of the pool. + * @description This property is populated only if the CloudPool was retrieved with an expand + * clause including the 'stats' attribute; otherwise it is null. The statistics may not be + * immediately available. The Batch service performs periodic roll-up of statistics. The typical + * delay is about 30 minutes. */ stats?: PoolStatistics; } @@ -3396,7 +3400,10 @@ export interface NodeAgentInformation { /** * @summary Settings which specify how to run a multi-instance task. - * @description Multi-instance tasks are commonly used to support MPI tasks. + * @description Multi-instance tasks are commonly used to support MPI tasks. In the MPI case, if + * any of the subtasks fail (for example due to exiting with a non-zero exit code) the entire + * multi-instance task fails. The multi-instance task is then terminated and retried, up to its + * retry limit. */ export interface MultiInstanceSettings { /** @@ -4186,10 +4193,9 @@ export interface ComputeNode { /** * @summary The current state of the compute node. * @description The low-priority node has been preempted. Tasks which were running on the node - * when it was pre-empted will be rescheduled when another node becomes available. Possible - * values include: 'idle', 'rebooting', 'reimaging', 'running', 'unusable', 'creating', - * 'starting', 'waitingForStartTask', 'startTaskFailed', 'unknown', 'leavingPool', 'offline', - * 'preempted' + * when it was preempted will be rescheduled when another node becomes available. Possible values + * include: 'idle', 'rebooting', 'reimaging', 'running', 'unusable', 'creating', 'starting', + * 'waitingForStartTask', 'startTaskFailed', 'unknown', 'leavingPool', 'offline', 'preempted' */ state?: string; /** diff --git a/lib/services/batch/lib/models/multiInstanceSettings.js b/lib/services/batch/lib/models/multiInstanceSettings.js index 1e90a4d91a..6ec877d642 100644 --- a/lib/services/batch/lib/models/multiInstanceSettings.js +++ b/lib/services/batch/lib/models/multiInstanceSettings.js @@ -13,7 +13,10 @@ /** * @summary Settings which specify how to run a multi-instance task. * - * Multi-instance tasks are commonly used to support MPI tasks. + * Multi-instance tasks are commonly used to support MPI tasks. In the MPI + * case, if any of the subtasks fail (for example due to exiting with a + * non-zero exit code) the entire multi-instance task fails. The multi-instance + * task is then terminated and retried, up to its retry limit. * */ class MultiInstanceSettings { diff --git a/lib/services/batch/lib/models/resourceFile.js b/lib/services/batch/lib/models/resourceFile.js index d2270be23b..b7a1140079 100644 --- a/lib/services/batch/lib/models/resourceFile.js +++ b/lib/services/batch/lib/models/resourceFile.js @@ -28,8 +28,8 @@ class ResourceFile { * anonymous access; that is, the Batch service does not present any * credentials when downloading blobs from the container. There are two ways * to get such a URL for a container in Azure storage: include a Shared - * Access Signature (SAS) granting read permissions on the container, or set - * the ACL for the container to allow public access. + * Access Signature (SAS) granting read and list permissions on the + * container, or set the ACL for the container to allow public access. * @property {string} [httpUrl] The URL of the file to download. The * autoStorageContainerName, storageContainerUrl and httpUrl properties are * mutually exclusive and one of them must be specified. If the URL points to diff --git a/lib/services/batch/lib/models/virtualMachineConfiguration.js b/lib/services/batch/lib/models/virtualMachineConfiguration.js index 07b120072b..b6582481f6 100644 --- a/lib/services/batch/lib/models/virtualMachineConfiguration.js +++ b/lib/services/batch/lib/models/virtualMachineConfiguration.js @@ -49,7 +49,7 @@ class VirtualMachineConfiguration { * @property {boolean} [windowsConfiguration.enableAutomaticUpdates] If * omitted, the default value is true. * @property {array} [dataDisks] The configuration for data disks attached to - * the comptue nodes in the pool. This property must be specified if the + * the compute nodes in the pool. This property must be specified if the * compute nodes in the pool need to have empty data disks attached to them. * This cannot be updated. Each node gets its own disk (the disk is not a * file share). Existing disks cannot be attached, each attached disk is diff --git a/lib/services/batch/lib/operations/account.js b/lib/services/batch/lib/operations/account.js index 041aef990b..bf5821dcb9 100644 --- a/lib/services/batch/lib/operations/account.js +++ b/lib/services/batch/lib/operations/account.js @@ -96,43 +96,37 @@ function _listNodeAgentSkus(options, callback) { let returnClientRequestId; let ocpDate; try { - if (accountListNodeAgentSkusOptions !== null && accountListNodeAgentSkusOptions !== undefined) - { + if (accountListNodeAgentSkusOptions !== null && accountListNodeAgentSkusOptions !== undefined) { filter = accountListNodeAgentSkusOptions.filter; if (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') { throw new Error('filter must be of type string.'); } } - if (accountListNodeAgentSkusOptions !== null && accountListNodeAgentSkusOptions !== undefined) - { + if (accountListNodeAgentSkusOptions !== null && accountListNodeAgentSkusOptions !== undefined) { maxResults = accountListNodeAgentSkusOptions.maxResults; if (maxResults !== null && maxResults !== undefined && typeof maxResults !== 'number') { throw new Error('maxResults must be of type number.'); } } - if (accountListNodeAgentSkusOptions !== null && accountListNodeAgentSkusOptions !== undefined) - { + if (accountListNodeAgentSkusOptions !== null && accountListNodeAgentSkusOptions !== undefined) { timeout = accountListNodeAgentSkusOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (accountListNodeAgentSkusOptions !== null && accountListNodeAgentSkusOptions !== undefined) - { + if (accountListNodeAgentSkusOptions !== null && accountListNodeAgentSkusOptions !== undefined) { clientRequestId = accountListNodeAgentSkusOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (accountListNodeAgentSkusOptions !== null && accountListNodeAgentSkusOptions !== undefined) - { + if (accountListNodeAgentSkusOptions !== null && accountListNodeAgentSkusOptions !== undefined) { returnClientRequestId = accountListNodeAgentSkusOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (accountListNodeAgentSkusOptions !== null && accountListNodeAgentSkusOptions !== undefined) - { + if (accountListNodeAgentSkusOptions !== null && accountListNodeAgentSkusOptions !== undefined) { ocpDate = accountListNodeAgentSkusOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -330,43 +324,37 @@ function _listPoolNodeCounts(options, callback) { let returnClientRequestId; let ocpDate; try { - if (accountListPoolNodeCountsOptions !== null && accountListPoolNodeCountsOptions !== undefined) - { + if (accountListPoolNodeCountsOptions !== null && accountListPoolNodeCountsOptions !== undefined) { filter = accountListPoolNodeCountsOptions.filter; if (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') { throw new Error('filter must be of type string.'); } } - if (accountListPoolNodeCountsOptions !== null && accountListPoolNodeCountsOptions !== undefined) - { + if (accountListPoolNodeCountsOptions !== null && accountListPoolNodeCountsOptions !== undefined) { maxResults = accountListPoolNodeCountsOptions.maxResults; if (maxResults !== null && maxResults !== undefined && typeof maxResults !== 'number') { throw new Error('maxResults must be of type number.'); } } - if (accountListPoolNodeCountsOptions !== null && accountListPoolNodeCountsOptions !== undefined) - { + if (accountListPoolNodeCountsOptions !== null && accountListPoolNodeCountsOptions !== undefined) { timeout = accountListPoolNodeCountsOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (accountListPoolNodeCountsOptions !== null && accountListPoolNodeCountsOptions !== undefined) - { + if (accountListPoolNodeCountsOptions !== null && accountListPoolNodeCountsOptions !== undefined) { clientRequestId = accountListPoolNodeCountsOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (accountListPoolNodeCountsOptions !== null && accountListPoolNodeCountsOptions !== undefined) - { + if (accountListPoolNodeCountsOptions !== null && accountListPoolNodeCountsOptions !== undefined) { returnClientRequestId = accountListPoolNodeCountsOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (accountListPoolNodeCountsOptions !== null && accountListPoolNodeCountsOptions !== undefined) - { + if (accountListPoolNodeCountsOptions !== null && accountListPoolNodeCountsOptions !== undefined) { ocpDate = accountListPoolNodeCountsOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -550,22 +538,19 @@ function _listNodeAgentSkusNext(nextPageLink, options, callback) { let returnClientRequestId; let ocpDate; try { - if (accountListNodeAgentSkusNextOptions !== null && accountListNodeAgentSkusNextOptions !== undefined) - { + if (accountListNodeAgentSkusNextOptions !== null && accountListNodeAgentSkusNextOptions !== undefined) { clientRequestId = accountListNodeAgentSkusNextOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (accountListNodeAgentSkusNextOptions !== null && accountListNodeAgentSkusNextOptions !== undefined) - { + if (accountListNodeAgentSkusNextOptions !== null && accountListNodeAgentSkusNextOptions !== undefined) { returnClientRequestId = accountListNodeAgentSkusNextOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (accountListNodeAgentSkusNextOptions !== null && accountListNodeAgentSkusNextOptions !== undefined) - { + if (accountListNodeAgentSkusNextOptions !== null && accountListNodeAgentSkusNextOptions !== undefined) { ocpDate = accountListNodeAgentSkusNextOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -734,22 +719,19 @@ function _listPoolNodeCountsNext(nextPageLink, options, callback) { let returnClientRequestId; let ocpDate; try { - if (accountListPoolNodeCountsNextOptions !== null && accountListPoolNodeCountsNextOptions !== undefined) - { + if (accountListPoolNodeCountsNextOptions !== null && accountListPoolNodeCountsNextOptions !== undefined) { clientRequestId = accountListPoolNodeCountsNextOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (accountListPoolNodeCountsNextOptions !== null && accountListPoolNodeCountsNextOptions !== undefined) - { + if (accountListPoolNodeCountsNextOptions !== null && accountListPoolNodeCountsNextOptions !== undefined) { returnClientRequestId = accountListPoolNodeCountsNextOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (accountListPoolNodeCountsNextOptions !== null && accountListPoolNodeCountsNextOptions !== undefined) - { + if (accountListPoolNodeCountsNextOptions !== null && accountListPoolNodeCountsNextOptions !== undefined) { ocpDate = accountListPoolNodeCountsNextOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { diff --git a/lib/services/batch/lib/operations/application.js b/lib/services/batch/lib/operations/application.js index cc2d5e4115..4123d67810 100644 --- a/lib/services/batch/lib/operations/application.js +++ b/lib/services/batch/lib/operations/application.js @@ -94,36 +94,31 @@ function _list(options, callback) { let returnClientRequestId; let ocpDate; try { - if (applicationListOptions !== null && applicationListOptions !== undefined) - { + if (applicationListOptions !== null && applicationListOptions !== undefined) { maxResults = applicationListOptions.maxResults; if (maxResults !== null && maxResults !== undefined && typeof maxResults !== 'number') { throw new Error('maxResults must be of type number.'); } } - if (applicationListOptions !== null && applicationListOptions !== undefined) - { + if (applicationListOptions !== null && applicationListOptions !== undefined) { timeout = applicationListOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (applicationListOptions !== null && applicationListOptions !== undefined) - { + if (applicationListOptions !== null && applicationListOptions !== undefined) { clientRequestId = applicationListOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (applicationListOptions !== null && applicationListOptions !== undefined) - { + if (applicationListOptions !== null && applicationListOptions !== undefined) { returnClientRequestId = applicationListOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (applicationListOptions !== null && applicationListOptions !== undefined) - { + if (applicationListOptions !== null && applicationListOptions !== undefined) { ocpDate = applicationListOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -317,29 +312,25 @@ function _get(applicationId, options, callback) { let returnClientRequestId; let ocpDate; try { - if (applicationGetOptions !== null && applicationGetOptions !== undefined) - { + if (applicationGetOptions !== null && applicationGetOptions !== undefined) { timeout = applicationGetOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (applicationGetOptions !== null && applicationGetOptions !== undefined) - { + if (applicationGetOptions !== null && applicationGetOptions !== undefined) { clientRequestId = applicationGetOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (applicationGetOptions !== null && applicationGetOptions !== undefined) - { + if (applicationGetOptions !== null && applicationGetOptions !== undefined) { returnClientRequestId = applicationGetOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (applicationGetOptions !== null && applicationGetOptions !== undefined) - { + if (applicationGetOptions !== null && applicationGetOptions !== undefined) { ocpDate = applicationGetOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -522,22 +513,19 @@ function _listNext(nextPageLink, options, callback) { let returnClientRequestId; let ocpDate; try { - if (applicationListNextOptions !== null && applicationListNextOptions !== undefined) - { + if (applicationListNextOptions !== null && applicationListNextOptions !== undefined) { clientRequestId = applicationListNextOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (applicationListNextOptions !== null && applicationListNextOptions !== undefined) - { + if (applicationListNextOptions !== null && applicationListNextOptions !== undefined) { returnClientRequestId = applicationListNextOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (applicationListNextOptions !== null && applicationListNextOptions !== undefined) - { + if (applicationListNextOptions !== null && applicationListNextOptions !== undefined) { ocpDate = applicationListNextOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { diff --git a/lib/services/batch/lib/operations/certificateOperations.js b/lib/services/batch/lib/operations/certificateOperations.js index 4b5d9ade56..a88e1317f2 100644 --- a/lib/services/batch/lib/operations/certificateOperations.js +++ b/lib/services/batch/lib/operations/certificateOperations.js @@ -104,29 +104,25 @@ function _add(certificate, options, callback) { let returnClientRequestId; let ocpDate; try { - if (certificateAddOptions !== null && certificateAddOptions !== undefined) - { + if (certificateAddOptions !== null && certificateAddOptions !== undefined) { timeout = certificateAddOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (certificateAddOptions !== null && certificateAddOptions !== undefined) - { + if (certificateAddOptions !== null && certificateAddOptions !== undefined) { clientRequestId = certificateAddOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (certificateAddOptions !== null && certificateAddOptions !== undefined) - { + if (certificateAddOptions !== null && certificateAddOptions !== undefined) { returnClientRequestId = certificateAddOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (certificateAddOptions !== null && certificateAddOptions !== undefined) - { + if (certificateAddOptions !== null && certificateAddOptions !== undefined) { ocpDate = certificateAddOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -318,50 +314,43 @@ function _list(options, callback) { let returnClientRequestId; let ocpDate; try { - if (certificateListOptions !== null && certificateListOptions !== undefined) - { + if (certificateListOptions !== null && certificateListOptions !== undefined) { filter = certificateListOptions.filter; if (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') { throw new Error('filter must be of type string.'); } } - if (certificateListOptions !== null && certificateListOptions !== undefined) - { + if (certificateListOptions !== null && certificateListOptions !== undefined) { select = certificateListOptions.select; if (select !== null && select !== undefined && typeof select.valueOf() !== 'string') { throw new Error('select must be of type string.'); } } - if (certificateListOptions !== null && certificateListOptions !== undefined) - { + if (certificateListOptions !== null && certificateListOptions !== undefined) { maxResults = certificateListOptions.maxResults; if (maxResults !== null && maxResults !== undefined && typeof maxResults !== 'number') { throw new Error('maxResults must be of type number.'); } } - if (certificateListOptions !== null && certificateListOptions !== undefined) - { + if (certificateListOptions !== null && certificateListOptions !== undefined) { timeout = certificateListOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (certificateListOptions !== null && certificateListOptions !== undefined) - { + if (certificateListOptions !== null && certificateListOptions !== undefined) { clientRequestId = certificateListOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (certificateListOptions !== null && certificateListOptions !== undefined) - { + if (certificateListOptions !== null && certificateListOptions !== undefined) { returnClientRequestId = certificateListOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (certificateListOptions !== null && certificateListOptions !== undefined) - { + if (certificateListOptions !== null && certificateListOptions !== undefined) { ocpDate = certificateListOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -571,29 +560,25 @@ function _cancelDeletion(thumbprintAlgorithm, thumbprint, options, callback) { let returnClientRequestId; let ocpDate; try { - if (certificateCancelDeletionOptions !== null && certificateCancelDeletionOptions !== undefined) - { + if (certificateCancelDeletionOptions !== null && certificateCancelDeletionOptions !== undefined) { timeout = certificateCancelDeletionOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (certificateCancelDeletionOptions !== null && certificateCancelDeletionOptions !== undefined) - { + if (certificateCancelDeletionOptions !== null && certificateCancelDeletionOptions !== undefined) { clientRequestId = certificateCancelDeletionOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (certificateCancelDeletionOptions !== null && certificateCancelDeletionOptions !== undefined) - { + if (certificateCancelDeletionOptions !== null && certificateCancelDeletionOptions !== undefined) { returnClientRequestId = certificateCancelDeletionOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (certificateCancelDeletionOptions !== null && certificateCancelDeletionOptions !== undefined) - { + if (certificateCancelDeletionOptions !== null && certificateCancelDeletionOptions !== undefined) { ocpDate = certificateCancelDeletionOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -781,29 +766,25 @@ function _deleteMethod(thumbprintAlgorithm, thumbprint, options, callback) { let returnClientRequestId; let ocpDate; try { - if (certificateDeleteMethodOptions !== null && certificateDeleteMethodOptions !== undefined) - { + if (certificateDeleteMethodOptions !== null && certificateDeleteMethodOptions !== undefined) { timeout = certificateDeleteMethodOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (certificateDeleteMethodOptions !== null && certificateDeleteMethodOptions !== undefined) - { + if (certificateDeleteMethodOptions !== null && certificateDeleteMethodOptions !== undefined) { clientRequestId = certificateDeleteMethodOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (certificateDeleteMethodOptions !== null && certificateDeleteMethodOptions !== undefined) - { + if (certificateDeleteMethodOptions !== null && certificateDeleteMethodOptions !== undefined) { returnClientRequestId = certificateDeleteMethodOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (certificateDeleteMethodOptions !== null && certificateDeleteMethodOptions !== undefined) - { + if (certificateDeleteMethodOptions !== null && certificateDeleteMethodOptions !== undefined) { ocpDate = certificateDeleteMethodOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -983,36 +964,31 @@ function _get(thumbprintAlgorithm, thumbprint, options, callback) { let returnClientRequestId; let ocpDate; try { - if (certificateGetOptions !== null && certificateGetOptions !== undefined) - { + if (certificateGetOptions !== null && certificateGetOptions !== undefined) { select = certificateGetOptions.select; if (select !== null && select !== undefined && typeof select.valueOf() !== 'string') { throw new Error('select must be of type string.'); } } - if (certificateGetOptions !== null && certificateGetOptions !== undefined) - { + if (certificateGetOptions !== null && certificateGetOptions !== undefined) { timeout = certificateGetOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (certificateGetOptions !== null && certificateGetOptions !== undefined) - { + if (certificateGetOptions !== null && certificateGetOptions !== undefined) { clientRequestId = certificateGetOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (certificateGetOptions !== null && certificateGetOptions !== undefined) - { + if (certificateGetOptions !== null && certificateGetOptions !== undefined) { returnClientRequestId = certificateGetOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (certificateGetOptions !== null && certificateGetOptions !== undefined) - { + if (certificateGetOptions !== null && certificateGetOptions !== undefined) { ocpDate = certificateGetOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -1194,22 +1170,19 @@ function _listNext(nextPageLink, options, callback) { let returnClientRequestId; let ocpDate; try { - if (certificateListNextOptions !== null && certificateListNextOptions !== undefined) - { + if (certificateListNextOptions !== null && certificateListNextOptions !== undefined) { clientRequestId = certificateListNextOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (certificateListNextOptions !== null && certificateListNextOptions !== undefined) - { + if (certificateListNextOptions !== null && certificateListNextOptions !== undefined) { returnClientRequestId = certificateListNextOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (certificateListNextOptions !== null && certificateListNextOptions !== undefined) - { + if (certificateListNextOptions !== null && certificateListNextOptions !== undefined) { ocpDate = certificateListNextOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { diff --git a/lib/services/batch/lib/operations/computeNodeOperations.js b/lib/services/batch/lib/operations/computeNodeOperations.js index cee9255ecb..03f6e2fe88 100644 --- a/lib/services/batch/lib/operations/computeNodeOperations.js +++ b/lib/services/batch/lib/operations/computeNodeOperations.js @@ -124,29 +124,25 @@ function _addUser(poolId, nodeId, user, options, callback) { let returnClientRequestId; let ocpDate; try { - if (computeNodeAddUserOptions !== null && computeNodeAddUserOptions !== undefined) - { + if (computeNodeAddUserOptions !== null && computeNodeAddUserOptions !== undefined) { timeout = computeNodeAddUserOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (computeNodeAddUserOptions !== null && computeNodeAddUserOptions !== undefined) - { + if (computeNodeAddUserOptions !== null && computeNodeAddUserOptions !== undefined) { clientRequestId = computeNodeAddUserOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (computeNodeAddUserOptions !== null && computeNodeAddUserOptions !== undefined) - { + if (computeNodeAddUserOptions !== null && computeNodeAddUserOptions !== undefined) { returnClientRequestId = computeNodeAddUserOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (computeNodeAddUserOptions !== null && computeNodeAddUserOptions !== undefined) - { + if (computeNodeAddUserOptions !== null && computeNodeAddUserOptions !== undefined) { ocpDate = computeNodeAddUserOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -345,29 +341,25 @@ function _deleteUser(poolId, nodeId, userName, options, callback) { let returnClientRequestId; let ocpDate; try { - if (computeNodeDeleteUserOptions !== null && computeNodeDeleteUserOptions !== undefined) - { + if (computeNodeDeleteUserOptions !== null && computeNodeDeleteUserOptions !== undefined) { timeout = computeNodeDeleteUserOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (computeNodeDeleteUserOptions !== null && computeNodeDeleteUserOptions !== undefined) - { + if (computeNodeDeleteUserOptions !== null && computeNodeDeleteUserOptions !== undefined) { clientRequestId = computeNodeDeleteUserOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (computeNodeDeleteUserOptions !== null && computeNodeDeleteUserOptions !== undefined) - { + if (computeNodeDeleteUserOptions !== null && computeNodeDeleteUserOptions !== undefined) { returnClientRequestId = computeNodeDeleteUserOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (computeNodeDeleteUserOptions !== null && computeNodeDeleteUserOptions !== undefined) - { + if (computeNodeDeleteUserOptions !== null && computeNodeDeleteUserOptions !== undefined) { ocpDate = computeNodeDeleteUserOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -580,29 +572,25 @@ function _updateUser(poolId, nodeId, userName, nodeUpdateUserParameter, options, let returnClientRequestId; let ocpDate; try { - if (computeNodeUpdateUserOptions !== null && computeNodeUpdateUserOptions !== undefined) - { + if (computeNodeUpdateUserOptions !== null && computeNodeUpdateUserOptions !== undefined) { timeout = computeNodeUpdateUserOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (computeNodeUpdateUserOptions !== null && computeNodeUpdateUserOptions !== undefined) - { + if (computeNodeUpdateUserOptions !== null && computeNodeUpdateUserOptions !== undefined) { clientRequestId = computeNodeUpdateUserOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (computeNodeUpdateUserOptions !== null && computeNodeUpdateUserOptions !== undefined) - { + if (computeNodeUpdateUserOptions !== null && computeNodeUpdateUserOptions !== undefined) { returnClientRequestId = computeNodeUpdateUserOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (computeNodeUpdateUserOptions !== null && computeNodeUpdateUserOptions !== undefined) - { + if (computeNodeUpdateUserOptions !== null && computeNodeUpdateUserOptions !== undefined) { ocpDate = computeNodeUpdateUserOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -797,36 +785,31 @@ function _get(poolId, nodeId, options, callback) { let returnClientRequestId; let ocpDate; try { - if (computeNodeGetOptions !== null && computeNodeGetOptions !== undefined) - { + if (computeNodeGetOptions !== null && computeNodeGetOptions !== undefined) { select = computeNodeGetOptions.select; if (select !== null && select !== undefined && typeof select.valueOf() !== 'string') { throw new Error('select must be of type string.'); } } - if (computeNodeGetOptions !== null && computeNodeGetOptions !== undefined) - { + if (computeNodeGetOptions !== null && computeNodeGetOptions !== undefined) { timeout = computeNodeGetOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (computeNodeGetOptions !== null && computeNodeGetOptions !== undefined) - { + if (computeNodeGetOptions !== null && computeNodeGetOptions !== undefined) { clientRequestId = computeNodeGetOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (computeNodeGetOptions !== null && computeNodeGetOptions !== undefined) - { + if (computeNodeGetOptions !== null && computeNodeGetOptions !== undefined) { returnClientRequestId = computeNodeGetOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (computeNodeGetOptions !== null && computeNodeGetOptions !== undefined) - { + if (computeNodeGetOptions !== null && computeNodeGetOptions !== undefined) { ocpDate = computeNodeGetOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -1036,37 +1019,32 @@ function _reboot(poolId, nodeId, options, callback) { let ocpDate; let nodeRebootParameter; try { - if (computeNodeRebootOptions !== null && computeNodeRebootOptions !== undefined) - { + if (computeNodeRebootOptions !== null && computeNodeRebootOptions !== undefined) { timeout = computeNodeRebootOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (computeNodeRebootOptions !== null && computeNodeRebootOptions !== undefined) - { + if (computeNodeRebootOptions !== null && computeNodeRebootOptions !== undefined) { clientRequestId = computeNodeRebootOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (computeNodeRebootOptions !== null && computeNodeRebootOptions !== undefined) - { + if (computeNodeRebootOptions !== null && computeNodeRebootOptions !== undefined) { returnClientRequestId = computeNodeRebootOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (computeNodeRebootOptions !== null && computeNodeRebootOptions !== undefined) - { + if (computeNodeRebootOptions !== null && computeNodeRebootOptions !== undefined) { ocpDate = computeNodeRebootOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (nodeRebootOption !== null && nodeRebootOption !== undefined) - { + if (nodeRebootOption !== null && nodeRebootOption !== undefined) { nodeRebootParameter = new client.models['NodeRebootParameter'](); nodeRebootParameter.nodeRebootOption = nodeRebootOption; } @@ -1269,37 +1247,32 @@ function _reimage(poolId, nodeId, options, callback) { let ocpDate; let nodeReimageParameter; try { - if (computeNodeReimageOptions !== null && computeNodeReimageOptions !== undefined) - { + if (computeNodeReimageOptions !== null && computeNodeReimageOptions !== undefined) { timeout = computeNodeReimageOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (computeNodeReimageOptions !== null && computeNodeReimageOptions !== undefined) - { + if (computeNodeReimageOptions !== null && computeNodeReimageOptions !== undefined) { clientRequestId = computeNodeReimageOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (computeNodeReimageOptions !== null && computeNodeReimageOptions !== undefined) - { + if (computeNodeReimageOptions !== null && computeNodeReimageOptions !== undefined) { returnClientRequestId = computeNodeReimageOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (computeNodeReimageOptions !== null && computeNodeReimageOptions !== undefined) - { + if (computeNodeReimageOptions !== null && computeNodeReimageOptions !== undefined) { ocpDate = computeNodeReimageOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (nodeReimageOption !== null && nodeReimageOption !== undefined) - { + if (nodeReimageOption !== null && nodeReimageOption !== undefined) { nodeReimageParameter = new client.models['NodeReimageParameter'](); nodeReimageParameter.nodeReimageOption = nodeReimageOption; } @@ -1503,37 +1476,32 @@ function _disableScheduling(poolId, nodeId, options, callback) { let ocpDate; let nodeDisableSchedulingParameter; try { - if (computeNodeDisableSchedulingOptions !== null && computeNodeDisableSchedulingOptions !== undefined) - { + if (computeNodeDisableSchedulingOptions !== null && computeNodeDisableSchedulingOptions !== undefined) { timeout = computeNodeDisableSchedulingOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (computeNodeDisableSchedulingOptions !== null && computeNodeDisableSchedulingOptions !== undefined) - { + if (computeNodeDisableSchedulingOptions !== null && computeNodeDisableSchedulingOptions !== undefined) { clientRequestId = computeNodeDisableSchedulingOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (computeNodeDisableSchedulingOptions !== null && computeNodeDisableSchedulingOptions !== undefined) - { + if (computeNodeDisableSchedulingOptions !== null && computeNodeDisableSchedulingOptions !== undefined) { returnClientRequestId = computeNodeDisableSchedulingOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (computeNodeDisableSchedulingOptions !== null && computeNodeDisableSchedulingOptions !== undefined) - { + if (computeNodeDisableSchedulingOptions !== null && computeNodeDisableSchedulingOptions !== undefined) { ocpDate = computeNodeDisableSchedulingOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (nodeDisableSchedulingOption !== null && nodeDisableSchedulingOption !== undefined) - { + if (nodeDisableSchedulingOption !== null && nodeDisableSchedulingOption !== undefined) { nodeDisableSchedulingParameter = new client.models['NodeDisableSchedulingParameter'](); nodeDisableSchedulingParameter.nodeDisableSchedulingOption = nodeDisableSchedulingOption; } @@ -1724,29 +1692,25 @@ function _enableScheduling(poolId, nodeId, options, callback) { let returnClientRequestId; let ocpDate; try { - if (computeNodeEnableSchedulingOptions !== null && computeNodeEnableSchedulingOptions !== undefined) - { + if (computeNodeEnableSchedulingOptions !== null && computeNodeEnableSchedulingOptions !== undefined) { timeout = computeNodeEnableSchedulingOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (computeNodeEnableSchedulingOptions !== null && computeNodeEnableSchedulingOptions !== undefined) - { + if (computeNodeEnableSchedulingOptions !== null && computeNodeEnableSchedulingOptions !== undefined) { clientRequestId = computeNodeEnableSchedulingOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (computeNodeEnableSchedulingOptions !== null && computeNodeEnableSchedulingOptions !== undefined) - { + if (computeNodeEnableSchedulingOptions !== null && computeNodeEnableSchedulingOptions !== undefined) { returnClientRequestId = computeNodeEnableSchedulingOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (computeNodeEnableSchedulingOptions !== null && computeNodeEnableSchedulingOptions !== undefined) - { + if (computeNodeEnableSchedulingOptions !== null && computeNodeEnableSchedulingOptions !== undefined) { ocpDate = computeNodeEnableSchedulingOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -1931,29 +1895,25 @@ function _getRemoteLoginSettings(poolId, nodeId, options, callback) { let returnClientRequestId; let ocpDate; try { - if (computeNodeGetRemoteLoginSettingsOptions !== null && computeNodeGetRemoteLoginSettingsOptions !== undefined) - { + if (computeNodeGetRemoteLoginSettingsOptions !== null && computeNodeGetRemoteLoginSettingsOptions !== undefined) { timeout = computeNodeGetRemoteLoginSettingsOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (computeNodeGetRemoteLoginSettingsOptions !== null && computeNodeGetRemoteLoginSettingsOptions !== undefined) - { + if (computeNodeGetRemoteLoginSettingsOptions !== null && computeNodeGetRemoteLoginSettingsOptions !== undefined) { clientRequestId = computeNodeGetRemoteLoginSettingsOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (computeNodeGetRemoteLoginSettingsOptions !== null && computeNodeGetRemoteLoginSettingsOptions !== undefined) - { + if (computeNodeGetRemoteLoginSettingsOptions !== null && computeNodeGetRemoteLoginSettingsOptions !== undefined) { returnClientRequestId = computeNodeGetRemoteLoginSettingsOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (computeNodeGetRemoteLoginSettingsOptions !== null && computeNodeGetRemoteLoginSettingsOptions !== undefined) - { + if (computeNodeGetRemoteLoginSettingsOptions !== null && computeNodeGetRemoteLoginSettingsOptions !== undefined) { ocpDate = computeNodeGetRemoteLoginSettingsOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -2153,29 +2113,25 @@ function _getRemoteDesktop(poolId, nodeId, options, callback) { let returnClientRequestId; let ocpDate; try { - if (computeNodeGetRemoteDesktopOptions !== null && computeNodeGetRemoteDesktopOptions !== undefined) - { + if (computeNodeGetRemoteDesktopOptions !== null && computeNodeGetRemoteDesktopOptions !== undefined) { timeout = computeNodeGetRemoteDesktopOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (computeNodeGetRemoteDesktopOptions !== null && computeNodeGetRemoteDesktopOptions !== undefined) - { + if (computeNodeGetRemoteDesktopOptions !== null && computeNodeGetRemoteDesktopOptions !== undefined) { clientRequestId = computeNodeGetRemoteDesktopOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (computeNodeGetRemoteDesktopOptions !== null && computeNodeGetRemoteDesktopOptions !== undefined) - { + if (computeNodeGetRemoteDesktopOptions !== null && computeNodeGetRemoteDesktopOptions !== undefined) { returnClientRequestId = computeNodeGetRemoteDesktopOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (computeNodeGetRemoteDesktopOptions !== null && computeNodeGetRemoteDesktopOptions !== undefined) - { + if (computeNodeGetRemoteDesktopOptions !== null && computeNodeGetRemoteDesktopOptions !== undefined) { ocpDate = computeNodeGetRemoteDesktopOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -2390,29 +2346,25 @@ function _uploadBatchServiceLogs(poolId, nodeId, uploadBatchServiceLogsConfigura let returnClientRequestId; let ocpDate; try { - if (computeNodeUploadBatchServiceLogsOptions !== null && computeNodeUploadBatchServiceLogsOptions !== undefined) - { + if (computeNodeUploadBatchServiceLogsOptions !== null && computeNodeUploadBatchServiceLogsOptions !== undefined) { timeout = computeNodeUploadBatchServiceLogsOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (computeNodeUploadBatchServiceLogsOptions !== null && computeNodeUploadBatchServiceLogsOptions !== undefined) - { + if (computeNodeUploadBatchServiceLogsOptions !== null && computeNodeUploadBatchServiceLogsOptions !== undefined) { clientRequestId = computeNodeUploadBatchServiceLogsOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (computeNodeUploadBatchServiceLogsOptions !== null && computeNodeUploadBatchServiceLogsOptions !== undefined) - { + if (computeNodeUploadBatchServiceLogsOptions !== null && computeNodeUploadBatchServiceLogsOptions !== undefined) { returnClientRequestId = computeNodeUploadBatchServiceLogsOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (computeNodeUploadBatchServiceLogsOptions !== null && computeNodeUploadBatchServiceLogsOptions !== undefined) - { + if (computeNodeUploadBatchServiceLogsOptions !== null && computeNodeUploadBatchServiceLogsOptions !== undefined) { ocpDate = computeNodeUploadBatchServiceLogsOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -2627,50 +2579,43 @@ function _list(poolId, options, callback) { let returnClientRequestId; let ocpDate; try { - if (computeNodeListOptions !== null && computeNodeListOptions !== undefined) - { + if (computeNodeListOptions !== null && computeNodeListOptions !== undefined) { filter = computeNodeListOptions.filter; if (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') { throw new Error('filter must be of type string.'); } } - if (computeNodeListOptions !== null && computeNodeListOptions !== undefined) - { + if (computeNodeListOptions !== null && computeNodeListOptions !== undefined) { select = computeNodeListOptions.select; if (select !== null && select !== undefined && typeof select.valueOf() !== 'string') { throw new Error('select must be of type string.'); } } - if (computeNodeListOptions !== null && computeNodeListOptions !== undefined) - { + if (computeNodeListOptions !== null && computeNodeListOptions !== undefined) { maxResults = computeNodeListOptions.maxResults; if (maxResults !== null && maxResults !== undefined && typeof maxResults !== 'number') { throw new Error('maxResults must be of type number.'); } } - if (computeNodeListOptions !== null && computeNodeListOptions !== undefined) - { + if (computeNodeListOptions !== null && computeNodeListOptions !== undefined) { timeout = computeNodeListOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (computeNodeListOptions !== null && computeNodeListOptions !== undefined) - { + if (computeNodeListOptions !== null && computeNodeListOptions !== undefined) { clientRequestId = computeNodeListOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (computeNodeListOptions !== null && computeNodeListOptions !== undefined) - { + if (computeNodeListOptions !== null && computeNodeListOptions !== undefined) { returnClientRequestId = computeNodeListOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (computeNodeListOptions !== null && computeNodeListOptions !== undefined) - { + if (computeNodeListOptions !== null && computeNodeListOptions !== undefined) { ocpDate = computeNodeListOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -2856,22 +2801,19 @@ function _listNext(nextPageLink, options, callback) { let returnClientRequestId; let ocpDate; try { - if (computeNodeListNextOptions !== null && computeNodeListNextOptions !== undefined) - { + if (computeNodeListNextOptions !== null && computeNodeListNextOptions !== undefined) { clientRequestId = computeNodeListNextOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (computeNodeListNextOptions !== null && computeNodeListNextOptions !== undefined) - { + if (computeNodeListNextOptions !== null && computeNodeListNextOptions !== undefined) { returnClientRequestId = computeNodeListNextOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (computeNodeListNextOptions !== null && computeNodeListNextOptions !== undefined) - { + if (computeNodeListNextOptions !== null && computeNodeListNextOptions !== undefined) { ocpDate = computeNodeListNextOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { diff --git a/lib/services/batch/lib/operations/file.js b/lib/services/batch/lib/operations/file.js index 55218383bb..4bf003c775 100644 --- a/lib/services/batch/lib/operations/file.js +++ b/lib/services/batch/lib/operations/file.js @@ -110,29 +110,25 @@ function _deleteFromTask(jobId, taskId, filePath, options, callback) { let returnClientRequestId; let ocpDate; try { - if (fileDeleteFromTaskOptions !== null && fileDeleteFromTaskOptions !== undefined) - { + if (fileDeleteFromTaskOptions !== null && fileDeleteFromTaskOptions !== undefined) { timeout = fileDeleteFromTaskOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (fileDeleteFromTaskOptions !== null && fileDeleteFromTaskOptions !== undefined) - { + if (fileDeleteFromTaskOptions !== null && fileDeleteFromTaskOptions !== undefined) { clientRequestId = fileDeleteFromTaskOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (fileDeleteFromTaskOptions !== null && fileDeleteFromTaskOptions !== undefined) - { + if (fileDeleteFromTaskOptions !== null && fileDeleteFromTaskOptions !== undefined) { returnClientRequestId = fileDeleteFromTaskOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (fileDeleteFromTaskOptions !== null && fileDeleteFromTaskOptions !== undefined) - { + if (fileDeleteFromTaskOptions !== null && fileDeleteFromTaskOptions !== undefined) { ocpDate = fileDeleteFromTaskOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -333,52 +329,45 @@ function _getFromTask(jobId, taskId, filePath, options, callback) { let ifModifiedSince; let ifUnmodifiedSince; try { - if (fileGetFromTaskOptions !== null && fileGetFromTaskOptions !== undefined) - { + if (fileGetFromTaskOptions !== null && fileGetFromTaskOptions !== undefined) { timeout = fileGetFromTaskOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (fileGetFromTaskOptions !== null && fileGetFromTaskOptions !== undefined) - { + if (fileGetFromTaskOptions !== null && fileGetFromTaskOptions !== undefined) { clientRequestId = fileGetFromTaskOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (fileGetFromTaskOptions !== null && fileGetFromTaskOptions !== undefined) - { + if (fileGetFromTaskOptions !== null && fileGetFromTaskOptions !== undefined) { returnClientRequestId = fileGetFromTaskOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (fileGetFromTaskOptions !== null && fileGetFromTaskOptions !== undefined) - { + if (fileGetFromTaskOptions !== null && fileGetFromTaskOptions !== undefined) { ocpDate = fileGetFromTaskOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (fileGetFromTaskOptions !== null && fileGetFromTaskOptions !== undefined) - { + if (fileGetFromTaskOptions !== null && fileGetFromTaskOptions !== undefined) { ocpRange = fileGetFromTaskOptions.ocpRange; if (ocpRange !== null && ocpRange !== undefined && typeof ocpRange.valueOf() !== 'string') { throw new Error('ocpRange must be of type string.'); } } - if (fileGetFromTaskOptions !== null && fileGetFromTaskOptions !== undefined) - { + if (fileGetFromTaskOptions !== null && fileGetFromTaskOptions !== undefined) { ifModifiedSince = fileGetFromTaskOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (fileGetFromTaskOptions !== null && fileGetFromTaskOptions !== undefined) - { + if (fileGetFromTaskOptions !== null && fileGetFromTaskOptions !== undefined) { ifUnmodifiedSince = fileGetFromTaskOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -584,45 +573,39 @@ function _getPropertiesFromTask(jobId, taskId, filePath, options, callback) { let ifModifiedSince; let ifUnmodifiedSince; try { - if (fileGetPropertiesFromTaskOptions !== null && fileGetPropertiesFromTaskOptions !== undefined) - { + if (fileGetPropertiesFromTaskOptions !== null && fileGetPropertiesFromTaskOptions !== undefined) { timeout = fileGetPropertiesFromTaskOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (fileGetPropertiesFromTaskOptions !== null && fileGetPropertiesFromTaskOptions !== undefined) - { + if (fileGetPropertiesFromTaskOptions !== null && fileGetPropertiesFromTaskOptions !== undefined) { clientRequestId = fileGetPropertiesFromTaskOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (fileGetPropertiesFromTaskOptions !== null && fileGetPropertiesFromTaskOptions !== undefined) - { + if (fileGetPropertiesFromTaskOptions !== null && fileGetPropertiesFromTaskOptions !== undefined) { returnClientRequestId = fileGetPropertiesFromTaskOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (fileGetPropertiesFromTaskOptions !== null && fileGetPropertiesFromTaskOptions !== undefined) - { + if (fileGetPropertiesFromTaskOptions !== null && fileGetPropertiesFromTaskOptions !== undefined) { ocpDate = fileGetPropertiesFromTaskOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (fileGetPropertiesFromTaskOptions !== null && fileGetPropertiesFromTaskOptions !== undefined) - { + if (fileGetPropertiesFromTaskOptions !== null && fileGetPropertiesFromTaskOptions !== undefined) { ifModifiedSince = fileGetPropertiesFromTaskOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (fileGetPropertiesFromTaskOptions !== null && fileGetPropertiesFromTaskOptions !== undefined) - { + if (fileGetPropertiesFromTaskOptions !== null && fileGetPropertiesFromTaskOptions !== undefined) { ifUnmodifiedSince = fileGetPropertiesFromTaskOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -822,29 +805,25 @@ function _deleteFromComputeNode(poolId, nodeId, filePath, options, callback) { let returnClientRequestId; let ocpDate; try { - if (fileDeleteFromComputeNodeOptions !== null && fileDeleteFromComputeNodeOptions !== undefined) - { + if (fileDeleteFromComputeNodeOptions !== null && fileDeleteFromComputeNodeOptions !== undefined) { timeout = fileDeleteFromComputeNodeOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (fileDeleteFromComputeNodeOptions !== null && fileDeleteFromComputeNodeOptions !== undefined) - { + if (fileDeleteFromComputeNodeOptions !== null && fileDeleteFromComputeNodeOptions !== undefined) { clientRequestId = fileDeleteFromComputeNodeOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (fileDeleteFromComputeNodeOptions !== null && fileDeleteFromComputeNodeOptions !== undefined) - { + if (fileDeleteFromComputeNodeOptions !== null && fileDeleteFromComputeNodeOptions !== undefined) { returnClientRequestId = fileDeleteFromComputeNodeOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (fileDeleteFromComputeNodeOptions !== null && fileDeleteFromComputeNodeOptions !== undefined) - { + if (fileDeleteFromComputeNodeOptions !== null && fileDeleteFromComputeNodeOptions !== undefined) { ocpDate = fileDeleteFromComputeNodeOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -1047,52 +1026,45 @@ function _getFromComputeNode(poolId, nodeId, filePath, options, callback) { let ifModifiedSince; let ifUnmodifiedSince; try { - if (fileGetFromComputeNodeOptions !== null && fileGetFromComputeNodeOptions !== undefined) - { + if (fileGetFromComputeNodeOptions !== null && fileGetFromComputeNodeOptions !== undefined) { timeout = fileGetFromComputeNodeOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (fileGetFromComputeNodeOptions !== null && fileGetFromComputeNodeOptions !== undefined) - { + if (fileGetFromComputeNodeOptions !== null && fileGetFromComputeNodeOptions !== undefined) { clientRequestId = fileGetFromComputeNodeOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (fileGetFromComputeNodeOptions !== null && fileGetFromComputeNodeOptions !== undefined) - { + if (fileGetFromComputeNodeOptions !== null && fileGetFromComputeNodeOptions !== undefined) { returnClientRequestId = fileGetFromComputeNodeOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (fileGetFromComputeNodeOptions !== null && fileGetFromComputeNodeOptions !== undefined) - { + if (fileGetFromComputeNodeOptions !== null && fileGetFromComputeNodeOptions !== undefined) { ocpDate = fileGetFromComputeNodeOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (fileGetFromComputeNodeOptions !== null && fileGetFromComputeNodeOptions !== undefined) - { + if (fileGetFromComputeNodeOptions !== null && fileGetFromComputeNodeOptions !== undefined) { ocpRange = fileGetFromComputeNodeOptions.ocpRange; if (ocpRange !== null && ocpRange !== undefined && typeof ocpRange.valueOf() !== 'string') { throw new Error('ocpRange must be of type string.'); } } - if (fileGetFromComputeNodeOptions !== null && fileGetFromComputeNodeOptions !== undefined) - { + if (fileGetFromComputeNodeOptions !== null && fileGetFromComputeNodeOptions !== undefined) { ifModifiedSince = fileGetFromComputeNodeOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (fileGetFromComputeNodeOptions !== null && fileGetFromComputeNodeOptions !== undefined) - { + if (fileGetFromComputeNodeOptions !== null && fileGetFromComputeNodeOptions !== undefined) { ifUnmodifiedSince = fileGetFromComputeNodeOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -1300,45 +1272,39 @@ function _getPropertiesFromComputeNode(poolId, nodeId, filePath, options, callba let ifModifiedSince; let ifUnmodifiedSince; try { - if (fileGetPropertiesFromComputeNodeOptions !== null && fileGetPropertiesFromComputeNodeOptions !== undefined) - { + if (fileGetPropertiesFromComputeNodeOptions !== null && fileGetPropertiesFromComputeNodeOptions !== undefined) { timeout = fileGetPropertiesFromComputeNodeOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (fileGetPropertiesFromComputeNodeOptions !== null && fileGetPropertiesFromComputeNodeOptions !== undefined) - { + if (fileGetPropertiesFromComputeNodeOptions !== null && fileGetPropertiesFromComputeNodeOptions !== undefined) { clientRequestId = fileGetPropertiesFromComputeNodeOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (fileGetPropertiesFromComputeNodeOptions !== null && fileGetPropertiesFromComputeNodeOptions !== undefined) - { + if (fileGetPropertiesFromComputeNodeOptions !== null && fileGetPropertiesFromComputeNodeOptions !== undefined) { returnClientRequestId = fileGetPropertiesFromComputeNodeOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (fileGetPropertiesFromComputeNodeOptions !== null && fileGetPropertiesFromComputeNodeOptions !== undefined) - { + if (fileGetPropertiesFromComputeNodeOptions !== null && fileGetPropertiesFromComputeNodeOptions !== undefined) { ocpDate = fileGetPropertiesFromComputeNodeOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (fileGetPropertiesFromComputeNodeOptions !== null && fileGetPropertiesFromComputeNodeOptions !== undefined) - { + if (fileGetPropertiesFromComputeNodeOptions !== null && fileGetPropertiesFromComputeNodeOptions !== undefined) { ifModifiedSince = fileGetPropertiesFromComputeNodeOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (fileGetPropertiesFromComputeNodeOptions !== null && fileGetPropertiesFromComputeNodeOptions !== undefined) - { + if (fileGetPropertiesFromComputeNodeOptions !== null && fileGetPropertiesFromComputeNodeOptions !== undefined) { ifUnmodifiedSince = fileGetPropertiesFromComputeNodeOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -1538,43 +1504,37 @@ function _listFromTask(jobId, taskId, options, callback) { let returnClientRequestId; let ocpDate; try { - if (fileListFromTaskOptions !== null && fileListFromTaskOptions !== undefined) - { + if (fileListFromTaskOptions !== null && fileListFromTaskOptions !== undefined) { filter = fileListFromTaskOptions.filter; if (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') { throw new Error('filter must be of type string.'); } } - if (fileListFromTaskOptions !== null && fileListFromTaskOptions !== undefined) - { + if (fileListFromTaskOptions !== null && fileListFromTaskOptions !== undefined) { maxResults = fileListFromTaskOptions.maxResults; if (maxResults !== null && maxResults !== undefined && typeof maxResults !== 'number') { throw new Error('maxResults must be of type number.'); } } - if (fileListFromTaskOptions !== null && fileListFromTaskOptions !== undefined) - { + if (fileListFromTaskOptions !== null && fileListFromTaskOptions !== undefined) { timeout = fileListFromTaskOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (fileListFromTaskOptions !== null && fileListFromTaskOptions !== undefined) - { + if (fileListFromTaskOptions !== null && fileListFromTaskOptions !== undefined) { clientRequestId = fileListFromTaskOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (fileListFromTaskOptions !== null && fileListFromTaskOptions !== undefined) - { + if (fileListFromTaskOptions !== null && fileListFromTaskOptions !== undefined) { returnClientRequestId = fileListFromTaskOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (fileListFromTaskOptions !== null && fileListFromTaskOptions !== undefined) - { + if (fileListFromTaskOptions !== null && fileListFromTaskOptions !== undefined) { ocpDate = fileListFromTaskOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -1796,43 +1756,37 @@ function _listFromComputeNode(poolId, nodeId, options, callback) { let returnClientRequestId; let ocpDate; try { - if (fileListFromComputeNodeOptions !== null && fileListFromComputeNodeOptions !== undefined) - { + if (fileListFromComputeNodeOptions !== null && fileListFromComputeNodeOptions !== undefined) { filter = fileListFromComputeNodeOptions.filter; if (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') { throw new Error('filter must be of type string.'); } } - if (fileListFromComputeNodeOptions !== null && fileListFromComputeNodeOptions !== undefined) - { + if (fileListFromComputeNodeOptions !== null && fileListFromComputeNodeOptions !== undefined) { maxResults = fileListFromComputeNodeOptions.maxResults; if (maxResults !== null && maxResults !== undefined && typeof maxResults !== 'number') { throw new Error('maxResults must be of type number.'); } } - if (fileListFromComputeNodeOptions !== null && fileListFromComputeNodeOptions !== undefined) - { + if (fileListFromComputeNodeOptions !== null && fileListFromComputeNodeOptions !== undefined) { timeout = fileListFromComputeNodeOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (fileListFromComputeNodeOptions !== null && fileListFromComputeNodeOptions !== undefined) - { + if (fileListFromComputeNodeOptions !== null && fileListFromComputeNodeOptions !== undefined) { clientRequestId = fileListFromComputeNodeOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (fileListFromComputeNodeOptions !== null && fileListFromComputeNodeOptions !== undefined) - { + if (fileListFromComputeNodeOptions !== null && fileListFromComputeNodeOptions !== undefined) { returnClientRequestId = fileListFromComputeNodeOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (fileListFromComputeNodeOptions !== null && fileListFromComputeNodeOptions !== undefined) - { + if (fileListFromComputeNodeOptions !== null && fileListFromComputeNodeOptions !== undefined) { ocpDate = fileListFromComputeNodeOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -2019,22 +1973,19 @@ function _listFromTaskNext(nextPageLink, options, callback) { let returnClientRequestId; let ocpDate; try { - if (fileListFromTaskNextOptions !== null && fileListFromTaskNextOptions !== undefined) - { + if (fileListFromTaskNextOptions !== null && fileListFromTaskNextOptions !== undefined) { clientRequestId = fileListFromTaskNextOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (fileListFromTaskNextOptions !== null && fileListFromTaskNextOptions !== undefined) - { + if (fileListFromTaskNextOptions !== null && fileListFromTaskNextOptions !== undefined) { returnClientRequestId = fileListFromTaskNextOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (fileListFromTaskNextOptions !== null && fileListFromTaskNextOptions !== undefined) - { + if (fileListFromTaskNextOptions !== null && fileListFromTaskNextOptions !== undefined) { ocpDate = fileListFromTaskNextOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -2203,22 +2154,19 @@ function _listFromComputeNodeNext(nextPageLink, options, callback) { let returnClientRequestId; let ocpDate; try { - if (fileListFromComputeNodeNextOptions !== null && fileListFromComputeNodeNextOptions !== undefined) - { + if (fileListFromComputeNodeNextOptions !== null && fileListFromComputeNodeNextOptions !== undefined) { clientRequestId = fileListFromComputeNodeNextOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (fileListFromComputeNodeNextOptions !== null && fileListFromComputeNodeNextOptions !== undefined) - { + if (fileListFromComputeNodeNextOptions !== null && fileListFromComputeNodeNextOptions !== undefined) { returnClientRequestId = fileListFromComputeNodeNextOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (fileListFromComputeNodeNextOptions !== null && fileListFromComputeNodeNextOptions !== undefined) - { + if (fileListFromComputeNodeNextOptions !== null && fileListFromComputeNodeNextOptions !== undefined) { ocpDate = fileListFromComputeNodeNextOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { diff --git a/lib/services/batch/lib/operations/index.d.ts b/lib/services/batch/lib/operations/index.d.ts index 6c71a4ee62..60e6307e3b 100644 --- a/lib/services/batch/lib/operations/index.d.ts +++ b/lib/services/batch/lib/operations/index.d.ts @@ -696,7 +696,7 @@ export interface Pool { * the default value is true. * * @param {array} [pool.virtualMachineConfiguration.dataDisks] The - * configuration for data disks attached to the comptue nodes in the pool. This + * configuration for data disks attached to the compute nodes in the pool. This * property must be specified if the compute nodes in the pool need to have * empty data disks attached to them. This cannot be updated. Each node gets * its own disk (the disk is not a file share). Existing disks cannot be @@ -1094,7 +1094,7 @@ export interface Pool { * the default value is true. * * @param {array} [pool.virtualMachineConfiguration.dataDisks] The - * configuration for data disks attached to the comptue nodes in the pool. This + * configuration for data disks attached to the compute nodes in the pool. This * property must be specified if the compute nodes in the pool need to have * empty data disks attached to them. This cannot be updated. Each node gets * its own disk (the disk is not a file share). Existing disks cannot be @@ -4847,7 +4847,7 @@ export interface Job { * * @param {array} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be @@ -5415,7 +5415,7 @@ export interface Job { * * @param {array} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be @@ -5993,7 +5993,7 @@ export interface Job { * * @param {array} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be @@ -6566,7 +6566,7 @@ export interface Job { * * @param {array} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be @@ -7893,7 +7893,7 @@ export interface Job { * * @param {array} * [job.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be @@ -8743,7 +8743,7 @@ export interface Job { * * @param {array} * [job.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be @@ -12819,7 +12819,7 @@ export interface JobSchedule { * * @param {array} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be @@ -13818,7 +13818,7 @@ export interface JobSchedule { * * @param {array} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be @@ -14839,7 +14839,7 @@ export interface JobSchedule { * * @param {array} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be @@ -15844,7 +15844,7 @@ export interface JobSchedule { * * @param {array} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be @@ -17248,7 +17248,7 @@ export interface JobSchedule { * * @param {array} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be @@ -18212,7 +18212,7 @@ export interface JobSchedule { * * @param {array} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be diff --git a/lib/services/batch/lib/operations/job.js b/lib/services/batch/lib/operations/job.js index fdbb2f0216..e340044ee5 100644 --- a/lib/services/batch/lib/operations/job.js +++ b/lib/services/batch/lib/operations/job.js @@ -91,29 +91,25 @@ function _getAllLifetimeStatistics(options, callback) { let returnClientRequestId; let ocpDate; try { - if (jobGetAllLifetimeStatisticsOptions !== null && jobGetAllLifetimeStatisticsOptions !== undefined) - { + if (jobGetAllLifetimeStatisticsOptions !== null && jobGetAllLifetimeStatisticsOptions !== undefined) { timeout = jobGetAllLifetimeStatisticsOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (jobGetAllLifetimeStatisticsOptions !== null && jobGetAllLifetimeStatisticsOptions !== undefined) - { + if (jobGetAllLifetimeStatisticsOptions !== null && jobGetAllLifetimeStatisticsOptions !== undefined) { clientRequestId = jobGetAllLifetimeStatisticsOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (jobGetAllLifetimeStatisticsOptions !== null && jobGetAllLifetimeStatisticsOptions !== undefined) - { + if (jobGetAllLifetimeStatisticsOptions !== null && jobGetAllLifetimeStatisticsOptions !== undefined) { returnClientRequestId = jobGetAllLifetimeStatisticsOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (jobGetAllLifetimeStatisticsOptions !== null && jobGetAllLifetimeStatisticsOptions !== undefined) - { + if (jobGetAllLifetimeStatisticsOptions !== null && jobGetAllLifetimeStatisticsOptions !== undefined) { ocpDate = jobGetAllLifetimeStatisticsOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -330,59 +326,51 @@ function _deleteMethod(jobId, options, callback) { let ifModifiedSince; let ifUnmodifiedSince; try { - if (jobDeleteMethodOptions !== null && jobDeleteMethodOptions !== undefined) - { + if (jobDeleteMethodOptions !== null && jobDeleteMethodOptions !== undefined) { timeout = jobDeleteMethodOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (jobDeleteMethodOptions !== null && jobDeleteMethodOptions !== undefined) - { + if (jobDeleteMethodOptions !== null && jobDeleteMethodOptions !== undefined) { clientRequestId = jobDeleteMethodOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (jobDeleteMethodOptions !== null && jobDeleteMethodOptions !== undefined) - { + if (jobDeleteMethodOptions !== null && jobDeleteMethodOptions !== undefined) { returnClientRequestId = jobDeleteMethodOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (jobDeleteMethodOptions !== null && jobDeleteMethodOptions !== undefined) - { + if (jobDeleteMethodOptions !== null && jobDeleteMethodOptions !== undefined) { ocpDate = jobDeleteMethodOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (jobDeleteMethodOptions !== null && jobDeleteMethodOptions !== undefined) - { + if (jobDeleteMethodOptions !== null && jobDeleteMethodOptions !== undefined) { ifMatch = jobDeleteMethodOptions.ifMatch; if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { throw new Error('ifMatch must be of type string.'); } } - if (jobDeleteMethodOptions !== null && jobDeleteMethodOptions !== undefined) - { + if (jobDeleteMethodOptions !== null && jobDeleteMethodOptions !== undefined) { ifNoneMatch = jobDeleteMethodOptions.ifNoneMatch; if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') { throw new Error('ifNoneMatch must be of type string.'); } } - if (jobDeleteMethodOptions !== null && jobDeleteMethodOptions !== undefined) - { + if (jobDeleteMethodOptions !== null && jobDeleteMethodOptions !== undefined) { ifModifiedSince = jobDeleteMethodOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (jobDeleteMethodOptions !== null && jobDeleteMethodOptions !== undefined) - { + if (jobDeleteMethodOptions !== null && jobDeleteMethodOptions !== undefined) { ifUnmodifiedSince = jobDeleteMethodOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -593,73 +581,63 @@ function _get(jobId, options, callback) { let ifModifiedSince; let ifUnmodifiedSince; try { - if (jobGetOptions !== null && jobGetOptions !== undefined) - { + if (jobGetOptions !== null && jobGetOptions !== undefined) { select = jobGetOptions.select; if (select !== null && select !== undefined && typeof select.valueOf() !== 'string') { throw new Error('select must be of type string.'); } } - if (jobGetOptions !== null && jobGetOptions !== undefined) - { + if (jobGetOptions !== null && jobGetOptions !== undefined) { expand = jobGetOptions.expand; if (expand !== null && expand !== undefined && typeof expand.valueOf() !== 'string') { throw new Error('expand must be of type string.'); } } - if (jobGetOptions !== null && jobGetOptions !== undefined) - { + if (jobGetOptions !== null && jobGetOptions !== undefined) { timeout = jobGetOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (jobGetOptions !== null && jobGetOptions !== undefined) - { + if (jobGetOptions !== null && jobGetOptions !== undefined) { clientRequestId = jobGetOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (jobGetOptions !== null && jobGetOptions !== undefined) - { + if (jobGetOptions !== null && jobGetOptions !== undefined) { returnClientRequestId = jobGetOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (jobGetOptions !== null && jobGetOptions !== undefined) - { + if (jobGetOptions !== null && jobGetOptions !== undefined) { ocpDate = jobGetOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (jobGetOptions !== null && jobGetOptions !== undefined) - { + if (jobGetOptions !== null && jobGetOptions !== undefined) { ifMatch = jobGetOptions.ifMatch; if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { throw new Error('ifMatch must be of type string.'); } } - if (jobGetOptions !== null && jobGetOptions !== undefined) - { + if (jobGetOptions !== null && jobGetOptions !== undefined) { ifNoneMatch = jobGetOptions.ifNoneMatch; if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') { throw new Error('ifNoneMatch must be of type string.'); } } - if (jobGetOptions !== null && jobGetOptions !== undefined) - { + if (jobGetOptions !== null && jobGetOptions !== undefined) { ifModifiedSince = jobGetOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (jobGetOptions !== null && jobGetOptions !== undefined) - { + if (jobGetOptions !== null && jobGetOptions !== undefined) { ifUnmodifiedSince = jobGetOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -996,7 +974,7 @@ function _get(jobId, options, callback) { * * @param {array} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be @@ -1405,59 +1383,51 @@ function _patch(jobId, jobPatchParameter, options, callback) { let ifModifiedSince; let ifUnmodifiedSince; try { - if (jobPatchOptions !== null && jobPatchOptions !== undefined) - { + if (jobPatchOptions !== null && jobPatchOptions !== undefined) { timeout = jobPatchOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (jobPatchOptions !== null && jobPatchOptions !== undefined) - { + if (jobPatchOptions !== null && jobPatchOptions !== undefined) { clientRequestId = jobPatchOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (jobPatchOptions !== null && jobPatchOptions !== undefined) - { + if (jobPatchOptions !== null && jobPatchOptions !== undefined) { returnClientRequestId = jobPatchOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (jobPatchOptions !== null && jobPatchOptions !== undefined) - { + if (jobPatchOptions !== null && jobPatchOptions !== undefined) { ocpDate = jobPatchOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (jobPatchOptions !== null && jobPatchOptions !== undefined) - { + if (jobPatchOptions !== null && jobPatchOptions !== undefined) { ifMatch = jobPatchOptions.ifMatch; if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { throw new Error('ifMatch must be of type string.'); } } - if (jobPatchOptions !== null && jobPatchOptions !== undefined) - { + if (jobPatchOptions !== null && jobPatchOptions !== undefined) { ifNoneMatch = jobPatchOptions.ifNoneMatch; if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') { throw new Error('ifNoneMatch must be of type string.'); } } - if (jobPatchOptions !== null && jobPatchOptions !== undefined) - { + if (jobPatchOptions !== null && jobPatchOptions !== undefined) { ifModifiedSince = jobPatchOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (jobPatchOptions !== null && jobPatchOptions !== undefined) - { + if (jobPatchOptions !== null && jobPatchOptions !== undefined) { ifUnmodifiedSince = jobPatchOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -1777,7 +1747,7 @@ function _patch(jobId, jobPatchParameter, options, callback) { * * @param {array} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be @@ -2199,59 +2169,51 @@ function _update(jobId, jobUpdateParameter, options, callback) { let ifModifiedSince; let ifUnmodifiedSince; try { - if (jobUpdateOptions !== null && jobUpdateOptions !== undefined) - { + if (jobUpdateOptions !== null && jobUpdateOptions !== undefined) { timeout = jobUpdateOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (jobUpdateOptions !== null && jobUpdateOptions !== undefined) - { + if (jobUpdateOptions !== null && jobUpdateOptions !== undefined) { clientRequestId = jobUpdateOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (jobUpdateOptions !== null && jobUpdateOptions !== undefined) - { + if (jobUpdateOptions !== null && jobUpdateOptions !== undefined) { returnClientRequestId = jobUpdateOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (jobUpdateOptions !== null && jobUpdateOptions !== undefined) - { + if (jobUpdateOptions !== null && jobUpdateOptions !== undefined) { ocpDate = jobUpdateOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (jobUpdateOptions !== null && jobUpdateOptions !== undefined) - { + if (jobUpdateOptions !== null && jobUpdateOptions !== undefined) { ifMatch = jobUpdateOptions.ifMatch; if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { throw new Error('ifMatch must be of type string.'); } } - if (jobUpdateOptions !== null && jobUpdateOptions !== undefined) - { + if (jobUpdateOptions !== null && jobUpdateOptions !== undefined) { ifNoneMatch = jobUpdateOptions.ifNoneMatch; if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') { throw new Error('ifNoneMatch must be of type string.'); } } - if (jobUpdateOptions !== null && jobUpdateOptions !== undefined) - { + if (jobUpdateOptions !== null && jobUpdateOptions !== undefined) { ifModifiedSince = jobUpdateOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (jobUpdateOptions !== null && jobUpdateOptions !== undefined) - { + if (jobUpdateOptions !== null && jobUpdateOptions !== undefined) { ifUnmodifiedSince = jobUpdateOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -2490,67 +2452,58 @@ function _disable(jobId, disableTasks, options, callback) { let ifUnmodifiedSince; let jobDisableParameter = new client.models['JobDisableParameter'](); try { - if (jobDisableOptions !== null && jobDisableOptions !== undefined) - { + if (jobDisableOptions !== null && jobDisableOptions !== undefined) { timeout = jobDisableOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (jobDisableOptions !== null && jobDisableOptions !== undefined) - { + if (jobDisableOptions !== null && jobDisableOptions !== undefined) { clientRequestId = jobDisableOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (jobDisableOptions !== null && jobDisableOptions !== undefined) - { + if (jobDisableOptions !== null && jobDisableOptions !== undefined) { returnClientRequestId = jobDisableOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (jobDisableOptions !== null && jobDisableOptions !== undefined) - { + if (jobDisableOptions !== null && jobDisableOptions !== undefined) { ocpDate = jobDisableOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (jobDisableOptions !== null && jobDisableOptions !== undefined) - { + if (jobDisableOptions !== null && jobDisableOptions !== undefined) { ifMatch = jobDisableOptions.ifMatch; if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { throw new Error('ifMatch must be of type string.'); } } - if (jobDisableOptions !== null && jobDisableOptions !== undefined) - { + if (jobDisableOptions !== null && jobDisableOptions !== undefined) { ifNoneMatch = jobDisableOptions.ifNoneMatch; if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') { throw new Error('ifNoneMatch must be of type string.'); } } - if (jobDisableOptions !== null && jobDisableOptions !== undefined) - { + if (jobDisableOptions !== null && jobDisableOptions !== undefined) { ifModifiedSince = jobDisableOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (jobDisableOptions !== null && jobDisableOptions !== undefined) - { + if (jobDisableOptions !== null && jobDisableOptions !== undefined) { ifUnmodifiedSince = jobDisableOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { throw new Error('ifUnmodifiedSince must be of type date.'); } } - if (disableTasks !== null && disableTasks !== undefined) - { + if (disableTasks !== null && disableTasks !== undefined) { jobDisableParameter.disableTasks = disableTasks; } } catch (error) { @@ -2771,59 +2724,51 @@ function _enable(jobId, options, callback) { let ifModifiedSince; let ifUnmodifiedSince; try { - if (jobEnableOptions !== null && jobEnableOptions !== undefined) - { + if (jobEnableOptions !== null && jobEnableOptions !== undefined) { timeout = jobEnableOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (jobEnableOptions !== null && jobEnableOptions !== undefined) - { + if (jobEnableOptions !== null && jobEnableOptions !== undefined) { clientRequestId = jobEnableOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (jobEnableOptions !== null && jobEnableOptions !== undefined) - { + if (jobEnableOptions !== null && jobEnableOptions !== undefined) { returnClientRequestId = jobEnableOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (jobEnableOptions !== null && jobEnableOptions !== undefined) - { + if (jobEnableOptions !== null && jobEnableOptions !== undefined) { ocpDate = jobEnableOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (jobEnableOptions !== null && jobEnableOptions !== undefined) - { + if (jobEnableOptions !== null && jobEnableOptions !== undefined) { ifMatch = jobEnableOptions.ifMatch; if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { throw new Error('ifMatch must be of type string.'); } } - if (jobEnableOptions !== null && jobEnableOptions !== undefined) - { + if (jobEnableOptions !== null && jobEnableOptions !== undefined) { ifNoneMatch = jobEnableOptions.ifNoneMatch; if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') { throw new Error('ifNoneMatch must be of type string.'); } } - if (jobEnableOptions !== null && jobEnableOptions !== undefined) - { + if (jobEnableOptions !== null && jobEnableOptions !== undefined) { ifModifiedSince = jobEnableOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (jobEnableOptions !== null && jobEnableOptions !== undefined) - { + if (jobEnableOptions !== null && jobEnableOptions !== undefined) { ifUnmodifiedSince = jobEnableOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -3043,67 +2988,58 @@ function _terminate(jobId, options, callback) { let ifUnmodifiedSince; let jobTerminateParameter; try { - if (jobTerminateOptions !== null && jobTerminateOptions !== undefined) - { + if (jobTerminateOptions !== null && jobTerminateOptions !== undefined) { timeout = jobTerminateOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (jobTerminateOptions !== null && jobTerminateOptions !== undefined) - { + if (jobTerminateOptions !== null && jobTerminateOptions !== undefined) { clientRequestId = jobTerminateOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (jobTerminateOptions !== null && jobTerminateOptions !== undefined) - { + if (jobTerminateOptions !== null && jobTerminateOptions !== undefined) { returnClientRequestId = jobTerminateOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (jobTerminateOptions !== null && jobTerminateOptions !== undefined) - { + if (jobTerminateOptions !== null && jobTerminateOptions !== undefined) { ocpDate = jobTerminateOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (jobTerminateOptions !== null && jobTerminateOptions !== undefined) - { + if (jobTerminateOptions !== null && jobTerminateOptions !== undefined) { ifMatch = jobTerminateOptions.ifMatch; if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { throw new Error('ifMatch must be of type string.'); } } - if (jobTerminateOptions !== null && jobTerminateOptions !== undefined) - { + if (jobTerminateOptions !== null && jobTerminateOptions !== undefined) { ifNoneMatch = jobTerminateOptions.ifNoneMatch; if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') { throw new Error('ifNoneMatch must be of type string.'); } } - if (jobTerminateOptions !== null && jobTerminateOptions !== undefined) - { + if (jobTerminateOptions !== null && jobTerminateOptions !== undefined) { ifModifiedSince = jobTerminateOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (jobTerminateOptions !== null && jobTerminateOptions !== undefined) - { + if (jobTerminateOptions !== null && jobTerminateOptions !== undefined) { ifUnmodifiedSince = jobTerminateOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { throw new Error('ifUnmodifiedSince must be of type date.'); } } - if (terminateReason !== null && terminateReason !== undefined) - { + if (terminateReason !== null && terminateReason !== undefined) { jobTerminateParameter = new client.models['JobTerminateParameter'](); jobTerminateParameter.terminateReason = terminateReason; } @@ -3706,7 +3642,7 @@ function _terminate(jobId, options, callback) { * * @param {array} * [job.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be @@ -4112,29 +4048,25 @@ function _add(job, options, callback) { let returnClientRequestId; let ocpDate; try { - if (jobAddOptions !== null && jobAddOptions !== undefined) - { + if (jobAddOptions !== null && jobAddOptions !== undefined) { timeout = jobAddOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (jobAddOptions !== null && jobAddOptions !== undefined) - { + if (jobAddOptions !== null && jobAddOptions !== undefined) { clientRequestId = jobAddOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (jobAddOptions !== null && jobAddOptions !== undefined) - { + if (jobAddOptions !== null && jobAddOptions !== undefined) { returnClientRequestId = jobAddOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (jobAddOptions !== null && jobAddOptions !== undefined) - { + if (jobAddOptions !== null && jobAddOptions !== undefined) { ocpDate = jobAddOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -4326,57 +4258,49 @@ function _list(options, callback) { let returnClientRequestId; let ocpDate; try { - if (jobListOptions !== null && jobListOptions !== undefined) - { + if (jobListOptions !== null && jobListOptions !== undefined) { filter = jobListOptions.filter; if (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') { throw new Error('filter must be of type string.'); } } - if (jobListOptions !== null && jobListOptions !== undefined) - { + if (jobListOptions !== null && jobListOptions !== undefined) { select = jobListOptions.select; if (select !== null && select !== undefined && typeof select.valueOf() !== 'string') { throw new Error('select must be of type string.'); } } - if (jobListOptions !== null && jobListOptions !== undefined) - { + if (jobListOptions !== null && jobListOptions !== undefined) { expand = jobListOptions.expand; if (expand !== null && expand !== undefined && typeof expand.valueOf() !== 'string') { throw new Error('expand must be of type string.'); } } - if (jobListOptions !== null && jobListOptions !== undefined) - { + if (jobListOptions !== null && jobListOptions !== undefined) { maxResults = jobListOptions.maxResults; if (maxResults !== null && maxResults !== undefined && typeof maxResults !== 'number') { throw new Error('maxResults must be of type number.'); } } - if (jobListOptions !== null && jobListOptions !== undefined) - { + if (jobListOptions !== null && jobListOptions !== undefined) { timeout = jobListOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (jobListOptions !== null && jobListOptions !== undefined) - { + if (jobListOptions !== null && jobListOptions !== undefined) { clientRequestId = jobListOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (jobListOptions !== null && jobListOptions !== undefined) - { + if (jobListOptions !== null && jobListOptions !== undefined) { returnClientRequestId = jobListOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (jobListOptions !== null && jobListOptions !== undefined) - { + if (jobListOptions !== null && jobListOptions !== undefined) { ocpDate = jobListOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -4595,57 +4519,49 @@ function _listFromJobSchedule(jobScheduleId, options, callback) { let returnClientRequestId; let ocpDate; try { - if (jobListFromJobScheduleOptions !== null && jobListFromJobScheduleOptions !== undefined) - { + if (jobListFromJobScheduleOptions !== null && jobListFromJobScheduleOptions !== undefined) { filter = jobListFromJobScheduleOptions.filter; if (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') { throw new Error('filter must be of type string.'); } } - if (jobListFromJobScheduleOptions !== null && jobListFromJobScheduleOptions !== undefined) - { + if (jobListFromJobScheduleOptions !== null && jobListFromJobScheduleOptions !== undefined) { select = jobListFromJobScheduleOptions.select; if (select !== null && select !== undefined && typeof select.valueOf() !== 'string') { throw new Error('select must be of type string.'); } } - if (jobListFromJobScheduleOptions !== null && jobListFromJobScheduleOptions !== undefined) - { + if (jobListFromJobScheduleOptions !== null && jobListFromJobScheduleOptions !== undefined) { expand = jobListFromJobScheduleOptions.expand; if (expand !== null && expand !== undefined && typeof expand.valueOf() !== 'string') { throw new Error('expand must be of type string.'); } } - if (jobListFromJobScheduleOptions !== null && jobListFromJobScheduleOptions !== undefined) - { + if (jobListFromJobScheduleOptions !== null && jobListFromJobScheduleOptions !== undefined) { maxResults = jobListFromJobScheduleOptions.maxResults; if (maxResults !== null && maxResults !== undefined && typeof maxResults !== 'number') { throw new Error('maxResults must be of type number.'); } } - if (jobListFromJobScheduleOptions !== null && jobListFromJobScheduleOptions !== undefined) - { + if (jobListFromJobScheduleOptions !== null && jobListFromJobScheduleOptions !== undefined) { timeout = jobListFromJobScheduleOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (jobListFromJobScheduleOptions !== null && jobListFromJobScheduleOptions !== undefined) - { + if (jobListFromJobScheduleOptions !== null && jobListFromJobScheduleOptions !== undefined) { clientRequestId = jobListFromJobScheduleOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (jobListFromJobScheduleOptions !== null && jobListFromJobScheduleOptions !== undefined) - { + if (jobListFromJobScheduleOptions !== null && jobListFromJobScheduleOptions !== undefined) { returnClientRequestId = jobListFromJobScheduleOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (jobListFromJobScheduleOptions !== null && jobListFromJobScheduleOptions !== undefined) - { + if (jobListFromJobScheduleOptions !== null && jobListFromJobScheduleOptions !== undefined) { ocpDate = jobListFromJobScheduleOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -4875,50 +4791,43 @@ function _listPreparationAndReleaseTaskStatus(jobId, options, callback) { let returnClientRequestId; let ocpDate; try { - if (jobListPreparationAndReleaseTaskStatusOptions !== null && jobListPreparationAndReleaseTaskStatusOptions !== undefined) - { + if (jobListPreparationAndReleaseTaskStatusOptions !== null && jobListPreparationAndReleaseTaskStatusOptions !== undefined) { filter = jobListPreparationAndReleaseTaskStatusOptions.filter; if (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') { throw new Error('filter must be of type string.'); } } - if (jobListPreparationAndReleaseTaskStatusOptions !== null && jobListPreparationAndReleaseTaskStatusOptions !== undefined) - { + if (jobListPreparationAndReleaseTaskStatusOptions !== null && jobListPreparationAndReleaseTaskStatusOptions !== undefined) { select = jobListPreparationAndReleaseTaskStatusOptions.select; if (select !== null && select !== undefined && typeof select.valueOf() !== 'string') { throw new Error('select must be of type string.'); } } - if (jobListPreparationAndReleaseTaskStatusOptions !== null && jobListPreparationAndReleaseTaskStatusOptions !== undefined) - { + if (jobListPreparationAndReleaseTaskStatusOptions !== null && jobListPreparationAndReleaseTaskStatusOptions !== undefined) { maxResults = jobListPreparationAndReleaseTaskStatusOptions.maxResults; if (maxResults !== null && maxResults !== undefined && typeof maxResults !== 'number') { throw new Error('maxResults must be of type number.'); } } - if (jobListPreparationAndReleaseTaskStatusOptions !== null && jobListPreparationAndReleaseTaskStatusOptions !== undefined) - { + if (jobListPreparationAndReleaseTaskStatusOptions !== null && jobListPreparationAndReleaseTaskStatusOptions !== undefined) { timeout = jobListPreparationAndReleaseTaskStatusOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (jobListPreparationAndReleaseTaskStatusOptions !== null && jobListPreparationAndReleaseTaskStatusOptions !== undefined) - { + if (jobListPreparationAndReleaseTaskStatusOptions !== null && jobListPreparationAndReleaseTaskStatusOptions !== undefined) { clientRequestId = jobListPreparationAndReleaseTaskStatusOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (jobListPreparationAndReleaseTaskStatusOptions !== null && jobListPreparationAndReleaseTaskStatusOptions !== undefined) - { + if (jobListPreparationAndReleaseTaskStatusOptions !== null && jobListPreparationAndReleaseTaskStatusOptions !== undefined) { returnClientRequestId = jobListPreparationAndReleaseTaskStatusOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (jobListPreparationAndReleaseTaskStatusOptions !== null && jobListPreparationAndReleaseTaskStatusOptions !== undefined) - { + if (jobListPreparationAndReleaseTaskStatusOptions !== null && jobListPreparationAndReleaseTaskStatusOptions !== undefined) { ocpDate = jobListPreparationAndReleaseTaskStatusOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -5117,29 +5026,25 @@ function _getTaskCounts(jobId, options, callback) { let returnClientRequestId; let ocpDate; try { - if (jobGetTaskCountsOptions !== null && jobGetTaskCountsOptions !== undefined) - { + if (jobGetTaskCountsOptions !== null && jobGetTaskCountsOptions !== undefined) { timeout = jobGetTaskCountsOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (jobGetTaskCountsOptions !== null && jobGetTaskCountsOptions !== undefined) - { + if (jobGetTaskCountsOptions !== null && jobGetTaskCountsOptions !== undefined) { clientRequestId = jobGetTaskCountsOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (jobGetTaskCountsOptions !== null && jobGetTaskCountsOptions !== undefined) - { + if (jobGetTaskCountsOptions !== null && jobGetTaskCountsOptions !== undefined) { returnClientRequestId = jobGetTaskCountsOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (jobGetTaskCountsOptions !== null && jobGetTaskCountsOptions !== undefined) - { + if (jobGetTaskCountsOptions !== null && jobGetTaskCountsOptions !== undefined) { ocpDate = jobGetTaskCountsOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -5315,22 +5220,19 @@ function _listNext(nextPageLink, options, callback) { let returnClientRequestId; let ocpDate; try { - if (jobListNextOptions !== null && jobListNextOptions !== undefined) - { + if (jobListNextOptions !== null && jobListNextOptions !== undefined) { clientRequestId = jobListNextOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (jobListNextOptions !== null && jobListNextOptions !== undefined) - { + if (jobListNextOptions !== null && jobListNextOptions !== undefined) { returnClientRequestId = jobListNextOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (jobListNextOptions !== null && jobListNextOptions !== undefined) - { + if (jobListNextOptions !== null && jobListNextOptions !== undefined) { ocpDate = jobListNextOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -5499,22 +5401,19 @@ function _listFromJobScheduleNext(nextPageLink, options, callback) { let returnClientRequestId; let ocpDate; try { - if (jobListFromJobScheduleNextOptions !== null && jobListFromJobScheduleNextOptions !== undefined) - { + if (jobListFromJobScheduleNextOptions !== null && jobListFromJobScheduleNextOptions !== undefined) { clientRequestId = jobListFromJobScheduleNextOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (jobListFromJobScheduleNextOptions !== null && jobListFromJobScheduleNextOptions !== undefined) - { + if (jobListFromJobScheduleNextOptions !== null && jobListFromJobScheduleNextOptions !== undefined) { returnClientRequestId = jobListFromJobScheduleNextOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (jobListFromJobScheduleNextOptions !== null && jobListFromJobScheduleNextOptions !== undefined) - { + if (jobListFromJobScheduleNextOptions !== null && jobListFromJobScheduleNextOptions !== undefined) { ocpDate = jobListFromJobScheduleNextOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -5694,22 +5593,19 @@ function _listPreparationAndReleaseTaskStatusNext(nextPageLink, options, callbac let returnClientRequestId; let ocpDate; try { - if (jobListPreparationAndReleaseTaskStatusNextOptions !== null && jobListPreparationAndReleaseTaskStatusNextOptions !== undefined) - { + if (jobListPreparationAndReleaseTaskStatusNextOptions !== null && jobListPreparationAndReleaseTaskStatusNextOptions !== undefined) { clientRequestId = jobListPreparationAndReleaseTaskStatusNextOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (jobListPreparationAndReleaseTaskStatusNextOptions !== null && jobListPreparationAndReleaseTaskStatusNextOptions !== undefined) - { + if (jobListPreparationAndReleaseTaskStatusNextOptions !== null && jobListPreparationAndReleaseTaskStatusNextOptions !== undefined) { returnClientRequestId = jobListPreparationAndReleaseTaskStatusNextOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (jobListPreparationAndReleaseTaskStatusNextOptions !== null && jobListPreparationAndReleaseTaskStatusNextOptions !== undefined) - { + if (jobListPreparationAndReleaseTaskStatusNextOptions !== null && jobListPreparationAndReleaseTaskStatusNextOptions !== undefined) { ocpDate = jobListPreparationAndReleaseTaskStatusNextOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -6515,7 +6411,7 @@ class Job { * * @param {array} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be @@ -7095,7 +6991,7 @@ class Job { * * @param {array} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be @@ -7688,7 +7584,7 @@ class Job { * * @param {array} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be @@ -8273,7 +8169,7 @@ class Job { * * @param {array} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be @@ -9696,7 +9592,7 @@ class Job { * * @param {array} * [job.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be @@ -10558,7 +10454,7 @@ class Job { * * @param {array} * [job.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be diff --git a/lib/services/batch/lib/operations/jobSchedule.js b/lib/services/batch/lib/operations/jobSchedule.js index 83f1306be0..cf62c4316c 100644 --- a/lib/services/batch/lib/operations/jobSchedule.js +++ b/lib/services/batch/lib/operations/jobSchedule.js @@ -113,59 +113,51 @@ function _exists(jobScheduleId, options, callback) { let ifModifiedSince; let ifUnmodifiedSince; try { - if (jobScheduleExistsOptions !== null && jobScheduleExistsOptions !== undefined) - { + if (jobScheduleExistsOptions !== null && jobScheduleExistsOptions !== undefined) { timeout = jobScheduleExistsOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (jobScheduleExistsOptions !== null && jobScheduleExistsOptions !== undefined) - { + if (jobScheduleExistsOptions !== null && jobScheduleExistsOptions !== undefined) { clientRequestId = jobScheduleExistsOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (jobScheduleExistsOptions !== null && jobScheduleExistsOptions !== undefined) - { + if (jobScheduleExistsOptions !== null && jobScheduleExistsOptions !== undefined) { returnClientRequestId = jobScheduleExistsOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (jobScheduleExistsOptions !== null && jobScheduleExistsOptions !== undefined) - { + if (jobScheduleExistsOptions !== null && jobScheduleExistsOptions !== undefined) { ocpDate = jobScheduleExistsOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (jobScheduleExistsOptions !== null && jobScheduleExistsOptions !== undefined) - { + if (jobScheduleExistsOptions !== null && jobScheduleExistsOptions !== undefined) { ifMatch = jobScheduleExistsOptions.ifMatch; if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { throw new Error('ifMatch must be of type string.'); } } - if (jobScheduleExistsOptions !== null && jobScheduleExistsOptions !== undefined) - { + if (jobScheduleExistsOptions !== null && jobScheduleExistsOptions !== undefined) { ifNoneMatch = jobScheduleExistsOptions.ifNoneMatch; if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') { throw new Error('ifNoneMatch must be of type string.'); } } - if (jobScheduleExistsOptions !== null && jobScheduleExistsOptions !== undefined) - { + if (jobScheduleExistsOptions !== null && jobScheduleExistsOptions !== undefined) { ifModifiedSince = jobScheduleExistsOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (jobScheduleExistsOptions !== null && jobScheduleExistsOptions !== undefined) - { + if (jobScheduleExistsOptions !== null && jobScheduleExistsOptions !== undefined) { ifUnmodifiedSince = jobScheduleExistsOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -379,59 +371,51 @@ function _deleteMethod(jobScheduleId, options, callback) { let ifModifiedSince; let ifUnmodifiedSince; try { - if (jobScheduleDeleteMethodOptions !== null && jobScheduleDeleteMethodOptions !== undefined) - { + if (jobScheduleDeleteMethodOptions !== null && jobScheduleDeleteMethodOptions !== undefined) { timeout = jobScheduleDeleteMethodOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (jobScheduleDeleteMethodOptions !== null && jobScheduleDeleteMethodOptions !== undefined) - { + if (jobScheduleDeleteMethodOptions !== null && jobScheduleDeleteMethodOptions !== undefined) { clientRequestId = jobScheduleDeleteMethodOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (jobScheduleDeleteMethodOptions !== null && jobScheduleDeleteMethodOptions !== undefined) - { + if (jobScheduleDeleteMethodOptions !== null && jobScheduleDeleteMethodOptions !== undefined) { returnClientRequestId = jobScheduleDeleteMethodOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (jobScheduleDeleteMethodOptions !== null && jobScheduleDeleteMethodOptions !== undefined) - { + if (jobScheduleDeleteMethodOptions !== null && jobScheduleDeleteMethodOptions !== undefined) { ocpDate = jobScheduleDeleteMethodOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (jobScheduleDeleteMethodOptions !== null && jobScheduleDeleteMethodOptions !== undefined) - { + if (jobScheduleDeleteMethodOptions !== null && jobScheduleDeleteMethodOptions !== undefined) { ifMatch = jobScheduleDeleteMethodOptions.ifMatch; if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { throw new Error('ifMatch must be of type string.'); } } - if (jobScheduleDeleteMethodOptions !== null && jobScheduleDeleteMethodOptions !== undefined) - { + if (jobScheduleDeleteMethodOptions !== null && jobScheduleDeleteMethodOptions !== undefined) { ifNoneMatch = jobScheduleDeleteMethodOptions.ifNoneMatch; if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') { throw new Error('ifNoneMatch must be of type string.'); } } - if (jobScheduleDeleteMethodOptions !== null && jobScheduleDeleteMethodOptions !== undefined) - { + if (jobScheduleDeleteMethodOptions !== null && jobScheduleDeleteMethodOptions !== undefined) { ifModifiedSince = jobScheduleDeleteMethodOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (jobScheduleDeleteMethodOptions !== null && jobScheduleDeleteMethodOptions !== undefined) - { + if (jobScheduleDeleteMethodOptions !== null && jobScheduleDeleteMethodOptions !== undefined) { ifUnmodifiedSince = jobScheduleDeleteMethodOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -644,73 +628,63 @@ function _get(jobScheduleId, options, callback) { let ifModifiedSince; let ifUnmodifiedSince; try { - if (jobScheduleGetOptions !== null && jobScheduleGetOptions !== undefined) - { + if (jobScheduleGetOptions !== null && jobScheduleGetOptions !== undefined) { select = jobScheduleGetOptions.select; if (select !== null && select !== undefined && typeof select.valueOf() !== 'string') { throw new Error('select must be of type string.'); } } - if (jobScheduleGetOptions !== null && jobScheduleGetOptions !== undefined) - { + if (jobScheduleGetOptions !== null && jobScheduleGetOptions !== undefined) { expand = jobScheduleGetOptions.expand; if (expand !== null && expand !== undefined && typeof expand.valueOf() !== 'string') { throw new Error('expand must be of type string.'); } } - if (jobScheduleGetOptions !== null && jobScheduleGetOptions !== undefined) - { + if (jobScheduleGetOptions !== null && jobScheduleGetOptions !== undefined) { timeout = jobScheduleGetOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (jobScheduleGetOptions !== null && jobScheduleGetOptions !== undefined) - { + if (jobScheduleGetOptions !== null && jobScheduleGetOptions !== undefined) { clientRequestId = jobScheduleGetOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (jobScheduleGetOptions !== null && jobScheduleGetOptions !== undefined) - { + if (jobScheduleGetOptions !== null && jobScheduleGetOptions !== undefined) { returnClientRequestId = jobScheduleGetOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (jobScheduleGetOptions !== null && jobScheduleGetOptions !== undefined) - { + if (jobScheduleGetOptions !== null && jobScheduleGetOptions !== undefined) { ocpDate = jobScheduleGetOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (jobScheduleGetOptions !== null && jobScheduleGetOptions !== undefined) - { + if (jobScheduleGetOptions !== null && jobScheduleGetOptions !== undefined) { ifMatch = jobScheduleGetOptions.ifMatch; if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { throw new Error('ifMatch must be of type string.'); } } - if (jobScheduleGetOptions !== null && jobScheduleGetOptions !== undefined) - { + if (jobScheduleGetOptions !== null && jobScheduleGetOptions !== undefined) { ifNoneMatch = jobScheduleGetOptions.ifNoneMatch; if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') { throw new Error('ifNoneMatch must be of type string.'); } } - if (jobScheduleGetOptions !== null && jobScheduleGetOptions !== undefined) - { + if (jobScheduleGetOptions !== null && jobScheduleGetOptions !== undefined) { ifModifiedSince = jobScheduleGetOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (jobScheduleGetOptions !== null && jobScheduleGetOptions !== undefined) - { + if (jobScheduleGetOptions !== null && jobScheduleGetOptions !== undefined) { ifUnmodifiedSince = jobScheduleGetOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -1473,7 +1447,7 @@ function _get(jobScheduleId, options, callback) { * * @param {array} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be @@ -1887,59 +1861,51 @@ function _patch(jobScheduleId, jobSchedulePatchParameter, options, callback) { let ifModifiedSince; let ifUnmodifiedSince; try { - if (jobSchedulePatchOptions !== null && jobSchedulePatchOptions !== undefined) - { + if (jobSchedulePatchOptions !== null && jobSchedulePatchOptions !== undefined) { timeout = jobSchedulePatchOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (jobSchedulePatchOptions !== null && jobSchedulePatchOptions !== undefined) - { + if (jobSchedulePatchOptions !== null && jobSchedulePatchOptions !== undefined) { clientRequestId = jobSchedulePatchOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (jobSchedulePatchOptions !== null && jobSchedulePatchOptions !== undefined) - { + if (jobSchedulePatchOptions !== null && jobSchedulePatchOptions !== undefined) { returnClientRequestId = jobSchedulePatchOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (jobSchedulePatchOptions !== null && jobSchedulePatchOptions !== undefined) - { + if (jobSchedulePatchOptions !== null && jobSchedulePatchOptions !== undefined) { ocpDate = jobSchedulePatchOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (jobSchedulePatchOptions !== null && jobSchedulePatchOptions !== undefined) - { + if (jobSchedulePatchOptions !== null && jobSchedulePatchOptions !== undefined) { ifMatch = jobSchedulePatchOptions.ifMatch; if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { throw new Error('ifMatch must be of type string.'); } } - if (jobSchedulePatchOptions !== null && jobSchedulePatchOptions !== undefined) - { + if (jobSchedulePatchOptions !== null && jobSchedulePatchOptions !== undefined) { ifNoneMatch = jobSchedulePatchOptions.ifNoneMatch; if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') { throw new Error('ifNoneMatch must be of type string.'); } } - if (jobSchedulePatchOptions !== null && jobSchedulePatchOptions !== undefined) - { + if (jobSchedulePatchOptions !== null && jobSchedulePatchOptions !== undefined) { ifModifiedSince = jobSchedulePatchOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (jobSchedulePatchOptions !== null && jobSchedulePatchOptions !== undefined) - { + if (jobSchedulePatchOptions !== null && jobSchedulePatchOptions !== undefined) { ifUnmodifiedSince = jobSchedulePatchOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -2697,7 +2663,7 @@ function _patch(jobScheduleId, jobSchedulePatchParameter, options, callback) { * * @param {array} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be @@ -3113,59 +3079,51 @@ function _update(jobScheduleId, jobScheduleUpdateParameter, options, callback) { let ifModifiedSince; let ifUnmodifiedSince; try { - if (jobScheduleUpdateOptions !== null && jobScheduleUpdateOptions !== undefined) - { + if (jobScheduleUpdateOptions !== null && jobScheduleUpdateOptions !== undefined) { timeout = jobScheduleUpdateOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (jobScheduleUpdateOptions !== null && jobScheduleUpdateOptions !== undefined) - { + if (jobScheduleUpdateOptions !== null && jobScheduleUpdateOptions !== undefined) { clientRequestId = jobScheduleUpdateOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (jobScheduleUpdateOptions !== null && jobScheduleUpdateOptions !== undefined) - { + if (jobScheduleUpdateOptions !== null && jobScheduleUpdateOptions !== undefined) { returnClientRequestId = jobScheduleUpdateOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (jobScheduleUpdateOptions !== null && jobScheduleUpdateOptions !== undefined) - { + if (jobScheduleUpdateOptions !== null && jobScheduleUpdateOptions !== undefined) { ocpDate = jobScheduleUpdateOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (jobScheduleUpdateOptions !== null && jobScheduleUpdateOptions !== undefined) - { + if (jobScheduleUpdateOptions !== null && jobScheduleUpdateOptions !== undefined) { ifMatch = jobScheduleUpdateOptions.ifMatch; if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { throw new Error('ifMatch must be of type string.'); } } - if (jobScheduleUpdateOptions !== null && jobScheduleUpdateOptions !== undefined) - { + if (jobScheduleUpdateOptions !== null && jobScheduleUpdateOptions !== undefined) { ifNoneMatch = jobScheduleUpdateOptions.ifNoneMatch; if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') { throw new Error('ifNoneMatch must be of type string.'); } } - if (jobScheduleUpdateOptions !== null && jobScheduleUpdateOptions !== undefined) - { + if (jobScheduleUpdateOptions !== null && jobScheduleUpdateOptions !== undefined) { ifModifiedSince = jobScheduleUpdateOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (jobScheduleUpdateOptions !== null && jobScheduleUpdateOptions !== undefined) - { + if (jobScheduleUpdateOptions !== null && jobScheduleUpdateOptions !== undefined) { ifUnmodifiedSince = jobScheduleUpdateOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -3386,59 +3344,51 @@ function _disable(jobScheduleId, options, callback) { let ifModifiedSince; let ifUnmodifiedSince; try { - if (jobScheduleDisableOptions !== null && jobScheduleDisableOptions !== undefined) - { + if (jobScheduleDisableOptions !== null && jobScheduleDisableOptions !== undefined) { timeout = jobScheduleDisableOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (jobScheduleDisableOptions !== null && jobScheduleDisableOptions !== undefined) - { + if (jobScheduleDisableOptions !== null && jobScheduleDisableOptions !== undefined) { clientRequestId = jobScheduleDisableOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (jobScheduleDisableOptions !== null && jobScheduleDisableOptions !== undefined) - { + if (jobScheduleDisableOptions !== null && jobScheduleDisableOptions !== undefined) { returnClientRequestId = jobScheduleDisableOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (jobScheduleDisableOptions !== null && jobScheduleDisableOptions !== undefined) - { + if (jobScheduleDisableOptions !== null && jobScheduleDisableOptions !== undefined) { ocpDate = jobScheduleDisableOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (jobScheduleDisableOptions !== null && jobScheduleDisableOptions !== undefined) - { + if (jobScheduleDisableOptions !== null && jobScheduleDisableOptions !== undefined) { ifMatch = jobScheduleDisableOptions.ifMatch; if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { throw new Error('ifMatch must be of type string.'); } } - if (jobScheduleDisableOptions !== null && jobScheduleDisableOptions !== undefined) - { + if (jobScheduleDisableOptions !== null && jobScheduleDisableOptions !== undefined) { ifNoneMatch = jobScheduleDisableOptions.ifNoneMatch; if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') { throw new Error('ifNoneMatch must be of type string.'); } } - if (jobScheduleDisableOptions !== null && jobScheduleDisableOptions !== undefined) - { + if (jobScheduleDisableOptions !== null && jobScheduleDisableOptions !== undefined) { ifModifiedSince = jobScheduleDisableOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (jobScheduleDisableOptions !== null && jobScheduleDisableOptions !== undefined) - { + if (jobScheduleDisableOptions !== null && jobScheduleDisableOptions !== undefined) { ifUnmodifiedSince = jobScheduleDisableOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -3643,59 +3593,51 @@ function _enable(jobScheduleId, options, callback) { let ifModifiedSince; let ifUnmodifiedSince; try { - if (jobScheduleEnableOptions !== null && jobScheduleEnableOptions !== undefined) - { + if (jobScheduleEnableOptions !== null && jobScheduleEnableOptions !== undefined) { timeout = jobScheduleEnableOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (jobScheduleEnableOptions !== null && jobScheduleEnableOptions !== undefined) - { + if (jobScheduleEnableOptions !== null && jobScheduleEnableOptions !== undefined) { clientRequestId = jobScheduleEnableOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (jobScheduleEnableOptions !== null && jobScheduleEnableOptions !== undefined) - { + if (jobScheduleEnableOptions !== null && jobScheduleEnableOptions !== undefined) { returnClientRequestId = jobScheduleEnableOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (jobScheduleEnableOptions !== null && jobScheduleEnableOptions !== undefined) - { + if (jobScheduleEnableOptions !== null && jobScheduleEnableOptions !== undefined) { ocpDate = jobScheduleEnableOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (jobScheduleEnableOptions !== null && jobScheduleEnableOptions !== undefined) - { + if (jobScheduleEnableOptions !== null && jobScheduleEnableOptions !== undefined) { ifMatch = jobScheduleEnableOptions.ifMatch; if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { throw new Error('ifMatch must be of type string.'); } } - if (jobScheduleEnableOptions !== null && jobScheduleEnableOptions !== undefined) - { + if (jobScheduleEnableOptions !== null && jobScheduleEnableOptions !== undefined) { ifNoneMatch = jobScheduleEnableOptions.ifNoneMatch; if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') { throw new Error('ifNoneMatch must be of type string.'); } } - if (jobScheduleEnableOptions !== null && jobScheduleEnableOptions !== undefined) - { + if (jobScheduleEnableOptions !== null && jobScheduleEnableOptions !== undefined) { ifModifiedSince = jobScheduleEnableOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (jobScheduleEnableOptions !== null && jobScheduleEnableOptions !== undefined) - { + if (jobScheduleEnableOptions !== null && jobScheduleEnableOptions !== undefined) { ifUnmodifiedSince = jobScheduleEnableOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -3900,59 +3842,51 @@ function _terminate(jobScheduleId, options, callback) { let ifModifiedSince; let ifUnmodifiedSince; try { - if (jobScheduleTerminateOptions !== null && jobScheduleTerminateOptions !== undefined) - { + if (jobScheduleTerminateOptions !== null && jobScheduleTerminateOptions !== undefined) { timeout = jobScheduleTerminateOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (jobScheduleTerminateOptions !== null && jobScheduleTerminateOptions !== undefined) - { + if (jobScheduleTerminateOptions !== null && jobScheduleTerminateOptions !== undefined) { clientRequestId = jobScheduleTerminateOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (jobScheduleTerminateOptions !== null && jobScheduleTerminateOptions !== undefined) - { + if (jobScheduleTerminateOptions !== null && jobScheduleTerminateOptions !== undefined) { returnClientRequestId = jobScheduleTerminateOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (jobScheduleTerminateOptions !== null && jobScheduleTerminateOptions !== undefined) - { + if (jobScheduleTerminateOptions !== null && jobScheduleTerminateOptions !== undefined) { ocpDate = jobScheduleTerminateOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (jobScheduleTerminateOptions !== null && jobScheduleTerminateOptions !== undefined) - { + if (jobScheduleTerminateOptions !== null && jobScheduleTerminateOptions !== undefined) { ifMatch = jobScheduleTerminateOptions.ifMatch; if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { throw new Error('ifMatch must be of type string.'); } } - if (jobScheduleTerminateOptions !== null && jobScheduleTerminateOptions !== undefined) - { + if (jobScheduleTerminateOptions !== null && jobScheduleTerminateOptions !== undefined) { ifNoneMatch = jobScheduleTerminateOptions.ifNoneMatch; if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') { throw new Error('ifNoneMatch must be of type string.'); } } - if (jobScheduleTerminateOptions !== null && jobScheduleTerminateOptions !== undefined) - { + if (jobScheduleTerminateOptions !== null && jobScheduleTerminateOptions !== undefined) { ifModifiedSince = jobScheduleTerminateOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (jobScheduleTerminateOptions !== null && jobScheduleTerminateOptions !== undefined) - { + if (jobScheduleTerminateOptions !== null && jobScheduleTerminateOptions !== undefined) { ifUnmodifiedSince = jobScheduleTerminateOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -4677,7 +4611,7 @@ function _terminate(jobScheduleId, options, callback) { * * @param {array} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be @@ -5064,29 +4998,25 @@ function _add(cloudJobSchedule, options, callback) { let returnClientRequestId; let ocpDate; try { - if (jobScheduleAddOptions !== null && jobScheduleAddOptions !== undefined) - { + if (jobScheduleAddOptions !== null && jobScheduleAddOptions !== undefined) { timeout = jobScheduleAddOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (jobScheduleAddOptions !== null && jobScheduleAddOptions !== undefined) - { + if (jobScheduleAddOptions !== null && jobScheduleAddOptions !== undefined) { clientRequestId = jobScheduleAddOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (jobScheduleAddOptions !== null && jobScheduleAddOptions !== undefined) - { + if (jobScheduleAddOptions !== null && jobScheduleAddOptions !== undefined) { returnClientRequestId = jobScheduleAddOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (jobScheduleAddOptions !== null && jobScheduleAddOptions !== undefined) - { + if (jobScheduleAddOptions !== null && jobScheduleAddOptions !== undefined) { ocpDate = jobScheduleAddOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -5282,57 +5212,49 @@ function _list(options, callback) { let returnClientRequestId; let ocpDate; try { - if (jobScheduleListOptions !== null && jobScheduleListOptions !== undefined) - { + if (jobScheduleListOptions !== null && jobScheduleListOptions !== undefined) { filter = jobScheduleListOptions.filter; if (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') { throw new Error('filter must be of type string.'); } } - if (jobScheduleListOptions !== null && jobScheduleListOptions !== undefined) - { + if (jobScheduleListOptions !== null && jobScheduleListOptions !== undefined) { select = jobScheduleListOptions.select; if (select !== null && select !== undefined && typeof select.valueOf() !== 'string') { throw new Error('select must be of type string.'); } } - if (jobScheduleListOptions !== null && jobScheduleListOptions !== undefined) - { + if (jobScheduleListOptions !== null && jobScheduleListOptions !== undefined) { expand = jobScheduleListOptions.expand; if (expand !== null && expand !== undefined && typeof expand.valueOf() !== 'string') { throw new Error('expand must be of type string.'); } } - if (jobScheduleListOptions !== null && jobScheduleListOptions !== undefined) - { + if (jobScheduleListOptions !== null && jobScheduleListOptions !== undefined) { maxResults = jobScheduleListOptions.maxResults; if (maxResults !== null && maxResults !== undefined && typeof maxResults !== 'number') { throw new Error('maxResults must be of type number.'); } } - if (jobScheduleListOptions !== null && jobScheduleListOptions !== undefined) - { + if (jobScheduleListOptions !== null && jobScheduleListOptions !== undefined) { timeout = jobScheduleListOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (jobScheduleListOptions !== null && jobScheduleListOptions !== undefined) - { + if (jobScheduleListOptions !== null && jobScheduleListOptions !== undefined) { clientRequestId = jobScheduleListOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (jobScheduleListOptions !== null && jobScheduleListOptions !== undefined) - { + if (jobScheduleListOptions !== null && jobScheduleListOptions !== undefined) { returnClientRequestId = jobScheduleListOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (jobScheduleListOptions !== null && jobScheduleListOptions !== undefined) - { + if (jobScheduleListOptions !== null && jobScheduleListOptions !== undefined) { ocpDate = jobScheduleListOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -5521,22 +5443,19 @@ function _listNext(nextPageLink, options, callback) { let returnClientRequestId; let ocpDate; try { - if (jobScheduleListNextOptions !== null && jobScheduleListNextOptions !== undefined) - { + if (jobScheduleListNextOptions !== null && jobScheduleListNextOptions !== undefined) { clientRequestId = jobScheduleListNextOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (jobScheduleListNextOptions !== null && jobScheduleListNextOptions !== undefined) - { + if (jobScheduleListNextOptions !== null && jobScheduleListNextOptions !== undefined) { returnClientRequestId = jobScheduleListNextOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (jobScheduleListNextOptions !== null && jobScheduleListNextOptions !== undefined) - { + if (jobScheduleListNextOptions !== null && jobScheduleListNextOptions !== undefined) { ocpDate = jobScheduleListNextOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -6798,7 +6717,7 @@ class JobSchedule { * * @param {array} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be @@ -7809,7 +7728,7 @@ class JobSchedule { * * @param {array} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be @@ -8845,7 +8764,7 @@ class JobSchedule { * * @param {array} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be @@ -9862,7 +9781,7 @@ class JobSchedule { * * @param {array} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be @@ -11362,7 +11281,7 @@ class JobSchedule { * * @param {array} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be @@ -12338,7 +12257,7 @@ class JobSchedule { * * @param {array} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] - * The configuration for data disks attached to the comptue nodes in the pool. + * The configuration for data disks attached to the compute nodes in the pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. This cannot be updated. Each node * gets its own disk (the disk is not a file share). Existing disks cannot be diff --git a/lib/services/batch/lib/operations/pool.js b/lib/services/batch/lib/operations/pool.js index a1dbcac4c8..ec40268667 100644 --- a/lib/services/batch/lib/operations/pool.js +++ b/lib/services/batch/lib/operations/pool.js @@ -116,59 +116,51 @@ function _listUsageMetrics(options, callback) { let returnClientRequestId; let ocpDate; try { - if (poolListUsageMetricsOptions !== null && poolListUsageMetricsOptions !== undefined) - { + if (poolListUsageMetricsOptions !== null && poolListUsageMetricsOptions !== undefined) { startTime = poolListUsageMetricsOptions.startTime; if (startTime && !(startTime instanceof Date || (typeof startTime.valueOf() === 'string' && !isNaN(Date.parse(startTime))))) { throw new Error('startTime must be of type date.'); } } - if (poolListUsageMetricsOptions !== null && poolListUsageMetricsOptions !== undefined) - { + if (poolListUsageMetricsOptions !== null && poolListUsageMetricsOptions !== undefined) { endTime = poolListUsageMetricsOptions.endTime; if (endTime && !(endTime instanceof Date || (typeof endTime.valueOf() === 'string' && !isNaN(Date.parse(endTime))))) { throw new Error('endTime must be of type date.'); } } - if (poolListUsageMetricsOptions !== null && poolListUsageMetricsOptions !== undefined) - { + if (poolListUsageMetricsOptions !== null && poolListUsageMetricsOptions !== undefined) { filter = poolListUsageMetricsOptions.filter; if (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') { throw new Error('filter must be of type string.'); } } - if (poolListUsageMetricsOptions !== null && poolListUsageMetricsOptions !== undefined) - { + if (poolListUsageMetricsOptions !== null && poolListUsageMetricsOptions !== undefined) { maxResults = poolListUsageMetricsOptions.maxResults; if (maxResults !== null && maxResults !== undefined && typeof maxResults !== 'number') { throw new Error('maxResults must be of type number.'); } } - if (poolListUsageMetricsOptions !== null && poolListUsageMetricsOptions !== undefined) - { + if (poolListUsageMetricsOptions !== null && poolListUsageMetricsOptions !== undefined) { timeout = poolListUsageMetricsOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (poolListUsageMetricsOptions !== null && poolListUsageMetricsOptions !== undefined) - { + if (poolListUsageMetricsOptions !== null && poolListUsageMetricsOptions !== undefined) { clientRequestId = poolListUsageMetricsOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (poolListUsageMetricsOptions !== null && poolListUsageMetricsOptions !== undefined) - { + if (poolListUsageMetricsOptions !== null && poolListUsageMetricsOptions !== undefined) { returnClientRequestId = poolListUsageMetricsOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (poolListUsageMetricsOptions !== null && poolListUsageMetricsOptions !== undefined) - { + if (poolListUsageMetricsOptions !== null && poolListUsageMetricsOptions !== undefined) { ocpDate = poolListUsageMetricsOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -368,29 +360,25 @@ function _getAllLifetimeStatistics(options, callback) { let returnClientRequestId; let ocpDate; try { - if (poolGetAllLifetimeStatisticsOptions !== null && poolGetAllLifetimeStatisticsOptions !== undefined) - { + if (poolGetAllLifetimeStatisticsOptions !== null && poolGetAllLifetimeStatisticsOptions !== undefined) { timeout = poolGetAllLifetimeStatisticsOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (poolGetAllLifetimeStatisticsOptions !== null && poolGetAllLifetimeStatisticsOptions !== undefined) - { + if (poolGetAllLifetimeStatisticsOptions !== null && poolGetAllLifetimeStatisticsOptions !== undefined) { clientRequestId = poolGetAllLifetimeStatisticsOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (poolGetAllLifetimeStatisticsOptions !== null && poolGetAllLifetimeStatisticsOptions !== undefined) - { + if (poolGetAllLifetimeStatisticsOptions !== null && poolGetAllLifetimeStatisticsOptions !== undefined) { returnClientRequestId = poolGetAllLifetimeStatisticsOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (poolGetAllLifetimeStatisticsOptions !== null && poolGetAllLifetimeStatisticsOptions !== undefined) - { + if (poolGetAllLifetimeStatisticsOptions !== null && poolGetAllLifetimeStatisticsOptions !== undefined) { ocpDate = poolGetAllLifetimeStatisticsOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -611,7 +599,7 @@ function _getAllLifetimeStatistics(options, callback) { * the default value is true. * * @param {array} [pool.virtualMachineConfiguration.dataDisks] The - * configuration for data disks attached to the comptue nodes in the pool. This + * configuration for data disks attached to the compute nodes in the pool. This * property must be specified if the compute nodes in the pool need to have * empty data disks attached to them. This cannot be updated. Each node gets * its own disk (the disk is not a file share). Existing disks cannot be @@ -940,29 +928,25 @@ function _add(pool, options, callback) { let returnClientRequestId; let ocpDate; try { - if (poolAddOptions !== null && poolAddOptions !== undefined) - { + if (poolAddOptions !== null && poolAddOptions !== undefined) { timeout = poolAddOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (poolAddOptions !== null && poolAddOptions !== undefined) - { + if (poolAddOptions !== null && poolAddOptions !== undefined) { clientRequestId = poolAddOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (poolAddOptions !== null && poolAddOptions !== undefined) - { + if (poolAddOptions !== null && poolAddOptions !== undefined) { returnClientRequestId = poolAddOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (poolAddOptions !== null && poolAddOptions !== undefined) - { + if (poolAddOptions !== null && poolAddOptions !== undefined) { ocpDate = poolAddOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -1154,57 +1138,49 @@ function _list(options, callback) { let returnClientRequestId; let ocpDate; try { - if (poolListOptions !== null && poolListOptions !== undefined) - { + if (poolListOptions !== null && poolListOptions !== undefined) { filter = poolListOptions.filter; if (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') { throw new Error('filter must be of type string.'); } } - if (poolListOptions !== null && poolListOptions !== undefined) - { + if (poolListOptions !== null && poolListOptions !== undefined) { select = poolListOptions.select; if (select !== null && select !== undefined && typeof select.valueOf() !== 'string') { throw new Error('select must be of type string.'); } } - if (poolListOptions !== null && poolListOptions !== undefined) - { + if (poolListOptions !== null && poolListOptions !== undefined) { expand = poolListOptions.expand; if (expand !== null && expand !== undefined && typeof expand.valueOf() !== 'string') { throw new Error('expand must be of type string.'); } } - if (poolListOptions !== null && poolListOptions !== undefined) - { + if (poolListOptions !== null && poolListOptions !== undefined) { maxResults = poolListOptions.maxResults; if (maxResults !== null && maxResults !== undefined && typeof maxResults !== 'number') { throw new Error('maxResults must be of type number.'); } } - if (poolListOptions !== null && poolListOptions !== undefined) - { + if (poolListOptions !== null && poolListOptions !== undefined) { timeout = poolListOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (poolListOptions !== null && poolListOptions !== undefined) - { + if (poolListOptions !== null && poolListOptions !== undefined) { clientRequestId = poolListOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (poolListOptions !== null && poolListOptions !== undefined) - { + if (poolListOptions !== null && poolListOptions !== undefined) { returnClientRequestId = poolListOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (poolListOptions !== null && poolListOptions !== undefined) - { + if (poolListOptions !== null && poolListOptions !== undefined) { ocpDate = poolListOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -1437,59 +1413,51 @@ function _deleteMethod(poolId, options, callback) { let ifModifiedSince; let ifUnmodifiedSince; try { - if (poolDeleteMethodOptions !== null && poolDeleteMethodOptions !== undefined) - { + if (poolDeleteMethodOptions !== null && poolDeleteMethodOptions !== undefined) { timeout = poolDeleteMethodOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (poolDeleteMethodOptions !== null && poolDeleteMethodOptions !== undefined) - { + if (poolDeleteMethodOptions !== null && poolDeleteMethodOptions !== undefined) { clientRequestId = poolDeleteMethodOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (poolDeleteMethodOptions !== null && poolDeleteMethodOptions !== undefined) - { + if (poolDeleteMethodOptions !== null && poolDeleteMethodOptions !== undefined) { returnClientRequestId = poolDeleteMethodOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (poolDeleteMethodOptions !== null && poolDeleteMethodOptions !== undefined) - { + if (poolDeleteMethodOptions !== null && poolDeleteMethodOptions !== undefined) { ocpDate = poolDeleteMethodOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (poolDeleteMethodOptions !== null && poolDeleteMethodOptions !== undefined) - { + if (poolDeleteMethodOptions !== null && poolDeleteMethodOptions !== undefined) { ifMatch = poolDeleteMethodOptions.ifMatch; if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { throw new Error('ifMatch must be of type string.'); } } - if (poolDeleteMethodOptions !== null && poolDeleteMethodOptions !== undefined) - { + if (poolDeleteMethodOptions !== null && poolDeleteMethodOptions !== undefined) { ifNoneMatch = poolDeleteMethodOptions.ifNoneMatch; if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') { throw new Error('ifNoneMatch must be of type string.'); } } - if (poolDeleteMethodOptions !== null && poolDeleteMethodOptions !== undefined) - { + if (poolDeleteMethodOptions !== null && poolDeleteMethodOptions !== undefined) { ifModifiedSince = poolDeleteMethodOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (poolDeleteMethodOptions !== null && poolDeleteMethodOptions !== undefined) - { + if (poolDeleteMethodOptions !== null && poolDeleteMethodOptions !== undefined) { ifUnmodifiedSince = poolDeleteMethodOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -1693,59 +1661,51 @@ function _exists(poolId, options, callback) { let ifModifiedSince; let ifUnmodifiedSince; try { - if (poolExistsOptions !== null && poolExistsOptions !== undefined) - { + if (poolExistsOptions !== null && poolExistsOptions !== undefined) { timeout = poolExistsOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (poolExistsOptions !== null && poolExistsOptions !== undefined) - { + if (poolExistsOptions !== null && poolExistsOptions !== undefined) { clientRequestId = poolExistsOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (poolExistsOptions !== null && poolExistsOptions !== undefined) - { + if (poolExistsOptions !== null && poolExistsOptions !== undefined) { returnClientRequestId = poolExistsOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (poolExistsOptions !== null && poolExistsOptions !== undefined) - { + if (poolExistsOptions !== null && poolExistsOptions !== undefined) { ocpDate = poolExistsOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (poolExistsOptions !== null && poolExistsOptions !== undefined) - { + if (poolExistsOptions !== null && poolExistsOptions !== undefined) { ifMatch = poolExistsOptions.ifMatch; if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { throw new Error('ifMatch must be of type string.'); } } - if (poolExistsOptions !== null && poolExistsOptions !== undefined) - { + if (poolExistsOptions !== null && poolExistsOptions !== undefined) { ifNoneMatch = poolExistsOptions.ifNoneMatch; if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') { throw new Error('ifNoneMatch must be of type string.'); } } - if (poolExistsOptions !== null && poolExistsOptions !== undefined) - { + if (poolExistsOptions !== null && poolExistsOptions !== undefined) { ifModifiedSince = poolExistsOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (poolExistsOptions !== null && poolExistsOptions !== undefined) - { + if (poolExistsOptions !== null && poolExistsOptions !== undefined) { ifUnmodifiedSince = poolExistsOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -1957,73 +1917,63 @@ function _get(poolId, options, callback) { let ifModifiedSince; let ifUnmodifiedSince; try { - if (poolGetOptions !== null && poolGetOptions !== undefined) - { + if (poolGetOptions !== null && poolGetOptions !== undefined) { select = poolGetOptions.select; if (select !== null && select !== undefined && typeof select.valueOf() !== 'string') { throw new Error('select must be of type string.'); } } - if (poolGetOptions !== null && poolGetOptions !== undefined) - { + if (poolGetOptions !== null && poolGetOptions !== undefined) { expand = poolGetOptions.expand; if (expand !== null && expand !== undefined && typeof expand.valueOf() !== 'string') { throw new Error('expand must be of type string.'); } } - if (poolGetOptions !== null && poolGetOptions !== undefined) - { + if (poolGetOptions !== null && poolGetOptions !== undefined) { timeout = poolGetOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (poolGetOptions !== null && poolGetOptions !== undefined) - { + if (poolGetOptions !== null && poolGetOptions !== undefined) { clientRequestId = poolGetOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (poolGetOptions !== null && poolGetOptions !== undefined) - { + if (poolGetOptions !== null && poolGetOptions !== undefined) { returnClientRequestId = poolGetOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (poolGetOptions !== null && poolGetOptions !== undefined) - { + if (poolGetOptions !== null && poolGetOptions !== undefined) { ocpDate = poolGetOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (poolGetOptions !== null && poolGetOptions !== undefined) - { + if (poolGetOptions !== null && poolGetOptions !== undefined) { ifMatch = poolGetOptions.ifMatch; if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { throw new Error('ifMatch must be of type string.'); } } - if (poolGetOptions !== null && poolGetOptions !== undefined) - { + if (poolGetOptions !== null && poolGetOptions !== undefined) { ifNoneMatch = poolGetOptions.ifNoneMatch; if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') { throw new Error('ifNoneMatch must be of type string.'); } } - if (poolGetOptions !== null && poolGetOptions !== undefined) - { + if (poolGetOptions !== null && poolGetOptions !== undefined) { ifModifiedSince = poolGetOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (poolGetOptions !== null && poolGetOptions !== undefined) - { + if (poolGetOptions !== null && poolGetOptions !== undefined) { ifUnmodifiedSince = poolGetOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -2394,59 +2344,51 @@ function _patch(poolId, poolPatchParameter, options, callback) { let ifModifiedSince; let ifUnmodifiedSince; try { - if (poolPatchOptions !== null && poolPatchOptions !== undefined) - { + if (poolPatchOptions !== null && poolPatchOptions !== undefined) { timeout = poolPatchOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (poolPatchOptions !== null && poolPatchOptions !== undefined) - { + if (poolPatchOptions !== null && poolPatchOptions !== undefined) { clientRequestId = poolPatchOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (poolPatchOptions !== null && poolPatchOptions !== undefined) - { + if (poolPatchOptions !== null && poolPatchOptions !== undefined) { returnClientRequestId = poolPatchOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (poolPatchOptions !== null && poolPatchOptions !== undefined) - { + if (poolPatchOptions !== null && poolPatchOptions !== undefined) { ocpDate = poolPatchOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (poolPatchOptions !== null && poolPatchOptions !== undefined) - { + if (poolPatchOptions !== null && poolPatchOptions !== undefined) { ifMatch = poolPatchOptions.ifMatch; if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { throw new Error('ifMatch must be of type string.'); } } - if (poolPatchOptions !== null && poolPatchOptions !== undefined) - { + if (poolPatchOptions !== null && poolPatchOptions !== undefined) { ifNoneMatch = poolPatchOptions.ifNoneMatch; if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') { throw new Error('ifNoneMatch must be of type string.'); } } - if (poolPatchOptions !== null && poolPatchOptions !== undefined) - { + if (poolPatchOptions !== null && poolPatchOptions !== undefined) { ifModifiedSince = poolPatchOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (poolPatchOptions !== null && poolPatchOptions !== undefined) - { + if (poolPatchOptions !== null && poolPatchOptions !== undefined) { ifUnmodifiedSince = poolPatchOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -2642,29 +2584,25 @@ function _disableAutoScale(poolId, options, callback) { let returnClientRequestId; let ocpDate; try { - if (poolDisableAutoScaleOptions !== null && poolDisableAutoScaleOptions !== undefined) - { + if (poolDisableAutoScaleOptions !== null && poolDisableAutoScaleOptions !== undefined) { timeout = poolDisableAutoScaleOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (poolDisableAutoScaleOptions !== null && poolDisableAutoScaleOptions !== undefined) - { + if (poolDisableAutoScaleOptions !== null && poolDisableAutoScaleOptions !== undefined) { clientRequestId = poolDisableAutoScaleOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (poolDisableAutoScaleOptions !== null && poolDisableAutoScaleOptions !== undefined) - { + if (poolDisableAutoScaleOptions !== null && poolDisableAutoScaleOptions !== undefined) { returnClientRequestId = poolDisableAutoScaleOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (poolDisableAutoScaleOptions !== null && poolDisableAutoScaleOptions !== undefined) - { + if (poolDisableAutoScaleOptions !== null && poolDisableAutoScaleOptions !== undefined) { ocpDate = poolDisableAutoScaleOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -2890,59 +2828,51 @@ function _enableAutoScale(poolId, poolEnableAutoScaleParameter, options, callbac let ifModifiedSince; let ifUnmodifiedSince; try { - if (poolEnableAutoScaleOptions !== null && poolEnableAutoScaleOptions !== undefined) - { + if (poolEnableAutoScaleOptions !== null && poolEnableAutoScaleOptions !== undefined) { timeout = poolEnableAutoScaleOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (poolEnableAutoScaleOptions !== null && poolEnableAutoScaleOptions !== undefined) - { + if (poolEnableAutoScaleOptions !== null && poolEnableAutoScaleOptions !== undefined) { clientRequestId = poolEnableAutoScaleOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (poolEnableAutoScaleOptions !== null && poolEnableAutoScaleOptions !== undefined) - { + if (poolEnableAutoScaleOptions !== null && poolEnableAutoScaleOptions !== undefined) { returnClientRequestId = poolEnableAutoScaleOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (poolEnableAutoScaleOptions !== null && poolEnableAutoScaleOptions !== undefined) - { + if (poolEnableAutoScaleOptions !== null && poolEnableAutoScaleOptions !== undefined) { ocpDate = poolEnableAutoScaleOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (poolEnableAutoScaleOptions !== null && poolEnableAutoScaleOptions !== undefined) - { + if (poolEnableAutoScaleOptions !== null && poolEnableAutoScaleOptions !== undefined) { ifMatch = poolEnableAutoScaleOptions.ifMatch; if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { throw new Error('ifMatch must be of type string.'); } } - if (poolEnableAutoScaleOptions !== null && poolEnableAutoScaleOptions !== undefined) - { + if (poolEnableAutoScaleOptions !== null && poolEnableAutoScaleOptions !== undefined) { ifNoneMatch = poolEnableAutoScaleOptions.ifNoneMatch; if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') { throw new Error('ifNoneMatch must be of type string.'); } } - if (poolEnableAutoScaleOptions !== null && poolEnableAutoScaleOptions !== undefined) - { + if (poolEnableAutoScaleOptions !== null && poolEnableAutoScaleOptions !== undefined) { ifModifiedSince = poolEnableAutoScaleOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (poolEnableAutoScaleOptions !== null && poolEnableAutoScaleOptions !== undefined) - { + if (poolEnableAutoScaleOptions !== null && poolEnableAutoScaleOptions !== undefined) { ifUnmodifiedSince = poolEnableAutoScaleOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -3157,37 +3087,32 @@ function _evaluateAutoScale(poolId, autoScaleFormula, options, callback) { let ocpDate; let poolEvaluateAutoScaleParameter = new client.models['PoolEvaluateAutoScaleParameter'](); try { - if (poolEvaluateAutoScaleOptions !== null && poolEvaluateAutoScaleOptions !== undefined) - { + if (poolEvaluateAutoScaleOptions !== null && poolEvaluateAutoScaleOptions !== undefined) { timeout = poolEvaluateAutoScaleOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (poolEvaluateAutoScaleOptions !== null && poolEvaluateAutoScaleOptions !== undefined) - { + if (poolEvaluateAutoScaleOptions !== null && poolEvaluateAutoScaleOptions !== undefined) { clientRequestId = poolEvaluateAutoScaleOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (poolEvaluateAutoScaleOptions !== null && poolEvaluateAutoScaleOptions !== undefined) - { + if (poolEvaluateAutoScaleOptions !== null && poolEvaluateAutoScaleOptions !== undefined) { returnClientRequestId = poolEvaluateAutoScaleOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (poolEvaluateAutoScaleOptions !== null && poolEvaluateAutoScaleOptions !== undefined) - { + if (poolEvaluateAutoScaleOptions !== null && poolEvaluateAutoScaleOptions !== undefined) { ocpDate = poolEvaluateAutoScaleOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (autoScaleFormula !== null && autoScaleFormula !== undefined) - { + if (autoScaleFormula !== null && autoScaleFormula !== undefined) { poolEvaluateAutoScaleParameter.autoScaleFormula = autoScaleFormula; } } catch (error) { @@ -3437,59 +3362,51 @@ function _resize(poolId, poolResizeParameter, options, callback) { let ifModifiedSince; let ifUnmodifiedSince; try { - if (poolResizeOptions !== null && poolResizeOptions !== undefined) - { + if (poolResizeOptions !== null && poolResizeOptions !== undefined) { timeout = poolResizeOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (poolResizeOptions !== null && poolResizeOptions !== undefined) - { + if (poolResizeOptions !== null && poolResizeOptions !== undefined) { clientRequestId = poolResizeOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (poolResizeOptions !== null && poolResizeOptions !== undefined) - { + if (poolResizeOptions !== null && poolResizeOptions !== undefined) { returnClientRequestId = poolResizeOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (poolResizeOptions !== null && poolResizeOptions !== undefined) - { + if (poolResizeOptions !== null && poolResizeOptions !== undefined) { ocpDate = poolResizeOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (poolResizeOptions !== null && poolResizeOptions !== undefined) - { + if (poolResizeOptions !== null && poolResizeOptions !== undefined) { ifMatch = poolResizeOptions.ifMatch; if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { throw new Error('ifMatch must be of type string.'); } } - if (poolResizeOptions !== null && poolResizeOptions !== undefined) - { + if (poolResizeOptions !== null && poolResizeOptions !== undefined) { ifNoneMatch = poolResizeOptions.ifNoneMatch; if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') { throw new Error('ifNoneMatch must be of type string.'); } } - if (poolResizeOptions !== null && poolResizeOptions !== undefined) - { + if (poolResizeOptions !== null && poolResizeOptions !== undefined) { ifModifiedSince = poolResizeOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (poolResizeOptions !== null && poolResizeOptions !== undefined) - { + if (poolResizeOptions !== null && poolResizeOptions !== undefined) { ifUnmodifiedSince = poolResizeOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -3716,59 +3633,51 @@ function _stopResize(poolId, options, callback) { let ifModifiedSince; let ifUnmodifiedSince; try { - if (poolStopResizeOptions !== null && poolStopResizeOptions !== undefined) - { + if (poolStopResizeOptions !== null && poolStopResizeOptions !== undefined) { timeout = poolStopResizeOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (poolStopResizeOptions !== null && poolStopResizeOptions !== undefined) - { + if (poolStopResizeOptions !== null && poolStopResizeOptions !== undefined) { clientRequestId = poolStopResizeOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (poolStopResizeOptions !== null && poolStopResizeOptions !== undefined) - { + if (poolStopResizeOptions !== null && poolStopResizeOptions !== undefined) { returnClientRequestId = poolStopResizeOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (poolStopResizeOptions !== null && poolStopResizeOptions !== undefined) - { + if (poolStopResizeOptions !== null && poolStopResizeOptions !== undefined) { ocpDate = poolStopResizeOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (poolStopResizeOptions !== null && poolStopResizeOptions !== undefined) - { + if (poolStopResizeOptions !== null && poolStopResizeOptions !== undefined) { ifMatch = poolStopResizeOptions.ifMatch; if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { throw new Error('ifMatch must be of type string.'); } } - if (poolStopResizeOptions !== null && poolStopResizeOptions !== undefined) - { + if (poolStopResizeOptions !== null && poolStopResizeOptions !== undefined) { ifNoneMatch = poolStopResizeOptions.ifNoneMatch; if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') { throw new Error('ifNoneMatch must be of type string.'); } } - if (poolStopResizeOptions !== null && poolStopResizeOptions !== undefined) - { + if (poolStopResizeOptions !== null && poolStopResizeOptions !== undefined) { ifModifiedSince = poolStopResizeOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (poolStopResizeOptions !== null && poolStopResizeOptions !== undefined) - { + if (poolStopResizeOptions !== null && poolStopResizeOptions !== undefined) { ifUnmodifiedSince = poolStopResizeOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -4099,29 +4008,25 @@ function _updateProperties(poolId, poolUpdatePropertiesParameter, options, callb let returnClientRequestId; let ocpDate; try { - if (poolUpdatePropertiesOptions !== null && poolUpdatePropertiesOptions !== undefined) - { + if (poolUpdatePropertiesOptions !== null && poolUpdatePropertiesOptions !== undefined) { timeout = poolUpdatePropertiesOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (poolUpdatePropertiesOptions !== null && poolUpdatePropertiesOptions !== undefined) - { + if (poolUpdatePropertiesOptions !== null && poolUpdatePropertiesOptions !== undefined) { clientRequestId = poolUpdatePropertiesOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (poolUpdatePropertiesOptions !== null && poolUpdatePropertiesOptions !== undefined) - { + if (poolUpdatePropertiesOptions !== null && poolUpdatePropertiesOptions !== undefined) { returnClientRequestId = poolUpdatePropertiesOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (poolUpdatePropertiesOptions !== null && poolUpdatePropertiesOptions !== undefined) - { + if (poolUpdatePropertiesOptions !== null && poolUpdatePropertiesOptions !== undefined) { ocpDate = poolUpdatePropertiesOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -4351,59 +4256,51 @@ function _removeNodes(poolId, nodeRemoveParameter, options, callback) { let ifModifiedSince; let ifUnmodifiedSince; try { - if (poolRemoveNodesOptions !== null && poolRemoveNodesOptions !== undefined) - { + if (poolRemoveNodesOptions !== null && poolRemoveNodesOptions !== undefined) { timeout = poolRemoveNodesOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (poolRemoveNodesOptions !== null && poolRemoveNodesOptions !== undefined) - { + if (poolRemoveNodesOptions !== null && poolRemoveNodesOptions !== undefined) { clientRequestId = poolRemoveNodesOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (poolRemoveNodesOptions !== null && poolRemoveNodesOptions !== undefined) - { + if (poolRemoveNodesOptions !== null && poolRemoveNodesOptions !== undefined) { returnClientRequestId = poolRemoveNodesOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (poolRemoveNodesOptions !== null && poolRemoveNodesOptions !== undefined) - { + if (poolRemoveNodesOptions !== null && poolRemoveNodesOptions !== undefined) { ocpDate = poolRemoveNodesOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (poolRemoveNodesOptions !== null && poolRemoveNodesOptions !== undefined) - { + if (poolRemoveNodesOptions !== null && poolRemoveNodesOptions !== undefined) { ifMatch = poolRemoveNodesOptions.ifMatch; if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { throw new Error('ifMatch must be of type string.'); } } - if (poolRemoveNodesOptions !== null && poolRemoveNodesOptions !== undefined) - { + if (poolRemoveNodesOptions !== null && poolRemoveNodesOptions !== undefined) { ifNoneMatch = poolRemoveNodesOptions.ifNoneMatch; if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') { throw new Error('ifNoneMatch must be of type string.'); } } - if (poolRemoveNodesOptions !== null && poolRemoveNodesOptions !== undefined) - { + if (poolRemoveNodesOptions !== null && poolRemoveNodesOptions !== undefined) { ifModifiedSince = poolRemoveNodesOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (poolRemoveNodesOptions !== null && poolRemoveNodesOptions !== undefined) - { + if (poolRemoveNodesOptions !== null && poolRemoveNodesOptions !== undefined) { ifUnmodifiedSince = poolRemoveNodesOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -4599,22 +4496,19 @@ function _listUsageMetricsNext(nextPageLink, options, callback) { let returnClientRequestId; let ocpDate; try { - if (poolListUsageMetricsNextOptions !== null && poolListUsageMetricsNextOptions !== undefined) - { + if (poolListUsageMetricsNextOptions !== null && poolListUsageMetricsNextOptions !== undefined) { clientRequestId = poolListUsageMetricsNextOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (poolListUsageMetricsNextOptions !== null && poolListUsageMetricsNextOptions !== undefined) - { + if (poolListUsageMetricsNextOptions !== null && poolListUsageMetricsNextOptions !== undefined) { returnClientRequestId = poolListUsageMetricsNextOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (poolListUsageMetricsNextOptions !== null && poolListUsageMetricsNextOptions !== undefined) - { + if (poolListUsageMetricsNextOptions !== null && poolListUsageMetricsNextOptions !== undefined) { ocpDate = poolListUsageMetricsNextOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -4780,22 +4674,19 @@ function _listNext(nextPageLink, options, callback) { let returnClientRequestId; let ocpDate; try { - if (poolListNextOptions !== null && poolListNextOptions !== undefined) - { + if (poolListNextOptions !== null && poolListNextOptions !== undefined) { clientRequestId = poolListNextOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (poolListNextOptions !== null && poolListNextOptions !== undefined) - { + if (poolListNextOptions !== null && poolListNextOptions !== undefined) { returnClientRequestId = poolListNextOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (poolListNextOptions !== null && poolListNextOptions !== undefined) - { + if (poolListNextOptions !== null && poolListNextOptions !== undefined) { ocpDate = poolListNextOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -5333,7 +5224,7 @@ class Pool { * the default value is true. * * @param {array} [pool.virtualMachineConfiguration.dataDisks] The - * configuration for data disks attached to the comptue nodes in the pool. This + * configuration for data disks attached to the compute nodes in the pool. This * property must be specified if the compute nodes in the pool need to have * empty data disks attached to them. This cannot be updated. Each node gets * its own disk (the disk is not a file share). Existing disks cannot be @@ -5743,7 +5634,7 @@ class Pool { * the default value is true. * * @param {array} [pool.virtualMachineConfiguration.dataDisks] The - * configuration for data disks attached to the comptue nodes in the pool. This + * configuration for data disks attached to the compute nodes in the pool. This * property must be specified if the compute nodes in the pool need to have * empty data disks attached to them. This cannot be updated. Each node gets * its own disk (the disk is not a file share). Existing disks cannot be diff --git a/lib/services/batch/lib/operations/task.js b/lib/services/batch/lib/operations/task.js index 1868a251dc..bb82f5c396 100644 --- a/lib/services/batch/lib/operations/task.js +++ b/lib/services/batch/lib/operations/task.js @@ -342,29 +342,25 @@ function _add(jobId, task, options, callback) { let returnClientRequestId; let ocpDate; try { - if (taskAddOptions !== null && taskAddOptions !== undefined) - { + if (taskAddOptions !== null && taskAddOptions !== undefined) { timeout = taskAddOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (taskAddOptions !== null && taskAddOptions !== undefined) - { + if (taskAddOptions !== null && taskAddOptions !== undefined) { clientRequestId = taskAddOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (taskAddOptions !== null && taskAddOptions !== undefined) - { + if (taskAddOptions !== null && taskAddOptions !== undefined) { returnClientRequestId = taskAddOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (taskAddOptions !== null && taskAddOptions !== undefined) - { + if (taskAddOptions !== null && taskAddOptions !== undefined) { ocpDate = taskAddOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -566,57 +562,49 @@ function _list(jobId, options, callback) { let returnClientRequestId; let ocpDate; try { - if (taskListOptions !== null && taskListOptions !== undefined) - { + if (taskListOptions !== null && taskListOptions !== undefined) { filter = taskListOptions.filter; if (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') { throw new Error('filter must be of type string.'); } } - if (taskListOptions !== null && taskListOptions !== undefined) - { + if (taskListOptions !== null && taskListOptions !== undefined) { select = taskListOptions.select; if (select !== null && select !== undefined && typeof select.valueOf() !== 'string') { throw new Error('select must be of type string.'); } } - if (taskListOptions !== null && taskListOptions !== undefined) - { + if (taskListOptions !== null && taskListOptions !== undefined) { expand = taskListOptions.expand; if (expand !== null && expand !== undefined && typeof expand.valueOf() !== 'string') { throw new Error('expand must be of type string.'); } } - if (taskListOptions !== null && taskListOptions !== undefined) - { + if (taskListOptions !== null && taskListOptions !== undefined) { maxResults = taskListOptions.maxResults; if (maxResults !== null && maxResults !== undefined && typeof maxResults !== 'number') { throw new Error('maxResults must be of type number.'); } } - if (taskListOptions !== null && taskListOptions !== undefined) - { + if (taskListOptions !== null && taskListOptions !== undefined) { timeout = taskListOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (taskListOptions !== null && taskListOptions !== undefined) - { + if (taskListOptions !== null && taskListOptions !== undefined) { clientRequestId = taskListOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (taskListOptions !== null && taskListOptions !== undefined) - { + if (taskListOptions !== null && taskListOptions !== undefined) { returnClientRequestId = taskListOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (taskListOptions !== null && taskListOptions !== undefined) - { + if (taskListOptions !== null && taskListOptions !== undefined) { ocpDate = taskListOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -846,37 +834,32 @@ function _addCollection(jobId, value, options, callback) { let ocpDate; let taskCollection = new client.models['TaskAddCollectionParameter'](); try { - if (taskAddCollectionOptions !== null && taskAddCollectionOptions !== undefined) - { + if (taskAddCollectionOptions !== null && taskAddCollectionOptions !== undefined) { timeout = taskAddCollectionOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (taskAddCollectionOptions !== null && taskAddCollectionOptions !== undefined) - { + if (taskAddCollectionOptions !== null && taskAddCollectionOptions !== undefined) { clientRequestId = taskAddCollectionOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (taskAddCollectionOptions !== null && taskAddCollectionOptions !== undefined) - { + if (taskAddCollectionOptions !== null && taskAddCollectionOptions !== undefined) { returnClientRequestId = taskAddCollectionOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (taskAddCollectionOptions !== null && taskAddCollectionOptions !== undefined) - { + if (taskAddCollectionOptions !== null && taskAddCollectionOptions !== undefined) { ocpDate = taskAddCollectionOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (value !== null && value !== undefined) - { + if (value !== null && value !== undefined) { taskCollection.value = value; } } catch (error) { @@ -1106,59 +1089,51 @@ function _deleteMethod(jobId, taskId, options, callback) { let ifModifiedSince; let ifUnmodifiedSince; try { - if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined) - { + if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined) { timeout = taskDeleteMethodOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined) - { + if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined) { clientRequestId = taskDeleteMethodOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined) - { + if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined) { returnClientRequestId = taskDeleteMethodOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined) - { + if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined) { ocpDate = taskDeleteMethodOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined) - { + if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined) { ifMatch = taskDeleteMethodOptions.ifMatch; if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { throw new Error('ifMatch must be of type string.'); } } - if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined) - { + if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined) { ifNoneMatch = taskDeleteMethodOptions.ifNoneMatch; if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') { throw new Error('ifNoneMatch must be of type string.'); } } - if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined) - { + if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined) { ifModifiedSince = taskDeleteMethodOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined) - { + if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined) { ifUnmodifiedSince = taskDeleteMethodOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -1379,73 +1354,63 @@ function _get(jobId, taskId, options, callback) { let ifModifiedSince; let ifUnmodifiedSince; try { - if (taskGetOptions !== null && taskGetOptions !== undefined) - { + if (taskGetOptions !== null && taskGetOptions !== undefined) { select = taskGetOptions.select; if (select !== null && select !== undefined && typeof select.valueOf() !== 'string') { throw new Error('select must be of type string.'); } } - if (taskGetOptions !== null && taskGetOptions !== undefined) - { + if (taskGetOptions !== null && taskGetOptions !== undefined) { expand = taskGetOptions.expand; if (expand !== null && expand !== undefined && typeof expand.valueOf() !== 'string') { throw new Error('expand must be of type string.'); } } - if (taskGetOptions !== null && taskGetOptions !== undefined) - { + if (taskGetOptions !== null && taskGetOptions !== undefined) { timeout = taskGetOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (taskGetOptions !== null && taskGetOptions !== undefined) - { + if (taskGetOptions !== null && taskGetOptions !== undefined) { clientRequestId = taskGetOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (taskGetOptions !== null && taskGetOptions !== undefined) - { + if (taskGetOptions !== null && taskGetOptions !== undefined) { returnClientRequestId = taskGetOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (taskGetOptions !== null && taskGetOptions !== undefined) - { + if (taskGetOptions !== null && taskGetOptions !== undefined) { ocpDate = taskGetOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (taskGetOptions !== null && taskGetOptions !== undefined) - { + if (taskGetOptions !== null && taskGetOptions !== undefined) { ifMatch = taskGetOptions.ifMatch; if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { throw new Error('ifMatch must be of type string.'); } } - if (taskGetOptions !== null && taskGetOptions !== undefined) - { + if (taskGetOptions !== null && taskGetOptions !== undefined) { ifNoneMatch = taskGetOptions.ifNoneMatch; if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') { throw new Error('ifNoneMatch must be of type string.'); } } - if (taskGetOptions !== null && taskGetOptions !== undefined) - { + if (taskGetOptions !== null && taskGetOptions !== undefined) { ifModifiedSince = taskGetOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (taskGetOptions !== null && taskGetOptions !== undefined) - { + if (taskGetOptions !== null && taskGetOptions !== undefined) { ifUnmodifiedSince = taskGetOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -1708,67 +1673,58 @@ function _update(jobId, taskId, options, callback) { let ifUnmodifiedSince; let taskUpdateParameter = new client.models['TaskUpdateParameter'](); try { - if (taskUpdateOptions !== null && taskUpdateOptions !== undefined) - { + if (taskUpdateOptions !== null && taskUpdateOptions !== undefined) { timeout = taskUpdateOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (taskUpdateOptions !== null && taskUpdateOptions !== undefined) - { + if (taskUpdateOptions !== null && taskUpdateOptions !== undefined) { clientRequestId = taskUpdateOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (taskUpdateOptions !== null && taskUpdateOptions !== undefined) - { + if (taskUpdateOptions !== null && taskUpdateOptions !== undefined) { returnClientRequestId = taskUpdateOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (taskUpdateOptions !== null && taskUpdateOptions !== undefined) - { + if (taskUpdateOptions !== null && taskUpdateOptions !== undefined) { ocpDate = taskUpdateOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (taskUpdateOptions !== null && taskUpdateOptions !== undefined) - { + if (taskUpdateOptions !== null && taskUpdateOptions !== undefined) { ifMatch = taskUpdateOptions.ifMatch; if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { throw new Error('ifMatch must be of type string.'); } } - if (taskUpdateOptions !== null && taskUpdateOptions !== undefined) - { + if (taskUpdateOptions !== null && taskUpdateOptions !== undefined) { ifNoneMatch = taskUpdateOptions.ifNoneMatch; if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') { throw new Error('ifNoneMatch must be of type string.'); } } - if (taskUpdateOptions !== null && taskUpdateOptions !== undefined) - { + if (taskUpdateOptions !== null && taskUpdateOptions !== undefined) { ifModifiedSince = taskUpdateOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (taskUpdateOptions !== null && taskUpdateOptions !== undefined) - { + if (taskUpdateOptions !== null && taskUpdateOptions !== undefined) { ifUnmodifiedSince = taskUpdateOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { throw new Error('ifUnmodifiedSince must be of type date.'); } } - if (constraints !== null && constraints !== undefined) - { + if (constraints !== null && constraints !== undefined) { taskUpdateParameter.constraints = constraints; } } catch (error) { @@ -1974,36 +1930,31 @@ function _listSubtasks(jobId, taskId, options, callback) { let returnClientRequestId; let ocpDate; try { - if (taskListSubtasksOptions !== null && taskListSubtasksOptions !== undefined) - { + if (taskListSubtasksOptions !== null && taskListSubtasksOptions !== undefined) { select = taskListSubtasksOptions.select; if (select !== null && select !== undefined && typeof select.valueOf() !== 'string') { throw new Error('select must be of type string.'); } } - if (taskListSubtasksOptions !== null && taskListSubtasksOptions !== undefined) - { + if (taskListSubtasksOptions !== null && taskListSubtasksOptions !== undefined) { timeout = taskListSubtasksOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (taskListSubtasksOptions !== null && taskListSubtasksOptions !== undefined) - { + if (taskListSubtasksOptions !== null && taskListSubtasksOptions !== undefined) { clientRequestId = taskListSubtasksOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (taskListSubtasksOptions !== null && taskListSubtasksOptions !== undefined) - { + if (taskListSubtasksOptions !== null && taskListSubtasksOptions !== undefined) { returnClientRequestId = taskListSubtasksOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (taskListSubtasksOptions !== null && taskListSubtasksOptions !== undefined) - { + if (taskListSubtasksOptions !== null && taskListSubtasksOptions !== undefined) { ocpDate = taskListSubtasksOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { @@ -2226,59 +2177,51 @@ function _terminate(jobId, taskId, options, callback) { let ifModifiedSince; let ifUnmodifiedSince; try { - if (taskTerminateOptions !== null && taskTerminateOptions !== undefined) - { + if (taskTerminateOptions !== null && taskTerminateOptions !== undefined) { timeout = taskTerminateOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (taskTerminateOptions !== null && taskTerminateOptions !== undefined) - { + if (taskTerminateOptions !== null && taskTerminateOptions !== undefined) { clientRequestId = taskTerminateOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (taskTerminateOptions !== null && taskTerminateOptions !== undefined) - { + if (taskTerminateOptions !== null && taskTerminateOptions !== undefined) { returnClientRequestId = taskTerminateOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (taskTerminateOptions !== null && taskTerminateOptions !== undefined) - { + if (taskTerminateOptions !== null && taskTerminateOptions !== undefined) { ocpDate = taskTerminateOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (taskTerminateOptions !== null && taskTerminateOptions !== undefined) - { + if (taskTerminateOptions !== null && taskTerminateOptions !== undefined) { ifMatch = taskTerminateOptions.ifMatch; if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { throw new Error('ifMatch must be of type string.'); } } - if (taskTerminateOptions !== null && taskTerminateOptions !== undefined) - { + if (taskTerminateOptions !== null && taskTerminateOptions !== undefined) { ifNoneMatch = taskTerminateOptions.ifNoneMatch; if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') { throw new Error('ifNoneMatch must be of type string.'); } } - if (taskTerminateOptions !== null && taskTerminateOptions !== undefined) - { + if (taskTerminateOptions !== null && taskTerminateOptions !== undefined) { ifModifiedSince = taskTerminateOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (taskTerminateOptions !== null && taskTerminateOptions !== undefined) - { + if (taskTerminateOptions !== null && taskTerminateOptions !== undefined) { ifUnmodifiedSince = taskTerminateOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -2498,59 +2441,51 @@ function _reactivate(jobId, taskId, options, callback) { let ifModifiedSince; let ifUnmodifiedSince; try { - if (taskReactivateOptions !== null && taskReactivateOptions !== undefined) - { + if (taskReactivateOptions !== null && taskReactivateOptions !== undefined) { timeout = taskReactivateOptions.timeout; if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') { throw new Error('timeout must be of type number.'); } } - if (taskReactivateOptions !== null && taskReactivateOptions !== undefined) - { + if (taskReactivateOptions !== null && taskReactivateOptions !== undefined) { clientRequestId = taskReactivateOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (taskReactivateOptions !== null && taskReactivateOptions !== undefined) - { + if (taskReactivateOptions !== null && taskReactivateOptions !== undefined) { returnClientRequestId = taskReactivateOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (taskReactivateOptions !== null && taskReactivateOptions !== undefined) - { + if (taskReactivateOptions !== null && taskReactivateOptions !== undefined) { ocpDate = taskReactivateOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); } } - if (taskReactivateOptions !== null && taskReactivateOptions !== undefined) - { + if (taskReactivateOptions !== null && taskReactivateOptions !== undefined) { ifMatch = taskReactivateOptions.ifMatch; if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') { throw new Error('ifMatch must be of type string.'); } } - if (taskReactivateOptions !== null && taskReactivateOptions !== undefined) - { + if (taskReactivateOptions !== null && taskReactivateOptions !== undefined) { ifNoneMatch = taskReactivateOptions.ifNoneMatch; if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') { throw new Error('ifNoneMatch must be of type string.'); } } - if (taskReactivateOptions !== null && taskReactivateOptions !== undefined) - { + if (taskReactivateOptions !== null && taskReactivateOptions !== undefined) { ifModifiedSince = taskReactivateOptions.ifModifiedSince; if (ifModifiedSince && !(ifModifiedSince instanceof Date || (typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) { throw new Error('ifModifiedSince must be of type date.'); } } - if (taskReactivateOptions !== null && taskReactivateOptions !== undefined) - { + if (taskReactivateOptions !== null && taskReactivateOptions !== undefined) { ifUnmodifiedSince = taskReactivateOptions.ifUnmodifiedSince; if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date || (typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) { @@ -2726,22 +2661,19 @@ function _listNext(nextPageLink, options, callback) { let returnClientRequestId; let ocpDate; try { - if (taskListNextOptions !== null && taskListNextOptions !== undefined) - { + if (taskListNextOptions !== null && taskListNextOptions !== undefined) { clientRequestId = taskListNextOptions.clientRequestId; if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) { throw new Error('clientRequestId must be of type string and must be a valid uuid.'); } } - if (taskListNextOptions !== null && taskListNextOptions !== undefined) - { + if (taskListNextOptions !== null && taskListNextOptions !== undefined) { returnClientRequestId = taskListNextOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (taskListNextOptions !== null && taskListNextOptions !== undefined) - { + if (taskListNextOptions !== null && taskListNextOptions !== undefined) { ocpDate = taskListNextOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {