// // 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; using Microsoft.SqlTools.Utility; namespace Microsoft.SqlTools.ServiceLayer.ObjectManagement.Contracts { public class InitializeViewRequestParams : GeneralRequestDetails { /// /// The connection uri. /// public string ConnectionUri { get; set; } /// /// The target database name. /// public string Database { get; set; } /// /// The object type. /// public SqlObjectType ObjectType { get; set; } /// /// Whether the view is for a new object. /// public bool IsNewObject { get; set; } /// /// The object view context id. /// public string ContextId { get; set; } /// /// Urn of the parent object. /// public string ParentUrn { get; set; } /// /// Urn of the object. Only set when the view is for an existing object. /// public string ObjectUrn { get; set; } } public class InitializeViewRequest { public static readonly RequestType Type = RequestType.Create("objectManagement/initializeView"); } }