-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
resources.pb.go
executable file
·2395 lines (2151 loc) · 101 KB
/
resources.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 2022 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/edgecontainer/v1/resources.proto
package edgecontainerpb
import (
reflect "reflect"
sync "sync"
_ "google.golang.org/genproto/googleapis/api/annotations"
status "google.golang.org/genproto/googleapis/rpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
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)
)
// Represents the accessibility state of a customer-managed KMS key used for
// CMEK integration.
type KmsKeyState int32
const (
// Unspecified.
KmsKeyState_KMS_KEY_STATE_UNSPECIFIED KmsKeyState = 0
// The key is available for use, and dependent resources should be accessible.
KmsKeyState_KMS_KEY_STATE_KEY_AVAILABLE KmsKeyState = 1
// The key is unavailable for an unspecified reason. Dependent resources may
// be inaccessible.
KmsKeyState_KMS_KEY_STATE_KEY_UNAVAILABLE KmsKeyState = 2
)
// Enum value maps for KmsKeyState.
var (
KmsKeyState_name = map[int32]string{
0: "KMS_KEY_STATE_UNSPECIFIED",
1: "KMS_KEY_STATE_KEY_AVAILABLE",
2: "KMS_KEY_STATE_KEY_UNAVAILABLE",
}
KmsKeyState_value = map[string]int32{
"KMS_KEY_STATE_UNSPECIFIED": 0,
"KMS_KEY_STATE_KEY_AVAILABLE": 1,
"KMS_KEY_STATE_KEY_UNAVAILABLE": 2,
}
)
func (x KmsKeyState) Enum() *KmsKeyState {
p := new(KmsKeyState)
*p = x
return p
}
func (x KmsKeyState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (KmsKeyState) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_edgecontainer_v1_resources_proto_enumTypes[0].Descriptor()
}
func (KmsKeyState) Type() protoreflect.EnumType {
return &file_google_cloud_edgecontainer_v1_resources_proto_enumTypes[0]
}
func (x KmsKeyState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use KmsKeyState.Descriptor instead.
func (KmsKeyState) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_edgecontainer_v1_resources_proto_rawDescGZIP(), []int{0}
}
// Routing mode.
type VpnConnection_BgpRoutingMode int32
const (
// Unknown.
VpnConnection_BGP_ROUTING_MODE_UNSPECIFIED VpnConnection_BgpRoutingMode = 0
// Regional mode.
VpnConnection_REGIONAL VpnConnection_BgpRoutingMode = 1
// Global mode.
VpnConnection_GLOBAL VpnConnection_BgpRoutingMode = 2
)
// Enum value maps for VpnConnection_BgpRoutingMode.
var (
VpnConnection_BgpRoutingMode_name = map[int32]string{
0: "BGP_ROUTING_MODE_UNSPECIFIED",
1: "REGIONAL",
2: "GLOBAL",
}
VpnConnection_BgpRoutingMode_value = map[string]int32{
"BGP_ROUTING_MODE_UNSPECIFIED": 0,
"REGIONAL": 1,
"GLOBAL": 2,
}
)
func (x VpnConnection_BgpRoutingMode) Enum() *VpnConnection_BgpRoutingMode {
p := new(VpnConnection_BgpRoutingMode)
*p = x
return p
}
func (x VpnConnection_BgpRoutingMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (VpnConnection_BgpRoutingMode) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_edgecontainer_v1_resources_proto_enumTypes[1].Descriptor()
}
func (VpnConnection_BgpRoutingMode) Type() protoreflect.EnumType {
return &file_google_cloud_edgecontainer_v1_resources_proto_enumTypes[1]
}
func (x VpnConnection_BgpRoutingMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use VpnConnection_BgpRoutingMode.Descriptor instead.
func (VpnConnection_BgpRoutingMode) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_edgecontainer_v1_resources_proto_rawDescGZIP(), []int{7, 0}
}
// The current connection state.
type VpnConnection_Details_State int32
const (
// Unknown.
VpnConnection_Details_STATE_UNSPECIFIED VpnConnection_Details_State = 0
// Connected.
VpnConnection_Details_STATE_CONNECTED VpnConnection_Details_State = 1
// Still connecting.
VpnConnection_Details_STATE_CONNECTING VpnConnection_Details_State = 2
// Error occurred.
VpnConnection_Details_STATE_ERROR VpnConnection_Details_State = 3
)
// Enum value maps for VpnConnection_Details_State.
var (
VpnConnection_Details_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "STATE_CONNECTED",
2: "STATE_CONNECTING",
3: "STATE_ERROR",
}
VpnConnection_Details_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"STATE_CONNECTED": 1,
"STATE_CONNECTING": 2,
"STATE_ERROR": 3,
}
)
func (x VpnConnection_Details_State) Enum() *VpnConnection_Details_State {
p := new(VpnConnection_Details_State)
*p = x
return p
}
func (x VpnConnection_Details_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (VpnConnection_Details_State) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_edgecontainer_v1_resources_proto_enumTypes[2].Descriptor()
}
func (VpnConnection_Details_State) Type() protoreflect.EnumType {
return &file_google_cloud_edgecontainer_v1_resources_proto_enumTypes[2]
}
func (x VpnConnection_Details_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use VpnConnection_Details_State.Descriptor instead.
func (VpnConnection_Details_State) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_edgecontainer_v1_resources_proto_rawDescGZIP(), []int{7, 1, 0}
}
// A Google Distributed Cloud Edge Kubernetes cluster.
type Cluster struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The resource name of the cluster.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The time when the cluster was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time when the cluster was last updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Labels associated with this resource.
Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Optional. Fleet configuration.
Fleet *Fleet `protobuf:"bytes,11,opt,name=fleet,proto3" json:"fleet,omitempty"`
// Required. Cluster-wide networking configuration.
Networking *ClusterNetworking `protobuf:"bytes,7,opt,name=networking,proto3" json:"networking,omitempty"`
// Required. Immutable. RBAC policy that will be applied and managed by GEC.
Authorization *Authorization `protobuf:"bytes,9,opt,name=authorization,proto3" json:"authorization,omitempty"`
// Optional. The default maximum number of pods per node used if a maximum value is not
// specified explicitly for a node pool in this cluster. If unspecified, the
// Kubernetes default value will be used.
DefaultMaxPodsPerNode int32 `protobuf:"varint,8,opt,name=default_max_pods_per_node,json=defaultMaxPodsPerNode,proto3" json:"default_max_pods_per_node,omitempty"`
// Output only. The IP address of the Kubernetes API server.
Endpoint string `protobuf:"bytes,6,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
// Output only. The PEM-encoded public certificate of the cluster's CA.
ClusterCaCertificate string `protobuf:"bytes,10,opt,name=cluster_ca_certificate,json=clusterCaCertificate,proto3" json:"cluster_ca_certificate,omitempty"`
// Optional. Cluster-wide maintenance policy configuration.
MaintenancePolicy *MaintenancePolicy `protobuf:"bytes,12,opt,name=maintenance_policy,json=maintenancePolicy,proto3" json:"maintenance_policy,omitempty"`
}
func (x *Cluster) Reset() {
*x = Cluster{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_edgecontainer_v1_resources_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Cluster) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Cluster) ProtoMessage() {}
func (x *Cluster) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_edgecontainer_v1_resources_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 Cluster.ProtoReflect.Descriptor instead.
func (*Cluster) Descriptor() ([]byte, []int) {
return file_google_cloud_edgecontainer_v1_resources_proto_rawDescGZIP(), []int{0}
}
func (x *Cluster) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Cluster) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *Cluster) GetUpdateTime() *timestamppb.Timestamp {
if x != nil {
return x.UpdateTime
}
return nil
}
func (x *Cluster) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (x *Cluster) GetFleet() *Fleet {
if x != nil {
return x.Fleet
}
return nil
}
func (x *Cluster) GetNetworking() *ClusterNetworking {
if x != nil {
return x.Networking
}
return nil
}
func (x *Cluster) GetAuthorization() *Authorization {
if x != nil {
return x.Authorization
}
return nil
}
func (x *Cluster) GetDefaultMaxPodsPerNode() int32 {
if x != nil {
return x.DefaultMaxPodsPerNode
}
return 0
}
func (x *Cluster) GetEndpoint() string {
if x != nil {
return x.Endpoint
}
return ""
}
func (x *Cluster) GetClusterCaCertificate() string {
if x != nil {
return x.ClusterCaCertificate
}
return ""
}
func (x *Cluster) GetMaintenancePolicy() *MaintenancePolicy {
if x != nil {
return x.MaintenancePolicy
}
return nil
}
// Cluster-wide networking configuration.
type ClusterNetworking struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. All pods in the cluster are assigned an RFC1918 IPv4 address from these
// blocks. Only a single block is supported. This field cannot be changed
// after creation.
ClusterIpv4CidrBlocks []string `protobuf:"bytes,1,rep,name=cluster_ipv4_cidr_blocks,json=clusterIpv4CidrBlocks,proto3" json:"cluster_ipv4_cidr_blocks,omitempty"`
// Required. All services in the cluster are assigned an RFC1918 IPv4 address from these
// blocks. Only a single block is supported. This field cannot be changed
// after creation.
ServicesIpv4CidrBlocks []string `protobuf:"bytes,2,rep,name=services_ipv4_cidr_blocks,json=servicesIpv4CidrBlocks,proto3" json:"services_ipv4_cidr_blocks,omitempty"`
}
func (x *ClusterNetworking) Reset() {
*x = ClusterNetworking{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_edgecontainer_v1_resources_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ClusterNetworking) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClusterNetworking) ProtoMessage() {}
func (x *ClusterNetworking) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_edgecontainer_v1_resources_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 ClusterNetworking.ProtoReflect.Descriptor instead.
func (*ClusterNetworking) Descriptor() ([]byte, []int) {
return file_google_cloud_edgecontainer_v1_resources_proto_rawDescGZIP(), []int{1}
}
func (x *ClusterNetworking) GetClusterIpv4CidrBlocks() []string {
if x != nil {
return x.ClusterIpv4CidrBlocks
}
return nil
}
func (x *ClusterNetworking) GetServicesIpv4CidrBlocks() []string {
if x != nil {
return x.ServicesIpv4CidrBlocks
}
return nil
}
// Fleet related configuration.
//
// Fleets are a Google Cloud concept for logically organizing clusters,
// letting you use and manage multi-cluster capabilities and apply
// consistent policies across your systems.
type Fleet struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The name of the Fleet host project where this cluster will be registered.
//
// Project names are formatted as
// `projects/<project-number>`.
Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
// Output only. The name of the managed Hub Membership resource associated to this cluster.
//
// Membership names are formatted as
// `projects/<project-number>/locations/global/membership/<cluster-id>`.
Membership string `protobuf:"bytes,2,opt,name=membership,proto3" json:"membership,omitempty"`
}
func (x *Fleet) Reset() {
*x = Fleet{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_edgecontainer_v1_resources_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Fleet) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Fleet) ProtoMessage() {}
func (x *Fleet) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_edgecontainer_v1_resources_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 Fleet.ProtoReflect.Descriptor instead.
func (*Fleet) Descriptor() ([]byte, []int) {
return file_google_cloud_edgecontainer_v1_resources_proto_rawDescGZIP(), []int{2}
}
func (x *Fleet) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
func (x *Fleet) GetMembership() string {
if x != nil {
return x.Membership
}
return ""
}
// A user principal for an RBAC policy.
type ClusterUser struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. An active Google username.
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
}
func (x *ClusterUser) Reset() {
*x = ClusterUser{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_edgecontainer_v1_resources_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ClusterUser) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClusterUser) ProtoMessage() {}
func (x *ClusterUser) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_edgecontainer_v1_resources_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 ClusterUser.ProtoReflect.Descriptor instead.
func (*ClusterUser) Descriptor() ([]byte, []int) {
return file_google_cloud_edgecontainer_v1_resources_proto_rawDescGZIP(), []int{3}
}
func (x *ClusterUser) GetUsername() string {
if x != nil {
return x.Username
}
return ""
}
// RBAC policy that will be applied and managed by GEC.
type Authorization struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. User that will be granted the cluster-admin role on the cluster, providing
// full access to the cluster. Currently, this is a singular field, but will
// be expanded to allow multiple admins in the future.
AdminUsers *ClusterUser `protobuf:"bytes,1,opt,name=admin_users,json=adminUsers,proto3" json:"admin_users,omitempty"`
}
func (x *Authorization) Reset() {
*x = Authorization{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_edgecontainer_v1_resources_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Authorization) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Authorization) ProtoMessage() {}
func (x *Authorization) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_edgecontainer_v1_resources_proto_msgTypes[4]
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 Authorization.ProtoReflect.Descriptor instead.
func (*Authorization) Descriptor() ([]byte, []int) {
return file_google_cloud_edgecontainer_v1_resources_proto_rawDescGZIP(), []int{4}
}
func (x *Authorization) GetAdminUsers() *ClusterUser {
if x != nil {
return x.AdminUsers
}
return nil
}
// A set of Kubernetes nodes in a cluster with common configuration and
// specification.
type NodePool struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The resource name of the node pool.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The time when the node pool was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time when the node pool was last updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Labels associated with this resource.
Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Name of the Google Distributed Cloud Edge zone where this node pool will be
// created. For example: `us-central1-edge-customer-a`.
NodeLocation string `protobuf:"bytes,8,opt,name=node_location,json=nodeLocation,proto3" json:"node_location,omitempty"`
// Required. The number of nodes in the pool.
NodeCount int32 `protobuf:"varint,6,opt,name=node_count,json=nodeCount,proto3" json:"node_count,omitempty"`
// Only machines matching this filter will be allowed to join the node pool.
// The filtering language accepts strings like "name=<name>", and is
// documented in more detail in [AIP-160](https://google.aip.dev/160).
MachineFilter string `protobuf:"bytes,7,opt,name=machine_filter,json=machineFilter,proto3" json:"machine_filter,omitempty"`
// Optional. Local disk encryption options. This field is only used when enabling CMEK
// support.
LocalDiskEncryption *NodePool_LocalDiskEncryption `protobuf:"bytes,9,opt,name=local_disk_encryption,json=localDiskEncryption,proto3" json:"local_disk_encryption,omitempty"`
}
func (x *NodePool) Reset() {
*x = NodePool{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_edgecontainer_v1_resources_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NodePool) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NodePool) ProtoMessage() {}
func (x *NodePool) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_edgecontainer_v1_resources_proto_msgTypes[5]
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 NodePool.ProtoReflect.Descriptor instead.
func (*NodePool) Descriptor() ([]byte, []int) {
return file_google_cloud_edgecontainer_v1_resources_proto_rawDescGZIP(), []int{5}
}
func (x *NodePool) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *NodePool) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *NodePool) GetUpdateTime() *timestamppb.Timestamp {
if x != nil {
return x.UpdateTime
}
return nil
}
func (x *NodePool) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (x *NodePool) GetNodeLocation() string {
if x != nil {
return x.NodeLocation
}
return ""
}
func (x *NodePool) GetNodeCount() int32 {
if x != nil {
return x.NodeCount
}
return 0
}
func (x *NodePool) GetMachineFilter() string {
if x != nil {
return x.MachineFilter
}
return ""
}
func (x *NodePool) GetLocalDiskEncryption() *NodePool_LocalDiskEncryption {
if x != nil {
return x.LocalDiskEncryption
}
return nil
}
// A Google Distributed Cloud Edge machine capable of acting as a Kubernetes
// node.
type Machine struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The resource name of the machine.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The time when the node pool was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time when the node pool was last updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Labels associated with this resource.
Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Canonical resource name of the node that this machine is responsible for
// hosting e.g.
// projects/{project}/locations/{location}/clusters/{cluster_id}/nodePools/{pool_id}/{node},
// Or empty if the machine is not assigned to assume the role of a node.
HostedNode string `protobuf:"bytes,5,opt,name=hosted_node,json=hostedNode,proto3" json:"hosted_node,omitempty"`
// The Google Distributed Cloud Edge zone of this machine.
Zone string `protobuf:"bytes,6,opt,name=zone,proto3" json:"zone,omitempty"`
// Output only. Whether the machine is disabled. If disabled, the machine is unable to
// enter service.
Disabled bool `protobuf:"varint,8,opt,name=disabled,proto3" json:"disabled,omitempty"`
}
func (x *Machine) Reset() {
*x = Machine{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_edgecontainer_v1_resources_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Machine) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Machine) ProtoMessage() {}
func (x *Machine) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_edgecontainer_v1_resources_proto_msgTypes[6]
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 Machine.ProtoReflect.Descriptor instead.
func (*Machine) Descriptor() ([]byte, []int) {
return file_google_cloud_edgecontainer_v1_resources_proto_rawDescGZIP(), []int{6}
}
func (x *Machine) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Machine) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *Machine) GetUpdateTime() *timestamppb.Timestamp {
if x != nil {
return x.UpdateTime
}
return nil
}
func (x *Machine) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (x *Machine) GetHostedNode() string {
if x != nil {
return x.HostedNode
}
return ""
}
func (x *Machine) GetZone() string {
if x != nil {
return x.Zone
}
return ""
}
func (x *Machine) GetDisabled() bool {
if x != nil {
return x.Disabled
}
return false
}
// A VPN connection .
type VpnConnection struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The resource name of VPN connection
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The time when the VPN connection was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time when the VPN connection was last updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Labels associated with this resource.
Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// NAT gateway IP, or WAN IP address. If a customer has multiple NAT IPs, the
// customer needs to configure NAT such that only one external IP maps to the
// GMEC Anthos cluster. This is empty if NAT is not used.
NatGatewayIp string `protobuf:"bytes,5,opt,name=nat_gateway_ip,json=natGatewayIp,proto3" json:"nat_gateway_ip,omitempty"`
// Dynamic routing mode of the VPC network, `regional` or `global`.
//
// Deprecated: Marked as deprecated in google/cloud/edgecontainer/v1/resources.proto.
BgpRoutingMode VpnConnection_BgpRoutingMode `protobuf:"varint,6,opt,name=bgp_routing_mode,json=bgpRoutingMode,proto3,enum=google.cloud.edgecontainer.v1.VpnConnection_BgpRoutingMode" json:"bgp_routing_mode,omitempty"`
// The canonical Cluster name to connect to. It is in the form of
// projects/{project}/locations/{location}/clusters/{cluster}.
Cluster string `protobuf:"bytes,7,opt,name=cluster,proto3" json:"cluster,omitempty"`
// The network ID of VPC to connect to.
Vpc string `protobuf:"bytes,8,opt,name=vpc,proto3" json:"vpc,omitempty"`
// Optional. Project detail of the VPC network. Required if VPC is in a different
// project than the cluster project.
VpcProject *VpnConnection_VpcProject `protobuf:"bytes,11,opt,name=vpc_project,json=vpcProject,proto3" json:"vpc_project,omitempty"`
// Whether this VPN connection has HA enabled on cluster side. If enabled,
// when creating VPN connection we will attempt to use 2 ANG floating IPs.
EnableHighAvailability bool `protobuf:"varint,9,opt,name=enable_high_availability,json=enableHighAvailability,proto3" json:"enable_high_availability,omitempty"`
// Output only. The created connection details.
Details *VpnConnection_Details `protobuf:"bytes,10,opt,name=details,proto3" json:"details,omitempty"`
}
func (x *VpnConnection) Reset() {
*x = VpnConnection{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_edgecontainer_v1_resources_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *VpnConnection) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VpnConnection) ProtoMessage() {}
func (x *VpnConnection) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_edgecontainer_v1_resources_proto_msgTypes[7]
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 VpnConnection.ProtoReflect.Descriptor instead.
func (*VpnConnection) Descriptor() ([]byte, []int) {
return file_google_cloud_edgecontainer_v1_resources_proto_rawDescGZIP(), []int{7}
}
func (x *VpnConnection) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *VpnConnection) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *VpnConnection) GetUpdateTime() *timestamppb.Timestamp {
if x != nil {
return x.UpdateTime
}
return nil
}
func (x *VpnConnection) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (x *VpnConnection) GetNatGatewayIp() string {
if x != nil {
return x.NatGatewayIp
}
return ""
}
// Deprecated: Marked as deprecated in google/cloud/edgecontainer/v1/resources.proto.
func (x *VpnConnection) GetBgpRoutingMode() VpnConnection_BgpRoutingMode {
if x != nil {
return x.BgpRoutingMode
}
return VpnConnection_BGP_ROUTING_MODE_UNSPECIFIED
}
func (x *VpnConnection) GetCluster() string {
if x != nil {
return x.Cluster
}
return ""
}
func (x *VpnConnection) GetVpc() string {
if x != nil {
return x.Vpc
}
return ""
}
func (x *VpnConnection) GetVpcProject() *VpnConnection_VpcProject {
if x != nil {
return x.VpcProject
}
return nil
}
func (x *VpnConnection) GetEnableHighAvailability() bool {
if x != nil {
return x.EnableHighAvailability
}
return false
}
func (x *VpnConnection) GetDetails() *VpnConnection_Details {
if x != nil {
return x.Details
}
return nil
}
// Metadata for a given [google.cloud.location.Location][google.cloud.location.Location].
type LocationMetadata struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The set of available Google Distributed Cloud Edge zones in the location.
// The map is keyed by the lowercase ID of each zone.
AvailableZones map[string]*ZoneMetadata `protobuf:"bytes,1,rep,name=available_zones,json=availableZones,proto3" json:"available_zones,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *LocationMetadata) Reset() {
*x = LocationMetadata{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_edgecontainer_v1_resources_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LocationMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LocationMetadata) ProtoMessage() {}
func (x *LocationMetadata) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_edgecontainer_v1_resources_proto_msgTypes[8]
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 LocationMetadata.ProtoReflect.Descriptor instead.
func (*LocationMetadata) Descriptor() ([]byte, []int) {
return file_google_cloud_edgecontainer_v1_resources_proto_rawDescGZIP(), []int{8}
}
func (x *LocationMetadata) GetAvailableZones() map[string]*ZoneMetadata {
if x != nil {
return x.AvailableZones
}
return nil
}
// A Google Distributed Cloud Edge zone where edge machines are located.
type ZoneMetadata struct {