Skip to content

Commit c0e6447

Browse files
committed
more attributes for customer auth
1 parent d743926 commit c0e6447

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

yeti_switch_api/orm/customers_auth.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,49 @@ 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")
2023
src_prefix = AttributeField("src-prefix")
24+
src_number_min_length = AttributeField("src-number-min-length")
25+
src_number_max_length = AttributeField("src-number-max-length")
26+
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+
48+
2749
def creatable_fields(self):
2850
return [
2951
"name",
3052
"enabled",
53+
"reject-calls",
3154
"src-numberlist",
3255
"dst-numberlist",
3356
"customer",
@@ -38,10 +61,23 @@ def creatable_fields(self):
3861
"pop",
3962
"ip",
4063
"src-prefix",
64+
"src-number-min-length",
65+
"src-number-max-length",
4166
"dst-prefix",
67+
"dst-number-min-length",
68+
"dst-number-max-length",
4269
"x-yeti-auth",
70+
"uri-domain",
71+
"from-domain",
72+
"to-domain",
73+
"capacity",
74+
"cps-limit",
4375
"tag-action",
4476
"tag-action-value",
77+
"src-rewrite-rule",
78+
"src-rewrite-result",
79+
"dst-rewrite-rule",
80+
"dst-rewrite-result"
4581
]
4682

4783
def updatable_fields(self):

0 commit comments

Comments
 (0)