twilio-ruby 5.25.4 → 5.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 SyncMapPermissionList
|
|
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 to which the Permission applies.
|
|
25
25
|
# @return [SyncMapPermissionList] SyncMapPermissionList
|
|
26
26
|
def initialize(version, service_sid: nil, map_sid: nil)
|
|
27
27
|
super(version)
|
|
@@ -162,12 +162,13 @@ module Twilio
|
|
|
162
162
|
##
|
|
163
163
|
# Initialize the SyncMapPermissionContext
|
|
164
164
|
# @param [Version] version Version that contains the resource
|
|
165
|
-
# @param [String] service_sid
|
|
166
|
-
#
|
|
167
|
-
#
|
|
168
|
-
#
|
|
169
|
-
#
|
|
170
|
-
#
|
|
165
|
+
# @param [String] service_sid The SID of the [Sync
|
|
166
|
+
# Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map
|
|
167
|
+
# Permission resource to fetch. Can be the Service's `sid` value or `default`.
|
|
168
|
+
# @param [String] map_sid The SID of the Sync Map with the Sync Map Permission
|
|
169
|
+
# resource to fetch. Can be the Sync Map's `sid` or its `unique_name`.
|
|
170
|
+
# @param [String] identity The application-defined string that uniquely identifies
|
|
171
|
+
# the User's Sync Map Permission resource to fetch.
|
|
171
172
|
# @return [SyncMapPermissionContext] SyncMapPermissionContext
|
|
172
173
|
def initialize(version, service_sid, map_sid, identity)
|
|
173
174
|
super(version)
|
|
@@ -200,19 +201,17 @@ module Twilio
|
|
|
200
201
|
|
|
201
202
|
##
|
|
202
203
|
# Deletes the SyncMapPermissionInstance
|
|
203
|
-
# @return [Boolean] true if delete succeeds,
|
|
204
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
204
205
|
def delete
|
|
205
206
|
@version.delete('delete', @uri)
|
|
206
207
|
end
|
|
207
208
|
|
|
208
209
|
##
|
|
209
210
|
# Update the SyncMapPermissionInstance
|
|
210
|
-
# @param [Boolean] read
|
|
211
|
-
#
|
|
212
|
-
#
|
|
213
|
-
#
|
|
214
|
-
# @param [Boolean] manage Boolean flag specifying whether the identity can delete
|
|
215
|
-
# the Sync Map.
|
|
211
|
+
# @param [Boolean] read Whether the identity can read the Sync Map and its Items.
|
|
212
|
+
# @param [Boolean] write Whether the identity can create, update and delete Items
|
|
213
|
+
# of the Sync Map.
|
|
214
|
+
# @param [Boolean] manage Whether the identity can delete the Sync Map.
|
|
216
215
|
# @return [SyncMapPermissionInstance] Updated SyncMapPermissionInstance
|
|
217
216
|
def update(read: nil, write: nil, manage: nil)
|
|
218
217
|
data = Twilio::Values.of({'Read' => read, 'Write' => write, 'Manage' => manage, })
|
|
@@ -254,12 +253,12 @@ module Twilio
|
|
|
254
253
|
# Initialize the SyncMapPermissionInstance
|
|
255
254
|
# @param [Version] version Version that contains the resource
|
|
256
255
|
# @param [Hash] payload payload that contains response from Twilio
|
|
257
|
-
# @param [String] service_sid The
|
|
258
|
-
#
|
|
259
|
-
#
|
|
260
|
-
#
|
|
261
|
-
# @param [String] identity
|
|
262
|
-
#
|
|
256
|
+
# @param [String] service_sid The SID of the [Sync
|
|
257
|
+
# Service](https://www.twilio.com/docs/sync/api/service) the resource is
|
|
258
|
+
# associated with.
|
|
259
|
+
# @param [String] map_sid The SID of the Sync Map to which the Permission applies.
|
|
260
|
+
# @param [String] identity The application-defined string that uniquely identifies
|
|
261
|
+
# the User's Sync Map Permission resource to fetch.
|
|
263
262
|
# @return [SyncMapPermissionInstance] SyncMapPermissionInstance
|
|
264
263
|
def initialize(version, payload, service_sid: nil, map_sid: nil, identity: nil)
|
|
265
264
|
super(version)
|
|
@@ -302,49 +301,49 @@ module Twilio
|
|
|
302
301
|
end
|
|
303
302
|
|
|
304
303
|
##
|
|
305
|
-
# @return [String]
|
|
304
|
+
# @return [String] The SID of the Account that created the resource
|
|
306
305
|
def account_sid
|
|
307
306
|
@properties['account_sid']
|
|
308
307
|
end
|
|
309
308
|
|
|
310
309
|
##
|
|
311
|
-
# @return [String] Sync Service
|
|
310
|
+
# @return [String] The SID of the Sync Service that the resource is associated with
|
|
312
311
|
def service_sid
|
|
313
312
|
@properties['service_sid']
|
|
314
313
|
end
|
|
315
314
|
|
|
316
315
|
##
|
|
317
|
-
# @return [String] Sync Map SID
|
|
316
|
+
# @return [String] Sync Map SID
|
|
318
317
|
def map_sid
|
|
319
318
|
@properties['map_sid']
|
|
320
319
|
end
|
|
321
320
|
|
|
322
321
|
##
|
|
323
|
-
# @return [String]
|
|
322
|
+
# @return [String] The identity of the user to whom the Sync Document Permission applies
|
|
324
323
|
def identity
|
|
325
324
|
@properties['identity']
|
|
326
325
|
end
|
|
327
326
|
|
|
328
327
|
##
|
|
329
|
-
# @return [Boolean] Read access
|
|
328
|
+
# @return [Boolean] Read access
|
|
330
329
|
def read
|
|
331
330
|
@properties['read']
|
|
332
331
|
end
|
|
333
332
|
|
|
334
333
|
##
|
|
335
|
-
# @return [Boolean] Write access
|
|
334
|
+
# @return [Boolean] Write access
|
|
336
335
|
def write
|
|
337
336
|
@properties['write']
|
|
338
337
|
end
|
|
339
338
|
|
|
340
339
|
##
|
|
341
|
-
# @return [Boolean] Manage access
|
|
340
|
+
# @return [Boolean] Manage access
|
|
342
341
|
def manage
|
|
343
342
|
@properties['manage']
|
|
344
343
|
end
|
|
345
344
|
|
|
346
345
|
##
|
|
347
|
-
# @return [String] URL of
|
|
346
|
+
# @return [String] The absolute URL of the Sync Map Permission resource
|
|
348
347
|
def url
|
|
349
348
|
@properties['url']
|
|
350
349
|
end
|
|
@@ -358,19 +357,17 @@ module Twilio
|
|
|
358
357
|
|
|
359
358
|
##
|
|
360
359
|
# Deletes the SyncMapPermissionInstance
|
|
361
|
-
# @return [Boolean] true if delete succeeds,
|
|
360
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
362
361
|
def delete
|
|
363
362
|
context.delete
|
|
364
363
|
end
|
|
365
364
|
|
|
366
365
|
##
|
|
367
366
|
# Update the SyncMapPermissionInstance
|
|
368
|
-
# @param [Boolean] read
|
|
369
|
-
#
|
|
370
|
-
#
|
|
371
|
-
#
|
|
372
|
-
# @param [Boolean] manage Boolean flag specifying whether the identity can delete
|
|
373
|
-
# the Sync Map.
|
|
367
|
+
# @param [Boolean] read Whether the identity can read the Sync Map and its Items.
|
|
368
|
+
# @param [Boolean] write Whether the identity can create, update and delete Items
|
|
369
|
+
# of the Sync Map.
|
|
370
|
+
# @param [Boolean] manage Whether the identity can delete the Sync Map.
|
|
374
371
|
# @return [SyncMapPermissionInstance] Updated SyncMapPermissionInstance
|
|
375
372
|
def update(read: nil, write: nil, manage: nil)
|
|
376
373
|
context.update(read: read, write: write, manage: manage, )
|
|
@@ -17,8 +17,9 @@ module Twilio
|
|
|
17
17
|
##
|
|
18
18
|
# Initialize the SyncStreamList
|
|
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 [SyncStreamList] SyncStreamList
|
|
23
24
|
def initialize(version, service_sid: nil)
|
|
24
25
|
super(version)
|
|
@@ -31,10 +32,14 @@ module Twilio
|
|
|
31
32
|
##
|
|
32
33
|
# Retrieve a single page of SyncStreamInstance records from the API.
|
|
33
34
|
# Request is executed immediately.
|
|
34
|
-
# @param [String] unique_name
|
|
35
|
-
#
|
|
36
|
-
#
|
|
37
|
-
#
|
|
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.
|
|
39
|
+
# @param [String] ttl How long, in seconds, before the Stream expires and is
|
|
40
|
+
# deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The
|
|
41
|
+
# default value is `0`, which means the Stream does not expire. The Stream might
|
|
42
|
+
# not be deleted immediately after it expires.
|
|
38
43
|
# @return [SyncStreamInstance] Newly created SyncStreamInstance
|
|
39
44
|
def create(unique_name: :unset, ttl: :unset)
|
|
40
45
|
data = Twilio::Values.of({'UniqueName' => unique_name, 'Ttl' => ttl, })
|
|
@@ -174,9 +179,10 @@ module Twilio
|
|
|
174
179
|
##
|
|
175
180
|
# Initialize the SyncStreamContext
|
|
176
181
|
# @param [Version] version Version that contains the resource
|
|
177
|
-
# @param [String] service_sid
|
|
178
|
-
#
|
|
179
|
-
#
|
|
182
|
+
# @param [String] service_sid The SID of the [Sync
|
|
183
|
+
# Service](https://www.twilio.com/docs/sync/api/service) with the Sync Stream
|
|
184
|
+
# resource to fetch.
|
|
185
|
+
# @param [String] sid The SID of the Stream resource to fetch.
|
|
180
186
|
# @return [SyncStreamContext] SyncStreamContext
|
|
181
187
|
def initialize(version, service_sid, sid)
|
|
182
188
|
super(version)
|
|
@@ -211,15 +217,17 @@ module Twilio
|
|
|
211
217
|
|
|
212
218
|
##
|
|
213
219
|
# Deletes the SyncStreamInstance
|
|
214
|
-
# @return [Boolean] true if delete succeeds,
|
|
220
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
215
221
|
def delete
|
|
216
222
|
@version.delete('delete', @uri)
|
|
217
223
|
end
|
|
218
224
|
|
|
219
225
|
##
|
|
220
226
|
# Update the SyncStreamInstance
|
|
221
|
-
# @param [String] ttl
|
|
222
|
-
# 31
|
|
227
|
+
# @param [String] ttl How long, in seconds, before the Stream expires and is
|
|
228
|
+
# deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The
|
|
229
|
+
# default value is `0`, which means the Stream does not expire. The Sync Map might
|
|
230
|
+
# not be deleted immediately after it expires.
|
|
223
231
|
# @return [SyncStreamInstance] Updated SyncStreamInstance
|
|
224
232
|
def update(ttl: :unset)
|
|
225
233
|
data = Twilio::Values.of({'Ttl' => ttl, })
|
|
@@ -276,9 +284,10 @@ module Twilio
|
|
|
276
284
|
# Initialize the SyncStreamInstance
|
|
277
285
|
# @param [Version] version Version that contains the resource
|
|
278
286
|
# @param [Hash] payload payload that contains response from Twilio
|
|
279
|
-
# @param [String] service_sid The
|
|
280
|
-
#
|
|
281
|
-
#
|
|
287
|
+
# @param [String] service_sid The SID of the [Sync
|
|
288
|
+
# Service](https://www.twilio.com/docs/sync/api/service) the resource is
|
|
289
|
+
# associated with.
|
|
290
|
+
# @param [String] sid The SID of the Stream resource to fetch.
|
|
282
291
|
# @return [SyncStreamInstance] SyncStreamInstance
|
|
283
292
|
def initialize(version, payload, service_sid: nil, sid: nil)
|
|
284
293
|
super(version)
|
|
@@ -314,61 +323,61 @@ module Twilio
|
|
|
314
323
|
end
|
|
315
324
|
|
|
316
325
|
##
|
|
317
|
-
# @return [String]
|
|
326
|
+
# @return [String] The unique string that identifies the resource
|
|
318
327
|
def sid
|
|
319
328
|
@properties['sid']
|
|
320
329
|
end
|
|
321
330
|
|
|
322
331
|
##
|
|
323
|
-
# @return [String]
|
|
332
|
+
# @return [String] An application-defined string that uniquely identifies the resource
|
|
324
333
|
def unique_name
|
|
325
334
|
@properties['unique_name']
|
|
326
335
|
end
|
|
327
336
|
|
|
328
337
|
##
|
|
329
|
-
# @return [String]
|
|
338
|
+
# @return [String] The SID of the Account that created the resource
|
|
330
339
|
def account_sid
|
|
331
340
|
@properties['account_sid']
|
|
332
341
|
end
|
|
333
342
|
|
|
334
343
|
##
|
|
335
|
-
# @return [String] Service
|
|
344
|
+
# @return [String] The SID of the Sync Service that the resource is associated with
|
|
336
345
|
def service_sid
|
|
337
346
|
@properties['service_sid']
|
|
338
347
|
end
|
|
339
348
|
|
|
340
349
|
##
|
|
341
|
-
# @return [String] URL of
|
|
350
|
+
# @return [String] The absolute URL of the Message Stream resource
|
|
342
351
|
def url
|
|
343
352
|
@properties['url']
|
|
344
353
|
end
|
|
345
354
|
|
|
346
355
|
##
|
|
347
|
-
# @return [String]
|
|
356
|
+
# @return [String] The URLs of the Stream's nested resources
|
|
348
357
|
def links
|
|
349
358
|
@properties['links']
|
|
350
359
|
end
|
|
351
360
|
|
|
352
361
|
##
|
|
353
|
-
# @return [Time] The date
|
|
362
|
+
# @return [Time] The ISO 8601 date and time in GMT when the Message Stream expires
|
|
354
363
|
def date_expires
|
|
355
364
|
@properties['date_expires']
|
|
356
365
|
end
|
|
357
366
|
|
|
358
367
|
##
|
|
359
|
-
# @return [Time] The date
|
|
368
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
|
360
369
|
def date_created
|
|
361
370
|
@properties['date_created']
|
|
362
371
|
end
|
|
363
372
|
|
|
364
373
|
##
|
|
365
|
-
# @return [Time] The date
|
|
374
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
|
|
366
375
|
def date_updated
|
|
367
376
|
@properties['date_updated']
|
|
368
377
|
end
|
|
369
378
|
|
|
370
379
|
##
|
|
371
|
-
# @return [String] Identity of the Stream creator
|
|
380
|
+
# @return [String] The Identity of the Stream's creator
|
|
372
381
|
def created_by
|
|
373
382
|
@properties['created_by']
|
|
374
383
|
end
|
|
@@ -382,15 +391,17 @@ module Twilio
|
|
|
382
391
|
|
|
383
392
|
##
|
|
384
393
|
# Deletes the SyncStreamInstance
|
|
385
|
-
# @return [Boolean] true if delete succeeds,
|
|
394
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
386
395
|
def delete
|
|
387
396
|
context.delete
|
|
388
397
|
end
|
|
389
398
|
|
|
390
399
|
##
|
|
391
400
|
# Update the SyncStreamInstance
|
|
392
|
-
# @param [String] ttl
|
|
393
|
-
# 31
|
|
401
|
+
# @param [String] ttl How long, in seconds, before the Stream expires and is
|
|
402
|
+
# deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The
|
|
403
|
+
# default value is `0`, which means the Stream does not expire. The Sync Map might
|
|
404
|
+
# not be deleted immediately after it expires.
|
|
394
405
|
# @return [SyncStreamInstance] Updated SyncStreamInstance
|
|
395
406
|
def update(ttl: :unset)
|
|
396
407
|
context.update(ttl: ttl, )
|
|
@@ -18,10 +18,11 @@ module Twilio
|
|
|
18
18
|
##
|
|
19
19
|
# Initialize the StreamMessageList
|
|
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] stream_sid The unique string that we created to identify the
|
|
25
|
+
# Sync Stream resource.
|
|
25
26
|
# @return [StreamMessageList] StreamMessageList
|
|
26
27
|
def initialize(version, service_sid: nil, stream_sid: nil)
|
|
27
28
|
super(version)
|
|
@@ -34,8 +35,8 @@ module Twilio
|
|
|
34
35
|
##
|
|
35
36
|
# Retrieve a single page of StreamMessageInstance records from the API.
|
|
36
37
|
# Request is executed immediately.
|
|
37
|
-
# @param [Hash] data
|
|
38
|
-
#
|
|
38
|
+
# @param [Hash] data A JSON string that represents an arbitrary, schema-less
|
|
39
|
+
# object that makes up the Stream Message body. Can be up to 4KB in length.
|
|
39
40
|
# @return [StreamMessageInstance] Newly created StreamMessageInstance
|
|
40
41
|
def create(data: nil)
|
|
41
42
|
data = Twilio::Values.of({'Data' => Twilio.serialize_object(data), })
|
|
@@ -104,10 +105,11 @@ module Twilio
|
|
|
104
105
|
# Initialize the StreamMessageInstance
|
|
105
106
|
# @param [Version] version Version that contains the resource
|
|
106
107
|
# @param [Hash] payload payload that contains response from Twilio
|
|
107
|
-
# @param [String] service_sid The
|
|
108
|
-
#
|
|
109
|
-
#
|
|
110
|
-
#
|
|
108
|
+
# @param [String] service_sid The SID of the [Sync
|
|
109
|
+
# Service](https://www.twilio.com/docs/sync/api/service) the resource is
|
|
110
|
+
# associated with.
|
|
111
|
+
# @param [String] stream_sid The unique string that we created to identify the
|
|
112
|
+
# Sync Stream resource.
|
|
111
113
|
# @return [StreamMessageInstance] StreamMessageInstance
|
|
112
114
|
def initialize(version, payload, service_sid: nil, stream_sid: nil)
|
|
113
115
|
super(version)
|
|
@@ -117,13 +119,13 @@ module Twilio
|
|
|
117
119
|
end
|
|
118
120
|
|
|
119
121
|
##
|
|
120
|
-
# @return [String]
|
|
122
|
+
# @return [String] The unique string that identifies the resource
|
|
121
123
|
def sid
|
|
122
124
|
@properties['sid']
|
|
123
125
|
end
|
|
124
126
|
|
|
125
127
|
##
|
|
126
|
-
# @return [Hash] Stream Message body
|
|
128
|
+
# @return [Hash] Stream Message body
|
|
127
129
|
def data
|
|
128
130
|
@properties['data']
|
|
129
131
|
end
|
|
@@ -289,7 +289,7 @@ module Twilio
|
|
|
289
289
|
|
|
290
290
|
##
|
|
291
291
|
# Deletes the WorkspaceInstance
|
|
292
|
-
# @return [Boolean] true if delete succeeds,
|
|
292
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
293
293
|
def delete
|
|
294
294
|
@version.delete('delete', @uri)
|
|
295
295
|
end
|
|
@@ -640,7 +640,7 @@ module Twilio
|
|
|
640
640
|
|
|
641
641
|
##
|
|
642
642
|
# Deletes the WorkspaceInstance
|
|
643
|
-
# @return [Boolean] true if delete succeeds,
|
|
643
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
644
644
|
def delete
|
|
645
645
|
context.delete
|
|
646
646
|
end
|
|
@@ -249,7 +249,7 @@ module Twilio
|
|
|
249
249
|
|
|
250
250
|
##
|
|
251
251
|
# Deletes the ActivityInstance
|
|
252
|
-
# @return [Boolean] true if delete succeeds,
|
|
252
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
253
253
|
def delete
|
|
254
254
|
@version.delete('delete', @uri)
|
|
255
255
|
end
|
|
@@ -377,7 +377,7 @@ module Twilio
|
|
|
377
377
|
|
|
378
378
|
##
|
|
379
379
|
# Deletes the ActivityInstance
|
|
380
|
-
# @return [Boolean] true if delete succeeds,
|
|
380
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
381
381
|
def delete
|
|
382
382
|
context.delete
|
|
383
383
|
end
|
|
@@ -353,7 +353,7 @@ module Twilio
|
|
|
353
353
|
|
|
354
354
|
##
|
|
355
355
|
# Deletes the TaskInstance
|
|
356
|
-
# @return [Boolean] true if delete succeeds,
|
|
356
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
357
357
|
def delete
|
|
358
358
|
@version.delete('delete', @uri)
|
|
359
359
|
end
|
|
@@ -601,7 +601,7 @@ module Twilio
|
|
|
601
601
|
|
|
602
602
|
##
|
|
603
603
|
# Deletes the TaskInstance
|
|
604
|
-
# @return [Boolean] true if delete succeeds,
|
|
604
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
605
605
|
def delete
|
|
606
606
|
context.delete
|
|
607
607
|
end
|
|
@@ -233,7 +233,7 @@ module Twilio
|
|
|
233
233
|
|
|
234
234
|
##
|
|
235
235
|
# Deletes the TaskChannelInstance
|
|
236
|
-
# @return [Boolean] true if delete succeeds,
|
|
236
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
237
237
|
def delete
|
|
238
238
|
@version.delete('delete', @uri)
|
|
239
239
|
end
|
|
@@ -374,7 +374,7 @@ module Twilio
|
|
|
374
374
|
|
|
375
375
|
##
|
|
376
376
|
# Deletes the TaskChannelInstance
|
|
377
|
-
# @return [Boolean] true if delete succeeds,
|
|
377
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
378
378
|
def delete
|
|
379
379
|
context.delete
|
|
380
380
|
end
|