mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-08 17:25:08 -05:00
Initial admin and DR services. (#329)
* Add initial services for admin, tasks, and DR * Fix up some of the contract interfaces * Make fields public to allow Json.Net to work * Fix a couple issues in backup contracts
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
//
|
||||
// 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;
|
||||
|
||||
namespace Microsoft.SqlTools.ServiceLayer.DisasterRecovery.Contracts
|
||||
{
|
||||
public class BackupParams
|
||||
{
|
||||
public string OwnerUri { get; set; }
|
||||
|
||||
public BackupInfo BackupInfo { get; set; }
|
||||
}
|
||||
|
||||
public class BackupResponse
|
||||
{
|
||||
public bool Result { get; set; }
|
||||
|
||||
public int TaskId { get; set; }
|
||||
}
|
||||
|
||||
public class BackupRequest
|
||||
{
|
||||
public static readonly
|
||||
RequestType<BackupParams, BackupResponse> Type =
|
||||
RequestType<BackupParams, BackupResponse>.Create("disasterrecovery/backup");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user