/// <summary> /// It will validate if given feature with resource properties is supported in /// service /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='azureRegion'> /// Azure region to hit Api /// </param> /// <param name='parameters'> /// Feature support request object /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <AzureVMResourceFeatureSupportResponse> ValidateAsync(this IFeatureSupportOperations operations, string azureRegion, FeatureSupportRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ValidateWithHttpMessagesAsync(azureRegion, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// It will validate if given feature with resource properties is supported in /// service /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='azureRegion'> /// Azure region to hit Api /// </param> /// <param name='parameters'> /// Feature support request object /// </param> public static AzureVMResourceFeatureSupportResponse Validate(this IFeatureSupportOperations operations, string azureRegion, FeatureSupportRequest parameters) { return(operations.ValidateAsync(azureRegion, parameters).GetAwaiter().GetResult()); }