/// <summary> /// Get SQL pool replication links /// </summary> /// <remarks> /// Lists a Sql pool's replication links. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='workspaceName'> /// The name of the workspace. /// </param> /// <param name='sqlPoolName'> /// SQL pool name /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <ReplicationLink> > ListAsync(this ISqlPoolReplicationLinksOperations operations, string resourceGroupName, string workspaceName, string sqlPoolName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, workspaceName, sqlPoolName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get SQL pool replication links /// </summary> /// <remarks> /// Lists a Sql pool's replication links. /// </remarks> /// <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 <ReplicationLink> > ListNextAsync(this ISqlPoolReplicationLinksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get SQL pool replication link by name /// </summary> /// <remarks> /// Get SQL pool replication link by name. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='workspaceName'> /// The name of the workspace. /// </param> /// <param name='sqlPoolName'> /// SQL pool name /// </param> /// <param name='linkId'> /// The ID of the replication link. /// </param> public static ReplicationLink GetByName(this ISqlPoolReplicationLinksOperations operations, string resourceGroupName, string workspaceName, string sqlPoolName, string linkId) { return(operations.GetByNameAsync(resourceGroupName, workspaceName, sqlPoolName, linkId).GetAwaiter().GetResult()); }
/// <summary> /// Get SQL pool replication links /// </summary> /// <remarks> /// Lists a Sql pool's replication links. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='workspaceName'> /// The name of the workspace. /// </param> /// <param name='sqlPoolName'> /// SQL pool name /// </param> public static IPage <ReplicationLink> List(this ISqlPoolReplicationLinksOperations operations, string resourceGroupName, string workspaceName, string sqlPoolName) { return(operations.ListAsync(resourceGroupName, workspaceName, sqlPoolName).GetAwaiter().GetResult()); }
/// <summary> /// Get SQL pool replication links /// </summary> /// <remarks> /// Lists a Sql pool's replication links. /// </remarks> /// <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 <ReplicationLink> ListNext(this ISqlPoolReplicationLinksOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }