diff --git a/lib/services/batch/lib/batchServiceClient.js b/lib/services/batch/lib/batchServiceClient.js index 224135ba6b..4e86c5c4f4 100644 --- a/lib/services/batch/lib/batchServiceClient.js +++ b/lib/services/batch/lib/batchServiceClient.js @@ -46,7 +46,7 @@ class BatchServiceClient extends ServiceClient { super(credentials, options); - this.apiVersion = '2017-09-01.6.0'; + this.apiVersion = '2018-03-01.6.1'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.generateClientRequestId = true; diff --git a/lib/services/batch/lib/models/accountListPoolNodeCountsNextOptions.js b/lib/services/batch/lib/models/accountListPoolNodeCountsNextOptions.js new file mode 100644 index 0000000000..eb1235963f --- /dev/null +++ b/lib/services/batch/lib/models/accountListPoolNodeCountsNextOptions.js @@ -0,0 +1,70 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * Additional parameters for listPoolNodeCountsNext operation. + * + */ +class AccountListPoolNodeCountsNextOptions { + /** + * Create a AccountListPoolNodeCountsNextOptions. + * @member {uuid} [clientRequestId] The caller-generated request identity, in + * the form of a GUID with no decoration such as curly braces, e.g. + * 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + * @member {date} [ocpDate] The time the request was issued. Client libraries + * typically set this to the current system clock time; set it explicitly if + * you are calling the REST API directly. + */ + constructor() { + } + + /** + * Defines the metadata of AccountListPoolNodeCountsNextOptions + * + * @returns {object} metadata of AccountListPoolNodeCountsNextOptions + * + */ + mapper() { + return { + required: false, + type: { + name: 'Composite', + className: 'AccountListPoolNodeCountsNextOptions', + modelProperties: { + clientRequestId: { + required: false, + type: { + name: 'String' + } + }, + returnClientRequestId: { + required: false, + defaultValue: false, + type: { + name: 'Boolean' + } + }, + ocpDate: { + required: false, + type: { + name: 'DateTimeRfc1123' + } + } + } + } + }; + } +} + +module.exports = AccountListPoolNodeCountsNextOptions; diff --git a/lib/services/batch/lib/models/accountListPoolNodeCountsOptions.js b/lib/services/batch/lib/models/accountListPoolNodeCountsOptions.js new file mode 100644 index 0000000000..3d102fec10 --- /dev/null +++ b/lib/services/batch/lib/models/accountListPoolNodeCountsOptions.js @@ -0,0 +1,96 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * Additional parameters for listPoolNodeCounts operation. + * + */ +class AccountListPoolNodeCountsOptions { + /** + * Create a AccountListPoolNodeCountsOptions. + * @member {string} [filter] An OData $filter clause. + * @member {number} [maxResults] The maximum number of items to return in the + * response. Default value: 10 . + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + * @member {uuid} [clientRequestId] The caller-generated request identity, in + * the form of a GUID with no decoration such as curly braces, e.g. + * 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + * @member {date} [ocpDate] The time the request was issued. Client libraries + * typically set this to the current system clock time; set it explicitly if + * you are calling the REST API directly. + */ + constructor() { + } + + /** + * Defines the metadata of AccountListPoolNodeCountsOptions + * + * @returns {object} metadata of AccountListPoolNodeCountsOptions + * + */ + mapper() { + return { + required: false, + type: { + name: 'Composite', + className: 'AccountListPoolNodeCountsOptions', + modelProperties: { + filter: { + required: false, + type: { + name: 'String' + } + }, + maxResults: { + required: false, + defaultValue: 10, + type: { + name: 'Number' + } + }, + timeout: { + required: false, + defaultValue: 30, + type: { + name: 'Number' + } + }, + clientRequestId: { + required: false, + type: { + name: 'String' + } + }, + returnClientRequestId: { + required: false, + defaultValue: false, + type: { + name: 'Boolean' + } + }, + ocpDate: { + required: false, + type: { + name: 'DateTimeRfc1123' + } + } + } + } + }; + } +} + +module.exports = AccountListPoolNodeCountsOptions; diff --git a/lib/services/batch/lib/models/autoPoolSpecification.js b/lib/services/batch/lib/models/autoPoolSpecification.js index b334c3009c..85f475bcb3 100644 --- a/lib/services/batch/lib/models/autoPoolSpecification.js +++ b/lib/services/batch/lib/models/autoPoolSpecification.js @@ -27,15 +27,8 @@ class AutoPoolSpecification { * a prefix to the ID that is assigned. The prefix can be up to 20 characters * long. * @member {string} poolLifetimeOption The minimum lifetime of created auto - * pools, and how multiple jobs on a schedule are assigned to pools. When the - * pool lifetime is jobSchedule the pool exists for the lifetime of the job - * schedule. The Batch Service creates the pool when it creates the first job - * on the schedule. You may apply this option only to job schedules, not to - * jobs. When the pool lifetime is job the pool exists for the lifetime of - * the job to which it is dedicated. The Batch service creates the pool when - * it creates the job. If the 'job' option is applied to a job schedule, the - * Batch service creates a new auto pool for every job created on the - * schedule. Possible values include: 'jobSchedule', 'job' + * pools, and how multiple jobs on a schedule are assigned to pools. Possible + * values include: 'jobSchedule', 'job' * @member {boolean} [keepAlive] Whether to keep an auto pool alive after its * lifetime expires. If false, the Batch service deletes the pool once its * lifetime (as determined by the poolLifetimeOption setting) expires; that @@ -106,14 +99,8 @@ class AutoPoolSpecification { * the Batch node agent to communicate with the Batch service see * https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. * @member {object} [pool.virtualMachineConfiguration.osDisk] - * @member {string} [pool.virtualMachineConfiguration.osDisk.caching] Values - * are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching + * @member {string} [pool.virtualMachineConfiguration.osDisk.caching] The + * default value for caching is none. For information about the caching * options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' @@ -133,7 +120,15 @@ class AutoPoolSpecification { * If omitted, the default value is true. * @member {array} [pool.virtualMachineConfiguration.dataDisks] 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. + * 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. When the node is removed from the pool, the + * disk and all data associated with it is also deleted. The disk is not + * formatted after being attached, it must be formatted before use - for more + * information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} [pool.virtualMachineConfiguration.licenseType] This only * applies to images that contain the Windows operating system, and should * only be used when you hold valid on-premises licenses for the nodes which @@ -265,17 +260,10 @@ class AutoPoolSpecification { * @member {object} [pool.startTask.userIdentity.autoUser] The userName and * autoUser properties are mutually exclusive; you must specify one but not * both. - * @member {string} [pool.startTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [pool.startTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * @member {string} [pool.startTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' + * @member {string} [pool.startTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {number} [pool.startTask.maxTaskRetryCount] The Batch service * retries a task if its exit code is nonzero. Note that this value * specifically controls the number of retries. The Batch service will try diff --git a/lib/services/batch/lib/models/autoUserSpecification.js b/lib/services/batch/lib/models/autoUserSpecification.js index 68f25e6ddd..72ffd4cf97 100644 --- a/lib/services/batch/lib/models/autoUserSpecification.js +++ b/lib/services/batch/lib/models/autoUserSpecification.js @@ -18,17 +18,11 @@ class AutoUserSpecification { /** * Create a AutoUserSpecification. - * @member {string} [scope] The scope for the auto user. Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * @member {string} [scope] The scope for the auto user. The default value is + * task. Possible values include: 'task', 'pool' * @member {string} [elevationLevel] The elevation level of the auto user. - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', + * 'admin' */ constructor() { } diff --git a/lib/services/batch/lib/models/certificateReference.js b/lib/services/batch/lib/models/certificateReference.js index 874b801621..832367c7c9 100644 --- a/lib/services/batch/lib/models/certificateReference.js +++ b/lib/services/batch/lib/models/certificateReference.js @@ -23,7 +23,7 @@ class CertificateReference { * thumbprint is associated. This must be sha1. * @member {string} [storeLocation] The location of the certificate store on * the compute node into which to install the certificate. The default value - * is currentUser. This property is applicable only for pools configured with + * is currentuser. This property is applicable only for pools configured with * Windows nodes (that is, created with cloudServiceConfiguration, or with * virtualMachineConfiguration using a Windows image reference). For Linux * compute nodes, the certificates are stored in a directory inside the task @@ -40,14 +40,8 @@ class CertificateReference { * Trust, Disallowed, TrustedPeople, TrustedPublisher, AuthRoot, AddressBook, * but any custom store name can also be used. The default value is My. * @member {array} [visibility] Which user accounts on the compute node - * should have access to the private data of the certificate. Values are: - * - * starttask - The user account under which the start task is run. - * task - The accounts under which job tasks are run. - * remoteuser - The accounts under which users remotely access the node. - * - * You can specify more than one visibility in this collection. The default - * is all accounts. + * should have access to the private data of the certificate. You can specify + * more than one visibility in this collection. The default is all accounts. */ constructor() { } diff --git a/lib/services/batch/lib/models/cloudJob.js b/lib/services/batch/lib/models/cloudJob.js index 642214d0ad..3242cc484c 100644 --- a/lib/services/batch/lib/models/cloudJob.js +++ b/lib/services/batch/lib/models/cloudJob.js @@ -140,17 +140,10 @@ class CloudJob { * @member {object} [jobManagerTask.userIdentity.autoUser] The userName and * autoUser properties are mutually exclusive; you must specify one but not * both. - * @member {string} [jobManagerTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [jobManagerTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * @member {string} [jobManagerTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' + * @member {string} [jobManagerTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {boolean} [jobManagerTask.runExclusive] If true, no other tasks * will run on the same compute node for as long as the Job Manager is * running. If false, other tasks can run simultaneously with the Job Manager @@ -253,18 +246,11 @@ class CloudJob { * @member {object} [jobPreparationTask.userIdentity.autoUser] The userName * and autoUser properties are mutually exclusive; you must specify one but * not both. - * @member {string} [jobPreparationTask.userIdentity.autoUser.scope] Values - * are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * @member {string} [jobPreparationTask.userIdentity.autoUser.scope] The + * default value is task. Possible values include: 'task', 'pool' * @member {string} [jobPreparationTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', + * 'admin' * @member {boolean} [jobPreparationTask.rerunOnNodeRebootAfterSuccess] The * Job Preparation task is always rerun if a compute node is reimaged, or if * the Job Preparation task did not complete (e.g. because the reboot @@ -322,17 +308,10 @@ class CloudJob { * @member {object} [jobReleaseTask.userIdentity.autoUser] The userName and * autoUser properties are mutually exclusive; you must specify one but not * both. - * @member {string} [jobReleaseTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [jobReleaseTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * @member {string} [jobReleaseTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' + * @member {string} [jobReleaseTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {array} [commonEnvironmentSettings] The list of common environment * variable settings. These environment variables are set for all tasks in * the job (including the Job Manager, Job Preparation and Job Release @@ -359,15 +338,8 @@ class CloudJob { * distinguish between pools created for different purposes, you can specify * this element to add a prefix to the ID that is assigned. The prefix can be * up to 20 characters long. - * @member {string} [poolInfo.autoPoolSpecification.poolLifetimeOption] When - * the pool lifetime is jobSchedule the pool exists for the lifetime of the - * job schedule. The Batch Service creates the pool when it creates the first - * job on the schedule. You may apply this option only to job schedules, not - * to jobs. When the pool lifetime is job the pool exists for the lifetime of - * the job to which it is dedicated. The Batch service creates the pool when - * it creates the job. If the 'job' option is applied to a job schedule, the - * Batch service creates a new auto pool for every job created on the - * schedule. Possible values include: 'jobSchedule', 'job' + * @member {string} [poolInfo.autoPoolSpecification.poolLifetimeOption] + * Possible values include: 'jobSchedule', 'job' * @member {boolean} [poolInfo.autoPoolSpecification.keepAlive] If false, the * Batch service deletes the pool once its lifetime (as determined by the * poolLifetimeOption setting) expires; that is, when the job or job schedule @@ -452,12 +424,6 @@ class CloudJob { * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk] * @member {string} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * * The default value for caching is none. For information about the caching * options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. @@ -481,7 +447,15 @@ class CloudJob { * @member {array} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk + * is not formatted after being attached, it must be formatted before use - + * for more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] * This only applies to images that contain the Windows operating system, and @@ -641,18 +615,11 @@ class CloudJob { * one but not both. * @member {string} * [poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. * The default value is task. Possible values include: 'task', 'pool' * @member {string} * [poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', + * 'admin' * @member {number} * [poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] The * Batch service retries a task if its exit code is nonzero. Note that this @@ -695,21 +662,15 @@ class CloudJob { * service does not assign any meaning to metadata; it is solely for the use * of user code. * @member {string} [onAllTasksComplete] The action the Batch service should - * take when all tasks in the job are in the completed state. noAction - do - * nothing. The job remains active unless terminated or disabled by some - * other means. terminateJob - terminate the job. The job's terminateReason - * is set to 'AllTasksComplete'. The default is noAction. Possible values - * include: 'noAction', 'terminateJob' + * take when all tasks in the job are in the completed state. The default is + * noaction. Possible values include: 'noAction', 'terminateJob' * @member {string} [onTaskFailure] The action the Batch service should take * when any task in the job fails. A task is considered to have failed if has * a failureInfo. A failureInfo is set if the task completes with a non-zero * exit code after exhausting its retry count, or if there was an error - * starting the task, for example due to a resource file download error. - * noAction - do nothing. performExitOptionsJobAction - take the action - * associated with the task exit condition in the task's exitConditions - * collection. (This may still result in no action being taken, if that is - * what the task specifies.) The default is noAction. Possible values - * include: 'noAction', 'performExitOptionsJobAction' + * starting the task, for example due to a resource file download error. The + * default is noaction. Possible values include: 'noAction', + * 'performExitOptionsJobAction' * @member {array} [metadata] A list of name-value pairs associated with the * job as metadata. The Batch service does not assign any meaning to * metadata; it is solely for the use of user code. @@ -739,10 +700,10 @@ class CloudJob { * - the job reached its maxWallClockTime constraint. TerminateJobSchedule - * the job ran as part of a schedule, and the schedule terminated. * AllTasksComplete - the job's onAllTasksComplete attribute is set to - * terminateJob, and all tasks in the job are complete. TaskFailed - the + * terminatejob, and all tasks in the job are complete. TaskFailed - the * job's onTaskFailure attribute is set to performExitOptionsJobAction, and a * task in the job failed with an exit condition that specified a jobAction - * of terminateJob. Any other string is a user-defined reason specified in a + * of terminatejob. Any other string is a user-defined reason specified in a * call to the 'Terminate a job' operation. * @member {object} [stats] Resource usage statistics for the entire lifetime * of the job. diff --git a/lib/services/batch/lib/models/cloudJobSchedule.js b/lib/services/batch/lib/models/cloudJobSchedule.js index 4cacef9a44..705fbaa521 100644 --- a/lib/services/batch/lib/models/cloudJobSchedule.js +++ b/lib/services/batch/lib/models/cloudJobSchedule.js @@ -94,11 +94,11 @@ class CloudJobSchedule { * contains no tasks, then all tasks are considered complete. This option is * therefore most commonly used with a Job Manager task; if you want to use * automatic job termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. - * The default is noAction. Possible values include: 'noAction', + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. + * The default is noaction. Possible values include: 'noAction', * 'terminateJob' - * @member {string} [jobSpecification.onTaskFailure] The default is noAction. + * @member {string} [jobSpecification.onTaskFailure] The default is noaction. * Possible values include: 'noAction', 'performExitOptionsJobAction' * @member {object} [jobSpecification.constraints] * @member {moment.duration} [jobSpecification.constraints.maxWallClockTime] @@ -202,18 +202,11 @@ class CloudJobSchedule { * The userName and autoUser properties are mutually exclusive; you must * specify one but not both. * @member {string} - * [jobSpecification.jobManagerTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * [jobSpecification.jobManagerTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' * @member {string} - * [jobSpecification.jobManagerTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * [jobSpecification.jobManagerTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {boolean} [jobSpecification.jobManagerTask.runExclusive] If true, * no other tasks will run on the same compute node for as long as the Job * Manager is running. If false, other tasks can run simultaneously with the @@ -332,19 +325,12 @@ class CloudJobSchedule { * and autoUser properties are mutually exclusive; you must specify one but * not both. * @member {string} - * [jobSpecification.jobPreparationTask.userIdentity.autoUser.scope] Values - * are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * [jobSpecification.jobPreparationTask.userIdentity.autoUser.scope] The + * default value is task. Possible values include: 'task', 'pool' * @member {string} * [jobSpecification.jobPreparationTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', + * 'admin' * @member {boolean} * [jobSpecification.jobPreparationTask.rerunOnNodeRebootAfterSuccess] The * Job Preparation task is always rerun if a compute node is reimaged, or if @@ -416,18 +402,11 @@ class CloudJobSchedule { * The userName and autoUser properties are mutually exclusive; you must * specify one but not both. * @member {string} - * [jobSpecification.jobReleaseTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * [jobSpecification.jobReleaseTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' * @member {string} - * [jobSpecification.jobReleaseTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * [jobSpecification.jobReleaseTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {array} [jobSpecification.commonEnvironmentSettings] Individual * tasks can override an environment setting specified here by specifying the * same setting name with a different value. @@ -454,15 +433,8 @@ class CloudJobSchedule { * this element to add a prefix to the ID that is assigned. The prefix can be * up to 20 characters long. * @member {string} - * [jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption] When - * the pool lifetime is jobSchedule the pool exists for the lifetime of the - * job schedule. The Batch Service creates the pool when it creates the first - * job on the schedule. You may apply this option only to job schedules, not - * to jobs. When the pool lifetime is job the pool exists for the lifetime of - * the job to which it is dedicated. The Batch service creates the pool when - * it creates the job. If the 'job' option is applied to a job schedule, the - * Batch service creates a new auto pool for every job created on the - * schedule. Possible values include: 'jobSchedule', 'job' + * [jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption] + * Possible values include: 'jobSchedule', 'job' * @member {boolean} * [jobSpecification.poolInfo.autoPoolSpecification.keepAlive] If false, the * Batch service deletes the pool once its lifetime (as determined by the @@ -550,12 +522,6 @@ class CloudJobSchedule { * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk] * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * * The default value for caching is none. For information about the caching * options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. @@ -579,7 +545,15 @@ class CloudJobSchedule { * @member {array} * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk + * is not formatted after being attached, it must be formatted before use - + * for more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] * This only applies to images that contain the Windows operating system, and @@ -744,18 +718,11 @@ class CloudJobSchedule { * specify one but not both. * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. * The default value is task. Possible values include: 'task', 'pool' * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', + * 'admin' * @member {number} * [jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] * The Batch service retries a task if its exit code is nonzero. Note that diff --git a/lib/services/batch/lib/models/cloudPool.js b/lib/services/batch/lib/models/cloudPool.js index 93190700be..b1243f1842 100644 --- a/lib/services/batch/lib/models/cloudPool.js +++ b/lib/services/batch/lib/models/cloudPool.js @@ -38,31 +38,12 @@ class CloudPool { * targetDedicatedNodes or enableAutoscale settings, changed. It does not * factor in node-level changes such as a compute node changing state. * @member {date} [creationTime] The creation time of the pool. - * @member {string} [state] The current state of the pool. Values are: - * - * active - The pool is available to run tasks subject to the availability of - * compute nodes. - * deleting - The user has requested that the pool be deleted, but the delete - * operation has not yet completed. - * upgrading - The user has requested that the operating system of the pool's - * nodes be upgraded, but the upgrade operation has not yet completed (that - * is, some nodes in the pool have not yet been upgraded). While upgrading, - * the pool may be able to run tasks (with reduced capacity) but this is not - * guaranteed. Possible values include: 'active', 'deleting', 'upgrading' + * @member {string} [state] The current state of the pool. Possible values + * include: 'active', 'deleting', 'upgrading' * @member {date} [stateTransitionTime] The time at which the pool entered * its current state. - * @member {string} [allocationState] Whether the pool is resizing. Values - * are: - * - * steady - The pool is not resizing. There are no changes to the number of - * nodes in the pool in progress. A pool enters this state when it is created - * and when no operations are being performed on the pool to change the - * number of dedicated nodes. - * resizing - The pool is resizing; that is, compute nodes are being added to - * or removed from the pool. - * stopping - The pool was resizing, but the user has requested that the - * resize be stopped, but the stop request has not yet been completed. - * Possible values include: 'steady', 'resizing', 'stopping' + * @member {string} [allocationState] Whether the pool is resizing. Possible + * values include: 'steady', 'resizing', 'stopping' * @member {date} [allocationStateTransitionTime] The time at which the pool * entered its current allocation state. * @member {string} [vmSize] The size of virtual machines in the pool. All @@ -120,14 +101,8 @@ class CloudPool { * Batch node agent to communicate with the Batch service see * https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. * @member {object} [virtualMachineConfiguration.osDisk] - * @member {string} [virtualMachineConfiguration.osDisk.caching] Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * @member {string} [virtualMachineConfiguration.osDisk.caching] The default + * value for caching is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @member {string} [virtualMachineConfiguration.nodeAgentSKUId] The Batch @@ -146,7 +121,15 @@ class CloudPool { * If omitted, the default value is true. * @member {array} [virtualMachineConfiguration.dataDisks] 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. + * 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. When the node is removed from the pool, the + * disk and all data associated with it is also deleted. The disk is not + * formatted after being attached, it must be formatted before use - for more + * information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} [virtualMachineConfiguration.licenseType] This only * applies to images that contain the Windows operating system, and should * only be used when you hold valid on-premises licenses for the nodes which @@ -281,17 +264,10 @@ class CloudPool { * @member {object} [startTask.userIdentity.autoUser] The userName and * autoUser properties are mutually exclusive; you must specify one but not * both. - * @member {string} [startTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [startTask.userIdentity.autoUser.elevationLevel] nonAdmin - * - The auto user is a standard user without elevated access. admin - The - * auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * @member {string} [startTask.userIdentity.autoUser.scope] The default value + * is task. Possible values include: 'task', 'pool' + * @member {string} [startTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {number} [startTask.maxTaskRetryCount] The Batch service retries a * task if its exit code is nonzero. Note that this value specifically * controls the number of retries. The Batch service will try the task once, diff --git a/lib/services/batch/lib/models/cloudTask.js b/lib/services/batch/lib/models/cloudTask.js index e773074abd..e95ae61774 100644 --- a/lib/services/batch/lib/models/cloudTask.js +++ b/lib/services/batch/lib/models/cloudTask.js @@ -39,29 +39,17 @@ class CloudTask { * @member {array} [exitConditions.exitCodes] * @member {array} [exitConditions.exitCodeRanges] * @member {object} [exitConditions.preProcessingError] - * @member {string} [exitConditions.preProcessingError.jobAction] Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' - * @member {string} [exitConditions.preProcessingError.dependencyAction] - * Values are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit + * @member {string} [exitConditions.preProcessingError.jobAction] The default + * is none for exit code 0 and terminate for all other exit conditions. If + * the job's onTaskFailed property is noaction, then specifying this property + * returns an error and the add task request fails with an invalid property + * value error; if you are calling the REST API directly, the HTTP status + * code is 400 (Bad Request). Possible values include: 'none', 'disable', + * 'terminate' + * @member {string} [exitConditions.preProcessingError.dependencyAction] The + * default is 'satisfy' for exit code 0, and 'block' for all other exit * conditions. If the job's usesTaskDependencies property is set to false, - * then specifying the dependencyAction property returns an erro and the add + * then specifying the dependencyAction property returns an error and the add * task request fails with an invalid property value error; if you are * calling the REST API directly, the HTTP status code is 400 (Bad Request). * Possible values include: 'satisfy', 'block' @@ -69,29 +57,17 @@ class CloudTask { * an exit code that was specified via exitCodes or exitCodeRanges, and then * encountered a file upload error, then the action specified by the exit * code takes precedence. - * @member {string} [exitConditions.fileUploadError.jobAction] Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' - * @member {string} [exitConditions.fileUploadError.dependencyAction] Values - * are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit + * @member {string} [exitConditions.fileUploadError.jobAction] The default is + * none for exit code 0 and terminate for all other exit conditions. If the + * job's onTaskFailed property is noaction, then specifying this property + * returns an error and the add task request fails with an invalid property + * value error; if you are calling the REST API directly, the HTTP status + * code is 400 (Bad Request). Possible values include: 'none', 'disable', + * 'terminate' + * @member {string} [exitConditions.fileUploadError.dependencyAction] The + * default is 'satisfy' for exit code 0, and 'block' for all other exit * conditions. If the job's usesTaskDependencies property is set to false, - * then specifying the dependencyAction property returns an erro and the add + * then specifying the dependencyAction property returns an error and the add * task request fails with an invalid property value error; if you are * calling the REST API directly, the HTTP status code is 400 (Bad Request). * Possible values include: 'satisfy', 'block' @@ -102,31 +78,19 @@ class CloudTask { * the fileUploadError property is not present. If you want non-default * behaviour on exit code 0, you must list it explicitly using the exitCodes * or exitCodeRanges collection. - * @member {string} [exitConditions.default.jobAction] Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' - * @member {string} [exitConditions.default.dependencyAction] Values are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit - * conditions. If the job's usesTaskDependencies property is set to false, - * then specifying the dependencyAction property returns an erro and the add - * task request fails with an invalid property value error; if you are - * calling the REST API directly, the HTTP status code is 400 (Bad Request). - * Possible values include: 'satisfy', 'block' + * @member {string} [exitConditions.default.jobAction] The default is none + * for exit code 0 and terminate for all other exit conditions. If the job's + * onTaskFailed property is noaction, then specifying this property returns + * an error and the add task request fails with an invalid property value + * error; if you are calling the REST API directly, the HTTP status code is + * 400 (Bad Request). Possible values include: 'none', 'disable', 'terminate' + * @member {string} [exitConditions.default.dependencyAction] The default is + * 'satisfy' for exit code 0, and 'block' for all other exit conditions. If + * the job's usesTaskDependencies property is set to false, then specifying + * the dependencyAction property returns an error and the add task request + * fails with an invalid property value error; if you are calling the REST + * API directly, the HTTP status code is 400 (Bad Request). Possible values + * include: 'satisfy', 'block' * @member {string} [state] The current state of the task. Possible values * include: 'active', 'preparing', 'running', 'completed' * @member {date} [stateTransitionTime] The time at which the task entered @@ -204,17 +168,10 @@ class CloudTask { * properties are mutually exclusive; you must specify one but not both. * @member {object} [userIdentity.autoUser] The userName and autoUser * properties are mutually exclusive; you must specify one but not both. - * @member {string} [userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [userIdentity.autoUser.elevationLevel] nonAdmin - The - * auto user is a standard user without elevated access. admin - The auto - * user is a user with elevated access and operates with full Administrator - * permissions. The default value is nonAdmin. Possible values include: - * 'nonAdmin', 'admin' + * @member {string} [userIdentity.autoUser.scope] The default value is task. + * Possible values include: 'task', 'pool' + * @member {string} [userIdentity.autoUser.elevationLevel] The default value + * is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {object} [executionInfo] Information about the execution of the * task. * @member {date} [executionInfo.startTime] 'Running' corresponds to the diff --git a/lib/services/batch/lib/models/computeNode.js b/lib/services/batch/lib/models/computeNode.js index e2663430c5..b7e66ef95d 100644 --- a/lib/services/batch/lib/models/computeNode.js +++ b/lib/services/batch/lib/models/computeNode.js @@ -24,42 +24,14 @@ class ComputeNode { * all of its local files are deleted, and the ID is reclaimed and could be * reused for new nodes. * @member {string} [url] The URL of the compute node. - * @member {string} [state] The current state of the compute node. Values - * are: - * - * idle - The node is not currently running a task. - * rebooting - The node is rebooting. - * reimaging - The node is reimaging. - * running - The node is running one or more tasks (other than a start task). - * unusable - The node cannot be used for task execution due to errors. - * creating - The Batch service has obtained the underlying virtual machine - * from Azure Compute, but it has not yet started to join the pool. - * starting - the Batch service is starting on the underlying virtual - * machine. - * waitingforstarttask - The start task has started running on the compute - * node, but waitForSuccess is set and the start task has not yet completed. - * starttaskfailed - The start task has failed on the compute node (and - * exhausted all retries), and waitForSuccess is set. The node is not usable - * for running tasks. - * unknown - The Batch service has lost contact with the node, and does not - * know its true state. - * leavingpool - The node is leaving the pool, either because the user - * explicitly removed it or because the pool is resizing or autoscaling down. - * offline - The node is not currently running a task, and scheduling of new - * tasks to the node is disabled. - * preempted - 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' + * @member {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 + * available. Possible values include: 'idle', 'rebooting', 'reimaging', + * 'running', 'unusable', 'creating', 'starting', 'waitingForStartTask', + * 'startTaskFailed', 'unknown', 'leavingPool', 'offline', 'preempted' * @member {string} [schedulingState] Whether the compute node is available - * for task scheduling. Values are: - * - * enabled - Tasks can be scheduled on the node. - * disabled - No new tasks will be scheduled on the node. Tasks already - * running on the node may still run to completion. All nodes start with - * scheduling enabled. Possible values include: 'enabled', 'disabled' + * for task scheduling. Possible values include: 'enabled', 'disabled' * @member {date} [stateTransitionTime] The time at which the compute node * entered its current state. * @member {date} [lastBootTime] The time at which the compute node was @@ -91,15 +63,15 @@ class ComputeNode { * Batch supports all Azure VM sizes except STANDARD_A0 and those with * premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series). * @member {number} [totalTasksRun] The total number of job tasks completed - * on the compute node. This includes Job Preparation, Job Release and Job - * Manager tasks, but not the pool start task. + * on the compute node. This includes Job Manager tasks and normal tasks, but + * not Job Preparation, Job Release or Start tasks. * @member {number} [runningTasksCount] The total number of currently running - * job tasks on the compute node. This includes Job Preparation, Job Release, - * and Job Manager tasks, but not the pool start task. + * job tasks on the compute node. This includes Job Manager tasks and normal + * tasks, but not Job Preparation, Job Release or Start tasks. * @member {number} [totalTasksSucceeded] The total number of job tasks which * completed successfully (with exitCode 0) on the compute node. This - * includes Job Preparation, Job Release, and Job Manager tasks, but not the - * pool start task. + * includes Job Manager tasks and normal tasks, but not Job Preparation, Job + * Release or Start tasks. * @member {array} [recentTasks] A list of tasks whose state has recently * changed. This property is present only if at least one task has run on * this node since it was assigned to the pool. @@ -139,17 +111,10 @@ class ComputeNode { * @member {object} [startTask.userIdentity.autoUser] The userName and * autoUser properties are mutually exclusive; you must specify one but not * both. - * @member {string} [startTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [startTask.userIdentity.autoUser.elevationLevel] nonAdmin - * - The auto user is a standard user without elevated access. admin - The - * auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * @member {string} [startTask.userIdentity.autoUser.scope] The default value + * is task. Possible values include: 'task', 'pool' + * @member {string} [startTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {number} [startTask.maxTaskRetryCount] The Batch service retries a * task if its exit code is nonzero. Note that this value specifically * controls the number of retries. The Batch service will try the task once, @@ -170,13 +135,8 @@ class ComputeNode { * continue to be scheduled on the node. The default is false. * @member {object} [startTaskInfo] Runtime information about the execution * of the start task on the compute node. - * @member {string} [startTaskInfo.state] Values are: - * - * running - The start task is currently running. - * completed - The start task has exited with exit code 0, or the start task - * has failed and the retry limit has reached, or the start task process did - * not run due to task preparation errors (such as resource file download - * failures). Possible values include: 'running', 'completed' + * @member {string} [startTaskInfo.state] Possible values include: 'running', + * 'completed' * @member {date} [startTaskInfo.startTime] This value is reset every time * the task is restarted or retried (that is, this is the most recent time at * which the start task started running). diff --git a/lib/services/batch/lib/models/computeNodeUploadBatchServiceLogsOptions.js b/lib/services/batch/lib/models/computeNodeUploadBatchServiceLogsOptions.js new file mode 100644 index 0000000000..b84666aa52 --- /dev/null +++ b/lib/services/batch/lib/models/computeNodeUploadBatchServiceLogsOptions.js @@ -0,0 +1,80 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * Additional parameters for uploadBatchServiceLogs operation. + * + */ +class ComputeNodeUploadBatchServiceLogsOptions { + /** + * Create a ComputeNodeUploadBatchServiceLogsOptions. + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + * @member {uuid} [clientRequestId] The caller-generated request identity, in + * the form of a GUID with no decoration such as curly braces, e.g. + * 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + * @member {date} [ocpDate] The time the request was issued. Client libraries + * typically set this to the current system clock time; set it explicitly if + * you are calling the REST API directly. + */ + constructor() { + } + + /** + * Defines the metadata of ComputeNodeUploadBatchServiceLogsOptions + * + * @returns {object} metadata of ComputeNodeUploadBatchServiceLogsOptions + * + */ + mapper() { + return { + required: false, + type: { + name: 'Composite', + className: 'ComputeNodeUploadBatchServiceLogsOptions', + modelProperties: { + timeout: { + required: false, + defaultValue: 30, + type: { + name: 'Number' + } + }, + clientRequestId: { + required: false, + type: { + name: 'String' + } + }, + returnClientRequestId: { + required: false, + defaultValue: false, + type: { + name: 'Boolean' + } + }, + ocpDate: { + required: false, + type: { + name: 'DateTimeRfc1123' + } + } + } + } + }; + } +} + +module.exports = ComputeNodeUploadBatchServiceLogsOptions; diff --git a/lib/services/batch/lib/models/dataDisk.js b/lib/services/batch/lib/models/dataDisk.js index 8eaaf93fd6..094aec003b 100644 --- a/lib/services/batch/lib/models/dataDisk.js +++ b/lib/services/batch/lib/models/dataDisk.js @@ -22,24 +22,14 @@ class DataDisk { * identify each data disk. If attaching multiple disks, each should have a * distinct lun. * @member {string} [caching] The type of caching to be enabled for the data - * disks. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * disks. The default value for caching is none. For information about the + * caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @member {number} diskSizeGB The initial disk size in gigabytes. * @member {string} [storageAccountType] The storage account type to be used - * for the data disk. If omitted, the default is "Standard_LRS". Values are: - * - * Standard_LRS - The data disk should use standard locally redundant - * storage. - * Premium_LRS - The data disk should use premium locally redundant storage. - * Possible values include: 'Standard_LRS', 'Premium_LRS' + * for the data disk. If omitted, the default is "standard_lrs". Possible + * values include: 'StandardLRS', 'PremiumLRS' */ constructor() { } @@ -85,7 +75,7 @@ class DataDisk { serializedName: 'storageAccountType', type: { name: 'Enum', - allowedValues: [ 'Standard_LRS', 'Premium_LRS' ] + allowedValues: [ 'StandardLRS', 'PremiumLRS' ] } } } diff --git a/lib/services/batch/lib/models/exitCodeMapping.js b/lib/services/batch/lib/models/exitCodeMapping.js index 48cedb7fea..a09d9b0257 100644 --- a/lib/services/batch/lib/models/exitCodeMapping.js +++ b/lib/services/batch/lib/models/exitCodeMapping.js @@ -23,31 +23,19 @@ class ExitCodeMapping { * @member {number} code A process exit code. * @member {object} exitOptions How the Batch service should respond if the * task exits with this exit code. - * @member {string} [exitOptions.jobAction] Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' - * @member {string} [exitOptions.dependencyAction] Values are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit - * conditions. If the job's usesTaskDependencies property is set to false, - * then specifying the dependencyAction property returns an erro and the add - * task request fails with an invalid property value error; if you are - * calling the REST API directly, the HTTP status code is 400 (Bad Request). - * Possible values include: 'satisfy', 'block' + * @member {string} [exitOptions.jobAction] The default is none for exit code + * 0 and terminate for all other exit conditions. If the job's onTaskFailed + * property is noaction, then specifying this property returns an error and + * the add task request fails with an invalid property value error; if you + * are calling the REST API directly, the HTTP status code is 400 (Bad + * Request). Possible values include: 'none', 'disable', 'terminate' + * @member {string} [exitOptions.dependencyAction] The default is 'satisfy' + * for exit code 0, and 'block' for all other exit conditions. If the job's + * usesTaskDependencies property is set to false, then specifying the + * dependencyAction property returns an error and the add task request fails + * with an invalid property value error; if you are calling the REST API + * directly, the HTTP status code is 400 (Bad Request). Possible values + * include: 'satisfy', 'block' */ constructor() { } diff --git a/lib/services/batch/lib/models/exitCodeRangeMapping.js b/lib/services/batch/lib/models/exitCodeRangeMapping.js index 0a97ab78f6..1b6520f160 100644 --- a/lib/services/batch/lib/models/exitCodeRangeMapping.js +++ b/lib/services/batch/lib/models/exitCodeRangeMapping.js @@ -24,31 +24,19 @@ class ExitCodeRangeMapping { * @member {number} end The last exit code in the range. * @member {object} exitOptions How the Batch service should respond if the * task exits with an exit code in the range start to end (inclusive). - * @member {string} [exitOptions.jobAction] Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' - * @member {string} [exitOptions.dependencyAction] Values are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit - * conditions. If the job's usesTaskDependencies property is set to false, - * then specifying the dependencyAction property returns an erro and the add - * task request fails with an invalid property value error; if you are - * calling the REST API directly, the HTTP status code is 400 (Bad Request). - * Possible values include: 'satisfy', 'block' + * @member {string} [exitOptions.jobAction] The default is none for exit code + * 0 and terminate for all other exit conditions. If the job's onTaskFailed + * property is noaction, then specifying this property returns an error and + * the add task request fails with an invalid property value error; if you + * are calling the REST API directly, the HTTP status code is 400 (Bad + * Request). Possible values include: 'none', 'disable', 'terminate' + * @member {string} [exitOptions.dependencyAction] The default is 'satisfy' + * for exit code 0, and 'block' for all other exit conditions. If the job's + * usesTaskDependencies property is set to false, then specifying the + * dependencyAction property returns an error and the add task request fails + * with an invalid property value error; if you are calling the REST API + * directly, the HTTP status code is 400 (Bad Request). Possible values + * include: 'satisfy', 'block' */ constructor() { } diff --git a/lib/services/batch/lib/models/exitConditions.js b/lib/services/batch/lib/models/exitConditions.js index e2200f5895..edb2ef918d 100644 --- a/lib/services/batch/lib/models/exitConditions.js +++ b/lib/services/batch/lib/models/exitConditions.js @@ -26,60 +26,36 @@ class ExitConditions { * the Batch service should respond to them. * @member {object} [preProcessingError] How the Batch service should respond * if the task fails to start due to an error. - * @member {string} [preProcessingError.jobAction] Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' - * @member {string} [preProcessingError.dependencyAction] Values are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit - * conditions. If the job's usesTaskDependencies property is set to false, - * then specifying the dependencyAction property returns an erro and the add - * task request fails with an invalid property value error; if you are - * calling the REST API directly, the HTTP status code is 400 (Bad Request). - * Possible values include: 'satisfy', 'block' + * @member {string} [preProcessingError.jobAction] The default is none for + * exit code 0 and terminate for all other exit conditions. If the job's + * onTaskFailed property is noaction, then specifying this property returns + * an error and the add task request fails with an invalid property value + * error; if you are calling the REST API directly, the HTTP status code is + * 400 (Bad Request). Possible values include: 'none', 'disable', 'terminate' + * @member {string} [preProcessingError.dependencyAction] The default is + * 'satisfy' for exit code 0, and 'block' for all other exit conditions. If + * the job's usesTaskDependencies property is set to false, then specifying + * the dependencyAction property returns an error and the add task request + * fails with an invalid property value error; if you are calling the REST + * API directly, the HTTP status code is 400 (Bad Request). Possible values + * include: 'satisfy', 'block' * @member {object} [fileUploadError] How the Batch service should respond if * a file upload error occurs. If the task exited with an exit code that was * specified via exitCodes or exitCodeRanges, and then encountered a file * upload error, then the action specified by the exit code takes precedence. - * @member {string} [fileUploadError.jobAction] Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' - * @member {string} [fileUploadError.dependencyAction] Values are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit - * conditions. If the job's usesTaskDependencies property is set to false, - * then specifying the dependencyAction property returns an erro and the add - * task request fails with an invalid property value error; if you are - * calling the REST API directly, the HTTP status code is 400 (Bad Request). - * Possible values include: 'satisfy', 'block' + * @member {string} [fileUploadError.jobAction] The default is none for exit + * code 0 and terminate for all other exit conditions. If the job's + * onTaskFailed property is noaction, then specifying this property returns + * an error and the add task request fails with an invalid property value + * error; if you are calling the REST API directly, the HTTP status code is + * 400 (Bad Request). Possible values include: 'none', 'disable', 'terminate' + * @member {string} [fileUploadError.dependencyAction] The default is + * 'satisfy' for exit code 0, and 'block' for all other exit conditions. If + * the job's usesTaskDependencies property is set to false, then specifying + * the dependencyAction property returns an error and the add task request + * fails with an invalid property value error; if you are calling the REST + * API directly, the HTTP status code is 400 (Bad Request). Possible values + * include: 'satisfy', 'block' * @member {object} [default] How the Batch service should respond if the * task fails with an exit condition not covered by any of the other * properties. This value is used if the task exits with any nonzero exit @@ -88,31 +64,19 @@ class ExitConditions { * with a file upload error if the fileUploadError property is not present. * If you want non-default behaviour on exit code 0, you must list it * explicitly using the exitCodes or exitCodeRanges collection. - * @member {string} [default.jobAction] Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' - * @member {string} [default.dependencyAction] Values are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit - * conditions. If the job's usesTaskDependencies property is set to false, - * then specifying the dependencyAction property returns an erro and the add - * task request fails with an invalid property value error; if you are - * calling the REST API directly, the HTTP status code is 400 (Bad Request). - * Possible values include: 'satisfy', 'block' + * @member {string} [default.jobAction] The default is none for exit code 0 + * and terminate for all other exit conditions. If the job's onTaskFailed + * property is noaction, then specifying this property returns an error and + * the add task request fails with an invalid property value error; if you + * are calling the REST API directly, the HTTP status code is 400 (Bad + * Request). Possible values include: 'none', 'disable', 'terminate' + * @member {string} [default.dependencyAction] The default is 'satisfy' for + * exit code 0, and 'block' for all other exit conditions. If the job's + * usesTaskDependencies property is set to false, then specifying the + * dependencyAction property returns an error and the add task request fails + * with an invalid property value error; if you are calling the REST API + * directly, the HTTP status code is 400 (Bad Request). Possible values + * include: 'satisfy', 'block' */ constructor() { } diff --git a/lib/services/batch/lib/models/exitOptions.js b/lib/services/batch/lib/models/exitOptions.js index 9e0ab49009..9b3bb458eb 100644 --- a/lib/services/batch/lib/models/exitOptions.js +++ b/lib/services/batch/lib/models/exitOptions.js @@ -20,32 +20,21 @@ class ExitOptions { * Create a ExitOptions. * @member {string} [jobAction] An action to take on the job containing the * task, if the task completes with the given exit condition and the job's - * onTaskFailed property is 'performExitOptionsJobAction'. Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' + * onTaskFailed property is 'performExitOptionsJobAction'. The default is + * none for exit code 0 and terminate for all other exit conditions. If the + * job's onTaskFailed property is noaction, then specifying this property + * returns an error and the add task request fails with an invalid property + * value error; if you are calling the REST API directly, the HTTP status + * code is 400 (Bad Request). Possible values include: 'none', 'disable', + * 'terminate' * @member {string} [dependencyAction] An action that the Batch service - * performs on tasks that depend on this task. Values are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit - * conditions. If the job's usesTaskDependencies property is set to false, - * then specifying the dependencyAction property returns an erro and the add - * task request fails with an invalid property value error; if you are - * calling the REST API directly, the HTTP status code is 400 (Bad Request). - * Possible values include: 'satisfy', 'block' + * performs on tasks that depend on this task. The default is 'satisfy' for + * exit code 0, and 'block' for all other exit conditions. If the job's + * usesTaskDependencies property is set to false, then specifying the + * dependencyAction property returns an error and the add task request fails + * with an invalid property value error; if you are calling the REST API + * directly, the HTTP status code is 400 (Bad Request). Possible values + * include: 'satisfy', 'block' */ constructor() { } diff --git a/lib/services/batch/lib/models/inboundNATPool.js b/lib/services/batch/lib/models/inboundNATPool.js index bf545c33a2..16d84ea110 100644 --- a/lib/services/batch/lib/models/inboundNATPool.js +++ b/lib/services/batch/lib/models/inboundNATPool.js @@ -35,16 +35,16 @@ class InboundNATPool { * of external ports that will be used to provide inbound access to the * backendPort on individual compute nodes. Acceptable values range between 1 * and 65534 except ports from 50000 to 55000 which are reserved. All ranges - * within a pool must be distinct and cannot overlap. If any reserved or - * overlapping values are provided the request fails with HTTP status code - * 400. + * within a pool must be distinct and cannot overlap. Each range must contain + * at least 40 ports. If any reserved or overlapping values are provided the + * request fails with HTTP status code 400. * @member {number} frontendPortRangeEnd The last port number in the range of * external ports that will be used to provide inbound access to the * backendPort on individual compute nodes. Acceptable values range between 1 * and 65534 except ports from 50000 to 55000 which are reserved by the Batch - * service. All ranges within a pool must be distinct and cannot overlap. If - * any reserved or overlapping values are provided the request fails with - * HTTP status code 400. + * service. All ranges within a pool must be distinct and cannot overlap. + * Each range must contain at least 40 ports. If any reserved or overlapping + * values are provided the request fails with HTTP status code 400. * @member {array} [networkSecurityGroupRules] A list of network security * group rules that will be applied to the endpoint. The maximum number of * rules that can be specified across all the endpoints on a Batch pool is diff --git a/lib/services/batch/lib/models/index.d.ts b/lib/services/batch/lib/models/index.d.ts index 6af18b3a38..c347313c62 100644 --- a/lib/services/batch/lib/models/index.d.ts +++ b/lib/services/batch/lib/models/index.d.ts @@ -30,11 +30,10 @@ export { CloudError } from 'ms-rest-azure'; * this entry. * @member {string} vmSize The size of virtual machines in the pool. All VMs in * a pool are the same size. For information about available sizes of virtual - * machines for Cloud Services pools (pools created with - * cloudServiceConfiguration), see Sizes for Cloud Services - * (http://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/). - * Batch supports all Cloud Services VM sizes except ExtraSmall, STANDARD_A1_V2 - * and STANDARD_A2_V2. For information about available VM sizes for pools using + * machines in pools, see Choose a VM size for compute nodes in an Azure Batch + * pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes). Batch + * supports all Cloud Services VM sizes except ExtraSmall, STANDARD_A1_V2 and + * STANDARD_A2_V2. For information about available VM sizes for pools using * images from the Virtual Machines Marketplace (pools created with * virtualMachineConfiguration) see Sizes for Virtual Machines (Linux) * (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) @@ -684,32 +683,20 @@ export interface EnvironmentSetting { * * @member {string} [jobAction] An action to take on the job containing the * task, if the task completes with the given exit condition and the job's - * onTaskFailed property is 'performExitOptionsJobAction'. Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' + * onTaskFailed property is 'performExitOptionsJobAction'. The default is none + * for exit code 0 and terminate for all other exit conditions. If the job's + * onTaskFailed property is noaction, then specifying this property returns an + * error and the add task request fails with an invalid property value error; + * if you are calling the REST API directly, the HTTP status code is 400 (Bad + * Request). Possible values include: 'none', 'disable', 'terminate' * @member {string} [dependencyAction] An action that the Batch service - * performs on tasks that depend on this task. Values are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit - * conditions. If the job's usesTaskDependencies property is set to false, then - * specifying the dependencyAction property returns an erro and the add task - * request fails with an invalid property value error; if you are calling the - * REST API directly, the HTTP status code is 400 (Bad Request). Possible - * values include: 'satisfy', 'block' + * performs on tasks that depend on this task. The default is 'satisfy' for + * exit code 0, and 'block' for all other exit conditions. If the job's + * usesTaskDependencies property is set to false, then specifying the + * dependencyAction property returns an error and the add task request fails + * with an invalid property value error; if you are calling the REST API + * directly, the HTTP status code is 400 (Bad Request). Possible values + * include: 'satisfy', 'block' */ export interface ExitOptions { jobAction?: string; @@ -726,31 +713,19 @@ export interface ExitOptions { * @member {number} code A process exit code. * @member {object} exitOptions How the Batch service should respond if the * task exits with this exit code. - * @member {string} [exitOptions.jobAction] Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' - * @member {string} [exitOptions.dependencyAction] Values are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit - * conditions. If the job's usesTaskDependencies property is set to false, then - * specifying the dependencyAction property returns an erro and the add task - * request fails with an invalid property value error; if you are calling the - * REST API directly, the HTTP status code is 400 (Bad Request). Possible - * values include: 'satisfy', 'block' + * @member {string} [exitOptions.jobAction] The default is none for exit code 0 + * and terminate for all other exit conditions. If the job's onTaskFailed + * property is noaction, then specifying this property returns an error and the + * add task request fails with an invalid property value error; if you are + * calling the REST API directly, the HTTP status code is 400 (Bad Request). + * Possible values include: 'none', 'disable', 'terminate' + * @member {string} [exitOptions.dependencyAction] The default is 'satisfy' for + * exit code 0, and 'block' for all other exit conditions. If the job's + * usesTaskDependencies property is set to false, then specifying the + * dependencyAction property returns an error and the add task request fails + * with an invalid property value error; if you are calling the REST API + * directly, the HTTP status code is 400 (Bad Request). Possible values + * include: 'satisfy', 'block' */ export interface ExitCodeMapping { code: number; @@ -768,31 +743,19 @@ export interface ExitCodeMapping { * @member {number} end The last exit code in the range. * @member {object} exitOptions How the Batch service should respond if the * task exits with an exit code in the range start to end (inclusive). - * @member {string} [exitOptions.jobAction] Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' - * @member {string} [exitOptions.dependencyAction] Values are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit - * conditions. If the job's usesTaskDependencies property is set to false, then - * specifying the dependencyAction property returns an erro and the add task - * request fails with an invalid property value error; if you are calling the - * REST API directly, the HTTP status code is 400 (Bad Request). Possible - * values include: 'satisfy', 'block' + * @member {string} [exitOptions.jobAction] The default is none for exit code 0 + * and terminate for all other exit conditions. If the job's onTaskFailed + * property is noaction, then specifying this property returns an error and the + * add task request fails with an invalid property value error; if you are + * calling the REST API directly, the HTTP status code is 400 (Bad Request). + * Possible values include: 'none', 'disable', 'terminate' + * @member {string} [exitOptions.dependencyAction] The default is 'satisfy' for + * exit code 0, and 'block' for all other exit conditions. If the job's + * usesTaskDependencies property is set to false, then specifying the + * dependencyAction property returns an error and the add task request fails + * with an invalid property value error; if you are calling the REST API + * directly, the HTTP status code is 400 (Bad Request). Possible values + * include: 'satisfy', 'block' */ export interface ExitCodeRangeMapping { start: number; @@ -813,60 +776,36 @@ export interface ExitCodeRangeMapping { * Batch service should respond to them. * @member {object} [preProcessingError] How the Batch service should respond * if the task fails to start due to an error. - * @member {string} [preProcessingError.jobAction] Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' - * @member {string} [preProcessingError.dependencyAction] Values are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit - * conditions. If the job's usesTaskDependencies property is set to false, then - * specifying the dependencyAction property returns an erro and the add task - * request fails with an invalid property value error; if you are calling the - * REST API directly, the HTTP status code is 400 (Bad Request). Possible - * values include: 'satisfy', 'block' + * @member {string} [preProcessingError.jobAction] The default is none for exit + * code 0 and terminate for all other exit conditions. If the job's + * onTaskFailed property is noaction, then specifying this property returns an + * error and the add task request fails with an invalid property value error; + * if you are calling the REST API directly, the HTTP status code is 400 (Bad + * Request). Possible values include: 'none', 'disable', 'terminate' + * @member {string} [preProcessingError.dependencyAction] The default is + * 'satisfy' for exit code 0, and 'block' for all other exit conditions. If the + * job's usesTaskDependencies property is set to false, then specifying the + * dependencyAction property returns an error and the add task request fails + * with an invalid property value error; if you are calling the REST API + * directly, the HTTP status code is 400 (Bad Request). Possible values + * include: 'satisfy', 'block' * @member {object} [fileUploadError] How the Batch service should respond if a * file upload error occurs. If the task exited with an exit code that was * specified via exitCodes or exitCodeRanges, and then encountered a file * upload error, then the action specified by the exit code takes precedence. - * @member {string} [fileUploadError.jobAction] Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' - * @member {string} [fileUploadError.dependencyAction] Values are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit - * conditions. If the job's usesTaskDependencies property is set to false, then - * specifying the dependencyAction property returns an erro and the add task - * request fails with an invalid property value error; if you are calling the - * REST API directly, the HTTP status code is 400 (Bad Request). Possible - * values include: 'satisfy', 'block' + * @member {string} [fileUploadError.jobAction] The default is none for exit + * code 0 and terminate for all other exit conditions. If the job's + * onTaskFailed property is noaction, then specifying this property returns an + * error and the add task request fails with an invalid property value error; + * if you are calling the REST API directly, the HTTP status code is 400 (Bad + * Request). Possible values include: 'none', 'disable', 'terminate' + * @member {string} [fileUploadError.dependencyAction] The default is 'satisfy' + * for exit code 0, and 'block' for all other exit conditions. If the job's + * usesTaskDependencies property is set to false, then specifying the + * dependencyAction property returns an error and the add task request fails + * with an invalid property value error; if you are calling the REST API + * directly, the HTTP status code is 400 (Bad Request). Possible values + * include: 'satisfy', 'block' * @member {object} [default] How the Batch service should respond if the task * fails with an exit condition not covered by any of the other properties. * This value is used if the task exits with any nonzero exit code not listed @@ -875,31 +814,19 @@ export interface ExitCodeRangeMapping { * error if the fileUploadError property is not present. If you want * non-default behaviour on exit code 0, you must list it explicitly using the * exitCodes or exitCodeRanges collection. - * @member {string} [default.jobAction] Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' - * @member {string} [default.dependencyAction] Values are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit - * conditions. If the job's usesTaskDependencies property is set to false, then - * specifying the dependencyAction property returns an erro and the add task + * @member {string} [default.jobAction] The default is none for exit code 0 and + * terminate for all other exit conditions. If the job's onTaskFailed property + * is noaction, then specifying this property returns an error and the add task * request fails with an invalid property value error; if you are calling the - * REST API directly, the HTTP status code is 400 (Bad Request). Possible - * values include: 'satisfy', 'block' + * REST API directly, the HTTP status code is 400 (Bad Request). Possible + * values include: 'none', 'disable', 'terminate' + * @member {string} [default.dependencyAction] The default is 'satisfy' for + * exit code 0, and 'block' for all other exit conditions. If the job's + * usesTaskDependencies property is set to false, then specifying the + * dependencyAction property returns an error and the add task request fails + * with an invalid property value error; if you are calling the REST API + * directly, the HTTP status code is 400 (Bad Request). Possible values + * include: 'satisfy', 'block' */ export interface ExitConditions { exitCodes?: ExitCodeMapping[]; @@ -916,17 +843,10 @@ export interface ExitConditions { * @summary Specifies the parameters for the auto user that runs a task on the * Batch service. * - * @member {string} [scope] The scope for the auto user. Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [elevationLevel] The elevation level of the auto user. - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * @member {string} [scope] The scope for the auto user. The default value is + * task. Possible values include: 'task', 'pool' + * @member {string} [elevationLevel] The elevation level of the auto user. The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' */ export interface AutoUserSpecification { scope?: string; @@ -947,16 +867,10 @@ export interface AutoUserSpecification { * @member {object} [autoUser] The auto user under which the task is run. The * userName and autoUser properties are mutually exclusive; you must specify * one but not both. - * @member {string} [autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [autoUser.elevationLevel] nonAdmin - The auto user is a - * standard user without elevated access. admin - The auto user is a user with - * elevated access and operates with full Administrator permissions. The - * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * @member {string} [autoUser.scope] The default value is task. Possible values + * include: 'task', 'pool' + * @member {string} [autoUser.elevationLevel] The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' */ export interface UserIdentity { userName?: string; @@ -1114,7 +1028,7 @@ export interface OutputFileDestination { * conditions to perform the upload. * * @member {string} uploadCondition The conditions under which the task output - * file or set of files should be uploaded. The default is taskCompletion. + * file or set of files should be uploaded. The default is taskcompletion. * Possible values include: 'taskSuccess', 'taskFailure', 'taskCompletion' */ export interface OutputFileUploadOptions { @@ -1160,7 +1074,7 @@ export interface OutputFileUploadOptions { * @member {object} uploadOptions Additional options for the upload operation, * including under what conditions to perform the upload. * @member {string} [uploadOptions.uploadCondition] The default is - * taskCompletion. Possible values include: 'taskSuccess', 'taskFailure', + * taskcompletion. Possible values include: 'taskSuccess', 'taskFailure', * 'taskCompletion' */ export interface OutputFile { @@ -1265,16 +1179,10 @@ export interface OutputFile { * properties are mutually exclusive; you must specify one but not both. * @member {object} [userIdentity.autoUser] The userName and autoUser * properties are mutually exclusive; you must specify one but not both. - * @member {string} [userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [userIdentity.autoUser.elevationLevel] nonAdmin - The auto - * user is a standard user without elevated access. admin - The auto user is a - * user with elevated access and operates with full Administrator permissions. - * The default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * @member {string} [userIdentity.autoUser.scope] The default value is task. + * Possible values include: 'task', 'pool' + * @member {string} [userIdentity.autoUser.elevationLevel] The default value is + * nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {boolean} [runExclusive] Whether the Job Manager task requires * exclusive use of the compute node where it runs. If true, no other tasks * will run on the same compute node for as long as the Job Manager is running. @@ -1422,16 +1330,10 @@ export interface JobManagerTask { * properties are mutually exclusive; you must specify one but not both. * @member {object} [userIdentity.autoUser] The userName and autoUser * properties are mutually exclusive; you must specify one but not both. - * @member {string} [userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [userIdentity.autoUser.elevationLevel] nonAdmin - The auto - * user is a standard user without elevated access. admin - The auto user is a - * user with elevated access and operates with full Administrator permissions. - * The default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * @member {string} [userIdentity.autoUser.scope] The default value is task. + * Possible values include: 'task', 'pool' + * @member {string} [userIdentity.autoUser.elevationLevel] The default value is + * nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {boolean} [rerunOnNodeRebootAfterSuccess] Whether the Batch service * should rerun the Job Preparation task after a compute node reboots. The Job * Preparation task is always rerun if a compute node is reimaged, or if the @@ -1533,16 +1435,10 @@ export interface JobPreparationTask { * properties are mutually exclusive; you must specify one but not both. * @member {object} [userIdentity.autoUser] The userName and autoUser * properties are mutually exclusive; you must specify one but not both. - * @member {string} [userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [userIdentity.autoUser.elevationLevel] nonAdmin - The auto - * user is a standard user without elevated access. admin - The auto user is a - * user with elevated access and operates with full Administrator permissions. - * The default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * @member {string} [userIdentity.autoUser.scope] The default value is task. + * Possible values include: 'task', 'pool' + * @member {string} [userIdentity.autoUser.elevationLevel] The default value is + * nonAdmin. Possible values include: 'nonAdmin', 'admin' */ export interface JobReleaseTask { id?: string; @@ -1562,13 +1458,7 @@ export interface JobReleaseTask { * @summary Specifies how tasks should be distributed across compute nodes. * * @member {string} nodeFillType How tasks are distributed across compute nodes - * in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * in a pool. Possible values include: 'spread', 'pack' */ export interface TaskSchedulingPolicy { nodeFillType: string; @@ -1617,16 +1507,10 @@ export interface TaskSchedulingPolicy { * properties are mutually exclusive; you must specify one but not both. * @member {object} [userIdentity.autoUser] The userName and autoUser * properties are mutually exclusive; you must specify one but not both. - * @member {string} [userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [userIdentity.autoUser.elevationLevel] nonAdmin - The auto - * user is a standard user without elevated access. admin - The auto user is a - * user with elevated access and operates with full Administrator permissions. - * The default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * @member {string} [userIdentity.autoUser.scope] The default value is task. + * Possible values include: 'task', 'pool' + * @member {string} [userIdentity.autoUser.elevationLevel] The default value is + * nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {number} [maxTaskRetryCount] The maximum number of times the task * may be retried. The Batch service retries a task if its exit code is * nonzero. Note that this value specifically controls the number of retries. @@ -1670,7 +1554,7 @@ export interface StartTask { * is associated. This must be sha1. * @member {string} [storeLocation] The location of the certificate store on * the compute node into which to install the certificate. The default value is - * currentUser. This property is applicable only for pools configured with + * currentuser. This property is applicable only for pools configured with * Windows nodes (that is, created with cloudServiceConfiguration, or with * virtualMachineConfiguration using a Windows image reference). For Linux * compute nodes, the certificates are stored in a directory inside the task @@ -1687,14 +1571,8 @@ export interface StartTask { * Disallowed, TrustedPeople, TrustedPublisher, AuthRoot, AddressBook, but any * custom store name can also be used. The default value is My. * @member {array} [visibility] Which user accounts on the compute node should - * have access to the private data of the certificate. Values are: - * - * starttask - The user account under which the start task is run. - * task - The accounts under which job tasks are run. - * remoteuser - The accounts under which users remotely access the node. - * - * You can specify more than one visibility in this collection. The default is - * all accounts. + * have access to the private data of the certificate. You can specify more + * than one visibility in this collection. The default is all accounts. */ export interface CertificateReference { thumbprint: string; @@ -1758,12 +1636,6 @@ export interface CloudServiceConfiguration { * @summary Settings for the operating system disk of the virtual machine. * * @member {string} [caching] The type of caching to enable for the OS disk. - * Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * * The default value for caching is none. For information about the caching * options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. @@ -1797,23 +1669,14 @@ export interface WindowsConfiguration { * identify each data disk. If attaching multiple disks, each should have a * distinct lun. * @member {string} [caching] The type of caching to be enabled for the data - * disks. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * disks. The default value for caching is none. For information about the + * caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @member {number} diskSizeGB The initial disk size in gigabytes. * @member {string} [storageAccountType] The storage account type to be used - * for the data disk. If omitted, the default is "Standard_LRS". Values are: - * - * Standard_LRS - The data disk should use standard locally redundant storage. - * Premium_LRS - The data disk should use premium locally redundant storage. - * Possible values include: 'Standard_LRS', 'Premium_LRS' + * for the data disk. If omitted, the default is "standard_lrs". Possible + * values include: 'StandardLRS', 'PremiumLRS' */ export interface DataDisk { lun: number; @@ -1868,14 +1731,8 @@ export interface ContainerConfiguration { * https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. * @member {object} [osDisk] Settings for the operating system disk of the * Virtual Machine. - * @member {string} [osDisk.caching] Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * @member {string} [osDisk.caching] The default value for caching is none. For + * information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @member {string} nodeAgentSKUId The SKU of the Batch node agent to be @@ -1895,7 +1752,14 @@ export interface ContainerConfiguration { * @member {array} [dataDisks] The configuration for data disks attached to the * comptue 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. + * 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. When + * the node is removed from the pool, the disk and all data associated with it + * is also deleted. The disk is not formatted after being attached, it must be + * formatted before use - for more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} [licenseType] The type of on-premises license to be used * when deploying the operating system. This only applies to images that * contain the Windows operating system, and should only be used when you hold @@ -1975,15 +1839,16 @@ export interface NetworkSecurityGroupRule { * of external ports that will be used to provide inbound access to the * backendPort on individual compute nodes. Acceptable values range between 1 * and 65534 except ports from 50000 to 55000 which are reserved. All ranges - * within a pool must be distinct and cannot overlap. If any reserved or - * overlapping values are provided the request fails with HTTP status code 400. + * within a pool must be distinct and cannot overlap. Each range must contain + * at least 40 ports. If any reserved or overlapping values are provided the + * request fails with HTTP status code 400. * @member {number} frontendPortRangeEnd The last port number in the range of * external ports that will be used to provide inbound access to the * backendPort on individual compute nodes. Acceptable values range between 1 * and 65534 except ports from 50000 to 55000 which are reserved by the Batch - * service. All ranges within a pool must be distinct and cannot overlap. If - * any reserved or overlapping values are provided the request fails with HTTP - * status code 400. + * service. All ranges within a pool must be distinct and cannot overlap. Each + * range must contain at least 40 ports. If any reserved or overlapping values + * are provided the request fails with HTTP status code 400. * @member {array} [networkSecurityGroupRules] A list of network security group * rules that will be applied to the endpoint. The maximum number of rules that * can be specified across all the endpoints on a Batch pool is 25. If no @@ -2132,14 +1997,8 @@ export interface NetworkConfiguration { * Batch node agent to communicate with the Batch service see * https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. * @member {object} [virtualMachineConfiguration.osDisk] - * @member {string} [virtualMachineConfiguration.osDisk.caching] Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * @member {string} [virtualMachineConfiguration.osDisk.caching] The default + * value for caching is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @member {string} [virtualMachineConfiguration.nodeAgentSKUId] The Batch node @@ -2158,7 +2017,14 @@ export interface NetworkConfiguration { * omitted, the default value is true. * @member {array} [virtualMachineConfiguration.dataDisks] 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. + * 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. When the node is removed from the pool, the disk and all data + * associated with it is also deleted. The disk is not formatted after being + * attached, it must be formatted before use - for more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} [virtualMachineConfiguration.licenseType] This only applies * to images that contain the Windows operating system, and should only be used * when you hold valid on-premises licenses for the nodes which will be @@ -2292,17 +2158,10 @@ export interface NetworkConfiguration { * properties are mutually exclusive; you must specify one but not both. * @member {object} [startTask.userIdentity.autoUser] The userName and autoUser * properties are mutually exclusive; you must specify one but not both. - * @member {string} [startTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [startTask.userIdentity.autoUser.elevationLevel] nonAdmin - - * The auto user is a standard user without elevated access. admin - The auto - * user is a user with elevated access and operates with full Administrator - * permissions. The default value is nonAdmin. Possible values include: - * 'nonAdmin', 'admin' + * @member {string} [startTask.userIdentity.autoUser.scope] The default value + * is task. Possible values include: 'task', 'pool' + * @member {string} [startTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {number} [startTask.maxTaskRetryCount] The Batch service retries a * task if its exit code is nonzero. Note that this value specifically controls * the number of retries. The Batch service will try the task once, and may @@ -2378,15 +2237,8 @@ export interface PoolSpecification { * created for different purposes, you can specify this element to add a prefix * to the ID that is assigned. The prefix can be up to 20 characters long. * @member {string} poolLifetimeOption The minimum lifetime of created auto - * pools, and how multiple jobs on a schedule are assigned to pools. When the - * pool lifetime is jobSchedule the pool exists for the lifetime of the job - * schedule. The Batch Service creates the pool when it creates the first job - * on the schedule. You may apply this option only to job schedules, not to - * jobs. When the pool lifetime is job the pool exists for the lifetime of the - * job to which it is dedicated. The Batch service creates the pool when it - * creates the job. If the 'job' option is applied to a job schedule, the Batch - * service creates a new auto pool for every job created on the schedule. - * Possible values include: 'jobSchedule', 'job' + * pools, and how multiple jobs on a schedule are assigned to pools. Possible + * values include: 'jobSchedule', 'job' * @member {boolean} [keepAlive] Whether to keep an auto pool alive after its * lifetime expires. If false, the Batch service deletes the pool once its * lifetime (as determined by the poolLifetimeOption setting) expires; that is, @@ -2455,15 +2307,9 @@ export interface PoolSpecification { * Batch node agent to communicate with the Batch service see * https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. * @member {object} [pool.virtualMachineConfiguration.osDisk] - * @member {string} [pool.virtualMachineConfiguration.osDisk.caching] Values - * are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * @member {string} [pool.virtualMachineConfiguration.osDisk.caching] The + * default value for caching is none. For information about the caching options + * see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @member {string} [pool.virtualMachineConfiguration.nodeAgentSKUId] The Batch @@ -2482,7 +2328,14 @@ export interface PoolSpecification { * If omitted, the default value is true. * @member {array} [pool.virtualMachineConfiguration.dataDisks] 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. + * 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. When the node is removed from the pool, the disk and + * all data associated with it is also deleted. The disk is not formatted after + * being attached, it must be formatted before use - for more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} [pool.virtualMachineConfiguration.licenseType] This only * applies to images that contain the Windows operating system, and should only * be used when you hold valid on-premises licenses for the nodes which will be @@ -2611,17 +2464,10 @@ export interface PoolSpecification { * @member {object} [pool.startTask.userIdentity.autoUser] The userName and * autoUser properties are mutually exclusive; you must specify one but not * both. - * @member {string} [pool.startTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [pool.startTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * @member {string} [pool.startTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' + * @member {string} [pool.startTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {number} [pool.startTask.maxTaskRetryCount] The Batch service * retries a task if its exit code is nonzero. Note that this value * specifically controls the number of retries. The Batch service will try the @@ -2690,15 +2536,8 @@ export interface AutoPoolSpecification { * between pools created for different purposes, you can specify this element * to add a prefix to the ID that is assigned. The prefix can be up to 20 * characters long. - * @member {string} [autoPoolSpecification.poolLifetimeOption] When the pool - * lifetime is jobSchedule the pool exists for the lifetime of the job - * schedule. The Batch Service creates the pool when it creates the first job - * on the schedule. You may apply this option only to job schedules, not to - * jobs. When the pool lifetime is job the pool exists for the lifetime of the - * job to which it is dedicated. The Batch service creates the pool when it - * creates the job. If the 'job' option is applied to a job schedule, the Batch - * service creates a new auto pool for every job created on the schedule. - * Possible values include: 'jobSchedule', 'job' + * @member {string} [autoPoolSpecification.poolLifetimeOption] Possible values + * include: 'jobSchedule', 'job' * @member {boolean} [autoPoolSpecification.keepAlive] If false, the Batch * service deletes the pool once its lifetime (as determined by the * poolLifetimeOption setting) expires; that is, when the job or job schedule @@ -2778,15 +2617,9 @@ export interface AutoPoolSpecification { * @member {object} * [autoPoolSpecification.pool.virtualMachineConfiguration.osDisk] * @member {string} - * [autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * [autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] The + * default value for caching is none. For information about the caching options + * see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @member {string} @@ -2808,7 +2641,15 @@ export interface AutoPoolSpecification { * @member {array} * [autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} * [autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] This * only applies to images that contain the Windows operating system, and should @@ -2953,19 +2794,11 @@ export interface AutoPoolSpecification { * and autoUser properties are mutually exclusive; you must specify one but not * both. * @member {string} - * [autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] Values - * are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * [autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] The + * default value is task. Possible values include: 'task', 'pool' * @member {string} * [autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {number} [autoPoolSpecification.pool.startTask.maxTaskRetryCount] * The Batch service retries a task if its exit code is nonzero. Note that this * value specifically controls the number of retries. The Batch service will @@ -3028,16 +2861,16 @@ export interface PoolInformation { * completed state. Note that if a job contains no tasks, then all tasks are * considered complete. This option is therefore most commonly used with a Job * Manager task; if you want to use automatic job termination without a Job - * Manager, you should initially set onAllTasksComplete to noAction and update - * the job properties to set onAllTasksComplete to terminateJob once you have - * finished adding tasks. The default is noAction. Possible values include: + * Manager, you should initially set onAllTasksComplete to noaction and update + * the job properties to set onAllTasksComplete to terminatejob once you have + * finished adding tasks. The default is noaction. Possible values include: * 'noAction', 'terminateJob' * @member {string} [onTaskFailure] The action the Batch service should take * when any task fails in a job created under this schedule. A task is * considered to have failed if it have failed if has a failureInfo. A * failureInfo is set if the task completes with a non-zero exit code after * exhausting its retry count, or if there was an error starting the task, for - * example due to a resource file download error. The default is noAction. + * example due to a resource file download error. The default is noaction. * Possible values include: 'noAction', 'performExitOptionsJobAction' * @member {object} [constraints] The execution constraints for jobs created * under this schedule. @@ -3128,17 +2961,10 @@ export interface PoolInformation { * @member {object} [jobManagerTask.userIdentity.autoUser] The userName and * autoUser properties are mutually exclusive; you must specify one but not * both. - * @member {string} [jobManagerTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [jobManagerTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * @member {string} [jobManagerTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' + * @member {string} [jobManagerTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {boolean} [jobManagerTask.runExclusive] If true, no other tasks will * run on the same compute node for as long as the Job Manager is running. If * false, other tasks can run simultaneously with the Job Manager on a compute @@ -3240,18 +3066,10 @@ export interface PoolInformation { * @member {object} [jobPreparationTask.userIdentity.autoUser] The userName and * autoUser properties are mutually exclusive; you must specify one but not * both. - * @member {string} [jobPreparationTask.userIdentity.autoUser.scope] Values - * are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * @member {string} [jobPreparationTask.userIdentity.autoUser.scope] The + * default value is task. Possible values include: 'task', 'pool' * @member {string} [jobPreparationTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {boolean} [jobPreparationTask.rerunOnNodeRebootAfterSuccess] The Job * Preparation task is always rerun if a compute node is reimaged, or if the * Job Preparation task did not complete (e.g. because the reboot occurred @@ -3311,17 +3129,10 @@ export interface PoolInformation { * @member {object} [jobReleaseTask.userIdentity.autoUser] The userName and * autoUser properties are mutually exclusive; you must specify one but not * both. - * @member {string} [jobReleaseTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [jobReleaseTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * @member {string} [jobReleaseTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' + * @member {string} [jobReleaseTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {array} [commonEnvironmentSettings] A list of common environment * variable settings. These environment variables are set for all tasks in jobs * created under this schedule (including the Job Manager, Job Preparation and @@ -3348,14 +3159,7 @@ export interface PoolInformation { * distinguish between pools created for different purposes, you can specify * this element to add a prefix to the ID that is assigned. The prefix can be * up to 20 characters long. - * @member {string} [poolInfo.autoPoolSpecification.poolLifetimeOption] When - * the pool lifetime is jobSchedule the pool exists for the lifetime of the job - * schedule. The Batch Service creates the pool when it creates the first job - * on the schedule. You may apply this option only to job schedules, not to - * jobs. When the pool lifetime is job the pool exists for the lifetime of the - * job to which it is dedicated. The Batch service creates the pool when it - * creates the job. If the 'job' option is applied to a job schedule, the Batch - * service creates a new auto pool for every job created on the schedule. + * @member {string} [poolInfo.autoPoolSpecification.poolLifetimeOption] * Possible values include: 'jobSchedule', 'job' * @member {boolean} [poolInfo.autoPoolSpecification.keepAlive] If false, the * Batch service deletes the pool once its lifetime (as determined by the @@ -3441,12 +3245,6 @@ export interface PoolInformation { * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk] * @member {string} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * * The default value for caching is none. For information about the caching * options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. @@ -3470,7 +3268,15 @@ export interface PoolInformation { * @member {array} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] * This only applies to images that contain the Windows operating system, and @@ -3624,18 +3430,10 @@ export interface PoolInformation { * one but not both. * @member {string} * [poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. * The default value is task. Possible values include: 'task', 'pool' * @member {string} * [poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {number} * [poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] The Batch * service retries a task if its exit code is nonzero. Note that this value @@ -3877,10 +3675,10 @@ export interface JobScheduleStatistics { * contains no tasks, then all tasks are considered complete. This option is * therefore most commonly used with a Job Manager task; if you want to use * automatic job termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. The - * default is noAction. Possible values include: 'noAction', 'terminateJob' - * @member {string} [jobSpecification.onTaskFailure] The default is noAction. + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. The + * default is noaction. Possible values include: 'noAction', 'terminateJob' + * @member {string} [jobSpecification.onTaskFailure] The default is noaction. * Possible values include: 'noAction', 'performExitOptionsJobAction' * @member {object} [jobSpecification.constraints] * @member {moment.duration} [jobSpecification.constraints.maxWallClockTime] If @@ -3981,18 +3779,11 @@ export interface JobScheduleStatistics { * userName and autoUser properties are mutually exclusive; you must specify * one but not both. * @member {string} - * [jobSpecification.jobManagerTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * [jobSpecification.jobManagerTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' * @member {string} - * [jobSpecification.jobManagerTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * [jobSpecification.jobManagerTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {boolean} [jobSpecification.jobManagerTask.runExclusive] If true, no * other tasks will run on the same compute node for as long as the Job Manager * is running. If false, other tasks can run simultaneously with the Job @@ -4106,19 +3897,11 @@ export interface JobScheduleStatistics { * The userName and autoUser properties are mutually exclusive; you must * specify one but not both. * @member {string} - * [jobSpecification.jobPreparationTask.userIdentity.autoUser.scope] Values - * are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * [jobSpecification.jobPreparationTask.userIdentity.autoUser.scope] The + * default value is task. Possible values include: 'task', 'pool' * @member {string} * [jobSpecification.jobPreparationTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {boolean} * [jobSpecification.jobPreparationTask.rerunOnNodeRebootAfterSuccess] The Job * Preparation task is always rerun if a compute node is reimaged, or if the @@ -4186,18 +3969,11 @@ export interface JobScheduleStatistics { * userName and autoUser properties are mutually exclusive; you must specify * one but not both. * @member {string} - * [jobSpecification.jobReleaseTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * [jobSpecification.jobReleaseTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' * @member {string} - * [jobSpecification.jobReleaseTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * [jobSpecification.jobReleaseTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {array} [jobSpecification.commonEnvironmentSettings] Individual * tasks can override an environment setting specified here by specifying the * same setting name with a different value. @@ -4224,14 +4000,7 @@ export interface JobScheduleStatistics { * this element to add a prefix to the ID that is assigned. The prefix can be * up to 20 characters long. * @member {string} - * [jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption] When - * the pool lifetime is jobSchedule the pool exists for the lifetime of the job - * schedule. The Batch Service creates the pool when it creates the first job - * on the schedule. You may apply this option only to job schedules, not to - * jobs. When the pool lifetime is job the pool exists for the lifetime of the - * job to which it is dedicated. The Batch service creates the pool when it - * creates the job. If the 'job' option is applied to a job schedule, the Batch - * service creates a new auto pool for every job created on the schedule. + * [jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption] * Possible values include: 'jobSchedule', 'job' * @member {boolean} * [jobSpecification.poolInfo.autoPoolSpecification.keepAlive] If false, the @@ -4320,12 +4089,6 @@ export interface JobScheduleStatistics { * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk] * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * * The default value for caching is none. For information about the caching * options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. @@ -4349,7 +4112,15 @@ export interface JobScheduleStatistics { * @member {array} * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] * This only applies to images that contain the Windows operating system, and @@ -4511,18 +4282,10 @@ export interface JobScheduleStatistics { * specify one but not both. * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. * The default value is task. Possible values include: 'task', 'pool' * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {number} * [jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] * The Batch service retries a task if its exit code is nonzero. Note that this @@ -4684,10 +4447,10 @@ export interface CloudJobSchedule { * contains no tasks, then all tasks are considered complete. This option is * therefore most commonly used with a Job Manager task; if you want to use * automatic job termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. The - * default is noAction. Possible values include: 'noAction', 'terminateJob' - * @member {string} [jobSpecification.onTaskFailure] The default is noAction. + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. The + * default is noaction. Possible values include: 'noAction', 'terminateJob' + * @member {string} [jobSpecification.onTaskFailure] The default is noaction. * Possible values include: 'noAction', 'performExitOptionsJobAction' * @member {object} [jobSpecification.constraints] * @member {moment.duration} [jobSpecification.constraints.maxWallClockTime] If @@ -4788,18 +4551,11 @@ export interface CloudJobSchedule { * userName and autoUser properties are mutually exclusive; you must specify * one but not both. * @member {string} - * [jobSpecification.jobManagerTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * [jobSpecification.jobManagerTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' * @member {string} - * [jobSpecification.jobManagerTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * [jobSpecification.jobManagerTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {boolean} [jobSpecification.jobManagerTask.runExclusive] If true, no * other tasks will run on the same compute node for as long as the Job Manager * is running. If false, other tasks can run simultaneously with the Job @@ -4913,19 +4669,11 @@ export interface CloudJobSchedule { * The userName and autoUser properties are mutually exclusive; you must * specify one but not both. * @member {string} - * [jobSpecification.jobPreparationTask.userIdentity.autoUser.scope] Values - * are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * [jobSpecification.jobPreparationTask.userIdentity.autoUser.scope] The + * default value is task. Possible values include: 'task', 'pool' * @member {string} * [jobSpecification.jobPreparationTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {boolean} * [jobSpecification.jobPreparationTask.rerunOnNodeRebootAfterSuccess] The Job * Preparation task is always rerun if a compute node is reimaged, or if the @@ -4993,18 +4741,11 @@ export interface CloudJobSchedule { * userName and autoUser properties are mutually exclusive; you must specify * one but not both. * @member {string} - * [jobSpecification.jobReleaseTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * [jobSpecification.jobReleaseTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' * @member {string} - * [jobSpecification.jobReleaseTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * [jobSpecification.jobReleaseTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {array} [jobSpecification.commonEnvironmentSettings] Individual * tasks can override an environment setting specified here by specifying the * same setting name with a different value. @@ -5031,14 +4772,7 @@ export interface CloudJobSchedule { * this element to add a prefix to the ID that is assigned. The prefix can be * up to 20 characters long. * @member {string} - * [jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption] When - * the pool lifetime is jobSchedule the pool exists for the lifetime of the job - * schedule. The Batch Service creates the pool when it creates the first job - * on the schedule. You may apply this option only to job schedules, not to - * jobs. When the pool lifetime is job the pool exists for the lifetime of the - * job to which it is dedicated. The Batch service creates the pool when it - * creates the job. If the 'job' option is applied to a job schedule, the Batch - * service creates a new auto pool for every job created on the schedule. + * [jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption] * Possible values include: 'jobSchedule', 'job' * @member {boolean} * [jobSpecification.poolInfo.autoPoolSpecification.keepAlive] If false, the @@ -5127,12 +4861,6 @@ export interface CloudJobSchedule { * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk] * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * * The default value for caching is none. For information about the caching * options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. @@ -5156,7 +4884,15 @@ export interface CloudJobSchedule { * @member {array} * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] * This only applies to images that contain the Windows operating system, and @@ -5318,18 +5054,10 @@ export interface CloudJobSchedule { * specify one but not both. * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. * The default value is task. Possible values include: 'task', 'pool' * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {number} * [jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] * The Batch service retries a task if its exit code is nonzero. Note that this @@ -5441,10 +5169,10 @@ export interface JobSchedulingError { * to true. MaxWallClockTimeExpiry - the job reached its maxWallClockTime * constraint. TerminateJobSchedule - the job ran as part of a schedule, and * the schedule terminated. AllTasksComplete - the job's onAllTasksComplete - * attribute is set to terminateJob, and all tasks in the job are complete. + * attribute is set to terminatejob, and all tasks in the job are complete. * TaskFailed - the job's onTaskFailure attribute is set to * performExitOptionsJobAction, and a task in the job failed with an exit - * condition that specified a jobAction of terminateJob. Any other string is a + * condition that specified a jobAction of terminatejob. Any other string is a * user-defined reason specified in a call to the 'Terminate a job' operation. */ export interface JobExecutionInformation { @@ -5577,17 +5305,10 @@ export interface JobExecutionInformation { * @member {object} [jobManagerTask.userIdentity.autoUser] The userName and * autoUser properties are mutually exclusive; you must specify one but not * both. - * @member {string} [jobManagerTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [jobManagerTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * @member {string} [jobManagerTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' + * @member {string} [jobManagerTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {boolean} [jobManagerTask.runExclusive] If true, no other tasks will * run on the same compute node for as long as the Job Manager is running. If * false, other tasks can run simultaneously with the Job Manager on a compute @@ -5688,18 +5409,10 @@ export interface JobExecutionInformation { * @member {object} [jobPreparationTask.userIdentity.autoUser] The userName and * autoUser properties are mutually exclusive; you must specify one but not * both. - * @member {string} [jobPreparationTask.userIdentity.autoUser.scope] Values - * are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * @member {string} [jobPreparationTask.userIdentity.autoUser.scope] The + * default value is task. Possible values include: 'task', 'pool' * @member {string} [jobPreparationTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {boolean} [jobPreparationTask.rerunOnNodeRebootAfterSuccess] The Job * Preparation task is always rerun if a compute node is reimaged, or if the * Job Preparation task did not complete (e.g. because the reboot occurred @@ -5754,17 +5467,10 @@ export interface JobExecutionInformation { * @member {object} [jobReleaseTask.userIdentity.autoUser] The userName and * autoUser properties are mutually exclusive; you must specify one but not * both. - * @member {string} [jobReleaseTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [jobReleaseTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * @member {string} [jobReleaseTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' + * @member {string} [jobReleaseTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {array} [commonEnvironmentSettings] The list of common environment * variable settings. These environment variables are set for all tasks in the * job (including the Job Manager, Job Preparation and Job Release tasks). @@ -5790,14 +5496,7 @@ export interface JobExecutionInformation { * distinguish between pools created for different purposes, you can specify * this element to add a prefix to the ID that is assigned. The prefix can be * up to 20 characters long. - * @member {string} [poolInfo.autoPoolSpecification.poolLifetimeOption] When - * the pool lifetime is jobSchedule the pool exists for the lifetime of the job - * schedule. The Batch Service creates the pool when it creates the first job - * on the schedule. You may apply this option only to job schedules, not to - * jobs. When the pool lifetime is job the pool exists for the lifetime of the - * job to which it is dedicated. The Batch service creates the pool when it - * creates the job. If the 'job' option is applied to a job schedule, the Batch - * service creates a new auto pool for every job created on the schedule. + * @member {string} [poolInfo.autoPoolSpecification.poolLifetimeOption] * Possible values include: 'jobSchedule', 'job' * @member {boolean} [poolInfo.autoPoolSpecification.keepAlive] If false, the * Batch service deletes the pool once its lifetime (as determined by the @@ -5883,12 +5582,6 @@ export interface JobExecutionInformation { * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk] * @member {string} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * * The default value for caching is none. For information about the caching * options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. @@ -5912,7 +5605,15 @@ export interface JobExecutionInformation { * @member {array} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] * This only applies to images that contain the Windows operating system, and @@ -6066,18 +5767,10 @@ export interface JobExecutionInformation { * one but not both. * @member {string} * [poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. * The default value is task. Possible values include: 'task', 'pool' * @member {string} * [poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {number} * [poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] The Batch * service retries a task if its exit code is nonzero. Note that this value @@ -6117,21 +5810,14 @@ export interface JobExecutionInformation { * service does not assign any meaning to metadata; it is solely for the use of * user code. * @member {string} [onAllTasksComplete] The action the Batch service should - * take when all tasks in the job are in the completed state. noAction - do - * nothing. The job remains active unless terminated or disabled by some other - * means. terminateJob - terminate the job. The job's terminateReason is set to - * 'AllTasksComplete'. The default is noAction. Possible values include: - * 'noAction', 'terminateJob' + * take when all tasks in the job are in the completed state. The default is + * noaction. Possible values include: 'noAction', 'terminateJob' * @member {string} [onTaskFailure] The action the Batch service should take * when any task in the job fails. A task is considered to have failed if has a * failureInfo. A failureInfo is set if the task completes with a non-zero exit * code after exhausting its retry count, or if there was an error starting the - * task, for example due to a resource file download error. noAction - do - * nothing. performExitOptionsJobAction - take the action associated with the - * task exit condition in the task's exitConditions collection. (This may still - * result in no action being taken, if that is what the task specifies.) The - * default is noAction. Possible values include: 'noAction', - * 'performExitOptionsJobAction' + * task, for example due to a resource file download error. The default is + * noaction. Possible values include: 'noAction', 'performExitOptionsJobAction' * @member {array} [metadata] A list of name-value pairs associated with the * job as metadata. The Batch service does not assign any meaning to metadata; * it is solely for the use of user code. @@ -6160,10 +5846,10 @@ export interface JobExecutionInformation { * completed, and killJobOnCompletion was set to true. MaxWallClockTimeExpiry - * the job reached its maxWallClockTime constraint. TerminateJobSchedule - the * job ran as part of a schedule, and the schedule terminated. AllTasksComplete - * - the job's onAllTasksComplete attribute is set to terminateJob, and all + * - the job's onAllTasksComplete attribute is set to terminatejob, and all * tasks in the job are complete. TaskFailed - the job's onTaskFailure * attribute is set to performExitOptionsJobAction, and a task in the job - * failed with an exit condition that specified a jobAction of terminateJob. + * failed with an exit condition that specified a jobAction of terminatejob. * Any other string is a user-defined reason specified in a call to the * 'Terminate a job' operation. * @member {object} [stats] Resource usage statistics for the entire lifetime @@ -6331,17 +6017,10 @@ export interface CloudJob { * @member {object} [jobManagerTask.userIdentity.autoUser] The userName and * autoUser properties are mutually exclusive; you must specify one but not * both. - * @member {string} [jobManagerTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [jobManagerTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * @member {string} [jobManagerTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' + * @member {string} [jobManagerTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {boolean} [jobManagerTask.runExclusive] If true, no other tasks will * run on the same compute node for as long as the Job Manager is running. If * false, other tasks can run simultaneously with the Job Manager on a compute @@ -6443,18 +6122,10 @@ export interface CloudJob { * @member {object} [jobPreparationTask.userIdentity.autoUser] The userName and * autoUser properties are mutually exclusive; you must specify one but not * both. - * @member {string} [jobPreparationTask.userIdentity.autoUser.scope] Values - * are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * @member {string} [jobPreparationTask.userIdentity.autoUser.scope] The + * default value is task. Possible values include: 'task', 'pool' * @member {string} [jobPreparationTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {boolean} [jobPreparationTask.rerunOnNodeRebootAfterSuccess] The Job * Preparation task is always rerun if a compute node is reimaged, or if the * Job Preparation task did not complete (e.g. because the reboot occurred @@ -6513,17 +6184,10 @@ export interface CloudJob { * @member {object} [jobReleaseTask.userIdentity.autoUser] The userName and * autoUser properties are mutually exclusive; you must specify one but not * both. - * @member {string} [jobReleaseTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [jobReleaseTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * @member {string} [jobReleaseTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' + * @member {string} [jobReleaseTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {array} [commonEnvironmentSettings] The list of common environment * variable settings. These environment variables are set for all tasks in the * job (including the Job Manager, Job Preparation and Job Release tasks). @@ -6550,14 +6214,7 @@ export interface CloudJob { * distinguish between pools created for different purposes, you can specify * this element to add a prefix to the ID that is assigned. The prefix can be * up to 20 characters long. - * @member {string} [poolInfo.autoPoolSpecification.poolLifetimeOption] When - * the pool lifetime is jobSchedule the pool exists for the lifetime of the job - * schedule. The Batch Service creates the pool when it creates the first job - * on the schedule. You may apply this option only to job schedules, not to - * jobs. When the pool lifetime is job the pool exists for the lifetime of the - * job to which it is dedicated. The Batch service creates the pool when it - * creates the job. If the 'job' option is applied to a job schedule, the Batch - * service creates a new auto pool for every job created on the schedule. + * @member {string} [poolInfo.autoPoolSpecification.poolLifetimeOption] * Possible values include: 'jobSchedule', 'job' * @member {boolean} [poolInfo.autoPoolSpecification.keepAlive] If false, the * Batch service deletes the pool once its lifetime (as determined by the @@ -6643,12 +6300,6 @@ export interface CloudJob { * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk] * @member {string} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * * The default value for caching is none. For information about the caching * options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. @@ -6672,7 +6323,15 @@ export interface CloudJob { * @member {array} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] * This only applies to images that contain the Windows operating system, and @@ -6826,18 +6485,10 @@ export interface CloudJob { * one but not both. * @member {string} * [poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. * The default value is task. Possible values include: 'task', 'pool' * @member {string} * [poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {number} * [poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] The Batch * service retries a task if its exit code is nonzero. Note that this value @@ -6881,22 +6532,15 @@ export interface CloudJob { * job contains no tasks, then all tasks are considered complete. This option * is therefore most commonly used with a Job Manager task; if you want to use * automatic job termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. - * Permitted values are: noAction - do nothing. The job remains active unless - * terminated or disabled by some other means. terminateJob - terminate the - * job. The job's terminateReason is set to 'AllTasksComplete'. The default is - * noAction. Possible values include: 'noAction', 'terminateJob' + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. The + * default is noaction. Possible values include: 'noAction', 'terminateJob' * @member {string} [onTaskFailure] The action the Batch service should take * when any task in the job fails. A task is considered to have failed if has a * failureInfo. A failureInfo is set if the task completes with a non-zero exit * code after exhausting its retry count, or if there was an error starting the - * task, for example due to a resource file download error. noAction - do - * nothing. performExitOptionsJobAction - take the action associated with the - * task exit condition in the task's exitConditions collection. (This may still - * result in no action being taken, if that is what the task specifies.) The - * default is noAction. Possible values include: 'noAction', - * 'performExitOptionsJobAction' + * task, for example due to a resource file download error. The default is + * noaction. Possible values include: 'noAction', 'performExitOptionsJobAction' * @member {array} [metadata] A list of name-value pairs associated with the * job as metadata. The Batch service does not assign any meaning to metadata; * it is solely for the use of user code. @@ -6973,13 +6617,7 @@ export interface TaskFailureInformation { * @member {date} [endTime] The time at which the Job Preparation task * completed. This property is set only if the task is in the Completed state. * @member {string} state The current state of the Job Preparation task on the - * compute node. Values are: - * - * running - the task is currently running (including retrying). - * completed - the task has exited with exit code 0, or the task has exhausted - * its retry limit, or the Batch service was unable to start the task due to - * task preparation errors (such as resource file download failures). Possible - * values include: 'running', 'completed' + * compute node. Possible values include: 'running', 'completed' * @member {string} [taskRootDirectory] The root directory of the Job * Preparation task on the compute node. You can use this path to retrieve * files created by the task, such as log files. @@ -7056,12 +6694,7 @@ export interface JobPreparationTaskExecutionInformation { * @member {date} [endTime] The time at which the Job Release task completed. * This property is set only if the task is in the Completed state. * @member {string} state The current state of the Job Release task on the - * compute node. Values are: - * - * running - the task is currently running (including retrying). - * completed - the task has exited, or the Batch service was unable to start - * the task due to task preparation errors (such as resource file download - * failures). Possible values include: 'running', 'completed' + * compute node. Possible values include: 'running', 'completed' * @member {string} [taskRootDirectory] The root directory of the Job Release * task on the compute node. You can use this path to retrieve files created by * the task, such as log files. @@ -7129,13 +6762,8 @@ export interface JobReleaseTaskExecutionInformation { * started running. * @member {date} [jobPreparationTaskExecutionInfo.endTime] This property is * set only if the task is in the Completed state. - * @member {string} [jobPreparationTaskExecutionInfo.state] Values are: - * - * running - the task is currently running (including retrying). - * completed - the task has exited with exit code 0, or the task has exhausted - * its retry limit, or the Batch service was unable to start the task due to - * task preparation errors (such as resource file download failures). Possible - * values include: 'running', 'completed' + * @member {string} [jobPreparationTaskExecutionInfo.state] Possible values + * include: 'running', 'completed' * @member {string} [jobPreparationTaskExecutionInfo.taskRootDirectory] * @member {string} [jobPreparationTaskExecutionInfo.taskRootDirectoryUrl] * @member {number} [jobPreparationTaskExecutionInfo.exitCode] This parameter @@ -7184,12 +6812,8 @@ export interface JobReleaseTaskExecutionInformation { * running. * @member {date} [jobReleaseTaskExecutionInfo.endTime] This property is set * only if the task is in the Completed state. - * @member {string} [jobReleaseTaskExecutionInfo.state] Values are: - * - * running - the task is currently running (including retrying). - * completed - the task has exited, or the Batch service was unable to start - * the task due to task preparation errors (such as resource file download - * failures). Possible values include: 'running', 'completed' + * @member {string} [jobReleaseTaskExecutionInfo.state] Possible values + * include: 'running', 'completed' * @member {string} [jobReleaseTaskExecutionInfo.taskRootDirectory] * @member {string} [jobReleaseTaskExecutionInfo.taskRootDirectoryUrl] * @member {number} [jobReleaseTaskExecutionInfo.exitCode] This parameter is @@ -7243,11 +6867,7 @@ export interface JobPreparationAndReleaseTaskExecutionInformation { * @member {number} failed The number of tasks which failed. A task fails if * its result (found in the executionInfo property) is 'failure'. * @member {string} validationStatus Whether the task counts have been - * validated. If the validationStatus is unvalidated, then the Batch service - * has not been able to check state counts against the task states as reported - * in the List Tasks API. The validationStatus may be unvalidated if the job - * contains more than 200,000 tasks. Possible values include: 'validated', - * 'unvalidated' + * validated. Possible values include: 'validated', 'unvalidated' */ export interface TaskCounts { active: number; @@ -7346,30 +6966,12 @@ export interface ResizeError { * or enableAutoscale settings, changed. It does not factor in node-level * changes such as a compute node changing state. * @member {date} [creationTime] The creation time of the pool. - * @member {string} [state] The current state of the pool. Values are: - * - * active - The pool is available to run tasks subject to the availability of - * compute nodes. - * deleting - The user has requested that the pool be deleted, but the delete - * operation has not yet completed. - * upgrading - The user has requested that the operating system of the pool's - * nodes be upgraded, but the upgrade operation has not yet completed (that is, - * some nodes in the pool have not yet been upgraded). While upgrading, the - * pool may be able to run tasks (with reduced capacity) but this is not - * guaranteed. Possible values include: 'active', 'deleting', 'upgrading' + * @member {string} [state] The current state of the pool. Possible values + * include: 'active', 'deleting', 'upgrading' * @member {date} [stateTransitionTime] The time at which the pool entered its * current state. - * @member {string} [allocationState] Whether the pool is resizing. Values are: - * - * steady - The pool is not resizing. There are no changes to the number of - * nodes in the pool in progress. A pool enters this state when it is created - * and when no operations are being performed on the pool to change the number - * of dedicated nodes. - * resizing - The pool is resizing; that is, compute nodes are being added to - * or removed from the pool. - * stopping - The pool was resizing, but the user has requested that the resize - * be stopped, but the stop request has not yet been completed. Possible values - * include: 'steady', 'resizing', 'stopping' + * @member {string} [allocationState] Whether the pool is resizing. Possible + * values include: 'steady', 'resizing', 'stopping' * @member {date} [allocationStateTransitionTime] The time at which the pool * entered its current allocation state. * @member {string} [vmSize] The size of virtual machines in the pool. All @@ -7426,14 +7028,8 @@ export interface ResizeError { * Batch node agent to communicate with the Batch service see * https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. * @member {object} [virtualMachineConfiguration.osDisk] - * @member {string} [virtualMachineConfiguration.osDisk.caching] Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * @member {string} [virtualMachineConfiguration.osDisk.caching] The default + * value for caching is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @member {string} [virtualMachineConfiguration.nodeAgentSKUId] The Batch node @@ -7452,7 +7048,14 @@ export interface ResizeError { * omitted, the default value is true. * @member {array} [virtualMachineConfiguration.dataDisks] 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. + * 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. When the node is removed from the pool, the disk and all data + * associated with it is also deleted. The disk is not formatted after being + * attached, it must be formatted before use - for more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} [virtualMachineConfiguration.licenseType] This only applies * to images that contain the Windows operating system, and should only be used * when you hold valid on-premises licenses for the nodes which will be @@ -7583,17 +7186,10 @@ export interface ResizeError { * properties are mutually exclusive; you must specify one but not both. * @member {object} [startTask.userIdentity.autoUser] The userName and autoUser * properties are mutually exclusive; you must specify one but not both. - * @member {string} [startTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [startTask.userIdentity.autoUser.elevationLevel] nonAdmin - - * The auto user is a standard user without elevated access. admin - The auto - * user is a user with elevated access and operates with full Administrator - * permissions. The default value is nonAdmin. Possible values include: - * 'nonAdmin', 'admin' + * @member {string} [startTask.userIdentity.autoUser.scope] The default value + * is task. Possible values include: 'task', 'pool' + * @member {string} [startTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {number} [startTask.maxTaskRetryCount] The Batch service retries a * task if its exit code is nonzero. Note that this value specifically controls * the number of retries. The Batch service will try the task once, and may @@ -7766,14 +7362,8 @@ export interface CloudPool { * Batch node agent to communicate with the Batch service see * https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. * @member {object} [virtualMachineConfiguration.osDisk] - * @member {string} [virtualMachineConfiguration.osDisk.caching] Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * @member {string} [virtualMachineConfiguration.osDisk.caching] The default + * value for caching is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @member {string} [virtualMachineConfiguration.nodeAgentSKUId] The Batch node @@ -7792,7 +7382,14 @@ export interface CloudPool { * omitted, the default value is true. * @member {array} [virtualMachineConfiguration.dataDisks] 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. + * 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. When the node is removed from the pool, the disk and all data + * associated with it is also deleted. The disk is not formatted after being + * attached, it must be formatted before use - for more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} [virtualMachineConfiguration.licenseType] This only applies * to images that contain the Windows operating system, and should only be used * when you hold valid on-premises licenses for the nodes which will be @@ -7920,17 +7517,10 @@ export interface CloudPool { * properties are mutually exclusive; you must specify one but not both. * @member {object} [startTask.userIdentity.autoUser] The userName and autoUser * properties are mutually exclusive; you must specify one but not both. - * @member {string} [startTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [startTask.userIdentity.autoUser.elevationLevel] nonAdmin - - * The auto user is a standard user without elevated access. admin - The auto - * user is a user with elevated access and operates with full Administrator - * permissions. The default value is nonAdmin. Possible values include: - * 'nonAdmin', 'admin' + * @member {string} [startTask.userIdentity.autoUser.scope] The default value + * is task. Possible values include: 'task', 'pool' + * @member {string} [startTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {number} [startTask.maxTaskRetryCount] The Batch service retries a * task if its exit code is nonzero. Note that this value specifically controls * the number of retries. The Batch service will try the task once, and may @@ -8268,29 +7858,17 @@ export interface TaskDependencies { * @member {array} [exitConditions.exitCodes] * @member {array} [exitConditions.exitCodeRanges] * @member {object} [exitConditions.preProcessingError] - * @member {string} [exitConditions.preProcessingError.jobAction] Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' - * @member {string} [exitConditions.preProcessingError.dependencyAction] Values - * are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit + * @member {string} [exitConditions.preProcessingError.jobAction] The default + * is none for exit code 0 and terminate for all other exit conditions. If the + * job's onTaskFailed property is noaction, then specifying this property + * returns an error and the add task request fails with an invalid property + * value error; if you are calling the REST API directly, the HTTP status code + * is 400 (Bad Request). Possible values include: 'none', 'disable', + * 'terminate' + * @member {string} [exitConditions.preProcessingError.dependencyAction] The + * default is 'satisfy' for exit code 0, and 'block' for all other exit * conditions. If the job's usesTaskDependencies property is set to false, then - * specifying the dependencyAction property returns an erro and the add task + * specifying the dependencyAction property returns an error and the add task * request fails with an invalid property value error; if you are calling the * REST API directly, the HTTP status code is 400 (Bad Request). Possible * values include: 'satisfy', 'block' @@ -8298,29 +7876,17 @@ export interface TaskDependencies { * exit code that was specified via exitCodes or exitCodeRanges, and then * encountered a file upload error, then the action specified by the exit code * takes precedence. - * @member {string} [exitConditions.fileUploadError.jobAction] Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' - * @member {string} [exitConditions.fileUploadError.dependencyAction] Values - * are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit + * @member {string} [exitConditions.fileUploadError.jobAction] The default is + * none for exit code 0 and terminate for all other exit conditions. If the + * job's onTaskFailed property is noaction, then specifying this property + * returns an error and the add task request fails with an invalid property + * value error; if you are calling the REST API directly, the HTTP status code + * is 400 (Bad Request). Possible values include: 'none', 'disable', + * 'terminate' + * @member {string} [exitConditions.fileUploadError.dependencyAction] The + * default is 'satisfy' for exit code 0, and 'block' for all other exit * conditions. If the job's usesTaskDependencies property is set to false, then - * specifying the dependencyAction property returns an erro and the add task + * specifying the dependencyAction property returns an error and the add task * request fails with an invalid property value error; if you are calling the * REST API directly, the HTTP status code is 400 (Bad Request). Possible * values include: 'satisfy', 'block' @@ -8331,31 +7897,19 @@ export interface TaskDependencies { * the fileUploadError property is not present. If you want non-default * behaviour on exit code 0, you must list it explicitly using the exitCodes or * exitCodeRanges collection. - * @member {string} [exitConditions.default.jobAction] Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' - * @member {string} [exitConditions.default.dependencyAction] Values are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit - * conditions. If the job's usesTaskDependencies property is set to false, then - * specifying the dependencyAction property returns an erro and the add task - * request fails with an invalid property value error; if you are calling the - * REST API directly, the HTTP status code is 400 (Bad Request). Possible - * values include: 'satisfy', 'block' + * @member {string} [exitConditions.default.jobAction] The default is none for + * exit code 0 and terminate for all other exit conditions. If the job's + * onTaskFailed property is noaction, then specifying this property returns an + * error and the add task request fails with an invalid property value error; + * if you are calling the REST API directly, the HTTP status code is 400 (Bad + * Request). Possible values include: 'none', 'disable', 'terminate' + * @member {string} [exitConditions.default.dependencyAction] The default is + * 'satisfy' for exit code 0, and 'block' for all other exit conditions. If the + * job's usesTaskDependencies property is set to false, then specifying the + * dependencyAction property returns an error and the add task request fails + * with an invalid property value error; if you are calling the REST API + * directly, the HTTP status code is 400 (Bad Request). Possible values + * include: 'satisfy', 'block' * @member {string} [state] The current state of the task. Possible values * include: 'active', 'preparing', 'running', 'completed' * @member {date} [stateTransitionTime] The time at which the task entered its @@ -8431,16 +7985,10 @@ export interface TaskDependencies { * properties are mutually exclusive; you must specify one but not both. * @member {object} [userIdentity.autoUser] The userName and autoUser * properties are mutually exclusive; you must specify one but not both. - * @member {string} [userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [userIdentity.autoUser.elevationLevel] nonAdmin - The auto - * user is a standard user without elevated access. admin - The auto user is a - * user with elevated access and operates with full Administrator permissions. - * The default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * @member {string} [userIdentity.autoUser.scope] The default value is task. + * Possible values include: 'task', 'pool' + * @member {string} [userIdentity.autoUser.elevationLevel] The default value is + * nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {object} [executionInfo] Information about the execution of the * task. * @member {date} [executionInfo.startTime] 'Running' corresponds to the @@ -8643,29 +8191,17 @@ export interface CloudTask { * @member {array} [exitConditions.exitCodes] * @member {array} [exitConditions.exitCodeRanges] * @member {object} [exitConditions.preProcessingError] - * @member {string} [exitConditions.preProcessingError.jobAction] Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' - * @member {string} [exitConditions.preProcessingError.dependencyAction] Values - * are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit + * @member {string} [exitConditions.preProcessingError.jobAction] The default + * is none for exit code 0 and terminate for all other exit conditions. If the + * job's onTaskFailed property is noaction, then specifying this property + * returns an error and the add task request fails with an invalid property + * value error; if you are calling the REST API directly, the HTTP status code + * is 400 (Bad Request). Possible values include: 'none', 'disable', + * 'terminate' + * @member {string} [exitConditions.preProcessingError.dependencyAction] The + * default is 'satisfy' for exit code 0, and 'block' for all other exit * conditions. If the job's usesTaskDependencies property is set to false, then - * specifying the dependencyAction property returns an erro and the add task + * specifying the dependencyAction property returns an error and the add task * request fails with an invalid property value error; if you are calling the * REST API directly, the HTTP status code is 400 (Bad Request). Possible * values include: 'satisfy', 'block' @@ -8673,29 +8209,17 @@ export interface CloudTask { * exit code that was specified via exitCodes or exitCodeRanges, and then * encountered a file upload error, then the action specified by the exit code * takes precedence. - * @member {string} [exitConditions.fileUploadError.jobAction] Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' - * @member {string} [exitConditions.fileUploadError.dependencyAction] Values - * are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit + * @member {string} [exitConditions.fileUploadError.jobAction] The default is + * none for exit code 0 and terminate for all other exit conditions. If the + * job's onTaskFailed property is noaction, then specifying this property + * returns an error and the add task request fails with an invalid property + * value error; if you are calling the REST API directly, the HTTP status code + * is 400 (Bad Request). Possible values include: 'none', 'disable', + * 'terminate' + * @member {string} [exitConditions.fileUploadError.dependencyAction] The + * default is 'satisfy' for exit code 0, and 'block' for all other exit * conditions. If the job's usesTaskDependencies property is set to false, then - * specifying the dependencyAction property returns an erro and the add task + * specifying the dependencyAction property returns an error and the add task * request fails with an invalid property value error; if you are calling the * REST API directly, the HTTP status code is 400 (Bad Request). Possible * values include: 'satisfy', 'block' @@ -8706,31 +8230,19 @@ export interface CloudTask { * the fileUploadError property is not present. If you want non-default * behaviour on exit code 0, you must list it explicitly using the exitCodes or * exitCodeRanges collection. - * @member {string} [exitConditions.default.jobAction] Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' - * @member {string} [exitConditions.default.dependencyAction] Values are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit - * conditions. If the job's usesTaskDependencies property is set to false, then - * specifying the dependencyAction property returns an erro and the add task - * request fails with an invalid property value error; if you are calling the - * REST API directly, the HTTP status code is 400 (Bad Request). Possible - * values include: 'satisfy', 'block' + * @member {string} [exitConditions.default.jobAction] The default is none for + * exit code 0 and terminate for all other exit conditions. If the job's + * onTaskFailed property is noaction, then specifying this property returns an + * error and the add task request fails with an invalid property value error; + * if you are calling the REST API directly, the HTTP status code is 400 (Bad + * Request). Possible values include: 'none', 'disable', 'terminate' + * @member {string} [exitConditions.default.dependencyAction] The default is + * 'satisfy' for exit code 0, and 'block' for all other exit conditions. If the + * job's usesTaskDependencies property is set to false, then specifying the + * dependencyAction property returns an error and the add task request fails + * with an invalid property value error; if you are calling the REST API + * directly, the HTTP status code is 400 (Bad Request). Possible values + * include: 'satisfy', 'block' * @member {array} [resourceFiles] A list of files that the Batch service will * download to the compute node before running the command line. For * multi-instance tasks, the resource files will only be downloaded to the @@ -8770,16 +8282,10 @@ export interface CloudTask { * properties are mutually exclusive; you must specify one but not both. * @member {object} [userIdentity.autoUser] The userName and autoUser * properties are mutually exclusive; you must specify one but not both. - * @member {string} [userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [userIdentity.autoUser.elevationLevel] nonAdmin - The auto - * user is a standard user without elevated access. admin - The auto user is a - * user with elevated access and operates with full Administrator permissions. - * The default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * @member {string} [userIdentity.autoUser.scope] The default value is task. + * Possible values include: 'task', 'pool' + * @member {string} [userIdentity.autoUser.elevationLevel] The default value is + * nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {object} [multiInstanceSettings] An object that indicates that the * task is a multi-instance task, and contains information about how to run the * multi-instance task. @@ -8922,14 +8428,8 @@ export interface BatchError { * @summary Result for a single task added as part of an add task collection * operation. * - * @member {string} status The status of the add task request. Values are: - * - * success - Task was added successfully. - * clienterror - Task failed to add due to a client error and should not be - * retried without modifying the request as appropriate. - * servererror - Task failed to add due to a server error and can be retried - * without modification. Possible values include: 'success', 'clientError', - * 'serverError' + * @member {string} status The status of the add task request. Possible values + * include: 'success', 'clientError', 'serverError' * @member {string} taskId The ID of the task for which this is the result. * @member {string} [eTag] The ETag of the task, if the task was successfully * added. You can use this to detect whether the task has changed between @@ -9141,13 +8641,7 @@ export interface TaskInformation { * @summary Information about a start task running on a compute node. * * @member {string} state The state of the start task on the compute node. - * Values are: - * - * running - The start task is currently running. - * completed - The start task has exited with exit code 0, or the start task - * has failed and the retry limit has reached, or the start task process did - * not run due to task preparation errors (such as resource file download - * failures). Possible values include: 'running', 'completed' + * Possible values include: 'running', 'completed' * @member {date} startTime The time at which the start task started running. * This value is reset every time the task is restarted or retried (that is, * this is the most recent time at which the start task started running). @@ -9276,40 +8770,14 @@ export interface ComputeNodeEndpointConfiguration { * all of its local files are deleted, and the ID is reclaimed and could be * reused for new nodes. * @member {string} [url] The URL of the compute node. - * @member {string} [state] The current state of the compute node. Values are: - * - * idle - The node is not currently running a task. - * rebooting - The node is rebooting. - * reimaging - The node is reimaging. - * running - The node is running one or more tasks (other than a start task). - * unusable - The node cannot be used for task execution due to errors. - * creating - The Batch service has obtained the underlying virtual machine - * from Azure Compute, but it has not yet started to join the pool. - * starting - the Batch service is starting on the underlying virtual machine. - * waitingforstarttask - The start task has started running on the compute - * node, but waitForSuccess is set and the start task has not yet completed. - * starttaskfailed - The start task has failed on the compute node (and - * exhausted all retries), and waitForSuccess is set. The node is not usable - * for running tasks. - * unknown - The Batch service has lost contact with the node, and does not - * know its true state. - * leavingpool - The node is leaving the pool, either because the user - * explicitly removed it or because the pool is resizing or autoscaling down. - * offline - The node is not currently running a task, and scheduling of new - * tasks to the node is disabled. - * preempted - 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' + * @member {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 + * available. Possible values include: 'idle', 'rebooting', 'reimaging', + * 'running', 'unusable', 'creating', 'starting', 'waitingForStartTask', + * 'startTaskFailed', 'unknown', 'leavingPool', 'offline', 'preempted' * @member {string} [schedulingState] Whether the compute node is available for - * task scheduling. Values are: - * - * enabled - Tasks can be scheduled on the node. - * disabled - No new tasks will be scheduled on the node. Tasks already running - * on the node may still run to completion. All nodes start with scheduling - * enabled. Possible values include: 'enabled', 'disabled' + * task scheduling. Possible values include: 'enabled', 'disabled' * @member {date} [stateTransitionTime] The time at which the compute node * entered its current state. * @member {date} [lastBootTime] The time at which the compute node was @@ -9340,15 +8808,15 @@ export interface ComputeNodeEndpointConfiguration { * Batch supports all Azure VM sizes except STANDARD_A0 and those with premium * storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series). * @member {number} [totalTasksRun] The total number of job tasks completed on - * the compute node. This includes Job Preparation, Job Release and Job Manager - * tasks, but not the pool start task. + * the compute node. This includes Job Manager tasks and normal tasks, but not + * Job Preparation, Job Release or Start tasks. * @member {number} [runningTasksCount] The total number of currently running - * job tasks on the compute node. This includes Job Preparation, Job Release, - * and Job Manager tasks, but not the pool start task. + * job tasks on the compute node. This includes Job Manager tasks and normal + * tasks, but not Job Preparation, Job Release or Start tasks. * @member {number} [totalTasksSucceeded] The total number of job tasks which * completed successfully (with exitCode 0) on the compute node. This includes - * Job Preparation, Job Release, and Job Manager tasks, but not the pool start - * task. + * Job Manager tasks and normal tasks, but not Job Preparation, Job Release or + * Start tasks. * @member {array} [recentTasks] A list of tasks whose state has recently * changed. This property is present only if at least one task has run on this * node since it was assigned to the pool. @@ -9385,17 +8853,10 @@ export interface ComputeNodeEndpointConfiguration { * properties are mutually exclusive; you must specify one but not both. * @member {object} [startTask.userIdentity.autoUser] The userName and autoUser * properties are mutually exclusive; you must specify one but not both. - * @member {string} [startTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [startTask.userIdentity.autoUser.elevationLevel] nonAdmin - - * The auto user is a standard user without elevated access. admin - The auto - * user is a user with elevated access and operates with full Administrator - * permissions. The default value is nonAdmin. Possible values include: - * 'nonAdmin', 'admin' + * @member {string} [startTask.userIdentity.autoUser.scope] The default value + * is task. Possible values include: 'task', 'pool' + * @member {string} [startTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {number} [startTask.maxTaskRetryCount] The Batch service retries a * task if its exit code is nonzero. Note that this value specifically controls * the number of retries. The Batch service will try the task once, and may @@ -9415,13 +8876,8 @@ export interface ComputeNodeEndpointConfiguration { * scheduled on the node. The default is false. * @member {object} [startTaskInfo] Runtime information about the execution of * the start task on the compute node. - * @member {string} [startTaskInfo.state] Values are: - * - * running - The start task is currently running. - * completed - The start task has exited with exit code 0, or the start task - * has failed and the retry limit has reached, or the start task process did - * not run due to task preparation errors (such as resource file download - * failures). Possible values include: 'running', 'completed' + * @member {string} [startTaskInfo.state] Possible values include: 'running', + * 'completed' * @member {date} [startTaskInfo.startTime] This value is reset every time the * task is restarted or retried (that is, this is the most recent time at which * the start task started running). @@ -9610,10 +9066,10 @@ export interface ComputeNodeGetRemoteLoginSettingsResult { * contains no tasks, then all tasks are considered complete. This option is * therefore most commonly used with a Job Manager task; if you want to use * automatic job termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. The - * default is noAction. Possible values include: 'noAction', 'terminateJob' - * @member {string} [jobSpecification.onTaskFailure] The default is noAction. + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. The + * default is noaction. Possible values include: 'noAction', 'terminateJob' + * @member {string} [jobSpecification.onTaskFailure] The default is noaction. * Possible values include: 'noAction', 'performExitOptionsJobAction' * @member {object} [jobSpecification.constraints] * @member {moment.duration} [jobSpecification.constraints.maxWallClockTime] If @@ -9714,18 +9170,11 @@ export interface ComputeNodeGetRemoteLoginSettingsResult { * userName and autoUser properties are mutually exclusive; you must specify * one but not both. * @member {string} - * [jobSpecification.jobManagerTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * [jobSpecification.jobManagerTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' * @member {string} - * [jobSpecification.jobManagerTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * [jobSpecification.jobManagerTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {boolean} [jobSpecification.jobManagerTask.runExclusive] If true, no * other tasks will run on the same compute node for as long as the Job Manager * is running. If false, other tasks can run simultaneously with the Job @@ -9839,19 +9288,11 @@ export interface ComputeNodeGetRemoteLoginSettingsResult { * The userName and autoUser properties are mutually exclusive; you must * specify one but not both. * @member {string} - * [jobSpecification.jobPreparationTask.userIdentity.autoUser.scope] Values - * are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * [jobSpecification.jobPreparationTask.userIdentity.autoUser.scope] The + * default value is task. Possible values include: 'task', 'pool' * @member {string} * [jobSpecification.jobPreparationTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {boolean} * [jobSpecification.jobPreparationTask.rerunOnNodeRebootAfterSuccess] The Job * Preparation task is always rerun if a compute node is reimaged, or if the @@ -9919,18 +9360,11 @@ export interface ComputeNodeGetRemoteLoginSettingsResult { * userName and autoUser properties are mutually exclusive; you must specify * one but not both. * @member {string} - * [jobSpecification.jobReleaseTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * [jobSpecification.jobReleaseTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' * @member {string} - * [jobSpecification.jobReleaseTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * [jobSpecification.jobReleaseTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {array} [jobSpecification.commonEnvironmentSettings] Individual * tasks can override an environment setting specified here by specifying the * same setting name with a different value. @@ -9957,14 +9391,7 @@ export interface ComputeNodeGetRemoteLoginSettingsResult { * this element to add a prefix to the ID that is assigned. The prefix can be * up to 20 characters long. * @member {string} - * [jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption] When - * the pool lifetime is jobSchedule the pool exists for the lifetime of the job - * schedule. The Batch Service creates the pool when it creates the first job - * on the schedule. You may apply this option only to job schedules, not to - * jobs. When the pool lifetime is job the pool exists for the lifetime of the - * job to which it is dedicated. The Batch service creates the pool when it - * creates the job. If the 'job' option is applied to a job schedule, the Batch - * service creates a new auto pool for every job created on the schedule. + * [jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption] * Possible values include: 'jobSchedule', 'job' * @member {boolean} * [jobSpecification.poolInfo.autoPoolSpecification.keepAlive] If false, the @@ -10053,12 +9480,6 @@ export interface ComputeNodeGetRemoteLoginSettingsResult { * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk] * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * * The default value for caching is none. For information about the caching * options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. @@ -10082,7 +9503,15 @@ export interface ComputeNodeGetRemoteLoginSettingsResult { * @member {array} * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] * This only applies to images that contain the Windows operating system, and @@ -10244,18 +9673,10 @@ export interface ComputeNodeGetRemoteLoginSettingsResult { * specify one but not both. * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. * The default value is task. Possible values include: 'task', 'pool' * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {number} * [jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] * The Batch service retries a task if its exit code is nonzero. Note that this @@ -10366,10 +9787,10 @@ export interface JobSchedulePatchParameter { * contains no tasks, then all tasks are considered complete. This option is * therefore most commonly used with a Job Manager task; if you want to use * automatic job termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. The - * default is noAction. Possible values include: 'noAction', 'terminateJob' - * @member {string} [jobSpecification.onTaskFailure] The default is noAction. + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. The + * default is noaction. Possible values include: 'noAction', 'terminateJob' + * @member {string} [jobSpecification.onTaskFailure] The default is noaction. * Possible values include: 'noAction', 'performExitOptionsJobAction' * @member {object} [jobSpecification.constraints] * @member {moment.duration} [jobSpecification.constraints.maxWallClockTime] If @@ -10470,18 +9891,11 @@ export interface JobSchedulePatchParameter { * userName and autoUser properties are mutually exclusive; you must specify * one but not both. * @member {string} - * [jobSpecification.jobManagerTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * [jobSpecification.jobManagerTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' * @member {string} - * [jobSpecification.jobManagerTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * [jobSpecification.jobManagerTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {boolean} [jobSpecification.jobManagerTask.runExclusive] If true, no * other tasks will run on the same compute node for as long as the Job Manager * is running. If false, other tasks can run simultaneously with the Job @@ -10595,19 +10009,11 @@ export interface JobSchedulePatchParameter { * The userName and autoUser properties are mutually exclusive; you must * specify one but not both. * @member {string} - * [jobSpecification.jobPreparationTask.userIdentity.autoUser.scope] Values - * are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * [jobSpecification.jobPreparationTask.userIdentity.autoUser.scope] The + * default value is task. Possible values include: 'task', 'pool' * @member {string} * [jobSpecification.jobPreparationTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {boolean} * [jobSpecification.jobPreparationTask.rerunOnNodeRebootAfterSuccess] The Job * Preparation task is always rerun if a compute node is reimaged, or if the @@ -10675,18 +10081,11 @@ export interface JobSchedulePatchParameter { * userName and autoUser properties are mutually exclusive; you must specify * one but not both. * @member {string} - * [jobSpecification.jobReleaseTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * [jobSpecification.jobReleaseTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' * @member {string} - * [jobSpecification.jobReleaseTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * [jobSpecification.jobReleaseTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {array} [jobSpecification.commonEnvironmentSettings] Individual * tasks can override an environment setting specified here by specifying the * same setting name with a different value. @@ -10713,14 +10112,7 @@ export interface JobSchedulePatchParameter { * this element to add a prefix to the ID that is assigned. The prefix can be * up to 20 characters long. * @member {string} - * [jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption] When - * the pool lifetime is jobSchedule the pool exists for the lifetime of the job - * schedule. The Batch Service creates the pool when it creates the first job - * on the schedule. You may apply this option only to job schedules, not to - * jobs. When the pool lifetime is job the pool exists for the lifetime of the - * job to which it is dedicated. The Batch service creates the pool when it - * creates the job. If the 'job' option is applied to a job schedule, the Batch - * service creates a new auto pool for every job created on the schedule. + * [jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption] * Possible values include: 'jobSchedule', 'job' * @member {boolean} * [jobSpecification.poolInfo.autoPoolSpecification.keepAlive] If false, the @@ -10809,12 +10201,6 @@ export interface JobSchedulePatchParameter { * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk] * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * * The default value for caching is none. For information about the caching * options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. @@ -10838,7 +10224,15 @@ export interface JobSchedulePatchParameter { * @member {array} * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] * This only applies to images that contain the Windows operating system, and @@ -11000,18 +10394,10 @@ export interface JobSchedulePatchParameter { * specify one but not both. * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. * The default value is task. Possible values include: 'task', 'pool' * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {number} * [jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] * The Batch service retries a task if its exit code is nonzero. Note that this @@ -11073,13 +10459,7 @@ export interface JobScheduleUpdateParameter { * @summary Options when disabling a job. * * @member {string} disableTasks What to do with active tasks associated with - * the job. Values are: - * - * requeue - Terminate running tasks and requeue them. The tasks will run again - * when the job is enabled. - * terminate - Terminate running tasks. The tasks will not run again. - * wait - Allow currently running tasks to complete. Possible values include: - * 'requeue', 'terminate', 'wait' + * the job. Possible values include: 'requeue', 'terminate', 'wait' */ export interface JobDisableParameter { disableTasks: string; @@ -11111,7 +10491,7 @@ export interface JobTerminateParameter { * @member {string} [onAllTasksComplete] The action the Batch service should * take when all tasks in the job are in the completed state. If omitted, the * completion behavior is left unchanged. You may not change the value from - * terminateJob to noAction - that is, once you have engaged automatic job + * terminatejob to noaction - that is, once you have engaged automatic job * termination, you cannot turn it off again. If you try to do this, the * request fails with an 'invalid property value' error response; if you are * calling the REST API directly, the HTTP status code is 400 (Bad Request). @@ -11156,14 +10536,7 @@ export interface JobTerminateParameter { * distinguish between pools created for different purposes, you can specify * this element to add a prefix to the ID that is assigned. The prefix can be * up to 20 characters long. - * @member {string} [poolInfo.autoPoolSpecification.poolLifetimeOption] When - * the pool lifetime is jobSchedule the pool exists for the lifetime of the job - * schedule. The Batch Service creates the pool when it creates the first job - * on the schedule. You may apply this option only to job schedules, not to - * jobs. When the pool lifetime is job the pool exists for the lifetime of the - * job to which it is dedicated. The Batch service creates the pool when it - * creates the job. If the 'job' option is applied to a job schedule, the Batch - * service creates a new auto pool for every job created on the schedule. + * @member {string} [poolInfo.autoPoolSpecification.poolLifetimeOption] * Possible values include: 'jobSchedule', 'job' * @member {boolean} [poolInfo.autoPoolSpecification.keepAlive] If false, the * Batch service deletes the pool once its lifetime (as determined by the @@ -11249,12 +10622,6 @@ export interface JobTerminateParameter { * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk] * @member {string} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * * The default value for caching is none. For information about the caching * options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. @@ -11278,7 +10645,15 @@ export interface JobTerminateParameter { * @member {array} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] * This only applies to images that contain the Windows operating system, and @@ -11432,18 +10807,10 @@ export interface JobTerminateParameter { * one but not both. * @member {string} * [poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. * The default value is task. Possible values include: 'task', 'pool' * @member {string} * [poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {number} * [poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] The Batch * service retries a task if its exit code is nonzero. Note that this value @@ -11541,14 +10908,7 @@ export interface JobPatchParameter { * distinguish between pools created for different purposes, you can specify * this element to add a prefix to the ID that is assigned. The prefix can be * up to 20 characters long. - * @member {string} [poolInfo.autoPoolSpecification.poolLifetimeOption] When - * the pool lifetime is jobSchedule the pool exists for the lifetime of the job - * schedule. The Batch Service creates the pool when it creates the first job - * on the schedule. You may apply this option only to job schedules, not to - * jobs. When the pool lifetime is job the pool exists for the lifetime of the - * job to which it is dedicated. The Batch service creates the pool when it - * creates the job. If the 'job' option is applied to a job schedule, the Batch - * service creates a new auto pool for every job created on the schedule. + * @member {string} [poolInfo.autoPoolSpecification.poolLifetimeOption] * Possible values include: 'jobSchedule', 'job' * @member {boolean} [poolInfo.autoPoolSpecification.keepAlive] If false, the * Batch service deletes the pool once its lifetime (as determined by the @@ -11634,12 +10994,6 @@ export interface JobPatchParameter { * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk] * @member {string} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * * The default value for caching is none. For information about the caching * options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. @@ -11663,7 +11017,15 @@ export interface JobPatchParameter { * @member {array} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] * This only applies to images that contain the Windows operating system, and @@ -11817,18 +11179,10 @@ export interface JobPatchParameter { * one but not both. * @member {string} * [poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. * The default value is task. Possible values include: 'task', 'pool' * @member {string} * [poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - - * The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {number} * [poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] The Batch * service retries a task if its exit code is nonzero. Note that this value @@ -11872,9 +11226,9 @@ export interface JobPatchParameter { * effect, any existing metadata is deleted. * @member {string} [onAllTasksComplete] The action the Batch service should * take when all tasks in the job are in the completed state. If omitted, the - * completion behavior is set to noAction. If the current value is - * terminateJob, this is an error because a job's completion behavior may not - * be changed from terminateJob to noAction. You may not change the value from + * completion behavior is set to noaction. If the current value is + * terminatejob, this is an error because a job's completion behavior may not + * be changed from terminatejob to noaction. You may not change the value from * terminatejob to noaction - that is, once you have engaged automatic job * termination, you cannot turn it off again. If you try to do this, the * request fails and Batch returns status code 400 (Bad Request) and an @@ -12006,17 +11360,10 @@ export interface PoolResizeParameter { * properties are mutually exclusive; you must specify one but not both. * @member {object} [startTask.userIdentity.autoUser] The userName and autoUser * properties are mutually exclusive; you must specify one but not both. - * @member {string} [startTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [startTask.userIdentity.autoUser.elevationLevel] nonAdmin - - * The auto user is a standard user without elevated access. admin - The auto - * user is a user with elevated access and operates with full Administrator - * permissions. The default value is nonAdmin. Possible values include: - * 'nonAdmin', 'admin' + * @member {string} [startTask.userIdentity.autoUser.scope] The default value + * is task. Possible values include: 'task', 'pool' + * @member {string} [startTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {number} [startTask.maxTaskRetryCount] The Batch service retries a * task if its exit code is nonzero. Note that this value specifically controls * the number of retries. The Batch service will try the task once, and may @@ -12119,17 +11466,10 @@ export interface PoolUpgradeOSParameter { * properties are mutually exclusive; you must specify one but not both. * @member {object} [startTask.userIdentity.autoUser] The userName and autoUser * properties are mutually exclusive; you must specify one but not both. - * @member {string} [startTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [startTask.userIdentity.autoUser.elevationLevel] nonAdmin - - * The auto user is a standard user without elevated access. admin - The auto - * user is a user with elevated access and operates with full Administrator - * permissions. The default value is nonAdmin. Possible values include: - * 'nonAdmin', 'admin' + * @member {string} [startTask.userIdentity.autoUser.scope] The default value + * is task. Possible values include: 'task', 'pool' + * @member {string} [startTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {number} [startTask.maxTaskRetryCount] The Batch service retries a * task if its exit code is nonzero. Note that this value specifically controls * the number of retries. The Batch service will try the task once, and may @@ -12242,21 +11582,8 @@ export interface NodeUpdateUserParameter { * @summary Options for rebooting a compute node. * * @member {string} [nodeRebootOption] When to reboot the compute node and what - * to do with currently running tasks. Values are: - * - * requeue - Terminate running task processes and requeue the tasks. The tasks - * will run again when a node is available. Restart the node as soon as tasks - * have been terminated. - * terminate - Terminate running tasks. The tasks will not run again. Restart - * the node as soon as tasks have been terminated. - * taskcompletion - Allow currently running tasks to complete. Schedule no new - * tasks while waiting. Restart the node when all tasks have completed. - * retaineddata - Allow currently running tasks to complete, then wait for all - * task data retention periods to expire. Schedule no new tasks while waiting. - * Restart the node when all task retention periods have expired. - * - * The default value is requeue. Possible values include: 'requeue', - * 'terminate', 'taskCompletion', 'retainedData' + * to do with currently running tasks. The default value is requeue. Possible + * values include: 'requeue', 'terminate', 'taskCompletion', 'retainedData' */ export interface NodeRebootParameter { nodeRebootOption?: string; @@ -12269,21 +11596,9 @@ export interface NodeRebootParameter { * @summary Options for reimaging a compute node. * * @member {string} [nodeReimageOption] When to reimage the compute node and - * what to do with currently running tasks. Values are: - * - * requeue - Terminate running task processes and requeue the tasks. The tasks - * will run again when a node is available. Reimage the node as soon as tasks - * have been terminated. - * terminate - Terminate running tasks. The tasks will not run again. Reimage - * the node as soon as tasks have been terminated. - * taskcompletion - Allow currently running tasks to complete. Schedule no new - * tasks while waiting. Reimage the node when all tasks have completed. - * retaineddata - Allow currently running tasks to complete, then wait for all - * task data retention periods to expire. Schedule no new tasks while waiting. - * Reimage the node when all task retention periods have expired. - * - * The default value is requeue. Possible values include: 'requeue', - * 'terminate', 'taskCompletion', 'retainedData' + * what to do with currently running tasks. The default value is requeue. + * Possible values include: 'requeue', 'terminate', 'taskCompletion', + * 'retainedData' */ export interface NodeReimageParameter { nodeReimageOption?: string; @@ -12296,19 +11611,9 @@ export interface NodeReimageParameter { * @summary Options for disabling scheduling on a compute node. * * @member {string} [nodeDisableSchedulingOption] What to do with currently - * running tasks when disabling task scheduling on the compute node. Values - * are: - * - * requeue - Terminate running task processes and requeue the tasks. The tasks - * may run again on other compute nodes, or when task scheduling is re-enabled - * on this node. Enter offline state as soon as tasks have been terminated. - * terminate - Terminate running tasks. The tasks will not run again. Enter - * offline state as soon as tasks have been terminated. - * taskcompletion - Allow currently running tasks to complete. Schedule no new - * tasks while waiting. Enter offline state when all tasks have completed. - * - * The default value is requeue. Possible values include: 'requeue', - * 'terminate', 'taskCompletion' + * running tasks when disabling task scheduling on the compute node. The + * default value is requeue. Possible values include: 'requeue', 'terminate', + * 'taskCompletion' */ export interface NodeDisableSchedulingParameter { nodeDisableSchedulingOption?: string; @@ -12338,6 +11643,136 @@ export interface NodeRemoveParameter { nodeDeallocationOption?: string; } +/** + * @class + * Initializes a new instance of the UploadBatchServiceLogsConfiguration class. + * @constructor + * @summary The Azure Batch service log files upload configuration for a + * compute node. + * + * @member {string} containerUrl The URL of the container within Azure Blob + * Storage to which to upload the Batch Service log file(s). The URL must + * include a Shared Access Signature (SAS) granting write permissions to the + * container. The SAS duration must allow enough time for the upload to finish. + * The start time for SAS is optional and recommended to not be specified. + * @member {date} startTime The start of the time range from which to upload + * Batch Service log file(s). Any log file containing a log message in the time + * range will be uploaded. This means that the operation might retrieve more + * logs than have been requested since the entire log file is always uploaded, + * but the operation should not retrieve fewer logs than have been requested. + * @member {date} [endTime] The end of the time range from which to upload + * Batch Service log file(s). Any log file containing a log message in the time + * range will be uploaded. This means that the operation might retrieve more + * logs than have been requested since the entire log file is always uploaded, + * but the operation should not retrieve fewer logs than have been requested. + * If omitted, the default is to upload all logs available after the startTime. + */ +export interface UploadBatchServiceLogsConfiguration { + containerUrl: string; + startTime: Date; + endTime?: Date; +} + +/** + * @class + * Initializes a new instance of the UploadBatchServiceLogsResult class. + * @constructor + * @summary The result of uploading Batch service log files from a specific + * compute node. + * + * @member {string} virtualDirectoryName The virtual directory within Azure + * Blob Storage container to which the Batch Service log file(s) will be + * uploaded. The virtual directory name is part of the blob name for each log + * file uploaded, and it is built based poolId, nodeId and a unique identifier. + * @member {number} numberOfFilesUploaded The number of log files which will be + * uploaded. + */ +export interface UploadBatchServiceLogsResult { + virtualDirectoryName: string; + numberOfFilesUploaded: number; +} + +/** + * @class + * Initializes a new instance of the NodeCounts class. + * @constructor + * @summary The number of nodes in each node state. + * + * @member {number} creating The number of nodes in the creating state. + * @member {number} idle The number of nodes in the idle state. + * @member {number} offline The number of nodes in the offline state. + * @member {number} preempted The number of nodes in the preempted state. + * @member {number} rebooting The count of nodes in the rebooting state. + * @member {number} reimaging The number of nodes in the reimaging state. + * @member {number} running The number of nodes in the running state. + * @member {number} starting The number of nodes in the starting state. + * @member {number} startTaskFailed The number of nodes in the startTaskFailed + * state. + * @member {number} unknown The number of nodes in the unknown state. + * @member {number} unusable The number of nodes in the unusable state. + * @member {number} waitingForStartTask The number of nodes in the + * waitingForStartTask state. + * @member {number} total The total number of nodes. + */ +export interface NodeCounts { + creating: number; + idle: number; + offline: number; + preempted: number; + rebooting: number; + reimaging: number; + running: number; + starting: number; + startTaskFailed: number; + unknown: number; + unusable: number; + waitingForStartTask: number; + total: number; +} + +/** + * @class + * Initializes a new instance of the PoolNodeCounts class. + * @constructor + * @summary The number of nodes in each state for a pool. + * + * @member {string} poolId The ID of the pool. + * @member {object} [dedicated] The number of dedicated nodes in each state. + * @member {number} [dedicated.creating] + * @member {number} [dedicated.idle] + * @member {number} [dedicated.offline] + * @member {number} [dedicated.preempted] + * @member {number} [dedicated.rebooting] + * @member {number} [dedicated.reimaging] + * @member {number} [dedicated.running] + * @member {number} [dedicated.starting] + * @member {number} [dedicated.startTaskFailed] + * @member {number} [dedicated.unknown] + * @member {number} [dedicated.unusable] + * @member {number} [dedicated.waitingForStartTask] + * @member {number} [dedicated.total] + * @member {object} [lowPriority] The number of low priority nodes in each + * state. + * @member {number} [lowPriority.creating] + * @member {number} [lowPriority.idle] + * @member {number} [lowPriority.offline] + * @member {number} [lowPriority.preempted] + * @member {number} [lowPriority.rebooting] + * @member {number} [lowPriority.reimaging] + * @member {number} [lowPriority.running] + * @member {number} [lowPriority.starting] + * @member {number} [lowPriority.startTaskFailed] + * @member {number} [lowPriority.unknown] + * @member {number} [lowPriority.unusable] + * @member {number} [lowPriority.waitingForStartTask] + * @member {number} [lowPriority.total] + */ +export interface PoolNodeCounts { + poolId: string; + dedicated?: NodeCounts; + lowPriority?: NodeCounts; +} + /** * @class * Initializes a new instance of the ApplicationListOptions class. @@ -13036,6 +12471,36 @@ export interface AccountListNodeAgentSkusOptions { ocpDate?: Date; } +/** + * @class + * Initializes a new instance of the AccountListPoolNodeCountsOptions class. + * @constructor + * Additional parameters for listPoolNodeCounts operation. + * + * @member {string} [filter] An OData $filter clause. + * @member {number} [maxResults] The maximum number of items to return in the + * response. Default value: 10 . + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + * @member {uuid} [clientRequestId] The caller-generated request identity, in + * the form of a GUID with no decoration such as curly braces, e.g. + * 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + * @member {date} [ocpDate] The time the request was issued. Client libraries + * typically set this to the current system clock time; set it explicitly if + * you are calling the REST API directly. + */ +export interface AccountListPoolNodeCountsOptions { + filter?: string; + maxResults?: number; + timeout?: number; + clientRequestId?: string; + returnClientRequestId?: boolean; + ocpDate?: Date; +} + /** * @class * Initializes a new instance of the JobGetAllLifetimeStatisticsOptions class. @@ -14953,6 +14418,31 @@ export interface ComputeNodeGetRemoteDesktopOptions { ocpDate?: Date; } +/** + * @class + * Initializes a new instance of the ComputeNodeUploadBatchServiceLogsOptions class. + * @constructor + * Additional parameters for uploadBatchServiceLogs operation. + * + * @member {number} [timeout] The maximum time that the server can spend + * processing the request, in seconds. The default is 30 seconds. Default + * value: 30 . + * @member {uuid} [clientRequestId] The caller-generated request identity, in + * the form of a GUID with no decoration such as curly braces, e.g. + * 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + * @member {date} [ocpDate] The time the request was issued. Client libraries + * typically set this to the current system clock time; set it explicitly if + * you are calling the REST API directly. + */ +export interface ComputeNodeUploadBatchServiceLogsOptions { + timeout?: number; + clientRequestId?: string; + returnClientRequestId?: boolean; + ocpDate?: Date; +} + /** * @class * Initializes a new instance of the ComputeNodeListOptions class. @@ -15071,6 +14561,27 @@ export interface AccountListNodeAgentSkusNextOptions { ocpDate?: Date; } +/** + * @class + * Initializes a new instance of the AccountListPoolNodeCountsNextOptions class. + * @constructor + * Additional parameters for listPoolNodeCountsNext operation. + * + * @member {uuid} [clientRequestId] The caller-generated request identity, in + * the form of a GUID with no decoration such as curly braces, e.g. + * 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + * @member {boolean} [returnClientRequestId] Whether the server should return + * the client-request-id in the response. Default value: false . + * @member {date} [ocpDate] The time the request was issued. Client libraries + * typically set this to the current system clock time; set it explicitly if + * you are calling the REST API directly. + */ +export interface AccountListPoolNodeCountsNextOptions { + clientRequestId?: string; + returnClientRequestId?: boolean; + ocpDate?: Date; +} + /** * @class * Initializes a new instance of the JobListNextOptions class. @@ -15309,6 +14820,18 @@ export interface AccountListNodeAgentSkusResult extends Array { odatanextLink?: string; } +/** + * @class + * Initializes a new instance of the PoolNodeCountsListResult class. + * @constructor + * @summary The result of listing the node counts in the account. + * + * @member {string} [odatanextLink] + */ +export interface PoolNodeCountsListResult extends Array { + odatanextLink?: string; +} + /** * @class * Initializes a new instance of the CloudJobListResult class. diff --git a/lib/services/batch/lib/models/index.js b/lib/services/batch/lib/models/index.js index 2add35fdad..2f453964ea 100644 --- a/lib/services/batch/lib/models/index.js +++ b/lib/services/batch/lib/models/index.js @@ -137,6 +137,10 @@ exports.NodeRebootParameter = require('./nodeRebootParameter'); exports.NodeReimageParameter = require('./nodeReimageParameter'); exports.NodeDisableSchedulingParameter = require('./nodeDisableSchedulingParameter'); exports.NodeRemoveParameter = require('./nodeRemoveParameter'); +exports.UploadBatchServiceLogsConfiguration = require('./uploadBatchServiceLogsConfiguration'); +exports.UploadBatchServiceLogsResult = require('./uploadBatchServiceLogsResult'); +exports.NodeCounts = require('./nodeCounts'); +exports.PoolNodeCounts = require('./poolNodeCounts'); exports.ApplicationListOptions = require('./applicationListOptions'); exports.ApplicationGetOptions = require('./applicationGetOptions'); exports.PoolListUsageMetricsOptions = require('./poolListUsageMetricsOptions'); @@ -156,6 +160,7 @@ exports.PoolUpdatePropertiesOptions = require('./poolUpdatePropertiesOptions'); exports.PoolUpgradeOSOptions = require('./poolUpgradeOSOptions'); exports.PoolRemoveNodesOptions = require('./poolRemoveNodesOptions'); exports.AccountListNodeAgentSkusOptions = require('./accountListNodeAgentSkusOptions'); +exports.AccountListPoolNodeCountsOptions = require('./accountListPoolNodeCountsOptions'); exports.JobGetAllLifetimeStatisticsOptions = require('./jobGetAllLifetimeStatisticsOptions'); exports.JobDeleteMethodOptions = require('./jobDeleteMethodOptions'); exports.JobGetOptions = require('./jobGetOptions'); @@ -211,11 +216,13 @@ exports.ComputeNodeDisableSchedulingOptions = require('./computeNodeDisableSched exports.ComputeNodeEnableSchedulingOptions = require('./computeNodeEnableSchedulingOptions'); exports.ComputeNodeGetRemoteLoginSettingsOptions = require('./computeNodeGetRemoteLoginSettingsOptions'); exports.ComputeNodeGetRemoteDesktopOptions = require('./computeNodeGetRemoteDesktopOptions'); +exports.ComputeNodeUploadBatchServiceLogsOptions = require('./computeNodeUploadBatchServiceLogsOptions'); exports.ComputeNodeListOptions = require('./computeNodeListOptions'); exports.ApplicationListNextOptions = require('./applicationListNextOptions'); exports.PoolListUsageMetricsNextOptions = require('./poolListUsageMetricsNextOptions'); exports.PoolListNextOptions = require('./poolListNextOptions'); exports.AccountListNodeAgentSkusNextOptions = require('./accountListNodeAgentSkusNextOptions'); +exports.AccountListPoolNodeCountsNextOptions = require('./accountListPoolNodeCountsNextOptions'); exports.JobListNextOptions = require('./jobListNextOptions'); exports.JobListFromJobScheduleNextOptions = require('./jobListFromJobScheduleNextOptions'); exports.JobListPreparationAndReleaseTaskStatusNextOptions = require('./jobListPreparationAndReleaseTaskStatusNextOptions'); @@ -229,6 +236,7 @@ exports.ApplicationListResult = require('./applicationListResult'); exports.PoolListUsageMetricsResult = require('./poolListUsageMetricsResult'); exports.CloudPoolListResult = require('./cloudPoolListResult'); exports.AccountListNodeAgentSkusResult = require('./accountListNodeAgentSkusResult'); +exports.PoolNodeCountsListResult = require('./poolNodeCountsListResult'); exports.CloudJobListResult = require('./cloudJobListResult'); exports.CloudJobListPreparationAndReleaseTaskStatusResult = require('./cloudJobListPreparationAndReleaseTaskStatusResult'); exports.CertificateListResult = require('./certificateListResult'); diff --git a/lib/services/batch/lib/models/jobAddParameter.js b/lib/services/batch/lib/models/jobAddParameter.js index ed64945d87..12be975451 100644 --- a/lib/services/batch/lib/models/jobAddParameter.js +++ b/lib/services/batch/lib/models/jobAddParameter.js @@ -130,17 +130,10 @@ class JobAddParameter { * @member {object} [jobManagerTask.userIdentity.autoUser] The userName and * autoUser properties are mutually exclusive; you must specify one but not * both. - * @member {string} [jobManagerTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [jobManagerTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * @member {string} [jobManagerTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' + * @member {string} [jobManagerTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {boolean} [jobManagerTask.runExclusive] If true, no other tasks * will run on the same compute node for as long as the Job Manager is * running. If false, other tasks can run simultaneously with the Job Manager @@ -244,18 +237,11 @@ class JobAddParameter { * @member {object} [jobPreparationTask.userIdentity.autoUser] The userName * and autoUser properties are mutually exclusive; you must specify one but * not both. - * @member {string} [jobPreparationTask.userIdentity.autoUser.scope] Values - * are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * @member {string} [jobPreparationTask.userIdentity.autoUser.scope] The + * default value is task. Possible values include: 'task', 'pool' * @member {string} [jobPreparationTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', + * 'admin' * @member {boolean} [jobPreparationTask.rerunOnNodeRebootAfterSuccess] The * Job Preparation task is always rerun if a compute node is reimaged, or if * the Job Preparation task did not complete (e.g. because the reboot @@ -317,17 +303,10 @@ class JobAddParameter { * @member {object} [jobReleaseTask.userIdentity.autoUser] The userName and * autoUser properties are mutually exclusive; you must specify one but not * both. - * @member {string} [jobReleaseTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [jobReleaseTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * @member {string} [jobReleaseTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' + * @member {string} [jobReleaseTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {array} [commonEnvironmentSettings] The list of common environment * variable settings. These environment variables are set for all tasks in * the job (including the Job Manager, Job Preparation and Job Release @@ -355,15 +334,8 @@ class JobAddParameter { * distinguish between pools created for different purposes, you can specify * this element to add a prefix to the ID that is assigned. The prefix can be * up to 20 characters long. - * @member {string} [poolInfo.autoPoolSpecification.poolLifetimeOption] When - * the pool lifetime is jobSchedule the pool exists for the lifetime of the - * job schedule. The Batch Service creates the pool when it creates the first - * job on the schedule. You may apply this option only to job schedules, not - * to jobs. When the pool lifetime is job the pool exists for the lifetime of - * the job to which it is dedicated. The Batch service creates the pool when - * it creates the job. If the 'job' option is applied to a job schedule, the - * Batch service creates a new auto pool for every job created on the - * schedule. Possible values include: 'jobSchedule', 'job' + * @member {string} [poolInfo.autoPoolSpecification.poolLifetimeOption] + * Possible values include: 'jobSchedule', 'job' * @member {boolean} [poolInfo.autoPoolSpecification.keepAlive] If false, the * Batch service deletes the pool once its lifetime (as determined by the * poolLifetimeOption setting) expires; that is, when the job or job schedule @@ -448,12 +420,6 @@ class JobAddParameter { * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk] * @member {string} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * * The default value for caching is none. For information about the caching * options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. @@ -477,7 +443,15 @@ class JobAddParameter { * @member {array} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk + * is not formatted after being attached, it must be formatted before use - + * for more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] * This only applies to images that contain the Windows operating system, and @@ -637,18 +611,11 @@ class JobAddParameter { * one but not both. * @member {string} * [poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. * The default value is task. Possible values include: 'task', 'pool' * @member {string} * [poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', + * 'admin' * @member {number} * [poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] The * Batch service retries a task if its exit code is nonzero. Note that this @@ -695,22 +662,17 @@ class JobAddParameter { * job contains no tasks, then all tasks are considered complete. This option * is therefore most commonly used with a Job Manager task; if you want to * use automatic job termination without a Job Manager, you should initially - * set onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. - * Permitted values are: noAction - do nothing. The job remains active unless - * terminated or disabled by some other means. terminateJob - terminate the - * job. The job's terminateReason is set to 'AllTasksComplete'. The default - * is noAction. Possible values include: 'noAction', 'terminateJob' + * set onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. + * The default is noaction. Possible values include: 'noAction', + * 'terminateJob' * @member {string} [onTaskFailure] The action the Batch service should take * when any task in the job fails. A task is considered to have failed if has * a failureInfo. A failureInfo is set if the task completes with a non-zero * exit code after exhausting its retry count, or if there was an error - * starting the task, for example due to a resource file download error. - * noAction - do nothing. performExitOptionsJobAction - take the action - * associated with the task exit condition in the task's exitConditions - * collection. (This may still result in no action being taken, if that is - * what the task specifies.) The default is noAction. Possible values - * include: 'noAction', 'performExitOptionsJobAction' + * starting the task, for example due to a resource file download error. The + * default is noaction. Possible values include: 'noAction', + * 'performExitOptionsJobAction' * @member {array} [metadata] A list of name-value pairs associated with the * job as metadata. The Batch service does not assign any meaning to * metadata; it is solely for the use of user code. diff --git a/lib/services/batch/lib/models/jobDisableParameter.js b/lib/services/batch/lib/models/jobDisableParameter.js index f5b343151c..e71e2add18 100644 --- a/lib/services/batch/lib/models/jobDisableParameter.js +++ b/lib/services/batch/lib/models/jobDisableParameter.js @@ -18,13 +18,7 @@ class JobDisableParameter { /** * Create a JobDisableParameter. * @member {string} disableTasks What to do with active tasks associated with - * the job. Values are: - * - * requeue - Terminate running tasks and requeue them. The tasks will run - * again when the job is enabled. - * terminate - Terminate running tasks. The tasks will not run again. - * wait - Allow currently running tasks to complete. Possible values include: - * 'requeue', 'terminate', 'wait' + * the job. Possible values include: 'requeue', 'terminate', 'wait' */ constructor() { } diff --git a/lib/services/batch/lib/models/jobExecutionInformation.js b/lib/services/batch/lib/models/jobExecutionInformation.js index 97c04a77f7..62a3bd6b9b 100644 --- a/lib/services/batch/lib/models/jobExecutionInformation.js +++ b/lib/services/batch/lib/models/jobExecutionInformation.js @@ -46,10 +46,10 @@ class JobExecutionInformation { * set to true. MaxWallClockTimeExpiry - the job reached its maxWallClockTime * constraint. TerminateJobSchedule - the job ran as part of a schedule, and * the schedule terminated. AllTasksComplete - the job's onAllTasksComplete - * attribute is set to terminateJob, and all tasks in the job are complete. + * attribute is set to terminatejob, and all tasks in the job are complete. * TaskFailed - the job's onTaskFailure attribute is set to * performExitOptionsJobAction, and a task in the job failed with an exit - * condition that specified a jobAction of terminateJob. Any other string is + * condition that specified a jobAction of terminatejob. Any other string is * a user-defined reason specified in a call to the 'Terminate a job' * operation. */ diff --git a/lib/services/batch/lib/models/jobManagerTask.js b/lib/services/batch/lib/models/jobManagerTask.js index 63cd14d20e..fc8b136e0c 100644 --- a/lib/services/batch/lib/models/jobManagerTask.js +++ b/lib/services/batch/lib/models/jobManagerTask.js @@ -111,17 +111,10 @@ class JobManagerTask { * properties are mutually exclusive; you must specify one but not both. * @member {object} [userIdentity.autoUser] The userName and autoUser * properties are mutually exclusive; you must specify one but not both. - * @member {string} [userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [userIdentity.autoUser.elevationLevel] nonAdmin - The - * auto user is a standard user without elevated access. admin - The auto - * user is a user with elevated access and operates with full Administrator - * permissions. The default value is nonAdmin. Possible values include: - * 'nonAdmin', 'admin' + * @member {string} [userIdentity.autoUser.scope] The default value is task. + * Possible values include: 'task', 'pool' + * @member {string} [userIdentity.autoUser.elevationLevel] The default value + * is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {boolean} [runExclusive] Whether the Job Manager task requires * exclusive use of the compute node where it runs. If true, no other tasks * will run on the same compute node for as long as the Job Manager is diff --git a/lib/services/batch/lib/models/jobPatchParameter.js b/lib/services/batch/lib/models/jobPatchParameter.js index 759d696ae1..e53189faf3 100644 --- a/lib/services/batch/lib/models/jobPatchParameter.js +++ b/lib/services/batch/lib/models/jobPatchParameter.js @@ -26,7 +26,7 @@ class JobPatchParameter { * @member {string} [onAllTasksComplete] The action the Batch service should * take when all tasks in the job are in the completed state. If omitted, the * completion behavior is left unchanged. You may not change the value from - * terminateJob to noAction - that is, once you have engaged automatic job + * terminatejob to noaction - that is, once you have engaged automatic job * termination, you cannot turn it off again. If you try to do this, the * request fails with an 'invalid property value' error response; if you are * calling the REST API directly, the HTTP status code is 400 (Bad Request). @@ -72,15 +72,8 @@ class JobPatchParameter { * distinguish between pools created for different purposes, you can specify * this element to add a prefix to the ID that is assigned. The prefix can be * up to 20 characters long. - * @member {string} [poolInfo.autoPoolSpecification.poolLifetimeOption] When - * the pool lifetime is jobSchedule the pool exists for the lifetime of the - * job schedule. The Batch Service creates the pool when it creates the first - * job on the schedule. You may apply this option only to job schedules, not - * to jobs. When the pool lifetime is job the pool exists for the lifetime of - * the job to which it is dedicated. The Batch service creates the pool when - * it creates the job. If the 'job' option is applied to a job schedule, the - * Batch service creates a new auto pool for every job created on the - * schedule. Possible values include: 'jobSchedule', 'job' + * @member {string} [poolInfo.autoPoolSpecification.poolLifetimeOption] + * Possible values include: 'jobSchedule', 'job' * @member {boolean} [poolInfo.autoPoolSpecification.keepAlive] If false, the * Batch service deletes the pool once its lifetime (as determined by the * poolLifetimeOption setting) expires; that is, when the job or job schedule @@ -165,12 +158,6 @@ class JobPatchParameter { * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk] * @member {string} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * * The default value for caching is none. For information about the caching * options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. @@ -194,7 +181,15 @@ class JobPatchParameter { * @member {array} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk + * is not formatted after being attached, it must be formatted before use - + * for more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] * This only applies to images that contain the Windows operating system, and @@ -354,18 +349,11 @@ class JobPatchParameter { * one but not both. * @member {string} * [poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. * The default value is task. Possible values include: 'task', 'pool' * @member {string} * [poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', + * 'admin' * @member {number} * [poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] The * Batch service retries a task if its exit code is nonzero. Note that this diff --git a/lib/services/batch/lib/models/jobPreparationAndReleaseTaskExecutionInformation.js b/lib/services/batch/lib/models/jobPreparationAndReleaseTaskExecutionInformation.js index 7c19c379c1..5dc22950fc 100644 --- a/lib/services/batch/lib/models/jobPreparationAndReleaseTaskExecutionInformation.js +++ b/lib/services/batch/lib/models/jobPreparationAndReleaseTaskExecutionInformation.js @@ -33,13 +33,8 @@ class JobPreparationAndReleaseTaskExecutionInformation { * started running. * @member {date} [jobPreparationTaskExecutionInfo.endTime] This property is * set only if the task is in the Completed state. - * @member {string} [jobPreparationTaskExecutionInfo.state] Values are: - * - * running - the task is currently running (including retrying). - * completed - the task has exited with exit code 0, or the task has - * exhausted its retry limit, or the Batch service was unable to start the - * task due to task preparation errors (such as resource file download - * failures). Possible values include: 'running', 'completed' + * @member {string} [jobPreparationTaskExecutionInfo.state] Possible values + * include: 'running', 'completed' * @member {string} [jobPreparationTaskExecutionInfo.taskRootDirectory] * @member {string} [jobPreparationTaskExecutionInfo.taskRootDirectoryUrl] * @member {number} [jobPreparationTaskExecutionInfo.exitCode] This parameter @@ -90,12 +85,8 @@ class JobPreparationAndReleaseTaskExecutionInformation { * started running. * @member {date} [jobReleaseTaskExecutionInfo.endTime] This property is set * only if the task is in the Completed state. - * @member {string} [jobReleaseTaskExecutionInfo.state] Values are: - * - * running - the task is currently running (including retrying). - * completed - the task has exited, or the Batch service was unable to start - * the task due to task preparation errors (such as resource file download - * failures). Possible values include: 'running', 'completed' + * @member {string} [jobReleaseTaskExecutionInfo.state] Possible values + * include: 'running', 'completed' * @member {string} [jobReleaseTaskExecutionInfo.taskRootDirectory] * @member {string} [jobReleaseTaskExecutionInfo.taskRootDirectoryUrl] * @member {number} [jobReleaseTaskExecutionInfo.exitCode] This parameter is diff --git a/lib/services/batch/lib/models/jobPreparationTask.js b/lib/services/batch/lib/models/jobPreparationTask.js index 37a64ea58b..1b4338f4b8 100644 --- a/lib/services/batch/lib/models/jobPreparationTask.js +++ b/lib/services/batch/lib/models/jobPreparationTask.js @@ -112,17 +112,10 @@ class JobPreparationTask { * properties are mutually exclusive; you must specify one but not both. * @member {object} [userIdentity.autoUser] The userName and autoUser * properties are mutually exclusive; you must specify one but not both. - * @member {string} [userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [userIdentity.autoUser.elevationLevel] nonAdmin - The - * auto user is a standard user without elevated access. admin - The auto - * user is a user with elevated access and operates with full Administrator - * permissions. The default value is nonAdmin. Possible values include: - * 'nonAdmin', 'admin' + * @member {string} [userIdentity.autoUser.scope] The default value is task. + * Possible values include: 'task', 'pool' + * @member {string} [userIdentity.autoUser.elevationLevel] The default value + * is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {boolean} [rerunOnNodeRebootAfterSuccess] Whether the Batch * service should rerun the Job Preparation task after a compute node * reboots. The Job Preparation task is always rerun if a compute node is diff --git a/lib/services/batch/lib/models/jobPreparationTaskExecutionInformation.js b/lib/services/batch/lib/models/jobPreparationTaskExecutionInformation.js index 01f4a52155..0747e64942 100644 --- a/lib/services/batch/lib/models/jobPreparationTaskExecutionInformation.js +++ b/lib/services/batch/lib/models/jobPreparationTaskExecutionInformation.js @@ -27,13 +27,7 @@ class JobPreparationTaskExecutionInformation { * completed. This property is set only if the task is in the Completed * state. * @member {string} state The current state of the Job Preparation task on - * the compute node. Values are: - * - * running - the task is currently running (including retrying). - * completed - the task has exited with exit code 0, or the task has - * exhausted its retry limit, or the Batch service was unable to start the - * task due to task preparation errors (such as resource file download - * failures). Possible values include: 'running', 'completed' + * the compute node. Possible values include: 'running', 'completed' * @member {string} [taskRootDirectory] The root directory of the Job * Preparation task on the compute node. You can use this path to retrieve * files created by the task, such as log files. diff --git a/lib/services/batch/lib/models/jobReleaseTask.js b/lib/services/batch/lib/models/jobReleaseTask.js index f5ab7969e4..26e7c80990 100644 --- a/lib/services/batch/lib/models/jobReleaseTask.js +++ b/lib/services/batch/lib/models/jobReleaseTask.js @@ -94,17 +94,10 @@ class JobReleaseTask { * properties are mutually exclusive; you must specify one but not both. * @member {object} [userIdentity.autoUser] The userName and autoUser * properties are mutually exclusive; you must specify one but not both. - * @member {string} [userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [userIdentity.autoUser.elevationLevel] nonAdmin - The - * auto user is a standard user without elevated access. admin - The auto - * user is a user with elevated access and operates with full Administrator - * permissions. The default value is nonAdmin. Possible values include: - * 'nonAdmin', 'admin' + * @member {string} [userIdentity.autoUser.scope] The default value is task. + * Possible values include: 'task', 'pool' + * @member {string} [userIdentity.autoUser.elevationLevel] The default value + * is nonAdmin. Possible values include: 'nonAdmin', 'admin' */ constructor() { } diff --git a/lib/services/batch/lib/models/jobReleaseTaskExecutionInformation.js b/lib/services/batch/lib/models/jobReleaseTaskExecutionInformation.js index 81975942a9..b25161cfc5 100644 --- a/lib/services/batch/lib/models/jobReleaseTaskExecutionInformation.js +++ b/lib/services/batch/lib/models/jobReleaseTaskExecutionInformation.js @@ -26,12 +26,7 @@ class JobReleaseTaskExecutionInformation { * @member {date} [endTime] The time at which the Job Release task completed. * This property is set only if the task is in the Completed state. * @member {string} state The current state of the Job Release task on the - * compute node. Values are: - * - * running - the task is currently running (including retrying). - * completed - the task has exited, or the Batch service was unable to start - * the task due to task preparation errors (such as resource file download - * failures). Possible values include: 'running', 'completed' + * compute node. Possible values include: 'running', 'completed' * @member {string} [taskRootDirectory] The root directory of the Job Release * task on the compute node. You can use this path to retrieve files created * by the task, such as log files. diff --git a/lib/services/batch/lib/models/jobScheduleAddParameter.js b/lib/services/batch/lib/models/jobScheduleAddParameter.js index 0842ae89c5..ee161b1923 100644 --- a/lib/services/batch/lib/models/jobScheduleAddParameter.js +++ b/lib/services/batch/lib/models/jobScheduleAddParameter.js @@ -76,11 +76,11 @@ class JobScheduleAddParameter { * contains no tasks, then all tasks are considered complete. This option is * therefore most commonly used with a Job Manager task; if you want to use * automatic job termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. - * The default is noAction. Possible values include: 'noAction', + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. + * The default is noaction. Possible values include: 'noAction', * 'terminateJob' - * @member {string} [jobSpecification.onTaskFailure] The default is noAction. + * @member {string} [jobSpecification.onTaskFailure] The default is noaction. * Possible values include: 'noAction', 'performExitOptionsJobAction' * @member {object} [jobSpecification.constraints] * @member {moment.duration} [jobSpecification.constraints.maxWallClockTime] @@ -184,18 +184,11 @@ class JobScheduleAddParameter { * The userName and autoUser properties are mutually exclusive; you must * specify one but not both. * @member {string} - * [jobSpecification.jobManagerTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * [jobSpecification.jobManagerTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' * @member {string} - * [jobSpecification.jobManagerTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * [jobSpecification.jobManagerTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {boolean} [jobSpecification.jobManagerTask.runExclusive] If true, * no other tasks will run on the same compute node for as long as the Job * Manager is running. If false, other tasks can run simultaneously with the @@ -314,19 +307,12 @@ class JobScheduleAddParameter { * and autoUser properties are mutually exclusive; you must specify one but * not both. * @member {string} - * [jobSpecification.jobPreparationTask.userIdentity.autoUser.scope] Values - * are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * [jobSpecification.jobPreparationTask.userIdentity.autoUser.scope] The + * default value is task. Possible values include: 'task', 'pool' * @member {string} * [jobSpecification.jobPreparationTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', + * 'admin' * @member {boolean} * [jobSpecification.jobPreparationTask.rerunOnNodeRebootAfterSuccess] The * Job Preparation task is always rerun if a compute node is reimaged, or if @@ -398,18 +384,11 @@ class JobScheduleAddParameter { * The userName and autoUser properties are mutually exclusive; you must * specify one but not both. * @member {string} - * [jobSpecification.jobReleaseTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * [jobSpecification.jobReleaseTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' * @member {string} - * [jobSpecification.jobReleaseTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * [jobSpecification.jobReleaseTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {array} [jobSpecification.commonEnvironmentSettings] Individual * tasks can override an environment setting specified here by specifying the * same setting name with a different value. @@ -436,15 +415,8 @@ class JobScheduleAddParameter { * this element to add a prefix to the ID that is assigned. The prefix can be * up to 20 characters long. * @member {string} - * [jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption] When - * the pool lifetime is jobSchedule the pool exists for the lifetime of the - * job schedule. The Batch Service creates the pool when it creates the first - * job on the schedule. You may apply this option only to job schedules, not - * to jobs. When the pool lifetime is job the pool exists for the lifetime of - * the job to which it is dedicated. The Batch service creates the pool when - * it creates the job. If the 'job' option is applied to a job schedule, the - * Batch service creates a new auto pool for every job created on the - * schedule. Possible values include: 'jobSchedule', 'job' + * [jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption] + * Possible values include: 'jobSchedule', 'job' * @member {boolean} * [jobSpecification.poolInfo.autoPoolSpecification.keepAlive] If false, the * Batch service deletes the pool once its lifetime (as determined by the @@ -532,12 +504,6 @@ class JobScheduleAddParameter { * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk] * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * * The default value for caching is none. For information about the caching * options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. @@ -561,7 +527,15 @@ class JobScheduleAddParameter { * @member {array} * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk + * is not formatted after being attached, it must be formatted before use - + * for more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] * This only applies to images that contain the Windows operating system, and @@ -726,18 +700,11 @@ class JobScheduleAddParameter { * specify one but not both. * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. * The default value is task. Possible values include: 'task', 'pool' * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', + * 'admin' * @member {number} * [jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] * The Batch service retries a task if its exit code is nonzero. Note that diff --git a/lib/services/batch/lib/models/jobSchedulePatchParameter.js b/lib/services/batch/lib/models/jobSchedulePatchParameter.js index e5a3ef404b..339472274d 100644 --- a/lib/services/batch/lib/models/jobSchedulePatchParameter.js +++ b/lib/services/batch/lib/models/jobSchedulePatchParameter.js @@ -70,11 +70,11 @@ class JobSchedulePatchParameter { * contains no tasks, then all tasks are considered complete. This option is * therefore most commonly used with a Job Manager task; if you want to use * automatic job termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. - * The default is noAction. Possible values include: 'noAction', + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. + * The default is noaction. Possible values include: 'noAction', * 'terminateJob' - * @member {string} [jobSpecification.onTaskFailure] The default is noAction. + * @member {string} [jobSpecification.onTaskFailure] The default is noaction. * Possible values include: 'noAction', 'performExitOptionsJobAction' * @member {object} [jobSpecification.constraints] * @member {moment.duration} [jobSpecification.constraints.maxWallClockTime] @@ -178,18 +178,11 @@ class JobSchedulePatchParameter { * The userName and autoUser properties are mutually exclusive; you must * specify one but not both. * @member {string} - * [jobSpecification.jobManagerTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * [jobSpecification.jobManagerTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' * @member {string} - * [jobSpecification.jobManagerTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * [jobSpecification.jobManagerTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {boolean} [jobSpecification.jobManagerTask.runExclusive] If true, * no other tasks will run on the same compute node for as long as the Job * Manager is running. If false, other tasks can run simultaneously with the @@ -308,19 +301,12 @@ class JobSchedulePatchParameter { * and autoUser properties are mutually exclusive; you must specify one but * not both. * @member {string} - * [jobSpecification.jobPreparationTask.userIdentity.autoUser.scope] Values - * are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * [jobSpecification.jobPreparationTask.userIdentity.autoUser.scope] The + * default value is task. Possible values include: 'task', 'pool' * @member {string} * [jobSpecification.jobPreparationTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', + * 'admin' * @member {boolean} * [jobSpecification.jobPreparationTask.rerunOnNodeRebootAfterSuccess] The * Job Preparation task is always rerun if a compute node is reimaged, or if @@ -392,18 +378,11 @@ class JobSchedulePatchParameter { * The userName and autoUser properties are mutually exclusive; you must * specify one but not both. * @member {string} - * [jobSpecification.jobReleaseTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * [jobSpecification.jobReleaseTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' * @member {string} - * [jobSpecification.jobReleaseTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * [jobSpecification.jobReleaseTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {array} [jobSpecification.commonEnvironmentSettings] Individual * tasks can override an environment setting specified here by specifying the * same setting name with a different value. @@ -430,15 +409,8 @@ class JobSchedulePatchParameter { * this element to add a prefix to the ID that is assigned. The prefix can be * up to 20 characters long. * @member {string} - * [jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption] When - * the pool lifetime is jobSchedule the pool exists for the lifetime of the - * job schedule. The Batch Service creates the pool when it creates the first - * job on the schedule. You may apply this option only to job schedules, not - * to jobs. When the pool lifetime is job the pool exists for the lifetime of - * the job to which it is dedicated. The Batch service creates the pool when - * it creates the job. If the 'job' option is applied to a job schedule, the - * Batch service creates a new auto pool for every job created on the - * schedule. Possible values include: 'jobSchedule', 'job' + * [jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption] + * Possible values include: 'jobSchedule', 'job' * @member {boolean} * [jobSpecification.poolInfo.autoPoolSpecification.keepAlive] If false, the * Batch service deletes the pool once its lifetime (as determined by the @@ -526,12 +498,6 @@ class JobSchedulePatchParameter { * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk] * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * * The default value for caching is none. For information about the caching * options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. @@ -555,7 +521,15 @@ class JobSchedulePatchParameter { * @member {array} * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk + * is not formatted after being attached, it must be formatted before use - + * for more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] * This only applies to images that contain the Windows operating system, and @@ -720,18 +694,11 @@ class JobSchedulePatchParameter { * specify one but not both. * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. * The default value is task. Possible values include: 'task', 'pool' * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', + * 'admin' * @member {number} * [jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] * The Batch service retries a task if its exit code is nonzero. Note that diff --git a/lib/services/batch/lib/models/jobScheduleUpdateParameter.js b/lib/services/batch/lib/models/jobScheduleUpdateParameter.js index 99b1d1c24e..2d65140e4e 100644 --- a/lib/services/batch/lib/models/jobScheduleUpdateParameter.js +++ b/lib/services/batch/lib/models/jobScheduleUpdateParameter.js @@ -70,11 +70,11 @@ class JobScheduleUpdateParameter { * contains no tasks, then all tasks are considered complete. This option is * therefore most commonly used with a Job Manager task; if you want to use * automatic job termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. - * The default is noAction. Possible values include: 'noAction', + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. + * The default is noaction. Possible values include: 'noAction', * 'terminateJob' - * @member {string} [jobSpecification.onTaskFailure] The default is noAction. + * @member {string} [jobSpecification.onTaskFailure] The default is noaction. * Possible values include: 'noAction', 'performExitOptionsJobAction' * @member {object} [jobSpecification.constraints] * @member {moment.duration} [jobSpecification.constraints.maxWallClockTime] @@ -178,18 +178,11 @@ class JobScheduleUpdateParameter { * The userName and autoUser properties are mutually exclusive; you must * specify one but not both. * @member {string} - * [jobSpecification.jobManagerTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * [jobSpecification.jobManagerTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' * @member {string} - * [jobSpecification.jobManagerTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * [jobSpecification.jobManagerTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {boolean} [jobSpecification.jobManagerTask.runExclusive] If true, * no other tasks will run on the same compute node for as long as the Job * Manager is running. If false, other tasks can run simultaneously with the @@ -308,19 +301,12 @@ class JobScheduleUpdateParameter { * and autoUser properties are mutually exclusive; you must specify one but * not both. * @member {string} - * [jobSpecification.jobPreparationTask.userIdentity.autoUser.scope] Values - * are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * [jobSpecification.jobPreparationTask.userIdentity.autoUser.scope] The + * default value is task. Possible values include: 'task', 'pool' * @member {string} * [jobSpecification.jobPreparationTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', + * 'admin' * @member {boolean} * [jobSpecification.jobPreparationTask.rerunOnNodeRebootAfterSuccess] The * Job Preparation task is always rerun if a compute node is reimaged, or if @@ -392,18 +378,11 @@ class JobScheduleUpdateParameter { * The userName and autoUser properties are mutually exclusive; you must * specify one but not both. * @member {string} - * [jobSpecification.jobReleaseTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * [jobSpecification.jobReleaseTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' * @member {string} - * [jobSpecification.jobReleaseTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * [jobSpecification.jobReleaseTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {array} [jobSpecification.commonEnvironmentSettings] Individual * tasks can override an environment setting specified here by specifying the * same setting name with a different value. @@ -430,15 +409,8 @@ class JobScheduleUpdateParameter { * this element to add a prefix to the ID that is assigned. The prefix can be * up to 20 characters long. * @member {string} - * [jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption] When - * the pool lifetime is jobSchedule the pool exists for the lifetime of the - * job schedule. The Batch Service creates the pool when it creates the first - * job on the schedule. You may apply this option only to job schedules, not - * to jobs. When the pool lifetime is job the pool exists for the lifetime of - * the job to which it is dedicated. The Batch service creates the pool when - * it creates the job. If the 'job' option is applied to a job schedule, the - * Batch service creates a new auto pool for every job created on the - * schedule. Possible values include: 'jobSchedule', 'job' + * [jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption] + * Possible values include: 'jobSchedule', 'job' * @member {boolean} * [jobSpecification.poolInfo.autoPoolSpecification.keepAlive] If false, the * Batch service deletes the pool once its lifetime (as determined by the @@ -526,12 +498,6 @@ class JobScheduleUpdateParameter { * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk] * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * * The default value for caching is none. For information about the caching * options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. @@ -555,7 +521,15 @@ class JobScheduleUpdateParameter { * @member {array} * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk + * is not formatted after being attached, it must be formatted before use - + * for more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] * This only applies to images that contain the Windows operating system, and @@ -720,18 +694,11 @@ class JobScheduleUpdateParameter { * specify one but not both. * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. * The default value is task. Possible values include: 'task', 'pool' * @member {string} * [jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', + * 'admin' * @member {number} * [jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] * The Batch service retries a task if its exit code is nonzero. Note that diff --git a/lib/services/batch/lib/models/jobSpecification.js b/lib/services/batch/lib/models/jobSpecification.js index d71e6ad444..6c8f016a03 100644 --- a/lib/services/batch/lib/models/jobSpecification.js +++ b/lib/services/batch/lib/models/jobSpecification.js @@ -35,9 +35,9 @@ class JobSpecification { * completed state. Note that if a job contains no tasks, then all tasks are * considered complete. This option is therefore most commonly used with a * Job Manager task; if you want to use automatic job termination without a - * Job Manager, you should initially set onAllTasksComplete to noAction and - * update the job properties to set onAllTasksComplete to terminateJob once - * you have finished adding tasks. The default is noAction. Possible values + * Job Manager, you should initially set onAllTasksComplete to noaction and + * update the job properties to set onAllTasksComplete to terminatejob once + * you have finished adding tasks. The default is noaction. Possible values * include: 'noAction', 'terminateJob' * @member {string} [onTaskFailure] The action the Batch service should take * when any task fails in a job created under this schedule. A task is @@ -45,7 +45,7 @@ class JobSpecification { * failureInfo is set if the task completes with a non-zero exit code after * exhausting its retry count, or if there was an error starting the task, * for example due to a resource file download error. The default is - * noAction. Possible values include: 'noAction', + * noaction. Possible values include: 'noAction', * 'performExitOptionsJobAction' * @member {object} [constraints] The execution constraints for jobs created * under this schedule. @@ -141,17 +141,10 @@ class JobSpecification { * @member {object} [jobManagerTask.userIdentity.autoUser] The userName and * autoUser properties are mutually exclusive; you must specify one but not * both. - * @member {string} [jobManagerTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [jobManagerTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * @member {string} [jobManagerTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' + * @member {string} [jobManagerTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {boolean} [jobManagerTask.runExclusive] If true, no other tasks * will run on the same compute node for as long as the Job Manager is * running. If false, other tasks can run simultaneously with the Job Manager @@ -255,18 +248,11 @@ class JobSpecification { * @member {object} [jobPreparationTask.userIdentity.autoUser] The userName * and autoUser properties are mutually exclusive; you must specify one but * not both. - * @member {string} [jobPreparationTask.userIdentity.autoUser.scope] Values - * are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * @member {string} [jobPreparationTask.userIdentity.autoUser.scope] The + * default value is task. Possible values include: 'task', 'pool' * @member {string} [jobPreparationTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', + * 'admin' * @member {boolean} [jobPreparationTask.rerunOnNodeRebootAfterSuccess] The * Job Preparation task is always rerun if a compute node is reimaged, or if * the Job Preparation task did not complete (e.g. because the reboot @@ -329,17 +315,10 @@ class JobSpecification { * @member {object} [jobReleaseTask.userIdentity.autoUser] The userName and * autoUser properties are mutually exclusive; you must specify one but not * both. - * @member {string} [jobReleaseTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [jobReleaseTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * @member {string} [jobReleaseTask.userIdentity.autoUser.scope] The default + * value is task. Possible values include: 'task', 'pool' + * @member {string} [jobReleaseTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {array} [commonEnvironmentSettings] A list of common environment * variable settings. These environment variables are set for all tasks in * jobs created under this schedule (including the Job Manager, Job @@ -368,15 +347,8 @@ class JobSpecification { * distinguish between pools created for different purposes, you can specify * this element to add a prefix to the ID that is assigned. The prefix can be * up to 20 characters long. - * @member {string} [poolInfo.autoPoolSpecification.poolLifetimeOption] When - * the pool lifetime is jobSchedule the pool exists for the lifetime of the - * job schedule. The Batch Service creates the pool when it creates the first - * job on the schedule. You may apply this option only to job schedules, not - * to jobs. When the pool lifetime is job the pool exists for the lifetime of - * the job to which it is dedicated. The Batch service creates the pool when - * it creates the job. If the 'job' option is applied to a job schedule, the - * Batch service creates a new auto pool for every job created on the - * schedule. Possible values include: 'jobSchedule', 'job' + * @member {string} [poolInfo.autoPoolSpecification.poolLifetimeOption] + * Possible values include: 'jobSchedule', 'job' * @member {boolean} [poolInfo.autoPoolSpecification.keepAlive] If false, the * Batch service deletes the pool once its lifetime (as determined by the * poolLifetimeOption setting) expires; that is, when the job or job schedule @@ -461,12 +433,6 @@ class JobSpecification { * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk] * @member {string} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * * The default value for caching is none. For information about the caching * options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. @@ -490,7 +456,15 @@ class JobSpecification { * @member {array} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk + * is not formatted after being attached, it must be formatted before use - + * for more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] * This only applies to images that contain the Windows operating system, and @@ -650,18 +624,11 @@ class JobSpecification { * one but not both. * @member {string} * [poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. * The default value is task. Possible values include: 'task', 'pool' * @member {string} * [poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', + * 'admin' * @member {number} * [poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] The * Batch service retries a task if its exit code is nonzero. Note that this diff --git a/lib/services/batch/lib/models/jobUpdateParameter.js b/lib/services/batch/lib/models/jobUpdateParameter.js index 2b37ccbb98..baff07f464 100644 --- a/lib/services/batch/lib/models/jobUpdateParameter.js +++ b/lib/services/batch/lib/models/jobUpdateParameter.js @@ -63,15 +63,8 @@ class JobUpdateParameter { * distinguish between pools created for different purposes, you can specify * this element to add a prefix to the ID that is assigned. The prefix can be * up to 20 characters long. - * @member {string} [poolInfo.autoPoolSpecification.poolLifetimeOption] When - * the pool lifetime is jobSchedule the pool exists for the lifetime of the - * job schedule. The Batch Service creates the pool when it creates the first - * job on the schedule. You may apply this option only to job schedules, not - * to jobs. When the pool lifetime is job the pool exists for the lifetime of - * the job to which it is dedicated. The Batch service creates the pool when - * it creates the job. If the 'job' option is applied to a job schedule, the - * Batch service creates a new auto pool for every job created on the - * schedule. Possible values include: 'jobSchedule', 'job' + * @member {string} [poolInfo.autoPoolSpecification.poolLifetimeOption] + * Possible values include: 'jobSchedule', 'job' * @member {boolean} [poolInfo.autoPoolSpecification.keepAlive] If false, the * Batch service deletes the pool once its lifetime (as determined by the * poolLifetimeOption setting) expires; that is, when the job or job schedule @@ -156,12 +149,6 @@ class JobUpdateParameter { * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk] * @member {string} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * * The default value for caching is none. For information about the caching * options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. @@ -185,7 +172,15 @@ class JobUpdateParameter { * @member {array} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk + * is not formatted after being attached, it must be formatted before use - + * for more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} * [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] * This only applies to images that contain the Windows operating system, and @@ -345,18 +340,11 @@ class JobUpdateParameter { * one but not both. * @member {string} * [poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. * The default value is task. Possible values include: 'task', 'pool' * @member {string} * [poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', + * 'admin' * @member {number} * [poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] The * Batch service retries a task if its exit code is nonzero. Note that this @@ -403,9 +391,9 @@ class JobUpdateParameter { * in effect, any existing metadata is deleted. * @member {string} [onAllTasksComplete] The action the Batch service should * take when all tasks in the job are in the completed state. If omitted, the - * completion behavior is set to noAction. If the current value is - * terminateJob, this is an error because a job's completion behavior may not - * be changed from terminateJob to noAction. You may not change the value + * completion behavior is set to noaction. If the current value is + * terminatejob, this is an error because a job's completion behavior may not + * be changed from terminatejob to noaction. You may not change the value * from terminatejob to noaction - that is, once you have engaged automatic * job termination, you cannot turn it off again. If you try to do this, the * request fails and Batch returns status code 400 (Bad Request) and an diff --git a/lib/services/batch/lib/models/nodeCounts.js b/lib/services/batch/lib/models/nodeCounts.js new file mode 100644 index 0000000000..83061dce44 --- /dev/null +++ b/lib/services/batch/lib/models/nodeCounts.js @@ -0,0 +1,150 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * @summary The number of nodes in each node state. + * + */ +class NodeCounts { + /** + * Create a NodeCounts. + * @member {number} creating The number of nodes in the creating state. + * @member {number} idle The number of nodes in the idle state. + * @member {number} offline The number of nodes in the offline state. + * @member {number} preempted The number of nodes in the preempted state. + * @member {number} rebooting The count of nodes in the rebooting state. + * @member {number} reimaging The number of nodes in the reimaging state. + * @member {number} running The number of nodes in the running state. + * @member {number} starting The number of nodes in the starting state. + * @member {number} startTaskFailed The number of nodes in the + * startTaskFailed state. + * @member {number} unknown The number of nodes in the unknown state. + * @member {number} unusable The number of nodes in the unusable state. + * @member {number} waitingForStartTask The number of nodes in the + * waitingForStartTask state. + * @member {number} total The total number of nodes. + */ + constructor() { + } + + /** + * Defines the metadata of NodeCounts + * + * @returns {object} metadata of NodeCounts + * + */ + mapper() { + return { + required: false, + serializedName: 'NodeCounts', + type: { + name: 'Composite', + className: 'NodeCounts', + modelProperties: { + creating: { + required: true, + serializedName: 'creating', + type: { + name: 'Number' + } + }, + idle: { + required: true, + serializedName: 'idle', + type: { + name: 'Number' + } + }, + offline: { + required: true, + serializedName: 'offline', + type: { + name: 'Number' + } + }, + preempted: { + required: true, + serializedName: 'preempted', + type: { + name: 'Number' + } + }, + rebooting: { + required: true, + serializedName: 'rebooting', + type: { + name: 'Number' + } + }, + reimaging: { + required: true, + serializedName: 'reimaging', + type: { + name: 'Number' + } + }, + running: { + required: true, + serializedName: 'running', + type: { + name: 'Number' + } + }, + starting: { + required: true, + serializedName: 'starting', + type: { + name: 'Number' + } + }, + startTaskFailed: { + required: true, + serializedName: 'startTaskFailed', + type: { + name: 'Number' + } + }, + unknown: { + required: true, + serializedName: 'unknown', + type: { + name: 'Number' + } + }, + unusable: { + required: true, + serializedName: 'unusable', + type: { + name: 'Number' + } + }, + waitingForStartTask: { + required: true, + serializedName: 'waitingForStartTask', + type: { + name: 'Number' + } + }, + total: { + required: true, + serializedName: 'total', + type: { + name: 'Number' + } + } + } + } + }; + } +} + +module.exports = NodeCounts; diff --git a/lib/services/batch/lib/models/nodeDisableSchedulingParameter.js b/lib/services/batch/lib/models/nodeDisableSchedulingParameter.js index 70f3057f57..47a2aa2e54 100644 --- a/lib/services/batch/lib/models/nodeDisableSchedulingParameter.js +++ b/lib/services/batch/lib/models/nodeDisableSchedulingParameter.js @@ -18,21 +18,9 @@ class NodeDisableSchedulingParameter { /** * Create a NodeDisableSchedulingParameter. * @member {string} [nodeDisableSchedulingOption] What to do with currently - * running tasks when disabling task scheduling on the compute node. Values - * are: - * - * requeue - Terminate running task processes and requeue the tasks. The - * tasks may run again on other compute nodes, or when task scheduling is - * re-enabled on this node. Enter offline state as soon as tasks have been - * terminated. - * terminate - Terminate running tasks. The tasks will not run again. Enter - * offline state as soon as tasks have been terminated. - * taskcompletion - Allow currently running tasks to complete. Schedule no - * new tasks while waiting. Enter offline state when all tasks have - * completed. - * - * The default value is requeue. Possible values include: 'requeue', - * 'terminate', 'taskCompletion' + * running tasks when disabling task scheduling on the compute node. The + * default value is requeue. Possible values include: 'requeue', 'terminate', + * 'taskCompletion' */ constructor() { } diff --git a/lib/services/batch/lib/models/nodeRebootParameter.js b/lib/services/batch/lib/models/nodeRebootParameter.js index 9448894c15..7ffb2c0ba3 100644 --- a/lib/services/batch/lib/models/nodeRebootParameter.js +++ b/lib/services/batch/lib/models/nodeRebootParameter.js @@ -18,21 +18,9 @@ class NodeRebootParameter { /** * Create a NodeRebootParameter. * @member {string} [nodeRebootOption] When to reboot the compute node and - * what to do with currently running tasks. Values are: - * - * requeue - Terminate running task processes and requeue the tasks. The - * tasks will run again when a node is available. Restart the node as soon as - * tasks have been terminated. - * terminate - Terminate running tasks. The tasks will not run again. Restart - * the node as soon as tasks have been terminated. - * taskcompletion - Allow currently running tasks to complete. Schedule no - * new tasks while waiting. Restart the node when all tasks have completed. - * retaineddata - Allow currently running tasks to complete, then wait for - * all task data retention periods to expire. Schedule no new tasks while - * waiting. Restart the node when all task retention periods have expired. - * - * The default value is requeue. Possible values include: 'requeue', - * 'terminate', 'taskCompletion', 'retainedData' + * what to do with currently running tasks. The default value is requeue. + * Possible values include: 'requeue', 'terminate', 'taskCompletion', + * 'retainedData' */ constructor() { } diff --git a/lib/services/batch/lib/models/nodeReimageParameter.js b/lib/services/batch/lib/models/nodeReimageParameter.js index 9835a41c49..959aa60ac1 100644 --- a/lib/services/batch/lib/models/nodeReimageParameter.js +++ b/lib/services/batch/lib/models/nodeReimageParameter.js @@ -18,21 +18,9 @@ class NodeReimageParameter { /** * Create a NodeReimageParameter. * @member {string} [nodeReimageOption] When to reimage the compute node and - * what to do with currently running tasks. Values are: - * - * requeue - Terminate running task processes and requeue the tasks. The - * tasks will run again when a node is available. Reimage the node as soon as - * tasks have been terminated. - * terminate - Terminate running tasks. The tasks will not run again. Reimage - * the node as soon as tasks have been terminated. - * taskcompletion - Allow currently running tasks to complete. Schedule no - * new tasks while waiting. Reimage the node when all tasks have completed. - * retaineddata - Allow currently running tasks to complete, then wait for - * all task data retention periods to expire. Schedule no new tasks while - * waiting. Reimage the node when all task retention periods have expired. - * - * The default value is requeue. Possible values include: 'requeue', - * 'terminate', 'taskCompletion', 'retainedData' + * what to do with currently running tasks. The default value is requeue. + * Possible values include: 'requeue', 'terminate', 'taskCompletion', + * 'retainedData' */ constructor() { } diff --git a/lib/services/batch/lib/models/oSDisk.js b/lib/services/batch/lib/models/oSDisk.js index c6a2fa5a8b..3d18e10a7d 100644 --- a/lib/services/batch/lib/models/oSDisk.js +++ b/lib/services/batch/lib/models/oSDisk.js @@ -18,12 +18,6 @@ class OSDisk { /** * Create a OSDisk. * @member {string} [caching] The type of caching to enable for the OS disk. - * Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * * The default value for caching is none. For information about the caching * options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. diff --git a/lib/services/batch/lib/models/outputFile.js b/lib/services/batch/lib/models/outputFile.js index 9e2d2e734d..f0fadfb08d 100644 --- a/lib/services/batch/lib/models/outputFile.js +++ b/lib/services/batch/lib/models/outputFile.js @@ -53,7 +53,7 @@ class OutputFile { * @member {object} uploadOptions Additional options for the upload * operation, including under what conditions to perform the upload. * @member {string} [uploadOptions.uploadCondition] The default is - * taskCompletion. Possible values include: 'taskSuccess', 'taskFailure', + * taskcompletion. Possible values include: 'taskSuccess', 'taskFailure', * 'taskCompletion' */ constructor() { diff --git a/lib/services/batch/lib/models/outputFileUploadOptions.js b/lib/services/batch/lib/models/outputFileUploadOptions.js index 32b450041b..f13155b8af 100644 --- a/lib/services/batch/lib/models/outputFileUploadOptions.js +++ b/lib/services/batch/lib/models/outputFileUploadOptions.js @@ -20,7 +20,7 @@ class OutputFileUploadOptions { * Create a OutputFileUploadOptions. * @member {string} uploadCondition The conditions under which the task * output file or set of files should be uploaded. The default is - * taskCompletion. Possible values include: 'taskSuccess', 'taskFailure', + * taskcompletion. Possible values include: 'taskSuccess', 'taskFailure', * 'taskCompletion' */ constructor() { diff --git a/lib/services/batch/lib/models/poolAddParameter.js b/lib/services/batch/lib/models/poolAddParameter.js index 0fed6b7ac4..a3faf84048 100644 --- a/lib/services/batch/lib/models/poolAddParameter.js +++ b/lib/services/batch/lib/models/poolAddParameter.js @@ -82,14 +82,8 @@ class PoolAddParameter { * Batch node agent to communicate with the Batch service see * https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. * @member {object} [virtualMachineConfiguration.osDisk] - * @member {string} [virtualMachineConfiguration.osDisk.caching] Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * @member {string} [virtualMachineConfiguration.osDisk.caching] The default + * value for caching is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @member {string} [virtualMachineConfiguration.nodeAgentSKUId] The Batch @@ -108,7 +102,15 @@ class PoolAddParameter { * If omitted, the default value is true. * @member {array} [virtualMachineConfiguration.dataDisks] 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. + * 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. When the node is removed from the pool, the + * disk and all data associated with it is also deleted. The disk is not + * formatted after being attached, it must be formatted before use - for more + * information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} [virtualMachineConfiguration.licenseType] This only * applies to images that contain the Windows operating system, and should * only be used when you hold valid on-premises licenses for the nodes which @@ -241,17 +243,10 @@ class PoolAddParameter { * @member {object} [startTask.userIdentity.autoUser] The userName and * autoUser properties are mutually exclusive; you must specify one but not * both. - * @member {string} [startTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [startTask.userIdentity.autoUser.elevationLevel] nonAdmin - * - The auto user is a standard user without elevated access. admin - The - * auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * @member {string} [startTask.userIdentity.autoUser.scope] The default value + * is task. Possible values include: 'task', 'pool' + * @member {string} [startTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {number} [startTask.maxTaskRetryCount] The Batch service retries a * task if its exit code is nonzero. Note that this value specifically * controls the number of retries. The Batch service will try the task once, diff --git a/lib/services/batch/lib/models/poolInformation.js b/lib/services/batch/lib/models/poolInformation.js index eb9fe4098a..d66d7a49ee 100644 --- a/lib/services/batch/lib/models/poolInformation.js +++ b/lib/services/batch/lib/models/poolInformation.js @@ -41,15 +41,8 @@ class PoolInformation { * distinguish between pools created for different purposes, you can specify * this element to add a prefix to the ID that is assigned. The prefix can be * up to 20 characters long. - * @member {string} [autoPoolSpecification.poolLifetimeOption] When the pool - * lifetime is jobSchedule the pool exists for the lifetime of the job - * schedule. The Batch Service creates the pool when it creates the first job - * on the schedule. You may apply this option only to job schedules, not to - * jobs. When the pool lifetime is job the pool exists for the lifetime of - * the job to which it is dedicated. The Batch service creates the pool when - * it creates the job. If the 'job' option is applied to a job schedule, the - * Batch service creates a new auto pool for every job created on the - * schedule. Possible values include: 'jobSchedule', 'job' + * @member {string} [autoPoolSpecification.poolLifetimeOption] Possible + * values include: 'jobSchedule', 'job' * @member {boolean} [autoPoolSpecification.keepAlive] If false, the Batch * service deletes the pool once its lifetime (as determined by the * poolLifetimeOption setting) expires; that is, when the job or job schedule @@ -131,12 +124,6 @@ class PoolInformation { * [autoPoolSpecification.pool.virtualMachineConfiguration.osDisk] * @member {string} * [autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * * The default value for caching is none. For information about the caching * options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. @@ -160,7 +147,15 @@ class PoolInformation { * @member {array} * [autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk + * is not formatted after being attached, it must be formatted before use - + * for more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} * [autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] This * only applies to images that contain the Windows operating system, and @@ -309,19 +304,12 @@ class PoolInformation { * and autoUser properties are mutually exclusive; you must specify one but * not both. * @member {string} - * [autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] Values - * are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * [autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] The + * default value is task. Possible values include: 'task', 'pool' * @member {string} * [autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * nonAdmin - The auto user is a standard user without elevated access. admin - * - The auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * The default value is nonAdmin. Possible values include: 'nonAdmin', + * 'admin' * @member {number} [autoPoolSpecification.pool.startTask.maxTaskRetryCount] * The Batch service retries a task if its exit code is nonzero. Note that * this value specifically controls the number of retries. The Batch service diff --git a/lib/services/batch/lib/models/poolNodeCounts.js b/lib/services/batch/lib/models/poolNodeCounts.js new file mode 100644 index 0000000000..0b69c80279 --- /dev/null +++ b/lib/services/batch/lib/models/poolNodeCounts.js @@ -0,0 +1,99 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +const models = require('./index'); + +/** + * @summary The number of nodes in each state for a pool. + * + */ +class PoolNodeCounts { + /** + * Create a PoolNodeCounts. + * @member {string} poolId The ID of the pool. + * @member {object} [dedicated] The number of dedicated nodes in each state. + * @member {number} [dedicated.creating] + * @member {number} [dedicated.idle] + * @member {number} [dedicated.offline] + * @member {number} [dedicated.preempted] + * @member {number} [dedicated.rebooting] + * @member {number} [dedicated.reimaging] + * @member {number} [dedicated.running] + * @member {number} [dedicated.starting] + * @member {number} [dedicated.startTaskFailed] + * @member {number} [dedicated.unknown] + * @member {number} [dedicated.unusable] + * @member {number} [dedicated.waitingForStartTask] + * @member {number} [dedicated.total] + * @member {object} [lowPriority] The number of low priority nodes in each + * state. + * @member {number} [lowPriority.creating] + * @member {number} [lowPriority.idle] + * @member {number} [lowPriority.offline] + * @member {number} [lowPriority.preempted] + * @member {number} [lowPriority.rebooting] + * @member {number} [lowPriority.reimaging] + * @member {number} [lowPriority.running] + * @member {number} [lowPriority.starting] + * @member {number} [lowPriority.startTaskFailed] + * @member {number} [lowPriority.unknown] + * @member {number} [lowPriority.unusable] + * @member {number} [lowPriority.waitingForStartTask] + * @member {number} [lowPriority.total] + */ + constructor() { + } + + /** + * Defines the metadata of PoolNodeCounts + * + * @returns {object} metadata of PoolNodeCounts + * + */ + mapper() { + return { + required: false, + serializedName: 'PoolNodeCounts', + type: { + name: 'Composite', + className: 'PoolNodeCounts', + modelProperties: { + poolId: { + required: true, + serializedName: 'poolId', + type: { + name: 'String' + } + }, + dedicated: { + required: false, + serializedName: 'dedicated', + type: { + name: 'Composite', + className: 'NodeCounts' + } + }, + lowPriority: { + required: false, + serializedName: 'lowPriority', + type: { + name: 'Composite', + className: 'NodeCounts' + } + } + } + } + }; + } +} + +module.exports = PoolNodeCounts; diff --git a/lib/services/batch/lib/models/poolNodeCountsListResult.js b/lib/services/batch/lib/models/poolNodeCountsListResult.js new file mode 100644 index 0000000000..bf0e8a80e2 --- /dev/null +++ b/lib/services/batch/lib/models/poolNodeCountsListResult.js @@ -0,0 +1,67 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * @summary The result of listing the node counts in the account. + */ +class PoolNodeCountsListResult extends Array { + /** + * Create a PoolNodeCountsListResult. + * @member {string} [odatanextLink] + */ + constructor() { + super(); + } + + /** + * Defines the metadata of PoolNodeCountsListResult + * + * @returns {object} metadata of PoolNodeCountsListResult + * + */ + mapper() { + return { + required: false, + serializedName: 'PoolNodeCountsListResult', + type: { + name: 'Composite', + className: 'PoolNodeCountsListResult', + modelProperties: { + value: { + required: false, + serializedName: '', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'PoolNodeCountsElementType', + type: { + name: 'Composite', + className: 'PoolNodeCounts' + } + } + } + }, + odatanextLink: { + required: false, + serializedName: 'odata\\.nextLink', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = PoolNodeCountsListResult; diff --git a/lib/services/batch/lib/models/poolPatchParameter.js b/lib/services/batch/lib/models/poolPatchParameter.js index b5842b6614..6c99e97d8e 100644 --- a/lib/services/batch/lib/models/poolPatchParameter.js +++ b/lib/services/batch/lib/models/poolPatchParameter.js @@ -58,17 +58,10 @@ class PoolPatchParameter { * @member {object} [startTask.userIdentity.autoUser] The userName and * autoUser properties are mutually exclusive; you must specify one but not * both. - * @member {string} [startTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [startTask.userIdentity.autoUser.elevationLevel] nonAdmin - * - The auto user is a standard user without elevated access. admin - The - * auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * @member {string} [startTask.userIdentity.autoUser.scope] The default value + * is task. Possible values include: 'task', 'pool' + * @member {string} [startTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {number} [startTask.maxTaskRetryCount] The Batch service retries a * task if its exit code is nonzero. Note that this value specifically * controls the number of retries. The Batch service will try the task once, diff --git a/lib/services/batch/lib/models/poolSpecification.js b/lib/services/batch/lib/models/poolSpecification.js index a39c16262b..d143820fea 100644 --- a/lib/services/batch/lib/models/poolSpecification.js +++ b/lib/services/batch/lib/models/poolSpecification.js @@ -85,14 +85,8 @@ class PoolSpecification { * Batch node agent to communicate with the Batch service see * https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. * @member {object} [virtualMachineConfiguration.osDisk] - * @member {string} [virtualMachineConfiguration.osDisk.caching] Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * @member {string} [virtualMachineConfiguration.osDisk.caching] The default + * value for caching is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @member {string} [virtualMachineConfiguration.nodeAgentSKUId] The Batch @@ -111,7 +105,15 @@ class PoolSpecification { * If omitted, the default value is true. * @member {array} [virtualMachineConfiguration.dataDisks] 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. + * 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. When the node is removed from the pool, the + * disk and all data associated with it is also deleted. The disk is not + * formatted after being attached, it must be formatted before use - for more + * information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} [virtualMachineConfiguration.licenseType] This only * applies to images that contain the Windows operating system, and should * only be used when you hold valid on-premises licenses for the nodes which @@ -250,17 +252,10 @@ class PoolSpecification { * @member {object} [startTask.userIdentity.autoUser] The userName and * autoUser properties are mutually exclusive; you must specify one but not * both. - * @member {string} [startTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [startTask.userIdentity.autoUser.elevationLevel] nonAdmin - * - The auto user is a standard user without elevated access. admin - The - * auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * @member {string} [startTask.userIdentity.autoUser.scope] The default value + * is task. Possible values include: 'task', 'pool' + * @member {string} [startTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {number} [startTask.maxTaskRetryCount] The Batch service retries a * task if its exit code is nonzero. Note that this value specifically * controls the number of retries. The Batch service will try the task once, diff --git a/lib/services/batch/lib/models/poolUpdatePropertiesParameter.js b/lib/services/batch/lib/models/poolUpdatePropertiesParameter.js index ae7640609e..1d864ca963 100644 --- a/lib/services/batch/lib/models/poolUpdatePropertiesParameter.js +++ b/lib/services/batch/lib/models/poolUpdatePropertiesParameter.js @@ -58,17 +58,10 @@ class PoolUpdatePropertiesParameter { * @member {object} [startTask.userIdentity.autoUser] The userName and * autoUser properties are mutually exclusive; you must specify one but not * both. - * @member {string} [startTask.userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [startTask.userIdentity.autoUser.elevationLevel] nonAdmin - * - The auto user is a standard user without elevated access. admin - The - * auto user is a user with elevated access and operates with full - * Administrator permissions. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' + * @member {string} [startTask.userIdentity.autoUser.scope] The default value + * is task. Possible values include: 'task', 'pool' + * @member {string} [startTask.userIdentity.autoUser.elevationLevel] The + * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {number} [startTask.maxTaskRetryCount] The Batch service retries a * task if its exit code is nonzero. Note that this value specifically * controls the number of retries. The Batch service will try the task once, diff --git a/lib/services/batch/lib/models/poolUsageMetrics.js b/lib/services/batch/lib/models/poolUsageMetrics.js index 63c8b5cd70..ca326a0576 100644 --- a/lib/services/batch/lib/models/poolUsageMetrics.js +++ b/lib/services/batch/lib/models/poolUsageMetrics.js @@ -25,14 +25,13 @@ class PoolUsageMetrics { * this entry. * @member {string} vmSize The size of virtual machines in the pool. All VMs * in a pool are the same size. For information about available sizes of - * virtual machines for Cloud Services pools (pools created with - * cloudServiceConfiguration), see Sizes for Cloud Services - * (http://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/). - * Batch supports all Cloud Services VM sizes except ExtraSmall, - * STANDARD_A1_V2 and STANDARD_A2_V2. For information about available VM - * sizes for pools using images from the Virtual Machines Marketplace (pools - * created with virtualMachineConfiguration) see Sizes for Virtual Machines - * (Linux) + * virtual machines in pools, see Choose a VM size for compute nodes in an + * Azure Batch pool + * (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes). Batch + * supports all Cloud Services VM sizes except ExtraSmall, STANDARD_A1_V2 and + * STANDARD_A2_V2. For information about available VM sizes for pools using + * images from the Virtual Machines Marketplace (pools created with + * virtualMachineConfiguration) see Sizes for Virtual Machines (Linux) * (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) * or Sizes for Virtual Machines (Windows) * (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). diff --git a/lib/services/batch/lib/models/startTask.js b/lib/services/batch/lib/models/startTask.js index 3524870313..b637e7de6d 100644 --- a/lib/services/batch/lib/models/startTask.js +++ b/lib/services/batch/lib/models/startTask.js @@ -56,17 +56,10 @@ class StartTask { * properties are mutually exclusive; you must specify one but not both. * @member {object} [userIdentity.autoUser] The userName and autoUser * properties are mutually exclusive; you must specify one but not both. - * @member {string} [userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [userIdentity.autoUser.elevationLevel] nonAdmin - The - * auto user is a standard user without elevated access. admin - The auto - * user is a user with elevated access and operates with full Administrator - * permissions. The default value is nonAdmin. Possible values include: - * 'nonAdmin', 'admin' + * @member {string} [userIdentity.autoUser.scope] The default value is task. + * Possible values include: 'task', 'pool' + * @member {string} [userIdentity.autoUser.elevationLevel] The default value + * is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {number} [maxTaskRetryCount] The maximum number of times the task * may be retried. The Batch service retries a task if its exit code is * nonzero. Note that this value specifically controls the number of retries. diff --git a/lib/services/batch/lib/models/startTaskInformation.js b/lib/services/batch/lib/models/startTaskInformation.js index f913e776ec..d580d2ee24 100644 --- a/lib/services/batch/lib/models/startTaskInformation.js +++ b/lib/services/batch/lib/models/startTaskInformation.js @@ -20,13 +20,7 @@ class StartTaskInformation { /** * Create a StartTaskInformation. * @member {string} state The state of the start task on the compute node. - * Values are: - * - * running - The start task is currently running. - * completed - The start task has exited with exit code 0, or the start task - * has failed and the retry limit has reached, or the start task process did - * not run due to task preparation errors (such as resource file download - * failures). Possible values include: 'running', 'completed' + * Possible values include: 'running', 'completed' * @member {date} startTime The time at which the start task started running. * This value is reset every time the task is restarted or retried (that is, * this is the most recent time at which the start task started running). diff --git a/lib/services/batch/lib/models/taskAddParameter.js b/lib/services/batch/lib/models/taskAddParameter.js index e92867d570..bd8b8f1eb6 100644 --- a/lib/services/batch/lib/models/taskAddParameter.js +++ b/lib/services/batch/lib/models/taskAddParameter.js @@ -61,29 +61,17 @@ class TaskAddParameter { * @member {array} [exitConditions.exitCodes] * @member {array} [exitConditions.exitCodeRanges] * @member {object} [exitConditions.preProcessingError] - * @member {string} [exitConditions.preProcessingError.jobAction] Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' - * @member {string} [exitConditions.preProcessingError.dependencyAction] - * Values are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit + * @member {string} [exitConditions.preProcessingError.jobAction] The default + * is none for exit code 0 and terminate for all other exit conditions. If + * the job's onTaskFailed property is noaction, then specifying this property + * returns an error and the add task request fails with an invalid property + * value error; if you are calling the REST API directly, the HTTP status + * code is 400 (Bad Request). Possible values include: 'none', 'disable', + * 'terminate' + * @member {string} [exitConditions.preProcessingError.dependencyAction] The + * default is 'satisfy' for exit code 0, and 'block' for all other exit * conditions. If the job's usesTaskDependencies property is set to false, - * then specifying the dependencyAction property returns an erro and the add + * then specifying the dependencyAction property returns an error and the add * task request fails with an invalid property value error; if you are * calling the REST API directly, the HTTP status code is 400 (Bad Request). * Possible values include: 'satisfy', 'block' @@ -91,29 +79,17 @@ class TaskAddParameter { * an exit code that was specified via exitCodes or exitCodeRanges, and then * encountered a file upload error, then the action specified by the exit * code takes precedence. - * @member {string} [exitConditions.fileUploadError.jobAction] Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' - * @member {string} [exitConditions.fileUploadError.dependencyAction] Values - * are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit + * @member {string} [exitConditions.fileUploadError.jobAction] The default is + * none for exit code 0 and terminate for all other exit conditions. If the + * job's onTaskFailed property is noaction, then specifying this property + * returns an error and the add task request fails with an invalid property + * value error; if you are calling the REST API directly, the HTTP status + * code is 400 (Bad Request). Possible values include: 'none', 'disable', + * 'terminate' + * @member {string} [exitConditions.fileUploadError.dependencyAction] The + * default is 'satisfy' for exit code 0, and 'block' for all other exit * conditions. If the job's usesTaskDependencies property is set to false, - * then specifying the dependencyAction property returns an erro and the add + * then specifying the dependencyAction property returns an error and the add * task request fails with an invalid property value error; if you are * calling the REST API directly, the HTTP status code is 400 (Bad Request). * Possible values include: 'satisfy', 'block' @@ -124,31 +100,19 @@ class TaskAddParameter { * the fileUploadError property is not present. If you want non-default * behaviour on exit code 0, you must list it explicitly using the exitCodes * or exitCodeRanges collection. - * @member {string} [exitConditions.default.jobAction] Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' - * @member {string} [exitConditions.default.dependencyAction] Values are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit - * conditions. If the job's usesTaskDependencies property is set to false, - * then specifying the dependencyAction property returns an erro and the add - * task request fails with an invalid property value error; if you are - * calling the REST API directly, the HTTP status code is 400 (Bad Request). - * Possible values include: 'satisfy', 'block' + * @member {string} [exitConditions.default.jobAction] The default is none + * for exit code 0 and terminate for all other exit conditions. If the job's + * onTaskFailed property is noaction, then specifying this property returns + * an error and the add task request fails with an invalid property value + * error; if you are calling the REST API directly, the HTTP status code is + * 400 (Bad Request). Possible values include: 'none', 'disable', 'terminate' + * @member {string} [exitConditions.default.dependencyAction] The default is + * 'satisfy' for exit code 0, and 'block' for all other exit conditions. If + * the job's usesTaskDependencies property is set to false, then specifying + * the dependencyAction property returns an error and the add task request + * fails with an invalid property value error; if you are calling the REST + * API directly, the HTTP status code is 400 (Bad Request). Possible values + * include: 'satisfy', 'block' * @member {array} [resourceFiles] A list of files that the Batch service * will download to the compute node before running the command line. For * multi-instance tasks, the resource files will only be downloaded to the @@ -189,17 +153,10 @@ class TaskAddParameter { * properties are mutually exclusive; you must specify one but not both. * @member {object} [userIdentity.autoUser] The userName and autoUser * properties are mutually exclusive; you must specify one but not both. - * @member {string} [userIdentity.autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [userIdentity.autoUser.elevationLevel] nonAdmin - The - * auto user is a standard user without elevated access. admin - The auto - * user is a user with elevated access and operates with full Administrator - * permissions. The default value is nonAdmin. Possible values include: - * 'nonAdmin', 'admin' + * @member {string} [userIdentity.autoUser.scope] The default value is task. + * Possible values include: 'task', 'pool' + * @member {string} [userIdentity.autoUser.elevationLevel] The default value + * is nonAdmin. Possible values include: 'nonAdmin', 'admin' * @member {object} [multiInstanceSettings] An object that indicates that the * task is a multi-instance task, and contains information about how to run * the multi-instance task. diff --git a/lib/services/batch/lib/models/taskAddResult.js b/lib/services/batch/lib/models/taskAddResult.js index 42b0a2c4a0..b1bfb3c506 100644 --- a/lib/services/batch/lib/models/taskAddResult.js +++ b/lib/services/batch/lib/models/taskAddResult.js @@ -20,14 +20,8 @@ const models = require('./index'); class TaskAddResult { /** * Create a TaskAddResult. - * @member {string} status The status of the add task request. Values are: - * - * success - Task was added successfully. - * clienterror - Task failed to add due to a client error and should not be - * retried without modifying the request as appropriate. - * servererror - Task failed to add due to a server error and can be retried - * without modification. Possible values include: 'success', 'clientError', - * 'serverError' + * @member {string} status The status of the add task request. Possible + * values include: 'success', 'clientError', 'serverError' * @member {string} taskId The ID of the task for which this is the result. * @member {string} [eTag] The ETag of the task, if the task was successfully * added. You can use this to detect whether the task has changed between diff --git a/lib/services/batch/lib/models/taskCounts.js b/lib/services/batch/lib/models/taskCounts.js index 91a4ef9ce9..75e6946e07 100644 --- a/lib/services/batch/lib/models/taskCounts.js +++ b/lib/services/batch/lib/models/taskCounts.js @@ -26,11 +26,7 @@ class TaskCounts { * @member {number} failed The number of tasks which failed. A task fails if * its result (found in the executionInfo property) is 'failure'. * @member {string} validationStatus Whether the task counts have been - * validated. If the validationStatus is unvalidated, then the Batch service - * has not been able to check state counts against the task states as - * reported in the List Tasks API. The validationStatus may be unvalidated if - * the job contains more than 200,000 tasks. Possible values include: - * 'validated', 'unvalidated' + * validated. Possible values include: 'validated', 'unvalidated' */ constructor() { } diff --git a/lib/services/batch/lib/models/taskSchedulingPolicy.js b/lib/services/batch/lib/models/taskSchedulingPolicy.js index 233ef1241a..36c3895eeb 100644 --- a/lib/services/batch/lib/models/taskSchedulingPolicy.js +++ b/lib/services/batch/lib/models/taskSchedulingPolicy.js @@ -18,13 +18,7 @@ class TaskSchedulingPolicy { /** * Create a TaskSchedulingPolicy. * @member {string} nodeFillType How tasks are distributed across compute - * nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in - * the pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * nodes in a pool. Possible values include: 'spread', 'pack' */ constructor() { } diff --git a/lib/services/batch/lib/models/uploadBatchServiceLogsConfiguration.js b/lib/services/batch/lib/models/uploadBatchServiceLogsConfiguration.js new file mode 100644 index 0000000000..0aee453a77 --- /dev/null +++ b/lib/services/batch/lib/models/uploadBatchServiceLogsConfiguration.js @@ -0,0 +1,85 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * @summary The Azure Batch service log files upload configuration for a + * compute node. + * + */ +class UploadBatchServiceLogsConfiguration { + /** + * Create a UploadBatchServiceLogsConfiguration. + * @member {string} containerUrl The URL of the container within Azure Blob + * Storage to which to upload the Batch Service log file(s). The URL must + * include a Shared Access Signature (SAS) granting write permissions to the + * container. The SAS duration must allow enough time for the upload to + * finish. The start time for SAS is optional and recommended to not be + * specified. + * @member {date} startTime The start of the time range from which to upload + * Batch Service log file(s). Any log file containing a log message in the + * time range will be uploaded. This means that the operation might retrieve + * more logs than have been requested since the entire log file is always + * uploaded, but the operation should not retrieve fewer logs than have been + * requested. + * @member {date} [endTime] The end of the time range from which to upload + * Batch Service log file(s). Any log file containing a log message in the + * time range will be uploaded. This means that the operation might retrieve + * more logs than have been requested since the entire log file is always + * uploaded, but the operation should not retrieve fewer logs than have been + * requested. If omitted, the default is to upload all logs available after + * the startTime. + */ + constructor() { + } + + /** + * Defines the metadata of UploadBatchServiceLogsConfiguration + * + * @returns {object} metadata of UploadBatchServiceLogsConfiguration + * + */ + mapper() { + return { + required: false, + serializedName: 'UploadBatchServiceLogsConfiguration', + type: { + name: 'Composite', + className: 'UploadBatchServiceLogsConfiguration', + modelProperties: { + containerUrl: { + required: true, + serializedName: 'containerUrl', + type: { + name: 'String' + } + }, + startTime: { + required: true, + serializedName: 'startTime', + type: { + name: 'DateTime' + } + }, + endTime: { + required: false, + serializedName: 'endTime', + type: { + name: 'DateTime' + } + } + } + } + }; + } +} + +module.exports = UploadBatchServiceLogsConfiguration; diff --git a/lib/services/batch/lib/models/uploadBatchServiceLogsResult.js b/lib/services/batch/lib/models/uploadBatchServiceLogsResult.js new file mode 100644 index 0000000000..b12897b792 --- /dev/null +++ b/lib/services/batch/lib/models/uploadBatchServiceLogsResult.js @@ -0,0 +1,66 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * @summary The result of uploading Batch service log files from a specific + * compute node. + * + */ +class UploadBatchServiceLogsResult { + /** + * Create a UploadBatchServiceLogsResult. + * @member {string} virtualDirectoryName The virtual directory within Azure + * Blob Storage container to which the Batch Service log file(s) will be + * uploaded. The virtual directory name is part of the blob name for each log + * file uploaded, and it is built based poolId, nodeId and a unique + * identifier. + * @member {number} numberOfFilesUploaded The number of log files which will + * be uploaded. + */ + constructor() { + } + + /** + * Defines the metadata of UploadBatchServiceLogsResult + * + * @returns {object} metadata of UploadBatchServiceLogsResult + * + */ + mapper() { + return { + required: false, + serializedName: 'UploadBatchServiceLogsResult', + type: { + name: 'Composite', + className: 'UploadBatchServiceLogsResult', + modelProperties: { + virtualDirectoryName: { + required: true, + serializedName: 'virtualDirectoryName', + type: { + name: 'String' + } + }, + numberOfFilesUploaded: { + required: true, + serializedName: 'numberOfFilesUploaded', + type: { + name: 'Number' + } + } + } + } + }; + } +} + +module.exports = UploadBatchServiceLogsResult; diff --git a/lib/services/batch/lib/models/userIdentity.js b/lib/services/batch/lib/models/userIdentity.js index 99d484eb70..4946e8ea0f 100644 --- a/lib/services/batch/lib/models/userIdentity.js +++ b/lib/services/batch/lib/models/userIdentity.js @@ -27,16 +27,10 @@ class UserIdentity { * @member {object} [autoUser] The auto user under which the task is run. The * userName and autoUser properties are mutually exclusive; you must specify * one but not both. - * @member {string} [autoUser.scope] Values are: - * - * pool - specifies that the task runs as the common auto user account which - * is created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' - * @member {string} [autoUser.elevationLevel] nonAdmin - The auto user is a - * standard user without elevated access. admin - The auto user is a user - * with elevated access and operates with full Administrator permissions. The - * default value is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * @member {string} [autoUser.scope] The default value is task. Possible + * values include: 'task', 'pool' + * @member {string} [autoUser.elevationLevel] The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' */ constructor() { } diff --git a/lib/services/batch/lib/models/virtualMachineConfiguration.js b/lib/services/batch/lib/models/virtualMachineConfiguration.js index 9dbbeaf255..e71b2a1b74 100644 --- a/lib/services/batch/lib/models/virtualMachineConfiguration.js +++ b/lib/services/batch/lib/models/virtualMachineConfiguration.js @@ -39,14 +39,8 @@ class VirtualMachineConfiguration { * https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. * @member {object} [osDisk] Settings for the operating system disk of the * Virtual Machine. - * @member {string} [osDisk.caching] Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * @member {string} [osDisk.caching] The default value for caching is none. + * For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @member {string} nodeAgentSKUId The SKU of the Batch node agent to be @@ -66,7 +60,14 @@ class VirtualMachineConfiguration { * @member {array} [dataDisks] The configuration for data disks attached to * the comptue 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. + * 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. When the node is removed from the pool, the disk and all data + * associated with it is also deleted. The disk is not formatted after being + * attached, it must be formatted before use - for more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * @member {string} [licenseType] The type of on-premises license to be used * when deploying the operating system. This only applies to images that * contain the Windows operating system, and should only be used when you diff --git a/lib/services/batch/lib/operations/account.js b/lib/services/batch/lib/operations/account.js index a0873ebbb1..3e6f1757eb 100644 --- a/lib/services/batch/lib/operations/account.js +++ b/lib/services/batch/lib/operations/account.js @@ -164,7 +164,7 @@ function _listNodeAgentSkus(options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -245,6 +245,235 @@ function _listNodeAgentSkus(options, callback) { }); } +/** + * Gets the number of nodes in each state, grouped by pool. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.accountListPoolNodeCountsOptions] Additional + * parameters for the operation + * + * @param {string} [options.accountListPoolNodeCountsOptions.filter] An OData + * $filter clause. + * + * @param {number} [options.accountListPoolNodeCountsOptions.maxResults] The + * maximum number of items to return in the response. + * + * @param {number} [options.accountListPoolNodeCountsOptions.timeout] The + * maximum time that the server can spend processing the request, in seconds. + * The default is 30 seconds. + * + * @param {uuid} [options.accountListPoolNodeCountsOptions.clientRequestId] The + * caller-generated request identity, in the form of a GUID with no decoration + * such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + * + * @param {boolean} + * [options.accountListPoolNodeCountsOptions.returnClientRequestId] Whether the + * server should return the client-request-id in the response. + * + * @param {date} [options.accountListPoolNodeCountsOptions.ocpDate] The time + * the request was issued. Client libraries typically set this to the current + * system clock time; set it explicitly if you are calling the REST API + * directly. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link PoolNodeCountsListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _listPoolNodeCounts(options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let accountListPoolNodeCountsOptions = (options && options.accountListPoolNodeCountsOptions !== undefined) ? options.accountListPoolNodeCountsOptions : undefined; + // Validate + try { + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + let filter; + let maxResults; + let timeout; + let clientRequestId; + let returnClientRequestId; + let ocpDate; + try { + 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) + { + 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) + { + 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) + { + 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) + { + 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) + { + ocpDate = accountListPoolNodeCountsOptions.ocpDate; + if (ocpDate && !(ocpDate instanceof Date || + (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { + throw new Error('ocpDate must be of type date.'); + } + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'nodecounts'; + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); + if (filter !== null && filter !== undefined) { + queryParameters.push('$filter=' + encodeURIComponent(filter)); + } + if (maxResults !== null && maxResults !== undefined) { + queryParameters.push('maxresults=' + encodeURIComponent(maxResults.toString())); + } + if (timeout !== null && timeout !== undefined) { + queryParameters.push('timeout=' + encodeURIComponent(timeout.toString())); + } + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if (clientRequestId !== undefined && clientRequestId !== null) { + httpRequest.headers['client-request-id'] = clientRequestId.toString(); + } + if (returnClientRequestId !== undefined && returnClientRequestId !== null) { + httpRequest.headers['return-client-request-id'] = returnClientRequestId.toString(); + } + if (ocpDate !== undefined && ocpDate !== null) { + httpRequest.headers['ocp-date'] = ocpDate.toUTCString(); + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + let internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['BatchError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['PoolNodeCountsListResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + /** * @summary Lists all node agent SKUs supported by the Azure Batch service. * @@ -253,20 +482,204 @@ function _listNodeAgentSkus(options, callback) { * * @param {object} [options] Optional Parameters. * - * @param {object} [options.accountListNodeAgentSkusNextOptions] Additional + * @param {object} [options.accountListNodeAgentSkusNextOptions] Additional + * parameters for the operation + * + * @param {uuid} [options.accountListNodeAgentSkusNextOptions.clientRequestId] + * The caller-generated request identity, in the form of a GUID with no + * decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + * + * @param {boolean} + * [options.accountListNodeAgentSkusNextOptions.returnClientRequestId] Whether + * the server should return the client-request-id in the response. + * + * @param {date} [options.accountListNodeAgentSkusNextOptions.ocpDate] The time + * the request was issued. Client libraries typically set this to the current + * system clock time; set it explicitly if you are calling the REST API + * directly. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link AccountListNodeAgentSkusResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _listNodeAgentSkusNext(nextPageLink, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let accountListNodeAgentSkusNextOptions = (options && options.accountListNodeAgentSkusNextOptions !== undefined) ? options.accountListNodeAgentSkusNextOptions : undefined; + // Validate + try { + if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + let clientRequestId; + let returnClientRequestId; + let ocpDate; + try { + 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) + { + 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) + { + ocpDate = accountListNodeAgentSkusNextOptions.ocpDate; + if (ocpDate && !(ocpDate instanceof Date || + (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { + throw new Error('ocpDate must be of type date.'); + } + } + } catch (error) { + return callback(error); + } + + // Construct URL + let requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if (clientRequestId !== undefined && clientRequestId !== null) { + httpRequest.headers['client-request-id'] = clientRequestId.toString(); + } + if (returnClientRequestId !== undefined && returnClientRequestId !== null) { + httpRequest.headers['return-client-request-id'] = returnClientRequestId.toString(); + } + if (ocpDate !== undefined && ocpDate !== null) { + httpRequest.headers['ocp-date'] = ocpDate.toUTCString(); + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + let internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['BatchError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['AccountListNodeAgentSkusResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Gets the number of nodes in each state, grouped by pool. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.accountListPoolNodeCountsNextOptions] Additional * parameters for the operation * - * @param {uuid} [options.accountListNodeAgentSkusNextOptions.clientRequestId] + * @param {uuid} [options.accountListPoolNodeCountsNextOptions.clientRequestId] * The caller-generated request identity, in the form of a GUID with no * decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. * * @param {boolean} - * [options.accountListNodeAgentSkusNextOptions.returnClientRequestId] Whether + * [options.accountListPoolNodeCountsNextOptions.returnClientRequestId] Whether * the server should return the client-request-id in the response. * - * @param {date} [options.accountListNodeAgentSkusNextOptions.ocpDate] The time - * the request was issued. Client libraries typically set this to the current - * system clock time; set it explicitly if you are calling the REST API + * @param {date} [options.accountListPoolNodeCountsNextOptions.ocpDate] The + * time the request was issued. Client libraries typically set this to the + * current system clock time; set it explicitly if you are calling the REST API * directly. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -279,14 +692,14 @@ function _listNodeAgentSkus(options, callback) { * {Error} err - The Error object if an error occurred, null otherwise. * * {object} [result] - The deserialized result object if an error did not occur. - * See {@link AccountListNodeAgentSkusResult} for more + * See {@link PoolNodeCountsListResult} for more * information. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _listNodeAgentSkusNext(nextPageLink, options, callback) { +function _listPoolNodeCountsNext(nextPageLink, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -296,7 +709,7 @@ function _listNodeAgentSkusNext(nextPageLink, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let accountListNodeAgentSkusNextOptions = (options && options.accountListNodeAgentSkusNextOptions !== undefined) ? options.accountListNodeAgentSkusNextOptions : undefined; + let accountListPoolNodeCountsNextOptions = (options && options.accountListPoolNodeCountsNextOptions !== undefined) ? options.accountListPoolNodeCountsNextOptions : undefined; // Validate try { if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { @@ -312,23 +725,23 @@ function _listNodeAgentSkusNext(nextPageLink, options, callback) { let returnClientRequestId; let ocpDate; try { - if (accountListNodeAgentSkusNextOptions !== null && accountListNodeAgentSkusNextOptions !== undefined) + if (accountListPoolNodeCountsNextOptions !== null && accountListPoolNodeCountsNextOptions !== undefined) { - clientRequestId = accountListNodeAgentSkusNextOptions.clientRequestId; + 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 (accountListNodeAgentSkusNextOptions !== null && accountListNodeAgentSkusNextOptions !== undefined) + if (accountListPoolNodeCountsNextOptions !== null && accountListPoolNodeCountsNextOptions !== undefined) { - returnClientRequestId = accountListNodeAgentSkusNextOptions.returnClientRequestId; + returnClientRequestId = accountListPoolNodeCountsNextOptions.returnClientRequestId; if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') { throw new Error('returnClientRequestId must be of type boolean.'); } } - if (accountListNodeAgentSkusNextOptions !== null && accountListNodeAgentSkusNextOptions !== undefined) + if (accountListPoolNodeCountsNextOptions !== null && accountListPoolNodeCountsNextOptions !== undefined) { - ocpDate = accountListNodeAgentSkusNextOptions.ocpDate; + ocpDate = accountListPoolNodeCountsNextOptions.ocpDate; if (ocpDate && !(ocpDate instanceof Date || (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { throw new Error('ocpDate must be of type date.'); @@ -348,7 +761,7 @@ function _listNodeAgentSkusNext(nextPageLink, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -414,7 +827,7 @@ function _listNodeAgentSkusNext(nextPageLink, options, callback) { parsedResponse = JSON.parse(responseBody); result = JSON.parse(responseBody); if (parsedResponse !== null && parsedResponse !== undefined) { - let resultMapper = new client.models['AccountListNodeAgentSkusResult']().mapper(); + let resultMapper = new client.models['PoolNodeCountsListResult']().mapper(); result = client.deserialize(resultMapper, parsedResponse, 'result'); } } catch (error) { @@ -438,7 +851,9 @@ class Account { constructor(client) { this.client = client; this._listNodeAgentSkus = _listNodeAgentSkus; + this._listPoolNodeCounts = _listPoolNodeCounts; this._listNodeAgentSkusNext = _listNodeAgentSkusNext; + this._listPoolNodeCountsNext = _listPoolNodeCountsNext; } /** @@ -576,6 +991,137 @@ class Account { } } + /** + * Gets the number of nodes in each state, grouped by pool. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.accountListPoolNodeCountsOptions] Additional + * parameters for the operation + * + * @param {string} [options.accountListPoolNodeCountsOptions.filter] An OData + * $filter clause. + * + * @param {number} [options.accountListPoolNodeCountsOptions.maxResults] The + * maximum number of items to return in the response. + * + * @param {number} [options.accountListPoolNodeCountsOptions.timeout] The + * maximum time that the server can spend processing the request, in seconds. + * The default is 30 seconds. + * + * @param {uuid} [options.accountListPoolNodeCountsOptions.clientRequestId] The + * caller-generated request identity, in the form of a GUID with no decoration + * such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + * + * @param {boolean} + * [options.accountListPoolNodeCountsOptions.returnClientRequestId] Whether the + * server should return the client-request-id in the response. + * + * @param {date} [options.accountListPoolNodeCountsOptions.ocpDate] The time + * the request was issued. Client libraries typically set this to the current + * system clock time; set it explicitly if you are calling the REST API + * directly. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + listPoolNodeCountsWithHttpOperationResponse(options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listPoolNodeCounts(options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets the number of nodes in each state, grouped by pool. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.accountListPoolNodeCountsOptions] Additional + * parameters for the operation + * + * @param {string} [options.accountListPoolNodeCountsOptions.filter] An OData + * $filter clause. + * + * @param {number} [options.accountListPoolNodeCountsOptions.maxResults] The + * maximum number of items to return in the response. + * + * @param {number} [options.accountListPoolNodeCountsOptions.timeout] The + * maximum time that the server can spend processing the request, in seconds. + * The default is 30 seconds. + * + * @param {uuid} [options.accountListPoolNodeCountsOptions.clientRequestId] The + * caller-generated request identity, in the form of a GUID with no decoration + * such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + * + * @param {boolean} + * [options.accountListPoolNodeCountsOptions.returnClientRequestId] Whether the + * server should return the client-request-id in the response. + * + * @param {date} [options.accountListPoolNodeCountsOptions.ocpDate] The time + * the request was issued. Client libraries typically set this to the current + * system clock time; set it explicitly if you are calling the REST API + * directly. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {PoolNodeCountsListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link PoolNodeCountsListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + listPoolNodeCounts(options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._listPoolNodeCounts(options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listPoolNodeCounts(options, optionalCallback); + } + } + /** * @summary Lists all node agent SKUs supported by the Azure Batch service. * @@ -693,6 +1239,123 @@ class Account { } } + /** + * Gets the number of nodes in each state, grouped by pool. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.accountListPoolNodeCountsNextOptions] Additional + * parameters for the operation + * + * @param {uuid} [options.accountListPoolNodeCountsNextOptions.clientRequestId] + * The caller-generated request identity, in the form of a GUID with no + * decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + * + * @param {boolean} + * [options.accountListPoolNodeCountsNextOptions.returnClientRequestId] Whether + * the server should return the client-request-id in the response. + * + * @param {date} [options.accountListPoolNodeCountsNextOptions.ocpDate] The + * time the request was issued. Client libraries typically set this to the + * current system clock time; set it explicitly if you are calling the REST API + * directly. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + listPoolNodeCountsNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listPoolNodeCountsNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets the number of nodes in each state, grouped by pool. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.accountListPoolNodeCountsNextOptions] Additional + * parameters for the operation + * + * @param {uuid} [options.accountListPoolNodeCountsNextOptions.clientRequestId] + * The caller-generated request identity, in the form of a GUID with no + * decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + * + * @param {boolean} + * [options.accountListPoolNodeCountsNextOptions.returnClientRequestId] Whether + * the server should return the client-request-id in the response. + * + * @param {date} [options.accountListPoolNodeCountsNextOptions.ocpDate] The + * time the request was issued. Client libraries typically set this to the + * current system clock time; set it explicitly if you are calling the REST API + * directly. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {PoolNodeCountsListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link PoolNodeCountsListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + listPoolNodeCountsNext(nextPageLink, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._listPoolNodeCountsNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listPoolNodeCountsNext(nextPageLink, options, optionalCallback); + } + } + } module.exports = Account; diff --git a/lib/services/batch/lib/operations/application.js b/lib/services/batch/lib/operations/application.js index 6348cebe7e..678fbc8b6a 100644 --- a/lib/services/batch/lib/operations/application.js +++ b/lib/services/batch/lib/operations/application.js @@ -152,7 +152,7 @@ function _list(options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -362,7 +362,7 @@ function _get(applicationId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -550,7 +550,7 @@ function _listNext(nextPageLink, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } diff --git a/lib/services/batch/lib/operations/certificateOperations.js b/lib/services/batch/lib/operations/certificateOperations.js index e98259c28c..2ac2c3c92f 100644 --- a/lib/services/batch/lib/operations/certificateOperations.js +++ b/lib/services/batch/lib/operations/certificateOperations.js @@ -392,7 +392,7 @@ function _list(options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -613,7 +613,7 @@ function _cancelDeletion(thumbprintAlgorithm, thumbprint, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -819,7 +819,7 @@ function _deleteMethod(thumbprintAlgorithm, thumbprint, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -1027,7 +1027,7 @@ function _get(thumbprintAlgorithm, thumbprint, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -1210,7 +1210,7 @@ function _listNext(nextPageLink, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } diff --git a/lib/services/batch/lib/operations/computeNodeOperations.js b/lib/services/batch/lib/operations/computeNodeOperations.js index e8c596ac8a..843c44825f 100644 --- a/lib/services/batch/lib/operations/computeNodeOperations.js +++ b/lib/services/batch/lib/operations/computeNodeOperations.js @@ -392,7 +392,7 @@ function _deleteUser(poolId, nodeId, userName, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -845,7 +845,7 @@ function _get(poolId, nodeId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -938,21 +938,9 @@ function _get(poolId, nodeId, options, callback) { * @param {object} [options] Optional Parameters. * * @param {string} [options.nodeRebootOption] When to reboot the compute node - * and what to do with currently running tasks. Values are: - * - * requeue - Terminate running task processes and requeue the tasks. The tasks - * will run again when a node is available. Restart the node as soon as tasks - * have been terminated. - * terminate - Terminate running tasks. The tasks will not run again. Restart - * the node as soon as tasks have been terminated. - * taskcompletion - Allow currently running tasks to complete. Schedule no new - * tasks while waiting. Restart the node when all tasks have completed. - * retaineddata - Allow currently running tasks to complete, then wait for all - * task data retention periods to expire. Schedule no new tasks while waiting. - * Restart the node when all task retention periods have expired. - * - * The default value is requeue. Possible values include: 'requeue', - * 'terminate', 'taskCompletion', 'retainedData' + * and what to do with currently running tasks. The default value is requeue. + * Possible values include: 'requeue', 'terminate', 'taskCompletion', + * 'retainedData' * * @param {object} [options.computeNodeRebootOptions] Additional parameters for * the operation @@ -1179,21 +1167,9 @@ function _reboot(poolId, nodeId, options, callback) { * @param {object} [options] Optional Parameters. * * @param {string} [options.nodeReimageOption] When to reimage the compute node - * and what to do with currently running tasks. Values are: - * - * requeue - Terminate running task processes and requeue the tasks. The tasks - * will run again when a node is available. Reimage the node as soon as tasks - * have been terminated. - * terminate - Terminate running tasks. The tasks will not run again. Reimage - * the node as soon as tasks have been terminated. - * taskcompletion - Allow currently running tasks to complete. Schedule no new - * tasks while waiting. Reimage the node when all tasks have completed. - * retaineddata - Allow currently running tasks to complete, then wait for all - * task data retention periods to expire. Schedule no new tasks while waiting. - * Reimage the node when all task retention periods have expired. - * - * The default value is requeue. Possible values include: 'requeue', - * 'terminate', 'taskCompletion', 'retainedData' + * and what to do with currently running tasks. The default value is requeue. + * Possible values include: 'requeue', 'terminate', 'taskCompletion', + * 'retainedData' * * @param {object} [options.computeNodeReimageOptions] Additional parameters * for the operation @@ -1421,16 +1397,6 @@ function _reimage(poolId, nodeId, options, callback) { * * @param {string} [options.nodeDisableSchedulingOption] What to do with * currently running tasks when disabling task scheduling on the compute node. - * Values are: - * - * requeue - Terminate running task processes and requeue the tasks. The tasks - * may run again on other compute nodes, or when task scheduling is re-enabled - * on this node. Enter offline state as soon as tasks have been terminated. - * terminate - Terminate running tasks. The tasks will not run again. Enter - * offline state as soon as tasks have been terminated. - * taskcompletion - Allow currently running tasks to complete. Schedule no new - * tasks while waiting. Enter offline state when all tasks have completed. - * * The default value is requeue. Possible values include: 'requeue', * 'terminate', 'taskCompletion' * @@ -1780,7 +1746,7 @@ function _enableScheduling(poolId, nodeId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -1983,7 +1949,7 @@ function _getRemoteLoginSettings(poolId, nodeId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -2201,7 +2167,7 @@ function _getRemoteDesktop(poolId, nodeId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -2266,6 +2232,269 @@ function _getRemoteDesktop(poolId, nodeId, options, callback) { }); } +/** + * @summary Upload Azure Batch service log files from the specified compute + * node to Azure Blob Storage. + * + * This is for gathering Azure Batch service log files in an automated fashion + * from nodes if you are experiencing an error and wish to escalate to Azure + * support. The Azure Batch service log files should be shared with Azure + * support to aid in debugging issues with the Batch service. + * + * @param {string} poolId The ID of the pool that contains the compute node. + * + * @param {string} nodeId The ID of the compute node from which you want to + * upload the Azure Batch service log files. + * + * @param {object} uploadBatchServiceLogsConfiguration The Azure Batch service + * log files upload configuration. + * + * @param {string} uploadBatchServiceLogsConfiguration.containerUrl The URL of + * the container within Azure Blob Storage to which to upload the Batch Service + * log file(s). The URL must include a Shared Access Signature (SAS) granting + * write permissions to the container. The SAS duration must allow enough time + * for the upload to finish. The start time for SAS is optional and recommended + * to not be specified. + * + * @param {date} uploadBatchServiceLogsConfiguration.startTime The start of the + * time range from which to upload Batch Service log file(s). Any log file + * containing a log message in the time range will be uploaded. This means that + * the operation might retrieve more logs than have been requested since the + * entire log file is always uploaded, but the operation should not retrieve + * fewer logs than have been requested. + * + * @param {date} [uploadBatchServiceLogsConfiguration.endTime] The end of the + * time range from which to upload Batch Service log file(s). Any log file + * containing a log message in the time range will be uploaded. This means that + * the operation might retrieve more logs than have been requested since the + * entire log file is always uploaded, but the operation should not retrieve + * fewer logs than have been requested. If omitted, the default is to upload + * all logs available after the startTime. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.computeNodeUploadBatchServiceLogsOptions] + * Additional parameters for the operation + * + * @param {number} [options.computeNodeUploadBatchServiceLogsOptions.timeout] + * The maximum time that the server can spend processing the request, in + * seconds. The default is 30 seconds. + * + * @param {uuid} + * [options.computeNodeUploadBatchServiceLogsOptions.clientRequestId] The + * caller-generated request identity, in the form of a GUID with no decoration + * such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + * + * @param {boolean} + * [options.computeNodeUploadBatchServiceLogsOptions.returnClientRequestId] + * Whether the server should return the client-request-id in the response. + * + * @param {date} [options.computeNodeUploadBatchServiceLogsOptions.ocpDate] The + * time the request was issued. Client libraries typically set this to the + * current system clock time; set it explicitly if you are calling the REST API + * directly. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link UploadBatchServiceLogsResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _uploadBatchServiceLogs(poolId, nodeId, uploadBatchServiceLogsConfiguration, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let computeNodeUploadBatchServiceLogsOptions = (options && options.computeNodeUploadBatchServiceLogsOptions !== undefined) ? options.computeNodeUploadBatchServiceLogsOptions : undefined; + // Validate + try { + if (poolId === null || poolId === undefined || typeof poolId.valueOf() !== 'string') { + throw new Error('poolId cannot be null or undefined and it must be of type string.'); + } + if (nodeId === null || nodeId === undefined || typeof nodeId.valueOf() !== 'string') { + throw new Error('nodeId cannot be null or undefined and it must be of type string.'); + } + if (uploadBatchServiceLogsConfiguration === null || uploadBatchServiceLogsConfiguration === undefined) { + throw new Error('uploadBatchServiceLogsConfiguration cannot be null or undefined.'); + } + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + let timeout; + let clientRequestId; + let returnClientRequestId; + let ocpDate; + try { + 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) + { + 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) + { + 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) + { + ocpDate = computeNodeUploadBatchServiceLogsOptions.ocpDate; + if (ocpDate && !(ocpDate instanceof Date || + (typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) { + throw new Error('ocpDate must be of type date.'); + } + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'pools/{poolId}/nodes/{nodeId}/uploadbatchservicelogs'; + requestUrl = requestUrl.replace('{poolId}', encodeURIComponent(poolId)); + requestUrl = requestUrl.replace('{nodeId}', encodeURIComponent(nodeId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); + if (timeout !== null && timeout !== undefined) { + queryParameters.push('timeout=' + encodeURIComponent(timeout.toString())); + } + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'POST'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if (clientRequestId !== undefined && clientRequestId !== null) { + httpRequest.headers['client-request-id'] = clientRequestId.toString(); + } + if (returnClientRequestId !== undefined && returnClientRequestId !== null) { + httpRequest.headers['return-client-request-id'] = returnClientRequestId.toString(); + } + if (ocpDate !== undefined && ocpDate !== null) { + httpRequest.headers['ocp-date'] = ocpDate.toUTCString(); + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + // Serialize Request + let requestContent = null; + let requestModel = null; + try { + if (uploadBatchServiceLogsConfiguration !== null && uploadBatchServiceLogsConfiguration !== undefined) { + let requestModelMapper = new client.models['UploadBatchServiceLogsConfiguration']().mapper(); + requestModel = client.serialize(requestModelMapper, uploadBatchServiceLogsConfiguration, 'uploadBatchServiceLogsConfiguration'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(uploadBatchServiceLogsConfiguration, null, 2)}.`); + return callback(serializationError); + } + httpRequest.body = requestContent; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + let internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['BatchError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['UploadBatchServiceLogsResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + /** * @summary Lists the compute nodes in the specified pool. * @@ -2433,7 +2662,7 @@ function _list(poolId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -2615,7 +2844,7 @@ function _listNext(nextPageLink, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -2714,6 +2943,7 @@ class ComputeNodeOperations { this._enableScheduling = _enableScheduling; this._getRemoteLoginSettings = _getRemoteLoginSettings; this._getRemoteDesktop = _getRemoteDesktop; + this._uploadBatchServiceLogs = _uploadBatchServiceLogs; this._list = _list; this._listNext = _listNext; } @@ -3361,21 +3591,9 @@ class ComputeNodeOperations { * @param {object} [options] Optional Parameters. * * @param {string} [options.nodeRebootOption] When to reboot the compute node - * and what to do with currently running tasks. Values are: - * - * requeue - Terminate running task processes and requeue the tasks. The tasks - * will run again when a node is available. Restart the node as soon as tasks - * have been terminated. - * terminate - Terminate running tasks. The tasks will not run again. Restart - * the node as soon as tasks have been terminated. - * taskcompletion - Allow currently running tasks to complete. Schedule no new - * tasks while waiting. Restart the node when all tasks have completed. - * retaineddata - Allow currently running tasks to complete, then wait for all - * task data retention periods to expire. Schedule no new tasks while waiting. - * Restart the node when all task retention periods have expired. - * - * The default value is requeue. Possible values include: 'requeue', - * 'terminate', 'taskCompletion', 'retainedData' + * and what to do with currently running tasks. The default value is requeue. + * Possible values include: 'requeue', 'terminate', 'taskCompletion', + * 'retainedData' * * @param {object} [options.computeNodeRebootOptions] Additional parameters for * the operation @@ -3431,21 +3649,9 @@ class ComputeNodeOperations { * @param {object} [options] Optional Parameters. * * @param {string} [options.nodeRebootOption] When to reboot the compute node - * and what to do with currently running tasks. Values are: - * - * requeue - Terminate running task processes and requeue the tasks. The tasks - * will run again when a node is available. Restart the node as soon as tasks - * have been terminated. - * terminate - Terminate running tasks. The tasks will not run again. Restart - * the node as soon as tasks have been terminated. - * taskcompletion - Allow currently running tasks to complete. Schedule no new - * tasks while waiting. Restart the node when all tasks have completed. - * retaineddata - Allow currently running tasks to complete, then wait for all - * task data retention periods to expire. Schedule no new tasks while waiting. - * Restart the node when all task retention periods have expired. - * - * The default value is requeue. Possible values include: 'requeue', - * 'terminate', 'taskCompletion', 'retainedData' + * and what to do with currently running tasks. The default value is requeue. + * Possible values include: 'requeue', 'terminate', 'taskCompletion', + * 'retainedData' * * @param {object} [options.computeNodeRebootOptions] Additional parameters for * the operation @@ -3524,21 +3730,9 @@ class ComputeNodeOperations { * @param {object} [options] Optional Parameters. * * @param {string} [options.nodeReimageOption] When to reimage the compute node - * and what to do with currently running tasks. Values are: - * - * requeue - Terminate running task processes and requeue the tasks. The tasks - * will run again when a node is available. Reimage the node as soon as tasks - * have been terminated. - * terminate - Terminate running tasks. The tasks will not run again. Reimage - * the node as soon as tasks have been terminated. - * taskcompletion - Allow currently running tasks to complete. Schedule no new - * tasks while waiting. Reimage the node when all tasks have completed. - * retaineddata - Allow currently running tasks to complete, then wait for all - * task data retention periods to expire. Schedule no new tasks while waiting. - * Reimage the node when all task retention periods have expired. - * - * The default value is requeue. Possible values include: 'requeue', - * 'terminate', 'taskCompletion', 'retainedData' + * and what to do with currently running tasks. The default value is requeue. + * Possible values include: 'requeue', 'terminate', 'taskCompletion', + * 'retainedData' * * @param {object} [options.computeNodeReimageOptions] Additional parameters * for the operation @@ -3596,21 +3790,9 @@ class ComputeNodeOperations { * @param {object} [options] Optional Parameters. * * @param {string} [options.nodeReimageOption] When to reimage the compute node - * and what to do with currently running tasks. Values are: - * - * requeue - Terminate running task processes and requeue the tasks. The tasks - * will run again when a node is available. Reimage the node as soon as tasks - * have been terminated. - * terminate - Terminate running tasks. The tasks will not run again. Reimage - * the node as soon as tasks have been terminated. - * taskcompletion - Allow currently running tasks to complete. Schedule no new - * tasks while waiting. Reimage the node when all tasks have completed. - * retaineddata - Allow currently running tasks to complete, then wait for all - * task data retention periods to expire. Schedule no new tasks while waiting. - * Reimage the node when all task retention periods have expired. - * - * The default value is requeue. Possible values include: 'requeue', - * 'terminate', 'taskCompletion', 'retainedData' + * and what to do with currently running tasks. The default value is requeue. + * Possible values include: 'requeue', 'terminate', 'taskCompletion', + * 'retainedData' * * @param {object} [options.computeNodeReimageOptions] Additional parameters * for the operation @@ -3690,16 +3872,6 @@ class ComputeNodeOperations { * * @param {string} [options.nodeDisableSchedulingOption] What to do with * currently running tasks when disabling task scheduling on the compute node. - * Values are: - * - * requeue - Terminate running task processes and requeue the tasks. The tasks - * may run again on other compute nodes, or when task scheduling is re-enabled - * on this node. Enter offline state as soon as tasks have been terminated. - * terminate - Terminate running tasks. The tasks will not run again. Enter - * offline state as soon as tasks have been terminated. - * taskcompletion - Allow currently running tasks to complete. Schedule no new - * tasks while waiting. Enter offline state when all tasks have completed. - * * The default value is requeue. Possible values include: 'requeue', * 'terminate', 'taskCompletion' * @@ -3761,16 +3933,6 @@ class ComputeNodeOperations { * * @param {string} [options.nodeDisableSchedulingOption] What to do with * currently running tasks when disabling task scheduling on the compute node. - * Values are: - * - * requeue - Terminate running task processes and requeue the tasks. The tasks - * may run again on other compute nodes, or when task scheduling is re-enabled - * on this node. Enter offline state as soon as tasks have been terminated. - * terminate - Terminate running tasks. The tasks will not run again. Enter - * offline state as soon as tasks have been terminated. - * taskcompletion - Allow currently running tasks to complete. Schedule no new - * tasks while waiting. Enter offline state when all tasks have completed. - * * The default value is requeue. Possible values include: 'requeue', * 'terminate', 'taskCompletion' * @@ -4251,6 +4413,199 @@ class ComputeNodeOperations { } } + /** + * @summary Upload Azure Batch service log files from the specified compute + * node to Azure Blob Storage. + * + * This is for gathering Azure Batch service log files in an automated fashion + * from nodes if you are experiencing an error and wish to escalate to Azure + * support. The Azure Batch service log files should be shared with Azure + * support to aid in debugging issues with the Batch service. + * + * @param {string} poolId The ID of the pool that contains the compute node. + * + * @param {string} nodeId The ID of the compute node from which you want to + * upload the Azure Batch service log files. + * + * @param {object} uploadBatchServiceLogsConfiguration The Azure Batch service + * log files upload configuration. + * + * @param {string} uploadBatchServiceLogsConfiguration.containerUrl The URL of + * the container within Azure Blob Storage to which to upload the Batch Service + * log file(s). The URL must include a Shared Access Signature (SAS) granting + * write permissions to the container. The SAS duration must allow enough time + * for the upload to finish. The start time for SAS is optional and recommended + * to not be specified. + * + * @param {date} uploadBatchServiceLogsConfiguration.startTime The start of the + * time range from which to upload Batch Service log file(s). Any log file + * containing a log message in the time range will be uploaded. This means that + * the operation might retrieve more logs than have been requested since the + * entire log file is always uploaded, but the operation should not retrieve + * fewer logs than have been requested. + * + * @param {date} [uploadBatchServiceLogsConfiguration.endTime] The end of the + * time range from which to upload Batch Service log file(s). Any log file + * containing a log message in the time range will be uploaded. This means that + * the operation might retrieve more logs than have been requested since the + * entire log file is always uploaded, but the operation should not retrieve + * fewer logs than have been requested. If omitted, the default is to upload + * all logs available after the startTime. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.computeNodeUploadBatchServiceLogsOptions] + * Additional parameters for the operation + * + * @param {number} [options.computeNodeUploadBatchServiceLogsOptions.timeout] + * The maximum time that the server can spend processing the request, in + * seconds. The default is 30 seconds. + * + * @param {uuid} + * [options.computeNodeUploadBatchServiceLogsOptions.clientRequestId] The + * caller-generated request identity, in the form of a GUID with no decoration + * such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + * + * @param {boolean} + * [options.computeNodeUploadBatchServiceLogsOptions.returnClientRequestId] + * Whether the server should return the client-request-id in the response. + * + * @param {date} [options.computeNodeUploadBatchServiceLogsOptions.ocpDate] The + * time the request was issued. Client libraries typically set this to the + * current system clock time; set it explicitly if you are calling the REST API + * directly. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + uploadBatchServiceLogsWithHttpOperationResponse(poolId, nodeId, uploadBatchServiceLogsConfiguration, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._uploadBatchServiceLogs(poolId, nodeId, uploadBatchServiceLogsConfiguration, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * @summary Upload Azure Batch service log files from the specified compute + * node to Azure Blob Storage. + * + * This is for gathering Azure Batch service log files in an automated fashion + * from nodes if you are experiencing an error and wish to escalate to Azure + * support. The Azure Batch service log files should be shared with Azure + * support to aid in debugging issues with the Batch service. + * + * @param {string} poolId The ID of the pool that contains the compute node. + * + * @param {string} nodeId The ID of the compute node from which you want to + * upload the Azure Batch service log files. + * + * @param {object} uploadBatchServiceLogsConfiguration The Azure Batch service + * log files upload configuration. + * + * @param {string} uploadBatchServiceLogsConfiguration.containerUrl The URL of + * the container within Azure Blob Storage to which to upload the Batch Service + * log file(s). The URL must include a Shared Access Signature (SAS) granting + * write permissions to the container. The SAS duration must allow enough time + * for the upload to finish. The start time for SAS is optional and recommended + * to not be specified. + * + * @param {date} uploadBatchServiceLogsConfiguration.startTime The start of the + * time range from which to upload Batch Service log file(s). Any log file + * containing a log message in the time range will be uploaded. This means that + * the operation might retrieve more logs than have been requested since the + * entire log file is always uploaded, but the operation should not retrieve + * fewer logs than have been requested. + * + * @param {date} [uploadBatchServiceLogsConfiguration.endTime] The end of the + * time range from which to upload Batch Service log file(s). Any log file + * containing a log message in the time range will be uploaded. This means that + * the operation might retrieve more logs than have been requested since the + * entire log file is always uploaded, but the operation should not retrieve + * fewer logs than have been requested. If omitted, the default is to upload + * all logs available after the startTime. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.computeNodeUploadBatchServiceLogsOptions] + * Additional parameters for the operation + * + * @param {number} [options.computeNodeUploadBatchServiceLogsOptions.timeout] + * The maximum time that the server can spend processing the request, in + * seconds. The default is 30 seconds. + * + * @param {uuid} + * [options.computeNodeUploadBatchServiceLogsOptions.clientRequestId] The + * caller-generated request identity, in the form of a GUID with no decoration + * such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + * + * @param {boolean} + * [options.computeNodeUploadBatchServiceLogsOptions.returnClientRequestId] + * Whether the server should return the client-request-id in the response. + * + * @param {date} [options.computeNodeUploadBatchServiceLogsOptions.ocpDate] The + * time the request was issued. Client libraries typically set this to the + * current system clock time; set it explicitly if you are calling the REST API + * directly. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {UploadBatchServiceLogsResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link UploadBatchServiceLogsResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + uploadBatchServiceLogs(poolId, nodeId, uploadBatchServiceLogsConfiguration, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._uploadBatchServiceLogs(poolId, nodeId, uploadBatchServiceLogsConfiguration, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._uploadBatchServiceLogs(poolId, nodeId, uploadBatchServiceLogsConfiguration, options, optionalCallback); + } + } + /** * @summary Lists the compute nodes in the specified pool. * diff --git a/lib/services/batch/lib/operations/file.js b/lib/services/batch/lib/operations/file.js index 5a497d73e5..00bd3cb8bf 100644 --- a/lib/services/batch/lib/operations/file.js +++ b/lib/services/batch/lib/operations/file.js @@ -164,7 +164,7 @@ function _deleteFromTask(jobId, taskId, filePath, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -403,7 +403,7 @@ function _getFromTask(jobId, taskId, filePath, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -643,7 +643,7 @@ function _getPropertiesFromTask(jobId, taskId, filePath, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -864,7 +864,7 @@ function _deleteFromComputeNode(poolId, nodeId, filePath, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -1105,7 +1105,7 @@ function _getFromComputeNode(poolId, nodeId, filePath, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -1347,7 +1347,7 @@ function _getPropertiesFromComputeNode(poolId, nodeId, filePath, options, callba httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -1587,7 +1587,7 @@ function _listFromTask(jobId, taskId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -1841,7 +1841,7 @@ function _listFromComputeNode(poolId, nodeId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -2023,7 +2023,7 @@ function _listFromTaskNext(nextPageLink, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -2207,7 +2207,7 @@ function _listFromComputeNodeNext(nextPageLink, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } diff --git a/lib/services/batch/lib/operations/index.d.ts b/lib/services/batch/lib/operations/index.d.ts index 3721bbcf6f..f6ff4e7cf0 100644 --- a/lib/services/batch/lib/operations/index.d.ts +++ b/lib/services/batch/lib/operations/index.d.ts @@ -675,14 +675,8 @@ export interface Pool { * operating system disk of the Virtual Machine. * * @param {string} [pool.virtualMachineConfiguration.osDisk.caching] The type - * of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * of caching to enable for the OS disk. The default value for caching is none. + * For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -709,7 +703,15 @@ export interface Pool { * @param {array} [pool.virtualMachineConfiguration.dataDisks] The * configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} [pool.virtualMachineConfiguration.licenseType] The type of * on-premises license to be used when deploying the operating system. This @@ -891,18 +893,12 @@ export interface Pool { * exclusive; you must specify one but not both. * * @param {string} [pool.startTask.userIdentity.autoUser.scope] The scope for - * the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * the auto user The default value is task. Possible values include: 'task', + * 'pool' * * @param {string} [pool.startTask.userIdentity.autoUser.elevationLevel] The - * elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * elevation level of the auto user. The default value is nonAdmin. Possible + * values include: 'nonAdmin', 'admin' * * @param {number} [pool.startTask.maxTaskRetryCount] The maximum number of * times the task may be retried. The Batch service retries a task if its exit @@ -954,13 +950,8 @@ export interface Pool { * compute nodes in a pool. * * @param {string} pool.taskSchedulingPolicy.nodeFillType How tasks are - * distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * distributed across compute nodes in a pool. Possible values include: + * 'spread', 'pack' * * @param {array} [pool.userAccounts] The list of user accounts to be created * on each node in the pool. @@ -1093,14 +1084,8 @@ export interface Pool { * operating system disk of the Virtual Machine. * * @param {string} [pool.virtualMachineConfiguration.osDisk.caching] The type - * of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * of caching to enable for the OS disk. The default value for caching is none. + * For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -1127,7 +1112,15 @@ export interface Pool { * @param {array} [pool.virtualMachineConfiguration.dataDisks] The * configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} [pool.virtualMachineConfiguration.licenseType] The type of * on-premises license to be used when deploying the operating system. This @@ -1309,18 +1302,12 @@ export interface Pool { * exclusive; you must specify one but not both. * * @param {string} [pool.startTask.userIdentity.autoUser.scope] The scope for - * the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * the auto user The default value is task. Possible values include: 'task', + * 'pool' * * @param {string} [pool.startTask.userIdentity.autoUser.elevationLevel] The - * elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * elevation level of the auto user. The default value is nonAdmin. Possible + * values include: 'nonAdmin', 'admin' * * @param {number} [pool.startTask.maxTaskRetryCount] The maximum number of * times the task may be retried. The Batch service retries a task if its exit @@ -1372,13 +1359,8 @@ export interface Pool { * compute nodes in a pool. * * @param {string} pool.taskSchedulingPolicy.nodeFillType How tasks are - * distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * distributed across compute nodes in a pool. Possible values include: + * 'spread', 'pack' * * @param {array} [pool.userAccounts] The list of user accounts to be created * on each node in the pool. @@ -2050,19 +2032,13 @@ export interface Pool { * are mutually exclusive; you must specify one but not both. * * @param {string} [poolPatchParameter.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [poolPatchParameter.startTask.userIdentity.autoUser.elevationLevel] The - * elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * elevation level of the auto user. The default value is nonAdmin. Possible + * values include: 'nonAdmin', 'admin' * * @param {number} [poolPatchParameter.startTask.maxTaskRetryCount] The maximum * number of times the task may be retried. The Batch service retries a task if @@ -2246,19 +2222,13 @@ export interface Pool { * are mutually exclusive; you must specify one but not both. * * @param {string} [poolPatchParameter.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [poolPatchParameter.startTask.userIdentity.autoUser.elevationLevel] The - * elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * elevation level of the auto user. The default value is nonAdmin. Possible + * values include: 'nonAdmin', 'admin' * * @param {number} [poolPatchParameter.startTask.maxTaskRetryCount] The maximum * number of times the task may be retried. The Batch service retries a task if @@ -3209,19 +3179,13 @@ export interface Pool { * * @param {string} * [poolUpdatePropertiesParameter.startTask.userIdentity.autoUser.scope] The - * scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * scope for the auto user The default value is task. Possible values include: + * 'task', 'pool' * * @param {string} * [poolUpdatePropertiesParameter.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} [poolUpdatePropertiesParameter.startTask.maxTaskRetryCount] * The maximum number of times the task may be retried. The Batch service @@ -3392,19 +3356,13 @@ export interface Pool { * * @param {string} * [poolUpdatePropertiesParameter.startTask.userIdentity.autoUser.scope] The - * scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * scope for the auto user The default value is task. Possible values include: + * 'task', 'pool' * * @param {string} * [poolUpdatePropertiesParameter.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} [poolUpdatePropertiesParameter.startTask.maxTaskRetryCount] * The maximum number of times the task may be retried. The Batch service @@ -4157,6 +4115,110 @@ export interface Account { listNodeAgentSkus(options: { accountListNodeAgentSkusOptions? : models.AccountListNodeAgentSkusOptions, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + /** + * Gets the number of nodes in each state, grouped by pool. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.accountListPoolNodeCountsOptions] Additional + * parameters for the operation + * + * @param {string} [options.accountListPoolNodeCountsOptions.filter] An OData + * $filter clause. + * + * @param {number} [options.accountListPoolNodeCountsOptions.maxResults] The + * maximum number of items to return in the response. + * + * @param {number} [options.accountListPoolNodeCountsOptions.timeout] The + * maximum time that the server can spend processing the request, in seconds. + * The default is 30 seconds. + * + * @param {uuid} [options.accountListPoolNodeCountsOptions.clientRequestId] The + * caller-generated request identity, in the form of a GUID with no decoration + * such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + * + * @param {boolean} + * [options.accountListPoolNodeCountsOptions.returnClientRequestId] Whether the + * server should return the client-request-id in the response. + * + * @param {date} [options.accountListPoolNodeCountsOptions.ocpDate] The time + * the request was issued. Client libraries typically set this to the current + * system clock time; set it explicitly if you are calling the REST API + * directly. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + listPoolNodeCountsWithHttpOperationResponse(options?: { accountListPoolNodeCountsOptions? : models.AccountListPoolNodeCountsOptions, customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets the number of nodes in each state, grouped by pool. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.accountListPoolNodeCountsOptions] Additional + * parameters for the operation + * + * @param {string} [options.accountListPoolNodeCountsOptions.filter] An OData + * $filter clause. + * + * @param {number} [options.accountListPoolNodeCountsOptions.maxResults] The + * maximum number of items to return in the response. + * + * @param {number} [options.accountListPoolNodeCountsOptions.timeout] The + * maximum time that the server can spend processing the request, in seconds. + * The default is 30 seconds. + * + * @param {uuid} [options.accountListPoolNodeCountsOptions.clientRequestId] The + * caller-generated request identity, in the form of a GUID with no decoration + * such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + * + * @param {boolean} + * [options.accountListPoolNodeCountsOptions.returnClientRequestId] Whether the + * server should return the client-request-id in the response. + * + * @param {date} [options.accountListPoolNodeCountsOptions.ocpDate] The time + * the request was issued. Client libraries typically set this to the current + * system clock time; set it explicitly if you are calling the REST API + * directly. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {PoolNodeCountsListResult} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {PoolNodeCountsListResult} [result] - The deserialized result object if an error did not occur. + * See {@link PoolNodeCountsListResult} for more + * information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + listPoolNodeCounts(options?: { accountListPoolNodeCountsOptions? : models.AccountListPoolNodeCountsOptions, customHeaders? : { [headerName: string]: string; } }): Promise; + listPoolNodeCounts(callback: ServiceCallback): void; + listPoolNodeCounts(options: { accountListPoolNodeCountsOptions? : models.AccountListPoolNodeCountsOptions, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + /** * @summary Lists all node agent SKUs supported by the Azure Batch service. * @@ -4245,6 +4307,96 @@ export interface Account { listNodeAgentSkusNext(nextPageLink: string, options?: { accountListNodeAgentSkusNextOptions? : models.AccountListNodeAgentSkusNextOptions, customHeaders? : { [headerName: string]: string; } }): Promise; listNodeAgentSkusNext(nextPageLink: string, callback: ServiceCallback): void; listNodeAgentSkusNext(nextPageLink: string, options: { accountListNodeAgentSkusNextOptions? : models.AccountListNodeAgentSkusNextOptions, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets the number of nodes in each state, grouped by pool. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.accountListPoolNodeCountsNextOptions] Additional + * parameters for the operation + * + * @param {uuid} [options.accountListPoolNodeCountsNextOptions.clientRequestId] + * The caller-generated request identity, in the form of a GUID with no + * decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + * + * @param {boolean} + * [options.accountListPoolNodeCountsNextOptions.returnClientRequestId] Whether + * the server should return the client-request-id in the response. + * + * @param {date} [options.accountListPoolNodeCountsNextOptions.ocpDate] The + * time the request was issued. Client libraries typically set this to the + * current system clock time; set it explicitly if you are calling the REST API + * directly. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + listPoolNodeCountsNextWithHttpOperationResponse(nextPageLink: string, options?: { accountListPoolNodeCountsNextOptions? : models.AccountListPoolNodeCountsNextOptions, customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets the number of nodes in each state, grouped by pool. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.accountListPoolNodeCountsNextOptions] Additional + * parameters for the operation + * + * @param {uuid} [options.accountListPoolNodeCountsNextOptions.clientRequestId] + * The caller-generated request identity, in the form of a GUID with no + * decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + * + * @param {boolean} + * [options.accountListPoolNodeCountsNextOptions.returnClientRequestId] Whether + * the server should return the client-request-id in the response. + * + * @param {date} [options.accountListPoolNodeCountsNextOptions.ocpDate] The + * time the request was issued. Client libraries typically set this to the + * current system clock time; set it explicitly if you are calling the REST API + * directly. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {PoolNodeCountsListResult} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {PoolNodeCountsListResult} [result] - The deserialized result object if an error did not occur. + * See {@link PoolNodeCountsListResult} for more + * information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + listPoolNodeCountsNext(nextPageLink: string, options?: { accountListPoolNodeCountsNextOptions? : models.AccountListPoolNodeCountsNextOptions, customHeaders? : { [headerName: string]: string; } }): Promise; + listPoolNodeCountsNext(nextPageLink: string, callback: ServiceCallback): void; + listPoolNodeCountsNext(nextPageLink: string, options: { accountListPoolNodeCountsNextOptions? : models.AccountListPoolNodeCountsNextOptions, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** @@ -4661,7 +4813,7 @@ export interface Job { * @param {string} [jobPatchParameter.onAllTasksComplete] The action the Batch * service should take when all tasks in the job are in the completed state. If * omitted, the completion behavior is left unchanged. You may not change the - * value from terminateJob to noAction - that is, once you have engaged + * value from terminatejob to noaction - that is, once you have engaged * automatic job termination, you cannot turn it off again. If you try to do * this, the request fails with an 'invalid property value' error response; if * you are calling the REST API directly, the HTTP status code is 400 (Bad @@ -4729,15 +4881,7 @@ export interface Job { * @param {string} * jobPatchParameter.poolInfo.autoPoolSpecification.poolLifetimeOption The * minimum lifetime of created auto pools, and how multiple jobs on a schedule - * are assigned to pools. When the pool lifetime is jobSchedule the pool exists - * for the lifetime of the job schedule. The Batch Service creates the pool - * when it creates the first job on the schedule. You may apply this option - * only to job schedules, not to jobs. When the pool lifetime is job the pool - * exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', - * 'job' + * are assigned to pools. Possible values include: 'jobSchedule', 'job' * * @param {boolean} * [jobPatchParameter.poolInfo.autoPoolSpecification.keepAlive] Whether to keep @@ -4849,14 +4993,8 @@ export interface Job { * * @param {string} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -4886,7 +5024,15 @@ export interface Job { * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -4932,13 +5078,8 @@ export interface Job { * * @param {string} * jobPatchParameter.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.resizeTimeout] The @@ -5119,19 +5260,13 @@ export interface Job { * * @param {string} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] @@ -5266,7 +5401,7 @@ export interface Job { * @param {string} [jobPatchParameter.onAllTasksComplete] The action the Batch * service should take when all tasks in the job are in the completed state. If * omitted, the completion behavior is left unchanged. You may not change the - * value from terminateJob to noAction - that is, once you have engaged + * value from terminatejob to noaction - that is, once you have engaged * automatic job termination, you cannot turn it off again. If you try to do * this, the request fails with an 'invalid property value' error response; if * you are calling the REST API directly, the HTTP status code is 400 (Bad @@ -5334,15 +5469,7 @@ export interface Job { * @param {string} * jobPatchParameter.poolInfo.autoPoolSpecification.poolLifetimeOption The * minimum lifetime of created auto pools, and how multiple jobs on a schedule - * are assigned to pools. When the pool lifetime is jobSchedule the pool exists - * for the lifetime of the job schedule. The Batch Service creates the pool - * when it creates the first job on the schedule. You may apply this option - * only to job schedules, not to jobs. When the pool lifetime is job the pool - * exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', - * 'job' + * are assigned to pools. Possible values include: 'jobSchedule', 'job' * * @param {boolean} * [jobPatchParameter.poolInfo.autoPoolSpecification.keepAlive] Whether to keep @@ -5454,14 +5581,8 @@ export interface Job { * * @param {string} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -5491,7 +5612,15 @@ export interface Job { * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -5537,13 +5666,8 @@ export interface Job { * * @param {string} * jobPatchParameter.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.resizeTimeout] The @@ -5724,19 +5848,13 @@ export interface Job { * * @param {string} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] @@ -5947,15 +6065,7 @@ export interface Job { * @param {string} * jobUpdateParameter.poolInfo.autoPoolSpecification.poolLifetimeOption The * minimum lifetime of created auto pools, and how multiple jobs on a schedule - * are assigned to pools. When the pool lifetime is jobSchedule the pool exists - * for the lifetime of the job schedule. The Batch Service creates the pool - * when it creates the first job on the schedule. You may apply this option - * only to job schedules, not to jobs. When the pool lifetime is job the pool - * exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', - * 'job' + * are assigned to pools. Possible values include: 'jobSchedule', 'job' * * @param {boolean} * [jobUpdateParameter.poolInfo.autoPoolSpecification.keepAlive] Whether to @@ -6069,14 +6179,8 @@ export interface Job { * * @param {string} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -6106,7 +6210,15 @@ export interface Job { * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -6152,13 +6264,8 @@ export interface Job { * * @param {string} * jobUpdateParameter.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.resizeTimeout] The @@ -6339,19 +6446,13 @@ export interface Job { * * @param {string} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] @@ -6418,9 +6519,9 @@ export interface Job { * * @param {string} [jobUpdateParameter.onAllTasksComplete] The action the Batch * service should take when all tasks in the job are in the completed state. If - * omitted, the completion behavior is set to noAction. If the current value is - * terminateJob, this is an error because a job's completion behavior may not - * be changed from terminateJob to noAction. You may not change the value from + * omitted, the completion behavior is set to noaction. If the current value is + * terminatejob, this is an error because a job's completion behavior may not + * be changed from terminatejob to noaction. You may not change the value from * terminatejob to noaction - that is, once you have engaged automatic job * termination, you cannot turn it off again. If you try to do this, the * request fails and Batch returns status code 400 (Bad Request) and an @@ -6557,15 +6658,7 @@ export interface Job { * @param {string} * jobUpdateParameter.poolInfo.autoPoolSpecification.poolLifetimeOption The * minimum lifetime of created auto pools, and how multiple jobs on a schedule - * are assigned to pools. When the pool lifetime is jobSchedule the pool exists - * for the lifetime of the job schedule. The Batch Service creates the pool - * when it creates the first job on the schedule. You may apply this option - * only to job schedules, not to jobs. When the pool lifetime is job the pool - * exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', - * 'job' + * are assigned to pools. Possible values include: 'jobSchedule', 'job' * * @param {boolean} * [jobUpdateParameter.poolInfo.autoPoolSpecification.keepAlive] Whether to @@ -6679,14 +6772,8 @@ export interface Job { * * @param {string} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -6716,7 +6803,15 @@ export interface Job { * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -6762,13 +6857,8 @@ export interface Job { * * @param {string} * jobUpdateParameter.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.resizeTimeout] The @@ -6949,19 +7039,13 @@ export interface Job { * * @param {string} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] @@ -7028,9 +7112,9 @@ export interface Job { * * @param {string} [jobUpdateParameter.onAllTasksComplete] The action the Batch * service should take when all tasks in the job are in the completed state. If - * omitted, the completion behavior is set to noAction. If the current value is - * terminateJob, this is an error because a job's completion behavior may not - * be changed from terminateJob to noAction. You may not change the value from + * omitted, the completion behavior is set to noaction. If the current value is + * terminatejob, this is an error because a job's completion behavior may not + * be changed from terminatejob to noaction. You may not change the value from * terminatejob to noaction - that is, once you have engaged automatic job * termination, you cannot turn it off again. If you try to do this, the * request fails and Batch returns status code 400 (Bad Request) and an @@ -7123,13 +7207,7 @@ export interface Job { * @param {string} jobId The ID of the job to disable. * * @param {string} disableTasks What to do with active tasks associated with - * the job. Values are: - * - * requeue - Terminate running tasks and requeue them. The tasks will run again - * when the job is enabled. - * terminate - Terminate running tasks. The tasks will not run again. - * wait - Allow currently running tasks to complete. Possible values include: - * 'requeue', 'terminate', 'wait' + * the job. Possible values include: 'requeue', 'terminate', 'wait' * * @param {object} [options] Optional Parameters. * @@ -7197,13 +7275,7 @@ export interface Job { * @param {string} jobId The ID of the job to disable. * * @param {string} disableTasks What to do with active tasks associated with - * the job. Values are: - * - * requeue - Terminate running tasks and requeue them. The tasks will run again - * when the job is enabled. - * terminate - Terminate running tasks. The tasks will not run again. - * wait - Allow currently running tasks to complete. Possible values include: - * 'requeue', 'terminate', 'wait' + * the job. Possible values include: 'requeue', 'terminate', 'wait' * * @param {object} [options] Optional Parameters. * @@ -7909,15 +7981,7 @@ export interface Job { * * @param {string} job.poolInfo.autoPoolSpecification.poolLifetimeOption The * minimum lifetime of created auto pools, and how multiple jobs on a schedule - * are assigned to pools. When the pool lifetime is jobSchedule the pool exists - * for the lifetime of the job schedule. The Batch Service creates the pool - * when it creates the first job on the schedule. You may apply this option - * only to job schedules, not to jobs. When the pool lifetime is job the pool - * exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', - * 'job' + * are assigned to pools. Possible values include: 'jobSchedule', 'job' * * @param {boolean} [job.poolInfo.autoPoolSpecification.keepAlive] Whether to * keep an auto pool alive after its lifetime expires. If false, the Batch @@ -8027,14 +8091,8 @@ export interface Job { * * @param {string} * [job.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -8064,7 +8122,15 @@ export interface Job { * [job.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [job.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -8109,13 +8175,8 @@ export interface Job { * * @param {string} * job.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [job.poolInfo.autoPoolSpecification.pool.resizeTimeout] The timeout for @@ -8293,19 +8354,13 @@ export interface Job { * * @param {string} * [job.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [job.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [job.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] The @@ -8367,23 +8422,16 @@ export interface Job { * job contains no tasks, then all tasks are considered complete. This option * is therefore most commonly used with a Job Manager task; if you want to use * automatic job termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. - * Permitted values are: noAction - do nothing. The job remains active unless - * terminated or disabled by some other means. terminateJob - terminate the - * job. The job's terminateReason is set to 'AllTasksComplete'. The default is - * noAction. Possible values include: 'noAction', 'terminateJob' + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. The + * default is noaction. Possible values include: 'noAction', 'terminateJob' * * @param {string} [job.onTaskFailure] The action the Batch service should take * when any task in the job fails. A task is considered to have failed if has a * failureInfo. A failureInfo is set if the task completes with a non-zero exit * code after exhausting its retry count, or if there was an error starting the - * task, for example due to a resource file download error. noAction - do - * nothing. performExitOptionsJobAction - take the action associated with the - * task exit condition in the task's exitConditions collection. (This may still - * result in no action being taken, if that is what the task specifies.) The - * default is noAction. Possible values include: 'noAction', - * 'performExitOptionsJobAction' + * task, for example due to a resource file download error. The default is + * noaction. Possible values include: 'noAction', 'performExitOptionsJobAction' * * @param {array} [job.metadata] A list of name-value pairs associated with the * job as metadata. The Batch service does not assign any meaning to metadata; @@ -8768,15 +8816,7 @@ export interface Job { * * @param {string} job.poolInfo.autoPoolSpecification.poolLifetimeOption The * minimum lifetime of created auto pools, and how multiple jobs on a schedule - * are assigned to pools. When the pool lifetime is jobSchedule the pool exists - * for the lifetime of the job schedule. The Batch Service creates the pool - * when it creates the first job on the schedule. You may apply this option - * only to job schedules, not to jobs. When the pool lifetime is job the pool - * exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', - * 'job' + * are assigned to pools. Possible values include: 'jobSchedule', 'job' * * @param {boolean} [job.poolInfo.autoPoolSpecification.keepAlive] Whether to * keep an auto pool alive after its lifetime expires. If false, the Batch @@ -8886,14 +8926,8 @@ export interface Job { * * @param {string} * [job.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -8923,7 +8957,15 @@ export interface Job { * [job.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [job.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -8968,13 +9010,8 @@ export interface Job { * * @param {string} * job.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [job.poolInfo.autoPoolSpecification.pool.resizeTimeout] The timeout for @@ -9152,19 +9189,13 @@ export interface Job { * * @param {string} * [job.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [job.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [job.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] The @@ -9226,23 +9257,16 @@ export interface Job { * job contains no tasks, then all tasks are considered complete. This option * is therefore most commonly used with a Job Manager task; if you want to use * automatic job termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. - * Permitted values are: noAction - do nothing. The job remains active unless - * terminated or disabled by some other means. terminateJob - terminate the - * job. The job's terminateReason is set to 'AllTasksComplete'. The default is - * noAction. Possible values include: 'noAction', 'terminateJob' + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. The + * default is noaction. Possible values include: 'noAction', 'terminateJob' * * @param {string} [job.onTaskFailure] The action the Batch service should take * when any task in the job fails. A task is considered to have failed if has a * failureInfo. A failureInfo is set if the task completes with a non-zero exit * code after exhausting its retry count, or if there was an error starting the - * task, for example due to a resource file download error. noAction - do - * nothing. performExitOptionsJobAction - take the action associated with the - * task exit condition in the task's exitConditions collection. (This may still - * result in no action being taken, if that is what the task specifies.) The - * default is noAction. Possible values include: 'noAction', - * 'performExitOptionsJobAction' + * task, for example due to a resource file download error. The default is + * noaction. Possible values include: 'noAction', 'performExitOptionsJobAction' * * @param {array} [job.metadata] A list of name-value pairs associated with the * job as metadata. The Batch service does not assign any meaning to metadata; @@ -12459,9 +12483,9 @@ export interface JobSchedule { * then all tasks are considered complete. This option is therefore most * commonly used with a Job Manager task; if you want to use automatic job * termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. The - * default is noAction. Possible values include: 'noAction', 'terminateJob' + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. The + * default is noaction. Possible values include: 'noAction', 'terminateJob' * * @param {string} [jobSchedulePatchParameter.jobSpecification.onTaskFailure] * The action the Batch service should take when any task fails in a job @@ -12469,7 +12493,7 @@ export interface JobSchedule { * failed if has a failureInfo. A failureInfo is set if the task completes with * a non-zero exit code after exhausting its retry count, or if there was an * error starting the task, for example due to a resource file download error. - * The default is noAction. Possible values include: 'noAction', + * The default is noaction. Possible values include: 'noAction', * 'performExitOptionsJobAction' * * @param {object} [jobSchedulePatchParameter.jobSpecification.constraints] The @@ -12834,14 +12858,7 @@ export interface JobSchedule { * @param {string} * jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption * The minimum lifetime of created auto pools, and how multiple jobs on a - * schedule are assigned to pools. When the pool lifetime is jobSchedule the - * pool exists for the lifetime of the job schedule. The Batch Service creates - * the pool when it creates the first job on the schedule. You may apply this - * option only to job schedules, not to jobs. When the pool lifetime is job the - * pool exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', + * schedule are assigned to pools. Possible values include: 'jobSchedule', * 'job' * * @param {boolean} @@ -12957,14 +12974,8 @@ export interface JobSchedule { * * @param {string} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -12994,7 +13005,15 @@ export interface JobSchedule { * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -13040,13 +13059,8 @@ export interface JobSchedule { * * @param {string} * jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.resizeTimeout] @@ -13227,19 +13241,13 @@ export interface JobSchedule { * * @param {string} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] @@ -13451,9 +13459,9 @@ export interface JobSchedule { * then all tasks are considered complete. This option is therefore most * commonly used with a Job Manager task; if you want to use automatic job * termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. The - * default is noAction. Possible values include: 'noAction', 'terminateJob' + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. The + * default is noaction. Possible values include: 'noAction', 'terminateJob' * * @param {string} [jobSchedulePatchParameter.jobSpecification.onTaskFailure] * The action the Batch service should take when any task fails in a job @@ -13461,7 +13469,7 @@ export interface JobSchedule { * failed if has a failureInfo. A failureInfo is set if the task completes with * a non-zero exit code after exhausting its retry count, or if there was an * error starting the task, for example due to a resource file download error. - * The default is noAction. Possible values include: 'noAction', + * The default is noaction. Possible values include: 'noAction', * 'performExitOptionsJobAction' * * @param {object} [jobSchedulePatchParameter.jobSpecification.constraints] The @@ -13826,14 +13834,7 @@ export interface JobSchedule { * @param {string} * jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption * The minimum lifetime of created auto pools, and how multiple jobs on a - * schedule are assigned to pools. When the pool lifetime is jobSchedule the - * pool exists for the lifetime of the job schedule. The Batch Service creates - * the pool when it creates the first job on the schedule. You may apply this - * option only to job schedules, not to jobs. When the pool lifetime is job the - * pool exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', + * schedule are assigned to pools. Possible values include: 'jobSchedule', * 'job' * * @param {boolean} @@ -13949,14 +13950,8 @@ export interface JobSchedule { * * @param {string} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -13986,7 +13981,15 @@ export interface JobSchedule { * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -14032,13 +14035,8 @@ export interface JobSchedule { * * @param {string} * jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.resizeTimeout] @@ -14219,19 +14217,13 @@ export interface JobSchedule { * * @param {string} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] @@ -14462,9 +14454,9 @@ export interface JobSchedule { * then all tasks are considered complete. This option is therefore most * commonly used with a Job Manager task; if you want to use automatic job * termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. The - * default is noAction. Possible values include: 'noAction', 'terminateJob' + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. The + * default is noaction. Possible values include: 'noAction', 'terminateJob' * * @param {string} [jobScheduleUpdateParameter.jobSpecification.onTaskFailure] * The action the Batch service should take when any task fails in a job @@ -14472,7 +14464,7 @@ export interface JobSchedule { * failed if has a failureInfo. A failureInfo is set if the task completes with * a non-zero exit code after exhausting its retry count, or if there was an * error starting the task, for example due to a resource file download error. - * The default is noAction. Possible values include: 'noAction', + * The default is noaction. Possible values include: 'noAction', * 'performExitOptionsJobAction' * * @param {object} [jobScheduleUpdateParameter.jobSpecification.constraints] @@ -14840,14 +14832,7 @@ export interface JobSchedule { * @param {string} * jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption * The minimum lifetime of created auto pools, and how multiple jobs on a - * schedule are assigned to pools. When the pool lifetime is jobSchedule the - * pool exists for the lifetime of the job schedule. The Batch Service creates - * the pool when it creates the first job on the schedule. You may apply this - * option only to job schedules, not to jobs. When the pool lifetime is job the - * pool exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', + * schedule are assigned to pools. Possible values include: 'jobSchedule', * 'job' * * @param {boolean} @@ -14963,14 +14948,8 @@ export interface JobSchedule { * * @param {string} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -15000,7 +14979,15 @@ export interface JobSchedule { * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -15046,13 +15033,8 @@ export interface JobSchedule { * * @param {string} * jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.resizeTimeout] @@ -15233,19 +15215,13 @@ export interface JobSchedule { * * @param {string} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] @@ -15460,9 +15436,9 @@ export interface JobSchedule { * then all tasks are considered complete. This option is therefore most * commonly used with a Job Manager task; if you want to use automatic job * termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. The - * default is noAction. Possible values include: 'noAction', 'terminateJob' + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. The + * default is noaction. Possible values include: 'noAction', 'terminateJob' * * @param {string} [jobScheduleUpdateParameter.jobSpecification.onTaskFailure] * The action the Batch service should take when any task fails in a job @@ -15470,7 +15446,7 @@ export interface JobSchedule { * failed if has a failureInfo. A failureInfo is set if the task completes with * a non-zero exit code after exhausting its retry count, or if there was an * error starting the task, for example due to a resource file download error. - * The default is noAction. Possible values include: 'noAction', + * The default is noaction. Possible values include: 'noAction', * 'performExitOptionsJobAction' * * @param {object} [jobScheduleUpdateParameter.jobSpecification.constraints] @@ -15838,14 +15814,7 @@ export interface JobSchedule { * @param {string} * jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption * The minimum lifetime of created auto pools, and how multiple jobs on a - * schedule are assigned to pools. When the pool lifetime is jobSchedule the - * pool exists for the lifetime of the job schedule. The Batch Service creates - * the pool when it creates the first job on the schedule. You may apply this - * option only to job schedules, not to jobs. When the pool lifetime is job the - * pool exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', + * schedule are assigned to pools. Possible values include: 'jobSchedule', * 'job' * * @param {boolean} @@ -15961,14 +15930,8 @@ export interface JobSchedule { * * @param {string} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -15998,7 +15961,15 @@ export interface JobSchedule { * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -16044,13 +16015,8 @@ export interface JobSchedule { * * @param {string} * jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.resizeTimeout] @@ -16231,19 +16197,13 @@ export interface JobSchedule { * * @param {string} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] @@ -16870,9 +16830,9 @@ export interface JobSchedule { * tasks, then all tasks are considered complete. This option is therefore most * commonly used with a Job Manager task; if you want to use automatic job * termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. The - * default is noAction. Possible values include: 'noAction', 'terminateJob' + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. The + * default is noaction. Possible values include: 'noAction', 'terminateJob' * * @param {string} [cloudJobSchedule.jobSpecification.onTaskFailure] The action * the Batch service should take when any task fails in a job created under @@ -16880,7 +16840,7 @@ export interface JobSchedule { * a failureInfo. A failureInfo is set if the task completes with a non-zero * exit code after exhausting its retry count, or if there was an error * starting the task, for example due to a resource file download error. The - * default is noAction. Possible values include: 'noAction', + * default is noaction. Possible values include: 'noAction', * 'performExitOptionsJobAction' * * @param {object} [cloudJobSchedule.jobSpecification.constraints] The @@ -17237,14 +17197,7 @@ export interface JobSchedule { * @param {string} * cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption * The minimum lifetime of created auto pools, and how multiple jobs on a - * schedule are assigned to pools. When the pool lifetime is jobSchedule the - * pool exists for the lifetime of the job schedule. The Batch Service creates - * the pool when it creates the first job on the schedule. You may apply this - * option only to job schedules, not to jobs. When the pool lifetime is job the - * pool exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', + * schedule are assigned to pools. Possible values include: 'jobSchedule', * 'job' * * @param {boolean} @@ -17360,14 +17313,8 @@ export interface JobSchedule { * * @param {string} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -17397,7 +17344,15 @@ export interface JobSchedule { * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -17443,13 +17398,8 @@ export interface JobSchedule { * * @param {string} * cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.resizeTimeout] @@ -17630,19 +17580,13 @@ export interface JobSchedule { * * @param {string} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] @@ -17829,9 +17773,9 @@ export interface JobSchedule { * tasks, then all tasks are considered complete. This option is therefore most * commonly used with a Job Manager task; if you want to use automatic job * termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. The - * default is noAction. Possible values include: 'noAction', 'terminateJob' + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. The + * default is noaction. Possible values include: 'noAction', 'terminateJob' * * @param {string} [cloudJobSchedule.jobSpecification.onTaskFailure] The action * the Batch service should take when any task fails in a job created under @@ -17839,7 +17783,7 @@ export interface JobSchedule { * a failureInfo. A failureInfo is set if the task completes with a non-zero * exit code after exhausting its retry count, or if there was an error * starting the task, for example due to a resource file download error. The - * default is noAction. Possible values include: 'noAction', + * default is noaction. Possible values include: 'noAction', * 'performExitOptionsJobAction' * * @param {object} [cloudJobSchedule.jobSpecification.constraints] The @@ -18196,14 +18140,7 @@ export interface JobSchedule { * @param {string} * cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption * The minimum lifetime of created auto pools, and how multiple jobs on a - * schedule are assigned to pools. When the pool lifetime is jobSchedule the - * pool exists for the lifetime of the job schedule. The Batch Service creates - * the pool when it creates the first job on the schedule. You may apply this - * option only to job schedules, not to jobs. When the pool lifetime is job the - * pool exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', + * schedule are assigned to pools. Possible values include: 'jobSchedule', * 'job' * * @param {boolean} @@ -18319,14 +18256,8 @@ export interface JobSchedule { * * @param {string} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -18356,7 +18287,15 @@ export interface JobSchedule { * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -18402,13 +18341,8 @@ export interface JobSchedule { * * @param {string} * cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.resizeTimeout] @@ -18589,19 +18523,13 @@ export interface JobSchedule { * * @param {string} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] @@ -19025,31 +18953,18 @@ export interface Task { * @param {string} [task.exitConditions.default.jobAction] An action to take on * the job containing the task, if the task completes with the given exit * condition and the job's onTaskFailed property is - * 'performExitOptionsJobAction'. Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' + * 'performExitOptionsJobAction'. The default is none for exit code 0 and + * terminate for all other exit conditions. If the job's onTaskFailed property + * is noaction, then specifying this property returns an error and the add task + * request fails with an invalid property value error; if you are calling the + * REST API directly, the HTTP status code is 400 (Bad Request). Possible + * values include: 'none', 'disable', 'terminate' * * @param {string} [task.exitConditions.default.dependencyAction] An action - * that the Batch service performs on tasks that depend on this task. Values - * are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit + * that the Batch service performs on tasks that depend on this task. The + * default is 'satisfy' for exit code 0, and 'block' for all other exit * conditions. If the job's usesTaskDependencies property is set to false, then - * specifying the dependencyAction property returns an erro and the add task + * specifying the dependencyAction property returns an error and the add task * request fails with an invalid property value error; if you are calling the * REST API directly, the HTTP status code is 400 (Bad Request). Possible * values include: 'satisfy', 'block' @@ -19116,18 +19031,11 @@ export interface Task { * you must specify one but not both. * * @param {string} [task.userIdentity.autoUser.scope] The scope for the auto - * user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * user The default value is task. Possible values include: 'task', 'pool' * * @param {string} [task.userIdentity.autoUser.elevationLevel] The elevation - * level of the auto user. nonAdmin - The auto user is a standard user without - * elevated access. admin - The auto user is a user with elevated access and - * operates with full Administrator permissions. The default value is nonAdmin. - * Possible values include: 'nonAdmin', 'admin' + * level of the auto user. The default value is nonAdmin. Possible values + * include: 'nonAdmin', 'admin' * * @param {object} [task.multiInstanceSettings] An object that indicates that * the task is a multi-instance task, and contains information about how to run @@ -19318,31 +19226,18 @@ export interface Task { * @param {string} [task.exitConditions.default.jobAction] An action to take on * the job containing the task, if the task completes with the given exit * condition and the job's onTaskFailed property is - * 'performExitOptionsJobAction'. Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' + * 'performExitOptionsJobAction'. The default is none for exit code 0 and + * terminate for all other exit conditions. If the job's onTaskFailed property + * is noaction, then specifying this property returns an error and the add task + * request fails with an invalid property value error; if you are calling the + * REST API directly, the HTTP status code is 400 (Bad Request). Possible + * values include: 'none', 'disable', 'terminate' * * @param {string} [task.exitConditions.default.dependencyAction] An action - * that the Batch service performs on tasks that depend on this task. Values - * are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit + * that the Batch service performs on tasks that depend on this task. The + * default is 'satisfy' for exit code 0, and 'block' for all other exit * conditions. If the job's usesTaskDependencies property is set to false, then - * specifying the dependencyAction property returns an erro and the add task + * specifying the dependencyAction property returns an error and the add task * request fails with an invalid property value error; if you are calling the * REST API directly, the HTTP status code is 400 (Bad Request). Possible * values include: 'satisfy', 'block' @@ -19409,18 +19304,11 @@ export interface Task { * you must specify one but not both. * * @param {string} [task.userIdentity.autoUser.scope] The scope for the auto - * user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * user The default value is task. Possible values include: 'task', 'pool' * * @param {string} [task.userIdentity.autoUser.elevationLevel] The elevation - * level of the auto user. nonAdmin - The auto user is a standard user without - * elevated access. admin - The auto user is a user with elevated access and - * operates with full Administrator permissions. The default value is nonAdmin. - * Possible values include: 'nonAdmin', 'admin' + * level of the auto user. The default value is nonAdmin. Possible values + * include: 'nonAdmin', 'admin' * * @param {object} [task.multiInstanceSettings] An object that indicates that * the task is a multi-instance task, and contains information about how to run @@ -21328,21 +21216,9 @@ export interface ComputeNodeOperations { * @param {object} [options] Optional Parameters. * * @param {string} [options.nodeRebootOption] When to reboot the compute node - * and what to do with currently running tasks. Values are: - * - * requeue - Terminate running task processes and requeue the tasks. The tasks - * will run again when a node is available. Restart the node as soon as tasks - * have been terminated. - * terminate - Terminate running tasks. The tasks will not run again. Restart - * the node as soon as tasks have been terminated. - * taskcompletion - Allow currently running tasks to complete. Schedule no new - * tasks while waiting. Restart the node when all tasks have completed. - * retaineddata - Allow currently running tasks to complete, then wait for all - * task data retention periods to expire. Schedule no new tasks while waiting. - * Restart the node when all task retention periods have expired. - * - * The default value is requeue. Possible values include: 'requeue', - * 'terminate', 'taskCompletion', 'retainedData' + * and what to do with currently running tasks. The default value is requeue. + * Possible values include: 'requeue', 'terminate', 'taskCompletion', + * 'retainedData' * * @param {object} [options.computeNodeRebootOptions] Additional parameters for * the operation @@ -21386,21 +21262,9 @@ export interface ComputeNodeOperations { * @param {object} [options] Optional Parameters. * * @param {string} [options.nodeRebootOption] When to reboot the compute node - * and what to do with currently running tasks. Values are: - * - * requeue - Terminate running task processes and requeue the tasks. The tasks - * will run again when a node is available. Restart the node as soon as tasks - * have been terminated. - * terminate - Terminate running tasks. The tasks will not run again. Restart - * the node as soon as tasks have been terminated. - * taskcompletion - Allow currently running tasks to complete. Schedule no new - * tasks while waiting. Restart the node when all tasks have completed. - * retaineddata - Allow currently running tasks to complete, then wait for all - * task data retention periods to expire. Schedule no new tasks while waiting. - * Restart the node when all task retention periods have expired. - * - * The default value is requeue. Possible values include: 'requeue', - * 'terminate', 'taskCompletion', 'retainedData' + * and what to do with currently running tasks. The default value is requeue. + * Possible values include: 'requeue', 'terminate', 'taskCompletion', + * 'retainedData' * * @param {object} [options.computeNodeRebootOptions] Additional parameters for * the operation @@ -21464,21 +21328,9 @@ export interface ComputeNodeOperations { * @param {object} [options] Optional Parameters. * * @param {string} [options.nodeReimageOption] When to reimage the compute node - * and what to do with currently running tasks. Values are: - * - * requeue - Terminate running task processes and requeue the tasks. The tasks - * will run again when a node is available. Reimage the node as soon as tasks - * have been terminated. - * terminate - Terminate running tasks. The tasks will not run again. Reimage - * the node as soon as tasks have been terminated. - * taskcompletion - Allow currently running tasks to complete. Schedule no new - * tasks while waiting. Reimage the node when all tasks have completed. - * retaineddata - Allow currently running tasks to complete, then wait for all - * task data retention periods to expire. Schedule no new tasks while waiting. - * Reimage the node when all task retention periods have expired. - * - * The default value is requeue. Possible values include: 'requeue', - * 'terminate', 'taskCompletion', 'retainedData' + * and what to do with currently running tasks. The default value is requeue. + * Possible values include: 'requeue', 'terminate', 'taskCompletion', + * 'retainedData' * * @param {object} [options.computeNodeReimageOptions] Additional parameters * for the operation @@ -21524,21 +21376,9 @@ export interface ComputeNodeOperations { * @param {object} [options] Optional Parameters. * * @param {string} [options.nodeReimageOption] When to reimage the compute node - * and what to do with currently running tasks. Values are: - * - * requeue - Terminate running task processes and requeue the tasks. The tasks - * will run again when a node is available. Reimage the node as soon as tasks - * have been terminated. - * terminate - Terminate running tasks. The tasks will not run again. Reimage - * the node as soon as tasks have been terminated. - * taskcompletion - Allow currently running tasks to complete. Schedule no new - * tasks while waiting. Reimage the node when all tasks have completed. - * retaineddata - Allow currently running tasks to complete, then wait for all - * task data retention periods to expire. Schedule no new tasks while waiting. - * Reimage the node when all task retention periods have expired. - * - * The default value is requeue. Possible values include: 'requeue', - * 'terminate', 'taskCompletion', 'retainedData' + * and what to do with currently running tasks. The default value is requeue. + * Possible values include: 'requeue', 'terminate', 'taskCompletion', + * 'retainedData' * * @param {object} [options.computeNodeReimageOptions] Additional parameters * for the operation @@ -21603,16 +21443,6 @@ export interface ComputeNodeOperations { * * @param {string} [options.nodeDisableSchedulingOption] What to do with * currently running tasks when disabling task scheduling on the compute node. - * Values are: - * - * requeue - Terminate running task processes and requeue the tasks. The tasks - * may run again on other compute nodes, or when task scheduling is re-enabled - * on this node. Enter offline state as soon as tasks have been terminated. - * terminate - Terminate running tasks. The tasks will not run again. Enter - * offline state as soon as tasks have been terminated. - * taskcompletion - Allow currently running tasks to complete. Schedule no new - * tasks while waiting. Enter offline state when all tasks have completed. - * * The default value is requeue. Possible values include: 'requeue', * 'terminate', 'taskCompletion' * @@ -21662,16 +21492,6 @@ export interface ComputeNodeOperations { * * @param {string} [options.nodeDisableSchedulingOption] What to do with * currently running tasks when disabling task scheduling on the compute node. - * Values are: - * - * requeue - Terminate running task processes and requeue the tasks. The tasks - * may run again on other compute nodes, or when task scheduling is re-enabled - * on this node. Enter offline state as soon as tasks have been terminated. - * terminate - Terminate running tasks. The tasks will not run again. Enter - * offline state as soon as tasks have been terminated. - * taskcompletion - Allow currently running tasks to complete. Schedule no new - * tasks while waiting. Enter offline state when all tasks have completed. - * * The default value is requeue. Possible values include: 'requeue', * 'terminate', 'taskCompletion' * @@ -22056,6 +21876,172 @@ export interface ComputeNodeOperations { getRemoteDesktop(poolId: string, nodeId: string, options: { computeNodeGetRemoteDesktopOptions? : models.ComputeNodeGetRemoteDesktopOptions, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + /** + * @summary Upload Azure Batch service log files from the specified compute + * node to Azure Blob Storage. + * + * This is for gathering Azure Batch service log files in an automated fashion + * from nodes if you are experiencing an error and wish to escalate to Azure + * support. The Azure Batch service log files should be shared with Azure + * support to aid in debugging issues with the Batch service. + * + * @param {string} poolId The ID of the pool that contains the compute node. + * + * @param {string} nodeId The ID of the compute node from which you want to + * upload the Azure Batch service log files. + * + * @param {object} uploadBatchServiceLogsConfiguration The Azure Batch service + * log files upload configuration. + * + * @param {string} uploadBatchServiceLogsConfiguration.containerUrl The URL of + * the container within Azure Blob Storage to which to upload the Batch Service + * log file(s). The URL must include a Shared Access Signature (SAS) granting + * write permissions to the container. The SAS duration must allow enough time + * for the upload to finish. The start time for SAS is optional and recommended + * to not be specified. + * + * @param {date} uploadBatchServiceLogsConfiguration.startTime The start of the + * time range from which to upload Batch Service log file(s). Any log file + * containing a log message in the time range will be uploaded. This means that + * the operation might retrieve more logs than have been requested since the + * entire log file is always uploaded, but the operation should not retrieve + * fewer logs than have been requested. + * + * @param {date} [uploadBatchServiceLogsConfiguration.endTime] The end of the + * time range from which to upload Batch Service log file(s). Any log file + * containing a log message in the time range will be uploaded. This means that + * the operation might retrieve more logs than have been requested since the + * entire log file is always uploaded, but the operation should not retrieve + * fewer logs than have been requested. If omitted, the default is to upload + * all logs available after the startTime. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.computeNodeUploadBatchServiceLogsOptions] + * Additional parameters for the operation + * + * @param {number} [options.computeNodeUploadBatchServiceLogsOptions.timeout] + * The maximum time that the server can spend processing the request, in + * seconds. The default is 30 seconds. + * + * @param {uuid} + * [options.computeNodeUploadBatchServiceLogsOptions.clientRequestId] The + * caller-generated request identity, in the form of a GUID with no decoration + * such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + * + * @param {boolean} + * [options.computeNodeUploadBatchServiceLogsOptions.returnClientRequestId] + * Whether the server should return the client-request-id in the response. + * + * @param {date} [options.computeNodeUploadBatchServiceLogsOptions.ocpDate] The + * time the request was issued. Client libraries typically set this to the + * current system clock time; set it explicitly if you are calling the REST API + * directly. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + uploadBatchServiceLogsWithHttpOperationResponse(poolId: string, nodeId: string, uploadBatchServiceLogsConfiguration: models.UploadBatchServiceLogsConfiguration, options?: { computeNodeUploadBatchServiceLogsOptions? : models.ComputeNodeUploadBatchServiceLogsOptions, customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * @summary Upload Azure Batch service log files from the specified compute + * node to Azure Blob Storage. + * + * This is for gathering Azure Batch service log files in an automated fashion + * from nodes if you are experiencing an error and wish to escalate to Azure + * support. The Azure Batch service log files should be shared with Azure + * support to aid in debugging issues with the Batch service. + * + * @param {string} poolId The ID of the pool that contains the compute node. + * + * @param {string} nodeId The ID of the compute node from which you want to + * upload the Azure Batch service log files. + * + * @param {object} uploadBatchServiceLogsConfiguration The Azure Batch service + * log files upload configuration. + * + * @param {string} uploadBatchServiceLogsConfiguration.containerUrl The URL of + * the container within Azure Blob Storage to which to upload the Batch Service + * log file(s). The URL must include a Shared Access Signature (SAS) granting + * write permissions to the container. The SAS duration must allow enough time + * for the upload to finish. The start time for SAS is optional and recommended + * to not be specified. + * + * @param {date} uploadBatchServiceLogsConfiguration.startTime The start of the + * time range from which to upload Batch Service log file(s). Any log file + * containing a log message in the time range will be uploaded. This means that + * the operation might retrieve more logs than have been requested since the + * entire log file is always uploaded, but the operation should not retrieve + * fewer logs than have been requested. + * + * @param {date} [uploadBatchServiceLogsConfiguration.endTime] The end of the + * time range from which to upload Batch Service log file(s). Any log file + * containing a log message in the time range will be uploaded. This means that + * the operation might retrieve more logs than have been requested since the + * entire log file is always uploaded, but the operation should not retrieve + * fewer logs than have been requested. If omitted, the default is to upload + * all logs available after the startTime. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.computeNodeUploadBatchServiceLogsOptions] + * Additional parameters for the operation + * + * @param {number} [options.computeNodeUploadBatchServiceLogsOptions.timeout] + * The maximum time that the server can spend processing the request, in + * seconds. The default is 30 seconds. + * + * @param {uuid} + * [options.computeNodeUploadBatchServiceLogsOptions.clientRequestId] The + * caller-generated request identity, in the form of a GUID with no decoration + * such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + * + * @param {boolean} + * [options.computeNodeUploadBatchServiceLogsOptions.returnClientRequestId] + * Whether the server should return the client-request-id in the response. + * + * @param {date} [options.computeNodeUploadBatchServiceLogsOptions.ocpDate] The + * time the request was issued. Client libraries typically set this to the + * current system clock time; set it explicitly if you are calling the REST API + * directly. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {UploadBatchServiceLogsResult} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {UploadBatchServiceLogsResult} [result] - The deserialized result object if an error did not occur. + * See {@link UploadBatchServiceLogsResult} for more + * information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + uploadBatchServiceLogs(poolId: string, nodeId: string, uploadBatchServiceLogsConfiguration: models.UploadBatchServiceLogsConfiguration, options?: { computeNodeUploadBatchServiceLogsOptions? : models.ComputeNodeUploadBatchServiceLogsOptions, customHeaders? : { [headerName: string]: string; } }): Promise; + uploadBatchServiceLogs(poolId: string, nodeId: string, uploadBatchServiceLogsConfiguration: models.UploadBatchServiceLogsConfiguration, callback: ServiceCallback): void; + uploadBatchServiceLogs(poolId: string, nodeId: string, uploadBatchServiceLogsConfiguration: models.UploadBatchServiceLogsConfiguration, options: { computeNodeUploadBatchServiceLogsOptions? : models.ComputeNodeUploadBatchServiceLogsOptions, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + /** * @summary Lists the compute nodes in the specified pool. * diff --git a/lib/services/batch/lib/operations/job.js b/lib/services/batch/lib/operations/job.js index 2f8d265b03..38daf04eb8 100644 --- a/lib/services/batch/lib/operations/job.js +++ b/lib/services/batch/lib/operations/job.js @@ -137,7 +137,7 @@ function _getAllLifetimeStatistics(options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -403,7 +403,7 @@ function _deleteMethod(jobId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -682,7 +682,7 @@ function _get(jobId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -794,7 +794,7 @@ function _get(jobId, options, callback) { * @param {string} [jobPatchParameter.onAllTasksComplete] The action the Batch * service should take when all tasks in the job are in the completed state. If * omitted, the completion behavior is left unchanged. You may not change the - * value from terminateJob to noAction - that is, once you have engaged + * value from terminatejob to noaction - that is, once you have engaged * automatic job termination, you cannot turn it off again. If you try to do * this, the request fails with an 'invalid property value' error response; if * you are calling the REST API directly, the HTTP status code is 400 (Bad @@ -862,15 +862,7 @@ function _get(jobId, options, callback) { * @param {string} * jobPatchParameter.poolInfo.autoPoolSpecification.poolLifetimeOption The * minimum lifetime of created auto pools, and how multiple jobs on a schedule - * are assigned to pools. When the pool lifetime is jobSchedule the pool exists - * for the lifetime of the job schedule. The Batch Service creates the pool - * when it creates the first job on the schedule. You may apply this option - * only to job schedules, not to jobs. When the pool lifetime is job the pool - * exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', - * 'job' + * are assigned to pools. Possible values include: 'jobSchedule', 'job' * * @param {boolean} * [jobPatchParameter.poolInfo.autoPoolSpecification.keepAlive] Whether to keep @@ -982,14 +974,8 @@ function _get(jobId, options, callback) { * * @param {string} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -1019,7 +1005,15 @@ function _get(jobId, options, callback) { * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -1065,13 +1059,8 @@ function _get(jobId, options, callback) { * * @param {string} * jobPatchParameter.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.resizeTimeout] The @@ -1252,19 +1241,13 @@ function _get(jobId, options, callback) { * * @param {string} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] @@ -1674,15 +1657,7 @@ function _patch(jobId, jobPatchParameter, options, callback) { * @param {string} * jobUpdateParameter.poolInfo.autoPoolSpecification.poolLifetimeOption The * minimum lifetime of created auto pools, and how multiple jobs on a schedule - * are assigned to pools. When the pool lifetime is jobSchedule the pool exists - * for the lifetime of the job schedule. The Batch Service creates the pool - * when it creates the first job on the schedule. You may apply this option - * only to job schedules, not to jobs. When the pool lifetime is job the pool - * exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', - * 'job' + * are assigned to pools. Possible values include: 'jobSchedule', 'job' * * @param {boolean} * [jobUpdateParameter.poolInfo.autoPoolSpecification.keepAlive] Whether to @@ -1796,14 +1771,8 @@ function _patch(jobId, jobPatchParameter, options, callback) { * * @param {string} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -1833,7 +1802,15 @@ function _patch(jobId, jobPatchParameter, options, callback) { * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -1879,13 +1856,8 @@ function _patch(jobId, jobPatchParameter, options, callback) { * * @param {string} * jobUpdateParameter.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.resizeTimeout] The @@ -2066,19 +2038,13 @@ function _patch(jobId, jobPatchParameter, options, callback) { * * @param {string} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] @@ -2145,9 +2111,9 @@ function _patch(jobId, jobPatchParameter, options, callback) { * * @param {string} [jobUpdateParameter.onAllTasksComplete] The action the Batch * service should take when all tasks in the job are in the completed state. If - * omitted, the completion behavior is set to noAction. If the current value is - * terminateJob, this is an error because a job's completion behavior may not - * be changed from terminateJob to noAction. You may not change the value from + * omitted, the completion behavior is set to noaction. If the current value is + * terminatejob, this is an error because a job's completion behavior may not + * be changed from terminatejob to noaction. You may not change the value from * terminatejob to noaction - that is, once you have engaged automatic job * termination, you cannot turn it off again. If you try to do this, the * request fails and Batch returns status code 400 (Bad Request) and an @@ -2439,13 +2405,7 @@ function _update(jobId, jobUpdateParameter, options, callback) { * @param {string} jobId The ID of the job to disable. * * @param {string} disableTasks What to do with active tasks associated with - * the job. Values are: - * - * requeue - Terminate running tasks and requeue them. The tasks will run again - * when the job is enabled. - * terminate - Terminate running tasks. The tasks will not run again. - * wait - Allow currently running tasks to complete. Possible values include: - * 'requeue', 'terminate', 'wait' + * the job. Possible values include: 'requeue', 'terminate', 'wait' * * @param {object} [options] Optional Parameters. * @@ -2904,7 +2864,7 @@ function _enable(jobId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -3609,15 +3569,7 @@ function _terminate(jobId, options, callback) { * * @param {string} job.poolInfo.autoPoolSpecification.poolLifetimeOption The * minimum lifetime of created auto pools, and how multiple jobs on a schedule - * are assigned to pools. When the pool lifetime is jobSchedule the pool exists - * for the lifetime of the job schedule. The Batch Service creates the pool - * when it creates the first job on the schedule. You may apply this option - * only to job schedules, not to jobs. When the pool lifetime is job the pool - * exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', - * 'job' + * are assigned to pools. Possible values include: 'jobSchedule', 'job' * * @param {boolean} [job.poolInfo.autoPoolSpecification.keepAlive] Whether to * keep an auto pool alive after its lifetime expires. If false, the Batch @@ -3727,14 +3679,8 @@ function _terminate(jobId, options, callback) { * * @param {string} * [job.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -3764,7 +3710,15 @@ function _terminate(jobId, options, callback) { * [job.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [job.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -3809,13 +3763,8 @@ function _terminate(jobId, options, callback) { * * @param {string} * job.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [job.poolInfo.autoPoolSpecification.pool.resizeTimeout] The timeout for @@ -3993,19 +3942,13 @@ function _terminate(jobId, options, callback) { * * @param {string} * [job.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [job.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [job.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] The @@ -4067,23 +4010,16 @@ function _terminate(jobId, options, callback) { * job contains no tasks, then all tasks are considered complete. This option * is therefore most commonly used with a Job Manager task; if you want to use * automatic job termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. - * Permitted values are: noAction - do nothing. The job remains active unless - * terminated or disabled by some other means. terminateJob - terminate the - * job. The job's terminateReason is set to 'AllTasksComplete'. The default is - * noAction. Possible values include: 'noAction', 'terminateJob' + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. The + * default is noaction. Possible values include: 'noAction', 'terminateJob' * * @param {string} [job.onTaskFailure] The action the Batch service should take * when any task in the job fails. A task is considered to have failed if has a * failureInfo. A failureInfo is set if the task completes with a non-zero exit * code after exhausting its retry count, or if there was an error starting the - * task, for example due to a resource file download error. noAction - do - * nothing. performExitOptionsJobAction - take the action associated with the - * task exit condition in the task's exitConditions collection. (This may still - * result in no action being taken, if that is what the task specifies.) The - * default is noAction. Possible values include: 'noAction', - * 'performExitOptionsJobAction' + * task, for example due to a resource file download error. The default is + * noaction. Possible values include: 'noAction', 'performExitOptionsJobAction' * * @param {array} [job.metadata] A list of name-value pairs associated with the * job as metadata. The Batch service does not assign any meaning to metadata; @@ -4462,7 +4398,7 @@ function _list(options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -4728,7 +4664,7 @@ function _listFromJobSchedule(jobScheduleId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -4994,7 +4930,7 @@ function _listPreparationAndReleaseTaskStatus(jobId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -5206,7 +5142,7 @@ function _getTaskCounts(jobId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -5387,7 +5323,7 @@ function _listNext(nextPageLink, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -5571,7 +5507,7 @@ function _listFromJobScheduleNext(nextPageLink, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -5766,7 +5702,7 @@ function _listPreparationAndReleaseTaskStatusNext(nextPageLink, options, callbac httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -6359,7 +6295,7 @@ class Job { * @param {string} [jobPatchParameter.onAllTasksComplete] The action the Batch * service should take when all tasks in the job are in the completed state. If * omitted, the completion behavior is left unchanged. You may not change the - * value from terminateJob to noAction - that is, once you have engaged + * value from terminatejob to noaction - that is, once you have engaged * automatic job termination, you cannot turn it off again. If you try to do * this, the request fails with an 'invalid property value' error response; if * you are calling the REST API directly, the HTTP status code is 400 (Bad @@ -6427,15 +6363,7 @@ class Job { * @param {string} * jobPatchParameter.poolInfo.autoPoolSpecification.poolLifetimeOption The * minimum lifetime of created auto pools, and how multiple jobs on a schedule - * are assigned to pools. When the pool lifetime is jobSchedule the pool exists - * for the lifetime of the job schedule. The Batch Service creates the pool - * when it creates the first job on the schedule. You may apply this option - * only to job schedules, not to jobs. When the pool lifetime is job the pool - * exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', - * 'job' + * are assigned to pools. Possible values include: 'jobSchedule', 'job' * * @param {boolean} * [jobPatchParameter.poolInfo.autoPoolSpecification.keepAlive] Whether to keep @@ -6547,14 +6475,8 @@ class Job { * * @param {string} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -6584,7 +6506,15 @@ class Job { * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -6630,13 +6560,8 @@ class Job { * * @param {string} * jobPatchParameter.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.resizeTimeout] The @@ -6817,19 +6742,13 @@ class Job { * * @param {string} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] @@ -6976,7 +6895,7 @@ class Job { * @param {string} [jobPatchParameter.onAllTasksComplete] The action the Batch * service should take when all tasks in the job are in the completed state. If * omitted, the completion behavior is left unchanged. You may not change the - * value from terminateJob to noAction - that is, once you have engaged + * value from terminatejob to noaction - that is, once you have engaged * automatic job termination, you cannot turn it off again. If you try to do * this, the request fails with an 'invalid property value' error response; if * you are calling the REST API directly, the HTTP status code is 400 (Bad @@ -7044,15 +6963,7 @@ class Job { * @param {string} * jobPatchParameter.poolInfo.autoPoolSpecification.poolLifetimeOption The * minimum lifetime of created auto pools, and how multiple jobs on a schedule - * are assigned to pools. When the pool lifetime is jobSchedule the pool exists - * for the lifetime of the job schedule. The Batch Service creates the pool - * when it creates the first job on the schedule. You may apply this option - * only to job schedules, not to jobs. When the pool lifetime is job the pool - * exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', - * 'job' + * are assigned to pools. Possible values include: 'jobSchedule', 'job' * * @param {boolean} * [jobPatchParameter.poolInfo.autoPoolSpecification.keepAlive] Whether to keep @@ -7164,14 +7075,8 @@ class Job { * * @param {string} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -7201,7 +7106,15 @@ class Job { * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -7247,13 +7160,8 @@ class Job { * * @param {string} * jobPatchParameter.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.resizeTimeout] The @@ -7434,19 +7342,13 @@ class Job { * * @param {string} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [jobPatchParameter.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] @@ -7672,15 +7574,7 @@ class Job { * @param {string} * jobUpdateParameter.poolInfo.autoPoolSpecification.poolLifetimeOption The * minimum lifetime of created auto pools, and how multiple jobs on a schedule - * are assigned to pools. When the pool lifetime is jobSchedule the pool exists - * for the lifetime of the job schedule. The Batch Service creates the pool - * when it creates the first job on the schedule. You may apply this option - * only to job schedules, not to jobs. When the pool lifetime is job the pool - * exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', - * 'job' + * are assigned to pools. Possible values include: 'jobSchedule', 'job' * * @param {boolean} * [jobUpdateParameter.poolInfo.autoPoolSpecification.keepAlive] Whether to @@ -7794,14 +7688,8 @@ class Job { * * @param {string} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -7831,7 +7719,15 @@ class Job { * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -7877,13 +7773,8 @@ class Job { * * @param {string} * jobUpdateParameter.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.resizeTimeout] The @@ -8064,19 +7955,13 @@ class Job { * * @param {string} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] @@ -8143,9 +8028,9 @@ class Job { * * @param {string} [jobUpdateParameter.onAllTasksComplete] The action the Batch * service should take when all tasks in the job are in the completed state. If - * omitted, the completion behavior is set to noAction. If the current value is - * terminateJob, this is an error because a job's completion behavior may not - * be changed from terminateJob to noAction. You may not change the value from + * omitted, the completion behavior is set to noaction. If the current value is + * terminatejob, this is an error because a job's completion behavior may not + * be changed from terminatejob to noaction. You may not change the value from * terminatejob to noaction - that is, once you have engaged automatic job * termination, you cannot turn it off again. If you try to do this, the * request fails and Batch returns status code 400 (Bad Request) and an @@ -8294,15 +8179,7 @@ class Job { * @param {string} * jobUpdateParameter.poolInfo.autoPoolSpecification.poolLifetimeOption The * minimum lifetime of created auto pools, and how multiple jobs on a schedule - * are assigned to pools. When the pool lifetime is jobSchedule the pool exists - * for the lifetime of the job schedule. The Batch Service creates the pool - * when it creates the first job on the schedule. You may apply this option - * only to job schedules, not to jobs. When the pool lifetime is job the pool - * exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', - * 'job' + * are assigned to pools. Possible values include: 'jobSchedule', 'job' * * @param {boolean} * [jobUpdateParameter.poolInfo.autoPoolSpecification.keepAlive] Whether to @@ -8416,14 +8293,8 @@ class Job { * * @param {string} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -8453,7 +8324,15 @@ class Job { * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -8499,13 +8378,8 @@ class Job { * * @param {string} * jobUpdateParameter.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.resizeTimeout] The @@ -8686,19 +8560,13 @@ class Job { * * @param {string} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] @@ -8765,9 +8633,9 @@ class Job { * * @param {string} [jobUpdateParameter.onAllTasksComplete] The action the Batch * service should take when all tasks in the job are in the completed state. If - * omitted, the completion behavior is set to noAction. If the current value is - * terminateJob, this is an error because a job's completion behavior may not - * be changed from terminateJob to noAction. You may not change the value from + * omitted, the completion behavior is set to noaction. If the current value is + * terminatejob, this is an error because a job's completion behavior may not + * be changed from terminatejob to noaction. You may not change the value from * terminatejob to noaction - that is, once you have engaged automatic job * termination, you cannot turn it off again. If you try to do this, the * request fails and Batch returns status code 400 (Bad Request) and an @@ -8875,13 +8743,7 @@ class Job { * @param {string} jobId The ID of the job to disable. * * @param {string} disableTasks What to do with active tasks associated with - * the job. Values are: - * - * requeue - Terminate running tasks and requeue them. The tasks will run again - * when the job is enabled. - * terminate - Terminate running tasks. The tasks will not run again. - * wait - Allow currently running tasks to complete. Possible values include: - * 'requeue', 'terminate', 'wait' + * the job. Possible values include: 'requeue', 'terminate', 'wait' * * @param {object} [options] Optional Parameters. * @@ -8961,13 +8823,7 @@ class Job { * @param {string} jobId The ID of the job to disable. * * @param {string} disableTasks What to do with active tasks associated with - * the job. Values are: - * - * requeue - Terminate running tasks and requeue them. The tasks will run again - * when the job is enabled. - * terminate - Terminate running tasks. The tasks will not run again. - * wait - Allow currently running tasks to complete. Possible values include: - * 'requeue', 'terminate', 'wait' + * the job. Possible values include: 'requeue', 'terminate', 'wait' * * @param {object} [options] Optional Parameters. * @@ -9742,15 +9598,7 @@ class Job { * * @param {string} job.poolInfo.autoPoolSpecification.poolLifetimeOption The * minimum lifetime of created auto pools, and how multiple jobs on a schedule - * are assigned to pools. When the pool lifetime is jobSchedule the pool exists - * for the lifetime of the job schedule. The Batch Service creates the pool - * when it creates the first job on the schedule. You may apply this option - * only to job schedules, not to jobs. When the pool lifetime is job the pool - * exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', - * 'job' + * are assigned to pools. Possible values include: 'jobSchedule', 'job' * * @param {boolean} [job.poolInfo.autoPoolSpecification.keepAlive] Whether to * keep an auto pool alive after its lifetime expires. If false, the Batch @@ -9860,14 +9708,8 @@ class Job { * * @param {string} * [job.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -9897,7 +9739,15 @@ class Job { * [job.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [job.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -9942,13 +9792,8 @@ class Job { * * @param {string} * job.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [job.poolInfo.autoPoolSpecification.pool.resizeTimeout] The timeout for @@ -10126,19 +9971,13 @@ class Job { * * @param {string} * [job.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [job.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [job.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] The @@ -10200,23 +10039,16 @@ class Job { * job contains no tasks, then all tasks are considered complete. This option * is therefore most commonly used with a Job Manager task; if you want to use * automatic job termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. - * Permitted values are: noAction - do nothing. The job remains active unless - * terminated or disabled by some other means. terminateJob - terminate the - * job. The job's terminateReason is set to 'AllTasksComplete'. The default is - * noAction. Possible values include: 'noAction', 'terminateJob' + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. The + * default is noaction. Possible values include: 'noAction', 'terminateJob' * * @param {string} [job.onTaskFailure] The action the Batch service should take * when any task in the job fails. A task is considered to have failed if has a * failureInfo. A failureInfo is set if the task completes with a non-zero exit * code after exhausting its retry count, or if there was an error starting the - * task, for example due to a resource file download error. noAction - do - * nothing. performExitOptionsJobAction - take the action associated with the - * task exit condition in the task's exitConditions collection. (This may still - * result in no action being taken, if that is what the task specifies.) The - * default is noAction. Possible values include: 'noAction', - * 'performExitOptionsJobAction' + * task, for example due to a resource file download error. The default is + * noaction. Possible values include: 'noAction', 'performExitOptionsJobAction' * * @param {array} [job.metadata] A list of name-value pairs associated with the * job as metadata. The Batch service does not assign any meaning to metadata; @@ -10613,15 +10445,7 @@ class Job { * * @param {string} job.poolInfo.autoPoolSpecification.poolLifetimeOption The * minimum lifetime of created auto pools, and how multiple jobs on a schedule - * are assigned to pools. When the pool lifetime is jobSchedule the pool exists - * for the lifetime of the job schedule. The Batch Service creates the pool - * when it creates the first job on the schedule. You may apply this option - * only to job schedules, not to jobs. When the pool lifetime is job the pool - * exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', - * 'job' + * are assigned to pools. Possible values include: 'jobSchedule', 'job' * * @param {boolean} [job.poolInfo.autoPoolSpecification.keepAlive] Whether to * keep an auto pool alive after its lifetime expires. If false, the Batch @@ -10731,14 +10555,8 @@ class Job { * * @param {string} * [job.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -10768,7 +10586,15 @@ class Job { * [job.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [job.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -10813,13 +10639,8 @@ class Job { * * @param {string} * job.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [job.poolInfo.autoPoolSpecification.pool.resizeTimeout] The timeout for @@ -10997,19 +10818,13 @@ class Job { * * @param {string} * [job.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [job.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [job.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] The @@ -11071,23 +10886,16 @@ class Job { * job contains no tasks, then all tasks are considered complete. This option * is therefore most commonly used with a Job Manager task; if you want to use * automatic job termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. - * Permitted values are: noAction - do nothing. The job remains active unless - * terminated or disabled by some other means. terminateJob - terminate the - * job. The job's terminateReason is set to 'AllTasksComplete'. The default is - * noAction. Possible values include: 'noAction', 'terminateJob' + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. The + * default is noaction. Possible values include: 'noAction', 'terminateJob' * * @param {string} [job.onTaskFailure] The action the Batch service should take * when any task in the job fails. A task is considered to have failed if has a * failureInfo. A failureInfo is set if the task completes with a non-zero exit * code after exhausting its retry count, or if there was an error starting the - * task, for example due to a resource file download error. noAction - do - * nothing. performExitOptionsJobAction - take the action associated with the - * task exit condition in the task's exitConditions collection. (This may still - * result in no action being taken, if that is what the task specifies.) The - * default is noAction. Possible values include: 'noAction', - * 'performExitOptionsJobAction' + * task, for example due to a resource file download error. The default is + * noaction. Possible values include: 'noAction', 'performExitOptionsJobAction' * * @param {array} [job.metadata] A list of name-value pairs associated with the * job as metadata. The Batch service does not assign any meaning to metadata; diff --git a/lib/services/batch/lib/operations/jobSchedule.js b/lib/services/batch/lib/operations/jobSchedule.js index 320d19429d..c273dce6d5 100644 --- a/lib/services/batch/lib/operations/jobSchedule.js +++ b/lib/services/batch/lib/operations/jobSchedule.js @@ -192,7 +192,7 @@ function _exists(jobScheduleId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -454,7 +454,7 @@ function _deleteMethod(jobScheduleId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -735,7 +735,7 @@ function _get(jobScheduleId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -919,9 +919,9 @@ function _get(jobScheduleId, options, callback) { * then all tasks are considered complete. This option is therefore most * commonly used with a Job Manager task; if you want to use automatic job * termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. The - * default is noAction. Possible values include: 'noAction', 'terminateJob' + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. The + * default is noaction. Possible values include: 'noAction', 'terminateJob' * * @param {string} [jobSchedulePatchParameter.jobSpecification.onTaskFailure] * The action the Batch service should take when any task fails in a job @@ -929,7 +929,7 @@ function _get(jobScheduleId, options, callback) { * failed if has a failureInfo. A failureInfo is set if the task completes with * a non-zero exit code after exhausting its retry count, or if there was an * error starting the task, for example due to a resource file download error. - * The default is noAction. Possible values include: 'noAction', + * The default is noaction. Possible values include: 'noAction', * 'performExitOptionsJobAction' * * @param {object} [jobSchedulePatchParameter.jobSpecification.constraints] The @@ -1294,14 +1294,7 @@ function _get(jobScheduleId, options, callback) { * @param {string} * jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption * The minimum lifetime of created auto pools, and how multiple jobs on a - * schedule are assigned to pools. When the pool lifetime is jobSchedule the - * pool exists for the lifetime of the job schedule. The Batch Service creates - * the pool when it creates the first job on the schedule. You may apply this - * option only to job schedules, not to jobs. When the pool lifetime is job the - * pool exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', + * schedule are assigned to pools. Possible values include: 'jobSchedule', * 'job' * * @param {boolean} @@ -1417,14 +1410,8 @@ function _get(jobScheduleId, options, callback) { * * @param {string} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -1454,7 +1441,15 @@ function _get(jobScheduleId, options, callback) { * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -1500,13 +1495,8 @@ function _get(jobScheduleId, options, callback) { * * @param {string} * jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.resizeTimeout] @@ -1687,19 +1677,13 @@ function _get(jobScheduleId, options, callback) { * * @param {string} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] @@ -2129,9 +2113,9 @@ function _patch(jobScheduleId, jobSchedulePatchParameter, options, callback) { * then all tasks are considered complete. This option is therefore most * commonly used with a Job Manager task; if you want to use automatic job * termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. The - * default is noAction. Possible values include: 'noAction', 'terminateJob' + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. The + * default is noaction. Possible values include: 'noAction', 'terminateJob' * * @param {string} [jobScheduleUpdateParameter.jobSpecification.onTaskFailure] * The action the Batch service should take when any task fails in a job @@ -2139,7 +2123,7 @@ function _patch(jobScheduleId, jobSchedulePatchParameter, options, callback) { * failed if has a failureInfo. A failureInfo is set if the task completes with * a non-zero exit code after exhausting its retry count, or if there was an * error starting the task, for example due to a resource file download error. - * The default is noAction. Possible values include: 'noAction', + * The default is noaction. Possible values include: 'noAction', * 'performExitOptionsJobAction' * * @param {object} [jobScheduleUpdateParameter.jobSpecification.constraints] @@ -2507,14 +2491,7 @@ function _patch(jobScheduleId, jobSchedulePatchParameter, options, callback) { * @param {string} * jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption * The minimum lifetime of created auto pools, and how multiple jobs on a - * schedule are assigned to pools. When the pool lifetime is jobSchedule the - * pool exists for the lifetime of the job schedule. The Batch Service creates - * the pool when it creates the first job on the schedule. You may apply this - * option only to job schedules, not to jobs. When the pool lifetime is job the - * pool exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', + * schedule are assigned to pools. Possible values include: 'jobSchedule', * 'job' * * @param {boolean} @@ -2630,14 +2607,8 @@ function _patch(jobScheduleId, jobSchedulePatchParameter, options, callback) { * * @param {string} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -2667,7 +2638,15 @@ function _patch(jobScheduleId, jobSchedulePatchParameter, options, callback) { * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -2713,13 +2692,8 @@ function _patch(jobScheduleId, jobSchedulePatchParameter, options, callback) { * * @param {string} * jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.resizeTimeout] @@ -2900,19 +2874,13 @@ function _patch(jobScheduleId, jobSchedulePatchParameter, options, callback) { * * @param {string} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] @@ -3431,7 +3399,7 @@ function _disable(jobScheduleId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -3684,7 +3652,7 @@ function _enable(jobScheduleId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -3937,7 +3905,7 @@ function _terminate(jobScheduleId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -4099,9 +4067,9 @@ function _terminate(jobScheduleId, options, callback) { * tasks, then all tasks are considered complete. This option is therefore most * commonly used with a Job Manager task; if you want to use automatic job * termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. The - * default is noAction. Possible values include: 'noAction', 'terminateJob' + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. The + * default is noaction. Possible values include: 'noAction', 'terminateJob' * * @param {string} [cloudJobSchedule.jobSpecification.onTaskFailure] The action * the Batch service should take when any task fails in a job created under @@ -4109,7 +4077,7 @@ function _terminate(jobScheduleId, options, callback) { * a failureInfo. A failureInfo is set if the task completes with a non-zero * exit code after exhausting its retry count, or if there was an error * starting the task, for example due to a resource file download error. The - * default is noAction. Possible values include: 'noAction', + * default is noaction. Possible values include: 'noAction', * 'performExitOptionsJobAction' * * @param {object} [cloudJobSchedule.jobSpecification.constraints] The @@ -4466,14 +4434,7 @@ function _terminate(jobScheduleId, options, callback) { * @param {string} * cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption * The minimum lifetime of created auto pools, and how multiple jobs on a - * schedule are assigned to pools. When the pool lifetime is jobSchedule the - * pool exists for the lifetime of the job schedule. The Batch Service creates - * the pool when it creates the first job on the schedule. You may apply this - * option only to job schedules, not to jobs. When the pool lifetime is job the - * pool exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', + * schedule are assigned to pools. Possible values include: 'jobSchedule', * 'job' * * @param {boolean} @@ -4589,14 +4550,8 @@ function _terminate(jobScheduleId, options, callback) { * * @param {string} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -4626,7 +4581,15 @@ function _terminate(jobScheduleId, options, callback) { * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -4672,13 +4635,8 @@ function _terminate(jobScheduleId, options, callback) { * * @param {string} * cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.resizeTimeout] @@ -4859,19 +4817,13 @@ function _terminate(jobScheduleId, options, callback) { * * @param {string} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] @@ -5315,7 +5267,7 @@ function _list(options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -5498,7 +5450,7 @@ function _listNext(nextPageLink, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -6197,9 +6149,9 @@ class JobSchedule { * then all tasks are considered complete. This option is therefore most * commonly used with a Job Manager task; if you want to use automatic job * termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. The - * default is noAction. Possible values include: 'noAction', 'terminateJob' + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. The + * default is noaction. Possible values include: 'noAction', 'terminateJob' * * @param {string} [jobSchedulePatchParameter.jobSpecification.onTaskFailure] * The action the Batch service should take when any task fails in a job @@ -6207,7 +6159,7 @@ class JobSchedule { * failed if has a failureInfo. A failureInfo is set if the task completes with * a non-zero exit code after exhausting its retry count, or if there was an * error starting the task, for example due to a resource file download error. - * The default is noAction. Possible values include: 'noAction', + * The default is noaction. Possible values include: 'noAction', * 'performExitOptionsJobAction' * * @param {object} [jobSchedulePatchParameter.jobSpecification.constraints] The @@ -6572,14 +6524,7 @@ class JobSchedule { * @param {string} * jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption * The minimum lifetime of created auto pools, and how multiple jobs on a - * schedule are assigned to pools. When the pool lifetime is jobSchedule the - * pool exists for the lifetime of the job schedule. The Batch Service creates - * the pool when it creates the first job on the schedule. You may apply this - * option only to job schedules, not to jobs. When the pool lifetime is job the - * pool exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', + * schedule are assigned to pools. Possible values include: 'jobSchedule', * 'job' * * @param {boolean} @@ -6695,14 +6640,8 @@ class JobSchedule { * * @param {string} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -6732,7 +6671,15 @@ class JobSchedule { * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -6778,13 +6725,8 @@ class JobSchedule { * * @param {string} * jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.resizeTimeout] @@ -6965,19 +6907,13 @@ class JobSchedule { * * @param {string} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] @@ -7201,9 +7137,9 @@ class JobSchedule { * then all tasks are considered complete. This option is therefore most * commonly used with a Job Manager task; if you want to use automatic job * termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. The - * default is noAction. Possible values include: 'noAction', 'terminateJob' + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. The + * default is noaction. Possible values include: 'noAction', 'terminateJob' * * @param {string} [jobSchedulePatchParameter.jobSpecification.onTaskFailure] * The action the Batch service should take when any task fails in a job @@ -7211,7 +7147,7 @@ class JobSchedule { * failed if has a failureInfo. A failureInfo is set if the task completes with * a non-zero exit code after exhausting its retry count, or if there was an * error starting the task, for example due to a resource file download error. - * The default is noAction. Possible values include: 'noAction', + * The default is noaction. Possible values include: 'noAction', * 'performExitOptionsJobAction' * * @param {object} [jobSchedulePatchParameter.jobSpecification.constraints] The @@ -7576,14 +7512,7 @@ class JobSchedule { * @param {string} * jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption * The minimum lifetime of created auto pools, and how multiple jobs on a - * schedule are assigned to pools. When the pool lifetime is jobSchedule the - * pool exists for the lifetime of the job schedule. The Batch Service creates - * the pool when it creates the first job on the schedule. You may apply this - * option only to job schedules, not to jobs. When the pool lifetime is job the - * pool exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', + * schedule are assigned to pools. Possible values include: 'jobSchedule', * 'job' * * @param {boolean} @@ -7699,14 +7628,8 @@ class JobSchedule { * * @param {string} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -7736,7 +7659,15 @@ class JobSchedule { * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -7782,13 +7713,8 @@ class JobSchedule { * * @param {string} * jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.resizeTimeout] @@ -7969,19 +7895,13 @@ class JobSchedule { * * @param {string} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] @@ -8227,9 +8147,9 @@ class JobSchedule { * then all tasks are considered complete. This option is therefore most * commonly used with a Job Manager task; if you want to use automatic job * termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. The - * default is noAction. Possible values include: 'noAction', 'terminateJob' + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. The + * default is noaction. Possible values include: 'noAction', 'terminateJob' * * @param {string} [jobScheduleUpdateParameter.jobSpecification.onTaskFailure] * The action the Batch service should take when any task fails in a job @@ -8237,7 +8157,7 @@ class JobSchedule { * failed if has a failureInfo. A failureInfo is set if the task completes with * a non-zero exit code after exhausting its retry count, or if there was an * error starting the task, for example due to a resource file download error. - * The default is noAction. Possible values include: 'noAction', + * The default is noaction. Possible values include: 'noAction', * 'performExitOptionsJobAction' * * @param {object} [jobScheduleUpdateParameter.jobSpecification.constraints] @@ -8605,14 +8525,7 @@ class JobSchedule { * @param {string} * jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption * The minimum lifetime of created auto pools, and how multiple jobs on a - * schedule are assigned to pools. When the pool lifetime is jobSchedule the - * pool exists for the lifetime of the job schedule. The Batch Service creates - * the pool when it creates the first job on the schedule. You may apply this - * option only to job schedules, not to jobs. When the pool lifetime is job the - * pool exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', + * schedule are assigned to pools. Possible values include: 'jobSchedule', * 'job' * * @param {boolean} @@ -8728,14 +8641,8 @@ class JobSchedule { * * @param {string} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -8765,7 +8672,15 @@ class JobSchedule { * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -8811,13 +8726,8 @@ class JobSchedule { * * @param {string} * jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.resizeTimeout] @@ -8998,19 +8908,13 @@ class JobSchedule { * * @param {string} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] @@ -9237,9 +9141,9 @@ class JobSchedule { * then all tasks are considered complete. This option is therefore most * commonly used with a Job Manager task; if you want to use automatic job * termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. The - * default is noAction. Possible values include: 'noAction', 'terminateJob' + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. The + * default is noaction. Possible values include: 'noAction', 'terminateJob' * * @param {string} [jobScheduleUpdateParameter.jobSpecification.onTaskFailure] * The action the Batch service should take when any task fails in a job @@ -9247,7 +9151,7 @@ class JobSchedule { * failed if has a failureInfo. A failureInfo is set if the task completes with * a non-zero exit code after exhausting its retry count, or if there was an * error starting the task, for example due to a resource file download error. - * The default is noAction. Possible values include: 'noAction', + * The default is noaction. Possible values include: 'noAction', * 'performExitOptionsJobAction' * * @param {object} [jobScheduleUpdateParameter.jobSpecification.constraints] @@ -9615,14 +9519,7 @@ class JobSchedule { * @param {string} * jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption * The minimum lifetime of created auto pools, and how multiple jobs on a - * schedule are assigned to pools. When the pool lifetime is jobSchedule the - * pool exists for the lifetime of the job schedule. The Batch Service creates - * the pool when it creates the first job on the schedule. You may apply this - * option only to job schedules, not to jobs. When the pool lifetime is job the - * pool exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', + * schedule are assigned to pools. Possible values include: 'jobSchedule', * 'job' * * @param {boolean} @@ -9738,14 +9635,8 @@ class JobSchedule { * * @param {string} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -9775,7 +9666,15 @@ class JobSchedule { * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -9821,13 +9720,8 @@ class JobSchedule { * * @param {string} * jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.resizeTimeout] @@ -10008,19 +9902,13 @@ class JobSchedule { * * @param {string} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] @@ -10743,9 +10631,9 @@ class JobSchedule { * tasks, then all tasks are considered complete. This option is therefore most * commonly used with a Job Manager task; if you want to use automatic job * termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. The - * default is noAction. Possible values include: 'noAction', 'terminateJob' + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. The + * default is noaction. Possible values include: 'noAction', 'terminateJob' * * @param {string} [cloudJobSchedule.jobSpecification.onTaskFailure] The action * the Batch service should take when any task fails in a job created under @@ -10753,7 +10641,7 @@ class JobSchedule { * a failureInfo. A failureInfo is set if the task completes with a non-zero * exit code after exhausting its retry count, or if there was an error * starting the task, for example due to a resource file download error. The - * default is noAction. Possible values include: 'noAction', + * default is noaction. Possible values include: 'noAction', * 'performExitOptionsJobAction' * * @param {object} [cloudJobSchedule.jobSpecification.constraints] The @@ -11110,14 +10998,7 @@ class JobSchedule { * @param {string} * cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption * The minimum lifetime of created auto pools, and how multiple jobs on a - * schedule are assigned to pools. When the pool lifetime is jobSchedule the - * pool exists for the lifetime of the job schedule. The Batch Service creates - * the pool when it creates the first job on the schedule. You may apply this - * option only to job schedules, not to jobs. When the pool lifetime is job the - * pool exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', + * schedule are assigned to pools. Possible values include: 'jobSchedule', * 'job' * * @param {boolean} @@ -11233,14 +11114,8 @@ class JobSchedule { * * @param {string} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -11270,7 +11145,15 @@ class JobSchedule { * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -11316,13 +11199,8 @@ class JobSchedule { * * @param {string} * cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.resizeTimeout] @@ -11503,19 +11381,13 @@ class JobSchedule { * * @param {string} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] @@ -11714,9 +11586,9 @@ class JobSchedule { * tasks, then all tasks are considered complete. This option is therefore most * commonly used with a Job Manager task; if you want to use automatic job * termination without a Job Manager, you should initially set - * onAllTasksComplete to noAction and update the job properties to set - * onAllTasksComplete to terminateJob once you have finished adding tasks. The - * default is noAction. Possible values include: 'noAction', 'terminateJob' + * onAllTasksComplete to noaction and update the job properties to set + * onAllTasksComplete to terminatejob once you have finished adding tasks. The + * default is noaction. Possible values include: 'noAction', 'terminateJob' * * @param {string} [cloudJobSchedule.jobSpecification.onTaskFailure] The action * the Batch service should take when any task fails in a job created under @@ -11724,7 +11596,7 @@ class JobSchedule { * a failureInfo. A failureInfo is set if the task completes with a non-zero * exit code after exhausting its retry count, or if there was an error * starting the task, for example due to a resource file download error. The - * default is noAction. Possible values include: 'noAction', + * default is noaction. Possible values include: 'noAction', * 'performExitOptionsJobAction' * * @param {object} [cloudJobSchedule.jobSpecification.constraints] The @@ -12081,14 +11953,7 @@ class JobSchedule { * @param {string} * cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.poolLifetimeOption * The minimum lifetime of created auto pools, and how multiple jobs on a - * schedule are assigned to pools. When the pool lifetime is jobSchedule the - * pool exists for the lifetime of the job schedule. The Batch Service creates - * the pool when it creates the first job on the schedule. You may apply this - * option only to job schedules, not to jobs. When the pool lifetime is job the - * pool exists for the lifetime of the job to which it is dedicated. The Batch - * service creates the pool when it creates the job. If the 'job' option is - * applied to a job schedule, the Batch service creates a new auto pool for - * every job created on the schedule. Possible values include: 'jobSchedule', + * schedule are assigned to pools. Possible values include: 'jobSchedule', * 'job' * * @param {boolean} @@ -12204,14 +12069,8 @@ class JobSchedule { * * @param {string} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.osDisk.caching] - * The type of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * The type of caching to enable for the OS disk. The default value for caching + * is none. For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -12241,7 +12100,15 @@ class JobSchedule { * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.dataDisks] * The configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.licenseType] @@ -12287,13 +12154,8 @@ class JobSchedule { * * @param {string} * cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.taskSchedulingPolicy.nodeFillType - * How tasks are distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * How tasks are distributed across compute nodes in a pool. Possible values + * include: 'spread', 'pack' * * @param {moment.duration} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.resizeTimeout] @@ -12474,19 +12336,13 @@ class JobSchedule { * * @param {string} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} * [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.startTask.maxTaskRetryCount] diff --git a/lib/services/batch/lib/operations/pool.js b/lib/services/batch/lib/operations/pool.js index 213a362f61..3636347b40 100644 --- a/lib/services/batch/lib/operations/pool.js +++ b/lib/services/batch/lib/operations/pool.js @@ -206,7 +206,7 @@ function _listUsageMetrics(options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -410,7 +410,7 @@ function _getAllLifetimeStatistics(options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -584,14 +584,8 @@ function _getAllLifetimeStatistics(options, callback) { * operating system disk of the Virtual Machine. * * @param {string} [pool.virtualMachineConfiguration.osDisk.caching] The type - * of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * of caching to enable for the OS disk. The default value for caching is none. + * For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -618,7 +612,15 @@ function _getAllLifetimeStatistics(options, callback) { * @param {array} [pool.virtualMachineConfiguration.dataDisks] The * configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} [pool.virtualMachineConfiguration.licenseType] The type of * on-premises license to be used when deploying the operating system. This @@ -800,18 +802,12 @@ function _getAllLifetimeStatistics(options, callback) { * exclusive; you must specify one but not both. * * @param {string} [pool.startTask.userIdentity.autoUser.scope] The scope for - * the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * the auto user The default value is task. Possible values include: 'task', + * 'pool' * * @param {string} [pool.startTask.userIdentity.autoUser.elevationLevel] The - * elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * elevation level of the auto user. The default value is nonAdmin. Possible + * values include: 'nonAdmin', 'admin' * * @param {number} [pool.startTask.maxTaskRetryCount] The maximum number of * times the task may be retried. The Batch service retries a task if its exit @@ -863,13 +859,8 @@ function _getAllLifetimeStatistics(options, callback) { * compute nodes in a pool. * * @param {string} pool.taskSchedulingPolicy.nodeFillType How tasks are - * distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * distributed across compute nodes in a pool. Possible values include: + * 'spread', 'pack' * * @param {array} [pool.userAccounts] The list of user accounts to be created * on each node in the pool. @@ -1248,7 +1239,7 @@ function _list(options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -1518,7 +1509,7 @@ function _deleteMethod(poolId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -1770,7 +1761,7 @@ function _exists(poolId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -2050,7 +2041,7 @@ function _get(poolId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -2223,19 +2214,13 @@ function _get(poolId, options, callback) { * are mutually exclusive; you must specify one but not both. * * @param {string} [poolPatchParameter.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [poolPatchParameter.startTask.userIdentity.autoUser.elevationLevel] The - * elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * elevation level of the auto user. The default value is nonAdmin. Possible + * values include: 'nonAdmin', 'admin' * * @param {number} [poolPatchParameter.startTask.maxTaskRetryCount] The maximum * number of times the task may be retried. The Batch service retries a task if @@ -2676,7 +2661,7 @@ function _disableAutoScale(poolId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -3764,7 +3749,7 @@ function _stopResize(poolId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -3926,19 +3911,13 @@ function _stopResize(poolId, options, callback) { * * @param {string} * [poolUpdatePropertiesParameter.startTask.userIdentity.autoUser.scope] The - * scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * scope for the auto user The default value is task. Possible values include: + * 'task', 'pool' * * @param {string} * [poolUpdatePropertiesParameter.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} [poolUpdatePropertiesParameter.startTask.maxTaskRetryCount] * The maximum number of times the task may be retried. The Batch service @@ -4885,7 +4864,7 @@ function _listUsageMetricsNext(nextPageLink, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -5066,7 +5045,7 @@ function _listNext(nextPageLink, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -5563,14 +5542,8 @@ class Pool { * operating system disk of the Virtual Machine. * * @param {string} [pool.virtualMachineConfiguration.osDisk.caching] The type - * of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * of caching to enable for the OS disk. The default value for caching is none. + * For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -5597,7 +5570,15 @@ class Pool { * @param {array} [pool.virtualMachineConfiguration.dataDisks] The * configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} [pool.virtualMachineConfiguration.licenseType] The type of * on-premises license to be used when deploying the operating system. This @@ -5779,18 +5760,12 @@ class Pool { * exclusive; you must specify one but not both. * * @param {string} [pool.startTask.userIdentity.autoUser.scope] The scope for - * the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * the auto user The default value is task. Possible values include: 'task', + * 'pool' * * @param {string} [pool.startTask.userIdentity.autoUser.elevationLevel] The - * elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * elevation level of the auto user. The default value is nonAdmin. Possible + * values include: 'nonAdmin', 'admin' * * @param {number} [pool.startTask.maxTaskRetryCount] The maximum number of * times the task may be retried. The Batch service retries a task if its exit @@ -5842,13 +5817,8 @@ class Pool { * compute nodes in a pool. * * @param {string} pool.taskSchedulingPolicy.nodeFillType How tasks are - * distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * distributed across compute nodes in a pool. Possible values include: + * 'spread', 'pack' * * @param {array} [pool.userAccounts] The list of user accounts to be created * on each node in the pool. @@ -5993,14 +5963,8 @@ class Pool { * operating system disk of the Virtual Machine. * * @param {string} [pool.virtualMachineConfiguration.osDisk.caching] The type - * of caching to enable for the OS disk. Values are: - * - * none - The caching mode for the disk is not enabled. - * readOnly - The caching mode for the disk is read only. - * readWrite - The caching mode for the disk is read and write. - * - * The default value for caching is none. For information about the caching - * options see: + * of caching to enable for the OS disk. The default value for caching is none. + * For information about the caching options see: * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. * Possible values include: 'none', 'readOnly', 'readWrite' * @@ -6027,7 +5991,15 @@ class Pool { * @param {array} [pool.virtualMachineConfiguration.dataDisks] The * configuration for data disks attached to the comptue 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. + * 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. When the node is removed from the + * pool, the disk and all data associated with it is also deleted. The disk is + * not formatted after being attached, it must be formatted before use - for + * more information see + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * and + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param {string} [pool.virtualMachineConfiguration.licenseType] The type of * on-premises license to be used when deploying the operating system. This @@ -6209,18 +6181,12 @@ class Pool { * exclusive; you must specify one but not both. * * @param {string} [pool.startTask.userIdentity.autoUser.scope] The scope for - * the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * the auto user The default value is task. Possible values include: 'task', + * 'pool' * * @param {string} [pool.startTask.userIdentity.autoUser.elevationLevel] The - * elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * elevation level of the auto user. The default value is nonAdmin. Possible + * values include: 'nonAdmin', 'admin' * * @param {number} [pool.startTask.maxTaskRetryCount] The maximum number of * times the task may be retried. The Batch service retries a task if its exit @@ -6272,13 +6238,8 @@ class Pool { * compute nodes in a pool. * * @param {string} pool.taskSchedulingPolicy.nodeFillType How tasks are - * distributed across compute nodes in a pool. Values are: - * - * pack - As many tasks as possible (maxTasksPerNode) should be assigned to - * each node in the pool before any tasks are assigned to the next node in the - * pool. - * spread - Tasks should be assigned evenly across all nodes in the pool. - * Possible values include: 'spread', 'pack' + * distributed across compute nodes in a pool. Possible values include: + * 'spread', 'pack' * * @param {array} [pool.userAccounts] The list of user accounts to be created * on each node in the pool. @@ -7073,19 +7034,13 @@ class Pool { * are mutually exclusive; you must specify one but not both. * * @param {string} [poolPatchParameter.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [poolPatchParameter.startTask.userIdentity.autoUser.elevationLevel] The - * elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * elevation level of the auto user. The default value is nonAdmin. Possible + * values include: 'nonAdmin', 'admin' * * @param {number} [poolPatchParameter.startTask.maxTaskRetryCount] The maximum * number of times the task may be retried. The Batch service retries a task if @@ -7281,19 +7236,13 @@ class Pool { * are mutually exclusive; you must specify one but not both. * * @param {string} [poolPatchParameter.startTask.userIdentity.autoUser.scope] - * The scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * The scope for the auto user The default value is task. Possible values + * include: 'task', 'pool' * * @param {string} * [poolPatchParameter.startTask.userIdentity.autoUser.elevationLevel] The - * elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * elevation level of the auto user. The default value is nonAdmin. Possible + * values include: 'nonAdmin', 'admin' * * @param {number} [poolPatchParameter.startTask.maxTaskRetryCount] The maximum * number of times the task may be retried. The Batch service retries a task if @@ -8394,19 +8343,13 @@ class Pool { * * @param {string} * [poolUpdatePropertiesParameter.startTask.userIdentity.autoUser.scope] The - * scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * scope for the auto user The default value is task. Possible values include: + * 'task', 'pool' * * @param {string} * [poolUpdatePropertiesParameter.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} [poolUpdatePropertiesParameter.startTask.maxTaskRetryCount] * The maximum number of times the task may be retried. The Batch service @@ -8589,19 +8532,13 @@ class Pool { * * @param {string} * [poolUpdatePropertiesParameter.startTask.userIdentity.autoUser.scope] The - * scope for the auto user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * scope for the auto user The default value is task. Possible values include: + * 'task', 'pool' * * @param {string} * [poolUpdatePropertiesParameter.startTask.userIdentity.autoUser.elevationLevel] - * The elevation level of the auto user. nonAdmin - The auto user is a standard - * user without elevated access. admin - The auto user is a user with elevated - * access and operates with full Administrator permissions. The default value - * is nonAdmin. Possible values include: 'nonAdmin', 'admin' + * The elevation level of the auto user. The default value is nonAdmin. + * Possible values include: 'nonAdmin', 'admin' * * @param {number} [poolUpdatePropertiesParameter.startTask.maxTaskRetryCount] * The maximum number of times the task may be retried. The Batch service diff --git a/lib/services/batch/lib/operations/task.js b/lib/services/batch/lib/operations/task.js index 57e6f53545..611c691db4 100644 --- a/lib/services/batch/lib/operations/task.js +++ b/lib/services/batch/lib/operations/task.js @@ -107,31 +107,18 @@ const moment = require('moment'); * @param {string} [task.exitConditions.default.jobAction] An action to take on * the job containing the task, if the task completes with the given exit * condition and the job's onTaskFailed property is - * 'performExitOptionsJobAction'. Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' + * 'performExitOptionsJobAction'. The default is none for exit code 0 and + * terminate for all other exit conditions. If the job's onTaskFailed property + * is noaction, then specifying this property returns an error and the add task + * request fails with an invalid property value error; if you are calling the + * REST API directly, the HTTP status code is 400 (Bad Request). Possible + * values include: 'none', 'disable', 'terminate' * * @param {string} [task.exitConditions.default.dependencyAction] An action - * that the Batch service performs on tasks that depend on this task. Values - * are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit + * that the Batch service performs on tasks that depend on this task. The + * default is 'satisfy' for exit code 0, and 'block' for all other exit * conditions. If the job's usesTaskDependencies property is set to false, then - * specifying the dependencyAction property returns an erro and the add task + * specifying the dependencyAction property returns an error and the add task * request fails with an invalid property value error; if you are calling the * REST API directly, the HTTP status code is 400 (Bad Request). Possible * values include: 'satisfy', 'block' @@ -198,18 +185,11 @@ const moment = require('moment'); * you must specify one but not both. * * @param {string} [task.userIdentity.autoUser.scope] The scope for the auto - * user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * user The default value is task. Possible values include: 'task', 'pool' * * @param {string} [task.userIdentity.autoUser.elevationLevel] The elevation - * level of the auto user. nonAdmin - The auto user is a standard user without - * elevated access. admin - The auto user is a user with elevated access and - * operates with full Administrator permissions. The default value is nonAdmin. - * Possible values include: 'nonAdmin', 'admin' + * level of the auto user. The default value is nonAdmin. Possible values + * include: 'nonAdmin', 'admin' * * @param {object} [task.multiInstanceSettings] An object that indicates that * the task is a multi-instance task, and contains information about how to run @@ -657,7 +637,7 @@ function _list(jobId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -1180,7 +1160,7 @@ function _deleteMethod(jobId, taskId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -1469,7 +1449,7 @@ function _get(jobId, taskId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -2015,7 +1995,7 @@ function _listSubtasks(jobId, taskId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -2283,7 +2263,7 @@ function _terminate(jobId, taskId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -2551,7 +2531,7 @@ function _reactivate(jobId, taskId, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -2731,7 +2711,7 @@ function _listNext(nextPageLink, options, callback) { httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8'; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['client-request-id'] = msRestAzure.generateUuid(); } @@ -2924,31 +2904,18 @@ class Task { * @param {string} [task.exitConditions.default.jobAction] An action to take on * the job containing the task, if the task completes with the given exit * condition and the job's onTaskFailed property is - * 'performExitOptionsJobAction'. Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' + * 'performExitOptionsJobAction'. The default is none for exit code 0 and + * terminate for all other exit conditions. If the job's onTaskFailed property + * is noaction, then specifying this property returns an error and the add task + * request fails with an invalid property value error; if you are calling the + * REST API directly, the HTTP status code is 400 (Bad Request). Possible + * values include: 'none', 'disable', 'terminate' * * @param {string} [task.exitConditions.default.dependencyAction] An action - * that the Batch service performs on tasks that depend on this task. Values - * are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit + * that the Batch service performs on tasks that depend on this task. The + * default is 'satisfy' for exit code 0, and 'block' for all other exit * conditions. If the job's usesTaskDependencies property is set to false, then - * specifying the dependencyAction property returns an erro and the add task + * specifying the dependencyAction property returns an error and the add task * request fails with an invalid property value error; if you are calling the * REST API directly, the HTTP status code is 400 (Bad Request). Possible * values include: 'satisfy', 'block' @@ -3015,18 +2982,11 @@ class Task { * you must specify one but not both. * * @param {string} [task.userIdentity.autoUser.scope] The scope for the auto - * user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * user The default value is task. Possible values include: 'task', 'pool' * * @param {string} [task.userIdentity.autoUser.elevationLevel] The elevation - * level of the auto user. nonAdmin - The auto user is a standard user without - * elevated access. admin - The auto user is a user with elevated access and - * operates with full Administrator permissions. The default value is nonAdmin. - * Possible values include: 'nonAdmin', 'admin' + * level of the auto user. The default value is nonAdmin. Possible values + * include: 'nonAdmin', 'admin' * * @param {object} [task.multiInstanceSettings] An object that indicates that * the task is a multi-instance task, and contains information about how to run @@ -3229,31 +3189,18 @@ class Task { * @param {string} [task.exitConditions.default.jobAction] An action to take on * the job containing the task, if the task completes with the given exit * condition and the job's onTaskFailed property is - * 'performExitOptionsJobAction'. Values are: - * - * none - Take no action. - * disable - Disable the job. This is equivalent to calling the disable job - * API, with a disableTasks value of requeue. - * terminate - Terminate the job. The terminateReason in the job's - * executionInfo is set to "TaskFailed". The default is none for exit code 0 - * and terminate for all other exit conditions. - * - * If the job's onTaskFailed property is noAction, then specifying this - * property returns an error and the add task request fails with an invalid - * property value error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). Possible values include: 'none', - * 'disable', 'terminate' + * 'performExitOptionsJobAction'. The default is none for exit code 0 and + * terminate for all other exit conditions. If the job's onTaskFailed property + * is noaction, then specifying this property returns an error and the add task + * request fails with an invalid property value error; if you are calling the + * REST API directly, the HTTP status code is 400 (Bad Request). Possible + * values include: 'none', 'disable', 'terminate' * * @param {string} [task.exitConditions.default.dependencyAction] An action - * that the Batch service performs on tasks that depend on this task. Values - * are: - * - * satisfy - Satisfy the task's dependencies. - * block - Block the task's dependencies. - * - * The default is 'satisfy' for exit code 0, and 'block' for all other exit + * that the Batch service performs on tasks that depend on this task. The + * default is 'satisfy' for exit code 0, and 'block' for all other exit * conditions. If the job's usesTaskDependencies property is set to false, then - * specifying the dependencyAction property returns an erro and the add task + * specifying the dependencyAction property returns an error and the add task * request fails with an invalid property value error; if you are calling the * REST API directly, the HTTP status code is 400 (Bad Request). Possible * values include: 'satisfy', 'block' @@ -3320,18 +3267,11 @@ class Task { * you must specify one but not both. * * @param {string} [task.userIdentity.autoUser.scope] The scope for the auto - * user Values are: - * - * pool - specifies that the task runs as the common auto user account which is - * created on every node in a pool. - * task - specifies that the service should create a new user for the task. - * The default value is task. Possible values include: 'task', 'pool' + * user The default value is task. Possible values include: 'task', 'pool' * * @param {string} [task.userIdentity.autoUser.elevationLevel] The elevation - * level of the auto user. nonAdmin - The auto user is a standard user without - * elevated access. admin - The auto user is a user with elevated access and - * operates with full Administrator permissions. The default value is nonAdmin. - * Possible values include: 'nonAdmin', 'admin' + * level of the auto user. The default value is nonAdmin. Possible values + * include: 'nonAdmin', 'admin' * * @param {object} [task.multiInstanceSettings] An object that indicates that * the task is a multi-instance task, and contains information about how to run diff --git a/lib/services/batch/package.json b/lib/services/batch/package.json index 2c62044f0b..2acbdb65ee 100644 --- a/lib/services/batch/package.json +++ b/lib/services/batch/package.json @@ -4,7 +4,7 @@ "contributors": [ "Wu, Xing " ], - "version": "3.0.0", + "version": "3.1.0", "description": "Microsoft Azure Batch Service Client Library for node", "tags": [ "azure", @@ -18,10 +18,10 @@ "types": "./lib/batch.d.ts", "license": "MIT", "dependencies": { - "ms-rest": "^2.2.2", - "ms-rest-azure": "^2.3.3", + "ms-rest": "^2.3.2", + "ms-rest-azure": "^2.5.4", "underscore": "^1.8.3", - "moment": "~2.18.1", + "moment": "^2.21.1", "@types/underscore": "^1.8.0" }, "homepage": "http://github.com/Azure/azure-sdk-for-node", diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_add_a_pool_with_a_Data_Disk.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_add_a_pool_with_a_Data_Disk.nock.js index d8060770bc..ecc2856966 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_add_a_pool_with_a_Data_Disk.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_add_a_pool_with_a_Data_Disk.nock.js @@ -1,102 +1,102 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools?api-version=2017-09-01.6.0', '*') +.post('/pools?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 22:00:54 GMT', - etag: '0x8D509E10D699D58', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdkdatadiskpool', + 'last-modified': 'Fri, 09 Mar 2018 22:52:29 GMT', + etag: '0x8D586106FE732BB', + location: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdkdatadiskpool', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'e790c98b-186c-493c-93ec-699c0409d9ba', + 'request-id': '9b263b79-fe29-4e3e-9c42-23bb225110df', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdkdatadiskpool', - date: 'Mon, 02 Oct 2017 22:00:53 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdkdatadiskpool', + date: 'Fri, 09 Mar 2018 22:52:29 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools?api-version=2017-09-01.6.0', '*') +.post('/pools?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 22:00:54 GMT', - etag: '0x8D509E10D699D58', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdkdatadiskpool', + 'last-modified': 'Fri, 09 Mar 2018 22:52:29 GMT', + etag: '0x8D586106FE732BB', + location: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdkdatadiskpool', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'e790c98b-186c-493c-93ec-699c0409d9ba', + 'request-id': '9b263b79-fe29-4e3e-9c42-23bb225110df', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdkdatadiskpool', - date: 'Mon, 02 Oct 2017 22:00:53 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdkdatadiskpool', + date: 'Fri, 09 Mar 2018 22:52:29 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools/nodesdkdatadiskpool?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#pools/@Element\",\"id\":\"nodesdkdatadiskpool\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdkdatadiskpool\",\"eTag\":\"0x8D509E10D699D58\",\"lastModified\":\"2017-10-02T22:00:54.0110168Z\",\"creationTime\":\"2017-10-02T22:00:54.0110168Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T22:00:54.0110168Z\",\"allocationState\":\"resizing\",\"allocationStateTransitionTime\":\"2017-10-02T22:00:54.0110168Z\",\"vmSize\":\"standard_a1\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":0,\"targetDedicatedNodes\":0,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"virtualMachineConfiguration\":{\r\n \"imageReference\":{\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n },\"nodeAgentSKUId\":\"batch.node.ubuntu 16.04\",\"dataDisks\":[\r\n {\r\n \"lun\":1,\"caching\":\"none\",\"diskSizeGB\":50,\"storageAccountType\":\"standard_lrs\"\r\n }\r\n ]\r\n }\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/pools/nodesdkdatadiskpool?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#pools/@Element\",\"id\":\"nodesdkdatadiskpool\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdkdatadiskpool\",\"eTag\":\"0x8D586106FE732BB\",\"lastModified\":\"2018-03-09T22:52:29.7814715Z\",\"creationTime\":\"2018-03-09T22:52:29.7814715Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:52:29.7814715Z\",\"allocationState\":\"resizing\",\"allocationStateTransitionTime\":\"2018-03-09T22:52:29.7814715Z\",\"vmSize\":\"standard_a1\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":0,\"targetDedicatedNodes\":0,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"virtualMachineConfiguration\":{\r\n \"imageReference\":{\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n },\"nodeAgentSKUId\":\"batch.node.ubuntu 16.04\",\"dataDisks\":[\r\n {\r\n \"lun\":1,\"caching\":\"none\",\"diskSizeGB\":50,\"storageAccountType\":\"standard_lrs\"\r\n }\r\n ]\r\n }\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', - 'last-modified': 'Mon, 02 Oct 2017 22:00:54 GMT', - etag: '0x8D509E10D699D58', + 'last-modified': 'Fri, 09 Mar 2018 22:52:29 GMT', + etag: '0x8D586106FE732BB', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '92e20046-f0ee-4e7f-b441-e85e90d2f4bf', + 'request-id': '399883c2-e403-4e93-bfd2-a660d014f036', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 22:00:54 GMT', + date: 'Fri, 09 Mar 2018 22:52:29 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools/nodesdkdatadiskpool?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#pools/@Element\",\"id\":\"nodesdkdatadiskpool\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdkdatadiskpool\",\"eTag\":\"0x8D509E10D699D58\",\"lastModified\":\"2017-10-02T22:00:54.0110168Z\",\"creationTime\":\"2017-10-02T22:00:54.0110168Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T22:00:54.0110168Z\",\"allocationState\":\"resizing\",\"allocationStateTransitionTime\":\"2017-10-02T22:00:54.0110168Z\",\"vmSize\":\"standard_a1\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":0,\"targetDedicatedNodes\":0,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"virtualMachineConfiguration\":{\r\n \"imageReference\":{\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n },\"nodeAgentSKUId\":\"batch.node.ubuntu 16.04\",\"dataDisks\":[\r\n {\r\n \"lun\":1,\"caching\":\"none\",\"diskSizeGB\":50,\"storageAccountType\":\"standard_lrs\"\r\n }\r\n ]\r\n }\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/pools/nodesdkdatadiskpool?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#pools/@Element\",\"id\":\"nodesdkdatadiskpool\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdkdatadiskpool\",\"eTag\":\"0x8D586106FE732BB\",\"lastModified\":\"2018-03-09T22:52:29.7814715Z\",\"creationTime\":\"2018-03-09T22:52:29.7814715Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:52:29.7814715Z\",\"allocationState\":\"resizing\",\"allocationStateTransitionTime\":\"2018-03-09T22:52:29.7814715Z\",\"vmSize\":\"standard_a1\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":0,\"targetDedicatedNodes\":0,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"virtualMachineConfiguration\":{\r\n \"imageReference\":{\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n },\"nodeAgentSKUId\":\"batch.node.ubuntu 16.04\",\"dataDisks\":[\r\n {\r\n \"lun\":1,\"caching\":\"none\",\"diskSizeGB\":50,\"storageAccountType\":\"standard_lrs\"\r\n }\r\n ]\r\n }\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', - 'last-modified': 'Mon, 02 Oct 2017 22:00:54 GMT', - etag: '0x8D509E10D699D58', + 'last-modified': 'Fri, 09 Mar 2018 22:52:29 GMT', + etag: '0x8D586106FE732BB', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '92e20046-f0ee-4e7f-b441-e85e90d2f4bf', + 'request-id': '399883c2-e403-4e93-bfd2-a660d014f036', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 22:00:54 GMT', + date: 'Fri, 09 Mar 2018 22:52:29 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/pools/nodesdkdatadiskpool?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .delete('/pools/nodesdkdatadiskpool?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '16d655e7-014f-4f8e-b564-76c40676b22a', + 'request-id': 'd4362e1f-67cb-4698-9dab-9291fa848a78', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 22:00:55 GMT', + date: 'Fri, 09 Mar 2018 22:52:32 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/pools/nodesdkdatadiskpool?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .delete('/pools/nodesdkdatadiskpool?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '16d655e7-014f-4f8e-b564-76c40676b22a', + 'request-id': 'd4362e1f-67cb-4698-9dab-9291fa848a78', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 22:00:55 GMT', + date: 'Fri, 09 Mar 2018 22:52:32 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_add_a_pool_with_a_custom_image_and_get_expected_error.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_add_a_pool_with_a_custom_image_and_get_expected_error.nock.js index c160e523b6..cdd4730fd9 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_add_a_pool_with_a_custom_image_and_get_expected_error.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_add_a_pool_with_a_custom_image_and_get_expected_error.nock.js @@ -1,38 +1,38 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools?api-version=2017-09-01.6.0', '*') - .reply(400, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\"code\":\"InvalidPropertyValue\",\"message\":{\r\n \"lang\":\"en-US\",\"value\":\"The value provided for one of the properties in the request body is invalid.\\nRequestId:b5594675-40dd-4727-a09c-f122a681f358\\nTime:2017-10-02T21:39:01.5200526Z\"\r\n },\"values\":[\r\n {\r\n \"key\":\"PropertyName\",\"value\":\"virtualMachineImageId\"\r\n },{\r\n \"key\":\"PropertyValue\",\"value\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test/providers/Microsoft.Compute/images/FakeImage\"\r\n },{\r\n \"key\":\"Reason\",\"value\":\"The specified virtualMachineImageId is in a different subscription and cannot be used with the current Batch account in subscription 603663e9-700c-46de-9d41-e080ff1d461e\"\r\n }\r\n ]\r\n}", { 'content-length': '856', +.post('/pools?api-version=2018-03-01.6.1', '*') + .reply(400, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\"code\":\"InvalidPropertyValue\",\"message\":{\r\n \"lang\":\"en-US\",\"value\":\"The value provided for one of the properties in the request body is invalid.\\nRequestId:ccac7f53-67de-4753-845b-6b77e6397176\\nTime:2018-03-09T22:52:26.9673819Z\"\r\n },\"values\":[\r\n {\r\n \"key\":\"PropertyName\",\"value\":\"virtualMachineImageId\"\r\n },{\r\n \"key\":\"PropertyValue\",\"value\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test/providers/Microsoft.Compute/images/FakeImage\"\r\n },{\r\n \"key\":\"Reason\",\"value\":\"The specified virtualMachineImageId is in a different subscription and cannot be used with the current Batch account in subscription 3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05\"\r\n }\r\n ]\r\n}", { 'content-length': '852', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'b5594675-40dd-4727-a09c-f122a681f358', + 'request-id': 'ccac7f53-67de-4753-845b-6b77e6397176', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:39:01 GMT', + date: 'Fri, 09 Mar 2018 22:52:26 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools?api-version=2017-09-01.6.0', '*') - .reply(400, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\"code\":\"InvalidPropertyValue\",\"message\":{\r\n \"lang\":\"en-US\",\"value\":\"The value provided for one of the properties in the request body is invalid.\\nRequestId:b5594675-40dd-4727-a09c-f122a681f358\\nTime:2017-10-02T21:39:01.5200526Z\"\r\n },\"values\":[\r\n {\r\n \"key\":\"PropertyName\",\"value\":\"virtualMachineImageId\"\r\n },{\r\n \"key\":\"PropertyValue\",\"value\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test/providers/Microsoft.Compute/images/FakeImage\"\r\n },{\r\n \"key\":\"Reason\",\"value\":\"The specified virtualMachineImageId is in a different subscription and cannot be used with the current Batch account in subscription 603663e9-700c-46de-9d41-e080ff1d461e\"\r\n }\r\n ]\r\n}", { 'content-length': '856', +.post('/pools?api-version=2018-03-01.6.1', '*') + .reply(400, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\"code\":\"InvalidPropertyValue\",\"message\":{\r\n \"lang\":\"en-US\",\"value\":\"The value provided for one of the properties in the request body is invalid.\\nRequestId:ccac7f53-67de-4753-845b-6b77e6397176\\nTime:2018-03-09T22:52:26.9673819Z\"\r\n },\"values\":[\r\n {\r\n \"key\":\"PropertyName\",\"value\":\"virtualMachineImageId\"\r\n },{\r\n \"key\":\"PropertyValue\",\"value\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test/providers/Microsoft.Compute/images/FakeImage\"\r\n },{\r\n \"key\":\"Reason\",\"value\":\"The specified virtualMachineImageId is in a different subscription and cannot be used with the current Batch account in subscription 3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05\"\r\n }\r\n ]\r\n}", { 'content-length': '852', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'b5594675-40dd-4727-a09c-f122a681f358', + 'request-id': 'ccac7f53-67de-4753-845b-6b77e6397176', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:39:01 GMT', + date: 'Fri, 09 Mar 2018 22:52:26 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_add_a_pool_with_an_osDisk.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_add_a_pool_with_an_osDisk.nock.js index 023188527a..a3aac79956 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_add_a_pool_with_an_osDisk.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_add_a_pool_with_an_osDisk.nock.js @@ -1,102 +1,102 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools?api-version=2017-09-01.6.0', '*') +.post('/pools?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 22:01:53 GMT', - etag: '0x8D509E130DD4964', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdkosdiskpool', + 'last-modified': 'Fri, 09 Mar 2018 22:52:27 GMT', + etag: '0x8D586106E572144', + location: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdkosdiskpool', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '86c4d45d-e441-4826-a09b-d070873ea3e5', + 'request-id': 'c8a0dc56-e957-433e-8ad7-c7038bd3d676', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdkosdiskpool', - date: 'Mon, 02 Oct 2017 22:01:53 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdkosdiskpool', + date: 'Fri, 09 Mar 2018 22:52:27 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools?api-version=2017-09-01.6.0', '*') +.post('/pools?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 22:01:53 GMT', - etag: '0x8D509E130DD4964', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdkosdiskpool', + 'last-modified': 'Fri, 09 Mar 2018 22:52:27 GMT', + etag: '0x8D586106E572144', + location: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdkosdiskpool', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '86c4d45d-e441-4826-a09b-d070873ea3e5', + 'request-id': 'c8a0dc56-e957-433e-8ad7-c7038bd3d676', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdkosdiskpool', - date: 'Mon, 02 Oct 2017 22:01:53 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdkosdiskpool', + date: 'Fri, 09 Mar 2018 22:52:27 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools/nodesdkosdiskpool?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#pools/@Element\",\"id\":\"nodesdkosdiskpool\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdkosdiskpool\",\"eTag\":\"0x8D509E130DD4964\",\"lastModified\":\"2017-10-02T22:01:53.4893412Z\",\"creationTime\":\"2017-10-02T22:01:53.4893412Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T22:01:53.4893412Z\",\"allocationState\":\"resizing\",\"allocationStateTransitionTime\":\"2017-10-02T22:01:53.4893412Z\",\"vmSize\":\"standard_a1\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":0,\"targetDedicatedNodes\":0,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"virtualMachineConfiguration\":{\r\n \"imageReference\":{\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n },\"osDisk\":{\r\n \"caching\":\"ReadWrite\"\r\n },\"nodeAgentSKUId\":\"batch.node.ubuntu 16.04\"\r\n }\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/pools/nodesdkosdiskpool?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#pools/@Element\",\"id\":\"nodesdkosdiskpool\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdkosdiskpool\",\"eTag\":\"0x8D586106E572144\",\"lastModified\":\"2018-03-09T22:52:27.1595844Z\",\"creationTime\":\"2018-03-09T22:52:27.1595844Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:52:27.1595844Z\",\"allocationState\":\"resizing\",\"allocationStateTransitionTime\":\"2018-03-09T22:52:27.1595844Z\",\"vmSize\":\"standard_a1\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":0,\"targetDedicatedNodes\":0,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"virtualMachineConfiguration\":{\r\n \"imageReference\":{\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n },\"osDisk\":{\r\n \"caching\":\"ReadWrite\"\r\n },\"nodeAgentSKUId\":\"batch.node.ubuntu 16.04\"\r\n }\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', - 'last-modified': 'Mon, 02 Oct 2017 22:01:53 GMT', - etag: '0x8D509E130DD4964', + 'last-modified': 'Fri, 09 Mar 2018 22:52:27 GMT', + etag: '0x8D586106E572144', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'f77f7ab0-985b-4be6-a7b8-19890ebb8ed0', + 'request-id': 'b50aaa42-b6ec-4c03-b106-c717ca8acff0', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 22:01:53 GMT', + date: 'Fri, 09 Mar 2018 22:52:27 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools/nodesdkosdiskpool?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#pools/@Element\",\"id\":\"nodesdkosdiskpool\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdkosdiskpool\",\"eTag\":\"0x8D509E130DD4964\",\"lastModified\":\"2017-10-02T22:01:53.4893412Z\",\"creationTime\":\"2017-10-02T22:01:53.4893412Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T22:01:53.4893412Z\",\"allocationState\":\"resizing\",\"allocationStateTransitionTime\":\"2017-10-02T22:01:53.4893412Z\",\"vmSize\":\"standard_a1\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":0,\"targetDedicatedNodes\":0,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"virtualMachineConfiguration\":{\r\n \"imageReference\":{\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n },\"osDisk\":{\r\n \"caching\":\"ReadWrite\"\r\n },\"nodeAgentSKUId\":\"batch.node.ubuntu 16.04\"\r\n }\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/pools/nodesdkosdiskpool?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#pools/@Element\",\"id\":\"nodesdkosdiskpool\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdkosdiskpool\",\"eTag\":\"0x8D586106E572144\",\"lastModified\":\"2018-03-09T22:52:27.1595844Z\",\"creationTime\":\"2018-03-09T22:52:27.1595844Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:52:27.1595844Z\",\"allocationState\":\"resizing\",\"allocationStateTransitionTime\":\"2018-03-09T22:52:27.1595844Z\",\"vmSize\":\"standard_a1\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":0,\"targetDedicatedNodes\":0,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"virtualMachineConfiguration\":{\r\n \"imageReference\":{\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n },\"osDisk\":{\r\n \"caching\":\"ReadWrite\"\r\n },\"nodeAgentSKUId\":\"batch.node.ubuntu 16.04\"\r\n }\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', - 'last-modified': 'Mon, 02 Oct 2017 22:01:53 GMT', - etag: '0x8D509E130DD4964', + 'last-modified': 'Fri, 09 Mar 2018 22:52:27 GMT', + etag: '0x8D586106E572144', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'f77f7ab0-985b-4be6-a7b8-19890ebb8ed0', + 'request-id': 'b50aaa42-b6ec-4c03-b106-c717ca8acff0', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 22:01:53 GMT', + date: 'Fri, 09 Mar 2018 22:52:27 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/pools/nodesdkosdiskpool?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .delete('/pools/nodesdkosdiskpool?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'a2737b38-9082-4440-a710-3da026facdc3', + 'request-id': '9d918355-1405-44e0-b60e-243e966f2ed3', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 22:01:54 GMT', + date: 'Fri, 09 Mar 2018 22:52:29 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/pools/nodesdkosdiskpool?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .delete('/pools/nodesdkosdiskpool?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'a2737b38-9082-4440-a710-3da026facdc3', + 'request-id': '9d918355-1405-44e0-b60e-243e966f2ed3', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 22:01:54 GMT', + date: 'Fri, 09 Mar 2018 22:52:29 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_add_a_pool_with_inbound_endpoint_configuration_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_add_a_pool_with_inbound_endpoint_configuration_successfully.nock.js index a20a628e96..d4d9983de8 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_add_a_pool_with_inbound_endpoint_configuration_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_add_a_pool_with_inbound_endpoint_configuration_successfully.nock.js @@ -1,44 +1,44 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools?api-version=2017-09-01.6.0', '*') +.post('/pools?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:39:03 GMT', - etag: '0x8D509DE003E2E52', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdkinboundendpointpool', + 'last-modified': 'Fri, 09 Mar 2018 22:52:32 GMT', + etag: '0x8D58610717C3E16', + location: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdkinboundendpointpool', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'd6db2264-653e-42b5-82c5-d31edfe3d0ac', + 'request-id': '60386202-9c7a-42c6-91df-5556027e52ec', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdkinboundendpointpool', - date: 'Mon, 02 Oct 2017 21:39:03 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdkinboundendpointpool', + date: 'Fri, 09 Mar 2018 22:52:32 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools?api-version=2017-09-01.6.0', '*') +.post('/pools?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:39:03 GMT', - etag: '0x8D509DE003E2E52', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdkinboundendpointpool', + 'last-modified': 'Fri, 09 Mar 2018 22:52:32 GMT', + etag: '0x8D58610717C3E16', + location: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdkinboundendpointpool', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'd6db2264-653e-42b5-82c5-d31edfe3d0ac', + 'request-id': '60386202-9c7a-42c6-91df-5556027e52ec', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdkinboundendpointpool', - date: 'Mon, 02 Oct 2017 21:39:03 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdkinboundendpointpool', + date: 'Fri, 09 Mar 2018 22:52:32 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_add_a_pool_with_vnet_and_get_expected_error.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_add_a_pool_with_vnet_and_get_expected_error.nock.js index 6e5d29d77f..0bf8699f38 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_add_a_pool_with_vnet_and_get_expected_error.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_add_a_pool_with_vnet_and_get_expected_error.nock.js @@ -1,38 +1,38 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools?api-version=2017-09-01.6.0', '*') - .reply(403, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\"code\":\"Forbidden\",\"message\":{\r\n \"lang\":\"en-US\",\"value\":\"Access is Forbidden\\nRequestId:76647d27-b1bc-400d-9a55-44c028107b95\\nTime:2017-10-02T21:39:00.8583673Z\"\r\n },\"values\":[\r\n {\r\n \"key\":\"Reason\",\"value\":\"Property subnetId with value /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1 is not enabled for current account\"\r\n }\r\n ]\r\n}", { 'content-length': '586', +.post('/pools?api-version=2018-03-01.6.1', '*') + .reply(403, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\"code\":\"Forbidden\",\"message\":{\r\n \"lang\":\"en-US\",\"value\":\"Access is Forbidden\\nRequestId:8ca4d2df-fbdc-4618-8481-9d416b104ef4\\nTime:2018-03-09T22:52:26.4812731Z\"\r\n },\"values\":[\r\n {\r\n \"key\":\"Reason\",\"value\":\"Property subnetId with value /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1 is not enabled for current account\"\r\n }\r\n ]\r\n}", { 'content-length': '582', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '76647d27-b1bc-400d-9a55-44c028107b95', + 'request-id': '8ca4d2df-fbdc-4618-8481-9d416b104ef4', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:39:00 GMT', + date: 'Fri, 09 Mar 2018 22:52:26 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools?api-version=2017-09-01.6.0', '*') - .reply(403, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\"code\":\"Forbidden\",\"message\":{\r\n \"lang\":\"en-US\",\"value\":\"Access is Forbidden\\nRequestId:76647d27-b1bc-400d-9a55-44c028107b95\\nTime:2017-10-02T21:39:00.8583673Z\"\r\n },\"values\":[\r\n {\r\n \"key\":\"Reason\",\"value\":\"Property subnetId with value /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1 is not enabled for current account\"\r\n }\r\n ]\r\n}", { 'content-length': '586', +.post('/pools?api-version=2018-03-01.6.1', '*') + .reply(403, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\"code\":\"Forbidden\",\"message\":{\r\n \"lang\":\"en-US\",\"value\":\"Access is Forbidden\\nRequestId:8ca4d2df-fbdc-4618-8481-9d416b104ef4\\nTime:2018-03-09T22:52:26.4812731Z\"\r\n },\"values\":[\r\n {\r\n \"key\":\"Reason\",\"value\":\"Property subnetId with value /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1 is not enabled for current account\"\r\n }\r\n ]\r\n}", { 'content-length': '582', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '76647d27-b1bc-400d-9a55-44c028107b95', + 'request-id': '8ca4d2df-fbdc-4618-8481-9d416b104ef4', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:39:00 GMT', + date: 'Fri, 09 Mar 2018 22:52:26 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_add_a_task_with_an_application_package_reference_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_add_a_task_with_an_application_package_reference_successfully.nock.js index 46e11b1171..6322d61627 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_add_a_task_with_an_application_package_reference_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_add_a_task_with_an_application_package_reference_successfully.nock.js @@ -1,76 +1,76 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/jobs/HelloWorldJobNodeSDKTest/tasks?api-version=2017-09-01.6.0', '*') +.post('/jobs/HelloWorldJobNodeSDKTest/tasks?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:51:54 GMT', - etag: '0x8D509DFCBDC3490', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/ApplicationPacakgeReferenceTask', + 'last-modified': 'Fri, 09 Mar 2018 23:05:09 GMT', + etag: '0x8D58612347B608D', + location: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/ApplicationPacakgeReferenceTask', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'e88f0a3b-fa64-461d-914b-f6668ffcc8bb', + 'request-id': '30308657-ef81-48eb-bdc9-f172ba9114a1', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/ApplicationPacakgeReferenceTask', - date: 'Mon, 02 Oct 2017 21:51:53 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/ApplicationPacakgeReferenceTask', + date: 'Fri, 09 Mar 2018 23:05:09 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/jobs/HelloWorldJobNodeSDKTest/tasks?api-version=2017-09-01.6.0', '*') +.post('/jobs/HelloWorldJobNodeSDKTest/tasks?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:51:54 GMT', - etag: '0x8D509DFCBDC3490', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/ApplicationPacakgeReferenceTask', + 'last-modified': 'Fri, 09 Mar 2018 23:05:09 GMT', + etag: '0x8D58612347B608D', + location: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/ApplicationPacakgeReferenceTask', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'e88f0a3b-fa64-461d-914b-f6668ffcc8bb', + 'request-id': '30308657-ef81-48eb-bdc9-f172ba9114a1', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/ApplicationPacakgeReferenceTask', - date: 'Mon, 02 Oct 2017 21:51:53 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/ApplicationPacakgeReferenceTask', + date: 'Fri, 09 Mar 2018 23:05:09 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobs/HelloWorldJobNodeSDKTest/tasks/ApplicationPacakgeReferenceTask?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#tasks/@Element\",\"id\":\"ApplicationPacakgeReferenceTask\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/ApplicationPacakgeReferenceTask\",\"eTag\":\"0x8D509DFCBDC3490\",\"creationTime\":\"2017-10-02T21:51:54.5356432Z\",\"lastModified\":\"2017-10-02T21:51:54.5356432Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:51:54.5356432Z\",\"commandLine\":\"cmd /c echo hello world\",\"applicationPackageReferences\":[\r\n {\r\n \"applicationId\":\"my_application_id\"\r\n }\r\n ],\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"executionInfo\":{\r\n \"retryCount\":0,\"requeueCount\":0\r\n }\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/jobs/HelloWorldJobNodeSDKTest/tasks/ApplicationPacakgeReferenceTask?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#tasks/@Element\",\"id\":\"ApplicationPacakgeReferenceTask\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/ApplicationPacakgeReferenceTask\",\"eTag\":\"0x8D58612347B608D\",\"creationTime\":\"2018-03-09T23:05:09.0827405Z\",\"lastModified\":\"2018-03-09T23:05:09.0827405Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T23:05:09.0827405Z\",\"commandLine\":\"cmd /c echo hello world\",\"applicationPackageReferences\":[\r\n {\r\n \"applicationId\":\"my_application_id\"\r\n }\r\n ],\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"executionInfo\":{\r\n \"retryCount\":0,\"requeueCount\":0\r\n }\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', - 'last-modified': 'Mon, 02 Oct 2017 21:51:54 GMT', - etag: '0x8D509DFCBDC3490', + 'last-modified': 'Fri, 09 Mar 2018 23:05:09 GMT', + etag: '0x8D58612347B608D', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'eec466cd-5dec-4d5e-b8a0-0d150a7a5049', + 'request-id': 'e9594e93-af51-4b89-a16e-206c4774e4c4', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:51:54 GMT', + date: 'Fri, 09 Mar 2018 23:05:08 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobs/HelloWorldJobNodeSDKTest/tasks/ApplicationPacakgeReferenceTask?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#tasks/@Element\",\"id\":\"ApplicationPacakgeReferenceTask\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/ApplicationPacakgeReferenceTask\",\"eTag\":\"0x8D509DFCBDC3490\",\"creationTime\":\"2017-10-02T21:51:54.5356432Z\",\"lastModified\":\"2017-10-02T21:51:54.5356432Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:51:54.5356432Z\",\"commandLine\":\"cmd /c echo hello world\",\"applicationPackageReferences\":[\r\n {\r\n \"applicationId\":\"my_application_id\"\r\n }\r\n ],\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"executionInfo\":{\r\n \"retryCount\":0,\"requeueCount\":0\r\n }\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/jobs/HelloWorldJobNodeSDKTest/tasks/ApplicationPacakgeReferenceTask?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#tasks/@Element\",\"id\":\"ApplicationPacakgeReferenceTask\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/ApplicationPacakgeReferenceTask\",\"eTag\":\"0x8D58612347B608D\",\"creationTime\":\"2018-03-09T23:05:09.0827405Z\",\"lastModified\":\"2018-03-09T23:05:09.0827405Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T23:05:09.0827405Z\",\"commandLine\":\"cmd /c echo hello world\",\"applicationPackageReferences\":[\r\n {\r\n \"applicationId\":\"my_application_id\"\r\n }\r\n ],\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"executionInfo\":{\r\n \"retryCount\":0,\"requeueCount\":0\r\n }\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', - 'last-modified': 'Mon, 02 Oct 2017 21:51:54 GMT', - etag: '0x8D509DFCBDC3490', + 'last-modified': 'Fri, 09 Mar 2018 23:05:09 GMT', + etag: '0x8D58612347B608D', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'eec466cd-5dec-4d5e-b8a0-0d150a7a5049', + 'request-id': 'e9594e93-af51-4b89-a16e-206c4774e4c4', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:51:54 GMT', + date: 'Fri, 09 Mar 2018 23:05:08 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_add_a_user_to_a_compute_node_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_add_a_user_to_a_compute_node_successfully.nock.js index 45ac6d7e21..dadd159b48 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_add_a_user_to_a_compute_node_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_add_a_user_to_a_compute_node_successfully.nock.js @@ -1,40 +1,40 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools/nodesdktestpool1/nodes/tvm-115883067_1-20171002t213150z/users?api-version=2017-09-01.6.0', '*') +.post('/pools/nodesdktestpool1/nodes/tvm-3840119875_1-20180309t224543z/users?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_1-20171002t213150z/users/NodeSDKTestUser', + location: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_1-20180309t224543z/users/NodeSDKTestUser', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '28b5f58b-222c-4319-bf08-3dab11d7074a', + 'request-id': 'f54be1f4-2f27-4ebc-9a0b-f452fc662e61', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_1-20171002t213150z/users/NodeSDKTestUser', - date: 'Mon, 02 Oct 2017 21:45:45 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_1-20180309t224543z/users/NodeSDKTestUser', + date: 'Fri, 09 Mar 2018 22:59:13 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools/nodesdktestpool1/nodes/tvm-115883067_1-20171002t213150z/users?api-version=2017-09-01.6.0', '*') +.post('/pools/nodesdktestpool1/nodes/tvm-3840119875_1-20180309t224543z/users?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_1-20171002t213150z/users/NodeSDKTestUser', + location: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_1-20180309t224543z/users/NodeSDKTestUser', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '28b5f58b-222c-4319-bf08-3dab11d7074a', + 'request-id': 'f54be1f4-2f27-4ebc-9a0b-f452fc662e61', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_1-20171002t213150z/users/NodeSDKTestUser', - date: 'Mon, 02 Oct 2017 21:45:45 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_1-20180309t224543z/users/NodeSDKTestUser', + date: 'Fri, 09 Mar 2018 22:59:13 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_add_new_certificate_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_add_new_certificate_successfully.nock.js index f723c8a57f..2b44770758 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_add_new_certificate_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_add_new_certificate_successfully.nock.js @@ -1,40 +1,40 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/certificates?api-version=2017-09-01.6.0', '*') +.post('/certificates?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/certificates(ThumbprintAlgorithm=sha1,Thumbprint=cff2ab63c8c955aaf71989efa641b906558d9fb7)', + location: 'https://lchency4.westcentralus.batch.azure.com/certificates(ThumbprintAlgorithm=sha1,Thumbprint=cff2ab63c8c955aaf71989efa641b906558d9fb7)', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '1fb18d64-3dd4-4cd1-b6e7-271410ab6f5a', + 'request-id': '10a94544-9847-4152-ac17-84808d885708', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/certificates(ThumbprintAlgorithm=sha1,Thumbprint=cff2ab63c8c955aaf71989efa641b906558d9fb7)', - date: 'Mon, 02 Oct 2017 21:30:35 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/certificates(ThumbprintAlgorithm=sha1,Thumbprint=cff2ab63c8c955aaf71989efa641b906558d9fb7)', + date: 'Fri, 09 Mar 2018 22:44:03 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/certificates?api-version=2017-09-01.6.0', '*') +.post('/certificates?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/certificates(ThumbprintAlgorithm=sha1,Thumbprint=cff2ab63c8c955aaf71989efa641b906558d9fb7)', + location: 'https://lchency4.westcentralus.batch.azure.com/certificates(ThumbprintAlgorithm=sha1,Thumbprint=cff2ab63c8c955aaf71989efa641b906558d9fb7)', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '1fb18d64-3dd4-4cd1-b6e7-271410ab6f5a', + 'request-id': '10a94544-9847-4152-ac17-84808d885708', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/certificates(ThumbprintAlgorithm=sha1,Thumbprint=cff2ab63c8c955aaf71989efa641b906558d9fb7)', - date: 'Mon, 02 Oct 2017 21:30:35 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/certificates(ThumbprintAlgorithm=sha1,Thumbprint=cff2ab63c8c955aaf71989efa641b906558d9fb7)', + date: 'Fri, 09 Mar 2018 22:44:03 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_check_if_a_job_schedule_exists_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_check_if_a_job_schedule_exists_successfully.nock.js index 9899082c65..70b3fb0c11 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_check_if_a_job_schedule_exists_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_check_if_a_job_schedule_exists_successfully.nock.js @@ -1,38 +1,38 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .head('/jobschedules/NodeSDKTestSchedule?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .head('/jobschedules/NodeSDKTestSchedule?api-version=2018-03-01.6.1') .reply(200, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:52:00 GMT', - etag: '0x8D509DFCF3CDF28', + 'last-modified': 'Fri, 09 Mar 2018 23:25:24 GMT', + etag: '0x8D5861508E222CC', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'a33fae8d-ab97-4fe4-b431-d24c94c0b455', + 'request-id': '776a0818-bff4-4397-9b30-1ccc50c998ad', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:52:01 GMT', + date: 'Fri, 09 Mar 2018 23:25:24 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .head('/jobschedules/NodeSDKTestSchedule?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .head('/jobschedules/NodeSDKTestSchedule?api-version=2018-03-01.6.1') .reply(200, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:52:00 GMT', - etag: '0x8D509DFCF3CDF28', + 'last-modified': 'Fri, 09 Mar 2018 23:25:24 GMT', + etag: '0x8D5861508E222CC', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'a33fae8d-ab97-4fe4-b431-d24c94c0b455', + 'request-id': '776a0818-bff4-4397-9b30-1ccc50c998ad', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:52:01 GMT', + date: 'Fri, 09 Mar 2018 23:25:24 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_check_that_pool_exists_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_check_that_pool_exists_successfully.nock.js index 762d7ed42f..cfb0a03be9 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_check_that_pool_exists_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_check_that_pool_exists_successfully.nock.js @@ -1,38 +1,38 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .head('/pools/nodesdktestpool1?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .head('/pools/nodesdktestpool1?api-version=2018-03-01.6.1') .reply(200, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:45:53 GMT', - etag: '0x8D509DEF4F1A68B', + 'last-modified': 'Fri, 09 Mar 2018 22:59:20 GMT', + etag: '0x8D5861164D233AE', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'b629d5cb-cd6b-494f-8dfa-7c3501bcff25', + 'request-id': '7ae32d56-0d4d-4e27-a936-011e6ef42ffd', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:45:57 GMT', + date: 'Fri, 09 Mar 2018 22:59:22 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .head('/pools/nodesdktestpool1?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .head('/pools/nodesdktestpool1?api-version=2018-03-01.6.1') .reply(200, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:45:53 GMT', - etag: '0x8D509DEF4F1A68B', + 'last-modified': 'Fri, 09 Mar 2018 22:59:20 GMT', + etag: '0x8D5861164D233AE', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'b629d5cb-cd6b-494f-8dfa-7c3501bcff25', + 'request-id': '7ae32d56-0d4d-4e27-a936-011e6ef42ffd', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:45:57 GMT', + date: 'Fri, 09 Mar 2018 22:59:22 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_count_tasks_sucessfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_count_tasks_sucessfully.nock.js index 88e5c2bae8..ea32abe9c1 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_count_tasks_sucessfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_count_tasks_sucessfully.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobs/HelloWorldJobNodeSDKTest/taskcounts?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#taskcounts/@Element\",\"active\":0,\"running\":0,\"completed\":4,\"succeeded\":3,\"failed\":1,\"validationStatus\":\"Validated\"\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/jobs/HelloWorldJobNodeSDKTest/taskcounts?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#taskcounts/@Element\",\"active\":0,\"running\":0,\"completed\":4,\"succeeded\":3,\"failed\":1,\"validationStatus\":\"Validated\"\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '73a64417-2635-42ec-bd5e-6f83416906c3', + 'request-id': 'd92f7332-5009-4852-9bfb-25f994df24a5', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:48:06 GMT', + date: 'Fri, 09 Mar 2018 23:01:23 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobs/HelloWorldJobNodeSDKTest/taskcounts?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#taskcounts/@Element\",\"active\":0,\"running\":0,\"completed\":4,\"succeeded\":3,\"failed\":1,\"validationStatus\":\"Validated\"\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/jobs/HelloWorldJobNodeSDKTest/taskcounts?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#taskcounts/@Element\",\"active\":0,\"running\":0,\"completed\":4,\"succeeded\":3,\"failed\":1,\"validationStatus\":\"Validated\"\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '73a64417-2635-42ec-bd5e-6f83416906c3', + 'request-id': 'd92f7332-5009-4852-9bfb-25f994df24a5', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:48:06 GMT', + date: 'Fri, 09 Mar 2018 23:01:23 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_job_schdule_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_job_schdule_successfully.nock.js index 590fbab2af..7a4d82d76f 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_job_schdule_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_job_schdule_successfully.nock.js @@ -1,44 +1,44 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/jobschedules?api-version=2017-09-01.6.0', '*') +.post('/jobschedules?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:52:00 GMT', - etag: '0x8D509DFCF3CDF28', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobschedules/NodeSDKTestSchedule', + 'last-modified': 'Fri, 09 Mar 2018 23:25:24 GMT', + etag: '0x8D5861508E222CC', + location: 'https://lchency4.westcentralus.batch.azure.com/jobschedules/NodeSDKTestSchedule', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'd5a365ce-de2d-4f12-bb02-2e9a1e15035b', + 'request-id': 'e5290907-284d-4f04-98ed-e3f133040be5', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobschedules/NodeSDKTestSchedule', - date: 'Mon, 02 Oct 2017 21:52:00 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobschedules/NodeSDKTestSchedule', + date: 'Fri, 09 Mar 2018 23:25:24 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/jobschedules?api-version=2017-09-01.6.0', '*') +.post('/jobschedules?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:52:00 GMT', - etag: '0x8D509DFCF3CDF28', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobschedules/NodeSDKTestSchedule', + 'last-modified': 'Fri, 09 Mar 2018 23:25:24 GMT', + etag: '0x8D5861508E222CC', + location: 'https://lchency4.westcentralus.batch.azure.com/jobschedules/NodeSDKTestSchedule', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'd5a365ce-de2d-4f12-bb02-2e9a1e15035b', + 'request-id': 'e5290907-284d-4f04-98ed-e3f133040be5', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobschedules/NodeSDKTestSchedule', - date: 'Mon, 02 Oct 2017 21:52:00 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobschedules/NodeSDKTestSchedule', + date: 'Fri, 09 Mar 2018 23:25:24 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_job_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_job_successfully.nock.js index 96d26de1eb..50d7a4cd2d 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_job_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_job_successfully.nock.js @@ -1,44 +1,44 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/jobs?api-version=2017-09-01.6.0', '*') +.post('/jobs?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:46:00 GMT', - etag: '0x8D509DEF8F89921', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/job-1', + 'last-modified': 'Fri, 09 Mar 2018 22:59:23 GMT', + etag: '0x8D586116668209F', + location: 'https://lchency4.westcentralus.batch.azure.com/jobs/job-1', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '471e93af-b6ff-4aa8-8625-cc2eb97dd3fa', + 'request-id': 'bfb70815-3c68-4131-8e13-48ec4cdf8bfb', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/job-1', - date: 'Mon, 02 Oct 2017 21:46:00 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/job-1', + date: 'Fri, 09 Mar 2018 22:59:23 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/jobs?api-version=2017-09-01.6.0', '*') +.post('/jobs?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:46:00 GMT', - etag: '0x8D509DEF8F89921', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/job-1', + 'last-modified': 'Fri, 09 Mar 2018 22:59:23 GMT', + etag: '0x8D586116668209F', + location: 'https://lchency4.westcentralus.batch.azure.com/jobs/job-1', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '471e93af-b6ff-4aa8-8625-cc2eb97dd3fa', + 'request-id': 'bfb70815-3c68-4131-8e13-48ec4cdf8bfb', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/job-1', - date: 'Mon, 02 Oct 2017 21:46:00 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/job-1', + date: 'Fri, 09 Mar 2018 22:59:23 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_new_pool_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_new_pool_successfully.nock.js index 45d9e72422..fefbe0de1d 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_new_pool_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_new_pool_successfully.nock.js @@ -1,44 +1,44 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools?api-version=2017-09-01.6.0', '*') +.post('/pools?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:30:36 GMT', - etag: '0x8D509DCD2304DB1', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1', + 'last-modified': 'Fri, 09 Mar 2018 22:44:04 GMT', + etag: '0x8D5860F42C979DB', + location: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '59eb14b3-2ad2-4e9f-9e6b-d0cb8c4ba409', + 'request-id': 'd409329b-fca1-4288-9136-68b9e1f429fc', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1', - date: 'Mon, 02 Oct 2017 21:30:35 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1', + date: 'Fri, 09 Mar 2018 22:44:04 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools?api-version=2017-09-01.6.0', '*') +.post('/pools?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:30:36 GMT', - etag: '0x8D509DCD2304DB1', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1', + 'last-modified': 'Fri, 09 Mar 2018 22:44:04 GMT', + etag: '0x8D5860F42C979DB', + location: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '59eb14b3-2ad2-4e9f-9e6b-d0cb8c4ba409', + 'request-id': 'd409329b-fca1-4288-9136-68b9e1f429fc', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1', - date: 'Mon, 02 Oct 2017 21:30:35 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1', + date: 'Fri, 09 Mar 2018 22:44:04 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_pool_with_application_licenses_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_pool_with_application_licenses_successfully.nock.js index 82586639b3..1093c7c026 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_pool_with_application_licenses_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_pool_with_application_licenses_successfully.nock.js @@ -1,70 +1,70 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools?api-version=2017-09-01.6.0', '*') +.post('/pools?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:32:17 GMT', - etag: '0x8D509DD0E27A1A7', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool_licenses', + 'last-modified': 'Fri, 09 Mar 2018 22:45:44 GMT', + etag: '0x8D5860F7E8B1EF8', + location: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool_licenses', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'a0f41369-77ae-4662-a127-7ff58ed15918', + 'request-id': '48fcfce5-d20e-45f9-a0b9-74cd356e9357', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool_licenses', - date: 'Mon, 02 Oct 2017 21:32:17 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool_licenses', + date: 'Fri, 09 Mar 2018 22:45:44 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools?api-version=2017-09-01.6.0', '*') +.post('/pools?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:32:17 GMT', - etag: '0x8D509DD0E27A1A7', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool_licenses', + 'last-modified': 'Fri, 09 Mar 2018 22:45:44 GMT', + etag: '0x8D5860F7E8B1EF8', + location: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool_licenses', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'a0f41369-77ae-4662-a127-7ff58ed15918', + 'request-id': '48fcfce5-d20e-45f9-a0b9-74cd356e9357', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool_licenses', - date: 'Mon, 02 Oct 2017 21:32:17 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool_licenses', + date: 'Fri, 09 Mar 2018 22:45:44 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/pools/nodesdktestpool_licenses?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .delete('/pools/nodesdktestpool_licenses?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'b77078f1-df33-48ef-bd8e-08de91a0944b', + 'request-id': '545aee6d-e0f7-49c8-bf9f-8c8003352828', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:32:18 GMT', + date: 'Fri, 09 Mar 2018 22:45:45 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/pools/nodesdktestpool_licenses?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .delete('/pools/nodesdktestpool_licenses?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'b77078f1-df33-48ef-bd8e-08de91a0944b', + 'request-id': '545aee6d-e0f7-49c8-bf9f-8c8003352828', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:32:18 GMT', + date: 'Fri, 09 Mar 2018 22:45:45 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_second_pool_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_second_pool_successfully.nock.js index 02264182ca..f261e8d93c 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_second_pool_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_second_pool_successfully.nock.js @@ -1,44 +1,44 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools?api-version=2017-09-01.6.0', '*') +.post('/pools?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:45:54 GMT', - etag: '0x8D509DEF53F6D4D', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool2', + 'last-modified': 'Fri, 09 Mar 2018 22:59:20 GMT', + etag: '0x8D5861164EAB3E9', + location: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool2', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'b6a9c029-806c-4347-a61b-a2bc9b31bdbc', + 'request-id': '0f7fb423-9d36-495d-bbaf-4182c2a2139b', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool2', - date: 'Mon, 02 Oct 2017 21:45:54 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool2', + date: 'Fri, 09 Mar 2018 22:59:20 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools?api-version=2017-09-01.6.0', '*') +.post('/pools?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:45:54 GMT', - etag: '0x8D509DEF53F6D4D', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool2', + 'last-modified': 'Fri, 09 Mar 2018 22:59:20 GMT', + etag: '0x8D5861164EAB3E9', + location: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool2', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'b6a9c029-806c-4347-a61b-a2bc9b31bdbc', + 'request-id': '0f7fb423-9d36-495d-bbaf-4182c2a2139b', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool2', - date: 'Mon, 02 Oct 2017 21:45:54 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool2', + date: 'Fri, 09 Mar 2018 22:59:20 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_second_task_with_output_files_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_second_task_with_output_files_successfully.nock.js index 5a2fcccb24..100b595677 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_second_task_with_output_files_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_second_task_with_output_files_successfully.nock.js @@ -1,44 +1,44 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/jobs/HelloWorldJobNodeSDKTest/tasks?api-version=2017-09-01.6.0', '*') +.post('/jobs/HelloWorldJobNodeSDKTest/tasks?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:46:07 GMT', - etag: '0x8D509DEFD2A0A55', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2', + 'last-modified': 'Fri, 09 Mar 2018 22:59:25 GMT', + etag: '0x8D5861167DA924E', + location: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '14e31d6a-89d8-493e-8e58-3ae1652c8051', + 'request-id': '319cffea-0bf1-43f9-a55e-2e314f9886c4', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2', - date: 'Mon, 02 Oct 2017 21:46:07 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2', + date: 'Fri, 09 Mar 2018 22:59:25 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/jobs/HelloWorldJobNodeSDKTest/tasks?api-version=2017-09-01.6.0', '*') +.post('/jobs/HelloWorldJobNodeSDKTest/tasks?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:46:07 GMT', - etag: '0x8D509DEFD2A0A55', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2', + 'last-modified': 'Fri, 09 Mar 2018 22:59:25 GMT', + etag: '0x8D5861167DA924E', + location: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '14e31d6a-89d8-493e-8e58-3ae1652c8051', + 'request-id': '319cffea-0bf1-43f9-a55e-2e314f9886c4', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2', - date: 'Mon, 02 Oct 2017 21:46:07 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2', + date: 'Fri, 09 Mar 2018 22:59:25 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_task_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_task_successfully.nock.js index 98a3d3c8f0..7ca37ae37d 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_task_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_task_successfully.nock.js @@ -1,44 +1,44 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/jobs/HelloWorldJobNodeSDKTest/tasks?api-version=2017-09-01.6.0', '*') +.post('/jobs/HelloWorldJobNodeSDKTest/tasks?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:46:02 GMT', - etag: '0x8D509DEFA319420', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask', + 'last-modified': 'Fri, 09 Mar 2018 22:59:23 GMT', + etag: '0x8D5861166AD5451', + location: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '60b13163-d6ea-49f1-8c40-23d4f1bb32bb', + 'request-id': '8dcecc8e-0fae-4f5d-8d85-96ef0900f009', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask', - date: 'Mon, 02 Oct 2017 21:46:02 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask', + date: 'Fri, 09 Mar 2018 22:59:23 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/jobs/HelloWorldJobNodeSDKTest/tasks?api-version=2017-09-01.6.0', '*') +.post('/jobs/HelloWorldJobNodeSDKTest/tasks?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:46:02 GMT', - etag: '0x8D509DEFA319420', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask', + 'last-modified': 'Fri, 09 Mar 2018 22:59:23 GMT', + etag: '0x8D5861166AD5451', + location: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '60b13163-d6ea-49f1-8c40-23d4f1bb32bb', + 'request-id': '8dcecc8e-0fae-4f5d-8d85-96ef0900f009', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask', - date: 'Mon, 02 Oct 2017 21:46:02 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask', + date: 'Fri, 09 Mar 2018 22:59:23 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_task_with_a_user_identity_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_task_with_a_user_identity_successfully.nock.js index f336baae6f..001cac9925 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_task_with_a_user_identity_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_task_with_a_user_identity_successfully.nock.js @@ -1,76 +1,76 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/jobs/HelloWorldJobNodeSDKTest/tasks?api-version=2017-09-01.6.0', '*') +.post('/jobs/HelloWorldJobNodeSDKTest/tasks?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:47:51 GMT', - etag: '0x8D509DF3B1BA55A', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithUserIdentity', + 'last-modified': 'Fri, 09 Mar 2018 23:01:07 GMT', + etag: '0x8D58611A462A001', + location: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithUserIdentity', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'c5ca94e9-cb76-4af1-9b16-b4599876d253', + 'request-id': '51fb411b-565b-49b5-8d1d-171df124bda1', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithUserIdentity', - date: 'Mon, 02 Oct 2017 21:47:51 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithUserIdentity', + date: 'Fri, 09 Mar 2018 23:01:07 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/jobs/HelloWorldJobNodeSDKTest/tasks?api-version=2017-09-01.6.0', '*') +.post('/jobs/HelloWorldJobNodeSDKTest/tasks?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:47:51 GMT', - etag: '0x8D509DF3B1BA55A', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithUserIdentity', + 'last-modified': 'Fri, 09 Mar 2018 23:01:07 GMT', + etag: '0x8D58611A462A001', + location: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithUserIdentity', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'c5ca94e9-cb76-4af1-9b16-b4599876d253', + 'request-id': '51fb411b-565b-49b5-8d1d-171df124bda1', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithUserIdentity', - date: 'Mon, 02 Oct 2017 21:47:51 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithUserIdentity', + date: 'Fri, 09 Mar 2018 23:01:07 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithUserIdentity?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#tasks/@Element\",\"id\":\"TaskWithUserIdentity\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithUserIdentity\",\"eTag\":\"0x8D509DF3B1BA55A\",\"creationTime\":\"2017-10-02T21:47:51.6817754Z\",\"lastModified\":\"2017-10-02T21:47:51.6817754Z\",\"state\":\"completed\",\"stateTransitionTime\":\"2017-10-02T21:48:02.2743129Z\",\"previousState\":\"running\",\"previousStateTransitionTime\":\"2017-10-02T21:48:02.1873238Z\",\"commandLine\":\"cmd /c net session >nul 2>&1\",\"userIdentity\":{\r\n \"username\":\"nonAdminUser\"\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"executionInfo\":{\r\n \"startTime\":\"2017-10-02T21:48:02.1873238Z\",\"endTime\":\"2017-10-02T21:48:02.2743129Z\",\"exitCode\":2,\"failureInfo\":{\r\n \"category\":\"UserError\",\"code\":\"FailureExitCode\",\"message\":\"The task exited with an exit code representing a failure\",\"details\":[\r\n {\r\n \"name\":\"Message\",\"value\":\"The task exited with an exit code representing a failure\"\r\n }\r\n ]\r\n },\"result\":\"Failure\",\"retryCount\":3,\"lastRetryTime\":\"2017-10-02T21:48:00.4711487Z\",\"requeueCount\":0\r\n },\"nodeInfo\":{\r\n \"affinityId\":\"TVM:tvm-115883067_3-20171002t213150z\",\"nodeUrl\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_3-20171002t213150z\",\"poolId\":\"nodesdktestpool1\",\"nodeId\":\"tvm-115883067_3-20171002t213150z\",\"taskRootDirectory\":\"workitems\\\\helloworldjobnodesdktest\\\\job-1\\\\taskwithuseridentity\",\"taskRootDirectoryUrl\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_3-20171002t213150z/files/workitems/helloworldjobnodesdktest/job-1/taskwithuseridentity\"\r\n }\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithUserIdentity?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#tasks/@Element\",\"id\":\"TaskWithUserIdentity\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithUserIdentity\",\"eTag\":\"0x8D58611A462A001\",\"creationTime\":\"2018-03-09T23:01:07.3286145Z\",\"lastModified\":\"2018-03-09T23:01:07.3286145Z\",\"state\":\"completed\",\"stateTransitionTime\":\"2018-03-09T23:01:14.663512Z\",\"previousState\":\"running\",\"previousStateTransitionTime\":\"2018-03-09T23:01:14.591505Z\",\"commandLine\":\"cmd /c net session >nul 2>&1\",\"userIdentity\":{\r\n \"username\":\"nonAdminUser\"\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"executionInfo\":{\r\n \"startTime\":\"2018-03-09T23:01:14.591505Z\",\"endTime\":\"2018-03-09T23:01:14.663512Z\",\"exitCode\":2,\"failureInfo\":{\r\n \"category\":\"UserError\",\"code\":\"FailureExitCode\",\"message\":\"The task exited with an exit code representing a failure\",\"details\":[\r\n {\r\n \"name\":\"Message\",\"value\":\"The task exited with an exit code representing a failure\"\r\n }\r\n ]\r\n },\"result\":\"Failure\",\"retryCount\":3,\"lastRetryTime\":\"2018-03-09T23:01:13.1202283Z\",\"requeueCount\":0\r\n },\"nodeInfo\":{\r\n \"affinityId\":\"TVM:tvm-3840119875_3-20180309t224543z\",\"nodeUrl\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_3-20180309t224543z\",\"poolId\":\"nodesdktestpool1\",\"nodeId\":\"tvm-3840119875_3-20180309t224543z\",\"taskRootDirectory\":\"workitems\\\\helloworldjobnodesdktest\\\\job-1\\\\taskwithuseridentity\",\"taskRootDirectoryUrl\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_3-20180309t224543z/files/workitems/helloworldjobnodesdktest/job-1/taskwithuseridentity\"\r\n }\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', - 'last-modified': 'Mon, 02 Oct 2017 21:47:51 GMT', - etag: '0x8D509DF3B1BA55A', + 'last-modified': 'Fri, 09 Mar 2018 23:01:07 GMT', + etag: '0x8D58611A462A001', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'fff88862-2349-4d2c-b6d0-a24233287e82', + 'request-id': '97a39df5-567e-469b-a5ef-4344a3d19a43', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:48:07 GMT', + date: 'Fri, 09 Mar 2018 23:01:22 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithUserIdentity?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#tasks/@Element\",\"id\":\"TaskWithUserIdentity\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithUserIdentity\",\"eTag\":\"0x8D509DF3B1BA55A\",\"creationTime\":\"2017-10-02T21:47:51.6817754Z\",\"lastModified\":\"2017-10-02T21:47:51.6817754Z\",\"state\":\"completed\",\"stateTransitionTime\":\"2017-10-02T21:48:02.2743129Z\",\"previousState\":\"running\",\"previousStateTransitionTime\":\"2017-10-02T21:48:02.1873238Z\",\"commandLine\":\"cmd /c net session >nul 2>&1\",\"userIdentity\":{\r\n \"username\":\"nonAdminUser\"\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"executionInfo\":{\r\n \"startTime\":\"2017-10-02T21:48:02.1873238Z\",\"endTime\":\"2017-10-02T21:48:02.2743129Z\",\"exitCode\":2,\"failureInfo\":{\r\n \"category\":\"UserError\",\"code\":\"FailureExitCode\",\"message\":\"The task exited with an exit code representing a failure\",\"details\":[\r\n {\r\n \"name\":\"Message\",\"value\":\"The task exited with an exit code representing a failure\"\r\n }\r\n ]\r\n },\"result\":\"Failure\",\"retryCount\":3,\"lastRetryTime\":\"2017-10-02T21:48:00.4711487Z\",\"requeueCount\":0\r\n },\"nodeInfo\":{\r\n \"affinityId\":\"TVM:tvm-115883067_3-20171002t213150z\",\"nodeUrl\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_3-20171002t213150z\",\"poolId\":\"nodesdktestpool1\",\"nodeId\":\"tvm-115883067_3-20171002t213150z\",\"taskRootDirectory\":\"workitems\\\\helloworldjobnodesdktest\\\\job-1\\\\taskwithuseridentity\",\"taskRootDirectoryUrl\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_3-20171002t213150z/files/workitems/helloworldjobnodesdktest/job-1/taskwithuseridentity\"\r\n }\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithUserIdentity?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#tasks/@Element\",\"id\":\"TaskWithUserIdentity\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithUserIdentity\",\"eTag\":\"0x8D58611A462A001\",\"creationTime\":\"2018-03-09T23:01:07.3286145Z\",\"lastModified\":\"2018-03-09T23:01:07.3286145Z\",\"state\":\"completed\",\"stateTransitionTime\":\"2018-03-09T23:01:14.663512Z\",\"previousState\":\"running\",\"previousStateTransitionTime\":\"2018-03-09T23:01:14.591505Z\",\"commandLine\":\"cmd /c net session >nul 2>&1\",\"userIdentity\":{\r\n \"username\":\"nonAdminUser\"\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"executionInfo\":{\r\n \"startTime\":\"2018-03-09T23:01:14.591505Z\",\"endTime\":\"2018-03-09T23:01:14.663512Z\",\"exitCode\":2,\"failureInfo\":{\r\n \"category\":\"UserError\",\"code\":\"FailureExitCode\",\"message\":\"The task exited with an exit code representing a failure\",\"details\":[\r\n {\r\n \"name\":\"Message\",\"value\":\"The task exited with an exit code representing a failure\"\r\n }\r\n ]\r\n },\"result\":\"Failure\",\"retryCount\":3,\"lastRetryTime\":\"2018-03-09T23:01:13.1202283Z\",\"requeueCount\":0\r\n },\"nodeInfo\":{\r\n \"affinityId\":\"TVM:tvm-3840119875_3-20180309t224543z\",\"nodeUrl\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_3-20180309t224543z\",\"poolId\":\"nodesdktestpool1\",\"nodeId\":\"tvm-3840119875_3-20180309t224543z\",\"taskRootDirectory\":\"workitems\\\\helloworldjobnodesdktest\\\\job-1\\\\taskwithuseridentity\",\"taskRootDirectoryUrl\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_3-20180309t224543z/files/workitems/helloworldjobnodesdktest/job-1/taskwithuseridentity\"\r\n }\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', - 'last-modified': 'Mon, 02 Oct 2017 21:47:51 GMT', - etag: '0x8D509DF3B1BA55A', + 'last-modified': 'Fri, 09 Mar 2018 23:01:07 GMT', + etag: '0x8D58611A462A001', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'fff88862-2349-4d2c-b6d0-a24233287e82', + 'request-id': '97a39df5-567e-469b-a5ef-4344a3d19a43', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:48:07 GMT', + date: 'Fri, 09 Mar 2018 23:01:22 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_task_with_authentication_token_settings_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_task_with_authentication_token_settings_successfully.nock.js index 254c474a9d..15902b8d83 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_task_with_authentication_token_settings_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_task_with_authentication_token_settings_successfully.nock.js @@ -1,76 +1,76 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/jobs/HelloWorldJobNodeSDKTest/tasks?api-version=2017-09-01.6.0', '*') +.post('/jobs/HelloWorldJobNodeSDKTest/tasks?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:47:50 GMT', - etag: '0x8D509DF3A787339', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithAuthTokenSettings', + 'last-modified': 'Fri, 09 Mar 2018 23:01:06 GMT', + etag: '0x8D58611A427E567', + location: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithAuthTokenSettings', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '11223fb4-8cc8-4001-8837-6b409fe21059', + 'request-id': '732226f2-7617-44f3-80dd-faf67a2f6836', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithAuthTokenSettings', - date: 'Mon, 02 Oct 2017 21:47:50 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithAuthTokenSettings', + date: 'Fri, 09 Mar 2018 23:01:06 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/jobs/HelloWorldJobNodeSDKTest/tasks?api-version=2017-09-01.6.0', '*') +.post('/jobs/HelloWorldJobNodeSDKTest/tasks?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:47:50 GMT', - etag: '0x8D509DF3A787339', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithAuthTokenSettings', + 'last-modified': 'Fri, 09 Mar 2018 23:01:06 GMT', + etag: '0x8D58611A427E567', + location: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithAuthTokenSettings', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '11223fb4-8cc8-4001-8837-6b409fe21059', + 'request-id': '732226f2-7617-44f3-80dd-faf67a2f6836', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithAuthTokenSettings', - date: 'Mon, 02 Oct 2017 21:47:50 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithAuthTokenSettings', + date: 'Fri, 09 Mar 2018 23:01:06 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithAuthTokenSettings?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#tasks/@Element\",\"id\":\"TaskWithAuthTokenSettings\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithAuthTokenSettings\",\"eTag\":\"0x8D509DF3A787339\",\"creationTime\":\"2017-10-02T21:47:50.6122553Z\",\"lastModified\":\"2017-10-02T21:47:50.6122553Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:47:50.6122553Z\",\"commandLine\":\"cmd /c echo Hello World\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"authenticationTokenSettings\":{\r\n \"access\":[\r\n \"job\"\r\n ]\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"executionInfo\":{\r\n \"retryCount\":0,\"requeueCount\":0\r\n }\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithAuthTokenSettings?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#tasks/@Element\",\"id\":\"TaskWithAuthTokenSettings\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithAuthTokenSettings\",\"eTag\":\"0x8D58611A427E567\",\"creationTime\":\"2018-03-09T23:01:06.9437287Z\",\"lastModified\":\"2018-03-09T23:01:06.9437287Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T23:01:06.9437287Z\",\"commandLine\":\"cmd /c echo Hello World\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"authenticationTokenSettings\":{\r\n \"access\":[\r\n \"job\"\r\n ]\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"executionInfo\":{\r\n \"retryCount\":0,\"requeueCount\":0\r\n }\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', - 'last-modified': 'Mon, 02 Oct 2017 21:47:50 GMT', - etag: '0x8D509DF3A787339', + 'last-modified': 'Fri, 09 Mar 2018 23:01:06 GMT', + etag: '0x8D58611A427E567', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '44303960-be66-4304-94d5-bf8b0465a103', + 'request-id': 'c9eee9eb-6cdb-4d8f-a0f4-48fbb581e164', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:47:50 GMT', + date: 'Fri, 09 Mar 2018 23:01:06 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithAuthTokenSettings?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#tasks/@Element\",\"id\":\"TaskWithAuthTokenSettings\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithAuthTokenSettings\",\"eTag\":\"0x8D509DF3A787339\",\"creationTime\":\"2017-10-02T21:47:50.6122553Z\",\"lastModified\":\"2017-10-02T21:47:50.6122553Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:47:50.6122553Z\",\"commandLine\":\"cmd /c echo Hello World\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"authenticationTokenSettings\":{\r\n \"access\":[\r\n \"job\"\r\n ]\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"executionInfo\":{\r\n \"retryCount\":0,\"requeueCount\":0\r\n }\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithAuthTokenSettings?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#tasks/@Element\",\"id\":\"TaskWithAuthTokenSettings\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/TaskWithAuthTokenSettings\",\"eTag\":\"0x8D58611A427E567\",\"creationTime\":\"2018-03-09T23:01:06.9437287Z\",\"lastModified\":\"2018-03-09T23:01:06.9437287Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T23:01:06.9437287Z\",\"commandLine\":\"cmd /c echo Hello World\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"authenticationTokenSettings\":{\r\n \"access\":[\r\n \"job\"\r\n ]\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"executionInfo\":{\r\n \"retryCount\":0,\"requeueCount\":0\r\n }\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', - 'last-modified': 'Mon, 02 Oct 2017 21:47:50 GMT', - etag: '0x8D509DF3A787339', + 'last-modified': 'Fri, 09 Mar 2018 23:01:06 GMT', + etag: '0x8D58611A427E567', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '44303960-be66-4304-94d5-bf8b0465a103', + 'request-id': 'c9eee9eb-6cdb-4d8f-a0f4-48fbb581e164', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:47:50 GMT', + date: 'Fri, 09 Mar 2018 23:01:06 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_task_with_container_settings_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_task_with_container_settings_successfully.nock.js index 41f97ac448..237b70d542 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_task_with_container_settings_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_task_with_container_settings_successfully.nock.js @@ -1,106 +1,106 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/jobs?api-version=2017-09-01.6.0', '*') +.post('/jobs?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:46:03 GMT', - etag: '0x8D509DEFA62D760', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/job-1', + 'last-modified': 'Fri, 09 Mar 2018 22:59:24 GMT', + etag: '0x8D5861166CDE804', + location: 'https://lchency4.westcentralus.batch.azure.com/jobs/job-1', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '7ed69377-60dd-4448-80c0-cffdac985721', + 'request-id': '056ecdad-85bd-4873-ae78-a40fec5c9706', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/job-1', - date: 'Mon, 02 Oct 2017 21:46:02 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/job-1', + date: 'Fri, 09 Mar 2018 22:59:24 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/jobs?api-version=2017-09-01.6.0', '*') +.post('/jobs?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:46:03 GMT', - etag: '0x8D509DEFA62D760', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/job-1', + 'last-modified': 'Fri, 09 Mar 2018 22:59:24 GMT', + etag: '0x8D5861166CDE804', + location: 'https://lchency4.westcentralus.batch.azure.com/jobs/job-1', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '7ed69377-60dd-4448-80c0-cffdac985721', + 'request-id': '056ecdad-85bd-4873-ae78-a40fec5c9706', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/job-1', - date: 'Mon, 02 Oct 2017 21:46:02 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/job-1', + date: 'Fri, 09 Mar 2018 22:59:24 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/jobs/ContainerJobNodeSDKTest/tasks?api-version=2017-09-01.6.0', '*') +.post('/jobs/ContainerJobNodeSDKTest/tasks?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:46:03 GMT', - etag: '0x8D509DEFABA065E', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/ContainerJobNodeSDKTest/tasks/ContainerNodeSDKTestTask', + 'last-modified': 'Fri, 09 Mar 2018 22:59:24 GMT', + etag: '0x8D58611670640EA', + location: 'https://lchency4.westcentralus.batch.azure.com/jobs/ContainerJobNodeSDKTest/tasks/ContainerNodeSDKTestTask', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '12270e37-32c9-4e33-bd96-05d22458751c', + 'request-id': 'e958ae69-18cf-4779-aee6-b8962e355ae3', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/ContainerJobNodeSDKTest/tasks/ContainerNodeSDKTestTask', - date: 'Mon, 02 Oct 2017 21:46:03 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/ContainerJobNodeSDKTest/tasks/ContainerNodeSDKTestTask', + date: 'Fri, 09 Mar 2018 22:59:24 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/jobs/ContainerJobNodeSDKTest/tasks?api-version=2017-09-01.6.0', '*') +.post('/jobs/ContainerJobNodeSDKTest/tasks?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:46:03 GMT', - etag: '0x8D509DEFABA065E', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/ContainerJobNodeSDKTest/tasks/ContainerNodeSDKTestTask', + 'last-modified': 'Fri, 09 Mar 2018 22:59:24 GMT', + etag: '0x8D58611670640EA', + location: 'https://lchency4.westcentralus.batch.azure.com/jobs/ContainerJobNodeSDKTest/tasks/ContainerNodeSDKTestTask', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '12270e37-32c9-4e33-bd96-05d22458751c', + 'request-id': 'e958ae69-18cf-4779-aee6-b8962e355ae3', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/ContainerJobNodeSDKTest/tasks/ContainerNodeSDKTestTask', - date: 'Mon, 02 Oct 2017 21:46:03 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/ContainerJobNodeSDKTest/tasks/ContainerNodeSDKTestTask', + date: 'Fri, 09 Mar 2018 22:59:24 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/jobs/ContainerJobNodeSDKTest?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .delete('/jobs/ContainerJobNodeSDKTest?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '83963c26-6b7a-4f65-8957-90722e8ddf27', + 'request-id': '6a531b9a-f121-4654-a289-4ad04df630d4', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:46:04 GMT', + date: 'Fri, 09 Mar 2018 22:59:24 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/jobs/ContainerJobNodeSDKTest?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .delete('/jobs/ContainerJobNodeSDKTest?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '83963c26-6b7a-4f65-8957-90722e8ddf27', + 'request-id': '6a531b9a-f121-4654-a289-4ad04df630d4', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:46:04 GMT', + date: 'Fri, 09 Mar 2018 22:59:24 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_task_with_exit_conditions_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_task_with_exit_conditions_successfully.nock.js index 1719c24243..fbef24bbae 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_task_with_exit_conditions_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_create_a_task_with_exit_conditions_successfully.nock.js @@ -1,138 +1,138 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/jobs?api-version=2017-09-01.6.0', '*') +.post('/jobs?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:46:04 GMT', - etag: '0x8D509DEFB7AD791', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/job-1', + 'last-modified': 'Fri, 09 Mar 2018 22:59:24 GMT', + etag: '0x8D586116735DA63', + location: 'https://lchency4.westcentralus.batch.azure.com/jobs/job-1', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '0cf08241-09d3-487c-bc7f-0043998cf947', + 'request-id': '11c56be9-73da-4f7c-bbbe-b4faee00eaa3', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/job-1', - date: 'Mon, 02 Oct 2017 21:46:05 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/job-1', + date: 'Fri, 09 Mar 2018 22:59:24 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/jobs?api-version=2017-09-01.6.0', '*') +.post('/jobs?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:46:04 GMT', - etag: '0x8D509DEFB7AD791', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/job-1', + 'last-modified': 'Fri, 09 Mar 2018 22:59:24 GMT', + etag: '0x8D586116735DA63', + location: 'https://lchency4.westcentralus.batch.azure.com/jobs/job-1', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '0cf08241-09d3-487c-bc7f-0043998cf947', + 'request-id': '11c56be9-73da-4f7c-bbbe-b4faee00eaa3', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/job-1', - date: 'Mon, 02 Oct 2017 21:46:05 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/job-1', + date: 'Fri, 09 Mar 2018 22:59:24 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/jobs/JobWithAutoComplete/tasks?api-version=2017-09-01.6.0', '*') +.post('/jobs/JobWithAutoComplete/tasks?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:46:05 GMT', - etag: '0x8D509DEFBFB32B5', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/JobWithAutoComplete/tasks/TaskWithAutoComplete', + 'last-modified': 'Fri, 09 Mar 2018 22:59:24 GMT', + etag: '0x8D58611674B667A', + location: 'https://lchency4.westcentralus.batch.azure.com/jobs/JobWithAutoComplete/tasks/TaskWithAutoComplete', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '9dfd3055-07f1-4088-b5fb-f96e247035d7', + 'request-id': '6b484963-b6db-4208-99f0-46f952842fcb', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/JobWithAutoComplete/tasks/TaskWithAutoComplete', - date: 'Mon, 02 Oct 2017 21:46:05 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/JobWithAutoComplete/tasks/TaskWithAutoComplete', + date: 'Fri, 09 Mar 2018 22:59:24 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/jobs/JobWithAutoComplete/tasks?api-version=2017-09-01.6.0', '*') +.post('/jobs/JobWithAutoComplete/tasks?api-version=2018-03-01.6.1', '*') .reply(201, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:46:05 GMT', - etag: '0x8D509DEFBFB32B5', - location: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/JobWithAutoComplete/tasks/TaskWithAutoComplete', + 'last-modified': 'Fri, 09 Mar 2018 22:59:24 GMT', + etag: '0x8D58611674B667A', + location: 'https://lchency4.westcentralus.batch.azure.com/jobs/JobWithAutoComplete/tasks/TaskWithAutoComplete', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '9dfd3055-07f1-4088-b5fb-f96e247035d7', + 'request-id': '6b484963-b6db-4208-99f0-46f952842fcb', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/JobWithAutoComplete/tasks/TaskWithAutoComplete', - date: 'Mon, 02 Oct 2017 21:46:05 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/JobWithAutoComplete/tasks/TaskWithAutoComplete', + date: 'Fri, 09 Mar 2018 22:59:24 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobs/JobWithAutoComplete/tasks/TaskWithAutoComplete?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#tasks/@Element\",\"id\":\"TaskWithAutoComplete\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/JobWithAutoComplete/tasks/TaskWithAutoComplete\",\"eTag\":\"0x8D509DEFBFB32B5\",\"creationTime\":\"2017-10-02T21:46:05.7726645Z\",\"lastModified\":\"2017-10-02T21:46:05.7726645Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:46:05.7726645Z\",\"commandLine\":\"echo Hello World\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"exitConditions\":{\r\n \"exitCodes\":[\r\n {\r\n \"code\":1,\"exitOptions\":{\r\n \"jobAction\":\"none\",\"dependencyAction\":\"block\"\r\n }\r\n }\r\n ],\"default\":{\r\n \"jobAction\":\"terminate\",\"dependencyAction\":\"satisfy\"\r\n }\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":0\r\n },\"executionInfo\":{\r\n \"retryCount\":0,\"requeueCount\":0\r\n }\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/jobs/JobWithAutoComplete/tasks/TaskWithAutoComplete?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#tasks/@Element\",\"id\":\"TaskWithAutoComplete\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/JobWithAutoComplete/tasks/TaskWithAutoComplete\",\"eTag\":\"0x8D58611674B667A\",\"creationTime\":\"2018-03-09T22:59:24.8353914Z\",\"lastModified\":\"2018-03-09T22:59:24.8353914Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:59:24.8353914Z\",\"commandLine\":\"echo Hello World\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"exitConditions\":{\r\n \"exitCodes\":[\r\n {\r\n \"code\":1,\"exitOptions\":{\r\n \"jobAction\":\"none\",\"dependencyAction\":\"block\"\r\n }\r\n }\r\n ],\"default\":{\r\n \"jobAction\":\"terminate\",\"dependencyAction\":\"satisfy\"\r\n }\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":0\r\n },\"executionInfo\":{\r\n \"retryCount\":0,\"requeueCount\":0\r\n }\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', - 'last-modified': 'Mon, 02 Oct 2017 21:46:05 GMT', - etag: '0x8D509DEFBFB32B5', + 'last-modified': 'Fri, 09 Mar 2018 22:59:24 GMT', + etag: '0x8D58611674B667A', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '02f3e05a-ab57-4e24-97fa-5f8dab4673f9', + 'request-id': '9d9c8770-106c-447e-aac0-4d651d26ba3e', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:46:05 GMT', + date: 'Fri, 09 Mar 2018 22:59:25 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobs/JobWithAutoComplete/tasks/TaskWithAutoComplete?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#tasks/@Element\",\"id\":\"TaskWithAutoComplete\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/JobWithAutoComplete/tasks/TaskWithAutoComplete\",\"eTag\":\"0x8D509DEFBFB32B5\",\"creationTime\":\"2017-10-02T21:46:05.7726645Z\",\"lastModified\":\"2017-10-02T21:46:05.7726645Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:46:05.7726645Z\",\"commandLine\":\"echo Hello World\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"exitConditions\":{\r\n \"exitCodes\":[\r\n {\r\n \"code\":1,\"exitOptions\":{\r\n \"jobAction\":\"none\",\"dependencyAction\":\"block\"\r\n }\r\n }\r\n ],\"default\":{\r\n \"jobAction\":\"terminate\",\"dependencyAction\":\"satisfy\"\r\n }\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":0\r\n },\"executionInfo\":{\r\n \"retryCount\":0,\"requeueCount\":0\r\n }\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/jobs/JobWithAutoComplete/tasks/TaskWithAutoComplete?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#tasks/@Element\",\"id\":\"TaskWithAutoComplete\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/JobWithAutoComplete/tasks/TaskWithAutoComplete\",\"eTag\":\"0x8D58611674B667A\",\"creationTime\":\"2018-03-09T22:59:24.8353914Z\",\"lastModified\":\"2018-03-09T22:59:24.8353914Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:59:24.8353914Z\",\"commandLine\":\"echo Hello World\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"exitConditions\":{\r\n \"exitCodes\":[\r\n {\r\n \"code\":1,\"exitOptions\":{\r\n \"jobAction\":\"none\",\"dependencyAction\":\"block\"\r\n }\r\n }\r\n ],\"default\":{\r\n \"jobAction\":\"terminate\",\"dependencyAction\":\"satisfy\"\r\n }\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":0\r\n },\"executionInfo\":{\r\n \"retryCount\":0,\"requeueCount\":0\r\n }\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', - 'last-modified': 'Mon, 02 Oct 2017 21:46:05 GMT', - etag: '0x8D509DEFBFB32B5', + 'last-modified': 'Fri, 09 Mar 2018 22:59:24 GMT', + etag: '0x8D58611674B667A', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '02f3e05a-ab57-4e24-97fa-5f8dab4673f9', + 'request-id': '9d9c8770-106c-447e-aac0-4d651d26ba3e', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:46:05 GMT', + date: 'Fri, 09 Mar 2018 22:59:25 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/jobs/JobWithAutoComplete?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .delete('/jobs/JobWithAutoComplete?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '5a9fe082-0f3c-4931-849c-f8d6748cac7f', + 'request-id': '92db9ce9-6a89-4f4c-8d81-8b100d17ed5f', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:46:06 GMT', + date: 'Fri, 09 Mar 2018 22:59:25 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/jobs/JobWithAutoComplete?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .delete('/jobs/JobWithAutoComplete?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '5a9fe082-0f3c-4931-849c-f8d6748cac7f', + 'request-id': '92db9ce9-6a89-4f4c-8d81-8b100d17ed5f', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:46:06 GMT', + date: 'Fri, 09 Mar 2018 22:59:25 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_certificate_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_certificate_successfully.nock.js index a05bb3196f..c94d681d08 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_certificate_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_certificate_successfully.nock.js @@ -1,34 +1,34 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/certificates(thumbprintAlgorithm=sha1,thumbprint=cff2ab63c8c955aaf71989efa641b906558d9fb7)?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .delete('/certificates(thumbprintAlgorithm=sha1,thumbprint=cff2ab63c8c955aaf71989efa641b906558d9fb7)?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '831a988f-23de-4a58-8717-280c18dedbc2', + 'request-id': '436a17fb-da44-469c-9d00-4052e9799790', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:52:06 GMT', + date: 'Fri, 09 Mar 2018 23:05:15 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/certificates(thumbprintAlgorithm=sha1,thumbprint=cff2ab63c8c955aaf71989efa641b906558d9fb7)?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .delete('/certificates(thumbprintAlgorithm=sha1,thumbprint=cff2ab63c8c955aaf71989efa641b906558d9fb7)?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '831a988f-23de-4a58-8717-280c18dedbc2', + 'request-id': '436a17fb-da44-469c-9d00-4052e9799790', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:52:06 GMT', + date: 'Fri, 09 Mar 2018 23:05:15 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_compute_node_user_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_compute_node_user_successfully.nock.js index 47ed9efd32..feea716282 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_compute_node_user_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_compute_node_user_successfully.nock.js @@ -1,34 +1,34 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/pools/nodesdktestpool1/nodes/tvm-115883067_1-20171002t213150z/users/NodeSDKTestUser?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .delete('/pools/nodesdktestpool1/nodes/tvm-3840119875_1-20180309t224543z/users/NodeSDKTestUser?api-version=2018-03-01.6.1') .reply(200, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '91d46be5-caa9-457f-8b1a-c671507d79af', + 'request-id': 'eba87bf1-45c2-4ce0-83de-21ac1f821f04', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:45:46 GMT', + date: 'Fri, 09 Mar 2018 22:59:14 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/pools/nodesdktestpool1/nodes/tvm-115883067_1-20171002t213150z/users/NodeSDKTestUser?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .delete('/pools/nodesdktestpool1/nodes/tvm-3840119875_1-20180309t224543z/users/NodeSDKTestUser?api-version=2018-03-01.6.1') .reply(200, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '91d46be5-caa9-457f-8b1a-c671507d79af', + 'request-id': 'eba87bf1-45c2-4ce0-83de-21ac1f821f04', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:45:46 GMT', + date: 'Fri, 09 Mar 2018 22:59:14 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_job_schedule_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_job_schedule_successfully.nock.js index 4711b036be..2b52f237bf 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_job_schedule_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_job_schedule_successfully.nock.js @@ -1,34 +1,34 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/jobschedules/NodeSDKTestSchedule?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .delete('/jobschedules/NodeSDKTestSchedule?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'f337dc98-bb2b-4f89-8497-be187db018f0', + 'request-id': 'd958e710-2f14-4a9e-85ab-e40342164481', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:52:04 GMT', + date: 'Fri, 09 Mar 2018 23:25:26 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/jobschedules/NodeSDKTestSchedule?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .delete('/jobschedules/NodeSDKTestSchedule?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'f337dc98-bb2b-4f89-8497-be187db018f0', + 'request-id': 'd958e710-2f14-4a9e-85ab-e40342164481', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:52:04 GMT', + date: 'Fri, 09 Mar 2018 23:25:26 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_job_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_job_successfully.nock.js index 32fc8cd6dd..7f8b0b3d65 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_job_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_job_successfully.nock.js @@ -1,34 +1,34 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/jobs/HelloWorldJobNodeSDKTest?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .delete('/jobs/HelloWorldJobNodeSDKTest?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '411b1047-da8a-4fd4-9858-3f863e0e30b6', + 'request-id': '184d98f5-9cad-4169-8a21-cbf29dec0eb0', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:51:59 GMT', + date: 'Fri, 09 Mar 2018 23:05:11 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/jobs/HelloWorldJobNodeSDKTest?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .delete('/jobs/HelloWorldJobNodeSDKTest?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '411b1047-da8a-4fd4-9858-3f863e0e30b6', + 'request-id': '184d98f5-9cad-4169-8a21-cbf29dec0eb0', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:51:59 GMT', + date: 'Fri, 09 Mar 2018 23:05:11 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_pool_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_pool_successfully.nock.js index cec6c59757..fd31d40e5d 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_pool_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_pool_successfully.nock.js @@ -1,34 +1,34 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/pools/nodesdktestpool1?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .delete('/pools/nodesdktestpool1?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '650b4326-3767-4367-bfe1-bec255cf1322', + 'request-id': '106267f1-7e7f-4a08-857f-f344d5e292a0', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:52:05 GMT', + date: 'Fri, 09 Mar 2018 23:05:15 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/pools/nodesdktestpool1?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .delete('/pools/nodesdktestpool1?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '650b4326-3767-4367-bfe1-bec255cf1322', + 'request-id': '106267f1-7e7f-4a08-857f-f344d5e292a0', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:52:05 GMT', + date: 'Fri, 09 Mar 2018 23:05:15 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_second_pool_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_second_pool_successfully.nock.js index 1898569f9f..9460fa67d2 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_second_pool_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_second_pool_successfully.nock.js @@ -1,34 +1,34 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/pools/nodesdktestpool2?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .delete('/pools/nodesdktestpool2?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '494efeda-5586-4ea1-b6e8-29d60e97b3e8', + 'request-id': '722efb09-8dd3-4955-acfe-c454cbb9d8f6', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:52:06 GMT', + date: 'Fri, 09 Mar 2018 23:05:15 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/pools/nodesdktestpool2?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .delete('/pools/nodesdktestpool2?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '494efeda-5586-4ea1-b6e8-29d60e97b3e8', + 'request-id': '722efb09-8dd3-4955-acfe-c454cbb9d8f6', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:52:06 GMT', + date: 'Fri, 09 Mar 2018 23:05:15 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_second_task_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_second_task_successfully.nock.js index 63a50514cd..c83f1b125d 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_second_task_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_second_task_successfully.nock.js @@ -1,34 +1,34 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .delete('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2?api-version=2018-03-01.6.1') .reply(200, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'd9b8f3bb-dff0-4c46-8ca4-3b449aa456be', + 'request-id': '9263a10e-9b77-4a54-82cc-1fd0be014731', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:51:55 GMT', + date: 'Fri, 09 Mar 2018 23:05:09 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .delete('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2?api-version=2018-03-01.6.1') .reply(200, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'd9b8f3bb-dff0-4c46-8ca4-3b449aa456be', + 'request-id': '9263a10e-9b77-4a54-82cc-1fd0be014731', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:51:55 GMT', + date: 'Fri, 09 Mar 2018 23:05:09 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_task_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_task_successfully.nock.js index cc5d4b2062..c9ca8bd155 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_task_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_a_task_successfully.nock.js @@ -1,34 +1,34 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .delete('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask?api-version=2018-03-01.6.1') .reply(200, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '3b716b5e-48e0-4a58-87b1-e1ffc0a8fceb', + 'request-id': 'b31d6c28-4220-498a-a519-74915e34731a', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:51:53 GMT', + date: 'Fri, 09 Mar 2018 23:05:08 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .delete('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask?api-version=2018-03-01.6.1') .reply(200, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '3b716b5e-48e0-4a58-87b1-e1ffc0a8fceb', + 'request-id': 'b31d6c28-4220-498a-a519-74915e34731a', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:51:53 GMT', + date: 'Fri, 09 Mar 2018 23:05:08 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_file_from_node_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_file_from_node_successfully.nock.js index 3e33d179ab..6323d19b50 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_file_from_node_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_file_from_node_successfully.nock.js @@ -1,34 +1,34 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/pools/nodesdktestpool1/nodes/tvm-115883067_2-20171002t213150z/files/startup%2Fwd%2Fhello.txt?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .delete('/pools/nodesdktestpool1/nodes/tvm-3840119875_2-20180309t224543z/files/startup%2Fwd%2Fhello.txt?api-version=2018-03-01.6.1') .reply(200, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '21f77416-7498-43a8-8699-ef90496830f0', + 'request-id': 'c845a267-f7f3-4e87-bf0f-8bf18fe1ee37', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:51:51 GMT', + date: 'Fri, 09 Mar 2018 23:05:07 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/pools/nodesdktestpool1/nodes/tvm-115883067_2-20171002t213150z/files/startup%2Fwd%2Fhello.txt?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .delete('/pools/nodesdktestpool1/nodes/tvm-3840119875_2-20180309t224543z/files/startup%2Fwd%2Fhello.txt?api-version=2018-03-01.6.1') .reply(200, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '21f77416-7498-43a8-8699-ef90496830f0', + 'request-id': 'c845a267-f7f3-4e87-bf0f-8bf18fe1ee37', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:51:51 GMT', + date: 'Fri, 09 Mar 2018 23:05:07 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_file_from_task_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_file_from_task_successfully.nock.js index 3a0a0b9a6c..2b7a3bc3b2 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_file_from_task_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_delete_file_from_task_successfully.nock.js @@ -1,34 +1,34 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files/stderr.txt?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .delete('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files/stderr.txt?api-version=2018-03-01.6.1') .reply(200, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'ad59bc57-91ab-4d6a-a8c8-513fa4141f7b', + 'request-id': '17b877ce-6cc3-4a31-a040-1a936ab4b34f', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:48:10 GMT', + date: 'Fri, 09 Mar 2018 23:01:24 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files/stderr.txt?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .delete('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files/stderr.txt?api-version=2018-03-01.6.1') .reply(200, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'ad59bc57-91ab-4d6a-a8c8-513fa4141f7b', + 'request-id': '17b877ce-6cc3-4a31-a040-1a936ab4b34f', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:48:10 GMT', + date: 'Fri, 09 Mar 2018 23:01:24 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_disable_a_job_schedule_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_disable_a_job_schedule_successfully.nock.js index 8bf1797e12..5059a3fa64 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_disable_a_job_schedule_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_disable_a_job_schedule_successfully.nock.js @@ -1,40 +1,40 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .post('/jobschedules/NodeSDKTestSchedule/disable?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .post('/jobschedules/NodeSDKTestSchedule/disable?api-version=2018-03-01.6.1') .reply(204, "", { 'content-length': '0', - 'last-modified': 'Mon, 02 Oct 2017 21:52:03 GMT', - etag: '0x8D509DFD133F663', + 'last-modified': 'Fri, 09 Mar 2018 23:25:25 GMT', + etag: '0x8D586150995B13C', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'ca7723ec-d649-4250-a532-8423e7a08f93', + 'request-id': '824d5457-1c7d-4cb6-9e64-f3b4c3d8886e', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobschedules/NodeSDKTestSchedule/disable', - date: 'Mon, 02 Oct 2017 21:52:03 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobschedules/NodeSDKTestSchedule/disable', + date: 'Fri, 09 Mar 2018 23:25:25 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .post('/jobschedules/NodeSDKTestSchedule/disable?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .post('/jobschedules/NodeSDKTestSchedule/disable?api-version=2018-03-01.6.1') .reply(204, "", { 'content-length': '0', - 'last-modified': 'Mon, 02 Oct 2017 21:52:03 GMT', - etag: '0x8D509DFD133F663', + 'last-modified': 'Fri, 09 Mar 2018 23:25:25 GMT', + etag: '0x8D586150995B13C', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'ca7723ec-d649-4250-a532-8423e7a08f93', + 'request-id': '824d5457-1c7d-4cb6-9e64-f3b4c3d8886e', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobschedules/NodeSDKTestSchedule/disable', - date: 'Mon, 02 Oct 2017 21:52:03 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobschedules/NodeSDKTestSchedule/disable', + date: 'Fri, 09 Mar 2018 23:25:25 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_disable_a_job_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_disable_a_job_successfully.nock.js index d253d02d85..c2ea2e1d9f 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_disable_a_job_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_disable_a_job_successfully.nock.js @@ -1,42 +1,42 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/jobs/HelloWorldJobNodeSDKTest/disable?api-version=2017-09-01.6.0', '*') +.post('/jobs/HelloWorldJobNodeSDKTest/disable?api-version=2018-03-01.6.1', '*') .reply(202, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:51:57 GMT', - etag: '0x8D509DFCDCBC45C', + 'last-modified': 'Fri, 09 Mar 2018 23:05:10 GMT', + etag: '0x8D58612352B67B2', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'c48562bd-833a-4b9f-89dd-9de26a288764', + 'request-id': '72bbd7cc-44d4-4a8a-a2ef-a8a5bb068beb', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/disable', - date: 'Mon, 02 Oct 2017 21:51:57 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/disable', + date: 'Fri, 09 Mar 2018 23:05:10 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/jobs/HelloWorldJobNodeSDKTest/disable?api-version=2017-09-01.6.0', '*') +.post('/jobs/HelloWorldJobNodeSDKTest/disable?api-version=2018-03-01.6.1', '*') .reply(202, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:51:57 GMT', - etag: '0x8D509DFCDCBC45C', + 'last-modified': 'Fri, 09 Mar 2018 23:05:10 GMT', + etag: '0x8D58612352B67B2', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'c48562bd-833a-4b9f-89dd-9de26a288764', + 'request-id': '72bbd7cc-44d4-4a8a-a2ef-a8a5bb068beb', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/disable', - date: 'Mon, 02 Oct 2017 21:51:57 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/disable', + date: 'Fri, 09 Mar 2018 23:05:10 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_disable_autoscale_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_disable_autoscale_successfully.nock.js index 893d05730d..52b8a888ac 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_disable_autoscale_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_disable_autoscale_successfully.nock.js @@ -1,40 +1,40 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .post('/pools/nodesdktestpool1/disableautoscale?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .post('/pools/nodesdktestpool1/disableautoscale?api-version=2018-03-01.6.1') .reply(200, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:45:53 GMT', - etag: '0x8D509DEF4F1A68B', + 'last-modified': 'Fri, 09 Mar 2018 22:59:20 GMT', + etag: '0x8D5861164D233AE', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'c76e15a1-1215-4bfd-96dd-cda795a299f3', + 'request-id': '63362ee3-278f-4cec-a36d-7e15d6aeca44', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/disableautoscale', - date: 'Mon, 02 Oct 2017 21:45:53 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/disableautoscale', + date: 'Fri, 09 Mar 2018 22:59:20 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .post('/pools/nodesdktestpool1/disableautoscale?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .post('/pools/nodesdktestpool1/disableautoscale?api-version=2018-03-01.6.1') .reply(200, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:45:53 GMT', - etag: '0x8D509DEF4F1A68B', + 'last-modified': 'Fri, 09 Mar 2018 22:59:20 GMT', + etag: '0x8D5861164D233AE', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'c76e15a1-1215-4bfd-96dd-cda795a299f3', + 'request-id': '63362ee3-278f-4cec-a36d-7e15d6aeca44', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/disableautoscale', - date: 'Mon, 02 Oct 2017 21:45:53 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/disableautoscale', + date: 'Fri, 09 Mar 2018 22:59:20 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_disable_scheduling_on_a_compute_node_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_disable_scheduling_on_a_compute_node_successfully.nock.js index 9571aee693..0f3ad06374 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_disable_scheduling_on_a_compute_node_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_disable_scheduling_on_a_compute_node_successfully.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .post('/pools/nodesdktestpool1/nodes/tvm-115883067_2-20171002t213150z/disablescheduling?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .post('/pools/nodesdktestpool1/nodes/tvm-3840119875_2-20180309t224543z/disablescheduling?api-version=2018-03-01.6.1') .reply(200, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'cfa7c33f-eb1f-4ec5-bf0e-8dab3df9762d', + 'request-id': 'c05ac55c-c688-493d-afa4-01d7c1be17a9', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_2-20171002t213150z/disablescheduling', - date: 'Mon, 02 Oct 2017 21:45:47 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_2-20180309t224543z/disablescheduling', + date: 'Fri, 09 Mar 2018 22:59:15 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .post('/pools/nodesdktestpool1/nodes/tvm-115883067_2-20171002t213150z/disablescheduling?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .post('/pools/nodesdktestpool1/nodes/tvm-3840119875_2-20180309t224543z/disablescheduling?api-version=2018-03-01.6.1') .reply(200, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'cfa7c33f-eb1f-4ec5-bf0e-8dab3df9762d', + 'request-id': 'c05ac55c-c688-493d-afa4-01d7c1be17a9', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_2-20171002t213150z/disablescheduling', - date: 'Mon, 02 Oct 2017 21:45:47 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_2-20180309t224543z/disablescheduling', + date: 'Fri, 09 Mar 2018 22:59:15 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_enable_a_job_schedule_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_enable_a_job_schedule_successfully.nock.js index f6adf21f8b..3c9096d56b 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_enable_a_job_schedule_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_enable_a_job_schedule_successfully.nock.js @@ -1,40 +1,40 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .post('/jobschedules/NodeSDKTestSchedule/enable?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .post('/jobschedules/NodeSDKTestSchedule/enable?api-version=2018-03-01.6.1') .reply(204, "", { 'content-length': '0', - 'last-modified': 'Mon, 02 Oct 2017 21:52:03 GMT', - etag: '0x8D509DFD17A99F9', + 'last-modified': 'Fri, 09 Mar 2018 23:25:25 GMT', + etag: '0x8D5861509AC98D3', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'aca6985a-4dcc-422a-98fb-91dc2e43da3a', + 'request-id': '322ec699-aef2-499e-b00e-d2f0d4aa891f', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobschedules/NodeSDKTestSchedule/enable', - date: 'Mon, 02 Oct 2017 21:52:04 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobschedules/NodeSDKTestSchedule/enable', + date: 'Fri, 09 Mar 2018 23:25:25 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .post('/jobschedules/NodeSDKTestSchedule/enable?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .post('/jobschedules/NodeSDKTestSchedule/enable?api-version=2018-03-01.6.1') .reply(204, "", { 'content-length': '0', - 'last-modified': 'Mon, 02 Oct 2017 21:52:03 GMT', - etag: '0x8D509DFD17A99F9', + 'last-modified': 'Fri, 09 Mar 2018 23:25:25 GMT', + etag: '0x8D5861509AC98D3', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'aca6985a-4dcc-422a-98fb-91dc2e43da3a', + 'request-id': '322ec699-aef2-499e-b00e-d2f0d4aa891f', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobschedules/NodeSDKTestSchedule/enable', - date: 'Mon, 02 Oct 2017 21:52:04 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobschedules/NodeSDKTestSchedule/enable', + date: 'Fri, 09 Mar 2018 23:25:25 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_enable_a_job_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_enable_a_job_successfully.nock.js index 895522effa..865bd32fd0 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_enable_a_job_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_enable_a_job_successfully.nock.js @@ -1,40 +1,40 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .post('/jobs/HelloWorldJobNodeSDKTest/enable?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .post('/jobs/HelloWorldJobNodeSDKTest/enable?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:51:58 GMT', - etag: '0x8D509DFCE192DAA', + 'last-modified': 'Fri, 09 Mar 2018 23:05:10 GMT', + etag: '0x8D5861235458AC4', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '69e07355-0548-4c27-b8e5-2b6aa59fa33f', + 'request-id': '2599bd2d-c5e3-4cd8-8cfc-6f162af95cf6', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/enable', - date: 'Mon, 02 Oct 2017 21:51:57 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/enable', + date: 'Fri, 09 Mar 2018 23:05:10 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .post('/jobs/HelloWorldJobNodeSDKTest/enable?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .post('/jobs/HelloWorldJobNodeSDKTest/enable?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:51:58 GMT', - etag: '0x8D509DFCE192DAA', + 'last-modified': 'Fri, 09 Mar 2018 23:05:10 GMT', + etag: '0x8D5861235458AC4', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '69e07355-0548-4c27-b8e5-2b6aa59fa33f', + 'request-id': '2599bd2d-c5e3-4cd8-8cfc-6f162af95cf6', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/enable', - date: 'Mon, 02 Oct 2017 21:51:57 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/enable', + date: 'Fri, 09 Mar 2018 23:05:10 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_enable_autoscale_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_enable_autoscale_successfully.nock.js index 7c150ac5d1..bdd70bf514 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_enable_autoscale_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_enable_autoscale_successfully.nock.js @@ -1,42 +1,42 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools/nodesdktestpool1/enableautoscale?api-version=2017-09-01.6.0', '*') +.post('/pools/nodesdktestpool1/enableautoscale?api-version=2018-03-01.6.1', '*') .reply(200, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:45:52 GMT', - etag: '0x8D509DEF402CF18', + 'last-modified': 'Fri, 09 Mar 2018 22:59:20 GMT', + etag: '0x8D586116485B99A', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'b2db3d5a-b31b-43ee-bba4-1fccceda0c93', + 'request-id': '2e6c5659-7067-4ea8-bbdf-6ca404069774', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/enableautoscale', - date: 'Mon, 02 Oct 2017 21:45:51 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/enableautoscale', + date: 'Fri, 09 Mar 2018 22:59:20 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools/nodesdktestpool1/enableautoscale?api-version=2017-09-01.6.0', '*') +.post('/pools/nodesdktestpool1/enableautoscale?api-version=2018-03-01.6.1', '*') .reply(200, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:45:52 GMT', - etag: '0x8D509DEF402CF18', + 'last-modified': 'Fri, 09 Mar 2018 22:59:20 GMT', + etag: '0x8D586116485B99A', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'b2db3d5a-b31b-43ee-bba4-1fccceda0c93', + 'request-id': '2e6c5659-7067-4ea8-bbdf-6ca404069774', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/enableautoscale', - date: 'Mon, 02 Oct 2017 21:45:51 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/enableautoscale', + date: 'Fri, 09 Mar 2018 22:59:20 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_enable_scheduling_on_a_compute_node_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_enable_scheduling_on_a_compute_node_successfully.nock.js index 36ab2d6e9f..ba9ef60b43 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_enable_scheduling_on_a_compute_node_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_enable_scheduling_on_a_compute_node_successfully.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .post('/pools/nodesdktestpool1/nodes/tvm-115883067_2-20171002t213150z/enablescheduling?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .post('/pools/nodesdktestpool1/nodes/tvm-3840119875_2-20180309t224543z/enablescheduling?api-version=2018-03-01.6.1') .reply(200, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '4d0fd30b-35ad-4af5-8ff7-2d8f8c82be1e', + 'request-id': '5663bac7-692a-4697-9079-4ddae47faaf8', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_2-20171002t213150z/enablescheduling', - date: 'Mon, 02 Oct 2017 21:45:49 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_2-20180309t224543z/enablescheduling', + date: 'Fri, 09 Mar 2018 22:59:17 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .post('/pools/nodesdktestpool1/nodes/tvm-115883067_2-20171002t213150z/enablescheduling?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .post('/pools/nodesdktestpool1/nodes/tvm-3840119875_2-20180309t224543z/enablescheduling?api-version=2018-03-01.6.1') .reply(200, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '4d0fd30b-35ad-4af5-8ff7-2d8f8c82be1e', + 'request-id': '5663bac7-692a-4697-9079-4ddae47faaf8', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_2-20171002t213150z/enablescheduling', - date: 'Mon, 02 Oct 2017 21:45:49 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_2-20180309t224543z/enablescheduling', + date: 'Fri, 09 Mar 2018 22:59:17 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_evaluate_pool_autoscale_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_evaluate_pool_autoscale_successfully.nock.js index aa55c86652..eea00e8563 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_evaluate_pool_autoscale_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_evaluate_pool_autoscale_successfully.nock.js @@ -1,40 +1,40 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools/nodesdktestpool1/evaluateautoscale?api-version=2017-09-01.6.0', '*') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.AutoScaleRun\",\"timestamp\":\"2017-10-02T21:45:52.4310003Z\",\"results\":\"$TargetDedicatedNodes=3;$TargetLowPriorityNodes=0;$NodeDeallocationOption=requeue\"\r\n}", { 'transfer-encoding': 'chunked', +.post('/pools/nodesdktestpool1/evaluateautoscale?api-version=2018-03-01.6.1', '*') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.AutoScaleRun\",\"timestamp\":\"2018-03-09T22:59:20.3729087Z\",\"results\":\"$TargetDedicatedNodes=3;$TargetLowPriorityNodes=0;$NodeDeallocationOption=requeue\"\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'bd50d6ab-14c8-44e4-890b-29e19edeb31b', + 'request-id': 'e187fac2-abcb-47c5-8f8f-8ef841479375', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/evaluateautoscale', - date: 'Mon, 02 Oct 2017 21:45:52 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/evaluateautoscale', + date: 'Fri, 09 Mar 2018 22:59:20 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools/nodesdktestpool1/evaluateautoscale?api-version=2017-09-01.6.0', '*') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.AutoScaleRun\",\"timestamp\":\"2017-10-02T21:45:52.4310003Z\",\"results\":\"$TargetDedicatedNodes=3;$TargetLowPriorityNodes=0;$NodeDeallocationOption=requeue\"\r\n}", { 'transfer-encoding': 'chunked', +.post('/pools/nodesdktestpool1/evaluateautoscale?api-version=2018-03-01.6.1', '*') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.AutoScaleRun\",\"timestamp\":\"2018-03-09T22:59:20.3729087Z\",\"results\":\"$TargetDedicatedNodes=3;$TargetLowPriorityNodes=0;$NodeDeallocationOption=requeue\"\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'bd50d6ab-14c8-44e4-890b-29e19edeb31b', + 'request-id': 'e187fac2-abcb-47c5-8f8f-8ef841479375', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/evaluateautoscale', - date: 'Mon, 02 Oct 2017 21:45:52 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/evaluateautoscale', + date: 'Fri, 09 Mar 2018 22:59:20 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_fail_to_cancel_deleting_a_certificate.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_fail_to_cancel_deleting_a_certificate.nock.js index 8695c3d5f3..d83078a2b8 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_fail_to_cancel_deleting_a_certificate.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_fail_to_cancel_deleting_a_certificate.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .post('/certificates(thumbprintAlgorithm=sha1,thumbprint=cff2ab63c8c955aaf71989efa641b906558d9fb7)/canceldelete?api-version=2017-09-01.6.0') - .reply(409, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\"code\":\"CertificateBeingDeleted\",\"message\":{\r\n \"lang\":\"en-US\",\"value\":\"The specified certificate has been marked for deletion and is being deleted.\\nRequestId:48678d5a-dfd2-490c-ad48-e4446d07c033\\nTime:2017-10-02T21:52:07.9430194Z\"\r\n }\r\n}", { 'content-length': '393', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .post('/certificates(thumbprintAlgorithm=sha1,thumbprint=cff2ab63c8c955aaf71989efa641b906558d9fb7)/canceldelete?api-version=2018-03-01.6.1') + .reply(409, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\"code\":\"CertificateBeingDeleted\",\"message\":{\r\n \"lang\":\"en-US\",\"value\":\"The specified certificate has been marked for deletion and is being deleted.\\nRequestId:a4e52ce5-cfae-4a3a-9ad6-1522293041ff\\nTime:2018-03-09T23:05:15.9724272Z\"\r\n }\r\n}", { 'content-length': '389', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '48678d5a-dfd2-490c-ad48-e4446d07c033', + 'request-id': 'a4e52ce5-cfae-4a3a-9ad6-1522293041ff', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:52:07 GMT', + date: 'Fri, 09 Mar 2018 23:05:15 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .post('/certificates(thumbprintAlgorithm=sha1,thumbprint=cff2ab63c8c955aaf71989efa641b906558d9fb7)/canceldelete?api-version=2017-09-01.6.0') - .reply(409, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\"code\":\"CertificateBeingDeleted\",\"message\":{\r\n \"lang\":\"en-US\",\"value\":\"The specified certificate has been marked for deletion and is being deleted.\\nRequestId:48678d5a-dfd2-490c-ad48-e4446d07c033\\nTime:2017-10-02T21:52:07.9430194Z\"\r\n }\r\n}", { 'content-length': '393', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .post('/certificates(thumbprintAlgorithm=sha1,thumbprint=cff2ab63c8c955aaf71989efa641b906558d9fb7)/canceldelete?api-version=2018-03-01.6.1') + .reply(409, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\"code\":\"CertificateBeingDeleted\",\"message\":{\r\n \"lang\":\"en-US\",\"value\":\"The specified certificate has been marked for deletion and is being deleted.\\nRequestId:a4e52ce5-cfae-4a3a-9ad6-1522293041ff\\nTime:2018-03-09T23:05:15.9724272Z\"\r\n }\r\n}", { 'content-length': '389', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '48678d5a-dfd2-490c-ad48-e4446d07c033', + 'request-id': 'a4e52ce5-cfae-4a3a-9ad6-1522293041ff', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:52:07 GMT', + date: 'Fri, 09 Mar 2018 23:05:15 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_fail_to_delete_a_non-existant_pool.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_fail_to_delete_a_non-existant_pool.nock.js index 5a29209175..e3a2e905c5 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_fail_to_delete_a_non-existant_pool.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_fail_to_delete_a_non-existant_pool.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/pools/nodesdktestpool1?api-version=2017-09-01.6.0') - .reply(409, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\"code\":\"PoolBeingDeleted\",\"message\":{\r\n \"lang\":\"en-US\",\"value\":\"The specified pool has been marked for deletion and is being reclaimed.\\nRequestId:6c01a7ab-9e38-4846-850f-8e2bdd85231a\\nTime:2017-10-02T21:52:07.1839727Z\"\r\n }\r\n}", { 'content-length': '381', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .delete('/pools/nodesdktestpool1?api-version=2018-03-01.6.1') + .reply(409, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\"code\":\"PoolBeingDeleted\",\"message\":{\r\n \"lang\":\"en-US\",\"value\":\"The specified pool has been marked for deletion and is being reclaimed.\\nRequestId:970374de-d689-4984-b20c-673222dbfeb1\\nTime:2018-03-09T23:05:15.5542581Z\"\r\n }\r\n}", { 'content-length': '377', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '6c01a7ab-9e38-4846-850f-8e2bdd85231a', + 'request-id': '970374de-d689-4984-b20c-673222dbfeb1', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:52:07 GMT', + date: 'Fri, 09 Mar 2018 23:05:15 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .delete('/pools/nodesdktestpool1?api-version=2017-09-01.6.0') - .reply(409, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\"code\":\"PoolBeingDeleted\",\"message\":{\r\n \"lang\":\"en-US\",\"value\":\"The specified pool has been marked for deletion and is being reclaimed.\\nRequestId:6c01a7ab-9e38-4846-850f-8e2bdd85231a\\nTime:2017-10-02T21:52:07.1839727Z\"\r\n }\r\n}", { 'content-length': '381', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .delete('/pools/nodesdktestpool1?api-version=2018-03-01.6.1') + .reply(409, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\"code\":\"PoolBeingDeleted\",\"message\":{\r\n \"lang\":\"en-US\",\"value\":\"The specified pool has been marked for deletion and is being reclaimed.\\nRequestId:970374de-d689-4984-b20c-673222dbfeb1\\nTime:2018-03-09T23:05:15.5542581Z\"\r\n }\r\n}", { 'content-length': '377', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '6c01a7ab-9e38-4846-850f-8e2bdd85231a', + 'request-id': '970374de-d689-4984-b20c-673222dbfeb1', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:52:07 GMT', + date: 'Fri, 09 Mar 2018 23:05:15 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_fail_to_evaluate_invalid_autoscale_formula.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_fail_to_evaluate_invalid_autoscale_formula.nock.js index f965d5393f..cdf05abf91 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_fail_to_evaluate_invalid_autoscale_formula.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_fail_to_evaluate_invalid_autoscale_formula.nock.js @@ -1,40 +1,40 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools/nodesdktestpool1/evaluateautoscale?api-version=2017-09-01.6.0', '*') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.AutoScaleRun\",\"timestamp\":\"2017-10-02T21:45:53.2917211Z\",\"results\":\"$TargetDedicatedNodes=2;$TargetLowPriorityNodes=0;$NodeDeallocationOption=requeue\",\"error\":{\r\n \"code\":\"AutoScalingFormulaEvaluationError\",\"message\":\"The specified auto-scaling formula has evaluation error\",\"values\":[\r\n {\r\n \"name\":\"Message\",\"value\":\"Line 1, Col 1: Undefined symbol: something_useless\"\r\n }\r\n ]\r\n }\r\n}", { 'transfer-encoding': 'chunked', +.post('/pools/nodesdktestpool1/evaluateautoscale?api-version=2018-03-01.6.1', '*') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.AutoScaleRun\",\"timestamp\":\"2018-03-09T22:59:20.5249282Z\",\"results\":\"$TargetDedicatedNodes=2;$TargetLowPriorityNodes=0;$NodeDeallocationOption=requeue\",\"error\":{\r\n \"code\":\"AutoScalingFormulaEvaluationError\",\"message\":\"The specified auto-scaling formula has evaluation error\",\"values\":[\r\n {\r\n \"name\":\"Message\",\"value\":\"Line 1, Col 1: Undefined symbol: something_useless\"\r\n }\r\n ]\r\n }\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '59dfb01c-2c26-4aa1-979c-89dc6c5b8687', + 'request-id': '7dc22e1f-cb05-46d3-bd45-2db0878e28d1', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/evaluateautoscale', - date: 'Mon, 02 Oct 2017 21:45:52 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/evaluateautoscale', + date: 'Fri, 09 Mar 2018 22:59:20 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools/nodesdktestpool1/evaluateautoscale?api-version=2017-09-01.6.0', '*') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.AutoScaleRun\",\"timestamp\":\"2017-10-02T21:45:53.2917211Z\",\"results\":\"$TargetDedicatedNodes=2;$TargetLowPriorityNodes=0;$NodeDeallocationOption=requeue\",\"error\":{\r\n \"code\":\"AutoScalingFormulaEvaluationError\",\"message\":\"The specified auto-scaling formula has evaluation error\",\"values\":[\r\n {\r\n \"name\":\"Message\",\"value\":\"Line 1, Col 1: Undefined symbol: something_useless\"\r\n }\r\n ]\r\n }\r\n}", { 'transfer-encoding': 'chunked', +.post('/pools/nodesdktestpool1/evaluateautoscale?api-version=2018-03-01.6.1', '*') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.AutoScaleRun\",\"timestamp\":\"2018-03-09T22:59:20.5249282Z\",\"results\":\"$TargetDedicatedNodes=2;$TargetLowPriorityNodes=0;$NodeDeallocationOption=requeue\",\"error\":{\r\n \"code\":\"AutoScalingFormulaEvaluationError\",\"message\":\"The specified auto-scaling formula has evaluation error\",\"values\":[\r\n {\r\n \"name\":\"Message\",\"value\":\"Line 1, Col 1: Undefined symbol: something_useless\"\r\n }\r\n ]\r\n }\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '59dfb01c-2c26-4aa1-979c-89dc6c5b8687', + 'request-id': '7dc22e1f-cb05-46d3-bd45-2db0878e28d1', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/evaluateautoscale', - date: 'Mon, 02 Oct 2017 21:45:52 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/evaluateautoscale', + date: 'Fri, 09 Mar 2018 22:59:20 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_fail_to_job_preprelease_status.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_fail_to_job_preprelease_status.nock.js index b78ba98581..9d7d1ffb97 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_fail_to_job_preprelease_status.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_fail_to_job_preprelease_status.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobs/HelloWorldJobNodeSDKTest/jobpreparationandreleasetaskstatus?api-version=2017-09-01.6.0') - .reply(409, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\"code\":\"JobPreparationTaskOrReleaseTaskNotSpecified\",\"message\":{\r\n \"lang\":\"en-US\",\"value\":\"The specified job does not have either job preparation task or job release task.\\nRequestId:1a715747-09ee-4a32-9d9a-3d7c7c8505af\\nTime:2017-10-02T21:51:57.6770839Z\"\r\n }\r\n}", { 'content-length': '417', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/jobs/HelloWorldJobNodeSDKTest/jobpreparationandreleasetaskstatus?api-version=2018-03-01.6.1') + .reply(409, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\"code\":\"JobPreparationTaskOrReleaseTaskNotSpecified\",\"message\":{\r\n \"lang\":\"en-US\",\"value\":\"The specified job does not have either job preparation task or job release task.\\nRequestId:ea99a173-04f2-4279-8cce-9af8a5e3784e\\nTime:2018-03-09T23:05:10.0856820Z\"\r\n }\r\n}", { 'content-length': '413', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '1a715747-09ee-4a32-9d9a-3d7c7c8505af', + 'request-id': 'ea99a173-04f2-4279-8cce-9af8a5e3784e', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:51:57 GMT', + date: 'Fri, 09 Mar 2018 23:05:09 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobs/HelloWorldJobNodeSDKTest/jobpreparationandreleasetaskstatus?api-version=2017-09-01.6.0') - .reply(409, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\"code\":\"JobPreparationTaskOrReleaseTaskNotSpecified\",\"message\":{\r\n \"lang\":\"en-US\",\"value\":\"The specified job does not have either job preparation task or job release task.\\nRequestId:1a715747-09ee-4a32-9d9a-3d7c7c8505af\\nTime:2017-10-02T21:51:57.6770839Z\"\r\n }\r\n}", { 'content-length': '417', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/jobs/HelloWorldJobNodeSDKTest/jobpreparationandreleasetaskstatus?api-version=2018-03-01.6.1') + .reply(409, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\"code\":\"JobPreparationTaskOrReleaseTaskNotSpecified\",\"message\":{\r\n \"lang\":\"en-US\",\"value\":\"The specified job does not have either job preparation task or job release task.\\nRequestId:ea99a173-04f2-4279-8cce-9af8a5e3784e\\nTime:2018-03-09T23:05:10.0856820Z\"\r\n }\r\n}", { 'content-length': '413', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '1a715747-09ee-4a32-9d9a-3d7c7c8505af', + 'request-id': 'ea99a173-04f2-4279-8cce-9af8a5e3784e', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:51:57 GMT', + date: 'Fri, 09 Mar 2018 23:05:09 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_fail_to_list_pools_with_invalid_max.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_fail_to_list_pools_with_invalid_max.nock.js index 296d4c47c4..9e01cf1469 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_fail_to_list_pools_with_invalid_max.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_fail_to_list_pools_with_invalid_max.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools?api-version=2017-09-01.6.0&maxresults=-5') - .reply(400, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\"code\":\"InvalidQueryParameterValue\",\"message\":{\r\n \"lang\":\"en-US\",\"value\":\"Value for one of the query parameters specified in the request URI is invalid.\\nRequestId:ad47e050-4412-44be-8fc6-13fc44b3260f\\nTime:2017-10-02T21:45:57.2706912Z\"\r\n },\"values\":[\r\n {\r\n \"key\":\"QueryParameterName\",\"value\":\"maxresults\"\r\n },{\r\n \"key\":\"QueryParameterValue\",\"value\":\"-5\"\r\n },{\r\n \"key\":\"Reason\",\"value\":\"MaxResults cannot be less than 1\"\r\n }\r\n ]\r\n}", { 'content-length': '614', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/pools?api-version=2018-03-01.6.1&maxresults=-5') + .reply(400, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\"code\":\"InvalidQueryParameterValue\",\"message\":{\r\n \"lang\":\"en-US\",\"value\":\"Value for one of the query parameters specified in the request URI is invalid.\\nRequestId:facbc188-8510-42d9-8ae9-605842ec7a52\\nTime:2018-03-09T22:59:21.7659029Z\"\r\n },\"values\":[\r\n {\r\n \"key\":\"QueryParameterName\",\"value\":\"maxresults\"\r\n },{\r\n \"key\":\"QueryParameterValue\",\"value\":\"-5\"\r\n },{\r\n \"key\":\"Reason\",\"value\":\"MaxResults cannot be less than 1\"\r\n }\r\n ]\r\n}", { 'content-length': '610', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'ad47e050-4412-44be-8fc6-13fc44b3260f', + 'request-id': 'facbc188-8510-42d9-8ae9-605842ec7a52', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:45:57 GMT', + date: 'Fri, 09 Mar 2018 22:59:21 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools?api-version=2017-09-01.6.0&maxresults=-5') - .reply(400, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\"code\":\"InvalidQueryParameterValue\",\"message\":{\r\n \"lang\":\"en-US\",\"value\":\"Value for one of the query parameters specified in the request URI is invalid.\\nRequestId:ad47e050-4412-44be-8fc6-13fc44b3260f\\nTime:2017-10-02T21:45:57.2706912Z\"\r\n },\"values\":[\r\n {\r\n \"key\":\"QueryParameterName\",\"value\":\"maxresults\"\r\n },{\r\n \"key\":\"QueryParameterValue\",\"value\":\"-5\"\r\n },{\r\n \"key\":\"Reason\",\"value\":\"MaxResults cannot be less than 1\"\r\n }\r\n ]\r\n}", { 'content-length': '614', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/pools?api-version=2018-03-01.6.1&maxresults=-5') + .reply(400, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\"code\":\"InvalidQueryParameterValue\",\"message\":{\r\n \"lang\":\"en-US\",\"value\":\"Value for one of the query parameters specified in the request URI is invalid.\\nRequestId:facbc188-8510-42d9-8ae9-605842ec7a52\\nTime:2018-03-09T22:59:21.7659029Z\"\r\n },\"values\":[\r\n {\r\n \"key\":\"QueryParameterName\",\"value\":\"maxresults\"\r\n },{\r\n \"key\":\"QueryParameterValue\",\"value\":\"-5\"\r\n },{\r\n \"key\":\"Reason\",\"value\":\"MaxResults cannot be less than 1\"\r\n }\r\n ]\r\n}", { 'content-length': '610', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'ad47e050-4412-44be-8fc6-13fc44b3260f', + 'request-id': 'facbc188-8510-42d9-8ae9-605842ec7a52', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:45:57 GMT', + date: 'Fri, 09 Mar 2018 22:59:21 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_fail_to_upload_pool_node_logs_at_paas_pool.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_fail_to_upload_pool_node_logs_at_paas_pool.nock.js new file mode 100644 index 0000000000..e637cf1ed5 --- /dev/null +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_fail_to_upload_pool_node_logs_at_paas_pool.nock.js @@ -0,0 +1,38 @@ +// This file has been autogenerated. + +exports.setEnvironment = function() { + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; +}; + +exports.scopes = [[function (nock) { +var result = +nock('http://lchency4.westcentralus.batch.azure.com:443') + .filteringRequestBody(function (path) { return '*';}) +.post('/pools/nodesdktestpool1/nodes/tvm-3840119875_2-20180309t224543z/uploadbatchservicelogs?api-version=2018-03-01.6.1', '*') + .reply(403, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\"code\":\"TVMCurrentOperationUnsupported\",\"message\":{\r\n \"lang\":\"en-US\",\"value\":\"The specified compute node does not support the current operation.\\nRequestId:6d4bdc65-94c8-4913-8207-ce038396a24a\\nTime:2018-03-10T00:32:40.4967814Z\"\r\n }\r\n}", { 'content-length': '386', + 'content-type': 'application/json;odata=minimalmetadata', + server: 'Microsoft-HTTPAPI/2.0', + 'request-id': '6d4bdc65-94c8-4913-8207-ce038396a24a', + 'strict-transport-security': 'max-age=31536000; includeSubDomains', + 'x-content-type-options': 'nosniff', + dataserviceversion: '3.0', + date: 'Sat, 10 Mar 2018 00:32:40 GMT', + connection: 'close' }); + return result; }, +function (nock) { +var result = +nock('https://lchency4.westcentralus.batch.azure.com:443') + .filteringRequestBody(function (path) { return '*';}) +.post('/pools/nodesdktestpool1/nodes/tvm-3840119875_2-20180309t224543z/uploadbatchservicelogs?api-version=2018-03-01.6.1', '*') + .reply(403, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\"code\":\"TVMCurrentOperationUnsupported\",\"message\":{\r\n \"lang\":\"en-US\",\"value\":\"The specified compute node does not support the current operation.\\nRequestId:6d4bdc65-94c8-4913-8207-ce038396a24a\\nTime:2018-03-10T00:32:40.4967814Z\"\r\n }\r\n}", { 'content-length': '386', + 'content-type': 'application/json;odata=minimalmetadata', + server: 'Microsoft-HTTPAPI/2.0', + 'request-id': '6d4bdc65-94c8-4913-8207-ce038396a24a', + 'strict-transport-security': 'max-age=31536000; includeSubDomains', + 'x-content-type-options': 'nosniff', + dataserviceversion: '3.0', + date: 'Sat, 10 Mar 2018 00:32:40 GMT', + connection: 'close' }); + return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_a_compute_node_reference.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_a_compute_node_reference.nock.js index 92fc84ceb9..0b575fbddf 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_a_compute_node_reference.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_a_compute_node_reference.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools/nodesdktestpool1/nodes/tvm-115883067_1-20171002t213150z?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#nodes/@Element\",\"id\":\"tvm-115883067_1-20171002t213150z\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_1-20171002t213150z\",\"state\":\"idle\",\"schedulingState\":\"enabled\",\"stateTransitionTime\":\"2017-10-02T21:34:59.1401171Z\",\"lastBootTime\":\"2017-10-02T21:34:57.4771168Z\",\"allocationTime\":\"2017-10-02T21:31:50.8333435Z\",\"ipAddress\":\"100.74.46.149\",\"affinityId\":\"TVM:tvm-115883067_1-20171002t213150z\",\"vmSize\":\"small\",\"totalTasksRun\":0,\"totalTasksSucceeded\":0,\"runningTasksCount\":0,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"startTaskInfo\":{\r\n \"state\":\"completed\",\"startTime\":\"2017-10-02T21:34:59.1401171Z\",\"endTime\":\"2017-10-02T21:34:59.2972544Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0\r\n },\"isDedicated\":true\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/pools/nodesdktestpool1/nodes/tvm-3840119875_1-20180309t224543z?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#nodes/@Element\",\"id\":\"tvm-3840119875_1-20180309t224543z\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_1-20180309t224543z\",\"state\":\"idle\",\"schedulingState\":\"enabled\",\"stateTransitionTime\":\"2018-03-09T22:49:59.4651008Z\",\"lastBootTime\":\"2018-03-09T22:49:57.0324304Z\",\"allocationTime\":\"2018-03-09T22:45:43.713181Z\",\"ipAddress\":\"100.73.20.110\",\"affinityId\":\"TVM:tvm-3840119875_1-20180309t224543z\",\"vmSize\":\"small\",\"totalTasksRun\":0,\"totalTasksSucceeded\":0,\"runningTasksCount\":0,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"startTaskInfo\":{\r\n \"state\":\"completed\",\"startTime\":\"2018-03-09T22:49:59.4651008Z\",\"endTime\":\"2018-03-09T22:49:59.6071949Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0\r\n },\"isDedicated\":true\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'cda6bde1-4830-40d2-80b3-c91b26f9b5d0', + 'request-id': 'ef9a9bec-f74e-4071-a432-a10a77a20313', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:45:44 GMT', + date: 'Fri, 09 Mar 2018 22:59:13 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools/nodesdktestpool1/nodes/tvm-115883067_1-20171002t213150z?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#nodes/@Element\",\"id\":\"tvm-115883067_1-20171002t213150z\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_1-20171002t213150z\",\"state\":\"idle\",\"schedulingState\":\"enabled\",\"stateTransitionTime\":\"2017-10-02T21:34:59.1401171Z\",\"lastBootTime\":\"2017-10-02T21:34:57.4771168Z\",\"allocationTime\":\"2017-10-02T21:31:50.8333435Z\",\"ipAddress\":\"100.74.46.149\",\"affinityId\":\"TVM:tvm-115883067_1-20171002t213150z\",\"vmSize\":\"small\",\"totalTasksRun\":0,\"totalTasksSucceeded\":0,\"runningTasksCount\":0,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"startTaskInfo\":{\r\n \"state\":\"completed\",\"startTime\":\"2017-10-02T21:34:59.1401171Z\",\"endTime\":\"2017-10-02T21:34:59.2972544Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0\r\n },\"isDedicated\":true\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/pools/nodesdktestpool1/nodes/tvm-3840119875_1-20180309t224543z?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#nodes/@Element\",\"id\":\"tvm-3840119875_1-20180309t224543z\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_1-20180309t224543z\",\"state\":\"idle\",\"schedulingState\":\"enabled\",\"stateTransitionTime\":\"2018-03-09T22:49:59.4651008Z\",\"lastBootTime\":\"2018-03-09T22:49:57.0324304Z\",\"allocationTime\":\"2018-03-09T22:45:43.713181Z\",\"ipAddress\":\"100.73.20.110\",\"affinityId\":\"TVM:tvm-3840119875_1-20180309t224543z\",\"vmSize\":\"small\",\"totalTasksRun\":0,\"totalTasksSucceeded\":0,\"runningTasksCount\":0,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"startTaskInfo\":{\r\n \"state\":\"completed\",\"startTime\":\"2018-03-09T22:49:59.4651008Z\",\"endTime\":\"2018-03-09T22:49:59.6071949Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0\r\n },\"isDedicated\":true\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'cda6bde1-4830-40d2-80b3-c91b26f9b5d0', + 'request-id': 'ef9a9bec-f74e-4071-a432-a10a77a20313', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:45:44 GMT', + date: 'Fri, 09 Mar 2018 22:59:13 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_a_job_reference_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_a_job_reference_successfully.nock.js index 6c9d247da0..0e212cb974 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_a_job_reference_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_a_job_reference_successfully.nock.js @@ -1,40 +1,40 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobs/HelloWorldJobNodeSDKTest?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#jobs/@Element\",\"id\":\"HelloWorldJobNodeSDKTest\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest\",\"eTag\":\"0x8D509DEF985277D\",\"lastModified\":\"2017-10-02T21:46:01.6436093Z\",\"creationTime\":\"2017-10-02T21:46:00.6954349Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:46:00.7224609Z\",\"priority\":500,\"usesTaskDependencies\":false,\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"poolInfo\":{\r\n \"poolId\":\"nodesdktestpool1\"\r\n },\"executionInfo\":{\r\n \"startTime\":\"2017-10-02T21:46:00.7224609Z\",\"poolId\":\"nodesdktestpool1\"\r\n },\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\"\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/jobs/HelloWorldJobNodeSDKTest?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#jobs/@Element\",\"id\":\"HelloWorldJobNodeSDKTest\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest\",\"eTag\":\"0x8D586116694D752\",\"lastModified\":\"2018-03-09T22:59:23.6389714Z\",\"creationTime\":\"2018-03-09T22:59:23.323924Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:59:23.3459359Z\",\"priority\":500,\"usesTaskDependencies\":false,\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"poolInfo\":{\r\n \"poolId\":\"nodesdktestpool1\"\r\n },\"executionInfo\":{\r\n \"startTime\":\"2018-03-09T22:59:23.3459359Z\",\"poolId\":\"nodesdktestpool1\"\r\n },\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\"\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', - 'last-modified': 'Mon, 02 Oct 2017 21:46:01 GMT', - etag: '0x8D509DEF985277D', + 'last-modified': 'Fri, 09 Mar 2018 22:59:23 GMT', + etag: '0x8D586116694D752', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'a8faffd8-61c3-4b2a-88df-9cc76ac3f876', + 'request-id': 'fe184f66-49ee-47dd-a49e-bbb3da263e2d', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:51:56 GMT', + date: 'Fri, 09 Mar 2018 23:05:09 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobs/HelloWorldJobNodeSDKTest?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#jobs/@Element\",\"id\":\"HelloWorldJobNodeSDKTest\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest\",\"eTag\":\"0x8D509DEF985277D\",\"lastModified\":\"2017-10-02T21:46:01.6436093Z\",\"creationTime\":\"2017-10-02T21:46:00.6954349Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:46:00.7224609Z\",\"priority\":500,\"usesTaskDependencies\":false,\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"poolInfo\":{\r\n \"poolId\":\"nodesdktestpool1\"\r\n },\"executionInfo\":{\r\n \"startTime\":\"2017-10-02T21:46:00.7224609Z\",\"poolId\":\"nodesdktestpool1\"\r\n },\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\"\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/jobs/HelloWorldJobNodeSDKTest?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#jobs/@Element\",\"id\":\"HelloWorldJobNodeSDKTest\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest\",\"eTag\":\"0x8D586116694D752\",\"lastModified\":\"2018-03-09T22:59:23.6389714Z\",\"creationTime\":\"2018-03-09T22:59:23.323924Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:59:23.3459359Z\",\"priority\":500,\"usesTaskDependencies\":false,\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"poolInfo\":{\r\n \"poolId\":\"nodesdktestpool1\"\r\n },\"executionInfo\":{\r\n \"startTime\":\"2018-03-09T22:59:23.3459359Z\",\"poolId\":\"nodesdktestpool1\"\r\n },\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\"\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', - 'last-modified': 'Mon, 02 Oct 2017 21:46:01 GMT', - etag: '0x8D509DEF985277D', + 'last-modified': 'Fri, 09 Mar 2018 22:59:23 GMT', + etag: '0x8D586116694D752', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'a8faffd8-61c3-4b2a-88df-9cc76ac3f876', + 'request-id': 'fe184f66-49ee-47dd-a49e-bbb3da263e2d', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:51:56 GMT', + date: 'Fri, 09 Mar 2018 23:05:09 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_a_job_schedule_reference_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_a_job_schedule_reference_successfully.nock.js index e3561f7569..4cfd951324 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_a_job_schedule_reference_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_a_job_schedule_reference_successfully.nock.js @@ -1,40 +1,40 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobschedules/NodeSDKTestSchedule?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#jobschedules/@Element\",\"id\":\"NodeSDKTestSchedule\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobschedules/NodeSDKTestSchedule\",\"eTag\":\"0x8D509DFCF3CDF28\",\"lastModified\":\"2017-10-02T21:52:00.2023208Z\",\"creationTime\":\"2017-10-02T21:52:00.2023208Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:52:00.2023208Z\",\"schedule\":{\r\n \"doNotRunUntil\":\"2017-12-25T08:00:00Z\",\"startWindow\":\"PT6M\"\r\n },\"jobSpecification\":{\r\n \"priority\":0,\"usesTaskDependencies\":false,\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\",\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":0\r\n },\"poolInfo\":{\r\n \"poolId\":\"nodesdktestpool1\"\r\n }\r\n },\"executionInfo\":{\r\n \"nextRunTime\":\"2017-12-25T08:00:00Z\"\r\n }\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/jobschedules/NodeSDKTestSchedule?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#jobschedules/@Element\",\"id\":\"NodeSDKTestSchedule\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobschedules/NodeSDKTestSchedule\",\"eTag\":\"0x8D5861508E222CC\",\"lastModified\":\"2018-03-09T23:25:24.4266188Z\",\"creationTime\":\"2018-03-09T23:25:24.4266188Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T23:25:24.4266188Z\",\"schedule\":{\r\n \"doNotRunUntil\":\"2018-04-25T07:00:00Z\",\"startWindow\":\"PT6M\"\r\n },\"jobSpecification\":{\r\n \"priority\":0,\"usesTaskDependencies\":false,\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\",\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":0\r\n },\"poolInfo\":{\r\n \"poolId\":\"nodesdktestpool1\"\r\n }\r\n },\"executionInfo\":{\r\n \"nextRunTime\":\"2018-04-25T07:00:00Z\"\r\n }\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', - 'last-modified': 'Mon, 02 Oct 2017 21:52:00 GMT', - etag: '0x8D509DFCF3CDF28', + 'last-modified': 'Fri, 09 Mar 2018 23:25:24 GMT', + etag: '0x8D5861508E222CC', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'b366f0cc-036e-4643-bac2-c66a2e54bec7', + 'request-id': 'aa3b1a59-4c9c-43b1-9caa-a47cba433958', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:52:02 GMT', + date: 'Fri, 09 Mar 2018 23:25:25 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobschedules/NodeSDKTestSchedule?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#jobschedules/@Element\",\"id\":\"NodeSDKTestSchedule\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobschedules/NodeSDKTestSchedule\",\"eTag\":\"0x8D509DFCF3CDF28\",\"lastModified\":\"2017-10-02T21:52:00.2023208Z\",\"creationTime\":\"2017-10-02T21:52:00.2023208Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:52:00.2023208Z\",\"schedule\":{\r\n \"doNotRunUntil\":\"2017-12-25T08:00:00Z\",\"startWindow\":\"PT6M\"\r\n },\"jobSpecification\":{\r\n \"priority\":0,\"usesTaskDependencies\":false,\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\",\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":0\r\n },\"poolInfo\":{\r\n \"poolId\":\"nodesdktestpool1\"\r\n }\r\n },\"executionInfo\":{\r\n \"nextRunTime\":\"2017-12-25T08:00:00Z\"\r\n }\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/jobschedules/NodeSDKTestSchedule?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#jobschedules/@Element\",\"id\":\"NodeSDKTestSchedule\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobschedules/NodeSDKTestSchedule\",\"eTag\":\"0x8D5861508E222CC\",\"lastModified\":\"2018-03-09T23:25:24.4266188Z\",\"creationTime\":\"2018-03-09T23:25:24.4266188Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T23:25:24.4266188Z\",\"schedule\":{\r\n \"doNotRunUntil\":\"2018-04-25T07:00:00Z\",\"startWindow\":\"PT6M\"\r\n },\"jobSpecification\":{\r\n \"priority\":0,\"usesTaskDependencies\":false,\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\",\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":0\r\n },\"poolInfo\":{\r\n \"poolId\":\"nodesdktestpool1\"\r\n }\r\n },\"executionInfo\":{\r\n \"nextRunTime\":\"2018-04-25T07:00:00Z\"\r\n }\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', - 'last-modified': 'Mon, 02 Oct 2017 21:52:00 GMT', - etag: '0x8D509DFCF3CDF28', + 'last-modified': 'Fri, 09 Mar 2018 23:25:24 GMT', + etag: '0x8D5861508E222CC', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'b366f0cc-036e-4643-bac2-c66a2e54bec7', + 'request-id': 'aa3b1a59-4c9c-43b1-9caa-a47cba433958', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:52:02 GMT', + date: 'Fri, 09 Mar 2018 23:25:25 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_a_pool_reference_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_a_pool_reference_successfully.nock.js index 0f14db2d49..a8cb3f6172 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_a_pool_reference_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_a_pool_reference_successfully.nock.js @@ -1,40 +1,40 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools/nodesdktestpool1?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#pools/@Element\",\"id\":\"nodesdktestpool1\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1\",\"eTag\":\"0x8D509DD0F3789F4\",\"lastModified\":\"2017-10-02T21:32:19.0513652Z\",\"creationTime\":\"2017-10-02T21:30:36.6629297Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:30:36.6629297Z\",\"allocationState\":\"steady\",\"allocationStateTransitionTime\":\"2017-10-02T21:31:51.3175139Z\",\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":3,\"targetDedicatedNodes\":3,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"userAccounts\":[\r\n {\r\n \"name\":\"nonAdminUser\",\"elevationLevel\":\"nonadmin\"\r\n }\r\n ],\"metadata\":[\r\n {\r\n \"name\":\"foo2\",\"value\":\"bar2\"\r\n }\r\n ],\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"cloudServiceConfiguration\":{\r\n \"osFamily\":\"4\",\"targetOSVersion\":\"*\",\"currentOSVersion\":\"*\"\r\n }\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/pools/nodesdktestpool1?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#pools/@Element\",\"id\":\"nodesdktestpool1\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1\",\"eTag\":\"0x8D5860F7EF25469\",\"lastModified\":\"2018-03-09T22:45:45.5235177Z\",\"creationTime\":\"2018-03-09T22:44:04.5924827Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:44:04.5924827Z\",\"allocationState\":\"steady\",\"allocationStateTransitionTime\":\"2018-03-09T22:45:46.2070909Z\",\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":3,\"targetDedicatedNodes\":3,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"userAccounts\":[\r\n {\r\n \"name\":\"nonAdminUser\",\"elevationLevel\":\"nonadmin\"\r\n }\r\n ],\"metadata\":[\r\n {\r\n \"name\":\"foo2\",\"value\":\"bar2\"\r\n }\r\n ],\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"cloudServiceConfiguration\":{\r\n \"osFamily\":\"4\",\"targetOSVersion\":\"*\",\"currentOSVersion\":\"*\"\r\n }\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', - 'last-modified': 'Mon, 02 Oct 2017 21:32:19 GMT', - etag: '0x8D509DD0F3789F4', + 'last-modified': 'Fri, 09 Mar 2018 22:45:45 GMT', + etag: '0x8D5860F7EF25469', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '48adf8e9-b9f0-4feb-b71f-2d5fde1aef5c', + 'request-id': '18e52435-0659-41d8-b91e-c7696af2bd53', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:38:59 GMT', + date: 'Fri, 09 Mar 2018 22:52:25 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools/nodesdktestpool1?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#pools/@Element\",\"id\":\"nodesdktestpool1\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1\",\"eTag\":\"0x8D509DD0F3789F4\",\"lastModified\":\"2017-10-02T21:32:19.0513652Z\",\"creationTime\":\"2017-10-02T21:30:36.6629297Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:30:36.6629297Z\",\"allocationState\":\"steady\",\"allocationStateTransitionTime\":\"2017-10-02T21:31:51.3175139Z\",\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":3,\"targetDedicatedNodes\":3,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"userAccounts\":[\r\n {\r\n \"name\":\"nonAdminUser\",\"elevationLevel\":\"nonadmin\"\r\n }\r\n ],\"metadata\":[\r\n {\r\n \"name\":\"foo2\",\"value\":\"bar2\"\r\n }\r\n ],\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"cloudServiceConfiguration\":{\r\n \"osFamily\":\"4\",\"targetOSVersion\":\"*\",\"currentOSVersion\":\"*\"\r\n }\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/pools/nodesdktestpool1?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#pools/@Element\",\"id\":\"nodesdktestpool1\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1\",\"eTag\":\"0x8D5860F7EF25469\",\"lastModified\":\"2018-03-09T22:45:45.5235177Z\",\"creationTime\":\"2018-03-09T22:44:04.5924827Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:44:04.5924827Z\",\"allocationState\":\"steady\",\"allocationStateTransitionTime\":\"2018-03-09T22:45:46.2070909Z\",\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":3,\"targetDedicatedNodes\":3,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"userAccounts\":[\r\n {\r\n \"name\":\"nonAdminUser\",\"elevationLevel\":\"nonadmin\"\r\n }\r\n ],\"metadata\":[\r\n {\r\n \"name\":\"foo2\",\"value\":\"bar2\"\r\n }\r\n ],\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"cloudServiceConfiguration\":{\r\n \"osFamily\":\"4\",\"targetOSVersion\":\"*\",\"currentOSVersion\":\"*\"\r\n }\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', - 'last-modified': 'Mon, 02 Oct 2017 21:32:19 GMT', - etag: '0x8D509DD0F3789F4', + 'last-modified': 'Fri, 09 Mar 2018 22:45:45 GMT', + etag: '0x8D5860F7EF25469', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '48adf8e9-b9f0-4feb-b71f-2d5fde1aef5c', + 'request-id': '18e52435-0659-41d8-b91e-c7696af2bd53', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:38:59 GMT', + date: 'Fri, 09 Mar 2018 22:52:25 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_a_pool_reference_with_odata_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_a_pool_reference_with_odata_successfully.nock.js index 8327e06bc8..d24cf6f204 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_a_pool_reference_with_odata_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_a_pool_reference_with_odata_successfully.nock.js @@ -1,40 +1,40 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools/nodesdktestpool1?api-version=2017-09-01.6.0&$select=id%2Cstate&$expand=stats') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#pools/@Element\",\"id\":\"nodesdktestpool1\",\"state\":\"active\"\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/pools/nodesdktestpool1?api-version=2018-03-01.6.1&$select=id%2Cstate&$expand=stats') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#pools/@Element\",\"id\":\"nodesdktestpool1\",\"state\":\"active\"\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', - 'last-modified': 'Mon, 02 Oct 2017 21:32:19 GMT', - etag: '0x8D509DD0F3789F4', + 'last-modified': 'Fri, 09 Mar 2018 22:45:45 GMT', + etag: '0x8D5860F7EF25469', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '3520d6f4-fad1-4b90-b6f8-448958736d86', + 'request-id': '6df1e240-198c-41eb-ab22-82213274c56e', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:38:59 GMT', + date: 'Fri, 09 Mar 2018 22:52:25 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools/nodesdktestpool1?api-version=2017-09-01.6.0&$select=id%2Cstate&$expand=stats') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#pools/@Element\",\"id\":\"nodesdktestpool1\",\"state\":\"active\"\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/pools/nodesdktestpool1?api-version=2018-03-01.6.1&$select=id%2Cstate&$expand=stats') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#pools/@Element\",\"id\":\"nodesdktestpool1\",\"state\":\"active\"\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', - 'last-modified': 'Mon, 02 Oct 2017 21:32:19 GMT', - etag: '0x8D509DD0F3789F4', + 'last-modified': 'Fri, 09 Mar 2018 22:45:45 GMT', + etag: '0x8D5860F7EF25469', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '3520d6f4-fad1-4b90-b6f8-448958736d86', + 'request-id': '6df1e240-198c-41eb-ab22-82213274c56e', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:38:59 GMT', + date: 'Fri, 09 Mar 2018 22:52:25 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_a_remote_desktop_file_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_a_remote_desktop_file_successfully.nock.js index d6828e881b..460d7c53d1 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_a_remote_desktop_file_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_a_remote_desktop_file_successfully.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools/nodesdktestpool1/nodes/tvm-115883067_1-20171002t213150z/rdp?api-version=2017-09-01.6.0') - .reply(200, "full address:s:13.73.25.82\r\nLoadBalanceInfo:s:Cookie: mstshash=TVM#TVM_IN_0", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/pools/nodesdktestpool1/nodes/tvm-3840119875_1-20180309t224543z/rdp?api-version=2018-03-01.6.1') + .reply(200, "full address:s:52.161.155.190\r\nLoadBalanceInfo:s:Cookie: mstshash=TVM#TVM_IN_0", { 'transfer-encoding': 'chunked', 'content-type': 'application/octet-stream', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '004bdba4-47af-4639-8b4a-6a78e2972fa4', + 'request-id': '105afa71-0c5d-4d4b-9309-1b802a469a27', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:45:45 GMT', + date: 'Fri, 09 Mar 2018 22:59:13 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools/nodesdktestpool1/nodes/tvm-115883067_1-20171002t213150z/rdp?api-version=2017-09-01.6.0') - .reply(200, "full address:s:13.73.25.82\r\nLoadBalanceInfo:s:Cookie: mstshash=TVM#TVM_IN_0", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/pools/nodesdktestpool1/nodes/tvm-3840119875_1-20180309t224543z/rdp?api-version=2018-03-01.6.1') + .reply(200, "full address:s:52.161.155.190\r\nLoadBalanceInfo:s:Cookie: mstshash=TVM#TVM_IN_0", { 'transfer-encoding': 'chunked', 'content-type': 'application/octet-stream', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '004bdba4-47af-4639-8b4a-6a78e2972fa4', + 'request-id': '105afa71-0c5d-4d4b-9309-1b802a469a27', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:45:45 GMT', + date: 'Fri, 09 Mar 2018 22:59:13 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_all_job_statistics_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_all_job_statistics_successfully.nock.js index 290565c6d6..92e6bf6467 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_all_job_statistics_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_all_job_statistics_successfully.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/lifetimejobstats?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#jobstats/@Element\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/lifetimejobstats\",\"startTime\":\"2017-05-26T16:19:27.0644752Z\",\"lastUpdateTime\":\"2017-10-02T21:00:00Z\",\"userCPUTime\":\"PT2M32.939S\",\"kernelCPUTime\":\"PT0.219S\",\"wallClockTime\":\"PT2M32.939S\",\"readIOps\":\"2\",\"writeIOps\":\"692\",\"readIOGiB\":2.1606683731079102E-07,\"writeIOGiB\":9.5702707767486572E-06,\"numTaskRetries\":\"0\",\"numSucceededTasks\":\"42\",\"numFailedTasks\":\"28\",\"waitTime\":\"PT6M0.993S\"\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/lifetimejobstats?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#jobstats/@Element\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/lifetimejobstats\",\"startTime\":\"2017-10-23T18:57:56.5958966Z\",\"lastUpdateTime\":\"2018-03-09T22:00:00Z\",\"userCPUTime\":\"PT5M38.91S\",\"kernelCPUTime\":\"PT0.531S\",\"wallClockTime\":\"PT5M38.91S\",\"readIOps\":\"130\",\"writeIOps\":\"88\",\"readIOGiB\":6.650388240814209E-05,\"writeIOGiB\":1.405179500579834E-05,\"numTaskRetries\":\"14\",\"numSucceededTasks\":\"0\",\"numFailedTasks\":\"0\",\"waitTime\":\"PT1H59M51.994S\"\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '1f73ec10-fddd-457c-904f-8e4eb4f325d9', + 'request-id': '8cddbed0-b531-49a8-b9ad-a2310384187e', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:51:59 GMT', + date: 'Fri, 09 Mar 2018 23:05:12 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/lifetimejobstats?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#jobstats/@Element\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/lifetimejobstats\",\"startTime\":\"2017-05-26T16:19:27.0644752Z\",\"lastUpdateTime\":\"2017-10-02T21:00:00Z\",\"userCPUTime\":\"PT2M32.939S\",\"kernelCPUTime\":\"PT0.219S\",\"wallClockTime\":\"PT2M32.939S\",\"readIOps\":\"2\",\"writeIOps\":\"692\",\"readIOGiB\":2.1606683731079102E-07,\"writeIOGiB\":9.5702707767486572E-06,\"numTaskRetries\":\"0\",\"numSucceededTasks\":\"42\",\"numFailedTasks\":\"28\",\"waitTime\":\"PT6M0.993S\"\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/lifetimejobstats?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#jobstats/@Element\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/lifetimejobstats\",\"startTime\":\"2017-10-23T18:57:56.5958966Z\",\"lastUpdateTime\":\"2018-03-09T22:00:00Z\",\"userCPUTime\":\"PT5M38.91S\",\"kernelCPUTime\":\"PT0.531S\",\"wallClockTime\":\"PT5M38.91S\",\"readIOps\":\"130\",\"writeIOps\":\"88\",\"readIOGiB\":6.650388240814209E-05,\"writeIOGiB\":1.405179500579834E-05,\"numTaskRetries\":\"14\",\"numSucceededTasks\":\"0\",\"numFailedTasks\":\"0\",\"waitTime\":\"PT1H59M51.994S\"\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '1f73ec10-fddd-457c-904f-8e4eb4f325d9', + 'request-id': '8cddbed0-b531-49a8-b9ad-a2310384187e', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:51:59 GMT', + date: 'Fri, 09 Mar 2018 23:05:12 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_application_reference_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_application_reference_successfully.nock.js index c94bccf7f0..017934aad8 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_application_reference_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_application_reference_successfully.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/applications/my_application_id?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#getapplicationsummaryresponse/@Element\",\"id\":\"my_application_id\",\"versions\":[\r\n \"v1.0\"\r\n ],\"displayName\":\"my_updated_name\"\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/applications/my_application_id?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#getapplicationsummaryresponse/@Element\",\"id\":\"my_application_id\",\"versions\":[\r\n \"v1.0\"\r\n ],\"displayName\":\"my_updated_name\"\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '10d14720-8aac-4278-bd5d-61aaa9196cb8', + 'request-id': '7c0cabb8-74cc-4249-99c3-17a49455c8d8', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:51:53 GMT', + date: 'Fri, 09 Mar 2018 23:05:08 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/applications/my_application_id?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#getapplicationsummaryresponse/@Element\",\"id\":\"my_application_id\",\"versions\":[\r\n \"v1.0\"\r\n ],\"displayName\":\"my_updated_name\"\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/applications/my_application_id?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#getapplicationsummaryresponse/@Element\",\"id\":\"my_application_id\",\"versions\":[\r\n \"v1.0\"\r\n ],\"displayName\":\"my_updated_name\"\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '10d14720-8aac-4278-bd5d-61aaa9196cb8', + 'request-id': '7c0cabb8-74cc-4249-99c3-17a49455c8d8', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:51:53 GMT', + date: 'Fri, 09 Mar 2018 23:05:08 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_certificate_reference_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_certificate_reference_successfully.nock.js index df56f1f154..239c1ecb22 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_certificate_reference_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_certificate_reference_successfully.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/certificates(thumbprintAlgorithm=sha1,thumbprint=cff2ab63c8c955aaf71989efa641b906558d9fb7)?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#certificates/@Element\",\"thumbprint\":\"cff2ab63c8c955aaf71989efa641b906558d9fb7\",\"thumbprintAlgorithm\":\"sha1\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/certificates(thumbprintAlgorithm=sha1,thumbprint=cff2ab63c8c955aaf71989efa641b906558d9fb7)\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:30:34.9603179Z\",\"publicData\":\"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78\"\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/certificates(thumbprintAlgorithm=sha1,thumbprint=cff2ab63c8c955aaf71989efa641b906558d9fb7)?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#certificates/@Element\",\"thumbprint\":\"cff2ab63c8c955aaf71989efa641b906558d9fb7\",\"thumbprintAlgorithm\":\"sha1\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/certificates(thumbprintAlgorithm=sha1,thumbprint=cff2ab63c8c955aaf71989efa641b906558d9fb7)\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:44:03.7701617Z\",\"publicData\":\"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78\"\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '04fe8890-538d-402d-953c-d9c2c3a8989b', + 'request-id': '1161bf22-1ea1-4330-9580-7839b3e803b1', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:30:36 GMT', + date: 'Fri, 09 Mar 2018 22:44:04 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/certificates(thumbprintAlgorithm=sha1,thumbprint=cff2ab63c8c955aaf71989efa641b906558d9fb7)?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#certificates/@Element\",\"thumbprint\":\"cff2ab63c8c955aaf71989efa641b906558d9fb7\",\"thumbprintAlgorithm\":\"sha1\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/certificates(thumbprintAlgorithm=sha1,thumbprint=cff2ab63c8c955aaf71989efa641b906558d9fb7)\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:30:34.9603179Z\",\"publicData\":\"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78\"\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/certificates(thumbprintAlgorithm=sha1,thumbprint=cff2ab63c8c955aaf71989efa641b906558d9fb7)?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#certificates/@Element\",\"thumbprint\":\"cff2ab63c8c955aaf71989efa641b906558d9fb7\",\"thumbprintAlgorithm\":\"sha1\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/certificates(thumbprintAlgorithm=sha1,thumbprint=cff2ab63c8c955aaf71989efa641b906558d9fb7)\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:44:03.7701617Z\",\"publicData\":\"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78\"\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '04fe8890-538d-402d-953c-d9c2c3a8989b', + 'request-id': '1161bf22-1ea1-4330-9580-7839b3e803b1', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:30:36 GMT', + date: 'Fri, 09 Mar 2018 22:44:04 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_file_from_node_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_file_from_node_successfully.nock.js index 66edc43c57..9886b2d131 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_file_from_node_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_file_from_node_successfully.nock.js @@ -1,44 +1,44 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools/nodesdktestpool1/nodes/tvm-115883067_2-20171002t213150z/files/startup%2Fwd%2Fhello.txt?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/pools/nodesdktestpool1/nodes/tvm-3840119875_2-20180309t224543z/files/startup%2Fwd%2Fhello.txt?api-version=2018-03-01.6.1') .reply(200, "hello \r\n", { 'transfer-encoding': 'chunked', 'content-type': 'application/octet-stream', - 'last-modified': 'Mon, 02 Oct 2017 21:50:30 GMT', + 'last-modified': 'Fri, 09 Mar 2018 23:04:41 GMT', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '8acf3a54-b431-4be0-8bea-7cf05f75018b', + 'request-id': '364c716e-1b53-4980-a6a8-6c5adcd68196', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - 'ocp-creation-time': 'Mon, 02 Oct 2017 21:50:30 GMT', + 'ocp-creation-time': 'Fri, 09 Mar 2018 23:04:41 GMT', 'ocp-batch-file-isdirectory': 'False', - 'ocp-batch-file-url': 'https%3A%2F%2Fbatchtestnodesdk.japaneast.batch.azure.com%2Fpools%2Fnodesdktestpool1%2Fnodes%2Ftvm-115883067_2-20171002t213150z%2Ffiles%2Fstartup%2Fwd%2Fhello.txt', - date: 'Mon, 02 Oct 2017 21:51:51 GMT', + 'ocp-batch-file-url': 'https%3A%2F%2Flchency4.westcentralus.batch.azure.com%2Fpools%2Fnodesdktestpool1%2Fnodes%2Ftvm-3840119875_2-20180309t224543z%2Ffiles%2Fstartup%2Fwd%2Fhello.txt', + date: 'Fri, 09 Mar 2018 23:05:07 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools/nodesdktestpool1/nodes/tvm-115883067_2-20171002t213150z/files/startup%2Fwd%2Fhello.txt?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/pools/nodesdktestpool1/nodes/tvm-3840119875_2-20180309t224543z/files/startup%2Fwd%2Fhello.txt?api-version=2018-03-01.6.1') .reply(200, "hello \r\n", { 'transfer-encoding': 'chunked', 'content-type': 'application/octet-stream', - 'last-modified': 'Mon, 02 Oct 2017 21:50:30 GMT', + 'last-modified': 'Fri, 09 Mar 2018 23:04:41 GMT', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '8acf3a54-b431-4be0-8bea-7cf05f75018b', + 'request-id': '364c716e-1b53-4980-a6a8-6c5adcd68196', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - 'ocp-creation-time': 'Mon, 02 Oct 2017 21:50:30 GMT', + 'ocp-creation-time': 'Fri, 09 Mar 2018 23:04:41 GMT', 'ocp-batch-file-isdirectory': 'False', - 'ocp-batch-file-url': 'https%3A%2F%2Fbatchtestnodesdk.japaneast.batch.azure.com%2Fpools%2Fnodesdktestpool1%2Fnodes%2Ftvm-115883067_2-20171002t213150z%2Ffiles%2Fstartup%2Fwd%2Fhello.txt', - date: 'Mon, 02 Oct 2017 21:51:51 GMT', + 'ocp-batch-file-url': 'https%3A%2F%2Flchency4.westcentralus.batch.azure.com%2Fpools%2Fnodesdktestpool1%2Fnodes%2Ftvm-3840119875_2-20180309t224543z%2Ffiles%2Fstartup%2Fwd%2Fhello.txt', + date: 'Fri, 09 Mar 2018 23:05:07 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_file_from_task_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_file_from_task_successfully.nock.js index a112870b41..660054588e 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_file_from_task_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_file_from_task_successfully.nock.js @@ -1,44 +1,44 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files/stdout.txt?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files/stdout.txt?api-version=2018-03-01.6.1') .reply(200, "hello world\r\n", { 'transfer-encoding': 'chunked', 'content-type': 'application/octet-stream', - 'last-modified': 'Mon, 02 Oct 2017 21:46:09 GMT', + 'last-modified': 'Fri, 09 Mar 2018 22:59:27 GMT', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '06b94731-8f6a-4c0a-9fdb-ab228ee99d6f', + 'request-id': '9026638f-9900-4c76-be8a-b0e4c15758b3', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - 'ocp-creation-time': 'Mon, 02 Oct 2017 21:46:09 GMT', + 'ocp-creation-time': 'Fri, 09 Mar 2018 22:59:27 GMT', 'ocp-batch-file-isdirectory': 'False', - 'ocp-batch-file-url': 'https%3A%2F%2Fbatchtestnodesdk.japaneast.batch.azure.com%2Fjobs%2FHelloWorldJobNodeSDKTest%2Ftasks%2FHelloWorldNodeSDKTestTask2%2Ffiles%2Fstdout.txt', - date: 'Mon, 02 Oct 2017 21:48:09 GMT', + 'ocp-batch-file-url': 'https%3A%2F%2Flchency4.westcentralus.batch.azure.com%2Fjobs%2FHelloWorldJobNodeSDKTest%2Ftasks%2FHelloWorldNodeSDKTestTask2%2Ffiles%2Fstdout.txt', + date: 'Fri, 09 Mar 2018 23:01:23 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files/stdout.txt?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files/stdout.txt?api-version=2018-03-01.6.1') .reply(200, "hello world\r\n", { 'transfer-encoding': 'chunked', 'content-type': 'application/octet-stream', - 'last-modified': 'Mon, 02 Oct 2017 21:46:09 GMT', + 'last-modified': 'Fri, 09 Mar 2018 22:59:27 GMT', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '06b94731-8f6a-4c0a-9fdb-ab228ee99d6f', + 'request-id': '9026638f-9900-4c76-be8a-b0e4c15758b3', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - 'ocp-creation-time': 'Mon, 02 Oct 2017 21:46:09 GMT', + 'ocp-creation-time': 'Fri, 09 Mar 2018 22:59:27 GMT', 'ocp-batch-file-isdirectory': 'False', - 'ocp-batch-file-url': 'https%3A%2F%2Fbatchtestnodesdk.japaneast.batch.azure.com%2Fjobs%2FHelloWorldJobNodeSDKTest%2Ftasks%2FHelloWorldNodeSDKTestTask2%2Ffiles%2Fstdout.txt', - date: 'Mon, 02 Oct 2017 21:48:09 GMT', + 'ocp-batch-file-url': 'https%3A%2F%2Flchency4.westcentralus.batch.azure.com%2Fjobs%2FHelloWorldJobNodeSDKTest%2Ftasks%2FHelloWorldNodeSDKTestTask2%2Ffiles%2Fstdout.txt', + date: 'Fri, 09 Mar 2018 23:01:23 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_file_properties_from_node_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_file_properties_from_node_successfully.nock.js index 5ac067e60d..ab32e09882 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_file_properties_from_node_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_file_properties_from_node_successfully.nock.js @@ -1,44 +1,44 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .head('/pools/nodesdktestpool1/nodes/tvm-115883067_2-20171002t213150z/files/startup%2Fwd%2Fhello.txt?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .head('/pools/nodesdktestpool1/nodes/tvm-3840119875_2-20180309t224543z/files/startup%2Fwd%2Fhello.txt?api-version=2018-03-01.6.1') .reply(200, "", { 'content-length': '8', 'content-type': 'application/octet-stream', - 'last-modified': 'Mon, 02 Oct 2017 21:50:30 GMT', + 'last-modified': 'Fri, 09 Mar 2018 23:04:41 GMT', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '9f32061a-70fe-427f-99d4-7e4325ee7507', + 'request-id': 'f9691a66-c273-4156-9a38-3f0765a6c8fe', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - 'ocp-creation-time': 'Mon, 02 Oct 2017 21:50:30 GMT', + 'ocp-creation-time': 'Fri, 09 Mar 2018 23:04:41 GMT', 'ocp-batch-file-isdirectory': 'False', - 'ocp-batch-file-url': 'https%3A%2F%2Fbatchtestnodesdk.japaneast.batch.azure.com%2Fpools%2Fnodesdktestpool1%2Fnodes%2Ftvm-115883067_2-20171002t213150z%2Ffiles%2Fstartup%2Fwd%2Fhello.txt', - date: 'Mon, 02 Oct 2017 21:51:50 GMT', + 'ocp-batch-file-url': 'https%3A%2F%2Flchency4.westcentralus.batch.azure.com%2Fpools%2Fnodesdktestpool1%2Fnodes%2Ftvm-3840119875_2-20180309t224543z%2Ffiles%2Fstartup%2Fwd%2Fhello.txt', + date: 'Fri, 09 Mar 2018 23:05:06 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .head('/pools/nodesdktestpool1/nodes/tvm-115883067_2-20171002t213150z/files/startup%2Fwd%2Fhello.txt?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .head('/pools/nodesdktestpool1/nodes/tvm-3840119875_2-20180309t224543z/files/startup%2Fwd%2Fhello.txt?api-version=2018-03-01.6.1') .reply(200, "", { 'content-length': '8', 'content-type': 'application/octet-stream', - 'last-modified': 'Mon, 02 Oct 2017 21:50:30 GMT', + 'last-modified': 'Fri, 09 Mar 2018 23:04:41 GMT', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '9f32061a-70fe-427f-99d4-7e4325ee7507', + 'request-id': 'f9691a66-c273-4156-9a38-3f0765a6c8fe', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - 'ocp-creation-time': 'Mon, 02 Oct 2017 21:50:30 GMT', + 'ocp-creation-time': 'Fri, 09 Mar 2018 23:04:41 GMT', 'ocp-batch-file-isdirectory': 'False', - 'ocp-batch-file-url': 'https%3A%2F%2Fbatchtestnodesdk.japaneast.batch.azure.com%2Fpools%2Fnodesdktestpool1%2Fnodes%2Ftvm-115883067_2-20171002t213150z%2Ffiles%2Fstartup%2Fwd%2Fhello.txt', - date: 'Mon, 02 Oct 2017 21:51:50 GMT', + 'ocp-batch-file-url': 'https%3A%2F%2Flchency4.westcentralus.batch.azure.com%2Fpools%2Fnodesdktestpool1%2Fnodes%2Ftvm-3840119875_2-20180309t224543z%2Ffiles%2Fstartup%2Fwd%2Fhello.txt', + date: 'Fri, 09 Mar 2018 23:05:06 GMT', connection: 'close' }); - return result; }]]; + return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_file_properties_from_task_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_file_properties_from_task_successfully.nock.js index 69caf739a0..7835a55a7a 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_file_properties_from_task_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_file_properties_from_task_successfully.nock.js @@ -1,44 +1,44 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .head('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files/stderr.txt?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .head('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files/stderr.txt?api-version=2018-03-01.6.1') .reply(200, "", { 'content-length': '0', 'content-type': 'application/octet-stream', - 'last-modified': 'Mon, 02 Oct 2017 21:46:09 GMT', + 'last-modified': 'Fri, 09 Mar 2018 22:59:27 GMT', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '21e322a2-b84d-4758-add0-1df9cc4bd97e', + 'request-id': '2799b800-0f28-45fc-8cb8-02494a399fd5', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - 'ocp-creation-time': 'Mon, 02 Oct 2017 21:46:09 GMT', + 'ocp-creation-time': 'Fri, 09 Mar 2018 22:59:27 GMT', 'ocp-batch-file-isdirectory': 'False', - 'ocp-batch-file-url': 'https%3A%2F%2Fbatchtestnodesdk.japaneast.batch.azure.com%2Fjobs%2FHelloWorldJobNodeSDKTest%2Ftasks%2FHelloWorldNodeSDKTestTask2%2Ffiles%2Fstderr.txt', - date: 'Mon, 02 Oct 2017 21:48:08 GMT', + 'ocp-batch-file-url': 'https%3A%2F%2Flchency4.westcentralus.batch.azure.com%2Fjobs%2FHelloWorldJobNodeSDKTest%2Ftasks%2FHelloWorldNodeSDKTestTask2%2Ffiles%2Fstderr.txt', + date: 'Fri, 09 Mar 2018 23:01:23 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .head('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files/stderr.txt?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .head('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files/stderr.txt?api-version=2018-03-01.6.1') .reply(200, "", { 'content-length': '0', 'content-type': 'application/octet-stream', - 'last-modified': 'Mon, 02 Oct 2017 21:46:09 GMT', + 'last-modified': 'Fri, 09 Mar 2018 22:59:27 GMT', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '21e322a2-b84d-4758-add0-1df9cc4bd97e', + 'request-id': '2799b800-0f28-45fc-8cb8-02494a399fd5', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - 'ocp-creation-time': 'Mon, 02 Oct 2017 21:46:09 GMT', + 'ocp-creation-time': 'Fri, 09 Mar 2018 22:59:27 GMT', 'ocp-batch-file-isdirectory': 'False', - 'ocp-batch-file-url': 'https%3A%2F%2Fbatchtestnodesdk.japaneast.batch.azure.com%2Fjobs%2FHelloWorldJobNodeSDKTest%2Ftasks%2FHelloWorldNodeSDKTestTask2%2Ffiles%2Fstderr.txt', - date: 'Mon, 02 Oct 2017 21:48:08 GMT', + 'ocp-batch-file-url': 'https%3A%2F%2Flchency4.westcentralus.batch.azure.com%2Fjobs%2FHelloWorldJobNodeSDKTest%2Ftasks%2FHelloWorldNodeSDKTestTask2%2Ffiles%2Fstderr.txt', + date: 'Fri, 09 Mar 2018 23:01:23 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_pool_lifetime_statistics.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_pool_lifetime_statistics.nock.js index ccfb57f310..d1063d2faa 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_pool_lifetime_statistics.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_pool_lifetime_statistics.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/lifetimepoolstats?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#poolstats/@Element\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/lifetimepoolstats\",\"usageStats\":{\r\n \"startTime\":\"2017-05-26T16:19:27.0644752Z\",\"lastUpdateTime\":\"2017-10-02T21:00:00Z\",\"dedicatedCoreTime\":\"PT9H22M48.36S\"\r\n },\"resourceStats\":{\r\n \"startTime\":\"2017-05-26T16:19:27.0644752Z\",\"diskReadIOps\":\"496\",\"diskWriteIOps\":\"91492\",\"lastUpdateTime\":\"2017-10-02T21:00:00Z\",\"avgCPUPercentage\":0.78794255892516352,\"avgMemoryGiB\":0.68576508114540813,\"peakMemoryGiB\":1.089813232421875,\"avgDiskGiB\":0.015417034641052036,\"peakDiskGiB\":0.063594818115234375,\"diskReadGiB\":0.00580596923828125,\"diskWriteGiB\":10.6724853515625,\"networkReadGiB\":0.061132980510592461,\"networkWriteGiB\":0.04435313306748867\r\n }\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/lifetimepoolstats?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#poolstats/@Element\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/lifetimepoolstats\",\"usageStats\":{\r\n \"startTime\":\"2017-10-23T18:57:56.5958966Z\",\"lastUpdateTime\":\"2018-03-09T22:00:00Z\",\"dedicatedCoreTime\":\"P29DT17H23M3.542S\"\r\n },\"resourceStats\":{\r\n \"startTime\":\"2017-10-23T18:57:56.5958966Z\",\"diskReadIOps\":\"2026168\",\"diskWriteIOps\":\"24680454\",\"lastUpdateTime\":\"2018-03-09T22:00:00Z\",\"avgCPUPercentage\":0.013433526011359182,\"avgMemoryGiB\":0.9990966150533126,\"peakMemoryGiB\":3.8065605163574219,\"avgDiskGiB\":1.6973685467908632,\"peakDiskGiB\":2.39752197265625,\"diskReadGiB\":94.81925106048584,\"diskWriteGiB\":252.62272644042969,\"networkReadGiB\":11.063987102359533,\"networkWriteGiB\":6.1005959436297417\r\n }\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '5f8e478a-2418-468a-8212-227850662c71', + 'request-id': '1aeb7eb9-e02d-494f-bf23-fb75bc413b30', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:45:59 GMT', + date: 'Fri, 09 Mar 2018 22:59:22 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/lifetimepoolstats?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#poolstats/@Element\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/lifetimepoolstats\",\"usageStats\":{\r\n \"startTime\":\"2017-05-26T16:19:27.0644752Z\",\"lastUpdateTime\":\"2017-10-02T21:00:00Z\",\"dedicatedCoreTime\":\"PT9H22M48.36S\"\r\n },\"resourceStats\":{\r\n \"startTime\":\"2017-05-26T16:19:27.0644752Z\",\"diskReadIOps\":\"496\",\"diskWriteIOps\":\"91492\",\"lastUpdateTime\":\"2017-10-02T21:00:00Z\",\"avgCPUPercentage\":0.78794255892516352,\"avgMemoryGiB\":0.68576508114540813,\"peakMemoryGiB\":1.089813232421875,\"avgDiskGiB\":0.015417034641052036,\"peakDiskGiB\":0.063594818115234375,\"diskReadGiB\":0.00580596923828125,\"diskWriteGiB\":10.6724853515625,\"networkReadGiB\":0.061132980510592461,\"networkWriteGiB\":0.04435313306748867\r\n }\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/lifetimepoolstats?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#poolstats/@Element\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/lifetimepoolstats\",\"usageStats\":{\r\n \"startTime\":\"2017-10-23T18:57:56.5958966Z\",\"lastUpdateTime\":\"2018-03-09T22:00:00Z\",\"dedicatedCoreTime\":\"P29DT17H23M3.542S\"\r\n },\"resourceStats\":{\r\n \"startTime\":\"2017-10-23T18:57:56.5958966Z\",\"diskReadIOps\":\"2026168\",\"diskWriteIOps\":\"24680454\",\"lastUpdateTime\":\"2018-03-09T22:00:00Z\",\"avgCPUPercentage\":0.013433526011359182,\"avgMemoryGiB\":0.9990966150533126,\"peakMemoryGiB\":3.8065605163574219,\"avgDiskGiB\":1.6973685467908632,\"peakDiskGiB\":2.39752197265625,\"diskReadGiB\":94.81925106048584,\"diskWriteGiB\":252.62272644042969,\"networkReadGiB\":11.063987102359533,\"networkWriteGiB\":6.1005959436297417\r\n }\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '5f8e478a-2418-468a-8212-227850662c71', + 'request-id': '1aeb7eb9-e02d-494f-bf23-fb75bc413b30', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:45:59 GMT', + date: 'Fri, 09 Mar 2018 22:59:22 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_pool_node_counts_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_pool_node_counts_successfully.nock.js new file mode 100644 index 0000000000..a6abc546a6 --- /dev/null +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_pool_node_counts_successfully.nock.js @@ -0,0 +1,36 @@ +// This file has been autogenerated. + +exports.setEnvironment = function() { + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; +}; + +exports.scopes = [[function (nock) { +var result = +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/nodecounts?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#poolnodecounts\",\"value\":[\r\n {\r\n \"poolId\":\"nodesdkinboundendpointpool\",\"dedicated\":{\r\n \"creating\":0,\"idle\":1,\"offline\":0,\"preempted\":0,\"rebooting\":0,\"reimaging\":0,\"running\":0,\"starting\":0,\"startTaskFailed\":0,\"unusable\":0,\"unknown\":0,\"waitingForStartTask\":0,\"total\":1\r\n },\"lowPriority\":{\r\n \"creating\":0,\"idle\":0,\"offline\":0,\"preempted\":0,\"rebooting\":0,\"reimaging\":0,\"running\":0,\"starting\":0,\"startTaskFailed\":0,\"unusable\":0,\"unknown\":0,\"waitingForStartTask\":0,\"total\":0\r\n }\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', + 'content-type': 'application/json;odata=minimalmetadata', + server: 'Microsoft-HTTPAPI/2.0', + 'request-id': '83cd363d-ff4f-455c-b33a-1400d41b97eb', + 'strict-transport-security': 'max-age=31536000; includeSubDomains', + 'x-content-type-options': 'nosniff', + dataserviceversion: '3.0', + date: 'Fri, 09 Mar 2018 23:57:33 GMT', + connection: 'close' }); + return result; }, +function (nock) { +var result = +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/nodecounts?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#poolnodecounts\",\"value\":[\r\n {\r\n \"poolId\":\"nodesdkinboundendpointpool\",\"dedicated\":{\r\n \"creating\":0,\"idle\":1,\"offline\":0,\"preempted\":0,\"rebooting\":0,\"reimaging\":0,\"running\":0,\"starting\":0,\"startTaskFailed\":0,\"unusable\":0,\"unknown\":0,\"waitingForStartTask\":0,\"total\":1\r\n },\"lowPriority\":{\r\n \"creating\":0,\"idle\":0,\"offline\":0,\"preempted\":0,\"rebooting\":0,\"reimaging\":0,\"running\":0,\"starting\":0,\"startTaskFailed\":0,\"unusable\":0,\"unknown\":0,\"waitingForStartTask\":0,\"total\":0\r\n }\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', + 'content-type': 'application/json;odata=minimalmetadata', + server: 'Microsoft-HTTPAPI/2.0', + 'request-id': '83cd363d-ff4f-455c-b33a-1400d41b97eb', + 'strict-transport-security': 'max-age=31536000; includeSubDomains', + 'x-content-type-options': 'nosniff', + dataserviceversion: '3.0', + date: 'Fri, 09 Mar 2018 23:57:33 GMT', + connection: 'close' }); + return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_task_reference_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_task_reference_successfully.nock.js index 1e6b437125..68a3d53db1 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_task_reference_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_task_reference_successfully.nock.js @@ -1,40 +1,40 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#tasks/@Element\",\"id\":\"HelloWorldNodeSDKTestTask\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask\",\"eTag\":\"0x8D509DEFD8BECDF\",\"creationTime\":\"2017-10-02T21:46:02.7736096Z\",\"lastModified\":\"2017-10-02T21:46:08.3988703Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:46:08.3988703Z\",\"previousState\":\"completed\",\"previousStateTransitionTime\":\"2017-10-02T21:46:07.1812318Z\",\"commandLine\":\"ping 127.0.0.1 -n 20\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"executionInfo\":{\r\n \"retryCount\":0,\"requeueCount\":0\r\n }\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#tasks/@Element\",\"id\":\"HelloWorldNodeSDKTestTask\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask\",\"eTag\":\"0x8D5861167F3CDFF\",\"creationTime\":\"2018-03-09T22:59:23.7994577Z\",\"lastModified\":\"2018-03-09T22:59:25.9390463Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:59:25.9390463Z\",\"previousState\":\"completed\",\"previousStateTransitionTime\":\"2018-03-09T22:59:25.5874015Z\",\"commandLine\":\"ping 127.0.0.1 -n 20\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"executionInfo\":{\r\n \"retryCount\":0,\"requeueCount\":0\r\n }\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', - 'last-modified': 'Mon, 02 Oct 2017 21:46:08 GMT', - etag: '0x8D509DEFD8BECDF', + 'last-modified': 'Fri, 09 Mar 2018 22:59:25 GMT', + etag: '0x8D5861167F3CDFF', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'b4938031-22e8-48d0-89fe-e2f9608bce09', + 'request-id': '60df3af2-e9a3-4ff8-9da8-58a5ec2fbd59', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:46:09 GMT', + date: 'Fri, 09 Mar 2018 22:59:26 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#tasks/@Element\",\"id\":\"HelloWorldNodeSDKTestTask\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask\",\"eTag\":\"0x8D509DEFD8BECDF\",\"creationTime\":\"2017-10-02T21:46:02.7736096Z\",\"lastModified\":\"2017-10-02T21:46:08.3988703Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:46:08.3988703Z\",\"previousState\":\"completed\",\"previousStateTransitionTime\":\"2017-10-02T21:46:07.1812318Z\",\"commandLine\":\"ping 127.0.0.1 -n 20\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"executionInfo\":{\r\n \"retryCount\":0,\"requeueCount\":0\r\n }\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#tasks/@Element\",\"id\":\"HelloWorldNodeSDKTestTask\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask\",\"eTag\":\"0x8D5861167F3CDFF\",\"creationTime\":\"2018-03-09T22:59:23.7994577Z\",\"lastModified\":\"2018-03-09T22:59:25.9390463Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:59:25.9390463Z\",\"previousState\":\"completed\",\"previousStateTransitionTime\":\"2018-03-09T22:59:25.5874015Z\",\"commandLine\":\"ping 127.0.0.1 -n 20\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"executionInfo\":{\r\n \"retryCount\":0,\"requeueCount\":0\r\n }\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', - 'last-modified': 'Mon, 02 Oct 2017 21:46:08 GMT', - etag: '0x8D509DEFD8BECDF', + 'last-modified': 'Fri, 09 Mar 2018 22:59:25 GMT', + etag: '0x8D5861167F3CDFF', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'b4938031-22e8-48d0-89fe-e2f9608bce09', + 'request-id': '60df3af2-e9a3-4ff8-9da8-58a5ec2fbd59', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:46:09 GMT', + date: 'Fri, 09 Mar 2018 22:59:26 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_the_details_of_a_pool_with_endpoint_configuration_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_the_details_of_a_pool_with_endpoint_configuration_successfully.nock.js index 9ddc44a153..ddd13430f2 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_get_the_details_of_a_pool_with_endpoint_configuration_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_get_the_details_of_a_pool_with_endpoint_configuration_successfully.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools/nodesdkinboundendpointpool/nodes?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#nodes\",\"value\":[\r\n {\r\n \"id\":\"tvm-115883067_1-20171002t214048z\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdkinboundendpointpool/nodes/tvm-115883067_1-20171002t214048z\",\"state\":\"idle\",\"schedulingState\":\"enabled\",\"stateTransitionTime\":\"2017-10-02T21:42:47.99248Z\",\"lastBootTime\":\"2017-10-02T21:42:47.824099Z\",\"allocationTime\":\"2017-10-02T21:40:48.1874398Z\",\"ipAddress\":\"10.0.0.4\",\"affinityId\":\"TVM:tvm-115883067_1-20171002t214048z\",\"vmSize\":\"standard_a1\",\"totalTasksRun\":0,\"totalTasksSucceeded\":0,\"runningTasksCount\":0,\"isDedicated\":true,\"endpointConfiguration\":{\r\n \"inboundEndpoints\":[\r\n {\r\n \"name\":\"TestEndpointConfig.0\",\"protocol\":\"udp\",\"publicIPAddress\":\"52.243.42.126\",\"publicFQDN\":\"dns405de5d7-78cb-4c59-8dfc-9ef819247a61-azurebatch-cloudservice.japaneast.cloudapp.azure.com\",\"frontendPort\":60000,\"backendPort\":64444\r\n },{\r\n \"name\":\"SSHRule.0\",\"protocol\":\"tcp\",\"publicIPAddress\":\"52.243.42.126\",\"publicFQDN\":\"dns405de5d7-78cb-4c59-8dfc-9ef819247a61-azurebatch-cloudservice.japaneast.cloudapp.azure.com\",\"frontendPort\":50000,\"backendPort\":22\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/pools/nodesdkinboundendpointpool/nodes?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#nodes\",\"value\":[\r\n {\r\n \"id\":\"tvm-3840119875_1-20180309t225426z\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdkinboundendpointpool/nodes/tvm-3840119875_1-20180309t225426z\",\"state\":\"idle\",\"schedulingState\":\"enabled\",\"stateTransitionTime\":\"2018-03-09T22:56:28.505779Z\",\"lastBootTime\":\"2018-03-09T22:56:28.456035Z\",\"allocationTime\":\"2018-03-09T22:54:26.2743347Z\",\"ipAddress\":\"10.0.0.4\",\"affinityId\":\"TVM:tvm-3840119875_1-20180309t225426z\",\"vmSize\":\"standard_a1\",\"totalTasksRun\":0,\"totalTasksSucceeded\":0,\"runningTasksCount\":0,\"isDedicated\":true,\"endpointConfiguration\":{\r\n \"inboundEndpoints\":[\r\n {\r\n \"name\":\"TestEndpointConfig.0\",\"protocol\":\"udp\",\"publicIPAddress\":\"52.161.159.106\",\"publicFQDN\":\"dns45a0c178-17f0-45bd-86c5-127e9086805b-azurebatch-cloudservice.westcentralus.cloudapp.azure.com\",\"frontendPort\":60000,\"backendPort\":64444\r\n },{\r\n \"name\":\"SSHRule.0\",\"protocol\":\"tcp\",\"publicIPAddress\":\"52.161.159.106\",\"publicFQDN\":\"dns45a0c178-17f0-45bd-86c5-127e9086805b-azurebatch-cloudservice.westcentralus.cloudapp.azure.com\",\"frontendPort\":50000,\"backendPort\":22\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'acb215f5-5706-4915-a9fc-ad85f64789e3', + 'request-id': 'e45bee64-e282-47a9-be3c-5f4b7d8989db', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:45:43 GMT', + date: 'Fri, 09 Mar 2018 22:59:12 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools/nodesdkinboundendpointpool/nodes?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#nodes\",\"value\":[\r\n {\r\n \"id\":\"tvm-115883067_1-20171002t214048z\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdkinboundendpointpool/nodes/tvm-115883067_1-20171002t214048z\",\"state\":\"idle\",\"schedulingState\":\"enabled\",\"stateTransitionTime\":\"2017-10-02T21:42:47.99248Z\",\"lastBootTime\":\"2017-10-02T21:42:47.824099Z\",\"allocationTime\":\"2017-10-02T21:40:48.1874398Z\",\"ipAddress\":\"10.0.0.4\",\"affinityId\":\"TVM:tvm-115883067_1-20171002t214048z\",\"vmSize\":\"standard_a1\",\"totalTasksRun\":0,\"totalTasksSucceeded\":0,\"runningTasksCount\":0,\"isDedicated\":true,\"endpointConfiguration\":{\r\n \"inboundEndpoints\":[\r\n {\r\n \"name\":\"TestEndpointConfig.0\",\"protocol\":\"udp\",\"publicIPAddress\":\"52.243.42.126\",\"publicFQDN\":\"dns405de5d7-78cb-4c59-8dfc-9ef819247a61-azurebatch-cloudservice.japaneast.cloudapp.azure.com\",\"frontendPort\":60000,\"backendPort\":64444\r\n },{\r\n \"name\":\"SSHRule.0\",\"protocol\":\"tcp\",\"publicIPAddress\":\"52.243.42.126\",\"publicFQDN\":\"dns405de5d7-78cb-4c59-8dfc-9ef819247a61-azurebatch-cloudservice.japaneast.cloudapp.azure.com\",\"frontendPort\":50000,\"backendPort\":22\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/pools/nodesdkinboundendpointpool/nodes?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#nodes\",\"value\":[\r\n {\r\n \"id\":\"tvm-3840119875_1-20180309t225426z\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdkinboundendpointpool/nodes/tvm-3840119875_1-20180309t225426z\",\"state\":\"idle\",\"schedulingState\":\"enabled\",\"stateTransitionTime\":\"2018-03-09T22:56:28.505779Z\",\"lastBootTime\":\"2018-03-09T22:56:28.456035Z\",\"allocationTime\":\"2018-03-09T22:54:26.2743347Z\",\"ipAddress\":\"10.0.0.4\",\"affinityId\":\"TVM:tvm-3840119875_1-20180309t225426z\",\"vmSize\":\"standard_a1\",\"totalTasksRun\":0,\"totalTasksSucceeded\":0,\"runningTasksCount\":0,\"isDedicated\":true,\"endpointConfiguration\":{\r\n \"inboundEndpoints\":[\r\n {\r\n \"name\":\"TestEndpointConfig.0\",\"protocol\":\"udp\",\"publicIPAddress\":\"52.161.159.106\",\"publicFQDN\":\"dns45a0c178-17f0-45bd-86c5-127e9086805b-azurebatch-cloudservice.westcentralus.cloudapp.azure.com\",\"frontendPort\":60000,\"backendPort\":64444\r\n },{\r\n \"name\":\"SSHRule.0\",\"protocol\":\"tcp\",\"publicIPAddress\":\"52.161.159.106\",\"publicFQDN\":\"dns45a0c178-17f0-45bd-86c5-127e9086805b-azurebatch-cloudservice.westcentralus.cloudapp.azure.com\",\"frontendPort\":50000,\"backendPort\":22\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'acb215f5-5706-4915-a9fc-ad85f64789e3', + 'request-id': 'e45bee64-e282-47a9-be3c-5f4b7d8989db', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:45:43 GMT', + date: 'Fri, 09 Mar 2018 22:59:12 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_a_maximum_number_of_pools.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_a_maximum_number_of_pools.nock.js index dbe5e851fa..002b130b84 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_a_maximum_number_of_pools.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_a_maximum_number_of_pools.nock.js @@ -1,64 +1,64 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools?api-version=2017-09-01.6.0&maxresults=1') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#pools\",\"value\":[\r\n {\r\n \"id\":\"nodesdkdatadiskpool\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdkdatadiskpool\",\"eTag\":\"0x8D509DDFFD3BEB4\",\"lastModified\":\"2017-10-02T21:39:02.7282612Z\",\"creationTime\":\"2017-10-02T21:39:02.7282612Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:39:02.7282612Z\",\"allocationState\":\"steady\",\"allocationStateTransitionTime\":\"2017-10-02T21:39:03.4814453Z\",\"vmSize\":\"standard_a1\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":0,\"targetDedicatedNodes\":0,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"virtualMachineConfiguration\":{\r\n \"imageReference\":{\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n },\"nodeAgentSKUId\":\"batch.node.ubuntu 16.04\",\"dataDisks\":[\r\n {\r\n \"lun\":1,\"caching\":\"none\",\"diskSizeGB\":50,\"storageAccountType\":\"standard_lrs\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\"odata.nextLink\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools?api-version=2017-09-01.6.0&maxresults=1&$skiptoken=WATV2:xHq986ajPDtwrWJ1zF22trIi74MLrrnZzj07zz9bFGFchD6pL4l3sxnzvVR/qZ%5Edcr6m/06FRJ0xCGJPthmWtpUbof90Qn%5E7U%5EWQxhLSA7eWf9DXivnSLzpqBc4HqLZIvjRtqWA26HdlRZXlKYp05jcZYbXkwg5fa7el3Jm9wvEdmhdjhHgYTGr2PspzuEmo8VfLb6XoGCiQWkYRBT4KRx3VMmbwOLRVJYAwHdVveaKlXWn4UVdNwT/Mk4gPTaJkC1crq/PprmRAj%5E1mstkYltV4LJ8lwgF4mMjSI77gkQJ7Kb78nMu/fQSCb4od9h%5Ef2TYG/C/X/QVvulH4bXzMGw==:1$1\"\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/pools?api-version=2018-03-01.6.1&maxresults=1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#pools\",\"value\":[\r\n {\r\n \"id\":\"nodesdkinboundendpointpool\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdkinboundendpointpool\",\"eTag\":\"0x8D58610717C3E16\",\"lastModified\":\"2018-03-09T22:52:32.4359702Z\",\"creationTime\":\"2018-03-09T22:52:32.4359702Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:52:32.4359702Z\",\"allocationState\":\"steady\",\"allocationStateTransitionTime\":\"2018-03-09T22:54:26.965177Z\",\"vmSize\":\"standard_a1\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":1,\"targetDedicatedNodes\":1,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"virtualMachineConfiguration\":{\r\n \"imageReference\":{\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n },\"nodeAgentSKUId\":\"batch.node.ubuntu 16.04\"\r\n },\"networkConfiguration\":{\r\n \"endpointConfiguration\":{\r\n \"inboundNATPools\":[\r\n {\r\n \"name\":\"TestEndpointConfig\",\"protocol\":\"udp\",\"backendPort\":64444,\"frontendPortRangeStart\":60000,\"frontendPortRangeEnd\":61000\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n ],\"odata.nextLink\":\"https://lchency4.westcentralus.batch.azure.com/pools?api-version=2018-03-01.6.1&maxresults=1&$skiptoken=WATV2:eCinib1p8ymm8mMqiNz3Wrsmzu1MV0tNnD7vb1K8ix63zzBYpQt8rSEaNFjUaVcwLUPB8mh/KHfFNqe1sl%5EwbUnwefQHvR666nStghj%5E4RyeIYMXrCVszuXexL2M2xE46VMRye8no6mCp1A2nF3%5E61KI2APbciMWa99n5lSxStX7EWaSO0EDGQz42t1Vl32lIqXRwioWaGdu59ncYpW3vCpoHu9dLyURLacM8HURFz01i5Kam63t9bD0uO5iEgDm97YGoad%5EqxpTlH14iCj%5EyQ==:1$1\"\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'cc60187e-0372-4425-ac2b-4e23d080b6e3', + 'request-id': '70c39706-e493-44c2-a814-4aff7a3f3f64', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:45:55 GMT', + date: 'Fri, 09 Mar 2018 22:59:21 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools?api-version=2017-09-01.6.0&maxresults=1') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#pools\",\"value\":[\r\n {\r\n \"id\":\"nodesdkdatadiskpool\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdkdatadiskpool\",\"eTag\":\"0x8D509DDFFD3BEB4\",\"lastModified\":\"2017-10-02T21:39:02.7282612Z\",\"creationTime\":\"2017-10-02T21:39:02.7282612Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:39:02.7282612Z\",\"allocationState\":\"steady\",\"allocationStateTransitionTime\":\"2017-10-02T21:39:03.4814453Z\",\"vmSize\":\"standard_a1\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":0,\"targetDedicatedNodes\":0,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"virtualMachineConfiguration\":{\r\n \"imageReference\":{\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n },\"nodeAgentSKUId\":\"batch.node.ubuntu 16.04\",\"dataDisks\":[\r\n {\r\n \"lun\":1,\"caching\":\"none\",\"diskSizeGB\":50,\"storageAccountType\":\"standard_lrs\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\"odata.nextLink\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools?api-version=2017-09-01.6.0&maxresults=1&$skiptoken=WATV2:xHq986ajPDtwrWJ1zF22trIi74MLrrnZzj07zz9bFGFchD6pL4l3sxnzvVR/qZ%5Edcr6m/06FRJ0xCGJPthmWtpUbof90Qn%5E7U%5EWQxhLSA7eWf9DXivnSLzpqBc4HqLZIvjRtqWA26HdlRZXlKYp05jcZYbXkwg5fa7el3Jm9wvEdmhdjhHgYTGr2PspzuEmo8VfLb6XoGCiQWkYRBT4KRx3VMmbwOLRVJYAwHdVveaKlXWn4UVdNwT/Mk4gPTaJkC1crq/PprmRAj%5E1mstkYltV4LJ8lwgF4mMjSI77gkQJ7Kb78nMu/fQSCb4od9h%5Ef2TYG/C/X/QVvulH4bXzMGw==:1$1\"\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/pools?api-version=2018-03-01.6.1&maxresults=1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#pools\",\"value\":[\r\n {\r\n \"id\":\"nodesdkinboundendpointpool\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdkinboundendpointpool\",\"eTag\":\"0x8D58610717C3E16\",\"lastModified\":\"2018-03-09T22:52:32.4359702Z\",\"creationTime\":\"2018-03-09T22:52:32.4359702Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:52:32.4359702Z\",\"allocationState\":\"steady\",\"allocationStateTransitionTime\":\"2018-03-09T22:54:26.965177Z\",\"vmSize\":\"standard_a1\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":1,\"targetDedicatedNodes\":1,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"virtualMachineConfiguration\":{\r\n \"imageReference\":{\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n },\"nodeAgentSKUId\":\"batch.node.ubuntu 16.04\"\r\n },\"networkConfiguration\":{\r\n \"endpointConfiguration\":{\r\n \"inboundNATPools\":[\r\n {\r\n \"name\":\"TestEndpointConfig\",\"protocol\":\"udp\",\"backendPort\":64444,\"frontendPortRangeStart\":60000,\"frontendPortRangeEnd\":61000\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n ],\"odata.nextLink\":\"https://lchency4.westcentralus.batch.azure.com/pools?api-version=2018-03-01.6.1&maxresults=1&$skiptoken=WATV2:eCinib1p8ymm8mMqiNz3Wrsmzu1MV0tNnD7vb1K8ix63zzBYpQt8rSEaNFjUaVcwLUPB8mh/KHfFNqe1sl%5EwbUnwefQHvR666nStghj%5E4RyeIYMXrCVszuXexL2M2xE46VMRye8no6mCp1A2nF3%5E61KI2APbciMWa99n5lSxStX7EWaSO0EDGQz42t1Vl32lIqXRwioWaGdu59ncYpW3vCpoHu9dLyURLacM8HURFz01i5Kam63t9bD0uO5iEgDm97YGoad%5EqxpTlH14iCj%5EyQ==:1$1\"\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'cc60187e-0372-4425-ac2b-4e23d080b6e3', + 'request-id': '70c39706-e493-44c2-a814-4aff7a3f3f64', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:45:55 GMT', + date: 'Fri, 09 Mar 2018 22:59:21 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools?api-version=2017-09-01.6.0&maxresults=1&$skiptoken=WATV2:xHq986ajPDtwrWJ1zF22trIi74MLrrnZzj07zz9bFGFchD6pL4l3sxnzvVR/qZ%5Edcr6m/06FRJ0xCGJPthmWtpUbof90Qn%5E7U%5EWQxhLSA7eWf9DXivnSLzpqBc4HqLZIvjRtqWA26HdlRZXlKYp05jcZYbXkwg5fa7el3Jm9wvEdmhdjhHgYTGr2PspzuEmo8VfLb6XoGCiQWkYRBT4KRx3VMmbwOLRVJYAwHdVveaKlXWn4UVdNwT/Mk4gPTaJkC1crq/PprmRAj%5E1mstkYltV4LJ8lwgF4mMjSI77gkQJ7Kb78nMu/fQSCb4od9h%5Ef2TYG/C/X/QVvulH4bXzMGw==:1$1') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#pools\",\"value\":[\r\n {\r\n \"id\":\"nodesdkinboundendpointpool\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdkinboundendpointpool\",\"eTag\":\"0x8D509DE003E2E52\",\"lastModified\":\"2017-10-02T21:39:03.4258002Z\",\"creationTime\":\"2017-10-02T21:39:03.4258002Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:39:03.4258002Z\",\"allocationState\":\"steady\",\"allocationStateTransitionTime\":\"2017-10-02T21:40:49.3559374Z\",\"vmSize\":\"standard_a1\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":1,\"targetDedicatedNodes\":1,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"virtualMachineConfiguration\":{\r\n \"imageReference\":{\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n },\"nodeAgentSKUId\":\"batch.node.ubuntu 16.04\"\r\n },\"networkConfiguration\":{\r\n \"endpointConfiguration\":{\r\n \"inboundNATPools\":[\r\n {\r\n \"name\":\"TestEndpointConfig\",\"protocol\":\"udp\",\"backendPort\":64444,\"frontendPortRangeStart\":60000,\"frontendPortRangeEnd\":61000\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n ],\"odata.nextLink\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools?api-version=2017-09-01.6.0&maxresults=1&$skiptoken=WATV2:4t5cZqQGZvU4dDA4C9YvHwW07MCHF/KqpfsWgPFoKsKMf95diNHG8ErgiPxXJW8cpC27jGmsu5rwv1iWhlIDWtYt4sL8Xwxtx/WQGyTbYtuTtT3ALY5gAceqVsCZR8Br7%5EgPpYWMUe89YLU58u%5EWMrfiAg7Mh9yCaKphnDmkutv8T5nNOPUxmdVJtmYp6WGhWbEV4xTK7iAAvmP8rLyT1hxxTJSIc%5E54Xffm6T28V91rkbNrmzl8zhxUuPbV5F7iPJwsrVdn9C%5EiBCEvGbXXcRGoMLshDxsxd7IkhMchaSg=:1$1\"\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/pools?api-version=2018-03-01.6.1&maxresults=1&$skiptoken=WATV2:eCinib1p8ymm8mMqiNz3Wrsmzu1MV0tNnD7vb1K8ix63zzBYpQt8rSEaNFjUaVcwLUPB8mh/KHfFNqe1sl%5EwbUnwefQHvR666nStghj%5E4RyeIYMXrCVszuXexL2M2xE46VMRye8no6mCp1A2nF3%5E61KI2APbciMWa99n5lSxStX7EWaSO0EDGQz42t1Vl32lIqXRwioWaGdu59ncYpW3vCpoHu9dLyURLacM8HURFz01i5Kam63t9bD0uO5iEgDm97YGoad%5EqxpTlH14iCj%5EyQ==:1$1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#pools\",\"value\":[\r\n {\r\n \"id\":\"nodesdktestpool1\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1\",\"eTag\":\"0x8D5861164D233AE\",\"lastModified\":\"2018-03-09T22:59:20.6856622Z\",\"creationTime\":\"2018-03-09T22:44:04.5924827Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:44:04.5924827Z\",\"allocationState\":\"stopping\",\"allocationStateTransitionTime\":\"2018-03-09T22:59:20.6856622Z\",\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":3,\"targetDedicatedNodes\":2,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"userAccounts\":[\r\n {\r\n \"name\":\"nonAdminUser\",\"elevationLevel\":\"nonadmin\"\r\n }\r\n ],\"metadata\":[\r\n {\r\n \"name\":\"foo2\",\"value\":\"bar2\"\r\n }\r\n ],\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"cloudServiceConfiguration\":{\r\n \"osFamily\":\"4\",\"targetOSVersion\":\"*\",\"currentOSVersion\":\"*\"\r\n }\r\n }\r\n ],\"odata.nextLink\":\"https://lchency4.westcentralus.batch.azure.com/pools?api-version=2018-03-01.6.1&maxresults=1&$skiptoken=WATV2:PQFgS3ENlQlwds40%5E7uYOKDzwaZBB9m2eCCzqo4yyCYqYUUcaHHWRRGF2QxPFPbRIs9ieKcy8pXJRvrFrE/LfERgbwn0qDIpGeQUtRuCCzUkxLdjVR4JI%5EqOEu%5E4qWKjEMz/UFNZh6IJZssFaB25H4meeYwalq%5EOhgubOwHGNP8FgquCDtUYiU8rqDP9Mm8sl6xVWqwjvsXh5uNDV2oqCYTIJYecHeDQbQfMB0sZ2sqkHPLlbvCD3oAmH3Tr62gByV/Q28zuPJHrzzqn1SSrzg==:1$1\"\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '3effa62d-6751-46db-a669-a3ba6026e142', + 'request-id': '41dc800f-1e1f-40cc-a557-1ba7f5145a49', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:45:56 GMT', + date: 'Fri, 09 Mar 2018 22:59:21 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools?api-version=2017-09-01.6.0&maxresults=1&$skiptoken=WATV2:xHq986ajPDtwrWJ1zF22trIi74MLrrnZzj07zz9bFGFchD6pL4l3sxnzvVR/qZ%5Edcr6m/06FRJ0xCGJPthmWtpUbof90Qn%5E7U%5EWQxhLSA7eWf9DXivnSLzpqBc4HqLZIvjRtqWA26HdlRZXlKYp05jcZYbXkwg5fa7el3Jm9wvEdmhdjhHgYTGr2PspzuEmo8VfLb6XoGCiQWkYRBT4KRx3VMmbwOLRVJYAwHdVveaKlXWn4UVdNwT/Mk4gPTaJkC1crq/PprmRAj%5E1mstkYltV4LJ8lwgF4mMjSI77gkQJ7Kb78nMu/fQSCb4od9h%5Ef2TYG/C/X/QVvulH4bXzMGw==:1$1') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#pools\",\"value\":[\r\n {\r\n \"id\":\"nodesdkinboundendpointpool\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdkinboundendpointpool\",\"eTag\":\"0x8D509DE003E2E52\",\"lastModified\":\"2017-10-02T21:39:03.4258002Z\",\"creationTime\":\"2017-10-02T21:39:03.4258002Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:39:03.4258002Z\",\"allocationState\":\"steady\",\"allocationStateTransitionTime\":\"2017-10-02T21:40:49.3559374Z\",\"vmSize\":\"standard_a1\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":1,\"targetDedicatedNodes\":1,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"virtualMachineConfiguration\":{\r\n \"imageReference\":{\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n },\"nodeAgentSKUId\":\"batch.node.ubuntu 16.04\"\r\n },\"networkConfiguration\":{\r\n \"endpointConfiguration\":{\r\n \"inboundNATPools\":[\r\n {\r\n \"name\":\"TestEndpointConfig\",\"protocol\":\"udp\",\"backendPort\":64444,\"frontendPortRangeStart\":60000,\"frontendPortRangeEnd\":61000\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n ],\"odata.nextLink\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools?api-version=2017-09-01.6.0&maxresults=1&$skiptoken=WATV2:4t5cZqQGZvU4dDA4C9YvHwW07MCHF/KqpfsWgPFoKsKMf95diNHG8ErgiPxXJW8cpC27jGmsu5rwv1iWhlIDWtYt4sL8Xwxtx/WQGyTbYtuTtT3ALY5gAceqVsCZR8Br7%5EgPpYWMUe89YLU58u%5EWMrfiAg7Mh9yCaKphnDmkutv8T5nNOPUxmdVJtmYp6WGhWbEV4xTK7iAAvmP8rLyT1hxxTJSIc%5E54Xffm6T28V91rkbNrmzl8zhxUuPbV5F7iPJwsrVdn9C%5EiBCEvGbXXcRGoMLshDxsxd7IkhMchaSg=:1$1\"\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/pools?api-version=2018-03-01.6.1&maxresults=1&$skiptoken=WATV2:eCinib1p8ymm8mMqiNz3Wrsmzu1MV0tNnD7vb1K8ix63zzBYpQt8rSEaNFjUaVcwLUPB8mh/KHfFNqe1sl%5EwbUnwefQHvR666nStghj%5E4RyeIYMXrCVszuXexL2M2xE46VMRye8no6mCp1A2nF3%5E61KI2APbciMWa99n5lSxStX7EWaSO0EDGQz42t1Vl32lIqXRwioWaGdu59ncYpW3vCpoHu9dLyURLacM8HURFz01i5Kam63t9bD0uO5iEgDm97YGoad%5EqxpTlH14iCj%5EyQ==:1$1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#pools\",\"value\":[\r\n {\r\n \"id\":\"nodesdktestpool1\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1\",\"eTag\":\"0x8D5861164D233AE\",\"lastModified\":\"2018-03-09T22:59:20.6856622Z\",\"creationTime\":\"2018-03-09T22:44:04.5924827Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:44:04.5924827Z\",\"allocationState\":\"stopping\",\"allocationStateTransitionTime\":\"2018-03-09T22:59:20.6856622Z\",\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":3,\"targetDedicatedNodes\":2,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"userAccounts\":[\r\n {\r\n \"name\":\"nonAdminUser\",\"elevationLevel\":\"nonadmin\"\r\n }\r\n ],\"metadata\":[\r\n {\r\n \"name\":\"foo2\",\"value\":\"bar2\"\r\n }\r\n ],\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"cloudServiceConfiguration\":{\r\n \"osFamily\":\"4\",\"targetOSVersion\":\"*\",\"currentOSVersion\":\"*\"\r\n }\r\n }\r\n ],\"odata.nextLink\":\"https://lchency4.westcentralus.batch.azure.com/pools?api-version=2018-03-01.6.1&maxresults=1&$skiptoken=WATV2:PQFgS3ENlQlwds40%5E7uYOKDzwaZBB9m2eCCzqo4yyCYqYUUcaHHWRRGF2QxPFPbRIs9ieKcy8pXJRvrFrE/LfERgbwn0qDIpGeQUtRuCCzUkxLdjVR4JI%5EqOEu%5E4qWKjEMz/UFNZh6IJZssFaB25H4meeYwalq%5EOhgubOwHGNP8FgquCDtUYiU8rqDP9Mm8sl6xVWqwjvsXh5uNDV2oqCYTIJYecHeDQbQfMB0sZ2sqkHPLlbvCD3oAmH3Tr62gByV/Q28zuPJHrzzqn1SSrzg==:1$1\"\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '3effa62d-6751-46db-a669-a3ba6026e142', + 'request-id': '41dc800f-1e1f-40cc-a557-1ba7f5145a49', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:45:56 GMT', + date: 'Fri, 09 Mar 2018 22:59:21 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_all_tasks_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_all_tasks_successfully.nock.js index 6795c33ff2..995c728e81 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_all_tasks_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_all_tasks_successfully.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobs/HelloWorldJobNodeSDKTest/tasks?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#tasks\",\"value\":[\r\n {\r\n \"id\":\"HelloWorldNodeSDKTestTask\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask\",\"eTag\":\"0x8D509DEFD8BECDF\",\"creationTime\":\"2017-10-02T21:46:02.7736096Z\",\"lastModified\":\"2017-10-02T21:46:08.3988703Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:46:08.3988703Z\",\"previousState\":\"completed\",\"previousStateTransitionTime\":\"2017-10-02T21:46:07.1812318Z\",\"commandLine\":\"ping 127.0.0.1 -n 20\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"executionInfo\":{\r\n \"retryCount\":0,\"requeueCount\":0\r\n }\r\n },{\r\n \"id\":\"HelloWorldNodeSDKTestTask2\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2\",\"eTag\":\"0x8D509DEFDB59B4B\",\"creationTime\":\"2017-10-02T21:46:07.7573717Z\",\"lastModified\":\"2017-10-02T21:46:08.6720331Z\",\"state\":\"running\",\"stateTransitionTime\":\"2017-10-02T21:46:08.9983308Z\",\"previousState\":\"active\",\"previousStateTransitionTime\":\"2017-10-02T21:46:07.7573717Z\",\"commandLine\":\"cmd /c echo hello world\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"executionInfo\":{\r\n \"startTime\":\"2017-10-02T21:46:08.9983308Z\",\"retryCount\":0,\"requeueCount\":0\r\n },\"nodeInfo\":{\r\n \"affinityId\":\"TVM:tvm-115883067_3-20171002t213150z\",\"nodeUrl\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_3-20171002t213150z\",\"poolId\":\"nodesdktestpool1\",\"nodeId\":\"tvm-115883067_3-20171002t213150z\",\"taskRootDirectory\":\"workitems\\\\helloworldjobnodesdktest\\\\job-1\\\\helloworldnodesdktesttask2\",\"taskRootDirectoryUrl\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_3-20171002t213150z/files/workitems/helloworldjobnodesdktest/job-1/helloworldnodesdktesttask2\"\r\n }\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/jobs/HelloWorldJobNodeSDKTest/tasks?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#tasks\",\"value\":[\r\n {\r\n \"id\":\"HelloWorldNodeSDKTestTask\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask\",\"eTag\":\"0x8D5861167F3CDFF\",\"creationTime\":\"2018-03-09T22:59:23.7994577Z\",\"lastModified\":\"2018-03-09T22:59:25.9390463Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:59:25.9390463Z\",\"previousState\":\"completed\",\"previousStateTransitionTime\":\"2018-03-09T22:59:25.5874015Z\",\"commandLine\":\"ping 127.0.0.1 -n 20\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"executionInfo\":{\r\n \"retryCount\":0,\"requeueCount\":0\r\n }\r\n },{\r\n \"id\":\"HelloWorldNodeSDKTestTask2\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2\",\"eTag\":\"0x8D586116815EE04\",\"creationTime\":\"2018-03-09T22:59:25.7736782Z\",\"lastModified\":\"2018-03-09T22:59:26.1626884Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:59:25.7736782Z\",\"commandLine\":\"cmd /c echo hello world\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"executionInfo\":{\r\n \"retryCount\":0,\"requeueCount\":0\r\n }\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'ed848dda-b618-4c65-af06-de7a112fd3a7', + 'request-id': 'b13707b0-5a0d-4b91-ba8a-8ad9998e60c0', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:46:09 GMT', + date: 'Fri, 09 Mar 2018 22:59:26 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobs/HelloWorldJobNodeSDKTest/tasks?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#tasks\",\"value\":[\r\n {\r\n \"id\":\"HelloWorldNodeSDKTestTask\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask\",\"eTag\":\"0x8D509DEFD8BECDF\",\"creationTime\":\"2017-10-02T21:46:02.7736096Z\",\"lastModified\":\"2017-10-02T21:46:08.3988703Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:46:08.3988703Z\",\"previousState\":\"completed\",\"previousStateTransitionTime\":\"2017-10-02T21:46:07.1812318Z\",\"commandLine\":\"ping 127.0.0.1 -n 20\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"executionInfo\":{\r\n \"retryCount\":0,\"requeueCount\":0\r\n }\r\n },{\r\n \"id\":\"HelloWorldNodeSDKTestTask2\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2\",\"eTag\":\"0x8D509DEFDB59B4B\",\"creationTime\":\"2017-10-02T21:46:07.7573717Z\",\"lastModified\":\"2017-10-02T21:46:08.6720331Z\",\"state\":\"running\",\"stateTransitionTime\":\"2017-10-02T21:46:08.9983308Z\",\"previousState\":\"active\",\"previousStateTransitionTime\":\"2017-10-02T21:46:07.7573717Z\",\"commandLine\":\"cmd /c echo hello world\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"executionInfo\":{\r\n \"startTime\":\"2017-10-02T21:46:08.9983308Z\",\"retryCount\":0,\"requeueCount\":0\r\n },\"nodeInfo\":{\r\n \"affinityId\":\"TVM:tvm-115883067_3-20171002t213150z\",\"nodeUrl\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_3-20171002t213150z\",\"poolId\":\"nodesdktestpool1\",\"nodeId\":\"tvm-115883067_3-20171002t213150z\",\"taskRootDirectory\":\"workitems\\\\helloworldjobnodesdktest\\\\job-1\\\\helloworldnodesdktesttask2\",\"taskRootDirectoryUrl\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_3-20171002t213150z/files/workitems/helloworldjobnodesdktest/job-1/helloworldnodesdktesttask2\"\r\n }\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/jobs/HelloWorldJobNodeSDKTest/tasks?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#tasks\",\"value\":[\r\n {\r\n \"id\":\"HelloWorldNodeSDKTestTask\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask\",\"eTag\":\"0x8D5861167F3CDFF\",\"creationTime\":\"2018-03-09T22:59:23.7994577Z\",\"lastModified\":\"2018-03-09T22:59:25.9390463Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:59:25.9390463Z\",\"previousState\":\"completed\",\"previousStateTransitionTime\":\"2018-03-09T22:59:25.5874015Z\",\"commandLine\":\"ping 127.0.0.1 -n 20\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"executionInfo\":{\r\n \"retryCount\":0,\"requeueCount\":0\r\n }\r\n },{\r\n \"id\":\"HelloWorldNodeSDKTestTask2\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2\",\"eTag\":\"0x8D586116815EE04\",\"creationTime\":\"2018-03-09T22:59:25.7736782Z\",\"lastModified\":\"2018-03-09T22:59:26.1626884Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:59:25.7736782Z\",\"commandLine\":\"cmd /c echo hello world\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"executionInfo\":{\r\n \"retryCount\":0,\"requeueCount\":0\r\n }\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'ed848dda-b618-4c65-af06-de7a112fd3a7', + 'request-id': 'b13707b0-5a0d-4b91-ba8a-8ad9998e60c0', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:46:09 GMT', + date: 'Fri, 09 Mar 2018 22:59:26 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_applications_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_applications_successfully.nock.js index 26d2d78258..0a715832b7 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_applications_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_applications_successfully.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/applications?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#listapplicationsummariesresponses\",\"value\":[\r\n {\r\n \"id\":\"my_application_id\",\"versions\":[\r\n \"v1.0\"\r\n ],\"displayName\":\"my_updated_name\"\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/applications?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#listapplicationsummariesresponses\",\"value\":[\r\n {\r\n \"id\":\"my_application_id\",\"versions\":[\r\n \"v1.0\"\r\n ],\"displayName\":\"my_updated_name\"\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '550a185a-6cef-4296-85d4-0ab3e6e92f64', + 'request-id': '6ee89e1a-6899-4a80-a289-684a06a628b4', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:51:52 GMT', + date: 'Fri, 09 Mar 2018 23:05:07 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/applications?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#listapplicationsummariesresponses\",\"value\":[\r\n {\r\n \"id\":\"my_application_id\",\"versions\":[\r\n \"v1.0\"\r\n ],\"displayName\":\"my_updated_name\"\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/applications?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#listapplicationsummariesresponses\",\"value\":[\r\n {\r\n \"id\":\"my_application_id\",\"versions\":[\r\n \"v1.0\"\r\n ],\"displayName\":\"my_updated_name\"\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '550a185a-6cef-4296-85d4-0ab3e6e92f64', + 'request-id': '6ee89e1a-6899-4a80-a289-684a06a628b4', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:51:52 GMT', + date: 'Fri, 09 Mar 2018 23:05:07 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_certificates_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_certificates_successfully.nock.js index 788e7a2b1f..998e84454b 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_certificates_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_certificates_successfully.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/certificates?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#certificates\",\"value\":[\r\n {\r\n \"thumbprint\":\"cff2ab63c8c955aaf71989efa641b906558d9fb7\",\"thumbprintAlgorithm\":\"sha1\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/certificates(thumbprintAlgorithm=sha1,thumbprint=cff2ab63c8c955aaf71989efa641b906558d9fb7)\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:30:34.9603179Z\",\"publicData\":\"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78\"\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/certificates?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#certificates\",\"value\":[\r\n {\r\n \"thumbprint\":\"cff2ab63c8c955aaf71989efa641b906558d9fb7\",\"thumbprintAlgorithm\":\"sha1\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/certificates(thumbprintAlgorithm=sha1,thumbprint=cff2ab63c8c955aaf71989efa641b906558d9fb7)\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:44:03.7701617Z\",\"publicData\":\"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78\"\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '4a5e5499-54af-4126-a575-2734e811e2bf', + 'request-id': '1bac6d25-c0a9-433c-ab38-ab2e78001ffc', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:30:35 GMT', + date: 'Fri, 09 Mar 2018 22:44:04 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/certificates?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#certificates\",\"value\":[\r\n {\r\n \"thumbprint\":\"cff2ab63c8c955aaf71989efa641b906558d9fb7\",\"thumbprintAlgorithm\":\"sha1\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/certificates(thumbprintAlgorithm=sha1,thumbprint=cff2ab63c8c955aaf71989efa641b906558d9fb7)\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:30:34.9603179Z\",\"publicData\":\"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78\"\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/certificates?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#certificates\",\"value\":[\r\n {\r\n \"thumbprint\":\"cff2ab63c8c955aaf71989efa641b906558d9fb7\",\"thumbprintAlgorithm\":\"sha1\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/certificates(thumbprintAlgorithm=sha1,thumbprint=cff2ab63c8c955aaf71989efa641b906558d9fb7)\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:44:03.7701617Z\",\"publicData\":\"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78\"\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '4a5e5499-54af-4126-a575-2734e811e2bf', + 'request-id': '1bac6d25-c0a9-433c-ab38-ab2e78001ffc', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:30:35 GMT', + date: 'Fri, 09 Mar 2018 22:44:04 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_compute_nodes_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_compute_nodes_successfully.nock.js index fb964752ab..9ca23b90e4 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_compute_nodes_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_compute_nodes_successfully.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools/nodesdktestpool1/nodes?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#nodes\",\"value\":[\r\n {\r\n \"id\":\"tvm-115883067_1-20171002t213150z\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_1-20171002t213150z\",\"state\":\"idle\",\"schedulingState\":\"enabled\",\"stateTransitionTime\":\"2017-10-02T21:34:59.1401171Z\",\"lastBootTime\":\"2017-10-02T21:34:57.4771168Z\",\"allocationTime\":\"2017-10-02T21:31:50.8333435Z\",\"ipAddress\":\"100.74.46.149\",\"affinityId\":\"TVM:tvm-115883067_1-20171002t213150z\",\"vmSize\":\"small\",\"totalTasksRun\":0,\"totalTasksSucceeded\":0,\"runningTasksCount\":0,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"startTaskInfo\":{\r\n \"state\":\"completed\",\"startTime\":\"2017-10-02T21:34:59.1401171Z\",\"endTime\":\"2017-10-02T21:34:59.2972544Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0\r\n },\"isDedicated\":true\r\n },{\r\n \"id\":\"tvm-115883067_2-20171002t213150z\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_2-20171002t213150z\",\"state\":\"idle\",\"schedulingState\":\"enabled\",\"stateTransitionTime\":\"2017-10-02T21:34:58.924195Z\",\"lastBootTime\":\"2017-10-02T21:34:56.8633634Z\",\"allocationTime\":\"2017-10-02T21:31:50.8333435Z\",\"ipAddress\":\"100.74.12.107\",\"affinityId\":\"TVM:tvm-115883067_2-20171002t213150z\",\"vmSize\":\"small\",\"totalTasksRun\":0,\"totalTasksSucceeded\":0,\"runningTasksCount\":0,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"startTaskInfo\":{\r\n \"state\":\"completed\",\"startTime\":\"2017-10-02T21:34:58.924195Z\",\"endTime\":\"2017-10-02T21:34:59.0861927Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0\r\n },\"isDedicated\":true\r\n },{\r\n \"id\":\"tvm-115883067_3-20171002t213150z\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_3-20171002t213150z\",\"state\":\"idle\",\"schedulingState\":\"enabled\",\"stateTransitionTime\":\"2017-10-02T21:34:57.2185271Z\",\"lastBootTime\":\"2017-10-02T21:34:55.177581Z\",\"allocationTime\":\"2017-10-02T21:31:50.8333435Z\",\"ipAddress\":\"100.74.92.21\",\"affinityId\":\"TVM:tvm-115883067_3-20171002t213150z\",\"vmSize\":\"small\",\"totalTasksRun\":0,\"totalTasksSucceeded\":0,\"runningTasksCount\":0,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"startTaskInfo\":{\r\n \"state\":\"completed\",\"startTime\":\"2017-10-02T21:34:57.2185271Z\",\"endTime\":\"2017-10-02T21:34:57.3605269Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0\r\n },\"isDedicated\":true\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/pools/nodesdktestpool1/nodes?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#nodes\",\"value\":[\r\n {\r\n \"id\":\"tvm-3840119875_1-20180309t224543z\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_1-20180309t224543z\",\"state\":\"idle\",\"schedulingState\":\"enabled\",\"stateTransitionTime\":\"2018-03-09T22:49:59.4651008Z\",\"lastBootTime\":\"2018-03-09T22:49:57.0324304Z\",\"allocationTime\":\"2018-03-09T22:45:43.713181Z\",\"ipAddress\":\"100.73.20.110\",\"affinityId\":\"TVM:tvm-3840119875_1-20180309t224543z\",\"vmSize\":\"small\",\"totalTasksRun\":0,\"totalTasksSucceeded\":0,\"runningTasksCount\":0,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"startTaskInfo\":{\r\n \"state\":\"completed\",\"startTime\":\"2018-03-09T22:49:59.4651008Z\",\"endTime\":\"2018-03-09T22:49:59.6071949Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0\r\n },\"isDedicated\":true\r\n },{\r\n \"id\":\"tvm-3840119875_2-20180309t224543z\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_2-20180309t224543z\",\"state\":\"idle\",\"schedulingState\":\"enabled\",\"stateTransitionTime\":\"2018-03-09T22:49:58.7550625Z\",\"lastBootTime\":\"2018-03-09T22:49:56.6021605Z\",\"allocationTime\":\"2018-03-09T22:45:43.713181Z\",\"ipAddress\":\"100.73.56.76\",\"affinityId\":\"TVM:tvm-3840119875_2-20180309t224543z\",\"vmSize\":\"small\",\"totalTasksRun\":0,\"totalTasksSucceeded\":0,\"runningTasksCount\":0,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"startTaskInfo\":{\r\n \"state\":\"completed\",\"startTime\":\"2018-03-09T22:49:58.7550625Z\",\"endTime\":\"2018-03-09T22:49:58.9254011Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0\r\n },\"isDedicated\":true\r\n },{\r\n \"id\":\"tvm-3840119875_3-20180309t224543z\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_3-20180309t224543z\",\"state\":\"idle\",\"schedulingState\":\"enabled\",\"stateTransitionTime\":\"2018-03-09T22:50:04.0199067Z\",\"lastBootTime\":\"2018-03-09T22:50:01.3197051Z\",\"allocationTime\":\"2018-03-09T22:45:43.713181Z\",\"ipAddress\":\"100.73.88.23\",\"affinityId\":\"TVM:tvm-3840119875_3-20180309t224543z\",\"vmSize\":\"small\",\"totalTasksRun\":0,\"totalTasksSucceeded\":0,\"runningTasksCount\":0,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"startTaskInfo\":{\r\n \"state\":\"completed\",\"startTime\":\"2018-03-09T22:50:04.0199067Z\",\"endTime\":\"2018-03-09T22:50:04.1619194Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0\r\n },\"isDedicated\":true\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '62c0f6d9-08d8-403e-925c-be55047699d4', + 'request-id': '963cffca-bc58-4a3d-8926-699a9c160be7', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:45:44 GMT', + date: 'Fri, 09 Mar 2018 22:59:13 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools/nodesdktestpool1/nodes?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#nodes\",\"value\":[\r\n {\r\n \"id\":\"tvm-115883067_1-20171002t213150z\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_1-20171002t213150z\",\"state\":\"idle\",\"schedulingState\":\"enabled\",\"stateTransitionTime\":\"2017-10-02T21:34:59.1401171Z\",\"lastBootTime\":\"2017-10-02T21:34:57.4771168Z\",\"allocationTime\":\"2017-10-02T21:31:50.8333435Z\",\"ipAddress\":\"100.74.46.149\",\"affinityId\":\"TVM:tvm-115883067_1-20171002t213150z\",\"vmSize\":\"small\",\"totalTasksRun\":0,\"totalTasksSucceeded\":0,\"runningTasksCount\":0,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"startTaskInfo\":{\r\n \"state\":\"completed\",\"startTime\":\"2017-10-02T21:34:59.1401171Z\",\"endTime\":\"2017-10-02T21:34:59.2972544Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0\r\n },\"isDedicated\":true\r\n },{\r\n \"id\":\"tvm-115883067_2-20171002t213150z\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_2-20171002t213150z\",\"state\":\"idle\",\"schedulingState\":\"enabled\",\"stateTransitionTime\":\"2017-10-02T21:34:58.924195Z\",\"lastBootTime\":\"2017-10-02T21:34:56.8633634Z\",\"allocationTime\":\"2017-10-02T21:31:50.8333435Z\",\"ipAddress\":\"100.74.12.107\",\"affinityId\":\"TVM:tvm-115883067_2-20171002t213150z\",\"vmSize\":\"small\",\"totalTasksRun\":0,\"totalTasksSucceeded\":0,\"runningTasksCount\":0,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"startTaskInfo\":{\r\n \"state\":\"completed\",\"startTime\":\"2017-10-02T21:34:58.924195Z\",\"endTime\":\"2017-10-02T21:34:59.0861927Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0\r\n },\"isDedicated\":true\r\n },{\r\n \"id\":\"tvm-115883067_3-20171002t213150z\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_3-20171002t213150z\",\"state\":\"idle\",\"schedulingState\":\"enabled\",\"stateTransitionTime\":\"2017-10-02T21:34:57.2185271Z\",\"lastBootTime\":\"2017-10-02T21:34:55.177581Z\",\"allocationTime\":\"2017-10-02T21:31:50.8333435Z\",\"ipAddress\":\"100.74.92.21\",\"affinityId\":\"TVM:tvm-115883067_3-20171002t213150z\",\"vmSize\":\"small\",\"totalTasksRun\":0,\"totalTasksSucceeded\":0,\"runningTasksCount\":0,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"startTaskInfo\":{\r\n \"state\":\"completed\",\"startTime\":\"2017-10-02T21:34:57.2185271Z\",\"endTime\":\"2017-10-02T21:34:57.3605269Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0\r\n },\"isDedicated\":true\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/pools/nodesdktestpool1/nodes?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#nodes\",\"value\":[\r\n {\r\n \"id\":\"tvm-3840119875_1-20180309t224543z\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_1-20180309t224543z\",\"state\":\"idle\",\"schedulingState\":\"enabled\",\"stateTransitionTime\":\"2018-03-09T22:49:59.4651008Z\",\"lastBootTime\":\"2018-03-09T22:49:57.0324304Z\",\"allocationTime\":\"2018-03-09T22:45:43.713181Z\",\"ipAddress\":\"100.73.20.110\",\"affinityId\":\"TVM:tvm-3840119875_1-20180309t224543z\",\"vmSize\":\"small\",\"totalTasksRun\":0,\"totalTasksSucceeded\":0,\"runningTasksCount\":0,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"startTaskInfo\":{\r\n \"state\":\"completed\",\"startTime\":\"2018-03-09T22:49:59.4651008Z\",\"endTime\":\"2018-03-09T22:49:59.6071949Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0\r\n },\"isDedicated\":true\r\n },{\r\n \"id\":\"tvm-3840119875_2-20180309t224543z\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_2-20180309t224543z\",\"state\":\"idle\",\"schedulingState\":\"enabled\",\"stateTransitionTime\":\"2018-03-09T22:49:58.7550625Z\",\"lastBootTime\":\"2018-03-09T22:49:56.6021605Z\",\"allocationTime\":\"2018-03-09T22:45:43.713181Z\",\"ipAddress\":\"100.73.56.76\",\"affinityId\":\"TVM:tvm-3840119875_2-20180309t224543z\",\"vmSize\":\"small\",\"totalTasksRun\":0,\"totalTasksSucceeded\":0,\"runningTasksCount\":0,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"startTaskInfo\":{\r\n \"state\":\"completed\",\"startTime\":\"2018-03-09T22:49:58.7550625Z\",\"endTime\":\"2018-03-09T22:49:58.9254011Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0\r\n },\"isDedicated\":true\r\n },{\r\n \"id\":\"tvm-3840119875_3-20180309t224543z\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_3-20180309t224543z\",\"state\":\"idle\",\"schedulingState\":\"enabled\",\"stateTransitionTime\":\"2018-03-09T22:50:04.0199067Z\",\"lastBootTime\":\"2018-03-09T22:50:01.3197051Z\",\"allocationTime\":\"2018-03-09T22:45:43.713181Z\",\"ipAddress\":\"100.73.88.23\",\"affinityId\":\"TVM:tvm-3840119875_3-20180309t224543z\",\"vmSize\":\"small\",\"totalTasksRun\":0,\"totalTasksSucceeded\":0,\"runningTasksCount\":0,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"startTaskInfo\":{\r\n \"state\":\"completed\",\"startTime\":\"2018-03-09T22:50:04.0199067Z\",\"endTime\":\"2018-03-09T22:50:04.1619194Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0\r\n },\"isDedicated\":true\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '62c0f6d9-08d8-403e-925c-be55047699d4', + 'request-id': '963cffca-bc58-4a3d-8926-699a9c160be7', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:45:44 GMT', + date: 'Fri, 09 Mar 2018 22:59:13 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_files_from_compute_node_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_files_from_compute_node_successfully.nock.js index 5e0241057b..c9378bcb24 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_files_from_compute_node_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_files_from_compute_node_successfully.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools/nodesdktestpool1/nodes/tvm-115883067_3-20171002t213150z/files?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#files\",\"value\":[\r\n {\r\n \"name\":\"applications\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_3-20171002t213150z/files/applications\",\"isDirectory\":true\r\n },{\r\n \"name\":\"shared\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_3-20171002t213150z/files/shared\",\"isDirectory\":true\r\n },{\r\n \"name\":\"startup\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_3-20171002t213150z/files/startup\",\"isDirectory\":true\r\n },{\r\n \"name\":\"workitems\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_3-20171002t213150z/files/workitems\",\"isDirectory\":true\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/pools/nodesdktestpool1/nodes/tvm-3840119875_3-20180309t224543z/files?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#files\",\"value\":[\r\n {\r\n \"name\":\"applications\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_3-20180309t224543z/files/applications\",\"isDirectory\":true\r\n },{\r\n \"name\":\"shared\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_3-20180309t224543z/files/shared\",\"isDirectory\":true\r\n },{\r\n \"name\":\"startup\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_3-20180309t224543z/files/startup\",\"isDirectory\":true\r\n },{\r\n \"name\":\"workitems\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_3-20180309t224543z/files/workitems\",\"isDirectory\":true\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '5b48522c-3ed0-4bc7-b489-40c9ad51bfff', + 'request-id': '200d0573-69aa-44d8-99e6-4260e3633295', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:49:50 GMT', + date: 'Fri, 09 Mar 2018 23:03:04 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools/nodesdktestpool1/nodes/tvm-115883067_3-20171002t213150z/files?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#files\",\"value\":[\r\n {\r\n \"name\":\"applications\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_3-20171002t213150z/files/applications\",\"isDirectory\":true\r\n },{\r\n \"name\":\"shared\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_3-20171002t213150z/files/shared\",\"isDirectory\":true\r\n },{\r\n \"name\":\"startup\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_3-20171002t213150z/files/startup\",\"isDirectory\":true\r\n },{\r\n \"name\":\"workitems\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_3-20171002t213150z/files/workitems\",\"isDirectory\":true\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/pools/nodesdktestpool1/nodes/tvm-3840119875_3-20180309t224543z/files?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#files\",\"value\":[\r\n {\r\n \"name\":\"applications\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_3-20180309t224543z/files/applications\",\"isDirectory\":true\r\n },{\r\n \"name\":\"shared\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_3-20180309t224543z/files/shared\",\"isDirectory\":true\r\n },{\r\n \"name\":\"startup\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_3-20180309t224543z/files/startup\",\"isDirectory\":true\r\n },{\r\n \"name\":\"workitems\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_3-20180309t224543z/files/workitems\",\"isDirectory\":true\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '5b48522c-3ed0-4bc7-b489-40c9ad51bfff', + 'request-id': '200d0573-69aa-44d8-99e6-4260e3633295', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:49:50 GMT', + date: 'Fri, 09 Mar 2018 23:03:04 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_files_from_task_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_files_from_task_successfully.nock.js index 4850a8c020..4c9a5e564d 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_files_from_task_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_files_from_task_successfully.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#files\",\"value\":[\r\n {\r\n \"name\":\"ProcessEnv.cmd\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files/ProcessEnv.cmd\",\"isDirectory\":false,\"properties\":{\r\n \"creationTime\":\"2017-10-02T21:46:09.095647Z\",\"lastModified\":\"2017-10-02T21:46:09.095647Z\",\"contentLength\":\"2702\",\"contentType\":\"application/octet-stream\"\r\n }\r\n },{\r\n \"name\":\"stderr.txt\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files/stderr.txt\",\"isDirectory\":false,\"properties\":{\r\n \"creationTime\":\"2017-10-02T21:46:09.0123317Z\",\"lastModified\":\"2017-10-02T21:46:09.0123317Z\",\"contentLength\":\"0\",\"contentType\":\"application/octet-stream\"\r\n }\r\n },{\r\n \"name\":\"stdout.txt\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files/stdout.txt\",\"isDirectory\":false,\"properties\":{\r\n \"creationTime\":\"2017-10-02T21:46:09.0123317Z\",\"lastModified\":\"2017-10-02T21:46:09.107332Z\",\"contentLength\":\"13\",\"contentType\":\"application/octet-stream\"\r\n }\r\n },{\r\n \"name\":\"wd\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files/wd\",\"isDirectory\":true\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#files\",\"value\":[\r\n {\r\n \"name\":\"ProcessEnv.cmd\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files/ProcessEnv.cmd\",\"isDirectory\":false,\"properties\":{\r\n \"creationTime\":\"2018-03-09T22:59:27.6832092Z\",\"lastModified\":\"2018-03-09T22:59:27.6832092Z\",\"contentLength\":\"2684\",\"contentType\":\"application/octet-stream\"\r\n }\r\n },{\r\n \"name\":\"stderr.txt\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files/stderr.txt\",\"isDirectory\":false,\"properties\":{\r\n \"creationTime\":\"2018-03-09T22:59:27.6122027Z\",\"lastModified\":\"2018-03-09T22:59:27.6122027Z\",\"contentLength\":\"0\",\"contentType\":\"application/octet-stream\"\r\n }\r\n },{\r\n \"name\":\"stdout.txt\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files/stdout.txt\",\"isDirectory\":false,\"properties\":{\r\n \"creationTime\":\"2018-03-09T22:59:27.6122027Z\",\"lastModified\":\"2018-03-09T22:59:27.6986833Z\",\"contentLength\":\"13\",\"contentType\":\"application/octet-stream\"\r\n }\r\n },{\r\n \"name\":\"wd\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files/wd\",\"isDirectory\":true\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'b1cbf619-f9f0-4c3f-b101-a875817c61e3', + 'request-id': '15f31740-259b-4c10-847d-be02b07715fc', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:48:07 GMT', + date: 'Fri, 09 Mar 2018 23:01:23 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#files\",\"value\":[\r\n {\r\n \"name\":\"ProcessEnv.cmd\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files/ProcessEnv.cmd\",\"isDirectory\":false,\"properties\":{\r\n \"creationTime\":\"2017-10-02T21:46:09.095647Z\",\"lastModified\":\"2017-10-02T21:46:09.095647Z\",\"contentLength\":\"2702\",\"contentType\":\"application/octet-stream\"\r\n }\r\n },{\r\n \"name\":\"stderr.txt\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files/stderr.txt\",\"isDirectory\":false,\"properties\":{\r\n \"creationTime\":\"2017-10-02T21:46:09.0123317Z\",\"lastModified\":\"2017-10-02T21:46:09.0123317Z\",\"contentLength\":\"0\",\"contentType\":\"application/octet-stream\"\r\n }\r\n },{\r\n \"name\":\"stdout.txt\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files/stdout.txt\",\"isDirectory\":false,\"properties\":{\r\n \"creationTime\":\"2017-10-02T21:46:09.0123317Z\",\"lastModified\":\"2017-10-02T21:46:09.107332Z\",\"contentLength\":\"13\",\"contentType\":\"application/octet-stream\"\r\n }\r\n },{\r\n \"name\":\"wd\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files/wd\",\"isDirectory\":true\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#files\",\"value\":[\r\n {\r\n \"name\":\"ProcessEnv.cmd\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files/ProcessEnv.cmd\",\"isDirectory\":false,\"properties\":{\r\n \"creationTime\":\"2018-03-09T22:59:27.6832092Z\",\"lastModified\":\"2018-03-09T22:59:27.6832092Z\",\"contentLength\":\"2684\",\"contentType\":\"application/octet-stream\"\r\n }\r\n },{\r\n \"name\":\"stderr.txt\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files/stderr.txt\",\"isDirectory\":false,\"properties\":{\r\n \"creationTime\":\"2018-03-09T22:59:27.6122027Z\",\"lastModified\":\"2018-03-09T22:59:27.6122027Z\",\"contentLength\":\"0\",\"contentType\":\"application/octet-stream\"\r\n }\r\n },{\r\n \"name\":\"stdout.txt\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files/stdout.txt\",\"isDirectory\":false,\"properties\":{\r\n \"creationTime\":\"2018-03-09T22:59:27.6122027Z\",\"lastModified\":\"2018-03-09T22:59:27.6986833Z\",\"contentLength\":\"13\",\"contentType\":\"application/octet-stream\"\r\n }\r\n },{\r\n \"name\":\"wd\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2/files/wd\",\"isDirectory\":true\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'b1cbf619-f9f0-4c3f-b101-a875817c61e3', + 'request-id': '15f31740-259b-4c10-847d-be02b07715fc', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:48:07 GMT', + date: 'Fri, 09 Mar 2018 23:01:23 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_job_schedules_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_job_schedules_successfully.nock.js index 5c581b6764..a200ba7e4a 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_job_schedules_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_job_schedules_successfully.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobschedules?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#jobschedules\",\"value\":[\r\n {\r\n \"id\":\"NodeSDKTestSchedule\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobschedules/NodeSDKTestSchedule\",\"eTag\":\"0x8D509DFCF3CDF28\",\"lastModified\":\"2017-10-02T21:52:00.2023208Z\",\"creationTime\":\"2017-10-02T21:52:00.2023208Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:52:00.2023208Z\",\"schedule\":{\r\n \"doNotRunUntil\":\"2017-12-25T08:00:00Z\",\"startWindow\":\"PT6M\"\r\n },\"jobSpecification\":{\r\n \"priority\":0,\"usesTaskDependencies\":false,\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\",\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":0\r\n },\"poolInfo\":{\r\n \"poolId\":\"nodesdktestpool1\"\r\n }\r\n },\"executionInfo\":{\r\n \"nextRunTime\":\"2017-12-25T08:00:00Z\"\r\n }\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/jobschedules?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#jobschedules\",\"value\":[\r\n {\r\n \"id\":\"NodeSDKTestSchedule\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobschedules/NodeSDKTestSchedule\",\"eTag\":\"0x8D5861508E222CC\",\"lastModified\":\"2018-03-09T23:25:24.4266188Z\",\"creationTime\":\"2018-03-09T23:25:24.4266188Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T23:25:24.4266188Z\",\"schedule\":{\r\n \"doNotRunUntil\":\"2018-04-25T07:00:00Z\",\"startWindow\":\"PT6M\"\r\n },\"jobSpecification\":{\r\n \"priority\":0,\"usesTaskDependencies\":false,\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\",\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":0\r\n },\"poolInfo\":{\r\n \"poolId\":\"nodesdktestpool1\"\r\n }\r\n },\"executionInfo\":{\r\n \"nextRunTime\":\"2018-04-25T07:00:00Z\"\r\n }\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '7a2b1619-1cd3-4ef9-b32b-d8330f8e458b', + 'request-id': 'fb3dc225-ba4d-4806-8f3a-600a726cf327', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:52:00 GMT', + date: 'Fri, 09 Mar 2018 23:25:24 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobschedules?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#jobschedules\",\"value\":[\r\n {\r\n \"id\":\"NodeSDKTestSchedule\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobschedules/NodeSDKTestSchedule\",\"eTag\":\"0x8D509DFCF3CDF28\",\"lastModified\":\"2017-10-02T21:52:00.2023208Z\",\"creationTime\":\"2017-10-02T21:52:00.2023208Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:52:00.2023208Z\",\"schedule\":{\r\n \"doNotRunUntil\":\"2017-12-25T08:00:00Z\",\"startWindow\":\"PT6M\"\r\n },\"jobSpecification\":{\r\n \"priority\":0,\"usesTaskDependencies\":false,\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\",\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":0\r\n },\"poolInfo\":{\r\n \"poolId\":\"nodesdktestpool1\"\r\n }\r\n },\"executionInfo\":{\r\n \"nextRunTime\":\"2017-12-25T08:00:00Z\"\r\n }\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/jobschedules?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#jobschedules\",\"value\":[\r\n {\r\n \"id\":\"NodeSDKTestSchedule\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobschedules/NodeSDKTestSchedule\",\"eTag\":\"0x8D5861508E222CC\",\"lastModified\":\"2018-03-09T23:25:24.4266188Z\",\"creationTime\":\"2018-03-09T23:25:24.4266188Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T23:25:24.4266188Z\",\"schedule\":{\r\n \"doNotRunUntil\":\"2018-04-25T07:00:00Z\",\"startWindow\":\"PT6M\"\r\n },\"jobSpecification\":{\r\n \"priority\":0,\"usesTaskDependencies\":false,\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\",\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":0\r\n },\"poolInfo\":{\r\n \"poolId\":\"nodesdktestpool1\"\r\n }\r\n },\"executionInfo\":{\r\n \"nextRunTime\":\"2018-04-25T07:00:00Z\"\r\n }\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '7a2b1619-1cd3-4ef9-b32b-d8330f8e458b', + 'request-id': 'fb3dc225-ba4d-4806-8f3a-600a726cf327', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:52:00 GMT', + date: 'Fri, 09 Mar 2018 23:25:24 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_jobs_from_job_schedule_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_jobs_from_job_schedule_successfully.nock.js index b38f7e9166..a4cbec2314 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_jobs_from_job_schedule_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_jobs_from_job_schedule_successfully.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobschedules/NodeSDKTestSchedule/jobs?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#jobs\",\"value\":[\r\n \r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/jobschedules/NodeSDKTestSchedule/jobs?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#jobs\",\"value\":[\r\n \r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '1322efdd-dd7c-4d47-9041-a7e0f35d3d91', + 'request-id': '0ac4ae9e-3753-43e3-a3d2-7a8d07b4116e', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:52:00 GMT', + date: 'Fri, 09 Mar 2018 23:25:24 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobschedules/NodeSDKTestSchedule/jobs?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#jobs\",\"value\":[\r\n \r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/jobschedules/NodeSDKTestSchedule/jobs?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#jobs\",\"value\":[\r\n \r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '1322efdd-dd7c-4d47-9041-a7e0f35d3d91', + 'request-id': '0ac4ae9e-3753-43e3-a3d2-7a8d07b4116e', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:52:00 GMT', + date: 'Fri, 09 Mar 2018 23:25:24 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_jobs_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_jobs_successfully.nock.js index afc9bb30ed..4e7122391a 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_jobs_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_jobs_successfully.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobs?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#jobs\",\"value\":[\r\n {\r\n \"id\":\"HelloWorldJobNodeSDKTest\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest\",\"eTag\":\"0x8D509DEF985277D\",\"lastModified\":\"2017-10-02T21:46:01.6436093Z\",\"creationTime\":\"2017-10-02T21:46:00.6954349Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:46:00.7224609Z\",\"priority\":500,\"usesTaskDependencies\":false,\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"poolInfo\":{\r\n \"poolId\":\"nodesdktestpool1\"\r\n },\"executionInfo\":{\r\n \"startTime\":\"2017-10-02T21:46:00.7224609Z\",\"poolId\":\"nodesdktestpool1\"\r\n },\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\"\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/jobs?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#jobs\",\"value\":[\r\n {\r\n \"id\":\"HelloWorldJobNodeSDKTest\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest\",\"eTag\":\"0x8D586116694D752\",\"lastModified\":\"2018-03-09T22:59:23.6389714Z\",\"creationTime\":\"2018-03-09T22:59:23.323924Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:59:23.3459359Z\",\"priority\":500,\"usesTaskDependencies\":false,\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"poolInfo\":{\r\n \"poolId\":\"nodesdktestpool1\"\r\n },\"executionInfo\":{\r\n \"startTime\":\"2018-03-09T22:59:23.3459359Z\",\"poolId\":\"nodesdktestpool1\"\r\n },\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\"\r\n },{\r\n \"id\":\"job1\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/job1\",\"eTag\":\"0x8D57F3A09654449\",\"lastModified\":\"2018-03-01T06:02:38.5255497Z\",\"creationTime\":\"2018-03-01T06:02:38.5075523Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-01T06:02:38.5255497Z\",\"priority\":0,\"usesTaskDependencies\":false,\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":0\r\n },\"poolInfo\":{\r\n \"poolId\":\"pool1\"\r\n },\"executionInfo\":{\r\n \"startTime\":\"2018-03-01T06:02:38.5255497Z\",\"poolId\":\"pool1\"\r\n },\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\"\r\n },{\r\n \"id\":\"test\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/test\",\"eTag\":\"0x8D57AF063959F11\",\"lastModified\":\"2018-02-23T19:05:22.4282897Z\",\"creationTime\":\"2018-02-23T19:05:22.4112931Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-02-23T19:05:22.4282897Z\",\"priority\":0,\"usesTaskDependencies\":false,\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":0\r\n },\"poolInfo\":{\r\n \"poolId\":\"test\"\r\n },\"executionInfo\":{\r\n \"startTime\":\"2018-02-23T19:05:22.4282897Z\",\"poolId\":\"test\"\r\n },\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\"\r\n },{\r\n \"id\":\"test1\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/test1\",\"eTag\":\"0x8D57B26CB720F6A\",\"lastModified\":\"2018-02-24T01:34:49.501681Z\",\"creationTime\":\"2018-02-24T01:34:49.486677Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-02-24T01:34:49.501681Z\",\"priority\":0,\"usesTaskDependencies\":false,\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":0\r\n },\"poolInfo\":{\r\n \"poolId\":\"test1\"\r\n },\"executionInfo\":{\r\n \"startTime\":\"2018-02-24T01:34:49.501681Z\",\"poolId\":\"test1\"\r\n },\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\"\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '77970220-d12a-4b66-a3f0-e45a2d168edb', + 'request-id': '042421d8-4454-4cf5-bbaf-c301dcc44ac8', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:51:57 GMT', + date: 'Fri, 09 Mar 2018 23:05:09 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobs?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#jobs\",\"value\":[\r\n {\r\n \"id\":\"HelloWorldJobNodeSDKTest\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest\",\"eTag\":\"0x8D509DEF985277D\",\"lastModified\":\"2017-10-02T21:46:01.6436093Z\",\"creationTime\":\"2017-10-02T21:46:00.6954349Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:46:00.7224609Z\",\"priority\":500,\"usesTaskDependencies\":false,\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"poolInfo\":{\r\n \"poolId\":\"nodesdktestpool1\"\r\n },\"executionInfo\":{\r\n \"startTime\":\"2017-10-02T21:46:00.7224609Z\",\"poolId\":\"nodesdktestpool1\"\r\n },\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\"\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/jobs?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#jobs\",\"value\":[\r\n {\r\n \"id\":\"HelloWorldJobNodeSDKTest\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest\",\"eTag\":\"0x8D586116694D752\",\"lastModified\":\"2018-03-09T22:59:23.6389714Z\",\"creationTime\":\"2018-03-09T22:59:23.323924Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:59:23.3459359Z\",\"priority\":500,\"usesTaskDependencies\":false,\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"poolInfo\":{\r\n \"poolId\":\"nodesdktestpool1\"\r\n },\"executionInfo\":{\r\n \"startTime\":\"2018-03-09T22:59:23.3459359Z\",\"poolId\":\"nodesdktestpool1\"\r\n },\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\"\r\n },{\r\n \"id\":\"job1\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/job1\",\"eTag\":\"0x8D57F3A09654449\",\"lastModified\":\"2018-03-01T06:02:38.5255497Z\",\"creationTime\":\"2018-03-01T06:02:38.5075523Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-01T06:02:38.5255497Z\",\"priority\":0,\"usesTaskDependencies\":false,\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":0\r\n },\"poolInfo\":{\r\n \"poolId\":\"pool1\"\r\n },\"executionInfo\":{\r\n \"startTime\":\"2018-03-01T06:02:38.5255497Z\",\"poolId\":\"pool1\"\r\n },\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\"\r\n },{\r\n \"id\":\"test\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/test\",\"eTag\":\"0x8D57AF063959F11\",\"lastModified\":\"2018-02-23T19:05:22.4282897Z\",\"creationTime\":\"2018-02-23T19:05:22.4112931Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-02-23T19:05:22.4282897Z\",\"priority\":0,\"usesTaskDependencies\":false,\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":0\r\n },\"poolInfo\":{\r\n \"poolId\":\"test\"\r\n },\"executionInfo\":{\r\n \"startTime\":\"2018-02-23T19:05:22.4282897Z\",\"poolId\":\"test\"\r\n },\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\"\r\n },{\r\n \"id\":\"test1\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/test1\",\"eTag\":\"0x8D57B26CB720F6A\",\"lastModified\":\"2018-02-24T01:34:49.501681Z\",\"creationTime\":\"2018-02-24T01:34:49.486677Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-02-24T01:34:49.501681Z\",\"priority\":0,\"usesTaskDependencies\":false,\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":0\r\n },\"poolInfo\":{\r\n \"poolId\":\"test1\"\r\n },\"executionInfo\":{\r\n \"startTime\":\"2018-02-24T01:34:49.501681Z\",\"poolId\":\"test1\"\r\n },\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\"\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '77970220-d12a-4b66-a3f0-e45a2d168edb', + 'request-id': '042421d8-4454-4cf5-bbaf-c301dcc44ac8', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:51:57 GMT', + date: 'Fri, 09 Mar 2018 23:05:09 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_node_agent_sku_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_node_agent_sku_successfully.nock.js index 492fdc7b7f..ced650185c 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_node_agent_sku_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_node_agent_sku_successfully.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/nodeagentskus?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#nodeagentskus\",\"value\":[\r\n {\r\n \"id\":\"batch.node.centos 7\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"OpenLogic\",\"offer\":\"CentOS\",\"sku\":\"7.3\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"OpenLogic\",\"offer\":\"CentOS-HPC\",\"sku\":\"7.3\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"Oracle\",\"offer\":\"Oracle-Linux\",\"sku\":\"7.3\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"microsoft-ads\",\"offer\":\"linux-data-science-vm\",\"sku\":\"linuxdsvm\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"batch\",\"offer\":\"rendering-centos73\",\"sku\":\"rendering\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.debian 8\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"Credativ\",\"offer\":\"Debian\",\"sku\":\"8\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"Credativ\",\"offer\":\"Debian\",\"sku\":\"8-backports\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.opensuse 13.2\",\"verifiedImageReferences\":[\r\n \r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.opensuse 42.1\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"SUSE\",\"offer\":\"SLES\",\"sku\":\"12-SP2\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"SUSE\",\"offer\":\"SLES-HPC\",\"sku\":\"12-SP1\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.ubuntu 14.04\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"14.04.5-LTS\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.ubuntu 16.04\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"17.04\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.windows amd64\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-R2-Datacenter\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-Datacenter\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2008-R2-SP1\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2016-Datacenter\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2016-Datacenter-with-Containers\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2008-R2-SP1-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-Datacenter-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-R2-Datacenter-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2016-Datacenter-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"microsoft-ads\",\"offer\":\"standard-data-science-vm\",\"sku\":\"standard-data-science-vm\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"batch\",\"offer\":\"rendering-windows2016\",\"sku\":\"rendering\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"windows\"\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/nodeagentskus?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#nodeagentskus\",\"value\":[\r\n {\r\n \"id\":\"batch.node.centos 7\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"OpenLogic\",\"offer\":\"CentOS\",\"sku\":\"7.4\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"OpenLogic\",\"offer\":\"CentOS-HPC\",\"sku\":\"7.3\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"OpenLogic\",\"offer\":\"CentOS-HPC\",\"sku\":\"7.1\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"Oracle\",\"offer\":\"Oracle-Linux\",\"sku\":\"7.4\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"microsoft-ads\",\"offer\":\"linux-data-science-vm\",\"sku\":\"linuxdsvm\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"batch\",\"offer\":\"rendering-centos73\",\"sku\":\"rendering\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.debian 8\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"Credativ\",\"offer\":\"Debian\",\"sku\":\"8\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.debian 9\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"Credativ\",\"offer\":\"Debian\",\"sku\":\"9\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.opensuse 42.1\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"SUSE\",\"offer\":\"SLES\",\"sku\":\"12-SP2\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.ubuntu 14.04\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"14.04.5-LTS\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.ubuntu 16.04\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.windows amd64\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2008-R2-SP1\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2008-R2-SP1-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-Datacenter\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-Datacenter-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-R2-Datacenter\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-R2-Datacenter-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2016-Datacenter\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2016-Datacenter-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2016-Datacenter-with-Containers\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"microsoft-ads\",\"offer\":\"standard-data-science-vm\",\"sku\":\"standard-data-science-vm\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"batch\",\"offer\":\"rendering-windows2016\",\"sku\":\"rendering\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"windows\"\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '0aca825a-07eb-4340-bce3-49e364ef889c', + 'request-id': '91368780-d6ce-4464-91e1-ee3041d6219b', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:30:33 GMT', + date: 'Fri, 09 Mar 2018 22:44:03 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/nodeagentskus?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#nodeagentskus\",\"value\":[\r\n {\r\n \"id\":\"batch.node.centos 7\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"OpenLogic\",\"offer\":\"CentOS\",\"sku\":\"7.3\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"OpenLogic\",\"offer\":\"CentOS-HPC\",\"sku\":\"7.3\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"Oracle\",\"offer\":\"Oracle-Linux\",\"sku\":\"7.3\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"microsoft-ads\",\"offer\":\"linux-data-science-vm\",\"sku\":\"linuxdsvm\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"batch\",\"offer\":\"rendering-centos73\",\"sku\":\"rendering\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.debian 8\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"Credativ\",\"offer\":\"Debian\",\"sku\":\"8\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"Credativ\",\"offer\":\"Debian\",\"sku\":\"8-backports\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.opensuse 13.2\",\"verifiedImageReferences\":[\r\n \r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.opensuse 42.1\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"SUSE\",\"offer\":\"SLES\",\"sku\":\"12-SP2\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"SUSE\",\"offer\":\"SLES-HPC\",\"sku\":\"12-SP1\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.ubuntu 14.04\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"14.04.5-LTS\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.ubuntu 16.04\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"17.04\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.windows amd64\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-R2-Datacenter\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-Datacenter\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2008-R2-SP1\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2016-Datacenter\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2016-Datacenter-with-Containers\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2008-R2-SP1-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-Datacenter-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-R2-Datacenter-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2016-Datacenter-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"microsoft-ads\",\"offer\":\"standard-data-science-vm\",\"sku\":\"standard-data-science-vm\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"batch\",\"offer\":\"rendering-windows2016\",\"sku\":\"rendering\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"windows\"\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/nodeagentskus?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#nodeagentskus\",\"value\":[\r\n {\r\n \"id\":\"batch.node.centos 7\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"OpenLogic\",\"offer\":\"CentOS\",\"sku\":\"7.4\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"OpenLogic\",\"offer\":\"CentOS-HPC\",\"sku\":\"7.3\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"OpenLogic\",\"offer\":\"CentOS-HPC\",\"sku\":\"7.1\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"Oracle\",\"offer\":\"Oracle-Linux\",\"sku\":\"7.4\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"microsoft-ads\",\"offer\":\"linux-data-science-vm\",\"sku\":\"linuxdsvm\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"batch\",\"offer\":\"rendering-centos73\",\"sku\":\"rendering\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.debian 8\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"Credativ\",\"offer\":\"Debian\",\"sku\":\"8\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.debian 9\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"Credativ\",\"offer\":\"Debian\",\"sku\":\"9\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.opensuse 42.1\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"SUSE\",\"offer\":\"SLES\",\"sku\":\"12-SP2\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.ubuntu 14.04\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"14.04.5-LTS\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.ubuntu 16.04\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.windows amd64\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2008-R2-SP1\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2008-R2-SP1-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-Datacenter\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-Datacenter-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-R2-Datacenter\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-R2-Datacenter-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2016-Datacenter\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2016-Datacenter-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2016-Datacenter-with-Containers\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"microsoft-ads\",\"offer\":\"standard-data-science-vm\",\"sku\":\"standard-data-science-vm\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"batch\",\"offer\":\"rendering-windows2016\",\"sku\":\"rendering\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"windows\"\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '0aca825a-07eb-4340-bce3-49e364ef889c', + 'request-id': '91368780-d6ce-4464-91e1-ee3041d6219b', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:30:33 GMT', + date: 'Fri, 09 Mar 2018 22:44:03 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_pools_according_to_filter.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_pools_according_to_filter.nock.js index d32a294bf4..484b205e07 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_pools_according_to_filter.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_pools_according_to_filter.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools?api-version=2017-09-01.6.0&$filter=startswith(id%2C%27nodesdktestpool1%27)&$select=id%2Cstate&$expand=stats') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#pools\",\"value\":[\r\n {\r\n \"id\":\"nodesdktestpool1\",\"state\":\"active\"\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/pools?api-version=2018-03-01.6.1&$filter=startswith(id%2C%27nodesdktestpool1%27)&$select=id%2Cstate&$expand=stats') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#pools\",\"value\":[\r\n {\r\n \"id\":\"nodesdktestpool1\",\"state\":\"active\"\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '63696221-4423-49ce-a1ac-3895d1dd1e16', + 'request-id': '6f95f91d-bdd3-4027-9426-3104c144ed02', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:45:56 GMT', + date: 'Fri, 09 Mar 2018 22:59:22 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools?api-version=2017-09-01.6.0&$filter=startswith(id%2C%27nodesdktestpool1%27)&$select=id%2Cstate&$expand=stats') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#pools\",\"value\":[\r\n {\r\n \"id\":\"nodesdktestpool1\",\"state\":\"active\"\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/pools?api-version=2018-03-01.6.1&$filter=startswith(id%2C%27nodesdktestpool1%27)&$select=id%2Cstate&$expand=stats') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#pools\",\"value\":[\r\n {\r\n \"id\":\"nodesdktestpool1\",\"state\":\"active\"\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '63696221-4423-49ce-a1ac-3895d1dd1e16', + 'request-id': '6f95f91d-bdd3-4027-9426-3104c144ed02', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:45:56 GMT', + date: 'Fri, 09 Mar 2018 22:59:22 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_pools_usage_metrics.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_pools_usage_metrics.nock.js index 9e40dcee77..ca681ea71f 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_pools_usage_metrics.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_pools_usage_metrics.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/poolusagemetrics?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#poolusagemetrics\",\"value\":[\r\n {\r\n \"poolId\":\"nodesdkinboundendpointpool\",\"startTime\":\"2017-07-20T20:00:00Z\",\"endTime\":\"2017-07-20T20:30:00Z\",\"vmSize\":\"standard_a1\",\"totalCoreHours\":0.1919630988611111,\"dataIngressGiB\":0.0,\"dataEgressGiB\":0.0\r\n },{\r\n \"poolId\":\"nodesdktestpool1\",\"startTime\":\"2017-07-20T20:00:00Z\",\"endTime\":\"2017-07-20T20:30:00Z\",\"vmSize\":\"small\",\"totalCoreHours\":0.52656037905555553,\"dataIngressGiB\":0.0,\"dataEgressGiB\":0.0\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/poolusagemetrics?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#poolusagemetrics\",\"value\":[\r\n {\r\n \"poolId\":\"nodesdkinboundendpointpool\",\"startTime\":\"2017-07-20T20:00:00Z\",\"endTime\":\"2017-07-20T20:30:00Z\",\"vmSize\":\"standard_a1\",\"totalCoreHours\":0.1919630988611111,\"dataIngressGiB\":0.0,\"dataEgressGiB\":0.0\r\n },{\r\n \"poolId\":\"nodesdktestpool1\",\"startTime\":\"2017-07-20T20:00:00Z\",\"endTime\":\"2017-07-20T20:30:00Z\",\"vmSize\":\"small\",\"totalCoreHours\":0.52656037905555553,\"dataIngressGiB\":0.0,\"dataEgressGiB\":0.0\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'd909a54e-ea9b-4ddd-a6d1-1ecff4ade0d6', + 'request-id': 'aa257451-4672-4da0-83fa-7fc8ffe8c1c0', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:45:59 GMT', + date: 'Fri, 09 Mar 2018 22:59:23 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/poolusagemetrics?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#poolusagemetrics\",\"value\":[\r\n {\r\n \"poolId\":\"nodesdkinboundendpointpool\",\"startTime\":\"2017-07-20T20:00:00Z\",\"endTime\":\"2017-07-20T20:30:00Z\",\"vmSize\":\"standard_a1\",\"totalCoreHours\":0.1919630988611111,\"dataIngressGiB\":0.0,\"dataEgressGiB\":0.0\r\n },{\r\n \"poolId\":\"nodesdktestpool1\",\"startTime\":\"2017-07-20T20:00:00Z\",\"endTime\":\"2017-07-20T20:30:00Z\",\"vmSize\":\"small\",\"totalCoreHours\":0.52656037905555553,\"dataIngressGiB\":0.0,\"dataEgressGiB\":0.0\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/poolusagemetrics?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#poolusagemetrics\",\"value\":[\r\n {\r\n \"poolId\":\"nodesdkinboundendpointpool\",\"startTime\":\"2017-07-20T20:00:00Z\",\"endTime\":\"2017-07-20T20:30:00Z\",\"vmSize\":\"standard_a1\",\"totalCoreHours\":0.1919630988611111,\"dataIngressGiB\":0.0,\"dataEgressGiB\":0.0\r\n },{\r\n \"poolId\":\"nodesdktestpool1\",\"startTime\":\"2017-07-20T20:00:00Z\",\"endTime\":\"2017-07-20T20:30:00Z\",\"vmSize\":\"small\",\"totalCoreHours\":0.52656037905555553,\"dataIngressGiB\":0.0,\"dataEgressGiB\":0.0\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'd909a54e-ea9b-4ddd-a6d1-1ecff4ade0d6', + 'request-id': 'aa257451-4672-4da0-83fa-7fc8ffe8c1c0', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:45:59 GMT', + date: 'Fri, 09 Mar 2018 22:59:23 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_pools_without_filters.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_pools_without_filters.nock.js index f9df8f70b4..29321a4220 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_pools_without_filters.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_pools_without_filters.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#pools\",\"value\":[\r\n {\r\n \"id\":\"nodesdkdatadiskpool\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdkdatadiskpool\",\"eTag\":\"0x8D509DDFFD3BEB4\",\"lastModified\":\"2017-10-02T21:39:02.7282612Z\",\"creationTime\":\"2017-10-02T21:39:02.7282612Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:39:02.7282612Z\",\"allocationState\":\"steady\",\"allocationStateTransitionTime\":\"2017-10-02T21:39:03.4814453Z\",\"vmSize\":\"standard_a1\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":0,\"targetDedicatedNodes\":0,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"virtualMachineConfiguration\":{\r\n \"imageReference\":{\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n },\"nodeAgentSKUId\":\"batch.node.ubuntu 16.04\",\"dataDisks\":[\r\n {\r\n \"lun\":1,\"caching\":\"none\",\"diskSizeGB\":50,\"storageAccountType\":\"standard_lrs\"\r\n }\r\n ]\r\n }\r\n },{\r\n \"id\":\"nodesdkinboundendpointpool\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdkinboundendpointpool\",\"eTag\":\"0x8D509DE003E2E52\",\"lastModified\":\"2017-10-02T21:39:03.4258002Z\",\"creationTime\":\"2017-10-02T21:39:03.4258002Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:39:03.4258002Z\",\"allocationState\":\"steady\",\"allocationStateTransitionTime\":\"2017-10-02T21:40:49.3559374Z\",\"vmSize\":\"standard_a1\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":1,\"targetDedicatedNodes\":1,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"virtualMachineConfiguration\":{\r\n \"imageReference\":{\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n },\"nodeAgentSKUId\":\"batch.node.ubuntu 16.04\"\r\n },\"networkConfiguration\":{\r\n \"endpointConfiguration\":{\r\n \"inboundNATPools\":[\r\n {\r\n \"name\":\"TestEndpointConfig\",\"protocol\":\"udp\",\"backendPort\":64444,\"frontendPortRangeStart\":60000,\"frontendPortRangeEnd\":61000\r\n }\r\n ]\r\n }\r\n }\r\n },{\r\n \"id\":\"nodesdkosdiskpool\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdkosdiskpool\",\"eTag\":\"0x8D509DDFF58B24A\",\"lastModified\":\"2017-10-02T21:39:01.9218506Z\",\"creationTime\":\"2017-10-02T21:39:01.9218506Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:39:01.9218506Z\",\"allocationState\":\"steady\",\"allocationStateTransitionTime\":\"2017-10-02T21:39:02.5050725Z\",\"vmSize\":\"standard_a1\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":0,\"targetDedicatedNodes\":0,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"virtualMachineConfiguration\":{\r\n \"imageReference\":{\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n },\"osDisk\":{\r\n \"caching\":\"ReadWrite\"\r\n },\"nodeAgentSKUId\":\"batch.node.ubuntu 16.04\"\r\n }\r\n },{\r\n \"id\":\"nodesdktestpool1\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1\",\"eTag\":\"0x8D509DEF4F1A68B\",\"lastModified\":\"2017-10-02T21:45:53.9660427Z\",\"creationTime\":\"2017-10-02T21:30:36.6629297Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:30:36.6629297Z\",\"allocationState\":\"stopping\",\"allocationStateTransitionTime\":\"2017-10-02T21:45:53.9660427Z\",\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":3,\"targetDedicatedNodes\":2,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"userAccounts\":[\r\n {\r\n \"name\":\"nonAdminUser\",\"elevationLevel\":\"nonadmin\"\r\n }\r\n ],\"metadata\":[\r\n {\r\n \"name\":\"foo2\",\"value\":\"bar2\"\r\n }\r\n ],\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"cloudServiceConfiguration\":{\r\n \"osFamily\":\"4\",\"targetOSVersion\":\"*\",\"currentOSVersion\":\"*\"\r\n }\r\n },{\r\n \"id\":\"nodesdktestpool2\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool2\",\"eTag\":\"0x8D509DEF58C26AB\",\"lastModified\":\"2017-10-02T21:45:54.9785771Z\",\"creationTime\":\"2017-10-02T21:45:54.4757581Z\",\"state\":\"upgrading\",\"stateTransitionTime\":\"2017-10-02T21:45:54.9785771Z\",\"allocationState\":\"steady\",\"allocationStateTransitionTime\":\"2017-10-02T21:45:54.6477625Z\",\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":0,\"targetDedicatedNodes\":0,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"cloudServiceConfiguration\":{\r\n \"osFamily\":\"4\",\"targetOSVersion\":\"WA-GUEST-OS-4.32_201605-01\",\"currentOSVersion\":\"*\"\r\n }\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/pools?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#pools\",\"value\":[\r\n {\r\n \"id\":\"nodesdkinboundendpointpool\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdkinboundendpointpool\",\"eTag\":\"0x8D58610717C3E16\",\"lastModified\":\"2018-03-09T22:52:32.4359702Z\",\"creationTime\":\"2018-03-09T22:52:32.4359702Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:52:32.4359702Z\",\"allocationState\":\"steady\",\"allocationStateTransitionTime\":\"2018-03-09T22:54:26.965177Z\",\"vmSize\":\"standard_a1\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":1,\"targetDedicatedNodes\":1,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"virtualMachineConfiguration\":{\r\n \"imageReference\":{\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n },\"nodeAgentSKUId\":\"batch.node.ubuntu 16.04\"\r\n },\"networkConfiguration\":{\r\n \"endpointConfiguration\":{\r\n \"inboundNATPools\":[\r\n {\r\n \"name\":\"TestEndpointConfig\",\"protocol\":\"udp\",\"backendPort\":64444,\"frontendPortRangeStart\":60000,\"frontendPortRangeEnd\":61000\r\n }\r\n ]\r\n }\r\n }\r\n },{\r\n \"id\":\"nodesdktestpool1\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1\",\"eTag\":\"0x8D5861164D233AE\",\"lastModified\":\"2018-03-09T22:59:20.6856622Z\",\"creationTime\":\"2018-03-09T22:44:04.5924827Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:44:04.5924827Z\",\"allocationState\":\"stopping\",\"allocationStateTransitionTime\":\"2018-03-09T22:59:20.6856622Z\",\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":3,\"targetDedicatedNodes\":2,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"userAccounts\":[\r\n {\r\n \"name\":\"nonAdminUser\",\"elevationLevel\":\"nonadmin\"\r\n }\r\n ],\"metadata\":[\r\n {\r\n \"name\":\"foo2\",\"value\":\"bar2\"\r\n }\r\n ],\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"cloudServiceConfiguration\":{\r\n \"osFamily\":\"4\",\"targetOSVersion\":\"*\",\"currentOSVersion\":\"*\"\r\n }\r\n },{\r\n \"id\":\"nodesdktestpool2\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool2\",\"eTag\":\"0x8D5861165073065\",\"lastModified\":\"2018-03-09T22:59:21.0329189Z\",\"creationTime\":\"2018-03-09T22:59:20.8462313Z\",\"state\":\"upgrading\",\"stateTransitionTime\":\"2018-03-09T22:59:21.0329189Z\",\"allocationState\":\"steady\",\"allocationStateTransitionTime\":\"2018-03-09T22:59:20.9292296Z\",\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":0,\"targetDedicatedNodes\":0,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"cloudServiceConfiguration\":{\r\n \"osFamily\":\"4\",\"targetOSVersion\":\"WA-GUEST-OS-4.32_201605-01\",\"currentOSVersion\":\"*\"\r\n }\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'd51b0d53-df6e-49dd-9af6-bdfdfbcf8907', + 'request-id': '8f601033-e6b3-4b4c-8937-7fc0357b1c57', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:45:54 GMT', + date: 'Fri, 09 Mar 2018 22:59:21 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#pools\",\"value\":[\r\n {\r\n \"id\":\"nodesdkdatadiskpool\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdkdatadiskpool\",\"eTag\":\"0x8D509DDFFD3BEB4\",\"lastModified\":\"2017-10-02T21:39:02.7282612Z\",\"creationTime\":\"2017-10-02T21:39:02.7282612Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:39:02.7282612Z\",\"allocationState\":\"steady\",\"allocationStateTransitionTime\":\"2017-10-02T21:39:03.4814453Z\",\"vmSize\":\"standard_a1\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":0,\"targetDedicatedNodes\":0,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"virtualMachineConfiguration\":{\r\n \"imageReference\":{\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n },\"nodeAgentSKUId\":\"batch.node.ubuntu 16.04\",\"dataDisks\":[\r\n {\r\n \"lun\":1,\"caching\":\"none\",\"diskSizeGB\":50,\"storageAccountType\":\"standard_lrs\"\r\n }\r\n ]\r\n }\r\n },{\r\n \"id\":\"nodesdkinboundendpointpool\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdkinboundendpointpool\",\"eTag\":\"0x8D509DE003E2E52\",\"lastModified\":\"2017-10-02T21:39:03.4258002Z\",\"creationTime\":\"2017-10-02T21:39:03.4258002Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:39:03.4258002Z\",\"allocationState\":\"steady\",\"allocationStateTransitionTime\":\"2017-10-02T21:40:49.3559374Z\",\"vmSize\":\"standard_a1\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":1,\"targetDedicatedNodes\":1,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"virtualMachineConfiguration\":{\r\n \"imageReference\":{\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n },\"nodeAgentSKUId\":\"batch.node.ubuntu 16.04\"\r\n },\"networkConfiguration\":{\r\n \"endpointConfiguration\":{\r\n \"inboundNATPools\":[\r\n {\r\n \"name\":\"TestEndpointConfig\",\"protocol\":\"udp\",\"backendPort\":64444,\"frontendPortRangeStart\":60000,\"frontendPortRangeEnd\":61000\r\n }\r\n ]\r\n }\r\n }\r\n },{\r\n \"id\":\"nodesdkosdiskpool\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdkosdiskpool\",\"eTag\":\"0x8D509DDFF58B24A\",\"lastModified\":\"2017-10-02T21:39:01.9218506Z\",\"creationTime\":\"2017-10-02T21:39:01.9218506Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:39:01.9218506Z\",\"allocationState\":\"steady\",\"allocationStateTransitionTime\":\"2017-10-02T21:39:02.5050725Z\",\"vmSize\":\"standard_a1\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":0,\"targetDedicatedNodes\":0,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"virtualMachineConfiguration\":{\r\n \"imageReference\":{\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n },\"osDisk\":{\r\n \"caching\":\"ReadWrite\"\r\n },\"nodeAgentSKUId\":\"batch.node.ubuntu 16.04\"\r\n }\r\n },{\r\n \"id\":\"nodesdktestpool1\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1\",\"eTag\":\"0x8D509DEF4F1A68B\",\"lastModified\":\"2017-10-02T21:45:53.9660427Z\",\"creationTime\":\"2017-10-02T21:30:36.6629297Z\",\"state\":\"active\",\"stateTransitionTime\":\"2017-10-02T21:30:36.6629297Z\",\"allocationState\":\"stopping\",\"allocationStateTransitionTime\":\"2017-10-02T21:45:53.9660427Z\",\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":3,\"targetDedicatedNodes\":2,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"userAccounts\":[\r\n {\r\n \"name\":\"nonAdminUser\",\"elevationLevel\":\"nonadmin\"\r\n }\r\n ],\"metadata\":[\r\n {\r\n \"name\":\"foo2\",\"value\":\"bar2\"\r\n }\r\n ],\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"cloudServiceConfiguration\":{\r\n \"osFamily\":\"4\",\"targetOSVersion\":\"*\",\"currentOSVersion\":\"*\"\r\n }\r\n },{\r\n \"id\":\"nodesdktestpool2\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool2\",\"eTag\":\"0x8D509DEF58C26AB\",\"lastModified\":\"2017-10-02T21:45:54.9785771Z\",\"creationTime\":\"2017-10-02T21:45:54.4757581Z\",\"state\":\"upgrading\",\"stateTransitionTime\":\"2017-10-02T21:45:54.9785771Z\",\"allocationState\":\"steady\",\"allocationStateTransitionTime\":\"2017-10-02T21:45:54.6477625Z\",\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":0,\"targetDedicatedNodes\":0,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"cloudServiceConfiguration\":{\r\n \"osFamily\":\"4\",\"targetOSVersion\":\"WA-GUEST-OS-4.32_201605-01\",\"currentOSVersion\":\"*\"\r\n }\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/pools?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#pools\",\"value\":[\r\n {\r\n \"id\":\"nodesdkinboundendpointpool\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdkinboundendpointpool\",\"eTag\":\"0x8D58610717C3E16\",\"lastModified\":\"2018-03-09T22:52:32.4359702Z\",\"creationTime\":\"2018-03-09T22:52:32.4359702Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:52:32.4359702Z\",\"allocationState\":\"steady\",\"allocationStateTransitionTime\":\"2018-03-09T22:54:26.965177Z\",\"vmSize\":\"standard_a1\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":1,\"targetDedicatedNodes\":1,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"virtualMachineConfiguration\":{\r\n \"imageReference\":{\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n },\"nodeAgentSKUId\":\"batch.node.ubuntu 16.04\"\r\n },\"networkConfiguration\":{\r\n \"endpointConfiguration\":{\r\n \"inboundNATPools\":[\r\n {\r\n \"name\":\"TestEndpointConfig\",\"protocol\":\"udp\",\"backendPort\":64444,\"frontendPortRangeStart\":60000,\"frontendPortRangeEnd\":61000\r\n }\r\n ]\r\n }\r\n }\r\n },{\r\n \"id\":\"nodesdktestpool1\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1\",\"eTag\":\"0x8D5861164D233AE\",\"lastModified\":\"2018-03-09T22:59:20.6856622Z\",\"creationTime\":\"2018-03-09T22:44:04.5924827Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-03-09T22:44:04.5924827Z\",\"allocationState\":\"stopping\",\"allocationStateTransitionTime\":\"2018-03-09T22:59:20.6856622Z\",\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":3,\"targetDedicatedNodes\":2,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"userAccounts\":[\r\n {\r\n \"name\":\"nonAdminUser\",\"elevationLevel\":\"nonadmin\"\r\n }\r\n ],\"metadata\":[\r\n {\r\n \"name\":\"foo2\",\"value\":\"bar2\"\r\n }\r\n ],\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"cloudServiceConfiguration\":{\r\n \"osFamily\":\"4\",\"targetOSVersion\":\"*\",\"currentOSVersion\":\"*\"\r\n }\r\n },{\r\n \"id\":\"nodesdktestpool2\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool2\",\"eTag\":\"0x8D5861165073065\",\"lastModified\":\"2018-03-09T22:59:21.0329189Z\",\"creationTime\":\"2018-03-09T22:59:20.8462313Z\",\"state\":\"upgrading\",\"stateTransitionTime\":\"2018-03-09T22:59:21.0329189Z\",\"allocationState\":\"steady\",\"allocationStateTransitionTime\":\"2018-03-09T22:59:20.9292296Z\",\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\":0,\"targetDedicatedNodes\":0,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"cloudServiceConfiguration\":{\r\n \"osFamily\":\"4\",\"targetOSVersion\":\"WA-GUEST-OS-4.32_201605-01\",\"currentOSVersion\":\"*\"\r\n }\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'd51b0d53-df6e-49dd-9af6-bdfdfbcf8907', + 'request-id': '8f601033-e6b3-4b4c-8937-7fc0357b1c57', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:45:54 GMT', + date: 'Fri, 09 Mar 2018 22:59:21 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_sub_tasks_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_sub_tasks_successfully.nock.js index 142c392b13..7840b499f8 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_list_sub_tasks_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_list_sub_tasks_successfully.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask/subtasksinfo?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#subtaskinfo\",\"value\":[\r\n \r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask/subtasksinfo?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#subtaskinfo\",\"value\":[\r\n \r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'dff295ac-107b-43f4-aca6-f67755ced902', + 'request-id': 'c924fd64-2094-4db1-ac26-2ac822c56231', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:47:49 GMT', + date: 'Fri, 09 Mar 2018 23:01:06 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask/subtasksinfo?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#subtaskinfo\",\"value\":[\r\n \r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask/subtasksinfo?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#subtaskinfo\",\"value\":[\r\n \r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'dff295ac-107b-43f4-aca6-f67755ced902', + 'request-id': 'c924fd64-2094-4db1-ac26-2ac822c56231', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:47:49 GMT', + date: 'Fri, 09 Mar 2018 23:01:06 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_patch_a_job_schedule_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_patch_a_job_schedule_successfully.nock.js index 38039e15af..bbfc1bb707 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_patch_a_job_schedule_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_patch_a_job_schedule_successfully.nock.js @@ -1,42 +1,42 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.patch('/jobschedules/NodeSDKTestSchedule?api-version=2017-09-01.6.0', '*') +.patch('/jobschedules/NodeSDKTestSchedule?api-version=2018-03-01.6.1', '*') .reply(200, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:52:03 GMT', - etag: '0x8D509DFD0EEDEAC', + 'last-modified': 'Fri, 09 Mar 2018 23:25:25 GMT', + etag: '0x8D58615097D3C3D', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '43212c84-1594-4a08-aac3-5e669cf349fc', + 'request-id': '94586b70-64c3-495c-a1fe-9f4f8c49bebc', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobschedules/NodeSDKTestSchedule', - date: 'Mon, 02 Oct 2017 21:52:02 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobschedules/NodeSDKTestSchedule', + date: 'Fri, 09 Mar 2018 23:25:25 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.patch('/jobschedules/NodeSDKTestSchedule?api-version=2017-09-01.6.0', '*') +.patch('/jobschedules/NodeSDKTestSchedule?api-version=2018-03-01.6.1', '*') .reply(200, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:52:03 GMT', - etag: '0x8D509DFD0EEDEAC', + 'last-modified': 'Fri, 09 Mar 2018 23:25:25 GMT', + etag: '0x8D58615097D3C3D', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '43212c84-1594-4a08-aac3-5e669cf349fc', + 'request-id': '94586b70-64c3-495c-a1fe-9f4f8c49bebc', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobschedules/NodeSDKTestSchedule', - date: 'Mon, 02 Oct 2017 21:52:02 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobschedules/NodeSDKTestSchedule', + date: 'Fri, 09 Mar 2018 23:25:25 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_patch_a_job_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_patch_a_job_successfully.nock.js index 13ee1a6e11..68d30751e2 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_patch_a_job_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_patch_a_job_successfully.nock.js @@ -1,42 +1,42 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.put('/jobs/HelloWorldJobNodeSDKTest?api-version=2017-09-01.6.0', '*') +.put('/jobs/HelloWorldJobNodeSDKTest?api-version=2018-03-01.6.1', '*') .reply(200, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:46:01 GMT', - etag: '0x8D509DEF985277D', + 'last-modified': 'Fri, 09 Mar 2018 22:59:23 GMT', + etag: '0x8D586116694D752', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'f68cf3c7-b9fb-4805-ab6d-46e2ffde4b6f', + 'request-id': '3f9de728-0ba9-4c6c-941d-72f254990d5d', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest', - date: 'Mon, 02 Oct 2017 21:46:01 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest', + date: 'Fri, 09 Mar 2018 22:59:23 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.put('/jobs/HelloWorldJobNodeSDKTest?api-version=2017-09-01.6.0', '*') +.put('/jobs/HelloWorldJobNodeSDKTest?api-version=2018-03-01.6.1', '*') .reply(200, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:46:01 GMT', - etag: '0x8D509DEF985277D', + 'last-modified': 'Fri, 09 Mar 2018 22:59:23 GMT', + etag: '0x8D586116694D752', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'f68cf3c7-b9fb-4805-ab6d-46e2ffde4b6f', + 'request-id': '3f9de728-0ba9-4c6c-941d-72f254990d5d', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest', - date: 'Mon, 02 Oct 2017 21:46:01 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest', + date: 'Fri, 09 Mar 2018 22:59:23 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_patch_pool_parameters_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_patch_pool_parameters_successfully.nock.js index a52f6cf8c3..720be2872c 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_patch_pool_parameters_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_patch_pool_parameters_successfully.nock.js @@ -1,42 +1,42 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.patch('/pools/nodesdktestpool1?api-version=2017-09-01.6.0', '*') +.patch('/pools/nodesdktestpool1?api-version=2018-03-01.6.1', '*') .reply(200, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:32:19 GMT', - etag: '0x8D509DD0F3789F4', + 'last-modified': 'Fri, 09 Mar 2018 22:45:45 GMT', + etag: '0x8D5860F7EF25469', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'a8c87b49-e95c-489b-8cb1-8ae1bf7934da', + 'request-id': 'e1e72aaa-0bc6-4b9d-b101-f9c47c3e0e9c', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1', - date: 'Mon, 02 Oct 2017 21:32:18 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1', + date: 'Fri, 09 Mar 2018 22:45:45 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.patch('/pools/nodesdktestpool1?api-version=2017-09-01.6.0', '*') +.patch('/pools/nodesdktestpool1?api-version=2018-03-01.6.1', '*') .reply(200, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:32:19 GMT', - etag: '0x8D509DD0F3789F4', + 'last-modified': 'Fri, 09 Mar 2018 22:45:45 GMT', + etag: '0x8D5860F7EF25469', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'a8c87b49-e95c-489b-8cb1-8ae1bf7934da', + 'request-id': 'e1e72aaa-0bc6-4b9d-b101-f9c47c3e0e9c', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1', - date: 'Mon, 02 Oct 2017 21:32:18 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1', + date: 'Fri, 09 Mar 2018 22:45:45 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_perform_AAD_authentication_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_perform_AAD_authentication_successfully.nock.js index f7426efe8c..7c7dd8628a 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_perform_AAD_authentication_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_perform_AAD_authentication_successfully.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/nodeagentskus?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#nodeagentskus\",\"value\":[\r\n {\r\n \"id\":\"batch.node.centos 7\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"OpenLogic\",\"offer\":\"CentOS\",\"sku\":\"7.3\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"OpenLogic\",\"offer\":\"CentOS-HPC\",\"sku\":\"7.3\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"Oracle\",\"offer\":\"Oracle-Linux\",\"sku\":\"7.3\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"microsoft-ads\",\"offer\":\"linux-data-science-vm\",\"sku\":\"linuxdsvm\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"batch\",\"offer\":\"rendering-centos73\",\"sku\":\"rendering\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.debian 8\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"Credativ\",\"offer\":\"Debian\",\"sku\":\"8\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"Credativ\",\"offer\":\"Debian\",\"sku\":\"8-backports\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.opensuse 13.2\",\"verifiedImageReferences\":[\r\n \r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.opensuse 42.1\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"SUSE\",\"offer\":\"SLES\",\"sku\":\"12-SP2\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"SUSE\",\"offer\":\"SLES-HPC\",\"sku\":\"12-SP1\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.ubuntu 14.04\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"14.04.5-LTS\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.ubuntu 16.04\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"17.04\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.windows amd64\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-R2-Datacenter\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-Datacenter\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2008-R2-SP1\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2016-Datacenter\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2016-Datacenter-with-Containers\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2008-R2-SP1-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-Datacenter-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-R2-Datacenter-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2016-Datacenter-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"microsoft-ads\",\"offer\":\"standard-data-science-vm\",\"sku\":\"standard-data-science-vm\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"batch\",\"offer\":\"rendering-windows2016\",\"sku\":\"rendering\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"windows\"\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/nodeagentskus?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#nodeagentskus\",\"value\":[\r\n {\r\n \"id\":\"batch.node.centos 7\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"OpenLogic\",\"offer\":\"CentOS\",\"sku\":\"7.4\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"OpenLogic\",\"offer\":\"CentOS-HPC\",\"sku\":\"7.3\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"OpenLogic\",\"offer\":\"CentOS-HPC\",\"sku\":\"7.1\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"Oracle\",\"offer\":\"Oracle-Linux\",\"sku\":\"7.4\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"microsoft-ads\",\"offer\":\"linux-data-science-vm\",\"sku\":\"linuxdsvm\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"batch\",\"offer\":\"rendering-centos73\",\"sku\":\"rendering\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.debian 8\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"Credativ\",\"offer\":\"Debian\",\"sku\":\"8\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.debian 9\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"Credativ\",\"offer\":\"Debian\",\"sku\":\"9\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.opensuse 42.1\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"SUSE\",\"offer\":\"SLES\",\"sku\":\"12-SP2\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.ubuntu 14.04\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"14.04.5-LTS\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.ubuntu 16.04\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.windows amd64\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2008-R2-SP1\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2008-R2-SP1-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-Datacenter\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-Datacenter-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-R2-Datacenter\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-R2-Datacenter-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2016-Datacenter\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2016-Datacenter-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2016-Datacenter-with-Containers\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"microsoft-ads\",\"offer\":\"standard-data-science-vm\",\"sku\":\"standard-data-science-vm\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"batch\",\"offer\":\"rendering-windows2016\",\"sku\":\"rendering\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"windows\"\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '175e0a37-2b93-4104-93b2-350ca4a7d22d', + 'request-id': 'd4362e1f-67cb-4698-9dab-9291fa848a78', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:30:34 GMT', + date: 'Fri, 09 Mar 2018 22:52:32 GMT', connection: 'close' }); - return result; }, + return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/nodeagentskus?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#nodeagentskus\",\"value\":[\r\n {\r\n \"id\":\"batch.node.centos 7\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"OpenLogic\",\"offer\":\"CentOS\",\"sku\":\"7.3\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"OpenLogic\",\"offer\":\"CentOS-HPC\",\"sku\":\"7.3\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"Oracle\",\"offer\":\"Oracle-Linux\",\"sku\":\"7.3\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"microsoft-ads\",\"offer\":\"linux-data-science-vm\",\"sku\":\"linuxdsvm\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"batch\",\"offer\":\"rendering-centos73\",\"sku\":\"rendering\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.debian 8\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"Credativ\",\"offer\":\"Debian\",\"sku\":\"8\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"Credativ\",\"offer\":\"Debian\",\"sku\":\"8-backports\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.opensuse 13.2\",\"verifiedImageReferences\":[\r\n \r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.opensuse 42.1\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"SUSE\",\"offer\":\"SLES\",\"sku\":\"12-SP2\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"SUSE\",\"offer\":\"SLES-HPC\",\"sku\":\"12-SP1\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.ubuntu 14.04\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"14.04.5-LTS\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.ubuntu 16.04\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"17.04\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.windows amd64\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-R2-Datacenter\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-Datacenter\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2008-R2-SP1\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2016-Datacenter\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2016-Datacenter-with-Containers\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2008-R2-SP1-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-Datacenter-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-R2-Datacenter-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2016-Datacenter-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"microsoft-ads\",\"offer\":\"standard-data-science-vm\",\"sku\":\"standard-data-science-vm\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"batch\",\"offer\":\"rendering-windows2016\",\"sku\":\"rendering\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"windows\"\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/nodeagentskus?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#nodeagentskus\",\"value\":[\r\n {\r\n \"id\":\"batch.node.centos 7\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"OpenLogic\",\"offer\":\"CentOS\",\"sku\":\"7.4\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"OpenLogic\",\"offer\":\"CentOS-HPC\",\"sku\":\"7.3\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"OpenLogic\",\"offer\":\"CentOS-HPC\",\"sku\":\"7.1\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"Oracle\",\"offer\":\"Oracle-Linux\",\"sku\":\"7.4\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"microsoft-ads\",\"offer\":\"linux-data-science-vm\",\"sku\":\"linuxdsvm\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"batch\",\"offer\":\"rendering-centos73\",\"sku\":\"rendering\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.debian 8\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"Credativ\",\"offer\":\"Debian\",\"sku\":\"8\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.debian 9\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"Credativ\",\"offer\":\"Debian\",\"sku\":\"9\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.opensuse 42.1\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"SUSE\",\"offer\":\"SLES\",\"sku\":\"12-SP2\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.ubuntu 14.04\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"14.04.5-LTS\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.ubuntu 16.04\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.windows amd64\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2008-R2-SP1\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2008-R2-SP1-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-Datacenter\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-Datacenter-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-R2-Datacenter\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2012-R2-Datacenter-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2016-Datacenter\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2016-Datacenter-smalldisk\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2016-Datacenter-with-Containers\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"microsoft-ads\",\"offer\":\"standard-data-science-vm\",\"sku\":\"standard-data-science-vm\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"batch\",\"offer\":\"rendering-windows2016\",\"sku\":\"rendering\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"windows\"\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '175e0a37-2b93-4104-93b2-350ca4a7d22d', + 'request-id': 'd4362e1f-67cb-4698-9dab-9291fa848a78', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:30:34 GMT', + date: 'Fri, 09 Mar 2018 22:52:32 GMT', connection: 'close' }); - return result; }]]; \ No newline at end of file + return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_re-list_compute_nodes_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_re-list_compute_nodes_successfully.nock.js index efae39c7b4..dad65a4c22 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_re-list_compute_nodes_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_re-list_compute_nodes_successfully.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools/nodesdktestpool1/nodes?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#nodes\",\"value\":[\r\n {\r\n \"id\":\"tvm-115883067_2-20171002t213150z\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_2-20171002t213150z\",\"state\":\"reimaging\",\"schedulingState\":\"enabled\",\"stateTransitionTime\":\"2017-10-02T21:45:52.1660991Z\",\"lastBootTime\":\"2017-10-02T21:34:56.8633634Z\",\"allocationTime\":\"2017-10-02T21:31:50.8333435Z\",\"ipAddress\":\"100.74.12.107\",\"affinityId\":\"TVM:tvm-115883067_2-20171002t213150z\",\"vmSize\":\"small\",\"totalTasksRun\":0,\"totalTasksSucceeded\":0,\"runningTasksCount\":0,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"startTaskInfo\":{\r\n \"state\":\"completed\",\"startTime\":\"2017-10-02T21:34:58.924195Z\",\"endTime\":\"2017-10-02T21:34:59.0861927Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0\r\n },\"isDedicated\":true\r\n },{\r\n \"id\":\"tvm-115883067_3-20171002t213150z\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_3-20171002t213150z\",\"state\":\"idle\",\"schedulingState\":\"enabled\",\"stateTransitionTime\":\"2017-10-02T21:34:57.2185271Z\",\"lastBootTime\":\"2017-10-02T21:34:55.177581Z\",\"allocationTime\":\"2017-10-02T21:31:50.8333435Z\",\"ipAddress\":\"100.74.92.21\",\"affinityId\":\"TVM:tvm-115883067_3-20171002t213150z\",\"vmSize\":\"small\",\"totalTasksRun\":6,\"totalTasksSucceeded\":3,\"runningTasksCount\":0,\"recentTasks\":[\r\n {\r\n \"taskUrl\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/helloworldnodesdktesttask2\",\"jobId\":\"HelloWorldJobNodeSDKTest\",\"taskId\":\"helloworldnodesdktesttask2\",\"subtaskId\":0,\"taskState\":\"completed\",\"executionInfo\":{\r\n \"startTime\":\"2017-10-02T21:46:08.9983308Z\",\"endTime\":\"2017-10-02T21:46:09.1156939Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0,\"requeueCount\":0\r\n }\r\n },{\r\n \"taskUrl\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/helloworldnodesdktesttask\",\"jobId\":\"HelloWorldJobNodeSDKTest\",\"taskId\":\"helloworldnodesdktesttask\",\"subtaskId\":0,\"taskState\":\"completed\",\"executionInfo\":{\r\n \"startTime\":\"2017-10-02T21:46:11.0231815Z\",\"endTime\":\"2017-10-02T21:46:30.1538298Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0,\"requeueCount\":0\r\n }\r\n },{\r\n \"taskUrl\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/taskwithauthtokensettings\",\"jobId\":\"HelloWorldJobNodeSDKTest\",\"taskId\":\"taskwithauthtokensettings\",\"subtaskId\":0,\"taskState\":\"completed\",\"executionInfo\":{\r\n \"startTime\":\"2017-10-02T21:47:59.4268684Z\",\"endTime\":\"2017-10-02T21:47:59.577873Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0,\"requeueCount\":0\r\n }\r\n },{\r\n \"taskUrl\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/taskwithuseridentity\",\"jobId\":\"HelloWorldJobNodeSDKTest\",\"taskId\":\"taskwithuseridentity\",\"subtaskId\":0,\"taskState\":\"completed\",\"executionInfo\":{\r\n \"startTime\":\"2017-10-02T21:48:02.1873238Z\",\"endTime\":\"2017-10-02T21:48:02.2743129Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":3,\"lastRetryTime\":\"2017-10-02T21:48:00.4711487Z\",\"requeueCount\":0\r\n }\r\n }\r\n ],\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"startTaskInfo\":{\r\n \"state\":\"completed\",\"startTime\":\"2017-10-02T21:34:57.2185271Z\",\"endTime\":\"2017-10-02T21:34:57.3605269Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0\r\n },\"isDedicated\":true\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('http://lchency4.westcentralus.batch.azure.com:443') + .get('/pools/nodesdktestpool1/nodes?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#nodes\",\"value\":[\r\n {\r\n \"id\":\"tvm-3840119875_2-20180309t224543z\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_2-20180309t224543z\",\"state\":\"reimaging\",\"schedulingState\":\"enabled\",\"stateTransitionTime\":\"2018-03-09T22:59:19.6775625Z\",\"lastBootTime\":\"2018-03-09T22:49:56.6021605Z\",\"allocationTime\":\"2018-03-09T22:45:43.713181Z\",\"ipAddress\":\"100.73.56.76\",\"affinityId\":\"TVM:tvm-3840119875_2-20180309t224543z\",\"vmSize\":\"small\",\"totalTasksRun\":0,\"totalTasksSucceeded\":0,\"runningTasksCount\":0,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"startTaskInfo\":{\r\n \"state\":\"completed\",\"startTime\":\"2018-03-09T22:49:58.7550625Z\",\"endTime\":\"2018-03-09T22:49:58.9254011Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0\r\n },\"isDedicated\":true\r\n },{\r\n \"id\":\"tvm-3840119875_3-20180309t224543z\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_3-20180309t224543z\",\"state\":\"idle\",\"schedulingState\":\"enabled\",\"stateTransitionTime\":\"2018-03-09T22:50:04.0199067Z\",\"lastBootTime\":\"2018-03-09T22:50:01.3197051Z\",\"allocationTime\":\"2018-03-09T22:45:43.713181Z\",\"ipAddress\":\"100.73.88.23\",\"affinityId\":\"TVM:tvm-3840119875_3-20180309t224543z\",\"vmSize\":\"small\",\"totalTasksRun\":6,\"totalTasksSucceeded\":3,\"runningTasksCount\":0,\"recentTasks\":[\r\n {\r\n \"taskUrl\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/helloworldnodesdktesttask2\",\"jobId\":\"HelloWorldJobNodeSDKTest\",\"taskId\":\"helloworldnodesdktesttask2\",\"subtaskId\":0,\"taskState\":\"completed\",\"executionInfo\":{\r\n \"startTime\":\"2018-03-09T22:59:27.6052016Z\",\"endTime\":\"2018-03-09T22:59:27.7032114Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0,\"requeueCount\":0\r\n }\r\n },{\r\n \"taskUrl\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/helloworldnodesdktesttask\",\"jobId\":\"HelloWorldJobNodeSDKTest\",\"taskId\":\"helloworldnodesdktesttask\",\"subtaskId\":0,\"taskState\":\"completed\",\"executionInfo\":{\r\n \"startTime\":\"2018-03-09T22:59:29.7984964Z\",\"endTime\":\"2018-03-09T22:59:48.9221854Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0,\"requeueCount\":0\r\n }\r\n },{\r\n \"taskUrl\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/taskwithauthtokensettings\",\"jobId\":\"HelloWorldJobNodeSDKTest\",\"taskId\":\"taskwithauthtokensettings\",\"subtaskId\":0,\"taskState\":\"completed\",\"executionInfo\":{\r\n \"startTime\":\"2018-03-09T23:01:09.6248343Z\",\"endTime\":\"2018-03-09T23:01:09.7351819Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0,\"requeueCount\":0\r\n }\r\n },{\r\n \"taskUrl\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/taskwithuseridentity\",\"jobId\":\"HelloWorldJobNodeSDKTest\",\"taskId\":\"taskwithuseridentity\",\"subtaskId\":0,\"taskState\":\"completed\",\"executionInfo\":{\r\n \"startTime\":\"2018-03-09T23:01:14.591505Z\",\"endTime\":\"2018-03-09T23:01:14.663512Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":3,\"lastRetryTime\":\"2018-03-09T23:01:13.1202283Z\",\"requeueCount\":0\r\n }\r\n }\r\n ],\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"startTaskInfo\":{\r\n \"state\":\"completed\",\"startTime\":\"2018-03-09T22:50:04.0199067Z\",\"endTime\":\"2018-03-09T22:50:04.1619194Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0\r\n },\"isDedicated\":true\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '9b62ddba-2790-410d-8037-b5c72925ade7', + 'request-id': '3521f178-caa6-4df4-a87b-f59caf2255c8', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:48:10 GMT', + date: 'Fri, 09 Mar 2018 23:01:24 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .get('/pools/nodesdktestpool1/nodes?api-version=2017-09-01.6.0') - .reply(200, "{\r\n \"odata.metadata\":\"https://batchtestnodesdk.japaneast.batch.azure.com/$metadata#nodes\",\"value\":[\r\n {\r\n \"id\":\"tvm-115883067_2-20171002t213150z\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_2-20171002t213150z\",\"state\":\"reimaging\",\"schedulingState\":\"enabled\",\"stateTransitionTime\":\"2017-10-02T21:45:52.1660991Z\",\"lastBootTime\":\"2017-10-02T21:34:56.8633634Z\",\"allocationTime\":\"2017-10-02T21:31:50.8333435Z\",\"ipAddress\":\"100.74.12.107\",\"affinityId\":\"TVM:tvm-115883067_2-20171002t213150z\",\"vmSize\":\"small\",\"totalTasksRun\":0,\"totalTasksSucceeded\":0,\"runningTasksCount\":0,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"startTaskInfo\":{\r\n \"state\":\"completed\",\"startTime\":\"2017-10-02T21:34:58.924195Z\",\"endTime\":\"2017-10-02T21:34:59.0861927Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0\r\n },\"isDedicated\":true\r\n },{\r\n \"id\":\"tvm-115883067_3-20171002t213150z\",\"url\":\"https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_3-20171002t213150z\",\"state\":\"idle\",\"schedulingState\":\"enabled\",\"stateTransitionTime\":\"2017-10-02T21:34:57.2185271Z\",\"lastBootTime\":\"2017-10-02T21:34:55.177581Z\",\"allocationTime\":\"2017-10-02T21:31:50.8333435Z\",\"ipAddress\":\"100.74.92.21\",\"affinityId\":\"TVM:tvm-115883067_3-20171002t213150z\",\"vmSize\":\"small\",\"totalTasksRun\":6,\"totalTasksSucceeded\":3,\"runningTasksCount\":0,\"recentTasks\":[\r\n {\r\n \"taskUrl\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/helloworldnodesdktesttask2\",\"jobId\":\"HelloWorldJobNodeSDKTest\",\"taskId\":\"helloworldnodesdktesttask2\",\"subtaskId\":0,\"taskState\":\"completed\",\"executionInfo\":{\r\n \"startTime\":\"2017-10-02T21:46:08.9983308Z\",\"endTime\":\"2017-10-02T21:46:09.1156939Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0,\"requeueCount\":0\r\n }\r\n },{\r\n \"taskUrl\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/helloworldnodesdktesttask\",\"jobId\":\"HelloWorldJobNodeSDKTest\",\"taskId\":\"helloworldnodesdktesttask\",\"subtaskId\":0,\"taskState\":\"completed\",\"executionInfo\":{\r\n \"startTime\":\"2017-10-02T21:46:11.0231815Z\",\"endTime\":\"2017-10-02T21:46:30.1538298Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0,\"requeueCount\":0\r\n }\r\n },{\r\n \"taskUrl\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/taskwithauthtokensettings\",\"jobId\":\"HelloWorldJobNodeSDKTest\",\"taskId\":\"taskwithauthtokensettings\",\"subtaskId\":0,\"taskState\":\"completed\",\"executionInfo\":{\r\n \"startTime\":\"2017-10-02T21:47:59.4268684Z\",\"endTime\":\"2017-10-02T21:47:59.577873Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0,\"requeueCount\":0\r\n }\r\n },{\r\n \"taskUrl\":\"https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/taskwithuseridentity\",\"jobId\":\"HelloWorldJobNodeSDKTest\",\"taskId\":\"taskwithuseridentity\",\"subtaskId\":0,\"taskState\":\"completed\",\"executionInfo\":{\r\n \"startTime\":\"2017-10-02T21:48:02.1873238Z\",\"endTime\":\"2017-10-02T21:48:02.2743129Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":3,\"lastRetryTime\":\"2017-10-02T21:48:00.4711487Z\",\"requeueCount\":0\r\n }\r\n }\r\n ],\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"startTaskInfo\":{\r\n \"state\":\"completed\",\"startTime\":\"2017-10-02T21:34:57.2185271Z\",\"endTime\":\"2017-10-02T21:34:57.3605269Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0\r\n },\"isDedicated\":true\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', +nock('https://lchency4.westcentralus.batch.azure.com:443') + .get('/pools/nodesdktestpool1/nodes?api-version=2018-03-01.6.1') + .reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#nodes\",\"value\":[\r\n {\r\n \"id\":\"tvm-3840119875_2-20180309t224543z\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_2-20180309t224543z\",\"state\":\"reimaging\",\"schedulingState\":\"enabled\",\"stateTransitionTime\":\"2018-03-09T22:59:19.6775625Z\",\"lastBootTime\":\"2018-03-09T22:49:56.6021605Z\",\"allocationTime\":\"2018-03-09T22:45:43.713181Z\",\"ipAddress\":\"100.73.56.76\",\"affinityId\":\"TVM:tvm-3840119875_2-20180309t224543z\",\"vmSize\":\"small\",\"totalTasksRun\":0,\"totalTasksSucceeded\":0,\"runningTasksCount\":0,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"startTaskInfo\":{\r\n \"state\":\"completed\",\"startTime\":\"2018-03-09T22:49:58.7550625Z\",\"endTime\":\"2018-03-09T22:49:58.9254011Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0\r\n },\"isDedicated\":true\r\n },{\r\n \"id\":\"tvm-3840119875_3-20180309t224543z\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_3-20180309t224543z\",\"state\":\"idle\",\"schedulingState\":\"enabled\",\"stateTransitionTime\":\"2018-03-09T22:50:04.0199067Z\",\"lastBootTime\":\"2018-03-09T22:50:01.3197051Z\",\"allocationTime\":\"2018-03-09T22:45:43.713181Z\",\"ipAddress\":\"100.73.88.23\",\"affinityId\":\"TVM:tvm-3840119875_3-20180309t224543z\",\"vmSize\":\"small\",\"totalTasksRun\":6,\"totalTasksSucceeded\":3,\"runningTasksCount\":0,\"recentTasks\":[\r\n {\r\n \"taskUrl\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/helloworldnodesdktesttask2\",\"jobId\":\"HelloWorldJobNodeSDKTest\",\"taskId\":\"helloworldnodesdktesttask2\",\"subtaskId\":0,\"taskState\":\"completed\",\"executionInfo\":{\r\n \"startTime\":\"2018-03-09T22:59:27.6052016Z\",\"endTime\":\"2018-03-09T22:59:27.7032114Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0,\"requeueCount\":0\r\n }\r\n },{\r\n \"taskUrl\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/helloworldnodesdktesttask\",\"jobId\":\"HelloWorldJobNodeSDKTest\",\"taskId\":\"helloworldnodesdktesttask\",\"subtaskId\":0,\"taskState\":\"completed\",\"executionInfo\":{\r\n \"startTime\":\"2018-03-09T22:59:29.7984964Z\",\"endTime\":\"2018-03-09T22:59:48.9221854Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0,\"requeueCount\":0\r\n }\r\n },{\r\n \"taskUrl\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/taskwithauthtokensettings\",\"jobId\":\"HelloWorldJobNodeSDKTest\",\"taskId\":\"taskwithauthtokensettings\",\"subtaskId\":0,\"taskState\":\"completed\",\"executionInfo\":{\r\n \"startTime\":\"2018-03-09T23:01:09.6248343Z\",\"endTime\":\"2018-03-09T23:01:09.7351819Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0,\"requeueCount\":0\r\n }\r\n },{\r\n \"taskUrl\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/taskwithuseridentity\",\"jobId\":\"HelloWorldJobNodeSDKTest\",\"taskId\":\"taskwithuseridentity\",\"subtaskId\":0,\"taskState\":\"completed\",\"executionInfo\":{\r\n \"startTime\":\"2018-03-09T23:01:14.591505Z\",\"endTime\":\"2018-03-09T23:01:14.663512Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":3,\"lastRetryTime\":\"2018-03-09T23:01:13.1202283Z\",\"requeueCount\":0\r\n }\r\n }\r\n ],\"startTask\":{\r\n \"commandLine\":\"cmd /c echo hello > hello.txt\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"startTaskInfo\":{\r\n \"state\":\"completed\",\"startTime\":\"2018-03-09T22:50:04.0199067Z\",\"endTime\":\"2018-03-09T22:50:04.1619194Z\",\"exitCode\":0,\"result\":\"Success\",\"retryCount\":0\r\n },\"isDedicated\":true\r\n }\r\n ]\r\n}", { 'transfer-encoding': 'chunked', 'content-type': 'application/json;odata=minimalmetadata', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '9b62ddba-2790-410d-8037-b5c72925ade7', + 'request-id': '3521f178-caa6-4df4-a87b-f59caf2255c8', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:48:10 GMT', + date: 'Fri, 09 Mar 2018 23:01:24 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_reactivate_a_task_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_reactivate_a_task_successfully.nock.js index 8bea741fb7..4ce7ce7479 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_reactivate_a_task_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_reactivate_a_task_successfully.nock.js @@ -1,38 +1,38 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .post('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask/reactivate?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .post('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask/reactivate?api-version=2018-03-01.6.1') .reply(204, "", { 'content-length': '0', - 'last-modified': 'Mon, 02 Oct 2017 21:46:08 GMT', - etag: '0x8D509DEFD8BECDF', + 'last-modified': 'Fri, 09 Mar 2018 22:59:25 GMT', + etag: '0x8D5861167F3CDFF', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '37c94080-5138-45da-a74e-de1cfc7c87cb', + 'request-id': '1bb5c169-bd56-442e-ba77-7f4adb67984d', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:46:08 GMT', + date: 'Fri, 09 Mar 2018 22:59:25 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .post('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask/reactivate?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .post('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask/reactivate?api-version=2018-03-01.6.1') .reply(204, "", { 'content-length': '0', - 'last-modified': 'Mon, 02 Oct 2017 21:46:08 GMT', - etag: '0x8D509DEFD8BECDF', + 'last-modified': 'Fri, 09 Mar 2018 22:59:25 GMT', + etag: '0x8D5861167F3CDFF', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '37c94080-5138-45da-a74e-de1cfc7c87cb', + 'request-id': '1bb5c169-bd56-442e-ba77-7f4adb67984d', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - date: 'Mon, 02 Oct 2017 21:46:08 GMT', + date: 'Fri, 09 Mar 2018 22:59:25 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_reboot_a_compute_node_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_reboot_a_compute_node_successfully.nock.js index c47a3c0581..313f4238bd 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_reboot_a_compute_node_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_reboot_a_compute_node_successfully.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .post('/pools/nodesdktestpool1/nodes/tvm-115883067_1-20171002t213150z/reboot?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .post('/pools/nodesdktestpool1/nodes/tvm-3840119875_1-20180309t224543z/reboot?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '96881cc3-923d-4953-85ac-0ba4094edbe9', + 'request-id': 'f341955d-5318-47e7-9302-da9520a4bb3f', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_1-20171002t213150z/reboot', - date: 'Mon, 02 Oct 2017 21:45:51 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_1-20180309t224543z/reboot', + date: 'Fri, 09 Mar 2018 22:59:18 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .post('/pools/nodesdktestpool1/nodes/tvm-115883067_1-20171002t213150z/reboot?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .post('/pools/nodesdktestpool1/nodes/tvm-3840119875_1-20180309t224543z/reboot?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '96881cc3-923d-4953-85ac-0ba4094edbe9', + 'request-id': 'f341955d-5318-47e7-9302-da9520a4bb3f', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_1-20171002t213150z/reboot', - date: 'Mon, 02 Oct 2017 21:45:51 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_1-20180309t224543z/reboot', + date: 'Fri, 09 Mar 2018 22:59:18 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_reimage_a_compute_node_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_reimage_a_compute_node_successfully.nock.js index 1a26801785..530bbcf0ac 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_reimage_a_compute_node_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_reimage_a_compute_node_successfully.nock.js @@ -1,36 +1,36 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .post('/pools/nodesdktestpool1/nodes/tvm-115883067_2-20171002t213150z/reimage?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .post('/pools/nodesdktestpool1/nodes/tvm-3840119875_2-20180309t224543z/reimage?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '0eef0f24-5101-4ed8-b818-3db9c116f7a0', + 'request-id': 'f4ade4ac-c018-4c5e-b82a-8c94cb880ada', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_2-20171002t213150z/reimage', - date: 'Mon, 02 Oct 2017 21:45:51 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_2-20180309t224543z/reimage', + date: 'Fri, 09 Mar 2018 22:59:19 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .post('/pools/nodesdktestpool1/nodes/tvm-115883067_2-20171002t213150z/reimage?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .post('/pools/nodesdktestpool1/nodes/tvm-3840119875_2-20180309t224543z/reimage?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '0eef0f24-5101-4ed8-b818-3db9c116f7a0', + 'request-id': 'f4ade4ac-c018-4c5e-b82a-8c94cb880ada', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-115883067_2-20171002t213150z/reimage', - date: 'Mon, 02 Oct 2017 21:45:51 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/nodes/tvm-3840119875_2-20180309t224543z/reimage', + date: 'Fri, 09 Mar 2018 22:59:19 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_remove_nodes_in_pool_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_remove_nodes_in_pool_successfully.nock.js index 51c9322c86..51e3115a44 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_remove_nodes_in_pool_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_remove_nodes_in_pool_successfully.nock.js @@ -1,42 +1,42 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools/nodesdktestpool1/removenodes?api-version=2017-09-01.6.0', '*') +.post('/pools/nodesdktestpool1/removenodes?api-version=2018-03-01.6.1', '*') .reply(202, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:52:05 GMT', - etag: '0x8D509DFD26AB3C1', + 'last-modified': 'Fri, 09 Mar 2018 23:05:15 GMT', + etag: '0x8D586123806C3EF', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '69ef3933-36b0-4d12-b9ba-8074b3b44b8b', + 'request-id': 'bd75d5de-be80-4376-8a1b-220531bf2a4f', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/removenodes', - date: 'Mon, 02 Oct 2017 21:52:05 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/removenodes', + date: 'Fri, 09 Mar 2018 23:05:14 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools/nodesdktestpool1/removenodes?api-version=2017-09-01.6.0', '*') +.post('/pools/nodesdktestpool1/removenodes?api-version=2018-03-01.6.1', '*') .reply(202, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:52:05 GMT', - etag: '0x8D509DFD26AB3C1', + 'last-modified': 'Fri, 09 Mar 2018 23:05:15 GMT', + etag: '0x8D586123806C3EF', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '69ef3933-36b0-4d12-b9ba-8074b3b44b8b', + 'request-id': 'bd75d5de-be80-4376-8a1b-220531bf2a4f', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/removenodes', - date: 'Mon, 02 Oct 2017 21:52:05 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/removenodes', + date: 'Fri, 09 Mar 2018 23:05:14 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_start_pool_resizing_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_start_pool_resizing_successfully.nock.js index 4646c92e83..213822db9b 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_start_pool_resizing_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_start_pool_resizing_successfully.nock.js @@ -1,42 +1,42 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools/nodesdktestpool2/resize?api-version=2017-09-01.6.0', '*') +.post('/pools/nodesdktestpool2/resize?api-version=2018-03-01.6.1', '*') .reply(202, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:45:58 GMT', - etag: '0x8D509DEF79D9405', + 'last-modified': 'Fri, 09 Mar 2018 22:59:22 GMT', + etag: '0x8D5861165C6B797', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'fc29a175-3025-424e-8dcd-4c595015e5d7', + 'request-id': '65a71cde-7e2e-458a-93ca-8b04d5f1becb', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool2/resize', - date: 'Mon, 02 Oct 2017 21:45:58 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool2/resize', + date: 'Fri, 09 Mar 2018 22:59:22 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools/nodesdktestpool2/resize?api-version=2017-09-01.6.0', '*') +.post('/pools/nodesdktestpool2/resize?api-version=2018-03-01.6.1', '*') .reply(202, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:45:58 GMT', - etag: '0x8D509DEF79D9405', + 'last-modified': 'Fri, 09 Mar 2018 22:59:22 GMT', + etag: '0x8D5861165C6B797', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'fc29a175-3025-424e-8dcd-4c595015e5d7', + 'request-id': '65a71cde-7e2e-458a-93ca-8b04d5f1becb', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool2/resize', - date: 'Mon, 02 Oct 2017 21:45:58 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool2/resize', + date: 'Fri, 09 Mar 2018 22:59:22 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_stop_pool_resizing_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_stop_pool_resizing_successfully.nock.js index 351e39d188..f38737ad1b 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_stop_pool_resizing_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_stop_pool_resizing_successfully.nock.js @@ -1,40 +1,40 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .post('/pools/nodesdktestpool2/stopresize?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .post('/pools/nodesdktestpool2/stopresize?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:45:58 GMT', - etag: '0x8D509DEF7E94D5D', + 'last-modified': 'Fri, 09 Mar 2018 22:59:22 GMT', + etag: '0x8D5861165E39D6D', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '369247bc-eab7-4b3a-b070-ef0d4df0a514', + 'request-id': '5a726c8c-edda-4a35-a7af-2c5e261978ab', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool2/stopresize', - date: 'Mon, 02 Oct 2017 21:45:58 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool2/stopresize', + date: 'Fri, 09 Mar 2018 22:59:22 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .post('/pools/nodesdktestpool2/stopresize?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .post('/pools/nodesdktestpool2/stopresize?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:45:58 GMT', - etag: '0x8D509DEF7E94D5D', + 'last-modified': 'Fri, 09 Mar 2018 22:59:22 GMT', + etag: '0x8D5861165E39D6D', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '369247bc-eab7-4b3a-b070-ef0d4df0a514', + 'request-id': '5a726c8c-edda-4a35-a7af-2c5e261978ab', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool2/stopresize', - date: 'Mon, 02 Oct 2017 21:45:58 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool2/stopresize', + date: 'Fri, 09 Mar 2018 22:59:22 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_terminate_a_job_schedule_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_terminate_a_job_schedule_successfully.nock.js index 0059e8e498..58e52db2c6 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_terminate_a_job_schedule_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_terminate_a_job_schedule_successfully.nock.js @@ -1,40 +1,40 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .post('/jobschedules/NodeSDKTestSchedule/terminate?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .post('/jobschedules/NodeSDKTestSchedule/terminate?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:52:04 GMT', - etag: '0x8D509DFD1BF527B', + 'last-modified': 'Fri, 09 Mar 2018 23:25:25 GMT', + etag: '0x8D5861509C27E2B', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '8cc00508-4330-4f78-98a1-d1bd581b055f', + 'request-id': 'e9625c9a-1530-4f4a-9a0a-41b10b2bc888', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobschedules/NodeSDKTestSchedule/terminate', - date: 'Mon, 02 Oct 2017 21:52:04 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobschedules/NodeSDKTestSchedule/terminate', + date: 'Fri, 09 Mar 2018 23:25:25 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .post('/jobschedules/NodeSDKTestSchedule/terminate?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .post('/jobschedules/NodeSDKTestSchedule/terminate?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:52:04 GMT', - etag: '0x8D509DFD1BF527B', + 'last-modified': 'Fri, 09 Mar 2018 23:25:25 GMT', + etag: '0x8D5861509C27E2B', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '8cc00508-4330-4f78-98a1-d1bd581b055f', + 'request-id': 'e9625c9a-1530-4f4a-9a0a-41b10b2bc888', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobschedules/NodeSDKTestSchedule/terminate', - date: 'Mon, 02 Oct 2017 21:52:04 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobschedules/NodeSDKTestSchedule/terminate', + date: 'Fri, 09 Mar 2018 23:25:25 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_terminate_a_job_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_terminate_a_job_successfully.nock.js index 59c71f4301..90578f9d54 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_terminate_a_job_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_terminate_a_job_successfully.nock.js @@ -1,40 +1,40 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .post('/jobs/HelloWorldJobNodeSDKTest/terminate?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .post('/jobs/HelloWorldJobNodeSDKTest/terminate?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:51:58 GMT', - etag: '0x8D509DFCE604258', + 'last-modified': 'Fri, 09 Mar 2018 23:05:10 GMT', + etag: '0x8D58612355BAEF6', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '3a8594a7-7d7d-43df-beb2-cde2a80420b3', + 'request-id': '38dad21a-007d-4d3d-ba10-e9833be61f31', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/terminate', - date: 'Mon, 02 Oct 2017 21:51:58 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/terminate', + date: 'Fri, 09 Mar 2018 23:05:09 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .post('/jobs/HelloWorldJobNodeSDKTest/terminate?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .post('/jobs/HelloWorldJobNodeSDKTest/terminate?api-version=2018-03-01.6.1') .reply(202, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:51:58 GMT', - etag: '0x8D509DFCE604258', + 'last-modified': 'Fri, 09 Mar 2018 23:05:10 GMT', + etag: '0x8D58612355BAEF6', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '3a8594a7-7d7d-43df-beb2-cde2a80420b3', + 'request-id': '38dad21a-007d-4d3d-ba10-e9833be61f31', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/terminate', - date: 'Mon, 02 Oct 2017 21:51:58 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/terminate', + date: 'Fri, 09 Mar 2018 23:05:09 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_terminate_a_task_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_terminate_a_task_successfully.nock.js index 0b07cf0caf..5d1c9aa6a0 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_terminate_a_task_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_terminate_a_task_successfully.nock.js @@ -1,40 +1,40 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') - .post('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask/terminate?api-version=2017-09-01.6.0') +nock('http://lchency4.westcentralus.batch.azure.com:443') + .post('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask/terminate?api-version=2018-03-01.6.1') .reply(204, "", { 'content-length': '0', - 'last-modified': 'Mon, 02 Oct 2017 21:46:07 GMT', - etag: '0x8D509DEFCCC7BC4', + 'last-modified': 'Fri, 09 Mar 2018 22:59:25 GMT', + etag: '0x8D5861167B943DE', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '6a42ea6b-7ecc-4aab-a2bf-25ee728abf3d', + 'request-id': '1d457fec-4675-4dc6-aa30-011251b121b7', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask/terminate', - date: 'Mon, 02 Oct 2017 21:46:06 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask/terminate', + date: 'Fri, 09 Mar 2018 22:59:25 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') - .post('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask/terminate?api-version=2017-09-01.6.0') +nock('https://lchency4.westcentralus.batch.azure.com:443') + .post('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask/terminate?api-version=2018-03-01.6.1') .reply(204, "", { 'content-length': '0', - 'last-modified': 'Mon, 02 Oct 2017 21:46:07 GMT', - etag: '0x8D509DEFCCC7BC4', + 'last-modified': 'Fri, 09 Mar 2018 22:59:25 GMT', + etag: '0x8D5861167B943DE', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '6a42ea6b-7ecc-4aab-a2bf-25ee728abf3d', + 'request-id': '1d457fec-4675-4dc6-aa30-011251b121b7', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask/terminate', - date: 'Mon, 02 Oct 2017 21:46:06 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask/terminate', + date: 'Fri, 09 Mar 2018 22:59:25 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_update_a_job_schedule_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_update_a_job_schedule_successfully.nock.js index 544af5abee..58e47d0976 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_update_a_job_schedule_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_update_a_job_schedule_successfully.nock.js @@ -1,42 +1,42 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.put('/jobschedules/NodeSDKTestSchedule?api-version=2017-09-01.6.0', '*') +.put('/jobschedules/NodeSDKTestSchedule?api-version=2018-03-01.6.1', '*') .reply(200, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:52:02 GMT', - etag: '0x8D509DFD0A68534', + 'last-modified': 'Fri, 09 Mar 2018 23:25:25 GMT', + etag: '0x8D586150964E4E5', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '901bd2e8-6d86-4f1a-acfb-f3f48ba4f7e4', + 'request-id': 'e9915edd-2f4f-4871-b14a-5a8132dd612f', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobschedules/NodeSDKTestSchedule', - date: 'Mon, 02 Oct 2017 21:52:01 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobschedules/NodeSDKTestSchedule', + date: 'Fri, 09 Mar 2018 23:25:25 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.put('/jobschedules/NodeSDKTestSchedule?api-version=2017-09-01.6.0', '*') +.put('/jobschedules/NodeSDKTestSchedule?api-version=2018-03-01.6.1', '*') .reply(200, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:52:02 GMT', - etag: '0x8D509DFD0A68534', + 'last-modified': 'Fri, 09 Mar 2018 23:25:25 GMT', + etag: '0x8D586150964E4E5', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '901bd2e8-6d86-4f1a-acfb-f3f48ba4f7e4', + 'request-id': 'e9915edd-2f4f-4871-b14a-5a8132dd612f', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobschedules/NodeSDKTestSchedule', - date: 'Mon, 02 Oct 2017 21:52:01 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobschedules/NodeSDKTestSchedule', + date: 'Fri, 09 Mar 2018 23:25:25 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_update_a_job_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_update_a_job_successfully.nock.js index d4b52c853c..3c12711a7e 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_update_a_job_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_update_a_job_successfully.nock.js @@ -1,42 +1,42 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.put('/jobs/HelloWorldJobNodeSDKTest?api-version=2017-09-01.6.0', '*') +.put('/jobs/HelloWorldJobNodeSDKTest?api-version=2018-03-01.6.1', '*') .reply(200, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:46:01 GMT', - etag: '0x8D509DEF93D9467', + 'last-modified': 'Fri, 09 Mar 2018 22:59:23 GMT', + etag: '0x8D58611667C6BD6', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '361ed626-aee1-4d58-b5ec-41eec5de336f', + 'request-id': '420f988b-32ca-4ab0-a692-a51e5a6616b4', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest', - date: 'Mon, 02 Oct 2017 21:46:00 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest', + date: 'Fri, 09 Mar 2018 22:59:23 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.put('/jobs/HelloWorldJobNodeSDKTest?api-version=2017-09-01.6.0', '*') +.put('/jobs/HelloWorldJobNodeSDKTest?api-version=2018-03-01.6.1', '*') .reply(200, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:46:01 GMT', - etag: '0x8D509DEF93D9467', + 'last-modified': 'Fri, 09 Mar 2018 22:59:23 GMT', + etag: '0x8D58611667C6BD6', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '361ed626-aee1-4d58-b5ec-41eec5de336f', + 'request-id': '420f988b-32ca-4ab0-a692-a51e5a6616b4', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest', - date: 'Mon, 02 Oct 2017 21:46:00 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest', + date: 'Fri, 09 Mar 2018 22:59:23 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_update_a_task_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_update_a_task_successfully.nock.js index 3e60e069d3..e979f2d129 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_update_a_task_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_update_a_task_successfully.nock.js @@ -1,42 +1,42 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.put('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2?api-version=2017-09-01.6.0', '*') +.put('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2?api-version=2018-03-01.6.1', '*') .reply(200, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:46:08 GMT', - etag: '0x8D509DEFDB59B4B', + 'last-modified': 'Fri, 09 Mar 2018 22:59:26 GMT', + etag: '0x8D586116815EE04', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '9c9f76a9-c2d1-4fed-a6f5-6ae4b048f891', + 'request-id': 'fa7427f2-93e3-4954-bfc6-b3e120ab1c68', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2', - date: 'Mon, 02 Oct 2017 21:46:08 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2', + date: 'Fri, 09 Mar 2018 22:59:26 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.put('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2?api-version=2017-09-01.6.0', '*') +.put('/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2?api-version=2018-03-01.6.1', '*') .reply(200, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:46:08 GMT', - etag: '0x8D509DEFDB59B4B', + 'last-modified': 'Fri, 09 Mar 2018 22:59:26 GMT', + etag: '0x8D586116815EE04', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '9c9f76a9-c2d1-4fed-a6f5-6ae4b048f891', + 'request-id': 'fa7427f2-93e3-4954-bfc6-b3e120ab1c68', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2', - date: 'Mon, 02 Oct 2017 21:46:08 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest/tasks/HelloWorldNodeSDKTestTask2', + date: 'Fri, 09 Mar 2018 22:59:26 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_update_pool_parameters_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_update_pool_parameters_successfully.nock.js index 72fb340b82..0c5a0eaf78 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_update_pool_parameters_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_update_pool_parameters_successfully.nock.js @@ -1,42 +1,42 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools/nodesdktestpool1/updateproperties?api-version=2017-09-01.6.0', '*') +.post('/pools/nodesdktestpool1/updateproperties?api-version=2018-03-01.6.1', '*') .reply(204, "", { 'content-length': '0', - 'last-modified': 'Mon, 02 Oct 2017 21:32:18 GMT', - etag: '0x8D509DD0ED8D161', + 'last-modified': 'Fri, 09 Mar 2018 22:45:45 GMT', + etag: '0x8D5860F7ED3D9B1', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '1530407e-5427-4242-8997-41e8e8e7a665', + 'request-id': '211ded10-1a26-4e42-9005-a865280c4de1', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/updateproperties', - date: 'Mon, 02 Oct 2017 21:32:18 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/updateproperties', + date: 'Fri, 09 Mar 2018 22:45:44 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools/nodesdktestpool1/updateproperties?api-version=2017-09-01.6.0', '*') +.post('/pools/nodesdktestpool1/updateproperties?api-version=2018-03-01.6.1', '*') .reply(204, "", { 'content-length': '0', - 'last-modified': 'Mon, 02 Oct 2017 21:32:18 GMT', - etag: '0x8D509DD0ED8D161', + 'last-modified': 'Fri, 09 Mar 2018 22:45:45 GMT', + etag: '0x8D5860F7ED3D9B1', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': '1530407e-5427-4242-8997-41e8e8e7a665', + 'request-id': '211ded10-1a26-4e42-9005-a865280c4de1', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool1/updateproperties', - date: 'Mon, 02 Oct 2017 21:32:18 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool1/updateproperties', + date: 'Fri, 09 Mar 2018 22:45:44 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/Batch_Service_operations_should_update_pool_target_OS_version_successfully.nock.js b/test/recordings/batchservice-tests/Batch_Service_operations_should_update_pool_target_OS_version_successfully.nock.js index 8ed43b2a0d..2d95f87963 100644 --- a/test/recordings/batchservice-tests/Batch_Service_operations_should_update_pool_target_OS_version_successfully.nock.js +++ b/test/recordings/batchservice-tests/Batch_Service_operations_should_update_pool_target_OS_version_successfully.nock.js @@ -1,42 +1,42 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = [[function (nock) { var result = -nock('http://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('http://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools/nodesdktestpool2/upgradeos?api-version=2017-09-01.6.0', '*') +.post('/pools/nodesdktestpool2/upgradeos?api-version=2018-03-01.6.1', '*') .reply(202, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:45:54 GMT', - etag: '0x8D509DEF58C26AB', + 'last-modified': 'Fri, 09 Mar 2018 22:59:21 GMT', + etag: '0x8D5861165073065', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'c5bab3b9-1001-44b0-a3f2-1ab898f49e1f', + 'request-id': '2c5bf2a6-4814-4833-a671-c8370a9f2c65', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool2/upgradeos', - date: 'Mon, 02 Oct 2017 21:45:55 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool2/upgradeos', + date: 'Fri, 09 Mar 2018 22:59:21 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://batchtestnodesdk.japaneast.batch.azure.com:443') +nock('https://lchency4.westcentralus.batch.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.post('/pools/nodesdktestpool2/upgradeos?api-version=2017-09-01.6.0', '*') +.post('/pools/nodesdktestpool2/upgradeos?api-version=2018-03-01.6.1', '*') .reply(202, "", { 'transfer-encoding': 'chunked', - 'last-modified': 'Mon, 02 Oct 2017 21:45:54 GMT', - etag: '0x8D509DEF58C26AB', + 'last-modified': 'Fri, 09 Mar 2018 22:59:21 GMT', + etag: '0x8D5861165073065', server: 'Microsoft-HTTPAPI/2.0', - 'request-id': 'c5bab3b9-1001-44b0-a3f2-1ab898f49e1f', + 'request-id': '2c5bf2a6-4814-4833-a671-c8370a9f2c65', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', dataserviceversion: '3.0', - dataserviceid: 'https://batchtestnodesdk.japaneast.batch.azure.com/pools/nodesdktestpool2/upgradeos', - date: 'Mon, 02 Oct 2017 21:45:55 GMT', + dataserviceid: 'https://lchency4.westcentralus.batch.azure.com/pools/nodesdktestpool2/upgradeos', + date: 'Fri, 09 Mar 2018 22:59:21 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/batchservice-tests/suite.batchservice-tests.nock.js b/test/recordings/batchservice-tests/suite.batchservice-tests.nock.js index dc0db6da44..0195cdfacc 100644 --- a/test/recordings/batchservice-tests/suite.batchservice-tests.nock.js +++ b/test/recordings/batchservice-tests/suite.batchservice-tests.nock.js @@ -1,9 +1,9 @@ // This file has been autogenerated. exports.setEnvironment = function() { - process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; - process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com'; - process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000'; + process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4'; + process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com'; + process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05'; }; exports.scopes = []; diff --git a/test/services/batch/batchClient-tests.js b/test/services/batch/batchClient-tests.js index 3d2a8df8a8..e293aff834 100644 --- a/test/services/batch/batchClient-tests.js +++ b/test/services/batch/batchClient-tests.js @@ -463,6 +463,19 @@ describe('Batch Service', function () { }); }); + it('should get pool node counts successfully', function (done) { + client.account.listPoolNodeCounts( function (err, result, request, response) { + should.not.exist(err); + should.exist(result); + result.length.should.equal(1); + result[0].poolId.should.equal('nodesdkinboundendpointpool'); + result[0].dedicated.idle.should.equal(1); + result[0].lowPriority.total.should.equal(0); + response.statusCode.should.equal(200); + done(); + }); + }); + it('should list compute nodes successfully', function (done) { client.computeNodeOperations.list('nodesdktestpool1', function (err, result, request, response) { should.not.exist(err); @@ -567,6 +580,18 @@ describe('Batch Service', function () { }); }); + it('should fail to upload pool node logs at paas pool', function (done) { + container = 'https://teststorage.blob.core.windows.net/fakecontainer' + var config = { containerUrl: container, startTime: '2018-02-25T00:00:00.00' } + client.computeNodeOperations.uploadBatchServiceLogs('nodesdktestpool1', compute_nodes[1], config, function (err, result, request, response) { + should.exist(err); + should.not.exist(result); + err.statusCode.should.equal(403); + err.body.code.should.equal('TVMCurrentOperationUnsupported'); + done(); + }); + }); + it('should enable autoscale successfully', function (done) { var options = { autoScaleFormula: '$TargetDedicatedNodes=2', autoScaleEvaluationInterval: moment.duration({ minutes: 6 }) }; @@ -1262,7 +1287,7 @@ describe('Batch Service', function () { it('should create a job schdule successfully', function (done) { var options = { id: 'NodeSDKTestSchedule', jobSpecification: { id: 'HelloWorldJobNodeSDKTest', poolInfo: { poolId: 'nodesdktestpool1' } }, - schedule: { doNotRunUntil: "2017-12-25T00:00:00.00", startWindow: moment.duration({ minutes: 6 }) } + schedule: { doNotRunUntil: "2018-04-25T00:00:00.00", startWindow: moment.duration({ minutes: 6 }) } }; var requestModelMapper = new client.models['JobScheduleAddParameter']().mapper();