openstack-python-openstackc.../openstackclient
Rajat Dhasmana 0d9ace6425 Add CreateVolume class to v3
This patch acts as a base framework to add the parameters needed
for manage volume support.
This includes 2 changes:
1. Move get_parser and take_action code to common methods which
can be utilized by both v2 and v3
2. Make _check_size_arg as a static method and move it inside
CreateVolume class since it's not used by other classes.

[2] was initially thought to be a follow up change but since we
are implementing changes into the _check_size_arg method for v3,
it makes sense to just include it in CreateVolume class to avoid
adding a new additional method. Similar changes are done for v2
as well.

Change-Id: I9315e457ebd6c5ba4cc67452f92c9dc8c139ee3c
2024-05-15 11:46:12 +05:30
..
api trivial: Prepare for pyupgrade pre-commit hook 2024-04-23 12:24:23 +01:00
common tox: Remove bandit skips, run via pre-commit 2024-04-26 13:17:15 +01:00
compute Merge "Improve output of 'server migrate --wait'" 2024-05-07 14:52:05 +00:00
identity identity: Make better use of argparse 2024-05-07 11:20:02 +01:00
image trivial: Prepare for pyupgrade pre-commit hook 2024-04-23 12:24:23 +01:00
locale/tr_TR/LC_MESSAGES Imported Translations from Zanata 2018-03-01 07:25:50 +00:00
network Merge "Router flavor_id can be a name" 2024-05-08 19:43:44 +00:00
object trivial: Prepare for pyupgrade pre-commit hook 2024-04-23 12:24:23 +01:00
tests Merge "Router flavor_id can be a name" 2024-05-08 19:43:44 +00:00
volume Add CreateVolume class to v3 2024-05-15 11:46:12 +05:30
__init__.py Clean up W503 and E402 pep8 errors 2018-04-15 12:23:06 +09:00
i18n.py Remove log translations 2017-03-21 17:23:09 +08:00
shell.py trivial: Prepare for pyupgrade pre-commit hook 2024-04-23 12:24:23 +01:00