Пример #1
0
        internal static string ToSerializedValue(this SkuName value)
        {
            switch (value)
            {
            case SkuName.StandardLRS:
                return("Standard_LRS");

            case SkuName.StandardGRS:
                return("Standard_GRS");

            case SkuName.StandardGZRS:
                return("Standard_GZRS");

            case SkuName.StandardRAGRS:
                return("Standard_RAGRS");

            case SkuName.StandardRAGZRS:
                return("Standard_RAGZRS");

            case SkuName.StandardZRS:
                return("Standard_ZRS");

            case SkuName.PremiumLRS:
                return("Premium_LRS");

            case SkuName.PremiumZRS:
                return("Premium_ZRS");
            }
            return(null);
        }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the Sku class.
 /// </summary>
 /// <param name="name">Gets or sets the SKU name. Required for account
 /// creation; optional for update. Note that in older versions, SKU
 /// name was called accountType. Possible values include:
 /// 'Standard_LRS', 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS',
 /// 'Premium_LRS', 'Premium_ZRS'</param>
 /// <param name="tier">Gets the SKU tier. This is based on the SKU
 /// name. Possible values include: 'Standard', 'Premium'</param>
 /// <param name="resourceType">The type of the resource, usually it is
 /// 'storageAccounts'.</param>
 /// <param name="kind">Indicates the type of storage account. Possible
 /// values include: 'Storage', 'StorageV2', 'BlobStorage',
 /// 'FileStorage', 'BlockBlobStorage'</param>
 /// <param name="locations">The set of locations that the SKU is
 /// available. This will be supported and registered Azure Geo Regions
 /// (e.g. West US, East US, Southeast Asia, etc.).</param>
 /// <param name="capabilities">The capability information in the
 /// specified SKU, including file encryption, network ACLs, change
 /// notification, etc.</param>
 /// <param name="restrictions">The restrictions because of which SKU
 /// cannot be used. This is empty if there are no restrictions.</param>
 public Sku(SkuName name, SkuTier?tier = default(SkuTier?), string resourceType = default(string), Kind?kind = default(Kind?), IList <string> locations = default(IList <string>), IList <SKUCapability> capabilities = default(IList <SKUCapability>), IList <Restriction> restrictions = default(IList <Restriction>))
 {
     Name         = name;
     Tier         = tier;
     ResourceType = resourceType;
     Kind         = kind;
     Locations    = locations;
     Capabilities = capabilities;
     Restrictions = restrictions;
     CustomInit();
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the Sku class.
 /// </summary>
 public Sku(SkuName name, SkuTier?tier = default(SkuTier?))
 {
     Name = name;
     Tier = tier;
 }