-
Notifications
You must be signed in to change notification settings - Fork 59
/
zz_instance_types.go
executable file
·578 lines (444 loc) · 24.6 KB
/
zz_instance_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
// 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 InstanceInitParameters struct {
// The full name of the GCE network to connect the instance to. If not provided,
// 'default' will be used.
// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/servicenetworking/v1beta1.Connection
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("network",false)
AuthorizedNetwork *string `json:"authorizedNetwork,omitempty" tf:"authorized_network,omitempty"`
// Reference to a Connection in servicenetworking to populate authorizedNetwork.
// +kubebuilder:validation:Optional
AuthorizedNetworkRef *v1.Reference `json:"authorizedNetworkRef,omitempty" tf:"-"`
// Selector for a Connection in servicenetworking to populate authorizedNetwork.
// +kubebuilder:validation:Optional
AuthorizedNetworkSelector *v1.Selector `json:"authorizedNetworkSelector,omitempty" tf:"-"`
// A user-visible name for the instance.
DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`
// Resource labels to represent user-provided metadata.
// +mapType=granular
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// Maintenance policy for an instance.
// Structure is documented below.
MaintenancePolicy []MaintenancePolicyInitParameters `json:"maintenancePolicy,omitempty" tf:"maintenance_policy,omitempty"`
// User-specified parameters for this memcache instance.
// Structure is documented below.
MemcacheParameters []MemcacheParametersInitParameters `json:"memcacheParameters,omitempty" tf:"memcache_parameters,omitempty"`
// The major version of Memcached software. If not provided, latest supported version will be used.
// Currently the latest supported major version is MEMCACHE_1_5. The minor version will be automatically
// determined by our system based on the latest supported minor version.
// Default value is MEMCACHE_1_5.
// Possible values are: MEMCACHE_1_5, MEMCACHE_1_6_15.
MemcacheVersion *string `json:"memcacheVersion,omitempty" tf:"memcache_version,omitempty"`
// The resource name of the instance.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Configuration for memcache nodes.
// Structure is documented below.
NodeConfig []NodeConfigInitParameters `json:"nodeConfig,omitempty" tf:"node_config,omitempty"`
// Number of nodes in the memcache instance.
NodeCount *float64 `json:"nodeCount,omitempty" tf:"node_count,omitempty"`
// The ID of the project in which the resource belongs.
// If it is not provided, the provider project is used.
Project *string `json:"project,omitempty" tf:"project,omitempty"`
// The region of the Memcache instance. If it is not provided, the provider region is used.
Region *string `json:"region,omitempty" tf:"region,omitempty"`
// Contains the name of allocated IP address ranges associated with
// the private service access connection for example, "test-default"
// associated with IP range 10.0.0.0/29.
ReservedIPRangeID []*string `json:"reservedIpRangeId,omitempty" tf:"reserved_ip_range_id,omitempty"`
// Zones where memcache nodes should be provisioned. If not
// provided, all zones will be used.
// +listType=set
Zones []*string `json:"zones,omitempty" tf:"zones,omitempty"`
}
type InstanceObservation struct {
// The full name of the GCE network to connect the instance to. If not provided,
// 'default' will be used.
AuthorizedNetwork *string `json:"authorizedNetwork,omitempty" tf:"authorized_network,omitempty"`
// Creation timestamp in RFC3339 text format.
CreateTime *string `json:"createTime,omitempty" tf:"create_time,omitempty"`
// Endpoint for Discovery API
DiscoveryEndpoint *string `json:"discoveryEndpoint,omitempty" tf:"discovery_endpoint,omitempty"`
// A user-visible name for the instance.
DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`
// +mapType=granular
EffectiveLabels map[string]*string `json:"effectiveLabels,omitempty" tf:"effective_labels,omitempty"`
// an identifier for the resource with format projects/{{project}}/locations/{{region}}/instances/{{name}}
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// Resource labels to represent user-provided metadata.
// +mapType=granular
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// Maintenance policy for an instance.
// Structure is documented below.
MaintenancePolicy []MaintenancePolicyObservation `json:"maintenancePolicy,omitempty" tf:"maintenance_policy,omitempty"`
// Output only. Published maintenance schedule.
// Structure is documented below.
MaintenanceSchedule []MaintenanceScheduleObservation `json:"maintenanceSchedule,omitempty" tf:"maintenance_schedule,omitempty"`
// The full version of memcached server running on this instance.
MemcacheFullVersion *string `json:"memcacheFullVersion,omitempty" tf:"memcache_full_version,omitempty"`
// Additional information about the instance state, if available.
// Structure is documented below.
MemcacheNodes []MemcacheNodesObservation `json:"memcacheNodes,omitempty" tf:"memcache_nodes,omitempty"`
// User-specified parameters for this memcache instance.
// Structure is documented below.
MemcacheParameters []MemcacheParametersObservation `json:"memcacheParameters,omitempty" tf:"memcache_parameters,omitempty"`
// The major version of Memcached software. If not provided, latest supported version will be used.
// Currently the latest supported major version is MEMCACHE_1_5. The minor version will be automatically
// determined by our system based on the latest supported minor version.
// Default value is MEMCACHE_1_5.
// Possible values are: MEMCACHE_1_5, MEMCACHE_1_6_15.
MemcacheVersion *string `json:"memcacheVersion,omitempty" tf:"memcache_version,omitempty"`
// The resource name of the instance.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Configuration for memcache nodes.
// Structure is documented below.
NodeConfig []NodeConfigObservation `json:"nodeConfig,omitempty" tf:"node_config,omitempty"`
// Number of nodes in the memcache instance.
NodeCount *float64 `json:"nodeCount,omitempty" tf:"node_count,omitempty"`
// The ID of the project in which the resource belongs.
// If it is not provided, the provider project is used.
Project *string `json:"project,omitempty" tf:"project,omitempty"`
// The region of the Memcache instance. If it is not provided, the provider region is used.
Region *string `json:"region,omitempty" tf:"region,omitempty"`
// Contains the name of allocated IP address ranges associated with
// the private service access connection for example, "test-default"
// associated with IP range 10.0.0.0/29.
ReservedIPRangeID []*string `json:"reservedIpRangeId,omitempty" tf:"reserved_ip_range_id,omitempty"`
// The combination of labels configured directly on the resource
// and default labels configured on the provider.
// +mapType=granular
TerraformLabels map[string]*string `json:"terraformLabels,omitempty" tf:"terraform_labels,omitempty"`
// Zones where memcache nodes should be provisioned. If not
// provided, all zones will be used.
// +listType=set
Zones []*string `json:"zones,omitempty" tf:"zones,omitempty"`
}
type InstanceParameters struct {
// The full name of the GCE network to connect the instance to. If not provided,
// 'default' will be used.
// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/servicenetworking/v1beta1.Connection
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("network",false)
// +kubebuilder:validation:Optional
AuthorizedNetwork *string `json:"authorizedNetwork,omitempty" tf:"authorized_network,omitempty"`
// Reference to a Connection in servicenetworking to populate authorizedNetwork.
// +kubebuilder:validation:Optional
AuthorizedNetworkRef *v1.Reference `json:"authorizedNetworkRef,omitempty" tf:"-"`
// Selector for a Connection in servicenetworking to populate authorizedNetwork.
// +kubebuilder:validation:Optional
AuthorizedNetworkSelector *v1.Selector `json:"authorizedNetworkSelector,omitempty" tf:"-"`
// A user-visible name for the instance.
// +kubebuilder:validation:Optional
DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`
// Resource labels to represent user-provided metadata.
// +kubebuilder:validation:Optional
// +mapType=granular
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// Maintenance policy for an instance.
// Structure is documented below.
// +kubebuilder:validation:Optional
MaintenancePolicy []MaintenancePolicyParameters `json:"maintenancePolicy,omitempty" tf:"maintenance_policy,omitempty"`
// User-specified parameters for this memcache instance.
// Structure is documented below.
// +kubebuilder:validation:Optional
MemcacheParameters []MemcacheParametersParameters `json:"memcacheParameters,omitempty" tf:"memcache_parameters,omitempty"`
// The major version of Memcached software. If not provided, latest supported version will be used.
// Currently the latest supported major version is MEMCACHE_1_5. The minor version will be automatically
// determined by our system based on the latest supported minor version.
// Default value is MEMCACHE_1_5.
// Possible values are: MEMCACHE_1_5, MEMCACHE_1_6_15.
// +kubebuilder:validation:Optional
MemcacheVersion *string `json:"memcacheVersion,omitempty" tf:"memcache_version,omitempty"`
// The resource name of the instance.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Configuration for memcache nodes.
// Structure is documented below.
// +kubebuilder:validation:Optional
NodeConfig []NodeConfigParameters `json:"nodeConfig,omitempty" tf:"node_config,omitempty"`
// Number of nodes in the memcache instance.
// +kubebuilder:validation:Optional
NodeCount *float64 `json:"nodeCount,omitempty" tf:"node_count,omitempty"`
// The ID of the project in which the resource belongs.
// If it is not provided, the provider project is used.
// +kubebuilder:validation:Optional
Project *string `json:"project,omitempty" tf:"project,omitempty"`
// The region of the Memcache instance. If it is not provided, the provider region is used.
// +kubebuilder:validation:Optional
Region *string `json:"region,omitempty" tf:"region,omitempty"`
// Contains the name of allocated IP address ranges associated with
// the private service access connection for example, "test-default"
// associated with IP range 10.0.0.0/29.
// +kubebuilder:validation:Optional
ReservedIPRangeID []*string `json:"reservedIpRangeId,omitempty" tf:"reserved_ip_range_id,omitempty"`
// Zones where memcache nodes should be provisioned. If not
// provided, all zones will be used.
// +kubebuilder:validation:Optional
// +listType=set
Zones []*string `json:"zones,omitempty" tf:"zones,omitempty"`
}
type MaintenancePolicyInitParameters struct {
// Optional. Description of what this policy is for.
// Create/Update methods return INVALID_ARGUMENT if the
// length is greater than 512.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Required. Maintenance window that is applied to resources covered by this policy.
// Minimum 1. For the current version, the maximum number of weekly_maintenance_windows
// is expected to be one.
// Structure is documented below.
WeeklyMaintenanceWindow []WeeklyMaintenanceWindowInitParameters `json:"weeklyMaintenanceWindow,omitempty" tf:"weekly_maintenance_window,omitempty"`
}
type MaintenancePolicyObservation struct {
// (Output)
// Output only. The time when the policy was created.
// A timestamp in RFC3339 UTC "Zulu" format, with nanosecond
// resolution and up to nine fractional digits
CreateTime *string `json:"createTime,omitempty" tf:"create_time,omitempty"`
// Optional. Description of what this policy is for.
// Create/Update methods return INVALID_ARGUMENT if the
// length is greater than 512.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// (Output)
// Output only. The time when the policy was updated.
// A timestamp in RFC3339 UTC "Zulu" format, with nanosecond
// resolution and up to nine fractional digits.
UpdateTime *string `json:"updateTime,omitempty" tf:"update_time,omitempty"`
// Required. Maintenance window that is applied to resources covered by this policy.
// Minimum 1. For the current version, the maximum number of weekly_maintenance_windows
// is expected to be one.
// Structure is documented below.
WeeklyMaintenanceWindow []WeeklyMaintenanceWindowObservation `json:"weeklyMaintenanceWindow,omitempty" tf:"weekly_maintenance_window,omitempty"`
}
type MaintenancePolicyParameters struct {
// Optional. Description of what this policy is for.
// Create/Update methods return INVALID_ARGUMENT if the
// length is greater than 512.
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Required. Maintenance window that is applied to resources covered by this policy.
// Minimum 1. For the current version, the maximum number of weekly_maintenance_windows
// is expected to be one.
// Structure is documented below.
// +kubebuilder:validation:Optional
WeeklyMaintenanceWindow []WeeklyMaintenanceWindowParameters `json:"weeklyMaintenanceWindow" tf:"weekly_maintenance_window,omitempty"`
}
type MaintenanceScheduleInitParameters struct {
}
type MaintenanceScheduleObservation struct {
// (Output)
// Output only. The end time of any upcoming scheduled maintenance for this instance.
// A timestamp in RFC3339 UTC "Zulu" format, with nanosecond
// resolution and up to nine fractional digits.
EndTime *string `json:"endTime,omitempty" tf:"end_time,omitempty"`
// (Output)
// Output only. The deadline that the maintenance schedule start time
// can not go beyond, including reschedule.
// A timestamp in RFC3339 UTC "Zulu" format, with nanosecond
// resolution and up to nine fractional digits.
ScheduleDeadlineTime *string `json:"scheduleDeadlineTime,omitempty" tf:"schedule_deadline_time,omitempty"`
// (Output)
// Output only. The start time of any upcoming scheduled maintenance for this instance.
// A timestamp in RFC3339 UTC "Zulu" format, with nanosecond
// resolution and up to nine fractional digits.
StartTime *string `json:"startTime,omitempty" tf:"start_time,omitempty"`
}
type MaintenanceScheduleParameters struct {
}
type MemcacheNodesInitParameters struct {
}
type MemcacheNodesObservation struct {
// (Output)
// Hostname or IP address of the Memcached node used by the clients to connect to the Memcached server on this node.
Host *string `json:"host,omitempty" tf:"host,omitempty"`
// (Output)
// Identifier of the Memcached node. The node id does not include project or location like the Memcached instance name.
NodeID *string `json:"nodeId,omitempty" tf:"node_id,omitempty"`
// (Output)
// The port number of the Memcached server on this node.
Port *float64 `json:"port,omitempty" tf:"port,omitempty"`
// (Output)
// Current state of the Memcached node.
State *string `json:"state,omitempty" tf:"state,omitempty"`
// (Output)
// Location (GCP Zone) for the Memcached node.
Zone *string `json:"zone,omitempty" tf:"zone,omitempty"`
}
type MemcacheNodesParameters struct {
}
type MemcacheParametersInitParameters struct {
// User-defined set of parameters to use in the memcache process.
// +mapType=granular
Params map[string]*string `json:"params,omitempty" tf:"params,omitempty"`
}
type MemcacheParametersObservation struct {
// (Output)
// This is a unique ID associated with this set of parameters.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// User-defined set of parameters to use in the memcache process.
// +mapType=granular
Params map[string]*string `json:"params,omitempty" tf:"params,omitempty"`
}
type MemcacheParametersParameters struct {
// User-defined set of parameters to use in the memcache process.
// +kubebuilder:validation:Optional
// +mapType=granular
Params map[string]*string `json:"params,omitempty" tf:"params,omitempty"`
}
type NodeConfigInitParameters struct {
// Number of CPUs per node.
CPUCount *float64 `json:"cpuCount,omitempty" tf:"cpu_count,omitempty"`
// Memory size in Mebibytes for each memcache node.
MemorySizeMb *float64 `json:"memorySizeMb,omitempty" tf:"memory_size_mb,omitempty"`
}
type NodeConfigObservation struct {
// Number of CPUs per node.
CPUCount *float64 `json:"cpuCount,omitempty" tf:"cpu_count,omitempty"`
// Memory size in Mebibytes for each memcache node.
MemorySizeMb *float64 `json:"memorySizeMb,omitempty" tf:"memory_size_mb,omitempty"`
}
type NodeConfigParameters struct {
// Number of CPUs per node.
// +kubebuilder:validation:Optional
CPUCount *float64 `json:"cpuCount" tf:"cpu_count,omitempty"`
// Memory size in Mebibytes for each memcache node.
// +kubebuilder:validation:Optional
MemorySizeMb *float64 `json:"memorySizeMb" tf:"memory_size_mb,omitempty"`
}
type StartTimeInitParameters struct {
// Hours of day in 24 hour format. Should be from 0 to 23.
// An API may choose to allow the value "24:00:00" for scenarios like business closing time.
Hours *float64 `json:"hours,omitempty" tf:"hours,omitempty"`
// Minutes of hour of day. Must be from 0 to 59.
Minutes *float64 `json:"minutes,omitempty" tf:"minutes,omitempty"`
// Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Nanos *float64 `json:"nanos,omitempty" tf:"nanos,omitempty"`
// Seconds of minutes of the time. Must normally be from 0 to 59.
// An API may allow the value 60 if it allows leap-seconds.
Seconds *float64 `json:"seconds,omitempty" tf:"seconds,omitempty"`
}
type StartTimeObservation struct {
// Hours of day in 24 hour format. Should be from 0 to 23.
// An API may choose to allow the value "24:00:00" for scenarios like business closing time.
Hours *float64 `json:"hours,omitempty" tf:"hours,omitempty"`
// Minutes of hour of day. Must be from 0 to 59.
Minutes *float64 `json:"minutes,omitempty" tf:"minutes,omitempty"`
// Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Nanos *float64 `json:"nanos,omitempty" tf:"nanos,omitempty"`
// Seconds of minutes of the time. Must normally be from 0 to 59.
// An API may allow the value 60 if it allows leap-seconds.
Seconds *float64 `json:"seconds,omitempty" tf:"seconds,omitempty"`
}
type StartTimeParameters struct {
// Hours of day in 24 hour format. Should be from 0 to 23.
// An API may choose to allow the value "24:00:00" for scenarios like business closing time.
// +kubebuilder:validation:Optional
Hours *float64 `json:"hours,omitempty" tf:"hours,omitempty"`
// Minutes of hour of day. Must be from 0 to 59.
// +kubebuilder:validation:Optional
Minutes *float64 `json:"minutes,omitempty" tf:"minutes,omitempty"`
// Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
// +kubebuilder:validation:Optional
Nanos *float64 `json:"nanos,omitempty" tf:"nanos,omitempty"`
// Seconds of minutes of the time. Must normally be from 0 to 59.
// An API may allow the value 60 if it allows leap-seconds.
// +kubebuilder:validation:Optional
Seconds *float64 `json:"seconds,omitempty" tf:"seconds,omitempty"`
}
type WeeklyMaintenanceWindowInitParameters struct {
// Required. The day of week that maintenance updates occur.
Day *string `json:"day,omitempty" tf:"day,omitempty"`
// Required. The length of the maintenance window, ranging from 3 hours to 8 hours.
// A duration in seconds with up to nine fractional digits,
// terminated by 's'. Example: "3.5s".
Duration *string `json:"duration,omitempty" tf:"duration,omitempty"`
// Required. Start time of the window in UTC time.
// Structure is documented below.
StartTime []StartTimeInitParameters `json:"startTime,omitempty" tf:"start_time,omitempty"`
}
type WeeklyMaintenanceWindowObservation struct {
// Required. The day of week that maintenance updates occur.
Day *string `json:"day,omitempty" tf:"day,omitempty"`
// Required. The length of the maintenance window, ranging from 3 hours to 8 hours.
// A duration in seconds with up to nine fractional digits,
// terminated by 's'. Example: "3.5s".
Duration *string `json:"duration,omitempty" tf:"duration,omitempty"`
// Required. Start time of the window in UTC time.
// Structure is documented below.
StartTime []StartTimeObservation `json:"startTime,omitempty" tf:"start_time,omitempty"`
}
type WeeklyMaintenanceWindowParameters struct {
// Required. The day of week that maintenance updates occur.
// +kubebuilder:validation:Optional
Day *string `json:"day" tf:"day,omitempty"`
// Required. The length of the maintenance window, ranging from 3 hours to 8 hours.
// A duration in seconds with up to nine fractional digits,
// terminated by 's'. Example: "3.5s".
// +kubebuilder:validation:Optional
Duration *string `json:"duration" tf:"duration,omitempty"`
// Required. Start time of the window in UTC time.
// Structure is documented below.
// +kubebuilder:validation:Optional
StartTime []StartTimeParameters `json:"startTime" tf:"start_time,omitempty"`
}
// InstanceSpec defines the desired state of Instance
type InstanceSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider InstanceParameters `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 InstanceInitParameters `json:"initProvider,omitempty"`
}
// InstanceStatus defines the observed state of Instance.
type InstanceStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider InstanceObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:storageversion
// Instance is the Schema for the Instances API. A Google Cloud Memcache instance.
// +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,gcp}
type Instance 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.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.nodeConfig) || (has(self.initProvider) && has(self.initProvider.nodeConfig))",message="spec.forProvider.nodeConfig is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.nodeCount) || (has(self.initProvider) && has(self.initProvider.nodeCount))",message="spec.forProvider.nodeCount is a required parameter"
Spec InstanceSpec `json:"spec"`
Status InstanceStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// InstanceList contains a list of Instances
type InstanceList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Instance `json:"items"`
}
// Repository type metadata.
var (
Instance_Kind = "Instance"
Instance_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Instance_Kind}.String()
Instance_KindAPIVersion = Instance_Kind + "." + CRDGroupVersion.String()
Instance_GroupVersionKind = CRDGroupVersion.WithKind(Instance_Kind)
)
func init() {
SchemeBuilder.Register(&Instance{}, &InstanceList{})
}