/
cluster.pb.go
1541 lines (1383 loc) · 67.3 KB
/
cluster.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.29.0
// protoc v3.17.3
// source: yandex/cloud/mdb/greenplum/v1/cluster.proto
package greenplum
import (
_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
timeofday "google.golang.org/genproto/googleapis/type/timeofday"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
reflect "reflect"
sync "sync"
)
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)
)
type Cluster_Environment int32
const (
Cluster_ENVIRONMENT_UNSPECIFIED Cluster_Environment = 0
// Stable environment with a conservative update policy: only hotfixes are applied during regular maintenance.
Cluster_PRODUCTION Cluster_Environment = 1
// Environment with more aggressive update policy: new versions are rolled out irrespective of backward compatibility.
Cluster_PRESTABLE Cluster_Environment = 2
)
// Enum value maps for Cluster_Environment.
var (
Cluster_Environment_name = map[int32]string{
0: "ENVIRONMENT_UNSPECIFIED",
1: "PRODUCTION",
2: "PRESTABLE",
}
Cluster_Environment_value = map[string]int32{
"ENVIRONMENT_UNSPECIFIED": 0,
"PRODUCTION": 1,
"PRESTABLE": 2,
}
)
func (x Cluster_Environment) Enum() *Cluster_Environment {
p := new(Cluster_Environment)
*p = x
return p
}
func (x Cluster_Environment) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Cluster_Environment) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_mdb_greenplum_v1_cluster_proto_enumTypes[0].Descriptor()
}
func (Cluster_Environment) Type() protoreflect.EnumType {
return &file_yandex_cloud_mdb_greenplum_v1_cluster_proto_enumTypes[0]
}
func (x Cluster_Environment) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Cluster_Environment.Descriptor instead.
func (Cluster_Environment) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_mdb_greenplum_v1_cluster_proto_rawDescGZIP(), []int{0, 0}
}
type Cluster_Health int32
const (
// Health of the cluster is unknown ([Host.health] for every host in the cluster is UNKNOWN).
Cluster_HEALTH_UNKNOWN Cluster_Health = 0
// Cluster is working normally ([Host.health] for every host in the cluster is ALIVE).
Cluster_ALIVE Cluster_Health = 1
// Cluster is inoperable ([Host.health] for every host in the cluster is DEAD).
Cluster_DEAD Cluster_Health = 2
// Cluster is working below capacity ([Host.health] for at least one host in the cluster is not ALIVE).
Cluster_DEGRADED Cluster_Health = 3
// Cluster is working below capacity ([Host.health] for at least one host in the cluster is UNBALANCED).
Cluster_UNBALANCED Cluster_Health = 4
)
// Enum value maps for Cluster_Health.
var (
Cluster_Health_name = map[int32]string{
0: "HEALTH_UNKNOWN",
1: "ALIVE",
2: "DEAD",
3: "DEGRADED",
4: "UNBALANCED",
}
Cluster_Health_value = map[string]int32{
"HEALTH_UNKNOWN": 0,
"ALIVE": 1,
"DEAD": 2,
"DEGRADED": 3,
"UNBALANCED": 4,
}
)
func (x Cluster_Health) Enum() *Cluster_Health {
p := new(Cluster_Health)
*p = x
return p
}
func (x Cluster_Health) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Cluster_Health) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_mdb_greenplum_v1_cluster_proto_enumTypes[1].Descriptor()
}
func (Cluster_Health) Type() protoreflect.EnumType {
return &file_yandex_cloud_mdb_greenplum_v1_cluster_proto_enumTypes[1]
}
func (x Cluster_Health) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Cluster_Health.Descriptor instead.
func (Cluster_Health) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_mdb_greenplum_v1_cluster_proto_rawDescGZIP(), []int{0, 1}
}
type Cluster_Status int32
const (
// Cluster state is unknown.
Cluster_STATUS_UNKNOWN Cluster_Status = 0
// Cluster is being created.
Cluster_CREATING Cluster_Status = 1
// Cluster is running normally.
Cluster_RUNNING Cluster_Status = 2
// Cluster has encountered a problem and cannot operate.
Cluster_ERROR Cluster_Status = 3
// Cluster is being updated.
Cluster_UPDATING Cluster_Status = 4
// Cluster is stopping.
Cluster_STOPPING Cluster_Status = 5
// Cluster has stopped.
Cluster_STOPPED Cluster_Status = 6
// Cluster is starting.
Cluster_STARTING Cluster_Status = 7
)
// Enum value maps for Cluster_Status.
var (
Cluster_Status_name = map[int32]string{
0: "STATUS_UNKNOWN",
1: "CREATING",
2: "RUNNING",
3: "ERROR",
4: "UPDATING",
5: "STOPPING",
6: "STOPPED",
7: "STARTING",
}
Cluster_Status_value = map[string]int32{
"STATUS_UNKNOWN": 0,
"CREATING": 1,
"RUNNING": 2,
"ERROR": 3,
"UPDATING": 4,
"STOPPING": 5,
"STOPPED": 6,
"STARTING": 7,
}
)
func (x Cluster_Status) Enum() *Cluster_Status {
p := new(Cluster_Status)
*p = x
return p
}
func (x Cluster_Status) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Cluster_Status) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_mdb_greenplum_v1_cluster_proto_enumTypes[2].Descriptor()
}
func (Cluster_Status) Type() protoreflect.EnumType {
return &file_yandex_cloud_mdb_greenplum_v1_cluster_proto_enumTypes[2]
}
func (x Cluster_Status) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Cluster_Status.Descriptor instead.
func (Cluster_Status) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_mdb_greenplum_v1_cluster_proto_rawDescGZIP(), []int{0, 2}
}
// A Greenplum® cluster resource.
type Cluster struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the Greenplum® cluster.
// This ID is assigned by the platform at the moment of cluster creation.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// ID of the folder that the Greenplum® cluster belongs to.
FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
// Time when the cluster was created.
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// Name of the Greenplum® cluster.
// The name is unique within the folder.
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
// Greenplum® cluster configuration.
Config *GreenplumConfig `protobuf:"bytes,5,opt,name=config,proto3" json:"config,omitempty"`
// Description of the Greenplum® cluster.
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
// Custom labels for the Greenplum® cluster as `key:value` pairs. Maximum 64 labels per resource.
Labels map[string]string `protobuf:"bytes,7,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Deployment environment of the Greenplum® cluster.
Environment Cluster_Environment `protobuf:"varint,8,opt,name=environment,proto3,enum=yandex.cloud.mdb.greenplum.v1.Cluster_Environment" json:"environment,omitempty"`
// Description of monitoring systems relevant to the Greenplum® cluster.
Monitoring []*Monitoring `protobuf:"bytes,9,rep,name=monitoring,proto3" json:"monitoring,omitempty"`
// Configuration of the Greenplum® master subcluster.
MasterConfig *MasterSubclusterConfig `protobuf:"bytes,10,opt,name=master_config,json=masterConfig,proto3" json:"master_config,omitempty"`
// Configuration of the Greenplum® segment subcluster.
SegmentConfig *SegmentSubclusterConfig `protobuf:"bytes,11,opt,name=segment_config,json=segmentConfig,proto3" json:"segment_config,omitempty"`
// Number of hosts in the master subcluster.
MasterHostCount int64 `protobuf:"varint,12,opt,name=master_host_count,json=masterHostCount,proto3" json:"master_host_count,omitempty"`
// Number of hosts in the segment subcluster.
SegmentHostCount int64 `protobuf:"varint,13,opt,name=segment_host_count,json=segmentHostCount,proto3" json:"segment_host_count,omitempty"`
// Number of segments per host.
SegmentInHost int64 `protobuf:"varint,14,opt,name=segment_in_host,json=segmentInHost,proto3" json:"segment_in_host,omitempty"`
// ID of the cloud network that the cluster belongs to.
NetworkId string `protobuf:"bytes,15,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"`
// Aggregated cluster health.
Health Cluster_Health `protobuf:"varint,16,opt,name=health,proto3,enum=yandex.cloud.mdb.greenplum.v1.Cluster_Health" json:"health,omitempty"`
// Current state of the cluster.
Status Cluster_Status `protobuf:"varint,17,opt,name=status,proto3,enum=yandex.cloud.mdb.greenplum.v1.Cluster_Status" json:"status,omitempty"`
// A Greenplum® cluster maintenance window. Should be defined by either one of the two options.
MaintenanceWindow *MaintenanceWindow `protobuf:"bytes,18,opt,name=maintenance_window,json=maintenanceWindow,proto3" json:"maintenance_window,omitempty"`
// Maintenance operation planned at nearest [maintenance_window].
PlannedOperation *MaintenanceOperation `protobuf:"bytes,19,opt,name=planned_operation,json=plannedOperation,proto3" json:"planned_operation,omitempty"`
// User security groups.
SecurityGroupIds []string `protobuf:"bytes,20,rep,name=security_group_ids,json=securityGroupIds,proto3" json:"security_group_ids,omitempty"`
// Owner user name.
UserName string `protobuf:"bytes,21,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
// Determines whether the cluster is protected from being deleted.
DeletionProtection bool `protobuf:"varint,22,opt,name=deletion_protection,json=deletionProtection,proto3" json:"deletion_protection,omitempty"`
// Host groups hosting VMs of the cluster.
HostGroupIds []string `protobuf:"bytes,23,rep,name=host_group_ids,json=hostGroupIds,proto3" json:"host_group_ids,omitempty"`
// Greenplum® and Odyssey® configuration.
ClusterConfig *ClusterConfigSet `protobuf:"bytes,24,opt,name=cluster_config,json=clusterConfig,proto3" json:"cluster_config,omitempty"`
// Cloud storage settings
CloudStorage *CloudStorage `protobuf:"bytes,26,opt,name=cloud_storage,json=cloudStorage,proto3" json:"cloud_storage,omitempty"`
}
func (x *Cluster) Reset() {
*x = Cluster{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_mdb_greenplum_v1_cluster_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_yandex_cloud_mdb_greenplum_v1_cluster_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_yandex_cloud_mdb_greenplum_v1_cluster_proto_rawDescGZIP(), []int{0}
}
func (x *Cluster) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Cluster) GetFolderId() string {
if x != nil {
return x.FolderId
}
return ""
}
func (x *Cluster) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *Cluster) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Cluster) GetConfig() *GreenplumConfig {
if x != nil {
return x.Config
}
return nil
}
func (x *Cluster) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *Cluster) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (x *Cluster) GetEnvironment() Cluster_Environment {
if x != nil {
return x.Environment
}
return Cluster_ENVIRONMENT_UNSPECIFIED
}
func (x *Cluster) GetMonitoring() []*Monitoring {
if x != nil {
return x.Monitoring
}
return nil
}
func (x *Cluster) GetMasterConfig() *MasterSubclusterConfig {
if x != nil {
return x.MasterConfig
}
return nil
}
func (x *Cluster) GetSegmentConfig() *SegmentSubclusterConfig {
if x != nil {
return x.SegmentConfig
}
return nil
}
func (x *Cluster) GetMasterHostCount() int64 {
if x != nil {
return x.MasterHostCount
}
return 0
}
func (x *Cluster) GetSegmentHostCount() int64 {
if x != nil {
return x.SegmentHostCount
}
return 0
}
func (x *Cluster) GetSegmentInHost() int64 {
if x != nil {
return x.SegmentInHost
}
return 0
}
func (x *Cluster) GetNetworkId() string {
if x != nil {
return x.NetworkId
}
return ""
}
func (x *Cluster) GetHealth() Cluster_Health {
if x != nil {
return x.Health
}
return Cluster_HEALTH_UNKNOWN
}
func (x *Cluster) GetStatus() Cluster_Status {
if x != nil {
return x.Status
}
return Cluster_STATUS_UNKNOWN
}
func (x *Cluster) GetMaintenanceWindow() *MaintenanceWindow {
if x != nil {
return x.MaintenanceWindow
}
return nil
}
func (x *Cluster) GetPlannedOperation() *MaintenanceOperation {
if x != nil {
return x.PlannedOperation
}
return nil
}
func (x *Cluster) GetSecurityGroupIds() []string {
if x != nil {
return x.SecurityGroupIds
}
return nil
}
func (x *Cluster) GetUserName() string {
if x != nil {
return x.UserName
}
return ""
}
func (x *Cluster) GetDeletionProtection() bool {
if x != nil {
return x.DeletionProtection
}
return false
}
func (x *Cluster) GetHostGroupIds() []string {
if x != nil {
return x.HostGroupIds
}
return nil
}
func (x *Cluster) GetClusterConfig() *ClusterConfigSet {
if x != nil {
return x.ClusterConfig
}
return nil
}
func (x *Cluster) GetCloudStorage() *CloudStorage {
if x != nil {
return x.CloudStorage
}
return nil
}
type ClusterConfigSet struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to GreenplumConfig:
//
// *ClusterConfigSet_GreenplumConfigSet_6_17
// *ClusterConfigSet_GreenplumConfigSet_6_19
// *ClusterConfigSet_GreenplumConfigSet_6_21
// *ClusterConfigSet_GreenplumConfigSet_6_22
// *ClusterConfigSet_GreenplumConfigSet_6
GreenplumConfig isClusterConfigSet_GreenplumConfig `protobuf_oneof:"greenplum_config"`
// Odyssey® pool settings.
Pool *ConnectionPoolerConfigSet `protobuf:"bytes,3,opt,name=pool,proto3" json:"pool,omitempty"`
BackgroundActivities *BackgroundActivitiesConfig `protobuf:"bytes,6,opt,name=background_activities,json=backgroundActivities,proto3" json:"background_activities,omitempty"`
PxfConfig *PXFConfigSet `protobuf:"bytes,8,opt,name=pxf_config,json=pxfConfig,proto3" json:"pxf_config,omitempty"`
}
func (x *ClusterConfigSet) Reset() {
*x = ClusterConfigSet{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_mdb_greenplum_v1_cluster_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ClusterConfigSet) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClusterConfigSet) ProtoMessage() {}
func (x *ClusterConfigSet) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_mdb_greenplum_v1_cluster_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 ClusterConfigSet.ProtoReflect.Descriptor instead.
func (*ClusterConfigSet) Descriptor() ([]byte, []int) {
return file_yandex_cloud_mdb_greenplum_v1_cluster_proto_rawDescGZIP(), []int{1}
}
func (m *ClusterConfigSet) GetGreenplumConfig() isClusterConfigSet_GreenplumConfig {
if m != nil {
return m.GreenplumConfig
}
return nil
}
func (x *ClusterConfigSet) GetGreenplumConfigSet_6_17() *GreenplumConfigSet6_17 {
if x, ok := x.GetGreenplumConfig().(*ClusterConfigSet_GreenplumConfigSet_6_17); ok {
return x.GreenplumConfigSet_6_17
}
return nil
}
func (x *ClusterConfigSet) GetGreenplumConfigSet_6_19() *GreenplumConfigSet6_19 {
if x, ok := x.GetGreenplumConfig().(*ClusterConfigSet_GreenplumConfigSet_6_19); ok {
return x.GreenplumConfigSet_6_19
}
return nil
}
func (x *ClusterConfigSet) GetGreenplumConfigSet_6_21() *GreenplumConfigSet6_21 {
if x, ok := x.GetGreenplumConfig().(*ClusterConfigSet_GreenplumConfigSet_6_21); ok {
return x.GreenplumConfigSet_6_21
}
return nil
}
func (x *ClusterConfigSet) GetGreenplumConfigSet_6_22() *GreenplumConfigSet6_22 {
if x, ok := x.GetGreenplumConfig().(*ClusterConfigSet_GreenplumConfigSet_6_22); ok {
return x.GreenplumConfigSet_6_22
}
return nil
}
func (x *ClusterConfigSet) GetGreenplumConfigSet_6() *GreenplumConfigSet6 {
if x, ok := x.GetGreenplumConfig().(*ClusterConfigSet_GreenplumConfigSet_6); ok {
return x.GreenplumConfigSet_6
}
return nil
}
func (x *ClusterConfigSet) GetPool() *ConnectionPoolerConfigSet {
if x != nil {
return x.Pool
}
return nil
}
func (x *ClusterConfigSet) GetBackgroundActivities() *BackgroundActivitiesConfig {
if x != nil {
return x.BackgroundActivities
}
return nil
}
func (x *ClusterConfigSet) GetPxfConfig() *PXFConfigSet {
if x != nil {
return x.PxfConfig
}
return nil
}
type isClusterConfigSet_GreenplumConfig interface {
isClusterConfigSet_GreenplumConfig()
}
type ClusterConfigSet_GreenplumConfigSet_6_17 struct {
GreenplumConfigSet_6_17 *GreenplumConfigSet6_17 `protobuf:"bytes,1,opt,name=greenplum_config_set_6_17,json=greenplumConfigSet_6_17,proto3,oneof"`
}
type ClusterConfigSet_GreenplumConfigSet_6_19 struct {
GreenplumConfigSet_6_19 *GreenplumConfigSet6_19 `protobuf:"bytes,2,opt,name=greenplum_config_set_6_19,json=greenplumConfigSet_6_19,proto3,oneof"`
}
type ClusterConfigSet_GreenplumConfigSet_6_21 struct {
GreenplumConfigSet_6_21 *GreenplumConfigSet6_21 `protobuf:"bytes,4,opt,name=greenplum_config_set_6_21,json=greenplumConfigSet_6_21,proto3,oneof"`
}
type ClusterConfigSet_GreenplumConfigSet_6_22 struct {
GreenplumConfigSet_6_22 *GreenplumConfigSet6_22 `protobuf:"bytes,5,opt,name=greenplum_config_set_6_22,json=greenplumConfigSet_6_22,proto3,oneof"`
}
type ClusterConfigSet_GreenplumConfigSet_6 struct {
GreenplumConfigSet_6 *GreenplumConfigSet6 `protobuf:"bytes,9,opt,name=greenplum_config_set_6,json=greenplumConfigSet_6,proto3,oneof"`
}
func (*ClusterConfigSet_GreenplumConfigSet_6_17) isClusterConfigSet_GreenplumConfig() {}
func (*ClusterConfigSet_GreenplumConfigSet_6_19) isClusterConfigSet_GreenplumConfig() {}
func (*ClusterConfigSet_GreenplumConfigSet_6_21) isClusterConfigSet_GreenplumConfig() {}
func (*ClusterConfigSet_GreenplumConfigSet_6_22) isClusterConfigSet_GreenplumConfig() {}
func (*ClusterConfigSet_GreenplumConfigSet_6) isClusterConfigSet_GreenplumConfig() {}
// Monitoring system metadata.
type Monitoring struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Name of the monitoring system.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Description of the monitoring system.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Link to the monitoring system charts for the Greenplum® cluster.
Link string `protobuf:"bytes,3,opt,name=link,proto3" json:"link,omitempty"`
}
func (x *Monitoring) Reset() {
*x = Monitoring{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_mdb_greenplum_v1_cluster_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Monitoring) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Monitoring) ProtoMessage() {}
func (x *Monitoring) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_mdb_greenplum_v1_cluster_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 Monitoring.ProtoReflect.Descriptor instead.
func (*Monitoring) Descriptor() ([]byte, []int) {
return file_yandex_cloud_mdb_greenplum_v1_cluster_proto_rawDescGZIP(), []int{2}
}
func (x *Monitoring) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Monitoring) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *Monitoring) GetLink() string {
if x != nil {
return x.Link
}
return ""
}
type GreenplumConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Version of the Greenplum® server software.
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
// Time to start the daily backup, in the UTC timezone.
BackupWindowStart *timeofday.TimeOfDay `protobuf:"bytes,2,opt,name=backup_window_start,json=backupWindowStart,proto3" json:"backup_window_start,omitempty"`
// Retention policy of automated backups.
BackupRetainPeriodDays *wrapperspb.Int64Value `protobuf:"bytes,9,opt,name=backup_retain_period_days,json=backupRetainPeriodDays,proto3" json:"backup_retain_period_days,omitempty"`
// Access policy for external services.
Access *Access `protobuf:"bytes,3,opt,name=access,proto3" json:"access,omitempty"`
// ID of the availability zone the cluster belongs to.
// To get a list of available zones, use the [yandex.cloud.compute.v1.ZoneService.List] request.
ZoneId string `protobuf:"bytes,4,opt,name=zone_id,json=zoneId,proto3" json:"zone_id,omitempty"`
// ID of the subnet the cluster belongs to. This subnet should be a part of the cloud network the cluster belongs to (see [Cluster.network_id]).
SubnetId string `protobuf:"bytes,5,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"`
// Determines whether the cluster has a public IP address.
//
// After the cluster has been created, this setting cannot be changed.
AssignPublicIp bool `protobuf:"varint,6,opt,name=assign_public_ip,json=assignPublicIp,proto3" json:"assign_public_ip,omitempty"`
}
func (x *GreenplumConfig) Reset() {
*x = GreenplumConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_mdb_greenplum_v1_cluster_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GreenplumConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GreenplumConfig) ProtoMessage() {}
func (x *GreenplumConfig) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_mdb_greenplum_v1_cluster_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 GreenplumConfig.ProtoReflect.Descriptor instead.
func (*GreenplumConfig) Descriptor() ([]byte, []int) {
return file_yandex_cloud_mdb_greenplum_v1_cluster_proto_rawDescGZIP(), []int{3}
}
func (x *GreenplumConfig) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
func (x *GreenplumConfig) GetBackupWindowStart() *timeofday.TimeOfDay {
if x != nil {
return x.BackupWindowStart
}
return nil
}
func (x *GreenplumConfig) GetBackupRetainPeriodDays() *wrapperspb.Int64Value {
if x != nil {
return x.BackupRetainPeriodDays
}
return nil
}
func (x *GreenplumConfig) GetAccess() *Access {
if x != nil {
return x.Access
}
return nil
}
func (x *GreenplumConfig) GetZoneId() string {
if x != nil {
return x.ZoneId
}
return ""
}
func (x *GreenplumConfig) GetSubnetId() string {
if x != nil {
return x.SubnetId
}
return ""
}
func (x *GreenplumConfig) GetAssignPublicIp() bool {
if x != nil {
return x.AssignPublicIp
}
return false
}
type Access struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Allows data export from the cluster to DataLens.
DataLens bool `protobuf:"varint,1,opt,name=data_lens,json=dataLens,proto3" json:"data_lens,omitempty"`
// Allows SQL queries to the cluster databases from the management console.
WebSql bool `protobuf:"varint,2,opt,name=web_sql,json=webSql,proto3" json:"web_sql,omitempty"`
// Allows access for DataTransfer.
DataTransfer bool `protobuf:"varint,3,opt,name=data_transfer,json=dataTransfer,proto3" json:"data_transfer,omitempty"`
}
func (x *Access) Reset() {
*x = Access{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_mdb_greenplum_v1_cluster_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Access) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Access) ProtoMessage() {}
func (x *Access) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_mdb_greenplum_v1_cluster_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 Access.ProtoReflect.Descriptor instead.
func (*Access) Descriptor() ([]byte, []int) {
return file_yandex_cloud_mdb_greenplum_v1_cluster_proto_rawDescGZIP(), []int{4}
}
func (x *Access) GetDataLens() bool {
if x != nil {
return x.DataLens
}
return false
}
func (x *Access) GetWebSql() bool {
if x != nil {
return x.WebSql
}
return false
}
func (x *Access) GetDataTransfer() bool {
if x != nil {
return x.DataTransfer
}
return false
}
type GreenplumRestoreConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Time to start the daily backup, in the UTC timezone.
BackupWindowStart *timeofday.TimeOfDay `protobuf:"bytes,1,opt,name=backup_window_start,json=backupWindowStart,proto3" json:"backup_window_start,omitempty"`
// Access policy for external services.
Access *Access `protobuf:"bytes,2,opt,name=access,proto3" json:"access,omitempty"`
// ID of the availability zone where the host resides.
//
// To get a list of available zones, use the [yandex.cloud.compute.v1.ZoneService.List] request.
ZoneId string `protobuf:"bytes,3,opt,name=zone_id,json=zoneId,proto3" json:"zone_id,omitempty"`
// ID of the subnet that the host should belong to. This subnet should be a part of the network that the cluster belongs to.
// The ID of the network is set in the field [Cluster.network_id].
SubnetId string `protobuf:"bytes,4,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"`
// Determines whether the host should get a public IP address on creation.
//
// After a host has been created, this setting cannot be changed.
//
// To remove an assigned public IP, or to assign a public IP to a host without one, recreate the host with [assign_public_ip] set as needed.
//
// Possible values:
// * `false` - do not assign a public IP to the master host.
// * `true` - assign a public IP to the master host.
AssignPublicIp bool `protobuf:"varint,5,opt,name=assign_public_ip,json=assignPublicIp,proto3" json:"assign_public_ip,omitempty"`
}
func (x *GreenplumRestoreConfig) Reset() {
*x = GreenplumRestoreConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_mdb_greenplum_v1_cluster_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GreenplumRestoreConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GreenplumRestoreConfig) ProtoMessage() {}
func (x *GreenplumRestoreConfig) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_mdb_greenplum_v1_cluster_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 GreenplumRestoreConfig.ProtoReflect.Descriptor instead.
func (*GreenplumRestoreConfig) Descriptor() ([]byte, []int) {
return file_yandex_cloud_mdb_greenplum_v1_cluster_proto_rawDescGZIP(), []int{5}
}
func (x *GreenplumRestoreConfig) GetBackupWindowStart() *timeofday.TimeOfDay {
if x != nil {
return x.BackupWindowStart
}
return nil
}
func (x *GreenplumRestoreConfig) GetAccess() *Access {
if x != nil {
return x.Access
}
return nil
}
func (x *GreenplumRestoreConfig) GetZoneId() string {
if x != nil {
return x.ZoneId
}
return ""
}
func (x *GreenplumRestoreConfig) GetSubnetId() string {
if x != nil {
return x.SubnetId
}
return ""
}
func (x *GreenplumRestoreConfig) GetAssignPublicIp() bool {
if x != nil {
return x.AssignPublicIp
}
return false
}
type RestoreResources struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the preset for computational resources available to a host (CPU, memory, etc.).
ResourcePresetId string `protobuf:"bytes,1,opt,name=resource_preset_id,json=resourcePresetId,proto3" json:"resource_preset_id,omitempty"`
// Volume of the storage available to a host.
DiskSize int64 `protobuf:"varint,2,opt,name=disk_size,json=diskSize,proto3" json:"disk_size,omitempty"`
}
func (x *RestoreResources) Reset() {
*x = RestoreResources{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_mdb_greenplum_v1_cluster_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RestoreResources) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RestoreResources) ProtoMessage() {}
func (x *RestoreResources) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_mdb_greenplum_v1_cluster_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 RestoreResources.ProtoReflect.Descriptor instead.
func (*RestoreResources) Descriptor() ([]byte, []int) {
return file_yandex_cloud_mdb_greenplum_v1_cluster_proto_rawDescGZIP(), []int{6}
}