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
@@ -18,10 +18,10 @@ module Twilio
18
18
  ##
19
19
  # Initialize the SyncMapPermissionList
20
20
  # @param [Version] version Version that contains the resource
21
- # @param [String] service_sid The unique SID identifier of the Sync Service
22
- # Instance.
23
- # @param [String] map_sid The unique SID identifier of the Sync Map to which the
24
- # Permission applies.
21
+ # @param [String] service_sid The SID of the [Sync
22
+ # Service](https://www.twilio.com/docs/sync/api/service) the resource is
23
+ # associated with.
24
+ # @param [String] map_sid The SID of the Sync Map to which the Permission applies.
25
25
  # @return [SyncMapPermissionList] SyncMapPermissionList
26
26
  def initialize(version, service_sid: nil, map_sid: nil)
27
27
  super(version)
@@ -162,12 +162,13 @@ module Twilio
162
162
  ##
163
163
  # Initialize the SyncMapPermissionContext
164
164
  # @param [Version] version Version that contains the resource
165
- # @param [String] service_sid Identifier of the Sync Service Instance. Either a
166
- # SID or 'default'.
167
- # @param [String] map_sid Identifier of the Sync Map. Either a SID or a unique
168
- # name.
169
- # @param [String] identity Arbitrary string identifier representing a user
170
- # associated with an FPA token, assigned by the developer.
165
+ # @param [String] service_sid The SID of the [Sync
166
+ # Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map
167
+ # Permission resource to fetch. Can be the Service's `sid` value or `default`.
168
+ # @param [String] map_sid The SID of the Sync Map with the Sync Map Permission
169
+ # resource to fetch. Can be the Sync Map's `sid` or its `unique_name`.
170
+ # @param [String] identity The application-defined string that uniquely identifies
171
+ # the User's Sync Map Permission resource to fetch.
171
172
  # @return [SyncMapPermissionContext] SyncMapPermissionContext
172
173
  def initialize(version, service_sid, map_sid, identity)
173
174
  super(version)
@@ -200,19 +201,17 @@ module Twilio
200
201
 
201
202
  ##
202
203
  # Deletes the SyncMapPermissionInstance
203
- # @return [Boolean] true if delete succeeds, true otherwise
204
+ # @return [Boolean] true if delete succeeds, false otherwise
204
205
  def delete
205
206
  @version.delete('delete', @uri)
206
207
  end
207
208
 
208
209
  ##
209
210
  # Update the SyncMapPermissionInstance
210
- # @param [Boolean] read Boolean flag specifying whether the identity can read the
211
- # Sync Map.
212
- # @param [Boolean] write Boolean flag specifying whether the identity can create,
213
- # update and delete Items of the Sync Map.
214
- # @param [Boolean] manage Boolean flag specifying whether the identity can delete
215
- # the Sync Map.
211
+ # @param [Boolean] read Whether the identity can read the Sync Map and its Items.
212
+ # @param [Boolean] write Whether the identity can create, update and delete Items
213
+ # of the Sync Map.
214
+ # @param [Boolean] manage Whether the identity can delete the Sync Map.
216
215
  # @return [SyncMapPermissionInstance] Updated SyncMapPermissionInstance
217
216
  def update(read: nil, write: nil, manage: nil)
218
217
  data = Twilio::Values.of({'Read' => read, 'Write' => write, 'Manage' => manage, })
@@ -254,12 +253,12 @@ module Twilio
254
253
  # Initialize the SyncMapPermissionInstance
255
254
  # @param [Version] version Version that contains the resource
256
255
  # @param [Hash] payload payload that contains response from Twilio
257
- # @param [String] service_sid The unique SID identifier of the Sync Service
258
- # Instance.
259
- # @param [String] map_sid The unique SID identifier of the Sync Map to which the
260
- # Permission applies.
261
- # @param [String] identity Arbitrary string identifier representing a user
262
- # associated with an FPA token, assigned by the developer.
256
+ # @param [String] service_sid The SID of the [Sync
257
+ # Service](https://www.twilio.com/docs/sync/api/service) the resource is
258
+ # associated with.
259
+ # @param [String] map_sid The SID of the Sync Map to which the Permission applies.
260
+ # @param [String] identity The application-defined string that uniquely identifies
261
+ # the User's Sync Map Permission resource to fetch.
263
262
  # @return [SyncMapPermissionInstance] SyncMapPermissionInstance
