This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
generated from crossplane/provider-template
/
zz_certificate_types.go
executable file
·272 lines (189 loc) · 8.76 KB
/
zz_certificate_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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
/*
Copyright 2022 The Crossplane Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Code generated by terrajet. DO NOT EDIT.
package v1alpha2
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 ActionObservation struct {
}
type ActionParameters struct {
// +kubebuilder:validation:Required
ActionType *string `json:"actionType" tf:"action_type,omitempty"`
}
type CertificateAttributeObservation struct {
Created *string `json:"created,omitempty" tf:"created,omitempty"`
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
Expires *string `json:"expires,omitempty" tf:"expires,omitempty"`
NotBefore *string `json:"notBefore,omitempty" tf:"not_before,omitempty"`
RecoveryLevel *string `json:"recoveryLevel,omitempty" tf:"recovery_level,omitempty"`
Updated *string `json:"updated,omitempty" tf:"updated,omitempty"`
}
type CertificateAttributeParameters struct {
}
type CertificateCertificateObservation struct {
}
type CertificateCertificateParameters struct {
// +kubebuilder:validation:Required
ContentsSecretRef v1.SecretKeySelector `json:"contentsSecretRef" tf:"-"`
// +kubebuilder:validation:Optional
PasswordSecretRef *v1.SecretKeySelector `json:"passwordSecretRef,omitempty" tf:"-"`
}
type CertificateObservation struct {
CertificateAttribute []CertificateAttributeObservation `json:"certificateAttribute,omitempty" tf:"certificate_attribute,omitempty"`
CertificateData *string `json:"certificateData,omitempty" tf:"certificate_data,omitempty"`
CertificateDataBase64 *string `json:"certificateDataBase64,omitempty" tf:"certificate_data_base64,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
SecretID *string `json:"secretId,omitempty" tf:"secret_id,omitempty"`
Thumbprint *string `json:"thumbprint,omitempty" tf:"thumbprint,omitempty"`
Version *string `json:"version,omitempty" tf:"version,omitempty"`
}
type CertificateParameters struct {
// +kubebuilder:validation:Optional
Certificate []CertificateCertificateParameters `json:"certificate,omitempty" tf:"certificate,omitempty"`
// +kubebuilder:validation:Required
CertificatePolicy []CertificatePolicyParameters `json:"certificatePolicy" tf:"certificate_policy,omitempty"`
// +crossplane:generate:reference:type=Vault
// +crossplane:generate:reference:extractor=github.com/crossplane-contrib/provider-jet-azure/apis/rconfig.ExtractResourceID()
// +kubebuilder:validation:Optional
KeyVaultID *string `json:"keyVaultId,omitempty" tf:"key_vault_id,omitempty"`
// +kubebuilder:validation:Optional
KeyVaultIDRef *v1.Reference `json:"keyVaultIdRef,omitempty" tf:"-"`
// +kubebuilder:validation:Optional
KeyVaultIDSelector *v1.Selector `json:"keyVaultIdSelector,omitempty" tf:"-"`
// +kubebuilder:validation:Optional
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
}
type CertificatePolicyObservation struct {
}
type CertificatePolicyParameters struct {
// +kubebuilder:validation:Required
IssuerParameters []IssuerParametersParameters `json:"issuerParameters" tf:"issuer_parameters,omitempty"`
// +kubebuilder:validation:Required
KeyProperties []KeyPropertiesParameters `json:"keyProperties" tf:"key_properties,omitempty"`
// +kubebuilder:validation:Optional
LifetimeAction []LifetimeActionParameters `json:"lifetimeAction,omitempty" tf:"lifetime_action,omitempty"`
// +kubebuilder:validation:Required
SecretProperties []SecretPropertiesParameters `json:"secretProperties" tf:"secret_properties,omitempty"`
// +kubebuilder:validation:Optional
X509CertificateProperties []X509CertificatePropertiesParameters `json:"x509CertificateProperties,omitempty" tf:"x509_certificate_properties,omitempty"`
}
type IssuerParametersObservation struct {
}
type IssuerParametersParameters struct {
// +kubebuilder:validation:Required
Name *string `json:"name" tf:"name,omitempty"`
}
type KeyPropertiesObservation struct {
}
type KeyPropertiesParameters struct {
// +kubebuilder:validation:Optional
Curve *string `json:"curve,omitempty" tf:"curve,omitempty"`
// +kubebuilder:validation:Required
Exportable *bool `json:"exportable" tf:"exportable,omitempty"`
// +kubebuilder:validation:Optional
KeySize *float64 `json:"keySize,omitempty" tf:"key_size,omitempty"`
// +kubebuilder:validation:Required
KeyType *string `json:"keyType" tf:"key_type,omitempty"`
// +kubebuilder:validation:Required
ReuseKey *bool `json:"reuseKey" tf:"reuse_key,omitempty"`
}
type LifetimeActionObservation struct {
}
type LifetimeActionParameters struct {
// +kubebuilder:validation:Required
Action []ActionParameters `json:"action" tf:"action,omitempty"`
// +kubebuilder:validation:Required
Trigger []TriggerParameters `json:"trigger" tf:"trigger,omitempty"`
}
type SecretPropertiesObservation struct {
}
type SecretPropertiesParameters struct {
// +kubebuilder:validation:Required
ContentType *string `json:"contentType" tf:"content_type,omitempty"`
}
type SubjectAlternativeNamesObservation struct {
}
type SubjectAlternativeNamesParameters struct {
// +kubebuilder:validation:Optional
DNSNames []*string `json:"dnsNames,omitempty" tf:"dns_names,omitempty"`
// +kubebuilder:validation:Optional
Emails []*string `json:"emails,omitempty" tf:"emails,omitempty"`
// +kubebuilder:validation:Optional
Upns []*string `json:"upns,omitempty" tf:"upns,omitempty"`
}
type TriggerObservation struct {
}
type TriggerParameters struct {
// +kubebuilder:validation:Optional
DaysBeforeExpiry *float64 `json:"daysBeforeExpiry,omitempty" tf:"days_before_expiry,omitempty"`
// +kubebuilder:validation:Optional
LifetimePercentage *float64 `json:"lifetimePercentage,omitempty" tf:"lifetime_percentage,omitempty"`
}
type X509CertificatePropertiesObservation struct {
}
type X509CertificatePropertiesParameters struct {
// +kubebuilder:validation:Optional
ExtendedKeyUsage []*string `json:"extendedKeyUsage,omitempty" tf:"extended_key_usage,omitempty"`
// +kubebuilder:validation:Required
KeyUsage []*string `json:"keyUsage" tf:"key_usage,omitempty"`
// +kubebuilder:validation:Required
Subject *string `json:"subject" tf:"subject,omitempty"`
// +kubebuilder:validation:Optional
SubjectAlternativeNames []SubjectAlternativeNamesParameters `json:"subjectAlternativeNames,omitempty" tf:"subject_alternative_names,omitempty"`
// +kubebuilder:validation:Required
ValidityInMonths *float64 `json:"validityInMonths" tf:"validity_in_months,omitempty"`
}
// CertificateSpec defines the desired state of Certificate
type CertificateSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider CertificateParameters `json:"forProvider"`
}
// CertificateStatus defines the observed state of Certificate.
type CertificateStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider CertificateObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// Certificate is the Schema for the Certificates API
// +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,azurejet}
type Certificate struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec CertificateSpec `json:"spec"`
Status CertificateStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// CertificateList contains a list of Certificates
type CertificateList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Certificate `json:"items"`
}
// Repository type metadata.
var (
Certificate_Kind = "Certificate"
Certificate_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Certificate_Kind}.String()
Certificate_KindAPIVersion = Certificate_Kind + "." + CRDGroupVersion.String()
Certificate_GroupVersionKind = CRDGroupVersion.WithKind(Certificate_Kind)
)
func init() {
SchemeBuilder.Register(&Certificate{}, &CertificateList{})
}