-
Notifications
You must be signed in to change notification settings - Fork 64
/
zz_instance_types.go
executable file
·1870 lines (1458 loc) · 99 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
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// 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 AccessConfigInitParameters struct {
// If the instance has an access config, either the given external ip (in the nat_ip field) or the ephemeral (generated) ip (if you didn't provide one).
NATIP *string `json:"natIp,omitempty" tf:"nat_ip,omitempty"`
// The service-level to be provided for IPv6 traffic when the
// subnet has an external subnet. Only PREMIUM or STANDARD tier is valid for IPv6.
NetworkTier *string `json:"networkTier,omitempty" tf:"network_tier,omitempty"`
// The domain name to be used when creating DNSv6
// records for the external IPv6 ranges..
PublicPtrDomainName *string `json:"publicPtrDomainName,omitempty" tf:"public_ptr_domain_name,omitempty"`
}
type AccessConfigObservation struct {
// If the instance has an access config, either the given external ip (in the nat_ip field) or the ephemeral (generated) ip (if you didn't provide one).
NATIP *string `json:"natIp,omitempty" tf:"nat_ip,omitempty"`
// The service-level to be provided for IPv6 traffic when the
// subnet has an external subnet. Only PREMIUM or STANDARD tier is valid for IPv6.
NetworkTier *string `json:"networkTier,omitempty" tf:"network_tier,omitempty"`
// The domain name to be used when creating DNSv6
// records for the external IPv6 ranges..
PublicPtrDomainName *string `json:"publicPtrDomainName,omitempty" tf:"public_ptr_domain_name,omitempty"`
}
type AccessConfigParameters struct {
// If the instance has an access config, either the given external ip (in the nat_ip field) or the ephemeral (generated) ip (if you didn't provide one).
// +kubebuilder:validation:Optional
NATIP *string `json:"natIp,omitempty" tf:"nat_ip,omitempty"`
// The service-level to be provided for IPv6 traffic when the
// subnet has an external subnet. Only PREMIUM or STANDARD tier is valid for IPv6.
// +kubebuilder:validation:Optional
NetworkTier *string `json:"networkTier,omitempty" tf:"network_tier,omitempty"`
// The domain name to be used when creating DNSv6
// records for the external IPv6 ranges..
// +kubebuilder:validation:Optional
PublicPtrDomainName *string `json:"publicPtrDomainName,omitempty" tf:"public_ptr_domain_name,omitempty"`
}
type AdvancedMachineFeaturesInitParameters struct {
// Defines whether the instance should have nested virtualization enabled. Defaults to false.
EnableNestedVirtualization *bool `json:"enableNestedVirtualization,omitempty" tf:"enable_nested_virtualization,omitempty"`
// he number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1.
ThreadsPerCore *float64 `json:"threadsPerCore,omitempty" tf:"threads_per_core,omitempty"`
// The number of physical cores to expose to an instance. visible cores info (VC).
VisibleCoreCount *float64 `json:"visibleCoreCount,omitempty" tf:"visible_core_count,omitempty"`
}
type AdvancedMachineFeaturesObservation struct {
// Defines whether the instance should have nested virtualization enabled. Defaults to false.
EnableNestedVirtualization *bool `json:"enableNestedVirtualization,omitempty" tf:"enable_nested_virtualization,omitempty"`
// he number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1.
ThreadsPerCore *float64 `json:"threadsPerCore,omitempty" tf:"threads_per_core,omitempty"`
// The number of physical cores to expose to an instance. visible cores info (VC).
VisibleCoreCount *float64 `json:"visibleCoreCount,omitempty" tf:"visible_core_count,omitempty"`
}
type AdvancedMachineFeaturesParameters struct {
// Defines whether the instance should have nested virtualization enabled. Defaults to false.
// +kubebuilder:validation:Optional
EnableNestedVirtualization *bool `json:"enableNestedVirtualization,omitempty" tf:"enable_nested_virtualization,omitempty"`
// he number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1.
// +kubebuilder:validation:Optional
ThreadsPerCore *float64 `json:"threadsPerCore,omitempty" tf:"threads_per_core,omitempty"`
// The number of physical cores to expose to an instance. visible cores info (VC).
// +kubebuilder:validation:Optional
VisibleCoreCount *float64 `json:"visibleCoreCount,omitempty" tf:"visible_core_count,omitempty"`
}
type AliasIPRangeInitParameters struct {
// The IP CIDR range represented by this alias IP range. This IP CIDR range
// must belong to the specified subnetwork and cannot contain IP addresses reserved by
// system or used by other network interfaces. This range may be a single IP address
// (e.g. 10.2.3.4), a netmask (e.g. /24) or a CIDR format string (e.g. 10.1.2.0/24).
IPCidrRange *string `json:"ipCidrRange,omitempty" tf:"ip_cidr_range,omitempty"`
// The subnetwork secondary range name specifying
// the secondary range from which to allocate the IP CIDR range for this alias IP
// range. If left unspecified, the primary range of the subnetwork will be used.
SubnetworkRangeName *string `json:"subnetworkRangeName,omitempty" tf:"subnetwork_range_name,omitempty"`
}
type AliasIPRangeObservation struct {
// The IP CIDR range represented by this alias IP range. This IP CIDR range
// must belong to the specified subnetwork and cannot contain IP addresses reserved by
// system or used by other network interfaces. This range may be a single IP address
// (e.g. 10.2.3.4), a netmask (e.g. /24) or a CIDR format string (e.g. 10.1.2.0/24).
IPCidrRange *string `json:"ipCidrRange,omitempty" tf:"ip_cidr_range,omitempty"`
// The subnetwork secondary range name specifying
// the secondary range from which to allocate the IP CIDR range for this alias IP
// range. If left unspecified, the primary range of the subnetwork will be used.
SubnetworkRangeName *string `json:"subnetworkRangeName,omitempty" tf:"subnetwork_range_name,omitempty"`
}
type AliasIPRangeParameters struct {
// The IP CIDR range represented by this alias IP range. This IP CIDR range
// must belong to the specified subnetwork and cannot contain IP addresses reserved by
// system or used by other network interfaces. This range may be a single IP address
// (e.g. 10.2.3.4), a netmask (e.g. /24) or a CIDR format string (e.g. 10.1.2.0/24).
// +kubebuilder:validation:Optional
IPCidrRange *string `json:"ipCidrRange" tf:"ip_cidr_range,omitempty"`
// The subnetwork secondary range name specifying
// the secondary range from which to allocate the IP CIDR range for this alias IP
// range. If left unspecified, the primary range of the subnetwork will be used.
// +kubebuilder:validation:Optional
SubnetworkRangeName *string `json:"subnetworkRangeName,omitempty" tf:"subnetwork_range_name,omitempty"`
}
type BootDiskInitParameters struct {
// Whether the disk will be auto-deleted when the instance
// is deleted. Defaults to true.
AutoDelete *bool `json:"autoDelete,omitempty" tf:"auto_delete,omitempty"`
// Name with which attached disk will be accessible.
// On the instance, this device will be /dev/disk/by-id/google-{{device_name}}.
DeviceName *string `json:"deviceName,omitempty" tf:"device_name,omitempty"`
// Parameters for a new disk that will be created
// alongside the new instance. Either initialize_params or source must be set.
// Structure is documented below.
InitializeParams []InitializeParamsInitParameters `json:"initializeParams,omitempty" tf:"initialize_params,omitempty"`
// The self_link of the encryption key that is
// stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link
// and disk_encryption_key_raw may be set.
KMSKeySelfLink *string `json:"kmsKeySelfLink,omitempty" tf:"kms_key_self_link,omitempty"`
// The mode in which to attach this disk, either READ_WRITE
// or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode.
Mode *string `json:"mode,omitempty" tf:"mode,omitempty"`
// The name or self_link of the existing disk (such as those managed by
// google_compute_disk) or disk image. To create an instance from a snapshot, first create a
// google_compute_disk from a snapshot and reference it here.
Source *string `json:"source,omitempty" tf:"source,omitempty"`
}
type BootDiskObservation struct {
// Whether the disk will be auto-deleted when the instance
// is deleted. Defaults to true.
AutoDelete *bool `json:"autoDelete,omitempty" tf:"auto_delete,omitempty"`
// Name with which attached disk will be accessible.
// On the instance, this device will be /dev/disk/by-id/google-{{device_name}}.
DeviceName *string `json:"deviceName,omitempty" tf:"device_name,omitempty"`
// The RFC 4648 base64
// encoded SHA-256 hash of the [customer-supplied encryption key]
// (https://cloud.google.com/compute/docs/disks/customer-supplied-encryption) that protects this resource.
DiskEncryptionKeySha256 *string `json:"diskEncryptionKeySha256,omitempty" tf:"disk_encryption_key_sha256,omitempty"`
// Parameters for a new disk that will be created
// alongside the new instance. Either initialize_params or source must be set.
// Structure is documented below.
InitializeParams []InitializeParamsObservation `json:"initializeParams,omitempty" tf:"initialize_params,omitempty"`
// The self_link of the encryption key that is
// stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link
// and disk_encryption_key_raw may be set.
KMSKeySelfLink *string `json:"kmsKeySelfLink,omitempty" tf:"kms_key_self_link,omitempty"`
// The mode in which to attach this disk, either READ_WRITE
// or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode.
Mode *string `json:"mode,omitempty" tf:"mode,omitempty"`
// The name or self_link of the existing disk (such as those managed by
// google_compute_disk) or disk image. To create an instance from a snapshot, first create a
// google_compute_disk from a snapshot and reference it here.
Source *string `json:"source,omitempty" tf:"source,omitempty"`
}
type BootDiskParameters struct {
// Whether the disk will be auto-deleted when the instance
// is deleted. Defaults to true.
// +kubebuilder:validation:Optional
AutoDelete *bool `json:"autoDelete,omitempty" tf:"auto_delete,omitempty"`
// Name with which attached disk will be accessible.
// On the instance, this device will be /dev/disk/by-id/google-{{device_name}}.
// +kubebuilder:validation:Optional
DeviceName *string `json:"deviceName,omitempty" tf:"device_name,omitempty"`
// A 256-bit [customer-supplied encryption key]
// (https://cloud.google.com/compute/docs/disks/customer-supplied-encryption),
// encoded in RFC 4648 base64
// to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw
// may be set.
// +kubebuilder:validation:Optional
DiskEncryptionKeyRawSecretRef *v1.SecretKeySelector `json:"diskEncryptionKeyRawSecretRef,omitempty" tf:"-"`
// Parameters for a new disk that will be created
// alongside the new instance. Either initialize_params or source must be set.
// Structure is documented below.
// +kubebuilder:validation:Optional
InitializeParams []InitializeParamsParameters `json:"initializeParams,omitempty" tf:"initialize_params,omitempty"`
// The self_link of the encryption key that is
// stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link
// and disk_encryption_key_raw may be set.
// +kubebuilder:validation:Optional
KMSKeySelfLink *string `json:"kmsKeySelfLink,omitempty" tf:"kms_key_self_link,omitempty"`
// The mode in which to attach this disk, either READ_WRITE
// or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode.
// +kubebuilder:validation:Optional
Mode *string `json:"mode,omitempty" tf:"mode,omitempty"`
// The name or self_link of the existing disk (such as those managed by
// google_compute_disk) or disk image. To create an instance from a snapshot, first create a
// google_compute_disk from a snapshot and reference it here.
// +kubebuilder:validation:Optional
Source *string `json:"source,omitempty" tf:"source,omitempty"`
}
type ConfidentialInstanceConfigInitParameters struct {
// Defines whether the instance should have confidential compute enabled with AMD SEV. on_host_maintenance has to be set to TERMINATE or this will fail to create the VM.
EnableConfidentialCompute *bool `json:"enableConfidentialCompute,omitempty" tf:"enable_confidential_compute,omitempty"`
}
type ConfidentialInstanceConfigObservation struct {
// Defines whether the instance should have confidential compute enabled with AMD SEV. on_host_maintenance has to be set to TERMINATE or this will fail to create the VM.
EnableConfidentialCompute *bool `json:"enableConfidentialCompute,omitempty" tf:"enable_confidential_compute,omitempty"`
}
type ConfidentialInstanceConfigParameters struct {
// Defines whether the instance should have confidential compute enabled with AMD SEV. on_host_maintenance has to be set to TERMINATE or this will fail to create the VM.
// +kubebuilder:validation:Optional
EnableConfidentialCompute *bool `json:"enableConfidentialCompute" tf:"enable_confidential_compute,omitempty"`
}
type GuestAcceleratorInitParameters struct {
// The number of the guest accelerator cards exposed to this instance.
Count *float64 `json:"count,omitempty" tf:"count"`
// The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.
Type *string `json:"type,omitempty" tf:"type"`
}
type GuestAcceleratorObservation struct {
// The number of the guest accelerator cards exposed to this instance.
Count *float64 `json:"count,omitempty" tf:"count,omitempty"`
// The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type GuestAcceleratorParameters struct {
// The number of the guest accelerator cards exposed to this instance.
// +kubebuilder:validation:Optional
Count *float64 `json:"count,omitempty" tf:"count"`
// The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.
// +kubebuilder:validation:Optional
Type *string `json:"type,omitempty" tf:"type"`
}
type IPv6AccessConfigInitParameters struct {
// 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.
ExternalIPv6 *string `json:"externalIpv6,omitempty" tf:"external_ipv6,omitempty"`
// The prefix length of the external IPv6 range.
ExternalIPv6PrefixLength *string `json:"externalIpv6PrefixLength,omitempty" tf:"external_ipv6_prefix_length,omitempty"`
// A unique name for the resource, required by GCE.
// Changing this forces a new resource to be created.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The service-level to be provided for IPv6 traffic when the
// subnet has an external subnet. Only PREMIUM or STANDARD tier is valid for IPv6.
NetworkTier *string `json:"networkTier,omitempty" tf:"network_tier,omitempty"`
// The domain name to be used when creating DNSv6
// records for the external IPv6 ranges..
PublicPtrDomainName *string `json:"publicPtrDomainName,omitempty" tf:"public_ptr_domain_name,omitempty"`
}
type IPv6AccessConfigObservation struct {
// 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.
ExternalIPv6 *string `json:"externalIpv6,omitempty" tf:"external_ipv6,omitempty"`
// The prefix length of the external IPv6 range.
ExternalIPv6PrefixLength *string `json:"externalIpv6PrefixLength,omitempty" tf:"external_ipv6_prefix_length,omitempty"`
// A unique name for the resource, required by GCE.
// Changing this forces a new resource to be created.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The service-level to be provided for IPv6 traffic when the
// subnet has an external subnet. Only PREMIUM or STANDARD tier is valid for IPv6.
NetworkTier *string `json:"networkTier,omitempty" tf:"network_tier,omitempty"`
// The domain name to be used when creating DNSv6
// records for the external IPv6 ranges..
PublicPtrDomainName *string `json:"publicPtrDomainName,omitempty" tf:"public_ptr_domain_name,omitempty"`
}
type IPv6AccessConfigParameters struct {
// 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.
// +kubebuilder:validation:Optional
ExternalIPv6 *string `json:"externalIpv6,omitempty" tf:"external_ipv6,omitempty"`
// The prefix length of the external IPv6 range.
// +kubebuilder:validation:Optional
ExternalIPv6PrefixLength *string `json:"externalIpv6PrefixLength,omitempty" tf:"external_ipv6_prefix_length,omitempty"`
// A unique name for the resource, required by GCE.
// Changing this forces a new resource to be created.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The service-level to be provided for IPv6 traffic when the
// subnet has an external subnet. Only PREMIUM or STANDARD tier is valid for IPv6.
// +kubebuilder:validation:Optional
NetworkTier *string `json:"networkTier" tf:"network_tier,omitempty"`
// The domain name to be used when creating DNSv6
// records for the external IPv6 ranges..
// +kubebuilder:validation:Optional
PublicPtrDomainName *string `json:"publicPtrDomainName,omitempty" tf:"public_ptr_domain_name,omitempty"`
}
type InitializeParamsInitParameters struct {
// Whether this disk is using confidential compute mode.
// Note: Only supported on hyperdisk skus, disk_encryption_key is required when setting to true.
EnableConfidentialCompute *bool `json:"enableConfidentialCompute,omitempty" tf:"enable_confidential_compute,omitempty"`
// The image from which to initialize this disk. This can be
// one of: the image's self_link, projects/{project}/global/images/{image},
// projects/{project}/global/images/family/{family}, global/images/{image},
// global/images/family/{family}, family/{family}, {project}/{family},
// {project}/{image}, {family}, or {image}. If referred by family, the
// images names must include the family name. If they don't, use the
// google_compute_image data source.
// For instance, the image centos-6-v20180104 includes its family name centos-6.
// These images can be referred by family name here.
// +crossplane:generate:reference:type=Image
Image *string `json:"image,omitempty" tf:"image,omitempty"`
// Reference to a Image to populate image.
// +kubebuilder:validation:Optional
ImageRef *v1.Reference `json:"imageRef,omitempty" tf:"-"`
// Selector for a Image to populate image.
// +kubebuilder:validation:Optional
ImageSelector *v1.Selector `json:"imageSelector,omitempty" tf:"-"`
// A map of key/value label pairs to assign to the instance.
// Note: This field is non-authoritative, and will only manage the labels present in your configuration.
// Please refer to the field 'effective_labels' for all of the labels present on the resource.
Labels map[string]string `json:"labels,omitempty" tf:"labels,omitempty"`
// Indicates how many IOPS to provision for the disk.
// This sets the number of I/O operations per second that the disk can handle.
// For more details,see the Hyperdisk documentation.
// Note: Updating currently is only supported for hyperdisk skus via disk update
// api/gcloud without the need to delete and recreate the disk, hyperdisk allows
// for an update of IOPS every 4 hours. To update your hyperdisk more frequently,
// you'll need to manually delete and recreate it.
ProvisionedIops *float64 `json:"provisionedIops,omitempty" tf:"provisioned_iops,omitempty"`
// Indicates how much throughput to provision for the disk.
// This sets the number of throughput mb per second that the disk can handle.
// For more details,see the Hyperdisk documentation.
// Note: Updating currently is only supported for hyperdisk skus via disk update
// api/gcloud without the need to delete and recreate the disk, hyperdisk allows
// for an update of throughput every 4 hours. To update your hyperdisk more
// frequently, you'll need to manually delete and recreate it.
ProvisionedThroughput *float64 `json:"provisionedThroughput,omitempty" tf:"provisioned_throughput,omitempty"`
// A tag is a key-value pair that can be attached to a Google Cloud resource. You can use tags to conditionally allow or deny policies based on whether a resource has a specific tag. This value is not returned by the API.
// +mapType=granular
ResourceManagerTags map[string]*string `json:"resourceManagerTags,omitempty" tf:"resource_manager_tags,omitempty"`
// The size of the image in gigabytes. If not specified, it
// will inherit the size of its base image.
Size *float64 `json:"size,omitempty" tf:"size,omitempty"`
// The type of reservation from which this instance can consume resources.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type InitializeParamsObservation struct {
// Whether this disk is using confidential compute mode.
// Note: Only supported on hyperdisk skus, disk_encryption_key is required when setting to true.
EnableConfidentialCompute *bool `json:"enableConfidentialCompute,omitempty" tf:"enable_confidential_compute,omitempty"`
// The image from which to initialize this disk. This can be
// one of: the image's self_link, projects/{project}/global/images/{image},
// projects/{project}/global/images/family/{family}, global/images/{image},
// global/images/family/{family}, family/{family}, {project}/{family},
// {project}/{image}, {family}, or {image}. If referred by family, the
// images names must include the family name. If they don't, use the
// google_compute_image data source.
// For instance, the image centos-6-v20180104 includes its family name centos-6.
// These images can be referred by family name here.
Image *string `json:"image,omitempty" tf:"image,omitempty"`
// A map of key/value label pairs to assign to the instance.
// Note: This field is non-authoritative, and will only manage the labels present in your configuration.
// Please refer to the field 'effective_labels' for all of the labels present on the resource.
Labels map[string]string `json:"labels,omitempty" tf:"labels,omitempty"`
// Indicates how many IOPS to provision for the disk.
// This sets the number of I/O operations per second that the disk can handle.
// For more details,see the Hyperdisk documentation.
// Note: Updating currently is only supported for hyperdisk skus via disk update
// api/gcloud without the need to delete and recreate the disk, hyperdisk allows
// for an update of IOPS every 4 hours. To update your hyperdisk more frequently,
// you'll need to manually delete and recreate it.
ProvisionedIops *float64 `json:"provisionedIops,omitempty" tf:"provisioned_iops,omitempty"`
// Indicates how much throughput to provision for the disk.
// This sets the number of throughput mb per second that the disk can handle.
// For more details,see the Hyperdisk documentation.
// Note: Updating currently is only supported for hyperdisk skus via disk update
// api/gcloud without the need to delete and recreate the disk, hyperdisk allows
// for an update of throughput every 4 hours. To update your hyperdisk more
// frequently, you'll need to manually delete and recreate it.
ProvisionedThroughput *float64 `json:"provisionedThroughput,omitempty" tf:"provisioned_throughput,omitempty"`
// A tag is a key-value pair that can be attached to a Google Cloud resource. You can use tags to conditionally allow or deny policies based on whether a resource has a specific tag. This value is not returned by the API.
// +mapType=granular
ResourceManagerTags map[string]*string `json:"resourceManagerTags,omitempty" tf:"resource_manager_tags,omitempty"`
// The size of the image in gigabytes. If not specified, it
// will inherit the size of its base image.
Size *float64 `json:"size,omitempty" tf:"size,omitempty"`
// The type of reservation from which this instance can consume resources.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type InitializeParamsParameters struct {
// Whether this disk is using confidential compute mode.
// Note: Only supported on hyperdisk skus, disk_encryption_key is required when setting to true.
// +kubebuilder:validation:Optional
EnableConfidentialCompute *bool `json:"enableConfidentialCompute,omitempty" tf:"enable_confidential_compute,omitempty"`
// The image from which to initialize this disk. This can be
// one of: the image's self_link, projects/{project}/global/images/{image},
// projects/{project}/global/images/family/{family}, global/images/{image},
// global/images/family/{family}, family/{family}, {project}/{family},
// {project}/{image}, {family}, or {image}. If referred by family, the
// images names must include the family name. If they don't, use the
// google_compute_image data source.
// For instance, the image centos-6-v20180104 includes its family name centos-6.
// These images can be referred by family name here.
// +crossplane:generate:reference:type=Image
// +kubebuilder:validation:Optional
Image *string `json:"image,omitempty" tf:"image,omitempty"`
// Reference to a Image to populate image.
// +kubebuilder:validation:Optional
ImageRef *v1.Reference `json:"imageRef,omitempty" tf:"-"`
// Selector for a Image to populate image.
// +kubebuilder:validation:Optional
ImageSelector *v1.Selector `json:"imageSelector,omitempty" tf:"-"`
// A map of key/value label pairs to assign to the instance.
// Note: This field is non-authoritative, and will only manage the labels present in your configuration.
// Please refer to the field 'effective_labels' for all of the labels present on the resource.
// +kubebuilder:validation:Optional
Labels map[string]string `json:"labels,omitempty" tf:"labels,omitempty"`
// Indicates how many IOPS to provision for the disk.
// This sets the number of I/O operations per second that the disk can handle.
// For more details,see the Hyperdisk documentation.
// Note: Updating currently is only supported for hyperdisk skus via disk update
// api/gcloud without the need to delete and recreate the disk, hyperdisk allows
// for an update of IOPS every 4 hours. To update your hyperdisk more frequently,
// you'll need to manually delete and recreate it.
// +kubebuilder:validation:Optional
ProvisionedIops *float64 `json:"provisionedIops,omitempty" tf:"provisioned_iops,omitempty"`
// Indicates how much throughput to provision for the disk.
// This sets the number of throughput mb per second that the disk can handle.
// For more details,see the Hyperdisk documentation.
// Note: Updating currently is only supported for hyperdisk skus via disk update
// api/gcloud without the need to delete and recreate the disk, hyperdisk allows
// for an update of throughput every 4 hours. To update your hyperdisk more
// frequently, you'll need to manually delete and recreate it.
// +kubebuilder:validation:Optional
ProvisionedThroughput *float64 `json:"provisionedThroughput,omitempty" tf:"provisioned_throughput,omitempty"`
// A tag is a key-value pair that can be attached to a Google Cloud resource. You can use tags to conditionally allow or deny policies based on whether a resource has a specific tag. This value is not returned by the API.
// +kubebuilder:validation:Optional
// +mapType=granular
ResourceManagerTags map[string]*string `json:"resourceManagerTags,omitempty" tf:"resource_manager_tags,omitempty"`
// The size of the image in gigabytes. If not specified, it
// will inherit the size of its base image.
// +kubebuilder:validation:Optional
Size *float64 `json:"size,omitempty" tf:"size,omitempty"`
// The type of reservation from which this instance can consume resources.
// +kubebuilder:validation:Optional
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type InstanceAttachedDiskInitParameters struct {
// Name with which the attached disk will be accessible
// under /dev/disk/by-id/google-*
DeviceName *string `json:"deviceName,omitempty" tf:"device_name,omitempty"`
// The self_link of the encryption key that is
// stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link
// and disk_encryption_key_raw may be set.
KMSKeySelfLink *string `json:"kmsKeySelfLink,omitempty" tf:"kms_key_self_link,omitempty"`
// Either "READ_ONLY" or "READ_WRITE", defaults to "READ_WRITE"
// If you have a persistent disk with data that you want to share
// between multiple instances, detach it from any read-write instances and
// attach it to one or more instances in read-only mode.
Mode *string `json:"mode,omitempty" tf:"mode,omitempty"`
// The name or self_link of the disk to attach to this instance.
Source *string `json:"source,omitempty" tf:"source,omitempty"`
}
type InstanceAttachedDiskObservation struct {
// Name with which the attached disk will be accessible
// under /dev/disk/by-id/google-*
DeviceName *string `json:"deviceName,omitempty" tf:"device_name,omitempty"`
// The RFC 4648 base64
// encoded SHA-256 hash of the [customer-supplied encryption key]
// (https://cloud.google.com/compute/docs/disks/customer-supplied-encryption) that protects this resource.
DiskEncryptionKeySha256 *string `json:"diskEncryptionKeySha256,omitempty" tf:"disk_encryption_key_sha256,omitempty"`
// The self_link of the encryption key that is
// stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link
// and disk_encryption_key_raw may be set.
KMSKeySelfLink *string `json:"kmsKeySelfLink,omitempty" tf:"kms_key_self_link,omitempty"`
// Either "READ_ONLY" or "READ_WRITE", defaults to "READ_WRITE"
// If you have a persistent disk with data that you want to share
// between multiple instances, detach it from any read-write instances and
// attach it to one or more instances in read-only mode.
Mode *string `json:"mode,omitempty" tf:"mode,omitempty"`
// The name or self_link of the disk to attach to this instance.
Source *string `json:"source,omitempty" tf:"source,omitempty"`
}
type InstanceAttachedDiskParameters struct {
// Name with which the attached disk will be accessible
// under /dev/disk/by-id/google-*
// +kubebuilder:validation:Optional
DeviceName *string `json:"deviceName,omitempty" tf:"device_name,omitempty"`
// A 256-bit [customer-supplied encryption key]
// (https://cloud.google.com/compute/docs/disks/customer-supplied-encryption),
// encoded in RFC 4648 base64
// to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
// +kubebuilder:validation:Optional
DiskEncryptionKeyRawSecretRef *v1.SecretKeySelector `json:"diskEncryptionKeyRawSecretRef,omitempty" tf:"-"`
// The self_link of the encryption key that is
// stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link
// and disk_encryption_key_raw may be set.
// +kubebuilder:validation:Optional
KMSKeySelfLink *string `json:"kmsKeySelfLink,omitempty" tf:"kms_key_self_link,omitempty"`
// Either "READ_ONLY" or "READ_WRITE", defaults to "READ_WRITE"
// If you have a persistent disk with data that you want to share
// between multiple instances, detach it from any read-write instances and
// attach it to one or more instances in read-only mode.
// +kubebuilder:validation:Optional
Mode *string `json:"mode,omitempty" tf:"mode,omitempty"`
// The name or self_link of the disk to attach to this instance.
// +kubebuilder:validation:Optional
Source *string `json:"source" tf:"source,omitempty"`
}
type InstanceInitParameters struct {
// Configure Nested Virtualisation and Simultaneous Hyper Threading on this VM. Structure is documented below
AdvancedMachineFeatures []AdvancedMachineFeaturesInitParameters `json:"advancedMachineFeatures,omitempty" tf:"advanced_machine_features,omitempty"`
// If you try to update a property that requires stopping the instance without setting this field, the update will fail.
AllowStoppingForUpdate *bool `json:"allowStoppingForUpdate,omitempty" tf:"allow_stopping_for_update,omitempty"`
// Additional disks to attach to the instance. Can be repeated multiple times for multiple disks. Structure is documented below.
AttachedDisk []InstanceAttachedDiskInitParameters `json:"attachedDisk,omitempty" tf:"attached_disk,omitempty"`
// The boot disk for the instance.
// Structure is documented below.
BootDisk []BootDiskInitParameters `json:"bootDisk,omitempty" tf:"boot_disk,omitempty"`
// Whether to allow sending and receiving of
// packets with non-matching source or destination IPs.
// This defaults to false.
CanIPForward *bool `json:"canIpForward,omitempty" tf:"can_ip_forward,omitempty"`
// Enable Confidential Mode on this VM. Structure is documented below
ConfidentialInstanceConfig []ConfidentialInstanceConfigInitParameters `json:"confidentialInstanceConfig,omitempty" tf:"confidential_instance_config,omitempty"`
// Enable deletion protection on this instance. Defaults to false.
// Note: you must disable deletion protection before removing the resource (e.g.
DeletionProtection *bool `json:"deletionProtection,omitempty" tf:"deletion_protection,omitempty"`
// A brief description of this resource.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Desired status of the instance. Either
// "RUNNING" or "TERMINATED".
DesiredStatus *string `json:"desiredStatus,omitempty" tf:"desired_status,omitempty"`
// Enable Virtual Displays on this instance.
// Note: allow_stopping_for_update must be set to true or your instance must have a desired_status of TERMINATED in order to update this field.
EnableDisplay *bool `json:"enableDisplay,omitempty" tf:"enable_display,omitempty"`
// List of the type and count of accelerator cards attached to the instance. Structure documented below.
// Note: GPU accelerators can only be used with on_host_maintenance option set to TERMINATE.
// Note: This field uses attr-as-block mode to avoid
// breaking users during the 0.12 upgrade. To explicitly send a list
// of zero objects you must use the following syntax:
// example=[]
// For more details about this behavior, see this section.
GuestAccelerator []GuestAcceleratorInitParameters `json:"guestAccelerator,omitempty" tf:"guest_accelerator,omitempty"`
// 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.
Hostname *string `json:"hostname,omitempty" tf:"hostname,omitempty"`
// A map of key/value label pairs to assign to the instance.
// Note: This field is non-authoritative, and will only manage the labels present in your configuration.
// Please refer to the field 'effective_labels' for all of the labels present on the resource.
// +mapType=granular
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// The machine type to create.
MachineType *string `json:"machineType,omitempty" tf:"machine_type,omitempty"`
// Metadata key/value pairs to make available from
// within the instance. Ssh keys attached in the Cloud Console will be removed.
// Add them to your config in order to keep them attached to your instance. A
// list of default metadata values (e.g. ssh-keys) can be found here
// +mapType=granular
Metadata map[string]*string `json:"metadata,omitempty" tf:"metadata,omitempty"`
// An alternative to using the
// startup-script metadata key, except this one forces the instance to be recreated
// (thus re-running the script) if it is changed. This replaces the startup-script
// metadata key on the created instance and thus the two mechanisms are not
// allowed to be used simultaneously. Users are free to use either mechanism - the
// only distinction is that this separate attribute will cause a recreate on
// modification. On import, metadata_startup_script will not be set - if you
// choose to specify it you will see a diff immediately after import causing a
// destroy/recreate operation.
MetadataStartupScript *string `json:"metadataStartupScript,omitempty" tf:"metadata_startup_script,omitempty"`
// Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as
// Intel Haswell or Intel Skylake. See the complete list here.
// Note: allow_stopping_for_update must be set to true or your instance must have a desired_status of TERMINATED in order to update this field.
MinCPUPlatform *string `json:"minCpuPlatform,omitempty" tf:"min_cpu_platform,omitempty"`
// Networks to attach to the instance. This can
// be specified multiple times. Structure is documented below.
NetworkInterface []NetworkInterfaceInitParameters `json:"networkInterface,omitempty" tf:"network_interface,omitempty"`
// os-features, and network_interface.0.nic-type must be GVNIC
// in order for this setting to take effect.
NetworkPerformanceConfig []NetworkPerformanceConfigInitParameters `json:"networkPerformanceConfig,omitempty" tf:"network_performance_config,omitempty"`
// Additional instance parameters.
// .
Params []ParamsInitParameters `json:"params,omitempty" tf:"params,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"`
// Specifies the reservations that this instance can consume from.
// Structure is documented below.
ReservationAffinity []ReservationAffinityInitParameters `json:"reservationAffinity,omitempty" tf:"reservation_affinity,omitempty"`
// - A list of self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
ResourcePolicies []*string `json:"resourcePolicies,omitempty" tf:"resource_policies,omitempty"`
// The scheduling strategy to use. More details about
// this configuration option are detailed below.
Scheduling []SchedulingInitParameters `json:"scheduling,omitempty" tf:"scheduling,omitempty"`
// Scratch disks to attach to the instance. This can be
// specified multiple times for multiple scratch disks. Structure is documented below.
ScratchDisk []ScratchDiskInitParameters `json:"scratchDisk,omitempty" tf:"scratch_disk,omitempty"`
// Service account to attach to the instance.
// Structure is documented below.
// Note: allow_stopping_for_update must be set to true or your instance must have a desired_status of TERMINATED in order to update this field.
ServiceAccount []ServiceAccountInitParameters `json:"serviceAccount,omitempty" tf:"service_account,omitempty"`
// Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below.
// Note: shielded_instance_config can only be used with boot images with shielded vm support. See the complete list here.
// Note: allow_stopping_for_update must be set to true or your instance must have a desired_status of TERMINATED in order to update this field.
ShieldedInstanceConfig []ShieldedInstanceConfigInitParameters `json:"shieldedInstanceConfig,omitempty" tf:"shielded_instance_config,omitempty"`
// A list of network tags to attach to the instance.
// +listType=set
Tags []*string `json:"tags,omitempty" tf:"tags,omitempty"`
}
type InstanceObservation struct {
// Configure Nested Virtualisation and Simultaneous Hyper Threading on this VM. Structure is documented below
AdvancedMachineFeatures []AdvancedMachineFeaturesObservation `json:"advancedMachineFeatures,omitempty" tf:"advanced_machine_features,omitempty"`
// If you try to update a property that requires stopping the instance without setting this field, the update will fail.
AllowStoppingForUpdate *bool `json:"allowStoppingForUpdate,omitempty" tf:"allow_stopping_for_update,omitempty"`
// Additional disks to attach to the instance. Can be repeated multiple times for multiple disks. Structure is documented below.
AttachedDisk []InstanceAttachedDiskObservation `json:"attachedDisk,omitempty" tf:"attached_disk,omitempty"`
// The boot disk for the instance.
// Structure is documented below.
BootDisk []BootDiskObservation `json:"bootDisk,omitempty" tf:"boot_disk,omitempty"`
// The CPU platform used by this instance.
CPUPlatform *string `json:"cpuPlatform,omitempty" tf:"cpu_platform,omitempty"`
// Whether to allow sending and receiving of
// packets with non-matching source or destination IPs.
// This defaults to false.
CanIPForward *bool `json:"canIpForward,omitempty" tf:"can_ip_forward,omitempty"`
// Enable Confidential Mode on this VM. Structure is documented below
ConfidentialInstanceConfig []ConfidentialInstanceConfigObservation `json:"confidentialInstanceConfig,omitempty" tf:"confidential_instance_config,omitempty"`
// The 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.`,
CurrentStatus *string `json:"currentStatus,omitempty" tf:"current_status,omitempty"`
// Enable deletion protection on this instance. Defaults to false.
// Note: you must disable deletion protection before removing the resource (e.g.
DeletionProtection *bool `json:"deletionProtection,omitempty" tf:"deletion_protection,omitempty"`
// A brief description of this resource.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Desired status of the instance. Either
// "RUNNING" or "TERMINATED".
DesiredStatus *string `json:"desiredStatus,omitempty" tf:"desired_status,omitempty"`
// +mapType=granular
EffectiveLabels map[string]*string `json:"effectiveLabels,omitempty" tf:"effective_labels,omitempty"`
// Enable Virtual Displays on this instance.
// Note: allow_stopping_for_update must be set to true or your instance must have a desired_status of TERMINATED in order to update this field.
EnableDisplay *bool `json:"enableDisplay,omitempty" tf:"enable_display,omitempty"`
// List of the type and count of accelerator cards attached to the instance. Structure documented below.
// Note: GPU accelerators can only be used with on_host_maintenance option set to TERMINATE.
// Note: This field uses attr-as-block mode to avoid
// breaking users during the 0.12 upgrade. To explicitly send a list
// of zero objects you must use the following syntax:
// example=[]
// For more details about this behavior, see this section.
GuestAccelerator []GuestAcceleratorObservation `json:"guestAccelerator,omitempty" tf:"guest_accelerator,omitempty"`
// 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.
Hostname *string `json:"hostname,omitempty" tf:"hostname,omitempty"`
// an identifier for the resource with format projects/{{project}}/zones/{{zone}}/instances/{{name}}
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// The server-assigned unique identifier of this instance.
InstanceID *string `json:"instanceId,omitempty" tf:"instance_id,omitempty"`
// The unique fingerprint of the labels.
LabelFingerprint *string `json:"labelFingerprint,omitempty" tf:"label_fingerprint,omitempty"`
// A map of key/value label pairs to assign to the instance.
// Note: This field is non-authoritative, and will only manage the labels present in your configuration.
// Please refer to the field 'effective_labels' for all of the labels present on the resource.
// +mapType=granular
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// The machine type to create.
MachineType *string `json:"machineType,omitempty" tf:"machine_type,omitempty"`
// Metadata key/value pairs to make available from
// within the instance. Ssh keys attached in the Cloud Console will be removed.
// Add them to your config in order to keep them attached to your instance. A
// list of default metadata values (e.g. ssh-keys) can be found here
// +mapType=granular
Metadata map[string]*string `json:"metadata,omitempty" tf:"metadata,omitempty"`
// The unique fingerprint of the metadata.
MetadataFingerprint *string `json:"metadataFingerprint,omitempty" tf:"metadata_fingerprint,omitempty"`
// An alternative to using the
// startup-script metadata key, except this one forces the instance to be recreated
// (thus re-running the script) if it is changed. This replaces the startup-script
// metadata key on the created instance and thus the two mechanisms are not
// allowed to be used simultaneously. Users are free to use either mechanism - the
// only distinction is that this separate attribute will cause a recreate on
// modification. On import, metadata_startup_script will not be set - if you
// choose to specify it you will see a diff immediately after import causing a
// destroy/recreate operation.
MetadataStartupScript *string `json:"metadataStartupScript,omitempty" tf:"metadata_startup_script,omitempty"`
// Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as
// Intel Haswell or Intel Skylake. See the complete list here.
// Note: allow_stopping_for_update must be set to true or your instance must have a desired_status of TERMINATED in order to update this field.
MinCPUPlatform *string `json:"minCpuPlatform,omitempty" tf:"min_cpu_platform,omitempty"`
// Networks to attach to the instance. This can
// be specified multiple times. Structure is documented below.
NetworkInterface []NetworkInterfaceObservation `json:"networkInterface,omitempty" tf:"network_interface,omitempty"`
// os-features, and network_interface.0.nic-type must be GVNIC
// in order for this setting to take effect.
NetworkPerformanceConfig []NetworkPerformanceConfigObservation `json:"networkPerformanceConfig,omitempty" tf:"network_performance_config,omitempty"`
// Additional instance parameters.
// .
Params []ParamsObservation `json:"params,omitempty" tf:"params,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"`
// Specifies the reservations that this instance can consume from.
// Structure is documented below.
ReservationAffinity []ReservationAffinityObservation `json:"reservationAffinity,omitempty" tf:"reservation_affinity,omitempty"`
// - A list of self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
ResourcePolicies []*string `json:"resourcePolicies,omitempty" tf:"resource_policies,omitempty"`
// The scheduling strategy to use. More details about
// this configuration option are detailed below.
Scheduling []SchedulingObservation `json:"scheduling,omitempty" tf:"scheduling,omitempty"`
// Scratch disks to attach to the instance. This can be
// specified multiple times for multiple scratch disks. Structure is documented below.
ScratchDisk []ScratchDiskObservation `json:"scratchDisk,omitempty" tf:"scratch_disk,omitempty"`
// The URI of the created resource.
SelfLink *string `json:"selfLink,omitempty" tf:"self_link,omitempty"`
// Service account to attach to the instance.
// Structure is documented below.
// Note: allow_stopping_for_update must be set to true or your instance must have a desired_status of TERMINATED in order to update this field.
ServiceAccount []ServiceAccountObservation `json:"serviceAccount,omitempty" tf:"service_account,omitempty"`
// Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below.
// Note: shielded_instance_config can only be used with boot images with shielded vm support. See the complete list here.
// Note: allow_stopping_for_update must be set to true or your instance must have a desired_status of TERMINATED in order to update this field.
ShieldedInstanceConfig []ShieldedInstanceConfigObservation `json:"shieldedInstanceConfig,omitempty" tf:"shielded_instance_config,omitempty"`
// A list of network tags to attach to the instance.
// +listType=set
Tags []*string `json:"tags,omitempty" tf:"tags,omitempty"`
// The unique fingerprint of the tags.
TagsFingerprint *string `json:"tagsFingerprint,omitempty" tf:"tags_fingerprint,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"`
// The zone that the machine should be created in. If it is not provided, the provider zone is used.
Zone *string `json:"zone,omitempty" tf:"zone,omitempty"`
}
type InstanceParameters struct {
// Configure Nested Virtualisation and Simultaneous Hyper Threading on this VM. Structure is documented below
// +kubebuilder:validation:Optional
AdvancedMachineFeatures []AdvancedMachineFeaturesParameters `json:"advancedMachineFeatures,omitempty" tf:"advanced_machine_features,omitempty"`
// If you try to update a property that requires stopping the instance without setting this field, the update will fail.
// +kubebuilder:validation:Optional
AllowStoppingForUpdate *bool `json:"allowStoppingForUpdate,omitempty" tf:"allow_stopping_for_update,omitempty"`
// Additional disks to attach to the instance. Can be repeated multiple times for multiple disks. Structure is documented below.
// +kubebuilder:validation:Optional
AttachedDisk []InstanceAttachedDiskParameters `json:"attachedDisk,omitempty" tf:"attached_disk,omitempty"`
// The boot disk for the instance.
// Structure is documented below.
// +kubebuilder:validation:Optional
BootDisk []BootDiskParameters `json:"bootDisk,omitempty" tf:"boot_disk,omitempty"`
// Whether to allow sending and receiving of
// packets with non-matching source or destination IPs.
// This defaults to false.
// +kubebuilder:validation:Optional
CanIPForward *bool `json:"canIpForward,omitempty" tf:"can_ip_forward,omitempty"`
// Enable Confidential Mode on this VM. Structure is documented below
// +kubebuilder:validation:Optional
ConfidentialInstanceConfig []ConfidentialInstanceConfigParameters `json:"confidentialInstanceConfig,omitempty" tf:"confidential_instance_config,omitempty"`
// Enable deletion protection on this instance. Defaults to false.
// Note: you must disable deletion protection before removing the resource (e.g.
// +kubebuilder:validation:Optional
DeletionProtection *bool `json:"deletionProtection,omitempty" tf:"deletion_protection,omitempty"`
// A brief description of this resource.
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Desired status of the instance. Either
// "RUNNING" or "TERMINATED".
// +kubebuilder:validation:Optional
DesiredStatus *string `json:"desiredStatus,omitempty" tf:"desired_status,omitempty"`
// Enable Virtual Displays on this instance.
// Note: allow_stopping_for_update must be set to true or your instance must have a desired_status of TERMINATED in order to update this field.
// +kubebuilder:validation:Optional
EnableDisplay *bool `json:"enableDisplay,omitempty" tf:"enable_display,omitempty"`
// List of the type and count of accelerator cards attached to the instance. Structure documented below.
// Note: GPU accelerators can only be used with on_host_maintenance option set to TERMINATE.
// Note: This field uses attr-as-block mode to avoid
// breaking users during the 0.12 upgrade. To explicitly send a list
// of zero objects you must use the following syntax:
// example=[]
// For more details about this behavior, see this section.
// +kubebuilder:validation:Optional
GuestAccelerator []GuestAcceleratorParameters `json:"guestAccelerator,omitempty" tf:"guest_accelerator,omitempty"`
// 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.
// +kubebuilder:validation:Optional
Hostname *string `json:"hostname,omitempty" tf:"hostname,omitempty"`
// A map of key/value label pairs to assign to the instance.
// Note: This field is non-authoritative, and will only manage the labels present in your configuration.
// Please refer to the field 'effective_labels' for all of the labels present on the resource.
// +kubebuilder:validation:Optional