-
Notifications
You must be signed in to change notification settings - Fork 0
/
volume.pb.go
1931 lines (1735 loc) · 73.4 KB
/
volume.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.34.1
// protoc (unknown)
// source: api/v1/volume.proto
package apiv1
import (
_ "github.com/envoyproxy/protoc-gen-validate/validate"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/protobuf/types/known/durationpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
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)
)
// Volume is a unit of block storage
type Volume struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Uuid is the unique identifier of the volume
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
// Name of the volume
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Project this volume belongs to
Project string `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"`
// Partition where this volume resides
Partition string `protobuf:"bytes,4,opt,name=partition,proto3" json:"partition,omitempty"`
// StorageClass where this volume is created
StorageClass string `protobuf:"bytes,5,opt,name=storage_class,json=storageClass,proto3" json:"storage_class,omitempty"`
// Size in bytes of the volume
Size uint64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"`
// Usage in bytes of the volume
Usage uint64 `protobuf:"varint,7,opt,name=usage,proto3" json:"usage,omitempty"`
// State of the volume
State string `protobuf:"bytes,8,opt,name=state,proto3" json:"state,omitempty"`
// AttachedTo us a list of nodes this volume is attached
AttachedTo []string `protobuf:"bytes,9,rep,name=attached_to,json=attachedTo,proto3" json:"attached_to,omitempty"`
// SourceSnapshotUuid if this volume was created from a snapshot, this was the uuid source
SourceSnapshotUuid string `protobuf:"bytes,10,opt,name=source_snapshot_uuid,json=sourceSnapshotUuid,proto3" json:"source_snapshot_uuid,omitempty"`
// SourceSnapshotName if this volume was created from a snapshot, this was the name of the source
SourceSnapshotName string `protobuf:"bytes,11,opt,name=source_snapshot_name,json=sourceSnapshotName,proto3" json:"source_snapshot_name,omitempty"`
// VolumeHandle is the handle to mount this volume manually
VolumeHandle string `protobuf:"bytes,12,opt,name=volume_handle,json=volumeHandle,proto3" json:"volume_handle,omitempty"`
// NodeIps is a list of storage server node ips
NodeIps []string `protobuf:"bytes,13,rep,name=node_ips,json=nodeIps,proto3" json:"node_ips,omitempty"`
// RebuildProgress shows the progress of a rebuild if any
RebuildProgress string `protobuf:"bytes,14,opt,name=rebuild_progress,json=rebuildProgress,proto3" json:"rebuild_progress,omitempty"`
// PrimaryNodeUuid is the uuid of the storage server node where the primary replica of this volume resides
PrimaryNodeUuid string `protobuf:"bytes,15,opt,name=primary_node_uuid,json=primaryNodeUuid,proto3" json:"primary_node_uuid,omitempty"`
// QosPolicyUuid is the uuid of the QOS policy if any
QosPolicyUuid string `protobuf:"bytes,16,opt,name=qos_policy_uuid,json=qosPolicyUuid,proto3" json:"qos_policy_uuid,omitempty"`
// QosPolicyName is the name of the QOS policy if any
QosPolicyName string `protobuf:"bytes,17,opt,name=qos_policy_name,json=qosPolicyName,proto3" json:"qos_policy_name,omitempty"`
// ReplicaCount shows how many replicas of this volume exist
ReplicaCount uint32 `protobuf:"varint,18,opt,name=replica_count,json=replicaCount,proto3" json:"replica_count,omitempty"`
// ProtectionState shows the state of failure protection of this volume
ProtectionState string `protobuf:"bytes,19,opt,name=protection_state,json=protectionState,proto3" json:"protection_state,omitempty"`
// LogicalUsedStorage in bytes of the volume
LogicalUsedStorage uint64 `protobuf:"varint,20,opt,name=logical_used_storage,json=logicalUsedStorage,proto3" json:"logical_used_storage,omitempty"`
// VolumeStatistics are only visible to admins
Statistics *VolumeStatistics `protobuf:"bytes,21,opt,name=statistics,proto3" json:"statistics,omitempty"`
}
func (x *Volume) Reset() {
*x = Volume{}
if protoimpl.UnsafeEnabled {
mi := &file_api_v1_volume_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Volume) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Volume) ProtoMessage() {}
func (x *Volume) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_volume_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 Volume.ProtoReflect.Descriptor instead.
func (*Volume) Descriptor() ([]byte, []int) {
return file_api_v1_volume_proto_rawDescGZIP(), []int{0}
}
func (x *Volume) GetUuid() string {
if x != nil {
return x.Uuid
}
return ""
}
func (x *Volume) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Volume) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
func (x *Volume) GetPartition() string {
if x != nil {
return x.Partition
}
return ""
}
func (x *Volume) GetStorageClass() string {
if x != nil {
return x.StorageClass
}
return ""
}
func (x *Volume) GetSize() uint64 {
if x != nil {
return x.Size
}
return 0
}
func (x *Volume) GetUsage() uint64 {
if x != nil {
return x.Usage
}
return 0
}
func (x *Volume) GetState() string {
if x != nil {
return x.State
}
return ""
}
func (x *Volume) GetAttachedTo() []string {
if x != nil {
return x.AttachedTo
}
return nil
}
func (x *Volume) GetSourceSnapshotUuid() string {
if x != nil {
return x.SourceSnapshotUuid
}
return ""
}
func (x *Volume) GetSourceSnapshotName() string {
if x != nil {
return x.SourceSnapshotName
}
return ""
}
func (x *Volume) GetVolumeHandle() string {
if x != nil {
return x.VolumeHandle
}
return ""
}
func (x *Volume) GetNodeIps() []string {
if x != nil {
return x.NodeIps
}
return nil
}
func (x *Volume) GetRebuildProgress() string {
if x != nil {
return x.RebuildProgress
}
return ""
}
func (x *Volume) GetPrimaryNodeUuid() string {
if x != nil {
return x.PrimaryNodeUuid
}
return ""
}
func (x *Volume) GetQosPolicyUuid() string {
if x != nil {
return x.QosPolicyUuid
}
return ""
}
func (x *Volume) GetQosPolicyName() string {
if x != nil {
return x.QosPolicyName
}
return ""
}
func (x *Volume) GetReplicaCount() uint32 {
if x != nil {
return x.ReplicaCount
}
return 0
}
func (x *Volume) GetProtectionState() string {
if x != nil {
return x.ProtectionState
}
return ""
}
func (x *Volume) GetLogicalUsedStorage() uint64 {
if x != nil {
return x.LogicalUsedStorage
}
return 0
}
func (x *Volume) GetStatistics() *VolumeStatistics {
if x != nil {
return x.Statistics
}
return nil
}
// VolumeStatistics are all detailed statistics of a volume
type VolumeStatistics struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// LogicalUsedStorage
//
// Logical storage space used by volume, given in bytes.
LogicalUsedStorage uint64 `protobuf:"varint,1,opt,name=logical_used_storage,json=logicalUsedStorage,proto3" json:"logical_used_storage,omitempty"`
// PhysicalUsedStorage
//
// Physical storage space used by volume excluding parity, given in bytes.
PhysicalUsedStorage uint64 `protobuf:"varint,2,opt,name=physical_used_storage,json=physicalUsedStorage,proto3" json:"physical_used_storage,omitempty"`
// CompressionRatio
//
// compression ratio userWritten/physicalCapacity
CompressionRatio float64 `protobuf:"fixed64,3,opt,name=compression_ratio,json=compressionRatio,proto3" json:"compression_ratio,omitempty"`
// TotalCompressionRatio
//
// compression ratio sum(userWritten) / sum(physical capacity)
TotalCompressionRatio float64 `protobuf:"fixed64,4,opt,name=total_compression_ratio,json=totalCompressionRatio,proto3" json:"total_compression_ratio,omitempty"`
// PhysicalCapacity
//
// The physical capacity that exists in this volume layer
PhysicalCapacity uint64 `protobuf:"varint,5,opt,name=physical_capacity,json=physicalCapacity,proto3" json:"physical_capacity,omitempty"`
// PhysicalOwnedStorageCapacity
//
// The capacity that would be freed when volume is deleted
PhysicalOwnedCapacity uint64 `protobuf:"varint,6,opt,name=physical_owned_capacity,json=physicalOwnedCapacity,proto3" json:"physical_owned_capacity,omitempty"`
// PhysicalOwnedMemory
//
// The memory that would be freed when volume is deleted
PhysicalOwnedMemory uint64 `protobuf:"varint,7,opt,name=physical_owned_memory,json=physicalOwnedMemory,proto3" json:"physical_owned_memory,omitempty"`
// PhysicalMemory
//
// The memory that exists for this volume
PhysicalMemory uint64 `protobuf:"varint,8,opt,name=physical_memory,json=physicalMemory,proto3" json:"physical_memory,omitempty"`
// UserWritten
//
// The amount of bytes written to this volume by the user
UserWritten uint64 `protobuf:"varint,9,opt,name=user_written,json=userWritten,proto3" json:"user_written,omitempty"`
// UnrecoverableDataIntegrityErrors
//
// Number of data integrity errors that could no be recovered by the system.
UnrecoverableDataIntegrityErrors uint32 `protobuf:"varint,10,opt,name=unrecoverable_data_integrity_errors,json=unrecoverableDataIntegrityErrors,proto3" json:"unrecoverable_data_integrity_errors,omitempty"`
// RecoverableDataIntegrityErrors
//
// Number of data integrity errors that were recovered by the system.
RecoverableDataIntegrityErrors uint32 `protobuf:"varint,12,opt,name=recoverable_data_integrity_errors,json=recoverableDataIntegrityErrors,proto3" json:"recoverable_data_integrity_errors,omitempty"`
}
func (x *VolumeStatistics) Reset() {
*x = VolumeStatistics{}
if protoimpl.UnsafeEnabled {
mi := &file_api_v1_volume_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *VolumeStatistics) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VolumeStatistics) ProtoMessage() {}
func (x *VolumeStatistics) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_volume_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 VolumeStatistics.ProtoReflect.Descriptor instead.
func (*VolumeStatistics) Descriptor() ([]byte, []int) {
return file_api_v1_volume_proto_rawDescGZIP(), []int{1}
}
func (x *VolumeStatistics) GetLogicalUsedStorage() uint64 {
if x != nil {
return x.LogicalUsedStorage
}
return 0
}
func (x *VolumeStatistics) GetPhysicalUsedStorage() uint64 {
if x != nil {
return x.PhysicalUsedStorage
}
return 0
}
func (x *VolumeStatistics) GetCompressionRatio() float64 {
if x != nil {
return x.CompressionRatio
}
return 0
}
func (x *VolumeStatistics) GetTotalCompressionRatio() float64 {
if x != nil {
return x.TotalCompressionRatio
}
return 0
}
func (x *VolumeStatistics) GetPhysicalCapacity() uint64 {
if x != nil {
return x.PhysicalCapacity
}
return 0
}
func (x *VolumeStatistics) GetPhysicalOwnedCapacity() uint64 {
if x != nil {
return x.PhysicalOwnedCapacity
}
return 0
}
func (x *VolumeStatistics) GetPhysicalOwnedMemory() uint64 {
if x != nil {
return x.PhysicalOwnedMemory
}
return 0
}
func (x *VolumeStatistics) GetPhysicalMemory() uint64 {
if x != nil {
return x.PhysicalMemory
}
return 0
}
func (x *VolumeStatistics) GetUserWritten() uint64 {
if x != nil {
return x.UserWritten
}
return 0
}
func (x *VolumeStatistics) GetUnrecoverableDataIntegrityErrors() uint32 {
if x != nil {
return x.UnrecoverableDataIntegrityErrors
}
return 0
}
func (x *VolumeStatistics) GetRecoverableDataIntegrityErrors() uint32 {
if x != nil {
return x.RecoverableDataIntegrityErrors
}
return 0
}
// Snapshot is a unit of block storage create as a point in time block copy of a volume
type Snapshot struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Uuid is the unique identifier of the snapshot
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
// Name of the snapshot
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Description of this snapshot
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Project this snapshot belongs to
Project string `protobuf:"bytes,4,opt,name=project,proto3" json:"project,omitempty"`
// Partition where this snapshot resides
Partition string `protobuf:"bytes,5,opt,name=partition,proto3" json:"partition,omitempty"`
// StorageClass where this snapshot is created
StorageClass string `protobuf:"bytes,6,opt,name=storage_class,json=storageClass,proto3" json:"storage_class,omitempty"`
// Size in bytes of the snapshot
Size uint64 `protobuf:"varint,7,opt,name=size,proto3" json:"size,omitempty"`
// Usage in bytes of the snapshot
Usage uint64 `protobuf:"varint,8,opt,name=usage,proto3" json:"usage,omitempty"`
// State of the snapshot
State string `protobuf:"bytes,9,opt,name=state,proto3" json:"state,omitempty"`
// SourceVolumeUuid is the uuid of the snapshot this snapshot was created from
SourceVolumeUuid string `protobuf:"bytes,10,opt,name=source_volume_uuid,json=sourceVolumeUuid,proto3" json:"source_volume_uuid,omitempty"`
// SourceVolumeName is the name of the snapshot this snapshot was created from
SourceVolumeName string `protobuf:"bytes,11,opt,name=source_volume_name,json=sourceVolumeName,proto3" json:"source_volume_name,omitempty"`
// ReplicaCount shows how many replicas of this snapshot exist
ReplicaCount uint32 `protobuf:"varint,12,opt,name=replica_count,json=replicaCount,proto3" json:"replica_count,omitempty"`
// PrimaryNodeUuid is the uuid of the storage server node where the primary replica of this snapshot resides
PrimaryNodeUuid string `protobuf:"bytes,13,opt,name=primary_node_uuid,json=primaryNodeUuid,proto3" json:"primary_node_uuid,omitempty"`
// Retention is the duration after creation, after which this snapshot will be deleted
Retention *durationpb.Duration `protobuf:"bytes,14,opt,name=retention,proto3" json:"retention,omitempty"`
// SnapshotStatistics are only visible to admins
Statistics *SnapshotStatistics `protobuf:"bytes,15,opt,name=statistics,proto3" json:"statistics,omitempty"`
// CreatedAt is the date when this snapshot was created
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,20,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
}
func (x *Snapshot) Reset() {
*x = Snapshot{}
if protoimpl.UnsafeEnabled {
mi := &file_api_v1_volume_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Snapshot) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Snapshot) ProtoMessage() {}
func (x *Snapshot) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_volume_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 Snapshot.ProtoReflect.Descriptor instead.
func (*Snapshot) Descriptor() ([]byte, []int) {
return file_api_v1_volume_proto_rawDescGZIP(), []int{2}
}
func (x *Snapshot) GetUuid() string {
if x != nil {
return x.Uuid
}
return ""
}
func (x *Snapshot) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Snapshot) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *Snapshot) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
func (x *Snapshot) GetPartition() string {
if x != nil {
return x.Partition
}
return ""
}
func (x *Snapshot) GetStorageClass() string {
if x != nil {
return x.StorageClass
}
return ""
}
func (x *Snapshot) GetSize() uint64 {
if x != nil {
return x.Size
}
return 0
}
func (x *Snapshot) GetUsage() uint64 {
if x != nil {
return x.Usage
}
return 0
}
func (x *Snapshot) GetState() string {
if x != nil {
return x.State
}
return ""
}
func (x *Snapshot) GetSourceVolumeUuid() string {
if x != nil {
return x.SourceVolumeUuid
}
return ""
}
func (x *Snapshot) GetSourceVolumeName() string {
if x != nil {
return x.SourceVolumeName
}
return ""
}
func (x *Snapshot) GetReplicaCount() uint32 {
if x != nil {
return x.ReplicaCount
}
return 0
}
func (x *Snapshot) GetPrimaryNodeUuid() string {
if x != nil {
return x.PrimaryNodeUuid
}
return ""
}
func (x *Snapshot) GetRetention() *durationpb.Duration {
if x != nil {
return x.Retention
}
return nil
}
func (x *Snapshot) GetStatistics() *SnapshotStatistics {
if x != nil {
return x.Statistics
}
return nil
}
func (x *Snapshot) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
// SnapshotStatistics are all detailed statistics of a snapshot
type SnapshotStatistics struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// PhysicalCapacity
//
// The physical capacity that exists in this snapshot layer
PhysicalCapacity uint64 `protobuf:"varint,1,opt,name=physical_capacity,json=physicalCapacity,proto3" json:"physical_capacity,omitempty"`
// PhysicalOwnedStorageCapacity
//
// The capacity that would be freed when snapshot is deleted
PhysicalOwnedCapacity uint64 `protobuf:"varint,2,opt,name=physical_owned_capacity,json=physicalOwnedCapacity,proto3" json:"physical_owned_capacity,omitempty"`
// PhysicalOwnedMemory
//
// The memory that would be freed when snapshot is deleted
PhysicalOwnedMemory uint64 `protobuf:"varint,3,opt,name=physical_owned_memory,json=physicalOwnedMemory,proto3" json:"physical_owned_memory,omitempty"`
// PhysicalMemory
//
// The memory that exists for this snapshot
PhysicalMemory uint64 `protobuf:"varint,4,opt,name=physical_memory,json=physicalMemory,proto3" json:"physical_memory,omitempty"`
// UserWritten
//
// The amount of bytes written to this snapshot by the user
UserWritten uint64 `protobuf:"varint,5,opt,name=user_written,json=userWritten,proto3" json:"user_written,omitempty"`
}
func (x *SnapshotStatistics) Reset() {
*x = SnapshotStatistics{}
if protoimpl.UnsafeEnabled {
mi := &file_api_v1_volume_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SnapshotStatistics) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SnapshotStatistics) ProtoMessage() {}
func (x *SnapshotStatistics) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_volume_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 SnapshotStatistics.ProtoReflect.Descriptor instead.
func (*SnapshotStatistics) Descriptor() ([]byte, []int) {
return file_api_v1_volume_proto_rawDescGZIP(), []int{3}
}
func (x *SnapshotStatistics) GetPhysicalCapacity() uint64 {
if x != nil {
return x.PhysicalCapacity
}
return 0
}
func (x *SnapshotStatistics) GetPhysicalOwnedCapacity() uint64 {
if x != nil {
return x.PhysicalOwnedCapacity
}
return 0
}
func (x *SnapshotStatistics) GetPhysicalOwnedMemory() uint64 {
if x != nil {
return x.PhysicalOwnedMemory
}
return 0
}
func (x *SnapshotStatistics) GetPhysicalMemory() uint64 {
if x != nil {
return x.PhysicalMemory
}
return 0
}
func (x *SnapshotStatistics) GetUserWritten() uint64 {
if x != nil {
return x.UserWritten
}
return 0
}
// VolumeServiceGetRequest is the request payload of the volume get request
type VolumeServiceGetRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Uuid of the volume
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
// Project of the volume
Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
}
func (x *VolumeServiceGetRequest) Reset() {
*x = VolumeServiceGetRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_api_v1_volume_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *VolumeServiceGetRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VolumeServiceGetRequest) ProtoMessage() {}
func (x *VolumeServiceGetRequest) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_volume_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 VolumeServiceGetRequest.ProtoReflect.Descriptor instead.
func (*VolumeServiceGetRequest) Descriptor() ([]byte, []int) {
return file_api_v1_volume_proto_rawDescGZIP(), []int{4}
}
func (x *VolumeServiceGetRequest) GetUuid() string {
if x != nil {
return x.Uuid
}
return ""
}
func (x *VolumeServiceGetRequest) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
// VolumeServiceListRequest is the request payload of a volume list request
type VolumeServiceListRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Uuid of the volume
Uuid *string `protobuf:"bytes,1,opt,name=uuid,proto3,oneof" json:"uuid,omitempty"`
// Project of the volume
Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
// Partition where the volumes should be listed
Partition *string `protobuf:"bytes,3,opt,name=partition,proto3,oneof" json:"partition,omitempty"`
// Name of the volume
Name *string `protobuf:"bytes,4,opt,name=name,proto3,oneof" json:"name,omitempty"`
}
func (x *VolumeServiceListRequest) Reset() {
*x = VolumeServiceListRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_api_v1_volume_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *VolumeServiceListRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VolumeServiceListRequest) ProtoMessage() {}
func (x *VolumeServiceListRequest) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_volume_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 VolumeServiceListRequest.ProtoReflect.Descriptor instead.
func (*VolumeServiceListRequest) Descriptor() ([]byte, []int) {
return file_api_v1_volume_proto_rawDescGZIP(), []int{5}
}
func (x *VolumeServiceListRequest) GetUuid() string {
if x != nil && x.Uuid != nil {
return *x.Uuid
}
return ""
}
func (x *VolumeServiceListRequest) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
func (x *VolumeServiceListRequest) GetPartition() string {
if x != nil && x.Partition != nil {
return *x.Partition
}
return ""
}
func (x *VolumeServiceListRequest) GetName() string {
if x != nil && x.Name != nil {
return *x.Name
}
return ""
}
// VolumeServiceDeleteRequest is the request payload of a volume delete request
type VolumeServiceDeleteRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Uuid of the volume
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
// Project of the volume
Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
}
func (x *VolumeServiceDeleteRequest) Reset() {
*x = VolumeServiceDeleteRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_api_v1_volume_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *VolumeServiceDeleteRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VolumeServiceDeleteRequest) ProtoMessage() {}
func (x *VolumeServiceDeleteRequest) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_volume_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 VolumeServiceDeleteRequest.ProtoReflect.Descriptor instead.
func (*VolumeServiceDeleteRequest) Descriptor() ([]byte, []int) {
return file_api_v1_volume_proto_rawDescGZIP(), []int{6}
}
func (x *VolumeServiceDeleteRequest) GetUuid() string {
if x != nil {
return x.Uuid
}
return ""
}
func (x *VolumeServiceDeleteRequest) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
// SnapshotServiceGetRequest is the request payload of a snapshot list request
type SnapshotServiceGetRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Uuid of the snapshot
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
// Project of the snapshot
Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
}
func (x *SnapshotServiceGetRequest) Reset() {
*x = SnapshotServiceGetRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_api_v1_volume_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SnapshotServiceGetRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SnapshotServiceGetRequest) ProtoMessage() {}
func (x *SnapshotServiceGetRequest) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_volume_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SnapshotServiceGetRequest.ProtoReflect.Descriptor instead.
func (*SnapshotServiceGetRequest) Descriptor() ([]byte, []int) {
return file_api_v1_volume_proto_rawDescGZIP(), []int{7}
}
func (x *SnapshotServiceGetRequest) GetUuid() string {
if x != nil {
return x.Uuid
}
return ""
}
func (x *SnapshotServiceGetRequest) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
// SnapshotServiceListRequest is the request payload of a snapshot list request
type SnapshotServiceListRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Uuid of the snapshot
Uuid *string `protobuf:"bytes,1,opt,name=uuid,proto3,oneof" json:"uuid,omitempty"`
// Project of the snapshot
Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
// Partition where the snapshots should be listed
Partition *string `protobuf:"bytes,3,opt,name=partition,proto3,oneof" json:"partition,omitempty"`
// Name of the snapshot
Name *string `protobuf:"bytes,4,opt,name=name,proto3,oneof" json:"name,omitempty"`
}
func (x *SnapshotServiceListRequest) Reset() {
*x = SnapshotServiceListRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_api_v1_volume_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SnapshotServiceListRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SnapshotServiceListRequest) ProtoMessage() {}
func (x *SnapshotServiceListRequest) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_volume_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SnapshotServiceListRequest.ProtoReflect.Descriptor instead.
func (*SnapshotServiceListRequest) Descriptor() ([]byte, []int) {
return file_api_v1_volume_proto_rawDescGZIP(), []int{8}
}
func (x *SnapshotServiceListRequest) GetUuid() string {
if x != nil && x.Uuid != nil {
return *x.Uuid
}
return ""
}
func (x *SnapshotServiceListRequest) GetProject() string {