-
Notifications
You must be signed in to change notification settings - Fork 64
/
zz_workflowtemplate_types.go
executable file
·2708 lines (1912 loc) · 168 KB
/
zz_workflowtemplate_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: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
/*
Copyright 2021 The Crossplane Authors.
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.
*/
// 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 ClusterSelectorInitParameters struct {
// Required. The cluster labels. Cluster must have all labels to match.
// +mapType=granular
ClusterLabels map[string]*string `json:"clusterLabels,omitempty" tf:"cluster_labels,omitempty"`
// The zone where the Compute Engine cluster will be located. On a create request, it is required in the "global" region. If omitted in a non-global Dataproc region, the service will pick a zone in the corresponding Compute Engine region. On a get request, zone will always be present. A full URL, partial URI, or short name are valid. Examples: * https://www.googleapis.com/compute/v1/projects/ * us-central1-f
Zone *string `json:"zone,omitempty" tf:"zone,omitempty"`
}
type ClusterSelectorObservation struct {
// Required. The cluster labels. Cluster must have all labels to match.
// +mapType=granular
ClusterLabels map[string]*string `json:"clusterLabels,omitempty" tf:"cluster_labels,omitempty"`
// The zone where the Compute Engine cluster will be located. On a create request, it is required in the "global" region. If omitted in a non-global Dataproc region, the service will pick a zone in the corresponding Compute Engine region. On a get request, zone will always be present. A full URL, partial URI, or short name are valid. Examples: * https://www.googleapis.com/compute/v1/projects/ * us-central1-f
Zone *string `json:"zone,omitempty" tf:"zone,omitempty"`
}
type ClusterSelectorParameters struct {
// Required. The cluster labels. Cluster must have all labels to match.
// +kubebuilder:validation:Optional
// +mapType=granular
ClusterLabels map[string]*string `json:"clusterLabels" tf:"cluster_labels,omitempty"`
// The zone where the Compute Engine cluster will be located. On a create request, it is required in the "global" region. If omitted in a non-global Dataproc region, the service will pick a zone in the corresponding Compute Engine region. On a get request, zone will always be present. A full URL, partial URI, or short name are valid. Examples: * https://www.googleapis.com/compute/v1/projects/ * us-central1-f
// +kubebuilder:validation:Optional
Zone *string `json:"zone,omitempty" tf:"zone,omitempty"`
}
type ConfigAutoscalingConfigInitParameters struct {
// The autoscaling policy used by the cluster. Only resource names including projectid and location (region) are valid. Examples: * https://www.googleapis.com/compute/v1/projects/ Note that the policy must be in the same project and Dataproc region.
Policy *string `json:"policy,omitempty" tf:"policy,omitempty"`
}
type ConfigAutoscalingConfigObservation struct {
// The autoscaling policy used by the cluster. Only resource names including projectid and location (region) are valid. Examples: * https://www.googleapis.com/compute/v1/projects/ Note that the policy must be in the same project and Dataproc region.
Policy *string `json:"policy,omitempty" tf:"policy,omitempty"`
}
type ConfigAutoscalingConfigParameters struct {
// The autoscaling policy used by the cluster. Only resource names including projectid and location (region) are valid. Examples: * https://www.googleapis.com/compute/v1/projects/ Note that the policy must be in the same project and Dataproc region.
// +kubebuilder:validation:Optional
Policy *string `json:"policy,omitempty" tf:"policy,omitempty"`
}
type ConfigEncryptionConfigInitParameters struct {
// The Cloud KMS key name to use for PD disk encryption for all instances in the cluster.
GcePdKMSKeyName *string `json:"gcePdKmsKeyName,omitempty" tf:"gce_pd_kms_key_name,omitempty"`
}
type ConfigEncryptionConfigObservation struct {
// The Cloud KMS key name to use for PD disk encryption for all instances in the cluster.
GcePdKMSKeyName *string `json:"gcePdKmsKeyName,omitempty" tf:"gce_pd_kms_key_name,omitempty"`
}
type ConfigEncryptionConfigParameters struct {
// The Cloud KMS key name to use for PD disk encryption for all instances in the cluster.
// +kubebuilder:validation:Optional
GcePdKMSKeyName *string `json:"gcePdKmsKeyName,omitempty" tf:"gce_pd_kms_key_name,omitempty"`
}
type ConfigEndpointConfigInitParameters struct {
// If true, enable http access to specific ports on the cluster from external sources. Defaults to false.
EnableHTTPPortAccess *bool `json:"enableHttpPortAccess,omitempty" tf:"enable_http_port_access,omitempty"`
}
type ConfigEndpointConfigObservation struct {
// If true, enable http access to specific ports on the cluster from external sources. Defaults to false.
EnableHTTPPortAccess *bool `json:"enableHttpPortAccess,omitempty" tf:"enable_http_port_access,omitempty"`
// Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true.
// +mapType=granular
HTTPPorts map[string]*string `json:"httpPorts,omitempty" tf:"http_ports,omitempty"`
}
type ConfigEndpointConfigParameters struct {
// If true, enable http access to specific ports on the cluster from external sources. Defaults to false.
// +kubebuilder:validation:Optional
EnableHTTPPortAccess *bool `json:"enableHttpPortAccess,omitempty" tf:"enable_http_port_access,omitempty"`
}
type ConfigGceClusterConfigInitParameters struct {
// If true, all instances in the cluster will only have internal IP addresses. By default, clusters are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigned to each instance. This internal_ip_only restriction can only be enabled for subnetwork enabled networks, and all off-cluster dependencies must be configured to be accessible without external IP addresses.
InternalIPOnly *bool `json:"internalIpOnly,omitempty" tf:"internal_ip_only,omitempty"`
// The Compute Engine metadata entries to add to all instances (see (https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
// +mapType=granular
Metadata map[string]*string `json:"metadata,omitempty" tf:"metadata,omitempty"`
// The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork_uri. If neither network_uri nor subnetwork_uri is specified, the "default" network of the project is used, if it exists. Cannot be a "Custom Subnet Network" (see /regions/global/default*default`
Network *string `json:"network,omitempty" tf:"network,omitempty"`
// Node Group Affinity for sole-tenant clusters.
NodeGroupAffinity []GceClusterConfigNodeGroupAffinityInitParameters `json:"nodeGroupAffinity,omitempty" tf:"node_group_affinity,omitempty"`
// The type of IPv6 access for a cluster. Possible values: PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED, INHERIT_FROM_SUBNETWORK, OUTBOUND, BIDIRECTIONAL
PrivateIPv6GoogleAccess *string `json:"privateIpv6GoogleAccess,omitempty" tf:"private_ipv6_google_access,omitempty"`
// Reservation Affinity for consuming Zonal reservation.
ReservationAffinity []GceClusterConfigReservationAffinityInitParameters `json:"reservationAffinity,omitempty" tf:"reservation_affinity,omitempty"`
// The (https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.
ServiceAccount *string `json:"serviceAccount,omitempty" tf:"service_account,omitempty"`
// The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included: * https://www.googleapis.com/auth/cloud.useraccounts.readonly * https://www.googleapis.com/auth/devstorage.read_write * https://www.googleapis.com/auth/logging.write If no scopes are specified, the following defaults are also provided: * https://www.googleapis.com/auth/bigquery * https://www.googleapis.com/auth/bigtable.admin.table * https://www.googleapis.com/auth/bigtable.data * https://www.googleapis.com/auth/devstorage.full_control
ServiceAccountScopes []*string `json:"serviceAccountScopes,omitempty" tf:"service_account_scopes,omitempty"`
// Shielded Instance Config for clusters using Compute Engine Shielded VMs. Structure defined below.
ShieldedInstanceConfig []GceClusterConfigShieldedInstanceConfigInitParameters `json:"shieldedInstanceConfig,omitempty" tf:"shielded_instance_config,omitempty"`
// The Compute Engine subnetwork to be used for machine communications. Cannot be specified with network_uri. A full URL, partial URI, or short name are valid. Examples: * https://www.googleapis.com/compute/v1/projects//regions/us-east1/subnetworks/sub0 * sub0
Subnetwork *string `json:"subnetwork,omitempty" tf:"subnetwork,omitempty"`
// The Compute Engine tags to add to all instances (see (https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
// +listType=set
Tags []*string `json:"tags,omitempty" tf:"tags,omitempty"`
// The zone where the Compute Engine cluster will be located. On a create request, it is required in the "global" region. If omitted in a non-global Dataproc region, the service will pick a zone in the corresponding Compute Engine region. On a get request, zone will always be present. A full URL, partial URI, or short name are valid. Examples: * https://www.googleapis.com/compute/v1/projects/ * us-central1-f
Zone *string `json:"zone,omitempty" tf:"zone,omitempty"`
}
type ConfigGceClusterConfigObservation struct {
// If true, all instances in the cluster will only have internal IP addresses. By default, clusters are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigned to each instance. This internal_ip_only restriction can only be enabled for subnetwork enabled networks, and all off-cluster dependencies must be configured to be accessible without external IP addresses.
InternalIPOnly *bool `json:"internalIpOnly,omitempty" tf:"internal_ip_only,omitempty"`
// The Compute Engine metadata entries to add to all instances (see (https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
// +mapType=granular
Metadata map[string]*string `json:"metadata,omitempty" tf:"metadata,omitempty"`
// The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork_uri. If neither network_uri nor subnetwork_uri is specified, the "default" network of the project is used, if it exists. Cannot be a "Custom Subnet Network" (see /regions/global/default*default`
Network *string `json:"network,omitempty" tf:"network,omitempty"`
// Node Group Affinity for sole-tenant clusters.
NodeGroupAffinity []GceClusterConfigNodeGroupAffinityObservation `json:"nodeGroupAffinity,omitempty" tf:"node_group_affinity,omitempty"`
// The type of IPv6 access for a cluster. Possible values: PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED, INHERIT_FROM_SUBNETWORK, OUTBOUND, BIDIRECTIONAL
PrivateIPv6GoogleAccess *string `json:"privateIpv6GoogleAccess,omitempty" tf:"private_ipv6_google_access,omitempty"`
// Reservation Affinity for consuming Zonal reservation.
ReservationAffinity []GceClusterConfigReservationAffinityObservation `json:"reservationAffinity,omitempty" tf:"reservation_affinity,omitempty"`
// The (https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.
ServiceAccount *string `json:"serviceAccount,omitempty" tf:"service_account,omitempty"`
// The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included: * https://www.googleapis.com/auth/cloud.useraccounts.readonly * https://www.googleapis.com/auth/devstorage.read_write * https://www.googleapis.com/auth/logging.write If no scopes are specified, the following defaults are also provided: * https://www.googleapis.com/auth/bigquery * https://www.googleapis.com/auth/bigtable.admin.table * https://www.googleapis.com/auth/bigtable.data * https://www.googleapis.com/auth/devstorage.full_control
ServiceAccountScopes []*string `json:"serviceAccountScopes,omitempty" tf:"service_account_scopes,omitempty"`
// Shielded Instance Config for clusters using Compute Engine Shielded VMs. Structure defined below.
ShieldedInstanceConfig []GceClusterConfigShieldedInstanceConfigObservation `json:"shieldedInstanceConfig,omitempty" tf:"shielded_instance_config,omitempty"`
// The Compute Engine subnetwork to be used for machine communications. Cannot be specified with network_uri. A full URL, partial URI, or short name are valid. Examples: * https://www.googleapis.com/compute/v1/projects//regions/us-east1/subnetworks/sub0 * sub0
Subnetwork *string `json:"subnetwork,omitempty" tf:"subnetwork,omitempty"`
// The Compute Engine tags to add to all instances (see (https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
// +listType=set
Tags []*string `json:"tags,omitempty" tf:"tags,omitempty"`
// The zone where the Compute Engine cluster will be located. On a create request, it is required in the "global" region. If omitted in a non-global Dataproc region, the service will pick a zone in the corresponding Compute Engine region. On a get request, zone will always be present. A full URL, partial URI, or short name are valid. Examples: * https://www.googleapis.com/compute/v1/projects/ * us-central1-f
Zone *string `json:"zone,omitempty" tf:"zone,omitempty"`
}
type ConfigGceClusterConfigParameters struct {
// If true, all instances in the cluster will only have internal IP addresses. By default, clusters are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigned to each instance. This internal_ip_only restriction can only be enabled for subnetwork enabled networks, and all off-cluster dependencies must be configured to be accessible without external IP addresses.
// +kubebuilder:validation:Optional
InternalIPOnly *bool `json:"internalIpOnly,omitempty" tf:"internal_ip_only,omitempty"`
// The Compute Engine metadata entries to add to all instances (see (https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
// +kubebuilder:validation:Optional
// +mapType=granular
Metadata map[string]*string `json:"metadata,omitempty" tf:"metadata,omitempty"`
// The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork_uri. If neither network_uri nor subnetwork_uri is specified, the "default" network of the project is used, if it exists. Cannot be a "Custom Subnet Network" (see /regions/global/default*default`
// +kubebuilder:validation:Optional
Network *string `json:"network,omitempty" tf:"network,omitempty"`
// Node Group Affinity for sole-tenant clusters.
// +kubebuilder:validation:Optional
NodeGroupAffinity []GceClusterConfigNodeGroupAffinityParameters `json:"nodeGroupAffinity,omitempty" tf:"node_group_affinity,omitempty"`
// The type of IPv6 access for a cluster. Possible values: PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED, INHERIT_FROM_SUBNETWORK, OUTBOUND, BIDIRECTIONAL
// +kubebuilder:validation:Optional
PrivateIPv6GoogleAccess *string `json:"privateIpv6GoogleAccess,omitempty" tf:"private_ipv6_google_access,omitempty"`
// Reservation Affinity for consuming Zonal reservation.
// +kubebuilder:validation:Optional
ReservationAffinity []GceClusterConfigReservationAffinityParameters `json:"reservationAffinity,omitempty" tf:"reservation_affinity,omitempty"`
// The (https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.
// +kubebuilder:validation:Optional
ServiceAccount *string `json:"serviceAccount,omitempty" tf:"service_account,omitempty"`
// The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included: * https://www.googleapis.com/auth/cloud.useraccounts.readonly * https://www.googleapis.com/auth/devstorage.read_write * https://www.googleapis.com/auth/logging.write If no scopes are specified, the following defaults are also provided: * https://www.googleapis.com/auth/bigquery * https://www.googleapis.com/auth/bigtable.admin.table * https://www.googleapis.com/auth/bigtable.data * https://www.googleapis.com/auth/devstorage.full_control
// +kubebuilder:validation:Optional
ServiceAccountScopes []*string `json:"serviceAccountScopes,omitempty" tf:"service_account_scopes,omitempty"`
// Shielded Instance Config for clusters using Compute Engine Shielded VMs. Structure defined below.
// +kubebuilder:validation:Optional
ShieldedInstanceConfig []GceClusterConfigShieldedInstanceConfigParameters `json:"shieldedInstanceConfig,omitempty" tf:"shielded_instance_config,omitempty"`
// The Compute Engine subnetwork to be used for machine communications. Cannot be specified with network_uri. A full URL, partial URI, or short name are valid. Examples: * https://www.googleapis.com/compute/v1/projects//regions/us-east1/subnetworks/sub0 * sub0
// +kubebuilder:validation:Optional
Subnetwork *string `json:"subnetwork,omitempty" tf:"subnetwork,omitempty"`
// The Compute Engine tags to add to all instances (see (https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
// +kubebuilder:validation:Optional
// +listType=set
Tags []*string `json:"tags,omitempty" tf:"tags,omitempty"`
// The zone where the Compute Engine cluster will be located. On a create request, it is required in the "global" region. If omitted in a non-global Dataproc region, the service will pick a zone in the corresponding Compute Engine region. On a get request, zone will always be present. A full URL, partial URI, or short name are valid. Examples: * https://www.googleapis.com/compute/v1/projects/ * us-central1-f
// +kubebuilder:validation:Optional
Zone *string `json:"zone,omitempty" tf:"zone,omitempty"`
}
type ConfigLifecycleConfigInitParameters struct {
// The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of (https://developers.google.com/protocol-buffers/docs/proto3#json)).
AutoDeleteTTL *string `json:"autoDeleteTtl,omitempty" tf:"auto_delete_ttl,omitempty"`
// The time when cluster will be auto-deleted (see JSON representation of (https://developers.google.com/protocol-buffers/docs/proto3#json)).
AutoDeleteTime *string `json:"autoDeleteTime,omitempty" tf:"auto_delete_time,omitempty"`
// The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON representation of (https://developers.google.com/protocol-buffers/docs/proto3#json).
IdleDeleteTTL *string `json:"idleDeleteTtl,omitempty" tf:"idle_delete_ttl,omitempty"`
}
type ConfigLifecycleConfigObservation struct {
// The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of (https://developers.google.com/protocol-buffers/docs/proto3#json)).
AutoDeleteTTL *string `json:"autoDeleteTtl,omitempty" tf:"auto_delete_ttl,omitempty"`
// The time when cluster will be auto-deleted (see JSON representation of (https://developers.google.com/protocol-buffers/docs/proto3#json)).
AutoDeleteTime *string `json:"autoDeleteTime,omitempty" tf:"auto_delete_time,omitempty"`
// The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON representation of (https://developers.google.com/protocol-buffers/docs/proto3#json).
IdleDeleteTTL *string `json:"idleDeleteTtl,omitempty" tf:"idle_delete_ttl,omitempty"`
// Output only. The time when cluster became idle (most recent job finished) and became eligible for deletion due to idleness (see JSON representation of (https://developers.google.com/protocol-buffers/docs/proto3#json)).
IdleStartTime *string `json:"idleStartTime,omitempty" tf:"idle_start_time,omitempty"`
}
type ConfigLifecycleConfigParameters struct {
// The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of (https://developers.google.com/protocol-buffers/docs/proto3#json)).
// +kubebuilder:validation:Optional
AutoDeleteTTL *string `json:"autoDeleteTtl,omitempty" tf:"auto_delete_ttl,omitempty"`
// The time when cluster will be auto-deleted (see JSON representation of (https://developers.google.com/protocol-buffers/docs/proto3#json)).
// +kubebuilder:validation:Optional
AutoDeleteTime *string `json:"autoDeleteTime,omitempty" tf:"auto_delete_time,omitempty"`
// The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON representation of (https://developers.google.com/protocol-buffers/docs/proto3#json).
// +kubebuilder:validation:Optional
IdleDeleteTTL *string `json:"idleDeleteTtl,omitempty" tf:"idle_delete_ttl,omitempty"`
}
type ConfigMasterConfigAcceleratorsInitParameters struct {
// The number of the accelerator cards of this type exposed to this instance.
AcceleratorCount *float64 `json:"acceleratorCount,omitempty" tf:"accelerator_count,omitempty"`
// Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
AcceleratorType *string `json:"acceleratorType,omitempty" tf:"accelerator_type,omitempty"`
}
type ConfigMasterConfigAcceleratorsObservation struct {
// The number of the accelerator cards of this type exposed to this instance.
AcceleratorCount *float64 `json:"acceleratorCount,omitempty" tf:"accelerator_count,omitempty"`
// Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
AcceleratorType *string `json:"acceleratorType,omitempty" tf:"accelerator_type,omitempty"`
}
type ConfigMasterConfigAcceleratorsParameters struct {
// The number of the accelerator cards of this type exposed to this instance.
// +kubebuilder:validation:Optional
AcceleratorCount *float64 `json:"acceleratorCount,omitempty" tf:"accelerator_count,omitempty"`
// Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
// +kubebuilder:validation:Optional
AcceleratorType *string `json:"acceleratorType,omitempty" tf:"accelerator_type,omitempty"`
}
type ConfigMasterConfigDiskConfigInitParameters struct {
// Size in GB of the boot disk (default is 500GB).
BootDiskSizeGb *float64 `json:"bootDiskSizeGb,omitempty" tf:"boot_disk_size_gb,omitempty"`
// Type of the boot disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive).
BootDiskType *string `json:"bootDiskType,omitempty" tf:"boot_disk_type,omitempty"`
// Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
NumLocalSsds *float64 `json:"numLocalSsds,omitempty" tf:"num_local_ssds,omitempty"`
}
type ConfigMasterConfigDiskConfigObservation struct {
// Size in GB of the boot disk (default is 500GB).
BootDiskSizeGb *float64 `json:"bootDiskSizeGb,omitempty" tf:"boot_disk_size_gb,omitempty"`
// Type of the boot disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive).
BootDiskType *string `json:"bootDiskType,omitempty" tf:"boot_disk_type,omitempty"`
// Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
NumLocalSsds *float64 `json:"numLocalSsds,omitempty" tf:"num_local_ssds,omitempty"`
}
type ConfigMasterConfigDiskConfigParameters struct {
// Size in GB of the boot disk (default is 500GB).
// +kubebuilder:validation:Optional
BootDiskSizeGb *float64 `json:"bootDiskSizeGb,omitempty" tf:"boot_disk_size_gb,omitempty"`
// Type of the boot disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive).
// +kubebuilder:validation:Optional
BootDiskType *string `json:"bootDiskType,omitempty" tf:"boot_disk_type,omitempty"`
// Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
// +kubebuilder:validation:Optional
NumLocalSsds *float64 `json:"numLocalSsds,omitempty" tf:"num_local_ssds,omitempty"`
}
type ConfigMasterConfigInitParameters struct {
// The Compute Engine accelerator configuration for these instances.
Accelerators []ConfigMasterConfigAcceleratorsInitParameters `json:"accelerators,omitempty" tf:"accelerators,omitempty"`
// Disk option config settings.
DiskConfig []ConfigMasterConfigDiskConfigInitParameters `json:"diskConfig,omitempty" tf:"disk_config,omitempty"`
// The Compute Engine image resource used for cluster instances. The URI can represent an image or image family. Image examples: * https://www.googleapis.com/compute/beta/projects/ If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.
Image *string `json:"image,omitempty" tf:"image,omitempty"`
// The Compute Engine machine type used for cluster instances. A full URL, partial URI, or short name are valid. Examples: * https://www.googleapis.com/compute/v1/projects/(https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, n1-standard-2`.
MachineType *string `json:"machineType,omitempty" tf:"machine_type,omitempty"`
// Specifies the minimum cpu platform for the Instance Group. See (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
MinCPUPlatform *string `json:"minCpuPlatform,omitempty" tf:"min_cpu_platform,omitempty"`
// The number of VM instances in the instance group. For master instance groups, must be set to 1.
NumInstances *float64 `json:"numInstances,omitempty" tf:"num_instances,omitempty"`
// Specifies the preemptibility of the instance group. The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed. The default value for secondary instances is PREEMPTIBLE. Possible values: PREEMPTIBILITY_UNSPECIFIED, NON_PREEMPTIBLE, PREEMPTIBLE
Preemptibility *string `json:"preemptibility,omitempty" tf:"preemptibility,omitempty"`
}
type ConfigMasterConfigObservation struct {
// The Compute Engine accelerator configuration for these instances.
Accelerators []ConfigMasterConfigAcceleratorsObservation `json:"accelerators,omitempty" tf:"accelerators,omitempty"`
// Disk option config settings.
DiskConfig []ConfigMasterConfigDiskConfigObservation `json:"diskConfig,omitempty" tf:"disk_config,omitempty"`
// The Compute Engine image resource used for cluster instances. The URI can represent an image or image family. Image examples: * https://www.googleapis.com/compute/beta/projects/ If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.
Image *string `json:"image,omitempty" tf:"image,omitempty"`
// Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
InstanceNames []*string `json:"instanceNames,omitempty" tf:"instance_names,omitempty"`
// Output only. Specifies that this instance group contains preemptible instances.
IsPreemptible *bool `json:"isPreemptible,omitempty" tf:"is_preemptible,omitempty"`
// The Compute Engine machine type used for cluster instances. A full URL, partial URI, or short name are valid. Examples: * https://www.googleapis.com/compute/v1/projects/(https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, n1-standard-2`.
MachineType *string `json:"machineType,omitempty" tf:"machine_type,omitempty"`
// Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
ManagedGroupConfig []ManagedGroupConfigObservation `json:"managedGroupConfig,omitempty" tf:"managed_group_config,omitempty"`
// Specifies the minimum cpu platform for the Instance Group. See (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
MinCPUPlatform *string `json:"minCpuPlatform,omitempty" tf:"min_cpu_platform,omitempty"`
// The number of VM instances in the instance group. For master instance groups, must be set to 1.
NumInstances *float64 `json:"numInstances,omitempty" tf:"num_instances,omitempty"`
// Specifies the preemptibility of the instance group. The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed. The default value for secondary instances is PREEMPTIBLE. Possible values: PREEMPTIBILITY_UNSPECIFIED, NON_PREEMPTIBLE, PREEMPTIBLE
Preemptibility *string `json:"preemptibility,omitempty" tf:"preemptibility,omitempty"`
}
type ConfigMasterConfigParameters struct {
// The Compute Engine accelerator configuration for these instances.
// +kubebuilder:validation:Optional
Accelerators []ConfigMasterConfigAcceleratorsParameters `json:"accelerators,omitempty" tf:"accelerators,omitempty"`
// Disk option config settings.
// +kubebuilder:validation:Optional
DiskConfig []ConfigMasterConfigDiskConfigParameters `json:"diskConfig,omitempty" tf:"disk_config,omitempty"`
// The Compute Engine image resource used for cluster instances. The URI can represent an image or image family. Image examples: * https://www.googleapis.com/compute/beta/projects/ If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.
// +kubebuilder:validation:Optional
Image *string `json:"image,omitempty" tf:"image,omitempty"`
// The Compute Engine machine type used for cluster instances. A full URL, partial URI, or short name are valid. Examples: * https://www.googleapis.com/compute/v1/projects/(https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, n1-standard-2`.
// +kubebuilder:validation:Optional
MachineType *string `json:"machineType,omitempty" tf:"machine_type,omitempty"`
// Specifies the minimum cpu platform for the Instance Group. See (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
// +kubebuilder:validation:Optional
MinCPUPlatform *string `json:"minCpuPlatform,omitempty" tf:"min_cpu_platform,omitempty"`
// The number of VM instances in the instance group. For master instance groups, must be set to 1.
// +kubebuilder:validation:Optional
NumInstances *float64 `json:"numInstances,omitempty" tf:"num_instances,omitempty"`
// Specifies the preemptibility of the instance group. The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed. The default value for secondary instances is PREEMPTIBLE. Possible values: PREEMPTIBILITY_UNSPECIFIED, NON_PREEMPTIBLE, PREEMPTIBLE
// +kubebuilder:validation:Optional
Preemptibility *string `json:"preemptibility,omitempty" tf:"preemptibility,omitempty"`
}
type ConfigSecondaryWorkerConfigInitParameters struct {
// The Compute Engine accelerator configuration for these instances.
Accelerators []SecondaryWorkerConfigAcceleratorsInitParameters `json:"accelerators,omitempty" tf:"accelerators,omitempty"`
// Disk option config settings.
DiskConfig []SecondaryWorkerConfigDiskConfigInitParameters `json:"diskConfig,omitempty" tf:"disk_config,omitempty"`
// The Compute Engine image resource used for cluster instances. The URI can represent an image or image family. Image examples: * https://www.googleapis.com/compute/beta/projects/ If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.
Image *string `json:"image,omitempty" tf:"image,omitempty"`
// The Compute Engine machine type used for cluster instances. A full URL, partial URI, or short name are valid. Examples: * https://www.googleapis.com/compute/v1/projects/(https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, n1-standard-2`.
MachineType *string `json:"machineType,omitempty" tf:"machine_type,omitempty"`
// Specifies the minimum cpu platform for the Instance Group. See (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
MinCPUPlatform *string `json:"minCpuPlatform,omitempty" tf:"min_cpu_platform,omitempty"`
// The number of VM instances in the instance group. For master instance groups, must be set to 1.
NumInstances *float64 `json:"numInstances,omitempty" tf:"num_instances,omitempty"`
// Specifies the preemptibility of the instance group. The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed. The default value for secondary instances is PREEMPTIBLE. Possible values: PREEMPTIBILITY_UNSPECIFIED, NON_PREEMPTIBLE, PREEMPTIBLE
Preemptibility *string `json:"preemptibility,omitempty" tf:"preemptibility,omitempty"`
}
type ConfigSecondaryWorkerConfigObservation struct {
// The Compute Engine accelerator configuration for these instances.
Accelerators []SecondaryWorkerConfigAcceleratorsObservation `json:"accelerators,omitempty" tf:"accelerators,omitempty"`
// Disk option config settings.
DiskConfig []SecondaryWorkerConfigDiskConfigObservation `json:"diskConfig,omitempty" tf:"disk_config,omitempty"`
// The Compute Engine image resource used for cluster instances. The URI can represent an image or image family. Image examples: * https://www.googleapis.com/compute/beta/projects/ If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.
Image *string `json:"image,omitempty" tf:"image,omitempty"`
// Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
InstanceNames []*string `json:"instanceNames,omitempty" tf:"instance_names,omitempty"`
// Output only. Specifies that this instance group contains preemptible instances.
IsPreemptible *bool `json:"isPreemptible,omitempty" tf:"is_preemptible,omitempty"`
// The Compute Engine machine type used for cluster instances. A full URL, partial URI, or short name are valid. Examples: * https://www.googleapis.com/compute/v1/projects/(https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, n1-standard-2`.
MachineType *string `json:"machineType,omitempty" tf:"machine_type,omitempty"`
// Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
ManagedGroupConfig []SecondaryWorkerConfigManagedGroupConfigObservation `json:"managedGroupConfig,omitempty" tf:"managed_group_config,omitempty"`
// Specifies the minimum cpu platform for the Instance Group. See (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
MinCPUPlatform *string `json:"minCpuPlatform,omitempty" tf:"min_cpu_platform,omitempty"`
// The number of VM instances in the instance group. For master instance groups, must be set to 1.
NumInstances *float64 `json:"numInstances,omitempty" tf:"num_instances,omitempty"`
// Specifies the preemptibility of the instance group. The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed. The default value for secondary instances is PREEMPTIBLE. Possible values: PREEMPTIBILITY_UNSPECIFIED, NON_PREEMPTIBLE, PREEMPTIBLE
Preemptibility *string `json:"preemptibility,omitempty" tf:"preemptibility,omitempty"`
}
type ConfigSecondaryWorkerConfigParameters struct {
// The Compute Engine accelerator configuration for these instances.
// +kubebuilder:validation:Optional
Accelerators []SecondaryWorkerConfigAcceleratorsParameters `json:"accelerators,omitempty" tf:"accelerators,omitempty"`
// Disk option config settings.
// +kubebuilder:validation:Optional
DiskConfig []SecondaryWorkerConfigDiskConfigParameters `json:"diskConfig,omitempty" tf:"disk_config,omitempty"`
// The Compute Engine image resource used for cluster instances. The URI can represent an image or image family. Image examples: * https://www.googleapis.com/compute/beta/projects/ If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.
// +kubebuilder:validation:Optional
Image *string `json:"image,omitempty" tf:"image,omitempty"`
// The Compute Engine machine type used for cluster instances. A full URL, partial URI, or short name are valid. Examples: * https://www.googleapis.com/compute/v1/projects/(https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, n1-standard-2`.
// +kubebuilder:validation:Optional
MachineType *string `json:"machineType,omitempty" tf:"machine_type,omitempty"`
// Specifies the minimum cpu platform for the Instance Group. See (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
// +kubebuilder:validation:Optional
MinCPUPlatform *string `json:"minCpuPlatform,omitempty" tf:"min_cpu_platform,omitempty"`
// The number of VM instances in the instance group. For master instance groups, must be set to 1.
// +kubebuilder:validation:Optional
NumInstances *float64 `json:"numInstances,omitempty" tf:"num_instances,omitempty"`
// Specifies the preemptibility of the instance group. The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed. The default value for secondary instances is PREEMPTIBLE. Possible values: PREEMPTIBILITY_UNSPECIFIED, NON_PREEMPTIBLE, PREEMPTIBLE
// +kubebuilder:validation:Optional
Preemptibility *string `json:"preemptibility,omitempty" tf:"preemptibility,omitempty"`
}
type ConfigSecurityConfigInitParameters struct {
// Kerberos related configuration.
KerberosConfig []SecurityConfigKerberosConfigInitParameters `json:"kerberosConfig,omitempty" tf:"kerberos_config,omitempty"`
}
type ConfigSecurityConfigObservation struct {
// Kerberos related configuration.
KerberosConfig []SecurityConfigKerberosConfigObservation `json:"kerberosConfig,omitempty" tf:"kerberos_config,omitempty"`
}
type ConfigSecurityConfigParameters struct {
// Kerberos related configuration.
// +kubebuilder:validation:Optional
KerberosConfig []SecurityConfigKerberosConfigParameters `json:"kerberosConfig,omitempty" tf:"kerberos_config,omitempty"`
}
type ConfigSoftwareConfigInitParameters struct {
// The version of software inside the cluster. It must be one of the supported Dataproc Versions, such as "1.2" (including a subminor version, such as "1.2.29"), or the "preview" version. If unspecified, it defaults to the latest Debian version.
ImageVersion *string `json:"imageVersion,omitempty" tf:"image_version,omitempty"`
// The set of components to activate on the cluster.
OptionalComponents []*string `json:"optionalComponents,omitempty" tf:"optional_components,omitempty"`
// A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
// +mapType=granular
Properties map[string]*string `json:"properties,omitempty" tf:"properties,omitempty"`
}
type ConfigSoftwareConfigObservation struct {
// The version of software inside the cluster. It must be one of the supported Dataproc Versions, such as "1.2" (including a subminor version, such as "1.2.29"), or the "preview" version. If unspecified, it defaults to the latest Debian version.
ImageVersion *string `json:"imageVersion,omitempty" tf:"image_version,omitempty"`
// The set of components to activate on the cluster.
OptionalComponents []*string `json:"optionalComponents,omitempty" tf:"optional_components,omitempty"`
// A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
// +mapType=granular
Properties map[string]*string `json:"properties,omitempty" tf:"properties,omitempty"`
}
type ConfigSoftwareConfigParameters struct {
// The version of software inside the cluster. It must be one of the supported Dataproc Versions, such as "1.2" (including a subminor version, such as "1.2.29"), or the "preview" version. If unspecified, it defaults to the latest Debian version.
// +kubebuilder:validation:Optional
ImageVersion *string `json:"imageVersion,omitempty" tf:"image_version,omitempty"`
// The set of components to activate on the cluster.
// +kubebuilder:validation:Optional
OptionalComponents []*string `json:"optionalComponents,omitempty" tf:"optional_components,omitempty"`
// A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
// +kubebuilder:validation:Optional
// +mapType=granular
Properties map[string]*string `json:"properties,omitempty" tf:"properties,omitempty"`
}
type ConfigWorkerConfigAcceleratorsInitParameters struct {
// The number of the accelerator cards of this type exposed to this instance.
AcceleratorCount *float64 `json:"acceleratorCount,omitempty" tf:"accelerator_count,omitempty"`
// Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
AcceleratorType *string `json:"acceleratorType,omitempty" tf:"accelerator_type,omitempty"`
}
type ConfigWorkerConfigAcceleratorsObservation struct {
// The number of the accelerator cards of this type exposed to this instance.
AcceleratorCount *float64 `json:"acceleratorCount,omitempty" tf:"accelerator_count,omitempty"`
// Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
AcceleratorType *string `json:"acceleratorType,omitempty" tf:"accelerator_type,omitempty"`
}
type ConfigWorkerConfigAcceleratorsParameters struct {
// The number of the accelerator cards of this type exposed to this instance.
// +kubebuilder:validation:Optional
AcceleratorCount *float64 `json:"acceleratorCount,omitempty" tf:"accelerator_count,omitempty"`
// Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
// +kubebuilder:validation:Optional
AcceleratorType *string `json:"acceleratorType,omitempty" tf:"accelerator_type,omitempty"`
}
type ConfigWorkerConfigDiskConfigInitParameters struct {
// Size in GB of the boot disk (default is 500GB).
BootDiskSizeGb *float64 `json:"bootDiskSizeGb,omitempty" tf:"boot_disk_size_gb,omitempty"`
// Type of the boot disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive).
BootDiskType *string `json:"bootDiskType,omitempty" tf:"boot_disk_type,omitempty"`
// Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
NumLocalSsds *float64 `json:"numLocalSsds,omitempty" tf:"num_local_ssds,omitempty"`
}
type ConfigWorkerConfigDiskConfigObservation struct {
// Size in GB of the boot disk (default is 500GB).
BootDiskSizeGb *float64 `json:"bootDiskSizeGb,omitempty" tf:"boot_disk_size_gb,omitempty"`
// Type of the boot disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive).
BootDiskType *string `json:"bootDiskType,omitempty" tf:"boot_disk_type,omitempty"`
// Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
NumLocalSsds *float64 `json:"numLocalSsds,omitempty" tf:"num_local_ssds,omitempty"`
}
type ConfigWorkerConfigDiskConfigParameters struct {
// Size in GB of the boot disk (default is 500GB).
// +kubebuilder:validation:Optional
BootDiskSizeGb *float64 `json:"bootDiskSizeGb,omitempty" tf:"boot_disk_size_gb,omitempty"`
// Type of the boot disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive).
// +kubebuilder:validation:Optional
BootDiskType *string `json:"bootDiskType,omitempty" tf:"boot_disk_type,omitempty"`
// Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
// +kubebuilder:validation:Optional
NumLocalSsds *float64 `json:"numLocalSsds,omitempty" tf:"num_local_ssds,omitempty"`
}
type ConfigWorkerConfigInitParameters struct {
// The Compute Engine accelerator configuration for these instances.
Accelerators []ConfigWorkerConfigAcceleratorsInitParameters `json:"accelerators,omitempty" tf:"accelerators,omitempty"`
// Disk option config settings.
DiskConfig []ConfigWorkerConfigDiskConfigInitParameters `json:"diskConfig,omitempty" tf:"disk_config,omitempty"`
// The Compute Engine image resource used for cluster instances. The URI can represent an image or image family. Image examples: * https://www.googleapis.com/compute/beta/projects/ If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.
Image *string `json:"image,omitempty" tf:"image,omitempty"`
// The Compute Engine machine type used for cluster instances. A full URL, partial URI, or short name are valid. Examples: * https://www.googleapis.com/compute/v1/projects/(https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, n1-standard-2`.
MachineType *string `json:"machineType,omitempty" tf:"machine_type,omitempty"`
// Specifies the minimum cpu platform for the Instance Group. See (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
MinCPUPlatform *string `json:"minCpuPlatform,omitempty" tf:"min_cpu_platform,omitempty"`
// The number of VM instances in the instance group. For master instance groups, must be set to 1.
NumInstances *float64 `json:"numInstances,omitempty" tf:"num_instances,omitempty"`
// Specifies the preemptibility of the instance group. The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed. The default value for secondary instances is PREEMPTIBLE. Possible values: PREEMPTIBILITY_UNSPECIFIED, NON_PREEMPTIBLE, PREEMPTIBLE
Preemptibility *string `json:"preemptibility,omitempty" tf:"preemptibility,omitempty"`
}
type ConfigWorkerConfigObservation struct {
// The Compute Engine accelerator configuration for these instances.
Accelerators []ConfigWorkerConfigAcceleratorsObservation `json:"accelerators,omitempty" tf:"accelerators,omitempty"`
// Disk option config settings.
DiskConfig []ConfigWorkerConfigDiskConfigObservation `json:"diskConfig,omitempty" tf:"disk_config,omitempty"`
// The Compute Engine image resource used for cluster instances. The URI can represent an image or image family. Image examples: * https://www.googleapis.com/compute/beta/projects/ If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.
Image *string `json:"image,omitempty" tf:"image,omitempty"`
// Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
InstanceNames []*string `json:"instanceNames,omitempty" tf:"instance_names,omitempty"`
// Output only. Specifies that this instance group contains preemptible instances.
IsPreemptible *bool `json:"isPreemptible,omitempty" tf:"is_preemptible,omitempty"`
// The Compute Engine machine type used for cluster instances. A full URL, partial URI, or short name are valid. Examples: * https://www.googleapis.com/compute/v1/projects/(https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, n1-standard-2`.
MachineType *string `json:"machineType,omitempty" tf:"machine_type,omitempty"`
// Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
ManagedGroupConfig []WorkerConfigManagedGroupConfigObservation `json:"managedGroupConfig,omitempty" tf:"managed_group_config,omitempty"`
// Specifies the minimum cpu platform for the Instance Group. See (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
MinCPUPlatform *string `json:"minCpuPlatform,omitempty" tf:"min_cpu_platform,omitempty"`
// The number of VM instances in the instance group. For master instance groups, must be set to 1.
NumInstances *float64 `json:"numInstances,omitempty" tf:"num_instances,omitempty"`
// Specifies the preemptibility of the instance group. The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed. The default value for secondary instances is PREEMPTIBLE. Possible values: PREEMPTIBILITY_UNSPECIFIED, NON_PREEMPTIBLE, PREEMPTIBLE
Preemptibility *string `json:"preemptibility,omitempty" tf:"preemptibility,omitempty"`
}
type ConfigWorkerConfigParameters struct {
// The Compute Engine accelerator configuration for these instances.
// +kubebuilder:validation:Optional
Accelerators []ConfigWorkerConfigAcceleratorsParameters `json:"accelerators,omitempty" tf:"accelerators,omitempty"`
// Disk option config settings.
// +kubebuilder:validation:Optional
DiskConfig []ConfigWorkerConfigDiskConfigParameters `json:"diskConfig,omitempty" tf:"disk_config,omitempty"`
// The Compute Engine image resource used for cluster instances. The URI can represent an image or image family. Image examples: * https://www.googleapis.com/compute/beta/projects/ If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.
// +kubebuilder:validation:Optional
Image *string `json:"image,omitempty" tf:"image,omitempty"`
// The Compute Engine machine type used for cluster instances. A full URL, partial URI, or short name are valid. Examples: * https://www.googleapis.com/compute/v1/projects/(https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, n1-standard-2`.
// +kubebuilder:validation:Optional
MachineType *string `json:"machineType,omitempty" tf:"machine_type,omitempty"`
// Specifies the minimum cpu platform for the Instance Group. See (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
// +kubebuilder:validation:Optional
MinCPUPlatform *string `json:"minCpuPlatform,omitempty" tf:"min_cpu_platform,omitempty"`
// The number of VM instances in the instance group. For master instance groups, must be set to 1.
// +kubebuilder:validation:Optional
NumInstances *float64 `json:"numInstances,omitempty" tf:"num_instances,omitempty"`
// Specifies the preemptibility of the instance group. The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed. The default value for secondary instances is PREEMPTIBLE. Possible values: PREEMPTIBILITY_UNSPECIFIED, NON_PREEMPTIBLE, PREEMPTIBLE
// +kubebuilder:validation:Optional
Preemptibility *string `json:"preemptibility,omitempty" tf:"preemptibility,omitempty"`
}
type GceClusterConfigNodeGroupAffinityInitParameters struct {
// Required. The URI of a sole-tenant /zones/us-central1-a/nodeGroups/node-group-1*node-group-1`
NodeGroup *string `json:"nodeGroup,omitempty" tf:"node_group,omitempty"`
}
type GceClusterConfigNodeGroupAffinityObservation struct {
// Required. The URI of a sole-tenant /zones/us-central1-a/nodeGroups/node-group-1*node-group-1`
NodeGroup *string `json:"nodeGroup,omitempty" tf:"node_group,omitempty"`
}
type GceClusterConfigNodeGroupAffinityParameters struct {
// Required. The URI of a sole-tenant /zones/us-central1-a/nodeGroups/node-group-1*node-group-1`
// +kubebuilder:validation:Optional
NodeGroup *string `json:"nodeGroup" tf:"node_group,omitempty"`
}
type GceClusterConfigReservationAffinityInitParameters struct {
// Type of reservation to consume Possible values: TYPE_UNSPECIFIED, NO_RESERVATION, ANY_RESERVATION, SPECIFIC_RESERVATION
ConsumeReservationType *string `json:"consumeReservationType,omitempty" tf:"consume_reservation_type,omitempty"`
// Corresponds to the label key of reservation resource.
Key *string `json:"key,omitempty" tf:"key,omitempty"`
// Required. List of allowed values for the parameter.
Values []*string `json:"values,omitempty" tf:"values,omitempty"`
}
type GceClusterConfigReservationAffinityObservation struct {
// Type of reservation to consume Possible values: TYPE_UNSPECIFIED, NO_RESERVATION, ANY_RESERVATION, SPECIFIC_RESERVATION
ConsumeReservationType *string `json:"consumeReservationType,omitempty" tf:"consume_reservation_type,omitempty"`
// Corresponds to the label key of reservation resource.
Key *string `json:"key,omitempty" tf:"key,omitempty"`
// Required. List of allowed values for the parameter.
Values []*string `json:"values,omitempty" tf:"values,omitempty"`
}
type GceClusterConfigReservationAffinityParameters struct {
// Type of reservation to consume Possible values: TYPE_UNSPECIFIED, NO_RESERVATION, ANY_RESERVATION, SPECIFIC_RESERVATION
// +kubebuilder:validation:Optional
ConsumeReservationType *string `json:"consumeReservationType,omitempty" tf:"consume_reservation_type,omitempty"`
// Corresponds to the label key of reservation resource.
// +kubebuilder:validation:Optional
Key *string `json:"key,omitempty" tf:"key,omitempty"`
// Required. List of allowed values for the parameter.
// +kubebuilder:validation:Optional
Values []*string `json:"values,omitempty" tf:"values,omitempty"`
}
type GceClusterConfigShieldedInstanceConfigInitParameters struct {
// Defines whether instances have Integrity Monitoring enabled.
EnableIntegrityMonitoring *bool `json:"enableIntegrityMonitoring,omitempty" tf:"enable_integrity_monitoring,omitempty"`
// Defines whether instances have Secure Boot enabled.
EnableSecureBoot *bool `json:"enableSecureBoot,omitempty" tf:"enable_secure_boot,omitempty"`
// Defines whether instances have the vTPM enabled.
EnableVtpm *bool `json:"enableVtpm,omitempty" tf:"enable_vtpm,omitempty"`
}
type GceClusterConfigShieldedInstanceConfigObservation struct {
// Defines whether instances have Integrity Monitoring enabled.
EnableIntegrityMonitoring *bool `json:"enableIntegrityMonitoring,omitempty" tf:"enable_integrity_monitoring,omitempty"`
// Defines whether instances have Secure Boot enabled.
EnableSecureBoot *bool `json:"enableSecureBoot,omitempty" tf:"enable_secure_boot,omitempty"`
// Defines whether instances have the vTPM enabled.
EnableVtpm *bool `json:"enableVtpm,omitempty" tf:"enable_vtpm,omitempty"`
}
type GceClusterConfigShieldedInstanceConfigParameters struct {
// Defines whether instances have Integrity Monitoring enabled.
// +kubebuilder:validation:Optional
EnableIntegrityMonitoring *bool `json:"enableIntegrityMonitoring,omitempty" tf:"enable_integrity_monitoring,omitempty"`
// Defines whether instances have Secure Boot enabled.
// +kubebuilder:validation:Optional
EnableSecureBoot *bool `json:"enableSecureBoot,omitempty" tf:"enable_secure_boot,omitempty"`
// Defines whether instances have the vTPM enabled.
// +kubebuilder:validation:Optional
EnableVtpm *bool `json:"enableVtpm,omitempty" tf:"enable_vtpm,omitempty"`
}
type HadoopJobInitParameters struct {
// HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
ArchiveUris []*string `json:"archiveUris,omitempty" tf:"archive_uris,omitempty"`
// The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
Args []*string `json:"args,omitempty" tf:"args,omitempty"`
// HCFS URIs of files to be placed in the working directory of each executor. Useful for naively parallel tasks.
FileUris []*string `json:"fileUris,omitempty" tf:"file_uris,omitempty"`
// HCFS URIs of jar files to be added to the Spark CLASSPATH.
JarFileUris []*string `json:"jarFileUris,omitempty" tf:"jar_file_uris,omitempty"`
// The runtime log config for job execution.
LoggingConfig []HadoopJobLoggingConfigInitParameters `json:"loggingConfig,omitempty" tf:"logging_config,omitempty"`
// The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris.
MainClass *string `json:"mainClass,omitempty" tf:"main_class,omitempty"`
// The HCFS URI of the jar file that contains the main class.
MainJarFileURI *string `json:"mainJarFileUri,omitempty" tf:"main_jar_file_uri,omitempty"`
// A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
// +mapType=granular
Properties map[string]*string `json:"properties,omitempty" tf:"properties,omitempty"`
}
type HadoopJobLoggingConfigInitParameters struct {
// The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
// +mapType=granular
DriverLogLevels map[string]*string `json:"driverLogLevels,omitempty" tf:"driver_log_levels,omitempty"`
}
type HadoopJobLoggingConfigObservation struct {
// The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
// +mapType=granular
DriverLogLevels map[string]*string `json:"driverLogLevels,omitempty" tf:"driver_log_levels,omitempty"`
}
type HadoopJobLoggingConfigParameters struct {
// The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
// +kubebuilder:validation:Optional
// +mapType=granular
DriverLogLevels map[string]*string `json:"driverLogLevels,omitempty" tf:"driver_log_levels,omitempty"`
}
type HadoopJobObservation struct {
// HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
ArchiveUris []*string `json:"archiveUris,omitempty" tf:"archive_uris,omitempty"`
// The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
Args []*string `json:"args,omitempty" tf:"args,omitempty"`
// HCFS URIs of files to be placed in the working directory of each executor. Useful for naively parallel tasks.
FileUris []*string `json:"fileUris,omitempty" tf:"file_uris,omitempty"`
// HCFS URIs of jar files to be added to the Spark CLASSPATH.
JarFileUris []*string `json:"jarFileUris,omitempty" tf:"jar_file_uris,omitempty"`
// The runtime log config for job execution.
LoggingConfig []HadoopJobLoggingConfigObservation `json:"loggingConfig,omitempty" tf:"logging_config,omitempty"`
// The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris.
MainClass *string `json:"mainClass,omitempty" tf:"main_class,omitempty"`
// The HCFS URI of the jar file that contains the main class.
MainJarFileURI *string `json:"mainJarFileUri,omitempty" tf:"main_jar_file_uri,omitempty"`
// A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
// +mapType=granular
Properties map[string]*string `json:"properties,omitempty" tf:"properties,omitempty"`
}
type HadoopJobParameters struct {
// HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
// +kubebuilder:validation:Optional
ArchiveUris []*string `json:"archiveUris,omitempty" tf:"archive_uris,omitempty"`
// The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
// +kubebuilder:validation:Optional
Args []*string `json:"args,omitempty" tf:"args,omitempty"`
// HCFS URIs of files to be placed in the working directory of each executor. Useful for naively parallel tasks.
// +kubebuilder:validation:Optional
FileUris []*string `json:"fileUris,omitempty" tf:"file_uris,omitempty"`
// HCFS URIs of jar files to be added to the Spark CLASSPATH.
// +kubebuilder:validation:Optional
JarFileUris []*string `json:"jarFileUris,omitempty" tf:"jar_file_uris,omitempty"`
// The runtime log config for job execution.
// +kubebuilder:validation:Optional
LoggingConfig []HadoopJobLoggingConfigParameters `json:"loggingConfig,omitempty" tf:"logging_config,omitempty"`
// The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris.
// +kubebuilder:validation:Optional
MainClass *string `json:"mainClass,omitempty" tf:"main_class,omitempty"`
// The HCFS URI of the jar file that contains the main class.
// +kubebuilder:validation:Optional
MainJarFileURI *string `json:"mainJarFileUri,omitempty" tf:"main_jar_file_uri,omitempty"`
// A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
// +kubebuilder:validation:Optional
// +mapType=granular
Properties map[string]*string `json:"properties,omitempty" tf:"properties,omitempty"`
}
type HiveJobInitParameters struct {
// Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
ContinueOnFailure *bool `json:"continueOnFailure,omitempty" tf:"continue_on_failure,omitempty"`
// HCFS URIs of jar files to be added to the Spark CLASSPATH.
JarFileUris []*string `json:"jarFileUris,omitempty" tf:"jar_file_uris,omitempty"`
// A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
// +mapType=granular
Properties map[string]*string `json:"properties,omitempty" tf:"properties,omitempty"`
// The HCFS URI of the script that contains SQL queries.
QueryFileURI *string `json:"queryFileUri,omitempty" tf:"query_file_uri,omitempty"`
// A list of queries.
QueryList []QueryListInitParameters `json:"queryList,omitempty" tf:"query_list,omitempty"`
// Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";).
// +mapType=granular
ScriptVariables map[string]*string `json:"scriptVariables,omitempty" tf:"script_variables,omitempty"`
}
type HiveJobObservation struct {
// Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
ContinueOnFailure *bool `json:"continueOnFailure,omitempty" tf:"continue_on_failure,omitempty"`