private/api/Nutanix/Powershell/Models/Subnet.cs
namespace Nutanix.Powershell.Models { using static Microsoft.Rest.ClientRuntime.Extensions; /// <summary>An intentful representation of a subnet spec</summary> public partial class Subnet : Nutanix.Powershell.Models.ISubnet, Microsoft.Rest.ClientRuntime.IValidates { /// <summary>Backing field for <see cref="AvailabilityZoneReference" /> property.</summary> private Nutanix.Powershell.Models.IAvailabilityZoneReference _availabilityZoneReference; /// <summary>The reference to a availability_zone</summary> public Nutanix.Powershell.Models.IAvailabilityZoneReference AvailabilityZoneReference { get { return this._availabilityZoneReference; } set { this._availabilityZoneReference = value; } } /// <summary>Backing field for <see cref="ClusterReference" /> property.</summary> private Nutanix.Powershell.Models.IClusterReference _clusterReference; /// <summary>The reference to a cluster</summary> public Nutanix.Powershell.Models.IClusterReference ClusterReference { get { return this._clusterReference; } set { this._clusterReference = value; } } /// <summary>Backing field for <see cref="Description" /> property.</summary> private string _description; /// <summary>A description for subnet.</summary> public string Description { get { return this._description; } set { this._description = value; } } /// <summary>Backing field for <see cref="Name" /> property.</summary> private string _name; /// <summary>subnet Name.</summary> public string Name { get { return this._name; } set { this._name = value; } } /// <summary>Backing field for <see cref="Resources" /> property.</summary> private Nutanix.Powershell.Models.ISubnetResources _resources; /// <summary>Subnet creation/modification spec.</summary> public Nutanix.Powershell.Models.ISubnetResources Resources { get { return this._resources; } set { this._resources = value; } } /// <summary>Creates an new <see cref="Subnet" /> instance.</summary> public Subnet() { } /// <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(Name),Name); await eventListener.AssertMaximumLength(nameof(Name),Name,64); await eventListener.AssertMaximumLength(nameof(Description),Description,1000); await eventListener.AssertObjectIsValid(nameof(AvailabilityZoneReference), AvailabilityZoneReference); await eventListener.AssertObjectIsValid(nameof(ClusterReference), ClusterReference); await eventListener.AssertNotNull(nameof(Resources), Resources); await eventListener.AssertObjectIsValid(nameof(Resources), Resources); } } /// An intentful representation of a subnet spec public partial interface ISubnet : Microsoft.Rest.ClientRuntime.IJsonSerializable { Nutanix.Powershell.Models.IAvailabilityZoneReference AvailabilityZoneReference { get; set; } Nutanix.Powershell.Models.IClusterReference ClusterReference { get; set; } string Description { get; set; } string Name { get; set; } Nutanix.Powershell.Models.ISubnetResources Resources { get; set; } } } |