Skip to content

Commit

Permalink
Merge pull request #331 from jdef/use_wkt_timestamp
Browse files Browse the repository at this point in the history
spec: created_at is a Timestamp.
  • Loading branch information
saad-ali authored Nov 14, 2018
2 parents 5c90ec7 + 988b75c commit 7673c23
Show file tree
Hide file tree
Showing 3 changed files with 278 additions and 283 deletions.
8 changes: 3 additions & 5 deletions csi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ syntax = "proto3";
package csi.v1;

import "google/protobuf/descriptor.proto";
import "google/protobuf/timestamp.proto";
import "google/protobuf/wrappers.proto";

option go_package = "csi";
Expand Down Expand Up @@ -900,11 +901,8 @@ message Snapshot {
string source_volume_id = 3;

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

// Indicates if a snapshot is ready to use as a
// `volume_content_source` in a `CreateVolumeRequest`. The default
Expand Down
Loading

0 comments on commit 7673c23

Please sign in to comment.