264
263
  def initialize(version, payload, service_sid: nil, map_sid: nil, identity: nil)
265
264
  super(version)
@@ -302,49 +301,49 @@ module Twilio
302
301
  end
303
302
 
304
303
  ##
305
- # @return [String] Twilio Account SID.
304
+ # @return [String] The SID of the Account that created the resource
306
305
  def account_sid
307
306
  @properties['account_sid']
308
307
  end
309
308
 
310
309
  ##
311
- # @return [String] Sync Service Instance SID.
310
+ # @return [String] The SID of the Sync Service that the resource is associated with
312
311
  def service_sid
313
312
  @properties['service_sid']
314
313
  end
315
314
 
316
315
  ##
317
- # @return [String] Sync Map SID.
316
+ # @return [String] Sync Map SID
318
317
  def map_sid
319
318
  @properties['map_sid']
320
319
  end
321
320
 
322
321
  ##
323
- # @return [String] Identity of the user to whom the Sync Map Permission applies.
322
+ # @return [String] The identity of the user to whom the Sync Document Permission applies
324
323
  def identity
325
324
  @properties['identity']
326
325
  end
327
326
 
328
327
  ##
329
- # @return [Boolean] Read access.
328
+ # @return [Boolean] Read access
330
329
  def read
331
330
  @properties['read']
332
331
  end
333
332
 
334
333
  ##
335
- # @return [Boolean] Write access.
334
+ # @return [Boolean] Write access
336
335
  def write
337
336
  @properties['write']
338
337
  end
339
338
 
340
339
  ##
341
- # @return [Boolean] Manage access.
340
+ # @return [Boolean] Manage access
342
341
  def manage
343
342
  @properties['manage']
344
343
  end
345
344
 
346
345
  ##
347
- # @return [String] URL of this Sync Map Permission.
346
+ # @return [String] The absolute URL of the Sync Map Permission resource
348
347
  def url
349
348
  @properties['url']
350
349
  end
@@ -358,19 +357,17 @@ module Twilio
358
357
 
359
358
  ##
360
359
  # Deletes the SyncMapPermissionInstance
361
- # @return [Boolean] true if delete succeeds, true otherwise
360
+ # @return [Boolean] true if delete succeeds, false otherwise
362
361
  def delete
363
362
  context.delete
364
363
  end
365
364
 
366
365
  ##
367
366
  # Update the SyncMapPermissionInstance
368
- # @param [Boolean] read Boolean flag specifying whether the identity can read the
369
- # Sync Map.
370
- # @param [Boolean] write Boolean flag specifying whether the identity can create,
371
- # update and delete Items of the Sync Map.
372
- # @param [Boolean] manage Boolean flag specifying whether the identity can delete
373
- # the Sync Map.
367
+ # @param [Boolean] read Whether the identity can read the Sync Map and its Items.
368
+ # @param [Boolean] write Whether the identity can create, update and delete Items
369
+ # of the Sync Map.
370
+ # @param [Boolean] manage Whether the identity can delete the Sync Map.
374
371
  # @return [SyncMapPermissionInstance] Updated SyncMapPermissionInstance
375
372
  def update(read: nil, write: nil, manage: nil)
376
373
  context.update(read: read, write: write, manage: manage, )
@@ -17,8 +17,9 @@ module Twilio
17
17
  ##
18
18
  # Initialize the SyncStreamList
19
19
  # @param [Version] version Version that contains the resource
20
- # @param [String] service_sid The unique SID identifier of the Service Instance
21
- # that hosts this Message Stream.
20
+ # @param [String] service_sid The SID of the [Sync
21
+ # Service](https://www.twilio.com/docs/sync/api/service) the resource is
22
+ # associated with.
22
23
  # @return [SyncStreamList] SyncStreamList
23
24
  def initialize(version, service_sid: nil)
24
25
  super(version)
@@ -31,10 +32,14 @@ module Twilio
31
32
  ##
32
33
  # Retrieve a single page of SyncStreamInstance records from the API.
33
34
  # Request is executed immediately.
