Code refactoring for bpa operator
[icn.git] / cmd / bpa-operator / vendor / k8s.io / api / autoscaling / v1 / 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 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. 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).",
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         "":         "configuration of a horizontal pod autoscaler.",
67         "metadata": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata",
68         "spec":     "behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.",
69         "status":   "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         "":         "list of horizontal pod autoscaler objects.",
91         "metadata": "Standard list metadata.",
92         "items":    "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         "":                               "specification of a horizontal pod autoscaler.",
101         "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.",
102         "minReplicas":                    "lower limit for the number of pods that can be set by the autoscaler, default 1.",
103         "maxReplicas":                    "upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.",
104         "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.",
105 }
106
107 func (HorizontalPodAutoscalerSpec) SwaggerDoc() map[string]string {
108         return map_HorizontalPodAutoscalerSpec
109 }
110
111 var map_HorizontalPodAutoscalerStatus = map[string]string{
112         "":                                "current status of a horizontal pod autoscaler",
113         "observedGeneration":              "most recent generation observed by this autoscaler.",
114         "lastScaleTime":                   "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":                 "current number of replicas of pods managed by this autoscaler.",
116         "desiredReplicas":                 "desired number of replicas of pods managed by this autoscaler.",
117         "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.",
118 }
119
120 func (HorizontalPodAutoscalerStatus) SwaggerDoc() map[string]string {
121         return map_HorizontalPodAutoscalerStatus
122 }
123
124 var map_MetricSpec = map[string]string{
125         "":         "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).",
126         "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.",
127         "object":   "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).",
128         "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.",
129         "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.",
130         "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).",
131 }
132
133 func (MetricSpec) SwaggerDoc() map[string]string {
134         return map_MetricSpec
135 }
136
137 var map_MetricStatus = map[string]string{
138         "":         "MetricStatus describes the last-read state of a single metric.",
139         "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.",
140         "object":   "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).",
141         "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.",
142         "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.",
143         "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).",
144 }
145
146 func (MetricStatus) SwaggerDoc() map[string]string {
147         return map_MetricStatus
148 }
149
150 var map_ObjectMetricSource = map[string]string{
151         "":             "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).",
152         "target":       "target is the described Kubernetes object.",
153         "metricName":   "metricName is the name of the metric in question.",
154         "targetValue":  "targetValue is the target value of the metric (as a quantity).",
155         "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.",
156         "averageValue": "averageValue is the target value of the average of the metric across all relevant pods (as a quantity)",
157 }
158
159 func (ObjectMetricSource) SwaggerDoc() map[string]string {
160         return map_ObjectMetricSource
161 }
162
163 var map_ObjectMetricStatus = map[string]string{
164         "":             "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).",
165         "target":       "target is the described Kubernetes object.",
166         "metricName":   "metricName is the name of the metric in question.",
167         "currentValue": "currentValue is the current value of the metric (as a quantity).",
168         "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.",
169         "averageValue": "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)",
170 }
171
172 func (ObjectMetricStatus) SwaggerDoc() map[string]string {
173         return map_ObjectMetricStatus
174 }
175
176 var map_PodsMetricSource = map[string]string{
177         "":                   "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.",
178         "metricName":         "metricName is the name of the metric in question",
179         "targetAverageValue": "targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)",
180         "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.",
181 }
182
183 func (PodsMetricSource) SwaggerDoc() map[string]string {
184         return map_PodsMetricSource
185 }
186
187 var map_PodsMetricStatus = map[string]string{
188         "":                    "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).",
189         "metricName":          "metricName is the name of the metric in question",
190         "currentAverageValue": "currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity)",
191         "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.",
192 }
193
194 func (PodsMetricStatus) SwaggerDoc() map[string]string {
195         return map_PodsMetricStatus
196 }
197
198 var map_ResourceMetricSource = map[string]string{
199         "":                         "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.",
200         "name":                     "name is the name of the resource in question.",
201         "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.",
202         "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.",
203 }
204
205 func (ResourceMetricSource) SwaggerDoc() map[string]string {
206         return map_ResourceMetricSource
207 }
208
209 var map_ResourceMetricStatus = map[string]string{
210         "":                          "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.",
211         "name":                      "name is the name of the resource in question.",
212         "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.",
213         "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.",
214 }
215
216 func (ResourceMetricStatus) SwaggerDoc() map[string]string {
217         return map_ResourceMetricStatus
218 }
219
220 var map_Scale = map[string]string{
221         "":         "Scale represents a scaling request for a resource.",
222         "metadata": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.",
223         "spec":     "defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.",
224         "status":   "current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only.",
225 }
226
227 func (Scale) SwaggerDoc() map[string]string {
228         return map_Scale
229 }
230
231 var map_ScaleSpec = map[string]string{
232         "":         "ScaleSpec describes the attributes of a scale subresource.",
233         "replicas": "desired number of instances for the scaled object.",
234 }
235
236 func (ScaleSpec) SwaggerDoc() map[string]string {
237         return map_ScaleSpec
238 }
239
240 var map_ScaleStatus = map[string]string{
241         "":         "ScaleStatus represents the current status of a scale subresource.",
242         "replicas": "actual number of observed instances of the scaled object.",
243         "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://kubernetes.io/docs/user-guide/labels#label-selectors",
244 }
245
246 func (ScaleStatus) SwaggerDoc() map[string]string {
247         return map_ScaleStatus
248 }
249
250 // AUTO-GENERATED FUNCTIONS END HERE