twilio-ruby 5.25.4 → 5.26.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (220) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -3
  3. data/.travis.yml +3 -0
  4. data/CHANGES.md +24 -0
  5. data/README.md +22 -14
  6. data/lib/twilio-ruby/http/http_client.rb +4 -3
  7. data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +2 -2
  8. data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +2 -2
  9. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +2 -2
  10. data/lib/twilio-ruby/rest/api/v2010/account/application.rb +2 -2
  11. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +10 -4
  12. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +2 -2
  13. data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +2 -2
  14. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +2 -2
  15. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +4 -4
  16. data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +2 -2
  17. data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +2 -2
  18. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +2 -2
  19. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +2 -2
  20. data/lib/twilio-ruby/rest/api/v2010/account/key.rb +2 -2
  21. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +2 -2
  22. data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +2 -2
  23. data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +2 -2
  24. data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +2 -2
  25. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +2 -2
  26. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +2 -2
  27. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +2 -2
  28. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +2 -2
  29. data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +2 -2
  30. data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +2 -2
  31. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +2 -2
  32. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +2 -2
  33. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +2 -2
  34. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb +2 -2
  35. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping.rb +2 -2
  36. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping.rb +2 -2
  37. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +2 -2
  38. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +2 -2
  39. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +2 -2
  40. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +2 -2
  41. data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +2 -2
  42. data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +2 -2
  43. data/lib/twilio-ruby/rest/authy/v1/service.rb +2 -2
  44. data/lib/twilio-ruby/rest/authy/v1/service/entity.rb +2 -2
  45. data/lib/twilio-ruby/rest/authy/v1/service/entity/factor.rb +2 -2
  46. data/lib/twilio-ruby/rest/authy/v1/service/entity/factor/challenge.rb +2 -2
  47. data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +2 -2
  48. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +2 -2
  49. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +2 -2
  50. data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +2 -2
  51. data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +2 -2
  52. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +2 -2
  53. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +2 -2
  54. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +2 -2
  55. data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +2 -2
  56. data/lib/twilio-ruby/rest/chat/v1/credential.rb +2 -2
  57. data/lib/twilio-ruby/rest/chat/v1/service.rb +2 -2
  58. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +2 -2
  59. data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +2 -2
  60. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +2 -2
  61. data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +2 -2
  62. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +2 -2
  63. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +2 -2
  64. data/lib/twilio-ruby/rest/chat/v2.rb +2 -4
  65. data/lib/twilio-ruby/rest/chat/v2/credential.rb +12 -14
  66. data/lib/twilio-ruby/rest/chat/v2/service.rb +35 -43
  67. data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +17 -19
  68. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +28 -24
  69. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +17 -16
  70. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +43 -44
  71. data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +38 -37
  72. data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +25 -26
  73. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +19 -17
  74. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +17 -17
  75. data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +25 -27
  76. data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +8 -5
  77. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +32 -6
  78. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +30 -6
  79. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +27 -6
  80. data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +2 -2
  81. data/lib/twilio-ruby/rest/fax/v1/fax.rb +2 -2
  82. data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +2 -2
  83. data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +2 -2
  84. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +14 -0
  85. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +2 -2
  86. data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +2 -2
  87. data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +2 -2
  88. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +2 -2
  89. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +2 -2
  90. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +2 -2
  91. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +2 -2
  92. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +2 -2
  93. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +2 -2
  94. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +2 -2
  95. data/lib/twilio-ruby/rest/ip_messaging/v2.rb +2 -4
  96. data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +12 -14
  97. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +35 -43
  98. data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +17 -19
  99. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +28 -24
  100. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +17 -16
  101. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +43 -44
  102. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +38 -37
  103. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +25 -26
  104. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +19 -17
  105. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +17 -17
  106. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +25 -27
  107. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +8 -5
  108. data/lib/twilio-ruby/rest/messaging/v1/service.rb +2 -2
  109. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +2 -2
  110. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +2 -2
  111. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +2 -2
  112. data/lib/twilio-ruby/rest/messaging/v1/session.rb +2 -2
  113. data/lib/twilio-ruby/rest/messaging/v1/session/message.rb +2 -2
  114. data/lib/twilio-ruby/rest/messaging/v1/session/participant.rb +2 -2
  115. data/lib/twilio-ruby/rest/messaging/v1/session/webhook.rb +2 -2
  116. data/lib/twilio-ruby/rest/monitor/v1/alert.rb +2 -2
  117. data/lib/twilio-ruby/rest/notify/v1/credential.rb +2 -2
  118. data/lib/twilio-ruby/rest/notify/v1/service.rb +2 -2
  119. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +2 -2
  120. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +2 -2
  121. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +2 -2
  122. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +2 -2
  123. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +2 -2
  124. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +2 -2
  125. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +2 -2
  126. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +2 -2
  127. data/lib/twilio-ruby/rest/preview/sync/service.rb +2 -2
  128. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +2 -2
  129. data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +2 -2
  130. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +2 -2
  131. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +2 -2
  132. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +2 -2
  133. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +2 -2
  134. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +2 -2
  135. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +2 -2
  136. data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +10 -2
  137. data/lib/twilio-ruby/rest/preview/understand/assistant.rb +2 -2
  138. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +2 -2
  139. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +2 -2
  140. data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +2 -2
  141. data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +2 -2
  142. data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +2 -2
  143. data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +2 -2
  144. data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +2 -2
  145. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +2 -2
  146. data/lib/twilio-ruby/rest/proxy/v1/service.rb +2 -2
  147. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +2 -2
  148. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +2 -2
  149. data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +2 -2
  150. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +2 -2
  151. data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +2 -2
  152. data/lib/twilio-ruby/rest/serverless/v1/service.rb +2 -2
  153. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +2 -2
  154. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +2 -2
  155. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +2 -2
  156. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +2 -2
  157. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +2 -2
  158. data/lib/twilio-ruby/rest/studio.rb +2 -1
  159. data/lib/twilio-ruby/rest/studio/v1.rb +1 -1
  160. data/lib/twilio-ruby/rest/studio/v1/flow.rb +13 -13
  161. data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +25 -24
  162. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +11 -11
  163. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +20 -20
  164. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +15 -17
  165. data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +44 -38
  166. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +12 -11
  167. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +21 -20
  168. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +18 -17
  169. data/lib/twilio-ruby/rest/sync.rb +2 -1
  170. data/lib/twilio-ruby/rest/sync/v1.rb +1 -1
  171. data/lib/twilio-ruby/rest/sync/v1/service.rb +90 -93
  172. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +46 -33
  173. data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +36 -38
  174. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +44 -31
  175. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +94 -76
  176. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +37 -38
  177. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +45 -33
  178. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +98 -81
  179. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +35 -38
  180. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +39 -28
  181. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +14 -12
  182. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +2 -2
  183. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +2 -2
  184. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +2 -2
  185. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +2 -2
  186. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +2 -2
  187. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +2 -2
  188. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +2 -2
  189. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +2 -2
  190. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +2 -2
  191. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +2 -2
  192. data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +2 -2
  193. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +2 -2
  194. data/lib/twilio-ruby/rest/trunking/v1/trunk/terminating_sip_domain.rb +2 -2
  195. data/lib/twilio-ruby/rest/verify/v2/service.rb +2 -2
  196. data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +2 -2
  197. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +3 -3
  198. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +2 -2
  199. data/lib/twilio-ruby/rest/video/v1/composition.rb +2 -2
  200. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +2 -2
  201. data/lib/twilio-ruby/rest/video/v1/recording.rb +2 -2
  202. data/lib/twilio-ruby/rest/video/v1/room/recording.rb +2 -2
  203. data/lib/twilio-ruby/rest/wireless.rb +3 -3
  204. data/lib/twilio-ruby/rest/wireless/v1.rb +3 -6
  205. data/lib/twilio-ruby/rest/wireless/v1/command.rb +54 -52
  206. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +64 -65
  207. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +147 -141
  208. data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +34 -28
  209. data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +32 -32
  210. data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +19 -19
  211. data/lib/twilio-ruby/version.rb +1 -1
  212. data/spec/integration/api/v2010/account/call_spec.rb +45 -0
  213. data/spec/integration/api/v2010/account/message_spec.rb +37 -0
  214. data/spec/integration/conversations/v1/conversation/message_spec.rb +5 -0
  215. data/spec/integration/conversations/v1/conversation/participant_spec.rb +8 -10
  216. data/spec/integration/conversations/v1/conversation_spec.rb +4 -0
  217. data/spec/integration/flex_api/v1/configuration_spec.rb +24 -0
  218. data/spec/integration/preview/trusted_comms/branded_call_spec.rb +1 -0
  219. data/spec/integration/verify/v2/service/verification_spec.rb +1 -1
  220. metadata +2 -2
