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
|
@@ -16,8 +16,8 @@ module Twilio
|
|
|
16
16
|
##
|
|
17
17
|
# Initialize the ExecutionContextList
|
|
18
18
|
# @param [Version] version Version that contains the resource
|
|
19
|
-
# @param [String] flow_sid The
|
|
20
|
-
# @param [String] execution_sid The
|
|
19
|
+
# @param [String] flow_sid The SID of the Flow.
|
|
20
|
+
# @param [String] execution_sid The SID of the context's Execution resource.
|
|
21
21
|
# @return [ExecutionContextList] ExecutionContextList
|
|
22
22
|
def initialize(version, flow_sid: nil, execution_sid: nil)
|
|
23
23
|
super(version)
|
|
@@ -71,8 +71,9 @@ module Twilio
|
|
|
71
71
|
##
|
|
72
72
|
# Initialize the ExecutionContextContext
|
|
73
73
|
# @param [Version] version Version that contains the resource
|
|
74
|
-
# @param [String] flow_sid The
|
|
75
|
-
#
|
|
74
|
+
# @param [String] flow_sid The SID of the Flow with the Execution context to
|
|
75
|
+
# fetch.
|
|
76
|
+
# @param [String] execution_sid The SID of the Execution context to fetch.
|
|
76
77
|
# @return [ExecutionContextContext] ExecutionContextContext
|
|
77
78
|
def initialize(version, flow_sid, execution_sid)
|
|
78
79
|
super(version)
|
|
@@ -122,8 +123,8 @@ module Twilio
|
|
|
122
123
|
# Initialize the ExecutionContextInstance
|
|
123
124
|
# @param [Version] version Version that contains the resource
|
|
124
125
|
# @param [Hash] payload payload that contains response from Twilio
|
|
125
|
-
# @param [String] flow_sid The
|
|
126
|
-
# @param [String] execution_sid The
|
|
126
|
+
# @param [String] flow_sid The SID of the Flow.
|
|
127
|
+
# @param [String] execution_sid The SID of the context's Execution resource.
|
|
127
128
|
# @return [ExecutionContextInstance] ExecutionContextInstance
|
|
128
129
|
def initialize(version, payload, flow_sid: nil, execution_sid: nil)
|
|
129
130
|
super(version)
|
|
@@ -158,31 +159,31 @@ module Twilio
|
|
|
158
159
|
end
|
|
159
160
|
|
|
160
161
|
##
|
|
161
|
-
# @return [String] Account
|
|
162
|
+
# @return [String] The SID of the Account that created the resource
|
|
162
163
|
def account_sid
|
|
163
164
|
@properties['account_sid']
|
|
164
165
|
end
|
|
165
166
|
|
|
166
167
|
##
|
|
167
|
-
# @return [Hash]
|
|
168
|
+
# @return [Hash] The current state of the flow
|
|
168
169
|
def context
|
|
169
170
|
@properties['context']
|
|
170
171
|
end
|
|
171
172
|
|
|
172
173
|
##
|
|
173
|
-
# @return [String] Flow
|
|
174
|
+
# @return [String] The SID of the Flow
|
|
174
175
|
def flow_sid
|
|
175
176
|
@properties['flow_sid']
|
|
176
177
|
end
|
|
177
178
|
|
|
178
179
|
##
|
|
179
|
-
# @return [String] Execution
|
|
180
|
+
# @return [String] The SID of the Execution
|
|
180
181
|
def execution_sid
|
|
181
182
|
@properties['execution_sid']
|
|
182
183
|
end
|
|
183
184
|
|
|
184
185
|
##
|
|
185
|
-
# @return [String] The URL of
|
|
186
|
+
# @return [String] The absolute URL of the resource
|
|
186
187
|
def url
|
|
187
188
|
@properties['url']
|
|
188
189
|
end
|
|
@@ -16,8 +16,8 @@ module Twilio
|
|
|
16
16
|
##
|
|
17
17
|
# Initialize the ExecutionStepList
|
|
18
18
|
# @param [Version] version Version that contains the resource
|
|
19
|
-
# @param [String] flow_sid The
|
|
20
|
-
# @param [String] execution_sid The
|
|
19
|
+
# @param [String] flow_sid The SID of the Flow.
|
|
20
|
+
# @param [String] execution_sid The SID of the Step's Execution resource.
|
|
21
21
|
# @return [ExecutionStepList] ExecutionStepList
|
|
22
22
|
def initialize(version, flow_sid: nil, execution_sid: nil)
|
|
23
23
|
super(version)
|
|
@@ -154,9 +154,10 @@ module Twilio
|
|
|
154
154
|
##
|
|
155
155
|
# Initialize the ExecutionStepContext
|
|
156
156
|
# @param [Version] version Version that contains the resource
|
|
157
|
-
# @param [String] flow_sid The
|
|
158
|
-
# @param [String] execution_sid The
|
|
159
|
-
#
|
|
157
|
+
# @param [String] flow_sid The SID of the Flow with the Step to fetch.
|
|
158
|
+
# @param [String] execution_sid The SID of the Execution resource with the Step to
|
|
159
|
+
# fetch.
|
|
160
|
+
# @param [String] sid The SID of the ExecutionStep resource to fetch.
|
|
160
161
|
# @return [ExecutionStepContext] ExecutionStepContext
|
|
161
162
|
def initialize(version, flow_sid, execution_sid, sid)
|
|
162
163
|
super(version)
|
|
@@ -223,9 +224,9 @@ module Twilio
|
|
|
223
224
|
# Initialize the ExecutionStepInstance
|
|
224
225
|
# @param [Version] version Version that contains the resource
|
|
225
226
|
# @param [Hash] payload payload that contains response from Twilio
|
|
226
|
-
# @param [String] flow_sid The
|
|
227
|
-
# @param [String] execution_sid The
|
|
228
|
-
# @param [String] sid The
|
|
227
|
+
# @param [String] flow_sid The SID of the Flow.
|
|
228
|
+
# @param [String] execution_sid The SID of the Step's Execution resource.
|
|
229
|
+
# @param [String] sid The SID of the ExecutionStep resource to fetch.
|
|
229
230
|
# @return [ExecutionStepInstance] ExecutionStepInstance
|
|
230
231
|
def initialize(version, payload, flow_sid: nil, execution_sid: nil, sid: nil)
|
|
231
232
|
super(version)
|
|
@@ -272,73 +273,73 @@ module Twilio
|
|
|
272
273
|
end
|
|
273
274
|
|
|
274
275
|
##
|
|
275
|
-
# @return [String]
|
|
276
|
+
# @return [String] The unique string that identifies the resource
|
|
276
277
|
def sid
|
|
277
278
|
@properties['sid']
|
|
278
279
|
end
|
|
279
280
|
|
|
280
281
|
##
|
|
281
|
-
# @return [String] Account
|
|
282
|
+
# @return [String] The SID of the Account that created the resource
|
|
282
283
|
def account_sid
|
|
283
284
|
@properties['account_sid']
|
|
284
285
|
end
|
|
285
286
|
|
|
286
287
|
##
|
|
287
|
-
# @return [String] Flow
|
|
288
|
+
# @return [String] The SID of the Flow
|
|
288
289
|
def flow_sid
|
|
289
290
|
@properties['flow_sid']
|
|
290
291
|
end
|
|
291
292
|
|
|
292
293
|
##
|
|
293
|
-
# @return [String] Execution
|
|
294
|
+
# @return [String] The SID of the Execution
|
|
294
295
|
def execution_sid
|
|
295
296
|
@properties['execution_sid']
|
|
296
297
|
end
|
|
297
298
|
|
|
298
299
|
##
|
|
299
|
-
# @return [String] The event that caused the
|
|
300
|
+
# @return [String] The event that caused the Flow to transition to the Step
|
|
300
301
|
def name
|
|
301
302
|
@properties['name']
|
|
302
303
|
end
|
|
303
304
|
|
|
304
305
|
##
|
|
305
|
-
# @return [Hash] The
|
|
306
|
+
# @return [Hash] The current state of the flow
|
|
306
307
|
def context
|
|
307
308
|
@properties['context']
|
|
308
309
|
end
|
|
309
310
|
|
|
310
311
|
##
|
|
311
|
-
# @return [String] The Widget that preceded the Widget for
|
|
312
|
+
# @return [String] The Widget that preceded the Widget for the Step
|
|
312
313
|
def transitioned_from
|
|
313
314
|
@properties['transitioned_from']
|
|
314
315
|
end
|
|
315
316
|
|
|
316
317
|
##
|
|
317
|
-
# @return [String] The Widget that will follow the Widget for
|
|
318
|
+
# @return [String] The Widget that will follow the Widget for the Step
|
|
318
319
|
def transitioned_to
|
|
319
320
|
@properties['transitioned_to']
|
|
320
321
|
end
|
|
321
322
|
|
|
322
323
|
##
|
|
323
|
-
# @return [Time] The date
|
|
324
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
|
324
325
|
def date_created
|
|
325
326
|
@properties['date_created']
|
|
326
327
|
end
|
|
327
328
|
|
|
328
329
|
##
|
|
329
|
-
# @return [Time] The date
|
|
330
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
|
|
330
331
|
def date_updated
|
|
331
332
|
@properties['date_updated']
|
|
332
333
|
end
|
|
333
334
|
|
|
334
335
|
##
|
|
335
|
-
# @return [String] The URL of
|
|
336
|
+
# @return [String] The absolute URL of the resource
|
|
336
337
|
def url
|
|
337
338
|
@properties['url']
|
|
338
339
|
end
|
|
339
340
|
|
|
340
341
|
##
|
|
341
|
-
# @return [String] The
|
|
342
|
+
# @return [String] The URLs of related resources
|
|
342
343
|
def links
|
|
343
344
|
@properties['links']
|
|
344
345
|
end
|
|
@@ -17,10 +17,10 @@ module Twilio
|
|
|
17
17
|
##
|
|
18
18
|
# Initialize the ExecutionStepContextList
|
|
19
19
|
# @param [Version] version Version that contains the resource
|
|
20
|
-
# @param [String] flow_sid The
|
|
21
|
-
# @param [String] execution_sid The
|
|
22
|
-
# @param [String] step_sid The
|
|
23
|
-
#
|
|
20
|
+
# @param [String] flow_sid The SID of the Flow.
|
|
21
|
+
# @param [String] execution_sid The SID of the context's Execution resource.
|
|
22
|
+
# @param [String] step_sid The SID of the Step that the context is associated
|
|
23
|
+
# with.
|
|
24
24
|
# @return [ExecutionStepContextList] ExecutionStepContextList
|
|
25
25
|
def initialize(version, flow_sid: nil, execution_sid: nil, step_sid: nil)
|
|
26
26
|
super(version)
|
|
@@ -75,9 +75,10 @@ module Twilio
|
|
|
75
75
|
##
|
|
76
76
|
# Initialize the ExecutionStepContextContext
|
|
77
77
|
# @param [Version] version Version that contains the resource
|
|
78
|
-
# @param [String] flow_sid The
|
|
79
|
-
# @param [String] execution_sid The
|
|
80
|
-
#
|
|
78
|
+
# @param [String] flow_sid The SID of the Flow with the Step to fetch.
|
|
79
|
+
# @param [String] execution_sid The SID of the Execution resource with the Step to
|
|
80
|
+
# fetch.
|
|
81
|
+
# @param [String] step_sid The SID of the Step to fetch.
|
|
81
82
|
# @return [ExecutionStepContextContext] ExecutionStepContextContext
|
|
82
83
|
def initialize(version, flow_sid, execution_sid, step_sid)
|
|
83
84
|
super(version)
|
|
@@ -128,10 +129,10 @@ module Twilio
|
|
|
128
129
|
# Initialize the ExecutionStepContextInstance
|
|
129
130
|
# @param [Version] version Version that contains the resource
|
|
130
131
|
# @param [Hash] payload payload that contains response from Twilio
|
|
131
|
-
# @param [String] flow_sid The
|
|
132
|
-
# @param [String] execution_sid The
|
|
133
|
-
# @param [String] step_sid The
|
|
134
|
-
#
|
|
132
|
+
# @param [String] flow_sid The SID of the Flow.
|
|
133
|
+
# @param [String] execution_sid The SID of the context's Execution resource.
|
|
134
|
+
# @param [String] step_sid The SID of the Step that the context is associated
|
|
135
|
+
# with.
|
|
135
136
|
# @return [ExecutionStepContextInstance] ExecutionStepContextInstance
|
|
136
137
|
def initialize(version, payload, flow_sid: nil, execution_sid: nil, step_sid: nil)
|
|
137
138
|
super(version)
|
|
@@ -168,37 +169,37 @@ module Twilio
|
|
|
168
169
|
end
|
|
169
170
|
|
|
170
171
|
##
|
|
171
|
-
# @return [String] Account
|
|
172
|
+
# @return [String] The SID of the Account that created the resource
|
|
172
173
|
def account_sid
|
|
173
174
|
@properties['account_sid']
|
|
174
175
|
end
|
|
175
176
|
|
|
176
177
|
##
|
|
177
|
-
# @return [Hash]
|
|
178
|
+
# @return [Hash] The current state of the flow
|
|
178
179
|
def context
|
|
179
180
|
@properties['context']
|
|
180
181
|
end
|
|
181
182
|
|
|
182
183
|
##
|
|
183
|
-
# @return [String] Execution
|
|
184
|
+
# @return [String] The SID of the Execution
|
|
184
185
|
def execution_sid
|
|
185
186
|
@properties['execution_sid']
|
|
186
187
|
end
|
|
187
188
|
|
|
188
189
|
##
|
|
189
|
-
# @return [String] Flow
|
|
190
|
+
# @return [String] The SID of the Flow
|
|
190
191
|
def flow_sid
|
|
191
192
|
@properties['flow_sid']
|
|
192
193
|
end
|
|
193
194
|
|
|
194
195
|
##
|
|
195
|
-
# @return [String] Step
|
|
196
|
+
# @return [String] Step SID
|
|
196
197
|
def step_sid
|
|
197
198
|
@properties['step_sid']
|
|
198
199
|
end
|
|
199
200
|
|
|
200
201
|
##
|
|
201
|
-
# @return [String] The URL of
|
|
202
|
+
# @return [String] The absolute URL of the resource
|
|
202
203
|
def url
|
|
203
204
|
@properties['url']
|
|
204
205
|
end
|
|
@@ -29,7 +29,8 @@ module Twilio
|
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
##
|
|
32
|
-
# @param [String] sid
|
|
32
|
+
# @param [String] sid The unique string that we created to identify the Service
|
|
33
|
+
# resource.
|
|
33
34
|
# @return [Twilio::REST::Sync::V1::ServiceInstance] if sid was passed.
|
|
34
35
|
# @return [Twilio::REST::Sync::V1::ServiceList]
|
|
35
36
|
def services(sid=:unset)
|
|
@@ -19,7 +19,7 @@ module Twilio
|
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
##
|
|
22
|
-
# @param [String] sid
|
|
22
|
+
# @param [String] sid The SID of the Service resource to fetch.
|
|
23
23
|
# @return [Twilio::REST::Sync::V1::ServiceContext] if sid was passed.
|
|
24
24
|
# @return [Twilio::REST::Sync::V1::ServiceList]
|
|
25
25
|
def services(sid=:unset)
|
|
@@ -28,31 +28,30 @@ module Twilio
|
|
|
28
28
|
##
|
|
29
29
|
# Retrieve a single page of ServiceInstance records from the API.
|
|
30
30
|
# Request is executed immediately.
|
|
31
|
-
# @param [String] friendly_name
|
|
32
|
-
# @param [String] webhook_url
|
|
33
|
-
#
|
|
34
|
-
# @param [Boolean] reachability_webhooks_enabled
|
|
35
|
-
#
|
|
36
|
-
#
|
|
37
|
-
# @param [Boolean] acl_enabled
|
|
38
|
-
#
|
|
39
|
-
#
|
|
40
|
-
#
|
|
41
|
-
#
|
|
42
|
-
#
|
|
43
|
-
#
|
|
44
|
-
#
|
|
45
|
-
#
|
|
46
|
-
#
|
|
47
|
-
#
|
|
48
|
-
#
|
|
49
|
-
#
|
|
50
|
-
#
|
|
51
|
-
#
|
|
52
|
-
#
|
|
53
|
-
#
|
|
54
|
-
#
|
|
55
|
-
# Defaults to false.
|
|
31
|
+
# @param [String] friendly_name A string that you assign to describe the resource.
|
|
32
|
+
# @param [String] webhook_url The URL we should call when Sync objects are
|
|
33
|
+
# manipulated.
|
|
34
|
+
# @param [Boolean] reachability_webhooks_enabled Whether the service instance
|
|
35
|
+
# should call `webhook_url` when client endpoints connect to Sync. The default is
|
|
36
|
+
# `false`.
|
|
37
|
+
# @param [Boolean] acl_enabled Whether token identities in the Service must be
|
|
38
|
+
# granted access to Sync objects by using the
|
|
39
|
+
# [Permissions](https://www.twilio.com/docs/sync/api/permissions) resource.
|
|
40
|
+
# @param [Boolean] reachability_debouncing_enabled Whether every
|
|
41
|
+
# `endpoint_disconnected` event should occur after a configurable delay. The
|
|
42
|
+
# default is `false`, where the `endpoint_disconnected` event occurs immediately
|
|
43
|
+
# after disconnection. When `true`, intervening reconnections can prevent the
|
|
44
|
+
# `endpoint_disconnected` event.
|
|
45
|
+
# @param [String] reachability_debouncing_window The reachability event delay in
|
|
46
|
+
# milliseconds if `reachability_debouncing_enabled` = `true`. Must be between
|
|
47
|
+
# 1,000 and 30,000 and defaults to 5,000. This is the number of milliseconds after
|
|
48
|
+
# the last running client disconnects, and a Sync identity is declared offline,
|
|
49
|
+
# before the `webhook_url` is called if all endpoints remain offline. A
|
|
50
|
+
# reconnection from the same identity by any endpoint during this interval
|
|
51
|
+
# prevents the call to `webhook_url`.
|
|
52
|
+
# @param [Boolean] webhooks_from_rest_enabled Whether the Service instance should
|
|
53
|
+
# call `webhook_url` when the REST API is used to update Sync objects. The default
|
|
54
|
+
# is `false`.
|
|
56
55
|
# @return [ServiceInstance] Newly created ServiceInstance
|
|
57
56
|
def create(friendly_name: :unset, webhook_url: :unset, reachability_webhooks_enabled: :unset, acl_enabled: :unset, reachability_debouncing_enabled: :unset, reachability_debouncing_window: :unset, webhooks_from_rest_enabled: :unset)
|
|
58
57
|
data = Twilio::Values.of({
|
|
@@ -200,7 +199,7 @@ module Twilio
|
|
|
200
199
|
##
|
|
201
200
|
# Initialize the ServiceContext
|
|
202
201
|
# @param [Version] version Version that contains the resource
|
|
203
|
-
# @param [String] sid
|
|
202
|
+
# @param [String] sid The SID of the Service resource to fetch.
|
|
204
203
|
# @return [ServiceContext] ServiceContext
|
|
205
204
|
def initialize(version, sid)
|
|
206
205
|
super(version)
|
|
@@ -233,38 +232,37 @@ module Twilio
|
|
|
233
232
|
|
|
234
233
|
##
|
|
235
234
|
# Deletes the ServiceInstance
|
|
236
|
-
# @return [Boolean] true if delete succeeds,
|
|
235
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
237
236
|
def delete
|
|
238
237
|
@version.delete('delete', @uri)
|
|
239
238
|
end
|
|
240
239
|
|
|
241
240
|
##
|
|
242
241
|
# Update the ServiceInstance
|
|
243
|
-
# @param [String] webhook_url
|
|
244
|
-
#
|
|
245
|
-
# @param [String] friendly_name
|
|
246
|
-
# @param [Boolean] reachability_webhooks_enabled
|
|
247
|
-
#
|
|
248
|
-
# false
|
|
249
|
-
# @param [Boolean] acl_enabled
|
|
250
|
-
#
|
|
251
|
-
#
|
|
252
|
-
#
|
|
253
|
-
#
|
|
254
|
-
#
|
|
255
|
-
#
|
|
256
|
-
#
|
|
257
|
-
#
|
|
258
|
-
#
|
|
259
|
-
#
|
|
260
|
-
#
|
|
261
|
-
#
|
|
262
|
-
#
|
|
263
|
-
#
|
|
264
|
-
#
|
|
265
|
-
#
|
|
266
|
-
#
|
|
267
|
-
# Defaults to false.
|
|
242
|
+
# @param [String] webhook_url The URL we should call when Sync objects are
|
|
243
|
+
# manipulated.
|
|
244
|
+
# @param [String] friendly_name A string that you assign to describe the resource.
|
|
245
|
+
# @param [Boolean] reachability_webhooks_enabled Whether the service instance
|
|
246
|
+
# should call `webhook_url` when client endpoints connect to Sync. The default is
|
|
247
|
+
# `false`.
|
|
248
|
+
# @param [Boolean] acl_enabled Whether token identities in the Service must be
|
|
249
|
+
# granted access to Sync objects by using the
|
|
250
|
+
# [Permissions](https://www.twilio.com/docs/sync/api/permissions) resource.
|
|
251
|
+
# @param [Boolean] reachability_debouncing_enabled Whether every
|
|
252
|
+
# `endpoint_disconnected` event should occur after a configurable delay. The
|
|
253
|
+
# default is `false`, where the `endpoint_disconnected` event occurs immediately
|
|
254
|
+
# after disconnection. When `true`, intervening reconnections can prevent the
|
|
255
|
+
# `endpoint_disconnected` event.
|
|
256
|
+
# @param [String] reachability_debouncing_window The reachability event delay in
|
|
257
|
+
# milliseconds if `reachability_debouncing_enabled` = `true`. Must be between
|
|
258
|
+
# 1,000 and 30,000 and defaults to 5,000. This is the number of milliseconds after
|
|
259
|
+
# the last running client disconnects, and a Sync identity is declared offline,
|
|
260
|
+
# before the webhook is called if all endpoints remain offline. A reconnection
|
|
261
|
+
# from the same identity by any endpoint during this interval prevents the webhook
|
|
262
|
+
# from being called.
|
|
263
|
+
# @param [Boolean] webhooks_from_rest_enabled Whether the Service instance should
|
|
264
|
+
# call `webhook_url` when the REST API is used to update Sync objects. The default
|
|
265
|
+
# is `false`.
|
|
268
266
|
# @return [ServiceInstance] Updated ServiceInstance
|
|
269
267
|
def update(webhook_url: :unset, friendly_name: :unset, reachability_webhooks_enabled: :unset, acl_enabled: :unset, reachability_debouncing_enabled: :unset, reachability_debouncing_window: :unset, webhooks_from_rest_enabled: :unset)
|
|
270
268
|
data = Twilio::Values.of({
|
|
@@ -380,7 +378,7 @@ module Twilio
|
|
|
380
378
|
# Initialize the ServiceInstance
|
|
381
379
|
# @param [Version] version Version that contains the resource
|
|
382
380
|
# @param [Hash] payload payload that contains response from Twilio
|
|
383
|
-
# @param [String] sid
|
|
381
|
+
# @param [String] sid The SID of the Service resource to fetch.
|
|
384
382
|
# @return [ServiceInstance] ServiceInstance
|
|
385
383
|
def initialize(version, payload, sid: nil)
|
|
386
384
|
super(version)
|
|
@@ -420,85 +418,85 @@ module Twilio
|
|
|
420
418
|
end
|
|
421
419
|
|
|
422
420
|
##
|
|
423
|
-
# @return [String]
|
|
421
|
+
# @return [String] The unique string that identifies the resource
|
|
424
422
|
def sid
|
|
425
423
|
@properties['sid']
|
|
426
424
|
end
|
|
427
425
|
|
|
428
426
|
##
|
|
429
|
-
# @return [String]
|
|
427
|
+
# @return [String] An application-defined string that uniquely identifies the resource
|
|
430
428
|
def unique_name
|
|
431
429
|
@properties['unique_name']
|
|
432
430
|
end
|
|
433
431
|
|
|
434
432
|
##
|
|
435
|
-
# @return [String] The
|
|
433
|
+
# @return [String] The SID of the Account that created the resource
|
|
436
434
|
def account_sid
|
|
437
435
|
@properties['account_sid']
|
|
438
436
|
end
|
|
439
437
|
|
|
440
438
|
##
|
|
441
|
-
# @return [String]
|
|
439
|
+
# @return [String] The string that you assigned to describe the resource
|
|
442
440
|
def friendly_name
|
|
443
441
|
@properties['friendly_name']
|
|
444
442
|
end
|
|
445
443
|
|
|
446
444
|
##
|
|
447
|
-
# @return [Time] The
|
|
445
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
|
448
446
|
def date_created
|
|
449
447
|
@properties['date_created']
|
|
450
448
|
end
|
|
451
449
|
|
|
452
450
|
##
|
|
453
|
-
# @return [Time] The
|
|
451
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
|
|
454
452
|
def date_updated
|
|
455
453
|
@properties['date_updated']
|
|
456
454
|
end
|
|
457
455
|
|
|
458
456
|
##
|
|
459
|
-
# @return [String] The
|
|
457
|
+
# @return [String] The absolute URL of the Service resource
|
|
460
458
|
def url
|
|
461
459
|
@properties['url']
|
|
462
460
|
end
|
|
463
461
|
|
|
464
462
|
##
|
|
465
|
-
# @return [String]
|
|
463
|
+
# @return [String] The URL we call when Sync objects are manipulated
|
|
466
464
|
def webhook_url
|
|
467
465
|
@properties['webhook_url']
|
|
468
466
|
end
|
|
469
467
|
|
|
470
468
|
##
|
|
471
|
-
# @return [Boolean]
|
|
469
|
+
# @return [Boolean] Whether the Service instance should call webhook_url when the REST API is used to update Sync objects
|
|
472
470
|
def webhooks_from_rest_enabled
|
|
473
471
|
@properties['webhooks_from_rest_enabled']
|
|
474
472
|
end
|
|
475
473
|
|
|
476
474
|
##
|
|
477
|
-
# @return [Boolean]
|
|
475
|
+
# @return [Boolean] Whether the service instance calls webhook_url when client endpoints connect to Sync
|
|
478
476
|
def reachability_webhooks_enabled
|
|
479
477
|
@properties['reachability_webhooks_enabled']
|
|
480
478
|
end
|
|
481
479
|
|
|
482
480
|
##
|
|
483
|
-
# @return [Boolean]
|
|
481
|
+
# @return [Boolean] Whether token identities in the Service must be granted access to Sync objects by using the Permissions resource
|
|
484
482
|
def acl_enabled
|
|
485
483
|
@properties['acl_enabled']
|
|
486
484
|
end
|
|
487
485
|
|
|
488
486
|
##
|
|
489
|
-
# @return [Boolean]
|
|
487
|
+
# @return [Boolean] Whether every endpoint_disconnected event occurs after a configurable delay
|
|
490
488
|
def reachability_debouncing_enabled
|
|
491
489
|
@properties['reachability_debouncing_enabled']
|
|
492
490
|
end
|
|
493
491
|
|
|
494
492
|
##
|
|
495
|
-
# @return [String]
|
|
493
|
+
# @return [String] The reachability event delay in milliseconds
|
|
496
494
|
def reachability_debouncing_window
|
|
497
495
|
@properties['reachability_debouncing_window']
|
|
498
496
|
end
|
|
499
497
|
|
|
500
498
|
##
|
|
501
|
-
# @return [String] The
|
|
499
|
+
# @return [String] The URLs of related resources
|
|
502
500
|
def links
|
|
503
501
|
@properties['links']
|
|
504
502
|
end
|
|
@@ -512,38 +510,37 @@ module Twilio
|
|
|
512
510
|
|
|
513
511
|
##
|
|
514
512
|
# Deletes the ServiceInstance
|
|
515
|
-
# @return [Boolean] true if delete succeeds,
|
|
513
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
516
514
|
def delete
|
|
517
515
|
context.delete
|
|
518
516
|
end
|
|
519
517
|
|
|
520
518
|
##
|
|
521
519
|
# Update the ServiceInstance
|
|
522
|
-
# @param [String] webhook_url
|
|
523
|
-
#
|
|
524
|
-
# @param [String] friendly_name
|
|
525
|
-
# @param [Boolean] reachability_webhooks_enabled
|
|
526
|
-
#
|
|
527
|
-
# false
|
|
528
|
-
# @param [Boolean] acl_enabled
|
|
529
|
-
#
|
|
530
|
-
#
|
|
531
|
-
#
|
|
532
|
-
#
|
|
533
|
-
#
|
|
534
|
-
#
|
|
535
|
-
#
|
|
536
|
-
#
|
|
537
|
-
#
|
|
538
|
-
#
|
|
539
|
-
#
|
|
540
|
-
#
|
|
541
|
-
#
|
|
542
|
-
#
|
|
543
|
-
#
|
|
544
|
-
#
|
|
545
|
-
#
|
|
546
|
-
# Defaults to false.
|
|
520
|
+
# @param [String] webhook_url The URL we should call when Sync objects are
|
|
521
|
+
# manipulated.
|
|
522
|
+
# @param [String] friendly_name A string that you assign to describe the resource.
|
|
523
|
+
# @param [Boolean] reachability_webhooks_enabled Whether the service instance
|
|
524
|
+
# should call `webhook_url` when client endpoints connect to Sync. The default is
|
|
525
|
+
# `false`.
|
|
526
|
+
# @param [Boolean] acl_enabled Whether token identities in the Service must be
|
|
527
|
+
# granted access to Sync objects by using the
|
|
528
|
+
# [Permissions](https://www.twilio.com/docs/sync/api/permissions) resource.
|
|
529
|
+
# @param [Boolean] reachability_debouncing_enabled Whether every
|
|
530
|
+
# `endpoint_disconnected` event should occur after a configurable delay. The
|
|
531
|
+
# default is `false`, where the `endpoint_disconnected` event occurs immediately
|
|
532
|
+
# after disconnection. When `true`, intervening reconnections can prevent the
|
|
533
|
+
# `endpoint_disconnected` event.
|
|
534
|
+
# @param [String] reachability_debouncing_window The reachability event delay in
|
|
535
|
+
# milliseconds if `reachability_debouncing_enabled` = `true`. Must be between
|
|
536
|
+
# 1,000 and 30,000 and defaults to 5,000. This is the number of milliseconds after
|
|
537
|
+
# the last running client disconnects, and a Sync identity is declared offline,
|
|
538
|
+
# before the webhook is called if all endpoints remain offline. A reconnection
|
|
539
|
+
# from the same identity by any endpoint during this interval prevents the webhook
|
|
540
|
+
# from being called.
|
|
541
|
+
# @param [Boolean] webhooks_from_rest_enabled Whether the Service instance should
|
|
542
|
+
# call `webhook_url` when the REST API is used to update Sync objects. The default
|
|
543
|
+
# is `false`.
|
|
547
544
|
# @return [ServiceInstance] Updated ServiceInstance
|
|
548
545
|
def update(webhook_url: :unset, friendly_name: :unset, reachability_webhooks_enabled: :unset, acl_enabled: :unset, reachability_debouncing_enabled: :unset, reachability_debouncing_window: :unset, webhooks_from_rest_enabled: :unset)
|
|
549
546
|
context.update(
|