forked from openshift/origin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger_doc.go
127 lines (106 loc) · 6.03 KB
/
swagger_doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
package v1
// This file contains methods that can be used by the go-restful package to generate Swagger
// documentation for the object types found in 'types.go' This file is automatically generated
// by hack/update-generated-swagger-descriptions.sh and should be run after a full build of OpenShift.
// ==== DO NOT EDIT THIS FILE MANUALLY ====
var map_ClusterRoleScopeRestriction = map[string]string{
"": "ClusterRoleScopeRestriction describes restrictions on cluster role scopes",
"roleNames": "RoleNames is the list of cluster roles that can referenced. * means anything",
"namespaces": "Namespaces is the list of namespaces that can be referenced. * means any of them (including *)",
"allowEscalation": "AllowEscalation indicates whether you can request roles and their escalating resources",
}
func (ClusterRoleScopeRestriction) SwaggerDoc() map[string]string {
return map_ClusterRoleScopeRestriction
}
var map_OAuthAccessToken = map[string]string{
"": "OAuthAccessToken describes an OAuth access token",
"metadata": "Standard object's metadata.",
"clientName": "ClientName references the client that created this token.",
"expiresIn": "ExpiresIn is the seconds from CreationTime before this token expires.",
"scopes": "Scopes is an array of the requested scopes.",
"redirectURI": "RedirectURI is the redirection associated with the token.",
"userName": "UserName is the user name associated with this token",
"userUID": "UserUID is the unique UID associated with this token",
"authorizeToken": "AuthorizeToken contains the token that authorized this token",
"refreshToken": "RefreshToken is the value by which this token can be renewed. Can be blank.",
}
func (OAuthAccessToken) SwaggerDoc() map[string]string {
return map_OAuthAccessToken
}
var map_OAuthAccessTokenList = map[string]string{
"": "OAuthAccessTokenList is a collection of OAuth access tokens",
"metadata": "Standard object's metadata.",
"items": "Items is the list of OAuth access tokens",
}
func (OAuthAccessTokenList) SwaggerDoc() map[string]string {
return map_OAuthAccessTokenList
}
var map_OAuthAuthorizeToken = map[string]string{
"": "OAuthAuthorizeToken describes an OAuth authorization token",
"metadata": "Standard object's metadata.",
"clientName": "ClientName references the client that created this token.",
"expiresIn": "ExpiresIn is the seconds from CreationTime before this token expires.",
"scopes": "Scopes is an array of the requested scopes.",
"redirectURI": "RedirectURI is the redirection associated with the token.",
"state": "State data from request",
"userName": "UserName is the user name associated with this token",
"userUID": "UserUID is the unique UID associated with this token. UserUID and UserName must both match for this token to be valid.",
}
func (OAuthAuthorizeToken) SwaggerDoc() map[string]string {
return map_OAuthAuthorizeToken
}
var map_OAuthAuthorizeTokenList = map[string]string{
"": "OAuthAuthorizeTokenList is a collection of OAuth authorization tokens",
"metadata": "Standard object's metadata.",
"items": "Items is the list of OAuth authorization tokens",
}
func (OAuthAuthorizeTokenList) SwaggerDoc() map[string]string {
return map_OAuthAuthorizeTokenList
}
var map_OAuthClient = map[string]string{
"": "OAuthClient describes an OAuth client",
"metadata": "Standard object's metadata.",
"secret": "Secret is the unique secret associated with a client",
"additionalSecrets": "AdditionalSecrets holds other secrets that may be used to identify the client. This is useful for rotation and for service account token validation",
"respondWithChallenges": "RespondWithChallenges indicates whether the client wants authentication needed responses made in the form of challenges instead of redirects",
"redirectURIs": "RedirectURIs is the valid redirection URIs associated with a client",
"scopeRestrictions": "ScopeRestrictions describes which scopes this client can request. Each requested scope is checked against each restriction. If any restriction matches, then the scope is allowed. If no restriction matches, then the scope is denied.",
}
func (OAuthClient) SwaggerDoc() map[string]string {
return map_OAuthClient
}
var map_OAuthClientAuthorization = map[string]string{
"": "OAuthClientAuthorization describes an authorization created by an OAuth client",
"metadata": "Standard object's metadata.",
"clientName": "ClientName references the client that created this authorization",
"userName": "UserName is the user name that authorized this client",
"userUID": "UserUID is the unique UID associated with this authorization. UserUID and UserName must both match for this authorization to be valid.",
"scopes": "Scopes is an array of the granted scopes.",
}
func (OAuthClientAuthorization) SwaggerDoc() map[string]string {
return map_OAuthClientAuthorization
}
var map_OAuthClientAuthorizationList = map[string]string{
"": "OAuthClientAuthorizationList is a collection of OAuth client authorizations",
"metadata": "Standard object's metadata.",
"items": "Items is the list of OAuth client authorizations",
}
func (OAuthClientAuthorizationList) SwaggerDoc() map[string]string {
return map_OAuthClientAuthorizationList
}
var map_OAuthClientList = map[string]string{
"": "OAuthClientList is a collection of OAuth clients",
"metadata": "Standard object's metadata.",
"items": "Items is the list of OAuth clients",
}
func (OAuthClientList) SwaggerDoc() map[string]string {
return map_OAuthClientList
}
var map_ScopeRestriction = map[string]string{
"": "ScopeRestriction describe one restriction on scopes. Exactly one option must be non-nil.",
"literals": "ExactValues means the scope has to match a particular set of strings exactly",
"clusterRole": "ClusterRole describes a set of restrictions for cluster role scoping.",
}
func (ScopeRestriction) SwaggerDoc() map[string]string {
return map_ScopeRestriction
}