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 SyncListItemList
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 List object.
23
- # @param [String] list_sid The unique 34-character SID identifier of the List
24
- # containing this Item.
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] list_sid The SID of the Sync List that contains the List Item.
25
25
  # @return [SyncListItemList] SyncListItemList
26
26
  def initialize(version, service_sid: nil, list_sid: nil)
27
27
  super(version)
@@ -34,18 +34,19 @@ module Twilio
34
34
  ##
35
35
  # Retrieve a single page of SyncListItemInstance records from the API.
36
36
  # Request is executed immediately.
37
- # @param [Hash] data Contains arbitrary user-defined, schema-less data that this
38
- # List Item stores, represented by a JSON object, up to 16KB.
39
- # @param [String] ttl Alias for item_ttl. If both are provided, this value is
40
- # ignored.
41
- # @param [String] item_ttl Time-to-live of this item in seconds, defaults to no
42
- # expiration. In the range [1, 31 536 000 (1 year)], or 0 for infinity. Upon
43
- # expiry, the list item will be cleaned up at least in a matter of hours, and
44
- # often within seconds, making this a good tool for garbage management.
45
- # @param [String] collection_ttl Time-to-live of this item's parent List in
46
- # seconds, defaults to no expiration. In the range [1, 31 536 000 (1 year)], or 0
47
- # for infinity. This parameter can only be used when the list item's data or ttl
48
- # is updated in the same request.
37
+ # @param [Hash] data A JSON string that represents an arbitrary, schema-less
38
+ # object that the List Item stores. Can be up to 16KB in length.
39
+ # @param [String] ttl An alias for `item_ttl`. If both parameters are provided,
40
+ # this value is ignored.
41
+ # @param [String] item_ttl How long, in seconds, before the List Item expires
42
+ # (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year).
43
+ # The default value is `0`, which means the List Item does not expire. The List
44
+ # Item might not be deleted immediately after it expires.
45
+ # @param [String] collection_ttl How long, in seconds, before the List Item's
46
+ # parent Sync List expires (time-to-live) and is deleted. Can be an integer from
47
+ # 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync
48
+ # List does not expire. The Sync List might not be deleted immediately after it
49
+ # expires.
49
50
  # @return [SyncListItemInstance] Newly created SyncListItemInstance
50
51
  def create(data: nil, ttl: :unset, item_ttl: :unset, collection_ttl: :unset)
