Skip to content

Commit

Permalink
Add Location back. Add TaskRunNameParameter to restrict the name.
Browse files Browse the repository at this point in the history
  • Loading branch information
huanwu committed Jul 7, 2020
1 parent 4e15e3d commit 1191d68
Showing 1 changed file with 24 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -721,11 +721,7 @@
"$ref": "#/parameters/ApiVersionParameter"
},
{
"name": "taskRunName",
"in": "path",
"description": "The run request name.",
"required": true,
"type": "string"
"$ref": "#/parameters/TaskRunNameParameter"
}
],
"responses": {
Expand Down Expand Up @@ -768,11 +764,7 @@
"$ref": "#/parameters/ApiVersionParameter"
},
{
"name": "taskRunName",
"in": "path",
"description": "The name of task run.",
"required": true,
"type": "string"
"$ref": "#/parameters/TaskRunNameParameter"
},
{
"name": "taskRun",
Expand Down Expand Up @@ -831,11 +823,7 @@
"$ref": "#/parameters/ApiVersionParameter"
},
{
"name": "taskRunName",
"in": "path",
"description": "The task run name.",
"required": true,
"type": "string"
"$ref": "#/parameters/TaskRunNameParameter"
}
],
"responses": {
Expand Down Expand Up @@ -882,11 +870,7 @@
"$ref": "#/parameters/ApiVersionParameter"
},
{
"name": "taskRunName",
"in": "path",
"description": "The task run name.",
"required": true,
"type": "string"
"$ref": "#/parameters/TaskRunNameParameter"
},
{
"name": "updateParameters",
Expand Down Expand Up @@ -947,11 +931,7 @@
"$ref": "#/parameters/ApiVersionParameter"
},
{
"name": "taskRunName",
"in": "path",
"description": "The run request name.",
"required": true,
"type": "string"
"$ref": "#/parameters/TaskRunNameParameter"
}
],
"responses": {
Expand Down Expand Up @@ -1928,6 +1908,10 @@
"$ref": "#/definitions/TaskRunProperties",
"description": "The properties associated with the task run, i.e., request and result of the run",
"x-ms-client-flatten": true
},
"location": {
"description": "The location of the resource",
"type": "string"
}
}
},
Expand Down Expand Up @@ -2028,6 +2012,10 @@
"description": "The properties for updating a task run.",
"x-ms-client-flatten": true
},
"location": {
"description": "The location of the resource",
"type": "string"
},
"tags": {
"description": "The ARM resource tags.",
"type": "object",
Expand Down Expand Up @@ -3602,6 +3590,17 @@
"minLength": 3,
"pattern": "^[a-zA-Z0-9-]*$",
"x-ms-parameter-location": "method"
},
"TaskRunNameParameter": {
"name": "taskRunName",
"in": "path",
"description": "The name of the task run.",
"required": true,
"type": "string",
"maxLength": 50,
"minLength": 5,
"pattern": "^[a-zA-Z0-9-]*$",
"x-ms-parameter-location": "method"
}
},
"securityDefinitions": {
Expand Down

0 comments on commit 1191d68

Please sign in to comment.