-
Notifications
You must be signed in to change notification settings - Fork 197
/
computeinstance_types.go
590 lines (458 loc) · 23.8 KB
/
computeinstance_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
// 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 v1beta1
import (
"github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/k8s/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
type InstanceAccessConfig struct {
// +optional
NatIpRef *v1alpha1.ResourceRef `json:"natIpRef,omitempty"`
/* The networking tier used for configuring this instance. One of PREMIUM or STANDARD. */
// +optional
NetworkTier *string `json:"networkTier,omitempty"`
/* The DNS domain name for the public PTR record. */
// +optional
PublicPtrDomainName *string `json:"publicPtrDomainName,omitempty"`
}
type InstanceAdvancedMachineFeatures struct {
/* Whether to enable nested virtualization or not. */
// +optional
EnableNestedVirtualization *bool `json:"enableNestedVirtualization,omitempty"`
/* The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed. */
// +optional
ThreadsPerCore *int64 `json:"threadsPerCore,omitempty"`
/* The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance\'s nominal CPU count and the underlying platform\'s SMT width. */
// +optional
VisibleCoreCount *int64 `json:"visibleCoreCount,omitempty"`
}
type InstanceAliasIpRange struct {
/* The IP CIDR range represented by this alias IP range. */
IpCidrRange string `json:"ipCidrRange"`
/* The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range. */
// +optional
SubnetworkRangeName *string `json:"subnetworkRangeName,omitempty"`
}
type InstanceAttachedDisk struct {
/* Name with which the attached disk is accessible under /dev/disk/by-id/. */
// +optional
DeviceName *string `json:"deviceName,omitempty"`
/* A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set. */
// +optional
DiskEncryptionKeyRaw *InstanceDiskEncryptionKeyRaw `json:"diskEncryptionKeyRaw,omitempty"`
/* The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. */
// +optional
DiskEncryptionKeySha256 *string `json:"diskEncryptionKeySha256,omitempty"`
// +optional
KmsKeyRef *v1alpha1.ResourceRef `json:"kmsKeyRef,omitempty"`
/* Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE". */
// +optional
Mode *string `json:"mode,omitempty"`
SourceDiskRef v1alpha1.ResourceRef `json:"sourceDiskRef"`
}
type InstanceBootDisk struct {
/* Immutable. Whether the disk will be auto-deleted when the instance is deleted. */
// +optional
AutoDelete *bool `json:"autoDelete,omitempty"`
/* Immutable. Name with which attached disk will be accessible under /dev/disk/by-id/. */
// +optional
DeviceName *string `json:"deviceName,omitempty"`
/* Immutable. A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set. */
// +optional
DiskEncryptionKeyRaw *InstanceDiskEncryptionKeyRaw `json:"diskEncryptionKeyRaw,omitempty"`
/* The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. */
// +optional
DiskEncryptionKeySha256 *string `json:"diskEncryptionKeySha256,omitempty"`
/* Immutable. Parameters with which a disk was created alongside the instance. */
// +optional
InitializeParams *InstanceInitializeParams `json:"initializeParams,omitempty"`
// +optional
KmsKeyRef *v1alpha1.ResourceRef `json:"kmsKeyRef,omitempty"`
/* Immutable. Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE". */
// +optional
Mode *string `json:"mode,omitempty"`
/* Immutable. The source disk used to create this disk. */
// +optional
SourceDiskRef *v1alpha1.ResourceRef `json:"sourceDiskRef,omitempty"`
}
type InstanceConfidentialInstanceConfig struct {
/* Defines whether the instance should have confidential compute enabled. */
EnableConfidentialCompute bool `json:"enableConfidentialCompute"`
}
type InstanceDiskEncryptionKeyRaw 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 *InstanceValueFrom `json:"valueFrom,omitempty"`
}
type InstanceGuestAccelerator struct {
/* Immutable. The number of the guest accelerator cards exposed to this instance. */
Count int64 `json:"count"`
/* Immutable. The accelerator type resource exposed to this instance. E.g. nvidia-tesla-k80. */
Type string `json:"type"`
}
type InstanceInitializeParams struct {
/* Immutable. A set of key/value label pairs assigned to the disk. */
// +optional
Labels *InstanceLabels `json:"labels,omitempty"`
/* Immutable. A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty. */
// +optional
ResourceManagerTags *InstanceResourceManagerTags `json:"resourceManagerTags,omitempty"`
/* Immutable. The size of the image in gigabytes. */
// +optional
Size *int64 `json:"size,omitempty"`
/* Immutable. The image from which to initialize this disk. */
// +optional
SourceImageRef *v1alpha1.ResourceRef `json:"sourceImageRef,omitempty"`
/* Immutable. The Google Compute Engine disk type. Such as pd-standard, pd-ssd or pd-balanced. */
// +optional
Type *string `json:"type,omitempty"`
}
type InstanceIpv6AccessConfig struct {
/* Immutable. The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork. */
// +optional
ExternalIpv6 *string `json:"externalIpv6,omitempty"`
/* Immutable. The prefix length of the external IPv6 range. */
// +optional
ExternalIpv6PrefixLength *string `json:"externalIpv6PrefixLength,omitempty"`
/* Immutable. The name of this access configuration. In ipv6AccessConfigs, the recommended name is External IPv6. */
// +optional
Name *string `json:"name,omitempty"`
/* The service-level to be provided for IPv6 traffic when the subnet has an external subnet. Only PREMIUM tier is valid for IPv6. */
NetworkTier string `json:"networkTier"`
/* The domain name to be used when creating DNSv6 records for the external IPv6 ranges. */
// +optional
PublicPtrDomainName *string `json:"publicPtrDomainName,omitempty"`
}
type InstanceLabels struct {
}
type InstanceLocalSsdRecoveryTimeout struct {
/* Immutable. Span of time that's a fraction of a second at nanosecond
resolution. Durations less than one second are represented
with a 0 seconds field and a positive nanos field. Must
be from 0 to 999,999,999 inclusive. */
// +optional
Nanos *int64 `json:"nanos,omitempty"`
/* Immutable. Span of time at a resolution of a second.
Must be from 0 to 315,576,000,000 inclusive. */
Seconds int64 `json:"seconds"`
}
type InstanceMaxRunDuration struct {
/* Immutable. Span of time that's a fraction of a second at nanosecond
resolution. Durations less than one second are represented
with a 0 seconds field and a positive nanos field. Must
be from 0 to 999,999,999 inclusive. */
// +optional
Nanos *int64 `json:"nanos,omitempty"`
/* Immutable. Span of time at a resolution of a second.
Must be from 0 to 315,576,000,000 inclusive. */
Seconds int64 `json:"seconds"`
}
type InstanceMetadata struct {
Key string `json:"key"`
Value string `json:"value"`
}
type InstanceNetworkInterface struct {
/* Access configurations, i.e. IPs via which this instance can be accessed via the Internet. */
// +optional
AccessConfig []InstanceAccessConfig `json:"accessConfig,omitempty"`
/* An array of alias IP ranges for this network interface. */
// +optional
AliasIpRange []InstanceAliasIpRange `json:"aliasIpRange,omitempty"`
/* The prefix length of the primary internal IPv6 range. */
// +optional
InternalIpv6PrefixLength *int64 `json:"internalIpv6PrefixLength,omitempty"`
/* An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access. */
// +optional
Ipv6AccessConfig []InstanceIpv6AccessConfig `json:"ipv6AccessConfig,omitempty"`
/* One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork. */
// +optional
Ipv6AccessType *string `json:"ipv6AccessType,omitempty"`
/* An IPv6 internal network address for this network interface. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork. */
// +optional
Ipv6Address *string `json:"ipv6Address,omitempty"`
/* The name of the interface. */
// +optional
Name *string `json:"name,omitempty"`
/* DEPRECATED. Although this field is still available, there is limited support. We recommend that you use `spec.networkInterface.networkIpRef` instead. */
// +optional
NetworkIp *string `json:"networkIp,omitempty"`
// +optional
NetworkIpRef *v1alpha1.ResourceRef `json:"networkIpRef,omitempty"`
// +optional
NetworkRef *v1alpha1.ResourceRef `json:"networkRef,omitempty"`
/* Immutable. The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET. */
// +optional
NicType *string `json:"nicType,omitempty"`
/* Immutable. The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It will be empty if not specified. */
// +optional
QueueCount *int64 `json:"queueCount,omitempty"`
/* The stack type for this network interface to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used. */
// +optional
StackType *string `json:"stackType,omitempty"`
/* The project in which the subnetwork belongs. */
// +optional
SubnetworkProject *string `json:"subnetworkProject,omitempty"`
// +optional
SubnetworkRef *v1alpha1.ResourceRef `json:"subnetworkRef,omitempty"`
}
type InstanceNetworkPerformanceConfig struct {
/* Immutable. The egress bandwidth tier to enable. Possible values:TIER_1, DEFAULT. */
TotalEgressBandwidthTier string `json:"totalEgressBandwidthTier"`
}
type InstanceNodeAffinities struct {
// +optional
Value *InstanceValue `json:"value,omitempty"`
}
type InstanceParams struct {
/* Immutable. A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty. */
// +optional
ResourceManagerTags *InstanceResourceManagerTags `json:"resourceManagerTags,omitempty"`
}
type InstanceReservationAffinity struct {
/* Immutable. Specifies the label selector for the reservation to use. */
// +optional
SpecificReservation *InstanceSpecificReservation `json:"specificReservation,omitempty"`
/* Immutable. The type of reservation from which this instance can consume resources. */
Type string `json:"type"`
}
type InstanceResourceManagerTags struct {
}
type InstanceScheduling struct {
/* Specifies if the instance should be restarted if it was terminated by Compute Engine (not a user). */
// +optional
AutomaticRestart *bool `json:"automaticRestart,omitempty"`
/* Specifies the action GCE should take when SPOT VM is preempted. */
// +optional
InstanceTerminationAction *string `json:"instanceTerminationAction,omitempty"`
/* Immutable. Specifies the maximum amount of time a Local Ssd Vm should wait while
recovery of the Local Ssd state is attempted. Its value should be in
between 0 and 168 hours with hour granularity and the default value being 1
hour. */
// +optional
LocalSsdRecoveryTimeout *InstanceLocalSsdRecoveryTimeout `json:"localSsdRecoveryTimeout,omitempty"`
/* Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC. */
// +optional
MaintenanceInterval *string `json:"maintenanceInterval,omitempty"`
/* Immutable. The timeout for new network connections to hosts. */
// +optional
MaxRunDuration *InstanceMaxRunDuration `json:"maxRunDuration,omitempty"`
// +optional
MinNodeCpus *int64 `json:"minNodeCpus,omitempty"`
// +optional
NodeAffinities []InstanceNodeAffinities `json:"nodeAffinities,omitempty"`
/* Describes maintenance behavior for the instance. One of MIGRATE or TERMINATE,. */
// +optional
OnHostMaintenance *string `json:"onHostMaintenance,omitempty"`
/* Immutable. Whether the instance is preemptible. */
// +optional
Preemptible *bool `json:"preemptible,omitempty"`
/* Immutable. Whether the instance is spot. If this is set as SPOT. */
// +optional
ProvisioningModel *string `json:"provisioningModel,omitempty"`
}
type InstanceScratchDisk struct {
/* The disk interface used for attaching this disk. One of SCSI or NVME. */
Interface string `json:"interface"`
/* Immutable. The size of the disk in gigabytes. One of 375 or 3000. */
// +optional
Size *int64 `json:"size,omitempty"`
}
type InstanceServiceAccount struct {
/* A list of service scopes. */
Scopes []string `json:"scopes"`
// +optional
ServiceAccountRef *v1alpha1.ResourceRef `json:"serviceAccountRef,omitempty"`
}
type InstanceShieldedInstanceConfig struct {
/* Whether integrity monitoring is enabled for the instance. */
// +optional
EnableIntegrityMonitoring *bool `json:"enableIntegrityMonitoring,omitempty"`
/* Whether secure boot is enabled for the instance. */
// +optional
EnableSecureBoot *bool `json:"enableSecureBoot,omitempty"`
/* Whether the instance uses vTPM. */
// +optional
EnableVtpm *bool `json:"enableVtpm,omitempty"`
}
type InstanceSpecificReservation struct {
/* Immutable. Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify compute.googleapis.com/reservation-name as the key and specify the name of your reservation as the only value. */
Key string `json:"key"`
/* Immutable. Corresponds to the label values of a reservation resource. */
Values []string `json:"values"`
}
type InstanceValue struct {
}
type InstanceValueFrom 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 ComputeInstanceSpec struct {
/* Controls for advanced machine-related behavior features. */
// +optional
AdvancedMachineFeatures *InstanceAdvancedMachineFeatures `json:"advancedMachineFeatures,omitempty"`
/* List of disks attached to the instance. */
// +optional
AttachedDisk []InstanceAttachedDisk `json:"attachedDisk,omitempty"`
/* Immutable. The boot disk for the instance. */
// +optional
BootDisk *InstanceBootDisk `json:"bootDisk,omitempty"`
/* Whether sending and receiving of packets with non-matching source or destination IPs is allowed. */
// +optional
CanIpForward *bool `json:"canIpForward,omitempty"`
/* Immutable. The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create. */
// +optional
ConfidentialInstanceConfig *InstanceConfidentialInstanceConfig `json:"confidentialInstanceConfig,omitempty"`
/* Whether deletion protection is enabled on this instance. */
// +optional
DeletionProtection *bool `json:"deletionProtection,omitempty"`
/* Immutable. A brief description of the resource. */
// +optional
Description *string `json:"description,omitempty"`
/* Desired status of the instance. Either "RUNNING" or "TERMINATED". */
// +optional
DesiredStatus *string `json:"desiredStatus,omitempty"`
/* Whether the instance has virtual displays enabled. */
// +optional
EnableDisplay *bool `json:"enableDisplay,omitempty"`
/* Immutable. List of the type and count of accelerator cards attached to the instance. */
// +optional
GuestAccelerator []InstanceGuestAccelerator `json:"guestAccelerator,omitempty"`
/* Immutable. A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression [a-z]([-a-z0-9]*[a-z0-9]), concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created. */
// +optional
Hostname *string `json:"hostname,omitempty"`
// +optional
InstanceTemplateRef *v1alpha1.ResourceRef `json:"instanceTemplateRef,omitempty"`
/* The machine type to create. */
// +optional
MachineType *string `json:"machineType,omitempty"`
// +optional
Metadata []InstanceMetadata `json:"metadata,omitempty"`
/* Immutable. Metadata startup scripts made available within the instance. */
// +optional
MetadataStartupScript *string `json:"metadataStartupScript,omitempty"`
/* The minimum CPU platform specified for the VM instance. */
// +optional
MinCpuPlatform *string `json:"minCpuPlatform,omitempty"`
/* Immutable. The networks attached to the instance. */
// +optional
NetworkInterface []InstanceNetworkInterface `json:"networkInterface,omitempty"`
/* Immutable. Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration. */
// +optional
NetworkPerformanceConfig *InstanceNetworkPerformanceConfig `json:"networkPerformanceConfig,omitempty"`
/* Immutable. Stores additional params passed with the request, but not persisted as part of resource payload. */
// +optional
Params *InstanceParams `json:"params,omitempty"`
/* Immutable. Specifies the reservations that this instance can consume from. */
// +optional
ReservationAffinity *InstanceReservationAffinity `json:"reservationAffinity,omitempty"`
/* Immutable. Optional. The name 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"`
// +optional
ResourcePolicies []v1alpha1.ResourceRef `json:"resourcePolicies,omitempty"`
/* The scheduling strategy being used by the instance. */
// +optional
Scheduling *InstanceScheduling `json:"scheduling,omitempty"`
/* Immutable. The scratch disks attached to the instance. */
// +optional
ScratchDisk []InstanceScratchDisk `json:"scratchDisk,omitempty"`
/* The service account to attach to the instance. */
// +optional
ServiceAccount *InstanceServiceAccount `json:"serviceAccount,omitempty"`
/* The shielded vm config being used by the instance. */
// +optional
ShieldedInstanceConfig *InstanceShieldedInstanceConfig `json:"shieldedInstanceConfig,omitempty"`
/* The list of tags attached to the instance. */
// +optional
Tags []string `json:"tags,omitempty"`
/* Immutable. The zone of the instance. If self_link is provided, this value is ignored. If neither self_link nor zone are provided, the provider zone is used. */
// +optional
Zone *string `json:"zone,omitempty"`
}
type ComputeInstanceStatus struct {
/* Conditions represent the latest available observations of the
ComputeInstance's current state. */
Conditions []v1alpha1.Condition `json:"conditions,omitempty"`
/* The CPU platform used by this instance. */
// +optional
CpuPlatform *string `json:"cpuPlatform,omitempty"`
/* Current status of the instance.
This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED.
For more information about the status of the instance, see [Instance life cycle](https://cloud.google.com/compute/docs/instances/instance-life-cycle). */
// +optional
CurrentStatus *string `json:"currentStatus,omitempty"`
/* The server-assigned unique identifier of this instance. */
// +optional
InstanceId *string `json:"instanceId,omitempty"`
/* The unique fingerprint of the labels. */
// +optional
LabelFingerprint *string `json:"labelFingerprint,omitempty"`
/* The unique fingerprint of the metadata. */
// +optional
MetadataFingerprint *string `json:"metadataFingerprint,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 *int64 `json:"observedGeneration,omitempty"`
/* The URI of the created resource. */
// +optional
SelfLink *string `json:"selfLink,omitempty"`
/* The unique fingerprint of the tags. */
// +optional
TagsFingerprint *string `json:"tagsFingerprint,omitempty"`
}
// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:resource:categories=gcp,shortName=gcpcomputeinstance;gcpcomputeinstances
// +kubebuilder:subresource:status
// +kubebuilder:metadata:labels="cnrm.cloud.google.com/managed-by-kcc=true";"cnrm.cloud.google.com/stability-level=stable";"cnrm.cloud.google.com/system=true";"cnrm.cloud.google.com/tf2crd=true"
// +kubebuilder:printcolumn:name="Age",JSONPath=".metadata.creationTimestamp",type="date"
// +kubebuilder:printcolumn:name="Ready",JSONPath=".status.conditions[?(@.type=='Ready')].status",type="string",description="When 'True', the most recent reconcile of the resource succeeded"
// +kubebuilder:printcolumn:name="Status",JSONPath=".status.conditions[?(@.type=='Ready')].reason",type="string",description="The reason for the value in 'Ready'"
// +kubebuilder:printcolumn:name="Status Age",JSONPath=".status.conditions[?(@.type=='Ready')].lastTransitionTime",type="date",description="The last transition time for the value in 'Status'"
// ComputeInstance is the Schema for the compute API
// +k8s:openapi-gen=true
type ComputeInstance struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ComputeInstanceSpec `json:"spec,omitempty"`
Status ComputeInstanceStatus `json:"status,omitempty"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ComputeInstanceList contains a list of ComputeInstance
type ComputeInstanceList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ComputeInstance `json:"items"`
}
func init() {
SchemeBuilder.Register(&ComputeInstance{}, &ComputeInstanceList{})
}