Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the Disk class.
 /// </summary>
 /// <param name="location">Resource location</param>
 /// <param name="creationData">Disk source information. CreationData
 /// information cannot be changed after the disk has been
 /// created.</param>
 /// <param name="id">Resource Id</param>
 /// <param name="name">Resource name</param>
 /// <param name="type">Resource type</param>
 /// <param name="tags">Resource tags</param>
 /// <param name="managedBy">A relative URI containing the ID of the VM
 /// that has the disk attached.</param>
 /// <param name="zones">The Logical zone list for Disk.</param>
 /// <param name="timeCreated">The time when the disk was
 /// created.</param>
 /// <param name="osType">The Operating System type. Possible values
 /// include: 'Windows', 'Linux'</param>
 /// <param name="diskSizeGB">If creationData.createOption is Empty,
 /// this field is mandatory and it indicates the size of the VHD to
 /// create. If this field is present for updates or creation with other
 /// options, it indicates a resize. Resizes are only allowed if the
 /// disk is not attached to a running VM, and can only increase the
 /// disk's size.</param>
 /// <param name="encryptionSettings">Encryption settings for disk or
 /// snapshot</param>
 /// <param name="provisioningState">The disk provisioning
 /// state.</param>
 public Disk(string location, CreationData creationData, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string managedBy = default(string), DiskSku sku = default(DiskSku), IList <string> zones = default(IList <string>), System.DateTime?timeCreated = default(System.DateTime?), OperatingSystemTypes?osType = default(OperatingSystemTypes?), int?diskSizeGB = default(int?), EncryptionSettings encryptionSettings = default(EncryptionSettings), string provisioningState = default(string))
     : base(location, id, name, type, tags)
 {
     ManagedBy          = managedBy;
     Sku                = sku;
     Zones              = zones;
     TimeCreated        = timeCreated;
     OsType             = osType;
     CreationData       = creationData;
     DiskSizeGB         = diskSizeGB;
     EncryptionSettings = encryptionSettings;
     ProvisioningState  = provisioningState;
     CustomInit();
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the DiskUpdate class.
 /// </summary>
 /// <param name="tags">Resource tags</param>
 /// <param name="osType">the Operating System type. Possible values
 /// include: 'Windows', 'Linux'</param>
 /// <param name="diskSizeGB">If creationData.createOption is Empty,
 /// this field is mandatory and it indicates the size of the VHD to
 /// create. If this field is present for updates or creation with other
 /// options, it indicates a resize. Resizes are only allowed if the
 /// disk is not attached to a running VM, and can only increase the
 /// disk's size.</param>
 /// <param name="encryptionSettings">Encryption settings for disk or
 /// snapshot</param>
 public DiskUpdate(IDictionary <string, string> tags = default(IDictionary <string, string>), DiskSku sku = default(DiskSku), OperatingSystemTypes?osType = default(OperatingSystemTypes?), int?diskSizeGB = default(int?), EncryptionSettings encryptionSettings = default(EncryptionSettings))
     : base(tags, sku)
 {
     OsType             = osType;
     DiskSizeGB         = diskSizeGB;
     EncryptionSettings = encryptionSettings;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the ResourceUpdate class.
 /// </summary>
 /// <param name="tags">Resource tags</param>
 public ResourceUpdate(IDictionary <string, string> tags = default(IDictionary <string, string>), DiskSku sku = default(DiskSku))
 {
     Tags = tags;
     Sku  = sku;
     CustomInit();
 }