@@ -100,6 +100,11 @@ service Controller {
100
100
returns (ControllerGetVolumeResponse ) {
101
101
option (alpha_method) = true ;
102
102
}
103
+
104
+ rpc ControllerModifyVolume (ModifyVolumeRequest )
105
+ returns (ModifyVolumeResponse ) {
106
+ option (alpha_method) = true ;
107
+ }
103
108
}
104
109
105
110
service GroupController {
@@ -376,6 +381,10 @@ message CreateVolumeRequest {
376
381
// VOLUME_ACCESSIBILITY_CONSTRAINTS plugin capability, the SP MAY
377
382
// choose where the provisioned volume is accessible from.
378
383
TopologyRequirement accessibility_requirements = 7 ;
384
+
385
+ // This field is OPTIONAL. This allows the CO to specify the
386
+ // volume performance class parameters to apply.
387
+ map <string , string > mutable_parameters = 8 ;
379
388
}
380
389
381
390
// Specifies what source the volume will be created from. One of the
@@ -974,6 +983,21 @@ message ControllerGetVolumeResponse {
974
983
// This field is REQUIRED.
975
984
VolumeStatus status = 2 ;
976
985
}
986
+ message ModifyVolumeRequest {
987
+ option (alpha_message) = true ;
988
+
989
+ // Contains identity information for the existing volume.
990
+ // This field is REQUIRED.
991
+ string volume_id = 1 ;
992
+ // This field is OPTIONAL.This allows the CO to specify the
993
+ // mutable parameters to apply.
994
+ map <string , string > mutable_parameters = 2 ;
995
+ }
996
+
997
+ message ModifyVolumeResponse {
998
+ option (alpha_message) = true ;
999
+ }
1000
+
977
1001
message GetCapacityRequest {
978
1002
// If specified, the Plugin SHALL report the capacity of the storage
979
1003
// that can be used to provision volumes that satisfy ALL of the
@@ -1113,6 +1137,10 @@ message ControllerServiceCapability {
1113
1137
// SINGLE_NODE_SINGLE_WRITER and/or SINGLE_NODE_MULTI_WRITER are
1114
1138
// supported, in order to permit older COs to continue working.
1115
1139
SINGLE_NODE_MULTI_WRITER = 13 [(alpha_enum_value) = true ];
1140
+
1141
+ // Indicates the SP supports modifying volume with mutable
1142
+ // parameters. See ModifyVolume for details.
1143
+ MODIFY_VOLUME = 14 [(alpha_enum_value) = true ];
1116
1144
}
1117
1145
1118
1146
Type type = 1 ;
0 commit comments