-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
customers_auth, numbelist, numbelist_item resources (#3)
* customers_auth, numbelist, numbelist_item resources
- Loading branch information
1 parent
2faf049
commit 2481003
Showing
4 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
from .rateplan import Rateplan # noqa: F401 | ||
from .routing_tag import RoutingTag # noqa: F401 | ||
from .customers_auth import CustomersAuth # noqa: F401 | ||
from .numberlist import Numberlist # noqa: F401 | ||
from .numberlist_item import NumberlistItem # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from ..base_model import BaseModel, AttributeField, RelationField | ||
|
||
|
||
class CustomersAuth(BaseModel): | ||
class Meta: | ||
path = "customers-auths" | ||
type = "customers-auths" | ||
|
||
name = AttributeField("name") | ||
src_numberlist = RelationField("src_numberlist") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from ..base_model import BaseModel, AttributeField | ||
|
||
|
||
class Numberlist(BaseModel): | ||
class Meta: | ||
path = "routing/numberlists" | ||
type = "numberlists" | ||
|
||
name = AttributeField("name") | ||
default_action_id = AttributeField("action-id") | ||
DEFAULT_ACTION_REJECT = 1 | ||
DEFAULT_ACTION_ACCEPT = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from ..base_model import BaseModel, AttributeField, RelationField | ||
|
||
|
||
class NumberlistItem(BaseModel): | ||
class Meta: | ||
path = "routing/numberlist-items" | ||
type = "numberlist-items" | ||
|
||
key = AttributeField("key") | ||
number_min_length = AttributeField("number_min_length") | ||
number_max_length = AttributeField("number_max_length") | ||
src_rewrite_rule = AttributeField("src_rewrite_rule") | ||
src_rewrite_result = AttributeField("src_rewrite_result") | ||
dst_rewrite_rule = AttributeField("dst_rewrite_rule") | ||
dst_rewrite_result = AttributeField("dst_rewrite_result") | ||
created_at = AttributeField("created_at") | ||
updated_at = AttributeField("updated_at") | ||
numberlist = RelationField("numberlist") | ||
action_id = AttributeField("action-id") | ||
ACTION_REJECT = 1 | ||
ACTION_ACCEPT = 2 |