File tree Expand file tree Collapse file tree 4 files changed +46
-0
lines changed
yeti_switch_api/orm/routing Expand file tree Collapse file tree 4 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 11from .rateplan import Rateplan # noqa: F401
22from .routing_tag import RoutingTag # noqa: F401
3+ from .customers_auth import CustomersAuth # noqa: F401
4+ from .numberlist import Numberlist # noqa: F401
5+ from .numberlist_item import NumberlistItem # noqa: F401
Original file line number Diff line number Diff line change 1+ from ..base_model import BaseModel , AttributeField , RelationField
2+
3+
4+ class CustomersAuth (BaseModel ):
5+ class Meta :
6+ path = "customers-auths"
7+ type = "customers-auths"
8+
9+ name = AttributeField ("name" )
10+ src_numberlist = RelationField ("src_numberlist" )
Original file line number Diff line number Diff line change 1+ from ..base_model import BaseModel , AttributeField
2+
3+
4+ class Numberlist (BaseModel ):
5+ class Meta :
6+ path = "routing/numberlists"
7+ type = "numberlists"
8+
9+ name = AttributeField ("name" )
10+ default_action_id = AttributeField ("action-id" )
11+ DEFAULT_ACTION_REJECT = 1
12+ DEFAULT_ACTION_ACCEPT = 2
Original file line number Diff line number Diff line change 1+ from ..base_model import BaseModel , AttributeField , RelationField
2+
3+
4+ class NumberlistItem (BaseModel ):
5+ class Meta :
6+ path = "routing/numberlist-items"
7+ type = "numberlist-items"
8+
9+ key = AttributeField ("key" )
10+ number_min_length = AttributeField ("number_min_length" )
11+ number_max_length = AttributeField ("number_max_length" )
12+ src_rewrite_rule = AttributeField ("src_rewrite_rule" )
13+ src_rewrite_result = AttributeField ("src_rewrite_result" )
14+ dst_rewrite_rule = AttributeField ("dst_rewrite_rule" )
15+ dst_rewrite_result = AttributeField ("dst_rewrite_result" )
16+ created_at = AttributeField ("created_at" )
17+ updated_at = AttributeField ("updated_at" )
18+ numberlist = RelationField ("numberlist" )
19+ action_id = AttributeField ("action-id" )
20+ ACTION_REJECT = 1
21+ ACTION_ACCEPT = 2
You can’t perform that action at this time.
0 commit comments