Skip to content

Commit 48c263c

Browse files
more attributes for customer auth (#13)
* more attributes for customer auth
1 parent d743926 commit 48c263c

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

yeti_switch_api/orm/customers_auth.py

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,48 @@ class Meta:
88

99
name = AttributeField("name")
1010
enabled = AttributeField("enabled")
11+
reject_calls = AttributeField("reject-calls")
12+
1113
src_numberlist = RelationField("src-numberlist")
1214
dst_numberlist = RelationField("dst-numberlist")
1315
customer = RelationField("customer")
1416
account = RelationField("account")
1517
rateplan = RelationField("rateplan")
1618
routing_plan = RelationField("routing-plan")
1719
gateway = RelationField("gateway")
20+
1821
pop = RelationField("pop")
1922
ip = AttributeField("ip")
23+
2024
src_prefix = AttributeField("src-prefix")
25+
src_number_min_length = AttributeField("src-number-min-length")
26+
src_number_max_length = AttributeField("src-number-max-length")
2127
dst_prefix = AttributeField("dst-prefix")
28+
dst_number_min_length = AttributeField("dst-number-min-length")
29+
dst_number_max_length = AttributeField("dst-number-max-length")
30+
2231
x_yeti_auth = AttributeField("x-yeti-auth")
2332

33+
uri_domain = AttributeField("uri-domain")
34+
from_domain = AttributeField("from-domain")
35+
to_domain = AttributeField("to-domain")
36+
37+
capacity = AttributeField("capacity")
38+
cps_limit = AttributeField("cps-limit")
39+
2440
tag_action = RelationField("tag-action")
2541
tag_action_value = AttributeField("tag-action-value")
2642

43+
src_rewrite_rule = AttributeField("src-rewrite-rule")
44+
src_rewrite_result = AttributeField("src-rewrite-result")
45+
dst_rewrite_rule = AttributeField("dst-rewrite-rule")
46+
dst_rewrite_result = AttributeField("dst-rewrite-result")
47+
2748
def creatable_fields(self):
2849
return [
2950
"name",
3051
"enabled",
52+
"reject-calls",
3153
"src-numberlist",
3254
"dst-numberlist",
3355
"customer",
@@ -38,10 +60,23 @@ def creatable_fields(self):
3860
"pop",
3961
"ip",
4062
"src-prefix",
63+
"src-number-min-length",
64+
"src-number-max-length",
4165
"dst-prefix",
66+
"dst-number-min-length",
67+
"dst-number-max-length",
4268
"x-yeti-auth",
69+
"uri-domain",
70+
"from-domain",
71+
"to-domain",
72+
"capacity",
73+
"cps-limit",
4374
"tag-action",
4475
"tag-action-value",
76+
"src-rewrite-rule",
77+
"src-rewrite-result",
78+
"dst-rewrite-rule",
79+
"dst-rewrite-result",
4580
]
4681

4782
def updatable_fields(self):

0 commit comments

Comments
 (0)