Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Storage Rest API, Refine Storage Data and CLI #3754

Merged
merged 11 commits into from
Oct 22, 2019
Merged

Conversation

wangdian
Copy link
Member

Add CRUD for Storage
Set storage configs for group
Get user storage config in user info
Call Storage Rest Api in webportal
Refine Storage CLI

@wangdian wangdian requested a review from mydmdm October 18, 2019 07:49
groupsc_parser = subparsers.add_parser("groupsc", description="Manage group storage config", formatter_class=argparse.RawDescriptionHelpFormatter)
groupsc_subparsers = groupsc_parser.add_subparsers(help="Manage group storage config")
# ./storagectl.py groupsc add GROUP_NAME STORAGE_CONFIG_NAME
groupsc_add_parser = groupsc_subparsers.add_parser("add")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually I think ./storagectl.py add-groupsc ... is more clear and easy to read, however, it does not matter
maybe later I will try to merge this script to the SDK if necessary

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. Actually I suggest later, we only manage storage through rest-api because as storage is part of the PAI, we don't need to manage it in two ways.

@wangdian wangdian force-pushed the diawang/storage-crud branch from 8b2a592 to 3480e72 Compare October 22, 2019 09:04
@wangdian wangdian merged commit 9676024 into master Oct 22, 2019
@wangdian wangdian deleted the diawang/storage-crud branch November 28, 2019 08:55
@hzy46 hzy46 mentioned this pull request Apr 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants