8000 [Librarian] Regenerated @ ef5cd6964cf6173a7cf69ab82bb889867ad5cf56 · githubib/twilio-python@d78aadb · GitHub
[go: up one dir, main page]

Skip to content

Commit d78aadb

Browse files
committed
[Librarian] Regenerated @ ef5cd6964cf6173a7cf69ab82bb889867ad5cf56
1 parent 9075f63 commit d78aadb

File tree

18 files changed

+1381
-57
lines changed
  • flex_api/v1
  • insights/v1
  • monitor/v1
  • sync/v1
  • wireless/v1
  • twilio
  • 18 files changed

    +1381
    -57
    lines changed

    CHANGES.md

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

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

    6+
    [2019-08-21] Version 6.29.4
    7+
    ----------------------------
    8+
    **Library**
    9+
    - [PR #474](https://github.com/twilio/twilio-python/pull/474): Use PyJWT version >= 1.4.2 in requirements.txt. Thanks to [@storymode7](https://github.com/storymode7)!
    10+
    - [PR #473](https://github.com/twilio/twilio-python/pull/473): Update the IP messaging domain name to be 'chat'. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
    11+
    12+
    **Conversations**
    13+
    - Add Chat Conversation SID to conversation default output properties
    14+
    15+
    **Flex**
    16+
    - Adding `outbound_call_flows` object to Flex Configuration
    17+
    - Adding read and fetch to channels API
    18+
    19+
    **Supersim**
    20+
    - Add Sims and Commands resources for the Super Sim Pilot
    21+
    22+
    **Sync**
    23+
    - Added configuration option for enabling webhooks from REST.
    24+
    25+
    **Wireless**
    26+
    - Added `usage_notification_method` and `usage_notification_url` properties to `rate_plan`.
    27+
    28+
    **Twiml**
    29+
    - Add support for `ach-debit` transactions in `Pay` verb
    30+
    31+
    632
    [2019-08-05] Version 6.29.3
    733
    ----------------------------
    834
    **Preview**

    tests/integration/conversations/v1/test_conversation.py

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -129,7 +129,7 @@ def test_fetch_response(self):
    129129
    "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    130130
    "chat_service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    131131
    "messaging_service_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    132-
    "friendly_name": "Sartorial Consultation",
    132+
    "friendly_name": "My First Conversation",
    133133
    "date_created": "2015-12-16T22:18:37Z",
    134134
    "date_updated": "2015-12-16T22:18:38Z",
    135135
    "url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    Lines changed: 176 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -0,0 +1,176 @@
    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 ChannelTestCase(IntegrationTestCase):
    16+
    17+
    def test_list_request(self):
    18+
    self.holodeck.mock(Response(500, ''))
    19+
    20+
    with self.assertRaises(TwilioException):
    21+
    self.client.flex_api.v1.channel.list()
    22+
    23+
    self.holodeck.assert_has_request(Request(
    24+
    'get',
    25+
    'https://flex-api.twilio.com/v1/Channels',
    26+
    ))
    27+
    28+
    def test_read_full_response(self):
    29+
    self.holodeck.mock(Response(
    30+
    200,
    31+
    '''
    32+
    {
    33+
    "meta": {
    34+
    "page": 0,
    35+
    "page_size": 50,
    36+
    "first_page_url": "https://flex-api.twilio.com/v1/Channels?PageSize=50&Page=0",
    37+
    "previous_page_url": null,
    38+
    "url": "https://flex-api.twilio.com/v1/Channels?PageSize=50&Page=0",
    39+
    "next_page_url": null,
    40+
    "key": "flex_chat_channels"
    41+
    },
    42+
    "flex_chat_channels": [
    43+
    {
    44+
    "flex_flow_sid": "FOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    45+
    "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    46+
    "sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    47+
    "task_sid": "WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    48+
    "user_sid": "USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    49+
    "date_created": "2016-08-01T22:10:40Z",
    50+
    "date_updated": "2016-08-01T22:10:40Z",
    51+
    "url": "https://flex-api.twilio.com/v1/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
    52+
    }
    53+
    ]
    54+
    }
    55+
    '''
    56+
    ))
    57+
    58+
    actual = self.client.flex_api.v1.channel.list()
    59+
    60+
    self.assertIsNotNone(actual)
    61+
    62+
    def test_read_empty_response(self):
    63+
    self.holodeck.mock(Response(
    64+
    200,
    65+
    '''
    66+
    {
    67+
    "meta": {
    68+
    "page": 0,
    69+
    "page_size": 50,
    70+
    "first_page_url": "https://flex-api.twilio.com/v1/Channels?PageSize=50&Page=0",
    71+
    "previous_page_url": null,
    72+
    "url": "https://flex-api.twilio.com/v1/Channels?PageSize=50&Page=0",
    73+
    "next_page_url": null,
    74+
    "key": "flex_chat_channels"
    75+
    },
    76+
    "flex_chat_channels": []
    77+
    }
    78+
    '''
    79+
    ))
    80+
    81+
    actual = self.client.flex_api.v1.channel.list()
    82+
    83+
    self.assertIsNotNone(actual)
    84+
    85+
    def test_fetch_request(self):
    86+
    self.holodeck.mock(Response(500, ''))
    87+
    88+
    with self.assertRaises(TwilioException):
    89+
    self.client.flex_api.v1.channel(sid="CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").fetch()
    90+
    91+
    self.holodeck.assert_has_request(Request(
    92+
    'get',
    93+
    'https://flex-api.twilio.com/v1/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
    94+
    ))
    95+
    96+
    def test_fetch_response(self):
    97+
    self.holodeck.mock(Response(
    98+
    200,
    99+
    '''
    100+
    {
    101+
    "flex_flow_sid": "FOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    102+
    "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    103+
    "sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    104+
    "task_sid": "WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    105+
    "user_sid": "USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    106+
    "date_created": "2016-08-01T22:10:40Z",
    107+
    "date_updated": "2016-08-01T22:10:40Z",
    108+
    "url": "https://flex-api.twilio.com/v1/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
    109+
    }
    110+
    '''
    111+
    ))
    112+
    113+
    actual = self.client.flex_api.v1.channel(sid="CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").fetch()
    114+
    115+
    self.assertIsNotNone(actual)
    116+
    117+
    def test_create_request(self):
    118+
    self.holodeck.mock(Response(500, ''))
    119+
    120+
    with self.assertRaises(TwilioException):
    121+
    self.client.flex_api.v1.channel.create(flex_flow_sid="FOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", identity="identity", chat_user_friendly_name="chat_user_friendly_name", chat_friendly_name="chat_friendly_name")
    122+
    123+
    values = {
    124+
    'FlexFlowSid': "FOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    125+
    'Identity': "identity",
    126+
    'ChatUserFriendlyName': "chat_user_friendly_name",
    127+
    'ChatFriendlyName': "chat_friendly_name",
    128+
    }
    129+
    130+
    self.holodeck.assert_has_request(Request(
    131+
    'post',
    132+
    'https://flex-api.twilio.com/v1/Channels',
    133+
    data=values,
    134+
    ))
    135+
    136+
    def test_create_response(self):
    137+
    self.holodeck.mock(Response(
    138+
    201,
    139+
    '''
    140+
    {
    141+
    "flex_flow_sid": "FOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    142+
    "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    143+
    "sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    144+
    "task_sid": "WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    145+
    "user_sid": "USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    146+
    "date_created": "2016-08-01T22:10:40Z",
    147+
    "date_updated": "2016-08-01T22:10:40Z",
    148+
    "url": "https://flex-api.twilio.com/v1/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
    149+
    }
    150+
    '''
    151+
    ))
    152+
    153+
    actual = self.client.flex_api.v1.channel.create(flex_flow_sid="FOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", identity="identity", chat_user_friendly_name="chat_user_friendly_name", chat_friendly_name="chat_friendly_name")
    154+
    155+
    self.assertIsNotNone(actual)
    156+
    157+
    def test_delete_request(self):
    158+
    self.holodeck.mock(Response(500, ''))
    159+
    160+
    with self.assertRaises(TwilioException):
    161+
    self.client.flex_api.v1.channel(sid="CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").delete()
    162+
    163+
    self.holodeck.assert_has_reques F438 t(Request(
    164+
    'delete',
    165+
    'https://flex-api.twilio.com/v1/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
    166+
    ))
    167+
    168+
    def test_delete_response(self):
    169+
    self.holodeck.mock(Response(
    170+
    204,
    171+
    None,
    172+
    ))
    173+
    174+
    actual = self.client.flex_api.v1.channel(sid="CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").delete()
    175+
    176+
    self.assertTrue(actual)

    tests/integration/flex_api/v1/test_configuration.py

    Lines changed: 24 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -134,6 +134,14 @@ def test_fetch_response(self):
    134134
    "config": "{\\"callback\\":\\"twilio.com/cb\\",\\"allowed_methods\\":[\\"GET\\",\\"POST\\"]}"
    135135
    }
    136136
    ],
    137+
    "outbound_call_flows": {
    138+
    "default": {
    139+
    "caller_id": "+12345",
    140+
    "queue_sid": "WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    141+
    "location": "EE",
    142+
    "workflow_sid": "WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
    143+
    }
    144+
    },
    137145
    "url": "https://flex-api.twilio.com/v1/Configuration"
    138146
    }
    139147
    '''
    @@ -263,6 +271,14 @@ def test_create_response(self):
    263271
    "config": "{\\"callback\\":\\"twilio.com/cb\\",\\"allowed_methods\\":[\\"GET\\",\\"POST\\"]}"
    264272
    }
    265273
    ],
    274+
    "outbound_call_flows": {
    275+
    "default": {
    276+
    "caller_id": "+12345",
    277+
    "queue_sid": "WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    278+
    "location": "EE",
    279+
    "workflow_sid": "WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
    280+
    }
    281+
    },
    266282
    "url": "https://flex-api.twilio.com/v1/Configuration"
    267283
    }
    268284
    '''
    @@ -392,6 +408,14 @@ def test_update_response(self):
    392408
    "config": "{\\"callback\\":\\"twilio.com/cb\\",\\"allowed_methods\\":[\\"GET\\",\\"POST\\"]}"
    393409
    }
    394410
    ],
    411+
    "outbound_call_flows": {
    412+
    "default": {
    413+
    "caller_id": "+12345",
    414+
    "queue_sid": "WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    415+
    "location": "EE",
    416+
    "workflow_sid": "WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
    417+
    }
    418+
    },
    395419
    "url": "https://flex-api.twilio.com/v1/Configuration"
    396420
    }
    397421
    '''

    0 commit comments

    Comments
     (0)
    0