コード例 #1
0
 /// <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());
 }
コード例 #3
0
 /// <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());
 }
コード例 #4
0
 /// <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());
 }
コード例 #6
0
 /// <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();
 }
コード例 #7
0
 /// <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());
 }
コード例 #8
0
 /// <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());
 }
コード例 #9
0
 /// <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());
 }
コード例 #10
0
 /// <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());
 }
コード例 #11
0
 /// <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);
     }
 }
コード例 #12
0
 /// <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());
 }
コード例 #13
0
 /// <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());
 }
コード例 #14
0
 /// <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());
 }
コード例 #15
0
 /// <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());
 }
コード例 #16
0
 /// <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);
     }
 }
コード例 #17
0
 /// <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());
 }
コード例 #18
0
 /// <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());
 }
コード例 #19
0
 /// <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();
 }
コード例 #20
0
 /// <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());
 }
コード例 #21
0
 /// <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);
     }
 }
コード例 #22
0
 /// <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);
     }
 }
コード例 #23
0
 /// <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());
 }
コード例 #24
0
 /// <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);
        }
コード例 #26
0
 /// <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());
 }