///GENMHASH:0202A00A1DCF248D2647DBDBEF2CA865:4FC30E0F6EB4AA975F91CB9D7C798AFE
 protected override async Task <Microsoft.Azure.Management.Network.Fluent.IExpressRouteCircuitPeering> CreateChildResourceAsync(CancellationToken cancellationToken = default(CancellationToken))
 {
     SetInner(await client.CreateOrUpdateAsync(parent.ResourceGroupName, parent.Name, this.Name, Inner));
     stats = new ExpressRouteCircuitStatsImpl(Inner.Stats);
     if (parent != null)
     {
         await parent.RefreshAsync(cancellationToken);
     }
     return(this);
 }
Beispiel #2
0
 /// <summary>
 /// Creates or updates a peering in the specified express route circuits.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='circuitName'>
 /// The name of the express route circuit.
 /// </param>
 /// <param name='peeringName'>
 /// The name of the peering.
 /// </param>
 /// <param name='peeringParameters'>
 /// Parameters supplied to the create or update express route circuit peering
 /// operation.
 /// </param>
 public static ExpressRouteCircuitPeering CreateOrUpdate(this IExpressRouteCircuitPeeringsOperations operations, string resourceGroupName, string circuitName, string peeringName, ExpressRouteCircuitPeering peeringParameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, circuitName, peeringName, peeringParameters).GetAwaiter().GetResult());
 }