8000 [Librarian] Regenerated @ 1f677278300980ef5a5d2b85c0f2262c993619cf · leewalter/twilio-python@4f7d79c · GitHub
[go: up one dir, main page]

Skip to content

Commit 4f7d79c

Browse files
committed
[Librarian] Regenerated @ 1f677278300980ef5a5d2b85c0f2262c993619cf
1 parent f73e4d8 commit 4f7d79c

File tree

35 files changed

+595
-491
lines changed
  • proxy/v1/service/session
  • trunking/v1/trunk
  • video
  • voice/v1/voice_permission
  • 35 files changed

    +595
    -491
    lines changed

    CHANGES.md

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

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

    6+
    [2019-01-10] Version 6.23.0
    7+
    ----------------------------
    8+
    **Chat**
    9+
    - Mark Member attributes as PII
    10+
    11+
    **Proxy**
    12+
    - Remove unsupported query parameters **(breaking change)**
    13+
    - Remove invalid session statuses in doc
    14+
    15+
    616
    [2019-01-02] Version 6.22.1
    717
    ----------------------------
    818
    **Insights**

    tests/integration/api/v2010/account/sip/test_domain.py

    Lines changed: 8 additions & 4 deletions
    Original file line numberDiff line numberDiff line change
    @@ -53,7 +53,8 @@ def test_read_full_response(self):
    5353
    "voice_method": "POST",
    5454
    "voice_status_callback_method": "POST",
    5555
    "voice_status_callback_url": null,
    56-
    "voice_url": "https://dundermifflin.example.com/twilio/app.php"
    56+
    "voice_url": "https://dundermifflin.example.com/twilio/app.php",
    57+
    "trunk_sid": "TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
    5758
    }
    5859
    ],
    5960
    "start": 0,
    @@ -138,7 +139,8 @@ def test_create_response(self):
    138139
    "voice_method": "POST",
    139140
    "voice_status_callback_method": "POST",
    140141
    "voice_status_callback_url": null,
    141-
    "voice_url": "https://dundermifflin.example.com/twilio/app.php"
    142+
    "voice_url": "https://dundermifflin.example.com/twilio/app.php",
    143+
    "trunk_sid": null
    142144
    }
    143145
    '''
    144146
    ))
    @@ -186,7 +188,8 @@ def test_fetch_response(self):
    186188
    "voice_method": "POST",
    187189
    "voice_status_callback_method": "POST",
    188190
    "voice_status_callback_url": null,
    189-
    "voice_url": "https://dundermifflin.example.com/twilio/app.php"
    191+
    "voice_url": "https://dundermifflin.example.com/twilio/app.php",
    192+
    "trunk_sid": "TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
    190193
    }
    191194
    '''
    192195
    ))
    @@ -234,7 +237,8 @@ def test_update_response(self):
    234237
    "voice_method": "POST",
    235238
    "voice_status_callback_method": "POST",
    236239
    "voice_status_callback_url": null,
    237-
    "voice_url": "https://dundermifflin.example.com/twilio/app.php"
    240+
    "voice_url": "https://dundermifflin.example.com/twilio/app.php",
    241+
    "trunk_sid": "TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
    238242
    }
    239243
    '''
    240244
    ))

    tests/integration/proxy/v1/service/session/participant/test_message_interaction.py

    Lines changed: 2 additions & 2 deletions
    Original file line numberDiff line numberDiff line change
    @@ -34,7 +34,7 @@ def test_create_response(self):
    3434
    '''
    3535
    {
    3636
    "service_sid": "KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    37-
    "data": "body",
    37+
    "data": "{\\"body\\":\\"some message\\"}",
    3838
    "date_created": "2015-07-30T20:00:00Z",
    3939
    "date_updated": "2015-07-30T20:00:00Z",
    4040
    "participant_sid": "KPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    @@ -84,7 +84,7 @@ def test_fetch_response(self):
    8484
    '''
    8585
    {
    8686
    "service_sid": "KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    87-
    "data": "data",
    87+
    "data": "{\\"body\\":\\"some message\\"}",
    8888
    "date_created": "2015-07-30T20:00:00Z",
    8989
    "date_updated": "2015-07-30T20:00:00Z",
    9090
    "participant_sid": "KPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",

    tests/integration/proxy/v1/service/session/test_interaction.py

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -33,7 +33,7 @@ def test_fetch_response(self):
    3333
    '''
    3434
    {
    3535
    "service_sid": "KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    36-
    "data": "data",
    36+
    "data": "{\\"body\\":\\"some message\\"}",
    3737
    "date_created": "2015-07-30T20:00:00Z",
    3838
    "date_updated": "2015-07-30T20:00:00Z",
    3939
    "inbound_participant_sid": "KPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",

    tests/integration/proxy/v1/service/session/test_participant.py

    Lines changed: 64 additions & 4 deletions
    Original file line numberDiff line numberDiff line change
    @@ -36,8 +36,8 @@ def test_fetch_response(self):
    3636
    "session_sid": "KCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    3737
    "service_sid": "KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    3838
    "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    39-
    "identifier": "identifier",
    40-
    "proxy_identifier": "proxy_identifier",
    39+
    "identifier": "+14155551212",
    40+
    "proxy_identifier": "+14155559999",
    4141
    "proxy_identifier_sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    4242
    "friendly_name": "friendly_name",
    4343
    "date_deleted": "2015-07-30T20:00:00Z",
    @@ -57,6 +57,36 @@ def test_fetch_response(self):
    5757

    5858
    self.assertIsNotNone(actual)
    5959

    60+
    def test_fetch_channel_response(self):
    61+
    self.holodeck.mock(Response(
    62+
    200,
    63+
    '''
    64+
    {
    65+
    "sid": "KPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    66+
    "session_sid": "KCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    67+
    "service_sid": "KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    68+
    "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    69+
    "identifier": "messenger:14155551212",
    70+
    "proxy_identifier": "messenger:14155559999",
    71+
    "proxy_identifier_sid": "XEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    72+
    "friendly_name": "a facebook user",
    73+
    "date_deleted": "2015-07-30T20:00:00Z",
    74+
    "date_updated": "2015-07-30T20:00:00Z",
    75+
    "date_created": "2015-07-30T20:00:00Z",
    76+
    "url": "https://proxy.twilio.com/v1/Services/KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Sessions/KCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/KPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    77+
    "links": {
    78+
    "message_interactions": "https://proxy.twilio.com/v1/Services/KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Sessions/KCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/KPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/MessageInteractions"
    79+
    }
    80+
    }
    81+
    '''
    82+
    ))
    83+
    84+
    actual = self.client.proxy.v1.services(sid="KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
    85+
    .sessions(sid="KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
    86+
    .participants(sid="KPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").fetch()
    87+
    88+
    self.assertIsNotNone(actual)
    89+
    6090
    def test_list_request(self):
    6191
    self.holodeck.mock(Response(500, ''))
    6292

    @@ -120,8 +150,8 @@ def test_create_response(self):
    120150
    "session_sid": "KCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    121151
    "service_sid": "KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    122152
    "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    123-
    "identifier": "identifier",
    124-
    "proxy_identifier": "proxy_identifier",
    153+
    "identifier": "+14155551212",
    154+
    "proxy_identifier": "+14155559999",
    125155
    "proxy_identifier_sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    126156
    "friendly_name": "friendly_name",
    127157
    "date_deleted": "2015-07-30T20:00:00Z",
    @@ -141,6 +171,36 @@ def test_create_response(self):
    141171

    142172
    self.assertIsNotNone(actual)
    143173

    174+
    def test_create_channel_response(self):
    175+
    self.holodeck.mock(Response(
    176+
    201,
    177+
    '''
    178+
    {
    179+
    "sid": "KPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    180+
    "session_sid": "KCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    181+
    "service_sid": "KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    182+
    "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    183+
    "identifier": "messenger:123456",
    184+
    "proxy_identifier": "messenger:987654532",
    185+
    "proxy_identifier_sid": "XEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    186+
    "friendly_name": "a facebook user",
    187+
    "date_deleted": "2015-07-30T20:00:00Z",
    188+
    "date_updated": "2015-07-30T20:00:00Z",
    189+
    "date_created": "2015-07-30T20:00:00Z",
    190+
    "url": "https://proxy.twilio.com/v1/Services/KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Sessions/KCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/KPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    191+
    "links": {
    192+
    "message_interactions": "https://proxy.twilio.com/v1/Services/KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Sessions/KCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/KPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/MessageInteractions"
    193+
    }
    194+
    }
    195+
    '''
    196+
    ))
    197+
    198+
    actual = self.client.proxy.v1.services(sid="KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
    199+
    .sessions(sid="KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
    200+
    .participants.create(identifier="identifier")
    201+
    202+
    self.assertIsNotNone(actual)
    203+
    144204
    def test_delete_request(self):
    145205
    self.holodeck.mock(Response(500, ''))
    146206

    tests/integration/proxy/v1/service/test_phone_number.py

    Lines changed: 2 additions & 2 deletions
    Original file line numberDiff line numberDiff line change
    @@ -36,7 +36,7 @@ def test_create_response(self):
    3636
    "service_sid": "KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    3737
    "date_created": "2015-07-30T20:00:00Z",
    3838
    "date_updated": "2015-07-30T20:00:00Z",
    39-
    "phone_number": "+987654321",
    39+
    "phone_number": "+1987654321",
    4040
    "friendly_name": "Friendly Name",
    4141
    "iso_country": "US",
    4242
    "capabilities": {
    @@ -110,7 +110,7 @@ def test_read_full_response(self):
    110110
    "sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    111111
    "date_created": "2015-07-30T20:00:00Z",
    112112
    "date_updated": "2015-07-30T20:00:00Z",
    113-
    "phone_number": "+987654321",
    113+
    "phone_number": "+1987654321",
    114114
    "friendly_name": "Friendly Name",
    115115
    "iso_country": "US",
    116116
    "capabilities": {

    tests/integration/proxy/v1/service/test_session.py

    Lines changed: 8 additions & 8 deletions
    Original file line numberDiff line numberDiff line change
    @@ -32,14 +32,14 @@ def test_fetch_response(self):
    3232
    '''
    3333
    {
    3434
    "service_sid": "KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    35-
    "status": "in-progress",
    36-
    "unique_name": "unique_name",
    35+
    "status": "open",
    36+
    "unique_name": "Order #1234",
    3737
    "date_started": "2015-07-30T20:00:00Z",
    3838
    "date_ended": "2015-07-30T20:00:00Z",
    3939
    "date_last_interaction": "2015-07-30T20:00:00Z",
    4040
    "date_expiry": "2015-07-30T20:00:00Z",
    4141
    "ttl": 3600,
    42-
    "mode": "message-only",
    42+
    "mode": "voice-and-message",
    4343
    "closed_reason": "",
    4444
    "sid": "KCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    4545
    "date_updated": "2015-07-30T20:00:00Z",
    @@ -113,14 +113,14 @@ def test_create_response(self):
    113113
    '''
    114114
    {
    115115
    "service_sid": "KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    116-
    "status": "in-progress",
    117-
    "unique_name": "unique_name",
    116+
    "status": "open",
    117+
    "unique_name": "Order #1234",
    118118
    "date_started": "2015-07-30T20:00:00Z",
    119119
    "date_ended": "2015-07-30T20:00:00Z",
    120120
    "date_last_interaction": "2015-07-30T20:00:00Z",
    121121
    "date_expiry": "2015-07-30T20:00:00Z",
    122122
    "ttl": 3600,
    123-
    "mode": "message-only",
    123+
    "mode": "voice-and-message",
    124124
    "closed_reason": "",
    125125
    "sid": "KCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    126126
    "date_updated": "2015-07-30T20:00:00Z",
    @@ -182,13 +182,13 @@ def test_update_response(self):
    182182
    {
    183183
    "service_sid": "KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    184184
    "status": "in-progress",
    185-
    "unique_name": "unique_name",
    185+
    "unique_name": "Order #1234",
    186186
    "date_started": "2015-07-30T20:00:00Z",
    187187
    "date_ended": "2015-07-30T20:00:00Z",
    188188
    "date_last_interaction": "2015-07-30T20:00:00Z",
    189189
    "date_expiry": "2015-07-30T20:00:00Z",
    190190
    "ttl": 3600,
    191-
    "mode": "message-only",
    191+
    "mode": "voice-and-message",
    192192
    "closed_reason": "",
    193193
    "sid": "KCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    194194
    "date_updated": "2015-07-30T20:00:00Z",

    tests/integration/proxy/v1/test_service.py

    Lines changed: 3 additions & 3 deletions
    Original file line numberDiff line numberDiff line change
    @@ -33,7 +33,7 @@ def test_fetch_response(self):
    3333
    "sid": "KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    3434
    "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    3535
    "chat_instance_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    36-
    "unique_name": "unique_name",
    36+
    "unique_name": "My Service",
    3737
    "default_ttl": 3600,
    3838
    "callback_url": "http://www.example.com",
    3939
    "geo_match_level": "country",
    @@ -112,7 +112,7 @@ def test_create_response(self):
    112112
    "sid": "KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    113113
    "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    114114
    "chat_instance_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    115-
    "unique_name": "unique_name",
    115+
    "unique_name": "My Service",
    116116
    "default_ttl": 3600,
    117117
    "callback_url": "http://www.example.com",
    118118
    "geo_match_level": "country",
    @@ -175,7 +175,7 @@ def test_update_response(self):
    175175
    "sid": "KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    176176
    "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    177177
    "chat_instance_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    178-
    "unique_name": "unique_name",
    178+
    "unique_name": "My Service",
    179179
    "default_ttl": 3600,
    180180
    "callback_url": "http://www.example.com",
    181181
    "geo_match_level": "country",

    tests/integration/trunking/v1/test_trunk.py

    Lines changed: 78 additions & 0 deletions
    10000
    Original file line numberDiff line numberDiff line change
    @@ -44,6 +44,7 @@ def test_fetch_response(self):
    4444
    },
    4545
    "auth_type": "",
    4646
    "auth_type_set": [],
    47+
    "origination_from_domain_sid": "SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    4748
    "date_created": "2015-01-02T11:23:45Z",
    4849
    "date_updated": "2015-01-02T11:23:45Z",
    4950
    "url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    @@ -112,6 +113,7 @@ def test_create_response(self):
    112113
    },
    113114
    "auth_type": "",
    114115
    "auth_type_set": [],
    116+
    "origination_from_domain_sid": "SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    115117
    "date_created": "2015-01-02T11:23:45Z",
    116118
    "date_updated": "2015-01-02T11:23:45Z",
    117119
    "url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    @@ -170,6 +172,7 @@ def test_read_full_response(self):
    170172
    },
    171173
    "auth_type": "",
    172174
    "auth_type_set": [],
    175+
    "origination_from_domain_sid": "SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    173176
    "date_created": "2015-01-02T11:23:45Z",
    174177
    "date_updated": "2015-01-02T11:23:45Z",
    175178
    "url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    @@ -242,6 +245,81 @@ def test_update_response(self):
    242245
    },
    243246
    "auth_type": "",
    244247
    "auth_type_set": [],
    248+
    "origination_from_domain_sid": null,
    249+
    "date_created": "2015-01-02T11:23:45Z",
    250+
    "date_updated": "2015-01-02T11:23:45Z",
    251+
    "url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    252+
    "links": {
    253+
    "origination_urls": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls",
    254+
    "credential_lists": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialLists",
    255+
    "ip_access_control_lists": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlLists",
    256+
    "phone_numbers": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers"
    257+
    }
    258+
    }
    259+
    '''
    260+
    ))
    261+
    262+
    actual = self.client.trunking.v1.trunks(sid="TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").update()
    263+
    264+
    self.assertIsNotNone(actual)
    265+
    266+
    def test_update_set_from_domain_response(self):
    267+
    self.holodeck.mock(Response(
    268+
    200,
    269+
    '''
    270+
    {
    271+
    "sid": "TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    272+
    "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    273+
    "domain_name": "test.pstn.twilio.com",
    274+
    "disaster_recovery_method": "GET",
    275+
    "disaster_recovery_url": "http://updated-recovery.com",
    276+
    "friendly_name": "updated_name",
    277+
    "secure": true,
    278+
    "cnam_lookup_enabled": true,
    279+
    "recording": {
    280+
    "mode": "do-not-record",
    281+
    "trim": "do-not-trim"
    282+
    },
    283+
    "auth_type": "",
    284+
    "auth_type_set": [],
    285+
    "origination_from_domain_sid": "SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    286+
    "date_created": "2015-01-02T11:23:45Z",
    287+
    "date_updated": "2015-01-02T11:23:45Z",
    288+
    "url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    289+
    "links": {
    290+
    "origination_urls": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls",
    291+
    "credential_lists": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialLists",
    292+
    "ip_access_control_lists": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlLists",
    293+
    "phone_numbers": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers"
    294+
    }
    295+
    }
    296+
    '''
    297+
    ))
    298+
    299+
    actual = self.client.trunking.v1.trunks(sid="TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").update()
    300+
    301+
    self.assertIsNotNone(actual)
    302+
    303+
    def test_update_clear_from_domain_response(self):
    304+
    self.holodeck.mock(Response(
    305+
    200,
    306+
    '''
    307+
    {
    308+
    "sid": "TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    309+
    "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    310+
    "domain_name": "test.pstn.twilio.com",
    311+
    "disaster_recovery_method": "GET",
    312+
    "disaster_recovery_url": "http://updated-recovery.com",
    313+
    "friendly_name": "updated_name",
    314+
    "secure": true,
    315+
    "cnam_lookup_enabled": true,
    316+
    "recording": {
    317+
    "mode": "do-not-record",
    318+
    "trim": "do-not-trim"
    319+
    },
    320+
    "auth_type": "",
    321+
    "auth_type_set": [],
    322+
    "origination_from_domain_sid": null,
    245323
    "date_created": "2015-01-02T11:23:45Z",
    246324
    "date_updated": "2015-01-02T11:23:45Z",
    247325
    "url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",

    0 commit comments

    Comments
     (0)
    0