From c0e6447f0cfbc3d96ccc4d73504c1b536bb79ed7 Mon Sep 17 00:00:00 2001 From: sdi Date: Wed, 27 Aug 2025 19:03:40 +0300 Subject: [PATCH 1/3] more attributes for customer auth --- yeti_switch_api/orm/customers_auth.py | 36 +++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/yeti_switch_api/orm/customers_auth.py b/yeti_switch_api/orm/customers_auth.py index 6232af9..eba2ef7 100644 --- a/yeti_switch_api/orm/customers_auth.py +++ b/yeti_switch_api/orm/customers_auth.py @@ -8,6 +8,8 @@ class Meta: name = AttributeField("name") enabled = AttributeField("enabled") + reject_calls = AttributeField("reject-calls") + src_numberlist = RelationField("src-numberlist") dst_numberlist = RelationField("dst-numberlist") customer = RelationField("customer") @@ -15,19 +17,40 @@ class Meta: rateplan = RelationField("rateplan") routing_plan = RelationField("routing-plan") gateway = RelationField("gateway") + pop = RelationField("pop") ip = AttributeField("ip") src_prefix = AttributeField("src-prefix") + src_number_min_length = AttributeField("src-number-min-length") + src_number_max_length = AttributeField("src-number-max-length") + dst_prefix = AttributeField("dst-prefix") + dst_number_min_length = AttributeField("dst-number-min-length") + dst_number_max_length = AttributeField("dst-number-max-length") + x_yeti_auth = AttributeField("x-yeti-auth") + uri_domain = AttributeField("uri-domain") + from_domain = AttributeField("from-domain") + to_domain = AttributeField("to-domain") + + capacity = AttributeField("capacity") + cps_limit = AttributeField("cps-limit") + tag_action = RelationField("tag-action") tag_action_value = AttributeField("tag-action-value") + 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") + + def creatable_fields(self): return [ "name", "enabled", + "reject-calls", "src-numberlist", "dst-numberlist", "customer", @@ -38,10 +61,23 @@ def creatable_fields(self): "pop", "ip", "src-prefix", + "src-number-min-length", + "src-number-max-length", "dst-prefix", + "dst-number-min-length", + "dst-number-max-length", "x-yeti-auth", + "uri-domain", + "from-domain", + "to-domain", + "capacity", + "cps-limit", "tag-action", "tag-action-value", + "src-rewrite-rule", + "src-rewrite-result", + "dst-rewrite-rule", + "dst-rewrite-result" ] def updatable_fields(self): From 0d7594df18e3534f65adffcda63bd92081e7138c Mon Sep 17 00:00:00 2001 From: sdi Date: Wed, 27 Aug 2025 19:05:12 +0300 Subject: [PATCH 2/3] more attributes for customer auth --- yeti_switch_api/orm/customers_auth.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/yeti_switch_api/orm/customers_auth.py b/yeti_switch_api/orm/customers_auth.py index eba2ef7..5806a57 100644 --- a/yeti_switch_api/orm/customers_auth.py +++ b/yeti_switch_api/orm/customers_auth.py @@ -20,10 +20,10 @@ class Meta: pop = RelationField("pop") ip = AttributeField("ip") + src_prefix = AttributeField("src-prefix") src_number_min_length = AttributeField("src-number-min-length") src_number_max_length = AttributeField("src-number-max-length") - dst_prefix = AttributeField("dst-prefix") dst_number_min_length = AttributeField("dst-number-min-length") dst_number_max_length = AttributeField("dst-number-max-length") @@ -45,7 +45,6 @@ class Meta: dst_rewrite_rule = AttributeField("dst-rewrite-rule") dst_rewrite_result = AttributeField("dst-rewrite-result") - def creatable_fields(self): return [ "name", From 4225b7d9cb55d00efcbee1e57c2a2e133808779f Mon Sep 17 00:00:00 2001 From: sdi Date: Wed, 27 Aug 2025 19:07:22 +0300 Subject: [PATCH 3/3] more attributes for customer auth --- yeti_switch_api/orm/customers_auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yeti_switch_api/orm/customers_auth.py b/yeti_switch_api/orm/customers_auth.py index 5806a57..9840409 100644 --- a/yeti_switch_api/orm/customers_auth.py +++ b/yeti_switch_api/orm/customers_auth.py @@ -76,7 +76,7 @@ def creatable_fields(self): "src-rewrite-rule", "src-rewrite-result", "dst-rewrite-rule", - "dst-rewrite-result" + "dst-rewrite-result", ] def updatable_fields(self):