private/api/Nutanix/Powershell/Models/NetworkSecurityRuleStatus.cs
namespace Nutanix.Powershell.Models { using static Microsoft.Rest.ClientRuntime.Extensions; /// <summary> /// The status of a REST API call. Only used when there is a failure to /// report. /// </summary> public partial class NetworkSecurityRuleStatus : Nutanix.Powershell.Models.INetworkSecurityRuleStatus, Microsoft.Rest.ClientRuntime.IValidates { /// <summary>Backing field for <see cref="ApiVersion" /> property.</summary> private string _apiVersion; public string ApiVersion { get { return this._apiVersion; } set { this._apiVersion = value; } } /// <summary>Backing field for <see cref="Code" /> property.</summary> private int? _code; /// <summary>The HTTP error code.</summary> public int? Code { get { return this._code; } set { this._code = value; } } /// <summary>Backing field for <see cref="Kind" /> property.</summary> private string _kind; /// <summary>The kind name</summary> public string Kind { get { return this._kind; } set { this._kind = value; } } /// <summary>Backing field for <see cref="MessageList" /> property.</summary> private Nutanix.Powershell.Models.IMessageResource[] _messageList; public Nutanix.Powershell.Models.IMessageResource[] MessageList { get { return this._messageList; } set { this._messageList = value; } } /// <summary>Backing field for <see cref="State" /> property.</summary> private string _state; public string State { get { return this._state; } set { this._state = value; } } /// <summary>Creates an new <see cref="NetworkSecurityRuleStatus" /> instance.</summary> public NetworkSecurityRuleStatus() { } /// <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) { if (MessageList != null ) { for (int __i = 0; __i < MessageList.Length; __i++) { await eventListener.AssertObjectIsValid($"MessageList[{__i}]", MessageList[__i]); } } } } /// The status of a REST API call. Only used when there is a failure to /// report. public partial interface INetworkSecurityRuleStatus : Microsoft.Rest.ClientRuntime.IJsonSerializable { string ApiVersion { get; set; } int? Code { get; set; } string Kind { get; set; } Nutanix.Powershell.Models.IMessageResource[] MessageList { get; set; } string State { get; set; } } } |