text: # coding=utf-8
  
  #Copyright (C) 2017. Huawei Technologies Co., LTD. All rights reserved.
  #
  #This program is free software; you can redistribute it and/or modify
  #it under the terms of Apache License, Version 2.0.
  #
  #This program is distributed in the hope that it will be useful,
  #but WITHOUT ANY WARRANTY; without even the implied warranty of
  #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  #Apache License, Version 2.0 for more detail
  """
  create at 2017/11/4
  """
  __author__ = 'pengzl'
  
  from smnsdkcore.request import CommonRequest
  from smnsdkcore.http import httpmethod
  
  class DeleteTopic(CommonRequest):
      def __init__(self):
          super(DeleteTopic, self).__init__()
          self.set_method(httpmethod.DELETE)
      
      def set_topic_urn(self, topic_urn):
          uri = '/v2/{project_id}/notifications/topics/' + topic_urn
          self.set_uri(uri)
          
      