k3s/api/swagger-spec/batch_v2alpha1.json

110 lines
3.5 KiB
JSON
Raw Normal View History

2016-04-25 12:58:10 +00:00
{
"swaggerVersion": "1.2",
"apiVersion": "batch/v2alpha1",
2016-06-03 18:21:17 +00:00
"basePath": "https://10.10.10.10:6443",
2016-04-25 12:58:10 +00:00
"resourcePath": "/apis/batch/v2alpha1",
2016-08-18 18:28:54 +00:00
"info": {
"title": "",
"description": ""
},
2016-04-25 12:58:10 +00:00
"apis": [
{
"path": "/apis/batch/v2alpha1",
"description": "API at /apis/batch/v2alpha1",
"operations": [
{
"type": "v1.APIResourceList",
2016-04-25 12:58:10 +00:00
"method": "GET",
"summary": "get available resources",
"nickname": "getAPIResources",
"parameters": [],
"produces": [
"application/json",
"application/yaml",
"application/vnd.kubernetes.protobuf"
],
"consumes": [
"application/json",
"application/yaml",
"application/vnd.kubernetes.protobuf"
]
}
]
}
],
"models": {
"v1.APIResourceList": {
"id": "v1.APIResourceList",
2016-04-25 12:58:10 +00:00
"description": "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.",
"required": [
"groupVersion",
"resources"
],
"properties": {
"kind": {
"type": "string",
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds"
},
"apiVersion": {
"type": "string",
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources"
},
"groupVersion": {
"type": "string",
"description": "groupVersion is the group and version this APIResourceList is for."
},
"resources": {
"type": "array",
"items": {
"$ref": "v1.APIResource"
2016-04-25 12:58:10 +00:00
},
"description": "resources contains the name of the resources and if they are namespaced."
}
}
},
"v1.APIResource": {
"id": "v1.APIResource",
2016-04-25 12:58:10 +00:00
"description": "APIResource specifies the name of a resource and whether it is namespaced.",
"required": [
"name",
"singularName",
2016-04-25 12:58:10 +00:00
"namespaced",
2016-12-05 09:56:55 +00:00
"kind",
"verbs"
2016-04-25 12:58:10 +00:00
],
"properties": {
"name": {
"type": "string",
"description": "name is the plural name of the resource."
},
"singularName": {
"type": "string",
"description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface."
2016-04-25 12:58:10 +00:00
},
"namespaced": {
"type": "boolean",
"description": "namespaced indicates if a resource is namespaced or not."
},
"kind": {
"type": "string",
"description": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')"
2016-12-05 09:56:55 +00:00
},
"verbs": {
"type": "array",
"items": {
"type": "string"
2016-12-09 18:20:40 +00:00
},
"description": "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)"
2017-01-25 20:46:20 +00:00
},
"shortNames": {
"type": "array",
"items": {
"type": "string"
},
"description": "shortNames is a list of suggested short names of the resource."
2016-04-25 12:58:10 +00:00
}
}
}
}
}