/// <summary>Validates that this object meets the validation criteria.</summary>
        /// <param name="eventListener">an <see cref="Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.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.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.IEventListener eventListener)
        {
            await eventListener.AssertNotNull(nameof(_resource), _resource);

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

            await eventListener.AssertObjectIsValid(nameof(Properties), Properties);
        }
Exemple #2
0
        /// <summary>Validates that this object meets the validation criteria.</summary>
        /// <param name="eventListener">an <see cref="Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.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.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.IEventListener eventListener)
        {
            await eventListener.AssertNotNull(nameof(Name), Name);

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

            await eventListener.AssertEnum(nameof(Type), Type, @"Microsoft.AppConfiguration/configurationStores");
        }
 /// <summary>Validates that this object meets the validation criteria.</summary>
 /// <param name="eventListener">an <see cref="Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.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.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.IEventListener eventListener)
 {
     if (Value != null)
     {
         for (int __i = 0; __i < Value.Length; __i++)
         {
             await eventListener.AssertObjectIsValid($"Value[{__i}]", Value[__i]);
         }
     }
 }
Exemple #4
0
 /// <summary>Validates that this object meets the validation criteria.</summary>
 /// <param name="eventListener">an <see cref="Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.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.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.IEventListener eventListener)
 {
     await eventListener.AssertNotNull(nameof(Location), Location);
 }
Exemple #5
0
 /// <summary>Validates that this object meets the validation criteria.</summary>
 /// <param name="eventListener">an <see cref="Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.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.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.IEventListener eventListener)
 {
     await eventListener.AssertEnum(nameof(ProvisioningState), ProvisioningState, @"Creating", @"Updating", @"Deleting", @"Succeeded", @"Failed", @"Canceled");
 }
 /// <summary>Validates that this object meets the validation criteria.</summary>
 /// <param name="eventListener">an <see cref="Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.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.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.IEventListener eventListener)
 {
     await eventListener.AssertObjectIsValid(nameof(Display), Display);
 }