Class ArmSku
- Namespace
- Azure.ResourceManager.Models
- Assembly
- Azure.ResourceManager.dll
A class representing SKU for resource.
[JsonConverter(typeof(ArmSku.ArmSkuConverter))]
public sealed class ArmSku : IEquatable<ArmSku>, IJsonModel<ArmSku>, IPersistableModel<ArmSku>
- Inheritance
-
ArmSku
- Inherited Members
Constructors
ArmSku(string)
Initializes a new instance of ArmSku.
public ArmSku(string name)
Parameters
name
stringThe name of the SKU. Ex - P3. It is typically a letter+number code.
Exceptions
- ArgumentNullException
name
is null.
Properties
Capacity
If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
public int? Capacity { get; set; }
Property Value
- int?
Family
If the service has different generations of hardware, for the same SKU, then that can be captured here.
public string Family { get; set; }
Property Value
Name
The name of the SKU. Ex - P3. It is typically a letter+number code.
public string Name { get; set; }
Property Value
Size
The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
public string Size { get; set; }
Property Value
Tier
This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.
public ArmSkuTier? Tier { get; set; }
Property Value
Methods
Equals(ArmSku)
Compares this ArmSku instance with another object and determines if they are equals.
public bool Equals(ArmSku other)
Parameters
Returns
- bool
True if they are equals, otherwise false.
Operators
operator ==(ArmSku, ArmSku)
Compares this ArmSku instance with another object and determines if they are equals.
public static bool operator ==(ArmSku left, ArmSku right)
Parameters
left
ArmSkuThe sku on the left side of the operator.
right
ArmSkuThe sku on the right side of the operator.
Returns
- bool
True if they are equal, otherwise false.
operator !=(ArmSku, ArmSku)
Compares this ArmSku instance with another object and determines if they are not equal.
public static bool operator !=(ArmSku left, ArmSku right)
Parameters
left
ArmSkuThe sku on the left side of the operator.
right
ArmSkuThe sku on the right side of the operator.
Returns
- bool
True if they are not equal, otherwise false.