@@ -17,13 +17,13 @@ module Twilio
17
17
  # Initialize the UserBindingList
18
18
  # @param [Version] version Version that contains the resource
19
19
  # @param [String] service_sid The SID of the
20
- # [Service](https://www.twilio.com/docs/chat/rest/services) the resource is
21
- # associated with.
20
+ # [Service](https://www.twilio.com/docs/chat/rest/services) the User Binding
21
+ # resource is associated with.
22
22
  # @param [String] user_sid The SID of the
23
- # [User](https://www.twilio.com/docs/chat/rest/users) for the binding. See [push
24
- # notification
23
+ # [User](https://www.twilio.com/docs/chat/rest/users) with the User Binding
24
+ # resource. See [push notification
25
25
  # configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
26
- # for more information.
26
+ # for more info.
27
27
  # @return [UserBindingList] UserBindingList
28
28
  def initialize(version, service_sid: nil, user_sid: nil)
29
29
  super(version)
@@ -41,7 +41,7 @@ module Twilio
41
41
  # User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push
42
42
  # notification
43
43
  # configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
44
- # for more information.
44
+ # for more info.
45
45
  # @param [Integer] limit Upper limit for the number of records to return. stream()
46
46
  # guarantees to never return more than limit. Default is no limit
47
47
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -61,7 +61,7 @@ module Twilio
61
61
  # User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push
