-
Notifications
You must be signed in to change notification settings - Fork 64
/
zz_cluster_types.go
executable file
·686 lines (506 loc) · 31.7 KB
/
zz_cluster_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
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
/*
Copyright 2021 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 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 AutomatedBackupPolicyEncryptionConfigInitParameters struct {
// The fully-qualified resource name of the KMS key. Each Cloud KMS key is regionalized and has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME].
KMSKeyName *string `json:"kmsKeyName,omitempty" tf:"kms_key_name,omitempty"`
}
type AutomatedBackupPolicyEncryptionConfigObservation struct {
// The fully-qualified resource name of the KMS key. Each Cloud KMS key is regionalized and has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME].
KMSKeyName *string `json:"kmsKeyName,omitempty" tf:"kms_key_name,omitempty"`
}
type AutomatedBackupPolicyEncryptionConfigParameters struct {
// The fully-qualified resource name of the KMS key. Each Cloud KMS key is regionalized and has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME].
// +kubebuilder:validation:Optional
KMSKeyName *string `json:"kmsKeyName,omitempty" tf:"kms_key_name,omitempty"`
}
type AutomatedBackupPolicyInitParameters struct {
// The length of the time window during which a backup can be taken. If a backup does not succeed within this time window, it will be canceled and considered failed.
// The backup window must be at least 5 minutes long. There is no upper bound on the window. If not set, it will default to 1 hour.
// A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
BackupWindow *string `json:"backupWindow,omitempty" tf:"backup_window,omitempty"`
// Whether automated backups are enabled.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key).
// Structure is documented below.
EncryptionConfig []AutomatedBackupPolicyEncryptionConfigInitParameters `json:"encryptionConfig,omitempty" tf:"encryption_config,omitempty"`
// Labels to apply to backups created using this configuration.
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// Quantity-based Backup retention policy to retain recent backups. Conflicts with 'time_based_retention', both can't be set together.
// Structure is documented below.
QuantityBasedRetention []QuantityBasedRetentionInitParameters `json:"quantityBasedRetention,omitempty" tf:"quantity_based_retention,omitempty"`
// Time-based Backup retention policy. Conflicts with 'quantity_based_retention', both can't be set together.
// Structure is documented below.
TimeBasedRetention []TimeBasedRetentionInitParameters `json:"timeBasedRetention,omitempty" tf:"time_based_retention,omitempty"`
// Weekly schedule for the Backup.
// Structure is documented below.
WeeklySchedule []WeeklyScheduleInitParameters `json:"weeklySchedule,omitempty" tf:"weekly_schedule,omitempty"`
}
type AutomatedBackupPolicyObservation struct {
// The length of the time window during which a backup can be taken. If a backup does not succeed within this time window, it will be canceled and considered failed.
// The backup window must be at least 5 minutes long. There is no upper bound on the window. If not set, it will default to 1 hour.
// A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
BackupWindow *string `json:"backupWindow,omitempty" tf:"backup_window,omitempty"`
// Whether automated backups are enabled.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key).
// Structure is documented below.
EncryptionConfig []AutomatedBackupPolicyEncryptionConfigObservation `json:"encryptionConfig,omitempty" tf:"encryption_config,omitempty"`
// Labels to apply to backups created using this configuration.
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// The location where the backup will be stored. Currently, the only supported option is to store the backup in the same region as the cluster.
Location *string `json:"location,omitempty" tf:"location,omitempty"`
// Quantity-based Backup retention policy to retain recent backups. Conflicts with 'time_based_retention', both can't be set together.
// Structure is documented below.
QuantityBasedRetention []QuantityBasedRetentionObservation `json:"quantityBasedRetention,omitempty" tf:"quantity_based_retention,omitempty"`
// Time-based Backup retention policy. Conflicts with 'quantity_based_retention', both can't be set together.
// Structure is documented below.
TimeBasedRetention []TimeBasedRetentionObservation `json:"timeBasedRetention,omitempty" tf:"time_based_retention,omitempty"`
// Weekly schedule for the Backup.
// Structure is documented below.
WeeklySchedule []WeeklyScheduleObservation `json:"weeklySchedule,omitempty" tf:"weekly_schedule,omitempty"`
}
type AutomatedBackupPolicyParameters struct {
// The length of the time window during which a backup can be taken. If a backup does not succeed within this time window, it will be canceled and considered failed.
// The backup window must be at least 5 minutes long. There is no upper bound on the window. If not set, it will default to 1 hour.
// A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
// +kubebuilder:validation:Optional
BackupWindow *string `json:"backupWindow,omitempty" tf:"backup_window,omitempty"`
// Whether automated backups are enabled.
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key).
// Structure is documented below.
// +kubebuilder:validation:Optional
EncryptionConfig []AutomatedBackupPolicyEncryptionConfigParameters `json:"encryptionConfig,omitempty" tf:"encryption_config,omitempty"`
// Labels to apply to backups created using this configuration.
// +kubebuilder:validation:Optional
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// The location where the backup will be stored. Currently, the only supported option is to store the backup in the same region as the cluster.
// +kubebuilder:validation:Optional
Location *string `json:"location,omitempty" tf:"location,omitempty"`
// Quantity-based Backup retention policy to retain recent backups. Conflicts with 'time_based_retention', both can't be set together.
// Structure is documented below.
// +kubebuilder:validation:Optional
QuantityBasedRetention []QuantityBasedRetentionParameters `json:"quantityBasedRetention,omitempty" tf:"quantity_based_retention,omitempty"`
// Time-based Backup retention policy. Conflicts with 'quantity_based_retention', both can't be set together.
// Structure is documented below.
// +kubebuilder:validation:Optional
TimeBasedRetention []TimeBasedRetentionParameters `json:"timeBasedRetention,omitempty" tf:"time_based_retention,omitempty"`
// Weekly schedule for the Backup.
// Structure is documented below.
// +kubebuilder:validation:Optional
WeeklySchedule []WeeklyScheduleParameters `json:"weeklySchedule,omitempty" tf:"weekly_schedule,omitempty"`
}
type BackupSourceInitParameters struct {
}
type BackupSourceObservation struct {
// The name of the backup resource.
BackupName *string `json:"backupName,omitempty" tf:"backup_name,omitempty"`
}
type BackupSourceParameters struct {
}
type ClusterEncryptionConfigInitParameters struct {
// The fully-qualified resource name of the KMS key. Each Cloud KMS key is regionalized and has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME].
KMSKeyName *string `json:"kmsKeyName,omitempty" tf:"kms_key_name,omitempty"`
}
type ClusterEncryptionConfigObservation struct {
// The fully-qualified resource name of the KMS key. Each Cloud KMS key is regionalized and has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME].
KMSKeyName *string `json:"kmsKeyName,omitempty" tf:"kms_key_name,omitempty"`
}
type ClusterEncryptionConfigParameters struct {
// The fully-qualified resource name of the KMS key. Each Cloud KMS key is regionalized and has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME].
// +kubebuilder:validation:Optional
KMSKeyName *string `json:"kmsKeyName,omitempty" tf:"kms_key_name,omitempty"`
}
type ClusterEncryptionInfoInitParameters struct {
}
type ClusterEncryptionInfoObservation struct {
// (Output)
// Output only. Type of encryption.
EncryptionType *string `json:"encryptionType,omitempty" tf:"encryption_type,omitempty"`
// (Output)
// Output only. Cloud KMS key versions that are being used to protect the database or the backup.
KMSKeyVersions []*string `json:"kmsKeyVersions,omitempty" tf:"kms_key_versions,omitempty"`
}
type ClusterEncryptionInfoParameters struct {
}
type ClusterInitParameters struct {
// The automated backup policy for this cluster. AutomatedBackupPolicy is disabled by default.
// Structure is documented below.
AutomatedBackupPolicy []AutomatedBackupPolicyInitParameters `json:"automatedBackupPolicy,omitempty" tf:"automated_backup_policy,omitempty"`
// The continuous backup config for this cluster.
// If no policy is provided then the default policy will be used. The default policy takes one backup a day and retains backups for 14 days.
// Structure is documented below.
ContinuousBackupConfig []ContinuousBackupConfigInitParameters `json:"continuousBackupConfig,omitempty" tf:"continuous_backup_config,omitempty"`
// User-settable and human-readable display name for the Cluster.
DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`
// EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key).
// Structure is documented below.
EncryptionConfig []ClusterEncryptionConfigInitParameters `json:"encryptionConfig,omitempty" tf:"encryption_config,omitempty"`
// Initial user to setup during cluster creation.
// Structure is documented below.
InitialUser []InitialUserInitParameters `json:"initialUser,omitempty" tf:"initial_user,omitempty"`
// User-defined labels for the alloydb cluster.
Labels map[string]*string `json:"labels,omitempty" tf:"labels,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"`
}
type ClusterObservation struct {
// The automated backup policy for this cluster. AutomatedBackupPolicy is disabled by default.
// Structure is documented below.
AutomatedBackupPolicy []AutomatedBackupPolicyObservation `json:"automatedBackupPolicy,omitempty" tf:"automated_backup_policy,omitempty"`
// Cluster created from backup.
// Structure is documented below.
BackupSource []BackupSourceObservation `json:"backupSource,omitempty" tf:"backup_source,omitempty"`
// The continuous backup config for this cluster.
// If no policy is provided then the default policy will be used. The default policy takes one backup a day and retains backups for 14 days.
// Structure is documented below.
ContinuousBackupConfig []ContinuousBackupConfigObservation `json:"continuousBackupConfig,omitempty" tf:"continuous_backup_config,omitempty"`
// ContinuousBackupInfo describes the continuous backup properties of a cluster.
// Structure is documented below.
ContinuousBackupInfo []ContinuousBackupInfoObservation `json:"continuousBackupInfo,omitempty" tf:"continuous_backup_info,omitempty"`
// The database engine major version. This is an output-only field and it's populated at the Cluster creation time. This field cannot be changed after cluster creation.
DatabaseVersion *string `json:"databaseVersion,omitempty" tf:"database_version,omitempty"`
// User-settable and human-readable display name for the Cluster.
DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`
// EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key).
// Structure is documented below.
EncryptionConfig []ClusterEncryptionConfigObservation `json:"encryptionConfig,omitempty" tf:"encryption_config,omitempty"`
// EncryptionInfo describes the encryption information of a cluster or a backup.
// Structure is documented below.
EncryptionInfo []ClusterEncryptionInfoObservation `json:"encryptionInfo,omitempty" tf:"encryption_info,omitempty"`
// an identifier for the resource with format projects/{{project}}/locations/{{location}}/clusters/{{cluster_id}}
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// Initial user to setup during cluster creation.
// Structure is documented below.
InitialUser []InitialUserObservation `json:"initialUser,omitempty" tf:"initial_user,omitempty"`
// User-defined labels for the alloydb cluster.
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// The location where the alloydb cluster should reside.
Location *string `json:"location,omitempty" tf:"location,omitempty"`
// Cluster created via DMS migration.
// Structure is documented below.
MigrationSource []MigrationSourceObservation `json:"migrationSource,omitempty" tf:"migration_source,omitempty"`
// The name of the cluster resource.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The relative resource name of the VPC network on which the instance can be accessed. It is specified in the following form:
// "projects/{projectNumber}/global/networks/{network_id}".
Network *string `json:"network,omitempty" tf:"network,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"`
// The system-generated UID of the resource.
UID *string `json:"uid,omitempty" tf:"uid,omitempty"`
}
type ClusterParameters struct {
// The automated backup policy for this cluster. AutomatedBackupPolicy is disabled by default.
// Structure is documented below.
// +kubebuilder:validation:Optional
AutomatedBackupPolicy []AutomatedBackupPolicyParameters `json:"automatedBackupPolicy,omitempty" tf:"automated_backup_policy,omitempty"`
// The continuous backup config for this cluster.
// If no policy is provided then the default policy will be used. The default policy takes one backup a day and retains backups for 14 days.
// Structure is documented below.
// +kubebuilder:validation:Optional
ContinuousBackupConfig []ContinuousBackupConfigParameters `json:"continuousBackupConfig,omitempty" tf:"continuous_backup_config,omitempty"`
// User-settable and human-readable display name for the Cluster.
// +kubebuilder:validation:Optional
DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`
// EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key).
// Structure is documented below.
// +kubebuilder:validation:Optional
EncryptionConfig []ClusterEncryptionConfigParameters `json:"encryptionConfig,omitempty" tf:"encryption_config,omitempty"`
// Initial user to setup during cluster creation.
// Structure is documented below.
// +kubebuilder:validation:Optional
InitialUser []InitialUserParameters `json:"initialUser,omitempty" tf:"initial_user,omitempty"`
// User-defined labels for the alloydb cluster.
// +kubebuilder:validation:Optional
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// The location where the alloydb cluster should reside.
// +kubebuilder:validation:Required
Location *string `json:"location" tf:"location,omitempty"`
// The relative resource name of the VPC network on which the instance can be accessed. It is specified in the following form:
// "projects/{projectNumber}/global/networks/{network_id}".
// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/compute/v1beta1.Network
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID()
// +kubebuilder:validation:Optional
Network *string `json:"network,omitempty" tf:"network,omitempty"`
// Reference to a Network in compute to populate network.
// +kubebuilder:validation:Optional
NetworkRef *v1.Reference `json:"networkRef,omitempty" tf:"-"`
// Selector for a Network in compute to populate network.
// +kubebuilder:validation:Optional
NetworkSelector *v1.Selector `json:"networkSelector,omitempty" tf:"-"`
// 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"`
}
type ContinuousBackupConfigEncryptionConfigInitParameters struct {
// The fully-qualified resource name of the KMS key. Each Cloud KMS key is regionalized and has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME].
KMSKeyName *string `json:"kmsKeyName,omitempty" tf:"kms_key_name,omitempty"`
}
type ContinuousBackupConfigEncryptionConfigObservation struct {
// The fully-qualified resource name of the KMS key. Each Cloud KMS key is regionalized and has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME].
KMSKeyName *string `json:"kmsKeyName,omitempty" tf:"kms_key_name,omitempty"`
}
type ContinuousBackupConfigEncryptionConfigParameters struct {
// The fully-qualified resource name of the KMS key. Each Cloud KMS key is regionalized and has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME].
// +kubebuilder:validation:Optional
KMSKeyName *string `json:"kmsKeyName,omitempty" tf:"kms_key_name,omitempty"`
}
type ContinuousBackupConfigInitParameters struct {
// Whether continuous backup recovery is enabled. If not set, defaults to true.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key).
// Structure is documented below.
EncryptionConfig []ContinuousBackupConfigEncryptionConfigInitParameters `json:"encryptionConfig,omitempty" tf:"encryption_config,omitempty"`
// The numbers of days that are eligible to restore from using PITR. To support the entire recovery window, backups and logs are retained for one day more than the recovery window.
// If not set, defaults to 14 days.
RecoveryWindowDays *float64 `json:"recoveryWindowDays,omitempty" tf:"recovery_window_days,omitempty"`
}
type ContinuousBackupConfigObservation struct {
// Whether continuous backup recovery is enabled. If not set, defaults to true.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key).
// Structure is documented below.
EncryptionConfig []ContinuousBackupConfigEncryptionConfigObservation `json:"encryptionConfig,omitempty" tf:"encryption_config,omitempty"`
// The numbers of days that are eligible to restore from using PITR. To support the entire recovery window, backups and logs are retained for one day more than the recovery window.
// If not set, defaults to 14 days.
RecoveryWindowDays *float64 `json:"recoveryWindowDays,omitempty" tf:"recovery_window_days,omitempty"`
}
type ContinuousBackupConfigParameters struct {
// Whether continuous backup recovery is enabled. If not set, defaults to true.
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key).
// Structure is documented below.
// +kubebuilder:validation:Optional
EncryptionConfig []ContinuousBackupConfigEncryptionConfigParameters `json:"encryptionConfig,omitempty" tf:"encryption_config,omitempty"`
// The numbers of days that are eligible to restore from using PITR. To support the entire recovery window, backups and logs are retained for one day more than the recovery window.
// If not set, defaults to 14 days.
// +kubebuilder:validation:Optional
RecoveryWindowDays *float64 `json:"recoveryWindowDays,omitempty" tf:"recovery_window_days,omitempty"`
}
type ContinuousBackupInfoEncryptionInfoInitParameters struct {
}
type ContinuousBackupInfoEncryptionInfoObservation struct {
// (Output)
// Output only. Type of encryption.
EncryptionType *string `json:"encryptionType,omitempty" tf:"encryption_type,omitempty"`
// (Output)
// Output only. Cloud KMS key versions that are being used to protect the database or the backup.
KMSKeyVersions []*string `json:"kmsKeyVersions,omitempty" tf:"kms_key_versions,omitempty"`
}
type ContinuousBackupInfoEncryptionInfoParameters struct {
}
type ContinuousBackupInfoInitParameters struct {
}
type ContinuousBackupInfoObservation struct {
// (Output)
// The earliest restorable time that can be restored to. Output only field.
EarliestRestorableTime *string `json:"earliestRestorableTime,omitempty" tf:"earliest_restorable_time,omitempty"`
// (Output)
// When ContinuousBackup was most recently enabled. Set to null if ContinuousBackup is not enabled.
EnabledTime *string `json:"enabledTime,omitempty" tf:"enabled_time,omitempty"`
// (Output)
// Output only. The encryption information for the WALs and backups required for ContinuousBackup.
// Structure is documented below.
EncryptionInfo []ContinuousBackupInfoEncryptionInfoObservation `json:"encryptionInfo,omitempty" tf:"encryption_info,omitempty"`
// (Output)
// Days of the week on which a continuous backup is taken. Output only field. Ignored if passed into the request.
Schedule []*string `json:"schedule,omitempty" tf:"schedule,omitempty"`
}
type ContinuousBackupInfoParameters struct {
}
type InitialUserInitParameters struct {
// The database username.
User *string `json:"user,omitempty" tf:"user,omitempty"`
}
type InitialUserObservation struct {
// The database username.
User *string `json:"user,omitempty" tf:"user,omitempty"`
}
type InitialUserParameters struct {
// The initial password for the user.
// Note: This property is sensitive and will not be displayed in the plan.
// +kubebuilder:validation:Required
PasswordSecretRef v1.SecretKeySelector `json:"passwordSecretRef" tf:"-"`
// The database username.
// +kubebuilder:validation:Optional
User *string `json:"user,omitempty" tf:"user,omitempty"`
}
type MigrationSourceInitParameters struct {
}
type MigrationSourceObservation struct {
// The host and port of the on-premises instance in host:port format
HostPort *string `json:"hostPort,omitempty" tf:"host_port,omitempty"`
// Place holder for the external source identifier(e.g DMS job name) that created the cluster.
ReferenceID *string `json:"referenceId,omitempty" tf:"reference_id,omitempty"`
// Type of migration source.
SourceType *string `json:"sourceType,omitempty" tf:"source_type,omitempty"`
}
type MigrationSourceParameters struct {
}
type QuantityBasedRetentionInitParameters struct {
// The number of backups to retain.
Count *float64 `json:"count,omitempty" tf:"count,omitempty"`
}
type QuantityBasedRetentionObservation struct {
// The number of backups to retain.
Count *float64 `json:"count,omitempty" tf:"count,omitempty"`
}
type QuantityBasedRetentionParameters struct {
// The number of backups to retain.
// +kubebuilder:validation:Optional
Count *float64 `json:"count,omitempty" tf:"count,omitempty"`
}
type StartTimesInitParameters struct {
// Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
Hours *float64 `json:"hours,omitempty" tf:"hours,omitempty"`
// Minutes of hour of day. Currently, only the value 0 is supported.
Minutes *float64 `json:"minutes,omitempty" tf:"minutes,omitempty"`
// Fractions of seconds in nanoseconds. Currently, only the value 0 is supported.
Nanos *float64 `json:"nanos,omitempty" tf:"nanos,omitempty"`
// Seconds of minutes of the time. Currently, only the value 0 is supported.
Seconds *float64 `json:"seconds,omitempty" tf:"seconds,omitempty"`
}
type StartTimesObservation struct {
// Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
Hours *float64 `json:"hours,omitempty" tf:"hours,omitempty"`
// Minutes of hour of day. Currently, only the value 0 is supported.
Minutes *float64 `json:"minutes,omitempty" tf:"minutes,omitempty"`
// Fractions of seconds in nanoseconds. Currently, only the value 0 is supported.
Nanos *float64 `json:"nanos,omitempty" tf:"nanos,omitempty"`
// Seconds of minutes of the time. Currently, only the value 0 is supported.
Seconds *float64 `json:"seconds,omitempty" tf:"seconds,omitempty"`
}
type StartTimesParameters struct {
// Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
// +kubebuilder:validation:Optional
Hours *float64 `json:"hours,omitempty" tf:"hours,omitempty"`
// Minutes of hour of day. Currently, only the value 0 is supported.
// +kubebuilder:validation:Optional
Minutes *float64 `json:"minutes,omitempty" tf:"minutes,omitempty"`
// Fractions of seconds in nanoseconds. Currently, only the value 0 is supported.
// +kubebuilder:validation:Optional
Nanos *float64 `json:"nanos,omitempty" tf:"nanos,omitempty"`
// Seconds of minutes of the time. Currently, only the value 0 is supported.
// +kubebuilder:validation:Optional
Seconds *float64 `json:"seconds,omitempty" tf:"seconds,omitempty"`
}
type TimeBasedRetentionInitParameters struct {
// The retention period.
// A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
RetentionPeriod *string `json:"retentionPeriod,omitempty" tf:"retention_period,omitempty"`
}
type TimeBasedRetentionObservation struct {
// The retention period.
// A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
RetentionPeriod *string `json:"retentionPeriod,omitempty" tf:"retention_period,omitempty"`
}
type TimeBasedRetentionParameters struct {
// The retention period.
// A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
// +kubebuilder:validation:Optional
RetentionPeriod *string `json:"retentionPeriod,omitempty" tf:"retention_period,omitempty"`
}
type WeeklyScheduleInitParameters struct {
// The days of the week to perform a backup. At least one day of the week must be provided.
// Each value may be one of: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY.
DaysOfWeek []*string `json:"daysOfWeek,omitempty" tf:"days_of_week,omitempty"`
// The times during the day to start a backup. At least one start time must be provided. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00).
// Structure is documented below.
StartTimes []StartTimesInitParameters `json:"startTimes,omitempty" tf:"start_times,omitempty"`
}
type WeeklyScheduleObservation struct {
// The days of the week to perform a backup. At least one day of the week must be provided.
// Each value may be one of: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY.
DaysOfWeek []*string `json:"daysOfWeek,omitempty" tf:"days_of_week,omitempty"`
// The times during the day to start a backup. At least one start time must be provided. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00).
// Structure is documented below.
StartTimes []StartTimesObservation `json:"startTimes,omitempty" tf:"start_times,omitempty"`
}
type WeeklyScheduleParameters struct {
// The days of the week to perform a backup. At least one day of the week must be provided.
// Each value may be one of: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY.
// +kubebuilder:validation:Optional
DaysOfWeek []*string `json:"daysOfWeek,omitempty" tf:"days_of_week,omitempty"`
// The times during the day to start a backup. At least one start time must be provided. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00).
// Structure is documented below.
// +kubebuilder:validation:Optional
StartTimes []StartTimesParameters `json:"startTimes" tf:"start_times,omitempty"`
}
// ClusterSpec defines the desired state of Cluster
type ClusterSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider ClusterParameters `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 ClusterInitParameters `json:"initProvider,omitempty"`
}
// ClusterStatus defines the observed state of Cluster.
type ClusterStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider ClusterObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// Cluster is the Schema for the Clusters API. A managed alloydb cluster.
// +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,gcp}
type Cluster struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ClusterSpec `json:"spec"`
Status ClusterStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// ClusterList contains a list of Clusters
type ClusterList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Cluster `json:"items"`
}
// Repository type metadata.
var (
Cluster_Kind = "Cluster"
Cluster_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Cluster_Kind}.String()
Cluster_KindAPIVersion = Cluster_Kind + "." + CRDGroupVersion.String()
Cluster_GroupVersionKind = CRDGroupVersion.WithKind(Cluster_Kind)
)
func init() {
SchemeBuilder.Register(&Cluster{}, &ClusterList{})
}