14 Commits

Author SHA1 Message Date
Hirotaka Wakabayashi
2dbbf5656e Adapts new API response schema
This PR makes troveclient to handle API response in new data schema.
Trove API response data schema has changed by the commit[1].

Original problem is that python-troveclient can't parse a API response
data in new data schema, resulting in an error.

[1]: 429c39890e

Task: 44986
Story: 2009979
Change-Id: I2e446c68c3b82c11d13f6bace54273c109e02069
2022-04-08 04:06:30 +09:00
wangzihao
17d2d5175e Remove six
Remove all usages of six.

Change-Id: I6ea8d1cdc3060d5c2a4311c7454b66ba75109b0c
2020-10-13 11:02:06 +08:00
Eric Fried
5f0271a735 Fix python-openstackclient plugin doc build
Some plugin command option help strings were using invalid syntax to
refer to another option. This looked odd in CLI output

  --marker <ID>         Begin displaying the results for IDs greater than
                        thespecified marker. When used with :option:`--limit,`
                        setthis to the last ID displayed in the previous run.

and also caused building autoprogram-cliff from python-openstackclient
to break with errors like:

<ListDatabaseInstances>:1:unknown option: --limit,

This commit reformats the help strings to use double backticks, which
render sanely in the CLI help and also build properly from
python-openstackclient.

Change-Id: Ia3fd6d5ec76e0e6d6aee87d8a8790a1ed2d38a26
2019-10-22 14:08:10 -05:00
zhanggang
0ce6255bfd Sync two parameters of cluster-create to OSC
The previous patches have add configuration and extended_properties
to "trove cluster-create"[1][2], this commit add the two paramenters
to OSC, user can pass configuration and extended_properties during
"openstack database cluster create".

[1] https://review.openstack.org/#/c/583125/
[2] https://review.openstack.org/#/c/589047/

Change-Id: Ic8e3ba4e92d3b65fa65875675f58eead5827976a
Signed-off-by: zhanggang <zhanggang@cmss.chinamobile.com>
2018-08-21 19:06:11 +08:00
wangyao
bca0410100 Add cluster-modules to OSC
This change adds database support to the python-openstackclient
project for the cluster-modules command.

The trove command cluster-modules is now:
    openstack database cluster modules

Change-Id: Ib16578de1520163e9b9bc6894a079e8f0fcef37b
Partially-Implements: blueprint trove-support-in-python-openstackclient
2018-06-20 12:25:06 +08:00
Zhao Chao
a2da920ef4 Add cluster-grow and cluster-shrink to OSC
This change adds database support to python-openstackclient
project for the cluster-grow and cluster-shrink commands.

The trove command cluster-grow is now:
    openstack database cluster grow
The trove command cluster-shrink is now:
    openstack database cluster shrink

Change-Id: I449e7f7d841ea266611ff79f8a41f6e730fced3c
Partially-Implements: blueprint trove-support-in-python-openstackclient
Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
2018-02-13 20:11:23 +08:00
Zhao Chao
e89cadc0ed Add force-delete to OSC
This change adds database support for the python-openstackclient
project for the force-delete and cluster-force-delete commands.

The trove command force-delete is now:
    openstack database instance force delete
The trove command cluster-force-delete is now:
    openstack database cluster force delete

Change-Id: I919678ca6b06d3b5762eac1990cc1fbf0e149d7c
Partially-Implements: blueprint trove-support-in-python-openstackclient
Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
2018-01-20 17:20:32 +08:00
Zhao Chao
e93d56de56 Add upgrade to OSC
This change adds database support for the python-openstackclient
project for the upgrade and cluster-upgrade commands.

The trove command upgrade is now:
    openstack database instance upgrade
The trove command cluster-upgrade is now:
    openstack database cluster upgrade

Change-Id: Ic416d476c645fa3c697881fb001d512ed3d25d2b
Partially-Implements: blueprint trove-support-in-python-openstackclient
Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
2018-01-19 09:09:33 +08:00
Zhao Chao
e858fe95c5 Add cluster-instances to OSC
This change adds database support for the python-openstackclient
project for the cluster-instances command.

The trove command cluster-instances is now:
    openstack database cluster list instances

Change-Id: Ifcbb0a0374d4b2918ee22b85a0733c8bbbf21497
Partially-Implements: blueprint trove-support-in-python-openstackclient
Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
2018-01-18 17:16:03 +08:00
zhanggang
f11d1bb7cc Add reset-status to OSC
This change adds database support to the python-openstackclient
project for the cluster-reset-status and reset-status command.

The trove command cluster-reset-status is now:
    openstack database cluster reset status
The trove command reset-status is now:
    openstack database instance reset status

Change-Id: I8945327d244bfd2a9afe7febb7179467a8be9bd0
Partially-Implements: blueprint trove-support-in-python-openstackclient
2017-12-28 00:04:18 -05:00
wangyao
96a6059b6f Add cluster-create to OSC
This change adds database support to the python-openstackclient
project for the cluster-create command.

The trove command cluster-create is now:
    openstack database cluster create

Change-Id: Iff5557411e498a1657e2f0f60fc7c46e16a42f2a
Partially-Implements: blueprint trove-support-in-python-openstackclient
2017-12-23 20:27:09 +08:00
zhanggang
f116f37611 Add cluster-delete to OSC
This change adds database support to the python-openstackclient
project for the cluster-delete command.

The trove command cluster-delete is now:
    openstack database cluster delete

Change-Id: Ibf8f0670231799508a902cffd332c844584ed407
Partially-Implements: trove-support-in-python-openstackclient
2017-12-08 03:21:13 -05:00
wangyao
71a691ffaa Add cluster-show to OSC
This change adds database support to the python-openstackclient
project for the cluster-show command.

The trove command cluster-show is now:
    openstack database cluster show

Change-Id: I7021a0bf7fedaa5bbaa4979709b6a1de005b1db3
Partially-Implements: trove-support-in-python-openstackclient
2017-11-30 17:56:50 +08:00
Trevor McCasland
052d85eca4 Add cluster-list to OSC
This change adds database support to the python-openstackclient
project for the cluster-list command.

The trove command cluster-list is now:
    openstack database cluster list

Change-Id: I06b398190930db459ef8739685548263499f0d3c
Partially-Implements: trove-support-in-python-openstackclient
2017-06-10 21:30:59 -04:00