blob: 7394535d9d9c81eb131b72115d34835cd46bd660 [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_PartialObjectMetadata = map[string]string{
31 "": "PartialObjectMetadata is a generic representation of any object with ObjectMeta. It allows clients to get access to a particular ObjectMeta schema without knowing the details of the version.",
32 "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata",
33}
34
35func (PartialObjectMetadata) SwaggerDoc() map[string]string {
36 return map_PartialObjectMetadata
37}
38
39var map_PartialObjectMetadataList = map[string]string{
40 "": "PartialObjectMetadataList contains a list of objects containing only their metadata",
41 "items": "items contains each of the included items.",
42}
43
44func (PartialObjectMetadataList) SwaggerDoc() map[string]string {
45 return map_PartialObjectMetadataList
46}
47
48var map_Table = map[string]string{
49 "": "Table is a tabular representation of a set of API resources. The server transforms the object into a set of preferred columns for quickly reviewing the objects.",
50 "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds",
51 "columnDefinitions": "columnDefinitions describes each column in the returned items array. The number of cells per row will always match the number of column definitions.",
52 "rows": "rows is the list of items in the table.",
53}
54
55func (Table) SwaggerDoc() map[string]string {
56 return map_Table
57}
58
59var map_TableColumnDefinition = map[string]string{
60 "": "TableColumnDefinition contains information about a column returned in the Table.",
61 "name": "name is a human readable name for the column.",
62 "type": "type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.",
63 "format": "format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.",
64 "description": "description is a human readable description of this column.",
65 "priority": "priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a higher priority.",
66}
67
68func (TableColumnDefinition) SwaggerDoc() map[string]string {
69 return map_TableColumnDefinition
70}
71
72var map_TableOptions = map[string]string{
73 "": "TableOptions are used when a Table is requested by the caller.",
74 "includeObject": "includeObject decides whether to include each object along with its columnar information. Specifying \"None\" will return no object, specifying \"Object\" will return the full object contents, and specifying \"Metadata\" (the default) will return the object's metadata in the PartialObjectMetadata kind in version v1beta1 of the meta.k8s.io API group.",
75}
76
77func (TableOptions) SwaggerDoc() map[string]string {
78 return map_TableOptions
79}
80
81var map_TableRow = map[string]string{
82 "": "TableRow is an individual row in a table.",
83 "cells": "cells will be as wide as headers and may contain strings, numbers (float64 or int64), booleans, simple maps, or lists, or null. See the type field of the column definition for a more detailed description.",
84 "conditions": "conditions describe additional status of a row that are relevant for a human user.",
85 "object": "This field contains the requested additional information about each object based on the includeObject policy when requesting the Table. If \"None\", this field is empty, if \"Object\" this will be the default serialization of the object for the current API version, and if \"Metadata\" (the default) will contain the object metadata. Check the returned kind and apiVersion of the object before parsing.",
86}
87
88func (TableRow) SwaggerDoc() map[string]string {
89 return map_TableRow
90}
91
92var map_TableRowCondition = map[string]string{
93 "": "TableRowCondition allows a row to be marked with additional information.",
94 "type": "Type of row condition.",
95 "status": "Status of the condition, one of True, False, Unknown.",
96 "reason": "(brief) machine readable reason for the condition's last transition.",
97 "message": "Human readable message indicating details about last transition.",
98}
99
100func (TableRowCondition) SwaggerDoc() map[string]string {
101 return map_TableRowCondition
102}
103
104// AUTO-GENERATED FUNCTIONS END HERE