// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // #nullable disable using Microsoft.SqlTools.Hosting.Protocol.Contracts; namespace Microsoft.SqlTools.ServiceLayer.Security.Contracts { /// /// Create Login parameters /// public class CreateLoginParams { public string ContextId { get; set; } public LoginInfo Login { get; set; } } /// /// Create Login request type /// public class CreateLoginRequest { /// /// Request definition /// public static readonly RequestType Type = RequestType.Create("objectManagement/createLogin"); } /// /// Update Login params /// public class UpdateLoginParams { public string ContextId { get; set; } public LoginInfo Login { get; set; } } /// /// Update Login request type /// public class UpdateLoginRequest { /// /// Request definition /// public static readonly RequestType Type = RequestType.Create("objectManagement/updateLogin"); } /// /// Update Login params /// public class DisposeLoginViewRequestParams { public string ContextId { get; set; } } /// /// Update Login request type /// public class DisposeLoginViewRequest { /// /// Request definition /// public static readonly RequestType Type = RequestType.Create("objectManagement/disposeLoginView"); } /// /// Initialize Login View Request params /// public class InitializeLoginViewRequestParams { public string ConnectionUri { get; set; } public string ContextId { get; set; } public bool IsNewObject { get; set; } public string Name { get; set; } } /// /// Initialize Login View request type /// public class InitializeLoginViewRequest { /// /// Request definition /// public static readonly RequestType Type = RequestType.Create("objectManagement/initializeLoginView"); } /// /// Script Login params /// public class ScriptLoginParams { public string? ContextId { get; set; } public LoginInfo? Login { get; set; } } /// /// Script Login request type /// public class ScriptLoginRequest { /// /// Request definition /// public static readonly RequestType Type = RequestType.Create("objectManagement/scriptLogin"); } }