Example #1
0
 /// <summary>
 /// Initializes a new instance of the Datastore class.
 /// </summary>
 /// <param name="id">Resource ID.</param>
 /// <param name="name">Resource name.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="provisioningState">The state of the datastore
 /// provisioning. Possible values include: 'Succeeded', 'Failed',
 /// 'Cancelled', 'Pending', 'Creating', 'Updating', 'Deleting'</param>
 /// <param name="netAppVolume">An Azure NetApp Files volume</param>
 /// <param name="diskPoolVolume">An iSCSI volume</param>
 public Datastore(string id = default(string), string name = default(string), string type = default(string), string provisioningState = default(string), NetAppVolume netAppVolume = default(NetAppVolume), DiskPoolVolume diskPoolVolume = default(DiskPoolVolume))
     : base(id, name, type)
 {
     ProvisioningState = provisioningState;
     NetAppVolume      = netAppVolume;
     DiskPoolVolume    = diskPoolVolume;
     CustomInit();
 }
Example #2
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (NetAppVolume != null)
     {
         NetAppVolume.Validate();
     }
     if (DiskPoolVolume != null)
     {
         DiskPoolVolume.Validate();
     }
 }