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,8 +17,9 @@ module Twilio
17
17
  ##
18
18
  # Initialize the DocumentList
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 Document.
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 [DocumentList] DocumentList
23
24
  def initialize(version, service_sid: nil)
24
25
  super(version)
@@ -31,10 +32,15 @@ module Twilio
31
32
  ##
32
33
  # Retrieve a single page of DocumentInstance records from the API.
33
34
  # Request is executed immediately.
34
- # @param [String] unique_name Human-readable name for this document
35
- # @param [Hash] data JSON data to be stored in this document
36
- # @param [String] ttl Time-to-live of this Document 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 Sync Document
37
+ # @param [Hash] data A JSON string that represents an arbitrary, schema-less
38
+ # object that the Sync Document stores. Can be up to 16KB in length.
39
+ # @param [String] ttl How long, in seconds, before the Sync Document expires and
40
+ # is deleted (the Sync Document's time-to-live). Can be an integer from 0 to
41
+ # 31,536,000 (1 year). The default value is `0`, which means the Sync Document
42
+ # does not expire. The Sync Document might not be deleted immediately after it
43
+ # expires.
38
44
  # @return [DocumentInstance] Newly created DocumentInstance
39
45
  def create(unique_name: :unset, data: :unset, ttl: :unset)
40
46
  data = Twilio::Values.of({
@@ -178,8 +184,10 @@ module Twilio
178
184
  ##
179
185
  # Initialize the DocumentContext
180
186
  # @param [Version] version Version that contains the resource
181
- # @param [String] service_sid The service_sid
182
- # @param [String] sid The sid
187
+ # @param [String] service_sid The SID of the [Sync
188
+ # Service](https://www.twilio.com/docs/sync/api/service) with the Document
189
+ # resource to fetch.
190
+ # @param [String] sid The SID of the Document resource to fetch.
183
191
  # @return [DocumentContext] DocumentContext
184
192
  def initialize(version, service_sid, sid)
185
193
  super(version)
@@ -209,17 +217,19 @@ module Twilio
209
217
 
210
218
  ##
211
219
  # Deletes the DocumentInstance
212
- # @return [Boolean] true if delete succeeds, true otherwise
220
+ # @return [Boolean] true if delete succeeds, false otherwise
213
221
  def delete
214
222
  @version.delete('delete', @uri)
215
223
  end
216
224
 
217
225
  ##
218
226
  # Update the DocumentInstance
219
- # @param [Hash] data Contains an arbitrary JSON object to be stored in this
220
- # Document. Serialized to string to respect HTTP form input, up to 16KB.
221
- # @param [String] ttl New time-to-live of this Document in seconds. In the range
222
- # [1, 31 536 000 (1 year)], or 0 for infinity.
227
+ # @param [Hash] data A JSON string that represents an arbitrary, schema-less
228
+ # object that the Sync Document stores. Can be up to 16KB in length.
229
+ # @param [String] ttl How long, in seconds, before the Sync Document expires and
230
+ # is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The
231
+ # default value is `0`, which means the Document resource does not expire. The
232
+ # Document resource might not be deleted immediately after it expires.
223
233
  # @return [DocumentInstance] Updated DocumentInstance
224
234
  def update(data: :unset, ttl: :unset)
225
235
  data = Twilio::Values.of({'Data' => Twilio.serialize_object(data), 'Ttl' => ttl, })
@@ -277,9 +287,10 @@ module Twilio
277
287
  # Initialize the DocumentInstance
278
288
  # @param [Version] version Version that contains the resource
279
289
  # @param [Hash] payload payload that contains response from Twilio
280
- # @param [String] service_sid The unique SID identifier of the Service Instance
281
- # that hosts this Document.
282
- # @param [String] sid The sid
290
+ # @param [String] service_sid The SID of the [Sync
291
+ # Service](https://www.twilio.com/docs/sync/api/service) the resource is
292
+ # associated with.
293
+ # @param [String] sid The SID of the Document resource to fetch.
283
294
  # @return [DocumentInstance] DocumentInstance
284
295
  def initialize(version, payload, service_sid: nil, sid: nil)
285
296
  super(version)
@@ -317,73 +328,73 @@ module Twilio
317
328
  end
318
329
 
319
330
  ##
320
- # @return [String] The unique 34-character SID identifier of the Document.
331
+ # @return [String] The unique string that identifies the resource
321
332
  def sid
322
333
  @properties['sid']
323
334
  end
324
335
 
325
336
  ##
326
- # @return [String] The unique and addressable name of this Document.
337
+ # @return [String] An application-defined string that uniquely identifies the resource
327
338
  def unique_name
328
339
  @properties['unique_name']
329
340
  end
330
341
 
331
342
  ##
332
- # @return [String] The unique SID identifier of the Twilio Account.
343
+ # @return [String] The SID of the Account that created the resource
333
344
  def account_sid
334
345
  @properties['account_sid']
335
346
  end
336
347
 
337
348
  ##
338
- # @return [String] The unique SID identifier of the Service Instance that hosts this Document.
349
+ # @return [String] The SID of the Sync Service that the resource is associated with
339
350
  def service_sid
340
351
  @properties['service_sid']
341
352
  end
342
353
 
343
354
  ##
344
- # @return [String] The absolute URL for this Document.
355
+ # @return [String] The absolute URL of the Document resource
345
356
  def url
346
357
  @properties['url']
347
358
  end
348
359
 
349
360
  ##
350
- # @return [String] A dictionary of URL links to nested resources of this Document.
361
+ # @return [String] The URLs of resources related to the Sync Document
351
362
  def links
352
363
  @properties['links']
353
364
  end
354
365
 
355
366
  ##
356
- # @return [String] Contains the current revision of this Document, represented by a string identifier.
367
+ # @return [String] The current revision of the Sync Document, represented by a string identifier
357
368
  def revision
358
369
  @properties['revision']
359
370
  end
360
371
 
361
372
  ##
362
- # @return [Hash] Contains arbitrary user-defined, schema-less data that this Document stores, represented by a JSON object, up to 16KB.
373
+ # @return [Hash] An arbitrary, schema-less object that the Sync Document stores
363
374
  def data
364
375
  @properties['data']
365
376
  end
366
377
 
367
378
  ##
368
- # @return [Time] Contains the date this Document expires and gets deleted automatically.
379
+ # @return [Time] The ISO 8601 date and time in GMT when the Sync Document expires
369
380
  def date_expires
370
381
  @properties['date_expires']
371
382
  end
372
383
 
373
384
  ##
374
- # @return [Time] The date this Document was created, given in UTC ISO 8601 format.
385
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was created
375
386
  def date_created
376
387
  @properties['date_created']
377
388
  end
378
389
 
379
390
  ##
380
- # @return [Time] Specifies the date this Document was last updated, given in UTC ISO 8601 format.
391
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
381
392
  def date_updated
382
393
  @properties['date_updated']
383
394
  end
384
395
 
385
396
  ##
386
- # @return [String] The identity of the Document creator.
397
+ # @return [String] The identity of the Sync Document's creator
387
398
  def created_by
388
399
  @properties['created_by']
389
400
  end
@@ -397,17 +408,19 @@ module Twilio
397
408
 
398
409
  ##
399
410
  # Deletes the DocumentInstance
400
- # @return [Boolean] true if delete succeeds, true otherwise
411
+ # @return [Boolean] true if delete succeeds, false otherwise
401
412
  def delete
402
413
  context.delete
403
414
  end
404
415
 
405
416
  ##
406
417
  # Update the DocumentInstance
407
- # @param [Hash] data Contains an arbitrary JSON object to be stored in this
408
- # Document. Serialized to string to respect HTTP form input, up to 16KB.
409
- # @param [String] ttl New time-to-live of this Document in seconds. In the range
410
- # [1, 31 536 000 (1 year)], or 0 for infinity.
418
+ # @param [Hash] data A JSON string that represents an arbitrary, schema-less
419
+ # object that the Sync Document stores. Can be up to 16KB in length.
420
+ # @param [String] ttl How long, in seconds, before the Sync Document expires and
421
+ # is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The
422
+ # default value is `0`, which means the Document resource does not expire. The
423
+ # Document resource might not be deleted immediately after it expires.
411
424
  # @return [DocumentInstance] Updated DocumentInstance
412
425
  def update(data: :unset, ttl: :unset)
413
426
  context.update(data: data, ttl: ttl, )
@@ -18,10 +18,11 @@ module Twilio
18
18
  ##
19
19
  # Initialize the DocumentPermissionList
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] document_sid The unique SID identifier of the Sync Document to
24
- # which the 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] document_sid The SID of the Sync Document to which the Document
25
+ # Permission applies.
25
26
  # @return [DocumentPermissionList] DocumentPermissionList
26
27
  def initialize(version, service_sid: nil, document_sid: nil)
27
28
  super(version)
@@ -162,12 +163,14 @@ module Twilio
162
163
  ##
163
164
  # Initialize the DocumentPermissionContext
164
165
  # @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] document_sid Identifier of the Sync Document. Either a SID or a
168
- # unique name.
169
- # @param [String] identity Arbitrary string identifier representing a user
170
- # associated with an FPA token, assigned by the developer.
166
+ # @param [String] service_sid The SID of the [Sync
167
+ # Service](https://www.twilio.com/docs/sync/api/service) with the Document
168
+ # Permission resource to fetch.
169
+ # @param [String] document_sid The SID of the Sync Document with the Document
170
+ # Permission resource to fetch. Can be the Document resource's `sid` or its
171
+ # `unique_name`.
172
+ # @param [String] identity The application-defined string that uniquely identifies
173
+ # the User's Document Permission resource to fetch.
171
174
  # @return [DocumentPermissionContext] DocumentPermissionContext
172
175
  def initialize(version, service_sid, document_sid, identity)
173
176
  super(version)
@@ -200,19 +203,16 @@ module Twilio
200
203
 
201
204
  ##
202
205
  # Deletes the DocumentPermissionInstance
203
- # @return [Boolean] true if delete succeeds, true otherwise
206
+ # @return [Boolean] true if delete succeeds, false otherwise
204
207
  def delete
205
208
  @version.delete('delete', @uri)
206
209
  end
207
210
 
208
211
  ##
209
212
  # Update the DocumentPermissionInstance
210
- # @param [Boolean] read Boolean flag specifying whether the identity can read the
211
- # Sync Document.
212
- # @param [Boolean] write Boolean flag specifying whether the identity can update
213
- # the Sync Document.
214
- # @param [Boolean] manage Boolean flag specifying whether the identity can delete
215
- # the Sync Document.
213
+ # @param [Boolean] read Whether the identity can read the Sync Document.
214
+ # @param [Boolean] write Whether the identity can update the Sync Document.
215
+ # @param [Boolean] manage Whether the identity can delete the Sync Document.
216
216
  # @return [DocumentPermissionInstance] Updated DocumentPermissionInstance
217
217
  def update(read: nil, write: nil, manage: nil)
218
218
  data = Twilio::Values.of({'Read' => read, 'Write' => write, 'Manage' => manage, })
@@ -254,12 +254,13 @@ module Twilio
254
254
  # Initialize the DocumentPermissionInstance
255
255
  # @param [Version] version Version that contains the resource
256
256
  # @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] document_sid The unique SID identifier of the Sync Document to
260
- # which the Permission applies.
261
- # @param [String] identity Arbitrary string identifier representing a user
262
- # associated with an FPA token, assigned by the developer.
257
+ # @param [String] service_sid The SID of the [Sync
258
+ # Service](https://www.twilio.com/docs/sync/api/service) the resource is
259
+ # associated with.
260
+ # @param [String] document_sid The SID of the Sync Document to which the Document
261
+ # Permission applies.
262
+ # @param [String] identity The application-defined string that uniquely identifies
263
+ # the User's Document Permission resource to fetch.
263
264
  # @return [DocumentPermissionInstance] DocumentPermissionInstance
264
265
  def initialize(version, payload, service_sid: nil, document_sid: nil, identity: nil)
265
266
  super(version)
@@ -302,49 +303,49 @@ module Twilio
302
303
  end
303
304
 
304
305
  ##
305
- # @return [String] Twilio Account SID.
306
+ # @return [String] The SID of the Account that created the resource
306
307
  def account_sid
307
308
  @properties['account_sid']
308
309
  end
309
310
 
310
311
  ##
311
- # @return [String] Sync Service Instance SID.
312
+ # @return [String] The SID of the Sync Service that the resource is associated with
312
313
  def service_sid
313
314
  @properties['service_sid']
314
315
  end
315
316
 
316
317
  ##
317
- # @return [String] Sync Document SID.
318
+ # @return [String] The Sync Document SID
318
319
  def document_sid
319
320
  @properties['document_sid']
320
321
  end
321
322
 
322
323
  ##
323
- # @return [String] Identity of the user to whom the Sync Document Permission applies.
324
+ # @return [String] The identity of the user to whom the Sync Document Permission applies
324
325
  def identity
325
326
  @properties['identity']
326
327
  end
327
328
 
328
329
  ##
329
- # @return [Boolean] Read access.
330
+ # @return [Boolean] Read access
330
331
  def read
331
332
  @properties['read']
332
333
  end
333
334
 
334
335
  ##
335
- # @return [Boolean] Write access.
336
+ # @return [Boolean] Write access
336
337
  def write
337
338
  @properties['write']
338
339
  end
339
340
 
340
341
  ##
341
- # @return [Boolean] Manage access.
342
+ # @return [Boolean] Manage access
342
343
  def manage
343
344
  @properties['manage']
344
345
  end
345
346
 
346
347
  ##
347
- # @return [String] URL of this Sync Document Permission.
348
+ # @return [String] The absolute URL of the Sync Document Permission resource
348
349
  def url
349
350
  @properties['url']
350
351
  end
@@ -358,19 +359,16 @@ module Twilio
358
359
 
359
360
  ##
360
361
  # Deletes the DocumentPermissionInstance
361
- # @return [Boolean] true if delete succeeds, true otherwise
362
+ # @return [Boolean] true if delete succeeds, false otherwise
362
363
  def delete
363
364
  context.delete
364
365
  end
365
366
 
366
367
  ##
367
368
  # Update the DocumentPermissionInstance
368
- # @param [Boolean] read Boolean flag specifying whether the identity can read the
369
- # Sync Document.
370
- # @param [Boolean] write Boolean flag specifying whether the identity can update
371
- # the Sync Document.
372
- # @param [Boolean] manage Boolean flag specifying whether the identity can delete
373
- # the Sync Document.
369
+ # @param [Boolean] read Whether the identity can read the Sync Document.
370
+ # @param [Boolean] write Whether the identity can update the Sync Document.
371
+ # @param [Boolean] manage Whether the identity can delete the Sync Document.
374
372
  # @return [DocumentPermissionInstance] Updated DocumentPermissionInstance
375
373
  def update(read: nil, write: nil, manage: nil)
376
374
  context.update(read: read, write: write, manage: manage, )
@@ -17,8 +17,9 @@ module Twilio
17
17
  ##
18
18
  # Initialize the SyncListList
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 List object.
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 [SyncListList] SyncListList
23
24
  def initialize(version, service_sid: nil)
24
25
  super(version)
@@ -31,11 +32,16 @@ module Twilio
31
32
  ##
32
33
  # Retrieve a single page of SyncListInstance records from the API.
33
34
  # Request is executed immediately.
34
- # @param [String] unique_name Human-readable name for this list
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.
35
39
  # @param [String] ttl Alias for collection_ttl. If both are provided, this value
36
40
  # is ignored.
37
- # @param [String] collection_ttl Time-to-live of this List in seconds, defaults to
38
- # no expiration. In the range [1, 31 536 000 (1 year)], or 0 for infinity.
41
+ # @param [String] collection_ttl How long, in seconds, before the Sync List
42
+ # expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000
43
+ # (1 year). The default value is `0`, which means the Sync List does not expire.
44
+ # The Sync List might not be deleted immediately after it expires.
39
45
  # @return [SyncListInstance] Newly created SyncListInstance
40
46
  def create(unique_name: :unset, ttl: :unset, collection_ttl: :unset)
41
47
  data = Twilio::Values.of({
@@ -179,8 +185,10 @@ module Twilio
179
185
  ##
180
186
  # Initialize the SyncListContext
181
187
  # @param [Version] version Version that contains the resource
182
- # @param [String] service_sid The service_sid
183
- # @param [String] sid The sid
188
+ # @param [String] service_sid The SID of the [Sync
189
+ # Service](https://www.twilio.com/docs/sync/api/service) with the Sync List
190
+ # resource to fetch.
191
+ # @param [String] sid The SID of the Sync List resource to fetch.
184
192
  # @return [SyncListContext] SyncListContext
185
193
  def initialize(version, service_sid, sid)
186
194
  super(version)
@@ -211,17 +219,19 @@ module Twilio
211
219
 
212
220
  ##
213
221
  # Deletes the SyncListInstance
214
- # @return [Boolean] true if delete succeeds, true otherwise
222
+ # @return [Boolean] true if delete succeeds, false otherwise
215
223
  def delete
216
224
  @version.delete('delete', @uri)
217
225
  end
218
226
 
219
227
  ##
220
228
  # Update the SyncListInstance
221
- # @param [String] ttl Alias for collection_ttl. If both are provided, this value
222
- # is ignored.
223
- # @param [String] collection_ttl Time-to-live of this List in seconds, defaults to
224
- # no expiration. In the range [1, 31 536 000 (1 year)], or 0 for infinity.
229
+ # @param [String] ttl An alias for `collection_ttl`. If both are provided, this
230
+ # value is ignored.
231
+ # @param [String] collection_ttl How long, in seconds, before the Sync List
232
+ # expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1
233
+ # year). The default value is `0`, which means the Sync List does not expire. The
234
+ # Sync List might not be deleted immediately after it expires.
225
235
  # @return [SyncListInstance] Updated SyncListInstance
226
236
  def update(ttl: :unset, collection_ttl: :unset)
227
237
  data = Twilio::Values.of({'Ttl' => ttl, 'CollectionTtl' => collection_ttl, })
@@ -301,9 +311,10 @@ module Twilio
301
311
  # Initialize the SyncListInstance
302
312
  # @param [Version] version Version that contains the resource
303
313
  # @param [Hash] payload payload that contains response from Twilio
304
- # @param [String] service_sid The unique SID identifier of the Service Instance
305
- # that hosts this List object.
306
- # @param [String] sid The sid
314
+ # @param [String] service_sid The SID of the [Sync
315
+ # Service](https://www.twilio.com/docs/sync/api/service) the resource is
316
+ # associated with.
317
+ # @param [String] sid The SID of the Sync List resource to fetch.
307
318
  # @return [SyncListInstance] SyncListInstance
308
319
  def initialize(version, payload, service_sid: nil, sid: nil)
309
320
  super(version)
@@ -340,67 +351,67 @@ module Twilio
340
351
  end
341
352
 
342
353
  ##
343
- # @return [String] The unique 34-character SID identifier of the List.
354
+ # @return [String] The unique string that identifies the resource
344
355
  def sid
345
356
  @properties['sid']
346
357
  end
347
358
 
348
359
  ##
349
- # @return [String] The unique and addressable name of this List.
360
+ # @return [String] An application-defined string that uniquely identifies the resource
350
361
  def unique_name
351
362
  @properties['unique_name']
352
363
  end
353
364
 
354
365
  ##
355
- # @return [String] The unique SID identifier of the Twilio Account.
366
+ # @return [String] The SID of the Account that created the resource
356
367
  def account_sid
357
368
  @properties['account_sid']
358
369
  end
359
370
 
360
371
  ##
361
- # @return [String] The unique SID identifier of the Service Instance that hosts this List object.
372
+ # @return [String] The SID of the Sync Service that the resource is associated with
362
373
  def service_sid
363
374
  @properties['service_sid']
364
375
  end
365
376
 
366
377
  ##
367
- # @return [String] The absolute URL for this List.
378
+ # @return [String] The absolute URL of the Sync List resource
368
379
  def url
369
380
  @properties['url']
370
381
  end
371
382
 
372
383
  ##
373
- # @return [String] A dictionary of URL links to nested resources of this List.
384
+ # @return [String] The URLs of the Sync List's nested resources
374
385
  def links
375
386
  @properties['links']
376
387
  end
377
388
 
378
389
  ##
379
- # @return [String] Contains the current revision of this List, represented by a string identifier.
390
+ # @return [String] The current revision of the Sync List, represented as a string
380
391
  def revision
381
392
  @properties['revision']
382
393
  end
383
394
 
384
395
  ##
385
- # @return [Time] Contains the date this List expires and gets deleted automatically.
396
+ # @return [Time] The ISO 8601 date and time in GMT when the Sync List expires
386
397
  def date_expires
387
398
  @properties['date_expires']
388
399
  end
389
400
 
390
401
  ##
391
- # @return [Time] The date this List was created, given in UTC ISO 8601 format.
402
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was created
392
403
  def date_created
393
404
  @properties['date_created']
394
405
  end
395
406
 
396
407
  ##
397
- # @return [Time] Specifies the date this List was last updated, given in UTC ISO 8601 format.
408
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
398
409
  def date_updated
399
410
  @properties['date_updated']
400
411
  end
401
412
 
402
413
  ##
403
- # @return [String] The identity of the List creator.
414
+ # @return [String] The identity of the Sync List's creator
404
415
  def created_by
405
416
  @properties['created_by']
406
417
  end
@@ -414,17 +425,19 @@ module Twilio
414
425
 
415
426
  ##
416
427
  # Deletes the SyncListInstance
417
- # @return [Boolean] true if delete succeeds, true otherwise
428
+ # @return [Boolean] true if delete succeeds, false otherwise
418
429
  def delete
419
430
  context.delete
420
431
  end
421
432
 
422
433
  ##
423
434
  # Update the SyncListInstance
424
- # @param [String] ttl Alias for collection_ttl. If both are provided, this value
425
- # is ignored.
426
- # @param [String] collection_ttl Time-to-live of this List in seconds, defaults to
427
- # no expiration. In the range [1, 31 536 000 (1 year)], or 0 for infinity.
435
+ # @param [String] ttl An alias for `collection_ttl`. If both are provided, this
436
+ # value is ignored.
437
+ # @param [String] collection_ttl How long, in seconds, before the Sync List
438
+ # expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1
439
+ # year). The default value is `0`, which means the Sync List does not expire. The
440
+ # Sync List might not be deleted immediately after it expires.
428
441
  # @return [SyncListInstance] Updated SyncListInstance
429
442
  def update(ttl: :unset, collection_ttl: :unset)
430
443
  context.update(ttl: ttl, collection_ttl: collection_ttl, )