/// <summary> /// Lists all of the Rules Engine Configurations within a Front Door. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the Resource group within the Azure subscription. /// </param> /// <param name='frontDoorName'> /// Name of the Front Door which is globally unique. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <RulesEngine> > ListByFrontDoorAsync(this IRulesEnginesOperations operations, string resourceGroupName, string frontDoorName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByFrontDoorWithHttpMessagesAsync(resourceGroupName, frontDoorName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists all of the Rules Engine Configurations within a Front Door. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <RulesEngine> > ListByFrontDoorNextAsync(this IRulesEnginesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByFrontDoorNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Creates a new Rules Engine Configuration with the specified name within the /// specified Front Door. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the Resource group within the Azure subscription. /// </param> /// <param name='frontDoorName'> /// Name of the Front Door which is globally unique. /// </param> /// <param name='rulesEngineName'> /// Name of the Rules Engine which is unique within the Front Door. /// </param> /// <param name='rulesEngineParameters'> /// Rules Engine Configuration properties needed to create a new Rules Engine /// Configuration. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <RulesEngine> BeginCreateOrUpdateAsync(this IRulesEnginesOperations operations, string resourceGroupName, string frontDoorName, string rulesEngineName, RulesEngine rulesEngineParameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, rulesEngineName, rulesEngineParameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a Rules Engine Configuration with the specified name within the /// specified Front Door. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the Resource group within the Azure subscription. /// </param> /// <param name='frontDoorName'> /// Name of the Front Door which is globally unique. /// </param> /// <param name='rulesEngineName'> /// Name of the Rules Engine which is unique within the Front Door. /// </param> public static RulesEngine Get(this IRulesEnginesOperations operations, string resourceGroupName, string frontDoorName, string rulesEngineName) { return(operations.GetAsync(resourceGroupName, frontDoorName, rulesEngineName).GetAwaiter().GetResult()); }
/// <summary> /// Lists all of the Rules Engine Configurations within a Front Door. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the Resource group within the Azure subscription. /// </param> /// <param name='frontDoorName'> /// Name of the Front Door which is globally unique. /// </param> public static IPage <RulesEngine> ListByFrontDoor(this IRulesEnginesOperations operations, string resourceGroupName, string frontDoorName) { return(operations.ListByFrontDoorAsync(resourceGroupName, frontDoorName).GetAwaiter().GetResult()); }
/// <summary> /// Lists all of the Rules Engine Configurations within a Front Door. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage <RulesEngine> ListByFrontDoorNext(this IRulesEnginesOperations operations, string nextPageLink) { return(operations.ListByFrontDoorNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Deletes an existing Rules Engine Configuration with the specified /// parameters. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the Resource group within the Azure subscription. /// </param> /// <param name='frontDoorName'> /// Name of the Front Door which is globally unique. /// </param> /// <param name='rulesEngineName'> /// Name of the Rules Engine which is unique within the Front Door. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginDeleteAsync(this IRulesEnginesOperations operations, string resourceGroupName, string frontDoorName, string rulesEngineName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, rulesEngineName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Deletes an existing Rules Engine Configuration with the specified /// parameters. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the Resource group within the Azure subscription. /// </param> /// <param name='frontDoorName'> /// Name of the Front Door which is globally unique. /// </param> /// <param name='rulesEngineName'> /// Name of the Rules Engine which is unique within the Front Door. /// </param> public static void BeginDelete(this IRulesEnginesOperations operations, string resourceGroupName, string frontDoorName, string rulesEngineName) { operations.BeginDeleteAsync(resourceGroupName, frontDoorName, rulesEngineName).GetAwaiter().GetResult(); }
/// <summary> /// Creates a new Rules Engine Configuration with the specified name within the /// specified Front Door. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the Resource group within the Azure subscription. /// </param> /// <param name='frontDoorName'> /// Name of the Front Door which is globally unique. /// </param> /// <param name='rulesEngineName'> /// Name of the Rules Engine which is unique within the Front Door. /// </param> /// <param name='rulesEngineParameters'> /// Rules Engine Configuration properties needed to create a new Rules Engine /// Configuration. /// </param> public static RulesEngine BeginCreateOrUpdate(this IRulesEnginesOperations operations, string resourceGroupName, string frontDoorName, string rulesEngineName, RulesEngine rulesEngineParameters) { return(operations.BeginCreateOrUpdateAsync(resourceGroupName, frontDoorName, rulesEngineName, rulesEngineParameters).GetAwaiter().GetResult()); }