/
ManagedClusterUpgradeProfileData.cs
54 lines (47 loc) · 2.84 KB
/
ManagedClusterUpgradeProfileData.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using System.Linq;
using Azure.Core;
using Azure.ResourceManager.ContainerService.Models;
using Azure.ResourceManager.Models;
namespace Azure.ResourceManager.ContainerService
{
/// <summary>
/// A class representing the ManagedClusterUpgradeProfile data model.
/// The list of available upgrades for compute pools.
/// </summary>
public partial class ManagedClusterUpgradeProfileData : ResourceData
{
/// <summary> Initializes a new instance of ManagedClusterUpgradeProfileData. </summary>
/// <param name="controlPlaneProfile"> The list of available upgrade versions for the control plane. </param>
/// <param name="agentPoolProfiles"> The list of available upgrade versions for agent pools. </param>
/// <exception cref="ArgumentNullException"> <paramref name="controlPlaneProfile"/> or <paramref name="agentPoolProfiles"/> is null. </exception>
internal ManagedClusterUpgradeProfileData(ManagedClusterPoolUpgradeProfile controlPlaneProfile, IEnumerable<ManagedClusterPoolUpgradeProfile> agentPoolProfiles)
{
Argument.AssertNotNull(controlPlaneProfile, nameof(controlPlaneProfile));
Argument.AssertNotNull(agentPoolProfiles, nameof(agentPoolProfiles));
ControlPlaneProfile = controlPlaneProfile;
AgentPoolProfiles = agentPoolProfiles.ToList();
}
/// <summary> Initializes a new instance of ManagedClusterUpgradeProfileData. </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="controlPlaneProfile"> The list of available upgrade versions for the control plane. </param>
/// <param name="agentPoolProfiles"> The list of available upgrade versions for agent pools. </param>
internal ManagedClusterUpgradeProfileData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ManagedClusterPoolUpgradeProfile controlPlaneProfile, IReadOnlyList<ManagedClusterPoolUpgradeProfile> agentPoolProfiles) : base(id, name, resourceType, systemData)
{
ControlPlaneProfile = controlPlaneProfile;
AgentPoolProfiles = agentPoolProfiles;
}
/// <summary> The list of available upgrade versions for the control plane. </summary>
public ManagedClusterPoolUpgradeProfile ControlPlaneProfile { get; }
/// <summary> The list of available upgrade versions for agent pools. </summary>
public IReadOnlyList<ManagedClusterPoolUpgradeProfile> AgentPoolProfiles { get; }
}
}