Add securable search and permission setting to User Management (#2052)

This commit is contained in:
Hai Cao
2023-05-10 18:20:06 -07:00
committed by GitHub
parent c5bc4ebc92
commit d525e88672
38 changed files with 2981 additions and 168 deletions

View File

@@ -0,0 +1,36 @@
//
// 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.Utility;
namespace Microsoft.SqlTools.ServiceLayer.ObjectManagement.Contracts
{
public class SearchRequestParams : GeneralRequestDetails
{
/// <summary>
/// The context id.
/// </summary>
public string? ContextId { get; set; }
public string[]? ObjectTypes { get; set; }
public string? SearchText { get; set; }
public string? Schema { get; set; }
public string? Database { get; set; }
}
public class SearchResultItem
{
public string? Name { get; set; }
public string? Schema { get; set; }
public string? Type { get; set; }
}
public class SearchRequest
{
public static readonly RequestType<SearchRequestParams, SearchResultItem[]> Type = RequestType<SearchRequestParams, SearchResultItem[]>.Create("objectManagement/search");
}
}