Esempio n. 1
0
        /// <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 (AuthorizedPublicKeyList != null)
            {
                for (int __i = 0; __i < AuthorizedPublicKeyList.Length; __i++)
                {
                    await eventListener.AssertObjectIsValid($"AuthorizedPublicKeyList[{__i}]", AuthorizedPublicKeyList[__i]);
                }
            }
            await eventListener.AssertObjectIsValid(nameof(Build), Build);

            if (CaCertificateList != null)
            {
                for (int __i = 0; __i < CaCertificateList.Length; __i++)
                {
                    await eventListener.AssertObjectIsValid($"CaCertificateList[{__i}]", CaCertificateList[__i]);
                }
            }
            await eventListener.AssertObjectIsValid(nameof(CertificationSigningInfo), CertificationSigningInfo);

            await eventListener.AssertObjectIsValid(nameof(ClientAuth), ClientAuth);

            await eventListener.AssertObjectIsValid(nameof(ExternalConfigurations), ExternalConfigurations);

            if (ManagementServerList != null)
            {
                for (int __i = 0; __i < ManagementServerList.Length; __i++)
                {
                    await eventListener.AssertObjectIsValid($"ManagementServerList[{__i}]", ManagementServerList[__i]);
                }
            }
            await eventListener.AssertObjectIsValid(nameof(SslKey), SslKey);
        }
Esempio n. 2
0
        /// <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(DomainServer), DomainServer);

            await eventListener.AssertRegEx(nameof(ExternalDataServicesIp), ExternalDataServicesIp, @"^(?:(?: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(ExternalIp), ExternalIp, @"^(?:(?: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]?)$");

            if (HttpProxyList != null)
            {
                for (int __i = 0; __i < HttpProxyList.Length; __i++)
                {
                    await eventListener.AssertObjectIsValid($"HttpProxyList[{__i}]", HttpProxyList[__i]);
                }
            }
            if (HttpProxyWhitelist != null)
            {
                for (int __i = 0; __i < HttpProxyWhitelist.Length; __i++)
                {
                    await eventListener.AssertObjectIsValid($"HttpProxyWhitelist[{__i}]", HttpProxyWhitelist[__i]);
                }
            }
            await eventListener.AssertRegEx(nameof(MasqueradingIp), MasqueradingIp, @"^(?:(?: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]?)$");

            if (NameServerIpList != null)
            {
                for (int __i = 0; __i < NameServerIpList.Length; __i++)
                {
                    await eventListener.AssertRegEx($"NameServerIpList[{__i}]", NameServerIpList[__i], @"^(?:(?: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.AssertObjectIsValid(nameof(SmtpServer), SmtpServer);
        }
Esempio n. 3
0
        /// <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]);
                }
            }
        }
Esempio n. 4
0
        /// <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);
        }
Esempio n. 5
0
 /// <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]);
             }
           }
 }
Esempio n. 6
0
        /// <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(Address), Address);

            await eventListener.AssertObjectIsValid(nameof(Address), Address);

            await eventListener.AssertObjectIsValid(nameof(Credentials), Credentials);
        }
Esempio n. 7
0
        /// <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(AppRule), AppRule);

            await eventListener.AssertObjectIsValid(nameof(IsolationRule), IsolationRule);

            await eventListener.AssertObjectIsValid(nameof(QuarantineRule), QuarantineRule);
        }
        /// <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);
        }
Esempio n. 9
0
        /// <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(Type), Type);

            await eventListener.AssertNotNull(nameof(Ip), Ip);

            await eventListener.AssertRegEx(nameof(Ip), Ip, @"^(?:(?: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]?)$");
        }
Esempio n. 10
0
        /// <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(Kind), Kind);

            await eventListener.AssertNotNull(nameof(Uuid), Uuid);

            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}$");
        }
Esempio n. 11
0
        /// <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(AvailabilityZoneReference), AvailabilityZoneReference);

            await eventListener.AssertObjectIsValid(nameof(ClusterReference), ClusterReference);

            await eventListener.AssertObjectIsValid(nameof(Resources), Resources);
        }
Esempio n. 12
0
        /// <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);
        }
Esempio n. 13
0
        /// <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);
        }
Esempio n. 14
0
        /// <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);
        }
Esempio n. 15
0
        /// <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(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}$");
        }
Esempio n. 16
0
        /// <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(BuildType), BuildType);

            await eventListener.AssertNotNull(nameof(CommitId), CommitId);

            await eventListener.AssertNotNull(nameof(ShortCommitId), ShortCommitId);

            await eventListener.AssertNotNull(nameof(Version), Version);
        }