62
62
  # notification
63
63
  # configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
64
- # for more information.
64
+ # for more info.
65
65
  # @param [Integer] limit Upper limit for the number of records to return. stream()
66
66
  # guarantees to never return more than limit. Default is no limit.
67
67
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -98,7 +98,7 @@ module Twilio
98
98
  # User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push
99
99
  # notification
100
100
  # configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
101
- # for more information.
101
+ # for more info.
102
102
  # @param [String] page_token PageToken provided by the API
103
103
  # @param [Integer] page_number Page Number, this value is simply for client state
104
104
  # @param [Integer] page_size Number of records to return, defaults to 50
@@ -177,15 +177,14 @@ module Twilio
177
177
  # Initialize the UserBindingContext
178
178
  # @param [Version] version Version that contains the resource
179
179
  # @param [String] service_sid The SID of the
180
- # [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the resource
181
- # from.
180
+ # [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the User
181
+ # Binding resource from.
182
182
  # @param [String] user_sid The SID of the
183
- # [User](https://www.twilio.com/docs/chat/rest/users) for the binding. See [push
184
- # notification
183
+ # [User](https://www.twilio.com/docs/chat/rest/users) with the User Binding
184
+ # resource to fetch. See [push notification
185
185
  # configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
186
- # for more information.
187
- # @param [String] sid The Twilio-provided string that uniquely identifies the User
188
- # Binding resource to fetch.
186
+ # for more info.
187
+ # @param [String] sid The SID of the User Binding resource to fetch.
189
188
  # @return [UserBindingContext] UserBindingContext
190
189
  def initialize(version, service_sid, user_sid, sid)
191
190
  super(version)
@@ -218,7 +217,7 @@ module Twilio
218
217
 
219
218
  ##
220
219
  # Deletes the UserBindingInstance
221
- # @return [Boolean] true if delete succeeds, true otherwise
220
+ # @return [Boolean] true if delete succeeds, false otherwise
222
221
  def delete
