Adding windows account validation api for sql migration extensions. (#1202)

* Adding validate file share api

* Making message endpoint camel case

* Adding validation for windows username
This commit is contained in:
Aasim Khan
2021-05-04 06:51:45 +00:00
committed by GitHub
parent 7fc07d08c0
commit 3ad2b2312a
2 changed files with 92 additions and 10 deletions

View File

@@ -0,0 +1,26 @@
//
// 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.Migration.Contracts
{
public class ValidateWindowsAccountRequestParams
{
public string Username { get; set; }
public string Password { get; set; }
}
public class ValidateWindowsAccountResult
{
public bool Success { get; set; }
public string ErrorMessage { get; set; }
}
public class ValidateWindowsAccountRequest
{
public static readonly RequestType<ValidateWindowsAccountRequestParams, ValidateWindowsAccountResult> Type = RequestType<ValidateWindowsAccountRequestParams, ValidateWindowsAccountResult>.Create("migration/validateWindowsAccount");
}
}