Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/services/batch/lib/batchServiceClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
96 changes: 96 additions & 0 deletions lib/services/batch/lib/models/accountListPoolNodeCountsOptions.js
Original file line number Diff line number Diff line change
@@ -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;
46 changes: 17 additions & 29 deletions lib/services/batch/lib/models/autoPoolSpecification.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
14 changes: 4 additions & 10 deletions lib/services/batch/lib/models/autoUserSpecification.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
}
Expand Down
12 changes: 3 additions & 9 deletions lib/services/batch/lib/models/certificateReference.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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() {
}
Expand Down
Loading