twilio-ruby 5.25.4 → 5.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 SyncMapList
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 Map 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 [SyncMapList] SyncMapList
23
24
  def initialize(version, service_sid: nil)
24
25
  super(version)
@@ -31,11 +32,15 @@ module Twilio
31
32
  ##
32
33
  # Retrieve a single page of SyncMapInstance records from the API.
33
34
  # Request is executed immediately.
34
- # @param [String] unique_name Human-readable name for this map
35
- # @param [String] ttl Alias for collection_ttl. If both are provided, this value
36
- # is ignored.
37
- # @param [String] collection_ttl Time-to-live of this Map in seconds, defaults to
38
- # no 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. It can be used as an alternative to the `sid` in the
37
+ # URL path to address the resource.
38
+ # @param [String] ttl An alias for `collection_ttl`. If both parameters are
39
+ # provided, this value is ignored.
40
+ # @param [String] collection_ttl How long, in seconds, before the Sync Map expires
41
+ # (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year).
42
+ # The default value is `0`, which means the Sync Map does not expire. The Sync Map
43
+ # might not be deleted immediately after it expires.
39
44
  # @return [SyncMapInstance] Newly created SyncMapInstance
40
45
  def create(unique_name: :unset, ttl: :unset, collection_ttl: :unset)
41
46
  data = Twilio::Values.of({
@@ -179,8 +184,10 @@ module Twilio
179
184
  ##
180
185
  # Initialize the SyncMapContext
181
186
  # @param [Version] version Version that contains the resource
182
- # @param [String] service_sid The service_sid
183
- # @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 Sync Map
189
+ # resource to fetch.
190
+ # @param [String] sid The SID of the Sync Map resource to fetch.
184
191
  # @return [SyncMapContext] SyncMapContext
185
192
  def initialize(version, service_sid, sid)
186
193
  super(version)
@@ -211,17 +218,19 @@ module Twilio
211
218
 
212
219
  ##
213
220
  # Deletes the SyncMapInstance
214
- # @return [Boolean] true if delete succeeds, true otherwise
221
+ # @return [Boolean] true if delete succeeds, false otherwise
215
222
  def delete
216
223
  @version.delete('delete', @uri)
217
224
  end
218
225
 
219
226
  ##
220
227
  # Update the SyncMapInstance
221
- # @param [String] ttl Alias for collection_ttl. If both are provided, this value
222
- # is ignored.
223
- # @param [String] collection_ttl New time-to-live of this Map in seconds. In the
224
- # range [1, 31 536 000 (1 year)], or 0 for infinity.
228
+ # @param [String] ttl An alias for `collection_ttl`. If both parameters are
229
+ # provided, this value is ignored.
230
+ # @param [String] collection_ttl How long, in seconds, before the Sync Map expires
231
+ # (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year).
232
+ # The default value is `0`, which means the Sync Map does not expire. The Sync Map
233
+ # might not be deleted immediately after it expires.
225
234
  # @return [SyncMapInstance] Updated SyncMapInstance
226
235
  def update(ttl: :unset, collection_ttl: :unset)
227
236
  data = Twilio::Values.of({'Ttl' => ttl, 'CollectionTtl' => collection_ttl, })
@@ -301,9 +310,10 @@ module Twilio
301
310
  # Initialize the SyncMapInstance
302
311
  # @param [Version] version Version that contains the resource
303
312
  # @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 Map object.
306
- # @param [String] sid The sid
313
+ # @param [String] service_sid The SID of the [Sync
314
+ # Service](https://www.twilio.com/docs/sync/api/service) the resource is
315
+ # associated with.
316
+ # @param [String] sid The SID of the Sync Map resource to fetch.
307
317
  # @return [SyncMapInstance] SyncMapInstance
308
318
  def initialize(version, payload, service_sid: nil, sid: nil)
309
319
  super(version)
@@ -340,67 +350,67 @@ module Twilio
340
350
  end
341
351
 
342
352
  ##
343
- # @return [String] The unique 34-character SID identifier of the Map.
353
+ # @return [String] The unique string that identifies the resource
344
354
  def sid
345
355
  @properties['sid']
346
356
  end
347
357
 
348
358
  ##
349
- # @return [String] The unique and addressable name of this Map.
359
+ # @return [String] An application-defined string that uniquely identifies the resource
350
360
  def unique_name
351
361
  @properties['unique_name']
352
362
  end
353
363
 
354
364
  ##
355
- # @return [String] The unique SID identifier of the Twilio Account.
365
+ # @return [String] The SID of the Account that created the resource
356
366
  def account_sid
357
367
  @properties['account_sid']
358
368
  end
359
369
 
360
370
  ##
361
- # @return [String] The unique SID identifier of the Service Instance that hosts this Map object.
371
+ # @return [String] The SID of the Sync Service that the resource is associated with
362
372
  def service_sid
363
373
  @properties['service_sid']
364
374
  end
365
375
 
366
376
  ##
367
- # @return [String] The absolute URL for this Map.
377
+ # @return [String] The absolute URL of the Sync Map resource
368
378
  def url
369
379
  @properties['url']
370
380
  end
371
381
 
372
382
  ##
373
- # @return [String] A dictionary of URL links to nested resources of this Map.
383
+ # @return [String] The URLs of the Sync Map's nested resources
374
384
  def links
375
385
  @properties['links']
376
386
  end
377
387
 
378
388
  ##
379
- # @return [String] Contains the current revision of this Map, represented by a string identifier.
389
+ # @return [String] The current revision of the Sync Map, represented as a string
380
390
  def revision
381
391
  @properties['revision']
382
392
  end
383
393
 
384
394
  ##
385
- # @return [Time] Contains the date this Map expires and gets deleted automatically.
395
+ # @return [Time] The ISO 8601 date and time in GMT when the Sync Map expires
386
396
  def date_expires
387
397
  @properties['date_expires']
388
398
  end
389
399
 
390
400
  ##
391
- # @return [Time] The date this Map was created, given in UTC ISO 8601 format.
401
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was created
392
402
  def date_created
393
403
  @properties['date_created']
394
404
  end
395
405
 
396
406
  ##
397
- # @return [Time] Specifies the date this Map was last updated, given in UTC ISO 8601 format.
407
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
398
408
  def date_updated
399
409
  @properties['date_updated']
400
410
  end
401
411
 
402
412
  ##
403
- # @return [String] The identity of the Map creator.
413
+ # @return [String] The identity of the Sync Map's creator
404
414
  def created_by
405
415
  @properties['created_by']
406
416
  end
@@ -414,17 +424,19 @@ module Twilio
414
424
 
415
425
  ##
416
426
  # Deletes the SyncMapInstance
417
- # @return [Boolean] true if delete succeeds, true otherwise
427
+ # @return [Boolean] true if delete succeeds, false otherwise
418
428
  def delete
419
429
  context.delete
420
430
  end
421
431
 
422
432
  ##
423
433
  # Update the SyncMapInstance
424
- # @param [String] ttl Alias for collection_ttl. If both are provided, this value
425
- # is ignored.
426
- # @param [String] collection_ttl New time-to-live of this Map in seconds. In the
427
- # range [1, 31 536 000 (1 year)], or 0 for infinity.
434
+ # @param [String] ttl An alias for `collection_ttl`. If both parameters are
435
+ # provided, this value is ignored.
436
+ # @param [String] collection_ttl How long, in seconds, before the Sync Map expires
437
+ # (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year).
438
+ # The default value is `0`, which means the Sync Map does not expire. The Sync Map
439
+ # might not be deleted immediately after it expires.
428
440
  # @return [SyncMapInstance] Updated SyncMapInstance
429
441
  def update(ttl: :unset, collection_ttl: :unset)
430
442
  context.update(ttl: ttl, collection_ttl: collection_ttl, )
@@ -18,10 +18,10 @@ module Twilio
18
18
  ##
19
19
  # Initialize the SyncMapItemList
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 Map object.
23
- # @param [String] map_sid The unique 34-character SID identifier of the Map
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] map_sid The SID of the Sync Map that contains the Map Item.
25
25
  # @return [SyncMapItemList] SyncMapItemList
26
26
  def initialize(version, service_sid: nil, map_sid: nil)
27
27
  super(version)
@@ -34,20 +34,21 @@ module Twilio
34
34
  ##
35
35
  # Retrieve a single page of SyncMapItemInstance records from the API.
36
36
  # Request is executed immediately.
37
- # @param [String] key The unique user-defined key of this Map Item. Up to 320
38
- # characters long.
39
- # @param [Hash] data Contains arbitrary user-defined, schema-less data that this
40
- # Map Item stores, represented by a JSON object, up to 16KB.
41
- # @param [String] ttl Alias for item_ttl. If both are provided, this value is
42
- # ignored.
43
- # @param [String] item_ttl Time-to-live of this item in seconds, defaults to no
44
- # expiration. In the range [1, 31 536 000 (1 year)], or 0 for infinity. Upon
45
- # expiry, the map item will be cleaned up at least in a matter of hours, and often
46
- # within seconds, making this a good tool for garbage management.
47
- # @param [String] collection_ttl Time-to-live of this item's parent Map in
48
- # seconds, defaults to no expiration. In the range [1, 31 536 000 (1 year)], or 0
49
- # for infinity. This parameter can only be used when the map item's data or ttl is
50
- # updated in the same request.
37
+ # @param [String] key The unique, user-defined key for the Map Item. Can be up to
38
+ # 320 characters long.
39
+ # @param [Hash] data A JSON string that represents an arbitrary, schema-less
40
+ # object that the Map Item stores. Can be up to 16KB in length.
41
+ # @param [String] ttl An alias for `item_ttl`. If both parameters are provided,
42
+ # this value is ignored.
43
+ # @param [String] item_ttl How long, in seconds, before the Map Item expires
44
+ # (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year).
45
+ # The default value is `0`, which means the Map Item does not expire. The Map
46
+ # Item might not be deleted immediately after it expires.
47
+ # @param [String] collection_ttl How long, in seconds, before the Map Item's
48
+ # parent Sync Map expires (time-to-live) and is deleted. Can be an integer from 0
49
+ # to 31,536,000 (1 year). The default value is `0`, which means the parent Sync
50
+ # Map does not expire. The Sync Map might not be deleted immediately after it
51
+ # expires.
51
52
  # @return [SyncMapItemInstance] Newly created SyncMapItemInstance
52
53
  def create(key: nil, data: nil, ttl: :unset, item_ttl: :unset, collection_ttl: :unset)
53
54
  data = Twilio::Values.of({
@@ -76,14 +77,17 @@ module Twilio
76
77
  # Lists SyncMapItemInstance records from the API as a list.
77
78
  # Unlike stream(), this operation is eager and will load `limit` records into
78
79
  # memory before returning.
79
- # @param [sync_map_item.QueryResultOrder] order A string; asc or desc. Map Items
80
- # are [ordered
80
+ # @param [sync_map_item.QueryResultOrder] order How to order the Map Items
81
+ # returned by their `key` value. Can be: `asc` (ascending) or `desc` (descending)
82
+ # and the default is ascending. Map Items are [ordered
81
83
  # lexicographically](https://en.wikipedia.org/wiki/Lexicographical_order) by Item
82
84
  # key.
83
- # @param [String] from The Item key offset (including the specified key). If not
84
- # present, query is performed from the start or end, depending on the Order query
85
- # parameter.
86
- # @param [sync_map_item.QueryFromBoundType] bounds The bounds
85
+ # @param [String] from The `key` of the first Sync Map Item resource to read. See
86
+ # also `bounds`.
87
+ # @param [sync_map_item.QueryFromBoundType] bounds Whether to include the Map Item
88
+ # referenced by the `from` parameter. Can be: `inclusive` to include the Map Item
89
+ # referenced by the `from` parameter or `exclusive` to start with the next Map
90
+ # Item. The default value is `inclusive`.
87
91
  # @param [Integer] limit Upper limit for the number of records to return. stream()
88
92
  # guarantees to never return more than limit. Default is no limit
89
93
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -99,14 +103,17 @@ module Twilio
99
103
  # Streams SyncMapItemInstance records from the API as an Enumerable.
100
104
  # This operation lazily loads records as efficiently as possible until the limit
101
105
  # is reached.
102
- # @param [sync_map_item.QueryResultOrder] order A string; asc or desc. Map Items
103
- # are [ordered
106
+ # @param [sync_map_item.QueryResultOrder] order How to order the Map Items
107
+ # returned by their `key` value. Can be: `asc` (ascending) or `desc` (descending)
108
+ # and the default is ascending. Map Items are [ordered
104
109
  # lexicographically](https://en.wikipedia.org/wiki/Lexicographical_order) by Item
105
110
  # key.
106
- # @param [String] from The Item key offset (including the specified key). If not
107
- # present, query is performed from the start or end, depending on the Order query
108
- # parameter.
109
- # @param [sync_map_item.QueryFromBoundType] bounds The bounds
111
+ # @param [String] from The `key` of the first Sync Map Item resource to read. See
112
+ # also `bounds`.
113
+ # @param [sync_map_item.QueryFromBoundType] bounds Whether to include the Map Item
114
+ # referenced by the `from` parameter. Can be: `inclusive` to include the Map Item
115
+ # referenced by the `from` parameter or `exclusive` to start with the next Map
116
+ # Item. The default value is `inclusive`.
110
117
  # @param [Integer] limit Upper limit for the number of records to return. stream()
111
118
  # guarantees to never return more than limit. Default is no limit.
112
119
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -139,14 +146,17 @@ module Twilio
139
146
  ##
140
147
  # Retrieve a single page of SyncMapItemInstance records from the API.
141
148
  # Request is executed immediately.
142
- # @param [sync_map_item.QueryResultOrder] order A string; asc or desc. Map Items
143
- # are [ordered
149
+ # @param [sync_map_item.QueryResultOrder] order How to order the Map Items
150
+ # returned by their `key` value. Can be: `asc` (ascending) or `desc` (descending)
151
+ # and the default is ascending. Map Items are [ordered
144
152
  # lexicographically](https://en.wikipedia.org/wiki/Lexicographical_order) by Item
145
153
  # key.
146
- # @param [String] from The Item key offset (including the specified key). If not
147
- # present, query is performed from the start or end, depending on the Order query
148
- # parameter.
149
- # @param [sync_map_item.QueryFromBoundType] bounds The bounds
154
+ # @param [String] from The `key` of the first Sync Map Item resource to read. See
155
+ # also `bounds`.
156
+ # @param [sync_map_item.QueryFromBoundType] bounds Whether to include the Map Item
157
+ # referenced by the `from` parameter. Can be: `inclusive` to include the Map Item
158
+ # referenced by the `from` parameter or `exclusive` to start with the next Map
159
+ # Item. The default value is `inclusive`.
150
160
  # @param [String] page_token PageToken provided by the API
151
161
  # @param [Integer] page_number Page Number, this value is simply for client state
152
162
  # @param [Integer] page_size Number of records to return, defaults to 50
@@ -230,9 +240,12 @@ module Twilio
230
240
  ##
231
241
  # Initialize the SyncMapItemContext
232
242
  # @param [Version] version Version that contains the resource
233
- # @param [String] service_sid The service_sid
234
- # @param [String] map_sid The map_sid
235
- # @param [String] key The key
243
+ # @param [String] service_sid The SID of the [Sync
244
+ # Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Item
245
+ # resource to fetch.
246
+ # @param [String] map_sid The SID of the Sync Map with the Sync Map Item resource
247
+ # to fetch. Can be the Sync Map's `sid` or its `unique_name`.
248
+ # @param [String] key The `key` value of the Sync Map Item resource to fetch.
236
249
  # @return [SyncMapItemContext] SyncMapItemContext
237
250
  def initialize(version, service_sid, map_sid, key)
238
251
  super(version)
@@ -265,25 +278,27 @@ module Twilio
265
278
 
266
279
  ##
267
280
  # Deletes the SyncMapItemInstance
268
- # @return [Boolean] true if delete succeeds, true otherwise
281
+ # @return [Boolean] true if delete succeeds, false otherwise
269
282
  def delete
270
283
  @version.delete('delete', @uri)
271
284
  end
272
285
 
273
286
  ##
274
287
  # Update the SyncMapItemInstance
275
- # @param [Hash] data Contains an arbitrary JSON object to be stored in this Map
276
- # Item. Serialized to string to respect HTTP form input, up to 16KB.
277
- # @param [String] ttl Alias for item_ttl. If both are provided, this value is
278
- # ignored.
279
- # @param [String] item_ttl Time-to-live of this item in seconds, defaults to no
280
- # expiration. In the range [1, 31 536 000 (1 year)], or 0 for infinity. Upon
281
- # expiry, the map item will be cleaned up at least in a matter of hours, and often
282
- # within seconds, making this a good tool for garbage management.
283
- # @param [String] collection_ttl Time-to-live of this item's parent Map in
284
- # seconds, defaults to no expiration. In the range [1, 31 536 000 (1 year)], or 0
285
- # for infinity. This parameter can only be used when the map item's data or ttl is
286
- # updated in the same request.
288
+ # @param [Hash] data A JSON string that represents an arbitrary, schema-less
289
+ # object that the Map Item stores. Can be up to 16KB in length.
290
+ # @param [String] ttl An alias for `item_ttl`. If both parameters are provided,
291
+ # this value is ignored.
292
+ # @param [String] item_ttl How long, in seconds, before the Map Item expires
293
+ # (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year).
294
+ # The default value is `0`, which means the Map Item does not expire. The Map Item
295
+ # might not be deleted immediately after it expires.
296
+ # @param [String] collection_ttl How long, in seconds, before the Map Item's
297
+ # parent Sync Map expires (time-to-live) and is deleted. Can be an integer from 0
298
+ # to 31,536,000 (1 year). The default value is `0`, which means the parent Sync
299
+ # Map does not expire. This parameter can only be used when the Map Item's `data`
300
+ # or `ttl` is updated in the same request. The Sync Map might not be deleted
301
+ # immediately after it expires.
287
302
  # @return [SyncMapItemInstance] Updated SyncMapItemInstance
288
303
  def update(data: :unset, ttl: :unset, item_ttl: :unset, collection_ttl: :unset)
289
304
  data = Twilio::Values.of({
@@ -330,11 +345,11 @@ module Twilio
330
345
  # Initialize the SyncMapItemInstance
331
346
  # @param [Version] version Version that contains the resource
332
347
  # @param [Hash] payload payload that contains response from Twilio
333
- # @param [String] service_sid The unique SID identifier of the Service Instance
334
- # that hosts this Map object.
335
- # @param [String] map_sid The unique 34-character SID identifier of the Map
336
- # containing this Item.
337
- # @param [String] key The key
348
+ # @param [String] service_sid The SID of the [Sync
349
+ # Service](https://www.twilio.com/docs/sync/api/service) the resource is
350
+ # associated with.
351
+ # @param [String] map_sid The SID of the Sync Map that contains the Map Item.
352
+ # @param [String] key The `key` value of the Sync Map Item resource to fetch.
338
353
  # @return [SyncMapItemInstance] SyncMapItemInstance
339
354
  def initialize(version, payload, service_sid: nil, map_sid: nil, key: nil)
340
355
  super(version)
@@ -376,67 +391,67 @@ module Twilio
376
391
  end
377
392
 
378
393
  ##
379
- # @return [String] The unique user-defined key of this Map Item.
394
+ # @return [String] The unique, user-defined key for the Map Item
380
395
  def key
381
396
  @properties['key']
382
397
  end
383
398
 
384
399
  ##
385
- # @return [String] The unique SID identifier of the Twilio Account.
400
+ # @return [String] The SID of the Account that created the resource
386
401
  def account_sid
387
402
  @properties['account_sid']
388
403
  end
389
404
 
390
405
  ##
391
- # @return [String] The unique SID identifier of the Service Instance that hosts this Map object.
406
+ # @return [String] The SID of the Sync Service that the resource is associated with
392
407
  def service_sid
393
408
  @properties['service_sid']
394
409
  end
395
410
 
396
411
  ##
397
- # @return [String] The unique 34-character SID identifier of the Map containing this Item.
412
+ # @return [String] The SID of the Sync Map that contains the Map Item
398
413
  def map_sid
399
414
  @properties['map_sid']
400
415
  end
401
416
 
402
417
  ##
403
- # @return [String] The absolute URL for this Map.
418
+ # @return [String] The absolute URL of the Map Item resource
404
419
  def url
405
420
  @properties['url']
406
421
  end
407
422
 
408
423
  ##
409
- # @return [String] Contains the current revision of this Map, represented by a string identifier.
424
+ # @return [String] The current revision of the Map Item, represented as a string
410
425
  def revision
411
426
  @properties['revision']
412
427
  end
413
428
 
414
429
  ##
415
- # @return [Hash] Contains arbitrary user-defined, schema-less data that this Map Item stores, represented by a JSON object, up to 16KB.
430
+ # @return [Hash] An arbitrary, schema-less object that the Map Item stores
416
431
  def data
417
432
  @properties['data']
418
433
  end
419
434
 
420
435
  ##
421
- # @return [Time] Contains the date this Map expires and gets deleted automatically.
436
+ # @return [Time] The ISO 8601 date and time in GMT when the Map Item expires
422
437
  def date_expires
423
438
  @properties['date_expires']
424
439
  end
425
440
 
426
441
  ##
427
- # @return [Time] The date this Map was created, given in UTC ISO 8601 format.
442
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was created
428
443
  def date_created
429
444
  @properties['date_created']
430
445
  end
431
446
 
432
447
  ##
433
- # @return [Time] Specifies the date this Map was last updated, given in UTC ISO 8601 format.
448
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
434
449
  def date_updated
435
450
  @properties['date_updated']
436
451
  end
437
452
 
438
453
  ##
439
- # @return [String] The identity of the Map creator.
454
+ # @return [String] The identity of the Map Item's creator
440
455
  def created_by
441
456
  @properties['created_by']
442
457
  end
@@ -450,25 +465,27 @@ module Twilio
450
465
 
451
466
  ##
452
467
  # Deletes the SyncMapItemInstance
453
- # @return [Boolean] true if delete succeeds, true otherwise
468
+ # @return [Boolean] true if delete succeeds, false otherwise
454
469
  def delete
455
470
  context.delete
456
471
  end
457
472
 
458
473
  ##
459
474
  # Update the SyncMapItemInstance
460
- # @param [Hash] data Contains an arbitrary JSON object to be stored in this Map
461
- # Item. Serialized to string to respect HTTP form input, up to 16KB.
462
- # @param [String] ttl Alias for item_ttl. If both are provided, this value is
463
- # ignored.
464
- # @param [String] item_ttl Time-to-live of this item in seconds, defaults to no
465
- # expiration. In the range [1, 31 536 000 (1 year)], or 0 for infinity. Upon
466
- # expiry, the map item will be cleaned up at least in a matter of hours, and often
467
- # within seconds, making this a good tool for garbage management.
468
- # @param [String] collection_ttl Time-to-live of this item's parent Map in
469
- # seconds, defaults to no expiration. In the range [1, 31 536 000 (1 year)], or 0
470
- # for infinity. This parameter can only be used when the map item's data or ttl is
471
- # updated in the same request.
475
+ # @param [Hash] data A JSON string that represents an arbitrary, schema-less
476
+ # object that the Map Item stores. Can be up to 16KB in length.
477
+ # @param [String] ttl An alias for `item_ttl`. If both parameters are provided,
478
+ # this value is ignored.
479
+ # @param [String] item_ttl How long, in seconds, before the Map Item expires
480
+ # (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year).
481
+ # The default value is `0`, which means the Map Item does not expire. The Map Item
482
+ # might not be deleted immediately after it expires.
483
+ # @param [String] collection_ttl How long, in seconds, before the Map Item's
484
+ # parent Sync Map expires (time-to-live) and is deleted. Can be an integer from 0
485
+ # to 31,536,000 (1 year). The default value is `0`, which means the parent Sync
486
+ # Map does not expire. This parameter can only be used when the Map Item's `data`
487
+ # or `ttl` is updated in the same request. The Sync Map might not be deleted
488
+ # immediately after it expires.
472
489
  # @return [SyncMapItemInstance] Updated SyncMapItemInstance
473
490
  def update(data: :unset, ttl: :unset, item_ttl: :unset, collection_ttl: :unset)
474
491
  context.update(data: data, ttl: ttl, item_ttl: item_ttl, collection_ttl: collection_ttl, )