Skip to content

Commit 5e62c6b

Browse files
matthchramarzavery
authored andcommitted
Adding Batch TaskReactivate to swagger spec (#6) (#512)
1 parent 67fd865 commit 5e62c6b

1 file changed

Lines changed: 150 additions & 0 deletions

File tree

batch/2016-07-01.3.1/swagger/BatchService.json

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8253,6 +8253,156 @@
82538253
}
82548254
}
82558255
},
8256+
"/jobs/{jobId}/tasks/{taskId}/reactivate": {
8257+
"post": {
8258+
"tags": [
8259+
"Tasks"
8260+
],
8261+
"operationId": "Task_Reactivate",
8262+
"summary": "Reactivates the specified task.",
8263+
"description": "Reactivation makes a task eligible to be retried again up to its maximum retry count. This will fail for tasks that are not completed or that previously completed successfully (with an exit code of 0). Additionally, this will fail if the job has completed (or is terminating or deleting).",
8264+
"x-ms-request-id": "request-id",
8265+
"parameters": [
8266+
{
8267+
"name": "jobId",
8268+
"in": "path",
8269+
"required": true,
8270+
"type": "string",
8271+
"description": "The id of the job containing the task."
8272+
},
8273+
{
8274+
"name": "taskId",
8275+
"in": "path",
8276+
"required": true,
8277+
"type": "string",
8278+
"description": "The id of the task to reactivate."
8279+
},
8280+
{
8281+
"name": "timeout",
8282+
"in": "query",
8283+
"required": false,
8284+
"type": "integer",
8285+
"format": "int32",
8286+
"default": 30,
8287+
"description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.",
8288+
"x-ms-parameter-grouping": {
8289+
"postfix": "Options"
8290+
}
8291+
},
8292+
{
8293+
"name": "client-request-id",
8294+
"in": "header",
8295+
"required": false,
8296+
"type": "string",
8297+
"description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.",
8298+
"x-ms-parameter-grouping": {
8299+
"postfix": "Options"
8300+
},
8301+
"x-ms-client-request-id": true
8302+
},
8303+
{
8304+
"name": "return-client-request-id",
8305+
"in": "header",
8306+
"required": false,
8307+
"type": "boolean",
8308+
"description": "Whether the server should return the client-request-id identifier in the response.",
8309+
"x-ms-parameter-grouping": {
8310+
"postfix": "Options"
8311+
}
8312+
},
8313+
{
8314+
"name": "ocp-date",
8315+
"in": "header",
8316+
"required": false,
8317+
"type": "string",
8318+
"format": "date-time-rfc1123",
8319+
"description": "The time the request was issued. If not specified, this header will be automatically populated with the current system clock time.",
8320+
"x-ms-parameter-grouping": {
8321+
"postfix": "Options"
8322+
}
8323+
},
8324+
{
8325+
"name": "If-Match",
8326+
"in": "header",
8327+
"required": false,
8328+
"type": "string",
8329+
"description": "An ETag is specified. Specify this header to perform the operation only if the resource's ETag is an exact match as specified.",
8330+
"x-ms-parameter-grouping": {
8331+
"postfix": "Options"
8332+
}
8333+
},
8334+
{
8335+
"name": "If-None-Match",
8336+
"in": "header",
8337+
"required": false,
8338+
"type": "string",
8339+
"description": "An ETag is specified. Specify this header to perform the operation only if the resource's ETag does not match the specified ETag.",
8340+
"x-ms-parameter-grouping": {
8341+
"postfix": "Options"
8342+
}
8343+
},
8344+
{
8345+
"name": "If-Modified-Since",
8346+
"in": "header",
8347+
"required": false,
8348+
"type": "string",
8349+
"format": "date-time-rfc1123",
8350+
"description": "Specify this header to perform the operation only if the resource has been modified since the specified date/time.",
8351+
"x-ms-parameter-grouping": {
8352+
"postfix": "Options"
8353+
}
8354+
},
8355+
{
8356+
"name": "If-Unmodified-Since",
8357+
"in": "header",
8358+
"required": false,
8359+
"type": "string",
8360+
"format": "date-time-rfc1123",
8361+
"description": "Specify this header to perform the operation only if the resource has not been modified since the specified date/time.",
8362+
"x-ms-parameter-grouping": {
8363+
"postfix": "Options"
8364+
}
8365+
},
8366+
{
8367+
"$ref": "#/parameters/ApiVersionParameter"
8368+
}
8369+
],
8370+
"responses": {
8371+
"204": {
8372+
"headers": {
8373+
"client-request-id": {
8374+
"description": "The ClientRequestId provided by the client during the request, if present and requested to be returned.",
8375+
"type": "string"
8376+
},
8377+
"request-id": {
8378+
"description": "The value that uniquely identifies a request.",
8379+
"type": "string"
8380+
},
8381+
"ETag": {
8382+
"description": "The content of the ETag HTTP response header.",
8383+
"type": "string"
8384+
},
8385+
"Last-Modified": {
8386+
"description": "The content of the Last-Modified HTTP response header.",
8387+
"type": "string",
8388+
"format": "date-time-rfc1123"
8389+
},
8390+
"DataServiceId": {
8391+
"description": "The OData id of the resource to which the request applied.",
8392+
"type": "string"
8393+
}
8394+
},
8395+
"description": ""
8396+
},
8397+
"default": {
8398+
"description": "The error from the Batch service.",
8399+
"schema": {
8400+
"$ref": "#/definitions/BatchError"
8401+
}
8402+
}
8403+
}
8404+
}
8405+
},
82568406
"/pools/{poolId}/nodes/{nodeId}/users": {
82578407
"post": {
82588408
"tags": [

0 commit comments

Comments
 (0)