telnyx 2.0.0__py2.py3-none-any.whl → 2.1.2__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of telnyx might be problematic. Click here for more details.
- telnyx/__init__.py +1 -1
- telnyx/api_requestor.py +19 -17
- telnyx/api_resources/__init__.py +159 -19
- telnyx/api_resources/abstract/api_resource.py +5 -4
- telnyx/api_resources/abstract/nested_resource_class_methods.py +11 -1
- telnyx/api_resources/abstract/updateable_api_resource.py +2 -1
- telnyx/api_resources/{whatsapp_contact.py → access_token.py} +2 -2
- telnyx/api_resources/address.py +13 -0
- telnyx/api_resources/advanced_optinoptout.py +17 -0
- telnyx/api_resources/ai.py +36 -0
- telnyx/api_resources/autorechargepreference.py +7 -0
- telnyx/api_resources/{whatsapp_business_account.py → billing.py} +2 -2
- telnyx/api_resources/bucket.py +17 -0
- telnyx/api_resources/bucket_usage.py +7 -0
- telnyx/api_resources/bulk_credential.py +13 -0
- telnyx/api_resources/bulk_phone_number_campaign.py +7 -0
- telnyx/api_resources/bulk_phone_number_operation.py +7 -0
- telnyx/api_resources/bulk_sole_proprietor_creation.py +7 -0
- telnyx/api_resources/business_identity.py +17 -0
- telnyx/api_resources/call.py +87 -53
- telnyx/api_resources/call_information.py +7 -0
- telnyx/api_resources/call_recording.py +22 -0
- telnyx/api_resources/cdr_usage_report.py +7 -0
- telnyx/api_resources/credential_connection.py +9 -0
- telnyx/api_resources/csv_download.py +7 -0
- telnyx/api_resources/customer_service_record.py +7 -0
- telnyx/api_resources/debugging.py +7 -0
- telnyx/api_resources/detail_record.py +7 -0
- telnyx/api_resources/dialogflow_integration.py +17 -0
- telnyx/api_resources/document.py +0 -5
- telnyx/api_resources/dynamic_emergency_endpoint.py +13 -0
- telnyx/api_resources/enum.py +7 -0
- telnyx/api_resources/external_connection.py +17 -0
- telnyx/api_resources/fax.py +6 -8
- telnyx/api_resources/inventory_level.py +7 -0
- telnyx/api_resources/{whatsapp_media.py → ip_address.py} +3 -3
- telnyx/api_resources/ip_range.py +11 -0
- telnyx/api_resources/list_object.py +2 -1
- telnyx/api_resources/managed_account.py +2 -2
- telnyx/api_resources/mdr_detail_report.py +11 -0
- telnyx/api_resources/mdr_usage_report.py +11 -0
- telnyx/api_resources/media_storage_api.py +17 -0
- telnyx/api_resources/message.py +2 -2
- telnyx/api_resources/messaging_hosted_number.py +15 -2
- telnyx/api_resources/messaging_tollfree_verification.py +17 -0
- telnyx/api_resources/messaging_url_domain.py +7 -0
- telnyx/api_resources/mobile_network_operator.py +7 -0
- telnyx/api_resources/network.py +17 -0
- telnyx/api_resources/notification.py +17 -0
- telnyx/api_resources/{whatsapp_phone_number.py → number_configuration.py} +2 -2
- telnyx/api_resources/number_portout.py +11 -0
- telnyx/api_resources/numbers_feature.py +7 -0
- telnyx/api_resources/ota_update.py +7 -0
- telnyx/api_resources/phone_number.py +4 -2
- telnyx/api_resources/phone_number_block_order.py +7 -0
- telnyx/api_resources/phone_number_blocks_background_job.py +7 -0
- telnyx/api_resources/phone_number_campaign.py +0 -4
- telnyx/api_resources/phone_number_configuration.py +24 -0
- telnyx/api_resources/{whatsapp_message.py → phone_number_order.py} +2 -2
- telnyx/api_resources/phone_number_order_document.py +13 -0
- telnyx/api_resources/phone_number_porting.py +7 -0
- telnyx/api_resources/phone_number_reservation.py +15 -0
- telnyx/api_resources/phone_number_search.py +7 -0
- telnyx/api_resources/porting_order.py +1 -8
- telnyx/api_resources/presigned_object_url.py +7 -0
- telnyx/api_resources/private_wireless_gateway.py +13 -0
- telnyx/api_resources/public_internet_gateway.py +13 -0
- telnyx/api_resources/push_credential.py +11 -0
- telnyx/api_resources/queue_command.py +7 -0
- telnyx/api_resources/recordings_command.py +7 -0
- telnyx/api_resources/region.py +7 -0
- telnyx/api_resources/register_call.py +7 -0
- telnyx/api_resources/report.py +7 -0
- telnyx/api_resources/reporting.py +11 -0
- telnyx/api_resources/requirement.py +7 -0
- telnyx/api_resources/requirement_type.py +7 -0
- telnyx/api_resources/room_composition.py +11 -0
- telnyx/api_resources/room_recording.py +7 -0
- telnyx/api_resources/rooms_client_token.py +24 -0
- telnyx/api_resources/shared_campaign.py +7 -0
- telnyx/api_resources/sim_card.py +49 -19
- telnyx/api_resources/sim_card_group.py +17 -0
- telnyx/api_resources/ssl_certificate.py +11 -0
- telnyx/api_resources/texml_application.py +17 -0
- telnyx/api_resources/texml_rest_command.py +13 -0
- telnyx/api_resources/verified_calls_display_profile.py +17 -0
- telnyx/api_resources/verified_number.py +16 -0
- telnyx/api_resources/verify.py +22 -0
- telnyx/api_resources/virtual_cross_connect.py +24 -0
- telnyx/api_resources/wdr_detail_report.py +7 -0
- telnyx/api_resources/webhook.py +7 -0
- telnyx/api_resources/wireguard_interface.py +17 -0
- telnyx/error.py +1 -2
- telnyx/http_client.py +10 -9
- telnyx/multipart_data_generator.py +1 -1
- telnyx/telnyx_object.py +3 -1
- telnyx/util.py +86 -20
- telnyx/webhook.py +0 -2
- {telnyx-2.0.0.dist-info → telnyx-2.1.2.dist-info}/METADATA +24 -24
- telnyx-2.1.2.dist-info/RECORD +168 -0
- {telnyx-2.0.0.dist-info → telnyx-2.1.2.dist-info}/WHEEL +1 -1
- telnyx/six.py +0 -892
- telnyx-2.0.0.dist-info/RECORD +0 -102
- {telnyx-2.0.0.dist-info → telnyx-2.1.2.dist-info}/LICENSE +0 -0
- {telnyx-2.0.0.dist-info → telnyx-2.1.2.dist-info}/top_level.txt +0 -0
|
@@ -3,5 +3,5 @@ from __future__ import absolute_import, division, print_function
|
|
|
3
3
|
from telnyx.api_resources.abstract import ListableAPIResource, UpdateableAPIResource
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
class
|
|
7
|
-
OBJECT_NAME = "
|
|
6
|
+
class NumberConfiguration(ListableAPIResource, UpdateableAPIResource):
|
|
7
|
+
OBJECT_NAME = "number_configuration"
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from __future__ import absolute_import, division, print_function
|
|
2
|
+
|
|
3
|
+
from telnyx.api_resources.abstract import (
|
|
4
|
+
CreateableAPIResource,
|
|
5
|
+
ListableAPIResource,
|
|
6
|
+
UpdateableAPIResource,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class NumberPortout(CreateableAPIResource, ListableAPIResource, UpdateableAPIResource):
|
|
11
|
+
OBJECT_NAME = "number_portout"
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
from __future__ import absolute_import, division, print_function
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
import six
|
|
4
|
+
from six.moves.urllib.parse import quote_plus
|
|
5
|
+
|
|
6
|
+
from telnyx import error, util
|
|
4
7
|
from telnyx.api_resources.abstract import (
|
|
5
8
|
DeletableAPIResource,
|
|
6
9
|
ListableAPIResource,
|
|
7
10
|
UpdateableAPIResource,
|
|
8
11
|
nested_resource_class_methods,
|
|
9
12
|
)
|
|
10
|
-
from telnyx.six.moves.urllib.parse import quote_plus
|
|
11
13
|
|
|
12
14
|
|
|
13
15
|
@nested_resource_class_methods(
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
from __future__ import absolute_import, division, print_function
|
|
2
|
+
|
|
3
|
+
from telnyx.api_resources.abstract import CreateableAPIResource, ListableAPIResource
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class PhoneNumberBlockOrder(CreateableAPIResource, ListableAPIResource):
|
|
7
|
+
OBJECT_NAME = "phone_number_block_order"
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
from __future__ import absolute_import, division, print_function
|
|
2
|
+
|
|
3
|
+
from telnyx.api_resources.abstract import CreateableAPIResource, ListableAPIResource
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class PhoneNumberBlocksBackgroundJob(CreateableAPIResource, ListableAPIResource):
|
|
7
|
+
OBJECT_NAME = "phone_number_blocks_background_job"
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from __future__ import absolute_import, division, print_function
|
|
2
|
+
|
|
3
|
+
from telnyx.api_resources.abstract import (
|
|
4
|
+
CreateableAPIResource,
|
|
5
|
+
DeletableAPIResource,
|
|
6
|
+
ListableAPIResource,
|
|
7
|
+
UpdateableAPIResource,
|
|
8
|
+
nested_resource_class_methods,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@nested_resource_class_methods(
|
|
13
|
+
"enable_emergency", path="actions/enable_emergency", operations=["create"]
|
|
14
|
+
)
|
|
15
|
+
class PhoneNumberConfiguration(
|
|
16
|
+
CreateableAPIResource,
|
|
17
|
+
DeletableAPIResource,
|
|
18
|
+
ListableAPIResource,
|
|
19
|
+
UpdateableAPIResource,
|
|
20
|
+
):
|
|
21
|
+
OBJECT_NAME = "phone_number_configuration"
|
|
22
|
+
|
|
23
|
+
def enable_emergency(self, **params):
|
|
24
|
+
return self.create_enable_emergency(**params)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from __future__ import absolute_import, division, print_function
|
|
2
|
+
|
|
3
|
+
from telnyx.api_resources.abstract import (
|
|
4
|
+
CreateableAPIResource,
|
|
5
|
+
ListableAPIResource,
|
|
6
|
+
UpdateableAPIResource,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class PhoneNumberOrderDocument(
|
|
11
|
+
CreateableAPIResource, ListableAPIResource, UpdateableAPIResource
|
|
12
|
+
):
|
|
13
|
+
OBJECT_NAME = "phone_number_order_document"
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from __future__ import absolute_import, division, print_function
|
|
2
|
+
|
|
3
|
+
from telnyx.api_resources.abstract import (
|
|
4
|
+
CreateableAPIResource,
|
|
5
|
+
ListableAPIResource,
|
|
6
|
+
nested_resource_class_methods,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@nested_resource_class_methods("extend", path="actions/extend", operations=["create"])
|
|
11
|
+
class PhoneNumberReservation(CreateableAPIResource, ListableAPIResource):
|
|
12
|
+
OBJECT_NAME = "phone_number_reservation"
|
|
13
|
+
|
|
14
|
+
def extend(self, **params):
|
|
15
|
+
return self.create_extend(**params)
|
|
@@ -20,9 +20,6 @@ from telnyx.api_resources.abstract import (
|
|
|
20
20
|
@nested_resource_class_methods(
|
|
21
21
|
"activation_jobs", path="activation_jobs", operations=["list"]
|
|
22
22
|
)
|
|
23
|
-
@nested_resource_class_methods(
|
|
24
|
-
"exception_types", path="/v2/porting_orders/exception_types", operations=["list"]
|
|
25
|
-
)
|
|
26
23
|
class PortingOrder(
|
|
27
24
|
CreateableAPIResource,
|
|
28
25
|
DeletableAPIResource,
|
|
@@ -41,15 +38,11 @@ class PortingOrder(
|
|
|
41
38
|
return PortingOrder.create_cancel(self.id, **params)
|
|
42
39
|
|
|
43
40
|
def allowed_foc_windows(self, **params):
|
|
44
|
-
return PortingOrder.
|
|
41
|
+
return PortingOrder.list_allowed_foc_windows(self.id, **params)
|
|
45
42
|
|
|
46
43
|
def activation_jobs(self, **params):
|
|
47
44
|
return PortingOrder.list_activation_jobs(self.id, **params)
|
|
48
45
|
|
|
49
|
-
@classmethod
|
|
50
|
-
def exception_types(cls, **params):
|
|
51
|
-
return PortingOrder.create_exception_types(None, **params)
|
|
52
|
-
|
|
53
46
|
|
|
54
47
|
class PortingPhoneNumber(ListableAPIResource):
|
|
55
48
|
OBJECT_NAME = "porting_phone_number"
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from __future__ import absolute_import, division, print_function
|
|
2
|
+
|
|
3
|
+
from telnyx.api_resources.abstract import (
|
|
4
|
+
CreateableAPIResource,
|
|
5
|
+
DeletableAPIResource,
|
|
6
|
+
ListableAPIResource,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class PrivateWirelessGateway(
|
|
11
|
+
CreateableAPIResource, DeletableAPIResource, ListableAPIResource
|
|
12
|
+
):
|
|
13
|
+
OBJECT_NAME = "private_wireless_gateway"
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from __future__ import absolute_import, division, print_function
|
|
2
|
+
|
|
3
|
+
from telnyx.api_resources.abstract import (
|
|
4
|
+
CreateableAPIResource,
|
|
5
|
+
DeletableAPIResource,
|
|
6
|
+
ListableAPIResource,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class PublicInternetGateway(
|
|
11
|
+
CreateableAPIResource, DeletableAPIResource, ListableAPIResource
|
|
12
|
+
):
|
|
13
|
+
OBJECT_NAME = "public_internet_gateway"
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from __future__ import absolute_import, division, print_function
|
|
2
|
+
|
|
3
|
+
from telnyx.api_resources.abstract import (
|
|
4
|
+
CreateableAPIResource,
|
|
5
|
+
DeletableAPIResource,
|
|
6
|
+
ListableAPIResource,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class PushCredential(CreateableAPIResource, DeletableAPIResource, ListableAPIResource):
|
|
11
|
+
OBJECT_NAME = "push_credential"
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from __future__ import absolute_import, division, print_function
|
|
2
|
+
|
|
3
|
+
from telnyx.api_resources.abstract import (
|
|
4
|
+
CreateableAPIResource,
|
|
5
|
+
DeletableAPIResource,
|
|
6
|
+
ListableAPIResource,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Reporting(CreateableAPIResource, DeletableAPIResource, ListableAPIResource):
|
|
11
|
+
OBJECT_NAME = "reporting"
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from __future__ import absolute_import, division, print_function
|
|
2
|
+
|
|
3
|
+
from telnyx.api_resources.abstract import (
|
|
4
|
+
CreateableAPIResource,
|
|
5
|
+
DeletableAPIResource,
|
|
6
|
+
ListableAPIResource,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class RoomComposition(CreateableAPIResource, DeletableAPIResource, ListableAPIResource):
|
|
11
|
+
OBJECT_NAME = "room_composition"
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from __future__ import absolute_import, division, print_function
|
|
2
|
+
|
|
3
|
+
from telnyx.api_resources.abstract import (
|
|
4
|
+
CreateableAPIResource,
|
|
5
|
+
nested_resource_class_methods,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@nested_resource_class_methods(
|
|
10
|
+
"refresh_client_token", path="actions/refresh_client_token", operations=["create"]
|
|
11
|
+
)
|
|
12
|
+
@nested_resource_class_methods(
|
|
13
|
+
"generate_join_client_token",
|
|
14
|
+
path="actions/generate_join_client_token",
|
|
15
|
+
operations=["create"],
|
|
16
|
+
)
|
|
17
|
+
class RoomsClientToken(CreateableAPIResource):
|
|
18
|
+
OBJECT_NAME = "rooms_client_token"
|
|
19
|
+
|
|
20
|
+
def refresh_client_token(self, **params):
|
|
21
|
+
return self.create_refresh_client_token(**params)
|
|
22
|
+
|
|
23
|
+
def generate_join_client_token(self, **params):
|
|
24
|
+
return self.create_generate_join_client_token(**params)
|
telnyx/api_resources/sim_card.py
CHANGED
|
@@ -9,11 +9,31 @@ from telnyx.api_resources.abstract import (
|
|
|
9
9
|
)
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
@nested_resource_class_methods("enable", path="actions/enable", operations=["create"])
|
|
13
12
|
@nested_resource_class_methods("disable", path="actions/disable", operations=["create"])
|
|
14
13
|
@nested_resource_class_methods(
|
|
15
|
-
"
|
|
14
|
+
"delete_network_preferences",
|
|
15
|
+
path="actions/delete_network_preferences",
|
|
16
|
+
operations=["create"],
|
|
17
|
+
)
|
|
18
|
+
@nested_resource_class_methods(
|
|
19
|
+
"bulk_set_network_preferences",
|
|
20
|
+
path="actions/bulk_set_network_preferences",
|
|
21
|
+
operations=["create"],
|
|
16
22
|
)
|
|
23
|
+
@nested_resource_class_methods(
|
|
24
|
+
"validate_registration_codes",
|
|
25
|
+
path="actions/validate_registration_codes",
|
|
26
|
+
operations=["create"],
|
|
27
|
+
)
|
|
28
|
+
@nested_resource_class_methods(
|
|
29
|
+
"set_public_ip", path="actions/set_public_ip", operations=["create"]
|
|
30
|
+
)
|
|
31
|
+
@nested_resource_class_methods(
|
|
32
|
+
"set_network_preferences",
|
|
33
|
+
path="actions/set_network_preferences",
|
|
34
|
+
operations=["create"],
|
|
35
|
+
)
|
|
36
|
+
@nested_resource_class_methods("enable", path="actions/enable", operations=["create"])
|
|
17
37
|
@nested_resource_class_methods(
|
|
18
38
|
"set_standby", path="actions/set_standby", operations=["create"]
|
|
19
39
|
)
|
|
@@ -21,38 +41,48 @@ from telnyx.api_resources.abstract import (
|
|
|
21
41
|
"remove_public_ip", path="actions/remove_public_ip", operations=["create"]
|
|
22
42
|
)
|
|
23
43
|
@nested_resource_class_methods(
|
|
24
|
-
"
|
|
44
|
+
"bulk_set_public_ips", path="actions/bulk_set_public_ips", operations=["create"]
|
|
25
45
|
)
|
|
26
46
|
@nested_resource_class_methods(
|
|
27
|
-
"
|
|
47
|
+
"register", path="/v2/actions/register/sim_cards", operations=["create"]
|
|
28
48
|
)
|
|
29
49
|
class SIMCard(
|
|
30
|
-
ListableAPIResource,
|
|
31
|
-
UpdateableAPIResource,
|
|
32
50
|
CreateableAPIResource,
|
|
33
51
|
DeletableAPIResource,
|
|
52
|
+
ListableAPIResource,
|
|
53
|
+
UpdateableAPIResource,
|
|
34
54
|
):
|
|
35
55
|
OBJECT_NAME = "sim_card"
|
|
36
56
|
|
|
37
|
-
def enable(self, **params):
|
|
38
|
-
return SIMCard.create_enable(self.id, **params)
|
|
39
|
-
|
|
40
57
|
def disable(self, **params):
|
|
41
|
-
return
|
|
58
|
+
return self.create_disable(**params)
|
|
42
59
|
|
|
43
|
-
def
|
|
44
|
-
return
|
|
60
|
+
def delete_network_preferences(self, **params):
|
|
61
|
+
return self.create_delete_network_preferences(**params)
|
|
45
62
|
|
|
46
|
-
def
|
|
47
|
-
return
|
|
63
|
+
def bulk_set_network_preferences(self, **params):
|
|
64
|
+
return self.create_bulk_set_network_preferences(**params)
|
|
65
|
+
|
|
66
|
+
def validate_registration_codes(self, **params):
|
|
67
|
+
return self.create_validate_registration_codes(**params)
|
|
48
68
|
|
|
49
69
|
def set_public_ip(self, **params):
|
|
50
|
-
return
|
|
70
|
+
return self.create_set_public_ip(**params)
|
|
71
|
+
|
|
72
|
+
def set_network_preferences(self, **params):
|
|
73
|
+
return self.create_set_network_preferences(**params)
|
|
74
|
+
|
|
75
|
+
def enable(self, **params):
|
|
76
|
+
return self.create_enable(**params)
|
|
77
|
+
|
|
78
|
+
def set_standby(self, **params):
|
|
79
|
+
return self.create_set_standby(**params)
|
|
80
|
+
|
|
81
|
+
def remove_public_ip(self, **params):
|
|
82
|
+
return self.create_remove_public_ip(**params)
|
|
51
83
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
return SIMCard.list_wireless_logs(self.id, **params)
|
|
55
|
-
"""
|
|
84
|
+
def bulk_set_public_ips(self, **params):
|
|
85
|
+
return self.create_bulk_set_public_ips(**params)
|
|
56
86
|
|
|
57
87
|
@classmethod
|
|
58
88
|
def register(cls, **params):
|
|
@@ -5,9 +5,20 @@ from telnyx.api_resources.abstract import (
|
|
|
5
5
|
DeletableAPIResource,
|
|
6
6
|
ListableAPIResource,
|
|
7
7
|
UpdateableAPIResource,
|
|
8
|
+
nested_resource_class_methods,
|
|
8
9
|
)
|
|
9
10
|
|
|
10
11
|
|
|
12
|
+
@nested_resource_class_methods(
|
|
13
|
+
"remove_private_wireless_gateway",
|
|
14
|
+
path="actions/remove_private_wireless_gateway",
|
|
15
|
+
operations=["create"],
|
|
16
|
+
)
|
|
17
|
+
@nested_resource_class_methods(
|
|
18
|
+
"set_private_wireless_gateway",
|
|
19
|
+
path="actions/set_private_wireless_gateway",
|
|
20
|
+
operations=["create"],
|
|
21
|
+
)
|
|
11
22
|
class SIMCardGroup(
|
|
12
23
|
CreateableAPIResource,
|
|
13
24
|
DeletableAPIResource,
|
|
@@ -15,3 +26,9 @@ class SIMCardGroup(
|
|
|
15
26
|
UpdateableAPIResource,
|
|
16
27
|
):
|
|
17
28
|
OBJECT_NAME = "sim_card_group"
|
|
29
|
+
|
|
30
|
+
def remove_private_wireless_gateway(self, **params):
|
|
31
|
+
return self.create_remove_private_wireless_gateway(**params)
|
|
32
|
+
|
|
33
|
+
def set_private_wireless_gateway(self, **params):
|
|
34
|
+
return self.create_set_private_wireless_gateway(**params)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from __future__ import absolute_import, division, print_function
|
|
2
|
+
|
|
3
|
+
from telnyx.api_resources.abstract import (
|
|
4
|
+
CreateableAPIResource,
|
|
5
|
+
DeletableAPIResource,
|
|
6
|
+
ListableAPIResource,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class SslCertificate(CreateableAPIResource, DeletableAPIResource, ListableAPIResource):
|
|
11
|
+
OBJECT_NAME = "ssl_certificate"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from __future__ import absolute_import, division, print_function
|
|
2
|
+
|
|
3
|
+
from telnyx.api_resources.abstract import (
|
|
4
|
+
CreateableAPIResource,
|
|
5
|
+
DeletableAPIResource,
|
|
6
|
+
ListableAPIResource,
|
|
7
|
+
UpdateableAPIResource,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class TexmlApplication(
|
|
12
|
+
CreateableAPIResource,
|
|
13
|
+
DeletableAPIResource,
|
|
14
|
+
ListableAPIResource,
|
|
15
|
+
UpdateableAPIResource,
|
|
16
|
+
):
|
|
17
|
+
OBJECT_NAME = "texml_application"
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from __future__ import absolute_import, division, print_function
|
|
2
|
+
|
|
3
|
+
from telnyx.api_resources.abstract import (
|
|
4
|
+
CreateableAPIResource,
|
|
5
|
+
DeletableAPIResource,
|
|
6
|
+
ListableAPIResource,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class TexmlRestCommand(
|
|
11
|
+
CreateableAPIResource, DeletableAPIResource, ListableAPIResource
|
|
12
|
+
):
|
|
13
|
+
OBJECT_NAME = "texml_rest_command"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from __future__ import absolute_import, division, print_function
|
|
2
|
+
|
|
3
|
+
from telnyx.api_resources.abstract import (
|
|
4
|
+
CreateableAPIResource,
|
|
5
|
+
DeletableAPIResource,
|
|
6
|
+
ListableAPIResource,
|
|
7
|
+
UpdateableAPIResource,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class VerifiedCallsDisplayProfile(
|
|
12
|
+
CreateableAPIResource,
|
|
13
|
+
DeletableAPIResource,
|
|
14
|
+
ListableAPIResource,
|
|
15
|
+
UpdateableAPIResource,
|
|
16
|
+
):
|
|
17
|
+
OBJECT_NAME = "verified_calls_display_profile"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from __future__ import absolute_import, division, print_function
|
|
2
|
+
|
|
3
|
+
from telnyx.api_resources.abstract import (
|
|
4
|
+
CreateableAPIResource,
|
|
5
|
+
DeletableAPIResource,
|
|
6
|
+
ListableAPIResource,
|
|
7
|
+
nested_resource_class_methods,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@nested_resource_class_methods("verify", path="actions/verify", operations=["create"])
|
|
12
|
+
class VerifiedNumber(CreateableAPIResource, DeletableAPIResource, ListableAPIResource):
|
|
13
|
+
OBJECT_NAME = "verified_number"
|
|
14
|
+
|
|
15
|
+
def verify(self, **params):
|
|
16
|
+
return self.create_verify(**params)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from __future__ import absolute_import, division, print_function
|
|
2
|
+
|
|
3
|
+
from telnyx.api_resources.abstract import (
|
|
4
|
+
CreateableAPIResource,
|
|
5
|
+
DeletableAPIResource,
|
|
6
|
+
ListableAPIResource,
|
|
7
|
+
UpdateableAPIResource,
|
|
8
|
+
nested_resource_class_methods,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@nested_resource_class_methods("verify", path="actions/verify", operations=["create"])
|
|
13
|
+
class Verify(
|
|
14
|
+
CreateableAPIResource,
|
|
15
|
+
DeletableAPIResource,
|
|
16
|
+
ListableAPIResource,
|
|
17
|
+
UpdateableAPIResource,
|
|
18
|
+
):
|
|
19
|
+
OBJECT_NAME = "verify"
|
|
20
|
+
|
|
21
|
+
def verify(self, **params):
|
|
22
|
+
return self.create_verify(**params)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from __future__ import absolute_import, division, print_function
|
|
2
|
+
|
|
3
|
+
from telnyx.api_resources.abstract import (
|
|
4
|
+
CreateableAPIResource,
|
|
5
|
+
DeletableAPIResource,
|
|
6
|
+
ListableAPIResource,
|
|
7
|
+
UpdateableAPIResource,
|
|
8
|
+
nested_resource_class_methods,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@nested_resource_class_methods(
|
|
13
|
+
"provision", path="actions/provision", operations=["create"]
|
|
14
|
+
)
|
|
15
|
+
class VirtualCrossConnect(
|
|
16
|
+
CreateableAPIResource,
|
|
17
|
+
DeletableAPIResource,
|
|
18
|
+
ListableAPIResource,
|
|
19
|
+
UpdateableAPIResource,
|
|
20
|
+
):
|
|
21
|
+
OBJECT_NAME = "virtual_cross_connect"
|
|
22
|
+
|
|
23
|
+
def provision(self, **params):
|
|
24
|
+
return self.create_provision(**params)
|