Skip to content

Commit 75a7e66

Browse files
committed
[Librarian] Regenerated @ b1da2810ac9def6e9282b52c1aa794ebefde64e0
1 parent 85fb0e9 commit 75a7e66

File tree

23 files changed

+150
-118
lines changed

23 files changed

+150
-118
lines changed

CHANGES.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,23 @@ twilio-python Changelog
33

44
Here you can see the full list of changes between each twilio-python release.
55

6+
[2022-06-29] Version 7.10.0
7+
---------------------------
8+
**Api**
9+
- Added `amazon-polly` to `usage_record` API.
10+
11+
**Insights**
12+
- Added `annotation` field in call summary
13+
- Added new endpoint to fetch/create/update Call Annotations
14+
15+
**Verify**
16+
- Remove `api.verify.totp` beta flag and set maturity to `beta` for Verify TOTP properties and parameters. **(breaking change)**
17+
- Changed summary param `verify_service_sid` to `service_sid` to be consistent with list attempts API **(breaking change)**
18+
19+
**Twiml**
20+
- Add `maxQueueSize` to `Enqueue`
21+
22+
623
[2022-06-15] Version 7.9.3
724
--------------------------
825
**Lookups**

tests/integration/insights/v1/test_annotation.py renamed to tests/integration/insights/v1/call/test_annotation.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ def test_update_request(self):
1818
self.holodeck.mock(Response(500, ''))
1919

