Files
sqltoolsservice/src/Microsoft.SqlTools.ServiceLayer/DacFx/Contracts/ExtractRequest.cs
Kim Santiago 624034308a Add option to import permissions for dacfx extract (#1723)
* add option to import permissions for dacfx extract

* change 'import' to 'include'
2022-10-11 14:51:07 -07:00

45 lines
1.4 KiB
C#

//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Microsoft.SqlServer.Dac;
using Microsoft.SqlTools.Hosting.Protocol.Contracts;
namespace Microsoft.SqlTools.ServiceLayer.DacFx.Contracts
{
/// <summary>
/// Parameters for a DacFx extract request.
/// </summary>
public class ExtractParams : DacFxParams
{
/// <summary>
/// Gets or sets the string identifier for the DAC application
/// </summary>
public string ApplicationName { get; set; }
/// <summary>
/// Gets or sets the version of the DAC application
/// </summary>
public string ApplicationVersion { get; set; }
/// <summary>
/// Gets or sets the target for extraction
/// </summary>
public DacExtractTarget ExtractTarget { get; set; }
/// <summary>
/// Gets or sets whether permissions should be included in the extract
/// </summary>
public bool? IncludePermissions { get; set; }
}
/// <summary>
/// Defines the DacFx extract request type
/// </summary>
class ExtractRequest
{
public static readonly RequestType<ExtractParams, DacFxResult> Type =
RequestType<ExtractParams, DacFxResult>.Create("dacfx/extract");
}
}