223
222
  @version.delete('delete', @uri)
224
223
  end
@@ -244,15 +243,14 @@ module Twilio
244
243
  # @param [Version] version Version that contains the resource
245
244
  # @param [Hash] payload payload that contains response from Twilio
246
245
  # @param [String] service_sid The SID of the
247
- # [Service](https://www.twilio.com/docs/chat/rest/services) the resource is
248
- # associated with.
246
+ # [Service](https://www.twilio.com/docs/chat/rest/services) the User Binding
247
+ # resource is associated with.
249
248
  # @param [String] user_sid The SID of the
250
- # [User](https://www.twilio.com/docs/chat/rest/users) for the binding. See [push
251
- # notification
249
+ # [User](https://www.twilio.com/docs/chat/rest/users) with the User Binding
250
+ # resource. See [push notification
252
251
  # configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
253
- # for more information.
254
- # @param [String] sid The Twilio-provided string that uniquely identifies the User
255
- # Binding resource to fetch.
252
+ # for more info.
253
+ # @param [String] sid The SID of the User Binding resource to fetch.
256
254
  # @return [UserBindingInstance] UserBindingInstance
257
255
  def initialize(version, payload, service_sid: nil, user_sid: nil, sid: nil)
258
256
  super(version)
@@ -313,13 +311,13 @@ module Twilio
313
311
  end
314
312
 
315
313
  ##
316
- # @return [Time] The RFC 2822 date and time in GMT when the resource was created
314
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was created
317
315
  def date_created
318
316
  @properties['date_created']
319
317
  end
320
318
 
321
319
  ##
322
- # @return [Time] The RFC 2822 date and time in GMT when the resource was last updated
320
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
323
321
  def date_updated
324
322
  @properties['date_updated']
325
323
  end
@@ -337,7 +335,7 @@ module Twilio
337
335
  end
338
336
 
339
337
  ##
340
- # @return [String] The SID of the User for the binding
338
+ # @return [String] The SID of the User with the binding
341
339
  def user_sid
342
340
  @properties['user_sid']
343
341
  end
@@ -375,7 +373,7 @@ module Twilio
375
373
 
376
374
  ##
377
375
  # Deletes the UserBindingInstance
378
- # @return [Boolean] true if delete succeeds, true otherwise
376
+ # @return [Boolean] true if delete succeeds, false otherwise
379
377
  def delete
380
378
  context.delete
381
379
  end
@@ -17,8 +17,8 @@ module Twilio
17
17
  # Initialize the UserChannelList
18
18
  # @param [Version] version Version that contains the resource
19
19
  # @param [String] service_sid The SID of the
20
- # [Service](https://www.twilio.com/docs/chat/rest/services) the resource is
21
- # associated with.
20
+ # [Service](https://www.twilio.com/docs/chat/rest/services) the User Channel
21
+ # resource is associated with.
22
22
  # @param [String] user_sid The SID of the
23
23
  # [User](https://www.twilio.com/docs/chat/rest/users) the User Channel belongs to.
24
24
  # @return [UserChannelList] UserChannelList
@@ -162,9 +162,11 @@ module Twilio
162
162
  # Channel resource from.
163
163
  # @param [String] user_sid The SID of the
164
164
  # [User](https://www.twilio.com/docs/chat/rest/users) to fetch the User Channel
165
- # resource from.
165
+ # resource from. This value can be either the `sid` or the `identity` of the User
166
+ # resource.
166
167
  # @param [String] channel_sid The SID of the
167
168
  # [Channel](https://www.twilio.com/docs/chat/channels) that has the User Channel
169
+ # to fetch. This value can be either the `sid` or the `unique_name` of the Channel
168
170
  # to fetch.
169
171
  # @return [UserChannelContext] UserChannelContext
170
172
  def initialize(version, service_sid, user_sid, channel_sid)
@@ -240,12 +242,13 @@ module Twilio
240
242
  # @param [Version] version Version that contains the resource
241
243
  # @param [Hash] payload payload that contains response from Twilio
242
244
  # @param [String] service_sid The SID of the
