/// <summary>
 /// Returns the Access token for communication between BMS and Protection
 /// service
 /// </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='fabricName'>
 /// Fabric name associated with the container.
 /// </param>
 /// <param name='containerName'>
 /// Name of the container.
 /// </param>
 /// <param name='protectedItemName'>
 /// Name of the Protected Item.
 /// </param>
 /// <param name='recoveryPointId'>
 /// Recovery Point Id
 /// </param>
 public static CrrAccessTokenResource GetAccessToken(this IRecoveryPointsOperations operations, string vaultName, string resourceGroupName, string fabricName, string containerName, string protectedItemName, string recoveryPointId)
 {
     return(operations.GetAccessTokenAsync(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, recoveryPointId).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Lists the backup copies for the backed up item.
 /// </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 <RecoveryPointResource> ListNext(this IRecoveryPointsOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Lists the backup copies for the backed up item.
 /// </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='fabricName'>
 /// Fabric name associated with the backed up item.
 /// </param>
 /// <param name='containerName'>
 /// Container name associated with the backed up item.
 /// </param>
 /// <param name='protectedItemName'>
 /// Backed up item whose backup copies are to be fetched.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 public static IPage <RecoveryPointResource> List(this IRecoveryPointsOperations operations, string vaultName, string resourceGroupName, string fabricName, string containerName, string protectedItemName, ODataQuery <BMSRPQueryObject> odataQuery = default(ODataQuery <BMSRPQueryObject>))
 {
     return(operations.ListAsync(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, odataQuery).GetAwaiter().GetResult());
 }
Пример #4
0
 /// <summary>
 /// Returns a list of Recovery Points for a DataSource in a vault.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='vaultName'>
 /// The name of the backup vault.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group where the backup vault is present.
 /// </param>
 /// <param name='backupInstanceName'>
 /// The name of the backup instance
 /// </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 <AzureBackupRecoveryPointResource> > ListAsync(this IRecoveryPointsOperations operations, string vaultName, string resourceGroupName, string backupInstanceName, ODataQuery <RecoveryPointsFilters> odataQuery = default(ODataQuery <RecoveryPointsFilters>), string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(vaultName, resourceGroupName, backupInstanceName, odataQuery, skipToken, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #5
0
 /// <summary>
 /// Gets a Recovery Point using recoveryPointId for a Datasource.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='vaultName'>
 /// The name of the backup vault.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group where the backup vault is present.
 /// </param>
 /// <param name='backupInstanceName'>
 /// The name of the backup instance
 /// </param>
 /// <param name='recoveryPointId'>
 /// </param>
 public static AzureBackupRecoveryPointResource Get(this IRecoveryPointsOperations operations, string vaultName, string resourceGroupName, string backupInstanceName, string recoveryPointId)
 {
     return(operations.GetAsync(vaultName, resourceGroupName, backupInstanceName, recoveryPointId).GetAwaiter().GetResult());
 }
Пример #6
0
 /// <summary>
 /// Returns a list of Recovery Points for a DataSource in a vault.
 /// </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 <AzureBackupRecoveryPointResource> > ListNextAsync(this IRecoveryPointsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #7
0
 /// <summary>
 /// Returns a list of Recovery Points for a DataSource in a vault.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='vaultName'>
 /// The name of the backup vault.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group where the backup vault is present.
 /// </param>
 /// <param name='backupInstanceName'>
 /// The name of the backup instance
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='skipToken'>
 /// skipToken Filter.
 /// </param>
 public static IPage <AzureBackupRecoveryPointResource> List(this IRecoveryPointsOperations operations, string vaultName, string resourceGroupName, string backupInstanceName, ODataQuery <RecoveryPointsFilters> odataQuery = default(ODataQuery <RecoveryPointsFilters>), string skipToken = default(string))
 {
     return(operations.ListAsync(vaultName, resourceGroupName, backupInstanceName, odataQuery, skipToken).GetAwaiter().GetResult());
 }
Пример #8
0
 /// <summary>
 /// Gets a recovery point.
 /// </summary>
 /// <remarks>
 /// Get the details of specified recovery point.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='fabricName'>
 /// The fabric name.
 /// </param>
 /// <param name='protectionContainerName'>
 /// The protection container name.
 /// </param>
 /// <param name='replicatedProtectedItemName'>
 /// The replication protected item name.
 /// </param>
 /// <param name='recoveryPointName'>
 /// The recovery point name.
 /// </param>
 public static RecoveryPoint Get(this IRecoveryPointsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, string recoveryPointName)
 {
     return(operations.GetAsync(fabricName, protectionContainerName, replicatedProtectedItemName, recoveryPointName).GetAwaiter().GetResult());
 }
Пример #9
0
 /// <summary>
 /// Gets the list of recovery points for a replication protected item.
 /// </summary>
 /// <remarks>
 /// Lists the available recovery points for a replication protected item.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='fabricName'>
 /// The fabric name.
 /// </param>
 /// <param name='protectionContainerName'>
 /// The protection container name.
 /// </param>
 /// <param name='replicatedProtectedItemName'>
 /// The replication protected item name.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <RecoveryPoint> > ListByReplicationProtectedItemsAsync(this IRecoveryPointsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByReplicationProtectedItemsWithHttpMessagesAsync(fabricName, protectionContainerName, replicatedProtectedItemName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #10
0
 /// <summary>
 /// Gets the list of recovery points for a replication protected item.
 /// </summary>
 /// <remarks>
 /// Lists the available recovery points for a replication protected item.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='fabricName'>
 /// The fabric name.
 /// </param>
 /// <param name='protectionContainerName'>
 /// The protection container name.
 /// </param>
 /// <param name='replicatedProtectedItemName'>
 /// The replication protected item name.
 /// </param>
 public static IPage <RecoveryPoint> ListByReplicationProtectedItems(this IRecoveryPointsOperations operations, string fabricName, string protectionContainerName, string replicatedProtectedItemName)
 {
     return(operations.ListByReplicationProtectedItemsAsync(fabricName, protectionContainerName, replicatedProtectedItemName).GetAwaiter().GetResult());
 }
Пример #11
0
 /// <summary>
 /// Gets the list of recovery points for a replication protected item.
 /// </summary>
 /// <remarks>
 /// Lists the available recovery points for a replication protected item.
 /// </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 <RecoveryPoint> > ListByReplicationProtectedItemsNextAsync(this IRecoveryPointsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByReplicationProtectedItemsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #12
0
 /// <summary>
 /// Gets the list of recovery points for a replication protected item.
 /// </summary>
 /// <remarks>
 /// Lists the available recovery points for a replication protected item.
 /// </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 <RecoveryPoint> ListByReplicationProtectedItemsNext(this IRecoveryPointsOperations operations, string nextPageLink)
 {
     return(operations.ListByReplicationProtectedItemsNextAsync(nextPageLink).GetAwaiter().GetResult());
 }