34
- # @param [String] unique_name The unique and addressable name of this Stream.
35
- # Optional, up to 320 characters long.
36
- # @param [String] ttl Time-to-live of this Stream in seconds, defaults to no
37
- # expiration. In the range [1, 31 536 000 (1 year)], or 0 for infinity.
35
+ # @param [String] unique_name An application-defined string that uniquely
36
+ # identifies the resource. This value must be unique within its Service and it can
37
+ # be up to 320 characters long. The `unique_name` value can be used as an
38
+ # alternative to the `sid` in the URL path to address the resource.
39
+ # @param [String] ttl How long, in seconds, before the Stream expires and is
40
+ # deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The
41
+ # default value is `0`, which means the Stream does not expire. The Stream might
42
+ # not be deleted immediately after it expires.
38
43
  # @return [SyncStreamInstance] Newly created SyncStreamInstance
39
44
  def create(unique_name: :unset, ttl: :unset)
40
45
  data = Twilio::Values.of({'UniqueName' => unique_name, 'Ttl' => ttl, })
@@ -174,9 +179,10 @@ module Twilio
174
179
  ##
175
180
  # Initialize the SyncStreamContext
176
181
  # @param [Version] version Version that contains the resource
177
- # @param [String] service_sid Identifier of the Service Instance. Either a SID or
178
- # 'default'.
179
- # @param [String] sid Identifier of the Stream. Either a SID or a unique name.
182
+ # @param [String] service_sid The SID of the [Sync
183
+ # Service](https://www.twilio.com/docs/sync/api/service) with the Sync Stream
184
+ # resource to fetch.
185
+ # @param [String] sid The SID of the Stream resource to fetch.
180
186
  # @return [SyncStreamContext] SyncStreamContext
181
187
  def initialize(version, service_sid, sid)
182
188
  super(version)
@@ -211,15 +217,17 @@ module Twilio
211
217
 
212
218
  ##
213
219
  # Deletes the SyncStreamInstance
214
- # @return [Boolean] true if delete succeeds, true otherwise
220
+ # @return [Boolean] true if delete succeeds, false otherwise
215
221
  def delete
216
222
  @version.delete('delete', @uri)
217
223
  end
218
224
 
219
225
  ##
220
226
  # Update the SyncStreamInstance
221
- # @param [String] ttl New time-to-live of this Stream in seconds. In the range [1,
222
- # 31 536 000 (1 year)], or 0 for infinity.
227
+ # @param [String] ttl How long, in seconds, before the Stream expires and is
228
+ # deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The
229
+ # default value is `0`, which means the Stream does not expire. The Sync Map might
230
+ # not be deleted immediately after it expires.
223
231
  # @return [SyncStreamInstance] Updated SyncStreamInstance
224
232
  def update(ttl: :unset)
225
233
  data = Twilio::Values.of({'Ttl' => ttl, })
@@ -276,9 +284,10 @@ module Twilio
276
284
  # Initialize the SyncStreamInstance
277
285
  # @param [Version] version Version that contains the resource
278
286
  # @param [Hash] payload payload that contains response from Twilio
279
- # @param [String] service_sid The unique SID identifier of the Service Instance
280
- # that hosts this Message Stream.
281
- # @param [String] sid Identifier of the Stream. Either a SID or a unique name.
287
+ # @param [String] service_sid The SID of the [Sync
288
+ # Service](https://www.twilio.com/docs/sync/api/service) the resource is
289
+ # associated with.
290
+ # @param [String] sid The SID of the Stream resource to fetch.
282
291
  # @return [SyncStreamInstance] SyncStreamInstance
283
292
  def initialize(version, payload, service_sid: nil, sid: nil)
284
293
  super(version)
@@ -314,61 +323,61 @@ module Twilio
314
323
  end
315
324
 
316
325
  ##
317
- # @return [String] Stream SID.
326
+ # @return [String] The unique string that identifies the resource
318
327
  def sid
319
328
  @properties['sid']
320
329
  end
321
330
 
322
331
  ##
323
- # @return [String] Stream unique name.
332
+ # @return [String] An application-defined string that uniquely identifies the resource
324
333
  def unique_name
325
334
  @properties['unique_name']
326
335
  end
327
336
 
328
337
  ##
