Skip to content

Commit 7673c23

Browse files
authored
Merge pull request #331 from jdef/use_wkt_timestamp
spec: created_at is a Timestamp.
2 parents 5c90ec7 + 988b75c commit 7673c23

File tree

3 files changed

+278
-283
lines changed

3 files changed

+278
-283
lines changed

csi.proto

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ syntax = "proto3";
33
package csi.v1;
44

55
import "google/protobuf/descriptor.proto";
6+
import "google/protobuf/timestamp.proto";
67
import "google/protobuf/wrappers.proto";
78

89
option go_package = "csi";
@@ -900,11 +901,8 @@ message Snapshot {
900901
string source_volume_id = 3;
901902

902903
// Timestamp when the point-in-time snapshot is taken on the storage
903-
// system. The format of this field SHOULD be a Unix nanoseconds time
904-
// encoded as an int64. On Unix, the command `date +%s%N` returns the
905-
// current time in nanoseconds since 1970-01-01 00:00:00 UTC. This
906-
// field is REQUIRED.
907-
int64 created_at = 4;
904+
// system. This field is REQUIRED.
905+
.google.protobuf.Timestamp creation_time = 4;
908906

909907
// Indicates if a snapshot is ready to use as a
910908
// `volume_content_source` in a `CreateVolumeRequest`. The default

0 commit comments

Comments
 (0)