243
- # [Service](https://www.twilio.com/docs/chat/rest/services) the resource is
244
- # associated with.
245
+ # [Service](https://www.twilio.com/docs/chat/rest/services) the User Channel
246
+ # resource is associated with.
245
247
  # @param [String] user_sid The SID of the
246
248
  # [User](https://www.twilio.com/docs/chat/rest/users) the User Channel belongs to.
247
249
  # @param [String] channel_sid The SID of the
248
250
  # [Channel](https://www.twilio.com/docs/chat/channels) that has the User Channel
251
+ # to fetch. This value can be either the `sid` or the `unique_name` of the Channel
249
252
  # to fetch.
250
253
  # @return [UserChannelInstance] UserChannelInstance
251
254
  def initialize(version, payload, service_sid: nil, user_sid: nil, channel_sid: nil)
@@ -298,7 +298,7 @@ module Twilio
298
298
 
299
299
  ##
300
300
  # Deletes the ServiceInstance
301
- # @return [Boolean] true if delete succeeds, true otherwise
301
+ # @return [Boolean] true if delete succeeds, false otherwise
302
302
  def delete
303
303
  @version.delete('delete', @uri)
304
304
  end
@@ -590,7 +590,7 @@ module Twilio
590
590
 
591
591
  ##
592
592
  # Deletes the ServiceInstance
593
- # @return [Boolean] true if delete succeeds, true otherwise
593
+ # @return [Boolean] true if delete succeeds, false otherwise
594
594
  def delete
595
595
  context.delete
596
596
  end
@@ -206,7 +206,7 @@ module Twilio
206
206
 
207
207
  ##
208
208
  # Deletes the AlphaSenderInstance
209
- # @return [Boolean] true if delete succeeds, true otherwise
209
+ # @return [Boolean] true if delete succeeds, false otherwise
210
210
  def delete
211
211
  @version.delete('delete', @uri)
212
212
  end
@@ -325,7 +325,7 @@ module Twilio
325
325
 
326
326
  ##
327
327
  # Deletes the AlphaSenderInstance
328
- # @return [Boolean] true if delete succeeds, true otherwise
328
+ # @return [Boolean] true if delete succeeds, false otherwise
329
329
  def delete
330
330
  context.delete
331
331
  end
@@ -184,7 +184,7 @@ module Twilio
184
184
 
185
185
  ##
186
186
  # Deletes the PhoneNumberInstance
187
- # @return [Boolean] true if delete succeeds, true otherwise
187
+ # @return [Boolean] true if delete succeeds, false otherwise
188
188
  def delete
189
189
  @version.delete('delete', @uri)
190
190
  end
@@ -322,7 +322,7 @@ module Twilio
322
322
 
323
323
  ##
324
324
  # Deletes the PhoneNumberInstance
325
- # @return [Boolean] true if delete succeeds, true otherwise
325
+ # @return [Boolean] true if delete succeeds, false otherwise
326
326
  def delete
327
327
  context.delete
328
328
  end
@@ -189,7 +189,7 @@ module Twilio
189
189
 
190
190
  ##
191
191
  # Deletes the ShortCodeInstance
192
- # @return [Boolean] true if delete succeeds, true otherwise
192
+ # @return [Boolean] true if delete succeeds, false otherwise
193
193
  def delete
194
194
  @version.delete('delete', @uri)
195
195
  end
@@ -325,7 +325,7 @@ module Twilio
325
325
 
326
326
  ##
327
327
  # Deletes the ShortCodeInstance
328
- # @return [Boolean] true if delete succeeds, true otherwise
328
+ # @return [Boolean] true if delete succeeds, false otherwise
329
329
  def delete
330
330
  context.delete
331
331
  end
@@ -218,7 +218,7 @@ module Twilio
218
218
 
219
219
  ##
220
220
  # Deletes the SessionInstance
221
- # @return [Boolean] true if delete succeeds, true otherwise
221
+ # @return [Boolean] true if delete succeeds, false otherwise
222
222
  def delete
223
223
  @version.delete('delete', @uri)