329
- # @return [String] Twilio Account SID.
338
+ # @return [String] The SID of the Account that created the resource
330
339
  def account_sid
331
340
  @properties['account_sid']
332
341
  end
333
342
 
334
343
  ##
335
- # @return [String] Service Instance SID.
344
+ # @return [String] The SID of the Sync Service that the resource is associated with
336
345
  def service_sid
337
346
  @properties['service_sid']
338
347
  end
339
348
 
340
349
  ##
341
- # @return [String] URL of this Stream.
350
+ # @return [String] The absolute URL of the Message Stream resource
342
351
  def url
343
352
  @properties['url']
344
353
  end
345
354
 
346
355
  ##
347
- # @return [String] Nested resource URLs.
356
+ # @return [String] The URLs of the Stream's nested resources
348
357
  def links
349
358
  @properties['links']
350
359
  end
351
360
 
352
361
  ##
353
- # @return [Time] The date this Stream expires.
362
+ # @return [Time] The ISO 8601 date and time in GMT when the Message Stream expires
354
363
  def date_expires
355
364
  @properties['date_expires']
356
365
  end
357
366
 
358
367
  ##
359
- # @return [Time] The date this Stream was created.
368
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was created
360
369
  def date_created
361
370
  @properties['date_created']
362
371
  end
363
372
 
364
373
  ##
365
- # @return [Time] The date this Stream was updated.
374
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
366
375
  def date_updated
367
376
  @properties['date_updated']
368
377
  end
369
378
 
370
379
  ##
371
- # @return [String] Identity of the Stream creator.
380
+ # @return [String] The Identity of the Stream's creator
372
381
  def created_by
373
382
  @properties['created_by']
374
383
  end
@@ -382,15 +391,17 @@ module Twilio
382
391
 
383
392
  ##
384
393
  # Deletes the SyncStreamInstance
385
- # @return [Boolean] true if delete succeeds, true otherwise
394
+ # @return [Boolean] true if delete succeeds, false otherwise
386
395
  def delete
387
396
  context.delete
388
397
  end
389
398
 
390
399
  ##
391
400
  # Update the SyncStreamInstance
392
- # @param [String] ttl New time-to-live of this Stream in seconds. In the range [1,
393
- # 31 536 000 (1 year)], or 0 for infinity.
401
+ # @param [String] ttl How long, in seconds, before the Stream expires and is
402
+ # deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The
403
+ # default value is `0`, which means the Stream does not expire. The Sync Map might
404
+ # not be deleted immediately after it expires.
394
405
  # @return [SyncStreamInstance] Updated SyncStreamInstance
395
406
  def update(ttl: :unset)
396
407
  context.update(ttl: ttl, )
@@ -18,10 +18,11 @@ module Twilio
18
18
  ##
19
19
  # Initialize the StreamMessageList
20
20
  # @param [Version] version Version that contains the resource
21
- # @param [String] service_sid The unique SID identifier of the Service Instance
22
- # that hosts this Message Stream.
23
- # @param [String] stream_sid The unique 34-character SID identifier of the Message
24
- # Stream.
21
+ # @param [String] service_sid The SID of the [Sync
22
+ # Service](https://www.twilio.com/docs/sync/api/service) the resource is
23
+ # associated with.
24
+ # @param [String] stream_sid The unique string that we created to identify the
25
+ # Sync Stream resource.
25
26
  # @return [StreamMessageList] StreamMessageList
26
27
  def initialize(version, service_sid: nil, stream_sid: nil)
27
28
  super(version)
@@ -34,8 +35,8 @@ module Twilio
34
35
  ##
35
36
  # Retrieve a single page of StreamMessageInstance records from the API.
36
37
  # Request is executed immediately.
37
- # @param [Hash] data The body of the Stream Message. Arbitrary JSON object,
38
- # maximum size 4KB.
38
+ # @param [Hash] data A JSON string that represents an arbitrary, schema-less
39
+ # object that makes up the Stream Message body. Can be up to 4KB in length.
39
40
  # @return [StreamMessageInstance] Newly created StreamMessageInstance
40
41
  def create(data: nil)
41
42
  data = Twilio::Values.of({'Data' => Twilio.serialize_object(data), })
