/// <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.AssertMaximumLength(nameof(DefaultUserPrincipalName), DefaultUserPrincipalName, 104); await eventListener.AssertObjectIsValid(nameof(DirectoryServiceReference), DirectoryServiceReference); await eventListener.AssertMaximumLength(nameof(UserPrincipalName), UserPrincipalName, 104); }
/// <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); }
/// <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(ProductName), ProductName); await eventListener.AssertMaximumLength(nameof(ProductName), ProductName, 64); await eventListener.AssertNotNull(nameof(ProductVersion), ProductVersion); await eventListener.AssertMaximumLength(nameof(ProductVersion), ProductVersion, 64); }
/// <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 (CitrixVmReferenceList != null) { for (int __i = 0; __i < CitrixVmReferenceList.Length; __i++) { await eventListener.AssertObjectIsValid($"CitrixVmReferenceList[{__i}]", CitrixVmReferenceList[__i]); } } await eventListener.AssertMaximumLength(nameof(ClientId), ClientId, 200); await eventListener.AssertMaximumLength(nameof(CustomerId), CustomerId, 200); await eventListener.AssertObjectIsValid(nameof(ResourceLocation), ResourceLocation); }
/// <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); }
/// <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.AssertMaximumLength(nameof(ExpirationTime), ExpirationTime, 64); await eventListener.AssertObjectIsValid(nameof(Filter), Filter); if (IcmpTypeCodeList != null) { for (int __i = 0; __i < IcmpTypeCodeList.Length; __i++) { await eventListener.AssertObjectIsValid($"IcmpTypeCodeList[{__i}]", IcmpTypeCodeList[__i]); } } await eventListener.AssertObjectIsValid(nameof(IpSubnet), IpSubnet); await eventListener.AssertObjectIsValid(nameof(NetworkFunctionChainReference), NetworkFunctionChainReference); if (TcpPortRangeList != null) { for (int __i = 0; __i < TcpPortRangeList.Length; __i++) { await eventListener.AssertObjectIsValid($"TcpPortRangeList[{__i}]", TcpPortRangeList[__i]); } } if (UdpPortRangeList != null) { for (int __i = 0; __i < UdpPortRangeList.Length; __i++) { await eventListener.AssertObjectIsValid($"UdpPortRangeList[{__i}]", UdpPortRangeList[__i]); } } }
/// <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.AssertObjectIsValid(nameof(BootConfig), BootConfig); if (DiskList != null) { for (int __i = 0; __i < DiskList.Length; __i++) { await eventListener.AssertObjectIsValid($"DiskList[{__i}]", DiskList[__i]); } } if (GpuList != null) { for (int __i = 0; __i < GpuList.Length; __i++) { await eventListener.AssertObjectIsValid($"GpuList[{__i}]", GpuList[__i]); } } await eventListener.AssertObjectIsValid(nameof(GuestCustomization), GuestCustomization); await eventListener.AssertMaximumLength(nameof(GuestOsId), GuestOsId, 64); await eventListener.AssertObjectIsValid(nameof(GuestTools), GuestTools); await eventListener.AssertMaximumLength(nameof(HardwareClockTimezone), HardwareClockTimezone, 64); await eventListener.AssertIsGreaterThanOrEqual(nameof(MemorySizeMib), MemorySizeMib, 1); if (NicList != null) { for (int __i = 0; __i < NicList.Length; __i++) { await eventListener.AssertObjectIsValid($"NicList[{__i}]", NicList[__i]); } } await eventListener.AssertIsGreaterThanOrEqual(nameof(NumSockets), NumSockets, 1); await eventListener.AssertIsGreaterThanOrEqual(nameof(NumVcpusPerSocket), NumVcpusPerSocket, 1); await eventListener.AssertObjectIsValid(nameof(ParentReference), ParentReference); await eventListener.AssertObjectIsValid(nameof(PowerStateMechanism), PowerStateMechanism); await eventListener.AssertObjectIsValid(nameof(VnumaConfig), VnumaConfig); }
/// <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.AssertMaximumLength(nameof(Name), Name, 64); await eventListener.AssertObjectIsValid(nameof(OwnerReference), OwnerReference); await eventListener.AssertObjectIsValid(nameof(ProjectReference), ProjectReference); 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>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.AssertObjectIsValid(nameof(IpConfig), IpConfig); await eventListener.AssertObjectIsValid(nameof(NetworkFunctionChainReference), NetworkFunctionChainReference); await eventListener.AssertNotNull(nameof(SubnetType), SubnetType); await eventListener.AssertMaximumLength(nameof(VswitchName), VswitchName, 64); }
/// <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.AssertMaximumLength(nameof(Name), Name, 64); await eventListener.AssertNotNull(nameof(Type), Type); await eventListener.AssertNotNull(nameof(Cert), Cert); await eventListener.AssertNotNull(nameof(Key), Key); }
/// <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.AssertNotNull(nameof(Resources), Resources); await eventListener.AssertObjectIsValid(nameof(Resources), Resources); }
/// <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.AssertMaximumLength(nameof(Name), Name, 200); await eventListener.AssertMaximumLength(nameof(Id), Id, 200); }
/// <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.AssertMaximumLength(nameof(MetaData), MetaData, 32000); await eventListener.AssertMaximumLength(nameof(UserData), UserData, 32000); }
/// <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.AssertMaximumLength(nameof(UnattendXml), UnattendXml, 32000); }