Add services/status path, and let the service controller uses Services.UpdateStatus()

This commit is contained in:
Chao Xu
2016-01-11 16:51:31 -08:00
parent 870220e0f1
commit 90b4662d8d
13 changed files with 1587 additions and 1265 deletions

View File

@@ -13558,6 +13558,66 @@
}
]
},
{
"path": "/api/v1/namespaces/{namespace}/services/{name}/status",
"description": "API at /api/v1",
"operations": [
{
"type": "v1.Service",
"method": "PUT",
"summary": "replace status of the specified Service",
"nickname": "replaceNamespacedServiceStatus",
"parameters": [
{
"type": "string",
"paramType": "query",
"name": "pretty",
"description": "If 'true', then the output is pretty printed.",
"required": false,
"allowMultiple": false
},
{
"type": "v1.Service",
"paramType": "body",
"name": "body",
"description": "",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "namespace",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Service",
"required": true,
"allowMultiple": false
}
],
"responseMessages": [
{
"code": 200,
"message": "OK",
"responseModel": "v1.Service"
}
],
"produces": [
"application/json",
"application/yaml"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1",
"description": "API at /api/v1",