This is an automated email from the ASF dual-hosted git repository.
siyao pushed a commit to branch HDDS-6517-Snapshot
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/HDDS-6517-Snapshot by this
push:
new ae83ac54e0 HDDS-7600. [Snapshot] Mark all new proto message fields as
optional (#4120)
ae83ac54e0 is described below
commit ae83ac54e0c02833f49a1f2213259394949dd7dd
Author: Siyao Meng <[email protected]>
AuthorDate: Wed Jan 25 21:21:01 2023 -0800
HDDS-7600. [Snapshot] Mark all new proto message fields as optional (#4120)
---
.../src/main/proto/OmClientProtocol.proto | 32 +++++++++++-----------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git
a/hadoop-ozone/interface-client/src/main/proto/OmClientProtocol.proto
b/hadoop-ozone/interface-client/src/main/proto/OmClientProtocol.proto
index b810a41bb0..8fba86d714 100644
--- a/hadoop-ozone/interface-client/src/main/proto/OmClientProtocol.proto
+++ b/hadoop-ozone/interface-client/src/main/proto/OmClientProtocol.proto
@@ -1662,22 +1662,22 @@ message SetRangerServiceVersionRequest {
}
message CreateSnapshotRequest {
- required string volumeName = 1;
- required string bucketName = 2;
+ optional string volumeName = 1;
+ optional string bucketName = 2;
optional string snapshotName = 3;
optional string snapshotId = 4;
}
message ListSnapshotRequest {
- required string volumeName = 1;
- required string bucketName = 2;
+ optional string volumeName = 1;
+ optional string bucketName = 2;
}
message SnapshotDiffRequest {
- required string volumeName = 1;
- required string bucketName = 2;
- required string fromSnapshot = 3;
- required string toSnapshot = 4;
+ optional string volumeName = 1;
+ optional string bucketName = 2;
+ optional string fromSnapshot = 3;
+ optional string toSnapshot = 4;
}
message DeleteTenantRequest {
@@ -1718,7 +1718,7 @@ message SetRangerServiceVersionResponse {
}
message CreateSnapshotResponse {
- required SnapshotInfo snapshotInfo = 1;
+ optional SnapshotInfo snapshotInfo = 1;
}
message ListSnapshotResponse {
@@ -1727,14 +1727,14 @@ message ListSnapshotResponse {
message SnapshotDiffResponse {
- required SnapshotDiffReportProto snapshotDiffReport = 1;
+ optional SnapshotDiffReportProto snapshotDiffReport = 1;
}
message SnapshotDiffReportProto {
- required string volumeName = 1;
- required string bucketName = 2;
- required string fromSnapshot = 3;
- required string toSnapshot = 4;
+ optional string volumeName = 1;
+ optional string bucketName = 2;
+ optional string fromSnapshot = 3;
+ optional string toSnapshot = 4;
repeated DiffReportEntryProto diffList = 5;
}
@@ -1745,8 +1745,8 @@ message DiffReportEntryProto {
DELETE= 3;
RENAME = 4;
}
- required DiffTypeProto diffType = 1;
- required string sourcePath = 2;
+ optional DiffTypeProto diffType = 1;
+ optional string sourcePath = 2;
optional string targetPath = 3;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]