generated from crossplane/upjet-provider-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
zz_projectdatabase_types.go
executable file
·286 lines (207 loc) · 12 KB
/
zz_projectdatabase_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
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
/*
Copyright 2022 Upbound Inc.
*/
// Code generated by upjet. DO NOT EDIT.
package v1alpha1
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 EndpointsInitParameters struct {
}
type EndpointsObservation struct {
Component *string `json:"component,omitempty" tf:"component,omitempty"`
Domain *string `json:"domain,omitempty" tf:"domain,omitempty"`
Path *string `json:"path,omitempty" tf:"path,omitempty"`
Port *float64 `json:"port,omitempty" tf:"port,omitempty"`
SSL *bool `json:"ssl,omitempty" tf:"ssl,omitempty"`
SSLMode *string `json:"sslMode,omitempty" tf:"ssl_mode,omitempty"`
Scheme *string `json:"scheme,omitempty" tf:"scheme,omitempty"`
URI *string `json:"uri,omitempty" tf:"uri,omitempty"`
}
type EndpointsParameters struct {
}
type NodesInitParameters struct {
// Private network ID in which the node is. It's the regional openstackId of the private network.
NetworkID *string `json:"networkId,omitempty" tf:"network_id,omitempty"`
// Region of the node
Region *string `json:"region,omitempty" tf:"region,omitempty"`
// Private subnet ID in which the node is
SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"`
}
type NodesObservation struct {
// Private network ID in which the node is. It's the regional openstackId of the private network.
NetworkID *string `json:"networkId,omitempty" tf:"network_id,omitempty"`
// Region of the node
Region *string `json:"region,omitempty" tf:"region,omitempty"`
// Private subnet ID in which the node is
SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"`
}
type NodesParameters struct {
// Private network ID in which the node is. It's the regional openstackId of the private network.
// +kubebuilder:validation:Optional
NetworkID *string `json:"networkId,omitempty" tf:"network_id,omitempty"`
// Region of the node
// +kubebuilder:validation:Optional
Region *string `json:"region" tf:"region,omitempty"`
// Private subnet ID in which the node is
// +kubebuilder:validation:Optional
SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"`
}
type ProjectDatabaseInitParameters struct {
// Advanced configuration key / value
AdvancedConfiguration map[string]*string `json:"advancedConfiguration,omitempty" tf:"advanced_configuration,omitempty"`
// Description of the cluster
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Disk size attributes of the cluster
DiskSize *float64 `json:"diskSize,omitempty" tf:"disk_size,omitempty"`
// Name of the engine of the service
Engine *string `json:"engine,omitempty" tf:"engine,omitempty"`
// The node flavor used for this cluster
Flavor *string `json:"flavor,omitempty" tf:"flavor,omitempty"`
// Defines whether the REST API is enabled on a Kafka cluster
KafkaRestAPI *bool `json:"kafkaRestApi,omitempty" tf:"kafka_rest_api,omitempty"`
// List of nodes composing the service
Nodes []NodesInitParameters `json:"nodes,omitempty" tf:"nodes,omitempty"`
// Defines whether the ACLs are enabled on an Opensearch cluster
OpensearchAclsEnabled *bool `json:"opensearchAclsEnabled,omitempty" tf:"opensearch_acls_enabled,omitempty"`
// Plan of the cluster
Plan *string `json:"plan,omitempty" tf:"plan,omitempty"`
ServiceName *string `json:"serviceName,omitempty" tf:"service_name,omitempty"`
// Version of the engine deployed on the cluster
Version *string `json:"version,omitempty" tf:"version,omitempty"`
}
type ProjectDatabaseObservation struct {
// Advanced configuration key / value
AdvancedConfiguration map[string]*string `json:"advancedConfiguration,omitempty" tf:"advanced_configuration,omitempty"`
// Time on which backups start every day
BackupTime *string `json:"backupTime,omitempty" tf:"backup_time,omitempty"`
// Date of the creation of the cluster
CreatedAt *string `json:"createdAt,omitempty" tf:"created_at,omitempty"`
// Description of the cluster
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Disk size attributes of the cluster
DiskSize *float64 `json:"diskSize,omitempty" tf:"disk_size,omitempty"`
// Disk type attributes of the cluster
DiskType *string `json:"diskType,omitempty" tf:"disk_type,omitempty"`
// List of all endpoints of the service
Endpoints []EndpointsObservation `json:"endpoints,omitempty" tf:"endpoints,omitempty"`
// Name of the engine of the service
Engine *string `json:"engine,omitempty" tf:"engine,omitempty"`
// The node flavor used for this cluster
Flavor *string `json:"flavor,omitempty" tf:"flavor,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// Defines whether the REST API is enabled on a Kafka cluster
KafkaRestAPI *bool `json:"kafkaRestApi,omitempty" tf:"kafka_rest_api,omitempty"`
// Time on which maintenances can start every day
MaintenanceTime *string `json:"maintenanceTime,omitempty" tf:"maintenance_time,omitempty"`
// Type of network of the cluster
NetworkType *string `json:"networkType,omitempty" tf:"network_type,omitempty"`
// List of nodes composing the service
Nodes []NodesObservation `json:"nodes,omitempty" tf:"nodes,omitempty"`
// Defines whether the ACLs are enabled on an Opensearch cluster
OpensearchAclsEnabled *bool `json:"opensearchAclsEnabled,omitempty" tf:"opensearch_acls_enabled,omitempty"`
// Plan of the cluster
Plan *string `json:"plan,omitempty" tf:"plan,omitempty"`
ServiceName *string `json:"serviceName,omitempty" tf:"service_name,omitempty"`
// Current status of the cluster
Status *string `json:"status,omitempty" tf:"status,omitempty"`
// Version of the engine deployed on the cluster
Version *string `json:"version,omitempty" tf:"version,omitempty"`
}
type ProjectDatabaseParameters struct {
// Advanced configuration key / value
// +kubebuilder:validation:Optional
AdvancedConfiguration map[string]*string `json:"advancedConfiguration,omitempty" tf:"advanced_configuration,omitempty"`
// Description of the cluster
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Disk size attributes of the cluster
// +kubebuilder:validation:Optional
DiskSize *float64 `json:"diskSize,omitempty" tf:"disk_size,omitempty"`
// Name of the engine of the service
// +kubebuilder:validation:Optional
Engine *string `json:"engine,omitempty" tf:"engine,omitempty"`
// The node flavor used for this cluster
// +kubebuilder:validation:Optional
Flavor *string `json:"flavor,omitempty" tf:"flavor,omitempty"`
// Defines whether the REST API is enabled on a Kafka cluster
// +kubebuilder:validation:Optional
KafkaRestAPI *bool `json:"kafkaRestApi,omitempty" tf:"kafka_rest_api,omitempty"`
// List of nodes composing the service
// +kubebuilder:validation:Optional
Nodes []NodesParameters `json:"nodes,omitempty" tf:"nodes,omitempty"`
// Defines whether the ACLs are enabled on an Opensearch cluster
// +kubebuilder:validation:Optional
OpensearchAclsEnabled *bool `json:"opensearchAclsEnabled,omitempty" tf:"opensearch_acls_enabled,omitempty"`
// Plan of the cluster
// +kubebuilder:validation:Optional
Plan *string `json:"plan,omitempty" tf:"plan,omitempty"`
// +kubebuilder:validation:Optional
ServiceName *string `json:"serviceName,omitempty" tf:"service_name,omitempty"`
// Version of the engine deployed on the cluster
// +kubebuilder:validation:Optional
Version *string `json:"version,omitempty" tf:"version,omitempty"`
}
// ProjectDatabaseSpec defines the desired state of ProjectDatabase
type ProjectDatabaseSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider ProjectDatabaseParameters `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 ProjectDatabaseInitParameters `json:"initProvider,omitempty"`
}
// ProjectDatabaseStatus defines the observed state of ProjectDatabase.
type ProjectDatabaseStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider ProjectDatabaseObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// ProjectDatabase is the Schema for the ProjectDatabases 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,ovh}
type ProjectDatabase 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.engine) || (has(self.initProvider) && has(self.initProvider.engine))",message="spec.forProvider.engine is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.flavor) || (has(self.initProvider) && has(self.initProvider.flavor))",message="spec.forProvider.flavor is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.nodes) || (has(self.initProvider) && has(self.initProvider.nodes))",message="spec.forProvider.nodes is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.plan) || (has(self.initProvider) && has(self.initProvider.plan))",message="spec.forProvider.plan is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.serviceName) || (has(self.initProvider) && has(self.initProvider.serviceName))",message="spec.forProvider.serviceName is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.version) || (has(self.initProvider) && has(self.initProvider.version))",message="spec.forProvider.version is a required parameter"
Spec ProjectDatabaseSpec `json:"spec"`
Status ProjectDatabaseStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// ProjectDatabaseList contains a list of ProjectDatabases
type ProjectDatabaseList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ProjectDatabase `json:"items"`
}
// Repository type metadata.
var (
ProjectDatabase_Kind = "ProjectDatabase"
ProjectDatabase_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ProjectDatabase_Kind}.String()
ProjectDatabase_KindAPIVersion = ProjectDatabase_Kind + "." + CRDGroupVersion.String()
ProjectDatabase_GroupVersionKind = CRDGroupVersion.WithKind(ProjectDatabase_Kind)
)
func init() {
SchemeBuilder.Register(&ProjectDatabase{}, &ProjectDatabaseList{})
}