-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
AgentPoolUpgradeProfileData.cs
61 lines (54 loc) · 3.13 KB
/
AgentPoolUpgradeProfileData.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core;
using Azure.ResourceManager.ContainerService.Models;
using Azure.ResourceManager.Models;
namespace Azure.ResourceManager.ContainerService
{
/// <summary>
/// A class representing the AgentPoolUpgradeProfile data model.
/// The list of available upgrades for an agent pool.
/// </summary>
public partial class AgentPoolUpgradeProfileData : ResourceData
{
/// <summary> Initializes a new instance of AgentPoolUpgradeProfileData. </summary>
/// <param name="kubernetesVersion"> The Kubernetes version (major.minor.patch). </param>
/// <param name="osType"> The operating system type. The default is Linux. </param>
/// <exception cref="ArgumentNullException"> <paramref name="kubernetesVersion"/> is null. </exception>
internal AgentPoolUpgradeProfileData(string kubernetesVersion, ContainerServiceOSType osType)
{
Argument.AssertNotNull(kubernetesVersion, nameof(kubernetesVersion));
KubernetesVersion = kubernetesVersion;
OSType = osType;
Upgrades = new ChangeTrackingList<AgentPoolUpgradeProfilePropertiesUpgradesItem>();
}
/// <summary> Initializes a new instance of AgentPoolUpgradeProfileData. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="kubernetesVersion"> The Kubernetes version (major.minor.patch). </param>
/// <param name="osType"> The operating system type. The default is Linux. </param>
/// <param name="upgrades"> List of orchestrator types and versions available for upgrade. </param>
/// <param name="latestNodeImageVersion"> The latest AKS supported node image version. </param>
internal AgentPoolUpgradeProfileData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string kubernetesVersion, ContainerServiceOSType osType, IReadOnlyList<AgentPoolUpgradeProfilePropertiesUpgradesItem> upgrades, string latestNodeImageVersion) : base(id, name, resourceType, systemData)
{
KubernetesVersion = kubernetesVersion;
OSType = osType;
Upgrades = upgrades;
LatestNodeImageVersion = latestNodeImageVersion;
}
/// <summary> The Kubernetes version (major.minor.patch). </summary>
public string KubernetesVersion { get; }
/// <summary> The operating system type. The default is Linux. </summary>
public ContainerServiceOSType OSType { get; }
/// <summary> List of orchestrator types and versions available for upgrade. </summary>
public IReadOnlyList<AgentPoolUpgradeProfilePropertiesUpgradesItem> Upgrades { get; }
/// <summary> The latest AKS supported node image version. </summary>
public string LatestNodeImageVersion { get; }
}
}