private/api/Nutanix/Powershell/Models/TaskListIntentResponse.cs
namespace Nutanix.Powershell.Models { using static Microsoft.Rest.ClientRuntime.Extensions; /// <summary>Task entity list.</summary> public partial class TaskListIntentResponse : Nutanix.Powershell.Models.ITaskListIntentResponse, 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="Entities" /> property.</summary> private Nutanix.Powershell.Models.ITask[] _entities; public Nutanix.Powershell.Models.ITask[] Entities { get { return this._entities; } set { this._entities = value; } } /// <summary>Backing field for <see cref="Metadata" /> property.</summary> private Nutanix.Powershell.Models.ITaskListMetadataOutput _metadata; /// <summary> /// All api calls that return a list will have this metadata block /// </summary> public Nutanix.Powershell.Models.ITaskListMetadataOutput Metadata { get { return this._metadata; } set { this._metadata = value; } } /// <summary>Creates an new <see cref="TaskListIntentResponse" /> instance.</summary> public TaskListIntentResponse() { } /// <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(ApiVersion),ApiVersion); await eventListener.AssertNotNull(nameof(Entities), Entities); if (Entities != null ) { for (int __i = 0; __i < Entities.Length; __i++) { await eventListener.AssertObjectIsValid($"Entities[{__i}]", Entities[__i]); } } await eventListener.AssertNotNull(nameof(Metadata), Metadata); await eventListener.AssertObjectIsValid(nameof(Metadata), Metadata); } } /// Task entity list. public partial interface ITaskListIntentResponse : Microsoft.Rest.ClientRuntime.IJsonSerializable { string ApiVersion { get; set; } Nutanix.Powershell.Models.ITask[] Entities { get; set; } Nutanix.Powershell.Models.ITaskListMetadataOutput Metadata { get; set; } } } |