Exemplo n.º 1
0
 /// <summary>
 /// Gets an existing registered prefix with the specified name under the given
 /// subscription, resource group and peering.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='peeringName'>
 /// The name of the peering.
 /// </param>
 /// <param name='registeredPrefixName'>
 /// The name of the registered prefix.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <PeeringRegisteredPrefix> GetAsync(this IRegisteredPrefixesOperations operations, string resourceGroupName, string peeringName, string registeredPrefixName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, peeringName, registeredPrefixName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new registered prefix with the specified name under the given
 /// subscription, resource group and peering.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='peeringName'>
 /// The name of the peering.
 /// </param>
 /// <param name='registeredPrefixName'>
 /// The name of the registered prefix.
 /// </param>
 /// <param name='prefix'>
 /// The customer's prefix from which traffic originates.
 /// </param>
 public static PeeringRegisteredPrefix CreateOrUpdate(this IRegisteredPrefixesOperations operations, string resourceGroupName, string peeringName, string registeredPrefixName, string prefix = default(string))
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, peeringName, registeredPrefixName, prefix).GetAwaiter().GetResult());
 }
Exemplo n.º 3
0
 /// <summary>
 /// Gets an existing registered prefix with the specified name under the given
 /// subscription, resource group and peering.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='peeringName'>
 /// The name of the peering.
 /// </param>
 /// <param name='registeredPrefixName'>
 /// The name of the registered prefix.
 /// </param>
 public static PeeringRegisteredPrefix Get(this IRegisteredPrefixesOperations operations, string resourceGroupName, string peeringName, string registeredPrefixName)
 {
     return(operations.GetAsync(resourceGroupName, peeringName, registeredPrefixName).GetAwaiter().GetResult());
 }
Exemplo n.º 4
0
 /// <summary>
 /// Lists all registered prefixes under the given subscription, resource group
 /// and peering.
 /// </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 <PeeringRegisteredPrefix> > ListByPeeringNextAsync(this IRegisteredPrefixesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByPeeringNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 5
0
 /// <summary>
 /// Lists all registered prefixes under the given subscription, resource group
 /// and peering.
 /// </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 <PeeringRegisteredPrefix> ListByPeeringNext(this IRegisteredPrefixesOperations operations, string nextPageLink)
 {
     return(operations.ListByPeeringNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Exemplo n.º 6
0
 /// <summary>
 /// Lists all registered prefixes under the given subscription, resource group
 /// and peering.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='peeringName'>
 /// The name of the peering.
 /// </param>
 public static IPage <PeeringRegisteredPrefix> ListByPeering(this IRegisteredPrefixesOperations operations, string resourceGroupName, string peeringName)
 {
     return(operations.ListByPeeringAsync(resourceGroupName, peeringName).GetAwaiter().GetResult());
 }
Exemplo n.º 7
0
 /// <summary>
 /// Deletes an existing registered prefix with the specified name under the
 /// given subscription, resource group and peering.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='peeringName'>
 /// The name of the peering.
 /// </param>
 /// <param name='registeredPrefixName'>
 /// The name of the registered prefix.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this IRegisteredPrefixesOperations operations, string resourceGroupName, string peeringName, string registeredPrefixName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, peeringName, registeredPrefixName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Exemplo n.º 8
0
 /// <summary>
 /// Deletes an existing registered prefix with the specified name under the
 /// given subscription, resource group and peering.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='peeringName'>
 /// The name of the peering.
 /// </param>
 /// <param name='registeredPrefixName'>
 /// The name of the registered prefix.
 /// </param>
 public static void Delete(this IRegisteredPrefixesOperations operations, string resourceGroupName, string peeringName, string registeredPrefixName)
 {
     operations.DeleteAsync(resourceGroupName, peeringName, registeredPrefixName).GetAwaiter().GetResult();
 }