b12ce0fd263c17d998f6b6dd09a9d0d6dce0203d
[oom/registrator.git] /
1 /*
2 Copyright 2016 The Kubernetes Authors.
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8     http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16
17 package v1alpha1
18
19 // This file contains a collection of methods that can be used from go-restful to
20 // generate Swagger API documentation for its models. Please read this PR for more
21 // information on the implementation: https://github.com/emicklei/go-restful/pull/215
22 //
23 // TODOs are ignored from the parser (e.g. TODO(andronat):... || TODO:...) if and only if
24 // they are on one line! For multiple line or blocks that you want to ignore use ---.
25 // Any context after a --- is ignored.
26 //
27 // Those methods can be generated by using hack/update-generated-swagger-docs.sh
28
29 // AUTO-GENERATED FUNCTIONS START HERE
30 var map_PodDisruptionBudget = map[string]string{
31         "":       "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods",
32         "spec":   "Specification of the desired behavior of the PodDisruptionBudget.",
33         "status": "Most recently observed status of the PodDisruptionBudget.",
34 }
35
36 func (PodDisruptionBudget) SwaggerDoc() map[string]string {
37         return map_PodDisruptionBudget
38 }
39
40 var map_PodDisruptionBudgetList = map[string]string{
41         "": "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.",
42 }
43
44 func (PodDisruptionBudgetList) SwaggerDoc() map[string]string {
45         return map_PodDisruptionBudgetList
46 }
47
48 var map_PodDisruptionBudgetSpec = map[string]string{
49         "":             "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.",
50         "minAvailable": "The minimum number of pods that must be available simultaneously.  This can be either an integer or a string specifying a percentage, e.g. \"28%\".",
51         "selector":     "Label query over pods whose evictions are managed by the disruption budget.",
52 }
53
54 func (PodDisruptionBudgetSpec) SwaggerDoc() map[string]string {
55         return map_PodDisruptionBudgetSpec
56 }
57
58 var map_PodDisruptionBudgetStatus = map[string]string{
59         "":                  "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.",
60         "disruptionAllowed": "Whether or not a disruption is currently allowed.",
61         "currentHealthy":    "current number of healthy pods",
62         "desiredHealthy":    "minimum desired number of healthy pods",
63         "expectedPods":      "total number of pods counted by this disruption budget",
64 }
65
66 func (PodDisruptionBudgetStatus) SwaggerDoc() map[string]string {
67         return map_PodDisruptionBudgetStatus
68 }
69
70 // AUTO-GENERATED FUNCTIONS END HERE