/// <summary> /// Gets a long term retention backup. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='locationName'> /// The location of the database. /// </param> /// <param name='longTermRetentionServerName'> /// The name of the server /// </param> /// <param name='longTermRetentionDatabaseName'> /// The name of the database /// </param> /// <param name='backupName'> /// The backup name. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <LongTermRetentionBackup> GetAsync(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, string backupName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(locationName, longTermRetentionServerName, longTermRetentionDatabaseName, backupName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }