Skip to content

Commit

Permalink
Fix responses and result types for push deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
ejizba committed Oct 27, 2017
1 parent d65cc05 commit bd49256
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 11 deletions.
2 changes: 1 addition & 1 deletion kudu/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vscode-azurekudu",
"author": "Microsoft Corporation",
"version": "0.1.1",
"version": "0.1.2",
"description": "Client used to interact with Kudu.",
"tags": [
"azure",
Expand Down
103 changes: 93 additions & 10 deletions kudu/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,13 @@
"200": {
"description": "OK",
"schema": {
"type": "object"
"$ref": "#/definitions/DeployResult"
}
},
"202": {
"description": "OK",
"schema": {
"$ref": "#/definitions/DeployResult"
}
}
}
Expand Down Expand Up @@ -219,7 +225,13 @@
"200": {
"description": "OK",
"schema": {
"type": "object"
"$ref": "#/definitions/DeployResult"
}
},
"202": {
"description": "OK",
"schema": {
"$ref": "#/definitions/DeployResult"
}
}
}
Expand Down Expand Up @@ -5501,10 +5513,7 @@
"consumes": [
"multipart/form-data"
],
"produces": [
"application/json",
"text/json"
],
"produces": [],
"parameters": [
{
"name": "file",
Expand All @@ -5523,10 +5532,10 @@
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "object"
}
"description": "No Content"
},
"202": {
"description": "No Content"
}
}
}
Expand Down Expand Up @@ -6898,6 +6907,80 @@
}
}
},
"DeployResult": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"status": {
"format": "int32",
"enum": [
0,
1,
2,
3,
4
],
"type": "integer"
},
"status_text": {
"type": "string"
},
"author_email": {
"type": "string"
},
"author": {
"type": "string"
},
"deployer": {
"type": "string"
},
"message": {
"type": "string"
},
"progress": {
"type": "string"
},
"received_time": {
"format": "date-time",
"type": "string"
},
"start_time": {
"format": "date-time",
"type": "string"
},
"end_time": {
"format": "date-time",
"type": "string"
},
"last_success_end_time": {
"format": "date-time",
"type": "string"
},
"complete": {
"type": "boolean"
},
"active": {
"type": "boolean"
},
"is_temp": {
"type": "boolean"
},
"is_readonly": {
"type": "boolean"
},
"url": {
"type": "string"
},
"log_url": {
"type": "string"
},
"site_name": {
"type": "string"
}
}
},
"DiagnosticsSettings": {
"type": "object",
"properties": {
Expand Down

0 comments on commit bd49256

Please sign in to comment.