-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
NodeRemoveParameter.cs
88 lines (80 loc) · 3.4 KB
/
NodeRemoveParameter.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
// <auto-generated>
// 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.
// </auto-generated>
namespace Microsoft.Azure.Batch.Protocol.Models
{
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// Options for removing Compute Nodes from a Pool.
/// </summary>
public partial class NodeRemoveParameter
{
/// <summary>
/// Initializes a new instance of the NodeRemoveParameter class.
/// </summary>
public NodeRemoveParameter()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the NodeRemoveParameter class.
/// </summary>
/// <param name="nodeList">A list containing the IDs of the Compute
/// Nodes to be removed from the specified Pool.</param>
/// <param name="resizeTimeout">The timeout for removal of Compute
/// Nodes to the Pool.</param>
/// <param name="nodeDeallocationOption">Determines what to do with a
/// Compute Node and its running task(s) after it has been selected for
/// deallocation.</param>
public NodeRemoveParameter(IList<string> nodeList, System.TimeSpan? resizeTimeout = default(System.TimeSpan?), ComputeNodeDeallocationOption? nodeDeallocationOption = default(ComputeNodeDeallocationOption?))
{
NodeList = nodeList;
ResizeTimeout = resizeTimeout;
NodeDeallocationOption = nodeDeallocationOption;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// Gets or sets a list containing the IDs of the Compute Nodes to be
/// removed from the specified Pool.
/// </summary>
/// <remarks>
/// A maximum of 100 nodes may be removed per request.
/// </remarks>
[JsonProperty(PropertyName = "nodeList")]
public IList<string> NodeList { get; set; }
/// <summary>
/// Gets or sets the timeout for removal of Compute Nodes to the Pool.
/// </summary>
/// <remarks>
/// The default value is 15 minutes. The minimum value is 5 minutes. If
/// you specify a value less than 5 minutes, the Batch service returns
/// an error; if you are calling the REST API directly, the HTTP status
/// code is 400 (Bad Request).
/// </remarks>
[JsonProperty(PropertyName = "resizeTimeout")]
public System.TimeSpan? ResizeTimeout { get; set; }
/// <summary>
/// Gets or sets determines what to do with a Compute Node and its
/// running task(s) after it has been selected for deallocation.
/// </summary>
/// <remarks>
/// The default value is requeue. Possible values include: 'requeue',
/// 'terminate', 'taskCompletion', 'retainedData'
/// </remarks>
[JsonProperty(PropertyName = "nodeDeallocationOption")]
public ComputeNodeDeallocationOption? NodeDeallocationOption { get; set; }
}
}