generated from crossplane-contrib/provider-jet-template
/
zz_advancedcluster_types.go
executable file
·415 lines (284 loc) · 14.9 KB
/
zz_advancedcluster_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
/*
Copyright 2021 The Crossplane Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Code generated by upjet. DO NOT EDIT.
package v1alpha2
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 AdvancedClusterObservation struct {
ClusterID *string `json:"clusterId,omitempty" tf:"cluster_id,omitempty"`
ConnectionStrings []ConnectionStringsObservation `json:"connectionStrings,omitempty" tf:"connection_strings,omitempty"`
CreateDate *string `json:"createDate,omitempty" tf:"create_date,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
MongoDBVersion *string `json:"mongoDbVersion,omitempty" tf:"mongo_db_version,omitempty"`
// +kubebuilder:validation:Required
ReplicationSpecs []ReplicationSpecsObservation `json:"replicationSpecs,omitempty" tf:"replication_specs,omitempty"`
StateName *string `json:"stateName,omitempty" tf:"state_name,omitempty"`
}
type AdvancedClusterParameters struct {
// +kubebuilder:validation:Optional
AdvancedConfiguration []AdvancedConfigurationParameters `json:"advancedConfiguration,omitempty" tf:"advanced_configuration,omitempty"`
// +kubebuilder:validation:Optional
BackupEnabled *bool `json:"backupEnabled,omitempty" tf:"backup_enabled,omitempty"`
// +kubebuilder:validation:Optional
BiConnector []BiConnectorParameters `json:"biConnector,omitempty" tf:"bi_connector,omitempty"`
// +kubebuilder:validation:Optional
BiConnectorConfig []BiConnectorConfigParameters `json:"biConnectorConfig,omitempty" tf:"bi_connector_config,omitempty"`
// +kubebuilder:validation:Required
ClusterType *string `json:"clusterType" tf:"cluster_type,omitempty"`
// +kubebuilder:validation:Optional
DiskSizeGb *float64 `json:"diskSizeGb,omitempty" tf:"disk_size_gb,omitempty"`
// +kubebuilder:validation:Optional
EncryptionAtRestProvider *string `json:"encryptionAtRestProvider,omitempty" tf:"encryption_at_rest_provider,omitempty"`
// +kubebuilder:validation:Optional
Labels []LabelsParameters `json:"labels,omitempty" tf:"labels,omitempty"`
// +kubebuilder:validation:Optional
MongoDBMajorVersion *string `json:"mongoDbMajorVersion,omitempty" tf:"mongo_db_major_version,omitempty"`
// +kubebuilder:validation:Optional
Paused *bool `json:"paused,omitempty" tf:"paused,omitempty"`
// +kubebuilder:validation:Optional
PitEnabled *bool `json:"pitEnabled,omitempty" tf:"pit_enabled,omitempty"`
// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-mongodbatlas/apis/mongodbatlas/v1alpha1.Project
// +crossplane:generate:reference:extractor=github.com/crossplane-contrib/provider-mongodbatlas/config/common.ExtractResourceID()
// +kubebuilder:validation:Optional
ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"`
// Reference to a Project in mongodbatlas to populate projectId.
// +kubebuilder:validation:Optional
ProjectIDRef *v1.Reference `json:"projectIdRef,omitempty" tf:"-"`
// Selector for a Project in mongodbatlas to populate projectId.
// +kubebuilder:validation:Optional
ProjectIDSelector *v1.Selector `json:"projectIdSelector,omitempty" tf:"-"`
// +kubebuilder:validation:Required
ReplicationSpecs []ReplicationSpecsParameters `json:"replicationSpecs" tf:"replication_specs,omitempty"`
// +kubebuilder:validation:Optional
RootCertType *string `json:"rootCertType,omitempty" tf:"root_cert_type,omitempty"`
// +kubebuilder:validation:Optional
TerminationProtectionEnabled *bool `json:"terminationProtectionEnabled,omitempty" tf:"termination_protection_enabled,omitempty"`
// +kubebuilder:validation:Optional
VersionReleaseSystem *string `json:"versionReleaseSystem,omitempty" tf:"version_release_system,omitempty"`
}
type AdvancedConfigurationObservation struct {
}
type AdvancedConfigurationParameters struct {
// +kubebuilder:validation:Optional
DefaultReadConcern *string `json:"defaultReadConcern,omitempty" tf:"default_read_concern,omitempty"`
// +kubebuilder:validation:Optional
DefaultWriteConcern *string `json:"defaultWriteConcern,omitempty" tf:"default_write_concern,omitempty"`
// +kubebuilder:validation:Optional
FailIndexKeyTooLong *bool `json:"failIndexKeyTooLong,omitempty" tf:"fail_index_key_too_long,omitempty"`
// +kubebuilder:validation:Optional
JavascriptEnabled *bool `json:"javascriptEnabled,omitempty" tf:"javascript_enabled,omitempty"`
// +kubebuilder:validation:Optional
MinimumEnabledTLSProtocol *string `json:"minimumEnabledTlsProtocol,omitempty" tf:"minimum_enabled_tls_protocol,omitempty"`
// +kubebuilder:validation:Optional
NoTableScan *bool `json:"noTableScan,omitempty" tf:"no_table_scan,omitempty"`
// +kubebuilder:validation:Optional
OplogMinRetentionHours *float64 `json:"oplogMinRetentionHours,omitempty" tf:"oplog_min_retention_hours,omitempty"`
// +kubebuilder:validation:Optional
OplogSizeMb *float64 `json:"oplogSizeMb,omitempty" tf:"oplog_size_mb,omitempty"`
// +kubebuilder:validation:Optional
SampleRefreshIntervalBiConnector *float64 `json:"sampleRefreshIntervalBiConnector,omitempty" tf:"sample_refresh_interval_bi_connector,omitempty"`
// +kubebuilder:validation:Optional
SampleSizeBiConnector *float64 `json:"sampleSizeBiConnector,omitempty" tf:"sample_size_bi_connector,omitempty"`
}
type AnalyticsAutoScalingObservation struct {
}
type AnalyticsAutoScalingParameters struct {
// +kubebuilder:validation:Optional
ComputeEnabled *bool `json:"computeEnabled,omitempty" tf:"compute_enabled,omitempty"`
// +kubebuilder:validation:Optional
ComputeMaxInstanceSize *string `json:"computeMaxInstanceSize,omitempty" tf:"compute_max_instance_size,omitempty"`
// +kubebuilder:validation:Optional
ComputeMinInstanceSize *string `json:"computeMinInstanceSize,omitempty" tf:"compute_min_instance_size,omitempty"`
// +kubebuilder:validation:Optional
ComputeScaleDownEnabled *bool `json:"computeScaleDownEnabled,omitempty" tf:"compute_scale_down_enabled,omitempty"`
// +kubebuilder:validation:Optional
DiskGbEnabled *bool `json:"diskGbEnabled,omitempty" tf:"disk_gb_enabled,omitempty"`
}
type AnalyticsSpecsObservation struct {
}
type AnalyticsSpecsParameters struct {
// +kubebuilder:validation:Optional
DiskIops *float64 `json:"diskIops,omitempty" tf:"disk_iops,omitempty"`
// +kubebuilder:validation:Optional
EBSVolumeType *string `json:"ebsVolumeType,omitempty" tf:"ebs_volume_type,omitempty"`
// +kubebuilder:validation:Required
InstanceSize *string `json:"instanceSize" tf:"instance_size,omitempty"`
// +kubebuilder:validation:Optional
NodeCount *float64 `json:"nodeCount,omitempty" tf:"node_count,omitempty"`
}
type AutoScalingObservation struct {
}
type AutoScalingParameters struct {
// +kubebuilder:validation:Optional
ComputeEnabled *bool `json:"computeEnabled,omitempty" tf:"compute_enabled,omitempty"`
// +kubebuilder:validation:Optional
ComputeMaxInstanceSize *string `json:"computeMaxInstanceSize,omitempty" tf:"compute_max_instance_size,omitempty"`
// +kubebuilder:validation:Optional
ComputeMinInstanceSize *string `json:"computeMinInstanceSize,omitempty" tf:"compute_min_instance_size,omitempty"`
// +kubebuilder:validation:Optional
ComputeScaleDownEnabled *bool `json:"computeScaleDownEnabled,omitempty" tf:"compute_scale_down_enabled,omitempty"`
// +kubebuilder:validation:Optional
DiskGbEnabled *bool `json:"diskGbEnabled,omitempty" tf:"disk_gb_enabled,omitempty"`
}
type BiConnectorConfigObservation struct {
}
type BiConnectorConfigParameters struct {
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// +kubebuilder:validation:Optional
ReadPreference *string `json:"readPreference,omitempty" tf:"read_preference,omitempty"`
}
type BiConnectorObservation struct {
}
type BiConnectorParameters struct {
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// +kubebuilder:validation:Optional
ReadPreference *string `json:"readPreference,omitempty" tf:"read_preference,omitempty"`
}
type ConnectionStringsObservation struct {
AwsPrivateLink map[string]*string `json:"awsPrivateLink,omitempty" tf:"aws_private_link,omitempty"`
AwsPrivateLinkSrv map[string]*string `json:"awsPrivateLinkSrv,omitempty" tf:"aws_private_link_srv,omitempty"`
Private *string `json:"private,omitempty" tf:"private,omitempty"`
PrivateEndpoint []PrivateEndpointObservation `json:"privateEndpoint,omitempty" tf:"private_endpoint,omitempty"`
PrivateSrv *string `json:"privateSrv,omitempty" tf:"private_srv,omitempty"`
Standard *string `json:"standard,omitempty" tf:"standard,omitempty"`
StandardSrv *string `json:"standardSrv,omitempty" tf:"standard_srv,omitempty"`
}
type ConnectionStringsParameters struct {
}
type ElectableSpecsObservation struct {
}
type ElectableSpecsParameters struct {
// +kubebuilder:validation:Optional
DiskIops *float64 `json:"diskIops,omitempty" tf:"disk_iops,omitempty"`
// +kubebuilder:validation:Optional
EBSVolumeType *string `json:"ebsVolumeType,omitempty" tf:"ebs_volume_type,omitempty"`
// +kubebuilder:validation:Required
InstanceSize *string `json:"instanceSize" tf:"instance_size,omitempty"`
// +kubebuilder:validation:Optional
NodeCount *float64 `json:"nodeCount,omitempty" tf:"node_count,omitempty"`
}
type EndpointsObservation struct {
EndpointID *string `json:"endpointId,omitempty" tf:"endpoint_id,omitempty"`
ProviderName *string `json:"providerName,omitempty" tf:"provider_name,omitempty"`
Region *string `json:"region,omitempty" tf:"region,omitempty"`
}
type EndpointsParameters struct {
}
type LabelsObservation struct {
}
type LabelsParameters struct {
// +kubebuilder:validation:Optional
Key *string `json:"key,omitempty" tf:"key,omitempty"`
// +kubebuilder:validation:Optional
Value *string `json:"value,omitempty" tf:"value,omitempty"`
}
type PrivateEndpointObservation struct {
ConnectionString *string `json:"connectionString,omitempty" tf:"connection_string,omitempty"`
Endpoints []EndpointsObservation `json:"endpoints,omitempty" tf:"endpoints,omitempty"`
SrvConnectionString *string `json:"srvConnectionString,omitempty" tf:"srv_connection_string,omitempty"`
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type PrivateEndpointParameters struct {
}
type ReadOnlySpecsObservation struct {
}
type ReadOnlySpecsParameters struct {
// +kubebuilder:validation:Optional
DiskIops *float64 `json:"diskIops,omitempty" tf:"disk_iops,omitempty"`
// +kubebuilder:validation:Optional
EBSVolumeType *string `json:"ebsVolumeType,omitempty" tf:"ebs_volume_type,omitempty"`
// +kubebuilder:validation:Required
InstanceSize *string `json:"instanceSize" tf:"instance_size,omitempty"`
// +kubebuilder:validation:Optional
NodeCount *float64 `json:"nodeCount,omitempty" tf:"node_count,omitempty"`
}
type RegionConfigsObservation struct {
}
type RegionConfigsParameters struct {
// +kubebuilder:validation:Optional
AnalyticsAutoScaling []AnalyticsAutoScalingParameters `json:"analyticsAutoScaling,omitempty" tf:"analytics_auto_scaling,omitempty"`
// +kubebuilder:validation:Optional
AnalyticsSpecs []AnalyticsSpecsParameters `json:"analyticsSpecs,omitempty" tf:"analytics_specs,omitempty"`
// +kubebuilder:validation:Optional
AutoScaling []AutoScalingParameters `json:"autoScaling,omitempty" tf:"auto_scaling,omitempty"`
// +kubebuilder:validation:Optional
BackingProviderName *string `json:"backingProviderName,omitempty" tf:"backing_provider_name,omitempty"`
// +kubebuilder:validation:Optional
ElectableSpecs []ElectableSpecsParameters `json:"electableSpecs,omitempty" tf:"electable_specs,omitempty"`
// +kubebuilder:validation:Required
Priority *float64 `json:"priority" tf:"priority,omitempty"`
// +kubebuilder:validation:Required
ProviderName *string `json:"providerName" tf:"provider_name,omitempty"`
// +kubebuilder:validation:Optional
ReadOnlySpecs []ReadOnlySpecsParameters `json:"readOnlySpecs,omitempty" tf:"read_only_specs,omitempty"`
// +kubebuilder:validation:Required
RegionName *string `json:"regionName" tf:"region_name,omitempty"`
}
type ReplicationSpecsObservation struct {
ContainerID map[string]*string `json:"containerId,omitempty" tf:"container_id,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
}
type ReplicationSpecsParameters struct {
// +kubebuilder:validation:Optional
NumShards *float64 `json:"numShards,omitempty" tf:"num_shards,omitempty"`
// +kubebuilder:validation:Required
RegionConfigs []RegionConfigsParameters `json:"regionConfigs" tf:"region_configs,omitempty"`
// +kubebuilder:validation:Optional
ZoneName *string `json:"zoneName,omitempty" tf:"zone_name,omitempty"`
}
// AdvancedClusterSpec defines the desired state of AdvancedCluster
type AdvancedClusterSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider AdvancedClusterParameters `json:"forProvider"`
}
// AdvancedClusterStatus defines the observed state of AdvancedCluster.
type AdvancedClusterStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider AdvancedClusterObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// AdvancedCluster is the Schema for the AdvancedClusters API. <no value>
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,mongodbatlas}
type AdvancedCluster struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec AdvancedClusterSpec `json:"spec"`
Status AdvancedClusterStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// AdvancedClusterList contains a list of AdvancedClusters
type AdvancedClusterList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []AdvancedCluster `json:"items"`
}
// Repository type metadata.
var (
AdvancedCluster_Kind = "AdvancedCluster"
AdvancedCluster_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: AdvancedCluster_Kind}.String()
AdvancedCluster_KindAPIVersion = AdvancedCluster_Kind + "." + CRDGroupVersion.String()
AdvancedCluster_GroupVersionKind = CRDGroupVersion.WithKind(AdvancedCluster_Kind)
)
func init() {
SchemeBuilder.Register(&AdvancedCluster{}, &AdvancedClusterList{})
}