model.py 975 B

12345678910111213141516171819202122232425262728293031
  1. # -*- coding: utf-8 -*-
  2. # Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
  5. # except in compliance with the License. You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software distributed under the
  10. # License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
  11. # either express or implied. See the License for the specific language governing permissions
  12. # and limitations under the License.
  13. """
  14. This module provide ET status condition.
  15. """
  16. from enum import Enum
  17. class ETStatus(Enum):
  18. """
  19. ET status enum query condition.
  20. """
  21. ACKWAIT = b'ack-wait'
  22. ACCEPT = b'accept'
  23. REJECT = b'reject'
  24. BUILDING = b'building'
  25. PAYWAIT = b'pay-wait'
  26. ESTABLISHED = b'established'
  27. STOPPED = b'stopped'
  28. DELETED = b'deleted'