@@ -104,10 +105,11 @@ module Twilio
104
105
  # Initialize the StreamMessageInstance
105
106
  # @param [Version] version Version that contains the resource
106
107
  # @param [Hash] payload payload that contains response from Twilio
107
- # @param [String] service_sid The unique SID identifier of the Service Instance
108
- # that hosts this Message Stream.
109
- # @param [String] stream_sid The unique 34-character SID identifier of the Message
110
- # Stream.
108
+ # @param [String] service_sid The SID of the [Sync
109
+ # Service](https://www.twilio.com/docs/sync/api/service) the resource is
110
+ # associated with.
111
+ # @param [String] stream_sid The unique string that we created to identify the
112
+ # Sync Stream resource.
111
113
  # @return [StreamMessageInstance] StreamMessageInstance
112
114
  def initialize(version, payload, service_sid: nil, stream_sid: nil)
113
115
  super(version)
@@ -117,13 +119,13 @@ module Twilio
117
119
  end
118
120
 
119
121
  ##
120
- # @return [String] Stream Message SID.
122
+ # @return [String] The unique string that identifies the resource
121
123
  def sid
122
124
  @properties['sid']
123
125
  end
124
126
 
125
127
  ##
126
- # @return [Hash] Stream Message body.
128
+ # @return [Hash] Stream Message body
127
129
  def data
128
130
  @properties['data']
129
131
  end
@@ -289,7 +289,7 @@ module Twilio
289
289
 
290
290
  ##
291
291
  # Deletes the WorkspaceInstance
292
- # @return [Boolean] true if delete succeeds, true otherwise
292
+ # @return [Boolean] true if delete succeeds, false otherwise
293
293
  def delete
294
294
  @version.delete('delete', @uri)
295
295
  end
@@ -640,7 +640,7 @@ module Twilio
640
640
 
641
641
  ##
642
642
  # Deletes the WorkspaceInstance
643
- # @return [Boolean] true if delete succeeds, true otherwise
643
+ # @return [Boolean] true if delete succeeds, false otherwise
644
644
  def delete
645
645
  context.delete
646
646
  end
@@ -249,7 +249,7 @@ module Twilio
249
249
 
250
250
  ##
251
251
  # Deletes the ActivityInstance
252
- # @return [Boolean] true if delete succeeds, true otherwise
252
+ # @return [Boolean] true if delete succeeds, false otherwise
253
253
  def delete
254
254
  @version.delete('delete', @uri)
255
255
  end
@@ -377,7 +377,7 @@ module Twilio
377
377
 
378
378
  ##
379
379
  # Deletes the ActivityInstance
380
- # @return [Boolean] true if delete succeeds, true otherwise
380
+ # @return [Boolean] true if delete succeeds, false otherwise
381
381
  def delete
382
382
  context.delete
383
383
  end
@@ -353,7 +353,7 @@ module Twilio
353
353
 
354
354
  ##
355
355
  # Deletes the TaskInstance
356
- # @return [Boolean] true if delete succeeds, true otherwise
356
+ # @return [Boolean] true if delete succeeds, false otherwise
357
357
  def delete
358
358
  @version.delete('delete', @uri)
359
359
  end
@@ -601,7 +601,7 @@ module Twilio
601
601
 
602
602
  ##
603
603
  # Deletes the TaskInstance
604
- # @return [Boolean] true if delete succeeds, true otherwise
604
+ # @return [Boolean] true if delete succeeds, false otherwise
605
605
  def delete
606
606
  context.delete
607
607
  end
@@ -233,7 +233,7 @@ module Twilio
233
233
 
234
234
  ##
235
235
  # Deletes the TaskChannelInstance
236
- # @return [Boolean] true if delete succeeds, true otherwise
236
+ # @return [Boolean] true if delete succeeds, false otherwise
237
237
  def delete
238
238
  @version.delete('delete', @uri)
239
239
  end
@@ -374,7 +374,7 @@ module Twilio
374
374
 
375
375
  ##
376
376
  # Deletes the TaskChannelInstance
377
- # @return [Boolean] true if delete succeeds, true otherwise
377
+ # @return [Boolean] true if delete succeeds, false otherwise
378
378
  def delete
379
379
  context.delete
380
380
  end