8000 [Librarian] Regenerated @ 551da0c03315c2791ce53816c329fd1fb37f471f · srqway/twilio-python@eeeaa3c · GitHub
[go: up one dir, main page]

Skip to content

Commit eeeaa3c

Browse files
committed
[Librarian] Regenerated @ 551da0c03315c2791ce53816c329fd1fb37f471f
1 parent 5397b41 commit eeeaa3c

File tree

83 files changed

+3703
-2061
lines changed
  • v2
  • preview/bulk_exports/export
  • verify/v2/service
  • video/v1
  • twilio/rest
  • Some content is hidden

    Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

    83 files changed

    +3703
    -2061
    lines changed

    CHANGES.md

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

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

    6+
    [2020-11-05] Version 6.47.0
    7+
    ---------------------------
    8+
    **Library - Docs**
    9+
    - [PR #544](https://github.com/twilio/twilio-python/pull/544): add debug logging example. Thanks to [@thinkingserious](https://github.com/thinkingserious)!
    10+
    11+
    **Api**
    12+
    - Added `verify-push` to `usage_record` API
    13+
    14+
    **Bulkexports**
    15+
    - When creating a custom export the StartDay, EndDay, and FriendlyName fields were required but this was not reflected in the API documentation. The API itself failed the request without these fields. **(breaking change)**
    16+
    - Added property descriptions for Custom Export create method
    17+
    - Clarified WebhookUrl and WebhookMethod must be provided together for Custom Export
    18+
    19+
    **Insights**
    20+
    - Added video room and participant summary apis.
    21+
    22+
    **Ip_messaging**
    23+
    - Create separate definition for ip-messaging
    24+
    - Restore v2 endpoints for ip-messaging
    25+
    26+
    **Verify**
    27+
    - Verify Push madurity were updated from `preview` to `beta`
    28+
    - `twilio_sandbox_mode` header was removed from Verify Push resources **(breaking change)**
    29+
    30+
    **Video**
    31+
    - [Rooms] Add Recording Rules API
    32+
    33+
    634
    [2020-10-14] Version 6.46.0
    735
    ---------------------------
    836
    **Library - Docs**

    tests/integration/bulkexports/v1/export/test_export_custom_job.py

    Lines changed: 5 additions & 2 deletions
    Original file line numberDiff line num 10000 berDiff line change
    @@ -91,11 +91,14 @@ def test_create_request(self):
    9191

    9292
    with self.assertRaises(TwilioException):
    9393
    self.client.bulkexports.v1.exports("resource_type") \
    94-
    .export_custom_jobs.create()
    94+
    .export_custom_jobs.create(start_day="start_day", end_day="end_day", friendly_name="friendly_name")
    95+
    96+
    values = {'StartDay': "start_day", 'EndDay': "end_day", 'FriendlyName': "friendly_name", }
    9597

    9698
    self.holodeck.assert_has_request(Request(
    9799
    'post',
    98100
    'https://bulkexports.twilio.com/v1/Exports/resource_type/Jobs',
    101+
    data=values,
    99102
    ))
    100103

    101104
    def test_create_response(self):
    @@ -117,6 +120,6 @@ def test_create_response(self):
    117120
    ))
    118121

    119122
    actual = self.client.bulkexports.v1.exports("resource_type") \
    120-
    .export_custom_jobs.create()
    123+
    .export_custom_jobs.create(start_day="start_day", end_day="end_day", friendly_name="friendly_name")
    121124

    122125
    self.assertIsNotNone(actual)

    tests/integration/events/v1/sink/test_sink_test.py

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -31,7 +31,7 @@ def test_create_response(self):
    3131
    201,
    3232
    '''
    3333
    {
    34-
    "result": "valid"
    34+
    "result": "submitted"
    3535
    }
    3636
    '''
    3737
    ))
    Lines changed: 8 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -0,0 +1,8 @@
    1+
    # coding=utf-8
    2+
    r"""
    3+
    This code was generated by
    4+
    \ / _ _ _| _ _
    5+
    | (_)\/(_)(_|\/| |(/_ v1.0.0
    6+
    / /
    7+
    """
    8+
    Lines changed: 144 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -0,0 +1,144 @@
    1+
    # coding=utf-8
    2+
    r"""
    3+
    This code was generated by
    4+
    \ / _ _ _| _ _
    5+
    | (_)\/(_)(_|\/| |(/_ v1.0.0
    6+
    / /
    7+
    """
    8+
    9+
    from tests import IntegrationTestCase
    10+
    from tests.holodeck import Request
    11+
    from twilio.base.exceptions import TwilioException
    12+
    from twilio.http.response import Response
    13+
    14+
    15+
    class ParticipantTestCase(IntegrationTestCase):
    16+
    17+
    def test_fetch_request(self):
    18+
    self.holodeck.mock(Response(500, ''))
    19+
    20+
    with self.assertRaises(TwilioException):
    21+
    self.client.insights.v1.rooms("RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
    22+
    .participants("PAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").fetch()
    23+
    24+
    self.holodeck.assert_has_request(Request(
    25+
    'get',
    26+
    'https://insights.twilio.com/v1/Video/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants/PAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
    27+
    ))
    28+
    29+
    def test_fetch_response(self):
    30+
    self.holodeck.mock(Response(
    31+
    200,
    32+
    '''
    33+
    {
    34+
    "publisher_info": {},
    35+
    "edge_location": "Ashburn",
    36+
    "join_time": "2015-07-30T20:00:00Z",
    37+
    "leave_time": "2015-07-30T20:00:00Z",
    38+
    "end_reason": "disconnected_via_api",
    39+
    "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    40+
    "error_code": 0,
    41+
    "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    42+
    "media_region": "us1",
    43+
    "properties": {},
    44+
    "room_sid": "RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    45+
    "error_code_url": "error_code_url",
    46+
    "participant_sid": "PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    47+
    "codecs": [
    48+
    "VP8"
    49+
    ],
    50+
    "status": "in_progress",
    51+
    "duration_sec": 50000000,
    52+
    "participant_identity": "participant_identity",
    53+
    "url": "https://insights.twilio.com/v1/Video/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
    54+
    }
    55+
    '''
    56+
    ))
    57+
    58+
    actual = self.client.insights.v1.rooms("RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
    59+
    .participants("PAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").fetch()
    60+
    61+
    self.assertIsNotNone(actual)
    62+
    63+
    def test_list_request(self):
    64+
    self.holodeck.mock(Response(500, ''))
    65+
    66+
    with self.assertRaises(TwilioException):
    67+
    self.client.insights.v1.rooms("RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
    68+
    .participants.list()
    69+
    70+
    self.holodeck.assert_has_request(Request(
    71+
    'get',
    72+
    'https://insights.twilio.com/v1/Video/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants',
    73+
    ))
    74+
    75+
    def test_read_empty_response(self):
    76+
    self.holodeck.mock(Response(
    77+
    200,
    78+
    '''
    79+
    {
    80+
    "meta": {
    81+
    "url": "https://insights.twilio.com/v1/Video/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants?PageSize=50&Page=0",
    82+
    "key": "participants",
    83+
    "first_page_url": "https://insights.twilio.com/v1/Video/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants?PageSize=50&Page=0",
    84+
    "page_size": 50,
    85+
    "next_page_url": null,
    86+
    "page": 0,
    87+
    "previous_page_url": null
    88+
    },
    89+
    "participants": []
    90+
    }
    91+
    '''
    92+
    ))
    93+
    94+
    actual = self.client.insights.v1.rooms("RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
    95+
    .participants.list()
    96+
    97+
    self.assertIsNotNone(actual)
    98+
    99+
    def test_read_full_response(self):
    100+
    self.holodeck.mock(Response(
    101+
    200,
    102+
    '''
    103+
    {
    104+
    "meta": {
    105+
    "url": "https://insights.twilio.com/v1/Video/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants?PageSize=50&Page=0",
    106+
    "key": "participants",
    107+
    "first_page_url": "https://insights.twilio.com/v1/Video/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants?PageSize=50&Page=0",
    108+
    "page_size": 50,
    109+
    "next_page_url": null,
    110+
    "page": 0,
    111+
    "previous_page_url": null
    112+
    },
    113+
    "participants": [
    114+
    {
    115+
    "publisher_info": {},
    116+
    "edge_location": "Ashburn",
    117+
    "join_time": "2015-07-30T20:00:00Z",
    118+
    "leave_time": "2015-07-30T20:00:00Z",
    119+
    "end_reason": "disconnected_via_api",
    120+
    "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    121+
    "error_code": 53205,
    122+
    "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    123+
    "media_region": "us1",
    124+
    "properties": {},
    125+
    "room_sid": "RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    126+
    "error_code_url": "error_code_url",
    127+
    "participant_sid": "PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    128+
    "codecs": [
    129+
    "VP8"
    130+
    ],
    131+
    "status": "in_progress",
    132+
    "duration_sec": 50000000,
    133+
    "participant_identity": "participant_identity",
    134+
    "url": "https://insights.twilio.com/v1/Video/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
    135+
    }
    136+
    ]
    137+
    }
    138+
    '''
    139+
    ))
    140+
    141+
    actual = self.client.insights.v1.rooms("RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
    142+
    .participants.list()
    143+
    144+
    self.assertIsNotNone(actual)
    Lines changed: 159 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -0,0 +1,159 @@
    1+
    # coding=utf-8
    2+
    r"""
    3+
    This code was generated by
    4+
    \ / _ _ _| _ _
    5+
    | (_)\/(_)(_|\/| |(/_ v1.0.0
    6+
    / /
    7+
    """
    8+
    9+
    from tests import IntegrationTestCase
    10+
    from tests.holodeck import Request
    11+
    from twilio.base.exceptions import TwilioException
    12+
    from twilio.http.response import Response
    13+
    14+
    15+
    class RoomTestCase(IntegrationTestCase):
    16+
    17+
    def test_fetch_request(self):
    18+
    self.holodeck.mock(Response(500, ''))
    19+
    20+
    with self.assertRaises(TwilioException):
    21+
    self.client.insights.v1.rooms("RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").fetch()
    22+
    23+
    self.holodeck.assert_has_request(Request(
    24+
    'get',
    25+
    'https://insights.twilio.com/v1/Video/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
    26+
    ))
    27+
    28+
    def test_fetch_response(self):
    29+
    self.holodeck.mock(Response(
    30+
    200,
    31+
    '''
    32+
    {
    33+
    "room_type": "go",
    34+
    "unique_participant_identities": 0,
    35+
    "codecs": [
    36+
    "VP8"
    37+
    ],
    38+
    "max_participants": 0,
    39+
    "room_sid": "RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    40+
    "create_time": "2015-07-30T20:00:00Z",
    41+
    "end_reason": "room_ended_via_api",
    42+
    "duration_sec": 50000000,
    43+
    "room_status": "in_progress",
    44+
    "media_region": "us1",
    45+
    "recording_enabled": false,
    46+
    "edge_location": "Ashburn",
    47+
    "max_concurrent_participants": 0,
    48+
    "unique_participants": 0,
    49+
    "room_name": "room_name",
    50+
    "created_method": "sdk",
    51+
    "total_participant_duration_sec": 50000000,
    52+
    "status_callback_method": "GET",
    53+
    "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    54+
    "end_time": "2015-07-30T20:00:00Z",
    55+
    "total_recording_duration_sec": 50000000,
    56+
    "processing_state": "complete",
    57+
    "concurrent_participants": 0,
    58+
    "status_callback": "http://www.example.com",
    59+
    "url": "https://insights.twilio.com/v1/Video/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    60+
    "links": {
    61+
    "participants": "https://insights.twilio.com/v1/Video/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants"
    62+
    }
    63+
    }
    64+
    '''
    65+
    ))
    66+
    67+
    actual = self.client.insights.v1.rooms("RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").fetch()
    68+
    69+
    self.assertIsNotNone(actual)
    70+
    71+
    def test_list_request(self):
    72+
    self.holodeck.mock(Response(500, ''))
    73+
    74+
    with self.assertRaises(TwilioException):
    75+
    self.client.insights.v1.rooms.list()
    76+
    77+
    self.holodeck.assert_has_request(Request(
    78+
    'get',
    79+
    'https://insights.twilio.com/v1/Video/Rooms',
    80+
    ))
    81+
    82+
    def test_read_empty_response(self):
    83+
    self.holodeck.mock(Response(
    84+
    200,
    85+
    '''
    86+
    {
    87+
    "meta": {
    88+
    "first_page_url": "https://insights.twilio.com/v1/Video/Rooms?PageSize=50&Page=0",
    89+
    "url": "https://insights.twilio.com/v1/Video/Rooms?PageSize=50&Page=0",
    90+
    "page_size": 50,
    91+
    "next_page_url": null,
    92+
    "key": "rooms",
    93+
    "page": 0,
    94+
    "previous_page_url": null
    95+
    },
    96+
    "rooms": []
    97+
    }
    98+
    '''
    99+
    ))
    100+
    101+
    actual = self.client.insights.v1.rooms.list()
    102+
    103+
    self.assertIsNotNone(actual)
    104+
    105+
    def test_read_full_response(self):
    106+
    self.holodeck.mock(Response(
    107+
    200,
    108+
    '''
    109+
    {
    110+
    "meta": {
    111+
    "first_page_url": "https://insights.twilio.com/v1/Video/Rooms?PageSize=50&Page=0",
    112+
    "url": "https://insights.twilio.com/v1/Video/Rooms?PageSize=50&Page=0",
    113+
    "page_size": 50,
    114+
    "next_page_url": null,
    115+
    "key": "rooms",
    116+
    "page": 0,
    117+
    "previous_page_url": null
    118+
    },
    119+
    "rooms": [
    120+
    {
    121+
    "room_type": "go",
    122+
    "unique_participant_identities": 0,
    123+
    "codecs": [
    124+
    "VP8"
    125+
    ],
    126+
    "max_participants": 0,
    127+
    "room_sid": "RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    128+
    "create_time": "2015-07-30T20:00:00Z",
    129+
    "end_reason": "room_ended_via_api",
    130+
    "duration_sec": 50000000,
    131+
    "room_status": "in_progress",
    132+
    "media_region": "us1",
    133+
    "recording_enabled": false,
    134+
    "edge_location": "Ashburn",
    135+
    "max_concurrent_participants": 0,
    136+
    "unique_participants": 0,
    137+
    "room_name": "room_name",
    138+
    "created_method": "sdk",
    139+
    "total_participant_duration_sec": 50000000,
    140+
    "status_callback_method": "GET",
    141+
    "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    142+
    "end_time": "2015-07-30T20:00:00Z",
    143+
    "total_recording_duration_sec": 50000000,
    144+
    "processing_state": "complete",
    145+
    "concurrent_participants": 0,
    146+
    "status_callback": "http://www.example.com",
    147+
    "url": "https://insights.twilio.com/v1/Video/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    148+
    "links": {
    149+
    "participants": "https://insights.twilio.com/v1/Video/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants"
    150+
    }
    151+
    }
    152+
    ]
    153+
    }
    154+
    '''
    155+
    ))
    156+
    157+
    actual = self.client.insights.v1.rooms.list()
    158+
    159+
    self.assertIsNotNone(actual)

    0 commit comments

    Comments
     (0)
    0