PageRenderTime 44ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/pkg/api/unversioned/types_swagger_doc_generated.go

https://gitlab.com/hasura/kubernetes
Go | 208 lines | 145 code | 37 blank | 26 comment | 0 complexity | ea0c7df5f72d8623f9e9ec6e2a17d4d7 MD5 | raw file
  1. /*
  2. Copyright 2016 The Kubernetes Authors All rights reserved.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. package unversioned
  14. // This file contains a collection of methods that can be used from go-restful to
  15. // generate Swagger API documentation for its models. Please read this PR for more
  16. // information on the implementation: https://github.com/emicklei/go-restful/pull/215
  17. //
  18. // TODOs are ignored from the parser (e.g. TODO(andronat):... || TODO:...) if and only if
  19. // they are on one line! For multiple line or blocks that you want to ignore use ---.
  20. // Any context after a --- is ignored.
  21. //
  22. // Those methods can be generated by using hack/update-generated-swagger-docs.sh
  23. // AUTO-GENERATED FUNCTIONS START HERE
  24. var map_APIGroup = map[string]string{
  25. "": "APIGroup contains the name, the supported versions, and the preferred version of a group.",
  26. "name": "name is the name of the group.",
  27. "versions": "versions are the versions supported in this group.",
  28. "preferredVersion": "preferredVersion is the version preferred by the API server, which probably is the storage version.",
  29. "serverAddressByClientCIDRs": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.",
  30. }
  31. func (APIGroup) SwaggerDoc() map[string]string {
  32. return map_APIGroup
  33. }
  34. var map_APIGroupList = map[string]string{
  35. "": "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.",
  36. "groups": "groups is a list of APIGroup.",
  37. }
  38. func (APIGroupList) SwaggerDoc() map[string]string {
  39. return map_APIGroupList
  40. }
  41. var map_APIResource = map[string]string{
  42. "": "APIResource specifies the name of a resource and whether it is namespaced.",
  43. "name": "name is the name of the resource.",
  44. "namespaced": "namespaced indicates if a resource is namespaced or not.",
  45. "kind": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')",
  46. }
  47. func (APIResource) SwaggerDoc() map[string]string {
  48. return map_APIResource
  49. }
  50. var map_APIResourceList = map[string]string{
  51. "": "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.",
  52. "groupVersion": "groupVersion is the group and version this APIResourceList is for.",
  53. "resources": "resources contains the name of the resources and if they are namespaced.",
  54. }
  55. func (APIResourceList) SwaggerDoc() map[string]string {
  56. return map_APIResourceList
  57. }
  58. var map_APIVersions = map[string]string{
  59. "": "APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.",
  60. "versions": "versions are the api versions that are available.",
  61. "serverAddressByClientCIDRs": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.",
  62. }
  63. func (APIVersions) SwaggerDoc() map[string]string {
  64. return map_APIVersions
  65. }
  66. var map_ExportOptions = map[string]string{
  67. "": "ExportOptions is the query options to the standard REST get call.",
  68. "export": "Should this value be exported. Export strips fields that a user can not specify.`",
  69. "exact": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'",
  70. }
  71. func (ExportOptions) SwaggerDoc() map[string]string {
  72. return map_ExportOptions
  73. }
  74. var map_GroupVersionForDiscovery = map[string]string{
  75. "": "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensiblity.",
  76. "groupVersion": "groupVersion specifies the API group and version in the form \"group/version\"",
  77. "version": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.",
  78. }
  79. func (GroupVersionForDiscovery) SwaggerDoc() map[string]string {
  80. return map_GroupVersionForDiscovery
  81. }
  82. var map_LabelSelector = map[string]string{
  83. "": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.",
  84. "matchLabels": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
  85. "matchExpressions": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
  86. }
  87. func (LabelSelector) SwaggerDoc() map[string]string {
  88. return map_LabelSelector
  89. }
  90. var map_LabelSelectorRequirement = map[string]string{
  91. "": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
  92. "key": "key is the label key that the selector applies to.",
  93. "operator": "operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist.",
  94. "values": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
  95. }
  96. func (LabelSelectorRequirement) SwaggerDoc() map[string]string {
  97. return map_LabelSelectorRequirement
  98. }
  99. var map_ListMeta = map[string]string{
  100. "": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.",
  101. "selfLink": "SelfLink is a URL representing this object. Populated by the system. Read-only.",
  102. "resourceVersion": "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency",
  103. }
  104. func (ListMeta) SwaggerDoc() map[string]string {
  105. return map_ListMeta
  106. }
  107. var map_Patch = map[string]string{
  108. "": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.",
  109. }
  110. func (Patch) SwaggerDoc() map[string]string {
  111. return map_Patch
  112. }
  113. var map_RootPaths = map[string]string{
  114. "": "RootPaths lists the paths available at root. For example: \"/healthz\", \"/apis\".",
  115. "paths": "paths are the paths available at root.",
  116. }
  117. func (RootPaths) SwaggerDoc() map[string]string {
  118. return map_RootPaths
  119. }
  120. var map_ServerAddressByClientCIDR = map[string]string{
  121. "": "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.",
  122. "clientCIDR": "The CIDR with which clients can match their IP to figure out the server address that they should use.",
  123. "serverAddress": "Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.",
  124. }
  125. func (ServerAddressByClientCIDR) SwaggerDoc() map[string]string {
  126. return map_ServerAddressByClientCIDR
  127. }
  128. var map_Status = map[string]string{
  129. "": "Status is a return value for calls that don't return other objects.",
  130. "metadata": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds",
  131. "status": "Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status",
  132. "message": "A human-readable description of the status of this operation.",
  133. "reason": "A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.",
  134. "details": "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type.",
  135. "code": "Suggested HTTP return code for this status, 0 if not set.",
  136. }
  137. func (Status) SwaggerDoc() map[string]string {
  138. return map_Status
  139. }
  140. var map_StatusCause = map[string]string{
  141. "": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.",
  142. "reason": "A machine-readable description of the cause of the error. If this value is empty there is no information available.",
  143. "message": "A human-readable description of the cause of the error. This field may be presented as-is to a reader.",
  144. "field": "The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"",
  145. }
  146. func (StatusCause) SwaggerDoc() map[string]string {
  147. return map_StatusCause
  148. }
  149. var map_StatusDetails = map[string]string{
  150. "": "StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.",
  151. "name": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).",
  152. "group": "The group attribute of the resource associated with the status StatusReason.",
  153. "kind": "The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds",
  154. "causes": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.",
  155. "retryAfterSeconds": "If specified, the time in seconds before the operation should be retried.",
  156. }
  157. func (StatusDetails) SwaggerDoc() map[string]string {
  158. return map_StatusDetails
  159. }
  160. var map_TypeMeta = map[string]string{
  161. "": "TypeMeta describes an individual object in an API response or request with strings representing the type of the object and its API schema version. Structures that are versioned or persisted should inline TypeMeta.",
  162. "kind": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds",
  163. "apiVersion": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources",
  164. }
  165. func (TypeMeta) SwaggerDoc() map[string]string {
  166. return map_TypeMeta
  167. }
  168. // AUTO-GENERATED FUNCTIONS END HERE