/// <summary>
 /// Gets all routes in a route table.
 /// </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 <RouteInner> > ListNextAsync(this IRoutesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Creates or updates a route in the specified route table.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='routeTableName'>
 /// The name of the route table.
 /// </param>
 /// <param name='routeName'>
 /// The name of the route.
 /// </param>
 /// <param name='routeParameters'>
 /// Parameters supplied to the create or update route operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <RouteInner> CreateOrUpdateAsync(this IRoutesOperations operations, string resourceGroupName, string routeTableName, string routeName, RouteInner routeParameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, routeTableName, routeName, routeParameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#3
0
 /// <summary>
 /// Updates an existing route with the specified route name under the specified
 /// subscription, resource group, profile, and AzureFrontDoor endpoint.
 /// </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='profileName'>
 /// Name of the CDN profile which is unique within the resource group.
 /// </param>
 /// <param name='endpointName'>
 /// Name of the endpoint under the profile which is unique globally.
 /// </param>
 /// <param name='routeName'>
 /// Name of the routing rule.
 /// </param>
 /// <param name='routeUpdateProperties'>
 /// Route update properties
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Route> BeginUpdateAsync(this IRoutesOperations operations, string resourceGroupName, string profileName, string endpointName, string routeName, RouteUpdateParameters routeUpdateProperties, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, profileName, endpointName, routeName, routeUpdateProperties, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets all routes in a route table.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='routeTableName'>
 /// The name of the route table.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <RouteInner> > ListAsync(this IRoutesOperations operations, string resourceGroupName, string routeTableName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, routeTableName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#5
0
 /// <summary>
 /// Gets all routes in a route table.
 /// </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 <Route> ListNext(this IRoutesOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
示例#6
0
 /// <summary>
 /// The delete route operation deletes the specified route from a route table.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='routeTableName'>
 /// The name of the route table.
 /// </param>
 /// <param name='routeName'>
 /// The name of the route.
 /// </param>
 public static void BeginDelete(this IRoutesOperations operations, string resourceGroupName, string routeTableName, string routeName)
 {
     Task.Factory.StartNew(s => ((IRoutesOperations)s).BeginDeleteAsync(resourceGroupName, routeTableName, routeName), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
示例#7
0
 /// <summary>
 /// The List network security rule operation retrieves all the routes in a
 /// route table.
 /// </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 <Route> ListNext(this IRoutesOperations operations, string nextPageLink)
 {
     return(Task.Factory.StartNew(s => ((IRoutesOperations)s).ListNextAsync(nextPageLink), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
示例#8
0
 /// <summary>
 /// The List network security rule operation retrieves all the routes in a
 /// route table.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='routeTableName'>
 /// The name of the route table.
 /// </param>
 public static IPage <Route> List(this IRoutesOperations operations, string resourceGroupName, string routeTableName)
 {
     return(Task.Factory.StartNew(s => ((IRoutesOperations)s).ListAsync(resourceGroupName, routeTableName), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
示例#9
0
 /// <summary>
 /// The Put route operation creates/updates a route in the specified route
 /// table
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='routeTableName'>
 /// The name of the route table.
 /// </param>
 /// <param name='routeName'>
 /// The name of the route.
 /// </param>
 /// <param name='routeParameters'>
 /// Parameters supplied to the create/update route operation
 /// </param>
 public static Route BeginCreateOrUpdate(this IRoutesOperations operations, string resourceGroupName, string routeTableName, string routeName, Route routeParameters)
 {
     return(Task.Factory.StartNew(s => ((IRoutesOperations)s).BeginCreateOrUpdateAsync(resourceGroupName, routeTableName, routeName, routeParameters), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
示例#10
0
 /// <summary>
 /// Gets the specified route from a route table.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='routeTableName'>
 /// The name of the route table.
 /// </param>
 /// <param name='routeName'>
 /// The name of the route.
 /// </param>
 public static Route Get(this IRoutesOperations operations, string resourceGroupName, string routeTableName, string routeName)
 {
     return(operations.GetAsync(resourceGroupName, routeTableName, routeName).GetAwaiter().GetResult());
 }
示例#11
0
 /// <summary>
 /// Updates an existing route with the specified route name under the specified
 /// subscription, resource group, profile, and AzureFrontDoor endpoint.
 /// </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='profileName'>
 /// Name of the CDN profile which is unique within the resource group.
 /// </param>
 /// <param name='endpointName'>
 /// Name of the endpoint under the profile which is unique globally.
 /// </param>
 /// <param name='routeName'>
 /// Name of the routing rule.
 /// </param>
 /// <param name='routeUpdateProperties'>
 /// Route update properties
 /// </param>
 public static Route BeginUpdate(this IRoutesOperations operations, string resourceGroupName, string profileName, string endpointName, string routeName, RouteUpdateParameters routeUpdateProperties)
 {
     return(operations.BeginUpdateAsync(resourceGroupName, profileName, endpointName, routeName, routeUpdateProperties).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Deletes the specified route from a route table.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='routeTableName'>
 /// The name of the route table.
 /// </param>
 /// <param name='routeName'>
 /// The name of the route.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this IRoutesOperations operations, string resourceGroupName, string routeTableName, string routeName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, routeTableName, routeName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
示例#13
0
 /// <summary>
 /// Creates or updates a route in the specified route table.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='routeTableName'>
 /// The name of the route table.
 /// </param>
 /// <param name='routeName'>
 /// The name of the route.
 /// </param>
 /// <param name='routeParameters'>
 /// Parameters supplied to the create or update route operation.
 /// </param>
 public static Route BeginCreateOrUpdate(this IRoutesOperations operations, string resourceGroupName, string routeTableName, string routeName, Route routeParameters)
 {
     return(operations.BeginCreateOrUpdateAsync(resourceGroupName, routeTableName, routeName, routeParameters).GetAwaiter().GetResult());
 }
        /// <summary>
        /// The List network security rule opertion retrieves all the routes in a
        /// route table.
        /// </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 <Route> > ListNextAsync(this IRoutesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
        {
            AzureOperationResponse <IPage <Route> > result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false);

            return(result.Body);
        }
        /// <summary>
        /// The Put route operation creates/updates a route in the specified route
        /// table
        /// </summary>
        /// <param name='operations'>
        /// The operations group for this extension method.
        /// </param>
        /// <param name='resourceGroupName'>
        /// The name of the resource group.
        /// </param>
        /// <param name='routeTableName'>
        /// The name of the route table.
        /// </param>
        /// <param name='routeName'>
        /// The name of the route.
        /// </param>
        /// <param name='routeParameters'>
        /// Parameters supplied to the create/update routeoperation
        /// </param>
        /// <param name='cancellationToken'>
        /// The cancellation token.
        /// </param>
        public static async Task <Route> BeginCreateOrUpdateAsync(this IRoutesOperations operations, string resourceGroupName, string routeTableName, string routeName, Route routeParameters, CancellationToken cancellationToken = default(CancellationToken))
        {
            AzureOperationResponse <Route> result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, routeTableName, routeName, routeParameters, null, cancellationToken).ConfigureAwait(false);

            return(result.Body);
        }
示例#16
0
 /// <summary>
 /// Gets all routes in a route table.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='routeTableName'>
 /// The name of the route table.
 /// </param>
 public static IPage<Route> List(this IRoutesOperations operations, string resourceGroupName, string routeTableName)
 {
     return operations.ListAsync(resourceGroupName, routeTableName).GetAwaiter().GetResult();
 }
示例#17
0
 /// <summary>
 /// Deletes an existing route with the specified route name under the specified
 /// subscription, resource group, profile, and AzureFrontDoor endpoint.
 /// </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='profileName'>
 /// Name of the CDN profile which is unique within the resource group.
 /// </param>
 /// <param name='endpointName'>
 /// Name of the endpoint under the profile which is unique globally.
 /// </param>
 /// <param name='routeName'>
 /// Name of the routing rule.
 /// </param>
 public static void BeginDelete(this IRoutesOperations operations, string resourceGroupName, string profileName, string endpointName, string routeName)
 {
     operations.BeginDeleteAsync(resourceGroupName, profileName, endpointName, routeName).GetAwaiter().GetResult();
 }
示例#18
0
 /// <summary>
 /// Lists all of the existing origins within a profile.
 /// </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='profileName'>
 /// Name of the CDN profile which is unique within the resource group.
 /// </param>
 /// <param name='endpointName'>
 /// Name of the endpoint under the profile which is unique globally.
 /// </param>
 public static IPage <Route> ListByEndpoint(this IRoutesOperations operations, string resourceGroupName, string profileName, string endpointName)
 {
     return(operations.ListByEndpointAsync(resourceGroupName, profileName, endpointName).GetAwaiter().GetResult());
 }
示例#19
0
 /// <summary>
 /// Deletes the specified route from a route table.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='routeTableName'>
 /// The name of the route table.
 /// </param>
 /// <param name='routeName'>
 /// The name of the route.
 /// </param>
 public static void Delete(this IRoutesOperations operations, string resourceGroupName, string routeTableName, string routeName)
 {
     operations.DeleteAsync(resourceGroupName, routeTableName, routeName).GetAwaiter().GetResult();
 }
示例#20
0
 /// <summary>
 /// Creates a new route with the specified route name under the specified
 /// subscription, resource group, profile, and AzureFrontDoor endpoint.
 /// </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='profileName'>
 /// Name of the CDN profile which is unique within the resource group.
 /// </param>
 /// <param name='endpointName'>
 /// Name of the endpoint under the profile which is unique globally.
 /// </param>
 /// <param name='routeName'>
 /// Name of the routing rule.
 /// </param>
 /// <param name='route'>
 /// Route properties
 /// </param>
 public static Route BeginCreate(this IRoutesOperations operations, string resourceGroupName, string profileName, string endpointName, string routeName, Route route)
 {
     return(operations.BeginCreateAsync(resourceGroupName, profileName, endpointName, routeName, route).GetAwaiter().GetResult());
 }