51
52
  data = Twilio::Values.of({
@@ -73,11 +74,15 @@ module Twilio
73
74
  # Lists SyncListItemInstance records from the API as a list.
74
75
  # Unlike stream(), this operation is eager and will load `limit` records into
75
76
  # memory before returning.
76
- # @param [sync_list_item.QueryResultOrder] order A string; `asc` or `desc`
77
- # @param [String] from An integer representing Item index offset (inclusive). If
78
- # not present, query is performed from the start or end, depending on the Order
79
- # query parameter.
80
- # @param [sync_list_item.QueryFromBoundType] bounds The bounds
77
+ # @param [sync_list_item.QueryResultOrder] order How to order the List Items
78
+ # returned by their `index` value. Can be: `asc` (ascending) or `desc`
79
+ # (descending) and the default is ascending.
80
+ # @param [String] from The `index` of the first Sync List Item resource to read.
81
+ # See also `bounds`.
82
+ # @param [sync_list_item.QueryFromBoundType] bounds Whether to include the List
83
+ # Item referenced by the `from` parameter. Can be: `inclusive` to include the List
84
+ # Item referenced by the `from` parameter or `exclusive` to start with the next
85
+ # List Item. The default value is `inclusive`.
81
86
  # @param [Integer] limit Upper limit for the number of records to return. stream()
82
87
  # guarantees to never return more than limit. Default is no limit
83
88
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -93,11 +98,15 @@ module Twilio
93
98
  # Streams SyncListItemInstance records from the API as an Enumerable.
94
99
  # This operation lazily loads records as efficiently as possible until the limit
95
100
  # is reached.
96
- # @param [sync_list_item.QueryResultOrder] order A string; `asc` or `desc`
97
- # @param [String] from An integer representing Item index offset (inclusive). If
98
- # not present, query is performed from the start or end, depending on the Order
99
- # query parameter.
100
- # @param [sync_list_item.QueryFromBoundType] bounds The bounds
101
+ # @param [sync_list_item.QueryResultOrder] order How to order the List Items
102
+ # returned by their `index` value. Can be: `asc` (ascending) or `desc`
103
+ # (descending) and the default is ascending.
104
+ # @param [String] from The `index` of the first Sync List Item resource to read.
105
+ # See also `bounds`.
106
+ # @param [sync_list_item.QueryFromBoundType] bounds Whether to include the List
107
+ # Item referenced by the `from` parameter. Can be: `inclusive` to include the List
108
+ # Item referenced by the `from` parameter or `exclusive` to start with the next
109
+ # List Item. The default value is `inclusive`.
101
110
  # @param [Integer] limit Upper limit for the number of records to return. stream()
102
111
  # guarantees to never return more than limit. Default is no limit.
103
112
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -130,11 +139,15 @@ module Twilio
130
139
  ##
131
140
  # Retrieve a single page of SyncListItemInstance records from the API.
132
141
  # Request is executed immediately.
133
- # @param [sync_list_item.QueryResultOrder] order A string; `asc` or `desc`
134
- # @param [String] from An integer representing Item index offset (inclusive). If
135
- # not present, query is performed from the start or end, depending on the Order
136
- # query parameter.
137
- # @param [sync_list_item.QueryFromBoundType] bounds The bounds
142
+ # @param [sync_list_item.QueryResultOrder] order How to order the List Items
143
+ # returned by their `index` value. Can be: `asc` (ascending) or `desc`
144
+ # (descending) and the default is ascending.
145
+ # @param [String] from The `index` of the first Sync List Item resource to read.
146
+ # See also `bounds`.
147
+ # @param [sync_list_item.QueryFromBoundType] bounds Whether to include the List
148
+ # Item referenced by the `from` parameter. Can be: `inclusive` to include the List
149
+ # Item referenced by the `from` parameter or `exclusive` to start with the next
150
+ # List Item. The default value is `inclusive`.
138
151
  # @param [String] page_token PageToken provided by the API
139
152
  # @param [Integer] page_number Page Number, this value is simply for client state
140
153
  # @param [Integer] page_size Number of records to return, defaults to 50
@@ -218,9 +231,12 @@ module Twilio
218
231
  ##
219
232
  # Initialize the SyncListItemContext
220
233
  # @param [Version] version Version that contains the resource
221
- # @param [String] service_sid The service_sid
222
- # @param [String] list_sid The list_sid
223
- # @param [String] index The index
234
+ # @param [String] service_sid The SID of the [Sync
235
+ # Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Item
236
+ # resource to fetch.
237
+ # @param [String] list_sid The SID of the Sync List with the Sync List Item
238
+ # resource to fetch. Can be the Sync List resource's `sid` or its `unique_name`.
239
+ # @param [String] index The index of the Sync List Item resource to fetch.
224
240
  # @return [SyncListItemContext] SyncListItemContext
225
241
  def initialize(version, service_sid, list_sid, index)
226
242
  super(version)
@@ -253,25 +269,26 @@ module Twilio
253
269
 
254
270
  ##
255
271
  # Deletes the SyncListItemInstance
256
- # @return [Boolean] true if delete succeeds, true otherwise
272
+ # @return [Boolean] true if delete succeeds, false otherwise
257
273
  def delete
258
274
  @version.delete('delete', @uri)
259
275
  end
260
276
 
261
277
  ##
262
278
  # Update the SyncListItemInstance
263
- # @param [Hash] data Contains arbitrary user-defined, schema-less data that this
264
- # List Item stores, represented by a JSON object, up to 16KB.
265
- # @param [String] ttl Alias for item_ttl. If both are provided, this value is
266
- # ignored.
267
- # @param [String] item_ttl Time-to-live of this item in seconds, defaults to no
268
- # expiration. In the range [1, 31 536 000 (1 year)], or 0 for infinity. Upon
269
- # expiry, the list item will be cleaned up at least in a matter of hours, and
270
- # often within seconds, making this a good tool for garbage management.
271
- # @param [String] collection_ttl Time-to-live of this item's parent List in
272
- # seconds, defaults to no expiration. In the range [1, 31 536 000 (1 year)], or 0
273
- # for infinity. This parameter can only be used when the list item's data or ttl
274
- # is updated in the same request.
279
+ # @param [Hash] data A JSON string that represents an arbitrary, schema-less
280
+ # object that the List Item stores. Can be up to 16KB in length.
281
+ # @param [String] ttl An alias for `item_ttl`. If both parameters are provided,
282
+ # this value is ignored.
283
+ # @param [String] item_ttl How long, in seconds, before the List Item expires
284
+ # (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year).
285
+ # The default value is `0`, which means the List Item does not expire. The List
286
+ # Item might not be deleted immediately after it expires.
287
+ # @param [String] collection_ttl How long, in seconds, before the List Item's
288
+ # parent Sync List expires (time-to-live) and is deleted. Can be an integer from
289
+ # 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync
290
+ # List does not expire. The Sync List might not be deleted immediately after it
291
+ # expires.
275
292
  # @return [SyncListItemInstance] Updated SyncListItemInstance
276
293
  def update(data: :unset, ttl: :unset, item_ttl: :unset, collection_ttl: :unset)
277
294
  data = Twilio::Values.of({
@@ -318,11 +335,11 @@ module Twilio
318
335
  # Initialize the SyncListItemInstance
319
336
  # @param [Version] version Version that contains the resource
320
337
  # @param [Hash] payload payload that contains response from Twilio
321
- # @param [String] service_sid The unique SID identifier of the Service Instance
322
- # that hosts this List object.
323
- # @param [String] list_sid The unique 34-character SID identifier of the List
324
- # containing this Item.
325
- # @param [String] index The index
338
+ # @param [String] service_sid The SID of the [Sync
339
+ # Service](https://www.twilio.com/docs/sync/api/service) the resource is
340
+ # associated with.
341
+ # @param [String] list_sid The SID of the Sync List that contains the List Item.
342
+ # @param [String] index The index of the Sync List Item resource to fetch.
326
343
  # @return [SyncListItemInstance] SyncListItemInstance
327
344
  def initialize(version, payload, service_sid: nil, list_sid: nil, index: nil)
328
345
  super(version)
@@ -368,67 +385,67 @@ module Twilio
368
385
  end
369
386
 
370
387
  ##
371
- # @return [String] Contains the numeric index of this List Item.
388
+ # @return [String] The automatically generated index of the List Item
372
389
  def index
373
390
  @properties['index']
374
391
  end
375
392
 
376
393
  ##
377
- # @return [String] The unique SID identifier of the Twilio Account.
394
+ # @return [String] The SID of the Account that created the resource
378
395
  def account_sid
379
396
  @properties['account_sid']
380
397
  end
381
398
 
382
399
  ##
383
- # @return [String] The unique SID identifier of the Service Instance that hosts this List object.
400
+ # @return [String] The SID of the Sync Service that the resource is associated with
384
401
  def service_sid
385
402
  @properties['service_sid']
386
403
  end
387
404
 
388
405
  ##
389
- # @return [String] The unique 34-character SID identifier of the List containing this Item.
406
+ # @return [String] The SID of the Sync List that contains the List Item
390
407
  def list_sid
391
408
  @properties['list_sid']
392
409
  end
393
410
 
394
411
  ##
395
- # @return [String] The absolute URL for this item.
412
+ # @return [String] The absolute URL of the List Item resource
396
413
  def url
397
414
  @properties['url']
398
415
  end
399
416
 
400
417
  ##
401
- # @return [String] Contains the current revision of this item, represented by a string identifier.
418
+ # @return [String] The current revision of the item, represented as a string
402
419
  def revision
403
420
  @properties['revision']
404
421
  end
405
422
 
406
423
  ##
407
- # @return [Hash] Contains arbitrary user-defined, schema-less data that this List Item stores, represented by a JSON object, up to 16KB.
424
+ # @return [Hash] An arbitrary, schema-less object that the List Item stores
408
425
  def data
409
426
  @properties['data']
410
427
  end
411
428
 
412
429
  ##
413
- # @return [Time] Contains the date this item expires and gets deleted automatically.
430
+ # @return [Time] The ISO 8601 date and time in GMT when the List Item expires
414
431
  def date_expires
415
432
  @properties['date_expires']
416
433
  end
417
434
 
418
435
  ##
419
- # @return [Time] The date this item was created, given in UTC ISO 8601 format.
436
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was created
420
437
  def date_created
421
438
  @properties['date_created']
422
439
  end
423
440
 
424
441
  ##
425
- # @return [Time] Specifies the date this item was last updated, given in UTC ISO 8601 format.
442
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
426
443
  def date_updated
427
444
  @properties['date_updated']
428
445
  end
429
446
 
430
447
  ##
431
- # @return [String] The identity of this item's creator.
448
+ # @return [String] The identity of the List Item's creator
432
449
  def created_by
433
450
  @properties['created_by']
434
451
  end
@@ -442,25 +459,26 @@ module Twilio
442
459
 
443
460
  ##
444
461
  # Deletes the SyncListItemInstance
445
- # @return [Boolean] true if delete succeeds, true otherwise
462
+ # @return [Boolean] true if delete succeeds, false otherwise
446
463
  def delete
447
464
  context.delete
448
465
  end
449
466
 
450
467
  ##
451
468
  # Update the SyncListItemInstance
452
- # @param [Hash] data Contains arbitrary user-defined, schema-less data that this
453
- # List Item stores, represented by a JSON object, up to 16KB.
454
- # @param [String] ttl Alias for item_ttl. If both are provided, this value is
455
- # ignored.
456
- # @param [String] item_ttl Time-to-live of this item in seconds, defaults to no
457
- # expiration. In the range [1, 31 536 000 (1 year)], or 0 for infinity. Upon
458
- # expiry, the list item will be cleaned up at least in a matter of hours, and
459
- # often within seconds, making this a good tool for garbage management.
460
- # @param [String] collection_ttl Time-to-live of this item's parent List in
461
- # seconds, defaults to no expiration. In the range [1, 31 536 000 (1 year)], or 0
462
- # for infinity. This parameter can only be used when the list item's data or ttl
463
- # is updated in the same request.
469
+ # @param [Hash] data A JSON string that represents an arbitrary, schema-less
470
+ # object that the List Item stores. Can be up to 16KB in length.
471
+ # @param [String] ttl An alias for `item_ttl`. If both parameters are provided,
472
+ # this value is ignored.
473
+ # @param [String] item_ttl How long, in seconds, before the List Item expires
474
+ # (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year).
475
+ # The default value is `0`, which means the List Item does not expire. The List
476
+ # Item might not be deleted immediately after it expires.
477
+ # @param [String] collection_ttl How long, in seconds, before the List Item's
478
+ # parent Sync List expires (time-to-live) and is deleted. Can be an integer from
479
+ # 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync
480
+ # List does not expire. The Sync List might not be deleted immediately after it
481
+ # expires.
464
482
  # @return [SyncListItemInstance] Updated SyncListItemInstance
465
483
  def update(data: :unset, ttl: :unset, item_ttl: :unset, collection_ttl: :unset)
466
484
  context.update(data: data, ttl: ttl, item_ttl: item_ttl, collection_ttl: collection_ttl, )
@@ -18,10 +18,11 @@ module Twilio
18
18
  ##
19
19
  # Initialize the SyncListPermissionList
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] list_sid The unique SID identifier of the Sync List 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] list_sid The SID of the Sync List to which the Permission
25
+ # applies.
25
26
  # @return [SyncListPermissionList] SyncListPermissionList
26
27
  def initialize(version, service_sid: nil, list_sid: nil)
27
28
  super(version)
@@ -162,12 +163,13 @@ module Twilio
162
163
  ##
163
164
  # Initialize the SyncListPermissionContext
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] list_sid Identifier of the Sync List. 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.
166
+ # @param [String] service_sid The SID of the [Sync
167
+ # Service](https://www.twilio.com/docs/sync/api/service) with the Sync List
168
+ # Permission resource to fetch.
169
+ # @param [String] list_sid The SID of the Sync List with the Sync List Permission
170
+ # resource to fetch. Can be the Sync List resource's `sid` or its `unique_name`.
171
+ # @param [String] identity The application-defined string that uniquely identifies
172
+ # the User's Sync List Permission resource to fetch.
171
173
  # @return [SyncListPermissionContext] SyncListPermissionContext
172
174
  def initialize(version, service_sid, list_sid, identity)
173
175
  super(version)
@@ -200,19 +202,17 @@ module Twilio
200
202
 
201
203
  ##
202
204
  # Deletes the SyncListPermissionInstance
203
- # @return [Boolean] true if delete succeeds, true otherwise
205
+ # @return [Boolean] true if delete succeeds, false otherwise
204
206
  def delete
205
207
  @version.delete('delete', @uri)
206
208
  end
207
209
 
208
210
  ##
209
211
  # Update the SyncListPermissionInstance
210
- # @param [Boolean] read Boolean flag specifying whether the identity can read the
211
- # Sync List.
212
- # @param [Boolean] write Boolean flag specifying whether the identity can create,
213
- # update and delete Items of the Sync List.
214
- # @param [Boolean] manage Boolean flag specifying whether the identity can delete
215
- # the Sync List.
212
+ # @param [Boolean] read Whether the identity can read the Sync List and its Items.
213
+ # @param [Boolean] write Whether the identity can create, update and delete Items
214
+ # of the Sync List.
215
+ # @param [Boolean] manage Whether the identity can delete the Sync List.
216
216
  # @return [SyncListPermissionInstance] Updated SyncListPermissionInstance
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 SyncListPermissionInstance
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] list_sid The unique SID identifier of the Sync List 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.
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] list_sid The SID of the Sync List to which the Permission
261
+ # applies.
262
+ # @param [String] identity The application-defined string that uniquely identifies
263
+ # the User's Sync List Permission resource to fetch.
263
264
  # @return [SyncListPermissionInstance] SyncListPermissionInstance
