Skip to content

Commit

Permalink
Dialpeer resource (#4)
Browse files Browse the repository at this point in the history
* Dialpeer resource
  • Loading branch information
dmitry-sinina authored Aug 27, 2023
1 parent 2481003 commit b020d42
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions yeti_switch_api/orm/routing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
from .customers_auth import CustomersAuth # noqa: F401
from .numberlist import Numberlist # noqa: F401
from .numberlist_item import NumberlistItem # noqa: F401
from .dialpeer import Dialpeer # noqa: F401
37 changes: 37 additions & 0 deletions yeti_switch_api/orm/routing/dialpeer.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
from ..base_model import BaseModel, AttributeField


class Dialpeer(BaseModel):
class Meta:
path = "dialpeers"
type = "dialpeers"

enabled = AttributeField("enabled")
next_rate = AttributeField("next-rate")
connect_fee = AttributeField("connect-fee")
initial_rate = AttributeField("initial-rate")
initial_interval = AttributeField("initial-interval")
next_interval = AttributeField("next-interval")
valid_from = AttributeField("valid-from")
valid_till = AttributeField("valid-till")
prefix = AttributeField("prefix")
src_rewrite_rule = AttributeField("src-rewrite-rule")
dst_rewrite_rule = AttributeField("dst-rewrite-rule")
acd_limit = AttributeField("acd-limit")
asr_limit = AttributeField("asr-limit")
src_rewrite_result = AttributeField("src-rewrite-result")
dst_rewrite_result = AttributeField("dst-rewrite-result")
locked = AttributeField("locked")
priority = AttributeField("priority")
exclusive_route = AttributeField("exclusive-route")
capacity = AttributeField("capacity")
lcr_rate_multiplier = AttributeField("lcr-rate-multiplier")
force_hit_rate = AttributeField("force-hit-rate")
network_prefix_id = AttributeField("network-prefix-id")
created_at = AttributeField("created-at")
short_calls_limit = AttributeField("short-calls-limit")
external_id = AttributeField("external-id")
routing_tag_ids = AttributeField("routing-tag-ids")
dst_number_min_length = AttributeField("dst-number-min-length")
dst_number_max_length = AttributeField("dst-number-max-length")
reverse_billing = AttributeField("reverse-billing")

0 comments on commit b020d42

Please sign in to comment.