//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using System.Collections.Generic;
using Microsoft.SqlTools.Hosting.Protocol.Contracts;
using Microsoft.SqlTools.ServiceLayer.TaskServices;
using Microsoft.SqlTools.ServiceLayer.Utility;
namespace Microsoft.SqlTools.ServiceLayer.SqlAssessment.Contracts
{
///
/// Parameters for executing a query from a provided string
///
public class GenerateScriptParams
{
///
/// Gets or sets a list of assessment result items
/// to be written to a table
///
public List Items { get; set; }
public TaskExecutionMode TaskExecutionMode { get; set; }
public string TargetServerName { get; set; }
public string TargetDatabaseName { get; set; }
}
public class GenerateScriptResult
{
///
/// Gets or sets a value indicating
/// if assessment operation was successful
///
public bool Success { get; set; }
///
/// Gets or sets an status message for the operation
///
public string ErrorMessage { get; set; }
///
/// Gets or sets script text
///
public string Script { get; set; }
}
public class GenerateScriptRequest
{
public static readonly
RequestType Type =
RequestType.Create("assessment/generateScript");
}
}