/
cluster.pb.go
2973 lines (2652 loc) · 142 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/postgresql/v1/cluster.proto
package postgresql
import (
_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
config "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config"
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_postgresql_v1_cluster_proto_enumTypes[0].Descriptor()
}
func (Cluster_Environment) Type() protoreflect.EnumType {
return &file_yandex_cloud_mdb_postgresql_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_postgresql_v1_cluster_proto_rawDescGZIP(), []int{0, 0}
}
type Cluster_Health int32
const (
// State of the cluster is unknown ([Host.health] for every host in the cluster is UNKNOWN).
Cluster_HEALTH_UNKNOWN Cluster_Health = 0
// Cluster is alive and well ([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
)
// Enum value maps for Cluster_Health.
var (
Cluster_Health_name = map[int32]string{
0: "HEALTH_UNKNOWN",
1: "ALIVE",
2: "DEAD",
3: "DEGRADED",
}
Cluster_Health_value = map[string]int32{
"HEALTH_UNKNOWN": 0,
"ALIVE": 1,
"DEAD": 2,
"DEGRADED": 3,
}
)
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_postgresql_v1_cluster_proto_enumTypes[1].Descriptor()
}
func (Cluster_Health) Type() protoreflect.EnumType {
return &file_yandex_cloud_mdb_postgresql_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_postgresql_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 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 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_postgresql_v1_cluster_proto_enumTypes[2].Descriptor()
}
func (Cluster_Status) Type() protoreflect.EnumType {
return &file_yandex_cloud_mdb_postgresql_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_postgresql_v1_cluster_proto_rawDescGZIP(), []int{0, 2}
}
type ConnectionPoolerConfig_PoolingMode int32
const (
ConnectionPoolerConfig_POOLING_MODE_UNSPECIFIED ConnectionPoolerConfig_PoolingMode = 0
// Session pooling mode.
ConnectionPoolerConfig_SESSION ConnectionPoolerConfig_PoolingMode = 1
// Transaction pooling mode.
ConnectionPoolerConfig_TRANSACTION ConnectionPoolerConfig_PoolingMode = 2
// Statement pooling mode.
ConnectionPoolerConfig_STATEMENT ConnectionPoolerConfig_PoolingMode = 3
)
// Enum value maps for ConnectionPoolerConfig_PoolingMode.
var (
ConnectionPoolerConfig_PoolingMode_name = map[int32]string{
0: "POOLING_MODE_UNSPECIFIED",
1: "SESSION",
2: "TRANSACTION",
3: "STATEMENT",
}
ConnectionPoolerConfig_PoolingMode_value = map[string]int32{
"POOLING_MODE_UNSPECIFIED": 0,
"SESSION": 1,
"TRANSACTION": 2,
"STATEMENT": 3,
}
)
func (x ConnectionPoolerConfig_PoolingMode) Enum() *ConnectionPoolerConfig_PoolingMode {
p := new(ConnectionPoolerConfig_PoolingMode)
*p = x
return p
}
func (x ConnectionPoolerConfig_PoolingMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ConnectionPoolerConfig_PoolingMode) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_mdb_postgresql_v1_cluster_proto_enumTypes[3].Descriptor()
}
func (ConnectionPoolerConfig_PoolingMode) Type() protoreflect.EnumType {
return &file_yandex_cloud_mdb_postgresql_v1_cluster_proto_enumTypes[3]
}
func (x ConnectionPoolerConfig_PoolingMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ConnectionPoolerConfig_PoolingMode.Descriptor instead.
func (ConnectionPoolerConfig_PoolingMode) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_mdb_postgresql_v1_cluster_proto_rawDescGZIP(), []int{3, 0}
}
type Host_Role int32
const (
// Role of the host in the cluster is unknown.
Host_ROLE_UNKNOWN Host_Role = 0
// Host is the master PostgreSQL server in the cluster.
Host_MASTER Host_Role = 1
// Host is a replica (standby) PostgreSQL server in the cluster.
Host_REPLICA Host_Role = 2
)
// Enum value maps for Host_Role.
var (
Host_Role_name = map[int32]string{
0: "ROLE_UNKNOWN",
1: "MASTER",
2: "REPLICA",
}
Host_Role_value = map[string]int32{
"ROLE_UNKNOWN": 0,
"MASTER": 1,
"REPLICA": 2,
}
)
func (x Host_Role) Enum() *Host_Role {
p := new(Host_Role)
*p = x
return p
}
func (x Host_Role) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Host_Role) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_mdb_postgresql_v1_cluster_proto_enumTypes[4].Descriptor()
}
func (Host_Role) Type() protoreflect.EnumType {
return &file_yandex_cloud_mdb_postgresql_v1_cluster_proto_enumTypes[4]
}
func (x Host_Role) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Host_Role.Descriptor instead.
func (Host_Role) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_mdb_postgresql_v1_cluster_proto_rawDescGZIP(), []int{4, 0}
}
type Host_ReplicaType int32
const (
Host_REPLICA_TYPE_UNKNOWN Host_ReplicaType = 0 // Replica type is unknown (we have no data) or it's master
Host_ASYNC Host_ReplicaType = 1
Host_SYNC Host_ReplicaType = 2
Host_QUORUM Host_ReplicaType = 3
)
// Enum value maps for Host_ReplicaType.
var (
Host_ReplicaType_name = map[int32]string{
0: "REPLICA_TYPE_UNKNOWN",
1: "ASYNC",
2: "SYNC",
3: "QUORUM",
}
Host_ReplicaType_value = map[string]int32{
"REPLICA_TYPE_UNKNOWN": 0,
"ASYNC": 1,
"SYNC": 2,
"QUORUM": 3,
}
)
func (x Host_ReplicaType) Enum() *Host_ReplicaType {
p := new(Host_ReplicaType)
*p = x
return p
}
func (x Host_ReplicaType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Host_ReplicaType) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_mdb_postgresql_v1_cluster_proto_enumTypes[5].Descriptor()
}
func (Host_ReplicaType) Type() protoreflect.EnumType {
return &file_yandex_cloud_mdb_postgresql_v1_cluster_proto_enumTypes[5]
}
func (x Host_ReplicaType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Host_ReplicaType.Descriptor instead.
func (Host_ReplicaType) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_mdb_postgresql_v1_cluster_proto_rawDescGZIP(), []int{4, 1}
}
type Host_Health int32
const (
// Health of the host is unknown.
Host_HEALTH_UNKNOWN Host_Health = 0
// The host is performing all its functions normally.
Host_ALIVE Host_Health = 1
// The host is inoperable, and cannot perform any of its essential functions.
Host_DEAD Host_Health = 2
// The host is degraded, and can perform only some of its essential functions.
Host_DEGRADED Host_Health = 3
// The host is alive, but in read-only mode.
Host_READONLY Host_Health = 4
)
// Enum value maps for Host_Health.
var (
Host_Health_name = map[int32]string{
0: "HEALTH_UNKNOWN",
1: "ALIVE",
2: "DEAD",
3: "DEGRADED",
4: "READONLY",
}
Host_Health_value = map[string]int32{
"HEALTH_UNKNOWN": 0,
"ALIVE": 1,
"DEAD": 2,
"DEGRADED": 3,
"READONLY": 4,
}
)
func (x Host_Health) Enum() *Host_Health {
p := new(Host_Health)
*p = x
return p
}
func (x Host_Health) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Host_Health) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_mdb_postgresql_v1_cluster_proto_enumTypes[6].Descriptor()
}
func (Host_Health) Type() protoreflect.EnumType {
return &file_yandex_cloud_mdb_postgresql_v1_cluster_proto_enumTypes[6]
}
func (x Host_Health) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Host_Health.Descriptor instead.
func (Host_Health) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_mdb_postgresql_v1_cluster_proto_rawDescGZIP(), []int{4, 2}
}
type Service_Type int32
const (
Service_TYPE_UNSPECIFIED Service_Type = 0
// The host is a PostgreSQL server.
Service_POSTGRESQL Service_Type = 1
// The host is a PgBouncer server.
Service_POOLER Service_Type = 2
)
// Enum value maps for Service_Type.
var (
Service_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "POSTGRESQL",
2: "POOLER",
}
Service_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"POSTGRESQL": 1,
"POOLER": 2,
}
)
func (x Service_Type) Enum() *Service_Type {
p := new(Service_Type)
*p = x
return p
}
func (x Service_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Service_Type) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_mdb_postgresql_v1_cluster_proto_enumTypes[7].Descriptor()
}
func (Service_Type) Type() protoreflect.EnumType {
return &file_yandex_cloud_mdb_postgresql_v1_cluster_proto_enumTypes[7]
}
func (x Service_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Service_Type.Descriptor instead.
func (Service_Type) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_mdb_postgresql_v1_cluster_proto_rawDescGZIP(), []int{6, 0}
}
type Service_Health int32
const (
// Health of the server is unknown.
Service_HEALTH_UNKNOWN Service_Health = 0
// The server is working normally.
Service_ALIVE Service_Health = 1
// The server is dead or unresponsive.
Service_DEAD Service_Health = 2
// The server is in read-only mode.
Service_READONLY Service_Health = 3
)
// Enum value maps for Service_Health.
var (
Service_Health_name = map[int32]string{
0: "HEALTH_UNKNOWN",
1: "ALIVE",
2: "DEAD",
3: "READONLY",
}
Service_Health_value = map[string]int32{
"HEALTH_UNKNOWN": 0,
"ALIVE": 1,
"DEAD": 2,
"READONLY": 3,
}
)
func (x Service_Health) Enum() *Service_Health {
p := new(Service_Health)
*p = x
return p
}
func (x Service_Health) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Service_Health) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_mdb_postgresql_v1_cluster_proto_enumTypes[8].Descriptor()
}
func (Service_Health) Type() protoreflect.EnumType {
return &file_yandex_cloud_mdb_postgresql_v1_cluster_proto_enumTypes[8]
}
func (x Service_Health) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Service_Health.Descriptor instead.
func (Service_Health) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_mdb_postgresql_v1_cluster_proto_rawDescGZIP(), []int{6, 1}
}
// A PostgreSQL Cluster resource. For more information, see
// the [Concepts](/docs/managed-postgresql/concepts) section of the documentation.
type Cluster struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the PostgreSQL cluster.
// This ID is assigned by MDB at creation time.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// ID of the folder that the PostgreSQL cluster belongs to.
FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
// Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// Name of the PostgreSQL cluster.
// The name is unique within the folder. 1-63 characters long.
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
// Description of the PostgreSQL cluster. 0-256 characters long.
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
// Custom labels for the PostgreSQL cluster as “ key:value “ pairs.
// Maximum 64 per resource.
Labels map[string]string `protobuf:"bytes,6,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 PostgreSQL cluster.
Environment Cluster_Environment `protobuf:"varint,7,opt,name=environment,proto3,enum=yandex.cloud.mdb.postgresql.v1.Cluster_Environment" json:"environment,omitempty"`
// Description of monitoring systems relevant to the PostgreSQL cluster.
Monitoring []*Monitoring `protobuf:"bytes,8,rep,name=monitoring,proto3" json:"monitoring,omitempty"`
// Configuration of the PostgreSQL cluster.
Config *ClusterConfig `protobuf:"bytes,9,opt,name=config,proto3" json:"config,omitempty"`
// ID of the network that the cluster belongs to.
NetworkId string `protobuf:"bytes,10,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"`
// Aggregated cluster health.
Health Cluster_Health `protobuf:"varint,11,opt,name=health,proto3,enum=yandex.cloud.mdb.postgresql.v1.Cluster_Health" json:"health,omitempty"`
// Current state of the cluster.
Status Cluster_Status `protobuf:"varint,12,opt,name=status,proto3,enum=yandex.cloud.mdb.postgresql.v1.Cluster_Status" json:"status,omitempty"`
// Maintenance window for the cluster.
MaintenanceWindow *MaintenanceWindow `protobuf:"bytes,13,opt,name=maintenance_window,json=maintenanceWindow,proto3" json:"maintenance_window,omitempty"`
// Planned maintenance operation to be started for the cluster within the nearest [maintenance_window].
PlannedOperation *MaintenanceOperation `protobuf:"bytes,14,opt,name=planned_operation,json=plannedOperation,proto3" json:"planned_operation,omitempty"`
// User security groups
SecurityGroupIds []string `protobuf:"bytes,15,rep,name=security_group_ids,json=securityGroupIds,proto3" json:"security_group_ids,omitempty"`
// Deletion Protection inhibits deletion of the cluster
DeletionProtection bool `protobuf:"varint,16,opt,name=deletion_protection,json=deletionProtection,proto3" json:"deletion_protection,omitempty"`
// Host groups hosting VMs of the cluster.
HostGroupIds []string `protobuf:"bytes,17,rep,name=host_group_ids,json=hostGroupIds,proto3" json:"host_group_ids,omitempty"`
}
func (x *Cluster) Reset() {
*x = Cluster{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_mdb_postgresql_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_postgresql_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_postgresql_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) 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) GetConfig() *ClusterConfig {
if x != nil {
return x.Config
}
return nil
}
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) GetDeletionProtection() bool {
if x != nil {
return x.DeletionProtection
}
return false
}
func (x *Cluster) GetHostGroupIds() []string {
if x != nil {
return x.HostGroupIds
}
return nil
}
// Monitoring system.
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 PostgreSQL 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_postgresql_v1_cluster_proto_msgTypes[1]
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_postgresql_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 Monitoring.ProtoReflect.Descriptor instead.
func (*Monitoring) Descriptor() ([]byte, []int) {
return file_yandex_cloud_mdb_postgresql_v1_cluster_proto_rawDescGZIP(), []int{1}
}
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 ClusterConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Version of PostgreSQL server software.
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
// Configuration for PostgreSQL servers in the cluster.
//
// Types that are assignable to PostgresqlConfig:
//
// *ClusterConfig_PostgresqlConfig_9_6
// *ClusterConfig_PostgresqlConfig_10_1C
// *ClusterConfig_PostgresqlConfig_10
// *ClusterConfig_PostgresqlConfig_11
// *ClusterConfig_PostgresqlConfig_11_1C
// *ClusterConfig_PostgresqlConfig_12
// *ClusterConfig_PostgresqlConfig_12_1C
// *ClusterConfig_PostgresqlConfig_13
// *ClusterConfig_PostgresqlConfig_13_1C
// *ClusterConfig_PostgresqlConfig_14
// *ClusterConfig_PostgresqlConfig_14_1C
// *ClusterConfig_PostgresqlConfig_15
// *ClusterConfig_PostgresqlConfig_15_1C
// *ClusterConfig_PostgresqlConfig_16
// *ClusterConfig_PostgresqlConfig_16_1C
PostgresqlConfig isClusterConfig_PostgresqlConfig `protobuf_oneof:"postgresql_config"`
// Configuration of the connection pooler.
PoolerConfig *ConnectionPoolerConfig `protobuf:"bytes,4,opt,name=pooler_config,json=poolerConfig,proto3" json:"pooler_config,omitempty"`
// Resources allocated to PostgreSQL hosts.
Resources *Resources `protobuf:"bytes,5,opt,name=resources,proto3" json:"resources,omitempty"`
// Configuration setting which enables/disables autofailover in cluster.
Autofailover *wrapperspb.BoolValue `protobuf:"bytes,6,opt,name=autofailover,proto3" json:"autofailover,omitempty"`
// Time to start the daily backup, in the UTC timezone.
BackupWindowStart *timeofday.TimeOfDay `protobuf:"bytes,7,opt,name=backup_window_start,json=backupWindowStart,proto3" json:"backup_window_start,omitempty"`
// Retention policy of automated backups.
BackupRetainPeriodDays *wrapperspb.Int64Value `protobuf:"bytes,17,opt,name=backup_retain_period_days,json=backupRetainPeriodDays,proto3" json:"backup_retain_period_days,omitempty"`
// Access policy to DB
Access *Access `protobuf:"bytes,9,opt,name=access,proto3" json:"access,omitempty"`
// Configuration of the performance diagnostics service.
PerformanceDiagnostics *PerformanceDiagnostics `protobuf:"bytes,12,opt,name=performance_diagnostics,json=performanceDiagnostics,proto3" json:"performance_diagnostics,omitempty"`
// Disk size autoscaling
DiskSizeAutoscaling *DiskSizeAutoscaling `protobuf:"bytes,23,opt,name=disk_size_autoscaling,json=diskSizeAutoscaling,proto3" json:"disk_size_autoscaling,omitempty"`
}
func (x *ClusterConfig) Reset() {
*x = ClusterConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_mdb_postgresql_v1_cluster_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ClusterConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClusterConfig) ProtoMessage() {}
func (x *ClusterConfig) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_mdb_postgresql_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 ClusterConfig.ProtoReflect.Descriptor instead.
func (*ClusterConfig) Descriptor() ([]byte, []int) {
return file_yandex_cloud_mdb_postgresql_v1_cluster_proto_rawDescGZIP(), []int{2}
}
func (x *ClusterConfig) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
func (m *ClusterConfig) GetPostgresqlConfig() isClusterConfig_PostgresqlConfig {
if m != nil {
return m.PostgresqlConfig
}
return nil
}
func (x *ClusterConfig) GetPostgresqlConfig_9_6() *config.PostgresqlConfigSet9_6 {
if x, ok := x.GetPostgresqlConfig().(*ClusterConfig_PostgresqlConfig_9_6); ok {
return x.PostgresqlConfig_9_6
}
return nil
}
func (x *ClusterConfig) GetPostgresqlConfig_10_1C() *config.PostgresqlConfigSet10_1C {
if x, ok := x.GetPostgresqlConfig().(*ClusterConfig_PostgresqlConfig_10_1C); ok {
return x.PostgresqlConfig_10_1C
}
return nil
}
func (x *ClusterConfig) GetPostgresqlConfig_10() *config.PostgresqlConfigSet10 {
if x, ok := x.GetPostgresqlConfig().(*ClusterConfig_PostgresqlConfig_10); ok {
return x.PostgresqlConfig_10
}
return nil
}
func (x *ClusterConfig) GetPostgresqlConfig_11() *config.PostgresqlConfigSet11 {
if x, ok := x.GetPostgresqlConfig().(*ClusterConfig_PostgresqlConfig_11); ok {
return x.PostgresqlConfig_11
}
return nil
}
func (x *ClusterConfig) GetPostgresqlConfig_11_1C() *config.PostgresqlConfigSet11_1C {
if x, ok := x.GetPostgresqlConfig().(*ClusterConfig_PostgresqlConfig_11_1C); ok {
return x.PostgresqlConfig_11_1C
}
return nil
}
func (x *ClusterConfig) GetPostgresqlConfig_12() *config.PostgresqlConfigSet12 {
if x, ok := x.GetPostgresqlConfig().(*ClusterConfig_PostgresqlConfig_12); ok {
return x.PostgresqlConfig_12
}
return nil
}
func (x *ClusterConfig) GetPostgresqlConfig_12_1C() *config.PostgresqlConfigSet12_1C {
if x, ok := x.GetPostgresqlConfig().(*ClusterConfig_PostgresqlConfig_12_1C); ok {
return x.PostgresqlConfig_12_1C
}
return nil
}
func (x *ClusterConfig) GetPostgresqlConfig_13() *config.PostgresqlConfigSet13 {
if x, ok := x.GetPostgresqlConfig().(*ClusterConfig_PostgresqlConfig_13); ok {
return x.PostgresqlConfig_13
}
return nil
}
func (x *ClusterConfig) GetPostgresqlConfig_13_1C() *config.PostgresqlConfigSet13_1C {
if x, ok := x.GetPostgresqlConfig().(*ClusterConfig_PostgresqlConfig_13_1C); ok {
return x.PostgresqlConfig_13_1C
}
return nil
}
func (x *ClusterConfig) GetPostgresqlConfig_14() *config.PostgresqlConfigSet14 {
if x, ok := x.GetPostgresqlConfig().(*ClusterConfig_PostgresqlConfig_14); ok {
return x.PostgresqlConfig_14
}
return nil
}
func (x *ClusterConfig) GetPostgresqlConfig_14_1C() *config.PostgresqlConfigSet14_1C {
if x, ok := x.GetPostgresqlConfig().(*ClusterConfig_PostgresqlConfig_14_1C); ok {
return x.PostgresqlConfig_14_1C
}
return nil
}
func (x *ClusterConfig) GetPostgresqlConfig_15() *config.PostgresqlConfigSet15 {
if x, ok := x.GetPostgresqlConfig().(*ClusterConfig_PostgresqlConfig_15); ok {
return x.PostgresqlConfig_15
}
return nil
}
func (x *ClusterConfig) GetPostgresqlConfig_15_1C() *config.PostgresqlConfigSet15_1C {
if x, ok := x.GetPostgresqlConfig().(*ClusterConfig_PostgresqlConfig_15_1C); ok {
return x.PostgresqlConfig_15_1C
}
return nil
}
func (x *ClusterConfig) GetPostgresqlConfig_16() *config.PostgresqlConfigSet16 {
if x, ok := x.GetPostgresqlConfig().(*ClusterConfig_PostgresqlConfig_16); ok {
return x.PostgresqlConfig_16
}
return nil
}
func (x *ClusterConfig) GetPostgresqlConfig_16_1C() *config.PostgresqlConfigSet16_1C {
if x, ok := x.GetPostgresqlConfig().(*ClusterConfig_PostgresqlConfig_16_1C); ok {
return x.PostgresqlConfig_16_1C
}
return nil
}
func (x *ClusterConfig) GetPoolerConfig() *ConnectionPoolerConfig {
if x != nil {
return x.PoolerConfig
}
return nil
}