Commit fe27529d authored by nikhiljindal's avatar nikhiljindal

Adding static swagger spec and a script to update it

parent 5fb9009f
{
"swaggerVersion": "1.2",
"apiVersion": "",
"basePath": "127.0.0.1:8050",
"resourcePath": "/api",
"apis": [
{
"path": "/api",
"description": "get available api versions",
"operations": [
{
"type": "void",
"method": "GET",
"summary": "get available api versions",
"nickname": "getApiVersions",
"parameters": [],
"produces": [
"application/json"
],
"consumes": [
"application/json"
]
}
]
}
]
}
\ No newline at end of file
{
"swaggerVersion": "1.2",
"apis": [
{
"path": "/api/v1beta1",
"description": "API at /api/v1beta1 version v1beta1"
},
{
"path": "/api/v1beta2",
"description": "API at /api/v1beta2 version v1beta2"
},
{
"path": "/api/v1beta3",
"description": "API at /api/v1beta3 version v1beta3"
},
{
"path": "/api",
"description": "get available api versions"
},
{
"path": "/version",
"description": "git code version from which this is built"
}
],
"apiVersion": "",
"info": {
"title": "",
"description": ""
}
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"swaggerVersion": "1.2",
"apiVersion": "v1beta3",
"basePath": "127.0.0.1:8050",
"resourcePath": "/api/v1beta3",
"apis": [
{
"path": "/api/v1beta3/resourcequotas",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.ResourceQuotaList",
"method": "GET",
"summary": "list objects of kind ResourceQuota",
"nickname": "listResourceQuota",
"parameters": [],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/ns/{ns}/pods",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.PodList",
"method": "GET",
"summary": "list objects of kind Pod",
"nickname": "listPod",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "POST",
"summary": "create a Pod",
"nickname": "createPod",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
},
{
"type": "v1beta3.Pod",
"paramType": "body",
"name": "body",
"description": "",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/services",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.Service",
"method": "GET",
"summary": "list objects of kind Service",
"nickname": "listService",
"parameters": [],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/proxy/nodes/{name}/{path:*}",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "void",
"method": "GET",
"summary": "proxy GET requests to Node",
"nickname": "proxyGETNode",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Node",
"required": true,
"allowMultiple": false
}
],
"produces": [
"*/*"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "PUT",
"summary": "proxy PUT requests to Node",
"nickname": "proxyPUTNode",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Node",
"required": true,
"allowMultiple": false
}
],
"produces": [
"*/*"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "POST",
"summary": "proxy POST requests to Node",
"nickname": "proxyPOSTNode",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Node",
"required": true,
"allowMultiple": false
}
],
"produces": [
"*/*"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "DELETE",
"summary": "proxy DELETE requests to Node",
"nickname": "proxyDELETENode",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Node",
"required": true,
"allowMultiple": false
}
],
"produces": [
"*/*"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/watch/ns/{ns}/replicationcontrollers",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.ReplicationControllerList",
"method": "GET",
"summary": "watch a list of ReplicationController",
"nickname": "watchReplicationControllerlist",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/ns/{ns}/services",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.Service",
"method": "GET",
"summary": "list objects of kind Service",
"nickname": "listService",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "POST",
"summary": "create a Service",
"nickname": "createService",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
},
{
"type": "v1beta3.Service",
"paramType": "body",
"name": "body",
"description": "",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/ns/{ns}/limitranges",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.LimitRangeList",
"method": "GET",
"summary": "list objects of kind LimitRange",
"nickname": "listLimitRange",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "POST",
"summary": "create a LimitRange",
"nickname": "createLimitRange",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
},
{
"type": "v1beta3.LimitRange",
"paramType": "body",
"name": "body",
"description": "",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/ns/{ns}/events",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.EventList",
"method": "GET",
"summary": "list objects of kind Event",
"nickname": "listEvent",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "POST",
"summary": "create a Event",
"nickname": "createEvent",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
},
{
"type": "v1beta3.Event",
"paramType": "body",
"name": "body",
"description": "",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/watch/ns/{ns}/events/{name}",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.Event",
"method": "GET",
"summary": "watch a particular Event",
"nickname": "watchEvent",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Event",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/watch/ns/{ns}/resourcequotas",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.ResourceQuotaList",
"method": "GET",
"summary": "watch a list of ResourceQuota",
"nickname": "watchResourceQuotalist",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/ns/{ns}/resourcequotausages",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "void",
"method": "POST",
"summary": "create a ResourceQuotaUsage",
"nickname": "createResourceQuotaUsage",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
},
{
"type": "v1beta3.ResourceQuotaUsage",
"paramType": "body",
"name": "body",
"description": "",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/watch/endpoints",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.EndpointsList",
"method": "GET",
"summary": "watch a list of Endpoints",
"nickname": "watchEndpointslist",
"parameters": [],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/watch/ns/{ns}/pods",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.PodList",
"method": "GET",
"summary": "watch a list of Pod",
"nickname": "watchPodlist",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/replicationcontrollers",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.ReplicationControllerList",
"method": "GET",
"summary": "list objects of kind ReplicationController",
"nickname": "listReplicationController",
"parameters": [],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/watch/replicationcontrollers",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.ReplicationControllerList",
"method": "GET",
"summary": "watch a list of ReplicationController",
"nickname": "watchReplicationControllerlist",
"parameters": [],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/watch/ns/{ns}/limitranges/{name}",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.LimitRange",
"method": "GET",
"summary": "watch a particular LimitRange",
"nickname": "watchLimitRange",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the LimitRange",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/limitranges",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.LimitRangeList",
"method": "GET",
"summary": "list objects of kind LimitRange",
"nickname": "listLimitRange",
"parameters": [],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/nodes/{name}",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.Node",
"method": "GET",
"summary": "read the specified Node",
"nickname": "readNode",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Node",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "PUT",
"summary": "update the specified Node",
"nickname": "updateNode",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Node",
"required": true,
"allowMultiple": false
},
{
"type": "v1beta3.Node",
"paramType": "body",
"name": "body",
"description": "",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "DELETE",
"summary": "delete a Node",
"nickname": "deleteNode",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Node",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/watch/nodes/{name}",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.Node",
"method": "GET",
"summary": "watch a particular Node",
"nickname": "watchNode",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Node",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/watch/ns/{ns}/events",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.EventList",
"method": "GET",
"summary": "watch a list of Event",
"nickname": "watchEventlist",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/ns/{ns}/events/{name}",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.Event",
"method": "GET",
"summary": "read the specified Event",
"nickname": "readEvent",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Event",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "DELETE",
"summary": "delete a Event",
"nickname": "deleteEvent",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Event",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/ns/{ns}/endpoints/{name}",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.Endpoints",
"method": "GET",
"summary": "read the specified Endpoints",
"nickname": "readEndpoints",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Endpoints",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "PUT",
"summary": "update the specified Endpoints",
"nickname": "updateEndpoints",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Endpoints",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
},
{
"type": "v1beta3.Endpoints",
"paramType": "body",
"name": "body",
"description": "",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/pods",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.PodList",
"method": "GET",
"summary": "list objects of kind Pod",
"nickname": "listPod",
"parameters": [],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/ns/{ns}/services/{name}",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.Service",
"method": "GET",
"summary": "read the specified Service",
"nickname": "readService",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Service",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "PUT",
"summary": "update the specified Service",
"nickname": "updateService",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Service",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
},
{
"type": "v1beta3.Service",
"paramType": "body",
"name": "body",
"description": "",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "DELETE",
"summary": "delete a Service",
"nickname": "deleteService",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Service",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/events",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.EventList",
"method": "GET",
"summary": "list objects of kind Event",
"nickname": "listEvent",
"parameters": [],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/watch/ns/{ns}/endpoints",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.EndpointsList",
"method": "GET",
"summary": "watch a list of Endpoints",
"nickname": "watchEndpointslist",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/watch/nodes",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.NodeList",
"method": "GET",
"summary": "watch a list of Node",
"nickname": "watchNodelist",
"parameters": [],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/ns/{ns}/resourcequotas",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.ResourceQuotaList",
"method": "GET",
"summary": "list objects of kind ResourceQuota",
"nickname": "listResourceQuota",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "POST",
"summary": "create a ResourceQuota",
"nickname": "createResourceQuota",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
},
{
"type": "v1beta3.ResourceQuota",
"paramType": "body",
"name": "body",
"description": "",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/ns/{ns}/bindings",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "void",
"method": "POST",
"summary": "create a Binding",
"nickname": "createBinding",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
},
{
"type": "v1beta3.Binding",
"paramType": "body",
"name": "body",
"description": "",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/watch/services",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.Service",
"method": "GET",
"summary": "watch a list of Service",
"nickname": "watchServicelist",
"parameters": [],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/watch/ns/{ns}/limitranges",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.LimitRangeList",
"method": "GET",
"summary": "watch a list of LimitRange",
"nickname": "watchLimitRangelist",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/ns/{ns}/limitranges/{name}",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.LimitRange",
"method": "GET",
"summary": "read the specified LimitRange",
"nickname": "readLimitRange",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the LimitRange",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "PUT",
"summary": "update the specified LimitRange",
"nickname": "updateLimitRange",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the LimitRange",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
},
{
"type": "v1beta3.LimitRange",
"paramType": "body",
"name": "body",
"description": "",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "DELETE",
"summary": "delete a LimitRange",
"nickname": "deleteLimitRange",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the LimitRange",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/ns/{ns}/resourcequotas/{name}",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.ResourceQuota",
"method": "GET",
"summary": "read the specified ResourceQuota",
"nickname": "readResourceQuota",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the ResourceQuota",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "PUT",
"summary": "update the specified ResourceQuota",
"nickname": "updateResourceQuota",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the ResourceQuota",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
},
{
"type": "v1beta3.ResourceQuota",
"paramType": "body",
"name": "body",
"description": "",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "DELETE",
"summary": "delete a ResourceQuota",
"nickname": "deleteResourceQuota",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the ResourceQuota",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/ns/{ns}/pods/{name}",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.Pod",
"method": "GET",
"summary": "read the specified Pod",
"nickname": "readPod",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Pod",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "PUT",
"summary": "update the specified Pod",
"nickname": "updatePod",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Pod",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
},
{
"type": "v1beta3.Pod",
"paramType": "body",
"name": "body",
"description": "",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "DELETE",
"summary": "delete a Pod",
"nickname": "deletePod",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Pod",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/watch/ns/{ns}/pods/{name}",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.Pod",
"method": "GET",
"summary": "watch a particular Pod",
"nickname": "watchPod",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Pod",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/proxy/ns/{ns}/pods/{name}/{path:*}",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "void",
"method": "GET",
"summary": "proxy GET requests to Pod",
"nickname": "proxyGETPod",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Pod",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"*/*"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "PUT",
"summary": "proxy PUT requests to Pod",
"nickname": "proxyPUTPod",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Pod",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"*/*"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "POST",
"summary": "proxy POST requests to Pod",
"nickname": "proxyPOSTPod",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Pod",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"*/*"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "DELETE",
"summary": "proxy DELETE requests to Pod",
"nickname": "proxyDELETEPod",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Pod",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"*/*"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/endpoints",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.EndpointsList",
"method": "GET",
"summary": "list objects of kind Endpoints",
"nickname": "listEndpoints",
"parameters": [],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/watch/resourcequotas",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.ResourceQuotaList",
"method": "GET",
"summary": "watch a list of ResourceQuota",
"nickname": "watchResourceQuotalist",
"parameters": [],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/ns/{ns}/replicationcontrollers",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.ReplicationControllerList",
"method": "GET",
"summary": "list objects of kind ReplicationController",
"nickname": "listReplicationController",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "POST",
"summary": "create a ReplicationController",
"nickname": "createReplicationController",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
},
{
"type": "v1beta3.ReplicationController",
"paramType": "body",
"name": "body",
"description": "",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/watch/ns/{ns}/replicationcontrollers/{name}",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.ReplicationController",
"method": "GET",
"summary": "watch a particular ReplicationController",
"nickname": "watchReplicationController",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the ReplicationController",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/watch/ns/{ns}/services",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.Service",
"method": "GET",
"summary": "watch a list of Service",
"nickname": "watchServicelist",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/watch/ns/{ns}/resourcequotas/{name}",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.ResourceQuota",
"method": "GET",
"summary": "watch a particular ResourceQuota",
"nickname": "watchResourceQuota",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the ResourceQuota",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/watch/ns/{ns}/services/{name}",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.Service",
"method": "GET",
"summary": "watch a particular Service",
"nickname": "watchService",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Service",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/watch/events",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.EventList",
"method": "GET",
"summary": "watch a list of Event",
"nickname": "watchEventlist",
"parameters": [],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/nodes",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.NodeList",
"method": "GET",
"summary": "list objects of kind Node",
"nickname": "listNode",
"parameters": [],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "POST",
"summary": "create a Node",
"nickname": "createNode",
"parameters": [
{
"type": "v1beta3.Node",
"paramType": "body",
"name": "body",
"description": "",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/proxy/ns/{ns}/services/{name}/{path:*}",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "void",
"method": "GET",
"summary": "proxy GET requests to Service",
"nickname": "proxyGETService",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Service",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"*/*"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "PUT",
"summary": "proxy PUT requests to Service",
"nickname": "proxyPUTService",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Service",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"*/*"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "POST",
"summary": "proxy POST requests to Service",
"nickname": "proxyPOSTService",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Service",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"*/*"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "DELETE",
"summary": "proxy DELETE requests to Service",
"nickname": "proxyDELETEService",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Service",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"*/*"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/ns/{ns}/endpoints",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.EndpointsList",
"method": "GET",
"summary": "list objects of kind Endpoints",
"nickname": "listEndpoints",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "POST",
"summary": "create a Endpoints",
"nickname": "createEndpoints",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
},
{
"type": "v1beta3.Endpoints",
"paramType": "body",
"name": "body",
"description": "",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/watch/ns/{ns}/endpoints/{name}",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.Endpoints",
"method": "GET",
"summary": "watch a particular Endpoints",
"nickname": "watchEndpoints",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Endpoints",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/redirect/nodes/{name}",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "void",
"method": "GET",
"summary": "redirect GET request to Node",
"nickname": "redirectNode",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Node",
"required": true,
"allowMultiple": false
}
],
"produces": [
"*/*"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/watch/pods",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.PodList",
"method": "GET",
"summary": "watch a list of Pod",
"nickname": "watchPodlist",
"parameters": [],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/ns/{ns}/replicationcontrollers/{name}",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.ReplicationController",
"method": "GET",
"summary": "read the specified ReplicationController",
"nickname": "readReplicationController",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the ReplicationController",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "PUT",
"summary": "update the specified ReplicationController",
"nickname": "updateReplicationController",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the ReplicationController",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
},
{
"type": "v1beta3.ReplicationController",
"paramType": "body",
"name": "body",
"description": "",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
},
{
"type": "void",
"method": "DELETE",
"summary": "delete a ReplicationController",
"nickname": "deleteReplicationController",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the ReplicationController",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/redirect/ns/{ns}/services/{name}",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "void",
"method": "GET",
"summary": "redirect GET request to Service",
"nickname": "redirectService",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Service",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"*/*"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/watch/limitranges",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "v1beta3.LimitRangeList",
"method": "GET",
"summary": "watch a list of LimitRange",
"nickname": "watchLimitRangelist",
"parameters": [],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta3/redirect/ns/{ns}/pods/{name}",
"description": "API at /api/v1beta3 version v1beta3",
"operations": [
{
"type": "void",
"method": "GET",
"summary": "redirect GET request to Pod",
"nickname": "redirectPod",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Pod",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "ns",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
}
],
"produces": [
"*/*"
],
"consumes": [
"*/*"
]
}
]
}
],
"models": {
"v1beta3.Binding": {
"id": "v1beta3.Binding",
"required": [
"podID",
"host"
],
"properties": {
"annotations": {
"type": "v1beta3.ObjectMeta.annotations"
},
"apiVersion": {
"type": "string"
},
"creationTimestamp": {
"type": "string"
},
"generateName": {
"type": "string",
"description": "an optional prefix to use to generate a unique name; has the same validation rules as name; optional, and is applied only name if is not specified"
},
"host": {
"type": "string"
},
"kind": {
"type": "string"
},
"labels": {
"type": "v1beta3.ObjectMeta.labels"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"podID": {
"type": "string"
},
"resourceVersion": {
"type": "string"
},
"selfLink": {
"type": "string"
},
"uid": {
"type": "types.UID"
}
}
},
"v1beta3.Capabilities": {
"id": "v1beta3.Capabilities",
"properties": {
"add": {
"type": "array",
"items": [
{
"$ref": "v1beta3.CapabilityType"
}
]
},
"drop": {
"type": "array",
"items": [
{
"$ref": "v1beta3.CapabilityType"
}
]
}
}
},
"v1beta3.CapabilityType": {
"id": "v1beta3.CapabilityType",
"properties": {}
},
"v1beta3.Container": {
"id": "v1beta3.Container",
"required": [
"name",
"image",
"imagePullPolicy"
],
"properties": {
"capabilities": {
"type": "v1beta3.Capabilities"
},
"command": {
"type": "array",
"items": [
{
"$ref": "string"
}
]
},
"env": {
"type": "array",
"items": [
{
"$ref": "v1beta3.EnvVar"
}
]
},
"image": {
"type": "string"
},
"imagePullPolicy": {
"type": "v1beta3.PullPolicy"
},
"lifecycle": {
"type": "v1beta3.Lifecycle"
},
"livenessProbe": {
"type": "v1beta3.Probe"
},
"name": {
"type": "string"
},
"ports": {
"type": "array",
"items": [
{
"$ref": "v1beta3.Port"
}
]
},
"privileged": {
"type": "boolean"
},
"resources": {
"type": "v1beta3.ResourceRequirementSpec",
"description": "Compute Resources required by this container"
},
"terminationMessagePath": {
"type": "string"
},
"volumeMounts": {
"type": "array",
"items": [
{
"$ref": "v1beta3.VolumeMount"
}
]
},
"workingDir": {
"type": "string"
}
}
},
"v1beta3.EmptyDir": {
"id": "v1beta3.EmptyDir",
"properties": {}
},
"v1beta3.Endpoints": {
"id": "v1beta3.Endpoints",
"required": [
"endpoints"
],
"properties": {
"annotations": {
"type": "v1beta3.ObjectMeta.annotations"
},
"apiVersion": {
"type": "string"
},
"creationTimestamp": {
"type": "string"
},
"endpoints": {
"type": "array",
"items": [
{
"$ref": "string"
}
]
},
"generateName": {
"type": "string",
"description": "an optional prefix to use to generate a unique name; has the same validation rules as name; optional, and is applied only name if is not specified"
},
"kind": {
"type": "string"
},
"labels": {
"type": "v1beta3.ObjectMeta.labels"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"resourceVersion": {
"type": "string"
},
"selfLink": {
"type": "string"
},
"uid": {
"type": "types.UID"
}
}
},
"v1beta3.EndpointsList": {
"id": "v1beta3.EndpointsList",
"required": [
"items"
],
"properties": {
"apiVersion": {
"type": "string"
},
"items": {
"type": "array",
"items": [
{
"$ref": "v1beta3.Endpoints"
}
]
},
"kind": {
"type": "string"
},
"resourceVersion": {
"type": "string"
},
"selfLink": {
"type": "string"
}
}
},
"v1beta3.EnvVar": {
"id": "v1beta3.EnvVar",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
}
}
},
"v1beta3.Event": {
"id": "v1beta3.Event",
"properties": {
"annotations": {
"type": "v1beta3.ObjectMeta.annotations"
},
"apiVersion": {
"type": "string"
},
"creationTimestamp": {
"type": "string"
},
"generateName": {
"type": "string",
"description": "an optional prefix to use to generate a unique name; has the same validation rules as name; optional, and is applied only name if is not specified"
},
"involvedObject": {
"type": "v1beta3.ObjectReference"
},
"kind": {
"type": "string"
},
"labels": {
"type": "v1beta3.ObjectMeta.labels"
},
"message": {
"type": "string"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"reason": {
"type": "string"
},
"resourceVersion": {
"type": "string"
},
"selfLink": {
"type": "string"
},
"source": {
"type": "v1beta3.EventSource"
},
"timestamp": {
"type": "string"
},
"uid": {
"type": "types.UID"
}
}
},
"v1beta3.EventList": {
"id": "v1beta3.EventList",
"required": [
"items"
],
"properties": {
"apiVersion": {
"type": "string"
},
"items": {
"type": "array",
"items": [
{
"$ref": "v1beta3.Event"
}
]
},
"kind": {
"type": "string"
},
"resourceVersion": {
"type": "string"
},
"selfLink": {
"type": "string"
}
}
},
"v1beta3.EventSource": {
"id": "v1beta3.EventSource",
"properties": {
"component": {
"type": "string"
},
"host": {
"type": "string"
}
}
},
"v1beta3.ExecAction": {
"id": "v1beta3.ExecAction",
"properties": {
"command": {
"type": "array",
"items": [
{
"$ref": "string"
}
]
}
}
},
"v1beta3.GCEPersistentDisk": {
"id": "v1beta3.GCEPersistentDisk",
"required": [
"pdName"
],
"properties": {
"fsType": {
"type": "string"
},
"partition": {
"type": "integer",
"format": "int32"
},
"pdName": {
"type": "string"
},
"readOnly": {
"type": "boolean"
}
}
},
"v1beta3.GitRepo": {
"id": "v1beta3.GitRepo",
"required": [
"repository",
"revision"
],
"properties": {
"repository": {
"type": "string"
},
"revision": {
"type": "string"
}
}
},
"v1beta3.HTTPGetAction": {
"id": "v1beta3.HTTPGetAction",
"properties": {
"host": {
"type": "string"
},
"path": {
"type": "string"
},
"port": {
"type": "string"
}
}
},
"v1beta3.Handler": {
"id": "v1beta3.Handler",
"properties": {
"exec": {
"type": "v1beta3.ExecAction"
},
"httpGet": {
"type": "v1beta3.HTTPGetAction"
},
"tcpSocket": {
"type": "v1beta3.TCPSocketAction"
}
}
},
"v1beta3.HostPath": {
"id": "v1beta3.HostPath",
"required": [
"path"
],
"properties": {
"path": {
"type": "string"
}
}
},
"v1beta3.Lifecycle": {
"id": "v1beta3.Lifecycle",
"properties": {
"postStart": {
"type": "v1beta3.Handler"
},
"preStop": {
"type": "v1beta3.Handler"
}
}
},
"v1beta3.LimitRange": {
"id": "v1beta3.LimitRange",
"properties": {
"annotations": {
"type": "v1beta3.ObjectMeta.annotations"
},
"apiVersion": {
"type": "string"
},
"creationTimestamp": {
"type": "string"
},
"generateName": {
"type": "string",
"description": "an optional prefix to use to generate a unique name; has the same validation rules as name; optional, and is applied only name if is not specified"
},
"kind": {
"type": "string"
},
"labels": {
"type": "v1beta3.ObjectMeta.labels"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"resourceVersion": {
"type": "string"
},
"selfLink": {
"type": "string"
},
"spec": {
"type": "v1beta3.LimitRangeSpec"
},
"uid": {
"type": "types.UID"
}
}
},
"v1beta3.LimitRangeItem": {
"id": "v1beta3.LimitRangeItem",
"properties": {
"max": {
"type": "v1beta3.ResourceList"
},
"min": {
"type": "v1beta3.ResourceList"
},
"type": {
"type": "v1beta3.LimitType"
}
}
},
"v1beta3.LimitRangeList": {
"id": "v1beta3.LimitRangeList",
"required": [
"items"
],
"properties": {
"apiVersion": {
"type": "string"
},
"items": {
"type": "array",
"items": [
{
"$ref": "v1beta3.LimitRange"
}
]
},
"kind": {
"type": "string"
},
"resourceVersion": {
"type": "string"
},
"selfLink": {
"type": "string"
}
}
},
"v1beta3.LimitRangeSpec": {
"id": "v1beta3.LimitRangeSpec",
"required": [
"limits"
],
"properties": {
"limits": {
"type": "array",
"items": [
{
"$ref": "v1beta3.LimitRangeItem"
}
]
}
}
},
"v1beta3.Node": {
"id": "v1beta3.Node",
"properties": {
"annotations": {
"type": "v1beta3.ObjectMeta.annotations"
},
"apiVersion": {
"type": "string"
},
"creationTimestamp": {
"type": "string"
},
"generateName": {
"type": "string",
"description": "an optional prefix to use to generate a unique name; has the same validation rules as name; optional, and is applied only name if is not specified"
},
"kind": {
"type": "string"
},
"labels": {
"type": "v1beta3.ObjectMeta.labels"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"resourceVersion": {
"type": "string"
},
"selfLink": {
"type": "string"
},
"spec": {
"type": "v1beta3.NodeSpec"
},
"status": {
"type": "v1beta3.NodeStatus"
},
"uid": {
"type": "types.UID"
}
}
},
"v1beta3.NodeCondition": {
"id": "v1beta3.NodeCondition",
"required": [
"kind",
"status"
],
"properties": {
"kind": {
"type": "v1beta3.NodeConditionKind"
},
"lastTransitionTime": {
"type": "string"
},
"message": {
"type": "string"
},
"reason": {
"type": "string"
},
"status": {
"type": "v1beta3.NodeConditionStatus"
}
}
},
"v1beta3.NodeList": {
"id": "v1beta3.NodeList",
"required": [
"items"
],
"properties": {
"apiVersion": {
"type": "string"
},
"items": {
"type": "array",
"items": [
{
"$ref": "v1beta3.Node"
}
]
},
"kind": {
"type": "string"
},
"resourceVersion": {
"type": "string"
},
"selfLink": {
"type": "string"
}
}
},
"v1beta3.NodeSpec": {
"id": "v1beta3.NodeSpec",
"properties": {
"capacity": {
"type": "v1beta3.ResourceList"
}
}
},
"v1beta3.NodeStatus": {
"id": "v1beta3.NodeStatus",
"properties": {
"conditions": {
"type": "array",
"items": [
{
"$ref": "v1beta3.NodeCondition"
}
]
},
"hostIP": {
"type": "string"
},
"phase": {
"type": "v1beta3.NodePhase"
}
}
},
"v1beta3.ObjectReference": {
"id": "v1beta3.ObjectReference",
"properties": {
"apiVersion": {
"type": "string"
},
"fieldPath": {
"type": "string"
},
"kind": {
"type": "string"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"resourceVersion": {
"type": "string"
},
"uid": {
"type": "types.UID"
}
}
},
"v1beta3.Pod": {
"id": "v1beta3.Pod",
"properties": {
"annotations": {
"type": "v1beta3.ObjectMeta.annotations"
},
"apiVersion": {
"type": "string"
},
"creationTimestamp": {
"type": "string"
},
"generateName": {
"type": "string",
"description": "an optional prefix to use to generate a unique name; has the same validation rules as name; optional, and is applied only name if is not specified"
},
"kind": {
"type": "string"
},
"labels": {
"type": "v1beta3.ObjectMeta.labels"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"resourceVersion": {
"type": "string"
},
"selfLink": {
"type": "string"
},
"spec": {
"type": "v1beta3.PodSpec"
},
"status": {
"type": "v1beta3.PodStatus"
},
"uid": {
"type": "types.UID"
}
}
},
"v1beta3.PodList": {
"id": "v1beta3.PodList",
"required": [
"items"
],
"properties": {
"apiVersion": {
"type": "string"
},
"items": {
"type": "array",
"items": [
{
"$ref": "v1beta3.Pod"
}
]
},
"kind": {
"type": "string"
},
"resourceVersion": {
"type": "string"
},
"selfLink": {
"type": "string"
}
}
},
"v1beta3.PodSpec": {
"id": "v1beta3.PodSpec",
"required": [
"volumes",
"containers"
],
"properties": {
"containers": {
"type": "array",
"items": [
{
"$ref": "v1beta3.Container"
}
]
},
"dnsPolicy": {
"type": "v1beta3.DNSPolicy"
},
"host": {
"type": "string",
"description": "host requested for this pod"
},
"nodeSelector": {
"type": "v1beta3.PodSpec.nodeSelector"
},
"restartPolicy": {
"type": "v1beta3.RestartPolicy"
},
"volumes": {
"type": "array",
"items": [
{
"$ref": "v1beta3.Volume"
}
]
}
}
},
"v1beta3.PodSpec.nodeSelector": {
"id": "v1beta3.PodSpec.nodeSelector",
"properties": {}
},
"v1beta3.PodStatus": {
"id": "v1beta3.PodStatus",
"properties": {
"host": {
"type": "string"
},
"hostIP": {
"type": "string"
},
"info": {
"type": "v1beta3.PodInfo"
},
"message": {
"type": "string"
},
"phase": {
"type": "v1beta3.PodPhase"
},
"podIP": {
"type": "string"
}
}
},
"v1beta3.PodTemplateSpec": {
"id": "v1beta3.PodTemplateSpec",
"properties": {
"annotations": {
"type": "v1beta3.ObjectMeta.annotations"
},
"creationTimestamp": {
"type": "string"
},
"generateName": {
"type": "string",
"description": "an optional prefix to use to generate a unique name; has the same validation rules as name; optional, and is applied only name if is not specified"
},
"labels": {
"type": "v1beta3.ObjectMeta.labels"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"resourceVersion": {
"type": "string"
},
"selfLink": {
"type": "string"
},
"spec": {
"type": "v1beta3.PodSpec"
},
"uid": {
"type": "types.UID"
}
}
},
"v1beta3.Port": {
"id": "v1beta3.Port",
"required": [
"containerPort"
],
"properties": {
"containerPort": {
"type": "integer",
"format": "int32"
},
"hostIP": {
"type": "string"
},
"hostPort": {
"type": "integer",
"format": "int32"
},
"name": {
"type": "string"
},
"protocol": {
"type": "v1beta3.Protocol"
}
}
},
"v1beta3.Probe": {
"id": "v1beta3.Probe",
"properties": {
"exec": {
"type": "v1beta3.ExecAction"
},
"httpGet": {
"type": "v1beta3.HTTPGetAction"
},
"initialDelaySeconds": {
"type": "integer",
"format": "int64"
},
"tcpSocket": {
"type": "v1beta3.TCPSocketAction"
}
}
},
"v1beta3.ReplicationController": {
"id": "v1beta3.ReplicationController",
"properties": {
"annotations": {
"type": "v1beta3.ObjectMeta.annotations"
},
"apiVersion": {
"type": "string"
},
"creationTimestamp": {
"type": "string"
},
"generateName": {
"type": "string",
"description": "an optional prefix to use to generate a unique name; has the same validation rules as name; optional, and is applied only name if is not specified"
},
"kind": {
"type": "string"
},
"labels": {
"type": "v1beta3.ObjectMeta.labels"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"resourceVersion": {
"type": "string"
},
"selfLink": {
"type": "string"
},
"spec": {
"type": "v1beta3.ReplicationControllerSpec"
},
"status": {
"type": "v1beta3.ReplicationControllerStatus"
},
"uid": {
"type": "types.UID"
}
}
},
"v1beta3.ReplicationControllerList": {
"id": "v1beta3.ReplicationControllerList",
"required": [
"items"
],
"properties": {
"apiVersion": {
"type": "string"
},
"items": {
"type": "array",
"items": [
{
"$ref": "v1beta3.ReplicationController"
}
]
},
"kind": {
"type": "string"
},
"resourceVersion": {
"type": "string"
},
"selfLink": {
"type": "string"
}
}
},
"v1beta3.ReplicationControllerSpec": {
"id": "v1beta3.ReplicationControllerSpec",
"required": [
"replicas"
],
"properties": {
"replicas": {
"type": "integer",
"format": "int32"
},
"selector": {
"type": "v1beta3.ReplicationControllerSpec.selector"
},
"template": {
"type": "v1beta3.PodTemplateSpec"
},
"templateRef": {
"type": "v1beta3.ObjectReference"
}
}
},
"v1beta3.ReplicationControllerSpec.selector": {
"id": "v1beta3.ReplicationControllerSpec.selector",
"properties": {}
},
"v1beta3.ReplicationControllerStatus": {
"id": "v1beta3.ReplicationControllerStatus",
"required": [
"replicas"
],
"properties": {
"replicas": {
"type": "integer",
"format": "int32"
}
}
},
"v1beta3.ResourceQuota": {
"id": "v1beta3.ResourceQuota",
"properties": {
"annotations": {
"type": "v1beta3.ObjectMeta.annotations"
},
"apiVersion": {
"type": "string"
},
"creationTimestamp": {
"type": "string"
},
"generateName": {
"type": "string",
"description": "an optional prefix to use to generate a unique name; has the same validation rules as name; optional, and is applied only name if is not specified"
},
"kind": {
"type": "string"
},
"labels": {
"type": "v1beta3.ObjectMeta.labels"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"resourceVersion": {
"type": "string"
},
"selfLink": {
"type": "string"
},
"spec": {
"type": "v1beta3.ResourceQuotaSpec"
},
"status": {
"type": "v1beta3.ResourceQuotaStatus"
},
"uid": {
"type": "types.UID"
}
}
},
"v1beta3.ResourceQuotaList": {
"id": "v1beta3.ResourceQuotaList",
"required": [
"items"
],
"properties": {
"apiVersion": {
"type": "string"
},
"items": {
"type": "array",
"items": [
{
"$ref": "v1beta3.ResourceQuota"
}
]
},
"kind": {
"type": "string"
},
"resourceVersion": {
"type": "string"
},
"selfLink": {
"type": "string"
}
}
},
"v1beta3.ResourceQuotaSpec": {
"id": "v1beta3.ResourceQuotaSpec",
"properties": {
"hard": {
"type": "v1beta3.ResourceList"
}
}
},
"v1beta3.ResourceQuotaStatus": {
"id": "v1beta3.ResourceQuotaStatus",
"properties": {
"hard": {
"type": "v1beta3.ResourceList"
},
"used": {
"type": "v1beta3.ResourceList"
}
}
},
"v1beta3.ResourceQuotaUsage": {
"id": "v1beta3.ResourceQuotaUsage",
"properties": {
"annotations": {
"type": "v1beta3.ObjectMeta.annotations"
},
"apiVersion": {
"type": "string"
},
"creationTimestamp": {
"type": "string"
},
"generateName": {
"type": "string",
"description": "an optional prefix to use to generate a unique name; has the same validation rules as name; optional, and is applied only name if is not specified"
},
"kind": {
"type": "string"
},
"labels": {
"type": "v1beta3.ObjectMeta.labels"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"resourceVersion": {
"type": "string"
},
"selfLink": {
"type": "string"
},
"status": {
"type": "v1beta3.ResourceQuotaStatus"
},
"uid": {
"type": "types.UID"
}
}
},
"v1beta3.ResourceRequirementSpec": {
"id": "v1beta3.ResourceRequirementSpec",
"properties": {
"limits": {
"type": "v1beta3.ResourceList",
"description": "Maximum amount of compute resources allowed"
}
}
},
"v1beta3.RestartPolicy": {
"id": "v1beta3.RestartPolicy",
"properties": {
"always": {
"type": "v1beta3.RestartPolicyAlways"
},
"never": {
"type": "v1beta3.RestartPolicyNever"
},
"onFailure": {
"type": "v1beta3.RestartPolicyOnFailure"
}
}
},
"v1beta3.RestartPolicyAlways": {
"id": "v1beta3.RestartPolicyAlways",
"properties": {}
},
"v1beta3.RestartPolicyNever": {
"id": "v1beta3.RestartPolicyNever",
"properties": {}
},
"v1beta3.RestartPolicyOnFailure": {
"id": "v1beta3.RestartPolicyOnFailure",
"properties": {}
},
"v1beta3.Service": {
"id": "v1beta3.Service",
"properties": {
"annotations": {
"type": "v1beta3.ObjectMeta.annotations"
},
"apiVersion": {
"type": "string"
},
"creationTimestamp": {
"type": "string"
},
"generateName": {
"type": "string",
"description": "an optional prefix to use to generate a unique name; has the same validation rules as name; optional, and is applied only name if is not specified"
},
"kind": {
"type": "string"
},
"labels": {
"type": "v1beta3.ObjectMeta.labels"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"resourceVersion": {
"type": "string"
},
"selfLink": {
"type": "string"
},
"spec": {
"type": "v1beta3.ServiceSpec"
},
"status": {
"type": "v1beta3.ServiceStatus"
},
"uid": {
"type": "types.UID"
}
}
},
"v1beta3.ServiceSpec": {
"id": "v1beta3.ServiceSpec",
"required": [
"port",
"selector"
],
"properties": {
"containerPort": {
"type": "string"
},
"createExternalLoadBalancer": {
"type": "boolean"
},
"port": {
"type": "integer",
"format": "int32"
},
"portalIP": {
"type": "string"
},
"protocol": {
"type": "v1beta3.Protocol"
},
"publicIPs": {
"type": "array",
"items": [
{
"$ref": "string"
}
]
},
"selector": {
"type": "v1beta3.ServiceSpec.selector"
},
"sessionAffinity": {
"type": "v1beta3.AffinityType"
}
}
},
"v1beta3.ServiceSpec.selector": {
"id": "v1beta3.ServiceSpec.selector",
"properties": {}
},
"v1beta3.ServiceStatus": {
"id": "v1beta3.ServiceStatus",
"properties": {}
},
"v1beta3.TCPSocketAction": {
"id": "v1beta3.TCPSocketAction",
"properties": {
"port": {
"type": "string"
}
}
},
"v1beta3.Volume": {
"id": "v1beta3.Volume",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
},
"source": {
"type": "v1beta3.VolumeSource"
}
}
},
"v1beta3.VolumeMount": {
"id": "v1beta3.VolumeMount",
"required": [
"name",
"mountPath"
],
"properties": {
"mountPath": {
"type": "string"
},
"name": {
"type": "string"
},
"readOnly": {
"type": "boolean"
}
}
},
"v1beta3.VolumeSource": {
"id": "v1beta3.VolumeSource",
"required": [
"hostPath",
"emptyDir",
"gcePersistentDisk",
"gitRepo"
],
"properties": {
"emptyDir": {
"type": "v1beta3.EmptyDir"
},
"gcePersistentDisk": {
"type": "v1beta3.GCEPersistentDisk"
},
"gitRepo": {
"type": "v1beta3.GitRepo"
},
"hostPath": {
"type": "v1beta3.HostPath"
}
}
}
}
}
\ No newline at end of file
{
"swaggerVersion": "1.2",
"apiVersion": "",
"basePath": "127.0.0.1:8050",
"resourcePath": "/version",
"apis": [
{
"path": "/version",
"description": "git code version from which this is built",
"operations": [
{
"type": "void",
"method": "GET",
"summary": "get the code version",
"nickname": "getCodeVersion",
"parameters": [],
"produces": [
"application/json"
],
"consumes": [
"application/json"
]
}
]
}
]
}
\ No newline at end of file
#!/bin/bash
# Copyright 2015 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Script to fetch latest swagger spec.
# Puts the updated spec at swagger-spec/
set -o errexit
set -o nounset
set -o pipefail
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
SWAGGER_ROOT_DIR="${KUBE_ROOT}/api/swagger-spec"
source "${KUBE_ROOT}/hack/lib/init.sh"
function cleanup()
{
[[ -n ${APISERVER_PID-} ]] && kill ${APISERVER_PID} 1>&2 2>/dev/null
kube::etcd::cleanup
kube::log::status "Clean up complete"
}
trap cleanup EXIT SIGINT
kube::etcd::start
ETCD_HOST=${ETCD_HOST:-127.0.0.1}
ETCD_PORT=${ETCD_PORT:-4001}
API_PORT=${API_PORT:-8050}
API_HOST=${API_HOST:-127.0.0.1}
KUBELET_PORT=${KUBELET_PORT:-10250}
# Start kube-apiserver
kube::log::status "Starting kube-apiserver"
"${KUBE_OUTPUT_HOSTBIN}/kube-apiserver" \
--address="127.0.0.1" \
--public_address_override="127.0.0.1" \
--port="${API_PORT}" \
--etcd_servers="http://${ETCD_HOST}:${ETCD_PORT}" \
--public_address_override="127.0.0.1" \
--kubelet_port=${KUBELET_PORT} \
--runtime_config=api/v1beta3 \
--portal_net="10.0.0.0/24" 1>&2 &
APISERVER_PID=$!
kube::util::wait_for_url "http://127.0.0.1:${API_PORT}/healthz" "apiserver: "
SWAGGER_API_PATH="http://127.0.0.1:${API_PORT}/swaggerapi/"
kube::log::status "Updating " ${SWAGGER_ROOT_DIR}
curl ${SWAGGER_API_PATH} > ${SWAGGER_ROOT_DIR}/resourceListing.json
curl ${SWAGGER_API_PATH}version > ${SWAGGER_ROOT_DIR}/version.json
curl ${SWAGGER_API_PATH}api > ${SWAGGER_ROOT_DIR}/api.json
curl ${SWAGGER_API_PATH}api/v1beta1 > ${SWAGGER_ROOT_DIR}/v1beta1.json
curl ${SWAGGER_API_PATH}api/v1beta2 > ${SWAGGER_ROOT_DIR}/v1beta2.json
curl ${SWAGGER_API_PATH}api/v1beta3 > ${SWAGGER_ROOT_DIR}/v1beta3.json
kube::log::status "SUCCESS"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment