Matteo Scandolo | a428586 | 2020-12-01 18:10:10 -0800 | [diff] [blame^] | 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 v1alpha1 |
| 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_FlowDistinguisherMethod = map[string]string{ |
| 31 | "": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", |
| 32 | "type": "`type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required.", |
| 33 | } |
| 34 | |
| 35 | func (FlowDistinguisherMethod) SwaggerDoc() map[string]string { |
| 36 | return map_FlowDistinguisherMethod |
| 37 | } |
| 38 | |
| 39 | var map_FlowSchema = map[string]string{ |
| 40 | "": "FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\".", |
| 41 | "metadata": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", |
| 42 | "spec": "`spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", |
| 43 | "status": "`status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", |
| 44 | } |
| 45 | |
| 46 | func (FlowSchema) SwaggerDoc() map[string]string { |
| 47 | return map_FlowSchema |
| 48 | } |
| 49 | |
| 50 | var map_FlowSchemaCondition = map[string]string{ |
| 51 | "": "FlowSchemaCondition describes conditions for a FlowSchema.", |
| 52 | "type": "`type` is the type of the condition. Required.", |
| 53 | "status": "`status` is the status of the condition. Can be True, False, Unknown. Required.", |
| 54 | "lastTransitionTime": "`lastTransitionTime` is the last time the condition transitioned from one status to another.", |
| 55 | "reason": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", |
| 56 | "message": "`message` is a human-readable message indicating details about last transition.", |
| 57 | } |
| 58 | |
| 59 | func (FlowSchemaCondition) SwaggerDoc() map[string]string { |
| 60 | return map_FlowSchemaCondition |
| 61 | } |
| 62 | |
| 63 | var map_FlowSchemaList = map[string]string{ |
| 64 | "": "FlowSchemaList is a list of FlowSchema objects.", |
| 65 | "metadata": "`metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", |
| 66 | "items": "`items` is a list of FlowSchemas.", |
| 67 | } |
| 68 | |
| 69 | func (FlowSchemaList) SwaggerDoc() map[string]string { |
| 70 | return map_FlowSchemaList |
| 71 | } |
| 72 | |
| 73 | var map_FlowSchemaSpec = map[string]string{ |
| 74 | "": "FlowSchemaSpec describes how the FlowSchema's specification looks like.", |
| 75 | "priorityLevelConfiguration": "`priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required.", |
| 76 | "matchingPrecedence": "`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.", |
| 77 | "distinguisherMethod": "`distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string.", |
| 78 | "rules": "`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.", |
| 79 | } |
| 80 | |
| 81 | func (FlowSchemaSpec) SwaggerDoc() map[string]string { |
| 82 | return map_FlowSchemaSpec |
| 83 | } |
| 84 | |
| 85 | var map_FlowSchemaStatus = map[string]string{ |
| 86 | "": "FlowSchemaStatus represents the current state of a FlowSchema.", |
| 87 | "conditions": "`conditions` is a list of the current states of FlowSchema.", |
| 88 | } |
| 89 | |
| 90 | func (FlowSchemaStatus) SwaggerDoc() map[string]string { |
| 91 | return map_FlowSchemaStatus |
| 92 | } |
| 93 | |
| 94 | var map_GroupSubject = map[string]string{ |
| 95 | "": "GroupSubject holds detailed information for group-kind subject.", |
| 96 | "name": "name is the user group that matches, or \"*\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required.", |
| 97 | } |
| 98 | |
| 99 | func (GroupSubject) SwaggerDoc() map[string]string { |
| 100 | return map_GroupSubject |
| 101 | } |
| 102 | |
| 103 | var map_LimitResponse = map[string]string{ |
| 104 | "": "LimitResponse defines how to handle requests that can not be executed right now.", |
| 105 | "type": "`type` is \"Queue\" or \"Reject\". \"Queue\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \"Reject\" means that requests that can not be executed upon arrival are rejected. Required.", |
| 106 | "queuing": "`queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `\"Queue\"`.", |
| 107 | } |
| 108 | |
| 109 | func (LimitResponse) SwaggerDoc() map[string]string { |
| 110 | return map_LimitResponse |
| 111 | } |
| 112 | |
| 113 | var map_LimitedPriorityLevelConfiguration = map[string]string{ |
| 114 | "": "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\n * How are requests for this priority level limited?\n * What should be done with requests that exceed the limit?", |
| 115 | "assuredConcurrencyShares": "`assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) ", |
| 116 | "limitResponse": "`limitResponse` indicates what to do with requests that can not be executed right now", |
| 117 | } |
| 118 | |
| 119 | func (LimitedPriorityLevelConfiguration) SwaggerDoc() map[string]string { |
| 120 | return map_LimitedPriorityLevelConfiguration |
| 121 | } |
| 122 | |
| 123 | var map_NonResourcePolicyRule = map[string]string{ |
| 124 | "": "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.", |
| 125 | "verbs": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required.", |
| 126 | "nonResourceURLs": "`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:\n - \"/healthz\" is legal\n - \"/hea*\" is illegal\n - \"/hea\" is legal but matches nothing\n - \"/hea/*\" also matches nothing\n - \"/healthz/*\" matches all per-component health checks.\n\"*\" matches all non-resource urls. if it is present, it must be the only entry. Required.", |
| 127 | } |
| 128 | |
| 129 | func (NonResourcePolicyRule) SwaggerDoc() map[string]string { |
| 130 | return map_NonResourcePolicyRule |
| 131 | } |
| 132 | |
| 133 | var map_PolicyRulesWithSubjects = map[string]string{ |
| 134 | "": "PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.", |
| 135 | "subjects": "subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.", |
| 136 | "resourceRules": "`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.", |
| 137 | "nonResourceRules": "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.", |
| 138 | } |
| 139 | |
| 140 | func (PolicyRulesWithSubjects) SwaggerDoc() map[string]string { |
| 141 | return map_PolicyRulesWithSubjects |
| 142 | } |
| 143 | |
| 144 | var map_PriorityLevelConfiguration = map[string]string{ |
| 145 | "": "PriorityLevelConfiguration represents the configuration of a priority level.", |
| 146 | "metadata": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", |
| 147 | "spec": "`spec` is the specification of the desired behavior of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", |
| 148 | "status": "`status` is the current status of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", |
| 149 | } |
| 150 | |
| 151 | func (PriorityLevelConfiguration) SwaggerDoc() map[string]string { |
| 152 | return map_PriorityLevelConfiguration |
| 153 | } |
| 154 | |
| 155 | var map_PriorityLevelConfigurationCondition = map[string]string{ |
| 156 | "": "PriorityLevelConfigurationCondition defines the condition of priority level.", |
| 157 | "type": "`type` is the type of the condition. Required.", |
| 158 | "status": "`status` is the status of the condition. Can be True, False, Unknown. Required.", |
| 159 | "lastTransitionTime": "`lastTransitionTime` is the last time the condition transitioned from one status to another.", |
| 160 | "reason": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", |
| 161 | "message": "`message` is a human-readable message indicating details about last transition.", |
| 162 | } |
| 163 | |
| 164 | func (PriorityLevelConfigurationCondition) SwaggerDoc() map[string]string { |
| 165 | return map_PriorityLevelConfigurationCondition |
| 166 | } |
| 167 | |
| 168 | var map_PriorityLevelConfigurationList = map[string]string{ |
| 169 | "": "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.", |
| 170 | "metadata": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", |
| 171 | "items": "`items` is a list of request-priorities.", |
| 172 | } |
| 173 | |
| 174 | func (PriorityLevelConfigurationList) SwaggerDoc() map[string]string { |
| 175 | return map_PriorityLevelConfigurationList |
| 176 | } |
| 177 | |
| 178 | var map_PriorityLevelConfigurationReference = map[string]string{ |
| 179 | "": "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.", |
| 180 | "name": "`name` is the name of the priority level configuration being referenced Required.", |
| 181 | } |
| 182 | |
| 183 | func (PriorityLevelConfigurationReference) SwaggerDoc() map[string]string { |
| 184 | return map_PriorityLevelConfigurationReference |
| 185 | } |
| 186 | |
| 187 | var map_PriorityLevelConfigurationSpec = map[string]string{ |
| 188 | "": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.", |
| 189 | "type": "`type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.", |
| 190 | "limited": "`limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `\"Limited\"`.", |
| 191 | } |
| 192 | |
| 193 | func (PriorityLevelConfigurationSpec) SwaggerDoc() map[string]string { |
| 194 | return map_PriorityLevelConfigurationSpec |
| 195 | } |
| 196 | |
| 197 | var map_PriorityLevelConfigurationStatus = map[string]string{ |
| 198 | "": "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".", |
| 199 | "conditions": "`conditions` is the current state of \"request-priority\".", |
| 200 | } |
| 201 | |
| 202 | func (PriorityLevelConfigurationStatus) SwaggerDoc() map[string]string { |
| 203 | return map_PriorityLevelConfigurationStatus |
| 204 | } |
| 205 | |
| 206 | var map_QueuingConfiguration = map[string]string{ |
| 207 | "": "QueuingConfiguration holds the configuration parameters for queuing", |
| 208 | "queues": "`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64.", |
| 209 | "handSize": "`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.", |
| 210 | "queueLengthLimit": "`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50.", |
| 211 | } |
| 212 | |
| 213 | func (QueuingConfiguration) SwaggerDoc() map[string]string { |
| 214 | return map_QueuingConfiguration |
| 215 | } |
| 216 | |
| 217 | var map_ResourcePolicyRule = map[string]string{ |
| 218 | "": "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) least one member of namespaces matches the request.", |
| 219 | "verbs": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required.", |
| 220 | "apiGroups": "`apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required.", |
| 221 | "resources": "`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required.", |
| 222 | "clusterScope": "`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.", |
| 223 | "namespaces": "`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.", |
| 224 | } |
| 225 | |
| 226 | func (ResourcePolicyRule) SwaggerDoc() map[string]string { |
| 227 | return map_ResourcePolicyRule |
| 228 | } |
| 229 | |
| 230 | var map_ServiceAccountSubject = map[string]string{ |
| 231 | "": "ServiceAccountSubject holds detailed information for service-account-kind subject.", |
| 232 | "namespace": "`namespace` is the namespace of matching ServiceAccount objects. Required.", |
| 233 | "name": "`name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required.", |
| 234 | } |
| 235 | |
| 236 | func (ServiceAccountSubject) SwaggerDoc() map[string]string { |
| 237 | return map_ServiceAccountSubject |
| 238 | } |
| 239 | |
| 240 | var map_Subject = map[string]string{ |
| 241 | "": "Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.", |
| 242 | "kind": "Required", |
| 243 | } |
| 244 | |
| 245 | func (Subject) SwaggerDoc() map[string]string { |
| 246 | return map_Subject |
| 247 | } |
| 248 | |
| 249 | var map_UserSubject = map[string]string{ |
| 250 | "": "UserSubject holds detailed information for user-kind subject.", |
| 251 | "name": "`name` is the username that matches, or \"*\" to match all usernames. Required.", |
| 252 | } |
| 253 | |
| 254 | func (UserSubject) SwaggerDoc() map[string]string { |
| 255 | return map_UserSubject |
| 256 | } |
| 257 | |
| 258 | // AUTO-GENERATED FUNCTIONS END HERE |