224
224
  end
@@ -441,7 +441,7 @@ module Twilio
441
441
 
442
442
  ##
443
443
  # Deletes the SessionInstance
444
- # @return [Boolean] true if delete succeeds, true otherwise
444
+ # @return [Boolean] true if delete succeeds, false otherwise
445
445
  def delete
446
446
  context.delete
447
447
  end
@@ -245,7 +245,7 @@ module Twilio
245
245
 
246
246
  ##
247
247
  # Deletes the MessageInstance
248
- # @return [Boolean] true if delete succeeds, true otherwise
248
+ # @return [Boolean] true if delete succeeds, false otherwise
249
249
  def delete
250
250
  @version.delete('delete', @uri)
251
251
  end
@@ -415,7 +415,7 @@ module Twilio
415
415
 
416
416
  ##
417
417
  # Deletes the MessageInstance
418
- # @return [Boolean] true if delete succeeds, true otherwise
418
+ # @return [Boolean] true if delete succeeds, false otherwise
419
419
  def delete
420
420
  context.delete
421
421
  end
@@ -268,7 +268,7 @@ module Twilio
268
268
 
269
269
  ##
270
270
  # Deletes the ParticipantInstance
271
- # @return [Boolean] true if delete succeeds, true otherwise
271
+ # @return [Boolean] true if delete succeeds, false otherwise
272
272
  def delete
273
273
  @version.delete('delete', @uri)
274
274
  end
@@ -439,7 +439,7 @@ module Twilio
439
439
 
440
440
  ##
441
441
  # Deletes the ParticipantInstance
442
- # @return [Boolean] true if delete succeeds, true otherwise
442
+ # @return [Boolean] true if delete succeeds, false otherwise
443
443
  def delete
444
444
  context.delete
445
445
  end
@@ -270,7 +270,7 @@ module Twilio
270
270
 
271
271
  ##
272
272
  # Deletes the WebhookInstance
273
- # @return [Boolean] true if delete succeeds, true otherwise
273
+ # @return [Boolean] true if delete succeeds, false otherwise
274
274
  def delete
275
275
  @version.delete('delete', @uri)
276
276
  end
@@ -422,7 +422,7 @@ module Twilio
422
422
 
423
423
  ##
424
424
  # Deletes the WebhookInstance
425
- # @return [Boolean] true if delete succeeds, true otherwise
425
+ # @return [Boolean] true if delete succeeds, false otherwise
426
426
  def delete
427
427
  context.delete
428
428
  end
@@ -222,7 +222,7 @@ module Twilio
222
222
 
223
223
  ##
224
224
  # Deletes the AlertInstance
225
- # @return [Boolean] true if delete succeeds, true otherwise
225
+ # @return [Boolean] true if delete succeeds, false otherwise
226
226
  def delete
227
227
  @version.delete('delete', @uri)
228
228
  end
@@ -400,7 +400,7 @@ module Twilio
400
400
 
401
401
  ##
402
402
  # Deletes the AlertInstance
403
- # @return [Boolean] true if delete succeeds, true otherwise
403
+ # @return [Boolean] true if delete succeeds, false otherwise
404
404
  def delete
405
405
  context.delete
406
406
  end
@@ -257,7 +257,7 @@ module Twilio
257
257
 
258
258
  ##
259
259
  # Deletes the CredentialInstance
260
- # @return [Boolean] true if delete succeeds, true otherwise
260
+ # @return [Boolean] true if delete succeeds, false otherwise
261
261
  def delete
262
262
  @version.delete('delete', @uri)
263
263
  end
@@ -404,7 +404,7 @@ module Twilio
404
404
 
405
405
  ##
406
406
  # Deletes the CredentialInstance
407
- # @return [Boolean] true if delete succeeds, true otherwise
407
+ # @return [Boolean] true if delete succeeds, false otherwise
408
408
  def delete
409
409
  context.delete
410
410
  end
@@ -236,7 +236,7 @@ module Twilio
236
236
 
237
237
  ##
238
238
  # Deletes the ServiceInstance
