/// <summary> /// Lists all application gateways in a resource group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> public static IPage <ApplicationGateway> List(this IApplicationGatewaysOperations operations, string resourceGroupName) { return(operations.ListAsync(resourceGroupName).GetAwaiter().GetResult()); }
/// <summary> /// The List ApplicationGateway opertion retrieves all the applicationgateways /// in a resource group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> public static IPage <ApplicationGateway> List(this IApplicationGatewaysOperations operations, string resourceGroupName) { return(Task.Factory.StartNew(s => ((IApplicationGatewaysOperations)s).ListAsync(resourceGroupName), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Updates the specified application gateway tags. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='applicationGatewayName'> /// The name of the application gateway. /// </param> /// <param name='parameters'> /// Parameters supplied to update application gateway tags. /// </param> public static ApplicationGateway UpdateTags(this IApplicationGatewaysOperations operations, string resourceGroupName, string applicationGatewayName, TagsObject parameters) { return(operations.UpdateTagsAsync(resourceGroupName, applicationGatewayName, parameters).GetAwaiter().GetResult()); }
/// <summary> /// Gets all the application gateways in a subscription. /// </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 <ApplicationGateway> ListAllNext(this IApplicationGatewaysOperations operations, string nextPageLink) { return(operations.ListAllNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// The Put ApplicationGateway operation creates/updates a ApplicationGateway /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='applicationGatewayName'> /// The name of the ApplicationGateway. /// </param> /// <param name='parameters'> /// Parameters supplied to the create/delete ApplicationGateway operation /// </param> public static ApplicationGateway BeginCreateOrUpdate(this IApplicationGatewaysOperations operations, string resourceGroupName, string applicationGatewayName, ApplicationGateway parameters) { return(Task.Factory.StartNew(s => ((IApplicationGatewaysOperations)s).BeginCreateOrUpdateAsync(resourceGroupName, applicationGatewayName, parameters), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Stops the specified application gateway in a resource group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='applicationGatewayName'> /// The name of the application gateway. /// </param> public static void BeginStop(this IApplicationGatewaysOperations operations, string resourceGroupName, string applicationGatewayName) { operations.BeginStopAsync(resourceGroupName, applicationGatewayName).GetAwaiter().GetResult(); }
/// <summary> /// Gets the backend health of the specified application gateway in a resource /// group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='applicationGatewayName'> /// The name of the application gateway. /// </param> /// <param name='expand'> /// Expands BackendAddressPool and BackendHttpSettings referenced in backend /// health. /// </param> public static ApplicationGatewayBackendHealth BeginBackendHealth(this IApplicationGatewaysOperations operations, string resourceGroupName, string applicationGatewayName, string expand = default(string)) { return(operations.BeginBackendHealthAsync(resourceGroupName, applicationGatewayName, expand).GetAwaiter().GetResult()); }
/// <summary> /// Lists all SSL predefined policies for configuring Ssl policy. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static IPage <ApplicationGatewaySslPredefinedPolicy> ListAvailableSslPredefinedPolicies(this IApplicationGatewaysOperations operations) { return(operations.ListAvailableSslPredefinedPoliciesAsync().GetAwaiter().GetResult()); }
/// <summary> /// Gets Ssl predefined policy with the specified policy name. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='predefinedPolicyName'> /// Name of Ssl predefined policy. /// </param> public static ApplicationGatewaySslPredefinedPolicy GetSslPredefinedPolicy(this IApplicationGatewaysOperations operations, string predefinedPolicyName) { return(operations.GetSslPredefinedPolicyAsync(predefinedPolicyName).GetAwaiter().GetResult()); }
/// <summary> /// Lists available Ssl options for configuring Ssl policy. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static ApplicationGatewayAvailableSslOptions ListAvailableSslOptions(this IApplicationGatewaysOperations operations) { return(operations.ListAvailableSslOptionsAsync().GetAwaiter().GetResult()); }
/// <summary> /// Lists available Ssl options for configuring Ssl policy. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ApplicationGatewayAvailableSslOptions> ListAvailableSslOptionsAsync(this IApplicationGatewaysOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListAvailableSslOptionsWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists all available web application firewall rule sets. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static ApplicationGatewayAvailableWafRuleSetsResult ListAvailableWafRuleSets(this IApplicationGatewaysOperations operations) { return(operations.ListAvailableWafRuleSetsAsync().GetAwaiter().GetResult()); }
/// <summary> /// Lists all available response headers. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static IList <string> ListAvailableResponseHeaders(this IApplicationGatewaysOperations operations) { return(operations.ListAvailableResponseHeadersAsync().GetAwaiter().GetResult()); }
/// <summary> /// Lists all available server variables. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static IList <string> ListAvailableServerVariables(this IApplicationGatewaysOperations operations) { return(operations.ListAvailableServerVariablesAsync().GetAwaiter().GetResult()); }
/// <summary> /// Gets all the application gateways in a subscription. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static IPage <ApplicationGateway> ListAll(this IApplicationGatewaysOperations operations) { return(operations.ListAllAsync().GetAwaiter().GetResult()); }
/// <summary> /// Gets Ssl predefined policy with the specified policy name. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='predefinedPolicyName'> /// Name of Ssl predefined policy. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ApplicationGatewaySslPredefinedPolicy> GetSslPredefinedPolicyAsync(this IApplicationGatewaysOperations operations, string predefinedPolicyName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetSslPredefinedPolicyWithHttpMessagesAsync(predefinedPolicyName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Creates or updates the specified application gateway. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='applicationGatewayName'> /// The name of the application gateway. /// </param> /// <param name='parameters'> /// Parameters supplied to the create or update application gateway operation. /// </param> public static ApplicationGateway BeginCreateOrUpdate(this IApplicationGatewaysOperations operations, string resourceGroupName, string applicationGatewayName, ApplicationGateway parameters) { return(operations.BeginCreateOrUpdateAsync(resourceGroupName, applicationGatewayName, parameters).GetAwaiter().GetResult()); }
/// <summary> /// Gets the backend health for given combination of backend pool and http /// setting of the specified application gateway in a resource group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='applicationGatewayName'> /// The name of the application gateway. /// </param> /// <param name='probeRequest'> /// Request body for on-demand test probe operation. /// </param> /// <param name='expand'> /// Expands BackendAddressPool and BackendHttpSettings referenced in backend /// health. /// </param> public static ApplicationGatewayBackendHealthOnDemand BeginBackendHealthOnDemand(this IApplicationGatewaysOperations operations, string resourceGroupName, string applicationGatewayName, ApplicationGatewayOnDemandProbe probeRequest, string expand = default(string)) { return(operations.BeginBackendHealthOnDemandAsync(resourceGroupName, applicationGatewayName, probeRequest, expand).GetAwaiter().GetResult()); }
/// <summary> /// Deletes the specified application gateway. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='applicationGatewayName'> /// The name of the application gateway. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAsync(this IApplicationGatewaysOperations operations, string resourceGroupName, string applicationGatewayName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, applicationGatewayName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Lists all SSL predefined policies for configuring Ssl policy. /// </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 <ApplicationGatewaySslPredefinedPolicy> ListAvailableSslPredefinedPoliciesNext(this IApplicationGatewaysOperations operations, string nextPageLink) { return(operations.ListAvailableSslPredefinedPoliciesNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Gets the backend health of the specified application gateway in a resource /// group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='applicationGatewayName'> /// The name of the application gateway. /// </param> /// <param name='expand'> /// Expands BackendAddressPool and BackendHttpSettings referenced in backend /// health. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ApplicationGatewayBackendHealth> BeginBackendHealthAsync(this IApplicationGatewaysOperations operations, string resourceGroupName, string applicationGatewayName, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginBackendHealthWithHttpMessagesAsync(resourceGroupName, applicationGatewayName, expand, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists all SSL predefined policies for configuring Ssl policy. /// </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 <ApplicationGatewaySslPredefinedPolicy> > ListAvailableSslPredefinedPoliciesNextAsync(this IApplicationGatewaysOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListAvailableSslPredefinedPoliciesNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets the specified application gateway. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='applicationGatewayName'> /// The name of the application gateway. /// </param> public static ApplicationGateway Get(this IApplicationGatewaysOperations operations, string resourceGroupName, string applicationGatewayName) { return(operations.GetAsync(resourceGroupName, applicationGatewayName).GetAwaiter().GetResult()); }
/// <summary> /// The STOP ApplicationGateway operation stops application gateway in the /// specified resource group through Network resource provider. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='applicationGatewayName'> /// The name of the application gateway. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginStopAsync(this IApplicationGatewaysOperations operations, string resourceGroupName, string applicationGatewayName, CancellationToken cancellationToken = default(CancellationToken)) { await operations.BeginStopWithHttpMessagesAsync(resourceGroupName, applicationGatewayName, null, cancellationToken).ConfigureAwait(false); }
/// <summary> /// The Put ApplicationGateway operation creates/updates a ApplicationGateway /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='applicationGatewayName'> /// The name of the ApplicationGateway. /// </param> /// <param name='parameters'> /// Parameters supplied to the create/delete ApplicationGateway operation /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ApplicationGateway> BeginCreateOrUpdateAsync(this IApplicationGatewaysOperations operations, string resourceGroupName, string applicationGatewayName, ApplicationGateway parameters, CancellationToken cancellationToken = default(CancellationToken)) { AzureOperationResponse <ApplicationGateway> result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, applicationGatewayName, parameters, null, cancellationToken).ConfigureAwait(false); return(result.Body); }
/// <summary> /// The delete ApplicationGateway operation deletes the specified application /// gateway. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='applicationGatewayName'> /// The name of the application gateway. /// </param> public static void BeginDelete(this IApplicationGatewaysOperations operations, string resourceGroupName, string applicationGatewayName) { Task.Factory.StartNew(s => ((IApplicationGatewaysOperations)s).BeginDeleteAsync(resourceGroupName, applicationGatewayName), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }
/// <summary> /// The List ApplicationGateway opertion retrieves all the applicationgateways /// in a resource group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <ApplicationGateway> > ListAsync(this IApplicationGatewaysOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) { AzureOperationResponse <IPage <ApplicationGateway> > result = await operations.ListWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false); return(result.Body); }
/// <summary> /// Lists all available request headers. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static ApplicationGatewayAvailableRequestHeadersResult ListAvailableRequestHeaders(this IApplicationGatewaysOperations operations) { return(operations.ListAvailableRequestHeadersAsync().GetAwaiter().GetResult()); }