-
Notifications
You must be signed in to change notification settings - Fork 69
/
zz_account_types.go
executable file
·892 lines (637 loc) · 51.2 KB
/
zz_account_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
// 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 AccountInitParameters struct {
// Is write operations on metadata resources (databases, containers, throughput) via account keys enabled? Defaults to true.
AccessKeyMetadataWritesEnabled *bool `json:"accessKeyMetadataWritesEnabled,omitempty" tf:"access_key_metadata_writes_enabled,omitempty"`
// An analytical_storage block as defined below.
AnalyticalStorage []AnalyticalStorageInitParameters `json:"analyticalStorage,omitempty" tf:"analytical_storage,omitempty"`
// Enable Analytical Storage option for this Cosmos DB account. Defaults to false. Enabling and then disabling analytical storage forces a new resource to be created.
AnalyticalStorageEnabled *bool `json:"analyticalStorageEnabled,omitempty" tf:"analytical_storage_enabled,omitempty"`
// A backup block as defined below.
Backup []BackupInitParameters `json:"backup,omitempty" tf:"backup,omitempty"`
// The capabilities which should be enabled for this Cosmos DB account. Value is a capabilities block as defined below.
Capabilities []CapabilitiesInitParameters `json:"capabilities,omitempty" tf:"capabilities,omitempty"`
// A capacity block as defined below.
Capacity []CapacityInitParameters `json:"capacity,omitempty" tf:"capacity,omitempty"`
// Specifies one consistency_policy block as defined below, used to define the consistency policy for this CosmosDB account.
ConsistencyPolicy []ConsistencyPolicyInitParameters `json:"consistencyPolicy,omitempty" tf:"consistency_policy,omitempty"`
// A cors_rule block as defined below.
CorsRule []CorsRuleInitParameters `json:"corsRule,omitempty" tf:"cors_rule,omitempty"`
// The creation mode for the CosmosDB Account. Possible values are Default and Restore. Changing this forces a new resource to be created.
CreateMode *string `json:"createMode,omitempty" tf:"create_mode,omitempty"`
// The default identity for accessing Key Vault. Possible values are FirstPartyIdentity, SystemAssignedIdentity or UserAssignedIdentity. Defaults to FirstPartyIdentity.
DefaultIdentityType *string `json:"defaultIdentityType,omitempty" tf:"default_identity_type,omitempty"`
// Enable automatic failover for this Cosmos DB account.
EnableAutomaticFailover *bool `json:"enableAutomaticFailover,omitempty" tf:"enable_automatic_failover,omitempty"`
// Enable the Free Tier pricing option for this Cosmos DB account. Defaults to false. Changing this forces a new resource to be created.
EnableFreeTier *bool `json:"enableFreeTier,omitempty" tf:"enable_free_tier,omitempty"`
// Enable multiple write locations for this Cosmos DB account.
EnableMultipleWriteLocations *bool `json:"enableMultipleWriteLocations,omitempty" tf:"enable_multiple_write_locations,omitempty"`
// Specifies a geo_location resource, used to define where data should be replicated with the failover_priority 0 specifying the primary location. Value is a geo_location block as defined below.
GeoLocation []GeoLocationInitParameters `json:"geoLocation,omitempty" tf:"geo_location,omitempty"`
// CosmosDB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces.
IPRangeFilter *string `json:"ipRangeFilter,omitempty" tf:"ip_range_filter,omitempty"`
// An identity block as defined below.
Identity []IdentityInitParameters `json:"identity,omitempty" tf:"identity,omitempty"`
// Enables virtual network filtering for this Cosmos DB account.
IsVirtualNetworkFilterEnabled *bool `json:"isVirtualNetworkFilterEnabled,omitempty" tf:"is_virtual_network_filter_enabled,omitempty"`
// A versionless Key Vault Key ID for CMK encryption. Changing this forces a new resource to be created.
KeyVaultKeyID *string `json:"keyVaultKeyId,omitempty" tf:"key_vault_key_id,omitempty"`
// Specifies the Kind of CosmosDB to create - possible values are GlobalDocumentDB, MongoDB and Parse. Defaults to GlobalDocumentDB. Changing this forces a new resource to be created.
Kind *string `json:"kind,omitempty" tf:"kind,omitempty"`
// Disable local authentication and ensure only MSI and AAD can be used exclusively for authentication. Defaults to false. Can be set only when using the SQL API.
LocalAuthenticationDisabled *bool `json:"localAuthenticationDisabled,omitempty" tf:"local_authentication_disabled,omitempty"`
// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
Location *string `json:"location,omitempty" tf:"location,omitempty"`
// Specifies the minimal TLS version for the CosmosDB account. Possible values are: Tls, Tls11, and Tls12. Defaults to Tls12.
MinimalTLSVersion *string `json:"minimalTlsVersion,omitempty" tf:"minimal_tls_version,omitempty"`
// The Server Version of a MongoDB account. Possible values are 4.2, 4.0, 3.6, and 3.2.
MongoServerVersion *string `json:"mongoServerVersion,omitempty" tf:"mongo_server_version,omitempty"`
// If Azure services can bypass ACLs. Defaults to false.
NetworkACLBypassForAzureServices *bool `json:"networkAclBypassForAzureServices,omitempty" tf:"network_acl_bypass_for_azure_services,omitempty"`
// The list of resource Ids for Network Acl Bypass for this Cosmos DB account.
NetworkACLBypassIds []*string `json:"networkAclBypassIds,omitempty" tf:"network_acl_bypass_ids,omitempty"`
// Specifies the Offer Type to use for this CosmosDB Account; currently, this can only be set to Standard.
OfferType *string `json:"offerType,omitempty" tf:"offer_type,omitempty"`
// Is partition merge on the Cosmos DB account enabled? Defaults to false.
PartitionMergeEnabled *bool `json:"partitionMergeEnabled,omitempty" tf:"partition_merge_enabled,omitempty"`
// Whether or not public network access is allowed for this CosmosDB account. Defaults to true.
PublicNetworkAccessEnabled *bool `json:"publicNetworkAccessEnabled,omitempty" tf:"public_network_access_enabled,omitempty"`
// A restore block as defined below.
Restore []RestoreInitParameters `json:"restore,omitempty" tf:"restore,omitempty"`
// A mapping of tags to assign to the resource.
// +mapType=granular
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// Specifies a virtual_network_rule block as defined below, used to define which subnets are allowed to access this CosmosDB account.
VirtualNetworkRule []VirtualNetworkRuleInitParameters `json:"virtualNetworkRule,omitempty" tf:"virtual_network_rule,omitempty"`
}
type AccountObservation struct {
// Is write operations on metadata resources (databases, containers, throughput) via account keys enabled? Defaults to true.
AccessKeyMetadataWritesEnabled *bool `json:"accessKeyMetadataWritesEnabled,omitempty" tf:"access_key_metadata_writes_enabled,omitempty"`
// An analytical_storage block as defined below.
AnalyticalStorage []AnalyticalStorageObservation `json:"analyticalStorage,omitempty" tf:"analytical_storage,omitempty"`
// Enable Analytical Storage option for this Cosmos DB account. Defaults to false. Enabling and then disabling analytical storage forces a new resource to be created.
AnalyticalStorageEnabled *bool `json:"analyticalStorageEnabled,omitempty" tf:"analytical_storage_enabled,omitempty"`
// A backup block as defined below.
Backup []BackupObservation `json:"backup,omitempty" tf:"backup,omitempty"`
// The capabilities which should be enabled for this Cosmos DB account. Value is a capabilities block as defined below.
Capabilities []CapabilitiesObservation `json:"capabilities,omitempty" tf:"capabilities,omitempty"`
// A capacity block as defined below.
Capacity []CapacityObservation `json:"capacity,omitempty" tf:"capacity,omitempty"`
// Specifies one consistency_policy block as defined below, used to define the consistency policy for this CosmosDB account.
ConsistencyPolicy []ConsistencyPolicyObservation `json:"consistencyPolicy,omitempty" tf:"consistency_policy,omitempty"`
// A cors_rule block as defined below.
CorsRule []CorsRuleObservation `json:"corsRule,omitempty" tf:"cors_rule,omitempty"`
// The creation mode for the CosmosDB Account. Possible values are Default and Restore. Changing this forces a new resource to be created.
CreateMode *string `json:"createMode,omitempty" tf:"create_mode,omitempty"`
// The default identity for accessing Key Vault. Possible values are FirstPartyIdentity, SystemAssignedIdentity or UserAssignedIdentity. Defaults to FirstPartyIdentity.
DefaultIdentityType *string `json:"defaultIdentityType,omitempty" tf:"default_identity_type,omitempty"`
// Enable automatic failover for this Cosmos DB account.
EnableAutomaticFailover *bool `json:"enableAutomaticFailover,omitempty" tf:"enable_automatic_failover,omitempty"`
// Enable the Free Tier pricing option for this Cosmos DB account. Defaults to false. Changing this forces a new resource to be created.
EnableFreeTier *bool `json:"enableFreeTier,omitempty" tf:"enable_free_tier,omitempty"`
// Enable multiple write locations for this Cosmos DB account.
EnableMultipleWriteLocations *bool `json:"enableMultipleWriteLocations,omitempty" tf:"enable_multiple_write_locations,omitempty"`
// The endpoint used to connect to the CosmosDB account.
Endpoint *string `json:"endpoint,omitempty" tf:"endpoint,omitempty"`
// Specifies a geo_location resource, used to define where data should be replicated with the failover_priority 0 specifying the primary location. Value is a geo_location block as defined below.
GeoLocation []GeoLocationObservation `json:"geoLocation,omitempty" tf:"geo_location,omitempty"`
// The CosmosDB Account ID.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// CosmosDB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces.
IPRangeFilter *string `json:"ipRangeFilter,omitempty" tf:"ip_range_filter,omitempty"`
// An identity block as defined below.
Identity []IdentityObservation `json:"identity,omitempty" tf:"identity,omitempty"`
// Enables virtual network filtering for this Cosmos DB account.
IsVirtualNetworkFilterEnabled *bool `json:"isVirtualNetworkFilterEnabled,omitempty" tf:"is_virtual_network_filter_enabled,omitempty"`
// A versionless Key Vault Key ID for CMK encryption. Changing this forces a new resource to be created.
KeyVaultKeyID *string `json:"keyVaultKeyId,omitempty" tf:"key_vault_key_id,omitempty"`
// Specifies the Kind of CosmosDB to create - possible values are GlobalDocumentDB, MongoDB and Parse. Defaults to GlobalDocumentDB. Changing this forces a new resource to be created.
Kind *string `json:"kind,omitempty" tf:"kind,omitempty"`
// Disable local authentication and ensure only MSI and AAD can be used exclusively for authentication. Defaults to false. Can be set only when using the SQL API.
LocalAuthenticationDisabled *bool `json:"localAuthenticationDisabled,omitempty" tf:"local_authentication_disabled,omitempty"`
// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
Location *string `json:"location,omitempty" tf:"location,omitempty"`
// Specifies the minimal TLS version for the CosmosDB account. Possible values are: Tls, Tls11, and Tls12. Defaults to Tls12.
MinimalTLSVersion *string `json:"minimalTlsVersion,omitempty" tf:"minimal_tls_version,omitempty"`
// The Server Version of a MongoDB account. Possible values are 4.2, 4.0, 3.6, and 3.2.
MongoServerVersion *string `json:"mongoServerVersion,omitempty" tf:"mongo_server_version,omitempty"`
// If Azure services can bypass ACLs. Defaults to false.
NetworkACLBypassForAzureServices *bool `json:"networkAclBypassForAzureServices,omitempty" tf:"network_acl_bypass_for_azure_services,omitempty"`
// The list of resource Ids for Network Acl Bypass for this Cosmos DB account.
NetworkACLBypassIds []*string `json:"networkAclBypassIds,omitempty" tf:"network_acl_bypass_ids,omitempty"`
// Specifies the Offer Type to use for this CosmosDB Account; currently, this can only be set to Standard.
OfferType *string `json:"offerType,omitempty" tf:"offer_type,omitempty"`
// Is partition merge on the Cosmos DB account enabled? Defaults to false.
PartitionMergeEnabled *bool `json:"partitionMergeEnabled,omitempty" tf:"partition_merge_enabled,omitempty"`
// Whether or not public network access is allowed for this CosmosDB account. Defaults to true.
PublicNetworkAccessEnabled *bool `json:"publicNetworkAccessEnabled,omitempty" tf:"public_network_access_enabled,omitempty"`
// A list of read endpoints available for this CosmosDB account.
ReadEndpoints []*string `json:"readEndpoints,omitempty" tf:"read_endpoints,omitempty"`
// The name of the resource group in which the CosmosDB Account is created. Changing this forces a new resource to be created.
ResourceGroupName *string `json:"resourceGroupName,omitempty" tf:"resource_group_name,omitempty"`
// A restore block as defined below.
Restore []RestoreObservation `json:"restore,omitempty" tf:"restore,omitempty"`
// A mapping of tags to assign to the resource.
// +mapType=granular
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// Specifies a virtual_network_rule block as defined below, used to define which subnets are allowed to access this CosmosDB account.
VirtualNetworkRule []VirtualNetworkRuleObservation `json:"virtualNetworkRule,omitempty" tf:"virtual_network_rule,omitempty"`
// A list of write endpoints available for this CosmosDB account.
WriteEndpoints []*string `json:"writeEndpoints,omitempty" tf:"write_endpoints,omitempty"`
}
type AccountParameters struct {
// Is write operations on metadata resources (databases, containers, throughput) via account keys enabled? Defaults to true.
// +kubebuilder:validation:Optional
AccessKeyMetadataWritesEnabled *bool `json:"accessKeyMetadataWritesEnabled,omitempty" tf:"access_key_metadata_writes_enabled,omitempty"`
// An analytical_storage block as defined below.
// +kubebuilder:validation:Optional
AnalyticalStorage []AnalyticalStorageParameters `json:"analyticalStorage,omitempty" tf:"analytical_storage,omitempty"`
// Enable Analytical Storage option for this Cosmos DB account. Defaults to false. Enabling and then disabling analytical storage forces a new resource to be created.
// +kubebuilder:validation:Optional
AnalyticalStorageEnabled *bool `json:"analyticalStorageEnabled,omitempty" tf:"analytical_storage_enabled,omitempty"`
// A backup block as defined below.
// +kubebuilder:validation:Optional
Backup []BackupParameters `json:"backup,omitempty" tf:"backup,omitempty"`
// The capabilities which should be enabled for this Cosmos DB account. Value is a capabilities block as defined below.
// +kubebuilder:validation:Optional
Capabilities []CapabilitiesParameters `json:"capabilities,omitempty" tf:"capabilities,omitempty"`
// A capacity block as defined below.
// +kubebuilder:validation:Optional
Capacity []CapacityParameters `json:"capacity,omitempty" tf:"capacity,omitempty"`
// Specifies one consistency_policy block as defined below, used to define the consistency policy for this CosmosDB account.
// +kubebuilder:validation:Optional
ConsistencyPolicy []ConsistencyPolicyParameters `json:"consistencyPolicy,omitempty" tf:"consistency_policy,omitempty"`
// A cors_rule block as defined below.
// +kubebuilder:validation:Optional
CorsRule []CorsRuleParameters `json:"corsRule,omitempty" tf:"cors_rule,omitempty"`
// The creation mode for the CosmosDB Account. Possible values are Default and Restore. Changing this forces a new resource to be created.
// +kubebuilder:validation:Optional
CreateMode *string `json:"createMode,omitempty" tf:"create_mode,omitempty"`
// The default identity for accessing Key Vault. Possible values are FirstPartyIdentity, SystemAssignedIdentity or UserAssignedIdentity. Defaults to FirstPartyIdentity.
// +kubebuilder:validation:Optional
DefaultIdentityType *string `json:"defaultIdentityType,omitempty" tf:"default_identity_type,omitempty"`
// Enable automatic failover for this Cosmos DB account.
// +kubebuilder:validation:Optional
EnableAutomaticFailover *bool `json:"enableAutomaticFailover,omitempty" tf:"enable_automatic_failover,omitempty"`
// Enable the Free Tier pricing option for this Cosmos DB account. Defaults to false. Changing this forces a new resource to be created.
// +kubebuilder:validation:Optional
EnableFreeTier *bool `json:"enableFreeTier,omitempty" tf:"enable_free_tier,omitempty"`
// Enable multiple write locations for this Cosmos DB account.
// +kubebuilder:validation:Optional
EnableMultipleWriteLocations *bool `json:"enableMultipleWriteLocations,omitempty" tf:"enable_multiple_write_locations,omitempty"`
// Specifies a geo_location resource, used to define where data should be replicated with the failover_priority 0 specifying the primary location. Value is a geo_location block as defined below.
// +kubebuilder:validation:Optional
GeoLocation []GeoLocationParameters `json:"geoLocation,omitempty" tf:"geo_location,omitempty"`
// CosmosDB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces.
// +kubebuilder:validation:Optional
IPRangeFilter *string `json:"ipRangeFilter,omitempty" tf:"ip_range_filter,omitempty"`
// An identity block as defined below.
// +kubebuilder:validation:Optional
Identity []IdentityParameters `json:"identity,omitempty" tf:"identity,omitempty"`
// Enables virtual network filtering for this Cosmos DB account.
// +kubebuilder:validation:Optional
IsVirtualNetworkFilterEnabled *bool `json:"isVirtualNetworkFilterEnabled,omitempty" tf:"is_virtual_network_filter_enabled,omitempty"`
// A versionless Key Vault Key ID for CMK encryption. Changing this forces a new resource to be created.
// +kubebuilder:validation:Optional
KeyVaultKeyID *string `json:"keyVaultKeyId,omitempty" tf:"key_vault_key_id,omitempty"`
// Specifies the Kind of CosmosDB to create - possible values are GlobalDocumentDB, MongoDB and Parse. Defaults to GlobalDocumentDB. Changing this forces a new resource to be created.
// +kubebuilder:validation:Optional
Kind *string `json:"kind,omitempty" tf:"kind,omitempty"`
// Disable local authentication and ensure only MSI and AAD can be used exclusively for authentication. Defaults to false. Can be set only when using the SQL API.
// +kubebuilder:validation:Optional
LocalAuthenticationDisabled *bool `json:"localAuthenticationDisabled,omitempty" tf:"local_authentication_disabled,omitempty"`
// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
// +kubebuilder:validation:Optional
Location *string `json:"location,omitempty" tf:"location,omitempty"`
// Specifies the minimal TLS version for the CosmosDB account. Possible values are: Tls, Tls11, and Tls12. Defaults to Tls12.
// +kubebuilder:validation:Optional
MinimalTLSVersion *string `json:"minimalTlsVersion,omitempty" tf:"minimal_tls_version,omitempty"`
// The Server Version of a MongoDB account. Possible values are 4.2, 4.0, 3.6, and 3.2.
// +kubebuilder:validation:Optional
MongoServerVersion *string `json:"mongoServerVersion,omitempty" tf:"mongo_server_version,omitempty"`
// If Azure services can bypass ACLs. Defaults to false.
// +kubebuilder:validation:Optional
NetworkACLBypassForAzureServices *bool `json:"networkAclBypassForAzureServices,omitempty" tf:"network_acl_bypass_for_azure_services,omitempty"`
// The list of resource Ids for Network Acl Bypass for this Cosmos DB account.
// +kubebuilder:validation:Optional
NetworkACLBypassIds []*string `json:"networkAclBypassIds,omitempty" tf:"network_acl_bypass_ids,omitempty"`
// Specifies the Offer Type to use for this CosmosDB Account; currently, this can only be set to Standard.
// +kubebuilder:validation:Optional
OfferType *string `json:"offerType,omitempty" tf:"offer_type,omitempty"`
// Is partition merge on the Cosmos DB account enabled? Defaults to false.
// +kubebuilder:validation:Optional
PartitionMergeEnabled *bool `json:"partitionMergeEnabled,omitempty" tf:"partition_merge_enabled,omitempty"`
// Whether or not public network access is allowed for this CosmosDB account. Defaults to true.
// +kubebuilder:validation:Optional
PublicNetworkAccessEnabled *bool `json:"publicNetworkAccessEnabled,omitempty" tf:"public_network_access_enabled,omitempty"`
// The name of the resource group in which the CosmosDB Account is created. Changing this forces a new resource to be created.
// +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/azure/v1beta1.ResourceGroup
// +kubebuilder:validation:Optional
ResourceGroupName *string `json:"resourceGroupName,omitempty" tf:"resource_group_name,omitempty"`
// Reference to a ResourceGroup in azure to populate resourceGroupName.
// +kubebuilder:validation:Optional
ResourceGroupNameRef *v1.Reference `json:"resourceGroupNameRef,omitempty" tf:"-"`
// Selector for a ResourceGroup in azure to populate resourceGroupName.
// +kubebuilder:validation:Optional
ResourceGroupNameSelector *v1.Selector `json:"resourceGroupNameSelector,omitempty" tf:"-"`
// A restore block as defined below.
// +kubebuilder:validation:Optional
Restore []RestoreParameters `json:"restore,omitempty" tf:"restore,omitempty"`
// A mapping of tags to assign to the resource.
// +kubebuilder:validation:Optional
// +mapType=granular
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// Specifies a virtual_network_rule block as defined below, used to define which subnets are allowed to access this CosmosDB account.
// +kubebuilder:validation:Optional
VirtualNetworkRule []VirtualNetworkRuleParameters `json:"virtualNetworkRule,omitempty" tf:"virtual_network_rule,omitempty"`
}
type AnalyticalStorageInitParameters struct {
// The schema type of the Analytical Storage for this Cosmos DB account. Possible values are FullFidelity and WellDefined.
SchemaType *string `json:"schemaType,omitempty" tf:"schema_type,omitempty"`
}
type AnalyticalStorageObservation struct {
// The schema type of the Analytical Storage for this Cosmos DB account. Possible values are FullFidelity and WellDefined.
SchemaType *string `json:"schemaType,omitempty" tf:"schema_type,omitempty"`
}
type AnalyticalStorageParameters struct {
// The schema type of the Analytical Storage for this Cosmos DB account. Possible values are FullFidelity and WellDefined.
// +kubebuilder:validation:Optional
SchemaType *string `json:"schemaType" tf:"schema_type,omitempty"`
}
type BackupInitParameters struct {
// The interval in minutes between two backups. Possible values are between 60 and 1440. Defaults to 240.
IntervalInMinutes *float64 `json:"intervalInMinutes,omitempty" tf:"interval_in_minutes,omitempty"`
// The time in hours that each backup is retained. Possible values are between 8 and 720. Defaults to 8.
RetentionInHours *float64 `json:"retentionInHours,omitempty" tf:"retention_in_hours,omitempty"`
// The storage redundancy is used to indicate the type of backup residency. Possible values are Geo, Local and Zone. Defaults to Geo.
StorageRedundancy *string `json:"storageRedundancy,omitempty" tf:"storage_redundancy,omitempty"`
// The continuous backup tier. Possible values are Continuous7Days and Continuous30Days.
Tier *string `json:"tier,omitempty" tf:"tier,omitempty"`
// The type of the backup. Possible values are Continuous and Periodic.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type BackupObservation struct {
// The interval in minutes between two backups. Possible values are between 60 and 1440. Defaults to 240.
IntervalInMinutes *float64 `json:"intervalInMinutes,omitempty" tf:"interval_in_minutes,omitempty"`
// The time in hours that each backup is retained. Possible values are between 8 and 720. Defaults to 8.
RetentionInHours *float64 `json:"retentionInHours,omitempty" tf:"retention_in_hours,omitempty"`
// The storage redundancy is used to indicate the type of backup residency. Possible values are Geo, Local and Zone. Defaults to Geo.
StorageRedundancy *string `json:"storageRedundancy,omitempty" tf:"storage_redundancy,omitempty"`
// The continuous backup tier. Possible values are Continuous7Days and Continuous30Days.
Tier *string `json:"tier,omitempty" tf:"tier,omitempty"`
// The type of the backup. Possible values are Continuous and Periodic.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type BackupParameters struct {
// The interval in minutes between two backups. Possible values are between 60 and 1440. Defaults to 240.
// +kubebuilder:validation:Optional
IntervalInMinutes *float64 `json:"intervalInMinutes,omitempty" tf:"interval_in_minutes,omitempty"`
// The time in hours that each backup is retained. Possible values are between 8 and 720. Defaults to 8.
// +kubebuilder:validation:Optional
RetentionInHours *float64 `json:"retentionInHours,omitempty" tf:"retention_in_hours,omitempty"`
// The storage redundancy is used to indicate the type of backup residency. Possible values are Geo, Local and Zone. Defaults to Geo.
// +kubebuilder:validation:Optional
StorageRedundancy *string `json:"storageRedundancy,omitempty" tf:"storage_redundancy,omitempty"`
// The continuous backup tier. Possible values are Continuous7Days and Continuous30Days.
// +kubebuilder:validation:Optional
Tier *string `json:"tier,omitempty" tf:"tier,omitempty"`
// The type of the backup. Possible values are Continuous and Periodic.
// +kubebuilder:validation:Optional
Type *string `json:"type" tf:"type,omitempty"`
}
type CapabilitiesInitParameters struct {
// The capability to enable - Possible values are AllowSelfServeUpgradeToMongo36, DisableRateLimitingResponses, EnableAggregationPipeline, EnableCassandra, EnableGremlin, EnableMongo, EnableMongo16MBDocumentSupport, EnableMongoRetryableWrites, EnableMongoRoleBasedAccessControl, EnablePartialUniqueIndex, EnableServerless, EnableTable, EnableTtlOnCustomPath, EnableUniqueCompoundNestedDocs, MongoDBv3.4 and mongoEnableDocLevelTTL.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
}
type CapabilitiesObservation struct {
// The capability to enable - Possible values are AllowSelfServeUpgradeToMongo36, DisableRateLimitingResponses, EnableAggregationPipeline, EnableCassandra, EnableGremlin, EnableMongo, EnableMongo16MBDocumentSupport, EnableMongoRetryableWrites, EnableMongoRoleBasedAccessControl, EnablePartialUniqueIndex, EnableServerless, EnableTable, EnableTtlOnCustomPath, EnableUniqueCompoundNestedDocs, MongoDBv3.4 and mongoEnableDocLevelTTL.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
}
type CapabilitiesParameters struct {
// The capability to enable - Possible values are AllowSelfServeUpgradeToMongo36, DisableRateLimitingResponses, EnableAggregationPipeline, EnableCassandra, EnableGremlin, EnableMongo, EnableMongo16MBDocumentSupport, EnableMongoRetryableWrites, EnableMongoRoleBasedAccessControl, EnablePartialUniqueIndex, EnableServerless, EnableTable, EnableTtlOnCustomPath, EnableUniqueCompoundNestedDocs, MongoDBv3.4 and mongoEnableDocLevelTTL.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
}
type CapacityInitParameters struct {
// The total throughput limit imposed on this Cosmos DB account (RU/s). Possible values are at least -1. -1 means no limit.
TotalThroughputLimit *float64 `json:"totalThroughputLimit,omitempty" tf:"total_throughput_limit,omitempty"`
}
type CapacityObservation struct {
// The total throughput limit imposed on this Cosmos DB account (RU/s). Possible values are at least -1. -1 means no limit.
TotalThroughputLimit *float64 `json:"totalThroughputLimit,omitempty" tf:"total_throughput_limit,omitempty"`
}
type CapacityParameters struct {
// The total throughput limit imposed on this Cosmos DB account (RU/s). Possible values are at least -1. -1 means no limit.
// +kubebuilder:validation:Optional
TotalThroughputLimit *float64 `json:"totalThroughputLimit" tf:"total_throughput_limit,omitempty"`
}
type ConsistencyPolicyInitParameters struct {
// The Consistency Level to use for this CosmosDB Account - can be either BoundedStaleness, Eventual, Session, Strong or ConsistentPrefix.
ConsistencyLevel *string `json:"consistencyLevel,omitempty" tf:"consistency_level,omitempty"`
// When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. The accepted range for this value is 5 - 86400 (1 day). Defaults to 5. Required when consistency_level is set to BoundedStaleness.
MaxIntervalInSeconds *float64 `json:"maxIntervalInSeconds,omitempty" tf:"max_interval_in_seconds,omitempty"`
// When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. The accepted range for this value is 10 – 2147483647. Defaults to 100. Required when consistency_level is set to BoundedStaleness.
MaxStalenessPrefix *float64 `json:"maxStalenessPrefix,omitempty" tf:"max_staleness_prefix,omitempty"`
}
type ConsistencyPolicyObservation struct {
// The Consistency Level to use for this CosmosDB Account - can be either BoundedStaleness, Eventual, Session, Strong or ConsistentPrefix.
ConsistencyLevel *string `json:"consistencyLevel,omitempty" tf:"consistency_level,omitempty"`
// When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. The accepted range for this value is 5 - 86400 (1 day). Defaults to 5. Required when consistency_level is set to BoundedStaleness.
MaxIntervalInSeconds *float64 `json:"maxIntervalInSeconds,omitempty" tf:"max_interval_in_seconds,omitempty"`
// When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. The accepted range for this value is 10 – 2147483647. Defaults to 100. Required when consistency_level is set to BoundedStaleness.
MaxStalenessPrefix *float64 `json:"maxStalenessPrefix,omitempty" tf:"max_staleness_prefix,omitempty"`
}
type ConsistencyPolicyParameters struct {
// The Consistency Level to use for this CosmosDB Account - can be either BoundedStaleness, Eventual, Session, Strong or ConsistentPrefix.
// +kubebuilder:validation:Optional
ConsistencyLevel *string `json:"consistencyLevel" tf:"consistency_level,omitempty"`
// When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. The accepted range for this value is 5 - 86400 (1 day). Defaults to 5. Required when consistency_level is set to BoundedStaleness.
// +kubebuilder:validation:Optional
MaxIntervalInSeconds *float64 `json:"maxIntervalInSeconds,omitempty" tf:"max_interval_in_seconds,omitempty"`
// When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. The accepted range for this value is 10 – 2147483647. Defaults to 100. Required when consistency_level is set to BoundedStaleness.
// +kubebuilder:validation:Optional
MaxStalenessPrefix *float64 `json:"maxStalenessPrefix,omitempty" tf:"max_staleness_prefix,omitempty"`
}
type CorsRuleInitParameters struct {
// A list of headers that are allowed to be a part of the cross-origin request.
AllowedHeaders []*string `json:"allowedHeaders,omitempty" tf:"allowed_headers,omitempty"`
// A list of HTTP headers that are allowed to be executed by the origin. Valid options are DELETE, GET, HEAD, MERGE, POST, OPTIONS, PUT or PATCH.
AllowedMethods []*string `json:"allowedMethods,omitempty" tf:"allowed_methods,omitempty"`
// A list of origin domains that will be allowed by CORS.
AllowedOrigins []*string `json:"allowedOrigins,omitempty" tf:"allowed_origins,omitempty"`
// A list of response headers that are exposed to CORS clients.
ExposedHeaders []*string `json:"exposedHeaders,omitempty" tf:"exposed_headers,omitempty"`
// The number of seconds the client should cache a preflight response. Possible values are between 1 and 2147483647.
MaxAgeInSeconds *float64 `json:"maxAgeInSeconds,omitempty" tf:"max_age_in_seconds,omitempty"`
}
type CorsRuleObservation struct {
// A list of headers that are allowed to be a part of the cross-origin request.
AllowedHeaders []*string `json:"allowedHeaders,omitempty" tf:"allowed_headers,omitempty"`
// A list of HTTP headers that are allowed to be executed by the origin. Valid options are DELETE, GET, HEAD, MERGE, POST, OPTIONS, PUT or PATCH.
AllowedMethods []*string `json:"allowedMethods,omitempty" tf:"allowed_methods,omitempty"`
// A list of origin domains that will be allowed by CORS.
AllowedOrigins []*string `json:"allowedOrigins,omitempty" tf:"allowed_origins,omitempty"`
// A list of response headers that are exposed to CORS clients.
ExposedHeaders []*string `json:"exposedHeaders,omitempty" tf:"exposed_headers,omitempty"`
// The number of seconds the client should cache a preflight response. Possible values are between 1 and 2147483647.
MaxAgeInSeconds *float64 `json:"maxAgeInSeconds,omitempty" tf:"max_age_in_seconds,omitempty"`
}
type CorsRuleParameters struct {
// A list of headers that are allowed to be a part of the cross-origin request.
// +kubebuilder:validation:Optional
AllowedHeaders []*string `json:"allowedHeaders" tf:"allowed_headers,omitempty"`
// A list of HTTP headers that are allowed to be executed by the origin. Valid options are DELETE, GET, HEAD, MERGE, POST, OPTIONS, PUT or PATCH.
// +kubebuilder:validation:Optional
AllowedMethods []*string `json:"allowedMethods" tf:"allowed_methods,omitempty"`
// A list of origin domains that will be allowed by CORS.
// +kubebuilder:validation:Optional
AllowedOrigins []*string `json:"allowedOrigins" tf:"allowed_origins,omitempty"`
// A list of response headers that are exposed to CORS clients.
// +kubebuilder:validation:Optional
ExposedHeaders []*string `json:"exposedHeaders" tf:"exposed_headers,omitempty"`
// The number of seconds the client should cache a preflight response. Possible values are between 1 and 2147483647.
// +kubebuilder:validation:Optional
MaxAgeInSeconds *float64 `json:"maxAgeInSeconds,omitempty" tf:"max_age_in_seconds,omitempty"`
}
type DatabaseInitParameters struct {
// A list of the collection names for the restore request. Changing this forces a new resource to be created.
// +listType=set
CollectionNames []*string `json:"collectionNames,omitempty" tf:"collection_names,omitempty"`
// Specifies the name of the CosmosDB Account. Changing this forces a new resource to be created.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
}
type DatabaseObservation struct {
// A list of the collection names for the restore request. Changing this forces a new resource to be created.
// +listType=set
CollectionNames []*string `json:"collectionNames,omitempty" tf:"collection_names,omitempty"`
// Specifies the name of the CosmosDB Account. Changing this forces a new resource to be created.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
}
type DatabaseParameters struct {
// A list of the collection names for the restore request. Changing this forces a new resource to be created.
// +kubebuilder:validation:Optional
// +listType=set
CollectionNames []*string `json:"collectionNames,omitempty" tf:"collection_names,omitempty"`
// Specifies the name of the CosmosDB Account. Changing this forces a new resource to be created.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
}
type GeoLocationInitParameters struct {
// The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. Changing this causes the location to be re-provisioned and cannot be changed for the location with failover priority 0.
FailoverPriority *float64 `json:"failoverPriority,omitempty" tf:"failover_priority,omitempty"`
// The name of the Azure region to host replicated data.
Location *string `json:"location,omitempty" tf:"location,omitempty"`
// Should zone redundancy be enabled for this region? Defaults to false.
ZoneRedundant *bool `json:"zoneRedundant,omitempty" tf:"zone_redundant,omitempty"`
}
type GeoLocationObservation struct {
// The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. Changing this causes the location to be re-provisioned and cannot be changed for the location with failover priority 0.
FailoverPriority *float64 `json:"failoverPriority,omitempty" tf:"failover_priority,omitempty"`
// The ID of the virtual network subnet.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// The name of the Azure region to host replicated data.
Location *string `json:"location,omitempty" tf:"location,omitempty"`
// Should zone redundancy be enabled for this region? Defaults to false.
ZoneRedundant *bool `json:"zoneRedundant,omitempty" tf:"zone_redundant,omitempty"`
}
type GeoLocationParameters struct {
// The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. Changing this causes the location to be re-provisioned and cannot be changed for the location with failover priority 0.
// +kubebuilder:validation:Optional
FailoverPriority *float64 `json:"failoverPriority" tf:"failover_priority,omitempty"`
// The name of the Azure region to host replicated data.
// +kubebuilder:validation:Optional
Location *string `json:"location" tf:"location,omitempty"`
// Should zone redundancy be enabled for this region? Defaults to false.
// +kubebuilder:validation:Optional
ZoneRedundant *bool `json:"zoneRedundant,omitempty" tf:"zone_redundant,omitempty"`
}
type GremlinDatabaseInitParameters struct {
// A list of the Graph names for the restore request. Changing this forces a new resource to be created.
GraphNames []*string `json:"graphNames,omitempty" tf:"graph_names,omitempty"`
// Specifies the name of the CosmosDB Account. Changing this forces a new resource to be created.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
}
type GremlinDatabaseObservation struct {
// A list of the Graph names for the restore request. Changing this forces a new resource to be created.
GraphNames []*string `json:"graphNames,omitempty" tf:"graph_names,omitempty"`
// Specifies the name of the CosmosDB Account. Changing this forces a new resource to be created.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
}
type GremlinDatabaseParameters struct {
// A list of the Graph names for the restore request. Changing this forces a new resource to be created.
// +kubebuilder:validation:Optional
GraphNames []*string `json:"graphNames,omitempty" tf:"graph_names,omitempty"`
// Specifies the name of the CosmosDB Account. Changing this forces a new resource to be created.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
}
type IdentityInitParameters struct {
// Specifies a list of User Assigned Managed Identity IDs to be assigned to this Cosmos Account.
// +listType=set
IdentityIds []*string `json:"identityIds,omitempty" tf:"identity_ids,omitempty"`
// The Type of Managed Identity assigned to this Cosmos account. Possible values are SystemAssigned, UserAssigned and SystemAssigned, UserAssigned.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type IdentityObservation struct {
// Specifies a list of User Assigned Managed Identity IDs to be assigned to this Cosmos Account.
// +listType=set
IdentityIds []*string `json:"identityIds,omitempty" tf:"identity_ids,omitempty"`
// The Principal ID associated with this Managed Service Identity.
PrincipalID *string `json:"principalId,omitempty" tf:"principal_id,omitempty"`
// The Tenant ID associated with this Managed Service Identity.
TenantID *string `json:"tenantId,omitempty" tf:"tenant_id,omitempty"`
// The Type of Managed Identity assigned to this Cosmos account. Possible values are SystemAssigned, UserAssigned and SystemAssigned, UserAssigned.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type IdentityParameters struct {
// Specifies a list of User Assigned Managed Identity IDs to be assigned to this Cosmos Account.
// +kubebuilder:validation:Optional
// +listType=set
IdentityIds []*string `json:"identityIds,omitempty" tf:"identity_ids,omitempty"`
// The Type of Managed Identity assigned to this Cosmos account. Possible values are SystemAssigned, UserAssigned and SystemAssigned, UserAssigned.
// +kubebuilder:validation:Optional
Type *string `json:"type" tf:"type,omitempty"`
}
type RestoreInitParameters struct {
// A database block as defined below. Changing this forces a new resource to be created.
Database []DatabaseInitParameters `json:"database,omitempty" tf:"database,omitempty"`
// One or more gremlin_database blocks as defined below. Changing this forces a new resource to be created.
GremlinDatabase []GremlinDatabaseInitParameters `json:"gremlinDatabase,omitempty" tf:"gremlin_database,omitempty"`
// The creation time of the database or the collection (Datetime Format RFC 3339). Changing this forces a new resource to be created.
RestoreTimestampInUtc *string `json:"restoreTimestampInUtc,omitempty" tf:"restore_timestamp_in_utc,omitempty"`
// The resource ID of the restorable database account from which the restore has to be initiated. The example is /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{restorableDatabaseAccountName}. Changing this forces a new resource to be created.
// +crossplane:generate:reference:type=Account
// +crossplane:generate:reference:extractor=github.com/upbound/provider-azure/apis/rconfig.ExtractResourceID()
SourceCosmosDBAccountID *string `json:"sourceCosmosdbAccountId,omitempty" tf:"source_cosmosdb_account_id,omitempty"`
// Reference to a Account to populate sourceCosmosdbAccountId.
// +kubebuilder:validation:Optional
SourceCosmosDBAccountIDRef *v1.Reference `json:"sourceCosmosdbAccountIdRef,omitempty" tf:"-"`
// Selector for a Account to populate sourceCosmosdbAccountId.
// +kubebuilder:validation:Optional
SourceCosmosDBAccountIDSelector *v1.Selector `json:"sourceCosmosdbAccountIdSelector,omitempty" tf:"-"`
// A list of specific tables available for restore. Changing this forces a new resource to be created.
TablesToRestore []*string `json:"tablesToRestore,omitempty" tf:"tables_to_restore,omitempty"`
}
type RestoreObservation struct {
// A database block as defined below. Changing this forces a new resource to be created.
Database []DatabaseObservation `json:"database,omitempty" tf:"database,omitempty"`
// One or more gremlin_database blocks as defined below. Changing this forces a new resource to be created.
GremlinDatabase []GremlinDatabaseObservation `json:"gremlinDatabase,omitempty" tf:"gremlin_database,omitempty"`
// The creation time of the database or the collection (Datetime Format RFC 3339). Changing this forces a new resource to be created.
RestoreTimestampInUtc *string `json:"restoreTimestampInUtc,omitempty" tf:"restore_timestamp_in_utc,omitempty"`
// The resource ID of the restorable database account from which the restore has to be initiated. The example is /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{restorableDatabaseAccountName}. Changing this forces a new resource to be created.
SourceCosmosDBAccountID *string `json:"sourceCosmosdbAccountId,omitempty" tf:"source_cosmosdb_account_id,omitempty"`
// A list of specific tables available for restore. Changing this forces a new resource to be created.
TablesToRestore []*string `json:"tablesToRestore,omitempty" tf:"tables_to_restore,omitempty"`
}
type RestoreParameters struct {
// A database block as defined below. Changing this forces a new resource to be created.
// +kubebuilder:validation:Optional
Database []DatabaseParameters `json:"database,omitempty" tf:"database,omitempty"`
// One or more gremlin_database blocks as defined below. Changing this forces a new resource to be created.
// +kubebuilder:validation:Optional
GremlinDatabase []GremlinDatabaseParameters `json:"gremlinDatabase,omitempty" tf:"gremlin_database,omitempty"`
// The creation time of the database or the collection (Datetime Format RFC 3339). Changing this forces a new resource to be created.
// +kubebuilder:validation:Optional
RestoreTimestampInUtc *string `json:"restoreTimestampInUtc" tf:"restore_timestamp_in_utc,omitempty"`
// The resource ID of the restorable database account from which the restore has to be initiated. The example is /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{restorableDatabaseAccountName}. Changing this forces a new resource to be created.
// +crossplane:generate:reference:type=Account
// +crossplane:generate:reference:extractor=github.com/upbound/provider-azure/apis/rconfig.ExtractResourceID()
// +kubebuilder:validation:Optional
SourceCosmosDBAccountID *string `json:"sourceCosmosdbAccountId,omitempty" tf:"source_cosmosdb_account_id,omitempty"`
// Reference to a Account to populate sourceCosmosdbAccountId.
// +kubebuilder:validation:Optional
SourceCosmosDBAccountIDRef *v1.Reference `json:"sourceCosmosdbAccountIdRef,omitempty" tf:"-"`
// Selector for a Account to populate sourceCosmosdbAccountId.
// +kubebuilder:validation:Optional
SourceCosmosDBAccountIDSelector *v1.Selector `json:"sourceCosmosdbAccountIdSelector,omitempty" tf:"-"`
// A list of specific tables available for restore. Changing this forces a new resource to be created.
// +kubebuilder:validation:Optional
TablesToRestore []*string `json:"tablesToRestore,omitempty" tf:"tables_to_restore,omitempty"`
}
type VirtualNetworkRuleInitParameters struct {
// The ID of the virtual network subnet.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// If set to true, the specified subnet will be added as a virtual network rule even if its CosmosDB service endpoint is not active. Defaults to false.
IgnoreMissingVnetServiceEndpoint *bool `json:"ignoreMissingVnetServiceEndpoint,omitempty" tf:"ignore_missing_vnet_service_endpoint,omitempty"`
}
type VirtualNetworkRuleObservation struct {
// The ID of the virtual network subnet.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// If set to true, the specified subnet will be added as a virtual network rule even if its CosmosDB service endpoint is not active. Defaults to false.
IgnoreMissingVnetServiceEndpoint *bool `json:"ignoreMissingVnetServiceEndpoint,omitempty" tf:"ignore_missing_vnet_service_endpoint,omitempty"`
}
type VirtualNetworkRuleParameters struct {
// The ID of the virtual network subnet.
// +kubebuilder:validation:Optional
ID *string `json:"id" tf:"id,omitempty"`
// If set to true, the specified subnet will be added as a virtual network rule even if its CosmosDB service endpoint is not active. Defaults to false.
// +kubebuilder:validation:Optional
IgnoreMissingVnetServiceEndpoint *bool `json:"ignoreMissingVnetServiceEndpoint,omitempty" tf:"ignore_missing_vnet_service_endpoint,omitempty"`
}
// AccountSpec defines the desired state of Account
type AccountSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider AccountParameters `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 AccountInitParameters `json:"initProvider,omitempty"`
}
// AccountStatus defines the observed state of Account.
type AccountStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider AccountObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:storageversion
// Account is the Schema for the Accounts API. Manages a CosmosDB (formally DocumentDB) Account.
// +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,azure}
type Account 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.consistencyPolicy) || (has(self.initProvider) && has(self.initProvider.consistencyPolicy))",message="spec.forProvider.consistencyPolicy is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.geoLocation) || (has(self.initProvider) && has(self.initProvider.geoLocation))",message="spec.forProvider.geoLocation is a required parameter"
// +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"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.offerType) || (has(self.initProvider) && has(self.initProvider.offerType))",message="spec.forProvider.offerType is a required parameter"
Spec AccountSpec `json:"spec"`
Status AccountStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// AccountList contains a list of Accounts
type AccountList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Account `json:"items"`
}
// Repository type metadata.
var (
Account_Kind = "Account"
Account_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Account_Kind}.String()
Account_KindAPIVersion = Account_Kind + "." + CRDGroupVersion.String()
Account_GroupVersionKind = CRDGroupVersion.WithKind(Account_Kind)
)
func init() {
SchemeBuilder.Register(&Account{}, &AccountList{})
}