diff options
| author | Zuul <zuul@review.openstack.org> | 2018-01-18 01:38:01 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2018-01-18 01:38:01 +0000 |
| commit | 1e5bbca37cf35afade3a4e2a20ba1c43132e9a02 (patch) | |
| tree | dfa6a91c6ead8b21d4d36a7416f6bbac3c283802 /cinderclient/v3 | |
| parent | 4b508e85f2aeb870701b68a4f679ec1765aaefef (diff) | |
| parent | 9c95a3fe7e9ddf20a932e33b3ebf3b2562279038 (diff) | |
| download | python-cinderclient-1e5bbca37cf35afade3a4e2a20ba1c43132e9a02.tar.gz | |
Merge "Add api_version wraps for generic volume groups"
Diffstat (limited to 'cinderclient/v3')
| -rw-r--r-- | cinderclient/v3/groups.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cinderclient/v3/groups.py b/cinderclient/v3/groups.py index f1544c3..30280b5 100644 --- a/cinderclient/v3/groups.py +++ b/cinderclient/v3/groups.py @@ -63,6 +63,7 @@ class GroupManager(base.ManagerWithFind): """Manage :class:`Group` resources.""" resource_class = Group + @api_versions.wraps('3.13') def create(self, group_type, volume_types, name=None, description=None, user_id=None, project_id=None, availability_zone=None): @@ -96,6 +97,7 @@ class GroupManager(base.ManagerWithFind): body = {'status': state} if state else {} return self._action('reset_status', group, body) + @api_versions.wraps('3.14') def create_from_src(self, group_snapshot_id, source_group_id, name=None, description=None, user_id=None, project_id=None): @@ -123,6 +125,7 @@ class GroupManager(base.ManagerWithFind): "/groups/action", body=body) return common_base.DictWithMeta(body['group'], resp) + @api_versions.wraps('3.13') def get(self, group_id, **kwargs): """Get a group. @@ -139,6 +142,7 @@ class GroupManager(base.ManagerWithFind): return self._get("/groups/%s" % group_id + query_string, "group") + @api_versions.wraps('3.13') def list(self, detailed=True, search_opts=None, list_volume=False): """Lists all groups. @@ -157,6 +161,7 @@ class GroupManager(base.ManagerWithFind): return self._list("/groups%s%s" % (detail, query_string), "groups") + @api_versions.wraps('3.13') def delete(self, group, delete_volumes=False): """Delete a group. @@ -169,6 +174,7 @@ class GroupManager(base.ManagerWithFind): resp, body = self.api.client.post(url, body=body) return common_base.TupleWithMeta((resp, body), resp) + @api_versions.wraps('3.13') def update(self, group, **kwargs): """Update the name or description for a group. @@ -197,6 +203,7 @@ class GroupManager(base.ManagerWithFind): resp, body = self.api.client.post(url, body=body) return common_base.TupleWithMeta((resp, body), resp) + @api_versions.wraps('3.38') def enable_replication(self, group): """Enables replication for a group. @@ -208,6 +215,7 @@ class GroupManager(base.ManagerWithFind): resp, body = self.api.client.post(url, body=body) return common_base.TupleWithMeta((resp, body), resp) + @api_versions.wraps('3.38') def disable_replication(self, group): """disables replication for a group. @@ -219,6 +227,7 @@ class GroupManager(base.ManagerWithFind): resp, body = self.api.client.post(url, body=body) return common_base.TupleWithMeta((resp, body), resp) + @api_versions.wraps('3.38') def failover_replication(self, group, allow_attached_volume=False, secondary_backend_id=None): """fails over replication for a group. @@ -238,6 +247,7 @@ class GroupManager(base.ManagerWithFind): resp, body = self.api.client.post(url, body=body) return common_base.TupleWithMeta((resp, body), resp) + @api_versions.wraps('3.38') def list_replication_targets(self, group): """List replication targets for a group. |
