示例#1
0
 /// <summary>
 /// Backup management servers registered to Recovery Services Vault. Returns a
 /// pageable list of servers.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='vaultName'>
 /// The name of the recovery services vault.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group where the recovery services vault is
 /// present.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='skipToken'>
 /// skipToken Filter.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <BackupEngineBaseResource> > ListAsync(this IBackupEnginesOperations operations, string vaultName, string resourceGroupName, ODataQuery <BMSBackupEnginesQueryObject> odataQuery = default(ODataQuery <BMSBackupEnginesQueryObject>), string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(vaultName, resourceGroupName, odataQuery, skipToken, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#2
0
 /// <summary>
 /// Backup management servers registered to Recovery Services Vault. Returns a
 /// pageable list of servers.
 /// </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 <BackupEngineBaseResource> > ListNextAsync(this IBackupEnginesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#3
0
 /// <summary>
 /// Backup management servers registered to Recovery Services Vault. Returns a
 /// pageable list of servers.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='vaultName'>
 /// The name of the recovery services vault.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group where the recovery services vault is
 /// present.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='skipToken'>
 /// skipToken Filter.
 /// </param>
 public static IPage <BackupEngineBaseResource> List(this IBackupEnginesOperations operations, string vaultName, string resourceGroupName, ODataQuery <BMSBackupEnginesQueryObject> odataQuery = default(ODataQuery <BMSBackupEnginesQueryObject>), string skipToken = default(string))
 {
     return(operations.ListAsync(vaultName, resourceGroupName, odataQuery, skipToken).GetAwaiter().GetResult());
 }
示例#4
0
 /// <summary>
 /// Backup management servers registered to Recovery Services Vault. Returns a
 /// pageable list of servers.
 /// </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 <BackupEngineBaseResource> ListNext(this IBackupEnginesOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }