-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
BatchAccountAutoScaleSettings.cs
40 lines (33 loc) · 1.61 KB
/
BatchAccountAutoScaleSettings.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.ResourceManager.Batch.Models
{
/// <summary> AutoScale settings for the pool. </summary>
public partial class BatchAccountAutoScaleSettings
{
/// <summary> Initializes a new instance of <see cref="BatchAccountAutoScaleSettings"/>. </summary>
/// <param name="formula"> A formula for the desired number of compute nodes in the pool. </param>
/// <exception cref="ArgumentNullException"> <paramref name="formula"/> is null. </exception>
public BatchAccountAutoScaleSettings(string formula)
{
Argument.AssertNotNull(formula, nameof(formula));
Formula = formula;
}
/// <summary> Initializes a new instance of <see cref="BatchAccountAutoScaleSettings"/>. </summary>
/// <param name="formula"> A formula for the desired number of compute nodes in the pool. </param>
/// <param name="evaluationInterval"> If omitted, the default value is 15 minutes (PT15M). </param>
internal BatchAccountAutoScaleSettings(string formula, TimeSpan? evaluationInterval)
{
Formula = formula;
EvaluationInterval = evaluationInterval;
}
/// <summary> A formula for the desired number of compute nodes in the pool. </summary>
public string Formula { get; set; }
/// <summary> If omitted, the default value is 15 minutes (PT15M). </summary>
public TimeSpan? EvaluationInterval { get; set; }
}
}