6b9bcf47e80dac6beced51e459b7a81f2d2856d3
[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 v1
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_CrossVersionObjectReference = map[string]string{
31         "":           "CrossVersionObjectReference contains enough information to let you identify the referred resource.",
32         "kind":       "Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds\"",
33         "name":       "Name of the referent; More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#names",
34         "apiVersion": "API version of the referent",
35 }
36
37 func (CrossVersionObjectReference) SwaggerDoc() map[string]string {
38         return map_CrossVersionObjectReference
39 }
40
41 var map_HorizontalPodAutoscaler = map[string]string{
42         "":         "configuration of a horizontal pod autoscaler.",
43         "metadata": "Standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata",
44         "spec":     "behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.",
45         "status":   "current information about the autoscaler.",
46 }
47
48 func (HorizontalPodAutoscaler) SwaggerDoc() map[string]string {
49         return map_HorizontalPodAutoscaler
50 }
51
52 var map_HorizontalPodAutoscalerList = map[string]string{
53         "":         "list of horizontal pod autoscaler objects.",
54         "metadata": "Standard list metadata.",
55         "items":    "list of horizontal pod autoscaler objects.",
56 }
57
58 func (HorizontalPodAutoscalerList) SwaggerDoc() map[string]string {
59         return map_HorizontalPodAutoscalerList
60 }
61
62 var map_HorizontalPodAutoscalerSpec = map[string]string{
63         "":                               "specification of a horizontal pod autoscaler.",
64         "scaleTargetRef":                 "reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource.",
65         "minReplicas":                    "lower limit for the number of pods that can be set by the autoscaler, default 1.",
66         "maxReplicas":                    "upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.",
67         "targetCPUUtilizationPercentage": "target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.",
68 }
69
70 func (HorizontalPodAutoscalerSpec) SwaggerDoc() map[string]string {
71         return map_HorizontalPodAutoscalerSpec
72 }
73
74 var map_HorizontalPodAutoscalerStatus = map[string]string{
75         "":                                "current status of a horizontal pod autoscaler",
76         "observedGeneration":              "most recent generation observed by this autoscaler.",
77         "lastScaleTime":                   "last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.",
78         "currentReplicas":                 "current number of replicas of pods managed by this autoscaler.",
79         "desiredReplicas":                 "desired number of replicas of pods managed by this autoscaler.",
80         "currentCPUUtilizationPercentage": "current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU.",
81 }
82
83 func (HorizontalPodAutoscalerStatus) SwaggerDoc() map[string]string {
84         return map_HorizontalPodAutoscalerStatus
85 }
86
87 var map_Scale = map[string]string{
88         "":         "Scale represents a scaling request for a resource.",
89         "metadata": "Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.",
90         "spec":     "defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.",
91         "status":   "current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only.",
92 }
93
94 func (Scale) SwaggerDoc() map[string]string {
95         return map_Scale
96 }
97
98 var map_ScaleSpec = map[string]string{
99         "":         "ScaleSpec describes the attributes of a scale subresource.",
100         "replicas": "desired number of instances for the scaled object.",
101 }
102
103 func (ScaleSpec) SwaggerDoc() map[string]string {
104         return map_ScaleSpec
105 }
106
107 var map_ScaleStatus = map[string]string{
108         "":         "ScaleStatus represents the current status of a scale subresource.",
109         "replicas": "actual number of observed instances of the scaled object.",
110         "selector": "label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors",
111 }
112
113 func (ScaleStatus) SwaggerDoc() map[string]string {
114         return map_ScaleStatus
115 }
116
117 // AUTO-GENERATED FUNCTIONS END HERE