Skip to content

Commit 9af22c9

Browse files
ulya-sidorinaqrort
authored andcommitted
feat(operation_service): put operation type description to proto
1 parent b9cd81d commit 9af22c9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/types/operation.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ func (o *TakeBackupOperation) Proto() *pb.Operation {
114114
Status: o.State.Enum(),
115115
Message: o.Message,
116116
UpdatedAt: o.UpdatedAt,
117+
TypeDescription: o.GetTypeDescription(),
117118
}
118119
if o.ParentOperationID != nil {
119120
op.ParentOperationId = *o.ParentOperationID
@@ -200,6 +201,7 @@ func (o *RestoreBackupOperation) Proto() *pb.Operation {
200201
Status: o.State.Enum(),
201202
Message: o.Message,
202203
UpdatedAt: o.UpdatedAt,
204+
TypeDescription: o.GetTypeDescription(),
203205
}
204206
}
205207

@@ -277,6 +279,7 @@ func (o *DeleteBackupOperation) Proto() *pb.Operation {
277279
Status: o.State.Enum(),
278280
Message: o.Message,
279281
UpdatedAt: o.UpdatedAt,
282+
TypeDescription: o.GetTypeDescription(),
280283
}
281284
}
282285

@@ -351,6 +354,7 @@ func (o *TakeBackupWithRetryOperation) Proto() *pb.Operation {
351354
Message: o.Message,
352355
UpdatedAt: o.UpdatedAt,
353356
RetryConfig: o.RetryConfig,
357+
TypeDescription: o.GetTypeDescription(),
354358
}
355359
}
356360

0 commit comments

Comments
 (0)