Skip to content

Commit b24db35

Browse files
Updated help message for volume_modify to include links to IBM documentation about sizes
1 parent 314f930 commit b24db35

File tree

11 files changed

+24
-16
lines changed

11 files changed

+24
-16
lines changed

plugin/commands/block/volume_modify.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ func NewVolumeModifyCommand(sl *metadata.SoftlayerStorageCommand) *VolumeModifyC
2828
cobraCmd := &cobra.Command{
2929
Use: "volume-modify " + T("IDENTIFIER"),
3030
Short: T("Modify an existing block storage volume"),
31-
Long: T(`${COMMAND_NAME} sl {{.storageType}} volume-modify VOLUME_ID [OPTIONS]
31+
Long: T(`Valid size and iops options can be found here:
32+
https://cloud.ibm.com/docs/BlockStorage/index.html#provisioning-considerations
33+
https://cloud.ibm.com/docs/BlockStorage?topic=BlockStorage-orderingBlockStorage&interface=cli
3234
3335
EXAMPLE:
3436
${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 1000 --new-iops 4000
@@ -42,7 +44,7 @@ func NewVolumeModifyCommand(sl *metadata.SoftlayerStorageCommand) *VolumeModifyC
4244
}
4345
cobraCmd.Flags().IntVarP(&thisCmd.NewSize, "new-size", "c", 0, T("New Size of block volume in GB. ***If no size is given, the original size of volume is used.***\n Potential Sizes: [20, 40, 80, 100, 250, 500, 1000, 2000, 4000, 8000, 12000]\n Minimum: [the original size of the volume]"))
4446
cobraCmd.Flags().IntVarP(&thisCmd.NewIops, "new-iops", "i", 0, T("Performance Storage IOPS, between 100 and 6000 in multiples of 100 [only for performance volumes] ***If no IOPS value is specified, the original IOPS value of the volume will be used.***"))
45-
cobraCmd.Flags().Float64VarP(&thisCmd.NewTier, "new-tier", "t", 0, T("Endurance Storage Tier (IOPS per GB) [only for endurance volumes] ***If no tier is specified, the original tier of the volume will be used.***"))
47+
cobraCmd.Flags().Float64VarP(&thisCmd.NewTier, "new-tier", "t", 0, T("Endurance Storage Tier (IOPS per GB) [only for endurance volumes] ***If no tier is specified, the original tier of the volume will be used.***") + "\n" + T("Tiers: [0.25, 2, 4, 10]"))
4648
cobraCmd.Flags().BoolVarP(&thisCmd.Force, "force", "f", false, T("Force operation without confirmation"))
4749
thisCmd.Command = cobraCmd
4850
return thisCmd

plugin/i18n/v2Resources/active.de_DE.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@
413413
"${COMMAND_NAME} sl {{.storageType}} volume-list [OPTIONS]\n\nEXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} volume-list -d dal09 -t endurance --sortby capacity_gb\n This command lists all endurance volumes on current account that are located at dal09, and sorts them by capacity.": {
414414
"other": "${COMMAND_NAME} sl {{.storageType}} volume-list [OPTIONEN]\n \nBEISPIEL:\n ${COMMAND_NAME} sl {{.storageType}} volume-list -d dal09 -t endurance --sortby capacity_gb\n Dieser Befehl listet alle Endurance-Datenträger für das aktuelle Konto in dal09 auf und sortiert sie nach Kapazität."
415415
},
416-
"${COMMAND_NAME} sl {{.storageType}} volume-modify VOLUME_ID [OPTIONS]\n\n EXAMPLE:\n\t ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 1000 --new-iops 4000 \n\t This command modify a volume 12345678 with size is 1000GB, IOPS is 4000.\n\t ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 500 --new-tier 4\n\t This command modify a volume 12345678 with size is 500GB, tier level is 4 IOPS per GB.": {
416+
"Valid size and iops options can be found here:\nhttps://cloud.ibm.com/docs/BlockStorage/index.html#provisioning-considerations\nhttps://cloud.ibm.com/docs/BlockStorage?topic=BlockStorage-orderingBlockStorage&interface=cliEXAMPLE:\n\t ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 1000 --new-iops 4000 \n\t This command modify a volume 12345678 with size is 1000GB, IOPS is 4000.\n\t ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 500 --new-tier 4\n\t This command modify a volume 12345678 with size is 500GB, tier level is 4 IOPS per GB.": {
417417
"other": "${COMMAND_NAME} sl {{.storageType}} volume-modify DATENTRÄGER_ID [OPTIONEN]\n\n BEISPIEL:\n ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 1000 --new-iops 4000 \n Dieser Befehl ändert einen Datenträger 12345678 mit der Größe 1000 GB, E/A-Operationen pro Sekunde sind 4000.\n ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 500 --new-tier 4\n Dieser Befehl ändert einen Datenträger 12345678 mit einer Größe von 500 GB und einer Tierebene von 4 E/A-Operationen pro Sekunde pro GB."
418418
},
419419
"${COMMAND_NAME} sl {{.storageType}} volume-options\n\t\nEXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} volume-options\n This command lists all options for creating a block storage volume, including storage type, volume size, OS type, IOPS, tier level, datacenter, and snapshot size.": {

plugin/i18n/v2Resources/active.en-US.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6845,6 +6845,9 @@
68456845
"Tier": {
68466846
"other": "Tier"
68476847
},
6848+
"Tiers: [0.25, 2, 4, 10]": {
6849+
"other": "Tiers: [0.25, 2, 4, 10]"
6850+
},
68486851
"Title": {
68496852
"other": "Title"
68506853
},
@@ -7169,6 +7172,9 @@
71697172
"Valid quantities vary by type.\n\t- public IPv4: 4, 8, 16, 32\n\t- private IPv4: 4, 8, 16, 32, 64\n\t- public IPv6: 64\n\nEXAMPLE:\n\t${COMMAND_NAME} sl subnet create public 16 567\n\tThis command creates a public subnet with 16 IPv4 addresses and places it on vlan with ID 567.": {
71707173
"other": "Valid quantities vary by type.\n\t- public IPv4: 4, 8, 16, 32\n\t- private IPv4: 4, 8, 16, 32, 64\n\t- public IPv6: 64\n\nEXAMPLE:\n\t${COMMAND_NAME} sl subnet create public 16 567\n\tThis command creates a public subnet with 16 IPv4 addresses and places it on vlan with ID 567."
71717174
},
7175+
"Valid size and iops options can be found here:\nhttps://cloud.ibm.com/docs/BlockStorage/index.html#provisioning-considerations\nhttps://cloud.ibm.com/docs/BlockStorage?topic=BlockStorage-orderingBlockStorage&interface=cli\n\n EXAMPLE:\n\t ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 1000 --new-iops 4000 \n\t This command modify a volume 12345678 with size is 1000GB, IOPS is 4000.\n\t ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 500 --new-tier 4\n\t This command modify a volume 12345678 with size is 500GB, tier level is 4 IOPS per GB.": {
7176+
"other": "Valid size and iops options can be found here:\nhttps://cloud.ibm.com/docs/BlockStorage/index.html#provisioning-considerations\nhttps://cloud.ibm.com/docs/BlockStorage?topic=BlockStorage-orderingBlockStorage&interface=cli\n\n EXAMPLE:\n\t ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 1000 --new-iops 4000 \n\t This command modify a volume 12345678 with size is 1000GB, IOPS is 4000.\n\t ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 500 --new-tier 4\n\t This command modify a volume 12345678 with size is 500GB, tier level is 4 IOPS per GB."
7177+
},
71727178
"Value": {
71737179
"other": "Value"
71747180
},

plugin/i18n/v2Resources/active.es_ES.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,8 @@
413413
"${COMMAND_NAME} sl {{.storageType}} volume-list [OPTIONS]\n\nEXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} volume-list -d dal09 -t endurance --sortby capacity_gb\n This command lists all endurance volumes on current account that are located at dal09, and sorts them by capacity.": {
414414
"other": "${COMMAND_NAME} sl {{.storageType}} volume-list [OPTIONS]\n\nEJEMPLO:\n ${COMMAND_NAME} sl {{.storageType}} volume-list -d dal09 -t endurance --sortby capacity_gb\n Este mandato lista todos los volúmenes de resistencia de la cuenta actual que están ubicados en dal09 y los ordena por capacidad."
415415
},
416-
"${COMMAND_NAME} sl {{.storageType}} volume-modify VOLUME_ID [OPTIONS]\n\n EXAMPLE:\n\t ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 1000 --new-iops 4000 \n\t This command modify a volume 12345678 with size is 1000GB, IOPS is 4000.\n\t ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 500 --new-tier 4\n\t This command modify a volume 12345678 with size is 500GB, tier level is 4 IOPS per GB.": {
417-
"other": "${COMMAND_NAME} sl {{.storageType}} volume-modify VOLUME_ID [OPTIONS]\n\n EJEMPLO:\n ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 1000 --new-iops 4000 \n Este comando modifica el volumen 12345678 con tamaño 1000 GB, IOPS 4000.\n ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 500 --new-tier 4\n Este comando modifica el volumen 12345678 con tamaño 500 GB, nivel 4 IOPS por GB."
416+
"Valid size and iops options can be found here:\nhttps://cloud.ibm.com/docs/BlockStorage/index.html#provisioning-considerations\nhttps://cloud.ibm.com/docs/BlockStorage?topic=BlockStorage-orderingBlockStorage&interface=cliEXAMPLE:\n\t ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 1000 --new-iops 4000 \n\t This command modify a volume 12345678 with size is 1000GB, IOPS is 4000.\n\t ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 500 --new-tier 4\n\t This command modify a volume 12345678 with size is 500GB, tier level is 4 IOPS per GB.": {
417+
"other": "Valid size and iops options can be found here:\nhttps://cloud.ibm.com/docs/BlockStorage/index.html#provisioning-considerations\nhttps://cloud.ibm.com/docs/BlockStorage?topic=BlockStorage-orderingBlockStorage&interface=cliEJEMPLO:\n ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 1000 --new-iops 4000 \n Este comando modifica el volumen 12345678 con tamaño 1000 GB, IOPS 4000.\n ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 500 --new-tier 4\n Este comando modifica el volumen 12345678 con tamaño 500 GB, nivel 4 IOPS por GB."
418418
},
419419
"${COMMAND_NAME} sl {{.storageType}} volume-options\n\t\nEXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} volume-options\n This command lists all options for creating a block storage volume, including storage type, volume size, OS type, IOPS, tier level, datacenter, and snapshot size.": {
420420
"other": "${COMMAND_NAME} sl {{.storageType}} volume-options\n\nEJEMPLO:\n ${COMMAND_NAME} sl {{.storageType}} volume-options\n Este comando lista todas las opciones de creación de un volumen de almacenamiento en bloques, incluidos el tipo de almacenamiento, el tamaño del volumen, el tipo de SO, las IOPS, el nivel, el centro de datos y el tamaño de la instantánea."

plugin/i18n/v2Resources/active.fr_FR.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@
413413
"${COMMAND_NAME} sl {{.storageType}} volume-list [OPTIONS]\n\nEXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} volume-list -d dal09 -t endurance --sortby capacity_gb\n This command lists all endurance volumes on current account that are located at dal09, and sorts them by capacity.": {
414414
"other": "${COMMAND_NAME} sl {{.storageType}} volume-list [OPTIONS]\n\nEXEMPLE :\n ${COMMAND_NAME} sl {{.storageType}} volume-list -d dal09 -t endurance --sortby capacity_gb\n Cette commande répertorie tous les volumes d'endurance du compte courant qui se trouvent dans le centre de données dal09 et les trie par capacité."
415415
},
416-
"${COMMAND_NAME} sl {{.storageType}} volume-modify VOLUME_ID [OPTIONS]\n\n EXAMPLE:\n\t ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 1000 --new-iops 4000 \n\t This command modify a volume 12345678 with size is 1000GB, IOPS is 4000.\n\t ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 500 --new-tier 4\n\t This command modify a volume 12345678 with size is 500GB, tier level is 4 IOPS per GB.": {
416+
"Valid size and iops options can be found here:\nhttps://cloud.ibm.com/docs/BlockStorage/index.html#provisioning-considerations\nhttps://cloud.ibm.com/docs/BlockStorage?topic=BlockStorage-orderingBlockStorage&interface=cliEXAMPLE:\n\t ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 1000 --new-iops 4000 \n\t This command modify a volume 12345678 with size is 1000GB, IOPS is 4000.\n\t ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 500 --new-tier 4\n\t This command modify a volume 12345678 with size is 500GB, tier level is 4 IOPS per GB.": {
417417
"other": "${COMMAND_NAME} sl {{.storageType}} volume-modify ID_VOLUME [OPTIONS]\n\n EXEMPLE :\n ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 1000 --new-iops 4000 \n Cette commande modifie le volume 12345678 avec une taille de 1000 Go et 4000 IOPS.\n ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 500 --new-tier 4\n Cette commande modifie le volume 12345678 avec une taille de 500 Go et le niveau 4 IOPS par Go."
418418
},
419419
"${COMMAND_NAME} sl {{.storageType}} volume-options\n\t\nEXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} volume-options\n This command lists all options for creating a block storage volume, including storage type, volume size, OS type, IOPS, tier level, datacenter, and snapshot size.": {

plugin/i18n/v2Resources/active.it_IT.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@
413413
"${COMMAND_NAME} sl {{.storageType}} volume-list [OPTIONS]\n\nEXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} volume-list -d dal09 -t endurance --sortby capacity_gb\n This command lists all endurance volumes on current account that are located at dal09, and sorts them by capacity.": {
414414
"other": "${COMMAND_NAME} sl {{.storageType}} volume-list [OPTIONS]\n\nESEMPIO:\n ${COMMAND_NAME} sl {{.storageType}} volume-list -d dal09 -t endurance --sortby capacity_gb\n Questo comando elenca tutti i volumi di endurance sull'account corrente che si trovano in dal09 e li ordina per capacità."
415415
},
416-
"${COMMAND_NAME} sl {{.storageType}} volume-modify VOLUME_ID [OPTIONS]\n\n EXAMPLE:\n\t ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 1000 --new-iops 4000 \n\t This command modify a volume 12345678 with size is 1000GB, IOPS is 4000.\n\t ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 500 --new-tier 4\n\t This command modify a volume 12345678 with size is 500GB, tier level is 4 IOPS per GB.": {
416+
"Valid size and iops options can be found here:\nhttps://cloud.ibm.com/docs/BlockStorage/index.html#provisioning-considerations\nhttps://cloud.ibm.com/docs/BlockStorage?topic=BlockStorage-orderingBlockStorage&interface=cliEXAMPLE:\n\t ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 1000 --new-iops 4000 \n\t This command modify a volume 12345678 with size is 1000GB, IOPS is 4000.\n\t ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 500 --new-tier 4\n\t This command modify a volume 12345678 with size is 500GB, tier level is 4 IOPS per GB.": {
417417
"other": "${COMMAND_NAME} sl {{.storageType}} volume-modify ID_VOLUME [OPZIONI]\n\n ESEMPIO:\n ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 1000 --new-iops 4000 \n Questo comando modifica un volume 12345678 con dimensione 1000GB, IOPS 4000.\n ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 500 --new-tier 4\n Questo comando modifica un volume 12345678 con dimensione 500GB, livello 4 IOPS per GB."
418418
},
419419
"${COMMAND_NAME} sl {{.storageType}} volume-options\n\t\nEXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} volume-options\n This command lists all options for creating a block storage volume, including storage type, volume size, OS type, IOPS, tier level, datacenter, and snapshot size.": {

plugin/i18n/v2Resources/active.ja_JP.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,8 @@
413413
"${COMMAND_NAME} sl {{.storageType}} volume-list [OPTIONS]\n\nEXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} volume-list -d dal09 -t endurance --sortby capacity_gb\n This command lists all endurance volumes on current account that are located at dal09, and sorts them by capacity.": {
414414
"other": "${COMMAND_NAME} sl {{.storageType}} volume-list [OPTIONS] \n \n 例: \n ${COMMAND_NAME} sl {{.storageType}} volume-list -d dal09 -t endurance -- sortby capacity_gb \n このコマンドは、 dal09にある現行アカウントのすべてのエンデュランス・ボリュームをリストし、それらを容量でソートします。"
415415
},
416-
"${COMMAND_NAME} sl {{.storageType}} volume-modify VOLUME_ID [OPTIONS]\n\n EXAMPLE:\n\t ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 1000 --new-iops 4000 \n\t This command modify a volume 12345678 with size is 1000GB, IOPS is 4000.\n\t ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 500 --new-tier 4\n\t This command modify a volume 12345678 with size is 500GB, tier level is 4 IOPS per GB.": {
417-
"other": "${COMMAND_NAME} sl {{.storageType}} volume-modify VOLUME_ID [OPTIONS]\n\n:\n ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 1000 --new-iops 4000 \n このコマンドは、サイズが1000GB、IOPSが4000のボリュームを変更します。\n ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 500 --new-tier 4\n このコマンドは、サイズが500GB、層レベルが4 IOPS/GBのボリューム 12345678を変更します。"
416+
"Valid size and iops options can be found here:\nhttps://cloud.ibm.com/docs/BlockStorage/index.html#provisioning-considerations\nhttps://cloud.ibm.com/docs/BlockStorage?topic=BlockStorage-orderingBlockStorage&interface=cliEXAMPLE:\n\t ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 1000 --new-iops 4000 \n\t This command modify a volume 12345678 with size is 1000GB, IOPS is 4000.\n\t ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 500 --new-tier 4\n\t This command modify a volume 12345678 with size is 500GB, tier level is 4 IOPS per GB.": {
417+
"other": "Valid size and iops options can be found here:\nhttps://cloud.ibm.com/docs/BlockStorage/index.html#provisioning-considerations\nhttps://cloud.ibm.com/docs/BlockStorage?topic=BlockStorage-orderingBlockStorage&interface=cli例:\n ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 1000 --new-iops 4000 \n このコマンドは、サイズが1000GB、IOPSが4000のボリュームを変更します。\n ${COMMAND_NAME} sl {{.storageType}} volume-modify 12345678 --new-size 500 --new-tier 4\n このコマンドは、サイズが500GB、層レベルが4 IOPS/GBのボリューム 12345678を変更します。"
418418
},
419419
"${COMMAND_NAME} sl {{.storageType}} volume-options\n\t\nEXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} volume-options\n This command lists all options for creating a block storage volume, including storage type, volume size, OS type, IOPS, tier level, datacenter, and snapshot size.": {
420420
"other": "${COMMAND_NAME} sl {{.storageType}} volume-options \n \n 例: \n ${COMMAND_NAME} sl {{.storageType}} volume-options \n このコマンドは、ストレージ・タイプ、ボリューム・サイズ、OS タイプ、IOPS、層レベル、データ・センター、およびスナップショット・サイズなど、ブロック・ストレージ・ボリュームを作成するためのすべてのオプションをリストします。"

0 commit comments

Comments
 (0)