// // 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 AgentJobsParams : GeneralRequestDetails { public string OwnerUri { get; set; } public string JobId { get; set; } } /// /// SQL Agent Job activity result /// public class AgentJobsResult { public bool Succeeded { get; set; } public string ErrorMessage { get; set; } public AgentJobInfo[] Jobs { get; set; } } /// /// SQL Agent Jobs request type /// public class AgentJobsRequest { /// /// Request definition /// public static readonly RequestType Type = RequestType.Create("agent/jobs"); } }