Esempio n. 17
0
        /// <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(ParentVmReference), ParentVmReference);

            await eventListener.AssertObjectIsValid(nameof(SourceAvailabilityZoneReference), SourceAvailabilityZoneReference);

            await eventListener.AssertObjectIsValid(nameof(SourceClusterReference), SourceClusterReference);

            await eventListener.AssertRegEx(nameof(VmRecoveryPointLocationAgnosticUuid), VmRecoveryPointLocationAgnosticUuid, @"^[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}$");
        }
Esempio n. 18
0
 /// <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 (NodeUuidList != null)
     {
         for (int __i = 0; __i < NodeUuidList.Length; __i++)
         {
             await eventListener.AssertRegEx($"NodeUuidList[{__i}]", NodeUuidList[__i], @"^[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.AssertNotNull(nameof(Metadata), Metadata);

            await eventListener.AssertObjectIsValid(nameof(Metadata), Metadata);

            await eventListener.AssertNotNull(nameof(Spec), Spec);

            await eventListener.AssertObjectIsValid(nameof(Spec), Spec);
        }
Esempio n. 20
0
 /// <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 (DomainNameServerList != null)
     {
         for (int __i = 0; __i < DomainNameServerList.Length; __i++)
         {
             await eventListener.AssertRegEx($"DomainNameServerList[{__i}]", DomainNameServerList[__i], @"^(?:(?: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]?)$");
         }
     }
 }
Esempio n. 21
0
        /// <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}$");
        }
Esempio n. 22
0
        /// <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);
        }
Esempio n. 23
0
 /// <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 (Entities != null)
     {
         for (int __i = 0; __i < Entities.Length; __i++)
         {
             await eventListener.AssertObjectIsValid($"Entities[{__i}]", Entities[__i]);
         }
     }
     await eventListener.AssertObjectIsValid(nameof(Metadata), Metadata);
 }
 /// <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.AssertObjectIsValid(nameof(ResourceLocation), ResourceLocation);
 }
Esempio n. 25
0
        /// <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(Resources), Resources);

            if (Resources != null)
            {
                for (int __i = 0; __i < Resources.Length; __i++)
                {
                    await eventListener.AssertObjectIsValid($"Resources[{__i}]", Resources[__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.AssertNotNull(nameof(SpecList), SpecList);

            if (SpecList != null)
            {
                for (int __i = 0; __i < SpecList.Length; __i++)
                {
                    await eventListener.AssertObjectIsValid($"SpecList[{__i}]", SpecList[__i]);
                }
            }
        }
Esempio n. 27
0
        /// <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 (CategoryList != null)
            {
                for (int __i = 0; __i < CategoryList.Length; __i++)
                {
                    await eventListener.AssertObjectIsValid($"CategoryList[{__i}]", CategoryList[__i]);
                }
            }
            await eventListener.AssertObjectIsValid(nameof(VmReference), VmReference);

            await eventListener.AssertObjectIsValid(nameof(VmSpec), VmSpec);
        }
Esempio n. 28
0
        /// <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.AssertIsLessThanOrEqual(nameof(PollTimeoutSeconds), PollTimeoutSeconds, 30);

            await eventListener.AssertNotNull(nameof(TaskUuidList), TaskUuidList);

            if (TaskUuidList != null)
            {
                for (int __i = 0; __i < TaskUuidList.Length; __i++)
                {
                    await eventListener.AssertRegEx($"TaskUuidList[{__i}]", TaskUuidList[__i], @"^[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}$");
                }
            }
        }
Esempio n. 29
0
        /// <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(DataSourceReference), DataSourceReference);

            await eventListener.AssertObjectIsValid(nameof(DeviceProperties), DeviceProperties);

            await eventListener.AssertIsGreaterThanOrEqual(nameof(DiskSizeBytes), DiskSizeBytes, 1);

            await eventListener.AssertIsGreaterThanOrEqual(nameof(DiskSizeMib), DiskSizeMib, 1);

            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}$");

            await eventListener.AssertObjectIsValid(nameof(VolumeGroupReference), VolumeGroupReference);
        }
Esempio n. 30
0
        /// <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(Analysis), Analysis);

            await eventListener.AssertNotNull(nameof(Config), Config);

            await eventListener.AssertObjectIsValid(nameof(Config), Config);

            await eventListener.AssertNotNull(nameof(Network), Network);

            await eventListener.AssertObjectIsValid(nameof(Network), Network);

            await eventListener.AssertObjectIsValid(nameof(Nodes), Nodes);
        }