blob: bbc91ed9b3a705d75ca17677340d2bf27ce4e09c [file] [log] [blame]
Zack Williamse940c7a2019-08-21 14:25:39 -07001/*
2Copyright The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17package v1beta1
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.
30var map_Event = map[string]string{
31 "": "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.",
32 "eventTime": "Required. Time when this Event was first observed.",
33 "series": "Data about the Event series this event represents or nil if it's a singleton Event.",
34 "reportingController": "Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.",
35 "reportingInstance": "ID of the controller instance, e.g. `kubelet-xyzf`.",
36 "action": "What action was taken/failed regarding to the regarding object.",
37 "reason": "Why the action was taken.",
38 "regarding": "The object this Event is about. In most cases it's an Object reporting controller implements. E.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object.",
39 "related": "Optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object.",
40 "note": "Optional. A human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB.",
41 "type": "Type of this event (Normal, Warning), new types could be added in the future.",
42 "deprecatedSource": "Deprecated field assuring backward compatibility with core.v1 Event type",
43 "deprecatedFirstTimestamp": "Deprecated field assuring backward compatibility with core.v1 Event type",
44 "deprecatedLastTimestamp": "Deprecated field assuring backward compatibility with core.v1 Event type",
45 "deprecatedCount": "Deprecated field assuring backward compatibility with core.v1 Event type",
46}
47
48func (Event) SwaggerDoc() map[string]string {
49 return map_Event
50}
51
52var map_EventList = map[string]string{
53 "": "EventList is a list of Event objects.",
54 "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata",
55 "items": "Items is a list of schema objects.",
56}
57
58func (EventList) SwaggerDoc() map[string]string {
59 return map_EventList
60}
61
62var map_EventSeries = map[string]string{
63 "": "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.",
64 "count": "Number of occurrences in this series up to the last heartbeat time",
65 "lastObservedTime": "Time when last Event from the series was seen before last heartbeat.",
66 "state": "Information whether this series is ongoing or finished. Deprecated. Planned removal for 1.18",
67}
68
69func (EventSeries) SwaggerDoc() map[string]string {
70 return map_EventSeries
71}
72
73// AUTO-GENERATED FUNCTIONS END HERE