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
@@ -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
|
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] 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
|
38
|
-
# List Item stores
|
39
|
-
# @param [String] ttl
|
40
|
-
# ignored.
|
41
|
-
# @param [String] item_ttl
|
42
|
-
#
|
43
|
-
#
|
44
|
-
#
|
45
|
-
# @param [String] collection_ttl
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
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
|
77
|
-
#
|
78
|
-
#
|
79
|
-
#
|
80
|
-
#
|
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
|
97
|
-
#
|
98
|
-
#
|
99
|
-
#
|
100
|
-
#
|
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
|
134
|
-
#
|
135
|
-
#
|
136
|
-
#
|
137
|
-
#
|
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
|
222
|
-
#
|
223
|
-
#
|
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,
|
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
|
264
|
-
# List Item stores
|
265
|
-
# @param [String] ttl
|
266
|
-
# ignored.
|
267
|
-
# @param [String] item_ttl
|
268
|
-
#
|
269
|
-
#
|
270
|
-
#
|
271
|
-
# @param [String] collection_ttl
|
272
|
-
#
|
273
|
-
#
|
274
|
-
#
|
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
|
322
|
-
#
|
323
|
-
#
|
324
|
-
#
|
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]
|
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
|
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
|
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
|
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
|
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]
|
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]
|
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]
|
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
|
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]
|
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
|
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,
|
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
|
453
|
-
# List Item stores
|
454
|
-
# @param [String] ttl
|
455
|
-
# ignored.
|
456
|
-
# @param [String] item_ttl
|
457
|
-
#
|
458
|
-
#
|
459
|
-
#
|
460
|
-
# @param [String] collection_ttl
|
461
|
-
#
|
462
|
-
#
|
463
|
-
#
|
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
|
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] 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
|
166
|
-
#
|
167
|
-
#
|
168
|
-
#
|
169
|
-
#
|
170
|
-
#
|
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,
|
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
|
211
|
-
#
|
212
|
-
#
|
213
|
-
#
|
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
|
258
|
-
#
|
259
|
-
#
|
260
|
-
#
|
261
|
-
#
|
262
|
-
#
|
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]
|
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
|
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
|
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]
|
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
|
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,
|
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
|
369
|
-
#
|
370
|
-
#
|
371
|
-
#
|
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, )
|