private/api/Nutanix/Powershell/Models/VmNicOutputStatus.cs
namespace Nutanix.Powershell.Models { using static Microsoft.Rest.ClientRuntime.Extensions; /// <summary>Virtual Machine NIC Status.</summary> public partial class VmNicOutputStatus : Nutanix.Powershell.Models.IVmNicOutputStatus, Microsoft.Rest.ClientRuntime.IValidates { /// <summary>Backing field for FloatingIp property</summary> private string _floatingIp; /// <summary>The Floating IP associated with the vnic.</summary> public string FloatingIp { get { return this._floatingIp; } set { this._floatingIp = value; } } /// <summary>Backing field for IpEndpointList property</summary> private string _ipEndpointList; /// <summary> /// IP endpoints for the adapter. Currently, IPv4 addresses are supported. /// </summary> public string IpEndpointList { get { return this._ipEndpointList; } set { this._ipEndpointList = value; } } /// <summary>Backing field for MacAddress property</summary> private string _macAddress; /// <summary>The MAC address for the adapter.</summary> public string MacAddress { get { return this._macAddress; } set { this._macAddress = value; } } /// <summary>Backing field for Model property</summary> private string _model; /// <summary>The model of this NIC.</summary> public string Model { get { return this._model; } set { this._model = value; } } /// <summary>Backing field for NetworkFunctionChainReference property</summary> private Nutanix.Powershell.Models.INetworkFunctionChainReference _networkFunctionChainReference; /// <summary>The reference to a network_function_chain</summary> public Nutanix.Powershell.Models.INetworkFunctionChainReference NetworkFunctionChainReference { get { return this._networkFunctionChainReference; } set { this._networkFunctionChainReference = value; } } /// <summary>Backing field for NetworkFunctionNicType property</summary> private string _networkFunctionNicType; /// <summary> /// The type of this Network function NIC. Defaults to INGRESS. /// </summary> public string NetworkFunctionNicType { get { return this._networkFunctionNicType; } set { this._networkFunctionNicType = value; } } /// <summary>Backing field for NicType property</summary> private string _nicType; /// <summary>The type of this NIC. Defaults to NORMAL_NIC.</summary> public string NicType { get { return this._nicType; } set { this._nicType = value; } } /// <summary>Backing field for SubnetReference property</summary> private Nutanix.Powershell.Models.ISubnetReference _subnetReference; /// <summary>The reference to a subnet</summary> public Nutanix.Powershell.Models.ISubnetReference SubnetReference { get { return this._subnetReference; } set { this._subnetReference = value; } } /// <summary>Backing field for Uuid property</summary> private string _uuid; /// <summary> /// The NIC's UUID, which is used to uniquely identify this particular NIC. This UUID may be used to refer to the NIC outside /// the context of the particular VM it is attached to. /// </summary> public string Uuid { get { return this._uuid; } set { this._uuid = value; } } /// <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.AssertRegEx(nameof(FloatingIp),FloatingIp,@"^(?:(?: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]?)$"); await eventListener.AssertRegEx(nameof(MacAddress),MacAddress,@"^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"); await eventListener.AssertObjectIsValid(nameof(NetworkFunctionChainReference), NetworkFunctionChainReference); await eventListener.AssertObjectIsValid(nameof(SubnetReference), SubnetReference); await eventListener.AssertRegEx(nameof(Uuid),Uuid,@"^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"); } /// <summary>Creates an new <see cref="VmNicOutputStatus" /> instance.</summary> public VmNicOutputStatus() { } } /// Virtual Machine NIC Status. public partial interface IVmNicOutputStatus : Microsoft.Rest.ClientRuntime.IJsonSerializable { string FloatingIp { get; set; } string IpEndpointList { get; set; } string MacAddress { get; set; } string Model { get; set; } Nutanix.Powershell.Models.INetworkFunctionChainReference NetworkFunctionChainReference { get; set; } string NetworkFunctionNicType { get; set; } string NicType { get; set; } Nutanix.Powershell.Models.ISubnetReference SubnetReference { get; set; } string Uuid { get; set; } } } |