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.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -3
- data/.travis.yml +3 -0
- data/CHANGES.md +24 -0
- data/README.md +22 -14
- data/lib/twilio-ruby/http/http_client.rb +4 -3
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +2 -2
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +10 -4
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb +2 -2
- 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
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +2 -2
- data/lib/twilio-ruby/rest/authy/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/authy/v1/service/entity.rb +2 -2
- data/lib/twilio-ruby/rest/authy/v1/service/entity/factor.rb +2 -2
- data/lib/twilio-ruby/rest/authy/v1/service/entity/factor/challenge.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v2.rb +2 -4
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +12 -14
- data/lib/twilio-ruby/rest/chat/v2/service.rb +35 -43
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +17 -19
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +28 -24
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +17 -16
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +43 -44
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +38 -37
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +25 -26
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +19 -17
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +17 -17
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +25 -27
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +8 -5
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +32 -6
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +30 -6
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +27 -6
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +2 -2
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +2 -2
- data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +14 -0
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +2 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +12 -14
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +35 -43
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +17 -19
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +28 -24
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +17 -16
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +43 -44
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +38 -37
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +25 -26
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +19 -17
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +17 -17
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +25 -27
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +8 -5
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/session.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/session/message.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/session/participant.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/session/webhook.rb +2 -2
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +2 -2
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +2 -2
- data/lib/twilio-ruby/rest/notify/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +2 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +2 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +2 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +2 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +2 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +2 -2
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +2 -2
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +2 -2
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +10 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant.rb +2 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +2 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +2 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +2 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +2 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +2 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +2 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +2 -2
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +2 -2
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +2 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +2 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +2 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +2 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +2 -2
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +2 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +2 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +2 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +2 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +2 -2
- data/lib/twilio-ruby/rest/studio.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v1.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +13 -13
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +25 -24
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +11 -11
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +20 -20
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +15 -17
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +44 -38
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +12 -11
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +21 -20
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +18 -17
- data/lib/twilio-ruby/rest/sync.rb +2 -1
- data/lib/twilio-ruby/rest/sync/v1.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service.rb +90 -93
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +46 -33
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +36 -38
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +44 -31
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +94 -76
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +37 -38
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +45 -33
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +98 -81
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +35 -38
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +39 -28
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +14 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +2 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +2 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +2 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +2 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +2 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +2 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/terminating_sip_domain.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/service.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +2 -2
- data/lib/twilio-ruby/rest/video/v1/composition.rb +2 -2
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +2 -2
- data/lib/twilio-ruby/rest/video/v1/recording.rb +2 -2
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +2 -2
- data/lib/twilio-ruby/rest/wireless.rb +3 -3
- data/lib/twilio-ruby/rest/wireless/v1.rb +3 -6
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +54 -52
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +64 -65
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +147 -141
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +34 -28
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +32 -32
- data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +19 -19
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/call_spec.rb +45 -0
- data/spec/integration/api/v2010/account/message_spec.rb +37 -0
- data/spec/integration/conversations/v1/conversation/message_spec.rb +5 -0
- data/spec/integration/conversations/v1/conversation/participant_spec.rb +8 -10
- data/spec/integration/conversations/v1/conversation_spec.rb +4 -0
- data/spec/integration/flex_api/v1/configuration_spec.rb +24 -0
- data/spec/integration/preview/trusted_comms/branded_call_spec.rb +1 -0
- data/spec/integration/verify/v2/service/verification_spec.rb +1 -1
- 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
|
21
|
-
#
|
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
|
35
|
-
#
|
36
|
-
#
|
37
|
-
# @param [String]
|
38
|
-
#
|
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
|
183
|
-
#
|
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,
|
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
|
222
|
-
# is ignored.
|
223
|
-
# @param [String] collection_ttl
|
224
|
-
#
|
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
|
305
|
-
#
|
306
|
-
#
|
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
|
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]
|
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
|
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
|
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
|
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]
|
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]
|
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]
|
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
|
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]
|
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,
|
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
|
425
|
-
# is ignored.
|
426
|
-
# @param [String] collection_ttl
|
427
|
-
#
|
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
|
22
|
-
#
|
23
|
-
#
|
24
|
-
#
|
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
|
38
|
-
# characters long.
|
39
|
-
# @param [Hash] data
|
40
|
-
# Map Item stores
|
41
|
-
# @param [String] ttl
|
42
|
-
# ignored.
|
43
|
-
# @param [String] item_ttl
|
44
|
-
#
|
45
|
-
#
|
46
|
-
#
|
47
|
-
# @param [String] collection_ttl
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
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
|
80
|
-
#
|
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
|
84
|
-
#
|
85
|
-
#
|
86
|
-
#
|
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
|
103
|
-
#
|
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
|
107
|
-
#
|
108
|
-
#
|
109
|
-
#
|
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
|
143
|
-
#
|
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
|
147
|
-
#
|
148
|
-
#
|
149
|
-
#
|
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
|
234
|
-
#
|
235
|
-
#
|
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,
|
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
|
276
|
-
#
|
277
|
-
# @param [String] ttl
|
278
|
-
# ignored.
|
279
|
-
# @param [String] item_ttl
|
280
|
-
#
|
281
|
-
#
|
282
|
-
#
|
283
|
-
# @param [String] collection_ttl
|
284
|
-
#
|
285
|
-
#
|
286
|
-
#
|
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
|
334
|
-
#
|
335
|
-
#
|
336
|
-
#
|
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
|
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
|
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
|
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
|
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
|
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]
|
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]
|
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]
|
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
|
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]
|
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,
|
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
|
461
|
-
#
|
462
|
-
# @param [String] ttl
|
463
|
-
# ignored.
|
464
|
-
# @param [String] item_ttl
|
465
|
-
#
|
466
|
-
#
|
467
|
-
#
|
468
|
-
# @param [String] collection_ttl
|
469
|
-
#
|
470
|
-
#
|
471
|
-
#
|
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, )
|