blob: bd02ad5daa64ed77e1e5d26ee699ad139867bc9e [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 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.
30var map_Lease = map[string]string{
31 "": "Lease defines a lease concept.",
32 "metadata": "More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata",
33 "spec": "Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status",
34}
35
36func (Lease) SwaggerDoc() map[string]string {
37 return map_Lease
38}
39
40var map_LeaseList = map[string]string{
41 "": "LeaseList is a list of Lease objects.",
42 "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata",
43 "items": "Items is a list of schema objects.",
44}
45
46func (LeaseList) SwaggerDoc() map[string]string {
47 return map_LeaseList
48}
49
50var map_LeaseSpec = map[string]string{
51 "": "LeaseSpec is a specification of a Lease.",
52 "holderIdentity": "holderIdentity contains the identity of the holder of a current lease.",
53 "leaseDurationSeconds": "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime.",
54 "acquireTime": "acquireTime is a time when the current lease was acquired.",
55 "renewTime": "renewTime is a time when the current holder of a lease has last updated the lease.",
56 "leaseTransitions": "leaseTransitions is the number of transitions of a lease between holders.",
57}
58
59func (LeaseSpec) SwaggerDoc() map[string]string {
60 return map_LeaseSpec
61}
62
63// AUTO-GENERATED FUNCTIONS END HERE