diff options
author | Iwona Kotlarska <iwona260909@gmail.com> | 2017-08-16 11:49:36 +0200 |
---|---|---|
committer | Iwona Kotlarska <pinus314@gmail.com> | 2017-11-02 00:17:52 +0100 |
commit | 4b840b31dc78947a79437a09c9d8426fb37b8060 (patch) | |
tree | 4c621868ae212d70a90189718323ec26aa947ad5 /saharaclient/api | |
parent | 15d3a9e21644b4707d6d865be2d6ee5ab620681a (diff) | |
download | python-saharaclient-4b840b31dc78947a79437a09c9d8426fb37b8060.tar.gz |
Add export of cluster templates
Partially-Implements: bp portable-node-group-and-cluster-templates
Depends-On: Ib5a2df4013840050b8034bcefd68040f508d0b31
This change adds command
'dataprocessing cluster template export'
to OpenStack CLI.
Change-Id: I027169ace70929318990a4225d456bf1cf8a83b2
Diffstat (limited to 'saharaclient/api')
-rw-r--r-- | saharaclient/api/cluster_templates.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/saharaclient/api/cluster_templates.py b/saharaclient/api/cluster_templates.py index 9c7bd43..da9b3fe 100644 --- a/saharaclient/api/cluster_templates.py +++ b/saharaclient/api/cluster_templates.py @@ -97,3 +97,7 @@ class ClusterTemplateManager(base.ResourceManager): def delete(self, cluster_template_id): """Delete a Cluster Template.""" self._delete('/cluster-templates/%s' % cluster_template_id) + + def export(self, cluster_template_id): + """Export a Cluster Template.""" + return self._get('/cluster-templates/%s/export' % cluster_template_id) |