supporting restore from db (#429)

* supporting restore from db
This commit is contained in:
Leila Lali
2017-08-09 11:01:52 -07:00
committed by GitHub
parent a4a27f9559
commit 6696b7e72f
12 changed files with 1143 additions and 369 deletions

View File

@@ -0,0 +1,43 @@
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using System.Collections.Generic;
using Microsoft.SqlTools.Hosting.Protocol.Contracts;
namespace Microsoft.SqlTools.ServiceLayer.DisasterRecovery.Contracts
{
public class RestoreConfigInfoRequestParams
{
/// <summary>
/// The Uri to find the connection to do the restore operations
/// </summary>
public string OwnerUri { get; set; }
}
public class RestoreConfigInfoResponse
{
public RestoreConfigInfoResponse()
{
ConfigInfo = new Dictionary<string, object>();
}
/// <summary>
/// Config Info
/// </summary>
public Dictionary<string, object> ConfigInfo { get; set; }
/// <summary>
/// Errors occurred while creating the restore config info
/// </summary>
public string ErrorMessage { get; set; }
}
public class RestoreConfigInfoRequest
{
public static readonly
RequestType<RestoreConfigInfoRequestParams, RestoreConfigInfoResponse> Type =
RequestType<RestoreConfigInfoRequestParams, RestoreConfigInfoResponse>.Create("disasterrecovery/restoreconfiginfo");
}
}