/// <summary> /// Initializes a new instance of the ManagedDiskParametersInner class. /// </summary> /// <param name="storageAccountType">Specifies the storage account type /// for the managed disk. NOTE: UltraSSD_LRS can only be used with data /// disks, it cannot be used with OS Disk. Possible values include: /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', /// 'UltraSSD_LRS'</param> /// <param name="diskEncryptionSet">Specifies the customer managed disk /// encryption set resource id for the managed disk.</param> public ManagedDiskParametersInner(string id = default(string), StorageAccountTypes storageAccountType = default(StorageAccountTypes), Management.ResourceManager.Fluent.SubResource diskEncryptionSet = default(Management.ResourceManager.Fluent.SubResource)) : base(id) { StorageAccountType = storageAccountType; DiskEncryptionSet = diskEncryptionSet; CustomInit(); }
/// <summary> /// Creates a custom value for DiskSkuTypes. /// </summary> /// <param name="value">the custom value</param> public DiskSkuTypes(StorageAccountTypes value) { if (ValuesByName == null) { ValuesByName = new Dictionary <string, DiskSkuTypes>(); } ValuesByName[value.ToString().ToLower()] = this; this.value = value; }
/// <summary> /// Initializes a new instance of the ImageDataDisk class. /// </summary> /// <param name="lun">Specifies the logical unit number of the data /// disk. This value is used to identify data disks within the VM and /// therefore must be unique for each data disk attached to a /// VM.</param> /// <param name="snapshot">The snapshot.</param> /// <param name="managedDisk">The managedDisk.</param> /// <param name="blobUri">The Virtual Hard Disk.</param> /// <param name="caching">Specifies the caching requirements. /// <br><br> Possible values are: <br><br> /// **None** <br><br> **ReadOnly** <br><br> /// **ReadWrite** <br><br> Default: **None for Standard /// storage. ReadOnly for Premium storage**. Possible values include: /// 'None', 'ReadOnly', 'ReadWrite'</param> /// <param name="diskSizeGB">Specifies the size of empty data disks in /// gigabytes. This element can be used to overwrite the name of the /// disk in a virtual machine image. <br><br> This value /// cannot be larger than 1023 GB</param> /// <param name="storageAccountType">Specifies the storage account type /// for the managed disk. Possible values are: Standard_LRS, /// Premium_LRS, and StandardSSD_LRS. Possible values include: /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS'</param> public ImageDataDisk(int lun, Management.ResourceManager.Fluent.SubResource snapshot = default(Management.ResourceManager.Fluent.SubResource), Management.ResourceManager.Fluent.SubResource managedDisk = default(Management.ResourceManager.Fluent.SubResource), string blobUri = default(string), CachingTypes?caching = default(CachingTypes?), int?diskSizeGB = default(int?), StorageAccountTypes storageAccountType = default(StorageAccountTypes)) { Lun = lun; Snapshot = snapshot; ManagedDisk = managedDisk; BlobUri = blobUri; Caching = caching; DiskSizeGB = diskSizeGB; StorageAccountType = storageAccountType; CustomInit(); }
/// <summary> /// Initializes a new instance of the ImageOSDisk class. /// </summary> /// <param name="osType">This property allows you to specify the type /// of the OS that is included in the disk if creating a VM from a /// custom image. <br><br> Possible values are: /// <br><br> **Windows** <br><br> **Linux**. /// Possible values include: 'Windows', 'Linux'</param> /// <param name="osState">The OS State. Possible values include: /// 'Generalized', 'Specialized'</param> /// <param name="snapshot">The snapshot.</param> /// <param name="managedDisk">The managedDisk.</param> /// <param name="blobUri">The Virtual Hard Disk.</param> /// <param name="caching">Specifies the caching requirements. /// <br><br> Possible values are: <br><br> /// **None** <br><br> **ReadOnly** <br><br> /// **ReadWrite** <br><br> Default: **None for Standard /// storage. ReadOnly for Premium storage**. Possible values include: /// 'None', 'ReadOnly', 'ReadWrite'</param> /// <param name="diskSizeGB">Specifies the size of empty data disks in /// gigabytes. This element can be used to overwrite the name of the /// disk in a virtual machine image. <br><br> This value /// cannot be larger than 1023 GB</param> /// <param name="storageAccountType">Specifies the storage account type /// for the managed disk. Possible values are: Standard_LRS, /// Premium_LRS, and StandardSSD_LRS. Possible values include: /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS'</param> public ImageOSDisk(OperatingSystemTypes osType, OperatingSystemStateTypes osState, Management.ResourceManager.Fluent.SubResource snapshot = default(Management.ResourceManager.Fluent.SubResource), Management.ResourceManager.Fluent.SubResource managedDisk = default(Management.ResourceManager.Fluent.SubResource), string blobUri = default(string), CachingTypes?caching = default(CachingTypes?), int?diskSizeGB = default(int?), StorageAccountTypes storageAccountType = default(StorageAccountTypes)) { OsType = osType; OsState = osState; Snapshot = snapshot; ManagedDisk = managedDisk; BlobUri = blobUri; Caching = caching; DiskSizeGB = diskSizeGB; StorageAccountType = storageAccountType; CustomInit(); }
internal static string ToSerializedValue(this StorageAccountTypes value) { switch (value) { case StorageAccountTypes.StandardLRS: return("Standard_LRS"); case StorageAccountTypes.PremiumLRS: return("Premium_LRS"); } return(null); }
/// <summary> /// Parses a disk SKU type from a storage account type. /// </summary> /// <param name="value">a storage account type</param> /// <returns>a disk SKU type</returns> public static DiskSkuTypes FromStorageAccountType(StorageAccountTypes value) { DiskSkuTypes result; if (ValuesByName == null) { return(new DiskSkuTypes(value)); } else if (ValuesByName.TryGetValue(value.ToString().ToLower(), out result)) { return(result); } else { return(new DiskSkuTypes(value)); } }
/// <summary> /// Initializes a new instance of the ManagedDiskParametersInner class. /// </summary> /// <param name="storageAccountType">Specifies the storage account type /// for the managed disk. Possible values are: Standard_LRS, /// Premium_LRS, and StandardSSD_LRS. Possible values include: /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS'</param> public ManagedDiskParametersInner(string id = default(string), StorageAccountTypes storageAccountType = default(StorageAccountTypes)) : base(id) { StorageAccountType = storageAccountType; CustomInit(); }
/// <summary> /// Initializes a new instance of the DiskSku class. /// </summary> /// <param name="name">The sku name. Possible values include: /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', /// 'UltraSSD_LRS'</param> /// <param name="tier">The sku tier.</param> public DiskSku(StorageAccountTypes name = default(StorageAccountTypes), string tier = default(string)) { Name = name; Tier = tier; CustomInit(); }
/// <summary> /// Initializes a new instance of the /// VirtualMachineScaleSetManagedDiskParameters class. /// </summary> /// <param name="storageAccountType">Specifies the storage account type /// for the managed disk. NOTE: UltraSSD_LRS can only be used with data /// disks, it cannot be used with OS Disk. Possible values include: /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', /// 'UltraSSD_LRS'</param> public VirtualMachineScaleSetManagedDiskParameters(StorageAccountTypes storageAccountType = default(StorageAccountTypes)) { StorageAccountType = storageAccountType; CustomInit(); }
/// <summary> /// Initializes a new instance of the /// VirtualMachineScaleSetManagedDiskParameters class. /// </summary> /// <param name="storageAccountType">Specifies the storage account type /// for the managed disk. NOTE: UltraSSD_LRS can only be used with data /// disks, it cannot be used with OS Disk. Possible values include: /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', /// 'UltraSSD_LRS'</param> /// <param name="diskEncryptionSet">Specifies the customer managed disk /// encryption set resource id for the managed disk.</param> public VirtualMachineScaleSetManagedDiskParameters(StorageAccountTypes storageAccountType = default(StorageAccountTypes), Management.ResourceManager.Fluent.SubResource diskEncryptionSet = default(Management.ResourceManager.Fluent.SubResource)) { StorageAccountType = storageAccountType; DiskEncryptionSet = diskEncryptionSet; CustomInit(); }
/// <summary> /// Initializes a new instance of the ImageDataDisk class. /// </summary> /// <param name="lun">Specifies the logical unit number of the data /// disk. This value is used to identify data disks within the VM and /// therefore must be unique for each data disk attached to a /// VM.</param> /// <param name="snapshot">The snapshot.</param> /// <param name="managedDisk">The managedDisk.</param> /// <param name="blobUri">The Virtual Hard Disk.</param> /// <param name="caching">Specifies the caching requirements. /// <br><br> Possible values are: <br><br> /// **None** <br><br> **ReadOnly** <br><br> /// **ReadWrite** <br><br> Default: **None for Standard /// storage. ReadOnly for Premium storage**. Possible values include: /// 'None', 'ReadOnly', 'ReadWrite'</param> /// <param name="diskSizeGB">Specifies the size of empty data disks in /// gigabytes. This element can be used to overwrite the name of the /// disk in a virtual machine image. <br><br> This value /// cannot be larger than 1023 GB</param> /// <param name="storageAccountType">Specifies the storage account type /// for the managed disk. NOTE: UltraSSD_LRS can only be used with data /// disks, it cannot be used with OS Disk. Possible values include: /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', /// 'UltraSSD_LRS'</param> /// <param name="diskEncryptionSet">Specifies the customer managed disk /// encryption set resource id for the managed image disk.</param> public ImageDataDisk(int lun, Management.ResourceManager.Fluent.SubResource snapshot = default(Management.ResourceManager.Fluent.SubResource), Management.ResourceManager.Fluent.SubResource managedDisk = default(Management.ResourceManager.Fluent.SubResource), string blobUri = default(string), CachingTypes?caching = default(CachingTypes?), int?diskSizeGB = default(int?), StorageAccountTypes storageAccountType = default(StorageAccountTypes), Management.ResourceManager.Fluent.SubResource diskEncryptionSet = default(Management.ResourceManager.Fluent.SubResource)) : base(snapshot, managedDisk, blobUri, caching, diskSizeGB, storageAccountType, diskEncryptionSet) { Lun = lun; CustomInit(); }
/// <summary> /// Initializes a new instance of the ImageOSDisk class. /// </summary> /// <param name="osType">This property allows you to specify the type /// of the OS that is included in the disk if creating a VM from a /// custom image. <br><br> Possible values are: /// <br><br> **Windows** <br><br> **Linux**. /// Possible values include: 'Windows', 'Linux'</param> /// <param name="osState">The OS State. Possible values include: /// 'Generalized', 'Specialized'</param> /// <param name="snapshot">The snapshot.</param> /// <param name="managedDisk">The managedDisk.</param> /// <param name="blobUri">The Virtual Hard Disk.</param> /// <param name="caching">Specifies the caching requirements. /// <br><br> Possible values are: <br><br> /// **None** <br><br> **ReadOnly** <br><br> /// **ReadWrite** <br><br> Default: **None for Standard /// storage. ReadOnly for Premium storage**. Possible values include: /// 'None', 'ReadOnly', 'ReadWrite'</param> /// <param name="diskSizeGB">Specifies the size of empty data disks in /// gigabytes. This element can be used to overwrite the name of the /// disk in a virtual machine image. <br><br> This value /// cannot be larger than 1023 GB</param> /// <param name="storageAccountType">Specifies the storage account type /// for the managed disk. NOTE: UltraSSD_LRS can only be used with data /// disks, it cannot be used with OS Disk. Possible values include: /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', /// 'UltraSSD_LRS'</param> /// <param name="diskEncryptionSet">Specifies the customer managed disk /// encryption set resource id for the managed image disk.</param> public ImageOSDisk(OperatingSystemTypes osType, OperatingSystemStateTypes osState, Management.ResourceManager.Fluent.SubResource snapshot = default(Management.ResourceManager.Fluent.SubResource), Management.ResourceManager.Fluent.SubResource managedDisk = default(Management.ResourceManager.Fluent.SubResource), string blobUri = default(string), CachingTypes?caching = default(CachingTypes?), int?diskSizeGB = default(int?), StorageAccountTypes storageAccountType = default(StorageAccountTypes), Management.ResourceManager.Fluent.SubResource diskEncryptionSet = default(Management.ResourceManager.Fluent.SubResource)) : base(snapshot, managedDisk, blobUri, caching, diskSizeGB, storageAccountType, diskEncryptionSet) { OsType = osType; OsState = osState; CustomInit(); }