Code refactoring for bpa operator
[icn.git] / cmd / bpa-operator / vendor / k8s.io / api / autoscaling / v2beta1 / types_swagger_doc_generated.go
1 /*
2 Copyright 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 v2beta1
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. DO NOT EDIT.
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: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds\"",
33         "name":       "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#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_ExternalMetricSource = map[string]string{
42         "":                   "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). Exactly one \"target\" type should be set.",
43         "metricName":         "metricName is the name of the metric in question.",
44         "metricSelector":     "metricSelector is used to identify a specific time series within a given metric.",
45         "targetValue":        "targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue.",
46         "targetAverageValue": "targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue.",
47 }
48
49 func (ExternalMetricSource) SwaggerDoc() map[string]string {
50         return map_ExternalMetricSource
51 }
52
53 var map_ExternalMetricStatus = map[string]string{
54         "":                    "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.",
55         "metricName":          "metricName is the name of a metric used for autoscaling in metric system.",
56         "metricSelector":      "metricSelector is used to identify a specific time series within a given metric.",
57         "currentValue":        "currentValue is the current value of the metric (as a quantity)",
58         "currentAverageValue": "currentAverageValue is the current value of metric averaged over autoscaled pods.",
59 }
60
61 func (ExternalMetricStatus) SwaggerDoc() map[string]string {
62         return map_ExternalMetricStatus
63 }
64
65 var map_HorizontalPodAutoscaler = map[string]string{
66         "":         "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.",
67         "metadata": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata",
68         "spec":     "spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.",
69         "status":   "status is the current information about the autoscaler.",
70 }
71
72 func (HorizontalPodAutoscaler) SwaggerDoc() map[string]string {
73         return map_HorizontalPodAutoscaler
74 }
75
76 var map_HorizontalPodAutoscalerCondition = map[string]string{
77         "":                   "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.",
78         "type":               "type describes the current condition",
79         "status":             "status is the status of the condition (True, False, Unknown)",
80         "lastTransitionTime": "lastTransitionTime is the last time the condition transitioned from one status to another",
81         "reason":             "reason is the reason for the condition's last transition.",
82         "message":            "message is a human-readable explanation containing details about the transition",
83 }
84
85 func (HorizontalPodAutoscalerCondition) SwaggerDoc() map[string]string {
86         return map_HorizontalPodAutoscalerCondition
87 }
88
89 var map_HorizontalPodAutoscalerList = map[string]string{
90         "":         "HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects.",
91         "metadata": "metadata is the standard list metadata.",
92         "items":    "items is the list of horizontal pod autoscaler objects.",
93 }
94
95 func (HorizontalPodAutoscalerList) SwaggerDoc() map[string]string {
96         return map_HorizontalPodAutoscalerList
97 }
98
99 var map_HorizontalPodAutoscalerSpec = map[string]string{
100         "":               "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.",
101         "scaleTargetRef": "scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count.",
102         "minReplicas":    "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod.",
103         "maxReplicas":    "maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.",
104         "metrics":        "metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used).  The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods.  Ergo, metrics used must decrease as the pod count is increased, and vice-versa.  See the individual metric source types for more information about how each type of metric must respond.",
105 }
106
107 func (HorizontalPodAutoscalerSpec) SwaggerDoc() map[string]string {
108         return map_HorizontalPodAutoscalerSpec
109 }
110
111 var map_HorizontalPodAutoscalerStatus = map[string]string{
112         "":                   "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.",
113         "observedGeneration": "observedGeneration is the most recent generation observed by this autoscaler.",
114         "lastScaleTime":      "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed.",
115         "currentReplicas":    "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.",
116         "desiredReplicas":    "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.",
117         "currentMetrics":     "currentMetrics is the last read state of the metrics used by this autoscaler.",
118         "conditions":         "conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.",
119 }
120
121 func (HorizontalPodAutoscalerStatus) SwaggerDoc() map[string]string {
122         return map_HorizontalPodAutoscalerStatus
123 }
124
125 var map_MetricSpec = map[string]string{
126         "":         "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).",
127         "type":     "type is the type of metric source.  It should be one of \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object.",
128         "object":   "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).",
129         "pods":     "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second).  The values will be averaged together before being compared to the target value.",
130         "resource": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
131         "external": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).",
132 }
133
134 func (MetricSpec) SwaggerDoc() map[string]string {
135         return map_MetricSpec
136 }
137
138 var map_MetricStatus = map[string]string{
139         "":         "MetricStatus describes the last-read state of a single metric.",
140         "type":     "type is the type of metric source.  It will be one of \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object.",
141         "object":   "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).",
142         "pods":     "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second).  The values will be averaged together before being compared to the target value.",
143         "resource": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
144         "external": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).",
145 }
146
147 func (MetricStatus) SwaggerDoc() map[string]string {
148         return map_MetricStatus
149 }
150
151 var map_ObjectMetricSource = map[string]string{
152         "":             "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).",
153         "target":       "target is the described Kubernetes object.",
154         "metricName":   "metricName is the name of the metric in question.",
155         "targetValue":  "targetValue is the target value of the metric (as a quantity).",
156         "selector":     "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics.",
157         "averageValue": "averageValue is the target value of the average of the metric across all relevant pods (as a quantity)",
158 }
159
160 func (ObjectMetricSource) SwaggerDoc() map[string]string {
161         return map_ObjectMetricSource
162 }
163
164 var map_ObjectMetricStatus = map[string]string{
165         "":             "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).",
166         "target":       "target is the described Kubernetes object.",
167         "metricName":   "metricName is the name of the metric in question.",
168         "currentValue": "currentValue is the current value of the metric (as a quantity).",
169         "selector":     "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics.",
170         "averageValue": "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)",
171 }
172
173 func (ObjectMetricStatus) SwaggerDoc() map[string]string {
174         return map_ObjectMetricStatus
175 }
176
177 var map_PodsMetricSource = map[string]string{
178         "":                   "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.",
179         "metricName":         "metricName is the name of the metric in question",
180         "targetAverageValue": "targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)",
181         "selector":           "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics.",
182 }
183
184 func (PodsMetricSource) SwaggerDoc() map[string]string {
185         return map_PodsMetricSource
186 }
187
188 var map_PodsMetricStatus = map[string]string{
189         "":                    "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).",
190         "metricName":          "metricName is the name of the metric in question",
191         "currentAverageValue": "currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity)",
192         "selector":            "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics.",
193 }
194
195 func (PodsMetricStatus) SwaggerDoc() map[string]string {
196         return map_PodsMetricStatus
197 }
198
199 var map_ResourceMetricSource = map[string]string{
200         "":                         "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory).  The values will be averaged together before being compared to the target.  Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.  Only one \"target\" type should be set.",
201         "name":                     "name is the name of the resource in question.",
202         "targetAverageUtilization": "targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.",
203         "targetAverageValue":       "targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type.",
204 }
205
206 func (ResourceMetricSource) SwaggerDoc() map[string]string {
207         return map_ResourceMetricSource
208 }
209
210 var map_ResourceMetricStatus = map[string]string{
211         "":                          "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory).  Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
212         "name":                      "name is the name of the resource in question.",
213         "currentAverageUtilization": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.  It will only be present if `targetAverageValue` was set in the corresponding metric specification.",
214         "currentAverageValue":       "currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification.",
215 }
216
217 func (ResourceMetricStatus) SwaggerDoc() map[string]string {
218         return map_ResourceMetricStatus
219 }
220
221 // AUTO-GENERATED FUNCTIONS END HERE