-
Notifications
You must be signed in to change notification settings - Fork 1
/
replication.pb.go
1951 lines (1873 loc) · 59.2 KB
/
replication.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-gogo. DO NOT EDIT.
// source: replication.proto
package v1
import (
context "context"
encoding_binary "encoding/binary"
fmt "fmt"
v1 "github.com/arangodb-managed/apis/common/v1"
v11 "github.com/arangodb-managed/apis/data/v1"
types "github.com/gogo/protobuf/types"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// CloneDeploymentFromBackupRequest defines a request object for clone deployment call.
type CloneDeploymentFromBackupRequest struct {
// The ID of the backup to clone a deployment from.
BackupId string `protobuf:"bytes,1,opt,name=backup_id,json=backupId,proto3" json:"backup_id,omitempty"`
// Target region.
// This is an optional field
RegionId string `protobuf:"bytes,2,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
// This field must be set to the identifier of the current Terms&Conditions
// when cloning a deployment.
// If the tier of the organization does not require a non-empty Terms&Condition
// identifier, this field may be left empty.
// If this field is not set the terms and conditions of the source deployment will be used.
AcceptedTermsAndConditionsId string `protobuf:"bytes,3,opt,name=accepted_terms_and_conditions_id,json=acceptedTermsAndConditionsId,proto3" json:"accepted_terms_and_conditions_id,omitempty"`
// Target project identifier.
// This is an optional field
ProjectId string `protobuf:"bytes,4,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CloneDeploymentFromBackupRequest) Reset() { *m = CloneDeploymentFromBackupRequest{} }
func (m *CloneDeploymentFromBackupRequest) String() string { return proto.CompactTextString(m) }
func (*CloneDeploymentFromBackupRequest) ProtoMessage() {}
func (*CloneDeploymentFromBackupRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ed0454e9e09fb71a, []int{0}
}
func (m *CloneDeploymentFromBackupRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *CloneDeploymentFromBackupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_CloneDeploymentFromBackupRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *CloneDeploymentFromBackupRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CloneDeploymentFromBackupRequest.Merge(m, src)
}
func (m *CloneDeploymentFromBackupRequest) XXX_Size() int {
return m.Size()
}
func (m *CloneDeploymentFromBackupRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CloneDeploymentFromBackupRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CloneDeploymentFromBackupRequest proto.InternalMessageInfo
func (m *CloneDeploymentFromBackupRequest) GetBackupId() string {
if m != nil {
return m.BackupId
}
return ""
}
func (m *CloneDeploymentFromBackupRequest) GetRegionId() string {
if m != nil {
return m.RegionId
}
return ""
}
func (m *CloneDeploymentFromBackupRequest) GetAcceptedTermsAndConditionsId() string {
if m != nil {
return m.AcceptedTermsAndConditionsId
}
return ""
}
func (m *CloneDeploymentFromBackupRequest) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
// DeploymentReplication defines a request object for creating or updating a deployment replication
type DeploymentReplication struct {
// Identifier of the deployment for a given DeploymentReplication
DeploymentId string `protobuf:"bytes,1,opt,name=deployment_id,json=deploymentId,proto3" json:"deployment_id,omitempty"`
// Start the replication process for the given deployment.
Started bool `protobuf:"varint,2,opt,name=started,proto3" json:"started,omitempty"`
// A PEM encoded representation of the public key of the CA certificate used to verify sync master in source deployment.
CertificatePem string `protobuf:"bytes,3,opt,name=certificate_pem,json=certificatePem,proto3" json:"certificate_pem,omitempty"`
// A PEM encoded representation of the keyfile used for client authentication of the sync master (with the sync master in the source deployment).
// A keyfile contains 1 or more certificates and a private key.
TlsKeyfile string `protobuf:"bytes,4,opt,name=tls_keyfile,json=tlsKeyfile,proto3" json:"tls_keyfile,omitempty"`
// Identifier of the user that initiated this deployment replication.
// This is a read-only value.
StartedById string `protobuf:"bytes,5,opt,name=started_by_id,json=startedById,proto3" json:"started_by_id,omitempty"`
// CancelationOptions describes what to do during cancellation process of the migration-agent.
CancelationOptions *DeploymentReplication_CancelationOptions `protobuf:"bytes,10,opt,name=cancelation_options,json=cancelationOptions,proto3" json:"cancelation_options,omitempty"`
// Status of the DeploymentReplication.
Status *DeploymentReplication_Status `protobuf:"bytes,100,opt,name=status,proto3" json:"status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeploymentReplication) Reset() { *m = DeploymentReplication{} }
func (m *DeploymentReplication) String() string { return proto.CompactTextString(m) }
func (*DeploymentReplication) ProtoMessage() {}
func (*DeploymentReplication) Descriptor() ([]byte, []int) {
return fileDescriptor_ed0454e9e09fb71a, []int{1}
}
func (m *DeploymentReplication) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *DeploymentReplication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_DeploymentReplication.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *DeploymentReplication) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeploymentReplication.Merge(m, src)
}
func (m *DeploymentReplication) XXX_Size() int {
return m.Size()
}
func (m *DeploymentReplication) XXX_DiscardUnknown() {
xxx_messageInfo_DeploymentReplication.DiscardUnknown(m)
}
var xxx_messageInfo_DeploymentReplication proto.InternalMessageInfo
func (m *DeploymentReplication) GetDeploymentId() string {
if m != nil {
return m.DeploymentId
}
return ""
}
func (m *DeploymentReplication) GetStarted() bool {
if m != nil {
return m.Started
}
return false
}
func (m *DeploymentReplication) GetCertificatePem() string {
if m != nil {
return m.CertificatePem
}
return ""
}
func (m *DeploymentReplication) GetTlsKeyfile() string {
if m != nil {
return m.TlsKeyfile
}
return ""
}
func (m *DeploymentReplication) GetStartedById() string {
if m != nil {
return m.StartedById
}
return ""
}
func (m *DeploymentReplication) GetCancelationOptions() *DeploymentReplication_CancelationOptions {
if m != nil {
return m.CancelationOptions
}
return nil
}
func (m *DeploymentReplication) GetStatus() *DeploymentReplication_Status {
if m != nil {
return m.Status
}
return nil
}
// CancelationOptions describes what to do during cancellation process of the migration-agent.
type DeploymentReplication_CancelationOptions struct {
// If set, during cancellation process data consistency is not required (otherwise data consistency is required).
DataConsistencyNotRequired bool `protobuf:"varint,1,opt,name=data_consistency_not_required,json=dataConsistencyNotRequired,proto3" json:"data_consistency_not_required,omitempty"`
// If set, after cancellation the source deployment will be in read-only mode.
MakeSourceDeploymentReadOnly bool `protobuf:"varint,2,opt,name=make_source_deployment_read_only,json=makeSourceDeploymentReadOnly,proto3" json:"make_source_deployment_read_only,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeploymentReplication_CancelationOptions) Reset() {
*m = DeploymentReplication_CancelationOptions{}
}
func (m *DeploymentReplication_CancelationOptions) String() string { return proto.CompactTextString(m) }
func (*DeploymentReplication_CancelationOptions) ProtoMessage() {}
func (*DeploymentReplication_CancelationOptions) Descriptor() ([]byte, []int) {
return fileDescriptor_ed0454e9e09fb71a, []int{1, 0}
}
func (m *DeploymentReplication_CancelationOptions) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *DeploymentReplication_CancelationOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_DeploymentReplication_CancelationOptions.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *DeploymentReplication_CancelationOptions) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeploymentReplication_CancelationOptions.Merge(m, src)
}
func (m *DeploymentReplication_CancelationOptions) XXX_Size() int {
return m.Size()
}
func (m *DeploymentReplication_CancelationOptions) XXX_DiscardUnknown() {
xxx_messageInfo_DeploymentReplication_CancelationOptions.DiscardUnknown(m)
}
var xxx_messageInfo_DeploymentReplication_CancelationOptions proto.InternalMessageInfo
func (m *DeploymentReplication_CancelationOptions) GetDataConsistencyNotRequired() bool {
if m != nil {
return m.DataConsistencyNotRequired
}
return false
}
func (m *DeploymentReplication_CancelationOptions) GetMakeSourceDeploymentReadOnly() bool {
if m != nil {
return m.MakeSourceDeploymentReadOnly
}
return false
}
// DeploymentReplicationStatus defines the status of a deployment replication.
// Note: All fields in this message block are read-only.
type DeploymentReplication_Status struct {
// Where the deployment replication process is in its lifecycle at any given time.
// Should only contain only one of the following values:
// "Initialising" - Replication has started, waiting for sync masters / workers.
// "In-Progress" - Replication has started and currently in progress.
// "Error" - Replication is in an errored state.
// "Failed" - Replication could not complete successfully.
// "Stopping" - Replication is being stopped.
// "Completed" - Replication is stopped and all resources cleaned up properly.
Phase string `protobuf:"bytes,1,opt,name=phase,proto3" json:"phase,omitempty"`
// Supporting information about the deployment replication phase - such as error messages in case of failures.
// This field will be in JSON format and can be built using the `AsJSON()` helper.
// Use `FromJSON()` helper to parse this field.
// See - replication/v1/message.go in this repository.
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// Service (LoadBalancer) endpoint of the SyncMasters
// This field has the format of a URL.
// This is a readonly field.
SyncEndpoint string `protobuf:"bytes,5,opt,name=sync_endpoint,json=syncEndpoint,proto3" json:"sync_endpoint,omitempty"`
// The timestamp of when the Phase of the Deployment Replication was last updated.
// This is a readonly field.
PhaseUpdatedAt *types.Timestamp `protobuf:"bytes,6,opt,name=phase_updated_at,json=phaseUpdatedAt,proto3" json:"phase_updated_at,omitempty"`
// Service (LoadBalancer) endpoint of the Forwarder service which allows to start streaming connection.
// This field has the format of a URL.
// This is a readonly field.
ForwarderEndpoint string `protobuf:"bytes,7,opt,name=forwarder_endpoint,json=forwarderEndpoint,proto3" json:"forwarder_endpoint,omitempty"`
// Progress of replication in percents (value from 0.0 to 1.0).
// This is a readonly field.
Progress float32 `protobuf:"fixed32,8,opt,name=progress,proto3" json:"progress,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeploymentReplication_Status) Reset() { *m = DeploymentReplication_Status{} }
func (m *DeploymentReplication_Status) String() string { return proto.CompactTextString(m) }
func (*DeploymentReplication_Status) ProtoMessage() {}
func (*DeploymentReplication_Status) Descriptor() ([]byte, []int) {
return fileDescriptor_ed0454e9e09fb71a, []int{1, 1}
}
func (m *DeploymentReplication_Status) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *DeploymentReplication_Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_DeploymentReplication_Status.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *DeploymentReplication_Status) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeploymentReplication_Status.Merge(m, src)
}
func (m *DeploymentReplication_Status) XXX_Size() int {
return m.Size()
}
func (m *DeploymentReplication_Status) XXX_DiscardUnknown() {
xxx_messageInfo_DeploymentReplication_Status.DiscardUnknown(m)
}
var xxx_messageInfo_DeploymentReplication_Status proto.InternalMessageInfo
func (m *DeploymentReplication_Status) GetPhase() string {
if m != nil {
return m.Phase
}
return ""
}
func (m *DeploymentReplication_Status) GetMessage() string {
if m != nil {
return m.Message
}
return ""
}
func (m *DeploymentReplication_Status) GetSyncEndpoint() string {
if m != nil {
return m.SyncEndpoint
}
return ""
}
func (m *DeploymentReplication_Status) GetPhaseUpdatedAt() *types.Timestamp {
if m != nil {
return m.PhaseUpdatedAt
}
return nil
}
func (m *DeploymentReplication_Status) GetForwarderEndpoint() string {
if m != nil {
return m.ForwarderEndpoint
}
return ""
}
func (m *DeploymentReplication_Status) GetProgress() float32 {
if m != nil {
return m.Progress
}
return 0
}
func init() {
proto.RegisterType((*CloneDeploymentFromBackupRequest)(nil), "arangodb.cloud.replication.v1.CloneDeploymentFromBackupRequest")
proto.RegisterType((*DeploymentReplication)(nil), "arangodb.cloud.replication.v1.DeploymentReplication")
proto.RegisterType((*DeploymentReplication_CancelationOptions)(nil), "arangodb.cloud.replication.v1.DeploymentReplication.CancelationOptions")
proto.RegisterType((*DeploymentReplication_Status)(nil), "arangodb.cloud.replication.v1.DeploymentReplication.Status")
}
func init() { proto.RegisterFile("replication.proto", fileDescriptor_ed0454e9e09fb71a) }
var fileDescriptor_ed0454e9e09fb71a = []byte{
// 874 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0x4b, 0x6f, 0x1c, 0x45,
0x10, 0x66, 0x02, 0xde, 0xac, 0xdb, 0x71, 0x20, 0xcd, 0x43, 0xcb, 0xc4, 0x8f, 0xcd, 0x72, 0x88,
0x15, 0xe1, 0x19, 0x39, 0x20, 0x21, 0x39, 0x87, 0x68, 0xfd, 0x88, 0xb5, 0x42, 0x22, 0xd1, 0x38,
0x70, 0xe0, 0x32, 0xea, 0xed, 0x2e, 0x4f, 0x06, 0xcf, 0x74, 0x77, 0xba, 0x7b, 0x16, 0x46, 0x81,
0x0b, 0x7f, 0x81, 0x0b, 0x37, 0x6e, 0x1c, 0xb9, 0x73, 0xe6, 0xc2, 0x31, 0x82, 0x3f, 0x80, 0x0c,
0x67, 0x7e, 0x03, 0xea, 0x9e, 0xde, 0x9d, 0xb5, 0x63, 0x63, 0xc9, 0x27, 0x6f, 0x7f, 0xf5, 0xfa,
0x6a, 0xea, 0xab, 0x32, 0xba, 0xa5, 0x40, 0x16, 0x39, 0x25, 0x26, 0x17, 0x3c, 0x92, 0x4a, 0x18,
0x81, 0x57, 0x89, 0x22, 0x3c, 0x13, 0x6c, 0x1c, 0xd1, 0x42, 0x54, 0x2c, 0x9a, 0xf7, 0x98, 0x6c,
0x85, 0xef, 0x51, 0x51, 0x96, 0x82, 0xc7, 0x93, 0xad, 0xb8, 0xf9, 0xd5, 0x84, 0x85, 0x98, 0x11,
0x43, 0x2c, 0x6a, 0xff, 0x7a, 0xec, 0x41, 0x96, 0x9b, 0x67, 0xd5, 0x38, 0xa2, 0xa2, 0x8c, 0x33,
0x51, 0x10, 0x9e, 0xc5, 0xce, 0x30, 0xae, 0x8e, 0x62, 0x69, 0x6a, 0x09, 0x3a, 0x36, 0x79, 0x09,
0xda, 0x90, 0x52, 0xb6, 0xbf, 0x7c, 0xf0, 0x4a, 0x26, 0x44, 0x56, 0x40, 0x4c, 0x64, 0x1e, 0x13,
0xce, 0x85, 0x71, 0x14, 0x74, 0x63, 0x1d, 0xfc, 0x16, 0xa0, 0xfe, 0x6e, 0x21, 0x38, 0xec, 0x81,
0x2c, 0x44, 0x5d, 0x02, 0x37, 0x8f, 0x94, 0x28, 0x77, 0x08, 0x3d, 0xae, 0x64, 0x02, 0xcf, 0x2b,
0xd0, 0x06, 0xdf, 0x46, 0x8b, 0x63, 0x07, 0xa4, 0x39, 0xeb, 0x05, 0xfd, 0x60, 0x63, 0x31, 0xe9,
0x36, 0xc0, 0x88, 0x59, 0xa3, 0x82, 0x2c, 0x17, 0xdc, 0x1a, 0xaf, 0x35, 0xc6, 0x06, 0x18, 0x31,
0xfc, 0x08, 0xf5, 0x09, 0xa5, 0x20, 0x0d, 0xb0, 0xd4, 0x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, 0xbd, 0x9d, 0xe1, 0xef, 0x27, 0x6b, 0xc1, 0xcb, 0x93, 0xb5, 0xe0, 0xaf, 0x93, 0xb5,
0xe0, 0xc7, 0xbf, 0xd7, 0x5e, 0xfb, 0x32, 0x9e, 0xfb, 0x87, 0x39, 0x25, 0xb6, 0x59, 0x12, 0x4e,
0x32, 0x60, 0xb6, 0x96, 0x3e, 0x53, 0x6c, 0xdc, 0x71, 0x6b, 0xf8, 0xd1, 0x7f, 0x01, 0x00, 0x00,
0xff, 0xff, 0x53, 0x40, 0x15, 0xd1, 0xc8, 0x07, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// ReplicationServiceClient is the client API for ReplicationService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ReplicationServiceClient interface {
// Get the current API version of this service.
// Required permissions:
// - None
GetAPIVersion(ctx context.Context, in *v1.Empty, opts ...grpc.CallOption) (*v1.Version, error)
// Takes a backup and creates a deployment from it. For all intents and purposes this new deployment
// will be the same as the deployment at that exact moment when the backup was taken from it. This means that
// the new deployment will be in the same project and use the same provider as the old deployment did. Optionally
// a different region can be provided using the region id field on the request. Furthermore, the new deployment
// will have the same server settings ( count, mode, replication factor ) as the old deployment did at the time
// of taking the backup. After the new deployment successfully started, the backup will be used to restore the
// data into the new deployment. The new deployment will have a different endpoint, and the password will also
// be reset for it. All other user settings will remain the same.
// The old deployment will not be touched.
// Required permissions:
// if project_id is specified
// - backup.backup.get on the backup specified by backup_id in request
// - replication.deployment.clone-from-backup on the project specified in request
// if project_id is not specified
// - replication.deployment.clone-from-backup on the backup specified by backup_id
CloneDeploymentFromBackup(ctx context.Context, in *CloneDeploymentFromBackupRequest, opts ...grpc.CallOption) (*v11.Deployment, error)
// Get an existing DeploymentReplication using its deployment ID
// Required permissions:
// - replication.deploymentreplication.get
GetDeploymentReplication(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*DeploymentReplication, error)
// Update an existing DeploymentReplication spec. If does not exist, this will create a new one.
// This call expects the complete entity with the updated fields.
// Required permissions:
// - replication.deploymentreplication.update
UpdateDeploymentReplication(ctx context.Context, in *DeploymentReplication, opts ...grpc.CallOption) (*DeploymentReplication, error)
}
type replicationServiceClient struct {
cc *grpc.ClientConn
}
func NewReplicationServiceClient(cc *grpc.ClientConn) ReplicationServiceClient {
return &replicationServiceClient{cc}
}
func (c *replicationServiceClient) GetAPIVersion(ctx context.Context, in *v1.Empty, opts ...grpc.CallOption) (*v1.Version, error) {
out := new(v1.Version)
err := c.cc.Invoke(ctx, "/arangodb.cloud.replication.v1.ReplicationService/GetAPIVersion", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *replicationServiceClient) CloneDeploymentFromBackup(ctx context.Context, in *CloneDeploymentFromBackupRequest, opts ...grpc.CallOption) (*v11.Deployment, error) {
out := new(v11.Deployment)
err := c.cc.Invoke(ctx, "/arangodb.cloud.replication.v1.ReplicationService/CloneDeploymentFromBackup", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *replicationServiceClient) GetDeploymentReplication(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*DeploymentReplication, error) {
out := new(DeploymentReplication)
err := c.cc.Invoke(ctx, "/arangodb.cloud.replication.v1.ReplicationService/GetDeploymentReplication", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *replicationServiceClient) UpdateDeploymentReplication(ctx context.Context, in *DeploymentReplication, opts ...grpc.CallOption) (*DeploymentReplication, error) {
out := new(DeploymentReplication)
err := c.cc.Invoke(ctx, "/arangodb.cloud.replication.v1.ReplicationService/UpdateDeploymentReplication", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ReplicationServiceServer is the server API for ReplicationService service.
type ReplicationServiceServer interface {
// Get the current API version of this service.
// Required permissions:
// - None
GetAPIVersion(context.Context, *v1.Empty) (*v1.Version, error)
// Takes a backup and creates a deployment from it. For all intents and purposes this new deployment
// will be the same as the deployment at that exact moment when the backup was taken from it. This means that
// the new deployment will be in the same project and use the same provider as the old deployment did. Optionally
// a different region can be provided using the region id field on the request. Furthermore, the new deployment
// will have the same server settings ( count, mode, replication factor ) as the old deployment did at the time
// of taking the backup. After the new deployment successfully started, the backup will be used to restore the
// data into the new deployment. The new deployment will have a different endpoint, and the password will also
// be reset for it. All other user settings will remain the same.
// The old deployment will not be touched.
// Required permissions:
// if project_id is specified
// - backup.backup.get on the backup specified by backup_id in request
// - replication.deployment.clone-from-backup on the project specified in request
// if project_id is not specified
// - replication.deployment.clone-from-backup on the backup specified by backup_id
CloneDeploymentFromBackup(context.Context, *CloneDeploymentFromBackupRequest) (*v11.Deployment, error)
// Get an existing DeploymentReplication using its deployment ID
// Required permissions:
// - replication.deploymentreplication.get
GetDeploymentReplication(context.Context, *v1.IDOptions) (*DeploymentReplication, error)
// Update an existing DeploymentReplication spec. If does not exist, this will create a new one.
// This call expects the complete entity with the updated fields.
// Required permissions:
// - replication.deploymentreplication.update
UpdateDeploymentReplication(context.Context, *DeploymentReplication) (*DeploymentReplication, error)
}
// UnimplementedReplicationServiceServer can be embedded to have forward compatible implementations.
type UnimplementedReplicationServiceServer struct {
}
func (*UnimplementedReplicationServiceServer) GetAPIVersion(ctx context.Context, req *v1.Empty) (*v1.Version, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetAPIVersion not implemented")
}
func (*UnimplementedReplicationServiceServer) CloneDeploymentFromBackup(ctx context.Context, req *CloneDeploymentFromBackupRequest) (*v11.Deployment, error) {
return nil, status.Errorf(codes.Unimplemented, "method CloneDeploymentFromBackup not implemented")
}
func (*UnimplementedReplicationServiceServer) GetDeploymentReplication(ctx context.Context, req *v1.IDOptions) (*DeploymentReplication, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetDeploymentReplication not implemented")
}
func (*UnimplementedReplicationServiceServer) UpdateDeploymentReplication(ctx context.Context, req *DeploymentReplication) (*DeploymentReplication, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateDeploymentReplication not implemented")
}
func RegisterReplicationServiceServer(s *grpc.Server, srv ReplicationServiceServer) {
s.RegisterService(&_ReplicationService_serviceDesc, srv)
}
func _ReplicationService_GetAPIVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(v1.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ReplicationServiceServer).GetAPIVersion(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/arangodb.cloud.replication.v1.ReplicationService/GetAPIVersion",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ReplicationServiceServer).GetAPIVersion(ctx, req.(*v1.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _ReplicationService_CloneDeploymentFromBackup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CloneDeploymentFromBackupRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ReplicationServiceServer).CloneDeploymentFromBackup(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/arangodb.cloud.replication.v1.ReplicationService/CloneDeploymentFromBackup",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ReplicationServiceServer).CloneDeploymentFromBackup(ctx, req.(*CloneDeploymentFromBackupRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ReplicationService_GetDeploymentReplication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(v1.IDOptions)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ReplicationServiceServer).GetDeploymentReplication(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/arangodb.cloud.replication.v1.ReplicationService/GetDeploymentReplication",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ReplicationServiceServer).GetDeploymentReplication(ctx, req.(*v1.IDOptions))
}
return interceptor(ctx, in, info, handler)
}
func _ReplicationService_UpdateDeploymentReplication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeploymentReplication)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ReplicationServiceServer).UpdateDeploymentReplication(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/arangodb.cloud.replication.v1.ReplicationService/UpdateDeploymentReplication",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ReplicationServiceServer).UpdateDeploymentReplication(ctx, req.(*DeploymentReplication))
}
return interceptor(ctx, in, info, handler)
}
var _ReplicationService_serviceDesc = grpc.ServiceDesc{
ServiceName: "arangodb.cloud.replication.v1.ReplicationService",
HandlerType: (*ReplicationServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetAPIVersion",
Handler: _ReplicationService_GetAPIVersion_Handler,
},
{
MethodName: "CloneDeploymentFromBackup",
Handler: _ReplicationService_CloneDeploymentFromBackup_Handler,
},
{
MethodName: "GetDeploymentReplication",
Handler: _ReplicationService_GetDeploymentReplication_Handler,
},
{
MethodName: "UpdateDeploymentReplication",
Handler: _ReplicationService_UpdateDeploymentReplication_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "replication.proto",
}
func (m *CloneDeploymentFromBackupRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *CloneDeploymentFromBackupRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *CloneDeploymentFromBackupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if len(m.ProjectId) > 0 {
i -= len(m.ProjectId)
copy(dAtA[i:], m.ProjectId)
i = encodeVarintReplication(dAtA, i, uint64(len(m.ProjectId)))
i--
dAtA[i] = 0x22
}
if len(m.AcceptedTermsAndConditionsId) > 0 {
i -= len(m.AcceptedTermsAndConditionsId)
copy(dAtA[i:], m.AcceptedTermsAndConditionsId)
i = encodeVarintReplication(dAtA, i, uint64(len(m.AcceptedTermsAndConditionsId)))
i--
dAtA[i] = 0x1a
}
if len(m.RegionId) > 0 {
i -= len(m.RegionId)
copy(dAtA[i:], m.RegionId)
i = encodeVarintReplication(dAtA, i, uint64(len(m.RegionId)))
i--
dAtA[i] = 0x12
}
if len(m.BackupId) > 0 {
i -= len(m.BackupId)
copy(dAtA[i:], m.BackupId)
i = encodeVarintReplication(dAtA, i, uint64(len(m.BackupId)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *DeploymentReplication) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *DeploymentReplication) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *DeploymentReplication) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if m.Status != nil {
{
size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintReplication(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x6
i--
dAtA[i] = 0xa2
}
if m.CancelationOptions != nil {
{
size, err := m.CancelationOptions.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintReplication(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x52
}
if len(m.StartedById) > 0 {
i -= len(m.StartedById)
copy(dAtA[i:], m.StartedById)
i = encodeVarintReplication(dAtA, i, uint64(len(m.StartedById)))
i--
dAtA[i] = 0x2a
}
if len(m.TlsKeyfile) > 0 {
i -= len(m.TlsKeyfile)
copy(dAtA[i:], m.TlsKeyfile)
i = encodeVarintReplication(dAtA, i, uint64(len(m.TlsKeyfile)))
i--
dAtA[i] = 0x22
}
if len(m.CertificatePem) > 0 {
i -= len(m.CertificatePem)
copy(dAtA[i:], m.CertificatePem)
i = encodeVarintReplication(dAtA, i, uint64(len(m.CertificatePem)))
i--
dAtA[i] = 0x1a
}
if m.Started {
i--
if m.Started {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x10
}
if len(m.DeploymentId) > 0 {
i -= len(m.DeploymentId)
copy(dAtA[i:], m.DeploymentId)
i = encodeVarintReplication(dAtA, i, uint64(len(m.DeploymentId)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *DeploymentReplication_CancelationOptions) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *DeploymentReplication_CancelationOptions) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *DeploymentReplication_CancelationOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if m.MakeSourceDeploymentReadOnly {
i--
if m.MakeSourceDeploymentReadOnly {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x10
}
if m.DataConsistencyNotRequired {
i--
if m.DataConsistencyNotRequired {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *DeploymentReplication_Status) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *DeploymentReplication_Status) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *DeploymentReplication_Status) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if m.Progress != 0 {
i -= 4
encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Progress))))
i--
dAtA[i] = 0x45
}
if len(m.ForwarderEndpoint) > 0 {
i -= len(m.ForwarderEndpoint)
copy(dAtA[i:], m.ForwarderEndpoint)
i = encodeVarintReplication(dAtA, i, uint64(len(m.ForwarderEndpoint)))
i--
dAtA[i] = 0x3a
}
if m.PhaseUpdatedAt != nil {
{
size, err := m.PhaseUpdatedAt.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintReplication(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x32
}
if len(m.SyncEndpoint) > 0 {
i -= len(m.SyncEndpoint)
copy(dAtA[i:], m.SyncEndpoint)
i = encodeVarintReplication(dAtA, i, uint64(len(m.SyncEndpoint)))
i--
dAtA[i] = 0x2a
}
if len(m.Message) > 0 {
i -= len(m.Message)
copy(dAtA[i:], m.Message)
i = encodeVarintReplication(dAtA, i, uint64(len(m.Message)))
i--
dAtA[i] = 0x12
}
if len(m.Phase) > 0 {
i -= len(m.Phase)
copy(dAtA[i:], m.Phase)
i = encodeVarintReplication(dAtA, i, uint64(len(m.Phase)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func encodeVarintReplication(dAtA []byte, offset int, v uint64) int {
offset -= sovReplication(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *CloneDeploymentFromBackupRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.BackupId)
if l > 0 {
n += 1 + l + sovReplication(uint64(l))
}
l = len(m.RegionId)
if l > 0 {
n += 1 + l + sovReplication(uint64(l))
}
l = len(m.AcceptedTermsAndConditionsId)
if l > 0 {
n += 1 + l + sovReplication(uint64(l))
}
l = len(m.ProjectId)
if l > 0 {
n += 1 + l + sovReplication(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n