generated from crossplane/upjet-provider-template
/
zz_basicauth_types.go
executable file
·211 lines (165 loc) · 8.11 KB
/
zz_basicauth_types.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
/*
Copyright 2022 Upbound Inc.
*/
// Code generated by upjet. DO NOT EDIT.
package v1alpha1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type BasicAuthObservation struct {
// Custom error page URL.
// Custom error page URL
AccessibilityErrorRedirectURL *string `json:"accessibilityErrorRedirectUrl,omitempty" tf:"accessibility_error_redirect_url,omitempty"`
// Custom login page for this application.
// Custom login page URL
AccessibilityLoginRedirectURL *string `json:"accessibilityLoginRedirectUrl,omitempty" tf:"accessibility_login_redirect_url,omitempty"`
// Enable self-service. By default, it is false.
// Enable self service
AccessibilitySelfService *bool `json:"accessibilitySelfService,omitempty" tf:"accessibility_self_service,omitempty"`
// Application notes for admins.
// Application notes for admins.
AdminNote *string `json:"adminNote,omitempty" tf:"admin_note,omitempty"`
// Displays specific appLinks for the app. The value for each application link should be boolean.
// Displays specific appLinks for the app
AppLinksJSON *string `json:"appLinksJson,omitempty" tf:"app_links_json,omitempty"`
// The URL of the authenticating site for this app.
// Login button field
AuthURL *string `json:"authUrl,omitempty" tf:"auth_url,omitempty"`
// Display auto submit toolbar.
// Display auto submit toolbar
AutoSubmitToolbar *bool `json:"autoSubmitToolbar,omitempty" tf:"auto_submit_toolbar,omitempty"`
// Application notes for end users.
// Application notes for end users.
EnduserNote *string `json:"enduserNote,omitempty" tf:"enduser_note,omitempty"`
// Do not display application icon on mobile app.
// Do not display application icon on mobile app
HideIos *bool `json:"hideIos,omitempty" tf:"hide_ios,omitempty"`
// Do not display application icon to users.
// Do not display application icon to users
HideWeb *bool `json:"hideWeb,omitempty" tf:"hide_web,omitempty"`
// ID of the Application.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// The Application's display name.
// Pretty name of app.
Label *string `json:"label,omitempty" tf:"label,omitempty"`
// Local path to the logo. The file must be in PNG, JPG, or GIF format, and less than 1 MB in size.
// Local path to logo of the application.
Logo *string `json:"logo,omitempty" tf:"logo,omitempty"`
// Direct link of application logo.
// URL of the application's logo
LogoURL *string `json:"logoUrl,omitempty" tf:"logo_url,omitempty"`
// Name of the app.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Sign on mode of application.
SignOnMode *string `json:"signOnMode,omitempty" tf:"sign_on_mode,omitempty"`
// Status of application. ("ACTIVE" or "INACTIVE").
// Status of application.
Status *string `json:"status,omitempty" tf:"status,omitempty"`
// The URL of the sign-in page for this app.
// Login password field
URL *string `json:"url,omitempty" tf:"url,omitempty"`
}
type BasicAuthParameters struct {
// Custom error page URL.
// Custom error page URL
// +kubebuilder:validation:Optional
AccessibilityErrorRedirectURL *string `json:"accessibilityErrorRedirectUrl,omitempty" tf:"accessibility_error_redirect_url,omitempty"`
// Custom login page for this application.
// Custom login page URL
// +kubebuilder:validation:Optional
AccessibilityLoginRedirectURL *string `json:"accessibilityLoginRedirectUrl,omitempty" tf:"accessibility_login_redirect_url,omitempty"`
// Enable self-service. By default, it is false.
// Enable self service
// +kubebuilder:validation:Optional
AccessibilitySelfService *bool `json:"accessibilitySelfService,omitempty" tf:"accessibility_self_service,omitempty"`
// Application notes for admins.
// Application notes for admins.
// +kubebuilder:validation:Optional
AdminNote *string `json:"adminNote,omitempty" tf:"admin_note,omitempty"`
// Displays specific appLinks for the app. The value for each application link should be boolean.
// Displays specific appLinks for the app
// +kubebuilder:validation:Optional
AppLinksJSON *string `json:"appLinksJson,omitempty" tf:"app_links_json,omitempty"`
// The URL of the authenticating site for this app.
// Login button field
// +kubebuilder:validation:Optional
AuthURL *string `json:"authUrl,omitempty" tf:"auth_url,omitempty"`
// Display auto submit toolbar.
// Display auto submit toolbar
// +kubebuilder:validation:Optional
AutoSubmitToolbar *bool `json:"autoSubmitToolbar,omitempty" tf:"auto_submit_toolbar,omitempty"`
// Application notes for end users.
// Application notes for end users.
// +kubebuilder:validation:Optional
EnduserNote *string `json:"enduserNote,omitempty" tf:"enduser_note,omitempty"`
// Do not display application icon on mobile app.
// Do not display application icon on mobile app
// +kubebuilder:validation:Optional
HideIos *bool `json:"hideIos,omitempty" tf:"hide_ios,omitempty"`
// Do not display application icon to users.
// Do not display application icon to users
// +kubebuilder:validation:Optional
HideWeb *bool `json:"hideWeb,omitempty" tf:"hide_web,omitempty"`
// The Application's display name.
// Pretty name of app.
// +kubebuilder:validation:Optional
Label *string `json:"label,omitempty" tf:"label,omitempty"`
// Local path to the logo. The file must be in PNG, JPG, or GIF format, and less than 1 MB in size.
// Local path to logo of the application.
// +kubebuilder:validation:Optional
Logo *string `json:"logo,omitempty" tf:"logo,omitempty"`
// Status of application. ("ACTIVE" or "INACTIVE").
// Status of application.
// +kubebuilder:validation:Optional
Status *string `json:"status,omitempty" tf:"status,omitempty"`
// The URL of the sign-in page for this app.
// Login password field
// +kubebuilder:validation:Optional
URL *string `json:"url,omitempty" tf:"url,omitempty"`
}
// BasicAuthSpec defines the desired state of BasicAuth
type BasicAuthSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider BasicAuthParameters `json:"forProvider"`
}
// BasicAuthStatus defines the observed state of BasicAuth.
type BasicAuthStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider BasicAuthObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// BasicAuth is the Schema for the BasicAuths API. Creates a Basic Auth Application.
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,okta}
type BasicAuth struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.authUrl)",message="authUrl is a required parameter"
// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.label)",message="label is a required parameter"
// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.url)",message="url is a required parameter"
Spec BasicAuthSpec `json:"spec"`
Status BasicAuthStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// BasicAuthList contains a list of BasicAuths
type BasicAuthList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []BasicAuth `json:"items"`
}
// Repository type metadata.
var (
BasicAuth_Kind = "BasicAuth"
BasicAuth_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: BasicAuth_Kind}.String()
BasicAuth_KindAPIVersion = BasicAuth_Kind + "." + CRDGroupVersion.String()
BasicAuth_GroupVersionKind = CRDGroupVersion.WithKind(BasicAuth_Kind)
)
func init() {
SchemeBuilder.Register(&BasicAuth{}, &BasicAuthList{})
}