blob: 396fee0bf6183fcb196bfcdc96c97ebeb10a97cd [file] [log] [blame]
Matteo Scandoloa4285862020-12-01 18:10:10 -08001/*
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_CertificateSigningRequest = map[string]string{
31 "": "Describes a certificate signing request",
32 "spec": "The certificate request itself and any additional information.",
33 "status": "Derived information about the request.",
34}
35
36func (CertificateSigningRequest) SwaggerDoc() map[string]string {
37 return map_CertificateSigningRequest
38}
39
40var map_CertificateSigningRequestCondition = map[string]string{
41 "type": "type of the condition. Known conditions include \"Approved\", \"Denied\", and \"Failed\".",
42 "status": "Status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be \"False\" or \"Unknown\". Defaults to \"True\". If unset, should be treated as \"True\".",
43 "reason": "brief reason for the request state",
44 "message": "human readable message with details about the request state",
45 "lastUpdateTime": "timestamp for the last update to this condition",
46 "lastTransitionTime": "lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time.",
47}
48
49func (CertificateSigningRequestCondition) SwaggerDoc() map[string]string {
50 return map_CertificateSigningRequestCondition
51}
52
53var map_CertificateSigningRequestSpec = map[string]string{
54 "": "This information is immutable after the request is created. Only the Request and Usages fields can be set on creation, other fields are derived by Kubernetes and cannot be modified by users.",
55 "request": "Base64-encoded PKCS#10 CSR data",
56 "signerName": "Requested signer for the request. It is a qualified name in the form: `scope-hostname.io/name`. If empty, it will be defaulted:\n 1. If it's a kubelet client certificate, it is assigned\n \"kubernetes.io/kube-apiserver-client-kubelet\".\n 2. If it's a kubelet serving certificate, it is assigned\n \"kubernetes.io/kubelet-serving\".\n 3. Otherwise, it is assigned \"kubernetes.io/legacy-unknown\".\nDistribution of trust for signers happens out of band. You can select on this field using `spec.signerName`.",
57 "usages": "allowedUsages specifies a set of usage contexts the key will be valid for. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3\n https://tools.ietf.org/html/rfc5280#section-4.2.1.12\nValid values are:\n \"signing\",\n \"digital signature\",\n \"content commitment\",\n \"key encipherment\",\n \"key agreement\",\n \"data encipherment\",\n \"cert sign\",\n \"crl sign\",\n \"encipher only\",\n \"decipher only\",\n \"any\",\n \"server auth\",\n \"client auth\",\n \"code signing\",\n \"email protection\",\n \"s/mime\",\n \"ipsec end system\",\n \"ipsec tunnel\",\n \"ipsec user\",\n \"timestamping\",\n \"ocsp signing\",\n \"microsoft sgc\",\n \"netscape sgc\"",
58 "username": "Information about the requesting user. See user.Info interface for details.",
59 "uid": "UID information about the requesting user. See user.Info interface for details.",
60 "groups": "Group information about the requesting user. See user.Info interface for details.",
61 "extra": "Extra information about the requesting user. See user.Info interface for details.",
62}
63
64func (CertificateSigningRequestSpec) SwaggerDoc() map[string]string {
65 return map_CertificateSigningRequestSpec
66}
67
68var map_CertificateSigningRequestStatus = map[string]string{
69 "conditions": "Conditions applied to the request, such as approval or denial.",
70 "certificate": "If request was approved, the controller will place the issued certificate here.",
71}
72
73func (CertificateSigningRequestStatus) SwaggerDoc() map[string]string {
74 return map_CertificateSigningRequestStatus
75}
76
77// AUTO-GENERATED FUNCTIONS END HERE