@@ -62,6 +62,9 @@ public Pool()
62
62
/// to remove the start task from the pool.
63
63
/// </param>
64
64
65
+ /// <param name="upgradePolicy">Describes an upgrade policy - automatic, manual, or rolling.
66
+ /// </param>
67
+
65
68
/// <param name="displayName">The display name need not be unique and can contain any Unicode characters
66
69
/// up to a maximum length of 1024.
67
70
/// </param>
@@ -173,7 +176,7 @@ public Pool()
173
176
/// Batch account was created with the poolAllocationMode property set to
174
177
/// 'UserSubscription'.
175
178
/// </param>
176
- public Pool ( string id = default ( string ) , string name = default ( string ) , string type = default ( string ) , string etag = default ( string ) , BatchPoolIdentity identity = default ( BatchPoolIdentity ) , AllocationState ? allocationState = default ( AllocationState ? ) , DeploymentConfiguration deploymentConfiguration = default ( DeploymentConfiguration ) , ScaleSettings scaleSettings = default ( ScaleSettings ) , NetworkConfiguration networkConfiguration = default ( NetworkConfiguration ) , StartTask startTask = default ( StartTask ) , string displayName = default ( string ) , System . DateTime ? lastModified = default ( System . DateTime ? ) , System . DateTime ? creationTime = default ( System . DateTime ? ) , PoolProvisioningState ? provisioningState = default ( PoolProvisioningState ? ) , System . DateTime ? provisioningStateTransitionTime = default ( System . DateTime ? ) , System . DateTime ? allocationStateTransitionTime = default ( System . DateTime ? ) , string vmSize = default ( string ) , int ? currentDedicatedNodes = default ( int ? ) , int ? currentLowPriorityNodes = default ( int ? ) , AutoScaleRun autoScaleRun = default ( AutoScaleRun ) , InterNodeCommunicationState ? interNodeCommunication = default ( InterNodeCommunicationState ? ) , int ? taskSlotsPerNode = default ( int ? ) , TaskSchedulingPolicy taskSchedulingPolicy = default ( TaskSchedulingPolicy ) , System . Collections . Generic . IList < UserAccount > userAccounts = default ( System . Collections . Generic . IList < UserAccount > ) , System . Collections . Generic . IList < MetadataItem > metadata = default ( System . Collections . Generic . IList < MetadataItem > ) , System . Collections . Generic . IList < CertificateReference > certificates = default ( System . Collections . Generic . IList < CertificateReference > ) , System . Collections . Generic . IList < ApplicationPackageReference > applicationPackages = default ( System . Collections . Generic . IList < ApplicationPackageReference > ) , System . Collections . Generic . IList < string > applicationLicenses = default ( System . Collections . Generic . IList < string > ) , ResizeOperationStatus resizeOperationStatus = default ( ResizeOperationStatus ) , System . Collections . Generic . IList < MountConfiguration > mountConfiguration = default ( System . Collections . Generic . IList < MountConfiguration > ) , NodeCommunicationMode ? targetNodeCommunicationMode = default ( NodeCommunicationMode ? ) , NodeCommunicationMode ? currentNodeCommunicationMode = default ( NodeCommunicationMode ? ) , System . Collections . Generic . IDictionary < string , string > resourceTags = default ( System . Collections . Generic . IDictionary < string , string > ) )
179
+ public Pool ( string id = default ( string ) , string name = default ( string ) , string type = default ( string ) , string etag = default ( string ) , BatchPoolIdentity identity = default ( BatchPoolIdentity ) , AllocationState ? allocationState = default ( AllocationState ? ) , DeploymentConfiguration deploymentConfiguration = default ( DeploymentConfiguration ) , ScaleSettings scaleSettings = default ( ScaleSettings ) , NetworkConfiguration networkConfiguration = default ( NetworkConfiguration ) , StartTask startTask = default ( StartTask ) , UpgradePolicy upgradePolicy = default ( UpgradePolicy ) , string displayName = default ( string ) , System . DateTime ? lastModified = default ( System . DateTime ? ) , System . DateTime ? creationTime = default ( System . DateTime ? ) , PoolProvisioningState ? provisioningState = default ( PoolProvisioningState ? ) , System . DateTime ? provisioningStateTransitionTime = default ( System . DateTime ? ) , System . DateTime ? allocationStateTransitionTime = default ( System . DateTime ? ) , string vmSize = default ( string ) , int ? currentDedicatedNodes = default ( int ? ) , int ? currentLowPriorityNodes = default ( int ? ) , AutoScaleRun autoScaleRun = default ( AutoScaleRun ) , InterNodeCommunicationState ? interNodeCommunication = default ( InterNodeCommunicationState ? ) , int ? taskSlotsPerNode = default ( int ? ) , TaskSchedulingPolicy taskSchedulingPolicy = default ( TaskSchedulingPolicy ) , System . Collections . Generic . IList < UserAccount > userAccounts = default ( System . Collections . Generic . IList < UserAccount > ) , System . Collections . Generic . IList < MetadataItem > metadata = default ( System . Collections . Generic . IList < MetadataItem > ) , System . Collections . Generic . IList < CertificateReference > certificates = default ( System . Collections . Generic . IList < CertificateReference > ) , System . Collections . Generic . IList < ApplicationPackageReference > applicationPackages = default ( System . Collections . Generic . IList < ApplicationPackageReference > ) , System . Collections . Generic . IList < string > applicationLicenses = default ( System . Collections . Generic . IList < string > ) , ResizeOperationStatus resizeOperationStatus = default ( ResizeOperationStatus ) , System . Collections . Generic . IList < MountConfiguration > mountConfiguration = default ( System . Collections . Generic . IList < MountConfiguration > ) , NodeCommunicationMode ? targetNodeCommunicationMode = default ( NodeCommunicationMode ? ) , NodeCommunicationMode ? currentNodeCommunicationMode = default ( NodeCommunicationMode ? ) , System . Collections . Generic . IDictionary < string , string > resourceTags = default ( System . Collections . Generic . IDictionary < string , string > ) )
177
180
178
181
: base ( id , name , type , etag )
179
182
{
@@ -183,6 +186,7 @@ public Pool()
183
186
this . ScaleSettings = scaleSettings ;
184
187
this . NetworkConfiguration = networkConfiguration ;
185
188
this . StartTask = startTask ;
189
+ this . UpgradePolicy = upgradePolicy ;
186
190
this . DisplayName = displayName ;
187
191
this . LastModified = lastModified ;
188
192
this . CreationTime = creationTime ;
@@ -258,6 +262,12 @@ public Pool()
258
262
[ Newtonsoft . Json . JsonProperty ( PropertyName = "properties.startTask" ) ]
259
263
public StartTask StartTask { get ; set ; }
260
264
265
+ /// <summary>
266
+ /// Gets or sets describes an upgrade policy - automatic, manual, or rolling.
267
+ /// </summary>
268
+ [ Newtonsoft . Json . JsonProperty ( PropertyName = "properties.upgradePolicy" ) ]
269
+ public UpgradePolicy UpgradePolicy { get ; set ; }
270
+
261
271
/// <summary>
262
272
/// Gets or sets the display name need not be unique and can contain any
263
273
/// Unicode characters up to a maximum length of 1024.
@@ -468,6 +478,10 @@ public virtual void Validate()
468
478
{
469
479
this . StartTask . Validate ( ) ;
470
480
}
481
+ if ( this . UpgradePolicy != null )
482
+ {
483
+ this . UpgradePolicy . Validate ( ) ;
484
+ }
471
485
472
486
473
487
0 commit comments