8000 Add rtypes for resources · DropByDrop/twilio-python@93dc143 · GitHub
[go: up one dir, main page]

Skip to content

Commit 93dc143

Browse files
committed
Add rtypes for resources
1 parent 4d612cc commit 93dc143

File tree

163 files changed

+3811
-394
lines changed
  • incoming_phone_number
  • message
  • queue
  • recording
  • sip
  • usage
  • chat
  • ip_messaging
  • lookups
  • messaging
  • monitor
  • notify
  • preview
  • pricing
  • taskrouter
  • trunking
  • video
  • Some content is hidden

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

    163 files changed

    +3811
    -394
    lines changed

    tests/integration/api/v2010/account/test_recording.py

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -109,8 +109,8 @@ def test_read_full_response(self):
    109109
    "date_created": "Wed, 22 Aug 2012 20:58:45 +0000",
    110110
    "date_updated": "Wed, 22 Aug 2012 20:58:45 +0000",
    111111
    "duration": null,
    112-
    "price": "0.04",
    113112
    "sid": "REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    113+
    "price": "0.04",
    114114
    "price_unit": "USD",
    115115
    "status": "completed",
    116116
    "channels": 1,

    tests/integration/chat/v1/service/channel/test_message.py

    Lines changed: 3 additions & 3 deletions
    Original file line numberDiff line numberDiff line change
    @@ -37,11 +37,11 @@ def test_fetch_response(self):
    3737
    "service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    3838
    "to": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    3939
    "channel_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    40-
    "attributes": "{}",
    4140
    "date_created": "2016-03-24T20:37:57Z",
    4241
    "date_updated": "2016-03-24T20:37:57Z",
    4342
    "was_edited": false,
    4443
    "from": "system",
    44+
    "attributes": "{}",
    4545
    "body": "Hello",
    4646
    "index": 0,
    4747
    "url": "https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
    @@ -111,11 +111,11 @@ def test_create_with_attributes_response(self):
    111111
    "service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    112112
    "to": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    113113
    "channel_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    114-
    "attributes": "{}",
    115114
    "date_created": "2016-03-24T20:37:57Z",
    116115
    "date_updated": "2016-03-24T20:37:57Z",
    117116
    "was_edited": false,
    118117
    "from": "system",
    118+
    "attributes": "{}",
    119119
    "body": "Hello",
    120120
    "index": 0,
    121121
    "url": "https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
    @@ -163,11 +163,11 @@ def test_read_full_response(self):
    163163
    "service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    164164
    "to": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    165165
    "channel_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    166-
    "attributes": "{}",
    167166
    "date_created": "2016-03-24T20:37:57Z",
    168167
    "date_updated": "2016-03-24T20:37:57Z",
    169168
    "was_edited": false,
    170169
    "from": "system",
    170+
    "attributes": "{}",
    171171
    "body": "Hello",
    172172
    "index": 0,
    173173
    "url": "https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"

    tests/integration/chat/v1/service/test_user.py

    Lines changed: 4 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -40,6 +40,7 @@ def test_fetch_response(self):
    4040
    "is_online": true,
    4141
    "is_notifiable": null,
    4242
    "friendly_name": null,
    43+
    "joined_channels_count": 0,
    4344
    "date_created": "2016-03-24T21:05:19Z",
    4445
    "date_updated": "2016-03-24T21:05:19Z",
    4546
    "links": {
    @@ -109,6 +110,7 @@ def test_create_response(self):
    109110
    "is_online": true,
    110111
    "is_notifiable": null,
    111112
    "friendly_name": null,
    113+
    "joined_channels_count": 0,
    112114
    "date_created": "2016-03-24T21:05:19Z",
    113115
    "date_updated": "2016-03-24T21:05:19Z",
    114116
    "links": {
    @@ -163,6 +165,7 @@ def test_read_full_response(self):
    163165
    "friendly_name": null,
    164166
    "date_created": "2016-03-24T21:05:19Z",
    165167
    "date_updated": "2016-03-24T21:05:19Z",
    168+
    "joined_channels_count": 0,
    166169
    "links": {
    167170
    "user_channels": "https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Users/USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels"
    168171
    },
    @@ -228,6 +231,7 @@ def test_update_response(self):
    228231
    "is_online": true,
    229232
    "is_notifiable": null,
    230233
    "friendly_name": null,
    234+
    "joined_channels_count": 0,
    231235
    "date_created": "2016-03-24T21:05:19Z",
    232236
    "date_updated": "2016-03-24T21:05:19Z",
    233237
    "links": {

    tests/integration/chat/v1/test_service.py

    Lines changed: 20 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -38,6 +38,11 @@ def test_fetch_response(self):
    3838
    "default_channel_role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    3939
    "default_service_role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    4040
    "friendly_name": "friendly_name",
    41+
    "limits": {
    42+
    "actions_per_second": 20,
    43+
    "channel_members": 100,
    44+
    "user_channels": 250
    45+
    },
    4146
    "links": {},
    4247
    "notifications": {},
    4348
    "post_webhook_url": "post_webhook_url",
    @@ -110,6 +115,11 @@ def test_create_response(self):
    110115
    "default_channel_role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    111116
    "default_service_role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    112117
    "friendly_name": "friendly_name",
    118+
    "limits": {
    119+
    "actions_per_second": 20,
    120+
    "channel_members": 100,
    121+
    "user_channels": 250
    122+
    },
    113123
    "links": {},
    114124
    "notifications": {},
    115125
    "post_webhook_url": "post_webhook_url",
    @@ -190,6 +200,11 @@ def test_read_full_response(self):
    190200
    "default_channel_role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    191201
    "default_service_role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    192202
    "friendly_name": "friendly_name",
    203+
    "limits": {
    204+
    "actions_per_second": 20,
    205+
    "channel_members": 100,
    206+
    "user_channels": 250
    207+
    },
    193208
    "links": {},
    194209
    "notifications": {},
    195210
    "post_webhook_url": "post_webhook_url",
    @@ -238,6 +253,11 @@ def test_update_response(self):
    238253
    "default_channel_role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    239254
    "default_service_role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    240255
    "friendly_name": "friendly_name",
    256+
    "limits": {
    257+
    "actions_per_second": 20,
    258+
    "channel_members": 500,
    259+
    "user_channels": 600
    260+
    },
    241261
    "links": {},
    242262
    "notifications": {},
    243263
    "post_webhook_url": "post_webhook_url",

    tests/integration/ip_messaging/v1/service/channel/test_message.py

    Lines changed: 3 additions & 3 deletions
    Original file line numberDiff line numberDiff line change
    @@ -37,11 +37,11 @@ def test_fetch_response(self):
    3737
    "service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    3838
    "to": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    3939
    "channel_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    40-
    "attributes": "{}",
    4140
    "date_created": "2016-03-24T20:37:57Z",
    4241
    "date_updated": "2016-03-24T20:37:57Z",
    4342
    "was_edited": false,
    4443
    "from": "system",
    44+
    "attributes": "{}",
    4545
    "body": "Hello",
    4646
    "index": 0,
    4747
    "url": "https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
    @@ -111,11 +111,11 @@ def test_create_with_attributes_response(self):
    111111
    "service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    112112
    "to": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    113113
    "channel_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    114-
    "attributes": "{}",
    115114
    "date_created": "2016-03-24T20:37:57Z",
    116115
    "date_updated": "2016-03-24T20:37:57Z",
    117116
    "was_edited": false,
    118117
    "from": "system",
    118+
    "attributes": "{}",
    119119
    "body": "Hello",
    120120
    "index": 0,
    121121
    "url": "https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
    @@ -163,11 +163,11 @@ def test_read_full_response(self):
    163163
    "service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    164164
    "to": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    165165
    "channel_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    166-
    "attributes": "{}",
    167166
    "date_created": "2016-03-24T20:37:57Z",
    168167
    "date_updated": "2016-03-24T20:37:57Z",
    169168
    "was_edited": false,
    170169
    "from": "system",
    170+
    "attributes": "{}",
    171171
    "body": "Hello",
    172172
    "index": 0,
    173173
    "url": "https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"

    tests/integration/ip_messaging/v1/service/test_user.py

    Lines changed: 4 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -40,6 +40,7 @@ def test_fetch_response(self):
    4040
    "is_online": true,
    4141
    "is_notifiable": null,
    4242
    "friendly_name": null,
    43+
    "joined_channels_count": 0,
    4344
    "date_created": "2016-03-24T21:05:19Z",
    4445
    "date_updated": "2016-03-24T21:05:19Z",
    4546
    "links": {
    @@ -109,6 +110,7 @@ def test_create_response(self):
    109110
    "is_online": true,
    110111
    "is_notifiable": null,
    111112
    "friendly_name": null,
    113+
    "joined_channels_count": 0,
    112114
    "date_created": "2016-03-24T21:05:19Z",
    113115
    "date_updated": "2016-03-24T21:05:19Z",
    114116
    "links": {
    @@ -163,6 +165,7 @@ def test_read_full_response(self):
    163165
    "friendly_name": null,
    164166
    "date_created": "2016-03-24T21:05:19Z",
    165167
    "date_updated": "2016-03-24T21:05:19Z",
    168+
    "joined_channels_count": 0,
    166169
    "links": {
    167170
    "user_channels": "https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Users/USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels"
    168171
    },
    @@ -228,6 +231,7 @@ def test_update_response(self):
    228231
    "is_online": true,
    229232
    "is_notifiable": null,
    230233
    "friendly_name": null,
    234+
    "joined_channels_count": 0,
    231235
    "date_created": "2016-03-24T21:05:19Z",
    232236
    "date_updated": "2016-03-24T21:05:19Z",
    233237
    "links": {

    tests/integration/ip_messaging/v1/test_service.py

    Lines changed: 20 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -38,6 +38,11 @@ def test_fetch_response(self):
    3838
    "default_channel_role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    3939
    "default_service_role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    4040
    "friendly_name": "friendly_name",
    41+
    "limits": {
    42+
    "actions_per_second": 20,
    43+
    "channel_members": 100,
    44+
    "user_channels": 250
    45+
    },
    4146
    "links": {},
    4247
    "notifications": {},
    4348
    "post_webhook_url": "post_webhook_url",
    @@ -110,6 +115,11 @@ def test_create_response(self):
    110115
    "default_channel_role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    111116
    "default_service_role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    112117
    "friendly_name": "friendly_name",
    118+
    "limits": {
    119+
    "actions_per_second": 20,
    120+
    "channel_members": 100,
    121+
    "user_channels": 250
    122+
    },
    113123
    "links": {},
    114124
    "notifications": {},
    115125
    "post_webhook_url": "post_webhook_url",
    @@ -190,6 +200,11 @@ def test_read_full_response(self):
    190200
    "default_channel_role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    191201
    "default_service_role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    192202
    "friendly_name": "friendly_name",
    203+
    "limits": {
    204+
    "actions_per_second": 20,
    205+
    "channel_members": 100,
    206+
    "user_channels": 250
    207+
    },
    193208
    "links": {},
    194209
    "notifications": {},
    195210
    "post_webhook_url": "post_webhook_url",
    @@ -238,6 +253,11 @@ def test_update_response(self):
    238253
    "default_channel_role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    239254
    "default_service_role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    240255
    "friendly_name": "friendly_name",
    256+
    "limits": {
    257+
    "actions_per_second": 20,
    258+
    "channel_members": 500,
    259+
    "user_channels": 600
    260+
    },
    241261
    "links": {},
    242262
    "notifications": {},
    243263
    "post_webhook_url": "post_webhook_url",
    Lines changed: 8 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -0,0 +1,8 @@
    1+
    # coding=utf-8
    2+
    """
    3+
    This code was generated by
    4+
    \ / _ _ _| _ _
    5+
    | (_)\/(_)(_|\/| |(/_ v1.0.0
    6+
    / /
    7+
    """
    8+
    Lines changed: 8 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -0,0 +1,8 @@
    1+
    # coding=utf-8
    2+
    """
    3+
    This code was generated by
    4+
    \ / _ _ _| _ _
    5+
    | (_)\/(_)(_|\/| |(/_ v1.0.0
    6+
    / /
    7+
    """
    8+
    Lines changed: 8 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -0,0 +1,8 @@
    1+
    # coding=utf-8
    2+
    """
    3+
    This code was generated by
    4+
    \ / _ _ _| _ _
    5+
    | (_)\/(_)(_|\/| |(/_ v1.0.0
    6+
    / /
    7+
    """
    8+

    0 commit comments

    Comments
     (0)
    0