/
datastreamconnectionprofile_types.go
304 lines (239 loc) · 10.2 KB
/
datastreamconnectionprofile_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
// Copyright 2020 Google LLC
//
// 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.
// ----------------------------------------------------------------------------
//
// *** AUTO GENERATED CODE *** AUTO GENERATED CODE ***
//
// ----------------------------------------------------------------------------
//
// This file is automatically generated by Config Connector and manual
// changes will be clobbered when the file is regenerated.
//
// ----------------------------------------------------------------------------
// *** DISCLAIMER ***
// Config Connector's go-client for CRDs is currently in ALPHA, which means
// that future versions of the go-client may include breaking changes.
// Please try it out and give us feedback!
package v1alpha1
import (
"github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/k8s/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
type ConnectionprofileBigqueryProfile struct {
}
type ConnectionprofileCaCertificate struct {
/* Value of the field. Cannot be used if 'valueFrom' is specified. */
// +optional
Value *string `json:"value,omitempty"`
/* Source for the field's value. Cannot be used if 'value' is specified. */
// +optional
ValueFrom *ConnectionprofileValueFrom `json:"valueFrom,omitempty"`
}
type ConnectionprofileClientCertificate struct {
/* Value of the field. Cannot be used if 'valueFrom' is specified. */
// +optional
Value *string `json:"value,omitempty"`
/* Source for the field's value. Cannot be used if 'value' is specified. */
// +optional
ValueFrom *ConnectionprofileValueFrom `json:"valueFrom,omitempty"`
}
type ConnectionprofileClientKey struct {
/* Value of the field. Cannot be used if 'valueFrom' is specified. */
// +optional
Value *string `json:"value,omitempty"`
/* Source for the field's value. Cannot be used if 'value' is specified. */
// +optional
ValueFrom *ConnectionprofileValueFrom `json:"valueFrom,omitempty"`
}
type ConnectionprofileForwardSshConnectivity struct {
/* Hostname for the SSH tunnel. */
Hostname string `json:"hostname"`
/* Immutable. SSH password. */
// +optional
Password *ConnectionprofilePassword `json:"password,omitempty"`
/* Port for the SSH tunnel. */
// +optional
Port *int `json:"port,omitempty"`
/* Immutable. SSH private key. */
// +optional
PrivateKey *ConnectionprofilePrivateKey `json:"privateKey,omitempty"`
/* Username for the SSH tunnel. */
Username string `json:"username"`
}
type ConnectionprofileGcsProfile struct {
/* The Cloud Storage bucket name. */
Bucket string `json:"bucket"`
/* The root path inside the Cloud Storage bucket. */
// +optional
RootPath *string `json:"rootPath,omitempty"`
}
type ConnectionprofileMysqlProfile struct {
/* Hostname for the MySQL connection. */
Hostname string `json:"hostname"`
/* Password for the MySQL connection. */
Password ConnectionprofilePassword `json:"password"`
/* Port for the MySQL connection. */
// +optional
Port *int `json:"port,omitempty"`
/* SSL configuration for the MySQL connection. */
// +optional
SslConfig *ConnectionprofileSslConfig `json:"sslConfig,omitempty"`
/* Username for the MySQL connection. */
Username string `json:"username"`
}
type ConnectionprofileOracleProfile struct {
/* Connection string attributes. */
// +optional
ConnectionAttributes map[string]string `json:"connectionAttributes,omitempty"`
/* Database for the Oracle connection. */
DatabaseService string `json:"databaseService"`
/* Hostname for the Oracle connection. */
Hostname string `json:"hostname"`
/* Password for the Oracle connection. */
Password ConnectionprofilePassword `json:"password"`
/* Port for the Oracle connection. */
// +optional
Port *int `json:"port,omitempty"`
/* Username for the Oracle connection. */
Username string `json:"username"`
}
type ConnectionprofilePassword struct {
/* Value of the field. Cannot be used if 'valueFrom' is specified. */
// +optional
Value *string `json:"value,omitempty"`
/* Source for the field's value. Cannot be used if 'value' is specified. */
// +optional
ValueFrom *ConnectionprofileValueFrom `json:"valueFrom,omitempty"`
}
type ConnectionprofilePostgresqlProfile struct {
/* Database for the PostgreSQL connection. */
Database string `json:"database"`
/* Hostname for the PostgreSQL connection. */
Hostname string `json:"hostname"`
/* Password for the PostgreSQL connection. */
Password ConnectionprofilePassword `json:"password"`
/* Port for the PostgreSQL connection. */
// +optional
Port *int `json:"port,omitempty"`
/* Username for the PostgreSQL connection. */
Username string `json:"username"`
}
type ConnectionprofilePrivateConnectivity struct {
/* A reference to a private connection resource. Format: 'projects/{project}/locations/{location}/privateConnections/{name}'. */
PrivateConnection string `json:"privateConnection"`
}
type ConnectionprofilePrivateKey struct {
/* Value of the field. Cannot be used if 'valueFrom' is specified. */
// +optional
Value *string `json:"value,omitempty"`
/* Source for the field's value. Cannot be used if 'value' is specified. */
// +optional
ValueFrom *ConnectionprofileValueFrom `json:"valueFrom,omitempty"`
}
type ConnectionprofileSslConfig struct {
/* Immutable. PEM-encoded certificate of the CA that signed the source database
server's certificate. */
// +optional
CaCertificate *ConnectionprofileCaCertificate `json:"caCertificate,omitempty"`
/* Indicates whether the clientKey field is set. */
// +optional
CaCertificateSet *bool `json:"caCertificateSet,omitempty"`
/* Immutable. PEM-encoded certificate that will be used by the replica to
authenticate against the source database server. If this field
is used then the 'clientKey' and the 'caCertificate' fields are
mandatory. */
// +optional
ClientCertificate *ConnectionprofileClientCertificate `json:"clientCertificate,omitempty"`
/* Indicates whether the clientCertificate field is set. */
// +optional
ClientCertificateSet *bool `json:"clientCertificateSet,omitempty"`
/* Immutable. PEM-encoded private key associated with the Client Certificate.
If this field is used then the 'client_certificate' and the
'ca_certificate' fields are mandatory. */
// +optional
ClientKey *ConnectionprofileClientKey `json:"clientKey,omitempty"`
/* Indicates whether the clientKey field is set. */
// +optional
ClientKeySet *bool `json:"clientKeySet,omitempty"`
}
type ConnectionprofileValueFrom struct {
/* Reference to a value with the given key in the given Secret in the resource's namespace. */
// +optional
SecretKeyRef *v1alpha1.SecretKeyRef `json:"secretKeyRef,omitempty"`
}
type DatastreamConnectionProfileSpec struct {
/* BigQuery warehouse profile. */
// +optional
BigqueryProfile *ConnectionprofileBigqueryProfile `json:"bigqueryProfile,omitempty"`
/* Display name. */
DisplayName string `json:"displayName"`
/* Forward SSH tunnel connectivity. */
// +optional
ForwardSshConnectivity *ConnectionprofileForwardSshConnectivity `json:"forwardSshConnectivity,omitempty"`
/* Cloud Storage bucket profile. */
// +optional
GcsProfile *ConnectionprofileGcsProfile `json:"gcsProfile,omitempty"`
/* Immutable. The name of the location this connection profile is located in. */
Location string `json:"location"`
/* MySQL database profile. */
// +optional
MysqlProfile *ConnectionprofileMysqlProfile `json:"mysqlProfile,omitempty"`
/* Oracle database profile. */
// +optional
OracleProfile *ConnectionprofileOracleProfile `json:"oracleProfile,omitempty"`
/* PostgreSQL database profile. */
// +optional
PostgresqlProfile *ConnectionprofilePostgresqlProfile `json:"postgresqlProfile,omitempty"`
/* Private connectivity. */
// +optional
PrivateConnectivity *ConnectionprofilePrivateConnectivity `json:"privateConnectivity,omitempty"`
/* The project that this resource belongs to. */
ProjectRef v1alpha1.ResourceRef `json:"projectRef"`
/* Immutable. Optional. The connectionProfileId of the resource. Used for creation and acquisition. When unset, the value of `metadata.name` is used as the default. */
// +optional
ResourceID *string `json:"resourceID,omitempty"`
}
type DatastreamConnectionProfileStatus struct {
/* Conditions represent the latest available observations of the
DatastreamConnectionProfile's current state. */
Conditions []v1alpha1.Condition `json:"conditions,omitempty"`
/* The resource's name. */
// +optional
Name *string `json:"name,omitempty"`
/* ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource. */
// +optional
ObservedGeneration *int `json:"observedGeneration,omitempty"`
}
// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:resource:categories=gcp,shortName=gcpdatastreamconnectionprofile;gcpdatastreamconnectionprofiles
// +kubebuilder:subresource:status
// DatastreamConnectionProfile is the Schema for the datastream API
// +k8s:openapi-gen=true
type DatastreamConnectionProfile struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec DatastreamConnectionProfileSpec `json:"spec,omitempty"`
Status DatastreamConnectionProfileStatus `json:"status,omitempty"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// DatastreamConnectionProfileList contains a list of DatastreamConnectionProfile
type DatastreamConnectionProfileList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []DatastreamConnectionProfile `json:"items"`
}
func init() {
SchemeBuilder.Register(&DatastreamConnectionProfile{}, &DatastreamConnectionProfileList{})
}