/
provisioning.pb.go
executable file
·3017 lines (2694 loc) · 128 KB
/
provisioning.pb.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
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.32.0
// protoc v4.25.2
// source: google/cloud/baremetalsolution/v2/provisioning.proto
package baremetalsolutionpb
import (
reflect "reflect"
sync "sync"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// The possible states for this ProvisioningConfig.
type ProvisioningConfig_State int32
const (
// State wasn't specified.
ProvisioningConfig_STATE_UNSPECIFIED ProvisioningConfig_State = 0
// ProvisioningConfig is a draft and can be freely modified.
ProvisioningConfig_DRAFT ProvisioningConfig_State = 1
// ProvisioningConfig was already submitted and cannot be modified.
ProvisioningConfig_SUBMITTED ProvisioningConfig_State = 2
// ProvisioningConfig was in the provisioning state. Initially this state
// comes from the work order table in big query when SNOW is used. Later
// this field can be set by the work order API.
ProvisioningConfig_PROVISIONING ProvisioningConfig_State = 3
// ProvisioningConfig was provisioned, meaning the resources exist.
ProvisioningConfig_PROVISIONED ProvisioningConfig_State = 4
// ProvisioningConfig was validated. A validation tool will be run to
// set this state.
ProvisioningConfig_VALIDATED ProvisioningConfig_State = 5
// ProvisioningConfig was canceled.
ProvisioningConfig_CANCELLED ProvisioningConfig_State = 6
// The request is submitted for provisioning, with error return.
ProvisioningConfig_FAILED ProvisioningConfig_State = 7
)
// Enum value maps for ProvisioningConfig_State.
var (
ProvisioningConfig_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "DRAFT",
2: "SUBMITTED",
3: "PROVISIONING",
4: "PROVISIONED",
5: "VALIDATED",
6: "CANCELLED",
7: "FAILED",
}
ProvisioningConfig_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"DRAFT": 1,
"SUBMITTED": 2,
"PROVISIONING": 3,
"PROVISIONED": 4,
"VALIDATED": 5,
"CANCELLED": 6,
"FAILED": 7,
}
)
func (x ProvisioningConfig_State) Enum() *ProvisioningConfig_State {
p := new(ProvisioningConfig_State)
*p = x
return p
}
func (x ProvisioningConfig_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ProvisioningConfig_State) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_baremetalsolution_v2_provisioning_proto_enumTypes[0].Descriptor()
}
func (ProvisioningConfig_State) Type() protoreflect.EnumType {
return &file_google_cloud_baremetalsolution_v2_provisioning_proto_enumTypes[0]
}
func (x ProvisioningConfig_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ProvisioningConfig_State.Descriptor instead.
func (ProvisioningConfig_State) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_baremetalsolution_v2_provisioning_proto_rawDescGZIP(), []int{0, 0}
}
// The available asset types for intake.
type ProvisioningQuota_AssetType int32
const (
// The unspecified type.
ProvisioningQuota_ASSET_TYPE_UNSPECIFIED ProvisioningQuota_AssetType = 0
// The server asset type.
ProvisioningQuota_ASSET_TYPE_SERVER ProvisioningQuota_AssetType = 1
// The storage asset type.
ProvisioningQuota_ASSET_TYPE_STORAGE ProvisioningQuota_AssetType = 2
// The network asset type.
ProvisioningQuota_ASSET_TYPE_NETWORK ProvisioningQuota_AssetType = 3
)
// Enum value maps for ProvisioningQuota_AssetType.
var (
ProvisioningQuota_AssetType_name = map[int32]string{
0: "ASSET_TYPE_UNSPECIFIED",
1: "ASSET_TYPE_SERVER",
2: "ASSET_TYPE_STORAGE",
3: "ASSET_TYPE_NETWORK",
}
ProvisioningQuota_AssetType_value = map[string]int32{
"ASSET_TYPE_UNSPECIFIED": 0,
"ASSET_TYPE_SERVER": 1,
"ASSET_TYPE_STORAGE": 2,
"ASSET_TYPE_NETWORK": 3,
}
)
func (x ProvisioningQuota_AssetType) Enum() *ProvisioningQuota_AssetType {
p := new(ProvisioningQuota_AssetType)
*p = x
return p
}
func (x ProvisioningQuota_AssetType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ProvisioningQuota_AssetType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_baremetalsolution_v2_provisioning_proto_enumTypes[1].Descriptor()
}
func (ProvisioningQuota_AssetType) Type() protoreflect.EnumType {
return &file_google_cloud_baremetalsolution_v2_provisioning_proto_enumTypes[1]
}
func (x ProvisioningQuota_AssetType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ProvisioningQuota_AssetType.Descriptor instead.
func (ProvisioningQuota_AssetType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_baremetalsolution_v2_provisioning_proto_rawDescGZIP(), []int{3, 0}
}
// The network configuration of the instance.
type InstanceConfig_NetworkConfig int32
const (
// The unspecified network configuration.
InstanceConfig_NETWORKCONFIG_UNSPECIFIED InstanceConfig_NetworkConfig = 0
// Instance part of single client network and single private network.
InstanceConfig_SINGLE_VLAN InstanceConfig_NetworkConfig = 1
// Instance part of multiple (or single) client networks and private
// networks.
InstanceConfig_MULTI_VLAN InstanceConfig_NetworkConfig = 2
)
// Enum value maps for InstanceConfig_NetworkConfig.
var (
InstanceConfig_NetworkConfig_name = map[int32]string{
0: "NETWORKCONFIG_UNSPECIFIED",
1: "SINGLE_VLAN",
2: "MULTI_VLAN",
}
InstanceConfig_NetworkConfig_value = map[string]int32{
"NETWORKCONFIG_UNSPECIFIED": 0,
"SINGLE_VLAN": 1,
"MULTI_VLAN": 2,
}
)
func (x InstanceConfig_NetworkConfig) Enum() *InstanceConfig_NetworkConfig {
p := new(InstanceConfig_NetworkConfig)
*p = x
return p
}
func (x InstanceConfig_NetworkConfig) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (InstanceConfig_NetworkConfig) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_baremetalsolution_v2_provisioning_proto_enumTypes[2].Descriptor()
}
func (InstanceConfig_NetworkConfig) Type() protoreflect.EnumType {
return &file_google_cloud_baremetalsolution_v2_provisioning_proto_enumTypes[2]
}
func (x InstanceConfig_NetworkConfig) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use InstanceConfig_NetworkConfig.Descriptor instead.
func (InstanceConfig_NetworkConfig) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_baremetalsolution_v2_provisioning_proto_rawDescGZIP(), []int{6, 0}
}
// The types of Volumes.
type VolumeConfig_Type int32
const (
// The unspecified type.
VolumeConfig_TYPE_UNSPECIFIED VolumeConfig_Type = 0
// This Volume is on flash.
VolumeConfig_FLASH VolumeConfig_Type = 1
// This Volume is on disk.
VolumeConfig_DISK VolumeConfig_Type = 2
)
// Enum value maps for VolumeConfig_Type.
var (
VolumeConfig_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "FLASH",
2: "DISK",
}
VolumeConfig_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"FLASH": 1,
"DISK": 2,
}
)
func (x VolumeConfig_Type) Enum() *VolumeConfig_Type {
p := new(VolumeConfig_Type)
*p = x
return p
}
func (x VolumeConfig_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (VolumeConfig_Type) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_baremetalsolution_v2_provisioning_proto_enumTypes[3].Descriptor()
}
func (VolumeConfig_Type) Type() protoreflect.EnumType {
return &file_google_cloud_baremetalsolution_v2_provisioning_proto_enumTypes[3]
}
func (x VolumeConfig_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use VolumeConfig_Type.Descriptor instead.
func (VolumeConfig_Type) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_baremetalsolution_v2_provisioning_proto_rawDescGZIP(), []int{7, 0}
}
// The protocol used to access the volume.
type VolumeConfig_Protocol int32
const (
// Unspecified value.
VolumeConfig_PROTOCOL_UNSPECIFIED VolumeConfig_Protocol = 0
// Fibre channel.
VolumeConfig_PROTOCOL_FC VolumeConfig_Protocol = 1
// Network file system.
VolumeConfig_PROTOCOL_NFS VolumeConfig_Protocol = 2
)
// Enum value maps for VolumeConfig_Protocol.
var (
VolumeConfig_Protocol_name = map[int32]string{
0: "PROTOCOL_UNSPECIFIED",
1: "PROTOCOL_FC",
2: "PROTOCOL_NFS",
}
VolumeConfig_Protocol_value = map[string]int32{
"PROTOCOL_UNSPECIFIED": 0,
"PROTOCOL_FC": 1,
"PROTOCOL_NFS": 2,
}
)
func (x VolumeConfig_Protocol) Enum() *VolumeConfig_Protocol {
p := new(VolumeConfig_Protocol)
*p = x
return p
}
func (x VolumeConfig_Protocol) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (VolumeConfig_Protocol) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_baremetalsolution_v2_provisioning_proto_enumTypes[4].Descriptor()
}
func (VolumeConfig_Protocol) Type() protoreflect.EnumType {
return &file_google_cloud_baremetalsolution_v2_provisioning_proto_enumTypes[4]
}
func (x VolumeConfig_Protocol) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use VolumeConfig_Protocol.Descriptor instead.
func (VolumeConfig_Protocol) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_baremetalsolution_v2_provisioning_proto_rawDescGZIP(), []int{7, 1}
}
// Permissions that can granted for an export.
type VolumeConfig_NfsExport_Permissions int32
const (
// Unspecified value.
VolumeConfig_NfsExport_PERMISSIONS_UNSPECIFIED VolumeConfig_NfsExport_Permissions = 0
// Read-only permission.
VolumeConfig_NfsExport_READ_ONLY VolumeConfig_NfsExport_Permissions = 1
// Read-write permission.
VolumeConfig_NfsExport_READ_WRITE VolumeConfig_NfsExport_Permissions = 2
)
// Enum value maps for VolumeConfig_NfsExport_Permissions.
var (
VolumeConfig_NfsExport_Permissions_name = map[int32]string{
0: "PERMISSIONS_UNSPECIFIED",
1: "READ_ONLY",
2: "READ_WRITE",
}
VolumeConfig_NfsExport_Permissions_value = map[string]int32{
"PERMISSIONS_UNSPECIFIED": 0,
"READ_ONLY": 1,
"READ_WRITE": 2,
}
)
func (x VolumeConfig_NfsExport_Permissions) Enum() *VolumeConfig_NfsExport_Permissions {
p := new(VolumeConfig_NfsExport_Permissions)
*p = x
return p
}
func (x VolumeConfig_NfsExport_Permissions) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (VolumeConfig_NfsExport_Permissions) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_baremetalsolution_v2_provisioning_proto_enumTypes[5].Descriptor()
}
func (VolumeConfig_NfsExport_Permissions) Type() protoreflect.EnumType {
return &file_google_cloud_baremetalsolution_v2_provisioning_proto_enumTypes[5]
}
func (x VolumeConfig_NfsExport_Permissions) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use VolumeConfig_NfsExport_Permissions.Descriptor instead.
func (VolumeConfig_NfsExport_Permissions) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_baremetalsolution_v2_provisioning_proto_rawDescGZIP(), []int{7, 1, 0}
}
// Network type.
type NetworkConfig_Type int32
const (
// Unspecified value.
NetworkConfig_TYPE_UNSPECIFIED NetworkConfig_Type = 0
// Client network, that is a network peered to a GCP VPC.
NetworkConfig_CLIENT NetworkConfig_Type = 1
// Private network, that is a network local to the BMS POD.
NetworkConfig_PRIVATE NetworkConfig_Type = 2
)
// Enum value maps for NetworkConfig_Type.
var (
NetworkConfig_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "CLIENT",
2: "PRIVATE",
}
NetworkConfig_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"CLIENT": 1,
"PRIVATE": 2,
}
)
func (x NetworkConfig_Type) Enum() *NetworkConfig_Type {
p := new(NetworkConfig_Type)
*p = x
return p
}
func (x NetworkConfig_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (NetworkConfig_Type) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_baremetalsolution_v2_provisioning_proto_enumTypes[6].Descriptor()
}
func (NetworkConfig_Type) Type() protoreflect.EnumType {
return &file_google_cloud_baremetalsolution_v2_provisioning_proto_enumTypes[6]
}
func (x NetworkConfig_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use NetworkConfig_Type.Descriptor instead.
func (NetworkConfig_Type) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_baremetalsolution_v2_provisioning_proto_rawDescGZIP(), []int{8, 0}
}
// Interconnect bandwidth.
type NetworkConfig_Bandwidth int32
const (
// Unspecified value.
NetworkConfig_BANDWIDTH_UNSPECIFIED NetworkConfig_Bandwidth = 0
// 1 Gbps.
NetworkConfig_BW_1_GBPS NetworkConfig_Bandwidth = 1
// 2 Gbps.
NetworkConfig_BW_2_GBPS NetworkConfig_Bandwidth = 2
// 5 Gbps.
NetworkConfig_BW_5_GBPS NetworkConfig_Bandwidth = 3
// 10 Gbps.
NetworkConfig_BW_10_GBPS NetworkConfig_Bandwidth = 4
)
// Enum value maps for NetworkConfig_Bandwidth.
var (
NetworkConfig_Bandwidth_name = map[int32]string{
0: "BANDWIDTH_UNSPECIFIED",
1: "BW_1_GBPS",
2: "BW_2_GBPS",
3: "BW_5_GBPS",
4: "BW_10_GBPS",
}
NetworkConfig_Bandwidth_value = map[string]int32{
"BANDWIDTH_UNSPECIFIED": 0,
"BW_1_GBPS": 1,
"BW_2_GBPS": 2,
"BW_5_GBPS": 3,
"BW_10_GBPS": 4,
}
)
func (x NetworkConfig_Bandwidth) Enum() *NetworkConfig_Bandwidth {
p := new(NetworkConfig_Bandwidth)
*p = x
return p
}
func (x NetworkConfig_Bandwidth) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (NetworkConfig_Bandwidth) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_baremetalsolution_v2_provisioning_proto_enumTypes[7].Descriptor()
}
func (NetworkConfig_Bandwidth) Type() protoreflect.EnumType {
return &file_google_cloud_baremetalsolution_v2_provisioning_proto_enumTypes[7]
}
func (x NetworkConfig_Bandwidth) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use NetworkConfig_Bandwidth.Descriptor instead.
func (NetworkConfig_Bandwidth) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_baremetalsolution_v2_provisioning_proto_rawDescGZIP(), []int{8, 1}
}
// Service network block.
type NetworkConfig_ServiceCidr int32
const (
// Unspecified value.
NetworkConfig_SERVICE_CIDR_UNSPECIFIED NetworkConfig_ServiceCidr = 0
// Services are disabled for the given network.
NetworkConfig_DISABLED NetworkConfig_ServiceCidr = 1
// Use the highest /26 block of the network to host services.
NetworkConfig_HIGH_26 NetworkConfig_ServiceCidr = 2
// Use the highest /27 block of the network to host services.
NetworkConfig_HIGH_27 NetworkConfig_ServiceCidr = 3
// Use the highest /28 block of the network to host services.
NetworkConfig_HIGH_28 NetworkConfig_ServiceCidr = 4
)
// Enum value maps for NetworkConfig_ServiceCidr.
var (
NetworkConfig_ServiceCidr_name = map[int32]string{
0: "SERVICE_CIDR_UNSPECIFIED",
1: "DISABLED",
2: "HIGH_26",
3: "HIGH_27",
4: "HIGH_28",
}
NetworkConfig_ServiceCidr_value = map[string]int32{
"SERVICE_CIDR_UNSPECIFIED": 0,
"DISABLED": 1,
"HIGH_26": 2,
"HIGH_27": 3,
"HIGH_28": 4,
}
)
func (x NetworkConfig_ServiceCidr) Enum() *NetworkConfig_ServiceCidr {
p := new(NetworkConfig_ServiceCidr)
*p = x
return p
}
func (x NetworkConfig_ServiceCidr) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (NetworkConfig_ServiceCidr) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_baremetalsolution_v2_provisioning_proto_enumTypes[8].Descriptor()
}
func (NetworkConfig_ServiceCidr) Type() protoreflect.EnumType {
return &file_google_cloud_baremetalsolution_v2_provisioning_proto_enumTypes[8]
}
func (x NetworkConfig_ServiceCidr) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use NetworkConfig_ServiceCidr.Descriptor instead.
func (NetworkConfig_ServiceCidr) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_baremetalsolution_v2_provisioning_proto_rawDescGZIP(), []int{8, 2}
}
// A provisioning configuration.
type ProvisioningConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Output only. The system-generated name of the provisioning config. This
// follows the UUID format.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Instances to be created.
Instances []*InstanceConfig `protobuf:"bytes,2,rep,name=instances,proto3" json:"instances,omitempty"`
// Networks to be created.
Networks []*NetworkConfig `protobuf:"bytes,3,rep,name=networks,proto3" json:"networks,omitempty"`
// Volumes to be created.
Volumes []*VolumeConfig `protobuf:"bytes,4,rep,name=volumes,proto3" json:"volumes,omitempty"`
// A generated ticket id to track provisioning request.
TicketId string `protobuf:"bytes,5,opt,name=ticket_id,json=ticketId,proto3" json:"ticket_id,omitempty"`
// A service account to enable customers to access instance credentials upon
// handover.
HandoverServiceAccount string `protobuf:"bytes,6,opt,name=handover_service_account,json=handoverServiceAccount,proto3" json:"handover_service_account,omitempty"`
// Email provided to send a confirmation with provisioning config to.
// Deprecated in favour of email field in request messages.
//
// Deprecated: Marked as deprecated in google/cloud/baremetalsolution/v2/provisioning.proto.
Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"`
// Output only. State of ProvisioningConfig.
State ProvisioningConfig_State `protobuf:"varint,8,opt,name=state,proto3,enum=google.cloud.baremetalsolution.v2.ProvisioningConfig_State" json:"state,omitempty"`
// Optional. Location name of this ProvisioningConfig.
// It is optional only for Intake UI transition period.
Location string `protobuf:"bytes,9,opt,name=location,proto3" json:"location,omitempty"`
// Output only. Last update timestamp.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. URI to Cloud Console UI view of this provisioning config.
CloudConsoleUri string `protobuf:"bytes,11,opt,name=cloud_console_uri,json=cloudConsoleUri,proto3" json:"cloud_console_uri,omitempty"`
// If true, VPC SC is enabled for the cluster.
VpcScEnabled bool `protobuf:"varint,12,opt,name=vpc_sc_enabled,json=vpcScEnabled,proto3" json:"vpc_sc_enabled,omitempty"`
// Optional status messages associated with the FAILED state.
StatusMessage string `protobuf:"bytes,13,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
// Optional. The user-defined identifier of the provisioning config.
CustomId string `protobuf:"bytes,14,opt,name=custom_id,json=customId,proto3" json:"custom_id,omitempty"`
}
func (x *ProvisioningConfig) Reset() {
*x = ProvisioningConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_baremetalsolution_v2_provisioning_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ProvisioningConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ProvisioningConfig) ProtoMessage() {}
func (x *ProvisioningConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_baremetalsolution_v2_provisioning_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ProvisioningConfig.ProtoReflect.Descriptor instead.
func (*ProvisioningConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_baremetalsolution_v2_provisioning_proto_rawDescGZIP(), []int{0}
}
func (x *ProvisioningConfig) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *ProvisioningConfig) GetInstances() []*InstanceConfig {
if x != nil {
return x.Instances
}
return nil
}
func (x *ProvisioningConfig) GetNetworks() []*NetworkConfig {
if x != nil {
return x.Networks
}
return nil
}
func (x *ProvisioningConfig) GetVolumes() []*VolumeConfig {
if x != nil {
return x.Volumes
}
return nil
}
func (x *ProvisioningConfig) GetTicketId() string {
if x != nil {
return x.TicketId
}
return ""
}
func (x *ProvisioningConfig) GetHandoverServiceAccount() string {
if x != nil {
return x.HandoverServiceAccount
}
return ""
}
// Deprecated: Marked as deprecated in google/cloud/baremetalsolution/v2/provisioning.proto.
func (x *ProvisioningConfig) GetEmail() string {
if x != nil {
return x.Email
}
return ""
}
func (x *ProvisioningConfig) GetState() ProvisioningConfig_State {
if x != nil {
return x.State
}
return ProvisioningConfig_STATE_UNSPECIFIED
}
func (x *ProvisioningConfig) GetLocation() string {
if x != nil {
return x.Location
}
return ""
}
func (x *ProvisioningConfig) GetUpdateTime() *timestamppb.Timestamp {
if x != nil {
return x.UpdateTime
}
return nil
}
func (x *ProvisioningConfig) GetCloudConsoleUri() string {
if x != nil {
return x.CloudConsoleUri
}
return ""
}
func (x *ProvisioningConfig) GetVpcScEnabled() bool {
if x != nil {
return x.VpcScEnabled
}
return false
}
func (x *ProvisioningConfig) GetStatusMessage() string {
if x != nil {
return x.StatusMessage
}
return ""
}
func (x *ProvisioningConfig) GetCustomId() string {
if x != nil {
return x.CustomId
}
return ""
}
// Request for SubmitProvisioningConfig.
type SubmitProvisioningConfigRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The parent project and location containing the
// ProvisioningConfig.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The ProvisioningConfig to create.
ProvisioningConfig *ProvisioningConfig `protobuf:"bytes,2,opt,name=provisioning_config,json=provisioningConfig,proto3" json:"provisioning_config,omitempty"`
// Optional. Email provided to send a confirmation with provisioning config
// to.
Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
}
func (x *SubmitProvisioningConfigRequest) Reset() {
*x = SubmitProvisioningConfigRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_baremetalsolution_v2_provisioning_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SubmitProvisioningConfigRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SubmitProvisioningConfigRequest) ProtoMessage() {}
func (x *SubmitProvisioningConfigRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_baremetalsolution_v2_provisioning_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SubmitProvisioningConfigRequest.ProtoReflect.Descriptor instead.
func (*SubmitProvisioningConfigRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_baremetalsolution_v2_provisioning_proto_rawDescGZIP(), []int{1}
}
func (x *SubmitProvisioningConfigRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *SubmitProvisioningConfigRequest) GetProvisioningConfig() *ProvisioningConfig {
if x != nil {
return x.ProvisioningConfig
}
return nil
}
func (x *SubmitProvisioningConfigRequest) GetEmail() string {
if x != nil {
return x.Email
}
return ""
}
// Response for SubmitProvisioningConfig.
type SubmitProvisioningConfigResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The submitted provisioning config.
ProvisioningConfig *ProvisioningConfig `protobuf:"bytes,1,opt,name=provisioning_config,json=provisioningConfig,proto3" json:"provisioning_config,omitempty"`
}
func (x *SubmitProvisioningConfigResponse) Reset() {
*x = SubmitProvisioningConfigResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_baremetalsolution_v2_provisioning_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SubmitProvisioningConfigResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SubmitProvisioningConfigResponse) ProtoMessage() {}
func (x *SubmitProvisioningConfigResponse) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_baremetalsolution_v2_provisioning_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SubmitProvisioningConfigResponse.ProtoReflect.Descriptor instead.
func (*SubmitProvisioningConfigResponse) Descriptor() ([]byte, []int) {
return file_google_cloud_baremetalsolution_v2_provisioning_proto_rawDescGZIP(), []int{2}
}
func (x *SubmitProvisioningConfigResponse) GetProvisioningConfig() *ProvisioningConfig {
if x != nil {
return x.ProvisioningConfig
}
return nil
}
// A provisioning quota for a given project.
type ProvisioningQuota struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Output only. The name of the provisioning quota.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The asset type of this provisioning quota.
AssetType ProvisioningQuota_AssetType `protobuf:"varint,2,opt,name=asset_type,json=assetType,proto3,enum=google.cloud.baremetalsolution.v2.ProvisioningQuota_AssetType" json:"asset_type,omitempty"`
// The gcp service of the provisioning quota.
GcpService string `protobuf:"bytes,3,opt,name=gcp_service,json=gcpService,proto3" json:"gcp_service,omitempty"`
// The specific location of the provisioining quota.
Location string `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"`
// The available count of the provisioning quota.
AvailableCount int32 `protobuf:"varint,5,opt,name=available_count,json=availableCount,proto3" json:"available_count,omitempty"`
// The quota of one asset type.
//
// Types that are assignable to Quota:
//
// *ProvisioningQuota_InstanceQuota
Quota isProvisioningQuota_Quota `protobuf_oneof:"quota"`
// Available quantity based on asset type.
//
// Types that are assignable to Availability:
//
// *ProvisioningQuota_ServerCount
// *ProvisioningQuota_NetworkBandwidth
// *ProvisioningQuota_StorageGib
Availability isProvisioningQuota_Availability `protobuf_oneof:"availability"`
}
func (x *ProvisioningQuota) Reset() {
*x = ProvisioningQuota{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_baremetalsolution_v2_provisioning_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ProvisioningQuota) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ProvisioningQuota) ProtoMessage() {}
func (x *ProvisioningQuota) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_baremetalsolution_v2_provisioning_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ProvisioningQuota.ProtoReflect.Descriptor instead.
func (*ProvisioningQuota) Descriptor() ([]byte, []int) {
return file_google_cloud_baremetalsolution_v2_provisioning_proto_rawDescGZIP(), []int{3}
}
func (x *ProvisioningQuota) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *ProvisioningQuota) GetAssetType() ProvisioningQuota_AssetType {
if x != nil {
return x.AssetType
}
return ProvisioningQuota_ASSET_TYPE_UNSPECIFIED
}
func (x *ProvisioningQuota) GetGcpService() string {
if x != nil {
return x.GcpService
}
return ""
}
func (x *ProvisioningQuota) GetLocation() string {
if x != nil {
return x.Location
}
return ""
}
func (x *ProvisioningQuota) GetAvailableCount() int32 {
if x != nil {
return x.AvailableCount
}
return 0
}
func (m *ProvisioningQuota) GetQuota() isProvisioningQuota_Quota {
if m != nil {
return m.Quota
}
return nil
}
func (x *ProvisioningQuota) GetInstanceQuota() *InstanceQuota {
if x, ok := x.GetQuota().(*ProvisioningQuota_InstanceQuota); ok {
return x.InstanceQuota
}
return nil
}
func (m *ProvisioningQuota) GetAvailability() isProvisioningQuota_Availability {
if m != nil {
return m.Availability
}
return nil
}
func (x *ProvisioningQuota) GetServerCount() int64 {
if x, ok := x.GetAvailability().(*ProvisioningQuota_ServerCount); ok {
return x.ServerCount
}
return 0
}
func (x *ProvisioningQuota) GetNetworkBandwidth() int64 {
if x, ok := x.GetAvailability().(*ProvisioningQuota_NetworkBandwidth); ok {
return x.NetworkBandwidth
}
return 0
}
func (x *ProvisioningQuota) GetStorageGib() int64 {
if x, ok := x.GetAvailability().(*ProvisioningQuota_StorageGib); ok {
return x.StorageGib
}
return 0
}
type isProvisioningQuota_Quota interface {
isProvisioningQuota_Quota()
}
type ProvisioningQuota_InstanceQuota struct {
// Instance quota.
InstanceQuota *InstanceQuota `protobuf:"bytes,6,opt,name=instance_quota,json=instanceQuota,proto3,oneof"`