-
Notifications
You must be signed in to change notification settings - Fork 60
/
zz_bucket_types.go
executable file
·736 lines (530 loc) · 39.4 KB
/
zz_bucket_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
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
// SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
// Code generated by upjet. DO NOT EDIT.
package v1beta2
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 ActionInitParameters struct {
// The Storage Class of the new bucket. Supported values include: STANDARD, MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE.
StorageClass *string `json:"storageClass,omitempty" tf:"storage_class,omitempty"`
// The type of the action of this Lifecycle Rule. Supported values include: Delete, SetStorageClass and AbortIncompleteMultipartUpload.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type ActionObservation struct {
// The Storage Class of the new bucket. Supported values include: STANDARD, MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE.
StorageClass *string `json:"storageClass,omitempty" tf:"storage_class,omitempty"`
// The type of the action of this Lifecycle Rule. Supported values include: Delete, SetStorageClass and AbortIncompleteMultipartUpload.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type ActionParameters struct {
// The Storage Class of the new bucket. Supported values include: STANDARD, MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE.
// +kubebuilder:validation:Optional
StorageClass *string `json:"storageClass,omitempty" tf:"storage_class,omitempty"`
// The type of the action of this Lifecycle Rule. Supported values include: Delete, SetStorageClass and AbortIncompleteMultipartUpload.
// +kubebuilder:validation:Optional
Type *string `json:"type" tf:"type,omitempty"`
}
type AutoclassInitParameters struct {
// While set to true, autoclass automatically transitions objects in your bucket to appropriate storage classes based on each object's access pattern.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// The storage class that objects in the bucket eventually transition to if they are not read for a certain length of time. Supported values include: NEARLINE, ARCHIVE.
TerminalStorageClass *string `json:"terminalStorageClass,omitempty" tf:"terminal_storage_class,omitempty"`
}
type AutoclassObservation struct {
// While set to true, autoclass automatically transitions objects in your bucket to appropriate storage classes based on each object's access pattern.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// The storage class that objects in the bucket eventually transition to if they are not read for a certain length of time. Supported values include: NEARLINE, ARCHIVE.
TerminalStorageClass *string `json:"terminalStorageClass,omitempty" tf:"terminal_storage_class,omitempty"`
}
type AutoclassParameters struct {
// While set to true, autoclass automatically transitions objects in your bucket to appropriate storage classes based on each object's access pattern.
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled" tf:"enabled,omitempty"`
// The storage class that objects in the bucket eventually transition to if they are not read for a certain length of time. Supported values include: NEARLINE, ARCHIVE.
// +kubebuilder:validation:Optional
TerminalStorageClass *string `json:"terminalStorageClass,omitempty" tf:"terminal_storage_class,omitempty"`
}
type BucketInitParameters struct {
// The bucket's Autoclass configuration. Structure is documented below.
Autoclass *AutoclassInitParameters `json:"autoclass,omitempty" tf:"autoclass,omitempty"`
// The bucket's Cross-Origin Resource Sharing (CORS) configuration. Multiple blocks of this type are permitted. Structure is documented below.
Cors []CorsInitParameters `json:"cors,omitempty" tf:"cors,omitempty"`
// The bucket's custom location configuration, which specifies the individual regions that comprise a dual-region bucket. If the bucket is designated a single or multi-region, the parameters are empty. Structure is documented below.
CustomPlacementConfig *CustomPlacementConfigInitParameters `json:"customPlacementConfig,omitempty" tf:"custom_placement_config,omitempty"`
// Whether or not to automatically apply an eventBasedHold to new objects added to the bucket.
DefaultEventBasedHold *bool `json:"defaultEventBasedHold,omitempty" tf:"default_event_based_hold,omitempty"`
// Enables object retention on a storage bucket.
EnableObjectRetention *bool `json:"enableObjectRetention,omitempty" tf:"enable_object_retention,omitempty"`
// The bucket's encryption configuration. Structure is documented below.
Encryption *EncryptionInitParameters `json:"encryption,omitempty" tf:"encryption,omitempty"`
// When deleting a bucket, this
// boolean option will delete all contained objects.
ForceDestroy *bool `json:"forceDestroy,omitempty" tf:"force_destroy,omitempty"`
// A map of key/value label pairs to assign to the bucket.
// +mapType=granular
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// The bucket's Lifecycle Rules configuration. Multiple blocks of this type are permitted. Structure is documented below.
LifecycleRule []LifecycleRuleInitParameters `json:"lifecycleRule,omitempty" tf:"lifecycle_rule,omitempty"`
// The GCS location.
Location *string `json:"location,omitempty" tf:"location,omitempty"`
// The bucket's Access & Storage Logs configuration. Structure is documented below.
Logging *LoggingInitParameters `json:"logging,omitempty" tf:"logging,omitempty"`
// The ID of the project in which the resource belongs. If it
// is not provided, the provider project is used.
Project *string `json:"project,omitempty" tf:"project,omitempty"`
// Prevents public access to a bucket. Acceptable values are "inherited" or "enforced". If "inherited", the bucket uses public access prevention. only if the bucket is subject to the public access prevention organization policy constraint. Defaults to "inherited".
PublicAccessPrevention *string `json:"publicAccessPrevention,omitempty" tf:"public_access_prevention,omitempty"`
// Enables Requester Pays on a storage bucket.
RequesterPays *bool `json:"requesterPays,omitempty" tf:"requester_pays,omitempty"`
// Configuration of the bucket's data retention policy for how long objects in the bucket should be retained. Structure is documented below.
RetentionPolicy *RetentionPolicyInitParameters `json:"retentionPolicy,omitempty" tf:"retention_policy,omitempty"`
// The recovery point objective for cross-region replication of the bucket. Applicable only for dual and multi-region buckets. "DEFAULT" sets default replication. "ASYNC_TURBO" value enables turbo replication, valid for dual-region buckets only. See Turbo Replication for more information. If rpo is not specified at bucket creation, it defaults to "DEFAULT" for dual and multi-region buckets. NOTE If used with single-region bucket, It will throw an error.
Rpo *string `json:"rpo,omitempty" tf:"rpo,omitempty"`
// The Storage Class of the new bucket. Supported values include: STANDARD, MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE.
StorageClass *string `json:"storageClass,omitempty" tf:"storage_class,omitempty"`
// Enables Uniform bucket-level access access to a bucket.
UniformBucketLevelAccess *bool `json:"uniformBucketLevelAccess,omitempty" tf:"uniform_bucket_level_access,omitempty"`
// The bucket's Versioning configuration. Structure is documented below.
Versioning *VersioningInitParameters `json:"versioning,omitempty" tf:"versioning,omitempty"`
// Configuration if the bucket acts as a website. Structure is documented below.
Website *WebsiteInitParameters `json:"website,omitempty" tf:"website,omitempty"`
}
type BucketObservation struct {
// The bucket's Autoclass configuration. Structure is documented below.
Autoclass *AutoclassObservation `json:"autoclass,omitempty" tf:"autoclass,omitempty"`
// The bucket's Cross-Origin Resource Sharing (CORS) configuration. Multiple blocks of this type are permitted. Structure is documented below.
Cors []CorsObservation `json:"cors,omitempty" tf:"cors,omitempty"`
// The bucket's custom location configuration, which specifies the individual regions that comprise a dual-region bucket. If the bucket is designated a single or multi-region, the parameters are empty. Structure is documented below.
CustomPlacementConfig *CustomPlacementConfigObservation `json:"customPlacementConfig,omitempty" tf:"custom_placement_config,omitempty"`
// Whether or not to automatically apply an eventBasedHold to new objects added to the bucket.
DefaultEventBasedHold *bool `json:"defaultEventBasedHold,omitempty" tf:"default_event_based_hold,omitempty"`
// A map of key/value label pairs to assign to the bucket.
// +mapType=granular
EffectiveLabels map[string]*string `json:"effectiveLabels,omitempty" tf:"effective_labels,omitempty"`
// Enables object retention on a storage bucket.
EnableObjectRetention *bool `json:"enableObjectRetention,omitempty" tf:"enable_object_retention,omitempty"`
// The bucket's encryption configuration. Structure is documented below.
Encryption *EncryptionObservation `json:"encryption,omitempty" tf:"encryption,omitempty"`
// When deleting a bucket, this
// boolean option will delete all contained objects.
ForceDestroy *bool `json:"forceDestroy,omitempty" tf:"force_destroy,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// A map of key/value label pairs to assign to the bucket.
// +mapType=granular
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// The bucket's Lifecycle Rules configuration. Multiple blocks of this type are permitted. Structure is documented below.
LifecycleRule []LifecycleRuleObservation `json:"lifecycleRule,omitempty" tf:"lifecycle_rule,omitempty"`
// The GCS location.
Location *string `json:"location,omitempty" tf:"location,omitempty"`
// The bucket's Access & Storage Logs configuration. Structure is documented below.
Logging *LoggingObservation `json:"logging,omitempty" tf:"logging,omitempty"`
// The ID of the project in which the resource belongs. If it
// is not provided, the provider project is used.
Project *string `json:"project,omitempty" tf:"project,omitempty"`
// Prevents public access to a bucket. Acceptable values are "inherited" or "enforced". If "inherited", the bucket uses public access prevention. only if the bucket is subject to the public access prevention organization policy constraint. Defaults to "inherited".
PublicAccessPrevention *string `json:"publicAccessPrevention,omitempty" tf:"public_access_prevention,omitempty"`
// Enables Requester Pays on a storage bucket.
RequesterPays *bool `json:"requesterPays,omitempty" tf:"requester_pays,omitempty"`
// Configuration of the bucket's data retention policy for how long objects in the bucket should be retained. Structure is documented below.
RetentionPolicy *RetentionPolicyObservation `json:"retentionPolicy,omitempty" tf:"retention_policy,omitempty"`
// The recovery point objective for cross-region replication of the bucket. Applicable only for dual and multi-region buckets. "DEFAULT" sets default replication. "ASYNC_TURBO" value enables turbo replication, valid for dual-region buckets only. See Turbo Replication for more information. If rpo is not specified at bucket creation, it defaults to "DEFAULT" for dual and multi-region buckets. NOTE If used with single-region bucket, It will throw an error.
Rpo *string `json:"rpo,omitempty" tf:"rpo,omitempty"`
// The URI of the created resource.
SelfLink *string `json:"selfLink,omitempty" tf:"self_link,omitempty"`
// The Storage Class of the new bucket. Supported values include: STANDARD, MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE.
StorageClass *string `json:"storageClass,omitempty" tf:"storage_class,omitempty"`
// A map of key/value label pairs to assign to the bucket.
// +mapType=granular
TerraformLabels map[string]*string `json:"terraformLabels,omitempty" tf:"terraform_labels,omitempty"`
// The base URL of the bucket, in the format gs://<bucket-name>.
URL *string `json:"url,omitempty" tf:"url,omitempty"`
// Enables Uniform bucket-level access access to a bucket.
UniformBucketLevelAccess *bool `json:"uniformBucketLevelAccess,omitempty" tf:"uniform_bucket_level_access,omitempty"`
// The bucket's Versioning configuration. Structure is documented below.
Versioning *VersioningObservation `json:"versioning,omitempty" tf:"versioning,omitempty"`
// Configuration if the bucket acts as a website. Structure is documented below.
Website *WebsiteObservation `json:"website,omitempty" tf:"website,omitempty"`
}
type BucketParameters struct {
// The bucket's Autoclass configuration. Structure is documented below.
// +kubebuilder:validation:Optional
Autoclass *AutoclassParameters `json:"autoclass,omitempty" tf:"autoclass,omitempty"`
// The bucket's Cross-Origin Resource Sharing (CORS) configuration. Multiple blocks of this type are permitted. Structure is documented below.
// +kubebuilder:validation:Optional
Cors []CorsParameters `json:"cors,omitempty" tf:"cors,omitempty"`
// The bucket's custom location configuration, which specifies the individual regions that comprise a dual-region bucket. If the bucket is designated a single or multi-region, the parameters are empty. Structure is documented below.
// +kubebuilder:validation:Optional
CustomPlacementConfig *CustomPlacementConfigParameters `json:"customPlacementConfig,omitempty" tf:"custom_placement_config,omitempty"`
// Whether or not to automatically apply an eventBasedHold to new objects added to the bucket.
// +kubebuilder:validation:Optional
DefaultEventBasedHold *bool `json:"defaultEventBasedHold,omitempty" tf:"default_event_based_hold,omitempty"`
// Enables object retention on a storage bucket.
// +kubebuilder:validation:Optional
EnableObjectRetention *bool `json:"enableObjectRetention,omitempty" tf:"enable_object_retention,omitempty"`
// The bucket's encryption configuration. Structure is documented below.
// +kubebuilder:validation:Optional
Encryption *EncryptionParameters `json:"encryption,omitempty" tf:"encryption,omitempty"`
// When deleting a bucket, this
// boolean option will delete all contained objects.
// +kubebuilder:validation:Optional
ForceDestroy *bool `json:"forceDestroy,omitempty" tf:"force_destroy,omitempty"`
// A map of key/value label pairs to assign to the bucket.
// +kubebuilder:validation:Optional
// +mapType=granular
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// The bucket's Lifecycle Rules configuration. Multiple blocks of this type are permitted. Structure is documented below.
// +kubebuilder:validation:Optional
LifecycleRule []LifecycleRuleParameters `json:"lifecycleRule,omitempty" tf:"lifecycle_rule,omitempty"`
// The GCS location.
// +kubebuilder:validation:Optional
Location *string `json:"location,omitempty" tf:"location,omitempty"`
// The bucket's Access & Storage Logs configuration. Structure is documented below.
// +kubebuilder:validation:Optional
Logging *LoggingParameters `json:"logging,omitempty" tf:"logging,omitempty"`
// The ID of the project in which the resource belongs. If it
// is not provided, the provider project is used.
// +kubebuilder:validation:Optional
Project *string `json:"project,omitempty" tf:"project,omitempty"`
// Prevents public access to a bucket. Acceptable values are "inherited" or "enforced". If "inherited", the bucket uses public access prevention. only if the bucket is subject to the public access prevention organization policy constraint. Defaults to "inherited".
// +kubebuilder:validation:Optional
PublicAccessPrevention *string `json:"publicAccessPrevention,omitempty" tf:"public_access_prevention,omitempty"`
// Enables Requester Pays on a storage bucket.
// +kubebuilder:validation:Optional
RequesterPays *bool `json:"requesterPays,omitempty" tf:"requester_pays,omitempty"`
// Configuration of the bucket's data retention policy for how long objects in the bucket should be retained. Structure is documented below.
// +kubebuilder:validation:Optional
RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty" tf:"retention_policy,omitempty"`
// The recovery point objective for cross-region replication of the bucket. Applicable only for dual and multi-region buckets. "DEFAULT" sets default replication. "ASYNC_TURBO" value enables turbo replication, valid for dual-region buckets only. See Turbo Replication for more information. If rpo is not specified at bucket creation, it defaults to "DEFAULT" for dual and multi-region buckets. NOTE If used with single-region bucket, It will throw an error.
// +kubebuilder:validation:Optional
Rpo *string `json:"rpo,omitempty" tf:"rpo,omitempty"`
// The Storage Class of the new bucket. Supported values include: STANDARD, MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE.
// +kubebuilder:validation:Optional
StorageClass *string `json:"storageClass,omitempty" tf:"storage_class,omitempty"`
// Enables Uniform bucket-level access access to a bucket.
// +kubebuilder:validation:Optional
UniformBucketLevelAccess *bool `json:"uniformBucketLevelAccess,omitempty" tf:"uniform_bucket_level_access,omitempty"`
// The bucket's Versioning configuration. Structure is documented below.
// +kubebuilder:validation:Optional
Versioning *VersioningParameters `json:"versioning,omitempty" tf:"versioning,omitempty"`
// Configuration if the bucket acts as a website. Structure is documented below.
// +kubebuilder:validation:Optional
Website *WebsiteParameters `json:"website,omitempty" tf:"website,omitempty"`
}
type ConditionInitParameters struct {
// Minimum age of an object in days to satisfy this condition.
Age *float64 `json:"age,omitempty" tf:"age,omitempty"`
// A date in the RFC 3339 format YYYY-MM-DD. This condition is satisfied when an object is created before midnight of the specified date in UTC.
CreatedBefore *string `json:"createdBefore,omitempty" tf:"created_before,omitempty"`
// A date in the RFC 3339 format YYYY-MM-DD. This condition is satisfied when the customTime metadata for the object is set to an earlier date than the date used in this lifecycle condition.
CustomTimeBefore *string `json:"customTimeBefore,omitempty" tf:"custom_time_before,omitempty"`
// Days since the date set in the customTime metadata for the object. This condition is satisfied when the current date and time is at least the specified number of days after the customTime.
DaysSinceCustomTime *float64 `json:"daysSinceCustomTime,omitempty" tf:"days_since_custom_time,omitempty"`
// Relevant only for versioned objects. Number of days elapsed since the noncurrent timestamp of an object.
DaysSinceNoncurrentTime *float64 `json:"daysSinceNoncurrentTime,omitempty" tf:"days_since_noncurrent_time,omitempty"`
// One or more matching name prefixes to satisfy this condition.
MatchesPrefix []*string `json:"matchesPrefix,omitempty" tf:"matches_prefix,omitempty"`
// Storage Class of objects to satisfy this condition. Supported values include: STANDARD, MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, DURABLE_REDUCED_AVAILABILITY.
MatchesStorageClass []*string `json:"matchesStorageClass,omitempty" tf:"matches_storage_class,omitempty"`
// One or more matching name suffixes to satisfy this condition.
MatchesSuffix []*string `json:"matchesSuffix,omitempty" tf:"matches_suffix,omitempty"`
// While set true, age value will be omitted. Note Required to set true when age is unset in the config file.
NoAge *bool `json:"noAge,omitempty" tf:"no_age,omitempty"`
// Relevant only for versioned objects. The date in RFC 3339 (e.g. 2017-06-13) when the object became nonconcurrent.
NoncurrentTimeBefore *string `json:"noncurrentTimeBefore,omitempty" tf:"noncurrent_time_before,omitempty"`
// Relevant only for versioned objects. The number of newer versions of an object to satisfy this condition.
NumNewerVersions *float64 `json:"numNewerVersions,omitempty" tf:"num_newer_versions,omitempty"`
// Match to live and/or archived objects. Unversioned buckets have only live objects. Supported values include: "LIVE", "ARCHIVED", "ANY".
WithState *string `json:"withState,omitempty" tf:"with_state,omitempty"`
}
type ConditionObservation struct {
// Minimum age of an object in days to satisfy this condition.
Age *float64 `json:"age,omitempty" tf:"age,omitempty"`
// A date in the RFC 3339 format YYYY-MM-DD. This condition is satisfied when an object is created before midnight of the specified date in UTC.
CreatedBefore *string `json:"createdBefore,omitempty" tf:"created_before,omitempty"`
// A date in the RFC 3339 format YYYY-MM-DD. This condition is satisfied when the customTime metadata for the object is set to an earlier date than the date used in this lifecycle condition.
CustomTimeBefore *string `json:"customTimeBefore,omitempty" tf:"custom_time_before,omitempty"`
// Days since the date set in the customTime metadata for the object. This condition is satisfied when the current date and time is at least the specified number of days after the customTime.
DaysSinceCustomTime *float64 `json:"daysSinceCustomTime,omitempty" tf:"days_since_custom_time,omitempty"`
// Relevant only for versioned objects. Number of days elapsed since the noncurrent timestamp of an object.
DaysSinceNoncurrentTime *float64 `json:"daysSinceNoncurrentTime,omitempty" tf:"days_since_noncurrent_time,omitempty"`
// One or more matching name prefixes to satisfy this condition.
MatchesPrefix []*string `json:"matchesPrefix,omitempty" tf:"matches_prefix,omitempty"`
// Storage Class of objects to satisfy this condition. Supported values include: STANDARD, MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, DURABLE_REDUCED_AVAILABILITY.
MatchesStorageClass []*string `json:"matchesStorageClass,omitempty" tf:"matches_storage_class,omitempty"`
// One or more matching name suffixes to satisfy this condition.
MatchesSuffix []*string `json:"matchesSuffix,omitempty" tf:"matches_suffix,omitempty"`
// While set true, age value will be omitted. Note Required to set true when age is unset in the config file.
NoAge *bool `json:"noAge,omitempty" tf:"no_age,omitempty"`
// Relevant only for versioned objects. The date in RFC 3339 (e.g. 2017-06-13) when the object became nonconcurrent.
NoncurrentTimeBefore *string `json:"noncurrentTimeBefore,omitempty" tf:"noncurrent_time_before,omitempty"`
// Relevant only for versioned objects. The number of newer versions of an object to satisfy this condition.
NumNewerVersions *float64 `json:"numNewerVersions,omitempty" tf:"num_newer_versions,omitempty"`
// Match to live and/or archived objects. Unversioned buckets have only live objects. Supported values include: "LIVE", "ARCHIVED", "ANY".
WithState *string `json:"withState,omitempty" tf:"with_state,omitempty"`
}
type ConditionParameters struct {
// Minimum age of an object in days to satisfy this condition.
// +kubebuilder:validation:Optional
Age *float64 `json:"age,omitempty" tf:"age,omitempty"`
// A date in the RFC 3339 format YYYY-MM-DD. This condition is satisfied when an object is created before midnight of the specified date in UTC.
// +kubebuilder:validation:Optional
CreatedBefore *string `json:"createdBefore,omitempty" tf:"created_before,omitempty"`
// A date in the RFC 3339 format YYYY-MM-DD. This condition is satisfied when the customTime metadata for the object is set to an earlier date than the date used in this lifecycle condition.
// +kubebuilder:validation:Optional
CustomTimeBefore *string `json:"customTimeBefore,omitempty" tf:"custom_time_before,omitempty"`
// Days since the date set in the customTime metadata for the object. This condition is satisfied when the current date and time is at least the specified number of days after the customTime.
// +kubebuilder:validation:Optional
DaysSinceCustomTime *float64 `json:"daysSinceCustomTime,omitempty" tf:"days_since_custom_time,omitempty"`
// Relevant only for versioned objects. Number of days elapsed since the noncurrent timestamp of an object.
// +kubebuilder:validation:Optional
DaysSinceNoncurrentTime *float64 `json:"daysSinceNoncurrentTime,omitempty" tf:"days_since_noncurrent_time,omitempty"`
// One or more matching name prefixes to satisfy this condition.
// +kubebuilder:validation:Optional
MatchesPrefix []*string `json:"matchesPrefix,omitempty" tf:"matches_prefix,omitempty"`
// Storage Class of objects to satisfy this condition. Supported values include: STANDARD, MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, DURABLE_REDUCED_AVAILABILITY.
// +kubebuilder:validation:Optional
MatchesStorageClass []*string `json:"matchesStorageClass,omitempty" tf:"matches_storage_class,omitempty"`
// One or more matching name suffixes to satisfy this condition.
// +kubebuilder:validation:Optional
MatchesSuffix []*string `json:"matchesSuffix,omitempty" tf:"matches_suffix,omitempty"`
// While set true, age value will be omitted. Note Required to set true when age is unset in the config file.
// +kubebuilder:validation:Optional
NoAge *bool `json:"noAge,omitempty" tf:"no_age,omitempty"`
// Relevant only for versioned objects. The date in RFC 3339 (e.g. 2017-06-13) when the object became nonconcurrent.
// +kubebuilder:validation:Optional
NoncurrentTimeBefore *string `json:"noncurrentTimeBefore,omitempty" tf:"noncurrent_time_before,omitempty"`
// Relevant only for versioned objects. The number of newer versions of an object to satisfy this condition.
// +kubebuilder:validation:Optional
NumNewerVersions *float64 `json:"numNewerVersions,omitempty" tf:"num_newer_versions,omitempty"`
// Match to live and/or archived objects. Unversioned buckets have only live objects. Supported values include: "LIVE", "ARCHIVED", "ANY".
// +kubebuilder:validation:Optional
WithState *string `json:"withState,omitempty" tf:"with_state,omitempty"`
}
type CorsInitParameters struct {
// The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.
MaxAgeSeconds *float64 `json:"maxAgeSeconds,omitempty" tf:"max_age_seconds,omitempty"`
// The list of HTTP methods on which to include CORS response headers, (GET, OPTIONS, POST, etc) Note: "*" is permitted in the list of methods, and means "any method".
Method []*string `json:"method,omitempty" tf:"method,omitempty"`
// The list of Origins eligible to receive CORS response headers. Note: "*" is permitted in the list of origins, and means "any Origin".
Origin []*string `json:"origin,omitempty" tf:"origin,omitempty"`
// The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.
ResponseHeader []*string `json:"responseHeader,omitempty" tf:"response_header,omitempty"`
}
type CorsObservation struct {
// The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.
MaxAgeSeconds *float64 `json:"maxAgeSeconds,omitempty" tf:"max_age_seconds,omitempty"`
// The list of HTTP methods on which to include CORS response headers, (GET, OPTIONS, POST, etc) Note: "*" is permitted in the list of methods, and means "any method".
Method []*string `json:"method,omitempty" tf:"method,omitempty"`
// The list of Origins eligible to receive CORS response headers. Note: "*" is permitted in the list of origins, and means "any Origin".
Origin []*string `json:"origin,omitempty" tf:"origin,omitempty"`
// The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.
ResponseHeader []*string `json:"responseHeader,omitempty" tf:"response_header,omitempty"`
}
type CorsParameters struct {
// The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.
// +kubebuilder:validation:Optional
MaxAgeSeconds *float64 `json:"maxAgeSeconds,omitempty" tf:"max_age_seconds,omitempty"`
// The list of HTTP methods on which to include CORS response headers, (GET, OPTIONS, POST, etc) Note: "*" is permitted in the list of methods, and means "any method".
// +kubebuilder:validation:Optional
Method []*string `json:"method,omitempty" tf:"method,omitempty"`
// The list of Origins eligible to receive CORS response headers. Note: "*" is permitted in the list of origins, and means "any Origin".
// +kubebuilder:validation:Optional
Origin []*string `json:"origin,omitempty" tf:"origin,omitempty"`
// The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.
// +kubebuilder:validation:Optional
ResponseHeader []*string `json:"responseHeader,omitempty" tf:"response_header,omitempty"`
}
type CustomPlacementConfigInitParameters struct {
// The list of individual regions that comprise a dual-region bucket. See Cloud Storage bucket locations for a list of acceptable regions. Note: If any of the data_locations changes, it will recreate the bucket.
// +listType=set
DataLocations []*string `json:"dataLocations,omitempty" tf:"data_locations,omitempty"`
}
type CustomPlacementConfigObservation struct {
// The list of individual regions that comprise a dual-region bucket. See Cloud Storage bucket locations for a list of acceptable regions. Note: If any of the data_locations changes, it will recreate the bucket.
// +listType=set
DataLocations []*string `json:"dataLocations,omitempty" tf:"data_locations,omitempty"`
}
type CustomPlacementConfigParameters struct {
// The list of individual regions that comprise a dual-region bucket. See Cloud Storage bucket locations for a list of acceptable regions. Note: If any of the data_locations changes, it will recreate the bucket.
// +kubebuilder:validation:Optional
// +listType=set
DataLocations []*string `json:"dataLocations" tf:"data_locations,omitempty"`
}
type EncryptionInitParameters struct {
// : The id of a Cloud KMS key that will be used to encrypt objects inserted into this bucket, if no encryption method is specified.
// You must pay attention to whether the crypto key is available in the location that this bucket is created in.
// See the docs for more details.
DefaultKMSKeyName *string `json:"defaultKmsKeyName,omitempty" tf:"default_kms_key_name,omitempty"`
}
type EncryptionObservation struct {
// : The id of a Cloud KMS key that will be used to encrypt objects inserted into this bucket, if no encryption method is specified.
// You must pay attention to whether the crypto key is available in the location that this bucket is created in.
// See the docs for more details.
DefaultKMSKeyName *string `json:"defaultKmsKeyName,omitempty" tf:"default_kms_key_name,omitempty"`
}
type EncryptionParameters struct {
// : The id of a Cloud KMS key that will be used to encrypt objects inserted into this bucket, if no encryption method is specified.
// You must pay attention to whether the crypto key is available in the location that this bucket is created in.
// See the docs for more details.
// +kubebuilder:validation:Optional
DefaultKMSKeyName *string `json:"defaultKmsKeyName" tf:"default_kms_key_name,omitempty"`
}
type LifecycleRuleInitParameters struct {
// The Lifecycle Rule's action configuration. A single block of this type is supported. Structure is documented below.
Action *ActionInitParameters `json:"action,omitempty" tf:"action,omitempty"`
// The Lifecycle Rule's condition configuration. A single block of this type is supported. Structure is documented below.
Condition *ConditionInitParameters `json:"condition,omitempty" tf:"condition,omitempty"`
}
type LifecycleRuleObservation struct {
// The Lifecycle Rule's action configuration. A single block of this type is supported. Structure is documented below.
Action *ActionObservation `json:"action,omitempty" tf:"action,omitempty"`
// The Lifecycle Rule's condition configuration. A single block of this type is supported. Structure is documented below.
Condition *ConditionObservation `json:"condition,omitempty" tf:"condition,omitempty"`
}
type LifecycleRuleParameters struct {
// The Lifecycle Rule's action configuration. A single block of this type is supported. Structure is documented below.
// +kubebuilder:validation:Optional
Action *ActionParameters `json:"action" tf:"action,omitempty"`
// The Lifecycle Rule's condition configuration. A single block of this type is supported. Structure is documented below.
// +kubebuilder:validation:Optional
Condition *ConditionParameters `json:"condition" tf:"condition,omitempty"`
}
type LoggingInitParameters struct {
// The bucket that will receive log objects.
LogBucket *string `json:"logBucket,omitempty" tf:"log_bucket,omitempty"`
// The object prefix for log objects. If it's not provided,
// by default GCS sets this to this bucket's name.
LogObjectPrefix *string `json:"logObjectPrefix,omitempty" tf:"log_object_prefix,omitempty"`
}
type LoggingObservation struct {
// The bucket that will receive log objects.
LogBucket *string `json:"logBucket,omitempty" tf:"log_bucket,omitempty"`
// The object prefix for log objects. If it's not provided,
// by default GCS sets this to this bucket's name.
LogObjectPrefix *string `json:"logObjectPrefix,omitempty" tf:"log_object_prefix,omitempty"`
}
type LoggingParameters struct {
// The bucket that will receive log objects.
// +kubebuilder:validation:Optional
LogBucket *string `json:"logBucket" tf:"log_bucket,omitempty"`
// The object prefix for log objects. If it's not provided,
// by default GCS sets this to this bucket's name.
// +kubebuilder:validation:Optional
LogObjectPrefix *string `json:"logObjectPrefix,omitempty" tf:"log_object_prefix,omitempty"`
}
type RetentionPolicyInitParameters struct {
// If set to true, the bucket will be locked and permanently restrict edits to the bucket's retention policy. Caution: Locking a bucket is an irreversible action.
IsLocked *bool `json:"isLocked,omitempty" tf:"is_locked,omitempty"`
// The period of time, in seconds, that objects in the bucket must be retained and cannot be deleted, overwritten, or archived. The value must be less than 2,147,483,647 seconds.
RetentionPeriod *float64 `json:"retentionPeriod,omitempty" tf:"retention_period,omitempty"`
}
type RetentionPolicyObservation struct {
// If set to true, the bucket will be locked and permanently restrict edits to the bucket's retention policy. Caution: Locking a bucket is an irreversible action.
IsLocked *bool `json:"isLocked,omitempty" tf:"is_locked,omitempty"`
// The period of time, in seconds, that objects in the bucket must be retained and cannot be deleted, overwritten, or archived. The value must be less than 2,147,483,647 seconds.
RetentionPeriod *float64 `json:"retentionPeriod,omitempty" tf:"retention_period,omitempty"`
}
type RetentionPolicyParameters struct {
// If set to true, the bucket will be locked and permanently restrict edits to the bucket's retention policy. Caution: Locking a bucket is an irreversible action.
// +kubebuilder:validation:Optional
IsLocked *bool `json:"isLocked,omitempty" tf:"is_locked,omitempty"`
// The period of time, in seconds, that objects in the bucket must be retained and cannot be deleted, overwritten, or archived. The value must be less than 2,147,483,647 seconds.
// +kubebuilder:validation:Optional
RetentionPeriod *float64 `json:"retentionPeriod" tf:"retention_period,omitempty"`
}
type VersioningInitParameters struct {
// While set to true, versioning is fully enabled for this bucket.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
}
type VersioningObservation struct {
// While set to true, versioning is fully enabled for this bucket.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
}
type VersioningParameters struct {
// While set to true, versioning is fully enabled for this bucket.
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled" tf:"enabled,omitempty"`
}
type WebsiteInitParameters struct {
// Behaves as the bucket's directory index where
// missing objects are treated as potential directories.
MainPageSuffix *string `json:"mainPageSuffix,omitempty" tf:"main_page_suffix,omitempty"`
// The custom object to return when a requested
// resource is not found.
NotFoundPage *string `json:"notFoundPage,omitempty" tf:"not_found_page,omitempty"`
}
type WebsiteObservation struct {
// Behaves as the bucket's directory index where
// missing objects are treated as potential directories.
MainPageSuffix *string `json:"mainPageSuffix,omitempty" tf:"main_page_suffix,omitempty"`
// The custom object to return when a requested
// resource is not found.
NotFoundPage *string `json:"notFoundPage,omitempty" tf:"not_found_page,omitempty"`
}
type WebsiteParameters struct {
// Behaves as the bucket's directory index where
// missing objects are treated as potential directories.
// +kubebuilder:validation:Optional
MainPageSuffix *string `json:"mainPageSuffix,omitempty" tf:"main_page_suffix,omitempty"`
// The custom object to return when a requested
// resource is not found.
// +kubebuilder:validation:Optional
NotFoundPage *string `json:"notFoundPage,omitempty" tf:"not_found_page,omitempty"`
}
// BucketSpec defines the desired state of Bucket
type BucketSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider BucketParameters `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 BucketInitParameters `json:"initProvider,omitempty"`
}
// BucketStatus defines the observed state of Bucket.
type BucketStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider BucketObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// Bucket is the Schema for the Buckets API. Creates a new bucket in Google Cloud Storage.
// +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 Bucket struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.location) || (has(self.initProvider) && has(self.initProvider.location))",message="spec.forProvider.location is a required parameter"
Spec BucketSpec `json:"spec"`
Status BucketStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// BucketList contains a list of Buckets
type BucketList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Bucket `json:"items"`
}
// Repository type metadata.
var (
Bucket_Kind = "Bucket"
Bucket_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Bucket_Kind}.String()
Bucket_KindAPIVersion = Bucket_Kind + "." + CRDGroupVersion.String()
Bucket_GroupVersionKind = CRDGroupVersion.WithKind(Bucket_Kind)
)
func init() {
SchemeBuilder.Register(&Bucket{}, &BucketList{})
}