//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Microsoft.SqlTools.Hosting.Protocol.Contracts;
using Microsoft.SqlTools.ServiceLayer.TaskServices;
using Microsoft.SqlTools.ServiceLayer.Utility;
namespace Microsoft.SqlTools.ServiceLayer.DisasterRecovery.Contracts
{
///
/// Backup parameters passed for execution and scripting
///
public class BackupParams : IScriptableRequestParams
{
///
/// Connection uri
///
public string OwnerUri { get; set; }
///
/// Backup metrics selected from the UI
///
public BackupInfo BackupInfo { get; set; }
///
///
///
public TaskExecutionMode TaskExecutionMode { get; set; }
}
///
/// Response class for backup execution
///
public class BackupResponse
{
public bool Result { get; set; }
public int TaskId { get; set; }
}
///
/// Request class for backup execution
///
public class BackupRequest
{
public static readonly
RequestType Type =
RequestType.Create("backup/backup");
}
}