signer.py 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. # coding:utf-8
  2. # Licensed to the Apache Software Foundation (ASF) under one
  3. # or more contributor license agreements. See the NOTICE file
  4. # distributed with this work for additional information
  5. # regarding copyright ownership. The ASF licenses this file
  6. # to you under the Apache License, Version 2.0 (the
  7. # "License"); you may not use this file except in compliance
  8. # with the License. You may obtain a copy of the License at
  9. #
  10. # http://www.apache.org/licenses/LICENSE-2.0
  11. #
  12. #
  13. #
  14. # Unless required by applicable law or agreed to in writing,
  15. # software distributed under the License is distributed on an
  16. # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  17. # KIND, either express or implied. See the License for the
  18. # specific language governing permissions and limitations
  19. # under the License.
  20. from abc import ABCMeta, abstractmethod
  21. from aliyunsdkcore.vendored.six import with_metaclass
  22. class Signer(with_metaclass(ABCMeta, object)):
  23. @abstractmethod
  24. def sign(self, region_id, request):
  25. pass