// // 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.ServiceLayer.Utility; using Microsoft.SqlTools.Utility; namespace Microsoft.SqlTools.ServiceLayer.Agent.Contracts { /// /// SQL Agent Job activity parameters /// public class AgentJobActionParams : GeneralRequestDetails { public string OwnerUri { get; set; } public string JobName { get; set; } public string Action { get; set; } } /// /// SQL Agent Job activity result /// public class AgentJobActionResult { public bool Succeeded { get; set; } public string ErrorMessage { get; set; } } /// /// SQL Agent Jobs request type /// public class AgentJobActionRequest { /// /// Request definition /// public static readonly RequestType Type = RequestType.Create("agent/jobaction"); } }