-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
AmlComputeScaleSettings.cs
40 lines (34 loc) · 1.7 KB
/
AmlComputeScaleSettings.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;
namespace Azure.ResourceManager.MachineLearning.Models
{
/// <summary> scale settings for AML Compute. </summary>
public partial class AmlComputeScaleSettings
{
/// <summary> Initializes a new instance of <see cref="AmlComputeScaleSettings"/>. </summary>
/// <param name="maxNodeCount"> Max number of nodes to use. </param>
public AmlComputeScaleSettings(int maxNodeCount)
{
MaxNodeCount = maxNodeCount;
}
/// <summary> Initializes a new instance of <see cref="AmlComputeScaleSettings"/>. </summary>
/// <param name="maxNodeCount"> Max number of nodes to use. </param>
/// <param name="minNodeCount"> Min number of nodes to use. </param>
/// <param name="nodeIdleTimeBeforeScaleDown"> Node Idle Time before scaling down amlCompute. This string needs to be in the RFC Format. </param>
internal AmlComputeScaleSettings(int maxNodeCount, int? minNodeCount, TimeSpan? nodeIdleTimeBeforeScaleDown)
{
MaxNodeCount = maxNodeCount;
MinNodeCount = minNodeCount;
NodeIdleTimeBeforeScaleDown = nodeIdleTimeBeforeScaleDown;
}
/// <summary> Max number of nodes to use. </summary>
public int MaxNodeCount { get; set; }
/// <summary> Min number of nodes to use. </summary>
public int? MinNodeCount { get; set; }
/// <summary> Node Idle Time before scaling down amlCompute. This string needs to be in the RFC Format. </summary>
public TimeSpan? NodeIdleTimeBeforeScaleDown { get; set; }
}
}