-
Notifications
You must be signed in to change notification settings - Fork 4.8k
/
ContainerServiceFleetManagedClusterUpdate.cs
49 lines (42 loc) · 2.2 KB
/
ContainerServiceFleetManagedClusterUpdate.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.ResourceManager.ContainerServiceFleet.Models
{
/// <summary> The update to be applied to the ManagedClusters. </summary>
public partial class ContainerServiceFleetManagedClusterUpdate
{
/// <summary> Initializes a new instance of <see cref="ContainerServiceFleetManagedClusterUpdate"/>. </summary>
/// <param name="upgrade"> The upgrade to apply to the ManagedClusters. </param>
/// <exception cref="ArgumentNullException"> <paramref name="upgrade"/> is null. </exception>
public ContainerServiceFleetManagedClusterUpdate(ContainerServiceFleetManagedClusterUpgradeSpec upgrade)
{
Argument.AssertNotNull(upgrade, nameof(upgrade));
Upgrade = upgrade;
}
/// <summary> Initializes a new instance of <see cref="ContainerServiceFleetManagedClusterUpdate"/>. </summary>
/// <param name="upgrade"> The upgrade to apply to the ManagedClusters. </param>
/// <param name="nodeImageSelection"> The node image upgrade to be applied to the target nodes in update run. </param>
internal ContainerServiceFleetManagedClusterUpdate(ContainerServiceFleetManagedClusterUpgradeSpec upgrade, NodeImageSelection nodeImageSelection)
{
Upgrade = upgrade;
NodeImageSelection = nodeImageSelection;
}
/// <summary> The upgrade to apply to the ManagedClusters. </summary>
public ContainerServiceFleetManagedClusterUpgradeSpec Upgrade { get; set; }
/// <summary> The node image upgrade to be applied to the target nodes in update run. </summary>
internal NodeImageSelection NodeImageSelection { get; set; }
/// <summary> The node image upgrade type. </summary>
public NodeImageSelectionType? SelectionType
{
get => NodeImageSelection is null ? default(NodeImageSelectionType?) : NodeImageSelection.SelectionType;
set
{
NodeImageSelection = value.HasValue ? new NodeImageSelection(value.Value) : null;
}
}
}
}