239
- # @return [Boolean] true if delete succeeds, true otherwise
239
+ # @return [Boolean] true if delete succeeds, false otherwise
240
240
  def delete
241
241
  @version.delete('delete', @uri)
242
242
  end
@@ -522,7 +522,7 @@ module Twilio
522
522
 
523
523
  ##
524
524
  # Deletes the ServiceInstance
525
- # @return [Boolean] true if delete succeeds, true otherwise
525
+ # @return [Boolean] true if delete succeeds, false otherwise
526
526
  def delete
527
527
  context.delete
528
528
  end
@@ -282,7 +282,7 @@ module Twilio
282
282
 
283
283
  ##
284
284
  # Deletes the BindingInstance
285
- # @return [Boolean] true if delete succeeds, true otherwise
285
+ # @return [Boolean] true if delete succeeds, false otherwise
286
286
  def delete
287
287
  @version.delete('delete', @uri)
288
288
  end
@@ -445,7 +445,7 @@ module Twilio
445
445
 
446
446
  ##
447
447
  # Deletes the BindingInstance
448
- # @return [Boolean] true if delete succeeds, true otherwise
448
+ # @return [Boolean] true if delete succeeds, false otherwise
449
449
  def delete
450
450
  context.delete
451
451
  end
@@ -203,7 +203,7 @@ module Twilio
203
203
 
204
204
  ##
205
205
  # Deletes the FleetInstance
206
- # @return [Boolean] true if delete succeeds, true otherwise
206
+ # @return [Boolean] true if delete succeeds, false otherwise
207
207
  def delete
208
208
  @version.delete('delete', @uri)
209
209
  end
@@ -422,7 +422,7 @@ module Twilio
422
422
 
423
423
  ##
424
424
  # Deletes the FleetInstance
425
- # @return [Boolean] true if delete succeeds, true otherwise
425
+ # @return [Boolean] true if delete succeeds, false otherwise
426
426
  def delete
427
427
  context.delete
428
428
  end
@@ -216,7 +216,7 @@ module Twilio
216
216
 
217
217
  ##
218
218
  # Deletes the CertificateInstance
219
- # @return [Boolean] true if delete succeeds, true otherwise
219
+ # @return [Boolean] true if delete succeeds, false otherwise
220
220
  def delete
221
221
  @version.delete('delete', @uri)
222
222
  end
@@ -362,7 +362,7 @@ module Twilio
362
362
 
363
363
  ##
364
364
  # Deletes the CertificateInstance
365
- # @return [Boolean] true if delete succeeds, true otherwise
365
+ # @return [Boolean] true if delete succeeds, false otherwise
366
366
  def delete
367
367
  context.delete
368
368
  end
@@ -204,7 +204,7 @@ module Twilio
204
204
 
205
205
  ##
206
206
  # Deletes the DeploymentInstance
207
- # @return [Boolean] true if delete succeeds, true otherwise
207
+ # @return [Boolean] true if delete succeeds, false otherwise
208
208
  def delete
209
209
  @version.delete('delete', @uri)
210
210
  end
@@ -344,7 +344,7 @@ module Twilio
344
344
 
345
345
  ##
346
346
  # Deletes the DeploymentInstance
347
- # @return [Boolean] true if delete succeeds, true otherwise
347
+ # @return [Boolean] true if delete succeeds, false otherwise
348
348
  def delete
349
349
  context.delete
350
350
  end
@@ -222,7 +222,7 @@ module Twilio
222
222
 
223
223
  ##
224
224
  # Deletes the DeviceInstance
225
- # @return [Boolean] true if delete succeeds, true otherwise
225
+ # @return [Boolean] true if delete succeeds, false otherwise
226
226
  def delete
227
227
  @version.delete('delete', @uri)
228
228
  end
@@ -397,7 +397,7 @@ module Twilio
397
397
 
398
398
  ##
399
399
  # Deletes the DeviceInstance
400
- # @return [Boolean] true if delete succeeds, true otherwise
400
+ # @return [Boolean] true if delete succeeds, false otherwise
401
401
  def delete
402
402
  context.delete
403
403
  end