2020
with self.assertRaises(TwilioException):
21-
self.client.insights.v1.annotation("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").update()
21+
self.client.insights.v1.calls("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
22+
.annotation().update()
2223

2324
self.holodeck.assert_has_request(Request(
2425
'post',
@@ -35,7 +36,8 @@ def test_update_response(self):
3536
"answered_by": "human",
3637
"connectivity_issue": "invalid_number",
3738
"quality_issues": [
38-
"low_volume"
39+
"low_volume",
40+
"choppy_robotic"
3941
],
4042
"spam": true,
4143
"call_score": 2,
@@ -46,15 +48,17 @@ def test_update_response(self):
4648
'''
4749
))
4850

49-
actual = self.client.insights.v1.annotation("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").update()
51+
actual = self.client.insights.v1.calls("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
52+
.annotation().update()
5053

5154
self.assertIsNotNone(actual)
5255

5356
def test_fetch_request(self):
5457
self.holodeck.mock(Response(500, ''))
5558

5659
with self.assertRaises(TwilioException):
57-
self.client.insights.v1.annotation("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").fetch()
60+
self.client.insights.v1.calls("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
61+
.annotation().fetch()
5862

5963
self.holodeck.assert_has_request(Request(
6064
'get',
@@ -82,6 +86,7 @@ def test_fetch_response(self):
8286
'''
8387
))
8488

85-
actual = self.client.insights.v1.annotation("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").fetch()
89+
actual = self.client.insights.v1.calls("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
90+
.annotation().fetch()
8691

8792
self.assertIsNotNone(actual)

tests/integration/insights/v1/call/test_summary.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def test_fetch_response(self):
5353
"attributes": {},
5454
"properties": {},
5555
"trust": {},
56+
"annotation": {},
5657
"url": "https://insights.twilio.com/v1/Voice/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Summary"
5758
}
5859
'''

tests/integration/insights/v1/test_call.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ def test_fetch_response(self):
3535
"links": {
3636
"events": "https://insights.twilio.com/v1/Voice/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Events",
3737
"metrics": "https://insights.twilio.com/v1/Voice/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Metrics",
38-
"summary": "https://insights.twilio.com/v1/Voice/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Summary"
38+
"summary": "https://insights.twilio.com/v1/Voice/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Summary",
39+
"annotation": "https://insights.twilio.com/v1/Voice/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Annotation"
3940
}
4041
}
4142
'''

tests/integration/media/v1/test_media_recording.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ def test_fetch_response(self):
5252
'''
5353
{
5454
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
55-
"bitrate": 1000,
5655
"date_created": "2015-07-30T20:00:00Z",
5756
"date_updated": "2015-07-30T20:00:00Z",
5857
"duration": 2147483647,
@@ -129,7 +128,6 @@ def test_read_items_response(self):
129128
"media_recordings": [
130129
{
131130
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
132-
"bitrate": 1000,
133131
"date_created": "2015-07-30T20:00:00Z",
134132
"date_updated": "2015-07-30T20:00:00Z",
135133
"duration": 1000,

twilio/rest/api/v2010/account/usage/record/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ class RecordInstance(InstanceResource):
316316
class Category(object):
317317
A2P_REGISTRATION_FEES = "a2p-registration-fees"
318318
AGENT_CONFERENCE = "agent-conference"
319+
AMAZON_POLLY = "amazon-polly"
319320
ANSWERING_MACHINE_DETECTION = "answering-machine-detection"
320321
AUTHY_AUTHENTICATIONS = "authy-authentications"
321322
AUTHY_CALLS_OUTBOUND = "authy-calls-outbound"

twilio/rest/api/v2010/account/usage/record/all_time.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ class AllTimeInstance(InstanceResource):
202202
class Category(object):
203203
A2P_REGISTRATION_FEES = "a2p-registration-fees"
204204
AGENT_CONFERENCE = "agent-conference"
205+
AMAZON_POLLY = "amazon-polly"
205206
ANSWERING_MACHINE_DETECTION = "answering-machine-detection"
206207
AUTHY_AUTHENTICATIONS = "authy-authentications"
207208
AUTHY_CALLS_OUTBOUND = "authy-calls-outbound"

twilio/rest/api/v2010/account/usage/record/daily.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ class DailyInstance(InstanceResource):
202202
class Category(object):
203203
A2P_REGISTRATION_FEES = "a2p-registration-fees"
204204
AGENT_CONFERENCE = "agent-conference"
205+
AMAZON_POLLY = "amazon-polly"
205206
ANSWERING_MACHINE_DETECTION = "answering-machine-detection"
206207
AUTHY_AUTHENTICATIONS = "authy-authentications"
207208
AUTHY_CALLS_OUTBOUND = "authy-calls-outbound"

twilio/rest/api/v2010/account/usage/record/last_month.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ class LastMonthInstance(InstanceResource):
202202
class Category(object):
203203
A2P_REGISTRATION_FEES = "a2p-registration-fees"
204204
AGENT_CONFERENCE = "agent-conference"
205+
AMAZON_POLLY = "amazon-polly"
205206
ANSWERING_MACHINE_DETECTION = "answering-machine-detection"
206207
AUTHY_AUTHENTICATIONS = "authy-authentications"
207208
AUTHY_CALLS_OUTBOUND = "authy-calls-outbound"

twilio/rest/api/v2010/account/usage/record/monthly.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ class MonthlyInstance(InstanceResource):
202202
class Category(object):
203203
A2P_REGISTRATION_FEES = "a2p-registration-fees"
204204
AGENT_CONFERENCE = "agent-conference"
205+
AMAZON_POLLY = "amazon-polly"
205206
ANSWERING_MACHINE_DETECTION = "answering-machine-detection"
206207
AUTHY_AUTHENTICATIONS = "authy-authentications"
207208
AUTHY_CALLS_OUTBOUND = "authy-calls-outbound"

twilio/rest/api/v2010/account/usage/record/this_month.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ class ThisMonthInstance(InstanceResource):
202202
class Category(object):
203203
A2P_REGISTRATION_FEES = "a2p-registration-fees"
204204
AGENT_CONFERENCE = "agent-conference"
205+
AMAZON_POLLY = "amazon-polly"
205206
ANSWERING_MACHINE_DETECTION = "answering-machine-detection"
206207
AUTHY_AUTHENTICATIONS = "authy-authentications"
207208
AUTHY_CALLS_OUTBOUND = "authy-calls-outbound"

twilio/rest/api/v2010/account/usage/record/today.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ class TodayInstance(InstanceResource):
202202
class Category(object):
203203
A2P_REGISTRATION_FEES = "a2p-registration-fees"
204204
AGENT_CONFERENCE = "agent-conference"
205+
AMAZON_POLLY = "amazon-polly"
205206
ANSWERING_MACHINE_DETECTION = "answering-machine-detection"
206207
AUTHY_AUTHENTICATIONS = "authy-authentications"
207208
AUTHY_CALLS_OUTBOUND = "authy-calls-outbound"

twilio/rest/api/v2010/account/usage/record/yearly.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ class YearlyInstance(InstanceResource):
202202
class Category(object):
203203
A2P_REGISTRATION_FEES = "a2p-registration-fees"
204204
AGENT_CONFERENCE = "agent-conference"
205+
AMAZON_POLLY = "amazon-polly"
205206
ANSWERING_MACHINE_DETECTION = "answering-machine-detection"
206207
AUTHY_AUTHENTICATIONS = "authy-authentications"
207208
AUTHY_CALLS_OUTBOUND = "authy-calls-outbound"

twilio/rest/api/v2010/account/usage/record/yesterday.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ class YesterdayInstance(InstanceResource):
202202
class Category(object):
203203
A2P_REGISTRATION_FEES = "a2p-registration-fees"
204204
AGENT_CONFERENCE = "agent-conference"
205+
AMAZON_POLLY = "amazon-polly"
205206
ANSWERING_MACHINE_DETECTION = "answering-machine-detection"
206207
AUTHY_AUTHENTICATIONS = "authy-authentications"
207208
AUTHY_CALLS_OUTBOUND = "authy-calls-outbound"

twilio/rest/api/v2010/account/usage/trigger.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ class TriggerInstance(InstanceResource):
328328
class UsageCategory(object):
329329
A2P_REGISTRATION_FEES = "a2p-registration-fees"
330330
AGENT_CONFERENCE = "agent-conference"
331+
AMAZON_POLLY = "amazon-polly"
331332
ANSWERING_MACHINE_DETECTION = "answering-machine-detection"
332333
AUTHY_AUTHENTICATIONS = "authy-authentications"
333334
AUTHY_CALLS_OUTBOUND = "authy-calls-outbound"

twilio/rest/insights/__init__.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,6 @@ def settings(self):
4343
"""
4444
return self.v1.settings
4545

46-
@property
47-
def annotation(self):
48-
"""
49-
:rtype: twilio.rest.insights.v1.annotation.AnnotationList
50-
"""
51-
return self.v1.annotation
52-
5346
@property
5447
def calls(self):
5548
"""

twilio/rest/insights/v1/__init__.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"""
88

99
from twilio.base.version import Version
10-
from twilio.rest.insights.v1.annotation import AnnotationList
1110
from twilio.rest.insights.v1.call import CallList
1211
from twilio.rest.insights.v1.call_summaries import CallSummariesList
1312
from twilio.rest.insights.v1.conference import ConferenceList
@@ -27,7 +26,6 @@ def __init__(self, domain):
2726
super(V1, self).__init__(domain)
2827
self.version = 'v1'
2928
self._settings = None
30-
self._annotation = None
3129
self._calls = None
3230
self._call_summaries = None
3331
self._conferences = None
@@ -42,15 +40,6 @@ def settings(self):
4240
self._settings = SettingList(self)
4341
return self._settings
4442

45-
@property
46-
def annotation(self):
47-
"""
48-
:rtype: twilio.rest.insights.v1.annotation.AnnotationList
49-
"""
50-
if self._annotation is None:
51-
self._annotation = AnnotationList(self)
52-
return self._annotation
53-
5443
@property
5544
def calls(self):
5645
"""

twilio/rest/insights/v1/call/__init__.py

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,13 @@
1111
from twilio.base.instance_resource import InstanceResource
1212
from twilio.base.list_resource import ListResource
1313
from twilio.base.page import Page
14+
from twilio.rest.insights.v1.call.annotation import AnnotationList
1415
from twilio.rest.insights.v1.call.event import EventList
1516
from twilio.rest.insights.v1.call.metric import MetricList
1617
from twilio.rest.insights.v1.call.summary import CallSummaryList
1718

1819

1920
class CallList(ListResource):
20-
""" PLEASE NOTE that this class contains preview products that are subject
21-
to change. Use them with caution. If you currently do not have developer
22-
preview access, please contact help@twilio.com. """
2321

2422
def __init__(self, version):
2523
"""
@@ -68,9 +66,6 @@ def __repr__(self):
6866

6967

7068
class CallPage(Page):
71-
""" PLEASE NOTE that this class contains preview products that are subject
72-
to change. Use them with caution. If you currently do not have developer
73-
preview access, please contact help@twilio.com. """
7469

7570
def __init__(self, version, response, solution):
7671
"""
@@ -109,9 +104,6 @@ def __repr__(self):
109104

110105

111106
class CallContext(InstanceContext):
112-
""" PLEASE NOTE that this class contains preview products that are subject
113-
to change. Use them with caution. If you currently do not have developer
114-
preview access, please contact help@twilio.com. """
115107

116108
def __init__(self, version, sid):
117109
"""
@@ -133,6 +125,7 @@ def __init__(self, version, sid):
133125
self._events = None
134126
self._metrics = None
135127
self._summary = None
128+
self._annotation = None
136129

137130
def fetch(self):
138131
"""
@@ -181,6 +174,18 @@ def summary(self):
181174
self._summary = CallSummaryList(self._version, call_sid=self._solution['sid'], )
182175
return self._summary
183176

177+
@property
178+
def annotation(self):
179+
"""
180+
Access the annotation
181+
182+
:returns: twilio.rest.insights.v1.call.annotation.AnnotationList
183+
:rtype: twilio.rest.insights.v1.call.annotation.AnnotationList
184+
"""
185+
if self._annotation is None:
186+
self._annotation = AnnotationList(self._version, call_sid=self._solution['sid'], )
187+
return self._annotation
188+
184189
def __repr__(self):
185190
"""
186191
Provide a friendly representation
@@ -193,9 +198,6 @@ def __repr__(self):
193198

194199

195200
class CallInstance(InstanceResource):
196-
""" PLEASE NOTE that this class contains preview products that are subject
197-
to change. Use them with caution. If you currently do not have developer
198-
preview access, please contact help@twilio.com. """
199201

200202
def __init__(self, version, payload, sid=None):
201203
"""
@@ -293,6 +295,16 @@ def summary(self):
293295
"""
294296
return self._proxy.summary
295297

298+
@property
299+
def annotation(self):
300+
"""
301+
Access the annotation
302+
303+
:returns: twilio.rest.insights.v1.call.annotation.AnnotationList
304+
:rtype: twilio.rest.insights.v1.call.annotation.AnnotationList
305+
"""
306+
return self._proxy.annotation
307+
296308
def __repr__(self):
297309
"""
298310
Provide a friendly representation

0 commit comments

Comments
 (0)