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