From 2a0d5fcb97572ba950e9a3b1b4c930f023dbf94f Mon Sep 17 00:00:00 2001 From: Brian Curtin Date: Thu, 27 Apr 2017 09:20:50 -0400 Subject: [PATCH] Deprecate Message v1 Rather than porting message v1 to resource2, we are going to remove it in the next release. It's marked as deprecated for 0.9.16 (the next release) and slated for removal in 0.9.17. The message v1 REST API has been deprecated since 2014. Change-Id: I3b7af3b7aa2b0aef847376e04b0cde5c97ac5dbb --- openstack/message/v1/_proxy.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/openstack/message/v1/_proxy.py b/openstack/message/v1/_proxy.py index ab31d07f8..bdd25ef04 100644 --- a/openstack/message/v1/_proxy.py +++ b/openstack/message/v1/_proxy.py @@ -14,10 +14,13 @@ from openstack.message.v1 import claim from openstack.message.v1 import message from openstack.message.v1 import queue from openstack import proxy +from openstack import utils class Proxy(proxy.BaseProxy): + @utils.deprecated(deprecated_in="0.9.16", removed_in="0.9.17", + details="Message v1 is deprecated since 2014. Use v2.") def create_queue(self, **attrs): """Create a new queue from attributes @@ -30,6 +33,8 @@ class Proxy(proxy.BaseProxy): """ return self._create(queue.Queue, **attrs) + @utils.deprecated(deprecated_in="0.9.16", removed_in="0.9.17", + details="Message v1 is deprecated since 2014. Use v2.") def delete_queue(self, value, ignore_missing=True): """Delete a queue @@ -45,6 +50,8 @@ class Proxy(proxy.BaseProxy): """ return self._delete(queue.Queue, value, ignore_missing=ignore_missing) + @utils.deprecated(deprecated_in="0.9.16", removed_in="0.9.17", + details="Message v1 is deprecated since 2014. Use v2.") def create_messages(self, values): """Create new messages @@ -59,6 +66,8 @@ class Proxy(proxy.BaseProxy): """ return message.Message.create_messages(self._session, values) + @utils.deprecated(deprecated_in="0.9.16", removed_in="0.9.17", + details="Message v1 is deprecated since 2014. Use v2.") def claim_messages(self, value): """Claims a set of messages. @@ -71,6 +80,8 @@ class Proxy(proxy.BaseProxy): """ return claim.Claim.claim_messages(self._session, value) + @utils.deprecated(deprecated_in="0.9.16", removed_in="0.9.17", + details="Message v1 is deprecated since 2014. Use v2.") def delete_message(self, value): """Delete a message