-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
ComputeResourceSku.cs
120 lines (113 loc) · 6.68 KB
/
ComputeResourceSku.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
// 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;
namespace Azure.ResourceManager.Compute.Models
{
/// <summary> Describes an available Compute SKU. </summary>
public partial class ComputeResourceSku
{
/// <summary>
/// Keeps track of any properties unknown to the library.
/// <para>
/// To assign an object to the value of this property use <see cref="BinaryData.FromObjectAsJson{T}(T, System.Text.Json.JsonSerializerOptions?)"/>.
/// </para>
/// <para>
/// To assign an already formatted json string to this property use <see cref="BinaryData.FromString(string)"/>.
/// </para>
/// <para>
/// Examples:
/// <list type="bullet">
/// <item>
/// <term>BinaryData.FromObjectAsJson("foo")</term>
/// <description>Creates a payload of "foo".</description>
/// </item>
/// <item>
/// <term>BinaryData.FromString("\"foo\"")</term>
/// <description>Creates a payload of "foo".</description>
/// </item>
/// <item>
/// <term>BinaryData.FromObjectAsJson(new { key = "value" })</term>
/// <description>Creates a payload of { "key": "value" }.</description>
/// </item>
/// <item>
/// <term>BinaryData.FromString("{\"key\": \"value\"}")</term>
/// <description>Creates a payload of { "key": "value" }.</description>
/// </item>
/// </list>
/// </para>
/// </summary>
private IDictionary<string, BinaryData> _serializedAdditionalRawData;
/// <summary> Initializes a new instance of <see cref="ComputeResourceSku"/>. </summary>
internal ComputeResourceSku()
{
Locations = new ChangeTrackingList<AzureLocation>();
LocationInfo = new ChangeTrackingList<ComputeResourceSkuLocationInfo>();
ApiVersions = new ChangeTrackingList<string>();
Costs = new ChangeTrackingList<ResourceSkuCosts>();
Capabilities = new ChangeTrackingList<ComputeResourceSkuCapabilities>();
Restrictions = new ChangeTrackingList<ComputeResourceSkuRestrictions>();
}
/// <summary> Initializes a new instance of <see cref="ComputeResourceSku"/>. </summary>
/// <param name="resourceType"> The type of resource the SKU applies to. </param>
/// <param name="name"> The name of SKU. </param>
/// <param name="tier"> Specifies the tier of virtual machines in a scale set.<br /><br /> Possible Values:<br /><br /> **Standard**<br /><br /> **Basic**. </param>
/// <param name="size"> The Size of the SKU. </param>
/// <param name="family"> The Family of this particular SKU. </param>
/// <param name="kind"> The Kind of resources that are supported in this SKU. </param>
/// <param name="capacity"> Specifies the number of virtual machines in the scale set. </param>
/// <param name="locations"> The set of locations that the SKU is available. </param>
/// <param name="locationInfo"> A list of locations and availability zones in those locations where the SKU is available. </param>
/// <param name="apiVersions"> The api versions that support this SKU. </param>
/// <param name="costs"> Metadata for retrieving price info. </param>
/// <param name="capabilities"> A name value pair to describe the capability. </param>
/// <param name="restrictions"> The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. </param>
/// <param name="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param>
internal ComputeResourceSku(string resourceType, string name, string tier, string size, string family, string kind, ComputeResourceSkuCapacity capacity, IReadOnlyList<AzureLocation> locations, IReadOnlyList<ComputeResourceSkuLocationInfo> locationInfo, IReadOnlyList<string> apiVersions, IReadOnlyList<ResourceSkuCosts> costs, IReadOnlyList<ComputeResourceSkuCapabilities> capabilities, IReadOnlyList<ComputeResourceSkuRestrictions> restrictions, IDictionary<string, BinaryData> serializedAdditionalRawData)
{
ResourceType = resourceType;
Name = name;
Tier = tier;
Size = size;
Family = family;
Kind = kind;
Capacity = capacity;
Locations = locations;
LocationInfo = locationInfo;
ApiVersions = apiVersions;
Costs = costs;
Capabilities = capabilities;
Restrictions = restrictions;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
/// <summary> The type of resource the SKU applies to. </summary>
public string ResourceType { get; }
/// <summary> The name of SKU. </summary>
public string Name { get; }
/// <summary> Specifies the tier of virtual machines in a scale set.<br /><br /> Possible Values:<br /><br /> **Standard**<br /><br /> **Basic**. </summary>
public string Tier { get; }
/// <summary> The Size of the SKU. </summary>
public string Size { get; }
/// <summary> The Family of this particular SKU. </summary>
public string Family { get; }
/// <summary> The Kind of resources that are supported in this SKU. </summary>
public string Kind { get; }
/// <summary> Specifies the number of virtual machines in the scale set. </summary>
public ComputeResourceSkuCapacity Capacity { get; }
/// <summary> The set of locations that the SKU is available. </summary>
public IReadOnlyList<AzureLocation> Locations { get; }
/// <summary> A list of locations and availability zones in those locations where the SKU is available. </summary>
public IReadOnlyList<ComputeResourceSkuLocationInfo> LocationInfo { get; }
/// <summary> The api versions that support this SKU. </summary>
public IReadOnlyList<string> ApiVersions { get; }
/// <summary> Metadata for retrieving price info. </summary>
public IReadOnlyList<ResourceSkuCosts> Costs { get; }
/// <summary> A name value pair to describe the capability. </summary>
public IReadOnlyList<ComputeResourceSkuCapabilities> Capabilities { get; }
/// <summary> The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. </summary>
public IReadOnlyList<ComputeResourceSkuRestrictions> Restrictions { get; }
}
}