-
Notifications
You must be signed in to change notification settings - Fork 68
/
zz_databaseinstance_types.go
executable file
·1564 lines (1144 loc) · 78.9 KB
/
zz_databaseinstance_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
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// 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 ActiveDirectoryConfigInitParameters struct {
// The domain name for the active directory (e.g., mydomain.com).
// Can only be used with SQL Server.
Domain *string `json:"domain,omitempty" tf:"domain,omitempty"`
}
type ActiveDirectoryConfigObservation struct {
// The domain name for the active directory (e.g., mydomain.com).
// Can only be used with SQL Server.
Domain *string `json:"domain,omitempty" tf:"domain,omitempty"`
}
type ActiveDirectoryConfigParameters struct {
// The domain name for the active directory (e.g., mydomain.com).
// Can only be used with SQL Server.
// +kubebuilder:validation:Optional
Domain *string `json:"domain" tf:"domain,omitempty"`
}
type AdvancedMachineFeaturesInitParameters struct {
// The number of threads per core. The value of this flag can be 1 or 2. To disable SMT, set this flag to 1. Only available in Cloud SQL for SQL Server instances. See smt for more details.
ThreadsPerCore *float64 `json:"threadsPerCore,omitempty" tf:"threads_per_core,omitempty"`
}
type AdvancedMachineFeaturesObservation struct {
// The number of threads per core. The value of this flag can be 1 or 2. To disable SMT, set this flag to 1. Only available in Cloud SQL for SQL Server instances. See smt for more details.
ThreadsPerCore *float64 `json:"threadsPerCore,omitempty" tf:"threads_per_core,omitempty"`
}
type AdvancedMachineFeaturesParameters struct {
// The number of threads per core. The value of this flag can be 1 or 2. To disable SMT, set this flag to 1. Only available in Cloud SQL for SQL Server instances. See smt for more details.
// +kubebuilder:validation:Optional
ThreadsPerCore *float64 `json:"threadsPerCore,omitempty" tf:"threads_per_core,omitempty"`
}
type AuthorizedNetworksInitParameters struct {
// The RFC 3339
// formatted date time string indicating when this whitelist expires.
ExpirationTime *string `json:"expirationTime,omitempty" tf:"expiration_time,omitempty"`
// A name for this whitelist entry.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// A CIDR notation IPv4 or IPv6 address that is allowed to
// access this instance. Must be set even if other two attributes are not for
// the whitelist to become active.
Value *string `json:"value,omitempty" tf:"value,omitempty"`
}
type AuthorizedNetworksObservation struct {
// The RFC 3339
// formatted date time string indicating when this whitelist expires.
ExpirationTime *string `json:"expirationTime,omitempty" tf:"expiration_time,omitempty"`
// A name for this whitelist entry.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// A CIDR notation IPv4 or IPv6 address that is allowed to
// access this instance. Must be set even if other two attributes are not for
// the whitelist to become active.
Value *string `json:"value,omitempty" tf:"value,omitempty"`
}
type AuthorizedNetworksParameters struct {
// The RFC 3339
// formatted date time string indicating when this whitelist expires.
// +kubebuilder:validation:Optional
ExpirationTime *string `json:"expirationTime,omitempty" tf:"expiration_time,omitempty"`
// A name for this whitelist entry.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// A CIDR notation IPv4 or IPv6 address that is allowed to
// access this instance. Must be set even if other two attributes are not for
// the whitelist to become active.
// +kubebuilder:validation:Optional
Value *string `json:"value" tf:"value,omitempty"`
}
type BackupConfigurationInitParameters struct {
// Backup retention settings. The configuration is detailed below.
BackupRetentionSettings []BackupRetentionSettingsInitParameters `json:"backupRetentionSettings,omitempty" tf:"backup_retention_settings,omitempty"`
// True if binary logging is enabled.
// Can only be used with MySQL.
BinaryLogEnabled *bool `json:"binaryLogEnabled,omitempty" tf:"binary_log_enabled,omitempty"`
// True if backup configuration is enabled.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// The region where the backup will be stored
Location *string `json:"location,omitempty" tf:"location,omitempty"`
// True if Point-in-time recovery is enabled. Will restart database if enabled after instance creation. Valid only for PostgreSQL and SQL Server instances.
PointInTimeRecoveryEnabled *bool `json:"pointInTimeRecoveryEnabled,omitempty" tf:"point_in_time_recovery_enabled,omitempty"`
// HH:MM format time indicating when backup
// configuration starts.
StartTime *string `json:"startTime,omitempty" tf:"start_time,omitempty"`
// The number of days of transaction logs we retain for point in time restore, from 1-7. For PostgreSQL Enterprise Plus instances, the number of days of retained transaction logs can be set from 1 to 35.
TransactionLogRetentionDays *float64 `json:"transactionLogRetentionDays,omitempty" tf:"transaction_log_retention_days,omitempty"`
}
type BackupConfigurationObservation struct {
// Backup retention settings. The configuration is detailed below.
BackupRetentionSettings []BackupRetentionSettingsObservation `json:"backupRetentionSettings,omitempty" tf:"backup_retention_settings,omitempty"`
// True if binary logging is enabled.
// Can only be used with MySQL.
BinaryLogEnabled *bool `json:"binaryLogEnabled,omitempty" tf:"binary_log_enabled,omitempty"`
// True if backup configuration is enabled.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// The region where the backup will be stored
Location *string `json:"location,omitempty" tf:"location,omitempty"`
// True if Point-in-time recovery is enabled. Will restart database if enabled after instance creation. Valid only for PostgreSQL and SQL Server instances.
PointInTimeRecoveryEnabled *bool `json:"pointInTimeRecoveryEnabled,omitempty" tf:"point_in_time_recovery_enabled,omitempty"`
// HH:MM format time indicating when backup
// configuration starts.
StartTime *string `json:"startTime,omitempty" tf:"start_time,omitempty"`
// The number of days of transaction logs we retain for point in time restore, from 1-7. For PostgreSQL Enterprise Plus instances, the number of days of retained transaction logs can be set from 1 to 35.
TransactionLogRetentionDays *float64 `json:"transactionLogRetentionDays,omitempty" tf:"transaction_log_retention_days,omitempty"`
}
type BackupConfigurationParameters struct {
// Backup retention settings. The configuration is detailed below.
// +kubebuilder:validation:Optional
BackupRetentionSettings []BackupRetentionSettingsParameters `json:"backupRetentionSettings,omitempty" tf:"backup_retention_settings,omitempty"`
// True if binary logging is enabled.
// Can only be used with MySQL.
// +kubebuilder:validation:Optional
BinaryLogEnabled *bool `json:"binaryLogEnabled,omitempty" tf:"binary_log_enabled,omitempty"`
// True if backup configuration is enabled.
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// The region where the backup will be stored
// +kubebuilder:validation:Optional
Location *string `json:"location,omitempty" tf:"location,omitempty"`
// True if Point-in-time recovery is enabled. Will restart database if enabled after instance creation. Valid only for PostgreSQL and SQL Server instances.
// +kubebuilder:validation:Optional
PointInTimeRecoveryEnabled *bool `json:"pointInTimeRecoveryEnabled,omitempty" tf:"point_in_time_recovery_enabled,omitempty"`
// HH:MM format time indicating when backup
// configuration starts.
// +kubebuilder:validation:Optional
StartTime *string `json:"startTime,omitempty" tf:"start_time,omitempty"`
// The number of days of transaction logs we retain for point in time restore, from 1-7. For PostgreSQL Enterprise Plus instances, the number of days of retained transaction logs can be set from 1 to 35.
// +kubebuilder:validation:Optional
TransactionLogRetentionDays *float64 `json:"transactionLogRetentionDays,omitempty" tf:"transaction_log_retention_days,omitempty"`
}
type BackupRetentionSettingsInitParameters struct {
// Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit
// is 'COUNT', we will retain this many backups.
RetainedBackups *float64 `json:"retainedBackups,omitempty" tf:"retained_backups,omitempty"`
// The unit that 'retained_backups' represents. Defaults to COUNT.
RetentionUnit *string `json:"retentionUnit,omitempty" tf:"retention_unit,omitempty"`
}
type BackupRetentionSettingsObservation struct {
// Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit
// is 'COUNT', we will retain this many backups.
RetainedBackups *float64 `json:"retainedBackups,omitempty" tf:"retained_backups,omitempty"`
// The unit that 'retained_backups' represents. Defaults to COUNT.
RetentionUnit *string `json:"retentionUnit,omitempty" tf:"retention_unit,omitempty"`
}
type BackupRetentionSettingsParameters struct {
// Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit
// is 'COUNT', we will retain this many backups.
// +kubebuilder:validation:Optional
RetainedBackups *float64 `json:"retainedBackups" tf:"retained_backups,omitempty"`
// The unit that 'retained_backups' represents. Defaults to COUNT.
// +kubebuilder:validation:Optional
RetentionUnit *string `json:"retentionUnit,omitempty" tf:"retention_unit,omitempty"`
}
type CloneInitParameters struct {
// The name of the allocated ip range for the private ip CloudSQL instance. For example: "google-managed-services-default". If set, the cloned instance ip will be created in the allocated range. The range name must comply with RFC 1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?.
AllocatedIPRange *string `json:"allocatedIpRange,omitempty" tf:"allocated_ip_range,omitempty"`
// (SQL Server only, use with point_in_time) Clone only the specified databases from the source instance. Clone all databases if empty.
DatabaseNames []*string `json:"databaseNames,omitempty" tf:"database_names,omitempty"`
// The timestamp of the point in time that should be restored.
PointInTime *string `json:"pointInTime,omitempty" tf:"point_in_time,omitempty"`
// (Point-in-time recovery for PostgreSQL only) Clone to an instance in the specified zone. If no zone is specified, clone to the same zone as the source instance. clone-unavailable-instance
PreferredZone *string `json:"preferredZone,omitempty" tf:"preferred_zone,omitempty"`
// Name of the source instance which will be cloned.
SourceInstanceName *string `json:"sourceInstanceName,omitempty" tf:"source_instance_name,omitempty"`
}
type CloneObservation struct {
// The name of the allocated ip range for the private ip CloudSQL instance. For example: "google-managed-services-default". If set, the cloned instance ip will be created in the allocated range. The range name must comply with RFC 1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?.
AllocatedIPRange *string `json:"allocatedIpRange,omitempty" tf:"allocated_ip_range,omitempty"`
// (SQL Server only, use with point_in_time) Clone only the specified databases from the source instance. Clone all databases if empty.
DatabaseNames []*string `json:"databaseNames,omitempty" tf:"database_names,omitempty"`
// The timestamp of the point in time that should be restored.
PointInTime *string `json:"pointInTime,omitempty" tf:"point_in_time,omitempty"`
// (Point-in-time recovery for PostgreSQL only) Clone to an instance in the specified zone. If no zone is specified, clone to the same zone as the source instance. clone-unavailable-instance
PreferredZone *string `json:"preferredZone,omitempty" tf:"preferred_zone,omitempty"`
// Name of the source instance which will be cloned.
SourceInstanceName *string `json:"sourceInstanceName,omitempty" tf:"source_instance_name,omitempty"`
}
type CloneParameters struct {
// The name of the allocated ip range for the private ip CloudSQL instance. For example: "google-managed-services-default". If set, the cloned instance ip will be created in the allocated range. The range name must comply with RFC 1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?.
// +kubebuilder:validation:Optional
AllocatedIPRange *string `json:"allocatedIpRange,omitempty" tf:"allocated_ip_range,omitempty"`
// (SQL Server only, use with point_in_time) Clone only the specified databases from the source instance. Clone all databases if empty.
// +kubebuilder:validation:Optional
DatabaseNames []*string `json:"databaseNames,omitempty" tf:"database_names,omitempty"`
// The timestamp of the point in time that should be restored.
// +kubebuilder:validation:Optional
PointInTime *string `json:"pointInTime,omitempty" tf:"point_in_time,omitempty"`
// (Point-in-time recovery for PostgreSQL only) Clone to an instance in the specified zone. If no zone is specified, clone to the same zone as the source instance. clone-unavailable-instance
// +kubebuilder:validation:Optional
PreferredZone *string `json:"preferredZone,omitempty" tf:"preferred_zone,omitempty"`
// Name of the source instance which will be cloned.
// +kubebuilder:validation:Optional
SourceInstanceName *string `json:"sourceInstanceName" tf:"source_instance_name,omitempty"`
}
type DataCacheConfigInitParameters struct {
// Whether data cache is enabled for the instance. Defaults to false. Can be used with MYSQL and PostgreSQL only.
DataCacheEnabled *bool `json:"dataCacheEnabled,omitempty" tf:"data_cache_enabled,omitempty"`
}
type DataCacheConfigObservation struct {
// Whether data cache is enabled for the instance. Defaults to false. Can be used with MYSQL and PostgreSQL only.
DataCacheEnabled *bool `json:"dataCacheEnabled,omitempty" tf:"data_cache_enabled,omitempty"`
}
type DataCacheConfigParameters struct {
// Whether data cache is enabled for the instance. Defaults to false. Can be used with MYSQL and PostgreSQL only.
// +kubebuilder:validation:Optional
DataCacheEnabled *bool `json:"dataCacheEnabled,omitempty" tf:"data_cache_enabled,omitempty"`
}
type DatabaseFlagsInitParameters struct {
// A name for this whitelist entry.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// A CIDR notation IPv4 or IPv6 address that is allowed to
// access this instance. Must be set even if other two attributes are not for
// the whitelist to become active.
Value *string `json:"value,omitempty" tf:"value,omitempty"`
}
type DatabaseFlagsObservation struct {
// A name for this whitelist entry.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// A CIDR notation IPv4 or IPv6 address that is allowed to
// access this instance. Must be set even if other two attributes are not for
// the whitelist to become active.
Value *string `json:"value,omitempty" tf:"value,omitempty"`
}
type DatabaseFlagsParameters struct {
// A name for this whitelist entry.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
// A CIDR notation IPv4 or IPv6 address that is allowed to
// access this instance. Must be set even if other two attributes are not for
// the whitelist to become active.
// +kubebuilder:validation:Optional
Value *string `json:"value" tf:"value,omitempty"`
}
type DatabaseInstanceInitParameters struct {
// The context needed to create this instance as a clone of another instance. The
// configuration is detailed below.
Clone []CloneInitParameters `json:"clone,omitempty" tf:"clone,omitempty"`
// The MySQL, PostgreSQL or
// SQL Server version to use. Supported values include MYSQL_5_6,
// MYSQL_5_7, MYSQL_8_0, POSTGRES_9_6,POSTGRES_10, POSTGRES_11,
// POSTGRES_12, POSTGRES_13, POSTGRES_14, POSTGRES_15, SQLSERVER_2017_STANDARD,
// SQLSERVER_2017_ENTERPRISE, SQLSERVER_2017_EXPRESS, SQLSERVER_2017_WEB.
// SQLSERVER_2019_STANDARD, SQLSERVER_2019_ENTERPRISE, SQLSERVER_2019_EXPRESS,
// SQLSERVER_2019_WEB.
// Database Version Policies
// includes an up-to-date reference of supported versions.
DatabaseVersion *string `json:"databaseVersion,omitempty" tf:"database_version,omitempty"`
// Defaults to true.
DeletionProtection *bool `json:"deletionProtection,omitempty" tf:"deletion_protection,omitempty"`
// The full path to the encryption key used for the CMEK disk encryption.
// The provided key must be in the same region as the SQL instance. In order
// to use this feature, a special kind of service account must be created and
// granted permission on this key. This step can currently only be done
// manually, please see this step.
// That service account needs the Cloud KMS > Cloud KMS CryptoKey Encrypter/Decrypter role on your
// key - please see this step.
EncryptionKeyName *string `json:"encryptionKeyName,omitempty" tf:"encryption_key_name,omitempty"`
// The current software version on the instance. This attribute can not be set during creation. Refer to available_maintenance_versions attribute to see what maintenance_version are available for upgrade. When this attribute gets updated, it will cause an instance restart. Setting a maintenance_version value that is older than the current one on the instance will be ignored.
MaintenanceVersion *string `json:"maintenanceVersion,omitempty" tf:"maintenance_version,omitempty"`
// The name of the existing instance that will
// act as the master in the replication setup. Note, this requires the master to
// have binary_log_enabled set, as well as existing backups.
MasterInstanceName *string `json:"masterInstanceName,omitempty" tf:"master_instance_name,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 region the instance will sit in. If a region is not provided in the resource definition,
// the provider region will be used instead.
Region *string `json:"region,omitempty" tf:"region,omitempty"`
// The configuration for replication. The
// configuration is detailed below. Valid only for MySQL instances.
ReplicaConfiguration []ReplicaConfigurationInitParameters `json:"replicaConfiguration,omitempty" tf:"replica_configuration,omitempty"`
// The context needed to restore the database to a backup run. The configuration is detailed below. Adding or modifying this
// block during resource creation/update will trigger the restore action after the resource is created/updated.
RestoreBackupContext []RestoreBackupContextInitParameters `json:"restoreBackupContext,omitempty" tf:"restore_backup_context,omitempty"`
// The settings to use for the database. The
// configuration is detailed below. Required if clone is not set.
Settings []SettingsInitParameters `json:"settings,omitempty" tf:"settings,omitempty"`
}
type DatabaseInstanceObservation struct {
// The list of all maintenance versions applicable on the instance.
AvailableMaintenanceVersions []*string `json:"availableMaintenanceVersions,omitempty" tf:"available_maintenance_versions,omitempty"`
// The context needed to create this instance as a clone of another instance. The
// configuration is detailed below.
Clone []CloneObservation `json:"clone,omitempty" tf:"clone,omitempty"`
// The connection name of the instance to be used in
// connection strings. For example, when connecting with Cloud SQL Proxy.
ConnectionName *string `json:"connectionName,omitempty" tf:"connection_name,omitempty"`
// The name of the instance. This is done because after a name is used, it cannot be reused for
// up to one week.
DNSName *string `json:"dnsName,omitempty" tf:"dns_name,omitempty"`
// The MySQL, PostgreSQL or
// SQL Server version to use. Supported values include MYSQL_5_6,
// MYSQL_5_7, MYSQL_8_0, POSTGRES_9_6,POSTGRES_10, POSTGRES_11,
// POSTGRES_12, POSTGRES_13, POSTGRES_14, POSTGRES_15, SQLSERVER_2017_STANDARD,
// SQLSERVER_2017_ENTERPRISE, SQLSERVER_2017_EXPRESS, SQLSERVER_2017_WEB.
// SQLSERVER_2019_STANDARD, SQLSERVER_2019_ENTERPRISE, SQLSERVER_2019_EXPRESS,
// SQLSERVER_2019_WEB.
// Database Version Policies
// includes an up-to-date reference of supported versions.
DatabaseVersion *string `json:"databaseVersion,omitempty" tf:"database_version,omitempty"`
// Defaults to true.
DeletionProtection *bool `json:"deletionProtection,omitempty" tf:"deletion_protection,omitempty"`
// The full path to the encryption key used for the CMEK disk encryption.
// The provided key must be in the same region as the SQL instance. In order
// to use this feature, a special kind of service account must be created and
// granted permission on this key. This step can currently only be done
// manually, please see this step.
// That service account needs the Cloud KMS > Cloud KMS CryptoKey Encrypter/Decrypter role on your
// key - please see this step.
EncryptionKeyName *string `json:"encryptionKeyName,omitempty" tf:"encryption_key_name,omitempty"`
// The first IPv4 address of any type assigned.
FirstIPAddress *string `json:"firstIpAddress,omitempty" tf:"first_ip_address,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// The IPv4 address assigned.
IPAddress []IPAddressObservation `json:"ipAddress,omitempty" tf:"ip_address,omitempty"`
// The type of the instance. The supported values are SQL_INSTANCE_TYPE_UNSPECIFIED, CLOUD_SQL_INSTANCE, ON_PREMISES_INSTANCE and READ_REPLICA_INSTANCE.
InstanceType *string `json:"instanceType,omitempty" tf:"instance_type,omitempty"`
// The current software version on the instance. This attribute can not be set during creation. Refer to available_maintenance_versions attribute to see what maintenance_version are available for upgrade. When this attribute gets updated, it will cause an instance restart. Setting a maintenance_version value that is older than the current one on the instance will be ignored.
MaintenanceVersion *string `json:"maintenanceVersion,omitempty" tf:"maintenance_version,omitempty"`
// The name of the existing instance that will
// act as the master in the replication setup. Note, this requires the master to
// have binary_log_enabled set, as well as existing backups.
MasterInstanceName *string `json:"masterInstanceName,omitempty" tf:"master_instance_name,omitempty"`
// The first private (PRIVATE) IPv4 address assigned.
PrivateIPAddress *string `json:"privateIpAddress,omitempty" tf:"private_ip_address,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 URI that points to the service attachment of the instance.
PscServiceAttachmentLink *string `json:"pscServiceAttachmentLink,omitempty" tf:"psc_service_attachment_link,omitempty"`
// The first public (PRIMARY) IPv4 address assigned.
PublicIPAddress *string `json:"publicIpAddress,omitempty" tf:"public_ip_address,omitempty"`
// The region the instance will sit in. If a region is not provided in the resource definition,
// the provider region will be used instead.
Region *string `json:"region,omitempty" tf:"region,omitempty"`
// The configuration for replication. The
// configuration is detailed below. Valid only for MySQL instances.
ReplicaConfiguration []ReplicaConfigurationObservation `json:"replicaConfiguration,omitempty" tf:"replica_configuration,omitempty"`
// The context needed to restore the database to a backup run. The configuration is detailed below. Adding or modifying this
// block during resource creation/update will trigger the restore action after the resource is created/updated.
RestoreBackupContext []RestoreBackupContextObservation `json:"restoreBackupContext,omitempty" tf:"restore_backup_context,omitempty"`
// The URI of the created resource.
SelfLink *string `json:"selfLink,omitempty" tf:"self_link,omitempty"`
// The service account email address assigned to the
// instance.
ServiceAccountEmailAddress *string `json:"serviceAccountEmailAddress,omitempty" tf:"service_account_email_address,omitempty"`
// The settings to use for the database. The
// configuration is detailed below. Required if clone is not set.
Settings []SettingsObservation `json:"settings,omitempty" tf:"settings,omitempty"`
}
type DatabaseInstanceParameters struct {
// The context needed to create this instance as a clone of another instance. The
// configuration is detailed below.
// +kubebuilder:validation:Optional
Clone []CloneParameters `json:"clone,omitempty" tf:"clone,omitempty"`
// The MySQL, PostgreSQL or
// SQL Server version to use. Supported values include MYSQL_5_6,
// MYSQL_5_7, MYSQL_8_0, POSTGRES_9_6,POSTGRES_10, POSTGRES_11,
// POSTGRES_12, POSTGRES_13, POSTGRES_14, POSTGRES_15, SQLSERVER_2017_STANDARD,
// SQLSERVER_2017_ENTERPRISE, SQLSERVER_2017_EXPRESS, SQLSERVER_2017_WEB.
// SQLSERVER_2019_STANDARD, SQLSERVER_2019_ENTERPRISE, SQLSERVER_2019_EXPRESS,
// SQLSERVER_2019_WEB.
// Database Version Policies
// includes an up-to-date reference of supported versions.
// +kubebuilder:validation:Optional
DatabaseVersion *string `json:"databaseVersion,omitempty" tf:"database_version,omitempty"`
// Defaults to true.
// +kubebuilder:validation:Optional
DeletionProtection *bool `json:"deletionProtection,omitempty" tf:"deletion_protection,omitempty"`
// The full path to the encryption key used for the CMEK disk encryption.
// The provided key must be in the same region as the SQL instance. In order
// to use this feature, a special kind of service account must be created and
// granted permission on this key. This step can currently only be done
// manually, please see this step.
// That service account needs the Cloud KMS > Cloud KMS CryptoKey Encrypter/Decrypter role on your
// key - please see this step.
// +kubebuilder:validation:Optional
EncryptionKeyName *string `json:"encryptionKeyName,omitempty" tf:"encryption_key_name,omitempty"`
// The current software version on the instance. This attribute can not be set during creation. Refer to available_maintenance_versions attribute to see what maintenance_version are available for upgrade. When this attribute gets updated, it will cause an instance restart. Setting a maintenance_version value that is older than the current one on the instance will be ignored.
// +kubebuilder:validation:Optional
MaintenanceVersion *string `json:"maintenanceVersion,omitempty" tf:"maintenance_version,omitempty"`
// The name of the existing instance that will
// act as the master in the replication setup. Note, this requires the master to
// have binary_log_enabled set, as well as existing backups.
// +kubebuilder:validation:Optional
MasterInstanceName *string `json:"masterInstanceName,omitempty" tf:"master_instance_name,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"`
// The region the instance will sit in. If a region is not provided in the resource definition,
// the provider region will be used instead.
// +kubebuilder:validation:Optional
Region *string `json:"region,omitempty" tf:"region,omitempty"`
// The configuration for replication. The
// configuration is detailed below. Valid only for MySQL instances.
// +kubebuilder:validation:Optional
ReplicaConfiguration []ReplicaConfigurationParameters `json:"replicaConfiguration,omitempty" tf:"replica_configuration,omitempty"`
// The context needed to restore the database to a backup run. The configuration is detailed below. Adding or modifying this
// block during resource creation/update will trigger the restore action after the resource is created/updated.
// +kubebuilder:validation:Optional
RestoreBackupContext []RestoreBackupContextParameters `json:"restoreBackupContext,omitempty" tf:"restore_backup_context,omitempty"`
// Initial root password. Can be updated. Required for MS SQL Server.
// +kubebuilder:validation:Optional
RootPasswordSecretRef *v1.SecretKeySelector `json:"rootPasswordSecretRef,omitempty" tf:"-"`
// The settings to use for the database. The
// configuration is detailed below. Required if clone is not set.
// +kubebuilder:validation:Optional
Settings []SettingsParameters `json:"settings,omitempty" tf:"settings,omitempty"`
}
type DenyMaintenancePeriodInitParameters struct {
// "deny maintenance period" end date. If the year of the end date is empty, the year of the start date also must be empty. In this case, it means the no maintenance interval recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
EndDate *string `json:"endDate,omitempty" tf:"end_date,omitempty"`
// "deny maintenance period" start date. If the year of the start date is empty, the year of the end date also must be empty. In this case, it means the deny maintenance period recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
StartDate *string `json:"startDate,omitempty" tf:"start_date,omitempty"`
// Time in UTC when the "deny maintenance period" starts on startDate and ends on endDate. The time is in format: HH:mm:SS, i.e., 00:00:00
Time *string `json:"time,omitempty" tf:"time,omitempty"`
}
type DenyMaintenancePeriodObservation struct {
// "deny maintenance period" end date. If the year of the end date is empty, the year of the start date also must be empty. In this case, it means the no maintenance interval recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
EndDate *string `json:"endDate,omitempty" tf:"end_date,omitempty"`
// "deny maintenance period" start date. If the year of the start date is empty, the year of the end date also must be empty. In this case, it means the deny maintenance period recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
StartDate *string `json:"startDate,omitempty" tf:"start_date,omitempty"`
// Time in UTC when the "deny maintenance period" starts on startDate and ends on endDate. The time is in format: HH:mm:SS, i.e., 00:00:00
Time *string `json:"time,omitempty" tf:"time,omitempty"`
}
type DenyMaintenancePeriodParameters struct {
// "deny maintenance period" end date. If the year of the end date is empty, the year of the start date also must be empty. In this case, it means the no maintenance interval recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
// +kubebuilder:validation:Optional
EndDate *string `json:"endDate" tf:"end_date,omitempty"`
// "deny maintenance period" start date. If the year of the start date is empty, the year of the end date also must be empty. In this case, it means the deny maintenance period recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
// +kubebuilder:validation:Optional
StartDate *string `json:"startDate" tf:"start_date,omitempty"`
// Time in UTC when the "deny maintenance period" starts on startDate and ends on endDate. The time is in format: HH:mm:SS, i.e., 00:00:00
// +kubebuilder:validation:Optional
Time *string `json:"time" tf:"time,omitempty"`
}
type IPAddressInitParameters struct {
}
type IPAddressObservation struct {
// The IPv4 address assigned.
IPAddress *string `json:"ipAddress,omitempty" tf:"ip_address,omitempty"`
// The time this IP address will be retired, in RFC
// 3339 format.
TimeToRetire *string `json:"timeToRetire,omitempty" tf:"time_to_retire,omitempty"`
// The type of this IP address.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type IPAddressParameters struct {
}
type IPConfigurationInitParameters struct {
// The name of the allocated ip range for the private ip CloudSQL instance. For example: "google-managed-services-default". If set, the instance ip will be created in the allocated range. The range name must comply with RFC 1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?.
AllocatedIPRange *string `json:"allocatedIpRange,omitempty" tf:"allocated_ip_range,omitempty"`
AuthorizedNetworks []AuthorizedNetworksInitParameters `json:"authorizedNetworks,omitempty" tf:"authorized_networks,omitempty"`
// Whether Google Cloud services such as BigQuery are allowed to access data in this Cloud SQL instance over a private IP connection. SQLSERVER database type is not supported.
EnablePrivatePathForGoogleCloudServices *bool `json:"enablePrivatePathForGoogleCloudServices,omitempty" tf:"enable_private_path_for_google_cloud_services,omitempty"`
// Whether this Cloud SQL instance should be assigned
// a public IPV4 address. At least ipv4_enabled must be enabled or a
// private_network must be configured.
IPv4Enabled *bool `json:"ipv4Enabled,omitempty" tf:"ipv4_enabled,omitempty"`
// The VPC network from which the Cloud SQL
// instance is accessible for private IP. For example, projects/myProject/global/networks/default.
// Specifying a network enables private IP.
// At least ipv4_enabled must be enabled or a private_network must be configured.
// This setting can be updated, but it cannot be removed after it is set.
// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/compute/v1beta1.Network
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID()
PrivateNetwork *string `json:"privateNetwork,omitempty" tf:"private_network,omitempty"`
// Reference to a Network in compute to populate privateNetwork.
// +kubebuilder:validation:Optional
PrivateNetworkRef *v1.Reference `json:"privateNetworkRef,omitempty" tf:"-"`
// Selector for a Network in compute to populate privateNetwork.
// +kubebuilder:validation:Optional
PrivateNetworkSelector *v1.Selector `json:"privateNetworkSelector,omitempty" tf:"-"`
PscConfig []PscConfigInitParameters `json:"pscConfig,omitempty" tf:"psc_config,omitempty"`
// Whether SSL connections over IP are enforced or not. To change this field, also set the corresponding value in ssl_mode.
RequireSSL *bool `json:"requireSsl,omitempty" tf:"require_ssl,omitempty"`
// Specify how SSL connection should be enforced in DB connections. This field provides more SSL enforcment options compared to require_ssl. To change this field, also set the correspoding value in require_ssl.
SSLMode *string `json:"sslMode,omitempty" tf:"ssl_mode,omitempty"`
}
type IPConfigurationObservation struct {
// The name of the allocated ip range for the private ip CloudSQL instance. For example: "google-managed-services-default". If set, the instance ip will be created in the allocated range. The range name must comply with RFC 1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?.
AllocatedIPRange *string `json:"allocatedIpRange,omitempty" tf:"allocated_ip_range,omitempty"`
AuthorizedNetworks []AuthorizedNetworksObservation `json:"authorizedNetworks,omitempty" tf:"authorized_networks,omitempty"`
// Whether Google Cloud services such as BigQuery are allowed to access data in this Cloud SQL instance over a private IP connection. SQLSERVER database type is not supported.
EnablePrivatePathForGoogleCloudServices *bool `json:"enablePrivatePathForGoogleCloudServices,omitempty" tf:"enable_private_path_for_google_cloud_services,omitempty"`
// Whether this Cloud SQL instance should be assigned
// a public IPV4 address. At least ipv4_enabled must be enabled or a
// private_network must be configured.
IPv4Enabled *bool `json:"ipv4Enabled,omitempty" tf:"ipv4_enabled,omitempty"`
// The VPC network from which the Cloud SQL
// instance is accessible for private IP. For example, projects/myProject/global/networks/default.
// Specifying a network enables private IP.
// At least ipv4_enabled must be enabled or a private_network must be configured.
// This setting can be updated, but it cannot be removed after it is set.
PrivateNetwork *string `json:"privateNetwork,omitempty" tf:"private_network,omitempty"`
PscConfig []PscConfigObservation `json:"pscConfig,omitempty" tf:"psc_config,omitempty"`
// Whether SSL connections over IP are enforced or not. To change this field, also set the corresponding value in ssl_mode.
RequireSSL *bool `json:"requireSsl,omitempty" tf:"require_ssl,omitempty"`
// Specify how SSL connection should be enforced in DB connections. This field provides more SSL enforcment options compared to require_ssl. To change this field, also set the correspoding value in require_ssl.
SSLMode *string `json:"sslMode,omitempty" tf:"ssl_mode,omitempty"`
}
type IPConfigurationParameters struct {
// The name of the allocated ip range for the private ip CloudSQL instance. For example: "google-managed-services-default". If set, the instance ip will be created in the allocated range. The range name must comply with RFC 1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?.
// +kubebuilder:validation:Optional
AllocatedIPRange *string `json:"allocatedIpRange,omitempty" tf:"allocated_ip_range,omitempty"`
// +kubebuilder:validation:Optional
AuthorizedNetworks []AuthorizedNetworksParameters `json:"authorizedNetworks,omitempty" tf:"authorized_networks,omitempty"`
// Whether Google Cloud services such as BigQuery are allowed to access data in this Cloud SQL instance over a private IP connection. SQLSERVER database type is not supported.
// +kubebuilder:validation:Optional
EnablePrivatePathForGoogleCloudServices *bool `json:"enablePrivatePathForGoogleCloudServices,omitempty" tf:"enable_private_path_for_google_cloud_services,omitempty"`
// Whether this Cloud SQL instance should be assigned
// a public IPV4 address. At least ipv4_enabled must be enabled or a
// private_network must be configured.
// +kubebuilder:validation:Optional
IPv4Enabled *bool `json:"ipv4Enabled,omitempty" tf:"ipv4_enabled,omitempty"`
// The VPC network from which the Cloud SQL
// instance is accessible for private IP. For example, projects/myProject/global/networks/default.
// Specifying a network enables private IP.
// At least ipv4_enabled must be enabled or a private_network must be configured.
// This setting can be updated, but it cannot be removed after it is set.
// +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
PrivateNetwork *string `json:"privateNetwork,omitempty" tf:"private_network,omitempty"`
// Reference to a Network in compute to populate privateNetwork.
// +kubebuilder:validation:Optional
PrivateNetworkRef *v1.Reference `json:"privateNetworkRef,omitempty" tf:"-"`
// Selector for a Network in compute to populate privateNetwork.
// +kubebuilder:validation:Optional
PrivateNetworkSelector *v1.Selector `json:"privateNetworkSelector,omitempty" tf:"-"`
// +kubebuilder:validation:Optional
PscConfig []PscConfigParameters `json:"pscConfig,omitempty" tf:"psc_config,omitempty"`
// Whether SSL connections over IP are enforced or not. To change this field, also set the corresponding value in ssl_mode.
// +kubebuilder:validation:Optional
RequireSSL *bool `json:"requireSsl,omitempty" tf:"require_ssl,omitempty"`
// Specify how SSL connection should be enforced in DB connections. This field provides more SSL enforcment options compared to require_ssl. To change this field, also set the correspoding value in require_ssl.
// +kubebuilder:validation:Optional
SSLMode *string `json:"sslMode,omitempty" tf:"ssl_mode,omitempty"`
}
type InsightsConfigInitParameters struct {
// True if Query Insights feature is enabled.
QueryInsightsEnabled *bool `json:"queryInsightsEnabled,omitempty" tf:"query_insights_enabled,omitempty"`
// Number of query execution plans captured by Insights per minute for all queries combined. Between 0 and 20. Default to 5.
QueryPlansPerMinute *float64 `json:"queryPlansPerMinute,omitempty" tf:"query_plans_per_minute,omitempty"`
// Maximum query length stored in bytes. Between 256 and 4500. Default to 1024. Higher query lengths are more useful for analytical queries, but they also require more memory. Changing the query length requires you to restart the instance. You can still add tags to queries that exceed the length limit.
QueryStringLength *float64 `json:"queryStringLength,omitempty" tf:"query_string_length,omitempty"`
// True if Query Insights will record application tags from query when enabled.
RecordApplicationTags *bool `json:"recordApplicationTags,omitempty" tf:"record_application_tags,omitempty"`
// True if Query Insights will record client address when enabled.
RecordClientAddress *bool `json:"recordClientAddress,omitempty" tf:"record_client_address,omitempty"`
}
type InsightsConfigObservation struct {
// True if Query Insights feature is enabled.
QueryInsightsEnabled *bool `json:"queryInsightsEnabled,omitempty" tf:"query_insights_enabled,omitempty"`
// Number of query execution plans captured by Insights per minute for all queries combined. Between 0 and 20. Default to 5.
QueryPlansPerMinute *float64 `json:"queryPlansPerMinute,omitempty" tf:"query_plans_per_minute,omitempty"`
// Maximum query length stored in bytes. Between 256 and 4500. Default to 1024. Higher query lengths are more useful for analytical queries, but they also require more memory. Changing the query length requires you to restart the instance. You can still add tags to queries that exceed the length limit.
QueryStringLength *float64 `json:"queryStringLength,omitempty" tf:"query_string_length,omitempty"`
// True if Query Insights will record application tags from query when enabled.
RecordApplicationTags *bool `json:"recordApplicationTags,omitempty" tf:"record_application_tags,omitempty"`
// True if Query Insights will record client address when enabled.
RecordClientAddress *bool `json:"recordClientAddress,omitempty" tf:"record_client_address,omitempty"`
}
type InsightsConfigParameters struct {
// True if Query Insights feature is enabled.
// +kubebuilder:validation:Optional
QueryInsightsEnabled *bool `json:"queryInsightsEnabled,omitempty" tf:"query_insights_enabled,omitempty"`
// Number of query execution plans captured by Insights per minute for all queries combined. Between 0 and 20. Default to 5.
// +kubebuilder:validation:Optional
QueryPlansPerMinute *float64 `json:"queryPlansPerMinute,omitempty" tf:"query_plans_per_minute,omitempty"`
// Maximum query length stored in bytes. Between 256 and 4500. Default to 1024. Higher query lengths are more useful for analytical queries, but they also require more memory. Changing the query length requires you to restart the instance. You can still add tags to queries that exceed the length limit.
// +kubebuilder:validation:Optional
QueryStringLength *float64 `json:"queryStringLength,omitempty" tf:"query_string_length,omitempty"`
// True if Query Insights will record application tags from query when enabled.
// +kubebuilder:validation:Optional
RecordApplicationTags *bool `json:"recordApplicationTags,omitempty" tf:"record_application_tags,omitempty"`
// True if Query Insights will record client address when enabled.
// +kubebuilder:validation:Optional
RecordClientAddress *bool `json:"recordClientAddress,omitempty" tf:"record_client_address,omitempty"`
}
type LocationPreferenceInitParameters struct {
// A GAE application whose zone to remain
// in. Must be in the same region as this instance.
FollowGaeApplication *string `json:"followGaeApplication,omitempty" tf:"follow_gae_application,omitempty"`
// The preferred Compute Engine zone for the secondary/failover.
SecondaryZone *string `json:"secondaryZone,omitempty" tf:"secondary_zone,omitempty"`
// The preferred compute engine
// zone.
Zone *string `json:"zone,omitempty" tf:"zone,omitempty"`
}
type LocationPreferenceObservation struct {
// A GAE application whose zone to remain
// in. Must be in the same region as this instance.
FollowGaeApplication *string `json:"followGaeApplication,omitempty" tf:"follow_gae_application,omitempty"`
// The preferred Compute Engine zone for the secondary/failover.
SecondaryZone *string `json:"secondaryZone,omitempty" tf:"secondary_zone,omitempty"`
// The preferred compute engine
// zone.
Zone *string `json:"zone,omitempty" tf:"zone,omitempty"`
}
type LocationPreferenceParameters struct {
// A GAE application whose zone to remain
// in. Must be in the same region as this instance.
// +kubebuilder:validation:Optional
FollowGaeApplication *string `json:"followGaeApplication,omitempty" tf:"follow_gae_application,omitempty"`
// The preferred Compute Engine zone for the secondary/failover.
// +kubebuilder:validation:Optional
SecondaryZone *string `json:"secondaryZone,omitempty" tf:"secondary_zone,omitempty"`
// The preferred compute engine
// zone.
// +kubebuilder:validation:Optional
Zone *string `json:"zone,omitempty" tf:"zone,omitempty"`
}
type MaintenanceWindowInitParameters struct {
// Day of week (1-7), starting on Monday
Day *float64 `json:"day,omitempty" tf:"day,omitempty"`
// Hour of day (0-23), ignored if day not set
Hour *float64 `json:"hour,omitempty" tf:"hour,omitempty"`
// Receive updates earlier (canary) or later
// (stable)
UpdateTrack *string `json:"updateTrack,omitempty" tf:"update_track,omitempty"`
}
type MaintenanceWindowObservation struct {
// Day of week (1-7), starting on Monday
Day *float64 `json:"day,omitempty" tf:"day,omitempty"`
// Hour of day (0-23), ignored if day not set
Hour *float64 `json:"hour,omitempty" tf:"hour,omitempty"`
// Receive updates earlier (canary) or later
// (stable)
UpdateTrack *string `json:"updateTrack,omitempty" tf:"update_track,omitempty"`
}
type MaintenanceWindowParameters struct {
// Day of week (1-7), starting on Monday
// +kubebuilder:validation:Optional
Day *float64 `json:"day,omitempty" tf:"day,omitempty"`
// Hour of day (0-23), ignored if day not set
// +kubebuilder:validation:Optional
Hour *float64 `json:"hour,omitempty" tf:"hour,omitempty"`
// Receive updates earlier (canary) or later
// (stable)
// +kubebuilder:validation:Optional
UpdateTrack *string `json:"updateTrack,omitempty" tf:"update_track,omitempty"`
}
type PasswordValidationPolicyInitParameters struct {
// Checks if the password is a combination of lowercase, uppercase, numeric, and non-alphanumeric characters.
Complexity *string `json:"complexity,omitempty" tf:"complexity,omitempty"`
// Prevents the use of the username in the password.
DisallowUsernameSubstring *bool `json:"disallowUsernameSubstring,omitempty" tf:"disallow_username_substring,omitempty"`
// Enables or disable the password validation policy.
EnablePasswordPolicy *bool `json:"enablePasswordPolicy,omitempty" tf:"enable_password_policy,omitempty"`
// Specifies the minimum number of characters that the password must have.
MinLength *float64 `json:"minLength,omitempty" tf:"min_length,omitempty"`
// Specifies the minimum duration after which you can change the password.
PasswordChangeInterval *string `json:"passwordChangeInterval,omitempty" tf:"password_change_interval,omitempty"`
// Specifies the number of previous passwords that you can't reuse.
ReuseInterval *float64 `json:"reuseInterval,omitempty" tf:"reuse_interval,omitempty"`
}
type PasswordValidationPolicyObservation struct {
// Checks if the password is a combination of lowercase, uppercase, numeric, and non-alphanumeric characters.
Complexity *string `json:"complexity,omitempty" tf:"complexity,omitempty"`
// Prevents the use of the username in the password.
DisallowUsernameSubstring *bool `json:"disallowUsernameSubstring,omitempty" tf:"disallow_username_substring,omitempty"`
// Enables or disable the password validation policy.
EnablePasswordPolicy *bool `json:"enablePasswordPolicy,omitempty" tf:"enable_password_policy,omitempty"`
// Specifies the minimum number of characters that the password must have.
MinLength *float64 `json:"minLength,omitempty" tf:"min_length,omitempty"`
// Specifies the minimum duration after which you can change the password.
PasswordChangeInterval *string `json:"passwordChangeInterval,omitempty" tf:"password_change_interval,omitempty"`
// Specifies the number of previous passwords that you can't reuse.
ReuseInterval *float64 `json:"reuseInterval,omitempty" tf:"reuse_interval,omitempty"`
}
type PasswordValidationPolicyParameters struct {
// Checks if the password is a combination of lowercase, uppercase, numeric, and non-alphanumeric characters.
// +kubebuilder:validation:Optional
Complexity *string `json:"complexity,omitempty" tf:"complexity,omitempty"`
// Prevents the use of the username in the password.
// +kubebuilder:validation:Optional
DisallowUsernameSubstring *bool `json:"disallowUsernameSubstring,omitempty" tf:"disallow_username_substring,omitempty"`
// Enables or disable the password validation policy.
// +kubebuilder:validation:Optional
EnablePasswordPolicy *bool `json:"enablePasswordPolicy" tf:"enable_password_policy,omitempty"`
// Specifies the minimum number of characters that the password must have.
// +kubebuilder:validation:Optional
MinLength *float64 `json:"minLength,omitempty" tf:"min_length,omitempty"`
// Specifies the minimum duration after which you can change the password.
// +kubebuilder:validation:Optional
PasswordChangeInterval *string `json:"passwordChangeInterval,omitempty" tf:"password_change_interval,omitempty"`
// Specifies the number of previous passwords that you can't reuse.
// +kubebuilder:validation:Optional
ReuseInterval *float64 `json:"reuseInterval,omitempty" tf:"reuse_interval,omitempty"`
}
type PscConfigInitParameters struct {
// List of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
// +listType=set
AllowedConsumerProjects []*string `json:"allowedConsumerProjects,omitempty" tf:"allowed_consumer_projects,omitempty"`
// Whether PSC connectivity is enabled for this instance.
PscEnabled *bool `json:"pscEnabled,omitempty" tf:"psc_enabled,omitempty"`
}
type PscConfigObservation struct {
// List of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
// +listType=set
AllowedConsumerProjects []*string `json:"allowedConsumerProjects,omitempty" tf:"allowed_consumer_projects,omitempty"`
// Whether PSC connectivity is enabled for this instance.
PscEnabled *bool `json:"pscEnabled,omitempty" tf:"psc_enabled,omitempty"`
}
type PscConfigParameters struct {
// List of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
// +kubebuilder:validation:Optional
// +listType=set
AllowedConsumerProjects []*string `json:"allowedConsumerProjects,omitempty" tf:"allowed_consumer_projects,omitempty"`
// Whether PSC connectivity is enabled for this instance.
// +kubebuilder:validation:Optional
PscEnabled *bool `json:"pscEnabled,omitempty" tf:"psc_enabled,omitempty"`
}
type ReplicaConfigurationInitParameters struct {
// PEM representation of the trusted CA's x509
// certificate.
CACertificate *string `json:"caCertificate,omitempty" tf:"ca_certificate,omitempty"`
// PEM representation of the replica's x509
// certificate.
ClientCertificate *string `json:"clientCertificate,omitempty" tf:"client_certificate,omitempty"`
// PEM representation of the replica's private key. The
// corresponding public key in encoded in the client_certificate.
ClientKey *string `json:"clientKey,omitempty" tf:"client_key,omitempty"`