///GENMHASH:B134FF8AC19473319058888CEDF3D349:F951DE929F3C4EE069E6A4EB30B4CE04
 private EventHubDisasterRecoveryPairingImpl WrapModel(ArmDisasterRecoveryInner innerModel)
 {
     return(new EventHubDisasterRecoveryPairingImpl(innerModel.Name, innerModel, this.manager));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates or updates a new Alias(Disaster Recovery configuration)
 /// </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='namespaceName'>
 /// The Namespace name
 /// </param>
 /// <param name='alias'>
 /// The Disaster Recovery configuration name
 /// </param>
 /// <param name='parameters'>
 /// Parameters required to create an Alias(Disaster Recovery configuration)
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ArmDisasterRecoveryInner> CreateOrUpdateAsync(this IDisasterRecoveryConfigsOperations operations, string resourceGroupName, string namespaceName, string alias, ArmDisasterRecoveryInner parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, namespaceName, alias, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }