Merge pull request #5145 from xingwu1/master
Update Batch data/management plane to new version 2020-03-01
This commit is contained in:
Коммит
38d405e4f7
|
@ -1,6 +1,6 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2019 Microsoft
|
||||
Copyright (c) 2020 Microsoft
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
|
|
@ -49,7 +49,7 @@ class BatchServiceClient extends ServiceClient {
|
|||
|
||||
super(credentials, options);
|
||||
|
||||
this.apiVersion = '2019-08-01.10.0';
|
||||
this.apiVersion = '2020-03-01.11.0';
|
||||
this.acceptLanguage = 'en-US';
|
||||
this.longRunningOperationRetryTimeout = 30;
|
||||
this.generateClientRequestId = true;
|
||||
|
|
|
@ -82,10 +82,10 @@ class AutoPoolSpecification {
|
|||
* [pool.virtualMachineConfiguration.imageReference.virtualMachineImageId]
|
||||
* This property is mutually exclusive with other ImageReference properties.
|
||||
* For Virtual Machine Image it must be in the same region and subscription
|
||||
* as the Azure Batch account. For SIG image it must have replicas in the
|
||||
* same region as the Azure Batch account. For information about the firewall
|
||||
* settings for the Batch Compute Node agent to communicate with the Batch
|
||||
* service see
|
||||
* as the Azure Batch account. The Shared Image Gallery Image must have
|
||||
* replicas in the same region as the Azure Batch account. For information
|
||||
* about the firewall settings for the Batch Compute 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.
|
||||
* @property {string} [pool.virtualMachineConfiguration.nodeAgentSKUId] The
|
||||
* Batch Compute Node agent is a program that runs on each Compute Node in
|
||||
|
@ -136,6 +136,15 @@ class AutoPoolSpecification {
|
|||
* [pool.virtualMachineConfiguration.containerConfiguration.containerRegistries]
|
||||
* If any Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
* @property {object}
|
||||
* [pool.virtualMachineConfiguration.diskEncryptionConfiguration] If
|
||||
* specified, encryption is performed on each node in the pool during node
|
||||
* provisioning.
|
||||
* @property {array}
|
||||
* [pool.virtualMachineConfiguration.diskEncryptionConfiguration.targets] If
|
||||
* omitted, no disks on the compute nodes in the pool will be encrypted. On
|
||||
* Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk"
|
||||
* and "TemporaryDisk" must be specified.
|
||||
* @property {number} [pool.maxTasksPerNode] The default value is 1. The
|
||||
* maximum value is the smaller of 4 times the number of cores of the vmSize
|
||||
* of the Pool or 256.
|
||||
|
@ -182,7 +191,7 @@ class AutoPoolSpecification {
|
|||
* network must be in the same region and subscription as the Azure Batch
|
||||
* Account. The specified subnet should have enough free IP addresses to
|
||||
* accommodate the number of Compute Nodes in the Pool. If the subnet doesn't
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes, and
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes and
|
||||
* a resize error will occur. The 'MicrosoftAzureBatch' service principal
|
||||
* must have the 'Classic Virtual Machine Contributor' Role-Based Access
|
||||
* Control (RBAC) role for the specified VNet. The specified subnet must
|
||||
|
@ -212,11 +221,20 @@ class AutoPoolSpecification {
|
|||
* maximum number of inbound NAT Pools per Batch Pool is 5. If the maximum
|
||||
* number of inbound NAT Pools is exceeded the request fails with HTTP status
|
||||
* code 400.
|
||||
* @property {array} [pool.networkConfiguration.publicIPs] The number of IPs
|
||||
* specified here limits the maximum size of the Pool - 50 dedicated nodes or
|
||||
* 20 low-priority nodes can be allocated for each public IP. For example, a
|
||||
* pool needing 150 dedicated VMs would need at least 3 public IPs specified.
|
||||
* Each element of this collection is of the form:
|
||||
* @property {object}
|
||||
* [pool.networkConfiguration.publicIPAddressConfiguration] Public IP
|
||||
* configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
* @property {string}
|
||||
* [pool.networkConfiguration.publicIPAddressConfiguration.provision] The
|
||||
* default value is BatchManaged. Possible values include: 'batchManaged',
|
||||
* 'userManaged', 'noPublicIPAddresses'
|
||||
* @property {array}
|
||||
* [pool.networkConfiguration.publicIPAddressConfiguration.ipAddressIds] The
|
||||
* number of IPs specified here limits the maximum size of the Pool - 50
|
||||
* dedicated nodes or 20 low-priority nodes can be allocated for each public
|
||||
* IP. For example, a pool needing 150 dedicated VMs would need at least 3
|
||||
* public IPs specified. Each element of this collection is of the form:
|
||||
* /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}.
|
||||
* @property {object} [pool.startTask]
|
||||
* @property {string} [pool.startTask.commandLine] The command line does not
|
||||
|
|
|
@ -28,8 +28,7 @@ class CertificateAddParameter {
|
|||
* @property {string} [certificateFormat] The format of the Certificate data.
|
||||
* Possible values include: 'pfx', 'cer'
|
||||
* @property {string} [password] The password to access the Certificate's
|
||||
* private key. This is required if the Certificate format is pfx. It should
|
||||
* be omitted if the Certificate format is cer.
|
||||
* private key. This must be omitted if the Certificate format is cer.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
|
|
@ -459,10 +459,10 @@ class CloudJob {
|
|||
* [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.imageReference.virtualMachineImageId]
|
||||
* This property is mutually exclusive with other ImageReference properties.
|
||||
* For Virtual Machine Image it must be in the same region and subscription
|
||||
* as the Azure Batch account. For SIG image it must have replicas in the
|
||||
* same region as the Azure Batch account. For information about the firewall
|
||||
* settings for the Batch Compute Node agent to communicate with the Batch
|
||||
* service see
|
||||
* as the Azure Batch account. The Shared Image Gallery Image must have
|
||||
* replicas in the same region as the Azure Batch account. For information
|
||||
* about the firewall settings for the Batch Compute 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.
|
||||
* @property {string}
|
||||
* [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.nodeAgentSKUId]
|
||||
|
@ -517,6 +517,15 @@ class CloudJob {
|
|||
* [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.containerConfiguration.containerRegistries]
|
||||
* If any Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
* @property {object}
|
||||
* [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration]
|
||||
* If specified, encryption is performed on each node in the pool during node
|
||||
* provisioning.
|
||||
* @property {array}
|
||||
* [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration.targets]
|
||||
* If omitted, no disks on the compute nodes in the pool will be encrypted.
|
||||
* On Linux pool, only "TemporaryDisk" is supported; on Windows pool,
|
||||
* "OsDisk" and "TemporaryDisk" must be specified.
|
||||
* @property {number} [poolInfo.autoPoolSpecification.pool.maxTasksPerNode]
|
||||
* The default value is 1. The maximum value is the smaller of 4 times the
|
||||
* number of cores of the vmSize of the Pool or 256.
|
||||
|
@ -575,7 +584,7 @@ class CloudJob {
|
|||
* Batch Account. The specified subnet should have enough free IP addresses
|
||||
* to accommodate the number of Compute Nodes in the Pool. If the subnet
|
||||
* doesn't have enough free IP addresses, the Pool will partially allocate
|
||||
* Nodes, and a resize error will occur. The 'MicrosoftAzureBatch' service
|
||||
* Nodes and a resize error will occur. The 'MicrosoftAzureBatch' service
|
||||
* principal must have the 'Classic Virtual Machine Contributor' Role-Based
|
||||
* Access Control (RBAC) role for the specified VNet. The specified subnet
|
||||
* must allow communication from the Azure Batch service to be able to
|
||||
|
@ -606,9 +615,17 @@ class CloudJob {
|
|||
* The maximum number of inbound NAT Pools per Batch Pool is 5. If the
|
||||
* maximum number of inbound NAT Pools is exceeded the request fails with
|
||||
* HTTP status code 400.
|
||||
* @property {object}
|
||||
* [poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration]
|
||||
* Public IP configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
* @property {string}
|
||||
* [poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.provision]
|
||||
* The default value is BatchManaged. Possible values include:
|
||||
* 'batchManaged', 'userManaged', 'noPublicIPAddresses'
|
||||
* @property {array}
|
||||
* [poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPs] The
|
||||
* number of IPs specified here limits the maximum size of the Pool - 50
|
||||
* [poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.ipAddressIds]
|
||||
* The number of IPs specified here limits the maximum size of the Pool - 50
|
||||
* dedicated nodes or 20 low-priority nodes can be allocated for each public
|
||||
* IP. For example, a pool needing 150 dedicated VMs would need at least 3
|
||||
* public IPs specified. Each element of this collection is of the form:
|
||||
|
|
|
@ -580,10 +580,10 @@ class CloudJobSchedule {
|
|||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.imageReference.virtualMachineImageId]
|
||||
* This property is mutually exclusive with other ImageReference properties.
|
||||
* For Virtual Machine Image it must be in the same region and subscription
|
||||
* as the Azure Batch account. For SIG image it must have replicas in the
|
||||
* same region as the Azure Batch account. For information about the firewall
|
||||
* settings for the Batch Compute Node agent to communicate with the Batch
|
||||
* service see
|
||||
* as the Azure Batch account. The Shared Image Gallery Image must have
|
||||
* replicas in the same region as the Azure Batch account. For information
|
||||
* about the firewall settings for the Batch Compute 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.
|
||||
* @property {string}
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.nodeAgentSKUId]
|
||||
|
@ -638,6 +638,15 @@ class CloudJobSchedule {
|
|||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.containerConfiguration.containerRegistries]
|
||||
* If any Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
* @property {object}
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration]
|
||||
* If specified, encryption is performed on each node in the pool during node
|
||||
* provisioning.
|
||||
* @property {array}
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration.targets]
|
||||
* If omitted, no disks on the compute nodes in the pool will be encrypted.
|
||||
* On Linux pool, only "TemporaryDisk" is supported; on Windows pool,
|
||||
* "OsDisk" and "TemporaryDisk" must be specified.
|
||||
* @property {number}
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.maxTasksPerNode] The
|
||||
* default value is 1. The maximum value is the smaller of 4 times the number
|
||||
|
@ -699,7 +708,7 @@ class CloudJobSchedule {
|
|||
* Azure Batch Account. The specified subnet should have enough free IP
|
||||
* addresses to accommodate the number of Compute Nodes in the Pool. If the
|
||||
* subnet doesn't have enough free IP addresses, the Pool will partially
|
||||
* allocate Nodes, and a resize error will occur. The 'MicrosoftAzureBatch'
|
||||
* allocate Nodes and a resize error will occur. The 'MicrosoftAzureBatch'
|
||||
* service principal must have the 'Classic Virtual Machine Contributor'
|
||||
* Role-Based Access Control (RBAC) role for the specified VNet. The
|
||||
* specified subnet must allow communication from the Azure Batch service to
|
||||
|
@ -730,8 +739,16 @@ class CloudJobSchedule {
|
|||
* The maximum number of inbound NAT Pools per Batch Pool is 5. If the
|
||||
* maximum number of inbound NAT Pools is exceeded the request fails with
|
||||
* HTTP status code 400.
|
||||
* @property {object}
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration]
|
||||
* Public IP configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
* @property {string}
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.provision]
|
||||
* The default value is BatchManaged. Possible values include:
|
||||
* 'batchManaged', 'userManaged', 'noPublicIPAddresses'
|
||||
* @property {array}
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPs]
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.ipAddressIds]
|
||||
* The number of IPs specified here limits the maximum size of the Pool - 50
|
||||
* dedicated nodes or 20 low-priority nodes can be allocated for each public
|
||||
* IP. For example, a pool needing 150 dedicated VMs would need at least 3
|
||||
|
|
|
@ -83,10 +83,10 @@ class CloudPool {
|
|||
* [virtualMachineConfiguration.imageReference.virtualMachineImageId] This
|
||||
* property is mutually exclusive with other ImageReference properties. For
|
||||
* Virtual Machine Image it must be in the same region and subscription as
|
||||
* the Azure Batch account. For SIG image it must have replicas in the same
|
||||
* region as the Azure Batch account. For information about the firewall
|
||||
* settings for the Batch Compute Node agent to communicate with the Batch
|
||||
* service see
|
||||
* the Azure Batch account. The Shared Image Gallery Image must have replicas
|
||||
* in the same region as the Azure Batch account. For information about the
|
||||
* firewall settings for the Batch Compute 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.
|
||||
* @property {string} [virtualMachineConfiguration.nodeAgentSKUId] The Batch
|
||||
* Compute Node agent is a program that runs on each Compute Node in the
|
||||
|
@ -136,6 +136,14 @@ class CloudPool {
|
|||
* [virtualMachineConfiguration.containerConfiguration.containerRegistries]
|
||||
* If any Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
* @property {object}
|
||||
* [virtualMachineConfiguration.diskEncryptionConfiguration] If specified,
|
||||
* encryption is performed on each node in the pool during node provisioning.
|
||||
* @property {array}
|
||||
* [virtualMachineConfiguration.diskEncryptionConfiguration.targets] If
|
||||
* omitted, no disks on the compute nodes in the pool will be encrypted. On
|
||||
* Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk"
|
||||
* and "TemporaryDisk" must be specified.
|
||||
* @property {moment.duration} [resizeTimeout] The timeout for allocation of
|
||||
* Compute Nodes to the Pool. This is the timeout for the most recent resize
|
||||
* operation. (The initial sizing when the Pool is created counts as a
|
||||
|
@ -186,7 +194,7 @@ class CloudPool {
|
|||
* must be in the same region and subscription as the Azure Batch Account.
|
||||
* The specified subnet should have enough free IP addresses to accommodate
|
||||
* the number of Compute Nodes in the Pool. If the subnet doesn't have enough
|
||||
* free IP addresses, the Pool will partially allocate Nodes, and a resize
|
||||
* free IP addresses, the Pool will partially allocate Nodes and a resize
|
||||
* error will occur. The 'MicrosoftAzureBatch' service principal must have
|
||||
* the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC)
|
||||
* role for the specified VNet. The specified subnet must allow communication
|
||||
|
@ -215,11 +223,19 @@ class CloudPool {
|
|||
* [networkConfiguration.endpointConfiguration.inboundNATPools] The maximum
|
||||
* number of inbound NAT Pools per Batch Pool is 5. If the maximum number of
|
||||
* inbound NAT Pools is exceeded the request fails with HTTP status code 400.
|
||||
* @property {array} [networkConfiguration.publicIPs] The number of IPs
|
||||
* specified here limits the maximum size of the Pool - 50 dedicated nodes or
|
||||
* 20 low-priority nodes can be allocated for each public IP. For example, a
|
||||
* pool needing 150 dedicated VMs would need at least 3 public IPs specified.
|
||||
* Each element of this collection is of the form:
|
||||
* @property {object} [networkConfiguration.publicIPAddressConfiguration]
|
||||
* Public IP configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
* @property {string}
|
||||
* [networkConfiguration.publicIPAddressConfiguration.provision] The default
|
||||
* value is BatchManaged. Possible values include: 'batchManaged',
|
||||
* 'userManaged', 'noPublicIPAddresses'
|
||||
* @property {array}
|
||||
* [networkConfiguration.publicIPAddressConfiguration.ipAddressIds] The
|
||||
* number of IPs specified here limits the maximum size of the Pool - 50
|
||||
* dedicated nodes or 20 low-priority nodes can be allocated for each public
|
||||
* IP. For example, a pool needing 150 dedicated VMs would need at least 3
|
||||
* public IPs specified. Each element of this collection is of the form:
|
||||
* /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}.
|
||||
* @property {object} [startTask] A Task specified to run on each Compute
|
||||
* Node as it joins the Pool.
|
||||
|
|
|
@ -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';
|
||||
|
||||
/**
|
||||
* The disk encryption configuration applied on compute nodes in the pool. Disk
|
||||
* encryption configuration is not supported on Linux pool created with Shared
|
||||
* Image Gallery Image.
|
||||
*
|
||||
*/
|
||||
class DiskEncryptionConfiguration {
|
||||
/**
|
||||
* Create a DiskEncryptionConfiguration.
|
||||
* @property {array} [targets] The list of disk targets Batch Service will
|
||||
* encrypt on the compute node. If omitted, no disks on the compute nodes in
|
||||
* the pool will be encrypted. On Linux pool, only "TemporaryDisk" is
|
||||
* supported; on Windows pool, "OsDisk" and "TemporaryDisk" must be
|
||||
* specified.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DiskEncryptionConfiguration
|
||||
*
|
||||
* @returns {object} metadata of DiskEncryptionConfiguration
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DiskEncryptionConfiguration',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DiskEncryptionConfiguration',
|
||||
modelProperties: {
|
||||
targets: {
|
||||
required: false,
|
||||
serializedName: 'targets',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'DiskEncryptionTargetElementType',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'OsDisk', 'TemporaryDisk' ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DiskEncryptionConfiguration;
|
|
@ -34,9 +34,10 @@ class ImageInformation {
|
|||
* @property {string} [imageReference.virtualMachineImageId] This property is
|
||||
* mutually exclusive with other ImageReference properties. For Virtual
|
||||
* Machine Image it must be in the same region and subscription as the Azure
|
||||
* Batch account. For SIG image it must have replicas in the same region as
|
||||
* the Azure Batch account. For information about the firewall settings for
|
||||
* the Batch Compute Node agent to communicate with the Batch service see
|
||||
* Batch account. The Shared Image Gallery Image must have replicas in the
|
||||
* same region as the Azure Batch account. For information about the firewall
|
||||
* settings for the Batch Compute 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.
|
||||
* @property {string} osType The type of operating system (e.g. Windows or
|
||||
* Linux) of the Image. Possible values include: 'linux', 'windows'
|
||||
|
|
|
@ -30,18 +30,15 @@ class ImageReference {
|
|||
* Marketplace Image. A value of 'latest' can be specified to select the
|
||||
* latest version of an Image. If omitted, the default is 'latest'.
|
||||
* @property {string} [virtualMachineImageId] The ARM resource identifier of
|
||||
* the Virtual Machine Image or Shared Image Gallery Image. Computes Compute
|
||||
* Nodes of the Pool will be created using this Image Id. This is of either
|
||||
* the form
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
|
||||
* for Virtual Machine Image or
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}
|
||||
* for SIG image. This property is mutually exclusive with other
|
||||
* ImageReference properties. For Virtual Machine Image it must be in the
|
||||
* same region and subscription as the Azure Batch account. For SIG image it
|
||||
* must have replicas in the same region as the Azure Batch account. For
|
||||
* information about the firewall settings for the Batch Compute Node agent
|
||||
* to communicate with the Batch service see
|
||||
* the Shared Image Gallery Image. Compute Nodes in the Pool will be created
|
||||
* using this Image Id. This is of the
|
||||
* form/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}.
|
||||
* This property is mutually exclusive with other ImageReference properties.
|
||||
* For Virtual Machine Image it must be in the same region and subscription
|
||||
* as the Azure Batch account. The Shared Image Gallery Image must have
|
||||
* replicas in the same region as the Azure Batch account. For information
|
||||
* about the firewall settings for the Batch Compute 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.
|
||||
*/
|
||||
constructor() {
|
||||
|
|
|
@ -72,18 +72,14 @@ export interface ImageReference {
|
|||
*/
|
||||
version?: string;
|
||||
/**
|
||||
* @summary The ARM resource identifier of the Virtual Machine Image or Shared Image Gallery
|
||||
* Image. Computes Compute Nodes of the Pool will be created using this Image Id. This is of
|
||||
* either the form
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
|
||||
* for Virtual Machine Image or
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}
|
||||
* for SIG image.
|
||||
* @summary The ARM resource identifier of the Shared Image Gallery Image. Compute Nodes in the
|
||||
* Pool will be created using this Image Id. This is of the
|
||||
* form/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}.
|
||||
* @description This property is mutually exclusive with other ImageReference properties. For
|
||||
* Virtual Machine Image it must be in the same region and subscription as the Azure Batch
|
||||
* account. For SIG image it must have replicas in the same region as the Azure Batch account.
|
||||
* For information about the firewall settings for the Batch Compute Node agent to communicate
|
||||
* with the Batch service see
|
||||
* account. The Shared Image Gallery Image must have replicas in the same region as the Azure
|
||||
* Batch account. For information about the firewall settings for the Batch Compute 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.
|
||||
*/
|
||||
virtualMachineImageId?: string;
|
||||
|
@ -473,8 +469,7 @@ export interface CertificateAddParameter {
|
|||
certificateFormat?: string;
|
||||
/**
|
||||
* @summary The password to access the Certificate's private key.
|
||||
* @description This is required if the Certificate format is pfx. It should be omitted if the
|
||||
* Certificate format is cer.
|
||||
* @description This must be omitted if the Certificate format is cer.
|
||||
*/
|
||||
password?: string;
|
||||
}
|
||||
|
@ -1629,6 +1624,20 @@ export interface ContainerConfiguration {
|
|||
containerRegistries?: ContainerRegistry[];
|
||||
}
|
||||
|
||||
/**
|
||||
* The disk encryption configuration applied on compute nodes in the pool. Disk encryption
|
||||
* configuration is not supported on Linux pool created with Shared Image Gallery Image.
|
||||
*/
|
||||
export interface DiskEncryptionConfiguration {
|
||||
/**
|
||||
* @summary The list of disk targets Batch Service will encrypt on the compute node.
|
||||
* @description If omitted, no disks on the compute nodes in the pool will be encrypted. On Linux
|
||||
* pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and "TemporaryDisk" must be
|
||||
* specified.
|
||||
*/
|
||||
targets?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary The configuration for Compute Nodes in a Pool based on the Azure Virtual Machines
|
||||
* infrastructure.
|
||||
|
@ -1688,6 +1697,12 @@ export interface VirtualMachineConfiguration {
|
|||
* the containerSettings property, and all other Tasks may specify it.
|
||||
*/
|
||||
containerConfiguration?: ContainerConfiguration;
|
||||
/**
|
||||
* @summary The disk encryption configuration for the pool.
|
||||
* @description If specified, encryption is performed on each node in the pool during node
|
||||
* provisioning.
|
||||
*/
|
||||
diskEncryptionConfiguration?: DiskEncryptionConfiguration;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1699,7 +1714,7 @@ export interface NetworkSecurityGroupRule {
|
|||
* @description Priorities within a Pool must be unique and are evaluated in order of priority.
|
||||
* The lower the number the higher the priority. For example, rules could be specified with order
|
||||
* numbers of 150, 250, and 350. The rule with the order number of 150 takes precedence over the
|
||||
* rule that has an order of 250. Allowed priorities are 150 to 3500. If any reserved or
|
||||
* rule that has an order of 250. Allowed priorities are 150 to 4096. If any reserved or
|
||||
* duplicate values are provided the request fails with HTTP status code 400.
|
||||
*/
|
||||
priority: number;
|
||||
|
@ -1792,6 +1807,28 @@ export interface PoolEndpointConfiguration {
|
|||
inboundNATPools: InboundNATPool[];
|
||||
}
|
||||
|
||||
/**
|
||||
* The public IP Address configuration of the networking configuration of a Pool.
|
||||
*/
|
||||
export interface PublicIPAddressConfiguration {
|
||||
/**
|
||||
* @summary The provisioning type for Public IP Addresses for the Pool.
|
||||
* @description The default value is BatchManaged. Possible values include: 'batchManaged',
|
||||
* 'userManaged', 'noPublicIPAddresses'
|
||||
*/
|
||||
provision?: string;
|
||||
/**
|
||||
* @summary The list of public IPs which the Batch service will use when provisioning Compute
|
||||
* Nodes.
|
||||
* @description The number of IPs specified here limits the maximum size of the Pool - 50
|
||||
* dedicated nodes or 20 low-priority nodes can be allocated for each public IP. For example, a
|
||||
* pool needing 150 dedicated VMs would need at least 3 public IPs specified. Each element of
|
||||
* this collection is of the form:
|
||||
* /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}.
|
||||
*/
|
||||
ipAddressIds?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
* The network configuration for a Pool.
|
||||
*/
|
||||
|
@ -1803,7 +1840,7 @@ export interface NetworkConfiguration {
|
|||
* @description The virtual network must be in the same region and subscription as the Azure
|
||||
* Batch Account. The specified subnet should have enough free IP addresses to accommodate the
|
||||
* number of Compute Nodes in the Pool. If the subnet doesn't have enough free IP addresses, the
|
||||
* Pool will partially allocate Nodes, and a resize error will occur. The 'MicrosoftAzureBatch'
|
||||
* Pool will partially allocate Nodes and a resize error will occur. The 'MicrosoftAzureBatch'
|
||||
* service principal must have the 'Classic Virtual Machine Contributor' Role-Based Access
|
||||
* Control (RBAC) role for the specified VNet. The specified subnet must allow communication from
|
||||
* the Azure Batch service to be able to schedule Tasks on the Nodes. This can be verified by
|
||||
|
@ -1833,15 +1870,11 @@ export interface NetworkConfiguration {
|
|||
*/
|
||||
endpointConfiguration?: PoolEndpointConfiguration;
|
||||
/**
|
||||
* @summary The list of public IPs which the Batch service will use when provisioning Compute
|
||||
* Nodes.
|
||||
* @description The number of IPs specified here limits the maximum size of the Pool - 50
|
||||
* dedicated nodes or 20 low-priority nodes can be allocated for each public IP. For example, a
|
||||
* pool needing 150 dedicated VMs would need at least 3 public IPs specified. Each element of
|
||||
* this collection is of the form:
|
||||
* /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}.
|
||||
* @summary The Public IPAddress configuration for Compute Nodes in the Batch Pool.
|
||||
* @description Public IP configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
*/
|
||||
publicIPs?: string[];
|
||||
publicIPAddressConfiguration?: PublicIPAddressConfiguration;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -66,10 +66,12 @@ exports.CloudServiceConfiguration = require('./cloudServiceConfiguration');
|
|||
exports.WindowsConfiguration = require('./windowsConfiguration');
|
||||
exports.DataDisk = require('./dataDisk');
|
||||
exports.ContainerConfiguration = require('./containerConfiguration');
|
||||
exports.DiskEncryptionConfiguration = require('./diskEncryptionConfiguration');
|
||||
exports.VirtualMachineConfiguration = require('./virtualMachineConfiguration');
|
||||
exports.NetworkSecurityGroupRule = require('./networkSecurityGroupRule');
|
||||
exports.InboundNATPool = require('./inboundNATPool');
|
||||
exports.PoolEndpointConfiguration = require('./poolEndpointConfiguration');
|
||||
exports.PublicIPAddressConfiguration = require('./publicIPAddressConfiguration');
|
||||
exports.NetworkConfiguration = require('./networkConfiguration');
|
||||
exports.AzureBlobFileSystemConfiguration = require('./azureBlobFileSystemConfiguration');
|
||||
exports.NFSMountConfiguration = require('./nFSMountConfiguration');
|
||||
|
|
|
@ -454,10 +454,10 @@ class JobAddParameter {
|
|||
* [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.imageReference.virtualMachineImageId]
|
||||
* This property is mutually exclusive with other ImageReference properties.
|
||||
* For Virtual Machine Image it must be in the same region and subscription
|
||||
* as the Azure Batch account. For SIG image it must have replicas in the
|
||||
* same region as the Azure Batch account. For information about the firewall
|
||||
* settings for the Batch Compute Node agent to communicate with the Batch
|
||||
* service see
|
||||
* as the Azure Batch account. The Shared Image Gallery Image must have
|
||||
* replicas in the same region as the Azure Batch account. For information
|
||||
* about the firewall settings for the Batch Compute 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.
|
||||
* @property {string}
|
||||
* [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.nodeAgentSKUId]
|
||||
|
@ -512,6 +512,15 @@ class JobAddParameter {
|
|||
* [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.containerConfiguration.containerRegistries]
|
||||
* If any Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
* @property {object}
|
||||
* [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration]
|
||||
* If specified, encryption is performed on each node in the pool during node
|
||||
* provisioning.
|
||||
* @property {array}
|
||||
* [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration.targets]
|
||||
* If omitted, no disks on the compute nodes in the pool will be encrypted.
|
||||
* On Linux pool, only "TemporaryDisk" is supported; on Windows pool,
|
||||
* "OsDisk" and "TemporaryDisk" must be specified.
|
||||
* @property {number} [poolInfo.autoPoolSpecification.pool.maxTasksPerNode]
|
||||
* The default value is 1. The maximum value is the smaller of 4 times the
|
||||
* number of cores of the vmSize of the Pool or 256.
|
||||
|
@ -570,7 +579,7 @@ class JobAddParameter {
|
|||
* Batch Account. The specified subnet should have enough free IP addresses
|
||||
* to accommodate the number of Compute Nodes in the Pool. If the subnet
|
||||
* doesn't have enough free IP addresses, the Pool will partially allocate
|
||||
* Nodes, and a resize error will occur. The 'MicrosoftAzureBatch' service
|
||||
* Nodes and a resize error will occur. The 'MicrosoftAzureBatch' service
|
||||
* principal must have the 'Classic Virtual Machine Contributor' Role-Based
|
||||
* Access Control (RBAC) role for the specified VNet. The specified subnet
|
||||
* must allow communication from the Azure Batch service to be able to
|
||||
|
@ -601,9 +610,17 @@ class JobAddParameter {
|
|||
* The maximum number of inbound NAT Pools per Batch Pool is 5. If the
|
||||
* maximum number of inbound NAT Pools is exceeded the request fails with
|
||||
* HTTP status code 400.
|
||||
* @property {object}
|
||||
* [poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration]
|
||||
* Public IP configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
* @property {string}
|
||||
* [poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.provision]
|
||||
* The default value is BatchManaged. Possible values include:
|
||||
* 'batchManaged', 'userManaged', 'noPublicIPAddresses'
|
||||
* @property {array}
|
||||
* [poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPs] The
|
||||
* number of IPs specified here limits the maximum size of the Pool - 50
|
||||
* [poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.ipAddressIds]
|
||||
* The number of IPs specified here limits the maximum size of the Pool - 50
|
||||
* dedicated nodes or 20 low-priority nodes can be allocated for each public
|
||||
* IP. For example, a pool needing 150 dedicated VMs would need at least 3
|
||||
* public IPs specified. Each element of this collection is of the form:
|
||||
|
|
|
@ -136,10 +136,10 @@ class JobPatchParameter {
|
|||
* [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.imageReference.virtualMachineImageId]
|
||||
* This property is mutually exclusive with other ImageReference properties.
|
||||
* For Virtual Machine Image it must be in the same region and subscription
|
||||
* as the Azure Batch account. For SIG image it must have replicas in the
|
||||
* same region as the Azure Batch account. For information about the firewall
|
||||
* settings for the Batch Compute Node agent to communicate with the Batch
|
||||
* service see
|
||||
* as the Azure Batch account. The Shared Image Gallery Image must have
|
||||
* replicas in the same region as the Azure Batch account. For information
|
||||
* about the firewall settings for the Batch Compute 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.
|
||||
* @property {string}
|
||||
* [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.nodeAgentSKUId]
|
||||
|
@ -194,6 +194,15 @@ class JobPatchParameter {
|
|||
* [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.containerConfiguration.containerRegistries]
|
||||
* If any Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
* @property {object}
|
||||
* [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration]
|
||||
* If specified, encryption is performed on each node in the pool during node
|
||||
* provisioning.
|
||||
* @property {array}
|
||||
* [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration.targets]
|
||||
* If omitted, no disks on the compute nodes in the pool will be encrypted.
|
||||
* On Linux pool, only "TemporaryDisk" is supported; on Windows pool,
|
||||
* "OsDisk" and "TemporaryDisk" must be specified.
|
||||
* @property {number} [poolInfo.autoPoolSpecification.pool.maxTasksPerNode]
|
||||
* The default value is 1. The maximum value is the smaller of 4 times the
|
||||
* number of cores of the vmSize of the Pool or 256.
|
||||
|
@ -252,7 +261,7 @@ class JobPatchParameter {
|
|||
* Batch Account. The specified subnet should have enough free IP addresses
|
||||
* to accommodate the number of Compute Nodes in the Pool. If the subnet
|
||||
* doesn't have enough free IP addresses, the Pool will partially allocate
|
||||
* Nodes, and a resize error will occur. The 'MicrosoftAzureBatch' service
|
||||
* Nodes and a resize error will occur. The 'MicrosoftAzureBatch' service
|
||||
* principal must have the 'Classic Virtual Machine Contributor' Role-Based
|
||||
* Access Control (RBAC) role for the specified VNet. The specified subnet
|
||||
* must allow communication from the Azure Batch service to be able to
|
||||
|
@ -283,9 +292,17 @@ class JobPatchParameter {
|
|||
* The maximum number of inbound NAT Pools per Batch Pool is 5. If the
|
||||
* maximum number of inbound NAT Pools is exceeded the request fails with
|
||||
* HTTP status code 400.
|
||||
* @property {object}
|
||||
* [poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration]
|
||||
* Public IP configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
* @property {string}
|
||||
* [poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.provision]
|
||||
* The default value is BatchManaged. Possible values include:
|
||||
* 'batchManaged', 'userManaged', 'noPublicIPAddresses'
|
||||
* @property {array}
|
||||
* [poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPs] The
|
||||
* number of IPs specified here limits the maximum size of the Pool - 50
|
||||
* [poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.ipAddressIds]
|
||||
* The number of IPs specified here limits the maximum size of the Pool - 50
|
||||
* dedicated nodes or 20 low-priority nodes can be allocated for each public
|
||||
* IP. For example, a pool needing 150 dedicated VMs would need at least 3
|
||||
* public IPs specified. Each element of this collection is of the form:
|
||||
|
|
|
@ -561,10 +561,10 @@ class JobScheduleAddParameter {
|
|||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.imageReference.virtualMachineImageId]
|
||||
* This property is mutually exclusive with other ImageReference properties.
|
||||
* For Virtual Machine Image it must be in the same region and subscription
|
||||
* as the Azure Batch account. For SIG image it must have replicas in the
|
||||
* same region as the Azure Batch account. For information about the firewall
|
||||
* settings for the Batch Compute Node agent to communicate with the Batch
|
||||
* service see
|
||||
* as the Azure Batch account. The Shared Image Gallery Image must have
|
||||
* replicas in the same region as the Azure Batch account. For information
|
||||
* about the firewall settings for the Batch Compute 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.
|
||||
* @property {string}
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.nodeAgentSKUId]
|
||||
|
@ -619,6 +619,15 @@ class JobScheduleAddParameter {
|
|||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.containerConfiguration.containerRegistries]
|
||||
* If any Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
* @property {object}
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration]
|
||||
* If specified, encryption is performed on each node in the pool during node
|
||||
* provisioning.
|
||||
* @property {array}
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration.targets]
|
||||
* If omitted, no disks on the compute nodes in the pool will be encrypted.
|
||||
* On Linux pool, only "TemporaryDisk" is supported; on Windows pool,
|
||||
* "OsDisk" and "TemporaryDisk" must be specified.
|
||||
* @property {number}
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.maxTasksPerNode] The
|
||||
* default value is 1. The maximum value is the smaller of 4 times the number
|
||||
|
@ -680,7 +689,7 @@ class JobScheduleAddParameter {
|
|||
* Azure Batch Account. The specified subnet should have enough free IP
|
||||
* addresses to accommodate the number of Compute Nodes in the Pool. If the
|
||||
* subnet doesn't have enough free IP addresses, the Pool will partially
|
||||
* allocate Nodes, and a resize error will occur. The 'MicrosoftAzureBatch'
|
||||
* allocate Nodes and a resize error will occur. The 'MicrosoftAzureBatch'
|
||||
* service principal must have the 'Classic Virtual Machine Contributor'
|
||||
* Role-Based Access Control (RBAC) role for the specified VNet. The
|
||||
* specified subnet must allow communication from the Azure Batch service to
|
||||
|
@ -711,8 +720,16 @@ class JobScheduleAddParameter {
|
|||
* The maximum number of inbound NAT Pools per Batch Pool is 5. If the
|
||||
* maximum number of inbound NAT Pools is exceeded the request fails with
|
||||
* HTTP status code 400.
|
||||
* @property {object}
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration]
|
||||
* Public IP configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
* @property {string}
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.provision]
|
||||
* The default value is BatchManaged. Possible values include:
|
||||
* 'batchManaged', 'userManaged', 'noPublicIPAddresses'
|
||||
* @property {array}
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPs]
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.ipAddressIds]
|
||||
* The number of IPs specified here limits the maximum size of the Pool - 50
|
||||
* dedicated nodes or 20 low-priority nodes can be allocated for each public
|
||||
* IP. For example, a pool needing 150 dedicated VMs would need at least 3
|
||||
|
|
|
@ -555,10 +555,10 @@ class JobSchedulePatchParameter {
|
|||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.imageReference.virtualMachineImageId]
|
||||
* This property is mutually exclusive with other ImageReference properties.
|
||||
* For Virtual Machine Image it must be in the same region and subscription
|
||||
* as the Azure Batch account. For SIG image it must have replicas in the
|
||||
* same region as the Azure Batch account. For information about the firewall
|
||||
* settings for the Batch Compute Node agent to communicate with the Batch
|
||||
* service see
|
||||
* as the Azure Batch account. The Shared Image Gallery Image must have
|
||||
* replicas in the same region as the Azure Batch account. For information
|
||||
* about the firewall settings for the Batch Compute 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.
|
||||
* @property {string}
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.nodeAgentSKUId]
|
||||
|
@ -613,6 +613,15 @@ class JobSchedulePatchParameter {
|
|||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.containerConfiguration.containerRegistries]
|
||||
* If any Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
* @property {object}
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration]
|
||||
* If specified, encryption is performed on each node in the pool during node
|
||||
* provisioning.
|
||||
* @property {array}
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration.targets]
|
||||
* If omitted, no disks on the compute nodes in the pool will be encrypted.
|
||||
* On Linux pool, only "TemporaryDisk" is supported; on Windows pool,
|
||||
* "OsDisk" and "TemporaryDisk" must be specified.
|
||||
* @property {number}
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.maxTasksPerNode] The
|
||||
* default value is 1. The maximum value is the smaller of 4 times the number
|
||||
|
@ -674,7 +683,7 @@ class JobSchedulePatchParameter {
|
|||
* Azure Batch Account. The specified subnet should have enough free IP
|
||||
* addresses to accommodate the number of Compute Nodes in the Pool. If the
|
||||
* subnet doesn't have enough free IP addresses, the Pool will partially
|
||||
* allocate Nodes, and a resize error will occur. The 'MicrosoftAzureBatch'
|
||||
* allocate Nodes and a resize error will occur. The 'MicrosoftAzureBatch'
|
||||
* service principal must have the 'Classic Virtual Machine Contributor'
|
||||
* Role-Based Access Control (RBAC) role for the specified VNet. The
|
||||
* specified subnet must allow communication from the Azure Batch service to
|
||||
|
@ -705,8 +714,16 @@ class JobSchedulePatchParameter {
|
|||
* The maximum number of inbound NAT Pools per Batch Pool is 5. If the
|
||||
* maximum number of inbound NAT Pools is exceeded the request fails with
|
||||
* HTTP status code 400.
|
||||
* @property {object}
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration]
|
||||
* Public IP configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
* @property {string}
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.provision]
|
||||
* The default value is BatchManaged. Possible values include:
|
||||
* 'batchManaged', 'userManaged', 'noPublicIPAddresses'
|
||||
* @property {array}
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPs]
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.ipAddressIds]
|
||||
* The number of IPs specified here limits the maximum size of the Pool - 50
|
||||
* dedicated nodes or 20 low-priority nodes can be allocated for each public
|
||||
* IP. For example, a pool needing 150 dedicated VMs would need at least 3
|
||||
|
|
|
@ -555,10 +555,10 @@ class JobScheduleUpdateParameter {
|
|||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.imageReference.virtualMachineImageId]
|
||||
* This property is mutually exclusive with other ImageReference properties.
|
||||
* For Virtual Machine Image it must be in the same region and subscription
|
||||
* as the Azure Batch account. For SIG image it must have replicas in the
|
||||
* same region as the Azure Batch account. For information about the firewall
|
||||
* settings for the Batch Compute Node agent to communicate with the Batch
|
||||
* service see
|
||||
* as the Azure Batch account. The Shared Image Gallery Image must have
|
||||
* replicas in the same region as the Azure Batch account. For information
|
||||
* about the firewall settings for the Batch Compute 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.
|
||||
* @property {string}
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.nodeAgentSKUId]
|
||||
|
@ -613,6 +613,15 @@ class JobScheduleUpdateParameter {
|
|||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.containerConfiguration.containerRegistries]
|
||||
* If any Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
* @property {object}
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration]
|
||||
* If specified, encryption is performed on each node in the pool during node
|
||||
* provisioning.
|
||||
* @property {array}
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration.targets]
|
||||
* If omitted, no disks on the compute nodes in the pool will be encrypted.
|
||||
* On Linux pool, only "TemporaryDisk" is supported; on Windows pool,
|
||||
* "OsDisk" and "TemporaryDisk" must be specified.
|
||||
* @property {number}
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.maxTasksPerNode] The
|
||||
* default value is 1. The maximum value is the smaller of 4 times the number
|
||||
|
@ -674,7 +683,7 @@ class JobScheduleUpdateParameter {
|
|||
* Azure Batch Account. The specified subnet should have enough free IP
|
||||
* addresses to accommodate the number of Compute Nodes in the Pool. If the
|
||||
* subnet doesn't have enough free IP addresses, the Pool will partially
|
||||
* allocate Nodes, and a resize error will occur. The 'MicrosoftAzureBatch'
|
||||
* allocate Nodes and a resize error will occur. The 'MicrosoftAzureBatch'
|
||||
* service principal must have the 'Classic Virtual Machine Contributor'
|
||||
* Role-Based Access Control (RBAC) role for the specified VNet. The
|
||||
* specified subnet must allow communication from the Azure Batch service to
|
||||
|
@ -705,8 +714,16 @@ class JobScheduleUpdateParameter {
|
|||
* The maximum number of inbound NAT Pools per Batch Pool is 5. If the
|
||||
* maximum number of inbound NAT Pools is exceeded the request fails with
|
||||
* HTTP status code 400.
|
||||
* @property {object}
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration]
|
||||
* Public IP configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
* @property {string}
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.provision]
|
||||
* The default value is BatchManaged. Possible values include:
|
||||
* 'batchManaged', 'userManaged', 'noPublicIPAddresses'
|
||||
* @property {array}
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPs]
|
||||
* [jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.ipAddressIds]
|
||||
* The number of IPs specified here limits the maximum size of the Pool - 50
|
||||
* dedicated nodes or 20 low-priority nodes can be allocated for each public
|
||||
* IP. For example, a pool needing 150 dedicated VMs would need at least 3
|
||||
|
|
|
@ -491,10 +491,10 @@ class JobSpecification {
|
|||
* [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.imageReference.virtualMachineImageId]
|
||||
* This property is mutually exclusive with other ImageReference properties.
|
||||
* For Virtual Machine Image it must be in the same region and subscription
|
||||
* as the Azure Batch account. For SIG image it must have replicas in the
|
||||
* same region as the Azure Batch account. For information about the firewall
|
||||
* settings for the Batch Compute Node agent to communicate with the Batch
|
||||
* service see
|
||||
* as the Azure Batch account. The Shared Image Gallery Image must have
|
||||
* replicas in the same region as the Azure Batch account. For information
|
||||
* about the firewall settings for the Batch Compute 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.
|
||||
* @property {string}
|
||||
* [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.nodeAgentSKUId]
|
||||
|
@ -549,6 +549,15 @@ class JobSpecification {
|
|||
* [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.containerConfiguration.containerRegistries]
|
||||
* If any Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
* @property {object}
|
||||
* [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration]
|
||||
* If specified, encryption is performed on each node in the pool during node
|
||||
* provisioning.
|
||||
* @property {array}
|
||||
* [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration.targets]
|
||||
* If omitted, no disks on the compute nodes in the pool will be encrypted.
|
||||
* On Linux pool, only "TemporaryDisk" is supported; on Windows pool,
|
||||
* "OsDisk" and "TemporaryDisk" must be specified.
|
||||
* @property {number} [poolInfo.autoPoolSpecification.pool.maxTasksPerNode]
|
||||
* The default value is 1. The maximum value is the smaller of 4 times the
|
||||
* number of cores of the vmSize of the Pool or 256.
|
||||
|
@ -607,7 +616,7 @@ class JobSpecification {
|
|||
* Batch Account. The specified subnet should have enough free IP addresses
|
||||
* to accommodate the number of Compute Nodes in the Pool. If the subnet
|
||||
* doesn't have enough free IP addresses, the Pool will partially allocate
|
||||
* Nodes, and a resize error will occur. The 'MicrosoftAzureBatch' service
|
||||
* Nodes and a resize error will occur. The 'MicrosoftAzureBatch' service
|
||||
* principal must have the 'Classic Virtual Machine Contributor' Role-Based
|
||||
* Access Control (RBAC) role for the specified VNet. The specified subnet
|
||||
* must allow communication from the Azure Batch service to be able to
|
||||
|
@ -638,9 +647,17 @@ class JobSpecification {
|
|||
* The maximum number of inbound NAT Pools per Batch Pool is 5. If the
|
||||
* maximum number of inbound NAT Pools is exceeded the request fails with
|
||||
* HTTP status code 400.
|
||||
* @property {object}
|
||||
* [poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration]
|
||||
* Public IP configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
* @property {string}
|
||||
* [poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.provision]
|
||||
* The default value is BatchManaged. Possible values include:
|
||||
* 'batchManaged', 'userManaged', 'noPublicIPAddresses'
|
||||
* @property {array}
|
||||
* [poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPs] The
|
||||
* number of IPs specified here limits the maximum size of the Pool - 50
|
||||
* [poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.ipAddressIds]
|
||||
* The number of IPs specified here limits the maximum size of the Pool - 50
|
||||
* dedicated nodes or 20 low-priority nodes can be allocated for each public
|
||||
* IP. For example, a pool needing 150 dedicated VMs would need at least 3
|
||||
* public IPs specified. Each element of this collection is of the form:
|
||||
|
|
|
@ -127,10 +127,10 @@ class JobUpdateParameter {
|
|||
* [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.imageReference.virtualMachineImageId]
|
||||
* This property is mutually exclusive with other ImageReference properties.
|
||||
* For Virtual Machine Image it must be in the same region and subscription
|
||||
* as the Azure Batch account. For SIG image it must have replicas in the
|
||||
* same region as the Azure Batch account. For information about the firewall
|
||||
* settings for the Batch Compute Node agent to communicate with the Batch
|
||||
* service see
|
||||
* as the Azure Batch account. The Shared Image Gallery Image must have
|
||||
* replicas in the same region as the Azure Batch account. For information
|
||||
* about the firewall settings for the Batch Compute 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.
|
||||
* @property {string}
|
||||
* [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.nodeAgentSKUId]
|
||||
|
@ -185,6 +185,15 @@ class JobUpdateParameter {
|
|||
* [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.containerConfiguration.containerRegistries]
|
||||
* If any Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
* @property {object}
|
||||
* [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration]
|
||||
* If specified, encryption is performed on each node in the pool during node
|
||||
* provisioning.
|
||||
* @property {array}
|
||||
* [poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration.targets]
|
||||
* If omitted, no disks on the compute nodes in the pool will be encrypted.
|
||||
* On Linux pool, only "TemporaryDisk" is supported; on Windows pool,
|
||||
* "OsDisk" and "TemporaryDisk" must be specified.
|
||||
* @property {number} [poolInfo.autoPoolSpecification.pool.maxTasksPerNode]
|
||||
* The default value is 1. The maximum value is the smaller of 4 times the
|
||||
* number of cores of the vmSize of the Pool or 256.
|
||||
|
@ -243,7 +252,7 @@ class JobUpdateParameter {
|
|||
* Batch Account. The specified subnet should have enough free IP addresses
|
||||
* to accommodate the number of Compute Nodes in the Pool. If the subnet
|
||||
* doesn't have enough free IP addresses, the Pool will partially allocate
|
||||
* Nodes, and a resize error will occur. The 'MicrosoftAzureBatch' service
|
||||
* Nodes and a resize error will occur. The 'MicrosoftAzureBatch' service
|
||||
* principal must have the 'Classic Virtual Machine Contributor' Role-Based
|
||||
* Access Control (RBAC) role for the specified VNet. The specified subnet
|
||||
* must allow communication from the Azure Batch service to be able to
|
||||
|
@ -274,9 +283,17 @@ class JobUpdateParameter {
|
|||
* The maximum number of inbound NAT Pools per Batch Pool is 5. If the
|
||||
* maximum number of inbound NAT Pools is exceeded the request fails with
|
||||
* HTTP status code 400.
|
||||
* @property {object}
|
||||
* [poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration]
|
||||
* Public IP configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
* @property {string}
|
||||
* [poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.provision]
|
||||
* The default value is BatchManaged. Possible values include:
|
||||
* 'batchManaged', 'userManaged', 'noPublicIPAddresses'
|
||||
* @property {array}
|
||||
* [poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPs] The
|
||||
* number of IPs specified here limits the maximum size of the Pool - 50
|
||||
* [poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.ipAddressIds]
|
||||
* The number of IPs specified here limits the maximum size of the Pool - 50
|
||||
* dedicated nodes or 20 low-priority nodes can be allocated for each public
|
||||
* IP. For example, a pool needing 150 dedicated VMs would need at least 3
|
||||
* public IPs specified. Each element of this collection is of the form:
|
||||
|
|
|
@ -25,7 +25,7 @@ class NetworkConfiguration {
|
|||
* Azure Batch Account. The specified subnet should have enough free IP
|
||||
* addresses to accommodate the number of Compute Nodes in the Pool. If the
|
||||
* subnet doesn't have enough free IP addresses, the Pool will partially
|
||||
* allocate Nodes, and a resize error will occur. The 'MicrosoftAzureBatch'
|
||||
* allocate Nodes and a resize error will occur. The 'MicrosoftAzureBatch'
|
||||
* service principal must have the 'Classic Virtual Machine Contributor'
|
||||
* Role-Based Access Control (RBAC) role for the specified VNet. The
|
||||
* specified subnet must allow communication from the Azure Batch service to
|
||||
|
@ -52,12 +52,18 @@ class NetworkConfiguration {
|
|||
* @property {array} [endpointConfiguration.inboundNATPools] The maximum
|
||||
* number of inbound NAT Pools per Batch Pool is 5. If the maximum number of
|
||||
* inbound NAT Pools is exceeded the request fails with HTTP status code 400.
|
||||
* @property {array} [publicIPs] The list of public IPs which the Batch
|
||||
* service will use when provisioning Compute Nodes. The number of IPs
|
||||
* specified here limits the maximum size of the Pool - 50 dedicated nodes or
|
||||
* 20 low-priority nodes can be allocated for each public IP. For example, a
|
||||
* pool needing 150 dedicated VMs would need at least 3 public IPs specified.
|
||||
* Each element of this collection is of the form:
|
||||
* @property {object} [publicIPAddressConfiguration] The Public IPAddress
|
||||
* configuration for Compute Nodes in the Batch Pool. Public IP configuration
|
||||
* property is only supported on Pools with the virtualMachineConfiguration
|
||||
* property.
|
||||
* @property {string} [publicIPAddressConfiguration.provision] The default
|
||||
* value is BatchManaged. Possible values include: 'batchManaged',
|
||||
* 'userManaged', 'noPublicIPAddresses'
|
||||
* @property {array} [publicIPAddressConfiguration.ipAddressIds] The number
|
||||
* of IPs specified here limits the maximum size of the Pool - 50 dedicated
|
||||
* nodes or 20 low-priority nodes can be allocated for each public IP. For
|
||||
* example, a pool needing 150 dedicated VMs would need at least 3 public IPs
|
||||
* specified. Each element of this collection is of the form:
|
||||
* /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}.
|
||||
*/
|
||||
constructor() {
|
||||
|
@ -100,18 +106,12 @@ class NetworkConfiguration {
|
|||
className: 'PoolEndpointConfiguration'
|
||||
}
|
||||
},
|
||||
publicIPs: {
|
||||
publicIPAddressConfiguration: {
|
||||
required: false,
|
||||
serializedName: 'publicIPs',
|
||||
serializedName: 'publicIPAddressConfiguration',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
name: 'Composite',
|
||||
className: 'PublicIPAddressConfiguration'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ class NetworkSecurityGroupRule {
|
|||
* the number the higher the priority. For example, rules could be specified
|
||||
* with order numbers of 150, 250, and 350. The rule with the order number of
|
||||
* 150 takes precedence over the rule that has an order of 250. Allowed
|
||||
* priorities are 150 to 3500. If any reserved or duplicate values are
|
||||
* priorities are 150 to 4096. If any reserved or duplicate values are
|
||||
* provided the request fails with HTTP status code 400.
|
||||
* @property {string} access The action that should be taken for a specified
|
||||
* IP address, subnet range or tag. Possible values include: 'allow', 'deny'
|
||||
|
|
|
@ -73,10 +73,10 @@ class PoolAddParameter {
|
|||
* [virtualMachineConfiguration.imageReference.virtualMachineImageId] This
|
||||
* property is mutually exclusive with other ImageReference properties. For
|
||||
* Virtual Machine Image it must be in the same region and subscription as
|
||||
* the Azure Batch account. For SIG image it must have replicas in the same
|
||||
* region as the Azure Batch account. For information about the firewall
|
||||
* settings for the Batch Compute Node agent to communicate with the Batch
|
||||
* service see
|
||||
* the Azure Batch account. The Shared Image Gallery Image must have replicas
|
||||
* in the same region as the Azure Batch account. For information about the
|
||||
* firewall settings for the Batch Compute 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.
|
||||
* @property {string} [virtualMachineConfiguration.nodeAgentSKUId] The Batch
|
||||
* Compute Node agent is a program that runs on each Compute Node in the
|
||||
|
@ -126,6 +126,14 @@ class PoolAddParameter {
|
|||
* [virtualMachineConfiguration.containerConfiguration.containerRegistries]
|
||||
* If any Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
* @property {object}
|
||||
* [virtualMachineConfiguration.diskEncryptionConfiguration] If specified,
|
||||
* encryption is performed on each node in the pool during node provisioning.
|
||||
* @property {array}
|
||||
* [virtualMachineConfiguration.diskEncryptionConfiguration.targets] If
|
||||
* omitted, no disks on the compute nodes in the pool will be encrypted. On
|
||||
* Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk"
|
||||
* and "TemporaryDisk" must be specified.
|
||||
* @property {moment.duration} [resizeTimeout] The timeout for allocation of
|
||||
* Compute Nodes to the Pool. This timeout applies only to manual scaling; it
|
||||
* has no effect when enableAutoScale is set to true. The default value is 15
|
||||
|
@ -172,7 +180,7 @@ class PoolAddParameter {
|
|||
* must be in the same region and subscription as the Azure Batch Account.
|
||||
* The specified subnet should have enough free IP addresses to accommodate
|
||||
* the number of Compute Nodes in the Pool. If the subnet doesn't have enough
|
||||
* free IP addresses, the Pool will partially allocate Nodes, and a resize
|
||||
* free IP addresses, the Pool will partially allocate Nodes and a resize
|
||||
* error will occur. The 'MicrosoftAzureBatch' service principal must have
|
||||
* the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC)
|
||||
* role for the specified VNet. The specified subnet must allow communication
|
||||
|
@ -201,11 +209,19 @@ class PoolAddParameter {
|
|||
* [networkConfiguration.endpointConfiguration.inboundNATPools] The maximum
|
||||
* number of inbound NAT Pools per Batch Pool is 5. If the maximum number of
|
||||
* inbound NAT Pools is exceeded the request fails with HTTP status code 400.
|
||||
* @property {array} [networkConfiguration.publicIPs] The number of IPs
|
||||
* specified here limits the maximum size of the Pool - 50 dedicated nodes or
|
||||
* 20 low-priority nodes can be allocated for each public IP. For example, a
|
||||
* pool needing 150 dedicated VMs would need at least 3 public IPs specified.
|
||||
* Each element of this collection is of the form:
|
||||
* @property {object} [networkConfiguration.publicIPAddressConfiguration]
|
||||
* Public IP configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
* @property {string}
|
||||
* [networkConfiguration.publicIPAddressConfiguration.provision] The default
|
||||
* value is BatchManaged. Possible values include: 'batchManaged',
|
||||
* 'userManaged', 'noPublicIPAddresses'
|
||||
* @property {array}
|
||||
* [networkConfiguration.publicIPAddressConfiguration.ipAddressIds] The
|
||||
* number of IPs specified here limits the maximum size of the Pool - 50
|
||||
* dedicated nodes or 20 low-priority nodes can be allocated for each public
|
||||
* IP. For example, a pool needing 150 dedicated VMs would need at least 3
|
||||
* public IPs specified. Each element of this collection is of the form:
|
||||
* /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}.
|
||||
* @property {object} [startTask] A Task specified to run on each Compute
|
||||
* Node as it joins the Pool. The Task runs when the Compute Node is added to
|
||||
|
|
|
@ -103,10 +103,10 @@ class PoolInformation {
|
|||
* [autoPoolSpecification.pool.virtualMachineConfiguration.imageReference.virtualMachineImageId]
|
||||
* This property is mutually exclusive with other ImageReference properties.
|
||||
* For Virtual Machine Image it must be in the same region and subscription
|
||||
* as the Azure Batch account. For SIG image it must have replicas in the
|
||||
* same region as the Azure Batch account. For information about the firewall
|
||||
* settings for the Batch Compute Node agent to communicate with the Batch
|
||||
* service see
|
||||
* as the Azure Batch account. The Shared Image Gallery Image must have
|
||||
* replicas in the same region as the Azure Batch account. For information
|
||||
* about the firewall settings for the Batch Compute 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.
|
||||
* @property {string}
|
||||
* [autoPoolSpecification.pool.virtualMachineConfiguration.nodeAgentSKUId]
|
||||
|
@ -161,6 +161,15 @@ class PoolInformation {
|
|||
* [autoPoolSpecification.pool.virtualMachineConfiguration.containerConfiguration.containerRegistries]
|
||||
* If any Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
* @property {object}
|
||||
* [autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration]
|
||||
* If specified, encryption is performed on each node in the pool during node
|
||||
* provisioning.
|
||||
* @property {array}
|
||||
* [autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration.targets]
|
||||
* If omitted, no disks on the compute nodes in the pool will be encrypted.
|
||||
* On Linux pool, only "TemporaryDisk" is supported; on Windows pool,
|
||||
* "OsDisk" and "TemporaryDisk" must be specified.
|
||||
* @property {number} [autoPoolSpecification.pool.maxTasksPerNode] The
|
||||
* default value is 1. The maximum value is the smaller of 4 times the number
|
||||
* of cores of the vmSize of the Pool or 256.
|
||||
|
@ -212,7 +221,7 @@ class PoolInformation {
|
|||
* network must be in the same region and subscription as the Azure Batch
|
||||
* Account. The specified subnet should have enough free IP addresses to
|
||||
* accommodate the number of Compute Nodes in the Pool. If the subnet doesn't
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes, and
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes and
|
||||
* a resize error will occur. The 'MicrosoftAzureBatch' service principal
|
||||
* must have the 'Classic Virtual Machine Contributor' Role-Based Access
|
||||
* Control (RBAC) role for the specified VNet. The specified subnet must
|
||||
|
@ -244,12 +253,20 @@ class PoolInformation {
|
|||
* The maximum number of inbound NAT Pools per Batch Pool is 5. If the
|
||||
* maximum number of inbound NAT Pools is exceeded the request fails with
|
||||
* HTTP status code 400.
|
||||
* @property {object}
|
||||
* [autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration]
|
||||
* Public IP configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
* @property {string}
|
||||
* [autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.provision]
|
||||
* The default value is BatchManaged. Possible values include:
|
||||
* 'batchManaged', 'userManaged', 'noPublicIPAddresses'
|
||||
* @property {array}
|
||||
* [autoPoolSpecification.pool.networkConfiguration.publicIPs] The number of
|
||||
* IPs specified here limits the maximum size of the Pool - 50 dedicated
|
||||
* nodes or 20 low-priority nodes can be allocated for each public IP. For
|
||||
* example, a pool needing 150 dedicated VMs would need at least 3 public IPs
|
||||
* specified. Each element of this collection is of the form:
|
||||
* [autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.ipAddressIds]
|
||||
* The number of IPs specified here limits the maximum size of the Pool - 50
|
||||
* dedicated nodes or 20 low-priority nodes can be allocated for each public
|
||||
* IP. For example, a pool needing 150 dedicated VMs would need at least 3
|
||||
* public IPs specified. Each element of this collection is of the form:
|
||||
* /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}.
|
||||
* @property {object} [autoPoolSpecification.pool.startTask]
|
||||
* @property {string} [autoPoolSpecification.pool.startTask.commandLine] The
|
||||
|
|
|
@ -67,10 +67,10 @@ class PoolSpecification {
|
|||
* [virtualMachineConfiguration.imageReference.virtualMachineImageId] This
|
||||
* property is mutually exclusive with other ImageReference properties. For
|
||||
* Virtual Machine Image it must be in the same region and subscription as
|
||||
* the Azure Batch account. For SIG image it must have replicas in the same
|
||||
* region as the Azure Batch account. For information about the firewall
|
||||
* settings for the Batch Compute Node agent to communicate with the Batch
|
||||
* service see
|
||||
* the Azure Batch account. The Shared Image Gallery Image must have replicas
|
||||
* in the same region as the Azure Batch account. For information about the
|
||||
* firewall settings for the Batch Compute 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.
|
||||
* @property {string} [virtualMachineConfiguration.nodeAgentSKUId] The Batch
|
||||
* Compute Node agent is a program that runs on each Compute Node in the
|
||||
|
@ -120,6 +120,14 @@ class PoolSpecification {
|
|||
* [virtualMachineConfiguration.containerConfiguration.containerRegistries]
|
||||
* If any Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
* @property {object}
|
||||
* [virtualMachineConfiguration.diskEncryptionConfiguration] If specified,
|
||||
* encryption is performed on each node in the pool during node provisioning.
|
||||
* @property {array}
|
||||
* [virtualMachineConfiguration.diskEncryptionConfiguration.targets] If
|
||||
* omitted, no disks on the compute nodes in the pool will be encrypted. On
|
||||
* Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk"
|
||||
* and "TemporaryDisk" must be specified.
|
||||
* @property {number} [maxTasksPerNode] The maximum number of Tasks that can
|
||||
* run concurrently on a single Compute Node in the Pool. The default value
|
||||
* is 1. The maximum value is the smaller of 4 times the number of cores of
|
||||
|
@ -172,7 +180,7 @@ class PoolSpecification {
|
|||
* must be in the same region and subscription as the Azure Batch Account.
|
||||
* The specified subnet should have enough free IP addresses to accommodate
|
||||
* the number of Compute Nodes in the Pool. If the subnet doesn't have enough
|
||||
* free IP addresses, the Pool will partially allocate Nodes, and a resize
|
||||
* free IP addresses, the Pool will partially allocate Nodes and a resize
|
||||
* error will occur. The 'MicrosoftAzureBatch' service principal must have
|
||||
* the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC)
|
||||
* role for the specified VNet. The specified subnet must allow communication
|
||||
|
@ -201,11 +209,19 @@ class PoolSpecification {
|
|||
* [networkConfiguration.endpointConfiguration.inboundNATPools] The maximum
|
||||
* number of inbound NAT Pools per Batch Pool is 5. If the maximum number of
|
||||
* inbound NAT Pools is exceeded the request fails with HTTP status code 400.
|
||||
* @property {array} [networkConfiguration.publicIPs] The number of IPs
|
||||
* specified here limits the maximum size of the Pool - 50 dedicated nodes or
|
||||
* 20 low-priority nodes can be allocated for each public IP. For example, a
|
||||
* pool needing 150 dedicated VMs would need at least 3 public IPs specified.
|
||||
* Each element of this collection is of the form:
|
||||
* @property {object} [networkConfiguration.publicIPAddressConfiguration]
|
||||
* Public IP configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
* @property {string}
|
||||
* [networkConfiguration.publicIPAddressConfiguration.provision] The default
|
||||
* value is BatchManaged. Possible values include: 'batchManaged',
|
||||
* 'userManaged', 'noPublicIPAddresses'
|
||||
* @property {array}
|
||||
* [networkConfiguration.publicIPAddressConfiguration.ipAddressIds] The
|
||||
* number of IPs specified here limits the maximum size of the Pool - 50
|
||||
* dedicated nodes or 20 low-priority nodes can be allocated for each public
|
||||
* IP. For example, a pool needing 150 dedicated VMs would need at least 3
|
||||
* public IPs specified. Each element of this collection is of the form:
|
||||
* /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}.
|
||||
* @property {object} [startTask] A Task to run on each Compute Node as it
|
||||
* joins the Pool. The Task runs when the Compute Node is added to the Pool
|
||||
|
|
|
@ -0,0 +1,77 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* The public IP Address configuration of the networking configuration of a
|
||||
* Pool.
|
||||
*
|
||||
*/
|
||||
class PublicIPAddressConfiguration {
|
||||
/**
|
||||
* Create a PublicIPAddressConfiguration.
|
||||
* @property {string} [provision] The provisioning type for Public IP
|
||||
* Addresses for the Pool. The default value is BatchManaged. Possible values
|
||||
* include: 'batchManaged', 'userManaged', 'noPublicIPAddresses'
|
||||
* @property {array} [ipAddressIds] The list of public IPs which the Batch
|
||||
* service will use when provisioning Compute Nodes. The number of IPs
|
||||
* specified here limits the maximum size of the Pool - 50 dedicated nodes or
|
||||
* 20 low-priority nodes can be allocated for each public IP. For example, a
|
||||
* pool needing 150 dedicated VMs would need at least 3 public IPs specified.
|
||||
* Each element of this collection is of the form:
|
||||
* /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of PublicIPAddressConfiguration
|
||||
*
|
||||
* @returns {object} metadata of PublicIPAddressConfiguration
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'PublicIPAddressConfiguration',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PublicIPAddressConfiguration',
|
||||
modelProperties: {
|
||||
provision: {
|
||||
required: false,
|
||||
serializedName: 'provision',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'batchManaged', 'userManaged', 'noPublicIPAddresses' ]
|
||||
}
|
||||
},
|
||||
ipAddressIds: {
|
||||
required: false,
|
||||
serializedName: 'ipAddressIds',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = PublicIPAddressConfiguration;
|
|
@ -32,9 +32,10 @@ class VirtualMachineConfiguration {
|
|||
* @property {string} [imageReference.virtualMachineImageId] This property is
|
||||
* mutually exclusive with other ImageReference properties. For Virtual
|
||||
* Machine Image it must be in the same region and subscription as the Azure
|
||||
* Batch account. For SIG image it must have replicas in the same region as
|
||||
* the Azure Batch account. For information about the firewall settings for
|
||||
* the Batch Compute Node agent to communicate with the Batch service see
|
||||
* Batch account. The Shared Image Gallery Image must have replicas in the
|
||||
* same region as the Azure Batch account. For information about the firewall
|
||||
* settings for the Batch Compute 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.
|
||||
* @property {string} nodeAgentSKUId The SKU of the Batch Compute Node agent
|
||||
* to be provisioned on Compute Nodes in the Pool. The Batch Compute Node
|
||||
|
@ -83,6 +84,13 @@ class VirtualMachineConfiguration {
|
|||
* @property {array} [containerConfiguration.containerRegistries] If any
|
||||
* Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
* @property {object} [diskEncryptionConfiguration] The disk encryption
|
||||
* configuration for the pool. If specified, encryption is performed on each
|
||||
* node in the pool during node provisioning.
|
||||
* @property {array} [diskEncryptionConfiguration.targets] If omitted, no
|
||||
* disks on the compute nodes in the pool will be encrypted. On Linux pool,
|
||||
* only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and
|
||||
* "TemporaryDisk" must be specified.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
@ -153,6 +161,14 @@ class VirtualMachineConfiguration {
|
|||
name: 'Composite',
|
||||
className: 'ContainerConfiguration'
|
||||
}
|
||||
},
|
||||
diskEncryptionConfiguration: {
|
||||
required: false,
|
||||
serializedName: 'diskEncryptionConfiguration',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DiskEncryptionConfiguration'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -97,43 +97,37 @@ function _listSupportedImages(options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (accountListSupportedImagesOptions !== null && accountListSupportedImagesOptions !== undefined)
|
||||
{
|
||||
if (accountListSupportedImagesOptions !== null && accountListSupportedImagesOptions !== undefined) {
|
||||
filter = accountListSupportedImagesOptions.filter;
|
||||
if (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') {
|
||||
throw new Error('filter must be of type string.');
|
||||
}
|
||||
}
|
||||
if (accountListSupportedImagesOptions !== null && accountListSupportedImagesOptions !== undefined)
|
||||
{
|
||||
if (accountListSupportedImagesOptions !== null && accountListSupportedImagesOptions !== undefined) {
|
||||
maxResults = accountListSupportedImagesOptions.maxResults;
|
||||
if (maxResults !== null && maxResults !== undefined && typeof maxResults !== 'number') {
|
||||
throw new Error('maxResults must be of type number.');
|
||||
}
|
||||
}
|
||||
if (accountListSupportedImagesOptions !== null && accountListSupportedImagesOptions !== undefined)
|
||||
{
|
||||
if (accountListSupportedImagesOptions !== null && accountListSupportedImagesOptions !== undefined) {
|
||||
timeout = accountListSupportedImagesOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (accountListSupportedImagesOptions !== null && accountListSupportedImagesOptions !== undefined)
|
||||
{
|
||||
if (accountListSupportedImagesOptions !== null && accountListSupportedImagesOptions !== undefined) {
|
||||
clientRequestId = accountListSupportedImagesOptions.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 (accountListSupportedImagesOptions !== null && accountListSupportedImagesOptions !== undefined)
|
||||
{
|
||||
if (accountListSupportedImagesOptions !== null && accountListSupportedImagesOptions !== undefined) {
|
||||
returnClientRequestId = accountListSupportedImagesOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (accountListSupportedImagesOptions !== null && accountListSupportedImagesOptions !== undefined)
|
||||
{
|
||||
if (accountListSupportedImagesOptions !== null && accountListSupportedImagesOptions !== undefined) {
|
||||
ocpDate = accountListSupportedImagesOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
@ -331,43 +325,37 @@ function _listPoolNodeCounts(options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (accountListPoolNodeCountsOptions !== null && accountListPoolNodeCountsOptions !== undefined)
|
||||
{
|
||||
if (accountListPoolNodeCountsOptions !== null && accountListPoolNodeCountsOptions !== undefined) {
|
||||
filter = accountListPoolNodeCountsOptions.filter;
|
||||
if (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') {
|
||||
throw new Error('filter must be of type string.');
|
||||
}
|
||||
}
|
||||
if (accountListPoolNodeCountsOptions !== null && accountListPoolNodeCountsOptions !== undefined)
|
||||
{
|
||||
if (accountListPoolNodeCountsOptions !== null && accountListPoolNodeCountsOptions !== undefined) {
|
||||
maxResults = accountListPoolNodeCountsOptions.maxResults;
|
||||
if (maxResults !== null && maxResults !== undefined && typeof maxResults !== 'number') {
|
||||
throw new Error('maxResults must be of type number.');
|
||||
}
|
||||
}
|
||||
if (accountListPoolNodeCountsOptions !== null && accountListPoolNodeCountsOptions !== undefined)
|
||||
{
|
||||
if (accountListPoolNodeCountsOptions !== null && accountListPoolNodeCountsOptions !== undefined) {
|
||||
timeout = accountListPoolNodeCountsOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (accountListPoolNodeCountsOptions !== null && accountListPoolNodeCountsOptions !== undefined)
|
||||
{
|
||||
if (accountListPoolNodeCountsOptions !== null && accountListPoolNodeCountsOptions !== undefined) {
|
||||
clientRequestId = accountListPoolNodeCountsOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (accountListPoolNodeCountsOptions !== null && accountListPoolNodeCountsOptions !== undefined)
|
||||
{
|
||||
if (accountListPoolNodeCountsOptions !== null && accountListPoolNodeCountsOptions !== undefined) {
|
||||
returnClientRequestId = accountListPoolNodeCountsOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (accountListPoolNodeCountsOptions !== null && accountListPoolNodeCountsOptions !== undefined)
|
||||
{
|
||||
if (accountListPoolNodeCountsOptions !== null && accountListPoolNodeCountsOptions !== undefined) {
|
||||
ocpDate = accountListPoolNodeCountsOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
@ -553,22 +541,19 @@ function _listSupportedImagesNext(nextPageLink, options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (accountListSupportedImagesNextOptions !== null && accountListSupportedImagesNextOptions !== undefined)
|
||||
{
|
||||
if (accountListSupportedImagesNextOptions !== null && accountListSupportedImagesNextOptions !== undefined) {
|
||||
clientRequestId = accountListSupportedImagesNextOptions.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 (accountListSupportedImagesNextOptions !== null && accountListSupportedImagesNextOptions !== undefined)
|
||||
{
|
||||
if (accountListSupportedImagesNextOptions !== null && accountListSupportedImagesNextOptions !== undefined) {
|
||||
returnClientRequestId = accountListSupportedImagesNextOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (accountListSupportedImagesNextOptions !== null && accountListSupportedImagesNextOptions !== undefined)
|
||||
{
|
||||
if (accountListSupportedImagesNextOptions !== null && accountListSupportedImagesNextOptions !== undefined) {
|
||||
ocpDate = accountListSupportedImagesNextOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
@ -737,22 +722,19 @@ function _listPoolNodeCountsNext(nextPageLink, options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (accountListPoolNodeCountsNextOptions !== null && accountListPoolNodeCountsNextOptions !== undefined)
|
||||
{
|
||||
if (accountListPoolNodeCountsNextOptions !== null && accountListPoolNodeCountsNextOptions !== undefined) {
|
||||
clientRequestId = accountListPoolNodeCountsNextOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (accountListPoolNodeCountsNextOptions !== null && accountListPoolNodeCountsNextOptions !== undefined)
|
||||
{
|
||||
if (accountListPoolNodeCountsNextOptions !== null && accountListPoolNodeCountsNextOptions !== undefined) {
|
||||
returnClientRequestId = accountListPoolNodeCountsNextOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (accountListPoolNodeCountsNextOptions !== null && accountListPoolNodeCountsNextOptions !== undefined)
|
||||
{
|
||||
if (accountListPoolNodeCountsNextOptions !== null && accountListPoolNodeCountsNextOptions !== undefined) {
|
||||
ocpDate = accountListPoolNodeCountsNextOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
|
|
@ -94,36 +94,31 @@ function _list(options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (applicationListOptions !== null && applicationListOptions !== undefined)
|
||||
{
|
||||
if (applicationListOptions !== null && applicationListOptions !== undefined) {
|
||||
maxResults = applicationListOptions.maxResults;
|
||||
if (maxResults !== null && maxResults !== undefined && typeof maxResults !== 'number') {
|
||||
throw new Error('maxResults must be of type number.');
|
||||
}
|
||||
}
|
||||
if (applicationListOptions !== null && applicationListOptions !== undefined)
|
||||
{
|
||||
if (applicationListOptions !== null && applicationListOptions !== undefined) {
|
||||
timeout = applicationListOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (applicationListOptions !== null && applicationListOptions !== undefined)
|
||||
{
|
||||
if (applicationListOptions !== null && applicationListOptions !== undefined) {
|
||||
clientRequestId = applicationListOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (applicationListOptions !== null && applicationListOptions !== undefined)
|
||||
{
|
||||
if (applicationListOptions !== null && applicationListOptions !== undefined) {
|
||||
returnClientRequestId = applicationListOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (applicationListOptions !== null && applicationListOptions !== undefined)
|
||||
{
|
||||
if (applicationListOptions !== null && applicationListOptions !== undefined) {
|
||||
ocpDate = applicationListOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
@ -317,29 +312,25 @@ function _get(applicationId, options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (applicationGetOptions !== null && applicationGetOptions !== undefined)
|
||||
{
|
||||
if (applicationGetOptions !== null && applicationGetOptions !== undefined) {
|
||||
timeout = applicationGetOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (applicationGetOptions !== null && applicationGetOptions !== undefined)
|
||||
{
|
||||
if (applicationGetOptions !== null && applicationGetOptions !== undefined) {
|
||||
clientRequestId = applicationGetOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (applicationGetOptions !== null && applicationGetOptions !== undefined)
|
||||
{
|
||||
if (applicationGetOptions !== null && applicationGetOptions !== undefined) {
|
||||
returnClientRequestId = applicationGetOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (applicationGetOptions !== null && applicationGetOptions !== undefined)
|
||||
{
|
||||
if (applicationGetOptions !== null && applicationGetOptions !== undefined) {
|
||||
ocpDate = applicationGetOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
@ -522,22 +513,19 @@ function _listNext(nextPageLink, options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (applicationListNextOptions !== null && applicationListNextOptions !== undefined)
|
||||
{
|
||||
if (applicationListNextOptions !== null && applicationListNextOptions !== undefined) {
|
||||
clientRequestId = applicationListNextOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (applicationListNextOptions !== null && applicationListNextOptions !== undefined)
|
||||
{
|
||||
if (applicationListNextOptions !== null && applicationListNextOptions !== undefined) {
|
||||
returnClientRequestId = applicationListNextOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (applicationListNextOptions !== null && applicationListNextOptions !== undefined)
|
||||
{
|
||||
if (applicationListNextOptions !== null && applicationListNextOptions !== undefined) {
|
||||
ocpDate = applicationListNextOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
|
|
@ -33,8 +33,8 @@ const WebResource = msRest.WebResource;
|
|||
* Certificate data. Possible values include: 'pfx', 'cer'
|
||||
*
|
||||
* @param {string} [certificate.password] The password to access the
|
||||
* Certificate's private key. This is required if the Certificate format is
|
||||
* pfx. It should be omitted if the Certificate format is cer.
|
||||
* Certificate's private key. This must be omitted if the Certificate format is
|
||||
* cer.
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
|
@ -104,29 +104,25 @@ function _add(certificate, options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (certificateAddOptions !== null && certificateAddOptions !== undefined)
|
||||
{
|
||||
if (certificateAddOptions !== null && certificateAddOptions !== undefined) {
|
||||
timeout = certificateAddOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (certificateAddOptions !== null && certificateAddOptions !== undefined)
|
||||
{
|
||||
if (certificateAddOptions !== null && certificateAddOptions !== undefined) {
|
||||
clientRequestId = certificateAddOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (certificateAddOptions !== null && certificateAddOptions !== undefined)
|
||||
{
|
||||
if (certificateAddOptions !== null && certificateAddOptions !== undefined) {
|
||||
returnClientRequestId = certificateAddOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (certificateAddOptions !== null && certificateAddOptions !== undefined)
|
||||
{
|
||||
if (certificateAddOptions !== null && certificateAddOptions !== undefined) {
|
||||
ocpDate = certificateAddOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
@ -318,50 +314,43 @@ function _list(options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (certificateListOptions !== null && certificateListOptions !== undefined)
|
||||
{
|
||||
if (certificateListOptions !== null && certificateListOptions !== undefined) {
|
||||
filter = certificateListOptions.filter;
|
||||
if (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') {
|
||||
throw new Error('filter must be of type string.');
|
||||
}
|
||||
}
|
||||
if (certificateListOptions !== null && certificateListOptions !== undefined)
|
||||
{
|
||||
if (certificateListOptions !== null && certificateListOptions !== undefined) {
|
||||
select = certificateListOptions.select;
|
||||
if (select !== null && select !== undefined && typeof select.valueOf() !== 'string') {
|
||||
throw new Error('select must be of type string.');
|
||||
}
|
||||
}
|
||||
if (certificateListOptions !== null && certificateListOptions !== undefined)
|
||||
{
|
||||
if (certificateListOptions !== null && certificateListOptions !== undefined) {
|
||||
maxResults = certificateListOptions.maxResults;
|
||||
if (maxResults !== null && maxResults !== undefined && typeof maxResults !== 'number') {
|
||||
throw new Error('maxResults must be of type number.');
|
||||
}
|
||||
}
|
||||
if (certificateListOptions !== null && certificateListOptions !== undefined)
|
||||
{
|
||||
if (certificateListOptions !== null && certificateListOptions !== undefined) {
|
||||
timeout = certificateListOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (certificateListOptions !== null && certificateListOptions !== undefined)
|
||||
{
|
||||
if (certificateListOptions !== null && certificateListOptions !== undefined) {
|
||||
clientRequestId = certificateListOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (certificateListOptions !== null && certificateListOptions !== undefined)
|
||||
{
|
||||
if (certificateListOptions !== null && certificateListOptions !== undefined) {
|
||||
returnClientRequestId = certificateListOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (certificateListOptions !== null && certificateListOptions !== undefined)
|
||||
{
|
||||
if (certificateListOptions !== null && certificateListOptions !== undefined) {
|
||||
ocpDate = certificateListOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
@ -571,29 +560,25 @@ function _cancelDeletion(thumbprintAlgorithm, thumbprint, options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (certificateCancelDeletionOptions !== null && certificateCancelDeletionOptions !== undefined)
|
||||
{
|
||||
if (certificateCancelDeletionOptions !== null && certificateCancelDeletionOptions !== undefined) {
|
||||
timeout = certificateCancelDeletionOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (certificateCancelDeletionOptions !== null && certificateCancelDeletionOptions !== undefined)
|
||||
{
|
||||
if (certificateCancelDeletionOptions !== null && certificateCancelDeletionOptions !== undefined) {
|
||||
clientRequestId = certificateCancelDeletionOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (certificateCancelDeletionOptions !== null && certificateCancelDeletionOptions !== undefined)
|
||||
{
|
||||
if (certificateCancelDeletionOptions !== null && certificateCancelDeletionOptions !== undefined) {
|
||||
returnClientRequestId = certificateCancelDeletionOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (certificateCancelDeletionOptions !== null && certificateCancelDeletionOptions !== undefined)
|
||||
{
|
||||
if (certificateCancelDeletionOptions !== null && certificateCancelDeletionOptions !== undefined) {
|
||||
ocpDate = certificateCancelDeletionOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
@ -781,29 +766,25 @@ function _deleteMethod(thumbprintAlgorithm, thumbprint, options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (certificateDeleteMethodOptions !== null && certificateDeleteMethodOptions !== undefined)
|
||||
{
|
||||
if (certificateDeleteMethodOptions !== null && certificateDeleteMethodOptions !== undefined) {
|
||||
timeout = certificateDeleteMethodOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (certificateDeleteMethodOptions !== null && certificateDeleteMethodOptions !== undefined)
|
||||
{
|
||||
if (certificateDeleteMethodOptions !== null && certificateDeleteMethodOptions !== undefined) {
|
||||
clientRequestId = certificateDeleteMethodOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (certificateDeleteMethodOptions !== null && certificateDeleteMethodOptions !== undefined)
|
||||
{
|
||||
if (certificateDeleteMethodOptions !== null && certificateDeleteMethodOptions !== undefined) {
|
||||
returnClientRequestId = certificateDeleteMethodOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (certificateDeleteMethodOptions !== null && certificateDeleteMethodOptions !== undefined)
|
||||
{
|
||||
if (certificateDeleteMethodOptions !== null && certificateDeleteMethodOptions !== undefined) {
|
||||
ocpDate = certificateDeleteMethodOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
@ -983,36 +964,31 @@ function _get(thumbprintAlgorithm, thumbprint, options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (certificateGetOptions !== null && certificateGetOptions !== undefined)
|
||||
{
|
||||
if (certificateGetOptions !== null && certificateGetOptions !== undefined) {
|
||||
select = certificateGetOptions.select;
|
||||
if (select !== null && select !== undefined && typeof select.valueOf() !== 'string') {
|
||||
throw new Error('select must be of type string.');
|
||||
}
|
||||
}
|
||||
if (certificateGetOptions !== null && certificateGetOptions !== undefined)
|
||||
{
|
||||
if (certificateGetOptions !== null && certificateGetOptions !== undefined) {
|
||||
timeout = certificateGetOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (certificateGetOptions !== null && certificateGetOptions !== undefined)
|
||||
{
|
||||
if (certificateGetOptions !== null && certificateGetOptions !== undefined) {
|
||||
clientRequestId = certificateGetOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (certificateGetOptions !== null && certificateGetOptions !== undefined)
|
||||
{
|
||||
if (certificateGetOptions !== null && certificateGetOptions !== undefined) {
|
||||
returnClientRequestId = certificateGetOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (certificateGetOptions !== null && certificateGetOptions !== undefined)
|
||||
{
|
||||
if (certificateGetOptions !== null && certificateGetOptions !== undefined) {
|
||||
ocpDate = certificateGetOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
@ -1194,22 +1170,19 @@ function _listNext(nextPageLink, options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (certificateListNextOptions !== null && certificateListNextOptions !== undefined)
|
||||
{
|
||||
if (certificateListNextOptions !== null && certificateListNextOptions !== undefined) {
|
||||
clientRequestId = certificateListNextOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (certificateListNextOptions !== null && certificateListNextOptions !== undefined)
|
||||
{
|
||||
if (certificateListNextOptions !== null && certificateListNextOptions !== undefined) {
|
||||
returnClientRequestId = certificateListNextOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (certificateListNextOptions !== null && certificateListNextOptions !== undefined)
|
||||
{
|
||||
if (certificateListNextOptions !== null && certificateListNextOptions !== undefined) {
|
||||
ocpDate = certificateListNextOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
@ -1346,8 +1319,8 @@ class CertificateOperations {
|
|||
* Certificate data. Possible values include: 'pfx', 'cer'
|
||||
*
|
||||
* @param {string} [certificate.password] The password to access the
|
||||
* Certificate's private key. This is required if the Certificate format is
|
||||
* pfx. It should be omitted if the Certificate format is cer.
|
||||
* Certificate's private key. This must be omitted if the Certificate format is
|
||||
* cer.
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
|
@ -1411,8 +1384,8 @@ class CertificateOperations {
|
|||
* Certificate data. Possible values include: 'pfx', 'cer'
|
||||
*
|
||||
* @param {string} [certificate.password] The password to access the
|
||||
* Certificate's private key. This is required if the Certificate format is
|
||||
* pfx. It should be omitted if the Certificate format is cer.
|
||||
* Certificate's private key. This must be omitted if the Certificate format is
|
||||
* cer.
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
|
|
|
@ -124,29 +124,25 @@ function _addUser(poolId, nodeId, user, options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (computeNodeAddUserOptions !== null && computeNodeAddUserOptions !== undefined)
|
||||
{
|
||||
if (computeNodeAddUserOptions !== null && computeNodeAddUserOptions !== undefined) {
|
||||
timeout = computeNodeAddUserOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (computeNodeAddUserOptions !== null && computeNodeAddUserOptions !== undefined)
|
||||
{
|
||||
if (computeNodeAddUserOptions !== null && computeNodeAddUserOptions !== undefined) {
|
||||
clientRequestId = computeNodeAddUserOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (computeNodeAddUserOptions !== null && computeNodeAddUserOptions !== undefined)
|
||||
{
|
||||
if (computeNodeAddUserOptions !== null && computeNodeAddUserOptions !== undefined) {
|
||||
returnClientRequestId = computeNodeAddUserOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (computeNodeAddUserOptions !== null && computeNodeAddUserOptions !== undefined)
|
||||
{
|
||||
if (computeNodeAddUserOptions !== null && computeNodeAddUserOptions !== undefined) {
|
||||
ocpDate = computeNodeAddUserOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
@ -345,29 +341,25 @@ function _deleteUser(poolId, nodeId, userName, options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (computeNodeDeleteUserOptions !== null && computeNodeDeleteUserOptions !== undefined)
|
||||
{
|
||||
if (computeNodeDeleteUserOptions !== null && computeNodeDeleteUserOptions !== undefined) {
|
||||
timeout = computeNodeDeleteUserOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (computeNodeDeleteUserOptions !== null && computeNodeDeleteUserOptions !== undefined)
|
||||
{
|
||||
if (computeNodeDeleteUserOptions !== null && computeNodeDeleteUserOptions !== undefined) {
|
||||
clientRequestId = computeNodeDeleteUserOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (computeNodeDeleteUserOptions !== null && computeNodeDeleteUserOptions !== undefined)
|
||||
{
|
||||
if (computeNodeDeleteUserOptions !== null && computeNodeDeleteUserOptions !== undefined) {
|
||||
returnClientRequestId = computeNodeDeleteUserOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (computeNodeDeleteUserOptions !== null && computeNodeDeleteUserOptions !== undefined)
|
||||
{
|
||||
if (computeNodeDeleteUserOptions !== null && computeNodeDeleteUserOptions !== undefined) {
|
||||
ocpDate = computeNodeDeleteUserOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
@ -580,29 +572,25 @@ function _updateUser(poolId, nodeId, userName, nodeUpdateUserParameter, options,
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (computeNodeUpdateUserOptions !== null && computeNodeUpdateUserOptions !== undefined)
|
||||
{
|
||||
if (computeNodeUpdateUserOptions !== null && computeNodeUpdateUserOptions !== undefined) {
|
||||
timeout = computeNodeUpdateUserOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (computeNodeUpdateUserOptions !== null && computeNodeUpdateUserOptions !== undefined)
|
||||
{
|
||||
if (computeNodeUpdateUserOptions !== null && computeNodeUpdateUserOptions !== undefined) {
|
||||
clientRequestId = computeNodeUpdateUserOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (computeNodeUpdateUserOptions !== null && computeNodeUpdateUserOptions !== undefined)
|
||||
{
|
||||
if (computeNodeUpdateUserOptions !== null && computeNodeUpdateUserOptions !== undefined) {
|
||||
returnClientRequestId = computeNodeUpdateUserOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (computeNodeUpdateUserOptions !== null && computeNodeUpdateUserOptions !== undefined)
|
||||
{
|
||||
if (computeNodeUpdateUserOptions !== null && computeNodeUpdateUserOptions !== undefined) {
|
||||
ocpDate = computeNodeUpdateUserOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
@ -797,36 +785,31 @@ function _get(poolId, nodeId, options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (computeNodeGetOptions !== null && computeNodeGetOptions !== undefined)
|
||||
{
|
||||
if (computeNodeGetOptions !== null && computeNodeGetOptions !== undefined) {
|
||||
select = computeNodeGetOptions.select;
|
||||
if (select !== null && select !== undefined && typeof select.valueOf() !== 'string') {
|
||||
throw new Error('select must be of type string.');
|
||||
}
|
||||
}
|
||||
if (computeNodeGetOptions !== null && computeNodeGetOptions !== undefined)
|
||||
{
|
||||
if (computeNodeGetOptions !== null && computeNodeGetOptions !== undefined) {
|
||||
timeout = computeNodeGetOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (computeNodeGetOptions !== null && computeNodeGetOptions !== undefined)
|
||||
{
|
||||
if (computeNodeGetOptions !== null && computeNodeGetOptions !== undefined) {
|
||||
clientRequestId = computeNodeGetOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (computeNodeGetOptions !== null && computeNodeGetOptions !== undefined)
|
||||
{
|
||||
if (computeNodeGetOptions !== null && computeNodeGetOptions !== undefined) {
|
||||
returnClientRequestId = computeNodeGetOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (computeNodeGetOptions !== null && computeNodeGetOptions !== undefined)
|
||||
{
|
||||
if (computeNodeGetOptions !== null && computeNodeGetOptions !== undefined) {
|
||||
ocpDate = computeNodeGetOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
@ -1036,37 +1019,32 @@ function _reboot(poolId, nodeId, options, callback) {
|
|||
let ocpDate;
|
||||
let nodeRebootParameter;
|
||||
try {
|
||||
if (computeNodeRebootOptions !== null && computeNodeRebootOptions !== undefined)
|
||||
{
|
||||
if (computeNodeRebootOptions !== null && computeNodeRebootOptions !== undefined) {
|
||||
timeout = computeNodeRebootOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (computeNodeRebootOptions !== null && computeNodeRebootOptions !== undefined)
|
||||
{
|
||||
if (computeNodeRebootOptions !== null && computeNodeRebootOptions !== undefined) {
|
||||
clientRequestId = computeNodeRebootOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (computeNodeRebootOptions !== null && computeNodeRebootOptions !== undefined)
|
||||
{
|
||||
if (computeNodeRebootOptions !== null && computeNodeRebootOptions !== undefined) {
|
||||
returnClientRequestId = computeNodeRebootOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (computeNodeRebootOptions !== null && computeNodeRebootOptions !== undefined)
|
||||
{
|
||||
if (computeNodeRebootOptions !== null && computeNodeRebootOptions !== undefined) {
|
||||
ocpDate = computeNodeRebootOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
throw new Error('ocpDate must be of type date.');
|
||||
}
|
||||
}
|
||||
if (nodeRebootOption !== null && nodeRebootOption !== undefined)
|
||||
{
|
||||
if (nodeRebootOption !== null && nodeRebootOption !== undefined) {
|
||||
nodeRebootParameter = new client.models['NodeRebootParameter']();
|
||||
nodeRebootParameter.nodeRebootOption = nodeRebootOption;
|
||||
}
|
||||
|
@ -1269,37 +1247,32 @@ function _reimage(poolId, nodeId, options, callback) {
|
|||
let ocpDate;
|
||||
let nodeReimageParameter;
|
||||
try {
|
||||
if (computeNodeReimageOptions !== null && computeNodeReimageOptions !== undefined)
|
||||
{
|
||||
if (computeNodeReimageOptions !== null && computeNodeReimageOptions !== undefined) {
|
||||
timeout = computeNodeReimageOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (computeNodeReimageOptions !== null && computeNodeReimageOptions !== undefined)
|
||||
{
|
||||
if (computeNodeReimageOptions !== null && computeNodeReimageOptions !== undefined) {
|
||||
clientRequestId = computeNodeReimageOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (computeNodeReimageOptions !== null && computeNodeReimageOptions !== undefined)
|
||||
{
|
||||
if (computeNodeReimageOptions !== null && computeNodeReimageOptions !== undefined) {
|
||||
returnClientRequestId = computeNodeReimageOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (computeNodeReimageOptions !== null && computeNodeReimageOptions !== undefined)
|
||||
{
|
||||
if (computeNodeReimageOptions !== null && computeNodeReimageOptions !== undefined) {
|
||||
ocpDate = computeNodeReimageOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
throw new Error('ocpDate must be of type date.');
|
||||
}
|
||||
}
|
||||
if (nodeReimageOption !== null && nodeReimageOption !== undefined)
|
||||
{
|
||||
if (nodeReimageOption !== null && nodeReimageOption !== undefined) {
|
||||
nodeReimageParameter = new client.models['NodeReimageParameter']();
|
||||
nodeReimageParameter.nodeReimageOption = nodeReimageOption;
|
||||
}
|
||||
|
@ -1503,37 +1476,32 @@ function _disableScheduling(poolId, nodeId, options, callback) {
|
|||
let ocpDate;
|
||||
let nodeDisableSchedulingParameter;
|
||||
try {
|
||||
if (computeNodeDisableSchedulingOptions !== null && computeNodeDisableSchedulingOptions !== undefined)
|
||||
{
|
||||
if (computeNodeDisableSchedulingOptions !== null && computeNodeDisableSchedulingOptions !== undefined) {
|
||||
timeout = computeNodeDisableSchedulingOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (computeNodeDisableSchedulingOptions !== null && computeNodeDisableSchedulingOptions !== undefined)
|
||||
{
|
||||
if (computeNodeDisableSchedulingOptions !== null && computeNodeDisableSchedulingOptions !== undefined) {
|
||||
clientRequestId = computeNodeDisableSchedulingOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (computeNodeDisableSchedulingOptions !== null && computeNodeDisableSchedulingOptions !== undefined)
|
||||
{
|
||||
if (computeNodeDisableSchedulingOptions !== null && computeNodeDisableSchedulingOptions !== undefined) {
|
||||
returnClientRequestId = computeNodeDisableSchedulingOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (computeNodeDisableSchedulingOptions !== null && computeNodeDisableSchedulingOptions !== undefined)
|
||||
{
|
||||
if (computeNodeDisableSchedulingOptions !== null && computeNodeDisableSchedulingOptions !== undefined) {
|
||||
ocpDate = computeNodeDisableSchedulingOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
throw new Error('ocpDate must be of type date.');
|
||||
}
|
||||
}
|
||||
if (nodeDisableSchedulingOption !== null && nodeDisableSchedulingOption !== undefined)
|
||||
{
|
||||
if (nodeDisableSchedulingOption !== null && nodeDisableSchedulingOption !== undefined) {
|
||||
nodeDisableSchedulingParameter = new client.models['NodeDisableSchedulingParameter']();
|
||||
nodeDisableSchedulingParameter.nodeDisableSchedulingOption = nodeDisableSchedulingOption;
|
||||
}
|
||||
|
@ -1724,29 +1692,25 @@ function _enableScheduling(poolId, nodeId, options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (computeNodeEnableSchedulingOptions !== null && computeNodeEnableSchedulingOptions !== undefined)
|
||||
{
|
||||
if (computeNodeEnableSchedulingOptions !== null && computeNodeEnableSchedulingOptions !== undefined) {
|
||||
timeout = computeNodeEnableSchedulingOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (computeNodeEnableSchedulingOptions !== null && computeNodeEnableSchedulingOptions !== undefined)
|
||||
{
|
||||
if (computeNodeEnableSchedulingOptions !== null && computeNodeEnableSchedulingOptions !== undefined) {
|
||||
clientRequestId = computeNodeEnableSchedulingOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (computeNodeEnableSchedulingOptions !== null && computeNodeEnableSchedulingOptions !== undefined)
|
||||
{
|
||||
if (computeNodeEnableSchedulingOptions !== null && computeNodeEnableSchedulingOptions !== undefined) {
|
||||
returnClientRequestId = computeNodeEnableSchedulingOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (computeNodeEnableSchedulingOptions !== null && computeNodeEnableSchedulingOptions !== undefined)
|
||||
{
|
||||
if (computeNodeEnableSchedulingOptions !== null && computeNodeEnableSchedulingOptions !== undefined) {
|
||||
ocpDate = computeNodeEnableSchedulingOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
@ -1932,29 +1896,25 @@ function _getRemoteLoginSettings(poolId, nodeId, options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (computeNodeGetRemoteLoginSettingsOptions !== null && computeNodeGetRemoteLoginSettingsOptions !== undefined)
|
||||
{
|
||||
if (computeNodeGetRemoteLoginSettingsOptions !== null && computeNodeGetRemoteLoginSettingsOptions !== undefined) {
|
||||
timeout = computeNodeGetRemoteLoginSettingsOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (computeNodeGetRemoteLoginSettingsOptions !== null && computeNodeGetRemoteLoginSettingsOptions !== undefined)
|
||||
{
|
||||
if (computeNodeGetRemoteLoginSettingsOptions !== null && computeNodeGetRemoteLoginSettingsOptions !== undefined) {
|
||||
clientRequestId = computeNodeGetRemoteLoginSettingsOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (computeNodeGetRemoteLoginSettingsOptions !== null && computeNodeGetRemoteLoginSettingsOptions !== undefined)
|
||||
{
|
||||
if (computeNodeGetRemoteLoginSettingsOptions !== null && computeNodeGetRemoteLoginSettingsOptions !== undefined) {
|
||||
returnClientRequestId = computeNodeGetRemoteLoginSettingsOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (computeNodeGetRemoteLoginSettingsOptions !== null && computeNodeGetRemoteLoginSettingsOptions !== undefined)
|
||||
{
|
||||
if (computeNodeGetRemoteLoginSettingsOptions !== null && computeNodeGetRemoteLoginSettingsOptions !== undefined) {
|
||||
ocpDate = computeNodeGetRemoteLoginSettingsOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
@ -2154,29 +2114,25 @@ function _getRemoteDesktop(poolId, nodeId, options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (computeNodeGetRemoteDesktopOptions !== null && computeNodeGetRemoteDesktopOptions !== undefined)
|
||||
{
|
||||
if (computeNodeGetRemoteDesktopOptions !== null && computeNodeGetRemoteDesktopOptions !== undefined) {
|
||||
timeout = computeNodeGetRemoteDesktopOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (computeNodeGetRemoteDesktopOptions !== null && computeNodeGetRemoteDesktopOptions !== undefined)
|
||||
{
|
||||
if (computeNodeGetRemoteDesktopOptions !== null && computeNodeGetRemoteDesktopOptions !== undefined) {
|
||||
clientRequestId = computeNodeGetRemoteDesktopOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (computeNodeGetRemoteDesktopOptions !== null && computeNodeGetRemoteDesktopOptions !== undefined)
|
||||
{
|
||||
if (computeNodeGetRemoteDesktopOptions !== null && computeNodeGetRemoteDesktopOptions !== undefined) {
|
||||
returnClientRequestId = computeNodeGetRemoteDesktopOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (computeNodeGetRemoteDesktopOptions !== null && computeNodeGetRemoteDesktopOptions !== undefined)
|
||||
{
|
||||
if (computeNodeGetRemoteDesktopOptions !== null && computeNodeGetRemoteDesktopOptions !== undefined) {
|
||||
ocpDate = computeNodeGetRemoteDesktopOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
@ -2391,29 +2347,25 @@ function _uploadBatchServiceLogs(poolId, nodeId, uploadBatchServiceLogsConfigura
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (computeNodeUploadBatchServiceLogsOptions !== null && computeNodeUploadBatchServiceLogsOptions !== undefined)
|
||||
{
|
||||
if (computeNodeUploadBatchServiceLogsOptions !== null && computeNodeUploadBatchServiceLogsOptions !== undefined) {
|
||||
timeout = computeNodeUploadBatchServiceLogsOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (computeNodeUploadBatchServiceLogsOptions !== null && computeNodeUploadBatchServiceLogsOptions !== undefined)
|
||||
{
|
||||
if (computeNodeUploadBatchServiceLogsOptions !== null && computeNodeUploadBatchServiceLogsOptions !== undefined) {
|
||||
clientRequestId = computeNodeUploadBatchServiceLogsOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (computeNodeUploadBatchServiceLogsOptions !== null && computeNodeUploadBatchServiceLogsOptions !== undefined)
|
||||
{
|
||||
if (computeNodeUploadBatchServiceLogsOptions !== null && computeNodeUploadBatchServiceLogsOptions !== undefined) {
|
||||
returnClientRequestId = computeNodeUploadBatchServiceLogsOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (computeNodeUploadBatchServiceLogsOptions !== null && computeNodeUploadBatchServiceLogsOptions !== undefined)
|
||||
{
|
||||
if (computeNodeUploadBatchServiceLogsOptions !== null && computeNodeUploadBatchServiceLogsOptions !== undefined) {
|
||||
ocpDate = computeNodeUploadBatchServiceLogsOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
@ -2629,50 +2581,43 @@ function _list(poolId, options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (computeNodeListOptions !== null && computeNodeListOptions !== undefined)
|
||||
{
|
||||
if (computeNodeListOptions !== null && computeNodeListOptions !== undefined) {
|
||||
filter = computeNodeListOptions.filter;
|
||||
if (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') {
|
||||
throw new Error('filter must be of type string.');
|
||||
}
|
||||
}
|
||||
if (computeNodeListOptions !== null && computeNodeListOptions !== undefined)
|
||||
{
|
||||
if (computeNodeListOptions !== null && computeNodeListOptions !== undefined) {
|
||||
select = computeNodeListOptions.select;
|
||||
if (select !== null && select !== undefined && typeof select.valueOf() !== 'string') {
|
||||
throw new Error('select must be of type string.');
|
||||
}
|
||||
}
|
||||
if (computeNodeListOptions !== null && computeNodeListOptions !== undefined)
|
||||
{
|
||||
if (computeNodeListOptions !== null && computeNodeListOptions !== undefined) {
|
||||
maxResults = computeNodeListOptions.maxResults;
|
||||
if (maxResults !== null && maxResults !== undefined && typeof maxResults !== 'number') {
|
||||
throw new Error('maxResults must be of type number.');
|
||||
}
|
||||
}
|
||||
if (computeNodeListOptions !== null && computeNodeListOptions !== undefined)
|
||||
{
|
||||
if (computeNodeListOptions !== null && computeNodeListOptions !== undefined) {
|
||||
timeout = computeNodeListOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (computeNodeListOptions !== null && computeNodeListOptions !== undefined)
|
||||
{
|
||||
if (computeNodeListOptions !== null && computeNodeListOptions !== undefined) {
|
||||
clientRequestId = computeNodeListOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (computeNodeListOptions !== null && computeNodeListOptions !== undefined)
|
||||
{
|
||||
if (computeNodeListOptions !== null && computeNodeListOptions !== undefined) {
|
||||
returnClientRequestId = computeNodeListOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (computeNodeListOptions !== null && computeNodeListOptions !== undefined)
|
||||
{
|
||||
if (computeNodeListOptions !== null && computeNodeListOptions !== undefined) {
|
||||
ocpDate = computeNodeListOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
@ -2858,22 +2803,19 @@ function _listNext(nextPageLink, options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (computeNodeListNextOptions !== null && computeNodeListNextOptions !== undefined)
|
||||
{
|
||||
if (computeNodeListNextOptions !== null && computeNodeListNextOptions !== undefined) {
|
||||
clientRequestId = computeNodeListNextOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (computeNodeListNextOptions !== null && computeNodeListNextOptions !== undefined)
|
||||
{
|
||||
if (computeNodeListNextOptions !== null && computeNodeListNextOptions !== undefined) {
|
||||
returnClientRequestId = computeNodeListNextOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (computeNodeListNextOptions !== null && computeNodeListNextOptions !== undefined)
|
||||
{
|
||||
if (computeNodeListNextOptions !== null && computeNodeListNextOptions !== undefined) {
|
||||
ocpDate = computeNodeListNextOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
|
|
@ -110,29 +110,25 @@ function _deleteFromTask(jobId, taskId, filePath, options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (fileDeleteFromTaskOptions !== null && fileDeleteFromTaskOptions !== undefined)
|
||||
{
|
||||
if (fileDeleteFromTaskOptions !== null && fileDeleteFromTaskOptions !== undefined) {
|
||||
timeout = fileDeleteFromTaskOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (fileDeleteFromTaskOptions !== null && fileDeleteFromTaskOptions !== undefined)
|
||||
{
|
||||
if (fileDeleteFromTaskOptions !== null && fileDeleteFromTaskOptions !== undefined) {
|
||||
clientRequestId = fileDeleteFromTaskOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (fileDeleteFromTaskOptions !== null && fileDeleteFromTaskOptions !== undefined)
|
||||
{
|
||||
if (fileDeleteFromTaskOptions !== null && fileDeleteFromTaskOptions !== undefined) {
|
||||
returnClientRequestId = fileDeleteFromTaskOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (fileDeleteFromTaskOptions !== null && fileDeleteFromTaskOptions !== undefined)
|
||||
{
|
||||
if (fileDeleteFromTaskOptions !== null && fileDeleteFromTaskOptions !== undefined) {
|
||||
ocpDate = fileDeleteFromTaskOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
@ -333,52 +329,45 @@ function _getFromTask(jobId, taskId, filePath, options, callback) {
|
|||
let ifModifiedSince;
|
||||
let ifUnmodifiedSince;
|
||||
try {
|
||||
if (fileGetFromTaskOptions !== null && fileGetFromTaskOptions !== undefined)
|
||||
{
|
||||
if (fileGetFromTaskOptions !== null && fileGetFromTaskOptions !== undefined) {
|
||||
timeout = fileGetFromTaskOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (fileGetFromTaskOptions !== null && fileGetFromTaskOptions !== undefined)
|
||||
{
|
||||
if (fileGetFromTaskOptions !== null && fileGetFromTaskOptions !== undefined) {
|
||||
clientRequestId = fileGetFromTaskOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (fileGetFromTaskOptions !== null && fileGetFromTaskOptions !== undefined)
|
||||
{
|
||||
if (fileGetFromTaskOptions !== null && fileGetFromTaskOptions !== undefined) {
|
||||
returnClientRequestId = fileGetFromTaskOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (fileGetFromTaskOptions !== null && fileGetFromTaskOptions !== undefined)
|
||||
{
|
||||
if (fileGetFromTaskOptions !== null && fileGetFromTaskOptions !== undefined) {
|
||||
ocpDate = fileGetFromTaskOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
throw new Error('ocpDate must be of type date.');
|
||||
}
|
||||
}
|
||||
if (fileGetFromTaskOptions !== null && fileGetFromTaskOptions !== undefined)
|
||||
{
|
||||
if (fileGetFromTaskOptions !== null && fileGetFromTaskOptions !== undefined) {
|
||||
ocpRange = fileGetFromTaskOptions.ocpRange;
|
||||
if (ocpRange !== null && ocpRange !== undefined && typeof ocpRange.valueOf() !== 'string') {
|
||||
throw new Error('ocpRange must be of type string.');
|
||||
}
|
||||
}
|
||||
if (fileGetFromTaskOptions !== null && fileGetFromTaskOptions !== undefined)
|
||||
{
|
||||
if (fileGetFromTaskOptions !== null && fileGetFromTaskOptions !== undefined) {
|
||||
ifModifiedSince = fileGetFromTaskOptions.ifModifiedSince;
|
||||
if (ifModifiedSince && !(ifModifiedSince instanceof Date ||
|
||||
(typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) {
|
||||
throw new Error('ifModifiedSince must be of type date.');
|
||||
}
|
||||
}
|
||||
if (fileGetFromTaskOptions !== null && fileGetFromTaskOptions !== undefined)
|
||||
{
|
||||
if (fileGetFromTaskOptions !== null && fileGetFromTaskOptions !== undefined) {
|
||||
ifUnmodifiedSince = fileGetFromTaskOptions.ifUnmodifiedSince;
|
||||
if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date ||
|
||||
(typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) {
|
||||
|
@ -584,45 +573,39 @@ function _getPropertiesFromTask(jobId, taskId, filePath, options, callback) {
|
|||
let ifModifiedSince;
|
||||
let ifUnmodifiedSince;
|
||||
try {
|
||||
if (fileGetPropertiesFromTaskOptions !== null && fileGetPropertiesFromTaskOptions !== undefined)
|
||||
{
|
||||
if (fileGetPropertiesFromTaskOptions !== null && fileGetPropertiesFromTaskOptions !== undefined) {
|
||||
timeout = fileGetPropertiesFromTaskOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (fileGetPropertiesFromTaskOptions !== null && fileGetPropertiesFromTaskOptions !== undefined)
|
||||
{
|
||||
if (fileGetPropertiesFromTaskOptions !== null && fileGetPropertiesFromTaskOptions !== undefined) {
|
||||
clientRequestId = fileGetPropertiesFromTaskOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (fileGetPropertiesFromTaskOptions !== null && fileGetPropertiesFromTaskOptions !== undefined)
|
||||
{
|
||||
if (fileGetPropertiesFromTaskOptions !== null && fileGetPropertiesFromTaskOptions !== undefined) {
|
||||
returnClientRequestId = fileGetPropertiesFromTaskOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (fileGetPropertiesFromTaskOptions !== null && fileGetPropertiesFromTaskOptions !== undefined)
|
||||
{
|
||||
if (fileGetPropertiesFromTaskOptions !== null && fileGetPropertiesFromTaskOptions !== undefined) {
|
||||
ocpDate = fileGetPropertiesFromTaskOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
throw new Error('ocpDate must be of type date.');
|
||||
}
|
||||
}
|
||||
if (fileGetPropertiesFromTaskOptions !== null && fileGetPropertiesFromTaskOptions !== undefined)
|
||||
{
|
||||
if (fileGetPropertiesFromTaskOptions !== null && fileGetPropertiesFromTaskOptions !== undefined) {
|
||||
ifModifiedSince = fileGetPropertiesFromTaskOptions.ifModifiedSince;
|
||||
if (ifModifiedSince && !(ifModifiedSince instanceof Date ||
|
||||
(typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) {
|
||||
throw new Error('ifModifiedSince must be of type date.');
|
||||
}
|
||||
}
|
||||
if (fileGetPropertiesFromTaskOptions !== null && fileGetPropertiesFromTaskOptions !== undefined)
|
||||
{
|
||||
if (fileGetPropertiesFromTaskOptions !== null && fileGetPropertiesFromTaskOptions !== undefined) {
|
||||
ifUnmodifiedSince = fileGetPropertiesFromTaskOptions.ifUnmodifiedSince;
|
||||
if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date ||
|
||||
(typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) {
|
||||
|
@ -822,29 +805,25 @@ function _deleteFromComputeNode(poolId, nodeId, filePath, options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (fileDeleteFromComputeNodeOptions !== null && fileDeleteFromComputeNodeOptions !== undefined)
|
||||
{
|
||||
if (fileDeleteFromComputeNodeOptions !== null && fileDeleteFromComputeNodeOptions !== undefined) {
|
||||
timeout = fileDeleteFromComputeNodeOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (fileDeleteFromComputeNodeOptions !== null && fileDeleteFromComputeNodeOptions !== undefined)
|
||||
{
|
||||
if (fileDeleteFromComputeNodeOptions !== null && fileDeleteFromComputeNodeOptions !== undefined) {
|
||||
clientRequestId = fileDeleteFromComputeNodeOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (fileDeleteFromComputeNodeOptions !== null && fileDeleteFromComputeNodeOptions !== undefined)
|
||||
{
|
||||
if (fileDeleteFromComputeNodeOptions !== null && fileDeleteFromComputeNodeOptions !== undefined) {
|
||||
returnClientRequestId = fileDeleteFromComputeNodeOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (fileDeleteFromComputeNodeOptions !== null && fileDeleteFromComputeNodeOptions !== undefined)
|
||||
{
|
||||
if (fileDeleteFromComputeNodeOptions !== null && fileDeleteFromComputeNodeOptions !== undefined) {
|
||||
ocpDate = fileDeleteFromComputeNodeOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
@ -1047,52 +1026,45 @@ function _getFromComputeNode(poolId, nodeId, filePath, options, callback) {
|
|||
let ifModifiedSince;
|
||||
let ifUnmodifiedSince;
|
||||
try {
|
||||
if (fileGetFromComputeNodeOptions !== null && fileGetFromComputeNodeOptions !== undefined)
|
||||
{
|
||||
if (fileGetFromComputeNodeOptions !== null && fileGetFromComputeNodeOptions !== undefined) {
|
||||
timeout = fileGetFromComputeNodeOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (fileGetFromComputeNodeOptions !== null && fileGetFromComputeNodeOptions !== undefined)
|
||||
{
|
||||
if (fileGetFromComputeNodeOptions !== null && fileGetFromComputeNodeOptions !== undefined) {
|
||||
clientRequestId = fileGetFromComputeNodeOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (fileGetFromComputeNodeOptions !== null && fileGetFromComputeNodeOptions !== undefined)
|
||||
{
|
||||
if (fileGetFromComputeNodeOptions !== null && fileGetFromComputeNodeOptions !== undefined) {
|
||||
returnClientRequestId = fileGetFromComputeNodeOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (fileGetFromComputeNodeOptions !== null && fileGetFromComputeNodeOptions !== undefined)
|
||||
{
|
||||
if (fileGetFromComputeNodeOptions !== null && fileGetFromComputeNodeOptions !== undefined) {
|
||||
ocpDate = fileGetFromComputeNodeOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
throw new Error('ocpDate must be of type date.');
|
||||
}
|
||||
}
|
||||
if (fileGetFromComputeNodeOptions !== null && fileGetFromComputeNodeOptions !== undefined)
|
||||
{
|
||||
if (fileGetFromComputeNodeOptions !== null && fileGetFromComputeNodeOptions !== undefined) {
|
||||
ocpRange = fileGetFromComputeNodeOptions.ocpRange;
|
||||
if (ocpRange !== null && ocpRange !== undefined && typeof ocpRange.valueOf() !== 'string') {
|
||||
throw new Error('ocpRange must be of type string.');
|
||||
}
|
||||
}
|
||||
if (fileGetFromComputeNodeOptions !== null && fileGetFromComputeNodeOptions !== undefined)
|
||||
{
|
||||
if (fileGetFromComputeNodeOptions !== null && fileGetFromComputeNodeOptions !== undefined) {
|
||||
ifModifiedSince = fileGetFromComputeNodeOptions.ifModifiedSince;
|
||||
if (ifModifiedSince && !(ifModifiedSince instanceof Date ||
|
||||
(typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) {
|
||||
throw new Error('ifModifiedSince must be of type date.');
|
||||
}
|
||||
}
|
||||
if (fileGetFromComputeNodeOptions !== null && fileGetFromComputeNodeOptions !== undefined)
|
||||
{
|
||||
if (fileGetFromComputeNodeOptions !== null && fileGetFromComputeNodeOptions !== undefined) {
|
||||
ifUnmodifiedSince = fileGetFromComputeNodeOptions.ifUnmodifiedSince;
|
||||
if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date ||
|
||||
(typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) {
|
||||
|
@ -1300,45 +1272,39 @@ function _getPropertiesFromComputeNode(poolId, nodeId, filePath, options, callba
|
|||
let ifModifiedSince;
|
||||
let ifUnmodifiedSince;
|
||||
try {
|
||||
if (fileGetPropertiesFromComputeNodeOptions !== null && fileGetPropertiesFromComputeNodeOptions !== undefined)
|
||||
{
|
||||
if (fileGetPropertiesFromComputeNodeOptions !== null && fileGetPropertiesFromComputeNodeOptions !== undefined) {
|
||||
timeout = fileGetPropertiesFromComputeNodeOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (fileGetPropertiesFromComputeNodeOptions !== null && fileGetPropertiesFromComputeNodeOptions !== undefined)
|
||||
{
|
||||
if (fileGetPropertiesFromComputeNodeOptions !== null && fileGetPropertiesFromComputeNodeOptions !== undefined) {
|
||||
clientRequestId = fileGetPropertiesFromComputeNodeOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (fileGetPropertiesFromComputeNodeOptions !== null && fileGetPropertiesFromComputeNodeOptions !== undefined)
|
||||
{
|
||||
if (fileGetPropertiesFromComputeNodeOptions !== null && fileGetPropertiesFromComputeNodeOptions !== undefined) {
|
||||
returnClientRequestId = fileGetPropertiesFromComputeNodeOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (fileGetPropertiesFromComputeNodeOptions !== null && fileGetPropertiesFromComputeNodeOptions !== undefined)
|
||||
{
|
||||
if (fileGetPropertiesFromComputeNodeOptions !== null && fileGetPropertiesFromComputeNodeOptions !== undefined) {
|
||||
ocpDate = fileGetPropertiesFromComputeNodeOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
throw new Error('ocpDate must be of type date.');
|
||||
}
|
||||
}
|
||||
if (fileGetPropertiesFromComputeNodeOptions !== null && fileGetPropertiesFromComputeNodeOptions !== undefined)
|
||||
{
|
||||
if (fileGetPropertiesFromComputeNodeOptions !== null && fileGetPropertiesFromComputeNodeOptions !== undefined) {
|
||||
ifModifiedSince = fileGetPropertiesFromComputeNodeOptions.ifModifiedSince;
|
||||
if (ifModifiedSince && !(ifModifiedSince instanceof Date ||
|
||||
(typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) {
|
||||
throw new Error('ifModifiedSince must be of type date.');
|
||||
}
|
||||
}
|
||||
if (fileGetPropertiesFromComputeNodeOptions !== null && fileGetPropertiesFromComputeNodeOptions !== undefined)
|
||||
{
|
||||
if (fileGetPropertiesFromComputeNodeOptions !== null && fileGetPropertiesFromComputeNodeOptions !== undefined) {
|
||||
ifUnmodifiedSince = fileGetPropertiesFromComputeNodeOptions.ifUnmodifiedSince;
|
||||
if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date ||
|
||||
(typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) {
|
||||
|
@ -1538,43 +1504,37 @@ function _listFromTask(jobId, taskId, options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (fileListFromTaskOptions !== null && fileListFromTaskOptions !== undefined)
|
||||
{
|
||||
if (fileListFromTaskOptions !== null && fileListFromTaskOptions !== undefined) {
|
||||
filter = fileListFromTaskOptions.filter;
|
||||
if (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') {
|
||||
throw new Error('filter must be of type string.');
|
||||
}
|
||||
}
|
||||
if (fileListFromTaskOptions !== null && fileListFromTaskOptions !== undefined)
|
||||
{
|
||||
if (fileListFromTaskOptions !== null && fileListFromTaskOptions !== undefined) {
|
||||
maxResults = fileListFromTaskOptions.maxResults;
|
||||
if (maxResults !== null && maxResults !== undefined && typeof maxResults !== 'number') {
|
||||
throw new Error('maxResults must be of type number.');
|
||||
}
|
||||
}
|
||||
if (fileListFromTaskOptions !== null && fileListFromTaskOptions !== undefined)
|
||||
{
|
||||
if (fileListFromTaskOptions !== null && fileListFromTaskOptions !== undefined) {
|
||||
timeout = fileListFromTaskOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (fileListFromTaskOptions !== null && fileListFromTaskOptions !== undefined)
|
||||
{
|
||||
if (fileListFromTaskOptions !== null && fileListFromTaskOptions !== undefined) {
|
||||
clientRequestId = fileListFromTaskOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (fileListFromTaskOptions !== null && fileListFromTaskOptions !== undefined)
|
||||
{
|
||||
if (fileListFromTaskOptions !== null && fileListFromTaskOptions !== undefined) {
|
||||
returnClientRequestId = fileListFromTaskOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (fileListFromTaskOptions !== null && fileListFromTaskOptions !== undefined)
|
||||
{
|
||||
if (fileListFromTaskOptions !== null && fileListFromTaskOptions !== undefined) {
|
||||
ocpDate = fileListFromTaskOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
@ -1796,43 +1756,37 @@ function _listFromComputeNode(poolId, nodeId, options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (fileListFromComputeNodeOptions !== null && fileListFromComputeNodeOptions !== undefined)
|
||||
{
|
||||
if (fileListFromComputeNodeOptions !== null && fileListFromComputeNodeOptions !== undefined) {
|
||||
filter = fileListFromComputeNodeOptions.filter;
|
||||
if (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') {
|
||||
throw new Error('filter must be of type string.');
|
||||
}
|
||||
}
|
||||
if (fileListFromComputeNodeOptions !== null && fileListFromComputeNodeOptions !== undefined)
|
||||
{
|
||||
if (fileListFromComputeNodeOptions !== null && fileListFromComputeNodeOptions !== undefined) {
|
||||
maxResults = fileListFromComputeNodeOptions.maxResults;
|
||||
if (maxResults !== null && maxResults !== undefined && typeof maxResults !== 'number') {
|
||||
throw new Error('maxResults must be of type number.');
|
||||
}
|
||||
}
|
||||
if (fileListFromComputeNodeOptions !== null && fileListFromComputeNodeOptions !== undefined)
|
||||
{
|
||||
if (fileListFromComputeNodeOptions !== null && fileListFromComputeNodeOptions !== undefined) {
|
||||
timeout = fileListFromComputeNodeOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (fileListFromComputeNodeOptions !== null && fileListFromComputeNodeOptions !== undefined)
|
||||
{
|
||||
if (fileListFromComputeNodeOptions !== null && fileListFromComputeNodeOptions !== undefined) {
|
||||
clientRequestId = fileListFromComputeNodeOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (fileListFromComputeNodeOptions !== null && fileListFromComputeNodeOptions !== undefined)
|
||||
{
|
||||
if (fileListFromComputeNodeOptions !== null && fileListFromComputeNodeOptions !== undefined) {
|
||||
returnClientRequestId = fileListFromComputeNodeOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (fileListFromComputeNodeOptions !== null && fileListFromComputeNodeOptions !== undefined)
|
||||
{
|
||||
if (fileListFromComputeNodeOptions !== null && fileListFromComputeNodeOptions !== undefined) {
|
||||
ocpDate = fileListFromComputeNodeOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
@ -2019,22 +1973,19 @@ function _listFromTaskNext(nextPageLink, options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (fileListFromTaskNextOptions !== null && fileListFromTaskNextOptions !== undefined)
|
||||
{
|
||||
if (fileListFromTaskNextOptions !== null && fileListFromTaskNextOptions !== undefined) {
|
||||
clientRequestId = fileListFromTaskNextOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (fileListFromTaskNextOptions !== null && fileListFromTaskNextOptions !== undefined)
|
||||
{
|
||||
if (fileListFromTaskNextOptions !== null && fileListFromTaskNextOptions !== undefined) {
|
||||
returnClientRequestId = fileListFromTaskNextOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (fileListFromTaskNextOptions !== null && fileListFromTaskNextOptions !== undefined)
|
||||
{
|
||||
if (fileListFromTaskNextOptions !== null && fileListFromTaskNextOptions !== undefined) {
|
||||
ocpDate = fileListFromTaskNextOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
@ -2203,22 +2154,19 @@ function _listFromComputeNodeNext(nextPageLink, options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (fileListFromComputeNodeNextOptions !== null && fileListFromComputeNodeNextOptions !== undefined)
|
||||
{
|
||||
if (fileListFromComputeNodeNextOptions !== null && fileListFromComputeNodeNextOptions !== undefined) {
|
||||
clientRequestId = fileListFromComputeNodeNextOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (fileListFromComputeNodeNextOptions !== null && fileListFromComputeNodeNextOptions !== undefined)
|
||||
{
|
||||
if (fileListFromComputeNodeNextOptions !== null && fileListFromComputeNodeNextOptions !== undefined) {
|
||||
returnClientRequestId = fileListFromComputeNodeNextOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (fileListFromComputeNodeNextOptions !== null && fileListFromComputeNodeNextOptions !== undefined)
|
||||
{
|
||||
if (fileListFromComputeNodeNextOptions !== null && fileListFromComputeNodeNextOptions !== undefined) {
|
||||
ocpDate = fileListFromComputeNodeNextOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
|
|
@ -669,15 +669,12 @@ export interface Pool {
|
|||
*
|
||||
* @param {string}
|
||||
* [pool.virtualMachineConfiguration.imageReference.virtualMachineImageId] The
|
||||
* ARM resource identifier of the Virtual Machine Image or Shared Image Gallery
|
||||
* Image. Computes Compute Nodes of the Pool will be created using this Image
|
||||
* Id. This is of either the form
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
|
||||
* for Virtual Machine Image or
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}
|
||||
* for SIG image. This property is mutually exclusive with other ImageReference
|
||||
* properties. For Virtual Machine Image it must be in the same region and
|
||||
* subscription as the Azure Batch account. For SIG image it must have replicas
|
||||
* ARM resource identifier of the Shared Image Gallery Image. Compute Nodes in
|
||||
* the Pool will be created using this Image Id. This is of the
|
||||
* form/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}.
|
||||
* This property is mutually exclusive with other ImageReference properties.
|
||||
* For Virtual Machine Image it must be in the same region and subscription as
|
||||
* the Azure Batch account. The Shared Image Gallery Image must have replicas
|
||||
* in the same region as the Azure Batch account. For information about the
|
||||
* firewall settings for the Batch Compute Node agent to communicate with the
|
||||
* Batch service see
|
||||
|
@ -746,6 +743,18 @@ export interface Pool {
|
|||
* Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
*
|
||||
* @param {object}
|
||||
* [pool.virtualMachineConfiguration.diskEncryptionConfiguration] The disk
|
||||
* encryption configuration for the pool. If specified, encryption is performed
|
||||
* on each node in the pool during node provisioning.
|
||||
*
|
||||
* @param {array}
|
||||
* [pool.virtualMachineConfiguration.diskEncryptionConfiguration.targets] The
|
||||
* list of disk targets Batch Service will encrypt on the compute node. If
|
||||
* omitted, no disks on the compute nodes in the pool will be encrypted. On
|
||||
* Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and
|
||||
* "TemporaryDisk" must be specified.
|
||||
*
|
||||
* @param {moment.duration} [pool.resizeTimeout] The timeout for allocation of
|
||||
* Compute Nodes to the Pool. This timeout applies only to manual scaling; it
|
||||
* has no effect when enableAutoScale is set to true. The default value is 15
|
||||
|
@ -802,7 +811,7 @@ export interface Pool {
|
|||
* The virtual network must be in the same region and subscription as the Azure
|
||||
* Batch Account. The specified subnet should have enough free IP addresses to
|
||||
* accommodate the number of Compute Nodes in the Pool. If the subnet doesn't
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes, and a
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes and a
|
||||
* resize error will occur. The 'MicrosoftAzureBatch' service principal must
|
||||
* have the 'Classic Virtual Machine Contributor' Role-Based Access Control
|
||||
* (RBAC) role for the specified VNet. The specified subnet must allow
|
||||
|
@ -838,12 +847,25 @@ export interface Pool {
|
|||
* per Batch Pool is 5. If the maximum number of inbound NAT Pools is exceeded
|
||||
* the request fails with HTTP status code 400.
|
||||
*
|
||||
* @param {array} [pool.networkConfiguration.publicIPs] The list of public IPs
|
||||
* which the Batch service will use when provisioning Compute Nodes. The number
|
||||
* of IPs specified here limits the maximum size of the Pool - 50 dedicated
|
||||
* nodes or 20 low-priority nodes can be allocated for each public IP. For
|
||||
* example, a pool needing 150 dedicated VMs would need at least 3 public IPs
|
||||
* specified. Each element of this collection is of the form:
|
||||
* @param {object} [pool.networkConfiguration.publicIPAddressConfiguration] The
|
||||
* Public IPAddress configuration for Compute Nodes in the Batch Pool. Public
|
||||
* IP configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
*
|
||||
* @param {string}
|
||||
* [pool.networkConfiguration.publicIPAddressConfiguration.provision] The
|
||||
* provisioning type for Public IP Addresses for the Pool. The default value is
|
||||
* BatchManaged. Possible values include: 'batchManaged', 'userManaged',
|
||||
* 'noPublicIPAddresses'
|
||||
*
|
||||
* @param {array}
|
||||
* [pool.networkConfiguration.publicIPAddressConfiguration.ipAddressIds] The
|
||||
* list of public IPs which the Batch service will use when provisioning
|
||||
* Compute Nodes. The number of IPs specified here limits the maximum size of
|
||||
* the Pool - 50 dedicated nodes or 20 low-priority nodes can be allocated for
|
||||
* each public IP. For example, a pool needing 150 dedicated VMs would need at
|
||||
* least 3 public IPs specified. Each element of this collection is of the
|
||||
* form:
|
||||
* /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}.
|
||||
*
|
||||
* @param {object} [pool.startTask] A Task specified to run on each Compute
|
||||
|
@ -1114,15 +1136,12 @@ export interface Pool {
|
|||
*
|
||||
* @param {string}
|
||||
* [pool.virtualMachineConfiguration.imageReference.virtualMachineImageId] The
|
||||
* ARM resource identifier of the Virtual Machine Image or Shared Image Gallery
|
||||
* Image. Computes Compute Nodes of the Pool will be created using this Image
|
||||
* Id. This is of either the form
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
|
||||
* for Virtual Machine Image or
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}
|
||||
* for SIG image. This property is mutually exclusive with other ImageReference
|
||||
* properties. For Virtual Machine Image it must be in the same region and
|
||||
* subscription as the Azure Batch account. For SIG image it must have replicas
|
||||
* ARM resource identifier of the Shared Image Gallery Image. Compute Nodes in
|
||||
* the Pool will be created using this Image Id. This is of the
|
||||
* form/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}.
|
||||
* This property is mutually exclusive with other ImageReference properties.
|
||||
* For Virtual Machine Image it must be in the same region and subscription as
|
||||
* the Azure Batch account. The Shared Image Gallery Image must have replicas
|
||||
* in the same region as the Azure Batch account. For information about the
|
||||
* firewall settings for the Batch Compute Node agent to communicate with the
|
||||
* Batch service see
|
||||
|
@ -1191,6 +1210,18 @@ export interface Pool {
|
|||
* Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
*
|
||||
* @param {object}
|
||||
* [pool.virtualMachineConfiguration.diskEncryptionConfiguration] The disk
|
||||
* encryption configuration for the pool. If specified, encryption is performed
|
||||
* on each node in the pool during node provisioning.
|
||||
*
|
||||
* @param {array}
|
||||
* [pool.virtualMachineConfiguration.diskEncryptionConfiguration.targets] The
|
||||
* list of disk targets Batch Service will encrypt on the compute node. If
|
||||
* omitted, no disks on the compute nodes in the pool will be encrypted. On
|
||||
* Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and
|
||||
* "TemporaryDisk" must be specified.
|
||||
*
|
||||
* @param {moment.duration} [pool.resizeTimeout] The timeout for allocation of
|
||||
* Compute Nodes to the Pool. This timeout applies only to manual scaling; it
|
||||
* has no effect when enableAutoScale is set to true. The default value is 15
|
||||
|
@ -1247,7 +1278,7 @@ export interface Pool {
|
|||
* The virtual network must be in the same region and subscription as the Azure
|
||||
* Batch Account. The specified subnet should have enough free IP addresses to
|
||||
* accommodate the number of Compute Nodes in the Pool. If the subnet doesn't
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes, and a
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes and a
|
||||
* resize error will occur. The 'MicrosoftAzureBatch' service principal must
|
||||
* have the 'Classic Virtual Machine Contributor' Role-Based Access Control
|
||||
* (RBAC) role for the specified VNet. The specified subnet must allow
|
||||
|
@ -1283,12 +1314,25 @@ export interface Pool {
|
|||
* per Batch Pool is 5. If the maximum number of inbound NAT Pools is exceeded
|
||||
* the request fails with HTTP status code 400.
|
||||
*
|
||||
* @param {array} [pool.networkConfiguration.publicIPs] The list of public IPs
|
||||
* which the Batch service will use when provisioning Compute Nodes. The number
|
||||
* of IPs specified here limits the maximum size of the Pool - 50 dedicated
|
||||
* nodes or 20 low-priority nodes can be allocated for each public IP. For
|
||||
* example, a pool needing 150 dedicated VMs would need at least 3 public IPs
|
||||
* specified. Each element of this collection is of the form:
|
||||
* @param {object} [pool.networkConfiguration.publicIPAddressConfiguration] The
|
||||
* Public IPAddress configuration for Compute Nodes in the Batch Pool. Public
|
||||
* IP configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
*
|
||||
* @param {string}
|
||||
* [pool.networkConfiguration.publicIPAddressConfiguration.provision] The
|
||||
* provisioning type for Public IP Addresses for the Pool. The default value is
|
||||
* BatchManaged. Possible values include: 'batchManaged', 'userManaged',
|
||||
* 'noPublicIPAddresses'
|
||||
*
|
||||
* @param {array}
|
||||
* [pool.networkConfiguration.publicIPAddressConfiguration.ipAddressIds] The
|
||||
* list of public IPs which the Batch service will use when provisioning
|
||||
* Compute Nodes. The number of IPs specified here limits the maximum size of
|
||||
* the Pool - 50 dedicated nodes or 20 low-priority nodes can be allocated for
|
||||
* each public IP. For example, a pool needing 150 dedicated VMs would need at
|
||||
* least 3 public IPs specified. Each element of this collection is of the
|
||||
* form:
|
||||
* /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}.
|
||||
*
|
||||
* @param {object} [pool.startTask] A Task specified to run on each Compute
|
||||
|
@ -4972,15 +5016,12 @@ export interface Job {
|
|||
*
|
||||
* @param {string}
|
||||
* [jobPatchParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.imageReference.virtualMachineImageId]
|
||||
* The ARM resource identifier of the Virtual Machine Image or Shared Image
|
||||
* Gallery Image. Computes Compute Nodes of the Pool will be created using this
|
||||
* Image Id. This is of either the form
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
|
||||
* for Virtual Machine Image or
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}
|
||||
* for SIG image. This property is mutually exclusive with other ImageReference
|
||||
* properties. For Virtual Machine Image it must be in the same region and
|
||||
* subscription as the Azure Batch account. For SIG image it must have replicas
|
||||
* The ARM resource identifier of the Shared Image Gallery Image. Compute Nodes
|
||||
* in the Pool will be created using this Image Id. This is of the
|
||||
* form/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}.
|
||||
* This property is mutually exclusive with other ImageReference properties.
|
||||
* For Virtual Machine Image it must be in the same region and subscription as
|
||||
* the Azure Batch account. The Shared Image Gallery Image must have replicas
|
||||
* in the same region as the Azure Batch account. For information about the
|
||||
* firewall settings for the Batch Compute Node agent to communicate with the
|
||||
* Batch service see
|
||||
|
@ -5054,6 +5095,18 @@ export interface Job {
|
|||
* Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
*
|
||||
* @param {object}
|
||||
* [jobPatchParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration]
|
||||
* The disk encryption configuration for the pool. If specified, encryption is
|
||||
* performed on each node in the pool during node provisioning.
|
||||
*
|
||||
* @param {array}
|
||||
* [jobPatchParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration.targets]
|
||||
* The list of disk targets Batch Service will encrypt on the compute node. If
|
||||
* omitted, no disks on the compute nodes in the pool will be encrypted. On
|
||||
* Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and
|
||||
* "TemporaryDisk" must be specified.
|
||||
*
|
||||
* @param {number}
|
||||
* [jobPatchParameter.poolInfo.autoPoolSpecification.pool.maxTasksPerNode] The
|
||||
* maximum number of Tasks that can run concurrently on a single Compute Node
|
||||
|
@ -5136,7 +5189,7 @@ export interface Job {
|
|||
* The virtual network must be in the same region and subscription as the Azure
|
||||
* Batch Account. The specified subnet should have enough free IP addresses to
|
||||
* accommodate the number of Compute Nodes in the Pool. If the subnet doesn't
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes, and a
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes and a
|
||||
* resize error will occur. The 'MicrosoftAzureBatch' service principal must
|
||||
* have the 'Classic Virtual Machine Contributor' Role-Based Access Control
|
||||
* (RBAC) role for the specified VNet. The specified subnet must allow
|
||||
|
@ -5174,8 +5227,20 @@ export interface Job {
|
|||
* per Batch Pool is 5. If the maximum number of inbound NAT Pools is exceeded
|
||||
* the request fails with HTTP status code 400.
|
||||
*
|
||||
* @param {object}
|
||||
* [jobPatchParameter.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration]
|
||||
* The Public IPAddress configuration for Compute Nodes in the Batch Pool.
|
||||
* Public IP configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
*
|
||||
* @param {string}
|
||||
* [jobPatchParameter.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.provision]
|
||||
* The provisioning type for Public IP Addresses for the Pool. The default
|
||||
* value is BatchManaged. Possible values include: 'batchManaged',
|
||||
* 'userManaged', 'noPublicIPAddresses'
|
||||
*
|
||||
* @param {array}
|
||||
* [jobPatchParameter.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPs]
|
||||
* [jobPatchParameter.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.ipAddressIds]
|
||||
* The list of public IPs which the Batch service will use when provisioning
|
||||
* Compute Nodes. The number of IPs specified here limits the maximum size of
|
||||
* the Pool - 50 dedicated nodes or 20 low-priority nodes can be allocated for
|
||||
|
@ -5593,15 +5658,12 @@ export interface Job {
|
|||
*
|
||||
* @param {string}
|
||||
* [jobPatchParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.imageReference.virtualMachineImageId]
|
||||
* The ARM resource identifier of the Virtual Machine Image or Shared Image
|
||||
* Gallery Image. Computes Compute Nodes of the Pool will be created using this
|
||||
* Image Id. This is of either the form
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
|
||||
* for Virtual Machine Image or
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}
|
||||
* for SIG image. This property is mutually exclusive with other ImageReference
|
||||
* properties. For Virtual Machine Image it must be in the same region and
|
||||
* subscription as the Azure Batch account. For SIG image it must have replicas
|
||||
* The ARM resource identifier of the Shared Image Gallery Image. Compute Nodes
|
||||
* in the Pool will be created using this Image Id. This is of the
|
||||
* form/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}.
|
||||
* This property is mutually exclusive with other ImageReference properties.
|
||||
* For Virtual Machine Image it must be in the same region and subscription as
|
||||
* the Azure Batch account. The Shared Image Gallery Image must have replicas
|
||||
* in the same region as the Azure Batch account. For information about the
|
||||
* firewall settings for the Batch Compute Node agent to communicate with the
|
||||
* Batch service see
|
||||
|
@ -5675,6 +5737,18 @@ export interface Job {
|
|||
* Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
*
|
||||
* @param {object}
|
||||
* [jobPatchParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration]
|
||||
* The disk encryption configuration for the pool. If specified, encryption is
|
||||
* performed on each node in the pool during node provisioning.
|
||||
*
|
||||
* @param {array}
|
||||
* [jobPatchParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration.targets]
|
||||
* The list of disk targets Batch Service will encrypt on the compute node. If
|
||||
* omitted, no disks on the compute nodes in the pool will be encrypted. On
|
||||
* Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and
|
||||
* "TemporaryDisk" must be specified.
|
||||
*
|
||||
* @param {number}
|
||||
* [jobPatchParameter.poolInfo.autoPoolSpecification.pool.maxTasksPerNode] The
|
||||
* maximum number of Tasks that can run concurrently on a single Compute Node
|
||||
|
@ -5757,7 +5831,7 @@ export interface Job {
|
|||
* The virtual network must be in the same region and subscription as the Azure
|
||||
* Batch Account. The specified subnet should have enough free IP addresses to
|
||||
* accommodate the number of Compute Nodes in the Pool. If the subnet doesn't
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes, and a
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes and a
|
||||
* resize error will occur. The 'MicrosoftAzureBatch' service principal must
|
||||
* have the 'Classic Virtual Machine Contributor' Role-Based Access Control
|
||||
* (RBAC) role for the specified VNet. The specified subnet must allow
|
||||
|
@ -5795,8 +5869,20 @@ export interface Job {
|
|||
* per Batch Pool is 5. If the maximum number of inbound NAT Pools is exceeded
|
||||
* the request fails with HTTP status code 400.
|
||||
*
|
||||
* @param {object}
|
||||
* [jobPatchParameter.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration]
|
||||
* The Public IPAddress configuration for Compute Nodes in the Batch Pool.
|
||||
* Public IP configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
*
|
||||
* @param {string}
|
||||
* [jobPatchParameter.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.provision]
|
||||
* The provisioning type for Public IP Addresses for the Pool. The default
|
||||
* value is BatchManaged. Possible values include: 'batchManaged',
|
||||
* 'userManaged', 'noPublicIPAddresses'
|
||||
*
|
||||
* @param {array}
|
||||
* [jobPatchParameter.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPs]
|
||||
* [jobPatchParameter.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.ipAddressIds]
|
||||
* The list of public IPs which the Batch service will use when provisioning
|
||||
* Compute Nodes. The number of IPs specified here limits the maximum size of
|
||||
* the Pool - 50 dedicated nodes or 20 low-priority nodes can be allocated for
|
||||
|
@ -6224,15 +6310,12 @@ export interface Job {
|
|||
*
|
||||
* @param {string}
|
||||
* [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.imageReference.virtualMachineImageId]
|
||||
* The ARM resource identifier of the Virtual Machine Image or Shared Image
|
||||
* Gallery Image. Computes Compute Nodes of the Pool will be created using this
|
||||
* Image Id. This is of either the form
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
|
||||
* for Virtual Machine Image or
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}
|
||||
* for SIG image. This property is mutually exclusive with other ImageReference
|
||||
* properties. For Virtual Machine Image it must be in the same region and
|
||||
* subscription as the Azure Batch account. For SIG image it must have replicas
|
||||
* The ARM resource identifier of the Shared Image Gallery Image. Compute Nodes
|
||||
* in the Pool will be created using this Image Id. This is of the
|
||||
* form/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}.
|
||||
* This property is mutually exclusive with other ImageReference properties.
|
||||
* For Virtual Machine Image it must be in the same region and subscription as
|
||||
* the Azure Batch account. The Shared Image Gallery Image must have replicas
|
||||
* in the same region as the Azure Batch account. For information about the
|
||||
* firewall settings for the Batch Compute Node agent to communicate with the
|
||||
* Batch service see
|
||||
|
@ -6306,6 +6389,18 @@ export interface Job {
|
|||
* Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
*
|
||||
* @param {object}
|
||||
* [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration]
|
||||
* The disk encryption configuration for the pool. If specified, encryption is
|
||||
* performed on each node in the pool during node provisioning.
|
||||
*
|
||||
* @param {array}
|
||||
* [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration.targets]
|
||||
* The list of disk targets Batch Service will encrypt on the compute node. If
|
||||
* omitted, no disks on the compute nodes in the pool will be encrypted. On
|
||||
* Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and
|
||||
* "TemporaryDisk" must be specified.
|
||||
*
|
||||
* @param {number}
|
||||
* [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.maxTasksPerNode] The
|
||||
* maximum number of Tasks that can run concurrently on a single Compute Node
|
||||
|
@ -6388,7 +6483,7 @@ export interface Job {
|
|||
* The virtual network must be in the same region and subscription as the Azure
|
||||
* Batch Account. The specified subnet should have enough free IP addresses to
|
||||
* accommodate the number of Compute Nodes in the Pool. If the subnet doesn't
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes, and a
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes and a
|
||||
* resize error will occur. The 'MicrosoftAzureBatch' service principal must
|
||||
* have the 'Classic Virtual Machine Contributor' Role-Based Access Control
|
||||
* (RBAC) role for the specified VNet. The specified subnet must allow
|
||||
|
@ -6426,8 +6521,20 @@ export interface Job {
|
|||
* per Batch Pool is 5. If the maximum number of inbound NAT Pools is exceeded
|
||||
* the request fails with HTTP status code 400.
|
||||
*
|
||||
* @param {object}
|
||||
* [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration]
|
||||
* The Public IPAddress configuration for Compute Nodes in the Batch Pool.
|
||||
* Public IP configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
*
|
||||
* @param {string}
|
||||
* [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.provision]
|
||||
* The provisioning type for Public IP Addresses for the Pool. The default
|
||||
* value is BatchManaged. Possible values include: 'batchManaged',
|
||||
* 'userManaged', 'noPublicIPAddresses'
|
||||
*
|
||||
* @param {array}
|
||||
* [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPs]
|
||||
* [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.ipAddressIds]
|
||||
* The list of public IPs which the Batch service will use when provisioning
|
||||
* Compute Nodes. The number of IPs specified here limits the maximum size of
|
||||
* the Pool - 50 dedicated nodes or 20 low-priority nodes can be allocated for
|
||||
|
@ -6850,15 +6957,12 @@ export interface Job {
|
|||
*
|
||||
* @param {string}
|
||||
* [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.imageReference.virtualMachineImageId]
|
||||
* The ARM resource identifier of the Virtual Machine Image or Shared Image
|
||||
* Gallery Image. Computes Compute Nodes of the Pool will be created using this
|
||||
* Image Id. This is of either the form
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
|
||||
* for Virtual Machine Image or
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}
|
||||
* for SIG image. This property is mutually exclusive with other ImageReference
|
||||
* properties. For Virtual Machine Image it must be in the same region and
|
||||
* subscription as the Azure Batch account. For SIG image it must have replicas
|
||||
* The ARM resource identifier of the Shared Image Gallery Image. Compute Nodes
|
||||
* in the Pool will be created using this Image Id. This is of the
|
||||
* form/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}.
|
||||
* This property is mutually exclusive with other ImageReference properties.
|
||||
* For Virtual Machine Image it must be in the same region and subscription as
|
||||
* the Azure Batch account. The Shared Image Gallery Image must have replicas
|
||||
* in the same region as the Azure Batch account. For information about the
|
||||
* firewall settings for the Batch Compute Node agent to communicate with the
|
||||
* Batch service see
|
||||
|
@ -6932,6 +7036,18 @@ export interface Job {
|
|||
* Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
*
|
||||
* @param {object}
|
||||
* [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration]
|
||||
* The disk encryption configuration for the pool. If specified, encryption is
|
||||
* performed on each node in the pool during node provisioning.
|
||||
*
|
||||
* @param {array}
|
||||
* [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration.targets]
|
||||
* The list of disk targets Batch Service will encrypt on the compute node. If
|
||||
* omitted, no disks on the compute nodes in the pool will be encrypted. On
|
||||
* Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and
|
||||
* "TemporaryDisk" must be specified.
|
||||
*
|
||||
* @param {number}
|
||||
* [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.maxTasksPerNode] The
|
||||
* maximum number of Tasks that can run concurrently on a single Compute Node
|
||||
|
@ -7014,7 +7130,7 @@ export interface Job {
|
|||
* The virtual network must be in the same region and subscription as the Azure
|
||||
* Batch Account. The specified subnet should have enough free IP addresses to
|
||||
* accommodate the number of Compute Nodes in the Pool. If the subnet doesn't
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes, and a
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes and a
|
||||
* resize error will occur. The 'MicrosoftAzureBatch' service principal must
|
||||
* have the 'Classic Virtual Machine Contributor' Role-Based Access Control
|
||||
* (RBAC) role for the specified VNet. The specified subnet must allow
|
||||
|
@ -7052,8 +7168,20 @@ export interface Job {
|
|||
* per Batch Pool is 5. If the maximum number of inbound NAT Pools is exceeded
|
||||
* the request fails with HTTP status code 400.
|
||||
*
|
||||
* @param {object}
|
||||
* [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration]
|
||||
* The Public IPAddress configuration for Compute Nodes in the Batch Pool.
|
||||
* Public IP configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
*
|
||||
* @param {string}
|
||||
* [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.provision]
|
||||
* The provisioning type for Public IP Addresses for the Pool. The default
|
||||
* value is BatchManaged. Possible values include: 'batchManaged',
|
||||
* 'userManaged', 'noPublicIPAddresses'
|
||||
*
|
||||
* @param {array}
|
||||
* [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPs]
|
||||
* [jobUpdateParameter.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.ipAddressIds]
|
||||
* The list of public IPs which the Batch service will use when provisioning
|
||||
* Compute Nodes. The number of IPs specified here limits the maximum size of
|
||||
* the Pool - 50 dedicated nodes or 20 low-priority nodes can be allocated for
|
||||
|
@ -8236,15 +8364,12 @@ export interface Job {
|
|||
*
|
||||
* @param {string}
|
||||
* [job.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.imageReference.virtualMachineImageId]
|
||||
* The ARM resource identifier of the Virtual Machine Image or Shared Image
|
||||
* Gallery Image. Computes Compute Nodes of the Pool will be created using this
|
||||
* Image Id. This is of either the form
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
|
||||
* for Virtual Machine Image or
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}
|
||||
* for SIG image. This property is mutually exclusive with other ImageReference
|
||||
* properties. For Virtual Machine Image it must be in the same region and
|
||||
* subscription as the Azure Batch account. For SIG image it must have replicas
|
||||
* The ARM resource identifier of the Shared Image Gallery Image. Compute Nodes
|
||||
* in the Pool will be created using this Image Id. This is of the
|
||||
* form/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}.
|
||||
* This property is mutually exclusive with other ImageReference properties.
|
||||
* For Virtual Machine Image it must be in the same region and subscription as
|
||||
* the Azure Batch account. The Shared Image Gallery Image must have replicas
|
||||
* in the same region as the Azure Batch account. For information about the
|
||||
* firewall settings for the Batch Compute Node agent to communicate with the
|
||||
* Batch service see
|
||||
|
@ -8318,6 +8443,18 @@ export interface Job {
|
|||
* Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
*
|
||||
* @param {object}
|
||||
* [job.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration]
|
||||
* The disk encryption configuration for the pool. If specified, encryption is
|
||||
* performed on each node in the pool during node provisioning.
|
||||
*
|
||||
* @param {array}
|
||||
* [job.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration.targets]
|
||||
* The list of disk targets Batch Service will encrypt on the compute node. If
|
||||
* omitted, no disks on the compute nodes in the pool will be encrypted. On
|
||||
* Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and
|
||||
* "TemporaryDisk" must be specified.
|
||||
*
|
||||
* @param {number} [job.poolInfo.autoPoolSpecification.pool.maxTasksPerNode]
|
||||
* The maximum number of Tasks that can run concurrently on a single Compute
|
||||
* Node in the Pool. The default value is 1. The maximum value is the smaller
|
||||
|
@ -8397,7 +8534,7 @@ export interface Job {
|
|||
* The virtual network must be in the same region and subscription as the Azure
|
||||
* Batch Account. The specified subnet should have enough free IP addresses to
|
||||
* accommodate the number of Compute Nodes in the Pool. If the subnet doesn't
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes, and a
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes and a
|
||||
* resize error will occur. The 'MicrosoftAzureBatch' service principal must
|
||||
* have the 'Classic Virtual Machine Contributor' Role-Based Access Control
|
||||
* (RBAC) role for the specified VNet. The specified subnet must allow
|
||||
|
@ -8435,9 +8572,21 @@ export interface Job {
|
|||
* per Batch Pool is 5. If the maximum number of inbound NAT Pools is exceeded
|
||||
* the request fails with HTTP status code 400.
|
||||
*
|
||||
* @param {object}
|
||||
* [job.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration]
|
||||
* The Public IPAddress configuration for Compute Nodes in the Batch Pool.
|
||||
* Public IP configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
*
|
||||
* @param {string}
|
||||
* [job.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.provision]
|
||||
* The provisioning type for Public IP Addresses for the Pool. The default
|
||||
* value is BatchManaged. Possible values include: 'batchManaged',
|
||||
* 'userManaged', 'noPublicIPAddresses'
|
||||
*
|
||||
* @param {array}
|
||||
* [job.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPs] The
|
||||
* list of public IPs which the Batch service will use when provisioning
|
||||
* [job.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.ipAddressIds]
|
||||
* The list of public IPs which the Batch service will use when provisioning
|
||||
* Compute Nodes. The number of IPs specified here limits the maximum size of
|
||||
* the Pool - 50 dedicated nodes or 20 low-priority nodes can be allocated for
|
||||
* each public IP. For example, a pool needing 150 dedicated VMs would need at
|
||||
|
@ -9156,15 +9305,12 @@ export interface Job {
|
|||
*
|
||||
* @param {string}
|
||||
* [job.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.imageReference.virtualMachineImageId]
|
||||
* The ARM resource identifier of the Virtual Machine Image or Shared Image
|
||||
* Gallery Image. Computes Compute Nodes of the Pool will be created using this
|
||||
* Image Id. This is of either the form
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
|
||||
* for Virtual Machine Image or
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}
|
||||
* for SIG image. This property is mutually exclusive with other ImageReference
|
||||
* properties. For Virtual Machine Image it must be in the same region and
|
||||
* subscription as the Azure Batch account. For SIG image it must have replicas
|
||||
* The ARM resource identifier of the Shared Image Gallery Image. Compute Nodes
|
||||
* in the Pool will be created using this Image Id. This is of the
|
||||
* form/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}.
|
||||
* This property is mutually exclusive with other ImageReference properties.
|
||||
* For Virtual Machine Image it must be in the same region and subscription as
|
||||
* the Azure Batch account. The Shared Image Gallery Image must have replicas
|
||||
* in the same region as the Azure Batch account. For information about the
|
||||
* firewall settings for the Batch Compute Node agent to communicate with the
|
||||
* Batch service see
|
||||
|
@ -9238,6 +9384,18 @@ export interface Job {
|
|||
* Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
*
|
||||
* @param {object}
|
||||
* [job.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration]
|
||||
* The disk encryption configuration for the pool. If specified, encryption is
|
||||
* performed on each node in the pool during node provisioning.
|
||||
*
|
||||
* @param {array}
|
||||
* [job.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration.targets]
|
||||
* The list of disk targets Batch Service will encrypt on the compute node. If
|
||||
* omitted, no disks on the compute nodes in the pool will be encrypted. On
|
||||
* Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and
|
||||
* "TemporaryDisk" must be specified.
|
||||
*
|
||||
* @param {number} [job.poolInfo.autoPoolSpecification.pool.maxTasksPerNode]
|
||||
* The maximum number of Tasks that can run concurrently on a single Compute
|
||||
* Node in the Pool. The default value is 1. The maximum value is the smaller
|
||||
|
@ -9317,7 +9475,7 @@ export interface Job {
|
|||
* The virtual network must be in the same region and subscription as the Azure
|
||||
* Batch Account. The specified subnet should have enough free IP addresses to
|
||||
* accommodate the number of Compute Nodes in the Pool. If the subnet doesn't
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes, and a
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes and a
|
||||
* resize error will occur. The 'MicrosoftAzureBatch' service principal must
|
||||
* have the 'Classic Virtual Machine Contributor' Role-Based Access Control
|
||||
* (RBAC) role for the specified VNet. The specified subnet must allow
|
||||
|
@ -9355,9 +9513,21 @@ export interface Job {
|
|||
* per Batch Pool is 5. If the maximum number of inbound NAT Pools is exceeded
|
||||
* the request fails with HTTP status code 400.
|
||||
*
|
||||
* @param {object}
|
||||
* [job.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration]
|
||||
* The Public IPAddress configuration for Compute Nodes in the Batch Pool.
|
||||
* Public IP configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
*
|
||||
* @param {string}
|
||||
* [job.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.provision]
|
||||
* The provisioning type for Public IP Addresses for the Pool. The default
|
||||
* value is BatchManaged. Possible values include: 'batchManaged',
|
||||
* 'userManaged', 'noPublicIPAddresses'
|
||||
*
|
||||
* @param {array}
|
||||
* [job.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPs] The
|
||||
* list of public IPs which the Batch service will use when provisioning
|
||||
* [job.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.ipAddressIds]
|
||||
* The list of public IPs which the Batch service will use when provisioning
|
||||
* Compute Nodes. The number of IPs specified here limits the maximum size of
|
||||
* the Pool - 50 dedicated nodes or 20 low-priority nodes can be allocated for
|
||||
* each public IP. For example, a pool needing 150 dedicated VMs would need at
|
||||
|
@ -10429,8 +10599,8 @@ export interface CertificateOperations {
|
|||
* Certificate data. Possible values include: 'pfx', 'cer'
|
||||
*
|
||||
* @param {string} [certificate.password] The password to access the
|
||||
* Certificate's private key. This is required if the Certificate format is
|
||||
* pfx. It should be omitted if the Certificate format is cer.
|
||||
* Certificate's private key. This must be omitted if the Certificate format is
|
||||
* cer.
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
|
@ -10482,8 +10652,8 @@ export interface CertificateOperations {
|
|||
* Certificate data. Possible values include: 'pfx', 'cer'
|
||||
*
|
||||
* @param {string} [certificate.password] The password to access the
|
||||
* Certificate's private key. This is required if the Certificate format is
|
||||
* pfx. It should be omitted if the Certificate format is cer.
|
||||
* Certificate's private key. This must be omitted if the Certificate format is
|
||||
* cer.
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
|
@ -13315,15 +13485,12 @@ export interface JobSchedule {
|
|||
*
|
||||
* @param {string}
|
||||
* [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.imageReference.virtualMachineImageId]
|
||||
* The ARM resource identifier of the Virtual Machine Image or Shared Image
|
||||
* Gallery Image. Computes Compute Nodes of the Pool will be created using this
|
||||
* Image Id. This is of either the form
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
|
||||
* for Virtual Machine Image or
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}
|
||||
* for SIG image. This property is mutually exclusive with other ImageReference
|
||||
* properties. For Virtual Machine Image it must be in the same region and
|
||||
* subscription as the Azure Batch account. For SIG image it must have replicas
|
||||
* The ARM resource identifier of the Shared Image Gallery Image. Compute Nodes
|
||||
* in the Pool will be created using this Image Id. This is of the
|
||||
* form/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}.
|
||||
* This property is mutually exclusive with other ImageReference properties.
|
||||
* For Virtual Machine Image it must be in the same region and subscription as
|
||||
* the Azure Batch account. The Shared Image Gallery Image must have replicas
|
||||
* in the same region as the Azure Batch account. For information about the
|
||||
* firewall settings for the Batch Compute Node agent to communicate with the
|
||||
* Batch service see
|
||||
|
@ -13397,6 +13564,18 @@ export interface JobSchedule {
|
|||
* Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
*
|
||||
* @param {object}
|
||||
* [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration]
|
||||
* The disk encryption configuration for the pool. If specified, encryption is
|
||||
* performed on each node in the pool during node provisioning.
|
||||
*
|
||||
* @param {array}
|
||||
* [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration.targets]
|
||||
* The list of disk targets Batch Service will encrypt on the compute node. If
|
||||
* omitted, no disks on the compute nodes in the pool will be encrypted. On
|
||||
* Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and
|
||||
* "TemporaryDisk" must be specified.
|
||||
*
|
||||
* @param {number}
|
||||
* [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.maxTasksPerNode]
|
||||
* The maximum number of Tasks that can run concurrently on a single Compute
|
||||
|
@ -13479,7 +13658,7 @@ export interface JobSchedule {
|
|||
* The virtual network must be in the same region and subscription as the Azure
|
||||
* Batch Account. The specified subnet should have enough free IP addresses to
|
||||
* accommodate the number of Compute Nodes in the Pool. If the subnet doesn't
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes, and a
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes and a
|
||||
* resize error will occur. The 'MicrosoftAzureBatch' service principal must
|
||||
* have the 'Classic Virtual Machine Contributor' Role-Based Access Control
|
||||
* (RBAC) role for the specified VNet. The specified subnet must allow
|
||||
|
@ -13517,8 +13696,20 @@ export interface JobSchedule {
|
|||
* per Batch Pool is 5. If the maximum number of inbound NAT Pools is exceeded
|
||||
* the request fails with HTTP status code 400.
|
||||
*
|
||||
* @param {object}
|
||||
* [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration]
|
||||
* The Public IPAddress configuration for Compute Nodes in the Batch Pool.
|
||||
* Public IP configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
*
|
||||
* @param {string}
|
||||
* [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.provision]
|
||||
* The provisioning type for Public IP Addresses for the Pool. The default
|
||||
* value is BatchManaged. Possible values include: 'batchManaged',
|
||||
* 'userManaged', 'noPublicIPAddresses'
|
||||
*
|
||||
* @param {array}
|
||||
* [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPs]
|
||||
* [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.ipAddressIds]
|
||||
* The list of public IPs which the Batch service will use when provisioning
|
||||
* Compute Nodes. The number of IPs specified here limits the maximum size of
|
||||
* the Pool - 50 dedicated nodes or 20 low-priority nodes can be allocated for
|
||||
|
@ -14386,15 +14577,12 @@ export interface JobSchedule {
|
|||
*
|
||||
* @param {string}
|
||||
* [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.imageReference.virtualMachineImageId]
|
||||
* The ARM resource identifier of the Virtual Machine Image or Shared Image
|
||||
* Gallery Image. Computes Compute Nodes of the Pool will be created using this
|
||||
* Image Id. This is of either the form
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
|
||||
* for Virtual Machine Image or
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}
|
||||
* for SIG image. This property is mutually exclusive with other ImageReference
|
||||
* properties. For Virtual Machine Image it must be in the same region and
|
||||
* subscription as the Azure Batch account. For SIG image it must have replicas
|
||||
* The ARM resource identifier of the Shared Image Gallery Image. Compute Nodes
|
||||
* in the Pool will be created using this Image Id. This is of the
|
||||
* form/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}.
|
||||
* This property is mutually exclusive with other ImageReference properties.
|
||||
* For Virtual Machine Image it must be in the same region and subscription as
|
||||
* the Azure Batch account. The Shared Image Gallery Image must have replicas
|
||||
* in the same region as the Azure Batch account. For information about the
|
||||
* firewall settings for the Batch Compute Node agent to communicate with the
|
||||
* Batch service see
|
||||
|
@ -14468,6 +14656,18 @@ export interface JobSchedule {
|
|||
* Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
*
|
||||
* @param {object}
|
||||
* [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration]
|
||||
* The disk encryption configuration for the pool. If specified, encryption is
|
||||
* performed on each node in the pool during node provisioning.
|
||||
*
|
||||
* @param {array}
|
||||
* [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration.targets]
|
||||
* The list of disk targets Batch Service will encrypt on the compute node. If
|
||||
* omitted, no disks on the compute nodes in the pool will be encrypted. On
|
||||
* Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and
|
||||
* "TemporaryDisk" must be specified.
|
||||
*
|
||||
* @param {number}
|
||||
* [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.maxTasksPerNode]
|
||||
* The maximum number of Tasks that can run concurrently on a single Compute
|
||||
|
@ -14550,7 +14750,7 @@ export interface JobSchedule {
|
|||
* The virtual network must be in the same region and subscription as the Azure
|
||||
* Batch Account. The specified subnet should have enough free IP addresses to
|
||||
* accommodate the number of Compute Nodes in the Pool. If the subnet doesn't
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes, and a
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes and a
|
||||
* resize error will occur. The 'MicrosoftAzureBatch' service principal must
|
||||
* have the 'Classic Virtual Machine Contributor' Role-Based Access Control
|
||||
* (RBAC) role for the specified VNet. The specified subnet must allow
|
||||
|
@ -14588,8 +14788,20 @@ export interface JobSchedule {
|
|||
* per Batch Pool is 5. If the maximum number of inbound NAT Pools is exceeded
|
||||
* the request fails with HTTP status code 400.
|
||||
*
|
||||
* @param {object}
|
||||
* [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration]
|
||||
* The Public IPAddress configuration for Compute Nodes in the Batch Pool.
|
||||
* Public IP configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
*
|
||||
* @param {string}
|
||||
* [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.provision]
|
||||
* The provisioning type for Public IP Addresses for the Pool. The default
|
||||
* value is BatchManaged. Possible values include: 'batchManaged',
|
||||
* 'userManaged', 'noPublicIPAddresses'
|
||||
*
|
||||
* @param {array}
|
||||
* [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPs]
|
||||
* [jobSchedulePatchParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.ipAddressIds]
|
||||
* The list of public IPs which the Batch service will use when provisioning
|
||||
* Compute Nodes. The number of IPs specified here limits the maximum size of
|
||||
* the Pool - 50 dedicated nodes or 20 low-priority nodes can be allocated for
|
||||
|
@ -15479,15 +15691,12 @@ export interface JobSchedule {
|
|||
*
|
||||
* @param {string}
|
||||
* [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.imageReference.virtualMachineImageId]
|
||||
* The ARM resource identifier of the Virtual Machine Image or Shared Image
|
||||
* Gallery Image. Computes Compute Nodes of the Pool will be created using this
|
||||
* Image Id. This is of either the form
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
|
||||
* for Virtual Machine Image or
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}
|
||||
* for SIG image. This property is mutually exclusive with other ImageReference
|
||||
* properties. For Virtual Machine Image it must be in the same region and
|
||||
* subscription as the Azure Batch account. For SIG image it must have replicas
|
||||
* The ARM resource identifier of the Shared Image Gallery Image. Compute Nodes
|
||||
* in the Pool will be created using this Image Id. This is of the
|
||||
* form/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}.
|
||||
* This property is mutually exclusive with other ImageReference properties.
|
||||
* For Virtual Machine Image it must be in the same region and subscription as
|
||||
* the Azure Batch account. The Shared Image Gallery Image must have replicas
|
||||
* in the same region as the Azure Batch account. For information about the
|
||||
* firewall settings for the Batch Compute Node agent to communicate with the
|
||||
* Batch service see
|
||||
|
@ -15561,6 +15770,18 @@ export interface JobSchedule {
|
|||
* Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
*
|
||||
* @param {object}
|
||||
* [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration]
|
||||
* The disk encryption configuration for the pool. If specified, encryption is
|
||||
* performed on each node in the pool during node provisioning.
|
||||
*
|
||||
* @param {array}
|
||||
* [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration.targets]
|
||||
* The list of disk targets Batch Service will encrypt on the compute node. If
|
||||
* omitted, no disks on the compute nodes in the pool will be encrypted. On
|
||||
* Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and
|
||||
* "TemporaryDisk" must be specified.
|
||||
*
|
||||
* @param {number}
|
||||
* [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.maxTasksPerNode]
|
||||
* The maximum number of Tasks that can run concurrently on a single Compute
|
||||
|
@ -15643,7 +15864,7 @@ export interface JobSchedule {
|
|||
* The virtual network must be in the same region and subscription as the Azure
|
||||
* Batch Account. The specified subnet should have enough free IP addresses to
|
||||
* accommodate the number of Compute Nodes in the Pool. If the subnet doesn't
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes, and a
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes and a
|
||||
* resize error will occur. The 'MicrosoftAzureBatch' service principal must
|
||||
* have the 'Classic Virtual Machine Contributor' Role-Based Access Control
|
||||
* (RBAC) role for the specified VNet. The specified subnet must allow
|
||||
|
@ -15681,8 +15902,20 @@ export interface JobSchedule {
|
|||
* per Batch Pool is 5. If the maximum number of inbound NAT Pools is exceeded
|
||||
* the request fails with HTTP status code 400.
|
||||
*
|
||||
* @param {object}
|
||||
* [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration]
|
||||
* The Public IPAddress configuration for Compute Nodes in the Batch Pool.
|
||||
* Public IP configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
*
|
||||
* @param {string}
|
||||
* [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.provision]
|
||||
* The provisioning type for Public IP Addresses for the Pool. The default
|
||||
* value is BatchManaged. Possible values include: 'batchManaged',
|
||||
* 'userManaged', 'noPublicIPAddresses'
|
||||
*
|
||||
* @param {array}
|
||||
* [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPs]
|
||||
* [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.ipAddressIds]
|
||||
* The list of public IPs which the Batch service will use when provisioning
|
||||
* Compute Nodes. The number of IPs specified here limits the maximum size of
|
||||
* the Pool - 50 dedicated nodes or 20 low-priority nodes can be allocated for
|
||||
|
@ -16556,15 +16789,12 @@ export interface JobSchedule {
|
|||
*
|
||||
* @param {string}
|
||||
* [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.imageReference.virtualMachineImageId]
|
||||
* The ARM resource identifier of the Virtual Machine Image or Shared Image
|
||||
* Gallery Image. Computes Compute Nodes of the Pool will be created using this
|
||||
* Image Id. This is of either the form
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
|
||||
* for Virtual Machine Image or
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}
|
||||
* for SIG image. This property is mutually exclusive with other ImageReference
|
||||
* properties. For Virtual Machine Image it must be in the same region and
|
||||
* subscription as the Azure Batch account. For SIG image it must have replicas
|
||||
* The ARM resource identifier of the Shared Image Gallery Image. Compute Nodes
|
||||
* in the Pool will be created using this Image Id. This is of the
|
||||
* form/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}.
|
||||
* This property is mutually exclusive with other ImageReference properties.
|
||||
* For Virtual Machine Image it must be in the same region and subscription as
|
||||
* the Azure Batch account. The Shared Image Gallery Image must have replicas
|
||||
* in the same region as the Azure Batch account. For information about the
|
||||
* firewall settings for the Batch Compute Node agent to communicate with the
|
||||
* Batch service see
|
||||
|
@ -16638,6 +16868,18 @@ export interface JobSchedule {
|
|||
* Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
*
|
||||
* @param {object}
|
||||
* [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration]
|
||||
* The disk encryption configuration for the pool. If specified, encryption is
|
||||
* performed on each node in the pool during node provisioning.
|
||||
*
|
||||
* @param {array}
|
||||
* [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration.targets]
|
||||
* The list of disk targets Batch Service will encrypt on the compute node. If
|
||||
* omitted, no disks on the compute nodes in the pool will be encrypted. On
|
||||
* Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and
|
||||
* "TemporaryDisk" must be specified.
|
||||
*
|
||||
* @param {number}
|
||||
* [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.maxTasksPerNode]
|
||||
* The maximum number of Tasks that can run concurrently on a single Compute
|
||||
|
@ -16720,7 +16962,7 @@ export interface JobSchedule {
|
|||
* The virtual network must be in the same region and subscription as the Azure
|
||||
* Batch Account. The specified subnet should have enough free IP addresses to
|
||||
* accommodate the number of Compute Nodes in the Pool. If the subnet doesn't
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes, and a
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes and a
|
||||
* resize error will occur. The 'MicrosoftAzureBatch' service principal must
|
||||
* have the 'Classic Virtual Machine Contributor' Role-Based Access Control
|
||||
* (RBAC) role for the specified VNet. The specified subnet must allow
|
||||
|
@ -16758,8 +17000,20 @@ export interface JobSchedule {
|
|||
* per Batch Pool is 5. If the maximum number of inbound NAT Pools is exceeded
|
||||
* the request fails with HTTP status code 400.
|
||||
*
|
||||
* @param {object}
|
||||
* [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration]
|
||||
* The Public IPAddress configuration for Compute Nodes in the Batch Pool.
|
||||
* Public IP configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
*
|
||||
* @param {string}
|
||||
* [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.provision]
|
||||
* The provisioning type for Public IP Addresses for the Pool. The default
|
||||
* value is BatchManaged. Possible values include: 'batchManaged',
|
||||
* 'userManaged', 'noPublicIPAddresses'
|
||||
*
|
||||
* @param {array}
|
||||
* [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPs]
|
||||
* [jobScheduleUpdateParameter.jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.ipAddressIds]
|
||||
* The list of public IPs which the Batch service will use when provisioning
|
||||
* Compute Nodes. The number of IPs specified here limits the maximum size of
|
||||
* the Pool - 50 dedicated nodes or 20 low-priority nodes can be allocated for
|
||||
|
@ -18033,15 +18287,12 @@ export interface JobSchedule {
|
|||
*
|
||||
* @param {string}
|
||||
* [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.imageReference.virtualMachineImageId]
|
||||
* The ARM resource identifier of the Virtual Machine Image or Shared Image
|
||||
* Gallery Image. Computes Compute Nodes of the Pool will be created using this
|
||||
* Image Id. This is of either the form
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
|
||||
* for Virtual Machine Image or
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}
|
||||
* for SIG image. This property is mutually exclusive with other ImageReference
|
||||
* properties. For Virtual Machine Image it must be in the same region and
|
||||
* subscription as the Azure Batch account. For SIG image it must have replicas
|
||||
* The ARM resource identifier of the Shared Image Gallery Image. Compute Nodes
|
||||
* in the Pool will be created using this Image Id. This is of the
|
||||
* form/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}.
|
||||
* This property is mutually exclusive with other ImageReference properties.
|
||||
* For Virtual Machine Image it must be in the same region and subscription as
|
||||
* the Azure Batch account. The Shared Image Gallery Image must have replicas
|
||||
* in the same region as the Azure Batch account. For information about the
|
||||
* firewall settings for the Batch Compute Node agent to communicate with the
|
||||
* Batch service see
|
||||
|
@ -18115,6 +18366,18 @@ export interface JobSchedule {
|
|||
* Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
*
|
||||
* @param {object}
|
||||
* [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration]
|
||||
* The disk encryption configuration for the pool. If specified, encryption is
|
||||
* performed on each node in the pool during node provisioning.
|
||||
*
|
||||
* @param {array}
|
||||
* [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration.targets]
|
||||
* The list of disk targets Batch Service will encrypt on the compute node. If
|
||||
* omitted, no disks on the compute nodes in the pool will be encrypted. On
|
||||
* Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and
|
||||
* "TemporaryDisk" must be specified.
|
||||
*
|
||||
* @param {number}
|
||||
* [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.maxTasksPerNode]
|
||||
* The maximum number of Tasks that can run concurrently on a single Compute
|
||||
|
@ -18197,7 +18460,7 @@ export interface JobSchedule {
|
|||
* The virtual network must be in the same region and subscription as the Azure
|
||||
* Batch Account. The specified subnet should have enough free IP addresses to
|
||||
* accommodate the number of Compute Nodes in the Pool. If the subnet doesn't
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes, and a
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes and a
|
||||
* resize error will occur. The 'MicrosoftAzureBatch' service principal must
|
||||
* have the 'Classic Virtual Machine Contributor' Role-Based Access Control
|
||||
* (RBAC) role for the specified VNet. The specified subnet must allow
|
||||
|
@ -18235,8 +18498,20 @@ export interface JobSchedule {
|
|||
* per Batch Pool is 5. If the maximum number of inbound NAT Pools is exceeded
|
||||
* the request fails with HTTP status code 400.
|
||||
*
|
||||
* @param {object}
|
||||
* [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration]
|
||||
* The Public IPAddress configuration for Compute Nodes in the Batch Pool.
|
||||
* Public IP configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
*
|
||||
* @param {string}
|
||||
* [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.provision]
|
||||
* The provisioning type for Public IP Addresses for the Pool. The default
|
||||
* value is BatchManaged. Possible values include: 'batchManaged',
|
||||
* 'userManaged', 'noPublicIPAddresses'
|
||||
*
|
||||
* @param {array}
|
||||
* [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPs]
|
||||
* [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.ipAddressIds]
|
||||
* The list of public IPs which the Batch service will use when provisioning
|
||||
* Compute Nodes. The number of IPs specified here limits the maximum size of
|
||||
* the Pool - 50 dedicated nodes or 20 low-priority nodes can be allocated for
|
||||
|
@ -19070,15 +19345,12 @@ export interface JobSchedule {
|
|||
*
|
||||
* @param {string}
|
||||
* [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.imageReference.virtualMachineImageId]
|
||||
* The ARM resource identifier of the Virtual Machine Image or Shared Image
|
||||
* Gallery Image. Computes Compute Nodes of the Pool will be created using this
|
||||
* Image Id. This is of either the form
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
|
||||
* for Virtual Machine Image or
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}
|
||||
* for SIG image. This property is mutually exclusive with other ImageReference
|
||||
* properties. For Virtual Machine Image it must be in the same region and
|
||||
* subscription as the Azure Batch account. For SIG image it must have replicas
|
||||
* The ARM resource identifier of the Shared Image Gallery Image. Compute Nodes
|
||||
* in the Pool will be created using this Image Id. This is of the
|
||||
* form/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}.
|
||||
* This property is mutually exclusive with other ImageReference properties.
|
||||
* For Virtual Machine Image it must be in the same region and subscription as
|
||||
* the Azure Batch account. The Shared Image Gallery Image must have replicas
|
||||
* in the same region as the Azure Batch account. For information about the
|
||||
* firewall settings for the Batch Compute Node agent to communicate with the
|
||||
* Batch service see
|
||||
|
@ -19152,6 +19424,18 @@ export interface JobSchedule {
|
|||
* Images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
*
|
||||
* @param {object}
|
||||
* [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration]
|
||||
* The disk encryption configuration for the pool. If specified, encryption is
|
||||
* performed on each node in the pool during node provisioning.
|
||||
*
|
||||
* @param {array}
|
||||
* [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.virtualMachineConfiguration.diskEncryptionConfiguration.targets]
|
||||
* The list of disk targets Batch Service will encrypt on the compute node. If
|
||||
* omitted, no disks on the compute nodes in the pool will be encrypted. On
|
||||
* Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and
|
||||
* "TemporaryDisk" must be specified.
|
||||
*
|
||||
* @param {number}
|
||||
* [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.maxTasksPerNode]
|
||||
* The maximum number of Tasks that can run concurrently on a single Compute
|
||||
|
@ -19234,7 +19518,7 @@ export interface JobSchedule {
|
|||
* The virtual network must be in the same region and subscription as the Azure
|
||||
* Batch Account. The specified subnet should have enough free IP addresses to
|
||||
* accommodate the number of Compute Nodes in the Pool. If the subnet doesn't
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes, and a
|
||||
* have enough free IP addresses, the Pool will partially allocate Nodes and a
|
||||
* resize error will occur. The 'MicrosoftAzureBatch' service principal must
|
||||
* have the 'Classic Virtual Machine Contributor' Role-Based Access Control
|
||||
* (RBAC) role for the specified VNet. The specified subnet must allow
|
||||
|
@ -19272,8 +19556,20 @@ export interface JobSchedule {
|
|||
* per Batch Pool is 5. If the maximum number of inbound NAT Pools is exceeded
|
||||
* the request fails with HTTP status code 400.
|
||||
*
|
||||
* @param {object}
|
||||
* [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration]
|
||||
* The Public IPAddress configuration for Compute Nodes in the Batch Pool.
|
||||
* Public IP configuration property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
*
|
||||
* @param {string}
|
||||
* [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.provision]
|
||||
* The provisioning type for Public IP Addresses for the Pool. The default
|
||||
* value is BatchManaged. Possible values include: 'batchManaged',
|
||||
* 'userManaged', 'noPublicIPAddresses'
|
||||
*
|
||||
* @param {array}
|
||||
* [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPs]
|
||||
* [cloudJobSchedule.jobSpecification.poolInfo.autoPoolSpecification.pool.networkConfiguration.publicIPAddressConfiguration.ipAddressIds]
|
||||
* The list of public IPs which the Batch service will use when provisioning
|
||||
* Compute Nodes. The number of IPs specified here limits the maximum size of
|
||||
* the Pool - 50 dedicated nodes or 20 low-priority nodes can be allocated for
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -351,29 +351,25 @@ function _add(jobId, task, options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (taskAddOptions !== null && taskAddOptions !== undefined)
|
||||
{
|
||||
if (taskAddOptions !== null && taskAddOptions !== undefined) {
|
||||
timeout = taskAddOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (taskAddOptions !== null && taskAddOptions !== undefined)
|
||||
{
|
||||
if (taskAddOptions !== null && taskAddOptions !== undefined) {
|
||||
clientRequestId = taskAddOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (taskAddOptions !== null && taskAddOptions !== undefined)
|
||||
{
|
||||
if (taskAddOptions !== null && taskAddOptions !== undefined) {
|
||||
returnClientRequestId = taskAddOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (taskAddOptions !== null && taskAddOptions !== undefined)
|
||||
{
|
||||
if (taskAddOptions !== null && taskAddOptions !== undefined) {
|
||||
ocpDate = taskAddOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
@ -575,57 +571,49 @@ function _list(jobId, options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (taskListOptions !== null && taskListOptions !== undefined)
|
||||
{
|
||||
if (taskListOptions !== null && taskListOptions !== undefined) {
|
||||
filter = taskListOptions.filter;
|
||||
if (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') {
|
||||
throw new Error('filter must be of type string.');
|
||||
}
|
||||
}
|
||||
if (taskListOptions !== null && taskListOptions !== undefined)
|
||||
{
|
||||
if (taskListOptions !== null && taskListOptions !== undefined) {
|
||||
select = taskListOptions.select;
|
||||
if (select !== null && select !== undefined && typeof select.valueOf() !== 'string') {
|
||||
throw new Error('select must be of type string.');
|
||||
}
|
||||
}
|
||||
if (taskListOptions !== null && taskListOptions !== undefined)
|
||||
{
|
||||
if (taskListOptions !== null && taskListOptions !== undefined) {
|
||||
expand = taskListOptions.expand;
|
||||
if (expand !== null && expand !== undefined && typeof expand.valueOf() !== 'string') {
|
||||
throw new Error('expand must be of type string.');
|
||||
}
|
||||
}
|
||||
if (taskListOptions !== null && taskListOptions !== undefined)
|
||||
{
|
||||
if (taskListOptions !== null && taskListOptions !== undefined) {
|
||||
maxResults = taskListOptions.maxResults;
|
||||
if (maxResults !== null && maxResults !== undefined && typeof maxResults !== 'number') {
|
||||
throw new Error('maxResults must be of type number.');
|
||||
}
|
||||
}
|
||||
if (taskListOptions !== null && taskListOptions !== undefined)
|
||||
{
|
||||
if (taskListOptions !== null && taskListOptions !== undefined) {
|
||||
timeout = taskListOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (taskListOptions !== null && taskListOptions !== undefined)
|
||||
{
|
||||
if (taskListOptions !== null && taskListOptions !== undefined) {
|
||||
clientRequestId = taskListOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (taskListOptions !== null && taskListOptions !== undefined)
|
||||
{
|
||||
if (taskListOptions !== null && taskListOptions !== undefined) {
|
||||
returnClientRequestId = taskListOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (taskListOptions !== null && taskListOptions !== undefined)
|
||||
{
|
||||
if (taskListOptions !== null && taskListOptions !== undefined) {
|
||||
ocpDate = taskListOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
@ -855,37 +843,32 @@ function _addCollection(jobId, value, options, callback) {
|
|||
let ocpDate;
|
||||
let taskCollection = new client.models['TaskAddCollectionParameter']();
|
||||
try {
|
||||
if (taskAddCollectionOptions !== null && taskAddCollectionOptions !== undefined)
|
||||
{
|
||||
if (taskAddCollectionOptions !== null && taskAddCollectionOptions !== undefined) {
|
||||
timeout = taskAddCollectionOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (taskAddCollectionOptions !== null && taskAddCollectionOptions !== undefined)
|
||||
{
|
||||
if (taskAddCollectionOptions !== null && taskAddCollectionOptions !== undefined) {
|
||||
clientRequestId = taskAddCollectionOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (taskAddCollectionOptions !== null && taskAddCollectionOptions !== undefined)
|
||||
{
|
||||
if (taskAddCollectionOptions !== null && taskAddCollectionOptions !== undefined) {
|
||||
returnClientRequestId = taskAddCollectionOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (taskAddCollectionOptions !== null && taskAddCollectionOptions !== undefined)
|
||||
{
|
||||
if (taskAddCollectionOptions !== null && taskAddCollectionOptions !== undefined) {
|
||||
ocpDate = taskAddCollectionOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
throw new Error('ocpDate must be of type date.');
|
||||
}
|
||||
}
|
||||
if (value !== null && value !== undefined)
|
||||
{
|
||||
if (value !== null && value !== undefined) {
|
||||
taskCollection.value = value;
|
||||
}
|
||||
} catch (error) {
|
||||
|
@ -1115,59 +1098,51 @@ function _deleteMethod(jobId, taskId, options, callback) {
|
|||
let ifModifiedSince;
|
||||
let ifUnmodifiedSince;
|
||||
try {
|
||||
if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined)
|
||||
{
|
||||
if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined) {
|
||||
timeout = taskDeleteMethodOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined)
|
||||
{
|
||||
if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined) {
|
||||
clientRequestId = taskDeleteMethodOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined)
|
||||
{
|
||||
if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined) {
|
||||
returnClientRequestId = taskDeleteMethodOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined)
|
||||
{
|
||||
if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined) {
|
||||
ocpDate = taskDeleteMethodOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
throw new Error('ocpDate must be of type date.');
|
||||
}
|
||||
}
|
||||
if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined)
|
||||
{
|
||||
if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined) {
|
||||
ifMatch = taskDeleteMethodOptions.ifMatch;
|
||||
if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') {
|
||||
throw new Error('ifMatch must be of type string.');
|
||||
}
|
||||
}
|
||||
if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined)
|
||||
{
|
||||
if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined) {
|
||||
ifNoneMatch = taskDeleteMethodOptions.ifNoneMatch;
|
||||
if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') {
|
||||
throw new Error('ifNoneMatch must be of type string.');
|
||||
}
|
||||
}
|
||||
if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined)
|
||||
{
|
||||
if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined) {
|
||||
ifModifiedSince = taskDeleteMethodOptions.ifModifiedSince;
|
||||
if (ifModifiedSince && !(ifModifiedSince instanceof Date ||
|
||||
(typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) {
|
||||
throw new Error('ifModifiedSince must be of type date.');
|
||||
}
|
||||
}
|
||||
if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined)
|
||||
{
|
||||
if (taskDeleteMethodOptions !== null && taskDeleteMethodOptions !== undefined) {
|
||||
ifUnmodifiedSince = taskDeleteMethodOptions.ifUnmodifiedSince;
|
||||
if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date ||
|
||||
(typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) {
|
||||
|
@ -1388,73 +1363,63 @@ function _get(jobId, taskId, options, callback) {
|
|||
let ifModifiedSince;
|
||||
let ifUnmodifiedSince;
|
||||
try {
|
||||
if (taskGetOptions !== null && taskGetOptions !== undefined)
|
||||
{
|
||||
if (taskGetOptions !== null && taskGetOptions !== undefined) {
|
||||
select = taskGetOptions.select;
|
||||
if (select !== null && select !== undefined && typeof select.valueOf() !== 'string') {
|
||||
throw new Error('select must be of type string.');
|
||||
}
|
||||
}
|
||||
if (taskGetOptions !== null && taskGetOptions !== undefined)
|
||||
{
|
||||
if (taskGetOptions !== null && taskGetOptions !== undefined) {
|
||||
expand = taskGetOptions.expand;
|
||||
if (expand !== null && expand !== undefined && typeof expand.valueOf() !== 'string') {
|
||||
throw new Error('expand must be of type string.');
|
||||
}
|
||||
}
|
||||
if (taskGetOptions !== null && taskGetOptions !== undefined)
|
||||
{
|
||||
if (taskGetOptions !== null && taskGetOptions !== undefined) {
|
||||
timeout = taskGetOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (taskGetOptions !== null && taskGetOptions !== undefined)
|
||||
{
|
||||
if (taskGetOptions !== null && taskGetOptions !== undefined) {
|
||||
clientRequestId = taskGetOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (taskGetOptions !== null && taskGetOptions !== undefined)
|
||||
{
|
||||
if (taskGetOptions !== null && taskGetOptions !== undefined) {
|
||||
returnClientRequestId = taskGetOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (taskGetOptions !== null && taskGetOptions !== undefined)
|
||||
{
|
||||
if (taskGetOptions !== null && taskGetOptions !== undefined) {
|
||||
ocpDate = taskGetOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
throw new Error('ocpDate must be of type date.');
|
||||
}
|
||||
}
|
||||
if (taskGetOptions !== null && taskGetOptions !== undefined)
|
||||
{
|
||||
if (taskGetOptions !== null && taskGetOptions !== undefined) {
|
||||
ifMatch = taskGetOptions.ifMatch;
|
||||
if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') {
|
||||
throw new Error('ifMatch must be of type string.');
|
||||
}
|
||||
}
|
||||
if (taskGetOptions !== null && taskGetOptions !== undefined)
|
||||
{
|
||||
if (taskGetOptions !== null && taskGetOptions !== undefined) {
|
||||
ifNoneMatch = taskGetOptions.ifNoneMatch;
|
||||
if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') {
|
||||
throw new Error('ifNoneMatch must be of type string.');
|
||||
}
|
||||
}
|
||||
if (taskGetOptions !== null && taskGetOptions !== undefined)
|
||||
{
|
||||
if (taskGetOptions !== null && taskGetOptions !== undefined) {
|
||||
ifModifiedSince = taskGetOptions.ifModifiedSince;
|
||||
if (ifModifiedSince && !(ifModifiedSince instanceof Date ||
|
||||
(typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) {
|
||||
throw new Error('ifModifiedSince must be of type date.');
|
||||
}
|
||||
}
|
||||
if (taskGetOptions !== null && taskGetOptions !== undefined)
|
||||
{
|
||||
if (taskGetOptions !== null && taskGetOptions !== undefined) {
|
||||
ifUnmodifiedSince = taskGetOptions.ifUnmodifiedSince;
|
||||
if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date ||
|
||||
(typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) {
|
||||
|
@ -1717,67 +1682,58 @@ function _update(jobId, taskId, options, callback) {
|
|||
let ifUnmodifiedSince;
|
||||
let taskUpdateParameter = new client.models['TaskUpdateParameter']();
|
||||
try {
|
||||
if (taskUpdateOptions !== null && taskUpdateOptions !== undefined)
|
||||
{
|
||||
if (taskUpdateOptions !== null && taskUpdateOptions !== undefined) {
|
||||
timeout = taskUpdateOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (taskUpdateOptions !== null && taskUpdateOptions !== undefined)
|
||||
{
|
||||
if (taskUpdateOptions !== null && taskUpdateOptions !== undefined) {
|
||||
clientRequestId = taskUpdateOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (taskUpdateOptions !== null && taskUpdateOptions !== undefined)
|
||||
{
|
||||
if (taskUpdateOptions !== null && taskUpdateOptions !== undefined) {
|
||||
returnClientRequestId = taskUpdateOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (taskUpdateOptions !== null && taskUpdateOptions !== undefined)
|
||||
{
|
||||
if (taskUpdateOptions !== null && taskUpdateOptions !== undefined) {
|
||||
ocpDate = taskUpdateOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
throw new Error('ocpDate must be of type date.');
|
||||
}
|
||||
}
|
||||
if (taskUpdateOptions !== null && taskUpdateOptions !== undefined)
|
||||
{
|
||||
if (taskUpdateOptions !== null && taskUpdateOptions !== undefined) {
|
||||
ifMatch = taskUpdateOptions.ifMatch;
|
||||
if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') {
|
||||
throw new Error('ifMatch must be of type string.');
|
||||
}
|
||||
}
|
||||
if (taskUpdateOptions !== null && taskUpdateOptions !== undefined)
|
||||
{
|
||||
if (taskUpdateOptions !== null && taskUpdateOptions !== undefined) {
|
||||
ifNoneMatch = taskUpdateOptions.ifNoneMatch;
|
||||
if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') {
|
||||
throw new Error('ifNoneMatch must be of type string.');
|
||||
}
|
||||
}
|
||||
if (taskUpdateOptions !== null && taskUpdateOptions !== undefined)
|
||||
{
|
||||
if (taskUpdateOptions !== null && taskUpdateOptions !== undefined) {
|
||||
ifModifiedSince = taskUpdateOptions.ifModifiedSince;
|
||||
if (ifModifiedSince && !(ifModifiedSince instanceof Date ||
|
||||
(typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) {
|
||||
throw new Error('ifModifiedSince must be of type date.');
|
||||
}
|
||||
}
|
||||
if (taskUpdateOptions !== null && taskUpdateOptions !== undefined)
|
||||
{
|
||||
if (taskUpdateOptions !== null && taskUpdateOptions !== undefined) {
|
||||
ifUnmodifiedSince = taskUpdateOptions.ifUnmodifiedSince;
|
||||
if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date ||
|
||||
(typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) {
|
||||
throw new Error('ifUnmodifiedSince must be of type date.');
|
||||
}
|
||||
}
|
||||
if (constraints !== null && constraints !== undefined)
|
||||
{
|
||||
if (constraints !== null && constraints !== undefined) {
|
||||
taskUpdateParameter.constraints = constraints;
|
||||
}
|
||||
} catch (error) {
|
||||
|
@ -1983,36 +1939,31 @@ function _listSubtasks(jobId, taskId, options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (taskListSubtasksOptions !== null && taskListSubtasksOptions !== undefined)
|
||||
{
|
||||
if (taskListSubtasksOptions !== null && taskListSubtasksOptions !== undefined) {
|
||||
select = taskListSubtasksOptions.select;
|
||||
if (select !== null && select !== undefined && typeof select.valueOf() !== 'string') {
|
||||
throw new Error('select must be of type string.');
|
||||
}
|
||||
}
|
||||
if (taskListSubtasksOptions !== null && taskListSubtasksOptions !== undefined)
|
||||
{
|
||||
if (taskListSubtasksOptions !== null && taskListSubtasksOptions !== undefined) {
|
||||
timeout = taskListSubtasksOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (taskListSubtasksOptions !== null && taskListSubtasksOptions !== undefined)
|
||||
{
|
||||
if (taskListSubtasksOptions !== null && taskListSubtasksOptions !== undefined) {
|
||||
clientRequestId = taskListSubtasksOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (taskListSubtasksOptions !== null && taskListSubtasksOptions !== undefined)
|
||||
{
|
||||
if (taskListSubtasksOptions !== null && taskListSubtasksOptions !== undefined) {
|
||||
returnClientRequestId = taskListSubtasksOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (taskListSubtasksOptions !== null && taskListSubtasksOptions !== undefined)
|
||||
{
|
||||
if (taskListSubtasksOptions !== null && taskListSubtasksOptions !== undefined) {
|
||||
ocpDate = taskListSubtasksOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
@ -2235,59 +2186,51 @@ function _terminate(jobId, taskId, options, callback) {
|
|||
let ifModifiedSince;
|
||||
let ifUnmodifiedSince;
|
||||
try {
|
||||
if (taskTerminateOptions !== null && taskTerminateOptions !== undefined)
|
||||
{
|
||||
if (taskTerminateOptions !== null && taskTerminateOptions !== undefined) {
|
||||
timeout = taskTerminateOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (taskTerminateOptions !== null && taskTerminateOptions !== undefined)
|
||||
{
|
||||
if (taskTerminateOptions !== null && taskTerminateOptions !== undefined) {
|
||||
clientRequestId = taskTerminateOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (taskTerminateOptions !== null && taskTerminateOptions !== undefined)
|
||||
{
|
||||
if (taskTerminateOptions !== null && taskTerminateOptions !== undefined) {
|
||||
returnClientRequestId = taskTerminateOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (taskTerminateOptions !== null && taskTerminateOptions !== undefined)
|
||||
{
|
||||
if (taskTerminateOptions !== null && taskTerminateOptions !== undefined) {
|
||||
ocpDate = taskTerminateOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
throw new Error('ocpDate must be of type date.');
|
||||
}
|
||||
}
|
||||
if (taskTerminateOptions !== null && taskTerminateOptions !== undefined)
|
||||
{
|
||||
if (taskTerminateOptions !== null && taskTerminateOptions !== undefined) {
|
||||
ifMatch = taskTerminateOptions.ifMatch;
|
||||
if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') {
|
||||
throw new Error('ifMatch must be of type string.');
|
||||
}
|
||||
}
|
||||
if (taskTerminateOptions !== null && taskTerminateOptions !== undefined)
|
||||
{
|
||||
if (taskTerminateOptions !== null && taskTerminateOptions !== undefined) {
|
||||
ifNoneMatch = taskTerminateOptions.ifNoneMatch;
|
||||
if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') {
|
||||
throw new Error('ifNoneMatch must be of type string.');
|
||||
}
|
||||
}
|
||||
if (taskTerminateOptions !== null && taskTerminateOptions !== undefined)
|
||||
{
|
||||
if (taskTerminateOptions !== null && taskTerminateOptions !== undefined) {
|
||||
ifModifiedSince = taskTerminateOptions.ifModifiedSince;
|
||||
if (ifModifiedSince && !(ifModifiedSince instanceof Date ||
|
||||
(typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) {
|
||||
throw new Error('ifModifiedSince must be of type date.');
|
||||
}
|
||||
}
|
||||
if (taskTerminateOptions !== null && taskTerminateOptions !== undefined)
|
||||
{
|
||||
if (taskTerminateOptions !== null && taskTerminateOptions !== undefined) {
|
||||
ifUnmodifiedSince = taskTerminateOptions.ifUnmodifiedSince;
|
||||
if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date ||
|
||||
(typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) {
|
||||
|
@ -2507,59 +2450,51 @@ function _reactivate(jobId, taskId, options, callback) {
|
|||
let ifModifiedSince;
|
||||
let ifUnmodifiedSince;
|
||||
try {
|
||||
if (taskReactivateOptions !== null && taskReactivateOptions !== undefined)
|
||||
{
|
||||
if (taskReactivateOptions !== null && taskReactivateOptions !== undefined) {
|
||||
timeout = taskReactivateOptions.timeout;
|
||||
if (timeout !== null && timeout !== undefined && typeof timeout !== 'number') {
|
||||
throw new Error('timeout must be of type number.');
|
||||
}
|
||||
}
|
||||
if (taskReactivateOptions !== null && taskReactivateOptions !== undefined)
|
||||
{
|
||||
if (taskReactivateOptions !== null && taskReactivateOptions !== undefined) {
|
||||
clientRequestId = taskReactivateOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (taskReactivateOptions !== null && taskReactivateOptions !== undefined)
|
||||
{
|
||||
if (taskReactivateOptions !== null && taskReactivateOptions !== undefined) {
|
||||
returnClientRequestId = taskReactivateOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (taskReactivateOptions !== null && taskReactivateOptions !== undefined)
|
||||
{
|
||||
if (taskReactivateOptions !== null && taskReactivateOptions !== undefined) {
|
||||
ocpDate = taskReactivateOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
throw new Error('ocpDate must be of type date.');
|
||||
}
|
||||
}
|
||||
if (taskReactivateOptions !== null && taskReactivateOptions !== undefined)
|
||||
{
|
||||
if (taskReactivateOptions !== null && taskReactivateOptions !== undefined) {
|
||||
ifMatch = taskReactivateOptions.ifMatch;
|
||||
if (ifMatch !== null && ifMatch !== undefined && typeof ifMatch.valueOf() !== 'string') {
|
||||
throw new Error('ifMatch must be of type string.');
|
||||
}
|
||||
}
|
||||
if (taskReactivateOptions !== null && taskReactivateOptions !== undefined)
|
||||
{
|
||||
if (taskReactivateOptions !== null && taskReactivateOptions !== undefined) {
|
||||
ifNoneMatch = taskReactivateOptions.ifNoneMatch;
|
||||
if (ifNoneMatch !== null && ifNoneMatch !== undefined && typeof ifNoneMatch.valueOf() !== 'string') {
|
||||
throw new Error('ifNoneMatch must be of type string.');
|
||||
}
|
||||
}
|
||||
if (taskReactivateOptions !== null && taskReactivateOptions !== undefined)
|
||||
{
|
||||
if (taskReactivateOptions !== null && taskReactivateOptions !== undefined) {
|
||||
ifModifiedSince = taskReactivateOptions.ifModifiedSince;
|
||||
if (ifModifiedSince && !(ifModifiedSince instanceof Date ||
|
||||
(typeof ifModifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifModifiedSince))))) {
|
||||
throw new Error('ifModifiedSince must be of type date.');
|
||||
}
|
||||
}
|
||||
if (taskReactivateOptions !== null && taskReactivateOptions !== undefined)
|
||||
{
|
||||
if (taskReactivateOptions !== null && taskReactivateOptions !== undefined) {
|
||||
ifUnmodifiedSince = taskReactivateOptions.ifUnmodifiedSince;
|
||||
if (ifUnmodifiedSince && !(ifUnmodifiedSince instanceof Date ||
|
||||
(typeof ifUnmodifiedSince.valueOf() === 'string' && !isNaN(Date.parse(ifUnmodifiedSince))))) {
|
||||
|
@ -2735,22 +2670,19 @@ function _listNext(nextPageLink, options, callback) {
|
|||
let returnClientRequestId;
|
||||
let ocpDate;
|
||||
try {
|
||||
if (taskListNextOptions !== null && taskListNextOptions !== undefined)
|
||||
{
|
||||
if (taskListNextOptions !== null && taskListNextOptions !== undefined) {
|
||||
clientRequestId = taskListNextOptions.clientRequestId;
|
||||
if (clientRequestId !== null && clientRequestId !== undefined && !(typeof clientRequestId.valueOf() === 'string' && msRest.isValidUuid(clientRequestId))) {
|
||||
throw new Error('clientRequestId must be of type string and must be a valid uuid.');
|
||||
}
|
||||
}
|
||||
if (taskListNextOptions !== null && taskListNextOptions !== undefined)
|
||||
{
|
||||
if (taskListNextOptions !== null && taskListNextOptions !== undefined) {
|
||||
returnClientRequestId = taskListNextOptions.returnClientRequestId;
|
||||
if (returnClientRequestId !== null && returnClientRequestId !== undefined && typeof returnClientRequestId !== 'boolean') {
|
||||
throw new Error('returnClientRequestId must be of type boolean.');
|
||||
}
|
||||
}
|
||||
if (taskListNextOptions !== null && taskListNextOptions !== undefined)
|
||||
{
|
||||
if (taskListNextOptions !== null && taskListNextOptions !== undefined) {
|
||||
ocpDate = taskListNextOptions.ocpDate;
|
||||
if (ocpDate && !(ocpDate instanceof Date ||
|
||||
(typeof ocpDate.valueOf() === 'string' && !isNaN(Date.parse(ocpDate))))) {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"contributors": [
|
||||
"Wu, Xing <xingwu@microsoft.com>"
|
||||
],
|
||||
"version": "8.0.0",
|
||||
"version": "9.0.0",
|
||||
"description": "Microsoft Azure Batch Service Client Library for node",
|
||||
"tags": [
|
||||
"azure",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2019 Microsoft
|
||||
Copyright (c) 2020 Microsoft
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
|
|
@ -62,6 +62,8 @@ export default class BatchManagementClient extends AzureServiceClient {
|
|||
location: operations.Location;
|
||||
operations: operations.Operations;
|
||||
certificateOperations: operations.CertificateOperations;
|
||||
privateLinkResourceOperations: operations.PrivateLinkResourceOperations;
|
||||
privateEndpointConnectionOperations: operations.PrivateEndpointConnectionOperations;
|
||||
poolOperations: operations.PoolOperations;
|
||||
}
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ class BatchManagementClient extends ServiceClient {
|
|||
|
||||
super(credentials, options);
|
||||
|
||||
this.apiVersion = '2019-08-01';
|
||||
this.apiVersion = '2020-03-01';
|
||||
this.acceptLanguage = 'en-US';
|
||||
this.longRunningOperationRetryTimeout = 30;
|
||||
this.generateClientRequestId = true;
|
||||
|
@ -78,6 +78,8 @@ class BatchManagementClient extends ServiceClient {
|
|||
this.location = new operations.Location(this);
|
||||
this.operations = new operations.Operations(this);
|
||||
this.certificateOperations = new operations.CertificateOperations(this);
|
||||
this.privateLinkResourceOperations = new operations.PrivateLinkResourceOperations(this);
|
||||
this.privateEndpointConnectionOperations = new operations.PrivateEndpointConnectionOperations(this);
|
||||
this.poolOperations = new operations.PoolOperations(this);
|
||||
this.models = models;
|
||||
msRest.addSerializationMixin(this);
|
||||
|
|
|
@ -34,10 +34,23 @@ class BatchAccount extends models['Resource'] {
|
|||
* vault associated with the Batch account.
|
||||
* @property {string} [keyVaultReference.url] The URL of the Azure key vault
|
||||
* associated with the Batch account.
|
||||
* @property {string} [publicNetworkAccess] The network interface type for
|
||||
* accessing Azure Batch service and Batch account operations. If not
|
||||
* specified, the default value is 'enabled'. Possible values include:
|
||||
* 'Enabled', 'Disabled'. Default value: 'Enabled' .
|
||||
* @property {object} [autoStorage] The properties and status of any
|
||||
* auto-storage account associated with the Batch account.
|
||||
* @property {date} [autoStorage.lastKeySync] The UTC time at which storage
|
||||
* keys were last synchronized with the Batch account.
|
||||
* @property {object} [encryption] The encryption configuration for the Batch
|
||||
* account.
|
||||
* @property {string} [encryption.keySource] Type of the key source. Possible
|
||||
* values include: 'Microsoft.Batch', 'Microsoft.KeyVault'
|
||||
* @property {object} [encryption.keyVaultProperties] Additional details when
|
||||
* using Microsoft.KeyVault
|
||||
* @property {string} [encryption.keyVaultProperties.keyIdentifier] Full path
|
||||
* to the versioned secret. Example
|
||||
* https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053
|
||||
* @property {number} [dedicatedCoreQuota] The dedicated core quota for the
|
||||
* Batch account. For accounts with PoolAllocationMode set to
|
||||
* UserSubscription, quota is managed on the subscription so this value is
|
||||
|
@ -166,6 +179,16 @@ class BatchAccount extends models['Resource'] {
|
|||
className: 'KeyVaultReference'
|
||||
}
|
||||
},
|
||||
publicNetworkAccess: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.publicNetworkAccess',
|
||||
defaultValue: 'Enabled',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'Enabled', 'Disabled' ]
|
||||
}
|
||||
},
|
||||
autoStorage: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
|
@ -175,6 +198,15 @@ class BatchAccount extends models['Resource'] {
|
|||
className: 'AutoStorageProperties'
|
||||
}
|
||||
},
|
||||
encryption: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.encryption',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'EncryptionProperties'
|
||||
}
|
||||
},
|
||||
dedicatedCoreQuota: {
|
||||
required: false,
|
||||
nullable: true,
|
||||
|
|
|
@ -37,6 +37,18 @@ class BatchAccountCreateParameters {
|
|||
* vault associated with the Batch account.
|
||||
* @property {string} [keyVaultReference.url] The URL of the Azure key vault
|
||||
* associated with the Batch account.
|
||||
* @property {string} [publicNetworkAccess] The network access type for
|
||||
* accessing Azure Batch account. Possible values include: 'Enabled',
|
||||
* 'Disabled'. Default value: 'Enabled' .
|
||||
* @property {object} [encryption] The encryption configuration for the Batch
|
||||
* account.
|
||||
* @property {string} [encryption.keySource] Type of the key source. Possible
|
||||
* values include: 'Microsoft.Batch', 'Microsoft.KeyVault'
|
||||
* @property {object} [encryption.keyVaultProperties] Additional details when
|
||||
* using Microsoft.KeyVault
|
||||
* @property {string} [encryption.keyVaultProperties.keyIdentifier] Full path
|
||||
* to the versioned secret. Example
|
||||
* https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
@ -99,6 +111,23 @@ class BatchAccountCreateParameters {
|
|||
name: 'Composite',
|
||||
className: 'KeyVaultReference'
|
||||
}
|
||||
},
|
||||
publicNetworkAccess: {
|
||||
required: false,
|
||||
serializedName: 'properties.publicNetworkAccess',
|
||||
defaultValue: 'Enabled',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'Enabled', 'Disabled' ]
|
||||
}
|
||||
},
|
||||
encryption: {
|
||||
required: false,
|
||||
serializedName: 'properties.encryption',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'EncryptionProperties'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,6 +23,15 @@ class BatchAccountUpdateParameters {
|
|||
* auto-storage account.
|
||||
* @property {string} [autoStorage.storageAccountId] The resource ID of the
|
||||
* storage account to be used for auto-storage account.
|
||||
* @property {object} [encryption] The encryption configuration for the Batch
|
||||
* account.
|
||||
* @property {string} [encryption.keySource] Type of the key source. Possible
|
||||
* values include: 'Microsoft.Batch', 'Microsoft.KeyVault'
|
||||
* @property {object} [encryption.keyVaultProperties] Additional details when
|
||||
* using Microsoft.KeyVault
|
||||
* @property {string} [encryption.keyVaultProperties.keyIdentifier] Full path
|
||||
* to the versioned secret. Example
|
||||
* https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
@ -62,6 +71,14 @@ class BatchAccountUpdateParameters {
|
|||
name: 'Composite',
|
||||
className: 'AutoStorageBaseProperties'
|
||||
}
|
||||
},
|
||||
encryption: {
|
||||
required: false,
|
||||
serializedName: 'properties.encryption',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'EncryptionProperties'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,8 +30,7 @@ class CertificateCreateOrUpdateParameters extends models['ProxyResource'] {
|
|||
* @property {string} data The base64-encoded contents of the certificate.
|
||||
* The maximum size is 10KB.
|
||||
* @property {string} [password] The password to access the certificate's
|
||||
* private key. This is required if the certificate format is pfx and must be
|
||||
* omitted if the certificate format is cer.
|
||||
* private key. This must not be specified if the certificate format is Cer.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
|
|
|
@ -46,11 +46,10 @@ class DeploymentConfiguration {
|
|||
* value of 'latest' can be specified to select the latest version of an
|
||||
* image. If omitted, the default is 'latest'.
|
||||
* @property {string} [virtualMachineConfiguration.imageReference.id] This
|
||||
* property is mutually exclusive with other properties. For Virtual Machine
|
||||
* Image it must be in the same region and subscription as the Azure Batch
|
||||
* account. For SIG image it must have replicas in the same region as the
|
||||
* Azure Batch account. For information about the firewall settings for the
|
||||
* Batch node agent to communicate with the Batch service see
|
||||
* property is mutually exclusive with other properties. The Shared Image
|
||||
* Gallery image must have replicas in the same region as the Azure Batch
|
||||
* account. For information about the firewall settings for 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.
|
||||
* @property {string} [virtualMachineConfiguration.nodeAgentSkuId] The Batch
|
||||
* node agent is a program that runs on each node in the pool, and provides
|
||||
|
@ -91,6 +90,13 @@ class DeploymentConfiguration {
|
|||
* [virtualMachineConfiguration.containerConfiguration.containerRegistries]
|
||||
* If any images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
* @property {object}
|
||||
* [virtualMachineConfiguration.diskEncryptionConfiguration] If specified,
|
||||
* encryption is performed on each node in the pool during node provisioning.
|
||||
* @property {array}
|
||||
* [virtualMachineConfiguration.diskEncryptionConfiguration.targets] On Linux
|
||||
* pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and
|
||||
* "TemporaryDisk" must be specified.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
|
|
@ -0,0 +1,65 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* The disk encryption configuration applied on compute nodes in the pool. Disk
|
||||
* encryption configuration is not supported on Linux pool created with Virtual
|
||||
* Machine Image or Shared Image Gallery Image.
|
||||
*
|
||||
*/
|
||||
class DiskEncryptionConfiguration {
|
||||
/**
|
||||
* Create a DiskEncryptionConfiguration.
|
||||
* @property {array} [targets] The list of disk targets Batch Service will
|
||||
* encrypt on the compute node. On Linux pool, only "TemporaryDisk" is
|
||||
* supported; on Windows pool, "OsDisk" and "TemporaryDisk" must be
|
||||
* specified.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DiskEncryptionConfiguration
|
||||
*
|
||||
* @returns {object} metadata of DiskEncryptionConfiguration
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DiskEncryptionConfiguration',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DiskEncryptionConfiguration',
|
||||
modelProperties: {
|
||||
targets: {
|
||||
required: false,
|
||||
serializedName: 'targets',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'DiskEncryptionTargetElementType',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'OsDisk', 'TemporaryDisk' ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DiskEncryptionConfiguration;
|
|
@ -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';
|
||||
|
||||
/**
|
||||
* Class representing a EncryptionProperties.
|
||||
*/
|
||||
class EncryptionProperties {
|
||||
/**
|
||||
* Create a EncryptionProperties.
|
||||
* @property {string} [keySource] Type of the key source. Possible values
|
||||
* include: 'Microsoft.Batch', 'Microsoft.KeyVault'
|
||||
* @property {object} [keyVaultProperties] Additional details when using
|
||||
* Microsoft.KeyVault
|
||||
* @property {string} [keyVaultProperties.keyIdentifier] Full path to the
|
||||
* versioned secret. Example
|
||||
* https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of EncryptionProperties
|
||||
*
|
||||
* @returns {object} metadata of EncryptionProperties
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'EncryptionProperties',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'EncryptionProperties',
|
||||
modelProperties: {
|
||||
keySource: {
|
||||
required: false,
|
||||
serializedName: 'keySource',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'Microsoft.Batch', 'Microsoft.KeyVault' ]
|
||||
}
|
||||
},
|
||||
keyVaultProperties: {
|
||||
required: false,
|
||||
serializedName: 'keyVaultProperties',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'KeyVaultProperties'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = EncryptionProperties;
|
|
@ -29,18 +29,14 @@ class ImageReference {
|
|||
* @property {string} [version] The version of the Azure Virtual Machines
|
||||
* Marketplace image. A value of 'latest' can be specified to select the
|
||||
* latest version of an image. If omitted, the default is 'latest'.
|
||||
* @property {string} [id] The ARM resource identifier of the Virtual Machine
|
||||
* Image or Shared Image Gallery Image. Compute Nodes of the Pool will be
|
||||
* created using this Image Id. This is of either the form
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
|
||||
* for Virtual Machine Image or
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}
|
||||
* for SIG image. This property is mutually exclusive with other properties.
|
||||
* For Virtual Machine Image it must be in the same region and subscription
|
||||
* as the Azure Batch account. For SIG image it must have replicas in the
|
||||
* same region as the Azure Batch account. For information about the firewall
|
||||
* settings for the Batch node agent to communicate with the Batch service
|
||||
* see
|
||||
* @property {string} [id] The ARM resource identifier of the Shared Image
|
||||
* Gallery Image. Compute Nodes in the Pool will be created using this Image
|
||||
* Id. This is of the form
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}.
|
||||
* This property is mutually exclusive with other properties. The Shared
|
||||
* Image Gallery image must have replicas in the same region as the Azure
|
||||
* Batch account. For information about the firewall settings for 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.
|
||||
*/
|
||||
constructor() {
|
||||
|
|
|
@ -25,35 +25,54 @@ export interface AutoStorageBaseProperties {
|
|||
storageAccountId: string;
|
||||
}
|
||||
|
||||
export interface KeyVaultProperties {
|
||||
/**
|
||||
* Full path to the versioned secret. Example
|
||||
* https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053
|
||||
*/
|
||||
keyIdentifier?: string;
|
||||
}
|
||||
|
||||
export interface EncryptionProperties {
|
||||
/**
|
||||
* Type of the key source. Possible values include: 'Microsoft.Batch', 'Microsoft.KeyVault'
|
||||
*/
|
||||
keySource?: string;
|
||||
/**
|
||||
* Additional details when using Microsoft.KeyVault
|
||||
*/
|
||||
keyVaultProperties?: KeyVaultProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Identifies the Azure key vault associated with a Batch account.
|
||||
*/
|
||||
*/
|
||||
export interface KeyVaultReference {
|
||||
/**
|
||||
* The resource ID of the Azure key vault associated with the Batch account.
|
||||
*/
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* The URL of the Azure key vault associated with the Batch account.
|
||||
*/
|
||||
*/
|
||||
url: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters supplied to the Create operation.
|
||||
*/
|
||||
*/
|
||||
export interface BatchAccountCreateParameters {
|
||||
/**
|
||||
* The region in which to create the account.
|
||||
*/
|
||||
*/
|
||||
location: string;
|
||||
/**
|
||||
* The user-specified tags associated with the account.
|
||||
*/
|
||||
*/
|
||||
tags?: { [propertyName: string]: string };
|
||||
/**
|
||||
* The properties related to the auto-storage account.
|
||||
*/
|
||||
*/
|
||||
autoStorage?: AutoStorageBaseProperties;
|
||||
/**
|
||||
* @summary The allocation mode to use for creating pools in the Batch account.
|
||||
|
@ -61,108 +80,128 @@ export interface BatchAccountCreateParameters {
|
|||
* Service API. If the mode is BatchService, clients may authenticate using access keys or Azure
|
||||
* Active Directory. If the mode is UserSubscription, clients must use Azure Active Directory.
|
||||
* The default is BatchService. Possible values include: 'BatchService', 'UserSubscription'
|
||||
*/
|
||||
*/
|
||||
poolAllocationMode?: string;
|
||||
/**
|
||||
* A reference to the Azure key vault associated with the Batch account.
|
||||
*/
|
||||
*/
|
||||
keyVaultReference?: KeyVaultReference;
|
||||
/**
|
||||
* @summary The network access type for accessing Azure Batch account.
|
||||
* @description Possible values include: 'Enabled', 'Disabled'
|
||||
*/
|
||||
publicNetworkAccess?: string;
|
||||
/**
|
||||
* @summary The encryption configuration for the Batch account.
|
||||
*/
|
||||
encryption?: EncryptionProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains information about the auto-storage account associated with a Batch account.
|
||||
*/
|
||||
*/
|
||||
export interface AutoStorageProperties extends AutoStorageBaseProperties {
|
||||
/**
|
||||
* The UTC time at which storage keys were last synchronized with the Batch account.
|
||||
*/
|
||||
*/
|
||||
lastKeySync: Date;
|
||||
}
|
||||
|
||||
/**
|
||||
* A VM Family and its associated core quota for the Batch account.
|
||||
*/
|
||||
*/
|
||||
export interface VirtualMachineFamilyCoreQuota {
|
||||
/**
|
||||
* The Virtual Machine family name.
|
||||
*/
|
||||
*/
|
||||
readonly name?: string;
|
||||
/**
|
||||
* The core quota for the VM family for the Batch account.
|
||||
*/
|
||||
*/
|
||||
readonly coreQuota?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* A definition of an Azure resource.
|
||||
*/
|
||||
*/
|
||||
export interface Resource extends BaseResource {
|
||||
/**
|
||||
* The ID of the resource.
|
||||
*/
|
||||
*/
|
||||
readonly id?: string;
|
||||
/**
|
||||
* The name of the resource.
|
||||
*/
|
||||
*/
|
||||
readonly name?: string;
|
||||
/**
|
||||
* The type of the resource.
|
||||
*/
|
||||
*/
|
||||
readonly type?: string;
|
||||
/**
|
||||
* The location of the resource.
|
||||
*/
|
||||
*/
|
||||
readonly location?: string;
|
||||
/**
|
||||
* The tags of the resource.
|
||||
*/
|
||||
*/
|
||||
readonly tags?: { [propertyName: string]: string };
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains information about an Azure Batch account.
|
||||
*/
|
||||
*/
|
||||
export interface BatchAccount extends Resource {
|
||||
/**
|
||||
* The account endpoint used to interact with the Batch service.
|
||||
*/
|
||||
*/
|
||||
readonly accountEndpoint?: string;
|
||||
/**
|
||||
* The provisioned state of the resource. Possible values include: 'Invalid', 'Creating',
|
||||
* 'Deleting', 'Succeeded', 'Failed', 'Cancelled'
|
||||
*/
|
||||
*/
|
||||
readonly provisioningState?: string;
|
||||
/**
|
||||
* @summary The allocation mode to use for creating pools in the Batch account.
|
||||
* @description Possible values include: 'BatchService', 'UserSubscription'
|
||||
*/
|
||||
*/
|
||||
readonly poolAllocationMode?: string;
|
||||
/**
|
||||
* @summary A reference to the Azure key vault associated with the Batch account.
|
||||
*/
|
||||
*/
|
||||
readonly keyVaultReference?: KeyVaultReference;
|
||||
/**
|
||||
* @summary The network interface type for accessing Azure Batch service and Batch account
|
||||
* operations.
|
||||
* @description If not specified, the default value is 'enabled'. Possible values include:
|
||||
* 'Enabled', 'Disabled'
|
||||
*/
|
||||
readonly publicNetworkAccess?: string;
|
||||
/**
|
||||
* @summary The properties and status of any auto-storage account associated with the Batch
|
||||
* account.
|
||||
*/
|
||||
*/
|
||||
readonly autoStorage?: AutoStorageProperties;
|
||||
/**
|
||||
* @summary The encryption configuration for the Batch account.
|
||||
*/
|
||||
readonly encryption?: EncryptionProperties;
|
||||
/**
|
||||
* @summary The dedicated core quota for the Batch account.
|
||||
* @description For accounts with PoolAllocationMode set to UserSubscription, quota is managed on
|
||||
* the subscription so this value is not returned.
|
||||
*/
|
||||
*/
|
||||
readonly dedicatedCoreQuota?: number;
|
||||
/**
|
||||
* @summary The low-priority core quota for the Batch account.
|
||||
* @description For accounts with PoolAllocationMode set to UserSubscription, quota is managed on
|
||||
* the subscription so this value is not returned.
|
||||
*/
|
||||
*/
|
||||
readonly lowPriorityCoreQuota?: number;
|
||||
/**
|
||||
* A list of the dedicated core quota per Virtual Machine family for the Batch account. For
|
||||
* accounts with PoolAllocationMode set to UserSubscription, quota is managed on the subscription
|
||||
* so this value is not returned.
|
||||
*/
|
||||
*/
|
||||
readonly dedicatedCoreQuotaPerVMFamily?: VirtualMachineFamilyCoreQuota[];
|
||||
/**
|
||||
* @summary A value indicating whether the core quota for the Batch Account is enforced per
|
||||
|
@ -174,158 +213,162 @@ export interface BatchAccount extends Resource {
|
|||
* Machine family. If this flag is true, dedicated core quota is enforced via the
|
||||
* dedicatedCoreQuotaPerVMFamily property on the account, and the old dedicatedCoreQuota does not
|
||||
* apply.
|
||||
*/
|
||||
*/
|
||||
readonly dedicatedCoreQuotaPerVMFamilyEnforced?: boolean;
|
||||
/**
|
||||
* @summary The pool quota for the Batch account.
|
||||
*/
|
||||
*/
|
||||
readonly poolQuota?: number;
|
||||
/**
|
||||
* @summary The active job and job schedule quota for the Batch account.
|
||||
*/
|
||||
*/
|
||||
readonly activeJobAndJobScheduleQuota?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters for updating an Azure Batch account.
|
||||
*/
|
||||
*/
|
||||
export interface BatchAccountUpdateParameters {
|
||||
/**
|
||||
* The user-specified tags associated with the account.
|
||||
*/
|
||||
*/
|
||||
tags?: { [propertyName: string]: string };
|
||||
/**
|
||||
* The properties related to the auto-storage account.
|
||||
*/
|
||||
*/
|
||||
autoStorage?: AutoStorageBaseProperties;
|
||||
/**
|
||||
* @summary The encryption configuration for the Batch account.
|
||||
*/
|
||||
encryption?: EncryptionProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters supplied to the RegenerateKey operation.
|
||||
*/
|
||||
*/
|
||||
export interface BatchAccountRegenerateKeyParameters {
|
||||
/**
|
||||
* The type of account key to regenerate. Possible values include: 'Primary', 'Secondary'
|
||||
*/
|
||||
*/
|
||||
keyName: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A set of Azure Batch account keys.
|
||||
*/
|
||||
*/
|
||||
export interface BatchAccountKeys {
|
||||
/**
|
||||
* The Batch account name.
|
||||
*/
|
||||
*/
|
||||
readonly accountName?: string;
|
||||
/**
|
||||
* The primary key associated with the account.
|
||||
*/
|
||||
*/
|
||||
readonly primary?: string;
|
||||
/**
|
||||
* The secondary key associated with the account.
|
||||
*/
|
||||
*/
|
||||
readonly secondary?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters for an activating an application package.
|
||||
*/
|
||||
*/
|
||||
export interface ActivateApplicationPackageParameters {
|
||||
/**
|
||||
* The format of the application package binary file.
|
||||
*/
|
||||
*/
|
||||
format: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A definition of an Azure resource.
|
||||
*/
|
||||
*/
|
||||
export interface ProxyResource extends BaseResource {
|
||||
/**
|
||||
* The ID of the resource.
|
||||
*/
|
||||
*/
|
||||
readonly id?: string;
|
||||
/**
|
||||
* The name of the resource.
|
||||
*/
|
||||
*/
|
||||
readonly name?: string;
|
||||
/**
|
||||
* The type of the resource.
|
||||
*/
|
||||
*/
|
||||
readonly type?: string;
|
||||
/**
|
||||
* The ETag of the resource, used for concurrency statements.
|
||||
*/
|
||||
*/
|
||||
readonly etag?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains information about an application in a Batch account.
|
||||
*/
|
||||
*/
|
||||
export interface Application extends ProxyResource {
|
||||
/**
|
||||
* The display name for the application.
|
||||
*/
|
||||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
* A value indicating whether packages within the application may be overwritten using the same
|
||||
* version string.
|
||||
*/
|
||||
*/
|
||||
allowUpdates?: boolean;
|
||||
/**
|
||||
* The package to use if a client requests the application but does not specify a version. This
|
||||
* property can only be set to the name of an existing package.
|
||||
*/
|
||||
*/
|
||||
defaultVersion?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* An application package which represents a particular version of an application.
|
||||
*/
|
||||
*/
|
||||
export interface ApplicationPackage extends ProxyResource {
|
||||
/**
|
||||
* The current state of the application package. Possible values include: 'Pending', 'Active'
|
||||
*/
|
||||
*/
|
||||
readonly state?: string;
|
||||
/**
|
||||
* The format of the application package, if the package is active.
|
||||
*/
|
||||
*/
|
||||
readonly format?: string;
|
||||
/**
|
||||
* The URL for the application package in Azure Storage.
|
||||
*/
|
||||
*/
|
||||
readonly storageUrl?: string;
|
||||
/**
|
||||
* The UTC time at which the Azure Storage URL will expire.
|
||||
*/
|
||||
*/
|
||||
readonly storageUrlExpiry?: Date;
|
||||
/**
|
||||
* The time at which the package was last activated, if the package is active.
|
||||
*/
|
||||
*/
|
||||
readonly lastActivationTime?: Date;
|
||||
}
|
||||
|
||||
/**
|
||||
* Quotas associated with a Batch region for a particular subscription.
|
||||
*/
|
||||
*/
|
||||
export interface BatchLocationQuota {
|
||||
/**
|
||||
* The number of Batch accounts that may be created under the subscription in the specified
|
||||
* region.
|
||||
*/
|
||||
*/
|
||||
readonly accountQuota?: number;
|
||||
}
|
||||
|
||||
export interface CertificateBaseProperties {
|
||||
/**
|
||||
* @summary The algorithm of the certificate thumbprint
|
||||
* @summary The algorithm of the certificate thumbprint.
|
||||
* @description This must match the first portion of the certificate name. Currently required to
|
||||
* be 'SHA1'.
|
||||
*/
|
||||
thumbprintAlgorithm?: string;
|
||||
/**
|
||||
* @summary The thumbprint of the certificate
|
||||
* @summary The thumbprint of the certificate.
|
||||
* @description This must match the thumbprint from the name.
|
||||
*/
|
||||
thumbprint?: string;
|
||||
|
@ -364,13 +407,13 @@ export interface DeleteCertificateError {
|
|||
*/
|
||||
export interface Certificate extends ProxyResource {
|
||||
/**
|
||||
* @summary The algorithm of the certificate thumbprint
|
||||
* @summary The algorithm of the certificate thumbprint.
|
||||
* @description This must match the first portion of the certificate name. Currently required to
|
||||
* be 'SHA1'.
|
||||
*/
|
||||
thumbprintAlgorithm?: string;
|
||||
/**
|
||||
* @summary The thumbprint of the certificate
|
||||
* @summary The thumbprint of the certificate.
|
||||
* @description This must match the thumbprint from the name.
|
||||
*/
|
||||
thumbprint?: string;
|
||||
|
@ -413,13 +456,13 @@ export interface Certificate extends ProxyResource {
|
|||
*/
|
||||
export interface CertificateCreateOrUpdateParameters extends ProxyResource {
|
||||
/**
|
||||
* @summary The algorithm of the certificate thumbprint
|
||||
* @summary The algorithm of the certificate thumbprint.
|
||||
* @description This must match the first portion of the certificate name. Currently required to
|
||||
* be 'SHA1'.
|
||||
*/
|
||||
thumbprintAlgorithm?: string;
|
||||
/**
|
||||
* @summary The thumbprint of the certificate
|
||||
* @summary The thumbprint of the certificate.
|
||||
* @description This must match the thumbprint from the name.
|
||||
*/
|
||||
thumbprint?: string;
|
||||
|
@ -435,12 +478,75 @@ export interface CertificateCreateOrUpdateParameters extends ProxyResource {
|
|||
data: string;
|
||||
/**
|
||||
* @summary The password to access the certificate's private key.
|
||||
* @description This is required if the certificate format is pfx and must be omitted if the
|
||||
* certificate format is cer.
|
||||
* @description This must not be specified if the certificate format is Cer.
|
||||
*/
|
||||
password?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains information about a private link resource.
|
||||
*/
|
||||
export interface PrivateLinkResource extends ProxyResource {
|
||||
/**
|
||||
* @summary The group id of the private link resource.
|
||||
* @description The group id is used to establish the private link connection.
|
||||
*/
|
||||
readonly groupId?: string;
|
||||
/**
|
||||
* @summary The list of required members that are used to establish the private link connection.
|
||||
*/
|
||||
readonly requiredMembers?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
* The private endpoint of the private endpoint connection.
|
||||
*/
|
||||
export interface PrivateEndpoint {
|
||||
/**
|
||||
* @summary The ARM resource identifier of the private endpoint. This is of the form
|
||||
* /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/privateEndpoints/{privateEndpoint}.
|
||||
*/
|
||||
readonly id?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* The private link service connection state of the private endpoint connection
|
||||
*/
|
||||
export interface PrivateLinkServiceConnectionState {
|
||||
/**
|
||||
* @summary The status for the private endpoint connection of Batch account
|
||||
* @description Possible values include: 'Approved', 'Pending', 'Rejected', 'Disconnected'
|
||||
*/
|
||||
status?: string;
|
||||
/**
|
||||
* @summary Description of the private Connection state
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* @summary Action required on the private connection state
|
||||
*/
|
||||
readonly actionRequired?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains information about a private link resource.
|
||||
*/
|
||||
export interface PrivateEndpointConnection extends ProxyResource {
|
||||
/**
|
||||
* @summary The provisioning state of the private endpoint connection.
|
||||
* @description Possible values include: 'Succeeded', 'Updating', 'Failed'
|
||||
*/
|
||||
readonly provisioningState?: string;
|
||||
/**
|
||||
* @summary The ARM resource identifier of the private endpoint.
|
||||
*/
|
||||
privateEndpoint?: PrivateEndpoint;
|
||||
/**
|
||||
* @summary The private link service connection state of the private endpoint connection.
|
||||
*/
|
||||
privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState;
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary The configuration for nodes in a pool based on the Azure Cloud Services platform.
|
||||
*/
|
||||
|
@ -490,17 +596,13 @@ export interface ImageReference {
|
|||
*/
|
||||
version?: string;
|
||||
/**
|
||||
* @summary The ARM resource identifier of the Virtual Machine Image or Shared Image Gallery
|
||||
* Image. Compute Nodes of the Pool will be created using this Image Id. This is of either the
|
||||
* form
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
|
||||
* for Virtual Machine Image or
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}
|
||||
* for SIG image.
|
||||
* @description This property is mutually exclusive with other properties. For Virtual Machine
|
||||
* Image it must be in the same region and subscription as the Azure Batch account. For SIG image
|
||||
* it must have replicas in the same region as the Azure Batch account. For information about the
|
||||
* firewall settings for the Batch node agent to communicate with the Batch service see
|
||||
* @summary The ARM resource identifier of the Shared Image Gallery Image. Compute Nodes in the
|
||||
* Pool will be created using this Image Id. This is of the form
|
||||
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}.
|
||||
* @description This property is mutually exclusive with other properties. The Shared Image
|
||||
* Gallery image must have replicas in the same region as the Azure Batch account. For
|
||||
* information about the firewall settings for 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.
|
||||
*/
|
||||
id?: string;
|
||||
|
@ -594,6 +696,20 @@ export interface ContainerConfiguration {
|
|||
containerRegistries?: ContainerRegistry[];
|
||||
}
|
||||
|
||||
/**
|
||||
* The disk encryption configuration applied on compute nodes in the pool. Disk encryption
|
||||
* configuration is not supported on Linux pool created with Virtual Machine Image or Shared Image
|
||||
* Gallery Image.
|
||||
*/
|
||||
export interface DiskEncryptionConfiguration {
|
||||
/**
|
||||
* @summary The list of disk targets Batch Service will encrypt on the compute node
|
||||
* @description On Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and
|
||||
* "TemporaryDisk" must be specified.
|
||||
*/
|
||||
targets?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary The configuration for compute nodes in a pool based on the Azure Virtual Machines
|
||||
* infrastructure.
|
||||
|
@ -644,6 +760,12 @@ export interface VirtualMachineConfiguration {
|
|||
* containerSettings property, and all other tasks may specify it.
|
||||
*/
|
||||
containerConfiguration?: ContainerConfiguration;
|
||||
/**
|
||||
* @summary The disk encryption configuration for the pool.
|
||||
* @description If specified, encryption is performed on each node in the pool during node
|
||||
* provisioning.
|
||||
*/
|
||||
diskEncryptionConfiguration?: DiskEncryptionConfiguration;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -783,7 +905,7 @@ export interface NetworkSecurityGroupRule {
|
|||
* @description Priorities within a pool must be unique and are evaluated in order of priority.
|
||||
* The lower the number the higher the priority. For example, rules could be specified with order
|
||||
* numbers of 150, 250, and 350. The rule with the order number of 150 takes precedence over the
|
||||
* rule that has an order of 250. Allowed priorities are 150 to 3500. If any reserved or
|
||||
* rule that has an order of 250. Allowed priorities are 150 to 4096. If any reserved or
|
||||
* duplicate values are provided the request fails with HTTP status code 400.
|
||||
*/
|
||||
priority: number;
|
||||
|
@ -874,6 +996,28 @@ export interface PoolEndpointConfiguration {
|
|||
inboundNatPools: InboundNatPool[];
|
||||
}
|
||||
|
||||
/**
|
||||
* The public IP Address configuration of the networking configuration of a Pool.
|
||||
*/
|
||||
export interface PublicIPAddressConfiguration {
|
||||
/**
|
||||
* @summary The provisioning type for Public IP Addresses for the pool
|
||||
* @description The default value is BatchManaged. Possible values include: 'BatchManaged',
|
||||
* 'UserManaged', 'NoPublicIPAddresses'
|
||||
*/
|
||||
provision?: string;
|
||||
/**
|
||||
* @summary The list of public IPs which the Batch service will use when provisioning Compute
|
||||
* Nodes.
|
||||
* @description The number of IPs specified here limits the maximum size of the Pool - 50
|
||||
* dedicated nodes or 20 low-priority nodes can be allocated for each public IP. For example, a
|
||||
* pool needing 150 dedicated VMs would need at least 3 public IPs specified. Each element of
|
||||
* this collection is of the form:
|
||||
* /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}.
|
||||
*/
|
||||
ipAddressIds?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
* The network configuration for a pool.
|
||||
*/
|
||||
|
@ -885,20 +1029,19 @@ export interface NetworkConfiguration {
|
|||
* @description The virtual network must be in the same region and subscription as the Azure
|
||||
* Batch account. The specified subnet should have enough free IP addresses to accommodate the
|
||||
* number of nodes in the pool. If the subnet doesn't have enough free IP addresses, the pool
|
||||
* will partially allocate compute nodes, and a resize error will occur. The
|
||||
* 'MicrosoftAzureBatch' service principal must have the 'Classic Virtual Machine Contributor'
|
||||
* Role-Based Access Control (RBAC) role for the specified VNet. The specified subnet must allow
|
||||
* communication from the Azure Batch service to be able to schedule tasks on the compute nodes.
|
||||
* This can be verified by checking if the specified VNet has any associated Network Security
|
||||
* Groups (NSG). If communication to the compute nodes in the specified subnet is denied by an
|
||||
* NSG, then the Batch service will set the state of the compute nodes to unusable. For pools
|
||||
* created via virtualMachineConfiguration the Batch account must have poolAllocationMode
|
||||
* userSubscription in order to use a VNet. If the specified VNet has any associated Network
|
||||
* Security Groups (NSG), then a few reserved system ports must be enabled for inbound
|
||||
* communication. For pools created with a virtual machine configuration, enable ports 29876 and
|
||||
* 29877, as well as port 22 for Linux and port 3389 for Windows. For pools created with a cloud
|
||||
* service configuration, enable ports 10100, 20100, and 30100. Also enable outbound connections
|
||||
* to Azure Storage on port 443. For more details see:
|
||||
* will partially allocate compute nodes and a resize error will occur. The 'MicrosoftAzureBatch'
|
||||
* service principal must have the 'Classic Virtual Machine Contributor' Role-Based Access
|
||||
* Control (RBAC) role for the specified VNet. The specified subnet must allow communication from
|
||||
* the Azure Batch service to be able to schedule tasks on the compute nodes. This can be
|
||||
* verified by checking if the specified VNet has any associated Network Security Groups (NSG).
|
||||
* If communication to the compute nodes in the specified subnet is denied by an NSG, then the
|
||||
* Batch service will set the state of the compute nodes to unusable. If the specified VNet has
|
||||
* any associated Network Security Groups (NSG), then a few reserved system ports must be enabled
|
||||
* for inbound communication. For pools created with a virtual machine configuration, enable
|
||||
* ports 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. For pools
|
||||
* created with a cloud service configuration, enable ports 10100, 20100, and 30100. Also enable
|
||||
* outbound connections to Azure Storage on port 443. For cloudServiceConfiguration pools, only
|
||||
* 'classic' VNETs are supported. For more details see:
|
||||
* https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration
|
||||
*/
|
||||
subnetId?: string;
|
||||
|
@ -909,15 +1052,11 @@ export interface NetworkConfiguration {
|
|||
*/
|
||||
endpointConfiguration?: PoolEndpointConfiguration;
|
||||
/**
|
||||
* @summary The list of public IPs which the Batch service will use when provisioning Compute
|
||||
* Nodes.
|
||||
* @description The number of IPs specified here limits the maximum size of the Pool - 50
|
||||
* dedicated nodes or 20 low-priority nodes can be allocated for each public IP. For example, a
|
||||
* pool needing 150 dedicated VMs would need at least 3 public IPs specified. Each element of
|
||||
* this collection is of the form:
|
||||
* /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}.
|
||||
* @summary The Public IPAddress configuration for Compute Nodes in the Batch Pool.
|
||||
* @description This property is only supported on Pools with the virtualMachineConfiguration
|
||||
* property.
|
||||
*/
|
||||
publicIPs?: string[];
|
||||
publicIPAddressConfiguration?: PublicIPAddressConfiguration;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1533,7 +1672,7 @@ export interface Pool extends ProxyResource {
|
|||
* @summary The size of virtual machines in the pool. All VMs in a pool are the same size.
|
||||
* @description 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
|
||||
* (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/). Batch
|
||||
* supports all Cloud Services VM sizes except ExtraSmall. 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)
|
||||
|
@ -1773,6 +1912,26 @@ export interface ListCertificatesResult extends Array<Certificate> {
|
|||
nextLink?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Values returned by the List operation.
|
||||
*/
|
||||
export interface ListPrivateLinkResourcesResult extends Array<PrivateLinkResource> {
|
||||
/**
|
||||
* The continuation token.
|
||||
*/
|
||||
nextLink?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Values returned by the List operation.
|
||||
*/
|
||||
export interface ListPrivateEndpointConnectionsResult extends Array<PrivateEndpointConnection> {
|
||||
/**
|
||||
* The continuation token.
|
||||
*/
|
||||
nextLink?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Values returned by the List operation.
|
||||
*/
|
||||
|
|
|
@ -19,6 +19,8 @@ var msRestAzure = require('ms-rest-azure');
|
|||
exports.BaseResource = msRestAzure.BaseResource;
|
||||
exports.CloudError = msRestAzure.CloudError;
|
||||
exports.AutoStorageBaseProperties = require('./autoStorageBaseProperties');
|
||||
exports.KeyVaultProperties = require('./keyVaultProperties');
|
||||
exports.EncryptionProperties = require('./encryptionProperties');
|
||||
exports.KeyVaultReference = require('./keyVaultReference');
|
||||
exports.BatchAccountCreateParameters = require('./batchAccountCreateParameters');
|
||||
exports.AutoStorageProperties = require('./autoStorageProperties');
|
||||
|
@ -37,12 +39,17 @@ exports.CertificateBaseProperties = require('./certificateBaseProperties');
|
|||
exports.DeleteCertificateError = require('./deleteCertificateError');
|
||||
exports.Certificate = require('./certificate');
|
||||
exports.CertificateCreateOrUpdateParameters = require('./certificateCreateOrUpdateParameters');
|
||||
exports.PrivateLinkResource = require('./privateLinkResource');
|
||||
exports.PrivateEndpoint = require('./privateEndpoint');
|
||||
exports.PrivateLinkServiceConnectionState = require('./privateLinkServiceConnectionState');
|
||||
exports.PrivateEndpointConnection = require('./privateEndpointConnection');
|
||||
exports.CloudServiceConfiguration = require('./cloudServiceConfiguration');
|
||||
exports.ImageReference = require('./imageReference');
|
||||
exports.WindowsConfiguration = require('./windowsConfiguration');
|
||||
exports.DataDisk = require('./dataDisk');
|
||||
exports.ContainerRegistry = require('./containerRegistry');
|
||||
exports.ContainerConfiguration = require('./containerConfiguration');
|
||||
exports.DiskEncryptionConfiguration = require('./diskEncryptionConfiguration');
|
||||
exports.VirtualMachineConfiguration = require('./virtualMachineConfiguration');
|
||||
exports.DeploymentConfiguration = require('./deploymentConfiguration');
|
||||
exports.FixedScaleSettings = require('./fixedScaleSettings');
|
||||
|
@ -53,6 +60,7 @@ exports.AutoScaleRun = require('./autoScaleRun');
|
|||
exports.NetworkSecurityGroupRule = require('./networkSecurityGroupRule');
|
||||
exports.InboundNatPool = require('./inboundNatPool');
|
||||
exports.PoolEndpointConfiguration = require('./poolEndpointConfiguration');
|
||||
exports.PublicIPAddressConfiguration = require('./publicIPAddressConfiguration');
|
||||
exports.NetworkConfiguration = require('./networkConfiguration');
|
||||
exports.TaskSchedulingPolicy = require('./taskSchedulingPolicy');
|
||||
exports.LinuxUserConfiguration = require('./linuxUserConfiguration');
|
||||
|
@ -84,4 +92,6 @@ exports.ListApplicationPackagesResult = require('./listApplicationPackagesResult
|
|||
exports.ListApplicationsResult = require('./listApplicationsResult');
|
||||
exports.OperationListResult = require('./operationListResult');
|
||||
exports.ListCertificatesResult = require('./listCertificatesResult');
|
||||
exports.ListPrivateLinkResourcesResult = require('./listPrivateLinkResourcesResult');
|
||||
exports.ListPrivateEndpointConnectionsResult = require('./listPrivateEndpointConnectionsResult');
|
||||
exports.ListPoolsResult = require('./listPoolsResult');
|
||||
|
|
|
@ -0,0 +1,53 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Class representing a KeyVaultProperties.
|
||||
*/
|
||||
class KeyVaultProperties {
|
||||
/**
|
||||
* Create a KeyVaultProperties.
|
||||
* @property {string} [keyIdentifier] Full path to the versioned secret.
|
||||
* Example
|
||||
* https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of KeyVaultProperties
|
||||
*
|
||||
* @returns {object} metadata of KeyVaultProperties
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'KeyVaultProperties',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'KeyVaultProperties',
|
||||
modelProperties: {
|
||||
keyIdentifier: {
|
||||
required: false,
|
||||
serializedName: 'keyIdentifier',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = KeyVaultProperties;
|
|
@ -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';
|
||||
|
||||
/**
|
||||
* Values returned by the List operation.
|
||||
*/
|
||||
class ListPrivateEndpointConnectionsResult extends Array {
|
||||
/**
|
||||
* Create a ListPrivateEndpointConnectionsResult.
|
||||
* @property {string} [nextLink] The continuation token.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ListPrivateEndpointConnectionsResult
|
||||
*
|
||||
* @returns {object} metadata of ListPrivateEndpointConnectionsResult
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ListPrivateEndpointConnectionsResult',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ListPrivateEndpointConnectionsResult',
|
||||
modelProperties: {
|
||||
value: {
|
||||
required: false,
|
||||
serializedName: '',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'PrivateEndpointConnectionElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PrivateEndpointConnection'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
nextLink: {
|
||||
required: false,
|
||||
serializedName: 'nextLink',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ListPrivateEndpointConnectionsResult;
|
|
@ -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';
|
||||
|
||||
/**
|
||||
* Values returned by the List operation.
|
||||
*/
|
||||
class ListPrivateLinkResourcesResult extends Array {
|
||||
/**
|
||||
* Create a ListPrivateLinkResourcesResult.
|
||||
* @property {string} [nextLink] The continuation token.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ListPrivateLinkResourcesResult
|
||||
*
|
||||
* @returns {object} metadata of ListPrivateLinkResourcesResult
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ListPrivateLinkResourcesResult',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ListPrivateLinkResourcesResult',
|
||||
modelProperties: {
|
||||
value: {
|
||||
required: false,
|
||||
serializedName: '',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'PrivateLinkResourceElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PrivateLinkResource'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
nextLink: {
|
||||
required: false,
|
||||
serializedName: 'nextLink',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ListPrivateLinkResourcesResult;
|
|
@ -25,7 +25,7 @@ class NetworkConfiguration {
|
|||
* Azure Batch account. The specified subnet should have enough free IP
|
||||
* addresses to accommodate the number of nodes in the pool. If the subnet
|
||||
* doesn't have enough free IP addresses, the pool will partially allocate
|
||||
* compute nodes, and a resize error will occur. The 'MicrosoftAzureBatch'
|
||||
* compute nodes and a resize error will occur. The 'MicrosoftAzureBatch'
|
||||
* service principal must have the 'Classic Virtual Machine Contributor'
|
||||
* Role-Based Access Control (RBAC) role for the specified VNet. The
|
||||
* specified subnet must allow communication from the Azure Batch service to
|
||||
|
@ -33,15 +33,14 @@ class NetworkConfiguration {
|
|||
* checking if the specified VNet has any associated Network Security Groups
|
||||
* (NSG). If communication to the compute nodes in the specified subnet is
|
||||
* denied by an NSG, then the Batch service will set the state of the compute
|
||||
* nodes to unusable. For pools created via virtualMachineConfiguration the
|
||||
* Batch account must have poolAllocationMode userSubscription in order to
|
||||
* use a VNet. If the specified VNet has any associated Network Security
|
||||
* Groups (NSG), then a few reserved system ports must be enabled for inbound
|
||||
* communication. For pools created with a virtual machine configuration,
|
||||
* enable ports 29876 and 29877, as well as port 22 for Linux and port 3389
|
||||
* for Windows. For pools created with a cloud service configuration, enable
|
||||
* ports 10100, 20100, and 30100. Also enable outbound connections to Azure
|
||||
* Storage on port 443. For more details see:
|
||||
* nodes to unusable. If the specified VNet has any associated Network
|
||||
* Security Groups (NSG), then a few reserved system ports must be enabled
|
||||
* for inbound communication. For pools created with a virtual machine
|
||||
* configuration, enable ports 29876 and 29877, as well as port 22 for Linux
|
||||
* and port 3389 for Windows. For pools created with a cloud service
|
||||
* configuration, enable ports 10100, 20100, and 30100. Also enable outbound
|
||||
* connections to Azure Storage on port 443. For cloudServiceConfiguration
|
||||
* pools, only 'classic' VNETs are supported. For more details see:
|
||||
* https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration
|
||||
* @property {object} [endpointConfiguration] The configuration for endpoints
|
||||
* on compute nodes in the Batch pool. Pool endpoint configuration is only
|
||||
|
@ -49,12 +48,17 @@ class NetworkConfiguration {
|
|||
* @property {array} [endpointConfiguration.inboundNatPools] The maximum
|
||||
* number of inbound NAT pools per Batch pool is 5. If the maximum number of
|
||||
* inbound NAT pools is exceeded the request fails with HTTP status code 400.
|
||||
* @property {array} [publicIPs] The list of public IPs which the Batch
|
||||
* service will use when provisioning Compute Nodes. The number of IPs
|
||||
* specified here limits the maximum size of the Pool - 50 dedicated nodes or
|
||||
* 20 low-priority nodes can be allocated for each public IP. For example, a
|
||||
* pool needing 150 dedicated VMs would need at least 3 public IPs specified.
|
||||
* Each element of this collection is of the form:
|
||||
* @property {object} [publicIPAddressConfiguration] The Public IPAddress
|
||||
* configuration for Compute Nodes in the Batch Pool. This property is only
|
||||
* supported on Pools with the virtualMachineConfiguration property.
|
||||
* @property {string} [publicIPAddressConfiguration.provision] The default
|
||||
* value is BatchManaged. Possible values include: 'BatchManaged',
|
||||
* 'UserManaged', 'NoPublicIPAddresses'
|
||||
* @property {array} [publicIPAddressConfiguration.ipAddressIds] The number
|
||||
* of IPs specified here limits the maximum size of the Pool - 50 dedicated
|
||||
* nodes or 20 low-priority nodes can be allocated for each public IP. For
|
||||
* example, a pool needing 150 dedicated VMs would need at least 3 public IPs
|
||||
* specified. Each element of this collection is of the form:
|
||||
* /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}.
|
||||
*/
|
||||
constructor() {
|
||||
|
@ -89,18 +93,12 @@ class NetworkConfiguration {
|
|||
className: 'PoolEndpointConfiguration'
|
||||
}
|
||||
},
|
||||
publicIPs: {
|
||||
publicIPAddressConfiguration: {
|
||||
required: false,
|
||||
serializedName: 'publicIPs',
|
||||
serializedName: 'publicIPAddressConfiguration',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
name: 'Composite',
|
||||
className: 'PublicIPAddressConfiguration'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ class NetworkSecurityGroupRule {
|
|||
* the number the higher the priority. For example, rules could be specified
|
||||
* with order numbers of 150, 250, and 350. The rule with the order number of
|
||||
* 150 takes precedence over the rule that has an order of 250. Allowed
|
||||
* priorities are 150 to 3500. If any reserved or duplicate values are
|
||||
* priorities are 150 to 4096. If any reserved or duplicate values are
|
||||
* provided the request fails with HTTP status code 400.
|
||||
* @property {string} access The action that should be taken for a specified
|
||||
* IP address, subnet range or tag. Possible values include: 'Allow', 'Deny'
|
||||
|
|
|
@ -40,7 +40,7 @@ class Pool extends models['ProxyResource'] {
|
|||
* 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/).
|
||||
* (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/).
|
||||
* Batch supports all Cloud Services VM sizes except ExtraSmall. For
|
||||
* information about available VM sizes for pools using images from the
|
||||
* Virtual Machines Marketplace (pools created with
|
||||
|
@ -92,11 +92,10 @@ class Pool extends models['ProxyResource'] {
|
|||
* image. If omitted, the default is 'latest'.
|
||||
* @property {string}
|
||||
* [deploymentConfiguration.virtualMachineConfiguration.imageReference.id]
|
||||
* This property is mutually exclusive with other properties. For Virtual
|
||||
* Machine Image it must be in the same region and subscription as the Azure
|
||||
* Batch account. For SIG image it must have replicas in the same region as
|
||||
* the Azure Batch account. For information about the firewall settings for
|
||||
* the Batch node agent to communicate with the Batch service see
|
||||
* This property is mutually exclusive with other properties. The Shared
|
||||
* Image Gallery image must have replicas in the same region as the Azure
|
||||
* Batch account. For information about the firewall settings for 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.
|
||||
* @property {string}
|
||||
* [deploymentConfiguration.virtualMachineConfiguration.nodeAgentSkuId] The
|
||||
|
@ -142,6 +141,14 @@ class Pool extends models['ProxyResource'] {
|
|||
* [deploymentConfiguration.virtualMachineConfiguration.containerConfiguration.containerRegistries]
|
||||
* If any images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
* @property {object}
|
||||
* [deploymentConfiguration.virtualMachineConfiguration.diskEncryptionConfiguration]
|
||||
* If specified, encryption is performed on each node in the pool during node
|
||||
* provisioning.
|
||||
* @property {array}
|
||||
* [deploymentConfiguration.virtualMachineConfiguration.diskEncryptionConfiguration.targets]
|
||||
* On Linux pool, only "TemporaryDisk" is supported; on Windows pool,
|
||||
* "OsDisk" and "TemporaryDisk" must be specified.
|
||||
* @property {number} [currentDedicatedNodes] The number of compute nodes
|
||||
* currently in the pool.
|
||||
* @property {number} [currentLowPriorityNodes] The number of low priority
|
||||
|
@ -192,7 +199,7 @@ class Pool extends models['ProxyResource'] {
|
|||
* must be in the same region and subscription as the Azure Batch account.
|
||||
* The specified subnet should have enough free IP addresses to accommodate
|
||||
* the number of nodes in the pool. If the subnet doesn't have enough free IP
|
||||
* addresses, the pool will partially allocate compute nodes, and a resize
|
||||
* addresses, the pool will partially allocate compute nodes and a resize
|
||||
* error will occur. The 'MicrosoftAzureBatch' service principal must have
|
||||
* the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC)
|
||||
* role for the specified VNet. The specified subnet must allow communication
|
||||
|
@ -200,16 +207,15 @@ class Pool extends models['ProxyResource'] {
|
|||
* nodes. This can be verified by checking if the specified VNet has any
|
||||
* associated Network Security Groups (NSG). If communication to the compute
|
||||
* nodes in the specified subnet is denied by an NSG, then the Batch service
|
||||
* will set the state of the compute nodes to unusable. For pools created via
|
||||
* virtualMachineConfiguration the Batch account must have poolAllocationMode
|
||||
* userSubscription in order to use a VNet. If the specified VNet has any
|
||||
* associated Network Security Groups (NSG), then a few reserved system ports
|
||||
* must be enabled for inbound communication. For pools created with a
|
||||
* virtual machine configuration, enable ports 29876 and 29877, as well as
|
||||
* port 22 for Linux and port 3389 for Windows. For pools created with a
|
||||
* cloud service configuration, enable ports 10100, 20100, and 30100. Also
|
||||
* enable outbound connections to Azure Storage on port 443. For more details
|
||||
* see:
|
||||
* will set the state of the compute nodes to unusable. If the specified VNet
|
||||
* has any associated Network Security Groups (NSG), then a few reserved
|
||||
* system ports must be enabled for inbound communication. For pools created
|
||||
* with a virtual machine configuration, enable ports 29876 and 29877, as
|
||||
* well as port 22 for Linux and port 3389 for Windows. For pools created
|
||||
* with a cloud service configuration, enable ports 10100, 20100, and 30100.
|
||||
* Also enable outbound connections to Azure Storage on port 443. For
|
||||
* cloudServiceConfiguration pools, only 'classic' VNETs are supported. For
|
||||
* more details see:
|
||||
* https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration
|
||||
* @property {object} [networkConfiguration.endpointConfiguration] Pool
|
||||
* endpoint configuration is only supported on pools with the
|
||||
|
@ -218,11 +224,19 @@ class Pool extends models['ProxyResource'] {
|
|||
* [networkConfiguration.endpointConfiguration.inboundNatPools] The maximum
|
||||
* number of inbound NAT pools per Batch pool is 5. If the maximum number of
|
||||
* inbound NAT pools is exceeded the request fails with HTTP status code 400.
|
||||
* @property {array} [networkConfiguration.publicIPs] The number of IPs
|
||||
* specified here limits the maximum size of the Pool - 50 dedicated nodes or
|
||||
* 20 low-priority nodes can be allocated for each public IP. For example, a
|
||||
* pool needing 150 dedicated VMs would need at least 3 public IPs specified.
|
||||
* Each element of this collection is of the form:
|
||||
* @property {object} [networkConfiguration.publicIPAddressConfiguration]
|
||||
* This property is only supported on Pools with the
|
||||
* virtualMachineConfiguration property.
|
||||
* @property {string}
|
||||
* [networkConfiguration.publicIPAddressConfiguration.provision] The default
|
||||
* value is BatchManaged. Possible values include: 'BatchManaged',
|
||||
* 'UserManaged', 'NoPublicIPAddresses'
|
||||
* @property {array}
|
||||
* [networkConfiguration.publicIPAddressConfiguration.ipAddressIds] The
|
||||
* number of IPs specified here limits the maximum size of the Pool - 50
|
||||
* dedicated nodes or 20 low-priority nodes can be allocated for each public
|
||||
* IP. For example, a pool needing 150 dedicated VMs would need at least 3
|
||||
* public IPs specified. Each element of this collection is of the form:
|
||||
* /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}.
|
||||
* @property {number} [maxTasksPerNode] The maximum number of tasks that can
|
||||
* run concurrently on a single compute node in the pool. The default value
|
||||
|
|
|
@ -0,0 +1,55 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* The private endpoint of the private endpoint connection.
|
||||
*
|
||||
*/
|
||||
class PrivateEndpoint {
|
||||
/**
|
||||
* Create a PrivateEndpoint.
|
||||
* @property {string} [id] The ARM resource identifier of the private
|
||||
* endpoint. This is of the form
|
||||
* /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/privateEndpoints/{privateEndpoint}.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of PrivateEndpoint
|
||||
*
|
||||
* @returns {object} metadata of PrivateEndpoint
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'PrivateEndpoint',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PrivateEndpoint',
|
||||
modelProperties: {
|
||||
id: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = PrivateEndpoint;
|
|
@ -0,0 +1,118 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Contains information about a private link resource.
|
||||
*
|
||||
* @extends models['ProxyResource']
|
||||
*/
|
||||
class PrivateEndpointConnection extends models['ProxyResource'] {
|
||||
/**
|
||||
* Create a PrivateEndpointConnection.
|
||||
* @property {string} [provisioningState] The provisioning state of the
|
||||
* private endpoint connection. Possible values include: 'Succeeded',
|
||||
* 'Updating', 'Failed'
|
||||
* @property {object} [privateEndpoint] The ARM resource identifier of the
|
||||
* private endpoint.
|
||||
* @property {string} [privateEndpoint.id]
|
||||
* @property {object} [privateLinkServiceConnectionState] The private link
|
||||
* service connection state of the private endpoint connection.
|
||||
* @property {string} [privateLinkServiceConnectionState.status] Possible
|
||||
* values include: 'Approved', 'Pending', 'Rejected', 'Disconnected'
|
||||
* @property {string} [privateLinkServiceConnectionState.description]
|
||||
* @property {string} [privateLinkServiceConnectionState.actionRequired]
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of PrivateEndpointConnection
|
||||
*
|
||||
* @returns {object} metadata of PrivateEndpointConnection
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'PrivateEndpointConnection',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PrivateEndpointConnection',
|
||||
modelProperties: {
|
||||
id: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
name: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
etag: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'etag',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
provisioningState: {
|
||||
required: false,
|
||||
nullable: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.provisioningState',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'Succeeded', 'Updating', 'Failed' ]
|
||||
}
|
||||
},
|
||||
privateEndpoint: {
|
||||
required: false,
|
||||
serializedName: 'properties.privateEndpoint',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PrivateEndpoint'
|
||||
}
|
||||
},
|
||||
privateLinkServiceConnectionState: {
|
||||
required: false,
|
||||
serializedName: 'properties.privateLinkServiceConnectionState',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PrivateLinkServiceConnectionState'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = PrivateEndpointConnection;
|
|
@ -0,0 +1,107 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Contains information about a private link resource.
|
||||
*
|
||||
* @extends models['ProxyResource']
|
||||
*/
|
||||
class PrivateLinkResource extends models['ProxyResource'] {
|
||||
/**
|
||||
* Create a PrivateLinkResource.
|
||||
* @property {string} [groupId] The group id of the private link resource.
|
||||
* The group id is used to establish the private link connection.
|
||||
* @property {array} [requiredMembers] The list of required members that are
|
||||
* used to establish the private link connection.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of PrivateLinkResource
|
||||
*
|
||||
* @returns {object} metadata of PrivateLinkResource
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'PrivateLinkResource',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PrivateLinkResource',
|
||||
modelProperties: {
|
||||
id: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
name: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
etag: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'etag',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
groupId: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.groupId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
requiredMembers: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.requiredMembers',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = PrivateLinkResource;
|
|
@ -0,0 +1,74 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* The private link service connection state of the private endpoint connection
|
||||
*
|
||||
*/
|
||||
class PrivateLinkServiceConnectionState {
|
||||
/**
|
||||
* Create a PrivateLinkServiceConnectionState.
|
||||
* @property {string} [status] The status for the private endpoint connection
|
||||
* of Batch account. Possible values include: 'Approved', 'Pending',
|
||||
* 'Rejected', 'Disconnected'
|
||||
* @property {string} [description] Description of the private Connection
|
||||
* state.
|
||||
* @property {string} [actionRequired] Action required on the private
|
||||
* connection state.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of PrivateLinkServiceConnectionState
|
||||
*
|
||||
* @returns {object} metadata of PrivateLinkServiceConnectionState
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'PrivateLinkServiceConnectionState',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PrivateLinkServiceConnectionState',
|
||||
modelProperties: {
|
||||
status: {
|
||||
required: false,
|
||||
serializedName: 'status',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'Approved', 'Pending', 'Rejected', 'Disconnected' ]
|
||||
}
|
||||
},
|
||||
description: {
|
||||
required: false,
|
||||
serializedName: 'description',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
actionRequired: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'actionRequired',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = PrivateLinkServiceConnectionState;
|
|
@ -0,0 +1,77 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* The public IP Address configuration of the networking configuration of a
|
||||
* Pool.
|
||||
*
|
||||
*/
|
||||
class PublicIPAddressConfiguration {
|
||||
/**
|
||||
* Create a PublicIPAddressConfiguration.
|
||||
* @property {string} [provision] The provisioning type for Public IP
|
||||
* Addresses for the pool. The default value is BatchManaged. Possible values
|
||||
* include: 'BatchManaged', 'UserManaged', 'NoPublicIPAddresses'
|
||||
* @property {array} [ipAddressIds] The list of public IPs which the Batch
|
||||
* service will use when provisioning Compute Nodes. The number of IPs
|
||||
* specified here limits the maximum size of the Pool - 50 dedicated nodes or
|
||||
* 20 low-priority nodes can be allocated for each public IP. For example, a
|
||||
* pool needing 150 dedicated VMs would need at least 3 public IPs specified.
|
||||
* Each element of this collection is of the form:
|
||||
* /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of PublicIPAddressConfiguration
|
||||
*
|
||||
* @returns {object} metadata of PublicIPAddressConfiguration
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'PublicIPAddressConfiguration',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PublicIPAddressConfiguration',
|
||||
modelProperties: {
|
||||
provision: {
|
||||
required: false,
|
||||
serializedName: 'provision',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'BatchManaged', 'UserManaged', 'NoPublicIPAddresses' ]
|
||||
}
|
||||
},
|
||||
ipAddressIds: {
|
||||
required: false,
|
||||
serializedName: 'ipAddressIds',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = PublicIPAddressConfiguration;
|
|
@ -30,11 +30,10 @@ class VirtualMachineConfiguration {
|
|||
* specified to select the latest version of an image. If omitted, the
|
||||
* default is 'latest'.
|
||||
* @property {string} [imageReference.id] This property is mutually exclusive
|
||||
* with other properties. For Virtual Machine Image it must be in the same
|
||||
* region and subscription as the Azure Batch account. For SIG image it must
|
||||
* have replicas in the same region as the Azure Batch account. For
|
||||
* information about the firewall settings for the Batch node agent to
|
||||
* communicate with the Batch service see
|
||||
* with other properties. The Shared Image Gallery image must have replicas
|
||||
* in the same region as the Azure Batch account. For information about the
|
||||
* firewall settings for 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.
|
||||
* @property {string} nodeAgentSkuId The SKU of the Batch node agent to be
|
||||
* provisioned on compute nodes in the pool. The Batch node agent is a
|
||||
|
@ -73,6 +72,12 @@ class VirtualMachineConfiguration {
|
|||
* @property {array} [containerConfiguration.containerRegistries] If any
|
||||
* images must be downloaded from a private registry which requires
|
||||
* credentials, then those credentials must be provided here.
|
||||
* @property {object} [diskEncryptionConfiguration] The disk encryption
|
||||
* configuration for the pool. If specified, encryption is performed on each
|
||||
* node in the pool during node provisioning.
|
||||
* @property {array} [diskEncryptionConfiguration.targets] On Linux pool,
|
||||
* only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and
|
||||
* "TemporaryDisk" must be specified.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
@ -143,6 +148,14 @@ class VirtualMachineConfiguration {
|
|||
name: 'Composite',
|
||||
className: 'ContainerConfiguration'
|
||||
}
|
||||
},
|
||||
diskEncryptionConfiguration: {
|
||||
required: false,
|
||||
serializedName: 'diskEncryptionConfiguration',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DiskEncryptionConfiguration'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -84,9 +84,9 @@ function _create(resourceGroupName, accountName, applicationName, options, callb
|
|||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "MinLength": 3');
|
||||
}
|
||||
if (accountName.match(/^[-\w\._]+$/) === null)
|
||||
if (accountName.match(/^[a-z0-9]+$/) === null)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/');
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[a-z0-9]+$/');
|
||||
}
|
||||
}
|
||||
if (applicationName === null || applicationName === undefined || typeof applicationName.valueOf() !== 'string') {
|
||||
|
@ -278,9 +278,9 @@ function _deleteMethod(resourceGroupName, accountName, applicationName, options,
|
|||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "MinLength": 3');
|
||||
}
|
||||
if (accountName.match(/^[-\w\._]+$/) === null)
|
||||
if (accountName.match(/^[a-z0-9]+$/) === null)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/');
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[a-z0-9]+$/');
|
||||
}
|
||||
}
|
||||
if (applicationName === null || applicationName === undefined || typeof applicationName.valueOf() !== 'string') {
|
||||
|
@ -442,9 +442,9 @@ function _get(resourceGroupName, accountName, applicationName, options, callback
|
|||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "MinLength": 3');
|
||||
}
|
||||
if (accountName.match(/^[-\w\._]+$/) === null)
|
||||
if (accountName.match(/^[a-z0-9]+$/) === null)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/');
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[a-z0-9]+$/');
|
||||
}
|
||||
}
|
||||
if (applicationName === null || applicationName === undefined || typeof applicationName.valueOf() !== 'string') {
|
||||
|
@ -636,9 +636,9 @@ function _update(resourceGroupName, accountName, applicationName, parameters, op
|
|||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "MinLength": 3');
|
||||
}
|
||||
if (accountName.match(/^[-\w\._]+$/) === null)
|
||||
if (accountName.match(/^[a-z0-9]+$/) === null)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/');
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[a-z0-9]+$/');
|
||||
}
|
||||
}
|
||||
if (applicationName === null || applicationName === undefined || typeof applicationName.valueOf() !== 'string') {
|
||||
|
@ -836,9 +836,9 @@ function _list(resourceGroupName, accountName, options, callback) {
|
|||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "MinLength": 3');
|
||||
}
|
||||
if (accountName.match(/^[-\w\._]+$/) === null)
|
||||
if (accountName.match(/^[a-z0-9]+$/) === null)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/');
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[a-z0-9]+$/');
|
||||
}
|
||||
}
|
||||
if (maxresults !== null && maxresults !== undefined && typeof maxresults !== 'number') {
|
||||
|
|
|
@ -15,7 +15,9 @@ const msRestAzure = require('ms-rest-azure');
|
|||
const WebResource = msRest.WebResource;
|
||||
|
||||
/**
|
||||
* Activates the specified application package.
|
||||
* Activates the specified application package. This should be done after the
|
||||
* `ApplicationPackage` was created and uploaded. This needs to be done before
|
||||
* an `ApplicationPackage` can be used on Pools or Tasks.
|
||||
*
|
||||
* @param {string} resourceGroupName The name of the resource group that
|
||||
* contains the Batch account.
|
||||
|
@ -74,9 +76,9 @@ function _activate(resourceGroupName, accountName, applicationName, versionName,
|
|||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "MinLength": 3');
|
||||
}
|
||||
if (accountName.match(/^[-\w\._]+$/) === null)
|
||||
if (accountName.match(/^[a-z0-9]+$/) === null)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/');
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[a-z0-9]+$/');
|
||||
}
|
||||
}
|
||||
if (applicationName === null || applicationName === undefined || typeof applicationName.valueOf() !== 'string') {
|
||||
|
@ -240,7 +242,10 @@ function _activate(resourceGroupName, accountName, applicationName, versionName,
|
|||
}
|
||||
|
||||
/**
|
||||
* Creates an application package record.
|
||||
* Creates an application package record. The record contains the SAS where the
|
||||
* package should be uploaded to. Once it is uploaded the `ApplicationPackage`
|
||||
* needs to be activated using `ApplicationPackageActive` before it can be
|
||||
* used.
|
||||
*
|
||||
* @param {string} resourceGroupName The name of the resource group that
|
||||
* contains the Batch account.
|
||||
|
@ -297,9 +302,9 @@ function _create(resourceGroupName, accountName, applicationName, versionName, o
|
|||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "MinLength": 3');
|
||||
}
|
||||
if (accountName.match(/^[-\w\._]+$/) === null)
|
||||
if (accountName.match(/^[a-z0-9]+$/) === null)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/');
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[a-z0-9]+$/');
|
||||
}
|
||||
}
|
||||
if (applicationName === null || applicationName === undefined || typeof applicationName.valueOf() !== 'string') {
|
||||
|
@ -512,9 +517,9 @@ function _deleteMethod(resourceGroupName, accountName, applicationName, versionN
|
|||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "MinLength": 3');
|
||||
}
|
||||
if (accountName.match(/^[-\w\._]+$/) === null)
|
||||
if (accountName.match(/^[a-z0-9]+$/) === null)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/');
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[a-z0-9]+$/');
|
||||
}
|
||||
}
|
||||
if (applicationName === null || applicationName === undefined || typeof applicationName.valueOf() !== 'string') {
|
||||
|
@ -696,9 +701,9 @@ function _get(resourceGroupName, accountName, applicationName, versionName, opti
|
|||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "MinLength": 3');
|
||||
}
|
||||
if (accountName.match(/^[-\w\._]+$/) === null)
|
||||
if (accountName.match(/^[a-z0-9]+$/) === null)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/');
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[a-z0-9]+$/');
|
||||
}
|
||||
}
|
||||
if (applicationName === null || applicationName === undefined || typeof applicationName.valueOf() !== 'string') {
|
||||
|
@ -900,9 +905,9 @@ function _list(resourceGroupName, accountName, applicationName, options, callbac
|
|||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "MinLength": 3');
|
||||
}
|
||||
if (accountName.match(/^[-\w\._]+$/) === null)
|
||||
if (accountName.match(/^[a-z0-9]+$/) === null)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/');
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[a-z0-9]+$/');
|
||||
}
|
||||
}
|
||||
if (applicationName === null || applicationName === undefined || typeof applicationName.valueOf() !== 'string') {
|
||||
|
@ -1176,7 +1181,9 @@ class ApplicationPackageOperations {
|
|||
}
|
||||
|
||||
/**
|
||||
* Activates the specified application package.
|
||||
* Activates the specified application package. This should be done after the
|
||||
* `ApplicationPackage` was created and uploaded. This needs to be done before
|
||||
* an `ApplicationPackage` can be used on Pools or Tasks.
|
||||
*
|
||||
* @param {string} resourceGroupName The name of the resource group that
|
||||
* contains the Batch account.
|
||||
|
@ -1216,7 +1223,9 @@ class ApplicationPackageOperations {
|
|||
}
|
||||
|
||||
/**
|
||||
* Activates the specified application package.
|
||||
* Activates the specified application package. This should be done after the
|
||||
* `ApplicationPackage` was created and uploaded. This needs to be done before
|
||||
* an `ApplicationPackage` can be used on Pools or Tasks.
|
||||
*
|
||||
* @param {string} resourceGroupName The name of the resource group that
|
||||
* contains the Batch account.
|
||||
|
@ -1278,7 +1287,10 @@ class ApplicationPackageOperations {
|
|||
}
|
||||
|
||||
/**
|
||||
* Creates an application package record.
|
||||
* Creates an application package record. The record contains the SAS where the
|
||||
* package should be uploaded to. Once it is uploaded the `ApplicationPackage`
|
||||
* needs to be activated using `ApplicationPackageActive` before it can be
|
||||
* used.
|
||||
*
|
||||
* @param {string} resourceGroupName The name of the resource group that
|
||||
* contains the Batch account.
|
||||
|
@ -1316,7 +1328,10 @@ class ApplicationPackageOperations {
|
|||
}
|
||||
|
||||
/**
|
||||
* Creates an application package record.
|
||||
* Creates an application package record. The record contains the SAS where the
|
||||
* package should be uploaded to. Once it is uploaded the `ApplicationPackage`
|
||||
* needs to be activated using `ApplicationPackageActive` before it can be
|
||||
* used.
|
||||
*
|
||||
* @param {string} resourceGroupName The name of the resource group that
|
||||
* contains the Batch account.
|
||||
|
|
|
@ -61,6 +61,23 @@ const WebResource = msRest.WebResource;
|
|||
* @param {string} parameters.keyVaultReference.url The URL of the Azure key
|
||||
* vault associated with the Batch account.
|
||||
*
|
||||
* @param {string} [parameters.publicNetworkAccess] The network access type for
|
||||
* accessing Azure Batch account. Possible values include: 'Enabled',
|
||||
* 'Disabled'
|
||||
*
|
||||
* @param {object} [parameters.encryption] The encryption configuration for the
|
||||
* Batch account.
|
||||
*
|
||||
* @param {string} [parameters.encryption.keySource] Type of the key source.
|
||||
* Possible values include: 'Microsoft.Batch', 'Microsoft.KeyVault'
|
||||
*
|
||||
* @param {object} [parameters.encryption.keyVaultProperties] Additional
|
||||
* details when using Microsoft.KeyVault
|
||||
*
|
||||
* @param {string} [parameters.encryption.keyVaultProperties.keyIdentifier]
|
||||
* Full path to the versioned secret. Example
|
||||
* https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
* @param {object} [options.customHeaders] Headers that will be added to the
|
||||
|
@ -150,6 +167,19 @@ function _create(resourceGroupName, accountName, parameters, options, callback)
|
|||
* @param {string} parameters.autoStorage.storageAccountId The resource ID of
|
||||
* the storage account to be used for auto-storage account.
|
||||
*
|
||||
* @param {object} [parameters.encryption] The encryption configuration for the
|
||||
* Batch account.
|
||||
*
|
||||
* @param {string} [parameters.encryption.keySource] Type of the key source.
|
||||
* Possible values include: 'Microsoft.Batch', 'Microsoft.KeyVault'
|
||||
*
|
||||
* @param {object} [parameters.encryption.keyVaultProperties] Additional
|
||||
* details when using Microsoft.KeyVault
|
||||
*
|
||||
* @param {string} [parameters.encryption.keyVaultProperties.keyIdentifier]
|
||||
* Full path to the versioned secret. Example
|
||||
* https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
* @param {object} [options.customHeaders] Headers that will be added to the
|
||||
|
@ -195,9 +225,9 @@ function _update(resourceGroupName, accountName, parameters, options, callback)
|
|||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "MinLength": 3');
|
||||
}
|
||||
if (accountName.match(/^[-\w\._]+$/) === null)
|
||||
if (accountName.match(/^[a-z0-9]+$/) === null)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/');
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[a-z0-9]+$/');
|
||||
}
|
||||
}
|
||||
if (parameters === null || parameters === undefined) {
|
||||
|
@ -436,9 +466,9 @@ function _get(resourceGroupName, accountName, options, callback) {
|
|||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "MinLength": 3');
|
||||
}
|
||||
if (accountName.match(/^[-\w\._]+$/) === null)
|
||||
if (accountName.match(/^[a-z0-9]+$/) === null)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/');
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[a-z0-9]+$/');
|
||||
}
|
||||
}
|
||||
if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
|
||||
|
@ -872,9 +902,9 @@ function _synchronizeAutoStorageKeys(resourceGroupName, accountName, options, ca
|
|||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "MinLength": 3');
|
||||
}
|
||||
if (accountName.match(/^[-\w\._]+$/) === null)
|
||||
if (accountName.match(/^[a-z0-9]+$/) === null)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/');
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[a-z0-9]+$/');
|
||||
}
|
||||
}
|
||||
if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
|
||||
|
@ -1018,9 +1048,9 @@ function _regenerateKey(resourceGroupName, accountName, keyName, options, callba
|
|||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "MinLength": 3');
|
||||
}
|
||||
if (accountName.match(/^[-\w\._]+$/) === null)
|
||||
if (accountName.match(/^[a-z0-9]+$/) === null)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/');
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[a-z0-9]+$/');
|
||||
}
|
||||
}
|
||||
if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
|
||||
|
@ -1211,9 +1241,9 @@ function _getKeys(resourceGroupName, accountName, options, callback) {
|
|||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "MinLength": 3');
|
||||
}
|
||||
if (accountName.match(/^[-\w\._]+$/) === null)
|
||||
if (accountName.match(/^[a-z0-9]+$/) === null)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/');
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[a-z0-9]+$/');
|
||||
}
|
||||
}
|
||||
if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
|
||||
|
@ -1364,6 +1394,23 @@ function _getKeys(resourceGroupName, accountName, options, callback) {
|
|||
* @param {string} parameters.keyVaultReference.url The URL of the Azure key
|
||||
* vault associated with the Batch account.
|
||||
*
|
||||
* @param {string} [parameters.publicNetworkAccess] The network access type for
|
||||
* accessing Azure Batch account. Possible values include: 'Enabled',
|
||||
* 'Disabled'
|
||||
*
|
||||
* @param {object} [parameters.encryption] The encryption configuration for the
|
||||
* Batch account.
|
||||
*
|
||||
* @param {string} [parameters.encryption.keySource] Type of the key source.
|
||||
* Possible values include: 'Microsoft.Batch', 'Microsoft.KeyVault'
|
||||
*
|
||||
* @param {object} [parameters.encryption.keyVaultProperties] Additional
|
||||
* details when using Microsoft.KeyVault
|
||||
*
|
||||
* @param {string} [parameters.encryption.keyVaultProperties.keyIdentifier]
|
||||
* Full path to the versioned secret. Example
|
||||
* https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
* @param {object} [options.customHeaders] Headers that will be added to the
|
||||
|
@ -1409,9 +1456,9 @@ function _beginCreate(resourceGroupName, accountName, parameters, options, callb
|
|||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "MinLength": 3');
|
||||
}
|
||||
if (accountName.match(/^[-\w\._]+$/) === null)
|
||||
if (accountName.match(/^[a-z0-9]+$/) === null)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/');
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[a-z0-9]+$/');
|
||||
}
|
||||
}
|
||||
if (parameters === null || parameters === undefined) {
|
||||
|
@ -1585,9 +1632,9 @@ function _beginDeleteMethod(resourceGroupName, accountName, options, callback) {
|
|||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "MinLength": 3');
|
||||
}
|
||||
if (accountName.match(/^[-\w\._]+$/) === null)
|
||||
if (accountName.match(/^[a-z0-9]+$/) === null)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/');
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[a-z0-9]+$/');
|
||||
}
|
||||
}
|
||||
if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
|
||||
|
@ -2001,6 +2048,23 @@ class BatchAccountOperations {
|
|||
* @param {string} parameters.keyVaultReference.url The URL of the Azure key
|
||||
* vault associated with the Batch account.
|
||||
*
|
||||
* @param {string} [parameters.publicNetworkAccess] The network access type for
|
||||
* accessing Azure Batch account. Possible values include: 'Enabled',
|
||||
* 'Disabled'
|
||||
*
|
||||
* @param {object} [parameters.encryption] The encryption configuration for the
|
||||
* Batch account.
|
||||
*
|
||||
* @param {string} [parameters.encryption.keySource] Type of the key source.
|
||||
* Possible values include: 'Microsoft.Batch', 'Microsoft.KeyVault'
|
||||
*
|
||||
* @param {object} [parameters.encryption.keyVaultProperties] Additional
|
||||
* details when using Microsoft.KeyVault
|
||||
*
|
||||
* @param {string} [parameters.encryption.keyVaultProperties.keyIdentifier]
|
||||
* Full path to the versioned secret. Example
|
||||
* https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
* @param {object} [options.customHeaders] Headers that will be added to the
|
||||
|
@ -2072,6 +2136,23 @@ class BatchAccountOperations {
|
|||
* @param {string} parameters.keyVaultReference.url The URL of the Azure key
|
||||
* vault associated with the Batch account.
|
||||
*
|
||||
* @param {string} [parameters.publicNetworkAccess] The network access type for
|
||||
* accessing Azure Batch account. Possible values include: 'Enabled',
|
||||
* 'Disabled'
|
||||
*
|
||||
* @param {object} [parameters.encryption] The encryption configuration for the
|
||||
* Batch account.
|
||||
*
|
||||
* @param {string} [parameters.encryption.keySource] Type of the key source.
|
||||
* Possible values include: 'Microsoft.Batch', 'Microsoft.KeyVault'
|
||||
*
|
||||
* @param {object} [parameters.encryption.keyVaultProperties] Additional
|
||||
* details when using Microsoft.KeyVault
|
||||
*
|
||||
* @param {string} [parameters.encryption.keyVaultProperties.keyIdentifier]
|
||||
* Full path to the versioned secret. Example
|
||||
* https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
* @param {object} [options.customHeaders] Headers that will be added to the
|
||||
|
@ -2138,6 +2219,19 @@ class BatchAccountOperations {
|
|||
* @param {string} parameters.autoStorage.storageAccountId The resource ID of
|
||||
* the storage account to be used for auto-storage account.
|
||||
*
|
||||
* @param {object} [parameters.encryption] The encryption configuration for the
|
||||
* Batch account.
|
||||
*
|
||||
* @param {string} [parameters.encryption.keySource] Type of the key source.
|
||||
* Possible values include: 'Microsoft.Batch', 'Microsoft.KeyVault'
|
||||
*
|
||||
* @param {object} [parameters.encryption.keyVaultProperties] Additional
|
||||
* details when using Microsoft.KeyVault
|
||||
*
|
||||
* @param {string} [parameters.encryption.keyVaultProperties.keyIdentifier]
|
||||
* Full path to the versioned secret. Example
|
||||
* https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
* @param {object} [options.customHeaders] Headers that will be added to the
|
||||
|
@ -2182,6 +2276,19 @@ class BatchAccountOperations {
|
|||
* @param {string} parameters.autoStorage.storageAccountId The resource ID of
|
||||
* the storage account to be used for auto-storage account.
|
||||
*
|
||||
* @param {object} [parameters.encryption] The encryption configuration for the
|
||||
* Batch account.
|
||||
*
|
||||
* @param {string} [parameters.encryption.keySource] Type of the key source.
|
||||
* Possible values include: 'Microsoft.Batch', 'Microsoft.KeyVault'
|
||||
*
|
||||
* @param {object} [parameters.encryption.keyVaultProperties] Additional
|
||||
* details when using Microsoft.KeyVault
|
||||
*
|
||||
* @param {string} [parameters.encryption.keyVaultProperties.keyIdentifier]
|
||||
* Full path to the versioned secret. Example
|
||||
* https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
* @param {object} [options.customHeaders] Headers that will be added to the
|
||||
|
@ -2899,6 +3006,23 @@ class BatchAccountOperations {
|
|||
* @param {string} parameters.keyVaultReference.url The URL of the Azure key
|
||||
* vault associated with the Batch account.
|
||||
*
|
||||
* @param {string} [parameters.publicNetworkAccess] The network access type for
|
||||
* accessing Azure Batch account. Possible values include: 'Enabled',
|
||||
* 'Disabled'
|
||||
*
|
||||
* @param {object} [parameters.encryption] The encryption configuration for the
|
||||
* Batch account.
|
||||
*
|
||||
* @param {string} [parameters.encryption.keySource] Type of the key source.
|
||||
* Possible values include: 'Microsoft.Batch', 'Microsoft.KeyVault'
|
||||
*
|
||||
* @param {object} [parameters.encryption.keyVaultProperties] Additional
|
||||
* details when using Microsoft.KeyVault
|
||||
*
|
||||
* @param {string} [parameters.encryption.keyVaultProperties.keyIdentifier]
|
||||
* Full path to the versioned secret. Example
|
||||
* https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
* @param {object} [options.customHeaders] Headers that will be added to the
|
||||
|
@ -2970,6 +3094,23 @@ class BatchAccountOperations {
|
|||
* @param {string} parameters.keyVaultReference.url The URL of the Azure key
|
||||
* vault associated with the Batch account.
|
||||
*
|
||||
* @param {string} [parameters.publicNetworkAccess] The network access type for
|
||||
* accessing Azure Batch account. Possible values include: 'Enabled',
|
||||
* 'Disabled'
|
||||
*
|
||||
* @param {object} [parameters.encryption] The encryption configuration for the
|
||||
* Batch account.
|
||||
*
|
||||
* @param {string} [parameters.encryption.keySource] Type of the key source.
|
||||
* Possible values include: 'Microsoft.Batch', 'Microsoft.KeyVault'
|
||||
*
|
||||
* @param {object} [parameters.encryption.keyVaultProperties] Additional
|
||||
* details when using Microsoft.KeyVault
|
||||
*
|
||||
* @param {string} [parameters.encryption.keyVaultProperties.keyIdentifier]
|
||||
* Full path to the versioned secret. Example
|
||||
* https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
* @param {object} [options.customHeaders] Headers that will be added to the
|
||||
|
|
|
@ -82,9 +82,9 @@ function _listByBatchAccount(resourceGroupName, accountName, options, callback)
|
|||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "MinLength": 3');
|
||||
}
|
||||
if (accountName.match(/^[-\w\._]+$/) === null)
|
||||
if (accountName.match(/^[a-z0-9]+$/) === null)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/');
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[a-z0-9]+$/');
|
||||
}
|
||||
}
|
||||
if (maxresults !== null && maxresults !== undefined && typeof maxresults !== 'number') {
|
||||
|
@ -223,10 +223,10 @@ function _listByBatchAccount(resourceGroupName, accountName, options, callback)
|
|||
* @param {object} parameters Additional parameters for certificate creation.
|
||||
*
|
||||
* @param {string} [parameters.thumbprintAlgorithm] The algorithm of the
|
||||
* certificate thumbprint This must match the first portion of the certificate
|
||||
* certificate thumbprint. This must match the first portion of the certificate
|
||||
* name. Currently required to be 'SHA1'.
|
||||
*
|
||||
* @param {string} [parameters.thumbprint] The thumbprint of the certificate
|
||||
* @param {string} [parameters.thumbprint] The thumbprint of the certificate.
|
||||
* This must match the thumbprint from the name.
|
||||
*
|
||||
* @param {string} [parameters.format] The format of the certificate - either
|
||||
|
@ -237,8 +237,8 @@ function _listByBatchAccount(resourceGroupName, accountName, options, callback)
|
|||
* certificate. The maximum size is 10KB.
|
||||
*
|
||||
* @param {string} [parameters.password] The password to access the
|
||||
* certificate's private key. This is required if the certificate format is pfx
|
||||
* and must be omitted if the certificate format is cer.
|
||||
* certificate's private key. This must not be specified if the certificate
|
||||
* format is Cer.
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
|
@ -334,10 +334,10 @@ function _create(resourceGroupName, accountName, certificateName, parameters, op
|
|||
* @param {object} parameters Certificate entity to update.
|
||||
*
|
||||
* @param {string} [parameters.thumbprintAlgorithm] The algorithm of the
|
||||
* certificate thumbprint This must match the first portion of the certificate
|
||||
* certificate thumbprint. This must match the first portion of the certificate
|
||||
* name. Currently required to be 'SHA1'.
|
||||
*
|
||||
* @param {string} [parameters.thumbprint] The thumbprint of the certificate
|
||||
* @param {string} [parameters.thumbprint] The thumbprint of the certificate.
|
||||
* This must match the thumbprint from the name.
|
||||
*
|
||||
* @param {string} [parameters.format] The format of the certificate - either
|
||||
|
@ -348,8 +348,8 @@ function _create(resourceGroupName, accountName, certificateName, parameters, op
|
|||
* certificate. The maximum size is 10KB.
|
||||
*
|
||||
* @param {string} [parameters.password] The password to access the
|
||||
* certificate's private key. This is required if the certificate format is pfx
|
||||
* and must be omitted if the certificate format is cer.
|
||||
* certificate's private key. This must not be specified if the certificate
|
||||
* format is Cer.
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
|
@ -401,9 +401,9 @@ function _update(resourceGroupName, accountName, certificateName, parameters, op
|
|||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "MinLength": 3');
|
||||
}
|
||||
if (accountName.match(/^[-\w\._]+$/) === null)
|
||||
if (accountName.match(/^[a-z0-9]+$/) === null)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/');
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[a-z0-9]+$/');
|
||||
}
|
||||
}
|
||||
if (certificateName === null || certificateName === undefined || typeof certificateName.valueOf() !== 'string') {
|
||||
|
@ -674,9 +674,9 @@ function _get(resourceGroupName, accountName, certificateName, options, callback
|
|||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "MinLength": 3');
|
||||
}
|
||||
if (accountName.match(/^[-\w\._]+$/) === null)
|
||||
if (accountName.match(/^[a-z0-9]+$/) === null)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/');
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[a-z0-9]+$/');
|
||||
}
|
||||
}
|
||||
if (certificateName === null || certificateName === undefined || typeof certificateName.valueOf() !== 'string') {
|
||||
|
@ -865,9 +865,9 @@ function _cancelDeletion(resourceGroupName, accountName, certificateName, option
|
|||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "MinLength": 3');
|
||||
}
|
||||
if (accountName.match(/^[-\w\._]+$/) === null)
|
||||
if (accountName.match(/^[a-z0-9]+$/) === null)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/');
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[a-z0-9]+$/');
|
||||
}
|
||||
}
|
||||
if (certificateName === null || certificateName === undefined || typeof certificateName.valueOf() !== 'string') {
|
||||
|
@ -1005,10 +1005,10 @@ function _cancelDeletion(resourceGroupName, accountName, certificateName, option
|
|||
* @param {object} parameters Additional parameters for certificate creation.
|
||||
*
|
||||
* @param {string} [parameters.thumbprintAlgorithm] The algorithm of the
|
||||
* certificate thumbprint This must match the first portion of the certificate
|
||||
* certificate thumbprint. This must match the first portion of the certificate
|
||||
* name. Currently required to be 'SHA1'.
|
||||
*
|
||||
* @param {string} [parameters.thumbprint] The thumbprint of the certificate
|
||||
* @param {string} [parameters.thumbprint] The thumbprint of the certificate.
|
||||
* This must match the thumbprint from the name.
|
||||
*
|
||||
* @param {string} [parameters.format] The format of the certificate - either
|
||||
|
@ -1019,8 +1019,8 @@ function _cancelDeletion(resourceGroupName, accountName, certificateName, option
|
|||
* certificate. The maximum size is 10KB.
|
||||
*
|
||||
* @param {string} [parameters.password] The password to access the
|
||||
* certificate's private key. This is required if the certificate format is pfx
|
||||
* and must be omitted if the certificate format is cer.
|
||||
* certificate's private key. This must not be specified if the certificate
|
||||
* format is Cer.
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
|
@ -1078,9 +1078,9 @@ function _beginCreate(resourceGroupName, accountName, certificateName, parameter
|
|||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "MinLength": 3');
|
||||
}
|
||||
if (accountName.match(/^[-\w\._]+$/) === null)
|
||||
if (accountName.match(/^[a-z0-9]+$/) === null)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/');
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[a-z0-9]+$/');
|
||||
}
|
||||
}
|
||||
if (certificateName === null || certificateName === undefined || typeof certificateName.valueOf() !== 'string') {
|
||||
|
@ -1288,9 +1288,9 @@ function _beginDeleteMethod(resourceGroupName, accountName, certificateName, opt
|
|||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "MinLength": 3');
|
||||
}
|
||||
if (accountName.match(/^[-\w\._]+$/) === null)
|
||||
if (accountName.match(/^[a-z0-9]+$/) === null)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/');
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[a-z0-9]+$/');
|
||||
}
|
||||
}
|
||||
if (certificateName === null || certificateName === undefined || typeof certificateName.valueOf() !== 'string') {
|
||||
|
@ -1669,10 +1669,10 @@ class CertificateOperations {
|
|||
* @param {object} parameters Additional parameters for certificate creation.
|
||||
*
|
||||
* @param {string} [parameters.thumbprintAlgorithm] The algorithm of the
|
||||
* certificate thumbprint This must match the first portion of the certificate
|
||||
* certificate thumbprint. This must match the first portion of the certificate
|
||||
* name. Currently required to be 'SHA1'.
|
||||
*
|
||||
* @param {string} [parameters.thumbprint] The thumbprint of the certificate
|
||||
* @param {string} [parameters.thumbprint] The thumbprint of the certificate.
|
||||
* This must match the thumbprint from the name.
|
||||
*
|
||||
* @param {string} [parameters.format] The format of the certificate - either
|
||||
|
@ -1683,8 +1683,8 @@ class CertificateOperations {
|
|||
* certificate. The maximum size is 10KB.
|
||||
*
|
||||
* @param {string} [parameters.password] The password to access the
|
||||
* certificate's private key. This is required if the certificate format is pfx
|
||||
* and must be omitted if the certificate format is cer.
|
||||
* certificate's private key. This must not be specified if the certificate
|
||||
* format is Cer.
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
|
@ -1735,10 +1735,10 @@ class CertificateOperations {
|
|||
* @param {object} parameters Additional parameters for certificate creation.
|
||||
*
|
||||
* @param {string} [parameters.thumbprintAlgorithm] The algorithm of the
|
||||
* certificate thumbprint This must match the first portion of the certificate
|
||||
* certificate thumbprint. This must match the first portion of the certificate
|
||||
* name. Currently required to be 'SHA1'.
|
||||
*
|
||||
* @param {string} [parameters.thumbprint] The thumbprint of the certificate
|
||||
* @param {string} [parameters.thumbprint] The thumbprint of the certificate.
|
||||
* This must match the thumbprint from the name.
|
||||
*
|
||||
* @param {string} [parameters.format] The format of the certificate - either
|
||||
|
@ -1749,8 +1749,8 @@ class CertificateOperations {
|
|||
* certificate. The maximum size is 10KB.
|
||||
*
|
||||
* @param {string} [parameters.password] The password to access the
|
||||
* certificate's private key. This is required if the certificate format is pfx
|
||||
* and must be omitted if the certificate format is cer.
|
||||
* certificate's private key. This must not be specified if the certificate
|
||||
* format is Cer.
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
|
@ -1823,10 +1823,10 @@ class CertificateOperations {
|
|||
* @param {object} parameters Certificate entity to update.
|
||||
*
|
||||
* @param {string} [parameters.thumbprintAlgorithm] The algorithm of the
|
||||
* certificate thumbprint This must match the first portion of the certificate
|
||||
* certificate thumbprint. This must match the first portion of the certificate
|
||||
* name. Currently required to be 'SHA1'.
|
||||
*
|
||||
* @param {string} [parameters.thumbprint] The thumbprint of the certificate
|
||||
* @param {string} [parameters.thumbprint] The thumbprint of the certificate.
|
||||
* This must match the thumbprint from the name.
|
||||
*
|
||||
* @param {string} [parameters.format] The format of the certificate - either
|
||||
|
@ -1837,8 +1837,8 @@ class CertificateOperations {
|
|||
* certificate. The maximum size is 10KB.
|
||||
*
|
||||
* @param {string} [parameters.password] The password to access the
|
||||
* certificate's private key. This is required if the certificate format is pfx
|
||||
* and must be omitted if the certificate format is cer.
|
||||
* certificate's private key. This must not be specified if the certificate
|
||||
* format is Cer.
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
|
@ -1884,10 +1884,10 @@ class CertificateOperations {
|
|||
* @param {object} parameters Certificate entity to update.
|
||||
*
|
||||
* @param {string} [parameters.thumbprintAlgorithm] The algorithm of the
|
||||
* certificate thumbprint This must match the first portion of the certificate
|
||||
* certificate thumbprint. This must match the first portion of the certificate
|
||||
* name. Currently required to be 'SHA1'.
|
||||
*
|
||||
* @param {string} [parameters.thumbprint] The thumbprint of the certificate
|
||||
* @param {string} [parameters.thumbprint] The thumbprint of the certificate.
|
||||
* This must match the thumbprint from the name.
|
||||
*
|
||||
* @param {string} [parameters.format] The format of the certificate - either
|
||||
|
@ -1898,8 +1898,8 @@ class CertificateOperations {
|
|||
* certificate. The maximum size is 10KB.
|
||||
*
|
||||
* @param {string} [parameters.password] The password to access the
|
||||
* certificate's private key. This is required if the certificate format is pfx
|
||||
* and must be omitted if the certificate format is cer.
|
||||
* certificate's private key. This must not be specified if the certificate
|
||||
* format is Cer.
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
|
@ -2272,10 +2272,10 @@ class CertificateOperations {
|
|||
* @param {object} parameters Additional parameters for certificate creation.
|
||||
*
|
||||
* @param {string} [parameters.thumbprintAlgorithm] The algorithm of the
|
||||
* certificate thumbprint This must match the first portion of the certificate
|
||||
* certificate thumbprint. This must match the first portion of the certificate
|
||||
* name. Currently required to be 'SHA1'.
|
||||
*
|
||||
* @param {string} [parameters.thumbprint] The thumbprint of the certificate
|
||||
* @param {string} [parameters.thumbprint] The thumbprint of the certificate.
|
||||
* This must match the thumbprint from the name.
|
||||
*
|
||||
* @param {string} [parameters.format] The format of the certificate - either
|
||||
|
@ -2286,8 +2286,8 @@ class CertificateOperations {
|
|||
* certificate. The maximum size is 10KB.
|
||||
*
|
||||
* @param {string} [parameters.password] The password to access the
|
||||
* certificate's private key. This is required if the certificate format is pfx
|
||||
* and must be omitted if the certificate format is cer.
|
||||
* certificate's private key. This must not be specified if the certificate
|
||||
* format is Cer.
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
|
@ -2338,10 +2338,10 @@ class CertificateOperations {
|
|||
* @param {object} parameters Additional parameters for certificate creation.
|
||||
*
|
||||
* @param {string} [parameters.thumbprintAlgorithm] The algorithm of the
|
||||
* certificate thumbprint This must match the first portion of the certificate
|
||||
* certificate thumbprint. This must match the first portion of the certificate
|
||||
* name. Currently required to be 'SHA1'.
|
||||
*
|
||||
* @param {string} [parameters.thumbprint] The thumbprint of the certificate
|
||||
* @param {string} [parameters.thumbprint] The thumbprint of the certificate.
|
||||
* This must match the thumbprint from the name.
|
||||
*
|
||||
* @param {string} [parameters.format] The format of the certificate - either
|
||||
|
@ -2352,8 +2352,8 @@ class CertificateOperations {
|
|||
* certificate. The maximum size is 10KB.
|
||||
*
|
||||
* @param {string} [parameters.password] The password to access the
|
||||
* certificate's private key. This is required if the certificate format is pfx
|
||||
* and must be omitted if the certificate format is cer.
|
||||
* certificate's private key. This must not be specified if the certificate
|
||||
* format is Cer.
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -20,4 +20,6 @@ exports.ApplicationOperations = require('./applicationOperations');
|
|||
exports.Location = require('./location');
|
||||
exports.Operations = require('./operations');
|
||||
exports.CertificateOperations = require('./certificateOperations');
|
||||
exports.PrivateLinkResourceOperations = require('./privateLinkResourceOperations');
|
||||
exports.PrivateEndpointConnectionOperations = require('./privateEndpointConnectionOperations');
|
||||
exports.PoolOperations = require('./poolOperations');
|
||||
|
|
|
@ -213,8 +213,7 @@ function _checkNameAvailability(locationName, name, options, callback) {
|
|||
}
|
||||
let parameters = new client.models['CheckNameAvailabilityParameters']();
|
||||
try {
|
||||
if (name !== null && name !== undefined)
|
||||
{
|
||||
if (name !== null && name !== undefined) {
|
||||
parameters.name = name;
|
||||
}
|
||||
} catch (error) {
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -0,0 +1,786 @@
|
|||
/*
|
||||
* 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 msRest = require('ms-rest');
|
||||
const msRestAzure = require('ms-rest-azure');
|
||||
const WebResource = msRest.WebResource;
|
||||
|
||||
/**
|
||||
* Lists all of the private link resources in the specified account.
|
||||
*
|
||||
* @param {string} resourceGroupName The name of the resource group that
|
||||
* contains the Batch account.
|
||||
*
|
||||
* @param {string} accountName The name of the Batch account.
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
* @param {number} [options.maxresults] The maximum number of items to return
|
||||
* in the response.
|
||||
*
|
||||
* @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 ListPrivateLinkResourcesResult} 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 _listByBatchAccount(resourceGroupName, accountName, 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 maxresults = (options && options.maxresults !== undefined) ? options.maxresults : undefined;
|
||||
// Validate
|
||||
try {
|
||||
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
|
||||
throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.');
|
||||
}
|
||||
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
|
||||
throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
|
||||
}
|
||||
if (accountName === null || accountName === undefined || typeof accountName.valueOf() !== 'string') {
|
||||
throw new Error('accountName cannot be null or undefined and it must be of type string.');
|
||||
}
|
||||
if (accountName !== null && accountName !== undefined) {
|
||||
if (accountName.length > 24)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "MaxLength": 24');
|
||||
}
|
||||
if (accountName.length < 3)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "MinLength": 3');
|
||||
}
|
||||
if (accountName.match(/^[a-z0-9]+$/) === null)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[a-z0-9]+$/');
|
||||
}
|
||||
}
|
||||
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 (maxresults !== null && maxresults !== undefined && typeof maxresults !== 'number') {
|
||||
throw new Error('maxresults must be of type number.');
|
||||
}
|
||||
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);
|
||||
}
|
||||
|
||||
// Construct URL
|
||||
let baseUrl = this.client.baseUri;
|
||||
let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources';
|
||||
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
|
||||
requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName));
|
||||
requestUrl = requestUrl.replace('{accountName}', encodeURIComponent(accountName));
|
||||
let queryParameters = [];
|
||||
queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
|
||||
if (maxresults !== null && maxresults !== undefined) {
|
||||
queryParameters.push('maxresults=' + encodeURIComponent(maxresults.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['x-ms-client-request-id'] = msRestAzure.generateUuid();
|
||||
}
|
||||
if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) {
|
||||
httpRequest.headers['accept-language'] = this.client.acceptLanguage;
|
||||
}
|
||||
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) {
|
||||
if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
|
||||
if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
|
||||
if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
|
||||
}
|
||||
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
|
||||
let resultMapper = new client.models['CloudError']().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['ListPrivateLinkResourcesResult']().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 information about the specified private link resource.
|
||||
*
|
||||
* @param {string} resourceGroupName The name of the resource group that
|
||||
* contains the Batch account.
|
||||
*
|
||||
* @param {string} accountName The name of the Batch account.
|
||||
*
|
||||
* @param {string} privateLinkResourceName The private link resource name. This
|
||||
* must be unique within the account.
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
* @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 PrivateLinkResource} 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 _get(resourceGroupName, accountName, privateLinkResourceName, 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.');
|
||||
}
|
||||
// Validate
|
||||
try {
|
||||
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
|
||||
throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.');
|
||||
}
|
||||
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
|
||||
throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
|
||||
}
|
||||
if (accountName === null || accountName === undefined || typeof accountName.valueOf() !== 'string') {
|
||||
throw new Error('accountName cannot be null or undefined and it must be of type string.');
|
||||
}
|
||||
if (accountName !== null && accountName !== undefined) {
|
||||
if (accountName.length > 24)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "MaxLength": 24');
|
||||
}
|
||||
if (accountName.length < 3)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "MinLength": 3');
|
||||
}
|
||||
if (accountName.match(/^[a-z0-9]+$/) === null)
|
||||
{
|
||||
throw new Error('"accountName" should satisfy the constraint - "Pattern": /^[a-z0-9]+$/');
|
||||
}
|
||||
}
|
||||
if (privateLinkResourceName === null || privateLinkResourceName === undefined || typeof privateLinkResourceName.valueOf() !== 'string') {
|
||||
throw new Error('privateLinkResourceName cannot be null or undefined and it must be of type string.');
|
||||
}
|
||||
if (privateLinkResourceName !== null && privateLinkResourceName !== undefined) {
|
||||
if (privateLinkResourceName.length > 64)
|
||||
{
|
||||
throw new Error('"privateLinkResourceName" should satisfy the constraint - "MaxLength": 64');
|
||||
}
|
||||
if (privateLinkResourceName.length < 1)
|
||||
{
|
||||
throw new Error('"privateLinkResourceName" should satisfy the constraint - "MinLength": 1');
|
||||
}
|
||||
if (privateLinkResourceName.match(/^[a-zA-Z0-9_-]+$/) === null)
|
||||
{
|
||||
throw new Error('"privateLinkResourceName" should satisfy the constraint - "Pattern": /^[a-zA-Z0-9_-]+$/');
|
||||
}
|
||||
}
|
||||
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);
|
||||
}
|
||||
|
||||
// Construct URL
|
||||
let baseUrl = this.client.baseUri;
|
||||
let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources/{privateLinkResourceName}';
|
||||
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
|
||||
requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName));
|
||||
requestUrl = requestUrl.replace('{accountName}', encodeURIComponent(accountName));
|
||||
requestUrl = requestUrl.replace('{privateLinkResourceName}', encodeURIComponent(privateLinkResourceName));
|
||||
let queryParameters = [];
|
||||
queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
|
||||
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['x-ms-client-request-id'] = msRestAzure.generateUuid();
|
||||
}
|
||||
if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) {
|
||||
httpRequest.headers['accept-language'] = this.client.acceptLanguage;
|
||||
}
|
||||
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) {
|
||||
if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
|
||||
if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
|
||||
if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
|
||||
}
|
||||
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
|
||||
let resultMapper = new client.models['CloudError']().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['PrivateLinkResource']().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);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Lists all of the private link resources in the specified account.
|
||||
*
|
||||
* @param {string} nextPageLink The NextLink from the previous successful call
|
||||
* to List operation.
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
* @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 ListPrivateLinkResourcesResult} 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 _listByBatchAccountNext(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.');
|
||||
}
|
||||
// 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);
|
||||
}
|
||||
|
||||
// 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['x-ms-client-request-id'] = msRestAzure.generateUuid();
|
||||
}
|
||||
if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) {
|
||||
httpRequest.headers['accept-language'] = this.client.acceptLanguage;
|
||||
}
|
||||
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) {
|
||||
if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
|
||||
if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
|
||||
if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
|
||||
}
|
||||
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
|
||||
let resultMapper = new client.models['CloudError']().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['ListPrivateLinkResourcesResult']().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);
|
||||
});
|
||||
}
|
||||
|
||||
/** Class representing a PrivateLinkResourceOperations. */
|
||||
class PrivateLinkResourceOperations {
|
||||
/**
|
||||
* Create a PrivateLinkResourceOperations.
|
||||
* @param {BatchManagementClient} client Reference to the service client.
|
||||
*/
|
||||
constructor(client) {
|
||||
this.client = client;
|
||||
this._listByBatchAccount = _listByBatchAccount;
|
||||
this._get = _get;
|
||||
this._listByBatchAccountNext = _listByBatchAccountNext;
|
||||
}
|
||||
|
||||
/**
|
||||
* Lists all of the private link resources in the specified account.
|
||||
*
|
||||
* @param {string} resourceGroupName The name of the resource group that
|
||||
* contains the Batch account.
|
||||
*
|
||||
* @param {string} accountName The name of the Batch account.
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
* @param {number} [options.maxresults] The maximum number of items to return
|
||||
* in the response.
|
||||
*
|
||||
* @param {object} [options.customHeaders] Headers that will be added to the
|
||||
* request
|
||||
*
|
||||
* @returns {Promise} A promise is returned
|
||||
*
|
||||
* @resolve {HttpOperationResponse<ListPrivateLinkResourcesResult>} - The deserialized result object.
|
||||
*
|
||||
* @reject {Error} - The error object.
|
||||
*/
|
||||
listByBatchAccountWithHttpOperationResponse(resourceGroupName, accountName, options) {
|
||||
let client = this.client;
|
||||
let self = this;
|
||||
return new Promise((resolve, reject) => {
|
||||
self._listByBatchAccount(resourceGroupName, accountName, options, (err, result, request, response) => {
|
||||
let httpOperationResponse = new msRest.HttpOperationResponse(request, response);
|
||||
httpOperationResponse.body = result;
|
||||
if (err) { reject(err); }
|
||||
else { resolve(httpOperationResponse); }
|
||||
return;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Lists all of the private link resources in the specified account.
|
||||
*
|
||||
* @param {string} resourceGroupName The name of the resource group that
|
||||
* contains the Batch account.
|
||||
*
|
||||
* @param {string} accountName The name of the Batch account.
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
* @param {number} [options.maxresults] The maximum number of items to return
|
||||
* in the response.
|
||||
*
|
||||
* @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 {ListPrivateLinkResourcesResult} - 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 ListPrivateLinkResourcesResult} 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.
|
||||
*/
|
||||
listByBatchAccount(resourceGroupName, accountName, 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._listByBatchAccount(resourceGroupName, accountName, options, (err, result, request, response) => {
|
||||
if (err) { reject(err); }
|
||||
else { resolve(result); }
|
||||
return;
|
||||
});
|
||||
});
|
||||
} else {
|
||||
return self._listByBatchAccount(resourceGroupName, accountName, options, optionalCallback);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets information about the specified private link resource.
|
||||
*
|
||||
* @param {string} resourceGroupName The name of the resource group that
|
||||
* contains the Batch account.
|
||||
*
|
||||
* @param {string} accountName The name of the Batch account.
|
||||
*
|
||||
* @param {string} privateLinkResourceName The private link resource name. This
|
||||
* must be unique within the account.
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
* @param {object} [options.customHeaders] Headers that will be added to the
|
||||
* request
|
||||
*
|
||||
* @returns {Promise} A promise is returned
|
||||
*
|
||||
* @resolve {HttpOperationResponse<PrivateLinkResource>} - The deserialized result object.
|
||||
*
|
||||
* @reject {Error} - The error object.
|
||||
*/
|
||||
getWithHttpOperationResponse(resourceGroupName, accountName, privateLinkResourceName, options) {
|
||||
let client = this.client;
|
||||
let self = this;
|
||||
return new Promise((resolve, reject) => {
|
||||
self._get(resourceGroupName, accountName, privateLinkResourceName, options, (err, result, request, response) => {
|
||||
let httpOperationResponse = new msRest.HttpOperationResponse(request, response);
|
||||
httpOperationResponse.body = result;
|
||||
if (err) { reject(err); }
|
||||
else { resolve(httpOperationResponse); }
|
||||
return;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets information about the specified private link resource.
|
||||
*
|
||||
* @param {string} resourceGroupName The name of the resource group that
|
||||
* contains the Batch account.
|
||||
*
|
||||
* @param {string} accountName The name of the Batch account.
|
||||
*
|
||||
* @param {string} privateLinkResourceName The private link resource name. This
|
||||
* must be unique within the account.
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
* @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 {PrivateLinkResource} - 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 PrivateLinkResource} 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.
|
||||
*/
|
||||
get(resourceGroupName, accountName, privateLinkResourceName, 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._get(resourceGroupName, accountName, privateLinkResourceName, options, (err, result, request, response) => {
|
||||
if (err) { reject(err); }
|
||||
else { resolve(result); }
|
||||
return;
|
||||
});
|
||||
});
|
||||
} else {
|
||||
return self._get(resourceGroupName, accountName, privateLinkResourceName, options, optionalCallback);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Lists all of the private link resources in the specified account.
|
||||
*
|
||||
* @param {string} nextPageLink The NextLink from the previous successful call
|
||||
* to List operation.
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
* @param {object} [options.customHeaders] Headers that will be added to the
|
||||
* request
|
||||
*
|
||||
* @returns {Promise} A promise is returned
|
||||
*
|
||||
* @resolve {HttpOperationResponse<ListPrivateLinkResourcesResult>} - The deserialized result object.
|
||||
*
|
||||
* @reject {Error} - The error object.
|
||||
*/
|
||||
listByBatchAccountNextWithHttpOperationResponse(nextPageLink, options) {
|
||||
let client = this.client;
|
||||
let self = this;
|
||||
return new Promise((resolve, reject) => {
|
||||
self._listByBatchAccountNext(nextPageLink, options, (err, result, request, response) => {
|
||||
let httpOperationResponse = new msRest.HttpOperationResponse(request, response);
|
||||
httpOperationResponse.body = result;
|
||||
if (err) { reject(err); }
|
||||
else { resolve(httpOperationResponse); }
|
||||
return;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Lists all of the private link resources in the specified account.
|
||||
*
|
||||
* @param {string} nextPageLink The NextLink from the previous successful call
|
||||
* to List operation.
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
* @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 {ListPrivateLinkResourcesResult} - 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 ListPrivateLinkResourcesResult} 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.
|
||||
*/
|
||||
listByBatchAccountNext(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._listByBatchAccountNext(nextPageLink, options, (err, result, request, response) => {
|
||||
if (err) { reject(err); }
|
||||
else { resolve(result); }
|
||||
return;
|
||||
});
|
||||
});
|
||||
} else {
|
||||
return self._listByBatchAccountNext(nextPageLink, options, optionalCallback);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = PrivateLinkResourceOperations;
|
|
@ -2,7 +2,7 @@
|
|||
"name": "azure-arm-batch",
|
||||
"author": "Microsoft Corporation",
|
||||
"description": "BatchManagementClient Library with typescript type definitions for node",
|
||||
"version": "5.0.0",
|
||||
"version": "6.0.0",
|
||||
"dependencies": {
|
||||
"ms-rest": "^2.3.3",
|
||||
"ms-rest-azure": "^2.5.5"
|
||||
|
|
|
@ -9,85 +9,63 @@ exports.setEnvironment = function() {
|
|||
exports.scopes = [[function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.delete('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2019-08-01')
|
||||
.delete('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2020-03-01')
|
||||
.reply(202, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
location:
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8D719D7F7D93C01?api-version=2019-08-01',
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8D7CD3738B0FB2A?api-version=2020-03-01',
|
||||
'retry-after': '15',
|
||||
'x-ms-request-id': 'fa6208b4-f0fe-441a-87fb-67f84fb04f55',
|
||||
'x-ms-request-id': 'a28e81d4-062a-44f7-b82b-92ecd3ee2597',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-deletes': '14999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': '8d72cbc1-4578-4e8d-b606-a4e4f0e8190b',
|
||||
'x-ms-correlation-request-id': 'ee3d56bf-0ae6-464d-8d37-de9211c491a5',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190606Z:8d72cbc1-4578-4e8d-b606-a4e4f0e8190b',
|
||||
date: 'Mon, 05 Aug 2019 19:06:05 GMT',
|
||||
'WESTUS:20200321T012855Z:ee3d56bf-0ae6-464d-8d37-de9211c491a5',
|
||||
date: 'Sat, 21 Mar 2020 01:28:55 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; },
|
||||
function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8D719D7F7D93C01?api-version=2019-08-01')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8D7CD3738B0FB2A?api-version=2020-03-01')
|
||||
.reply(202, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
location:
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d719d7f7d93c01?api-version=2019-08-01',
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d7cd3738b0fb2a?api-version=2020-03-01',
|
||||
'retry-after': '15',
|
||||
'x-ms-request-id': 'd6d3605c-f828-45d4-9481-dac72f521187',
|
||||
'x-ms-request-id': '884d260c-10c6-43a2-b510-3e6c5910e049',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11998',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': 'f40335c4-7777-4c3e-9d85-f807bc7f2fc0',
|
||||
'x-ms-correlation-request-id': 'e177c204-85db-4512-8afc-77b9165514f0',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190637Z:f40335c4-7777-4c3e-9d85-f807bc7f2fc0',
|
||||
date: 'Mon, 05 Aug 2019 19:06:36 GMT',
|
||||
'WESTUS:20200321T012926Z:e177c204-85db-4512-8afc-77b9165514f0',
|
||||
date: 'Sat, 21 Mar 2020 01:29:25 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; },
|
||||
function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d719d7f7d93c01?api-version=2019-08-01')
|
||||
.reply(202, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
location:
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d719d7f7d93c01?api-version=2019-08-01',
|
||||
'retry-after': '15',
|
||||
'x-ms-request-id': '38b07596-474f-4edd-8508-0028c5ef4524',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': '6fe7a994-b927-44e0-b71d-6a45b6d25338',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190707Z:6fe7a994-b927-44e0-b71d-6a45b6d25338',
|
||||
date: 'Mon, 05 Aug 2019 19:07:07 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; },
|
||||
function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d719d7f7d93c01?api-version=2019-08-01')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d7cd3738b0fb2a?api-version=2020-03-01')
|
||||
.reply(200, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
'x-ms-request-id': '70fe677f-5e87-4c01-8591-2b3eab8a83b1',
|
||||
'x-ms-request-id': '6a7d4d68-521f-4b2d-b5e2-ed3c2f65bfa5',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': '7cc44904-507a-4c3e-9b6d-326fb2815975',
|
||||
'x-ms-correlation-request-id': 'd047f1b0-edb5-48b1-a1b6-19cbc13b8197',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190738Z:7cc44904-507a-4c3e-9b6d-326fb2815975',
|
||||
date: 'Mon, 05 Aug 2019 19:07:37 GMT',
|
||||
'WESTUS:20200321T012956Z:d047f1b0-edb5-48b1-a1b6-19cbc13b8197',
|
||||
date: 'Sat, 21 Mar 2020 01:29:56 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; }]];
|
|
@ -10,22 +10,22 @@ exports.scopes = [[function (nock) {
|
|||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.filteringRequestBody(function (path) { return '*';})
|
||||
.post('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id/versions/v1.0/activate?api-version=2019-08-01', '*')
|
||||
.reply(200, "{\"type\":\"Microsoft.Batch/batchAccounts/applications/versions\",\"id\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id/versions/v1.0\",\"name\":\"v1.0\",\"etag\":\"W/\\\"0x8D719D7518AD09B\\\"\",\"properties\":{\"storageUrl\":\"https://nodesdkteststorage.blob.core.windows.net/app-my-application-id-b9dfc2b75e089960a922be9b4180a01f29ca0c78/my_application_id-v1.0-cdbdde7c-9ab2-4861-9077-ca26ff1d3b3f?sv=2018-03-28&sr=b&sig=zwuJi1cOY6rT8hRIx742sxcCdOgt9Qkmaz2WDMKTrlE%3D&st=2019-08-05T18%3A56%3A27Z&se=2019-08-05T23%3A01%3A27Z&sp=rw\",\"storageUrlExpiry\":\"2019-08-05T23:01:27.3492732Z\",\"state\":\"Active\",\"format\":\"zip\",\"lastActivationTime\":\"2019-08-05T19:01:27.27573Z\"}}", { 'cache-control': 'no-cache',
|
||||
.post('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id/versions/v1.0/activate?api-version=2020-03-01', '*')
|
||||
.reply(200, "{\"type\":\"Microsoft.Batch/batchAccounts/applications/versions\",\"id\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id/versions/v1.0\",\"name\":\"v1.0\",\"etag\":\"W/\\\"0x8D7CD3717FC2ACA\\\"\",\"properties\":{\"storageUrl\":\"https://nodesdkteststorage.blob.core.windows.net/app-my-application-id-c5fc46fb01a040c28902bfe85ca448d5/v1.0?sv=2018-03-28&sr=b&sig=ZTL6%2BuPqeAVkXmkFPbiySW7AQ%2BATlFI5iEuYcpmqT6w%3D&st=2020-03-21T01%3A23%3A00Z&se=2020-03-21T05%3A28%3A00Z&sp=rw\",\"storageUrlExpiry\":\"2020-03-21T05:28:00.5793711Z\",\"state\":\"Active\",\"format\":\"zip\",\"lastActivationTime\":\"2020-03-21T01:28:00.541501Z\"}}", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
'content-length': '780',
|
||||
'content-length': '722',
|
||||
'content-type': 'application/json; charset=utf-8',
|
||||
expires: '-1',
|
||||
'last-modified': 'Mon, 05 Aug 2019 19:01:27 GMT',
|
||||
etag: 'W/"0x8D719D7518AD09B"',
|
||||
'x-ms-correlation-request-id': '0b983542-74b7-46f6-91e9-dd13f7ba0547',
|
||||
'x-ms-request-id': 'd49859e6-779a-42bb-a389-6f0dee268b58',
|
||||
'last-modified': 'Sat, 21 Mar 2020 01:28:00 GMT',
|
||||
etag: 'W/"0x8D7CD3717FC2ACA"',
|
||||
'x-ms-correlation-request-id': '861f1294-3367-4eb2-8cde-37cfaa8f9771',
|
||||
'x-ms-request-id': '44a06236-7a01-4bb5-be3c-abe9c476a454',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-writes': '1199',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190127Z:0b983542-74b7-46f6-91e9-dd13f7ba0547',
|
||||
date: 'Mon, 05 Aug 2019 19:01:26 GMT',
|
||||
'WESTUS:20200321T012800Z:861f1294-3367-4eb2-8cde-37cfaa8f9771',
|
||||
date: 'Sat, 21 Mar 2020 01:27:59 GMT',
|
||||
connection: 'close' });
|
||||
return result; }]];
|
|
@ -9,38 +9,38 @@ exports.setEnvironment = function() {
|
|||
exports.scopes = [[function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.put('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id/versions/v1.0?api-version=2019-08-01')
|
||||
.reply(200, "{\"type\":\"Microsoft.Batch/batchAccounts/applications/versions\",\"id\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id/versions/v1.0\",\"name\":\"v1.0\",\"etag\":\"W/\\\"0x8D719D74F81BAF6\\\"\",\"properties\":{\"storageUrl\":\"https://nodesdkteststorage.blob.core.windows.net/app-my-application-id-b9dfc2b75e089960a922be9b4180a01f29ca0c78/my_application_id-v1.0-cdbdde7c-9ab2-4861-9077-ca26ff1d3b3f?sv=2018-03-28&sr=b&sig=Fk5B1YadIv4KhG%2Boh6mYS9cPXUsjEP2L6yE5wpxNMJI%3D&st=2019-08-05T18%3A56%3A23Z&se=2019-08-05T23%3A01%3A23Z&sp=rw\",\"storageUrlExpiry\":\"2019-08-05T23:01:23.9167692Z\",\"state\":\"Pending\"}}", { 'cache-control': 'no-cache',
|
||||
.put('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id/versions/v1.0?api-version=2020-03-01')
|
||||
.reply(200, "{\"type\":\"Microsoft.Batch/batchAccounts/applications/versions\",\"id\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id/versions/v1.0\",\"name\":\"v1.0\",\"etag\":\"W/\\\"0x8D7CD371572D248\\\"\",\"properties\":{\"storageUrl\":\"https://nodesdkteststorage.blob.core.windows.net/app-my-application-id-c5fc46fb01a040c28902bfe85ca448d5/v1.0?sv=2018-03-28&sr=b&sig=TCljJrKE3aj8DOQXnFXcOTMcWySKyGNCk9i3PkRYaxY%3D&st=2020-03-21T01%3A22%3A56Z&se=2020-03-21T05%3A27%3A56Z&sp=rw\",\"storageUrlExpiry\":\"2020-03-21T05:27:56.3062743Z\",\"state\":\"Pending\"}}", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
'content-length': '718',
|
||||
'content-length': '653',
|
||||
'content-type': 'application/json; charset=utf-8',
|
||||
expires: '-1',
|
||||
'last-modified': 'Mon, 05 Aug 2019 19:01:23 GMT',
|
||||
etag: 'W/"0x8D719D74F81BAF6"',
|
||||
'x-ms-correlation-request-id': '46ba7cd8-5855-41b3-a670-743c4aee87e5',
|
||||
'x-ms-request-id': '65f63150-865a-482a-927b-ef4ce4faab87',
|
||||
'last-modified': 'Sat, 21 Mar 2020 01:27:56 GMT',
|
||||
etag: 'W/"0x8D7CD371572D248"',
|
||||
'x-ms-correlation-request-id': '501ffa40-5bef-4e8f-96d8-b7290ac5503b',
|
||||
'x-ms-request-id': 'ee363d03-b9b2-441e-9e5c-4889a2cba41e',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-writes': '1199',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190124Z:46ba7cd8-5855-41b3-a670-743c4aee87e5',
|
||||
date: 'Mon, 05 Aug 2019 19:01:23 GMT',
|
||||
'WESTUS:20200321T012756Z:501ffa40-5bef-4e8f-96d8-b7290ac5503b',
|
||||
date: 'Sat, 21 Mar 2020 01:27:55 GMT',
|
||||
connection: 'close' });
|
||||
return result; },
|
||||
function (nock) {
|
||||
var result =
|
||||
nock('https://nodesdkteststorage.blob.core.windows.net:443')
|
||||
.filteringRequestBody(function (path) { return '*';})
|
||||
.put('/app-my-application-id-b9dfc2b75e089960a922be9b4180a01f29ca0c78/my_application_id-v1.0-cdbdde7c-9ab2-4861-9077-ca26ff1d3b3f?sv=2018-03-28&sr=b&sig=Fk5B1YadIv4KhG%2Boh6mYS9cPXUsjEP2L6yE5wpxNMJI%3D&st=2019-08-05T18%3A56%3A23Z&se=2019-08-05T23%3A01%3A23Z&sp=rw', '*')
|
||||
.put('/app-my-application-id-c5fc46fb01a040c28902bfe85ca448d5/v1.0?sv=2018-03-28&sr=b&sig=TCljJrKE3aj8DOQXnFXcOTMcWySKyGNCk9i3PkRYaxY%3D&st=2020-03-21T01%3A22%3A56Z&se=2020-03-21T05%3A27%3A56Z&sp=rw', '*')
|
||||
.reply(201, "", { 'content-length': '0',
|
||||
'content-md5': 'Evetq3j5z4ehYa3l4kFC1w==',
|
||||
'last-modified': 'Mon, 05 Aug 2019 19:01:24 GMT',
|
||||
etag: '"0x8D719D75008857E"',
|
||||
'last-modified': 'Sat, 21 Mar 2020 01:27:58 GMT',
|
||||
etag: '"0x8D7CD3716936537"',
|
||||
server: 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-request-id': '5b1e53aa-301e-0022-11c0-4b77ad000000',
|
||||
'x-ms-request-id': '15de03b1-501e-0088-0c1f-ff6e19000000',
|
||||
'x-ms-version': '2018-03-28',
|
||||
'x-ms-request-server-encrypted': 'true',
|
||||
date: 'Mon, 05 Aug 2019 19:01:24 GMT',
|
||||
date: 'Sat, 21 Mar 2020 01:27:57 GMT',
|
||||
connection: 'close' });
|
||||
return result; }]];
|
|
@ -10,22 +10,22 @@ exports.scopes = [[function (nock) {
|
|||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.filteringRequestBody(function (path) { return '*';})
|
||||
.put('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id?api-version=2019-08-01', '*')
|
||||
.reply(200, "{\"type\":\"Microsoft.Batch/batchAccounts/applications\",\"id\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id\",\"name\":\"my_application_id\",\"etag\":\"W/\\\"0x8D719D74DFD6121\\\"\",\"properties\":{\"displayName\":\"my_application_name\",\"allowUpdates\":true}}", { 'cache-control': 'no-cache',
|
||||
.put('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id?api-version=2020-03-01', '*')
|
||||
.reply(200, "{\"type\":\"Microsoft.Batch/batchAccounts/applications\",\"id\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id\",\"name\":\"my_application_id\",\"etag\":\"W/\\\"0x8D7CD3714252348\\\"\",\"properties\":{\"displayName\":\"my_application_name\",\"allowUpdates\":true}}", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
'content-length': '375',
|
||||
'content-type': 'application/json; charset=utf-8',
|
||||
expires: '-1',
|
||||
'last-modified': 'Mon, 05 Aug 2019 19:01:21 GMT',
|
||||
etag: 'W/"0x8D719D74DFD6121"',
|
||||
'x-ms-correlation-request-id': 'b2af2fad-a244-49e8-bc84-815d968fd0d2',
|
||||
'x-ms-request-id': 'b1ab181d-e7fa-4b2f-97d6-ca80bca4c4e1',
|
||||
'last-modified': 'Sat, 21 Mar 2020 01:27:54 GMT',
|
||||
etag: 'W/"0x8D7CD3714252348"',
|
||||
'x-ms-correlation-request-id': '47f063fa-b807-46c7-8a88-39fc8b0921a5',
|
||||
'x-ms-request-id': '4ba88c36-ac6b-4f70-9f39-0fc3d5b2d14c',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-writes': '1197',
|
||||
'x-ms-ratelimit-remaining-subscription-writes': '1199',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190121Z:b2af2fad-a244-49e8-bc84-815d968fd0d2',
|
||||
date: 'Mon, 05 Aug 2019 19:01:21 GMT',
|
||||
'WESTUS:20200321T012754Z:47f063fa-b807-46c7-8a88-39fc8b0921a5',
|
||||
date: 'Sat, 21 Mar 2020 01:27:53 GMT',
|
||||
connection: 'close' });
|
||||
return result; }]];
|
|
@ -10,22 +10,22 @@ exports.scopes = [[function (nock) {
|
|||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.filteringRequestBody(function (path) { return '*';})
|
||||
.put('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2019-08-01', '*')
|
||||
.reply(200, "{\"name\":\"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7\",\"id\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7\",\"type\":\"Microsoft.Batch/batchAccounts/certificates\",\"etag\":\"W/\\\"0x8D719D7F59ECA37\\\"\",\"properties\":{\"thumbprintAlgorithm\":\"sha1\",\"thumbprint\":\"cff2ab63c8c955aaf71989efa641b906558d9fb7\",\"provisioningState\":\"Succeeded\",\"provisioningStateTransitionTime\":\"2019-08-05T19:06:02.5991675Z\",\"format\":\"Pfx\",\"publicData\":\"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78\"}}", { 'cache-control': 'no-cache',
|
||||
.put('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2020-03-01', '*')
|
||||
.reply(200, "{\"name\":\"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7\",\"id\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7\",\"type\":\"Microsoft.Batch/batchAccounts/certificates\",\"etag\":\"W/\\\"0x8D7CD3737075B2B\\\"\",\"properties\":{\"thumbprintAlgorithm\":\"sha1\",\"thumbprint\":\"cff2ab63c8c955aaf71989efa641b906558d9fb7\",\"provisioningState\":\"Succeeded\",\"provisioningStateTransitionTime\":\"2020-03-21T01:28:52.6276322Z\",\"format\":\"Pfx\",\"publicData\":\"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78\"}}", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
'content-length': '1168',
|
||||
'content-type': 'application/json; charset=utf-8',
|
||||
expires: '-1',
|
||||
'last-modified': 'Mon, 05 Aug 2019 19:06:02 GMT',
|
||||
etag: 'W/"0x8D719D7F59ECA37"',
|
||||
'x-ms-correlation-request-id': 'a9427e1b-f213-423f-a580-3c6be7ecc8e0',
|
||||
'x-ms-request-id': 'cbdc0f64-2b81-47e0-baa2-4ba7777b1beb',
|
||||
'last-modified': 'Sat, 21 Mar 2020 01:28:52 GMT',
|
||||
etag: 'W/"0x8D7CD3737075B2B"',
|
||||
'x-ms-correlation-request-id': '31c23b3d-a4a6-4036-9508-d65f902e753e',
|
||||
'x-ms-request-id': '959a58dc-bb17-4c1f-8500-11eedfaeaf29',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-writes': '1199',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190603Z:a9427e1b-f213-423f-a580-3c6be7ecc8e0',
|
||||
date: 'Mon, 05 Aug 2019 19:06:02 GMT',
|
||||
'WESTUS:20200321T012852Z:31c23b3d-a4a6-4036-9508-d65f902e753e',
|
||||
date: 'Sat, 21 Mar 2020 01:28:52 GMT',
|
||||
connection: 'close' });
|
||||
return result; }]];
|
|
@ -9,22 +9,22 @@ exports.setEnvironment = function() {
|
|||
exports.scopes = [[function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.put('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id/versions/v2.0?api-version=2019-08-01')
|
||||
.reply(200, "{\"type\":\"Microsoft.Batch/batchAccounts/applications/versions\",\"id\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id/versions/v2.0\",\"name\":\"v2.0\",\"etag\":\"W/\\\"0x8D719D75081FE65\\\"\",\"properties\":{\"storageUrl\":\"https://nodesdkteststorage.blob.core.windows.net/app-my-application-id-b9dfc2b75e089960a922be9b4180a01f29ca0c78/my_application_id-v2.0-036bc5b1-1114-43b9-807a-f95a834ac2f0?sv=2018-03-28&sr=b&sig=jpcuQJ9gynlmSF2OieRej8zeuexvR7zTn%2FZtl%2BkOvY4%3D&st=2019-08-05T18%3A56%3A25Z&se=2019-08-05T23%3A01%3A25Z&sp=rw\",\"storageUrlExpiry\":\"2019-08-05T23:01:25.5925363Z\",\"state\":\"Pending\"}}", { 'cache-control': 'no-cache',
|
||||
.put('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id/versions/v2.0?api-version=2020-03-01')
|
||||
.reply(200, "{\"type\":\"Microsoft.Batch/batchAccounts/applications/versions\",\"id\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id/versions/v2.0\",\"name\":\"v2.0\",\"etag\":\"W/\\\"0x8D7CD3717117178\\\"\",\"properties\":{\"storageUrl\":\"https://nodesdkteststorage.blob.core.windows.net/app-my-application-id-c5fc46fb01a040c28902bfe85ca448d5/v2.0?sv=2018-03-28&sr=b&sig=hfVmcYsj02fPADrWbCCqhrg3yDkjmtEihWWoyicWfFg%3D&st=2020-03-21T01%3A22%3A59Z&se=2020-03-21T05%3A27%3A59Z&sp=rw\",\"storageUrlExpiry\":\"2020-03-21T05:27:59.022794Z\",\"state\":\"Pending\"}}", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
'content-length': '720',
|
||||
'content-length': '652',
|
||||
'content-type': 'application/json; charset=utf-8',
|
||||
expires: '-1',
|
||||
'last-modified': 'Mon, 05 Aug 2019 19:01:25 GMT',
|
||||
etag: 'W/"0x8D719D75081FE65"',
|
||||
'x-ms-correlation-request-id': 'f309ab32-0273-45ae-9c08-a5aec0ee9910',
|
||||
'x-ms-request-id': 'b22df000-5e99-40d2-82f2-4715e735437a',
|
||||
'last-modified': 'Sat, 21 Mar 2020 01:27:59 GMT',
|
||||
etag: 'W/"0x8D7CD3717117178"',
|
||||
'x-ms-correlation-request-id': 'b248bf25-b780-4b8e-baaa-59b2c9c602f5',
|
||||
'x-ms-request-id': '52b3aa1a-7123-47f9-b525-9fb754aeb348',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-writes': '1199',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190126Z:f309ab32-0273-45ae-9c08-a5aec0ee9910',
|
||||
date: 'Mon, 05 Aug 2019 19:01:25 GMT',
|
||||
'WESTUS:20200321T012759Z:b248bf25-b780-4b8e-baaa-59b2c9c602f5',
|
||||
date: 'Sat, 21 Mar 2020 01:27:58 GMT',
|
||||
connection: 'close' });
|
||||
return result; }]];
|
|
@ -10,20 +10,20 @@ exports.scopes = [[function (nock) {
|
|||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.filteringRequestBody(function (path) { return '*';})
|
||||
.post('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/checkNameAvailability?api-version=2019-08-01', '*')
|
||||
.post('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/checkNameAvailability?api-version=2020-03-01', '*')
|
||||
.reply(200, "{\"nameAvailable\":true}", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
'content-length': '22',
|
||||
'content-type': 'application/json; charset=utf-8',
|
||||
expires: '-1',
|
||||
'x-ms-correlation-request-id': '9c75be31-9b7f-44da-83d4-d4e0f065085d',
|
||||
'x-ms-request-id': '285e9692-74d2-41cc-8955-e8bf0c9a12f4',
|
||||
'x-ms-correlation-request-id': '0873348b-3577-4a7e-aa91-df787226a7bc',
|
||||
'x-ms-request-id': 'd8f26e51-6be0-44f8-860c-1c0b3e7261c8',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-writes': '1199',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T185954Z:9c75be31-9b7f-44da-83d4-d4e0f065085d',
|
||||
date: 'Mon, 05 Aug 2019 18:59:53 GMT',
|
||||
'WESTUS:20200321T012716Z:0873348b-3577-4a7e-aa91-df787226a7bc',
|
||||
date: 'Sat, 21 Mar 2020 01:27:16 GMT',
|
||||
connection: 'close' });
|
||||
return result; }]];
|
|
@ -10,44 +10,44 @@ exports.scopes = [[function (nock) {
|
|||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.filteringRequestBody(function (path) { return '*';})
|
||||
.put('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk?api-version=2019-08-01', '*')
|
||||
.put('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk?api-version=2020-03-01', '*')
|
||||
.reply(202, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
location:
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/operationResults/1520e122-8932-4767-a879-5d1aa1cdb209?api-version=2019-08-01',
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/operationResults/3eb6bb14-57ee-42ca-b2ed-d70b21b26785?api-version=2020-03-01',
|
||||
'retry-after': '15',
|
||||
'x-ms-request-id': '1520e122-8932-4767-a879-5d1aa1cdb209',
|
||||
'x-ms-request-id': '3eb6bb14-57ee-42ca-b2ed-d70b21b26785',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-writes': '1199',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': 'abf500f0-3f65-46dc-aa57-2ca709e57d84',
|
||||
'x-ms-correlation-request-id': '2cb4d7bc-5c2e-4dad-999e-89815763676f',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190049Z:abf500f0-3f65-46dc-aa57-2ca709e57d84',
|
||||
date: 'Mon, 05 Aug 2019 19:00:49 GMT',
|
||||
'WESTUS:20200321T012722Z:2cb4d7bc-5c2e-4dad-999e-89815763676f',
|
||||
date: 'Sat, 21 Mar 2020 01:27:21 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; },
|
||||
function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/operationResults/1520e122-8932-4767-a879-5d1aa1cdb209?api-version=2019-08-01')
|
||||
.reply(200, "{\"id\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk\",\"name\":\"batchtestnodesdk\",\"type\":\"Microsoft.Batch/batchAccounts\",\"location\":\"japaneast\",\"properties\":{\"accountEndpoint\":\"batchtestnodesdk.japaneast.batch.azure.com\",\"provisioningState\":\"Succeeded\",\"dedicatedCoreQuota\":700,\"dedicatedCoreQuotaPerVMFamily\":[{\"name\":\"standardAv2Family\",\"coreQuota\":100},{\"name\":\"standardDv2Family\",\"coreQuota\":100},{\"name\":\"standardDv3Family\",\"coreQuota\":100},{\"name\":\"standardEv3Family\",\"coreQuota\":50},{\"name\":\"standardDSv2Family\",\"coreQuota\":100},{\"name\":\"standardDSv3Family\",\"coreQuota\":100},{\"name\":\"standardESv3Family\",\"coreQuota\":50},{\"name\":\"standardFFamily\",\"coreQuota\":50},{\"name\":\"standardFSFamily\",\"coreQuota\":50},{\"name\":\"standardA0_A7Family\",\"coreQuota\":0},{\"name\":\"standardA8_A11Family\",\"coreQuota\":0},{\"name\":\"standardDFamily\",\"coreQuota\":0},{\"name\":\"standardGFamily\",\"coreQuota\":0},{\"name\":\"basicAFamily\",\"coreQuota\":0},{\"name\":\"standardNVFamily\",\"coreQuota\":0},{\"name\":\"standardNVPromoFamily\",\"coreQuota\":0},{\"name\":\"standardNCFamily\",\"coreQuota\":0},{\"name\":\"standardNCPromoFamily\",\"coreQuota\":0},{\"name\":\"standardHFamily\",\"coreQuota\":0},{\"name\":\"standardHPromoFamily\",\"coreQuota\":0},{\"name\":\"standardMSFamily\",\"coreQuota\":0},{\"name\":\"standardDSFamily\",\"coreQuota\":0},{\"name\":\"standardGSFamily\",\"coreQuota\":0},{\"name\":\"standardLSFamily\",\"coreQuota\":0},{\"name\":\"standardNCSv2Family\",\"coreQuota\":0},{\"name\":\"standardNDSFamily\",\"coreQuota\":0},{\"name\":\"standardNCSv3Family\",\"coreQuota\":0},{\"name\":\"standardFSv2Family\",\"coreQuota\":0},{\"name\":\"standardHBSFamily\",\"coreQuota\":0},{\"name\":\"standardHCSFamily\",\"coreQuota\":0}],\"dedicatedCoreQuotaPerVMFamilyEnforced\":false,\"lowPriorityCoreQuota\":500,\"poolQuota\":100,\"activeJobAndJobScheduleQuota\":300,\"autoStorage\":{\"storageAccountId\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/nodesdkteststorage\",\"lastKeySync\":\"2019-08-05T19:00:45.04425Z\"},\"poolAllocationMode\":\"BatchService\"}}", { 'cache-control': 'no-cache',
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/operationResults/3eb6bb14-57ee-42ca-b2ed-d70b21b26785?api-version=2020-03-01')
|
||||
.reply(200, "{\"id\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk\",\"name\":\"batchtestnodesdk\",\"type\":\"Microsoft.Batch/batchAccounts\",\"location\":\"japaneast\",\"properties\":{\"accountEndpoint\":\"batchtestnodesdk.japaneast.batch.azure.com\",\"provisioningState\":\"Succeeded\",\"dedicatedCoreQuota\":700,\"dedicatedCoreQuotaPerVMFamily\":[{\"name\":\"standardAv2Family\",\"coreQuota\":100},{\"name\":\"standardDv2Family\",\"coreQuota\":100},{\"name\":\"standardDv3Family\",\"coreQuota\":100},{\"name\":\"standardEv3Family\",\"coreQuota\":50},{\"name\":\"standardDSv2Family\",\"coreQuota\":100},{\"name\":\"standardDSv3Family\",\"coreQuota\":100},{\"name\":\"standardESv3Family\",\"coreQuota\":50},{\"name\":\"standardFFamily\",\"coreQuota\":50},{\"name\":\"standardFSFamily\",\"coreQuota\":50},{\"name\":\"standardA0_A7Family\",\"coreQuota\":0},{\"name\":\"standardA8_A11Family\",\"coreQuota\":0},{\"name\":\"standardDFamily\",\"coreQuota\":0},{\"name\":\"standardGFamily\",\"coreQuota\":0},{\"name\":\"basicAFamily\",\"coreQuota\":0},{\"name\":\"standardNVFamily\",\"coreQuota\":0},{\"name\":\"standardNVPromoFamily\",\"coreQuota\":0},{\"name\":\"standardNCFamily\",\"coreQuota\":0},{\"name\":\"standardNCPromoFamily\",\"coreQuota\":0},{\"name\":\"standardHFamily\",\"coreQuota\":0},{\"name\":\"standardHPromoFamily\",\"coreQuota\":0},{\"name\":\"standardMSFamily\",\"coreQuota\":0},{\"name\":\"standardDSFamily\",\"coreQuota\":0},{\"name\":\"standardGSFamily\",\"coreQuota\":0},{\"name\":\"standardLSFamily\",\"coreQuota\":0},{\"name\":\"standardNCSv2Family\",\"coreQuota\":0},{\"name\":\"standardNDSFamily\",\"coreQuota\":0},{\"name\":\"standardNCSv3Family\",\"coreQuota\":0},{\"name\":\"standardFSv2Family\",\"coreQuota\":0},{\"name\":\"standardHBSFamily\",\"coreQuota\":0},{\"name\":\"standardHCSFamily\",\"coreQuota\":0},{\"name\":\"standardNVSv3Family\",\"coreQuota\":0},{\"name\":\"standardHBrsv2Family\",\"coreQuota\":0}],\"dedicatedCoreQuotaPerVMFamilyEnforced\":false,\"lowPriorityCoreQuota\":500,\"poolQuota\":100,\"activeJobAndJobScheduleQuota\":300,\"autoStorage\":{\"storageAccountId\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/nodesdkteststorage\",\"lastKeySync\":\"2020-03-21T01:27:22.3979303Z\"},\"poolAllocationMode\":\"BatchService\",\"publicNetworkAccess\":\"Enabled\",\"encryption\":{\"keySource\":\"Microsoft.Batch\"}}}", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
'content-length': '2125',
|
||||
'content-length': '2295',
|
||||
'content-type': 'application/json; charset=utf-8',
|
||||
expires: '-1',
|
||||
'last-modified': 'Mon, 05 Aug 2019 19:01:20 GMT',
|
||||
etag: '"0x8D719D74D89C295"',
|
||||
'x-ms-correlation-request-id': '40b4eb26-ff1d-41f7-8af3-c4ca923a9d58',
|
||||
'x-ms-request-id': 'e7ee66ad-7720-4b7b-8b55-0d82c761c29b',
|
||||
'last-modified': 'Sat, 21 Mar 2020 01:27:53 GMT',
|
||||
etag: '"0x8D7CD3713B12AF5"',
|
||||
'x-ms-correlation-request-id': '76d9fdcc-35a2-4bf2-8671-ad228da7eddb',
|
||||
'x-ms-request-id': '7aa5556d-7eab-4db7-ad77-996e104c0c16',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190120Z:40b4eb26-ff1d-41f7-8af3-c4ca923a9d58',
|
||||
date: 'Mon, 05 Aug 2019 19:01:20 GMT',
|
||||
'WESTUS:20200321T012753Z:76d9fdcc-35a2-4bf2-8671-ad228da7eddb',
|
||||
date: 'Sat, 21 Mar 2020 01:27:52 GMT',
|
||||
connection: 'close' });
|
||||
return result; }]];
|
|
@ -10,22 +10,22 @@ exports.scopes = [[function (nock) {
|
|||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.filteringRequestBody(function (path) { return '*';})
|
||||
.put('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/pools/test_iaas_pool?api-version=2019-08-01', '*')
|
||||
.reply(200, "{\"id\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/pools/test_iaas_pool\",\"name\":\"test_iaas_pool\",\"type\":\"Microsoft.Batch/batchAccounts/pools\",\"etag\":\"W/\\\"0x8D719D8300E5DF1\\\"\",\"properties\":{\"lastModified\":\"2019-08-05T19:07:40.6092785Z\",\"creationTime\":\"2019-08-05T19:07:40.6092785Z\",\"provisioningState\":\"Succeeded\",\"provisioningStateTransitionTime\":\"2019-08-05T19:07:40.6092785Z\",\"allocationState\":\"Resizing\",\"allocationStateTransitionTime\":\"2019-08-05T19:07:40.6092785Z\",\"vmSize\":\"STANDARD_A1\",\"interNodeCommunication\":\"Disabled\",\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\"nodeFillType\":\"Spread\"},\"deploymentConfiguration\":{\"virtualMachineConfiguration\":{\"imageReference\":{\"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2016-Datacenter-smalldisk\",\"version\":\"latest\"},\"nodeAgentSkuId\":\"batch.node.windows amd64\",\"windowsConfiguration\":{\"enableAutomaticUpdates\":true}}},\"scaleSettings\":{\"fixedScale\":{\"targetDedicatedNodes\":0,\"targetLowPriorityNodes\":0,\"resizeTimeout\":\"PT15M\"}},\"resizeOperationStatus\":{\"targetDedicatedNodes\":0,\"nodeDeallocationOption\":\"Requeue\",\"resizeTimeout\":\"PT15M\",\"startTime\":\"2019-08-05T19:07:40.6092785Z\"},\"currentDedicatedNodes\":0,\"currentLowPriorityNodes\":0}}", { 'cache-control': 'no-cache',
|
||||
.put('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/pools/test_iaas_pool?api-version=2020-03-01', '*')
|
||||
.reply(200, "{\"id\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/pools/test_iaas_pool\",\"name\":\"test_iaas_pool\",\"type\":\"Microsoft.Batch/batchAccounts/pools\",\"etag\":\"W/\\\"0x8D7CD375E4E4D89\\\"\",\"properties\":{\"lastModified\":\"2020-03-21T01:29:58.5299849Z\",\"creationTime\":\"2020-03-21T01:29:58.5299849Z\",\"provisioningState\":\"Succeeded\",\"provisioningStateTransitionTime\":\"2020-03-21T01:29:58.5299849Z\",\"allocationState\":\"Resizing\",\"allocationStateTransitionTime\":\"2020-03-21T01:29:58.5299849Z\",\"vmSize\":\"STANDARD_A1\",\"interNodeCommunication\":\"Disabled\",\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\"nodeFillType\":\"Spread\"},\"deploymentConfiguration\":{\"virtualMachineConfiguration\":{\"imageReference\":{\"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"WindowsServer\",\"sku\":\"2016-Datacenter-smalldisk\",\"version\":\"latest\"},\"nodeAgentSkuId\":\"batch.node.windows amd64\",\"windowsConfiguration\":{\"enableAutomaticUpdates\":true}}},\"scaleSettings\":{\"fixedScale\":{\"targetDedicatedNodes\":0,\"targetLowPriorityNodes\":0,\"resizeTimeout\":\"PT15M\"}},\"resizeOperationStatus\":{\"targetDedicatedNodes\":0,\"nodeDeallocationOption\":\"Requeue\",\"resizeTimeout\":\"PT15M\",\"startTime\":\"2020-03-21T01:29:58.5299849Z\"},\"currentDedicatedNodes\":0,\"currentLowPriorityNodes\":0}}", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
'content-length': '1316',
|
||||
'content-type': 'application/json; charset=utf-8',
|
||||
expires: '-1',
|
||||
'last-modified': 'Mon, 05 Aug 2019 19:07:40 GMT',
|
||||
etag: 'W/"0x8D719D8300E5DF1"',
|
||||
'x-ms-correlation-request-id': '08ff553e-49bb-4331-b9d9-dc060c28f42f',
|
||||
'x-ms-request-id': '5c3fd978-dc46-48f9-a46e-25b8bc29014b',
|
||||
'last-modified': 'Sat, 21 Mar 2020 01:29:58 GMT',
|
||||
etag: 'W/"0x8D7CD375E4E4D89"',
|
||||
'x-ms-correlation-request-id': 'f3bc734e-cba9-44a5-84fe-50b1ba82c6d3',
|
||||
'x-ms-request-id': '558e1f48-8888-4109-98f5-0d04dffb688d',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-writes': '1199',
|
||||
'x-ms-ratelimit-remaining-subscription-writes': '1198',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190741Z:08ff553e-49bb-4331-b9d9-dc060c28f42f',
|
||||
date: 'Mon, 05 Aug 2019 19:07:40 GMT',
|
||||
'WESTUS:20200321T012958Z:f3bc734e-cba9-44a5-84fe-50b1ba82c6d3',
|
||||
date: 'Sat, 21 Mar 2020 01:29:57 GMT',
|
||||
connection: 'close' });
|
||||
return result; }]];
|
|
@ -10,22 +10,22 @@ exports.scopes = [[function (nock) {
|
|||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.filteringRequestBody(function (path) { return '*';})
|
||||
.put('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/pools/test_paas_pool?api-version=2019-08-01', '*')
|
||||
.reply(200, "{\"id\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/pools/test_paas_pool\",\"name\":\"test_paas_pool\",\"type\":\"Microsoft.Batch/batchAccounts/pools\",\"etag\":\"W/\\\"0x8D719D82F3BF68A\\\"\",\"properties\":{\"lastModified\":\"2019-08-05T19:07:39.2303754Z\",\"creationTime\":\"2019-08-05T19:07:39.2303754Z\",\"provisioningState\":\"Succeeded\",\"provisioningStateTransitionTime\":\"2019-08-05T19:07:39.2303754Z\",\"allocationState\":\"Resizing\",\"allocationStateTransitionTime\":\"2019-08-05T19:07:39.2303754Z\",\"vmSize\":\"Small\",\"interNodeCommunication\":\"Disabled\",\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\"nodeFillType\":\"Spread\"},\"deploymentConfiguration\":{\"cloudServiceConfiguration\":{\"osFamily\":\"5\",\"osVersion\":\"*\"}},\"scaleSettings\":{\"fixedScale\":{\"targetDedicatedNodes\":0,\"targetLowPriorityNodes\":0,\"resizeTimeout\":\"PT15M\"}},\"startTask\":{\"commandLine\":\"cmd.exe /c \\\"echo hello world\\\"\",\"resourceFiles\":[{\"filePath\":\"filename.txt\",\"httpUrl\":\"https://blobsource.com\"}],\"environmentSettings\":[{\"name\":\"ENV_VAR\",\"value\":\"foo\"}],\"userIdentity\":{\"autoUser\":{\"scope\":\"Pool\",\"elevationLevel\":\"Admin\"}},\"maxTaskRetryCount\":0,\"waitForSuccess\":true},\"userAccounts\":[{\"name\":\"UserName\",\"elevationLevel\":\"NonAdmin\",\"windowsUserConfiguration\":{\"loginMode\":\"Interactive\"}}],\"resizeOperationStatus\":{\"targetDedicatedNodes\":0,\"nodeDeallocationOption\":\"Requeue\",\"resizeTimeout\":\"PT15M\",\"startTime\":\"2019-08-05T19:07:39.2303754Z\"},\"currentDedicatedNodes\":0,\"currentLowPriorityNodes\":0}}", { 'cache-control': 'no-cache',
|
||||
.put('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/pools/test_paas_pool?api-version=2020-03-01', '*')
|
||||
.reply(200, "{\"id\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/pools/test_paas_pool\",\"name\":\"test_paas_pool\",\"type\":\"Microsoft.Batch/batchAccounts/pools\",\"etag\":\"W/\\\"0x8D7CD375DD4F560\\\"\",\"properties\":{\"lastModified\":\"2020-03-21T01:29:57.7347424Z\",\"creationTime\":\"2020-03-21T01:29:57.7347424Z\",\"provisioningState\":\"Succeeded\",\"provisioningStateTransitionTime\":\"2020-03-21T01:29:57.7347424Z\",\"allocationState\":\"Resizing\",\"allocationStateTransitionTime\":\"2020-03-21T01:29:57.7347424Z\",\"vmSize\":\"Small\",\"interNodeCommunication\":\"Disabled\",\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\"nodeFillType\":\"Spread\"},\"deploymentConfiguration\":{\"cloudServiceConfiguration\":{\"osFamily\":\"5\",\"osVersion\":\"*\"}},\"scaleSettings\":{\"fixedScale\":{\"targetDedicatedNodes\":0,\"targetLowPriorityNodes\":0,\"resizeTimeout\":\"PT15M\"}},\"startTask\":{\"commandLine\":\"cmd.exe /c \\\"echo hello world\\\"\",\"resourceFiles\":[{\"filePath\":\"filename.txt\",\"httpUrl\":\"https://blobsource.com\"}],\"environmentSettings\":[{\"name\":\"ENV_VAR\",\"value\":\"foo\"}],\"userIdentity\":{\"autoUser\":{\"scope\":\"Pool\",\"elevationLevel\":\"Admin\"}},\"maxTaskRetryCount\":0,\"waitForSuccess\":true},\"userAccounts\":[{\"name\":\"UserName\",\"elevationLevel\":\"NonAdmin\",\"windowsUserConfiguration\":{\"loginMode\":\"Interactive\"}}],\"resizeOperationStatus\":{\"targetDedicatedNodes\":0,\"nodeDeallocationOption\":\"Requeue\",\"resizeTimeout\":\"PT15M\",\"startTime\":\"2020-03-21T01:29:57.7347424Z\"},\"currentDedicatedNodes\":0,\"currentLowPriorityNodes\":0}}", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
'content-length': '1541',
|
||||
'content-type': 'application/json; charset=utf-8',
|
||||
expires: '-1',
|
||||
'last-modified': 'Mon, 05 Aug 2019 19:07:39 GMT',
|
||||
etag: 'W/"0x8D719D82F3BF68A"',
|
||||
'x-ms-correlation-request-id': '0da0b487-5008-4fc4-8d26-1714ba87d3bf',
|
||||
'x-ms-request-id': 'f5af38bb-d991-413c-b74d-476266b690c8',
|
||||
'last-modified': 'Sat, 21 Mar 2020 01:29:57 GMT',
|
||||
etag: 'W/"0x8D7CD375DD4F560"',
|
||||
'x-ms-correlation-request-id': '38dc52da-4ba4-4149-b7d7-63326e1f55b9',
|
||||
'x-ms-request-id': '11ce7c92-b538-4208-ba1f-faceb12dc1da',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-writes': '1197',
|
||||
'x-ms-ratelimit-remaining-subscription-writes': '1199',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190739Z:0da0b487-5008-4fc4-8d26-1714ba87d3bf',
|
||||
date: 'Mon, 05 Aug 2019 19:07:39 GMT',
|
||||
'WESTUS:20200321T012957Z:38dc52da-4ba4-4149-b7d7-63326e1f55b9',
|
||||
date: 'Sat, 21 Mar 2020 01:29:57 GMT',
|
||||
connection: 'close' });
|
||||
return result; }]];
|
|
@ -9,261 +9,261 @@ exports.setEnvironment = function() {
|
|||
exports.scopes = [[function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.delete('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk?api-version=2019-08-01')
|
||||
.delete('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk?api-version=2020-03-01')
|
||||
.reply(202, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
location:
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6de6c77-affa-4d3c-adec-b44cedba395e?api-version=2019-08-01',
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6fbc366-8d8b-47dc-b99b-0a4253af8313?api-version=2020-03-01',
|
||||
'retry-after': '15',
|
||||
'x-ms-request-id': 'd6de6c77-affa-4d3c-adec-b44cedba395e',
|
||||
'x-ms-request-id': 'd6fbc366-8d8b-47dc-b99b-0a4253af8313',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-deletes': '14999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': '7ab36255-1d0c-46f9-b1e1-ca4bf873481d',
|
||||
'x-ms-correlation-request-id': '0c56a51f-bf67-40b7-a658-345b9f772b0d',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190816Z:7ab36255-1d0c-46f9-b1e1-ca4bf873481d',
|
||||
date: 'Mon, 05 Aug 2019 19:08:16 GMT',
|
||||
'WESTUS:20200321T013034Z:0c56a51f-bf67-40b7-a658-345b9f772b0d',
|
||||
date: 'Sat, 21 Mar 2020 01:30:33 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; },
|
||||
function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6de6c77-affa-4d3c-adec-b44cedba395e?api-version=2019-08-01')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6fbc366-8d8b-47dc-b99b-0a4253af8313?api-version=2020-03-01')
|
||||
.reply(202, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
location:
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6de6c77-affa-4d3c-adec-b44cedba395e?api-version=2019-08-01',
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6fbc366-8d8b-47dc-b99b-0a4253af8313?api-version=2020-03-01',
|
||||
'retry-after': '15',
|
||||
'x-ms-request-id': 'e5d438e8-3c2b-4f48-9f85-c291a2142054',
|
||||
'x-ms-request-id': 'c1af16e4-8ad4-49f0-b639-91ac237052d1',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': 'ca028094-6360-4913-ba89-4a86f69b00c8',
|
||||
'x-ms-correlation-request-id': '02591bdc-4f0c-4b86-bfd3-698faad200b8',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190846Z:ca028094-6360-4913-ba89-4a86f69b00c8',
|
||||
date: 'Mon, 05 Aug 2019 19:08:46 GMT',
|
||||
'WESTUS:20200321T013104Z:02591bdc-4f0c-4b86-bfd3-698faad200b8',
|
||||
date: 'Sat, 21 Mar 2020 01:31:04 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; },
|
||||
function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6de6c77-affa-4d3c-adec-b44cedba395e?api-version=2019-08-01')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6fbc366-8d8b-47dc-b99b-0a4253af8313?api-version=2020-03-01')
|
||||
.reply(202, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
location:
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6de6c77-affa-4d3c-adec-b44cedba395e?api-version=2019-08-01',
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6fbc366-8d8b-47dc-b99b-0a4253af8313?api-version=2020-03-01',
|
||||
'retry-after': '15',
|
||||
'x-ms-request-id': '61db3c93-dd4f-4151-ae40-71a455051731',
|
||||
'x-ms-request-id': '26ea2129-38e6-4dfa-88d9-5b7eb666e5b2',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': '6e749b25-c221-417d-b7d5-3e5b84da9048',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20200321T013135Z:6e749b25-c221-417d-b7d5-3e5b84da9048',
|
||||
date: 'Sat, 21 Mar 2020 01:31:34 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; },
|
||||
function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6fbc366-8d8b-47dc-b99b-0a4253af8313?api-version=2020-03-01')
|
||||
.reply(202, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
location:
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6fbc366-8d8b-47dc-b99b-0a4253af8313?api-version=2020-03-01',
|
||||
'retry-after': '15',
|
||||
'x-ms-request-id': 'dade1d5e-d14b-4eed-ac0f-261ea4965a84',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': 'fa424acb-01c4-4cf1-809a-307b907b1359',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20200321T013205Z:fa424acb-01c4-4cf1-809a-307b907b1359',
|
||||
date: 'Sat, 21 Mar 2020 01:32:04 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; },
|
||||
function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6fbc366-8d8b-47dc-b99b-0a4253af8313?api-version=2020-03-01')
|
||||
.reply(202, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
location:
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6fbc366-8d8b-47dc-b99b-0a4253af8313?api-version=2020-03-01',
|
||||
'retry-after': '15',
|
||||
'x-ms-request-id': 'e50595f6-a646-43a1-b011-2fbab1f17cf0',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': '8161b52c-de7e-423c-870e-c45c086bd14b',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20200321T013236Z:8161b52c-de7e-423c-870e-c45c086bd14b',
|
||||
date: 'Sat, 21 Mar 2020 01:32:36 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; },
|
||||
function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6fbc366-8d8b-47dc-b99b-0a4253af8313?api-version=2020-03-01')
|
||||
.reply(202, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
location:
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6fbc366-8d8b-47dc-b99b-0a4253af8313?api-version=2020-03-01',
|
||||
'retry-after': '15',
|
||||
'x-ms-request-id': '87b56b83-f9f8-4e93-bf36-9fb8a41594ee',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': '7c3628f0-9f16-4be1-9e15-5bb9da31115c',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20200321T013306Z:7c3628f0-9f16-4be1-9e15-5bb9da31115c',
|
||||
date: 'Sat, 21 Mar 2020 01:33:06 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; },
|
||||
function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6fbc366-8d8b-47dc-b99b-0a4253af8313?api-version=2020-03-01')
|
||||
.reply(202, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
location:
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6fbc366-8d8b-47dc-b99b-0a4253af8313?api-version=2020-03-01',
|
||||
'retry-after': '15',
|
||||
'x-ms-request-id': 'ad40f0d0-f770-4363-afc6-f3ac48ef8d0b',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': 'de569630-7aec-42c0-b669-4e126e5394ab',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20200321T013337Z:de569630-7aec-42c0-b669-4e126e5394ab',
|
||||
date: 'Sat, 21 Mar 2020 01:33:37 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; },
|
||||
function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6fbc366-8d8b-47dc-b99b-0a4253af8313?api-version=2020-03-01')
|
||||
.reply(202, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
location:
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6fbc366-8d8b-47dc-b99b-0a4253af8313?api-version=2020-03-01',
|
||||
'retry-after': '15',
|
||||
'x-ms-request-id': 'b38da449-503b-4859-8b9a-1fbdfb8a3809',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': '5c677670-343a-4c42-93cf-242f6f09b020',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20200321T013408Z:5c677670-343a-4c42-93cf-242f6f09b020',
|
||||
date: 'Sat, 21 Mar 2020 01:34:07 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; },
|
||||
function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6fbc366-8d8b-47dc-b99b-0a4253af8313?api-version=2020-03-01')
|
||||
.reply(202, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
location:
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6fbc366-8d8b-47dc-b99b-0a4253af8313?api-version=2020-03-01',
|
||||
'retry-after': '15',
|
||||
'x-ms-request-id': '82239a29-42b3-4e89-892e-efef5cfaf753',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': '62143208-4a2e-4b29-9219-06922b634829',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20200321T013438Z:62143208-4a2e-4b29-9219-06922b634829',
|
||||
date: 'Sat, 21 Mar 2020 01:34:38 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; },
|
||||
function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6fbc366-8d8b-47dc-b99b-0a4253af8313?api-version=2020-03-01')
|
||||
.reply(202, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
location:
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6fbc366-8d8b-47dc-b99b-0a4253af8313?api-version=2020-03-01',
|
||||
'retry-after': '15',
|
||||
'x-ms-request-id': '002db5cc-2507-4c7e-91ec-08514b529fa5',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11998',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': '8ffdb8a2-3310-4003-8de6-82864170c39c',
|
||||
'x-ms-correlation-request-id': '9c01f1b1-8270-4617-90e0-4c534ceeca31',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190917Z:8ffdb8a2-3310-4003-8de6-82864170c39c',
|
||||
date: 'Mon, 05 Aug 2019 19:09:17 GMT',
|
||||
'WESTUS:20200321T013509Z:9c01f1b1-8270-4617-90e0-4c534ceeca31',
|
||||
date: 'Sat, 21 Mar 2020 01:35:09 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; },
|
||||
function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6de6c77-affa-4d3c-adec-b44cedba395e?api-version=2019-08-01')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6fbc366-8d8b-47dc-b99b-0a4253af8313?api-version=2020-03-01')
|
||||
.reply(202, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
location:
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6de6c77-affa-4d3c-adec-b44cedba395e?api-version=2019-08-01',
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6fbc366-8d8b-47dc-b99b-0a4253af8313?api-version=2020-03-01',
|
||||
'retry-after': '15',
|
||||
'x-ms-request-id': '5023e082-c164-4f19-b380-aee740be9c27',
|
||||
'x-ms-request-id': '5a4571a8-cccd-453e-a7e8-7ecbf99e5ae3',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': 'e9b2edc5-47b0-40fb-a16d-3d1a97cb76e3',
|
||||
'x-ms-correlation-request-id': 'b52beb25-6523-47ef-b61d-c0a778e86e58',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190948Z:e9b2edc5-47b0-40fb-a16d-3d1a97cb76e3',
|
||||
date: 'Mon, 05 Aug 2019 19:09:47 GMT',
|
||||
'WESTUS:20200321T013539Z:b52beb25-6523-47ef-b61d-c0a778e86e58',
|
||||
date: 'Sat, 21 Mar 2020 01:35:39 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; },
|
||||
function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6de6c77-affa-4d3c-adec-b44cedba395e?api-version=2019-08-01')
|
||||
.reply(202, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
location:
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6de6c77-affa-4d3c-adec-b44cedba395e?api-version=2019-08-01',
|
||||
'retry-after': '15',
|
||||
'x-ms-request-id': 'fcbe7bea-55c1-4490-a723-dd1ffd2006a8',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11998',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': '03aba71f-4b77-4d3d-9202-5cfcf388fd42',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T191018Z:03aba71f-4b77-4d3d-9202-5cfcf388fd42',
|
||||
date: 'Mon, 05 Aug 2019 19:10:17 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; },
|
||||
function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6de6c77-affa-4d3c-adec-b44cedba395e?api-version=2019-08-01')
|
||||
.reply(202, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
location:
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6de6c77-affa-4d3c-adec-b44cedba395e?api-version=2019-08-01',
|
||||
'retry-after': '15',
|
||||
'x-ms-request-id': 'c93c1d5f-353e-4d71-9d88-b57307943a8b',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': 'c882695c-ab62-4bdc-aa04-cab2dc6f5b07',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T191049Z:c882695c-ab62-4bdc-aa04-cab2dc6f5b07',
|
||||
date: 'Mon, 05 Aug 2019 19:10:48 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; },
|
||||
function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6de6c77-affa-4d3c-adec-b44cedba395e?api-version=2019-08-01')
|
||||
.reply(202, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
location:
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6de6c77-affa-4d3c-adec-b44cedba395e?api-version=2019-08-01',
|
||||
'retry-after': '15',
|
||||
'x-ms-request-id': '26a4ca02-fa9b-4a5d-963b-c91350c6cbf9',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': '2a58f079-9aed-48d5-bbdc-6505866e5a17',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T191120Z:2a58f079-9aed-48d5-bbdc-6505866e5a17',
|
||||
date: 'Mon, 05 Aug 2019 19:11:19 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; },
|
||||
function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6de6c77-affa-4d3c-adec-b44cedba395e?api-version=2019-08-01')
|
||||
.reply(202, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
location:
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6de6c77-affa-4d3c-adec-b44cedba395e?api-version=2019-08-01',
|
||||
'retry-after': '15',
|
||||
'x-ms-request-id': '79ff76ae-1829-4bfb-9f82-63d53f55db58',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': 'dcffc1af-5c2e-4d7d-a6eb-7f2c250766f2',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T191150Z:dcffc1af-5c2e-4d7d-a6eb-7f2c250766f2',
|
||||
date: 'Mon, 05 Aug 2019 19:11:50 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; },
|
||||
function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6de6c77-affa-4d3c-adec-b44cedba395e?api-version=2019-08-01')
|
||||
.reply(202, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
location:
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6de6c77-affa-4d3c-adec-b44cedba395e?api-version=2019-08-01',
|
||||
'retry-after': '15',
|
||||
'x-ms-request-id': '3bb70db5-2ec6-44bd-a15b-4c928dce1c56',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11998',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': '404cd2c8-6bf5-468a-8a7b-3e151d646771',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T191221Z:404cd2c8-6bf5-468a-8a7b-3e151d646771',
|
||||
date: 'Mon, 05 Aug 2019 19:12:21 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; },
|
||||
function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6de6c77-affa-4d3c-adec-b44cedba395e?api-version=2019-08-01')
|
||||
.reply(202, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
location:
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6de6c77-affa-4d3c-adec-b44cedba395e?api-version=2019-08-01',
|
||||
'retry-after': '15',
|
||||
'x-ms-request-id': 'b33643fc-fe56-4bbc-87c3-7b4aee0ae7e4',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': 'ac8f199e-3bcf-49f3-b766-e0e557436c76',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T191251Z:ac8f199e-3bcf-49f3-b766-e0e557436c76',
|
||||
date: 'Mon, 05 Aug 2019 19:12:51 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; },
|
||||
function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6de6c77-affa-4d3c-adec-b44cedba395e?api-version=2019-08-01')
|
||||
.reply(202, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
location:
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6de6c77-affa-4d3c-adec-b44cedba395e?api-version=2019-08-01',
|
||||
'retry-after': '15',
|
||||
'x-ms-request-id': 'f0c07c9e-7cd5-437a-9abf-8f1d0caebedb',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11998',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': '03364225-2488-4a41-aef2-a9cc06382712',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T191322Z:03364225-2488-4a41-aef2-a9cc06382712',
|
||||
date: 'Mon, 05 Aug 2019 19:13:21 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; },
|
||||
function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6de6c77-affa-4d3c-adec-b44cedba395e?api-version=2019-08-01')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/batchtestnodesdk-d6fbc366-8d8b-47dc-b99b-0a4253af8313?api-version=2020-03-01')
|
||||
.reply(200, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
'x-ms-request-id': '33a3b191-0a4f-41aa-8b93-41394627d08a',
|
||||
'x-ms-request-id': 'f053bfb8-cb09-4072-a804-e8301aeefb13',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': '811e3a4c-e600-480a-a78e-cfcc1935e525',
|
||||
'x-ms-correlation-request-id': 'd31d066b-c784-4b6c-8cc2-763bcc56166e',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T191353Z:811e3a4c-e600-480a-a78e-cfcc1935e525',
|
||||
date: 'Mon, 05 Aug 2019 19:13:52 GMT',
|
||||
'WESTUS:20200321T013610Z:d31d066b-c784-4b6c-8cc2-763bcc56166e',
|
||||
date: 'Sat, 21 Mar 2020 01:36:10 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; }]];
|
|
@ -9,19 +9,19 @@ exports.setEnvironment = function() {
|
|||
exports.scopes = [[function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.delete('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id/versions/v1.0?api-version=2019-08-01')
|
||||
.delete('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id/versions/v1.0?api-version=2020-03-01')
|
||||
.reply(200, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
'x-ms-request-id': '395ea759-3a50-4000-8b97-2506334d503d',
|
||||
'x-ms-request-id': '004822ec-559c-4a31-93ad-71796dde7372',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-deletes': '14999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': 'f1e50f83-0419-453f-ac7c-179a4689da97',
|
||||
'x-ms-correlation-request-id': '2bba963d-410e-44d0-9e45-47af397ea4b7',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190132Z:f1e50f83-0419-453f-ac7c-179a4689da97',
|
||||
date: 'Mon, 05 Aug 2019 19:01:32 GMT',
|
||||
'WESTUS:20200321T012804Z:2bba963d-410e-44d0-9e45-47af397ea4b7',
|
||||
date: 'Sat, 21 Mar 2020 01:28:04 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; }]];
|
|
@ -9,19 +9,19 @@ exports.setEnvironment = function() {
|
|||
exports.scopes = [[function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.delete('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id?api-version=2019-08-01')
|
||||
.delete('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id?api-version=2020-03-01')
|
||||
.reply(200, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
'x-ms-request-id': 'f94b287b-8fa1-43a9-8a02-4f3699af81a5',
|
||||
'x-ms-request-id': '76b10b06-f614-4579-a582-012a05440db9',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-deletes': '14998',
|
||||
'x-ms-ratelimit-remaining-subscription-deletes': '14999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': 'f5420eda-9ffe-4e22-bec0-0f0a0d40e847',
|
||||
'x-ms-correlation-request-id': '33c3f963-13c0-410c-9ce6-4b822ad8ae19',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190135Z:f5420eda-9ffe-4e22-bec0-0f0a0d40e847',
|
||||
date: 'Mon, 05 Aug 2019 19:01:34 GMT',
|
||||
'WESTUS:20200321T012806Z:33c3f963-13c0-410c-9ce6-4b822ad8ae19',
|
||||
date: 'Sat, 21 Mar 2020 01:28:05 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; }]];
|
|
@ -9,41 +9,41 @@ exports.setEnvironment = function() {
|
|||
exports.scopes = [[function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.delete('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/pools/test_iaas_pool?api-version=2019-08-01')
|
||||
.delete('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/pools/test_iaas_pool?api-version=2020-03-01')
|
||||
.reply(202, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
location:
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/poolOperationResults/delete-test_iaas_pool?api-version=2019-08-01',
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/poolOperationResults/delete-test_iaas_pool?api-version=2020-03-01',
|
||||
'retry-after': '15',
|
||||
'x-ms-request-id': 'fc69b150-086a-4e47-a6d4-45331b93029f',
|
||||
'x-ms-request-id': 'bcd4d27d-99a9-418d-be92-c65d2cc20b66',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-deletes': '14999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': '80dd23cb-1a6f-4314-9fdb-8c9e825a48e8',
|
||||
'x-ms-correlation-request-id': 'dc47ec0f-298e-4220-92c3-b9d46eece3aa',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190744Z:80dd23cb-1a6f-4314-9fdb-8c9e825a48e8',
|
||||
date: 'Mon, 05 Aug 2019 19:07:43 GMT',
|
||||
'WESTUS:20200321T013001Z:dc47ec0f-298e-4220-92c3-b9d46eece3aa',
|
||||
date: 'Sat, 21 Mar 2020 01:30:01 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; },
|
||||
function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/poolOperationResults/delete-test_iaas_pool?api-version=2019-08-01')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/poolOperationResults/delete-test_iaas_pool?api-version=2020-03-01')
|
||||
.reply(200, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
'x-ms-request-id': 'f0e61424-acd1-41eb-b013-142ae7b092f2',
|
||||
'x-ms-request-id': 'f44b8976-ba69-4b97-8e95-e612beefe507',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11997',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': '8d055ed1-bfe7-4430-b6f7-536743a2e303',
|
||||
'x-ms-correlation-request-id': 'b8c647d0-266c-4504-9af4-46755aa445af',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190814Z:8d055ed1-bfe7-4430-b6f7-536743a2e303',
|
||||
date: 'Mon, 05 Aug 2019 19:08:13 GMT',
|
||||
'WESTUS:20200321T013032Z:b8c647d0-266c-4504-9af4-46755aa445af',
|
||||
date: 'Sat, 21 Mar 2020 01:30:32 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; }]];
|
|
@ -9,19 +9,19 @@ exports.setEnvironment = function() {
|
|||
exports.scopes = [[function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.delete('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id/versions/v2.0?api-version=2019-08-01')
|
||||
.delete('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id/versions/v2.0?api-version=2020-03-01')
|
||||
.reply(200, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
'x-ms-request-id': '711f396c-988b-43a9-91e6-8164890a7df3',
|
||||
'x-ms-request-id': '74993886-e76e-425b-ac3f-9703f625ee83',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-deletes': '14999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': '45a10d11-c78c-490a-8f92-b4b8423830cc',
|
||||
'x-ms-correlation-request-id': '08aa3fc1-b3ec-4b21-8784-a5921b82e119',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190134Z:45a10d11-c78c-490a-8f92-b4b8423830cc',
|
||||
date: 'Mon, 05 Aug 2019 19:01:33 GMT',
|
||||
'WESTUS:20200321T012805Z:08aa3fc1-b3ec-4b21-8784-a5921b82e119',
|
||||
date: 'Sat, 21 Mar 2020 01:28:05 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; }]];
|
|
@ -10,20 +10,20 @@ exports.scopes = [[function (nock) {
|
|||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.filteringRequestBody(function (path) { return '*';})
|
||||
.post('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id/versions/v2.0/activate?api-version=2019-08-01', '*')
|
||||
.reply(409, "{\"error\":{\"code\":\"ApplicationPackageBlobNotFound\",\"message\":\"No blob could be found for the specified application package.\\nRequestId:d4fd620f-2bc2-48aa-a1de-1f1fe957031f\\nTime:2019-08-05T19:01:28.2476000Z\",\"target\":\"BatchAccount\"}}", { 'cache-control': 'no-cache',
|
||||
.post('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id/versions/v2.0/activate?api-version=2020-03-01', '*')
|
||||
.reply(409, "{\"error\":{\"code\":\"ApplicationPackageBlobNotFound\",\"message\":\"No blob could be found for the specified application package.\\nRequestId:4200cb28-92c6-4f2e-9704-0975c05173c2\\nTime:2020-03-21T01:28:01.4300505Z\",\"target\":\"BatchAccount\"}}", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
'content-length': '232',
|
||||
'content-type': 'application/json; charset=utf-8',
|
||||
expires: '-1',
|
||||
'x-ms-correlation-request-id': 'cf4956f8-1867-47b6-9925-f1bd2f931f36',
|
||||
'x-ms-request-id': 'd4fd620f-2bc2-48aa-a1de-1f1fe957031f',
|
||||
'x-ms-correlation-request-id': 'bd847529-44dd-4d8d-b3d9-27a0ac1287b3',
|
||||
'x-ms-request-id': '4200cb28-92c6-4f2e-9704-0975c05173c2',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-writes': '1198',
|
||||
'x-ms-ratelimit-remaining-subscription-writes': '1199',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190128Z:cf4956f8-1867-47b6-9925-f1bd2f931f36',
|
||||
date: 'Mon, 05 Aug 2019 19:01:27 GMT',
|
||||
'WESTUS:20200321T012801Z:bd847529-44dd-4d8d-b3d9-27a0ac1287b3',
|
||||
date: 'Sat, 21 Mar 2020 01:28:01 GMT',
|
||||
connection: 'close' });
|
||||
return result; }]];
|
|
@ -10,40 +10,40 @@ exports.scopes = [[function (nock) {
|
|||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.filteringRequestBody(function (path) { return '*';})
|
||||
.put('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdkbyos?api-version=2019-08-01', '*')
|
||||
.reply(400, "{\"error\":{\"code\":\"InvalidRequestBody\",\"message\":\"The specified Request Body is not syntactically valid.\\nRequestId:a77785c2-1fad-449e-84e5-8d764e145c7f\\nTime:2019-08-05T19:13:55.4206144Z\",\"target\":\"BatchAccount\",\"details\":[{\"code\":\"Reason\",\"message\":\"keyVaultReference must be set if poolAllocationMode is specified as 'UserSubscription' on a PUT request\"}]}}", { 'cache-control': 'no-cache',
|
||||
.put('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdkbyos?api-version=2020-03-01', '*')
|
||||
.reply(400, "{\"error\":{\"code\":\"InvalidRequestBody\",\"message\":\"The specified Request Body is not syntactically valid.\\nRequestId:1b5b8365-f3d7-45a6-b409-8e9b7a551fe4\\nTime:2020-03-21T01:36:15.0635173Z\",\"target\":\"BatchAccount\",\"details\":[{\"code\":\"Reason\",\"message\":\"keyVaultReference must be set if poolAllocationMode is specified as 'UserSubscription' on a PUT request\"}]}}", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
'content-length': '359',
|
||||
'content-type': 'application/json; charset=utf-8',
|
||||
expires: '-1',
|
||||
'x-ms-correlation-request-id': 'f3f0d936-6bae-4e10-a9c1-920ee9388fd2',
|
||||
'x-ms-request-id': 'a77785c2-1fad-449e-84e5-8d764e145c7f',
|
||||
'x-ms-correlation-request-id': 'c1776b99-eeba-4d2a-bc9b-21f10b9df4a2',
|
||||
'x-ms-request-id': '1b5b8365-f3d7-45a6-b409-8e9b7a551fe4',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-writes': '1199',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T191355Z:f3f0d936-6bae-4e10-a9c1-920ee9388fd2',
|
||||
date: 'Mon, 05 Aug 2019 19:13:55 GMT',
|
||||
'WESTUS:20200321T013616Z:c1776b99-eeba-4d2a-bc9b-21f10b9df4a2',
|
||||
date: 'Sat, 21 Mar 2020 01:36:15 GMT',
|
||||
connection: 'close' });
|
||||
return result; },
|
||||
function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.filteringRequestBody(function (path) { return '*';})
|
||||
.put('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdkbyos?api-version=2019-08-01', '*')
|
||||
.put('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdkbyos?api-version=2020-03-01', '*')
|
||||
.reply(400, "{\"error\":{\"code\":\"LinkedInvalidPropertyId\",\"message\":\"Property id 'abc' at path 'properties.keyVaultReference.id' is invalid. Expect fully qualified resource Id that start with '/subscriptions/{subscriptionId}' or '/providers/{resourceProviderNamespace}/'.\"}}", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
'content-type': 'application/json; charset=utf-8',
|
||||
expires: '-1',
|
||||
'x-ms-failure-cause': 'gateway',
|
||||
'x-ms-request-id': '8ca413ed-bad7-440b-a11c-6f925e3ca420',
|
||||
'x-ms-correlation-request-id': '8ca413ed-bad7-440b-a11c-6f925e3ca420',
|
||||
'x-ms-request-id': 'de3cc2a4-5ed4-47b3-9d5e-9cbe6b71f2bf',
|
||||
'x-ms-correlation-request-id': 'de3cc2a4-5ed4-47b3-9d5e-9cbe6b71f2bf',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T191356Z:8ca413ed-bad7-440b-a11c-6f925e3ca420',
|
||||
'WESTUS:20200321T013616Z:de3cc2a4-5ed4-47b3-9d5e-9cbe6b71f2bf',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
date: 'Mon, 05 Aug 2019 19:13:55 GMT',
|
||||
date: 'Sat, 21 Mar 2020 01:36:16 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '259' });
|
||||
return result; }]];
|
|
@ -10,42 +10,42 @@ exports.scopes = [[function (nock) {
|
|||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.filteringRequestBody(function (path) { return '*';})
|
||||
.put('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk2?api-version=2019-08-01', '*')
|
||||
.put('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk2?api-version=2020-03-01', '*')
|
||||
.reply(202, "", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
expires: '-1',
|
||||
location:
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk2/operationResults/db0f97f2-ea31-40aa-92e7-ef28337fb9ec?api-version=2019-08-01',
|
||||
'https://management.azure.com/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk2/operationResults/45e5d75c-d0a3-4d57-978c-b822fe8e0786?api-version=2020-03-01',
|
||||
'retry-after': '15',
|
||||
'x-ms-request-id': 'db0f97f2-ea31-40aa-92e7-ef28337fb9ec',
|
||||
'x-ms-request-id': '45e5d75c-d0a3-4d57-978c-b822fe8e0786',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-writes': '1199',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-correlation-request-id': '75d60094-d29c-414c-a3f4-c786ac18041d',
|
||||
'x-ms-correlation-request-id': '4c602e4d-d8a7-4dd9-a35e-a23953357f05',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190137Z:75d60094-d29c-414c-a3f4-c786ac18041d',
|
||||
date: 'Mon, 05 Aug 2019 19:01:36 GMT',
|
||||
'WESTUS:20200321T012811Z:4c602e4d-d8a7-4dd9-a35e-a23953357f05',
|
||||
date: 'Sat, 21 Mar 2020 01:28:11 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '0' });
|
||||
return result; },
|
||||
function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk2/operationResults/db0f97f2-ea31-40aa-92e7-ef28337fb9ec?api-version=2019-08-01')
|
||||
.reply(409, "{\"error\":{\"code\":\"SubscriptionQuotaExceeded\",\"message\":\"The regional account quota for the specified subscription has been reached.\\nRequestId:38fd8305-5249-47bd-9871-13c2ba8c3947\\nTime:2019-08-05T19:02:07.8195353Z\",\"target\":\"BatchAccount\"}}", { 'cache-control': 'no-cache',
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk2/operationResults/45e5d75c-d0a3-4d57-978c-b822fe8e0786?api-version=2020-03-01')
|
||||
.reply(409, "{\"error\":{\"code\":\"SubscriptionQuotaExceeded\",\"message\":\"The regional Batch account quota for the specified subscription has been reached.\\nRequestId:82d38a40-3380-4c9c-90c1-b2eaed987e56\\nTime:2020-03-21T01:28:42.1569410Z\",\"target\":\"BatchAccount\"}}", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
'content-length': '241',
|
||||
'content-length': '247',
|
||||
'content-type': 'application/json; charset=utf-8',
|
||||
expires: '-1',
|
||||
'x-ms-correlation-request-id': 'e62a8b3a-4db1-4959-b960-e4981c8c307d',
|
||||
'x-ms-request-id': '38fd8305-5249-47bd-9871-13c2ba8c3947',
|
||||
'x-ms-correlation-request-id': '2e4337d1-358f-4fb2-a197-42d77170de0e',
|
||||
'x-ms-request-id': '82d38a40-3380-4c9c-90c1-b2eaed987e56',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11997',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190207Z:e62a8b3a-4db1-4959-b960-e4981c8c307d',
|
||||
date: 'Mon, 05 Aug 2019 19:02:07 GMT',
|
||||
'WESTUS:20200321T012842Z:2e4337d1-358f-4fb2-a197-42d77170de0e',
|
||||
date: 'Sat, 21 Mar 2020 01:28:41 GMT',
|
||||
connection: 'close' });
|
||||
return result; }]];
|
|
@ -10,19 +10,19 @@ exports.scopes = [[function (nock) {
|
|||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.filteringRequestBody(function (path) { return '*';})
|
||||
.put('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/does-not-exist/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk?api-version=2019-08-01', '*')
|
||||
.put('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/does-not-exist/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk?api-version=2020-03-01', '*')
|
||||
.reply(404, "{\"error\":{\"code\":\"ResourceGroupNotFound\",\"message\":\"Resource group 'does-not-exist' could not be found.\"}}", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
'content-type': 'application/json; charset=utf-8',
|
||||
expires: '-1',
|
||||
'x-ms-failure-cause': 'gateway',
|
||||
'x-ms-request-id': 'f3b11a38-25f8-4711-ba5c-3962a7eef7ed',
|
||||
'x-ms-correlation-request-id': 'f3b11a38-25f8-4711-ba5c-3962a7eef7ed',
|
||||
'x-ms-request-id': '2cd456f3-2f84-4d27-ae62-7314b05419b1',
|
||||
'x-ms-correlation-request-id': '2cd456f3-2f84-4d27-ae62-7314b05419b1',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190208Z:f3b11a38-25f8-4711-ba5c-3962a7eef7ed',
|
||||
'WESTUS:20200321T012842Z:2cd456f3-2f84-4d27-ae62-7314b05419b1',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
date: 'Mon, 05 Aug 2019 19:02:07 GMT',
|
||||
date: 'Sat, 21 Mar 2020 01:28:42 GMT',
|
||||
connection: 'close',
|
||||
'content-length': '106' });
|
||||
return result; }]];
|
|
@ -9,20 +9,20 @@ exports.setEnvironment = function() {
|
|||
exports.scopes = [[function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.delete('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id?api-version=2019-08-01')
|
||||
.reply(409, "{\"error\":{\"code\":\"ApplicationPackagesNotEmpty\",\"message\":\"The list of application packages for the specified application is not empty.\\nRequestId:4686e5c9-dde2-403f-ba43-970bc901f6ad\\nTime:2019-08-05T19:01:33.0082169Z\",\"target\":\"BatchAccount\"}}", { 'cache-control': 'no-cache',
|
||||
.delete('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id?api-version=2020-03-01')
|
||||
.reply(409, "{\"error\":{\"code\":\"ApplicationPackagesNotEmpty\",\"message\":\"All application packages must be deleted before the application can be deleted.\\nRequestId:a711ce96-3b08-4fec-810e-b2ba8e676cce\\nTime:2020-03-21T01:28:04.8919166Z\",\"target\":\"BatchAccount\"}}", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
'content-length': '244',
|
||||
'content-length': '247',
|
||||
'content-type': 'application/json; charset=utf-8',
|
||||
expires: '-1',
|
||||
'x-ms-correlation-request-id': 'ec878c1e-ed01-4709-ac05-84d2b1fefa85',
|
||||
'x-ms-request-id': '4686e5c9-dde2-403f-ba43-970bc901f6ad',
|
||||
'x-ms-correlation-request-id': '8d77e277-9e3c-47c1-b242-483f016a2e1a',
|
||||
'x-ms-request-id': 'a711ce96-3b08-4fec-810e-b2ba8e676cce',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-deletes': '14999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190133Z:ec878c1e-ed01-4709-ac05-84d2b1fefa85',
|
||||
date: 'Mon, 05 Aug 2019 19:01:32 GMT',
|
||||
'WESTUS:20200321T012804Z:8d77e277-9e3c-47c1-b242-483f016a2e1a',
|
||||
date: 'Sat, 21 Mar 2020 01:28:04 GMT',
|
||||
connection: 'close' });
|
||||
return result; }]];
|
|
@ -10,20 +10,20 @@ exports.scopes = [[function (nock) {
|
|||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.filteringRequestBody(function (path) { return '*';})
|
||||
.patch('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id?api-version=2019-08-01', '*')
|
||||
.reply(409, "{\"error\":{\"code\":\"RequestedDefaultVersionNotActive\",\"message\":\"The application package corresponding to the requested default version is not active.\\nRequestId:083371f9-9f88-4288-86c1-113165a048d9\\nTime:2019-08-05T19:01:29.2846686Z\",\"target\":\"BatchAccount\"}}", { 'cache-control': 'no-cache',
|
||||
.patch('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id?api-version=2020-03-01', '*')
|
||||
.reply(409, "{\"error\":{\"code\":\"RequestedDefaultVersionNotActive\",\"message\":\"The application package corresponding to the requested default version is not active.\\nRequestId:25c2851b-1464-4195-aca8-58a30b6c23a3\\nTime:2020-03-21T01:28:02.1233138Z\",\"target\":\"BatchAccount\"}}", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
'content-length': '258',
|
||||
'content-type': 'application/json; charset=utf-8',
|
||||
expires: '-1',
|
||||
'x-ms-correlation-request-id': 'ceb0be30-238b-49b5-93ab-905b604e1aa8',
|
||||
'x-ms-request-id': '083371f9-9f88-4288-86c1-113165a048d9',
|
||||
'x-ms-correlation-request-id': '657c520c-509a-4a9c-a374-cfff5cdde05b',
|
||||
'x-ms-request-id': '25c2851b-1464-4195-aca8-58a30b6c23a3',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-writes': '1199',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190129Z:ceb0be30-238b-49b5-93ab-905b604e1aa8',
|
||||
date: 'Mon, 05 Aug 2019 19:01:28 GMT',
|
||||
'WESTUS:20200321T012802Z:657c520c-509a-4a9c-a374-cfff5cdde05b',
|
||||
date: 'Sat, 21 Mar 2020 01:28:01 GMT',
|
||||
connection: 'close' });
|
||||
return result; }]];
|
|
@ -9,20 +9,20 @@ exports.setEnvironment = function() {
|
|||
exports.scopes = [[function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications?api-version=2019-08-01')
|
||||
.reply(200, "{\"value\":[{\"type\":\"Microsoft.Batch/batchAccounts/applications\",\"id\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id\",\"name\":\"my_application_id\",\"etag\":\"W/\\\"0x8D719D74DFD6121\\\"\",\"properties\":{\"displayName\":\"my_application_name\",\"allowUpdates\":true}}]}", { 'cache-control': 'no-cache',
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications?api-version=2020-03-01')
|
||||
.reply(200, "{\"value\":[{\"type\":\"Microsoft.Batch/batchAccounts/applications\",\"id\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id\",\"name\":\"my_application_id\",\"etag\":\"W/\\\"0x8D7CD3714252348\\\"\",\"properties\":{\"displayName\":\"my_application_name\",\"allowUpdates\":true}}]}", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
'content-length': '387',
|
||||
'content-type': 'application/json; charset=utf-8',
|
||||
expires: '-1',
|
||||
'x-ms-correlation-request-id': '5121b12f-6cb8-4dfb-a616-1d0b2f66ba11',
|
||||
'x-ms-request-id': 'dfd870c2-6e58-45bf-a0df-8b71ea7c50a0',
|
||||
'x-ms-correlation-request-id': '7f98b504-f379-419c-94e0-2c23ac325b51',
|
||||
'x-ms-request-id': '9b3e2ef7-0106-4861-a29c-09b3cac623ec',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11998',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190123Z:5121b12f-6cb8-4dfb-a616-1d0b2f66ba11',
|
||||
date: 'Mon, 05 Aug 2019 19:01:22 GMT',
|
||||
'WESTUS:20200321T012755Z:7f98b504-f379-419c-94e0-2c23ac325b51',
|
||||
date: 'Sat, 21 Mar 2020 01:27:55 GMT',
|
||||
connection: 'close' });
|
||||
return result; }]];
|
|
@ -9,22 +9,22 @@ exports.setEnvironment = function() {
|
|||
exports.scopes = [[function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk?api-version=2019-08-01')
|
||||
.reply(200, "{\"id\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk\",\"name\":\"batchtestnodesdk\",\"type\":\"Microsoft.Batch/batchAccounts\",\"location\":\"japaneast\",\"properties\":{\"accountEndpoint\":\"batchtestnodesdk.japaneast.batch.azure.com\",\"provisioningState\":\"Succeeded\",\"dedicatedCoreQuota\":700,\"dedicatedCoreQuotaPerVMFamily\":[{\"name\":\"standardAv2Family\",\"coreQuota\":100},{\"name\":\"standardDv2Family\",\"coreQuota\":100},{\"name\":\"standardDv3Family\",\"coreQuota\":100},{\"name\":\"standardEv3Family\",\"coreQuota\":50},{\"name\":\"standardDSv2Family\",\"coreQuota\":100},{\"name\":\"standardDSv3Family\",\"coreQuota\":100},{\"name\":\"standardESv3Family\",\"coreQuota\":50},{\"name\":\"standardFFamily\",\"coreQuota\":50},{\"name\":\"standardFSFamily\",\"coreQuota\":50},{\"name\":\"standardA0_A7Family\",\"coreQuota\":0},{\"name\":\"standardA8_A11Family\",\"coreQuota\":0},{\"name\":\"standardDFamily\",\"coreQuota\":0},{\"name\":\"standardGFamily\",\"coreQuota\":0},{\"name\":\"basicAFamily\",\"coreQuota\":0},{\"name\":\"standardNVFamily\",\"coreQuota\":0},{\"name\":\"standardNVPromoFamily\",\"coreQuota\":0},{\"name\":\"standardNCFamily\",\"coreQuota\":0},{\"name\":\"standardNCPromoFamily\",\"coreQuota\":0},{\"name\":\"standardHFamily\",\"coreQuota\":0},{\"name\":\"standardHPromoFamily\",\"coreQuota\":0},{\"name\":\"standardMSFamily\",\"coreQuota\":0},{\"name\":\"standardDSFamily\",\"coreQuota\":0},{\"name\":\"standardGSFamily\",\"coreQuota\":0},{\"name\":\"standardLSFamily\",\"coreQuota\":0},{\"name\":\"standardNCSv2Family\",\"coreQuota\":0},{\"name\":\"standardNDSFamily\",\"coreQuota\":0},{\"name\":\"standardNCSv3Family\",\"coreQuota\":0},{\"name\":\"standardFSv2Family\",\"coreQuota\":0},{\"name\":\"standardHBSFamily\",\"coreQuota\":0},{\"name\":\"standardHCSFamily\",\"coreQuota\":0}],\"dedicatedCoreQuotaPerVMFamilyEnforced\":false,\"lowPriorityCoreQuota\":500,\"poolQuota\":100,\"activeJobAndJobScheduleQuota\":300,\"autoStorage\":{\"storageAccountId\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/nodesdkteststorage\",\"lastKeySync\":\"2019-08-05T19:00:45.04425Z\"},\"poolAllocationMode\":\"BatchService\"}}", { 'cache-control': 'no-cache',
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk?api-version=2020-03-01')
|
||||
.reply(200, "{\"id\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk\",\"name\":\"batchtestnodesdk\",\"type\":\"Microsoft.Batch/batchAccounts\",\"location\":\"japaneast\",\"properties\":{\"accountEndpoint\":\"batchtestnodesdk.japaneast.batch.azure.com\",\"provisioningState\":\"Succeeded\",\"dedicatedCoreQuota\":700,\"dedicatedCoreQuotaPerVMFamily\":[{\"name\":\"standardAv2Family\",\"coreQuota\":100},{\"name\":\"standardDv2Family\",\"coreQuota\":100},{\"name\":\"standardDv3Family\",\"coreQuota\":100},{\"name\":\"standardEv3Family\",\"coreQuota\":50},{\"name\":\"standardDSv2Family\",\"coreQuota\":100},{\"name\":\"standardDSv3Family\",\"coreQuota\":100},{\"name\":\"standardESv3Family\",\"coreQuota\":50},{\"name\":\"standardFFamily\",\"coreQuota\":50},{\"name\":\"standardFSFamily\",\"coreQuota\":50},{\"name\":\"standardA0_A7Family\",\"coreQuota\":0},{\"name\":\"standardA8_A11Family\",\"coreQuota\":0},{\"name\":\"standardDFamily\",\"coreQuota\":0},{\"name\":\"standardGFamily\",\"coreQuota\":0},{\"name\":\"basicAFamily\",\"coreQuota\":0},{\"name\":\"standardNVFamily\",\"coreQuota\":0},{\"name\":\"standardNVPromoFamily\",\"coreQuota\":0},{\"name\":\"standardNCFamily\",\"coreQuota\":0},{\"name\":\"standardNCPromoFamily\",\"coreQuota\":0},{\"name\":\"standardHFamily\",\"coreQuota\":0},{\"name\":\"standardHPromoFamily\",\"coreQuota\":0},{\"name\":\"standardMSFamily\",\"coreQuota\":0},{\"name\":\"standardDSFamily\",\"coreQuota\":0},{\"name\":\"standardGSFamily\",\"coreQuota\":0},{\"name\":\"standardLSFamily\",\"coreQuota\":0},{\"name\":\"standardNCSv2Family\",\"coreQuota\":0},{\"name\":\"standardNDSFamily\",\"coreQuota\":0},{\"name\":\"standardNCSv3Family\",\"coreQuota\":0},{\"name\":\"standardFSv2Family\",\"coreQuota\":0},{\"name\":\"standardHBSFamily\",\"coreQuota\":0},{\"name\":\"standardHCSFamily\",\"coreQuota\":0},{\"name\":\"standardNVSv3Family\",\"coreQuota\":0},{\"name\":\"standardHBrsv2Family\",\"coreQuota\":0}],\"dedicatedCoreQuotaPerVMFamilyEnforced\":false,\"lowPriorityCoreQuota\":500,\"poolQuota\":100,\"activeJobAndJobScheduleQuota\":300,\"autoStorage\":{\"storageAccountId\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/nodesdkteststorage\",\"lastKeySync\":\"2020-03-21T01:27:22.3979303Z\"},\"poolAllocationMode\":\"BatchService\",\"publicNetworkAccess\":\"Enabled\",\"encryption\":{\"keySource\":\"Microsoft.Batch\"}}}", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
'content-length': '2125',
|
||||
'content-length': '2295',
|
||||
'content-type': 'application/json; charset=utf-8',
|
||||
expires: '-1',
|
||||
'last-modified': 'Mon, 05 Aug 2019 19:00:45 GMT',
|
||||
etag: '"0x8D719D7385C2D04"',
|
||||
'x-ms-correlation-request-id': '7389cfcd-ac4f-4531-9c47-45b8da939725',
|
||||
'x-ms-request-id': 'ce963d37-1152-46d9-bf75-98f0d71dff10',
|
||||
'last-modified': 'Sat, 21 Mar 2020 01:27:22 GMT',
|
||||
etag: '"0x8D7CD37013E7127"',
|
||||
'x-ms-correlation-request-id': '0d5e873f-3934-43d6-85ec-934e2baa8ee5',
|
||||
'x-ms-request-id': '58c82ed2-8dce-458e-9657-99d623e32197',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190208Z:7389cfcd-ac4f-4531-9c47-45b8da939725',
|
||||
date: 'Mon, 05 Aug 2019 19:02:08 GMT',
|
||||
'WESTUS:20200321T012843Z:0d5e873f-3934-43d6-85ec-934e2baa8ee5',
|
||||
date: 'Sat, 21 Mar 2020 01:28:42 GMT',
|
||||
connection: 'close' });
|
||||
return result; }]];
|
|
@ -9,20 +9,20 @@ exports.setEnvironment = function() {
|
|||
exports.scopes = [[function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.post('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/listKeys?api-version=2019-08-01')
|
||||
.reply(200, "{\"accountName\":\"batchtestnodesdk\",\"primary\":\"AxmYwCR+pyRYtBDWSypM1sufwKaG1r5Q3Lf5pCTb5zGVOmzApJswFqwgxdPSciULNWalBWPzPVi3lN/VssLrSA==\",\"secondary\":\"BainmrSlDABbXtvpHhb95tdiPh8V7IE97KzC57R7nZyeslFetuaTGb2XawFA0e2tpb/uTyqWMr1TRdvSv/3poQ==\"}", { 'cache-control': 'no-cache',
|
||||
.post('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/listKeys?api-version=2020-03-01')
|
||||
.reply(200, "{\"accountName\":\"batchtestnodesdk\",\"primary\":\"G6pxmT5jJvzINjLgzgm+vwVoEKmuFvuYjHDHtRSGJU7YikC/C7W+SHlyL6cqfVZq61Kq8EyaCByWw8P2IAEA3A==\",\"secondary\":\"dNqPdm5FDOoBUPQWcU5MycxrVVObZah02pbYFrBRNufPRWQAj5ayvW9pDyp8wgJANJ+QHayEV1hfsOcRqSlY4Q==\"}", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
'content-length': '238',
|
||||
'content-type': 'application/json; charset=utf-8',
|
||||
expires: '-1',
|
||||
'x-ms-correlation-request-id': 'dbe2165d-d68a-4864-b7c8-f505ae65455d',
|
||||
'x-ms-request-id': 'fa3ac65a-8e97-42d7-acc6-61f5fabae709',
|
||||
'x-ms-correlation-request-id': '7b9fba24-86d5-4d40-9ff7-2e1f5967ea93',
|
||||
'x-ms-request-id': '9a2e4491-c8a0-46e0-a057-ed7fbb73cdcf',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-writes': '1199',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190210Z:dbe2165d-d68a-4864-b7c8-f505ae65455d',
|
||||
date: 'Mon, 05 Aug 2019 19:02:09 GMT',
|
||||
'WESTUS:20200321T012844Z:7b9fba24-86d5-4d40-9ff7-2e1f5967ea93',
|
||||
date: 'Sat, 21 Mar 2020 01:28:44 GMT',
|
||||
connection: 'close' });
|
||||
return result; }]];
|
|
@ -9,22 +9,22 @@ exports.setEnvironment = function() {
|
|||
exports.scopes = [[function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id/versions/v1.0?api-version=2019-08-01')
|
||||
.reply(200, "{\"type\":\"Microsoft.Batch/batchAccounts/applications/versions\",\"id\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id/versions/v1.0\",\"name\":\"v1.0\",\"etag\":\"W/\\\"0x8D719D7518AD09B\\\"\",\"properties\":{\"storageUrl\":\"https://nodesdkteststorage.blob.core.windows.net/app-my-application-id-b9dfc2b75e089960a922be9b4180a01f29ca0c78/my_application_id-v1.0-cdbdde7c-9ab2-4861-9077-ca26ff1d3b3f?sv=2018-03-28&sr=b&sig=%2FIWsObgzfro64Ih0tKpKdLZ68EBArqQKG28G1wX%2F%2Fbw%3D&st=2019-08-05T18%3A56%3A31Z&se=2019-08-05T23%3A01%3A31Z&sp=r\",\"storageUrlExpiry\":\"2019-08-05T23:01:31.3584605Z\",\"state\":\"Active\",\"format\":\"zip\",\"lastActivationTime\":\"2019-08-05T19:01:27.27573Z\"}}", { 'cache-control': 'no-cache',
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id/versions/v1.0?api-version=2020-03-01')
|
||||
.reply(200, "{\"type\":\"Microsoft.Batch/batchAccounts/applications/versions\",\"id\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id/versions/v1.0\",\"name\":\"v1.0\",\"etag\":\"W/\\\"0x8D7CD3717FC2ACA\\\"\",\"properties\":{\"storageUrl\":\"https://nodesdkteststorage.blob.core.windows.net/app-my-application-id-c5fc46fb01a040c28902bfe85ca448d5/v1.0?sv=2018-03-28&sr=b&sig=2Q9eQN0fi0%2BB5SNxyXkO5dq%2FbG0QvB4Kaxy1ds%2BblME%3D&st=2020-03-21T01%3A23%3A03Z&se=2020-03-21T05%3A28%3A03Z&sp=r\",\"storageUrlExpiry\":\"2020-03-21T05:28:03.5841096Z\",\"state\":\"Active\",\"format\":\"zip\",\"lastActivationTime\":\"2020-03-21T01:28:00.541501Z\"}}", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
'content-length': '785',
|
||||
'content-length': '723',
|
||||
'content-type': 'application/json; charset=utf-8',
|
||||
expires: '-1',
|
||||
'last-modified': 'Mon, 05 Aug 2019 19:01:27 GMT',
|
||||
etag: 'W/"0x8D719D7518AD09B"',
|
||||
'x-ms-correlation-request-id': 'a919efbe-dc7d-494f-aa21-bddfb200aef7',
|
||||
'x-ms-request-id': '1afced49-ed10-4bd4-af12-36c832a34543',
|
||||
'last-modified': 'Sat, 21 Mar 2020 01:28:00 GMT',
|
||||
etag: 'W/"0x8D7CD3717FC2ACA"',
|
||||
'x-ms-correlation-request-id': 'bee132b5-a76d-41d6-a137-fab5d59629ef',
|
||||
'x-ms-request-id': '57d47d1c-6439-4d8b-b3eb-f2bfddb1e50a',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11996',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11998',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190131Z:a919efbe-dc7d-494f-aa21-bddfb200aef7',
|
||||
date: 'Mon, 05 Aug 2019 19:01:30 GMT',
|
||||
'WESTUS:20200321T012803Z:bee132b5-a76d-41d6-a137-fab5d59629ef',
|
||||
date: 'Sat, 21 Mar 2020 01:28:03 GMT',
|
||||
connection: 'close' });
|
||||
return result; }]];
|
|
@ -9,22 +9,22 @@ exports.setEnvironment = function() {
|
|||
exports.scopes = [[function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id?api-version=2019-08-01')
|
||||
.reply(200, "{\"type\":\"Microsoft.Batch/batchAccounts/applications\",\"id\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id\",\"name\":\"my_application_id\",\"etag\":\"W/\\\"0x8D719D74DFD6121\\\"\",\"properties\":{\"displayName\":\"my_application_name\",\"allowUpdates\":true}}", { 'cache-control': 'no-cache',
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id?api-version=2020-03-01')
|
||||
.reply(200, "{\"type\":\"Microsoft.Batch/batchAccounts/applications\",\"id\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/applications/my_application_id\",\"name\":\"my_application_id\",\"etag\":\"W/\\\"0x8D7CD3714252348\\\"\",\"properties\":{\"displayName\":\"my_application_name\",\"allowUpdates\":true}}", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
'content-length': '375',
|
||||
'content-type': 'application/json; charset=utf-8',
|
||||
expires: '-1',
|
||||
'last-modified': 'Mon, 05 Aug 2019 19:01:21 GMT',
|
||||
etag: 'W/"0x8D719D74DFD6121"',
|
||||
'x-ms-correlation-request-id': '3e825c4e-a7e4-4d13-a72d-3ce2212d30e1',
|
||||
'x-ms-request-id': '3e2b0915-0a45-4933-a9c7-2e4af74d8654',
|
||||
'last-modified': 'Sat, 21 Mar 2020 01:27:54 GMT',
|
||||
etag: 'W/"0x8D7CD3714252348"',
|
||||
'x-ms-correlation-request-id': 'b318404c-01fa-4537-9392-d12f98c1f6e1',
|
||||
'x-ms-request-id': 'd32beb1c-42f9-4ab8-aacd-456647fbe4f3',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11998',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190122Z:3e825c4e-a7e4-4d13-a72d-3ce2212d30e1',
|
||||
date: 'Mon, 05 Aug 2019 19:01:21 GMT',
|
||||
'WESTUS:20200321T012754Z:b318404c-01fa-4537-9392-d12f98c1f6e1',
|
||||
date: 'Sat, 21 Mar 2020 01:27:54 GMT',
|
||||
connection: 'close' });
|
||||
return result; }]];
|
|
@ -9,22 +9,22 @@ exports.setEnvironment = function() {
|
|||
exports.scopes = [[function (nock) {
|
||||
var result =
|
||||
nock('https://management.azure.com:443')
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2019-08-01')
|
||||
.reply(200, "{\"name\":\"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7\",\"id\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7\",\"type\":\"Microsoft.Batch/batchAccounts/certificates\",\"etag\":\"W/\\\"0x8D719D7F59ECA37\\\"\",\"properties\":{\"thumbprintAlgorithm\":\"sha1\",\"thumbprint\":\"cff2ab63c8c955aaf71989efa641b906558d9fb7\",\"provisioningState\":\"Succeeded\",\"provisioningStateTransitionTime\":\"2019-08-05T19:06:02.5991675Z\",\"format\":\"Pfx\",\"publicData\":\"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78\"}}", { 'cache-control': 'no-cache',
|
||||
.get('/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2020-03-01')
|
||||
.reply(200, "{\"name\":\"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7\",\"id\":\"/subscriptions/f30ef677-64a9-4768-934f-5fbbc0e1ad27/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/batchtestnodesdk/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7\",\"type\":\"Microsoft.Batch/batchAccounts/certificates\",\"etag\":\"W/\\\"0x8D7CD3737075B2B\\\"\",\"properties\":{\"thumbprintAlgorithm\":\"sha1\",\"thumbprint\":\"cff2ab63c8c955aaf71989efa641b906558d9fb7\",\"provisioningState\":\"Succeeded\",\"provisioningStateTransitionTime\":\"2020-03-21T01:28:52.6276322Z\",\"format\":\"Pfx\",\"publicData\":\"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78\"}}", { 'cache-control': 'no-cache',
|
||||
pragma: 'no-cache',
|
||||
'content-length': '1168',
|
||||
'content-type': 'application/json; charset=utf-8',
|
||||
expires: '-1',
|
||||
'last-modified': 'Mon, 05 Aug 2019 19:06:02 GMT',
|
||||
etag: 'W/"0x8D719D7F59ECA37"',
|
||||
'x-ms-correlation-request-id': '61c3052b-04eb-4a2f-bfe5-aa2595a331d2',
|
||||
'x-ms-request-id': '79db4000-0a5f-4c14-b936-85a4f8b97e53',
|
||||
'last-modified': 'Sat, 21 Mar 2020 01:28:52 GMT',
|
||||
etag: 'W/"0x8D7CD3737075B2B"',
|
||||
'x-ms-correlation-request-id': 'd84981fe-b71c-4053-819b-8fa3dcf7cbaa',
|
||||
'x-ms-request-id': 'cf20e197-2947-4f54-84b0-e0fcf0384328',
|
||||
'strict-transport-security': 'max-age=31536000; includeSubDomains',
|
||||
'x-content-type-options': 'nosniff',
|
||||
'x-ms-ratelimit-remaining-subscription-reads': '11999',
|
||||
server: 'Microsoft-HTTPAPI/2.0',
|
||||
'x-ms-routing-request-id':
|
||||
'WESTUS:20190805T190604Z:61c3052b-04eb-4a2f-bfe5-aa2595a331d2',
|
||||
date: 'Mon, 05 Aug 2019 19:06:03 GMT',
|
||||
'WESTUS:20200321T012854Z:d84981fe-b71c-4053-819b-8fa3dcf7cbaa',
|
||||
date: 'Sat, 21 Mar 2020 01:28:54 GMT',
|
||||
connection: 'close' });
|
||||
return result; }]];
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче