Agent Proxy and Credential request handlers (#637)

* Agent Proxy account WIP

* Fixup Credential create\update\delete handlers

* Use current user for test credential

* Cleanup and delete code

* Convert tabs to spaces
This commit is contained in:
Karl Burtram
2018-06-14 11:55:38 -07:00
committed by GitHub
parent f53e532225
commit d2cc376b87
41 changed files with 1067 additions and 1312 deletions

View File

@@ -29,6 +29,14 @@ namespace Microsoft.SqlTools.ServiceLayer.Agent.Contracts
public AgentProxyInfo[] Proxies { get; set; }
}
/// <summary>
/// SQL Agent Proxy result
/// </summary>
public class AgentProxyResult : ResultStatus
{
public AgentProxyInfo Proxy { get; set; }
}
/// <summary>
/// SQL Agent Proxy Accounts request type
/// </summary>
@@ -52,14 +60,6 @@ namespace Microsoft.SqlTools.ServiceLayer.Agent.Contracts
public AgentProxyInfo Proxy { get; set; }
}
/// <summary>
/// SQL Agent create Proxy result
/// </summary>
public class CreateAgentProxyResult : ResultStatus
{
public AgentProxyInfo Proxy { get; set; }
}
/// <summary>
/// SQL Agent create Proxy request type
/// </summary>
@@ -69,8 +69,8 @@ namespace Microsoft.SqlTools.ServiceLayer.Agent.Contracts
/// Request definition
/// </summary>
public static readonly
RequestType<CreateAgentProxyParams, CreateAgentProxyResult> Type =
RequestType<CreateAgentProxyParams, CreateAgentProxyResult>.Create("agent/createproxy");
RequestType<CreateAgentProxyParams, AgentProxyResult> Type =
RequestType<CreateAgentProxyParams, AgentProxyResult>.Create("agent/createproxy");
}
/// <summary>
@@ -85,14 +85,6 @@ namespace Microsoft.SqlTools.ServiceLayer.Agent.Contracts
public AgentProxyInfo Proxy { get; set; }
}
/// <summary>
/// SQL Agent update Proxy result
/// </summary>
public class UpdateAgentProxyResult : ResultStatus
{
public AgentProxyInfo Proxy { get; set; }
}
/// <summary>
/// SQL Agent update Proxy request type
/// </summary>
@@ -102,8 +94,8 @@ namespace Microsoft.SqlTools.ServiceLayer.Agent.Contracts
/// Request definition
/// </summary>
public static readonly
RequestType<UpdateAgentProxyParams, UpdateAgentProxyResult> Type =
RequestType<UpdateAgentProxyParams, UpdateAgentProxyResult>.Create("agent/updateproxy");
RequestType<UpdateAgentProxyParams, AgentProxyResult> Type =
RequestType<UpdateAgentProxyParams, AgentProxyResult>.Create("agent/updateproxy");
}
/// <summary>