-
Notifications
You must be signed in to change notification settings - Fork 64
/
zz_certificatetemplate_types.go
executable file
·694 lines (493 loc) · 38.7 KB
/
zz_certificatetemplate_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
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
// SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
// Code generated by upjet. DO NOT EDIT.
package v1beta1
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 CertificateTemplateIdentityConstraintsInitParameters struct {
// Required. If this is true, the SubjectAltNames extension may be copied from a certificate request into the signed certificate. Otherwise, the requested SubjectAltNames will be discarded.
AllowSubjectAltNamesPassthrough *bool `json:"allowSubjectAltNamesPassthrough,omitempty" tf:"allow_subject_alt_names_passthrough,omitempty"`
// Required. If this is true, the Subject field may be copied from a certificate request into the signed certificate. Otherwise, the requested Subject will be discarded.
AllowSubjectPassthrough *bool `json:"allowSubjectPassthrough,omitempty" tf:"allow_subject_passthrough,omitempty"`
// Optional. A CEL expression that may be used to validate the resolved X.509 Subject and/or Subject Alternative Name before a certificate is signed. To see the full allowed syntax and some examples, see https://cloud.google.com/certificate-authority-service/docs/using-cel
CelExpression []IdentityConstraintsCelExpressionInitParameters `json:"celExpression,omitempty" tf:"cel_expression,omitempty"`
}
type CertificateTemplateIdentityConstraintsObservation struct {
// Required. If this is true, the SubjectAltNames extension may be copied from a certificate request into the signed certificate. Otherwise, the requested SubjectAltNames will be discarded.
AllowSubjectAltNamesPassthrough *bool `json:"allowSubjectAltNamesPassthrough,omitempty" tf:"allow_subject_alt_names_passthrough,omitempty"`
// Required. If this is true, the Subject field may be copied from a certificate request into the signed certificate. Otherwise, the requested Subject will be discarded.
AllowSubjectPassthrough *bool `json:"allowSubjectPassthrough,omitempty" tf:"allow_subject_passthrough,omitempty"`
// Optional. A CEL expression that may be used to validate the resolved X.509 Subject and/or Subject Alternative Name before a certificate is signed. To see the full allowed syntax and some examples, see https://cloud.google.com/certificate-authority-service/docs/using-cel
CelExpression []IdentityConstraintsCelExpressionObservation `json:"celExpression,omitempty" tf:"cel_expression,omitempty"`
}
type CertificateTemplateIdentityConstraintsParameters struct {
// Required. If this is true, the SubjectAltNames extension may be copied from a certificate request into the signed certificate. Otherwise, the requested SubjectAltNames will be discarded.
// +kubebuilder:validation:Optional
AllowSubjectAltNamesPassthrough *bool `json:"allowSubjectAltNamesPassthrough" tf:"allow_subject_alt_names_passthrough,omitempty"`
// Required. If this is true, the Subject field may be copied from a certificate request into the signed certificate. Otherwise, the requested Subject will be discarded.
// +kubebuilder:validation:Optional
AllowSubjectPassthrough *bool `json:"allowSubjectPassthrough" tf:"allow_subject_passthrough,omitempty"`
// Optional. A CEL expression that may be used to validate the resolved X.509 Subject and/or Subject Alternative Name before a certificate is signed. To see the full allowed syntax and some examples, see https://cloud.google.com/certificate-authority-service/docs/using-cel
// +kubebuilder:validation:Optional
CelExpression []IdentityConstraintsCelExpressionParameters `json:"celExpression,omitempty" tf:"cel_expression,omitempty"`
}
type CertificateTemplateInitParameters struct {
// Optional. A human-readable description of scenarios this template is intended for.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Optional. Describes constraints on identities that may be appear in Certificates issued using this template. If this is omitted, then this template will not add restrictions on a certificate's identity.
IdentityConstraints []CertificateTemplateIdentityConstraintsInitParameters `json:"identityConstraints,omitempty" tf:"identity_constraints,omitempty"`
// Optional. Labels with user-defined metadata.
// +mapType=granular
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// Optional. Describes the set of X.509 extensions that may appear in a Certificate issued using this CertificateTemplate. If a certificate request sets extensions that don't appear in the passthrough_extensions, those extensions will be dropped. If the issuing CaPool's IssuancePolicy defines baseline_values that don't appear here, the certificate issuance request will fail. If this is omitted, then this template will not add restrictions on a certificate's X.509 extensions. These constraints do not apply to X.509 extensions set in this CertificateTemplate's predefined_values.
PassthroughExtensions []PassthroughExtensionsInitParameters `json:"passthroughExtensions,omitempty" tf:"passthrough_extensions,omitempty"`
// Optional. A set of X.509 values that will be applied to all issued certificates that use this template. If the certificate request includes conflicting values for the same properties, they will be overwritten by the values defined here. If the issuing CaPool's IssuancePolicy defines conflicting baseline_values for the same properties, the certificate issuance request will fail.
PredefinedValues []PredefinedValuesInitParameters `json:"predefinedValues,omitempty" tf:"predefined_values,omitempty"`
// The project for the resource
Project *string `json:"project,omitempty" tf:"project,omitempty"`
}
type CertificateTemplateObservation struct {
// Output only. The time at which this CertificateTemplate was created.
CreateTime *string `json:"createTime,omitempty" tf:"create_time,omitempty"`
// Optional. A human-readable description of scenarios this template is intended for.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// +mapType=granular
EffectiveLabels map[string]*string `json:"effectiveLabels,omitempty" tf:"effective_labels,omitempty"`
// an identifier for the resource with format projects/{{project}}/locations/{{location}}/certificateTemplates/{{name}}
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// Optional. Describes constraints on identities that may be appear in Certificates issued using this template. If this is omitted, then this template will not add restrictions on a certificate's identity.
IdentityConstraints []CertificateTemplateIdentityConstraintsObservation `json:"identityConstraints,omitempty" tf:"identity_constraints,omitempty"`
// Optional. Labels with user-defined metadata.
// +mapType=granular
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// The location for the resource
Location *string `json:"location,omitempty" tf:"location,omitempty"`
// Optional. Describes the set of X.509 extensions that may appear in a Certificate issued using this CertificateTemplate. If a certificate request sets extensions that don't appear in the passthrough_extensions, those extensions will be dropped. If the issuing CaPool's IssuancePolicy defines baseline_values that don't appear here, the certificate issuance request will fail. If this is omitted, then this template will not add restrictions on a certificate's X.509 extensions. These constraints do not apply to X.509 extensions set in this CertificateTemplate's predefined_values.
PassthroughExtensions []PassthroughExtensionsObservation `json:"passthroughExtensions,omitempty" tf:"passthrough_extensions,omitempty"`
// Optional. A set of X.509 values that will be applied to all issued certificates that use this template. If the certificate request includes conflicting values for the same properties, they will be overwritten by the values defined here. If the issuing CaPool's IssuancePolicy defines conflicting baseline_values for the same properties, the certificate issuance request will fail.
PredefinedValues []PredefinedValuesObservation `json:"predefinedValues,omitempty" tf:"predefined_values,omitempty"`
// The project for the resource
Project *string `json:"project,omitempty" tf:"project,omitempty"`
// The combination of labels configured directly on the resource and default labels configured on the provider.
// +mapType=granular
TerraformLabels map[string]*string `json:"terraformLabels,omitempty" tf:"terraform_labels,omitempty"`
// Output only. The time at which this CertificateTemplate was updated.
UpdateTime *string `json:"updateTime,omitempty" tf:"update_time,omitempty"`
}
type CertificateTemplateParameters struct {
// Optional. A human-readable description of scenarios this template is intended for.
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Optional. Describes constraints on identities that may be appear in Certificates issued using this template. If this is omitted, then this template will not add restrictions on a certificate's identity.
// +kubebuilder:validation:Optional
IdentityConstraints []CertificateTemplateIdentityConstraintsParameters `json:"identityConstraints,omitempty" tf:"identity_constraints,omitempty"`
// Optional. Labels with user-defined metadata.
// +kubebuilder:validation:Optional
// +mapType=granular
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// The location for the resource
// +kubebuilder:validation:Required
Location *string `json:"location" tf:"location,omitempty"`
// Optional. Describes the set of X.509 extensions that may appear in a Certificate issued using this CertificateTemplate. If a certificate request sets extensions that don't appear in the passthrough_extensions, those extensions will be dropped. If the issuing CaPool's IssuancePolicy defines baseline_values that don't appear here, the certificate issuance request will fail. If this is omitted, then this template will not add restrictions on a certificate's X.509 extensions. These constraints do not apply to X.509 extensions set in this CertificateTemplate's predefined_values.
// +kubebuilder:validation:Optional
PassthroughExtensions []PassthroughExtensionsParameters `json:"passthroughExtensions,omitempty" tf:"passthrough_extensions,omitempty"`
// Optional. A set of X.509 values that will be applied to all issued certificates that use this template. If the certificate request includes conflicting values for the same properties, they will be overwritten by the values defined here. If the issuing CaPool's IssuancePolicy defines conflicting baseline_values for the same properties, the certificate issuance request will fail.
// +kubebuilder:validation:Optional
PredefinedValues []PredefinedValuesParameters `json:"predefinedValues,omitempty" tf:"predefined_values,omitempty"`
// The project for the resource
// +kubebuilder:validation:Optional
Project *string `json:"project,omitempty" tf:"project,omitempty"`
}
type IdentityConstraintsCelExpressionInitParameters struct {
// Optional. A human-readable description of scenarios this template is intended for.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Textual representation of an expression in Common Expression Language syntax.
Expression *string `json:"expression,omitempty" tf:"expression,omitempty"`
// Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
Title *string `json:"title,omitempty" tf:"title,omitempty"`
}
type IdentityConstraintsCelExpressionObservation struct {
// Optional. A human-readable description of scenarios this template is intended for.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Textual representation of an expression in Common Expression Language syntax.
Expression *string `json:"expression,omitempty" tf:"expression,omitempty"`
// The location for the resource
Location *string `json:"location,omitempty" tf:"location,omitempty"`
// Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
Title *string `json:"title,omitempty" tf:"title,omitempty"`
}
type IdentityConstraintsCelExpressionParameters struct {
// Optional. A human-readable description of scenarios this template is intended for.
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Textual representation of an expression in Common Expression Language syntax.
// +kubebuilder:validation:Optional
Expression *string `json:"expression,omitempty" tf:"expression,omitempty"`
// The location for the resource
// +kubebuilder:validation:Optional
Location *string `json:"location,omitempty" tf:"location,omitempty"`
// Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
// +kubebuilder:validation:Optional
Title *string `json:"title,omitempty" tf:"title,omitempty"`
}
type PassthroughExtensionsAdditionalExtensionsInitParameters struct {
// Required. The parts of an OID path. The most significant parts of the path come first.
ObjectIDPath []*float64 `json:"objectIdPath,omitempty" tf:"object_id_path,omitempty"`
}
type PassthroughExtensionsAdditionalExtensionsObservation struct {
// Required. The parts of an OID path. The most significant parts of the path come first.
ObjectIDPath []*float64 `json:"objectIdPath,omitempty" tf:"object_id_path,omitempty"`
}
type PassthroughExtensionsAdditionalExtensionsParameters struct {
// Required. The parts of an OID path. The most significant parts of the path come first.
// +kubebuilder:validation:Optional
ObjectIDPath []*float64 `json:"objectIdPath" tf:"object_id_path,omitempty"`
}
type PassthroughExtensionsInitParameters struct {
// Optional. A set of ObjectIds identifying custom X.509 extensions. Will be combined with known_extensions to determine the full set of X.509 extensions.
AdditionalExtensions []PassthroughExtensionsAdditionalExtensionsInitParameters `json:"additionalExtensions,omitempty" tf:"additional_extensions,omitempty"`
// Optional. A set of named X.509 extensions. Will be combined with additional_extensions to determine the full set of X.509 extensions.
KnownExtensions []*string `json:"knownExtensions,omitempty" tf:"known_extensions,omitempty"`
}
type PassthroughExtensionsObservation struct {
// Optional. A set of ObjectIds identifying custom X.509 extensions. Will be combined with known_extensions to determine the full set of X.509 extensions.
AdditionalExtensions []PassthroughExtensionsAdditionalExtensionsObservation `json:"additionalExtensions,omitempty" tf:"additional_extensions,omitempty"`
// Optional. A set of named X.509 extensions. Will be combined with additional_extensions to determine the full set of X.509 extensions.
KnownExtensions []*string `json:"knownExtensions,omitempty" tf:"known_extensions,omitempty"`
}
type PassthroughExtensionsParameters struct {
// Optional. A set of ObjectIds identifying custom X.509 extensions. Will be combined with known_extensions to determine the full set of X.509 extensions.
// +kubebuilder:validation:Optional
AdditionalExtensions []PassthroughExtensionsAdditionalExtensionsParameters `json:"additionalExtensions,omitempty" tf:"additional_extensions,omitempty"`
// Optional. A set of named X.509 extensions. Will be combined with additional_extensions to determine the full set of X.509 extensions.
// +kubebuilder:validation:Optional
KnownExtensions []*string `json:"knownExtensions,omitempty" tf:"known_extensions,omitempty"`
}
type PredefinedValuesAdditionalExtensionsInitParameters struct {
// Optional. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error).
Critical *bool `json:"critical,omitempty" tf:"critical,omitempty"`
// Required. The OID for this X.509 extension.
ObjectID []PredefinedValuesAdditionalExtensionsObjectIDInitParameters `json:"objectId,omitempty" tf:"object_id,omitempty"`
// Required. The value of this X.509 extension.
Value *string `json:"value,omitempty" tf:"value,omitempty"`
}
type PredefinedValuesAdditionalExtensionsObjectIDInitParameters struct {
// Required. The parts of an OID path. The most significant parts of the path come first.
ObjectIDPath []*float64 `json:"objectIdPath,omitempty" tf:"object_id_path,omitempty"`
}
type PredefinedValuesAdditionalExtensionsObjectIDObservation struct {
// Required. The parts of an OID path. The most significant parts of the path come first.
ObjectIDPath []*float64 `json:"objectIdPath,omitempty" tf:"object_id_path,omitempty"`
}
type PredefinedValuesAdditionalExtensionsObjectIDParameters struct {
// Required. The parts of an OID path. The most significant parts of the path come first.
// +kubebuilder:validation:Optional
ObjectIDPath []*float64 `json:"objectIdPath" tf:"object_id_path,omitempty"`
}
type PredefinedValuesAdditionalExtensionsObservation struct {
// Optional. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error).
Critical *bool `json:"critical,omitempty" tf:"critical,omitempty"`
// Required. The OID for this X.509 extension.
ObjectID []PredefinedValuesAdditionalExtensionsObjectIDObservation `json:"objectId,omitempty" tf:"object_id,omitempty"`
// Required. The value of this X.509 extension.
Value *string `json:"value,omitempty" tf:"value,omitempty"`
}
type PredefinedValuesAdditionalExtensionsParameters struct {
// Optional. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error).
// +kubebuilder:validation:Optional
Critical *bool `json:"critical,omitempty" tf:"critical,omitempty"`
// Required. The OID for this X.509 extension.
// +kubebuilder:validation:Optional
ObjectID []PredefinedValuesAdditionalExtensionsObjectIDParameters `json:"objectId" tf:"object_id,omitempty"`
// Required. The value of this X.509 extension.
// +kubebuilder:validation:Optional
Value *string `json:"value" tf:"value,omitempty"`
}
type PredefinedValuesCAOptionsInitParameters struct {
// Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this value is missing, the extension will be omitted from the CA certificate.
IsCA *bool `json:"isCa,omitempty" tf:"is_ca,omitempty"`
// Optional. Refers to the path length restriction X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate.
MaxIssuerPathLength *float64 `json:"maxIssuerPathLength,omitempty" tf:"max_issuer_path_length,omitempty"`
}
type PredefinedValuesCAOptionsObservation struct {
// Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this value is missing, the extension will be omitted from the CA certificate.
IsCA *bool `json:"isCa,omitempty" tf:"is_ca,omitempty"`
// Optional. Refers to the path length restriction X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate.
MaxIssuerPathLength *float64 `json:"maxIssuerPathLength,omitempty" tf:"max_issuer_path_length,omitempty"`
}
type PredefinedValuesCAOptionsParameters struct {
// Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this value is missing, the extension will be omitted from the CA certificate.
// +kubebuilder:validation:Optional
IsCA *bool `json:"isCa,omitempty" tf:"is_ca,omitempty"`
// Optional. Refers to the path length restriction X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate.
// +kubebuilder:validation:Optional
MaxIssuerPathLength *float64 `json:"maxIssuerPathLength,omitempty" tf:"max_issuer_path_length,omitempty"`
}
type PredefinedValuesInitParameters struct {
// Optional. Describes custom X.509 extensions.
AdditionalExtensions []PredefinedValuesAdditionalExtensionsInitParameters `json:"additionalExtensions,omitempty" tf:"additional_extensions,omitempty"`
// Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate.
AiaOcspServers []*string `json:"aiaOcspServers,omitempty" tf:"aia_ocsp_servers,omitempty"`
// Optional. Describes options in this X509Parameters that are relevant in a CA certificate.
CAOptions []PredefinedValuesCAOptionsInitParameters `json:"caOptions,omitempty" tf:"ca_options,omitempty"`
// Optional. Indicates the intended use for keys that correspond to a certificate.
KeyUsage []PredefinedValuesKeyUsageInitParameters `json:"keyUsage,omitempty" tf:"key_usage,omitempty"`
// Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
PolicyIds []PredefinedValuesPolicyIdsInitParameters `json:"policyIds,omitempty" tf:"policy_ids,omitempty"`
}
type PredefinedValuesKeyUsageBaseKeyUsageInitParameters struct {
// The key may be used to sign certificates.
CertSign *bool `json:"certSign,omitempty" tf:"cert_sign,omitempty"`
// The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation".
ContentCommitment *bool `json:"contentCommitment,omitempty" tf:"content_commitment,omitempty"`
// The key may be used sign certificate revocation lists.
CrlSign *bool `json:"crlSign,omitempty" tf:"crl_sign,omitempty"`
// The key may be used to encipher data.
DataEncipherment *bool `json:"dataEncipherment,omitempty" tf:"data_encipherment,omitempty"`
// The key may be used to decipher only.
DecipherOnly *bool `json:"decipherOnly,omitempty" tf:"decipher_only,omitempty"`
// The key may be used for digital signatures.
DigitalSignature *bool `json:"digitalSignature,omitempty" tf:"digital_signature,omitempty"`
// The key may be used to encipher only.
EncipherOnly *bool `json:"encipherOnly,omitempty" tf:"encipher_only,omitempty"`
// The key may be used in a key agreement protocol.
KeyAgreement *bool `json:"keyAgreement,omitempty" tf:"key_agreement,omitempty"`
// The key may be used to encipher other keys.
KeyEncipherment *bool `json:"keyEncipherment,omitempty" tf:"key_encipherment,omitempty"`
}
type PredefinedValuesKeyUsageBaseKeyUsageObservation struct {
// The key may be used to sign certificates.
CertSign *bool `json:"certSign,omitempty" tf:"cert_sign,omitempty"`
// The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation".
ContentCommitment *bool `json:"contentCommitment,omitempty" tf:"content_commitment,omitempty"`
// The key may be used sign certificate revocation lists.
CrlSign *bool `json:"crlSign,omitempty" tf:"crl_sign,omitempty"`
// The key may be used to encipher data.
DataEncipherment *bool `json:"dataEncipherment,omitempty" tf:"data_encipherment,omitempty"`
// The key may be used to decipher only.
DecipherOnly *bool `json:"decipherOnly,omitempty" tf:"decipher_only,omitempty"`
// The key may be used for digital signatures.
DigitalSignature *bool `json:"digitalSignature,omitempty" tf:"digital_signature,omitempty"`
// The key may be used to encipher only.
EncipherOnly *bool `json:"encipherOnly,omitempty" tf:"encipher_only,omitempty"`
// The key may be used in a key agreement protocol.
KeyAgreement *bool `json:"keyAgreement,omitempty" tf:"key_agreement,omitempty"`
// The key may be used to encipher other keys.
KeyEncipherment *bool `json:"keyEncipherment,omitempty" tf:"key_encipherment,omitempty"`
}
type PredefinedValuesKeyUsageBaseKeyUsageParameters struct {
// The key may be used to sign certificates.
// +kubebuilder:validation:Optional
CertSign *bool `json:"certSign,omitempty" tf:"cert_sign,omitempty"`
// The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation".
// +kubebuilder:validation:Optional
ContentCommitment *bool `json:"contentCommitment,omitempty" tf:"content_commitment,omitempty"`
// The key may be used sign certificate revocation lists.
// +kubebuilder:validation:Optional
CrlSign *bool `json:"crlSign,omitempty" tf:"crl_sign,omitempty"`
// The key may be used to encipher data.
// +kubebuilder:validation:Optional
DataEncipherment *bool `json:"dataEncipherment,omitempty" tf:"data_encipherment,omitempty"`
// The key may be used to decipher only.
// +kubebuilder:validation:Optional
DecipherOnly *bool `json:"decipherOnly,omitempty" tf:"decipher_only,omitempty"`
// The key may be used for digital signatures.
// +kubebuilder:validation:Optional
DigitalSignature *bool `json:"digitalSignature,omitempty" tf:"digital_signature,omitempty"`
// The key may be used to encipher only.
// +kubebuilder:validation:Optional
EncipherOnly *bool `json:"encipherOnly,omitempty" tf:"encipher_only,omitempty"`
// The key may be used in a key agreement protocol.
// +kubebuilder:validation:Optional
KeyAgreement *bool `json:"keyAgreement,omitempty" tf:"key_agreement,omitempty"`
// The key may be used to encipher other keys.
// +kubebuilder:validation:Optional
KeyEncipherment *bool `json:"keyEncipherment,omitempty" tf:"key_encipherment,omitempty"`
}
type PredefinedValuesKeyUsageExtendedKeyUsageInitParameters struct {
// Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW client authentication", though regularly used for non-WWW TLS.
ClientAuth *bool `json:"clientAuth,omitempty" tf:"client_auth,omitempty"`
// Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication".
CodeSigning *bool `json:"codeSigning,omitempty" tf:"code_signing,omitempty"`
// Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection".
EmailProtection *bool `json:"emailProtection,omitempty" tf:"email_protection,omitempty"`
// Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses".
OcspSigning *bool `json:"ocspSigning,omitempty" tf:"ocsp_signing,omitempty"`
// Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW server authentication", though regularly used for non-WWW TLS.
ServerAuth *bool `json:"serverAuth,omitempty" tf:"server_auth,omitempty"`
// Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time".
TimeStamping *bool `json:"timeStamping,omitempty" tf:"time_stamping,omitempty"`
}
type PredefinedValuesKeyUsageExtendedKeyUsageObservation struct {
// Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW client authentication", though regularly used for non-WWW TLS.
ClientAuth *bool `json:"clientAuth,omitempty" tf:"client_auth,omitempty"`
// Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication".
CodeSigning *bool `json:"codeSigning,omitempty" tf:"code_signing,omitempty"`
// Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection".
EmailProtection *bool `json:"emailProtection,omitempty" tf:"email_protection,omitempty"`
// Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses".
OcspSigning *bool `json:"ocspSigning,omitempty" tf:"ocsp_signing,omitempty"`
// Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW server authentication", though regularly used for non-WWW TLS.
ServerAuth *bool `json:"serverAuth,omitempty" tf:"server_auth,omitempty"`
// Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time".
TimeStamping *bool `json:"timeStamping,omitempty" tf:"time_stamping,omitempty"`
}
type PredefinedValuesKeyUsageExtendedKeyUsageParameters struct {
// Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW client authentication", though regularly used for non-WWW TLS.
// +kubebuilder:validation:Optional
ClientAuth *bool `json:"clientAuth,omitempty" tf:"client_auth,omitempty"`
// Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication".
// +kubebuilder:validation:Optional
CodeSigning *bool `json:"codeSigning,omitempty" tf:"code_signing,omitempty"`
// Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection".
// +kubebuilder:validation:Optional
EmailProtection *bool `json:"emailProtection,omitempty" tf:"email_protection,omitempty"`
// Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses".
// +kubebuilder:validation:Optional
OcspSigning *bool `json:"ocspSigning,omitempty" tf:"ocsp_signing,omitempty"`
// Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW server authentication", though regularly used for non-WWW TLS.
// +kubebuilder:validation:Optional
ServerAuth *bool `json:"serverAuth,omitempty" tf:"server_auth,omitempty"`
// Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time".
// +kubebuilder:validation:Optional
TimeStamping *bool `json:"timeStamping,omitempty" tf:"time_stamping,omitempty"`
}
type PredefinedValuesKeyUsageInitParameters struct {
// Describes high-level ways in which a key may be used.
BaseKeyUsage []PredefinedValuesKeyUsageBaseKeyUsageInitParameters `json:"baseKeyUsage,omitempty" tf:"base_key_usage,omitempty"`
// Detailed scenarios in which a key may be used.
ExtendedKeyUsage []PredefinedValuesKeyUsageExtendedKeyUsageInitParameters `json:"extendedKeyUsage,omitempty" tf:"extended_key_usage,omitempty"`
// Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.
UnknownExtendedKeyUsages []PredefinedValuesKeyUsageUnknownExtendedKeyUsagesInitParameters `json:"unknownExtendedKeyUsages,omitempty" tf:"unknown_extended_key_usages,omitempty"`
}
type PredefinedValuesKeyUsageObservation struct {
// Describes high-level ways in which a key may be used.
BaseKeyUsage []PredefinedValuesKeyUsageBaseKeyUsageObservation `json:"baseKeyUsage,omitempty" tf:"base_key_usage,omitempty"`
// Detailed scenarios in which a key may be used.
ExtendedKeyUsage []PredefinedValuesKeyUsageExtendedKeyUsageObservation `json:"extendedKeyUsage,omitempty" tf:"extended_key_usage,omitempty"`
// Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.
UnknownExtendedKeyUsages []PredefinedValuesKeyUsageUnknownExtendedKeyUsagesObservation `json:"unknownExtendedKeyUsages,omitempty" tf:"unknown_extended_key_usages,omitempty"`
}
type PredefinedValuesKeyUsageParameters struct {
// Describes high-level ways in which a key may be used.
// +kubebuilder:validation:Optional
BaseKeyUsage []PredefinedValuesKeyUsageBaseKeyUsageParameters `json:"baseKeyUsage,omitempty" tf:"base_key_usage,omitempty"`
// Detailed scenarios in which a key may be used.
// +kubebuilder:validation:Optional
ExtendedKeyUsage []PredefinedValuesKeyUsageExtendedKeyUsageParameters `json:"extendedKeyUsage,omitempty" tf:"extended_key_usage,omitempty"`
// Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.
// +kubebuilder:validation:Optional
UnknownExtendedKeyUsages []PredefinedValuesKeyUsageUnknownExtendedKeyUsagesParameters `json:"unknownExtendedKeyUsages,omitempty" tf:"unknown_extended_key_usages,omitempty"`
}
type PredefinedValuesKeyUsageUnknownExtendedKeyUsagesInitParameters struct {
// Required. The parts of an OID path. The most significant parts of the path come first.
ObjectIDPath []*float64 `json:"objectIdPath,omitempty" tf:"object_id_path,omitempty"`
}
type PredefinedValuesKeyUsageUnknownExtendedKeyUsagesObservation struct {
// Required. The parts of an OID path. The most significant parts of the path come first.
ObjectIDPath []*float64 `json:"objectIdPath,omitempty" tf:"object_id_path,omitempty"`
}
type PredefinedValuesKeyUsageUnknownExtendedKeyUsagesParameters struct {
// Required. The parts of an OID path. The most significant parts of the path come first.
// +kubebuilder:validation:Optional
ObjectIDPath []*float64 `json:"objectIdPath" tf:"object_id_path,omitempty"`
}
type PredefinedValuesObservation struct {
// Optional. Describes custom X.509 extensions.
AdditionalExtensions []PredefinedValuesAdditionalExtensionsObservation `json:"additionalExtensions,omitempty" tf:"additional_extensions,omitempty"`
// Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate.
AiaOcspServers []*string `json:"aiaOcspServers,omitempty" tf:"aia_ocsp_servers,omitempty"`
// Optional. Describes options in this X509Parameters that are relevant in a CA certificate.
CAOptions []PredefinedValuesCAOptionsObservation `json:"caOptions,omitempty" tf:"ca_options,omitempty"`
// Optional. Indicates the intended use for keys that correspond to a certificate.
KeyUsage []PredefinedValuesKeyUsageObservation `json:"keyUsage,omitempty" tf:"key_usage,omitempty"`
// Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
PolicyIds []PredefinedValuesPolicyIdsObservation `json:"policyIds,omitempty" tf:"policy_ids,omitempty"`
}
type PredefinedValuesParameters struct {
// Optional. Describes custom X.509 extensions.
// +kubebuilder:validation:Optional
AdditionalExtensions []PredefinedValuesAdditionalExtensionsParameters `json:"additionalExtensions,omitempty" tf:"additional_extensions,omitempty"`
// Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate.
// +kubebuilder:validation:Optional
AiaOcspServers []*string `json:"aiaOcspServers,omitempty" tf:"aia_ocsp_servers,omitempty"`
// Optional. Describes options in this X509Parameters that are relevant in a CA certificate.
// +kubebuilder:validation:Optional
CAOptions []PredefinedValuesCAOptionsParameters `json:"caOptions,omitempty" tf:"ca_options,omitempty"`
// Optional. Indicates the intended use for keys that correspond to a certificate.
// +kubebuilder:validation:Optional
KeyUsage []PredefinedValuesKeyUsageParameters `json:"keyUsage,omitempty" tf:"key_usage,omitempty"`
// Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
// +kubebuilder:validation:Optional
PolicyIds []PredefinedValuesPolicyIdsParameters `json:"policyIds,omitempty" tf:"policy_ids,omitempty"`
}
type PredefinedValuesPolicyIdsInitParameters struct {
// Required. The parts of an OID path. The most significant parts of the path come first.
ObjectIDPath []*float64 `json:"objectIdPath,omitempty" tf:"object_id_path,omitempty"`
}
type PredefinedValuesPolicyIdsObservation struct {
// Required. The parts of an OID path. The most significant parts of the path come first.
ObjectIDPath []*float64 `json:"objectIdPath,omitempty" tf:"object_id_path,omitempty"`
}
type PredefinedValuesPolicyIdsParameters struct {
// Required. The parts of an OID path. The most significant parts of the path come first.
// +kubebuilder:validation:Optional
ObjectIDPath []*float64 `json:"objectIdPath" tf:"object_id_path,omitempty"`
}
// CertificateTemplateSpec defines the desired state of CertificateTemplate
type CertificateTemplateSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider CertificateTemplateParameters `json:"forProvider"`
// THIS IS A BETA FIELD. It will be honored
// unless the Management Policies feature flag is disabled.
// InitProvider holds the same fields as ForProvider, with the exception
// of Identifier and other resource reference fields. The fields that are
// in InitProvider are merged into ForProvider when the resource is created.
// The same fields are also added to the terraform ignore_changes hook, to
// avoid updating them after creation. This is useful for fields that are
// required on creation, but we do not desire to update them after creation,
// for example because of an external controller is managing them, like an
// autoscaler.
InitProvider CertificateTemplateInitParameters `json:"initProvider,omitempty"`
}
// CertificateTemplateStatus defines the observed state of CertificateTemplate.
type CertificateTemplateStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider CertificateTemplateObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:storageversion
// CertificateTemplate is the Schema for the CertificateTemplates API. Certificate Authority Service provides reusable and parameterized templates that you can use for common certificate issuance scenarios. A certificate template represents a relatively static and well-defined certificate issuance schema within an organization. A certificate template can essentially become a full-fledged vertical certificate issuance framework.
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].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:resource:scope=Cluster,categories={crossplane,managed,gcp}
type CertificateTemplate struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec CertificateTemplateSpec `json:"spec"`
Status CertificateTemplateStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// CertificateTemplateList contains a list of CertificateTemplates
type CertificateTemplateList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []CertificateTemplate `json:"items"`
}
// Repository type metadata.
var (
CertificateTemplate_Kind = "CertificateTemplate"
CertificateTemplate_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: CertificateTemplate_Kind}.String()
CertificateTemplate_KindAPIVersion = CertificateTemplate_Kind + "." + CRDGroupVersion.String()
CertificateTemplate_GroupVersionKind = CRDGroupVersion.WithKind(CertificateTemplate_Kind)
)
func init() {
SchemeBuilder.Register(&CertificateTemplate{}, &CertificateTemplateList{})
}