Skip to content

Commit 05ff00f

Browse files
committed
Rename id to volume_id and snapshot_id.
1 parent 2ca7be5 commit 05ff00f

File tree

3 files changed

+294
-294
lines changed

3 files changed

+294
-294
lines changed

csi.proto

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -251,14 +251,14 @@ message VolumeContentSource {
251251
// This field is REQUIRED. Plugin is REQUIRED to support creating
252252
// volume from snapshot if it supports the capability
253253
// CREATE_DELETE_SNAPSHOT.
254-
string id = 1;
254+
string snapshot_id = 1;
255255
}
256256

257257
message VolumeSource {
258258
// Contains identity information for the existing source volume.
259259
// This field is REQUIRED. Plugins reporting CLONE_VOLUME
260260
// capability MUST support creating a volume from another volume.
261-
string id = 1;
261+
string volume_id = 1;
262262
}
263263

264264
oneof type {
@@ -361,7 +361,7 @@ message Volume {
361361
// Contains identity information for the created volume. This field is
362362
// REQUIRED. The identity information will be used by the CO in
363363
// subsequent calls to refer to the provisioned volume.
364-
string id = 2;
364+
string volume_id = 2;
365365

366366
// Opaque static properties of the volume. SP MAY use this field to
367367
// ensure subsequent volume validation and publishing calls have
@@ -372,10 +372,10 @@ message Volume {
372372
// The contents of this field SHOULD NOT contain sensitive
373373
// information.
374374
// The contents of this field SHOULD NOT be used for uniquely
375-
// identifying a volume. The `id` alone should be sufficient to
375+
// identifying a volume. The `volume_id` alone should be sufficient to
376376
// identify the volume.
377-
// A volume uniquely identified by `id` SHALL always report the same
378-
// volume_context.
377+
// A volume uniquely identified by `volume_id` SHALL always report the
378+
// same volume_context.
379379
// This field is OPTIONAL and when present MUST be passed to volume
380380
// validation and publishing calls.
381381
map<string, string> volume_context = 3;
@@ -875,7 +875,7 @@ message Snapshot {
875875
// will not change over time. This field is REQUIRED. The identity
876876
// information will be used by the CO in subsequent calls to refer to
877877
// the provisioned snapshot.
878-
string id = 2;
878+
string snapshot_id = 2;
879879

880880
// Identity information for the source volume. Note that creating a
881881
// snapshot from a snapshot is not supported here so the source has to

0 commit comments

Comments
 (0)