264
265
  def initialize(version, payload, service_sid: nil, list_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 List SID.
318
+ # @return [String] The SID of the Sync List to which the Permission applies
318
319
  def list_sid
319
320
  @properties['list_sid']
320
321
  end
321
322
 
322
323
  ##
323
- # @return [String] Identity of the user to whom the Sync List Permission applies.
324
+ # @return [String] The identity of the user to whom the Sync List 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 List Permission.
348
+ # @return [String] The absolute URL of the Sync List Permission resource
348
349
  def url
349
350
  @properties['url']
350
351
  end
@@ -358,19 +359,17 @@ module Twilio
358
359
 
359
360
  ##
360
361
  # Deletes the SyncListPermissionInstance
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 SyncListPermissionInstance
368
- # @param [Boolean] read Boolean flag specifying whether the identity can read the
369
- # Sync List.
370
- # @param [Boolean] write Boolean flag specifying whether the identity can create,
371
- # update and delete Items of the Sync List.
372
- # @param [Boolean] manage Boolean flag specifying whether the identity can delete
373
- # the Sync List.
369
+ # @param [Boolean] read Whether the identity can read the Sync List and its Items.
370
+ # @param [Boolean] write Whether the identity can create, update and delete Items
371
+ # of the Sync List.
372
+ # @param [Boolean] manage Whether the identity can delete the Sync List.
374
373
  # @return [SyncListPermissionInstance] Updated SyncListPermissionInstance
375
374
  def update(read: nil, write: nil, manage: nil)
376
375
  context.update(read: read, write: write, manage: manage, )