private/api/Nutanix/Powershell/Models/HypervisorServer.cs
namespace Nutanix.Powershell.Models { using static Microsoft.Rest.ClientRuntime.Extensions; /// <summary>Hypervisor server information.</summary> public partial class HypervisorServer : Nutanix.Powershell.Models.IHypervisorServer, Microsoft.Rest.ClientRuntime.IValidates { /// <summary>Backing field for <see cref="Ip" /> property.</summary> private string _ip; public string Ip { get { return this._ip; } set { this._ip = value; } } /// <summary>Backing field for <see cref="Type" /> property.</summary> private string _type; public string Type { get { return this._type; } set { this._type = value; } } /// <summary>Backing field for <see cref="Version" /> property.</summary> private string _version; public string Version { get { return this._version; } set { this._version = value; } } /// <summary>Creates an new <see cref="HypervisorServer" /> instance.</summary> public HypervisorServer() { } /// <summary>Validates that this object meets the validation criteria.</summary> /// <param name="eventListener">an <see cref="Microsoft.Rest.ClientRuntime.IEventListener" /> instance that will receive validation /// events.</param> /// <returns> /// A <see cref="System.Threading.Tasks.Task" /> that will be complete when validation is completed. /// </returns> public async System.Threading.Tasks.Task Validate(Microsoft.Rest.ClientRuntime.IEventListener eventListener) { await eventListener.AssertNotNull(nameof(Ip),Ip); await eventListener.AssertRegEx(nameof(Ip),Ip,@"^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$"); } } /// Hypervisor server information. public partial interface IHypervisorServer : Microsoft.Rest.ClientRuntime.IJsonSerializable { string Ip { get; set; } string Type { get; set; } string Version { get; set; } } } |