diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-08-10 15:35:26 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-08-10 15:35:26 +0000 |
commit | d004de42072b93f7142397900ae753f03d018daa (patch) | |
tree | bf1ab9eded663f8a469bd00155d3469d37465a5b /saharaclient/api | |
parent | 91f80b12688cc2f0784a23dec958a69437175f55 (diff) | |
parent | d41d9ad7b52573d0394c94dbe80ff3d4ddd4e12a (diff) | |
download | python-saharaclient-d004de42072b93f7142397900ae753f03d018daa.tar.gz |
Merge "Designate integration"
Diffstat (limited to 'saharaclient/api')
-rw-r--r-- | saharaclient/api/cluster_templates.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/saharaclient/api/cluster_templates.py b/saharaclient/api/cluster_templates.py index 395b3e0..d310627 100644 --- a/saharaclient/api/cluster_templates.py +++ b/saharaclient/api/cluster_templates.py @@ -27,7 +27,8 @@ class ClusterTemplateManager(base.ResourceManager): def create(self, name, plugin_name, hadoop_version, description=None, cluster_configs=None, node_groups=None, anti_affinity=None, net_id=None, default_image_id=None, use_autoconfig=None, - shares=None, is_public=None, is_protected=None): + shares=None, is_public=None, is_protected=None, + domain_name=None): """Create a Cluster Template.""" data = { @@ -46,7 +47,8 @@ class ClusterTemplateManager(base.ResourceManager): use_autoconfig=use_autoconfig, shares=shares, is_public=is_public, - is_protected=is_protected) + is_protected=is_protected, + domain_name=domain_name) return self._create('/cluster-templates', data, 'cluster_template') @@ -56,7 +58,8 @@ class ClusterTemplateManager(base.ResourceManager): node_groups=NotUpdated, anti_affinity=NotUpdated, net_id=NotUpdated, default_image_id=NotUpdated, use_autoconfig=NotUpdated, shares=NotUpdated, - is_public=NotUpdated, is_protected=NotUpdated): + is_public=NotUpdated, is_protected=NotUpdated, + domain_name=NotUpdated): """Update a Cluster Template.""" data = {} @@ -72,7 +75,8 @@ class ClusterTemplateManager(base.ResourceManager): use_autoconfig=use_autoconfig, shares=shares, is_public=is_public, - is_protected=is_protected) + is_protected=is_protected, + domain_name=domain_name) return self._update('/cluster-templates/%s' % cluster_template_id, data, 'cluster_template') |