diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/definitions.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/definitions.json index b086fbc3908f..41d02ae91177 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/definitions.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/definitions.json @@ -1295,6 +1295,28 @@ }, "description": "Definition of source control sync job properties." }, + "SourceControlSyncJobCreateParameters": { + "properties": { + "properties": { + "$ref": "#/definitions/SourceControlSyncJobCreateProperties", + "x-ms-client-flatten": true, + "description": "Sets the properties of the source control sync job." + } + }, + "required": [ + "properties" + ], + "description": "The parameters supplied to the create source control sync job operation." + }, + "SourceControlSyncJobCreateProperties": { + "properties": { + "commitId": { + "type": "string", + "description": "Sets the commit id of the source control sync job." + } + }, + "description": "Definition of create source control sync job properties." + }, "SourceControlSyncJobListResult": { "properties": { "value": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControlSyncJob/createSourceControlSyncJob.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControlSyncJob/createSourceControlSyncJob.json index 89f504628c82..7b396dcd33fd 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControlSyncJob/createSourceControlSyncJob.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControlSyncJob/createSourceControlSyncJob.json @@ -5,7 +5,12 @@ "automationAccountName": "myAutomationAccount33", "sourceControlName": "MySourceControl", "sourceControlSyncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a", - "api-version": "2017-05-15-preview" + "api-version": "2017-05-15-preview", + "parameters": { + "properties": { + "commitId": "9de0980bfb45026a3d97a1b0522d98a9f604226e" + } + } }, "responses": { "201": { @@ -15,7 +20,7 @@ "properties": { "sourceControlSyncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a", "creationTime": "2017-03-28T23:14:26.903+00:00", - "provisioningState": "Running", + "provisioningState": "Completed", "startTime": "2017-03-28T23:14:27.903+00:00", "endTime": "2017-03-28T23:14:28.903+00:00", "startedBy": "User1" diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControlSyncJob/getAllSourceControlSyncJobs.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControlSyncJob/getAllSourceControlSyncJobs.json index 4223fc7ba428..8c5dd4d1622a 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControlSyncJob/getAllSourceControlSyncJobs.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControlSyncJob/getAllSourceControlSyncJobs.json @@ -16,7 +16,7 @@ "properties": { "sourceControlSyncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a1a", "creationTime": "2017-03-28T23:14:26.903+00:00", - "provisioningState": "Running", + "provisioningState": "Completed", "startTime": "2017-03-28T23:14:27.903+00:00", "endTime": "2017-03-28T23:14:28.903+00:00", "startedBy": "User1" @@ -27,7 +27,7 @@ "properties": { "sourceControlSyncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a2a", "creationTime": "2017-03-28T23:14:26.903+00:00", - "provisioningState": "Running", + "provisioningState": "Completed", "startTime": "2017-03-28T23:14:27.903+00:00", "endTime": "2017-03-28T23:14:28.903+00:00", "startedBy": "User1" @@ -38,7 +38,7 @@ "properties": { "sourceControlSyncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a3a", "creationTime": "2017-03-28T23:14:26.903+00:00", - "provisioningState": "Running", + "provisioningState": "Completed", "startTime": "2017-03-28T23:14:27.903+00:00", "endTime": "2017-03-28T23:14:28.903+00:00", "startedBy": "User1" @@ -49,7 +49,7 @@ "properties": { "sourceControlSyncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a4a", "creationTime": "2017-03-28T23:14:26.903+00:00", - "provisioningState": "Running", + "provisioningState": "Completed", "startTime": "2017-03-28T23:14:27.903+00:00", "endTime": "2017-03-28T23:14:28.903+00:00", "startedBy": "User1" @@ -60,7 +60,7 @@ "properties": { "sourceControlSyncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a5a", "creationTime": "2017-03-28T23:14:26.903+00:00", - "provisioningState": "Running", + "provisioningState": "Completed", "startTime": "2017-03-28T23:14:27.903+00:00", "endTime": "2017-03-28T23:14:28.903+00:00", "startedBy": "User1" diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/sourceControlSyncJob.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/sourceControlSyncJob.json index 7accdd5adf9f..d58403f8e991 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/sourceControlSyncJob.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/sourceControlSyncJob.json @@ -70,6 +70,15 @@ "format": "uuid", "description": "The source control sync job id." }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./definitions.json#/definitions/SourceControlSyncJobCreateParameters" + }, + "description": "The parameters supplied to the create source control sync job operation." + }, { "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" },