From e80266a71b6b2462d939a87409e3a6f821e22f69 Mon Sep 17 00:00:00 2001 From: zhufl Date: Thu, 8 Nov 2018 16:12:53 +0800 Subject: [PATCH] Add api ref link for import_backup import_backup in backups_client.py has kwargs parameter, but no api ref link for a full list of available parameters, this is to add the link. Change-Id: Ie30eb1ee76ee6521c5bdc9c8c3349a17ad6604b3 --- tempest/lib/services/volume/v3/backups_client.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tempest/lib/services/volume/v3/backups_client.py b/tempest/lib/services/volume/v3/backups_client.py index f2d2d21c1b..fb643330c8 100644 --- a/tempest/lib/services/volume/v3/backups_client.py +++ b/tempest/lib/services/volume/v3/backups_client.py @@ -104,7 +104,12 @@ class BackupsClient(base_client.BaseClient): return rest_client.ResponseBody(resp, body) def import_backup(self, **kwargs): - """Import backup metadata record.""" + """Import backup metadata record. + + For a full list of available parameters, please refer to the official + API reference: + https://developer.openstack.org/api-ref/block-storage/v3/index.html#import-a-backup + """ post_body = json.dumps({'backup-record': kwargs}) resp, body = self.post("backups/import_record", post_body) body = json.loads(body)