Add Agent Job and Job Step request handlers (#635)

* Stage changes

* Fix update job request handler

* WIP

* Additional agent handler updates

* Setup agent job step create test

* Fix Step update handler
This commit is contained in:
Karl Burtram
2018-06-13 10:02:25 -07:00
committed by GitHub
parent 7c1f78a678
commit 8dda34c95a
52 changed files with 705 additions and 619 deletions

View File

@@ -4341,6 +4341,14 @@ namespace Microsoft.SqlTools.ServiceLayer
}
}
public static string JobStepNameCannotBeBlank
{
get
{
return Keys.GetString(Keys.JobStepNameCannotBeBlank);
}
}
public static string ConnectionServiceListDbErrorNotConnected(string uri)
{
return Keys.GetString(Keys.ConnectionServiceListDbErrorNotConnected, uri);
@@ -4576,6 +4584,16 @@ namespace Microsoft.SqlTools.ServiceLayer
return Keys.GetString(Keys.OperatorProperties, operatorName);
}
public static string JobAlreadyExists(string jobName)
{
return Keys.GetString(Keys.JobAlreadyExists, jobName);
}
public static string JobStepNameAlreadyExists(string jobName)
{
return Keys.GetString(Keys.JobStepNameAlreadyExists, jobName);
}
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public class Keys
{
@@ -6342,6 +6360,15 @@ namespace Microsoft.SqlTools.ServiceLayer
public const string CategoryDataCollector = "CategoryDataCollector";
public const string JobAlreadyExists = "JobAlreadyExists";
public const string JobStepNameCannotBeBlank = "JobStepNameCannotBeBlank";
public const string JobStepNameAlreadyExists = "JobStepNameAlreadyExists";
private Keys()
{ }

View File

@@ -2508,4 +2508,18 @@
<value>Data Collector</value>
<comment></comment>
</data>
<data name="JobAlreadyExists" xml:space="preserve">
<value>A job named '{0}' already exists. Enter a unique name for the job.</value>
<comment>.
Parameters: 0 - jobName (string) </comment>
</data>
<data name="JobStepNameCannotBeBlank" xml:space="preserve">
<value>The name of the job step cannot be blank.</value>
<comment></comment>
</data>
<data name="JobStepNameAlreadyExists" xml:space="preserve">
<value>There is already a step named '{0}' for this job. You must specify a different name.</value>
<comment>.
Parameters: 0 - jobName (string) </comment>
</data>
</root>

View File

@@ -1067,4 +1067,6 @@ CategoryLogShipping = Log Shipping
CategoryDBEngineTuningAdvisor = Database Engine Tuning Advisor
CategoryDataCollector = Data Collector
JobAlreadyExists(string jobName) = A job named '{0}' already exists. Enter a unique name for the job.
JobStepNameCannotBeBlank = The name of the job step cannot be blank.
JobStepNameAlreadyExists(string jobName) = There is already a step named '{0}' for this job. You must specify a different name.

View File

@@ -2978,6 +2978,23 @@
<target state="new">Data Collector</target>
<note></note>
</trans-unit>
<trans-unit id="JobAlreadyExists">
<source>A job named '{0}' already exists. Enter a unique name for the job.</source>
<target state="new">A job named '{0}' already exists. Enter a unique name for the job.</target>
<note>.
Parameters: 0 - jobName (string) </note>
</trans-unit>
<trans-unit id="JobStepNameCannotBeBlank">
<source>The name of the job step cannot be blank.</source>
<target state="new">The name of the job step cannot be blank.</target>
<note></note>
</trans-unit>
<trans-unit id="JobStepNameAlreadyExists">
<source>There is already a step named '{0}' for this job. You must specify a different name.</source>
<target state="new">There is already a step named '{0}' for this job. You must specify a different name.</target>
<note>.
Parameters: 0 - jobName (string) </note>
</trans-unit>
</body>
</file>
</xliff>