Merge "Add api ref link for import_backup"

This commit is contained in:
Zuul 2018-11-10 03:57:04 +00:00 committed by Gerrit Code Review
commit 66f8fea841
1 changed files with 6 additions and 1 deletions

View File

@ -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)