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,13 +17,13 @@ module Twilio
|
|
17
17
|
# Initialize the UserBindingList
|
18
18
|
# @param [Version] version Version that contains the resource
|
19
19
|
# @param [String] service_sid The SID of the
|
20
|
-
# [Service](https://www.twilio.com/docs/chat/rest/services) the
|
21
|
-
# associated with.
|
20
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) the User Binding
|
21
|
+
# resource is associated with.
|
22
22
|
# @param [String] user_sid The SID of the
|
23
|
-
# [User](https://www.twilio.com/docs/chat/rest/users)
|
24
|
-
# notification
|
23
|
+
# [User](https://www.twilio.com/docs/chat/rest/users) with the User Binding
|
24
|
+
# resource. See [push notification
|
25
25
|
# configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
|
26
|
-
# for more
|
26
|
+
# for more info.
|
27
27
|
# @return [UserBindingList] UserBindingList
|
28
28
|
def initialize(version, service_sid: nil, user_sid: nil)
|
29
29
|
super(version)
|
@@ -41,7 +41,7 @@ module Twilio
|
|
41
41
|
# User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push
|
42
42
|
# notification
|
43
43
|
# configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
|
44
|
-
# for more
|
44
|
+
# for more info.
|
45
45
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
46
46
|
# guarantees to never return more than limit. Default is no limit
|
47
47
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -61,7 +61,7 @@ module Twilio
|
|
61
61
|
# User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push
|
62
62
|
# notification
|
63
63
|
# configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
|
64
|
-
# for more
|
64
|
+
# for more info.
|
65
65
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
66
66
|
# guarantees to never return more than limit. Default is no limit.
|
67
67
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -98,7 +98,7 @@ module Twilio
|
|
98
98
|
# User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push
|
99
99
|
# notification
|
100
100
|
# configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
|
101
|
-
# for more
|
101
|
+
# for more info.
|
102
102
|
# @param [String] page_token PageToken provided by the API
|
103
103
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
104
104
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
@@ -177,15 +177,14 @@ module Twilio
|
|
177
177
|
# Initialize the UserBindingContext
|
178
178
|
# @param [Version] version Version that contains the resource
|
179
179
|
# @param [String] service_sid The SID of the
|
180
|
-
# [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the
|
181
|
-
# from.
|
180
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the User
|
181
|
+
# Binding resource from.
|
182
182
|
# @param [String] user_sid The SID of the
|
183
|
-
# [User](https://www.twilio.com/docs/chat/rest/users)
|
184
|
-
# notification
|
183
|
+
# [User](https://www.twilio.com/docs/chat/rest/users) with the User Binding
|
184
|
+
# resource to fetch. See [push notification
|
185
185
|
# configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
|
186
|
-
# for more
|
187
|
-
# @param [String] sid The
|
188
|
-
# Binding resource to fetch.
|
186
|
+
# for more info.
|
187
|
+
# @param [String] sid The SID of the User Binding resource to fetch.
|
189
188
|
# @return [UserBindingContext] UserBindingContext
|
190
189
|
def initialize(version, service_sid, user_sid, sid)
|
191
190
|
super(version)
|
@@ -218,7 +217,7 @@ module Twilio
|
|
218
217
|
|
219
218
|
##
|
220
219
|
# Deletes the UserBindingInstance
|
221
|
-
# @return [Boolean] true if delete succeeds,
|
220
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
222
221
|
def delete
|
223
222
|
@version.delete('delete', @uri)
|
224
223
|
end
|
@@ -244,15 +243,14 @@ module Twilio
|
|
244
243
|
# @param [Version] version Version that contains the resource
|
245
244
|
# @param [Hash] payload payload that contains response from Twilio
|
246
245
|
# @param [String] service_sid The SID of the
|
247
|
-
# [Service](https://www.twilio.com/docs/chat/rest/services) the
|
248
|
-
# associated with.
|
246
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) the User Binding
|
247
|
+
# resource is associated with.
|
249
248
|
# @param [String] user_sid The SID of the
|
250
|
-
# [User](https://www.twilio.com/docs/chat/rest/users)
|
251
|
-
# notification
|
249
|
+
# [User](https://www.twilio.com/docs/chat/rest/users) with the User Binding
|
250
|
+
# resource. See [push notification
|
252
251
|
# configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
|
253
|
-
# for more
|
254
|
-
# @param [String] sid The
|
255
|
-
# Binding resource to fetch.
|
252
|
+
# for more info.
|
253
|
+
# @param [String] sid The SID of the User Binding resource to fetch.
|
256
254
|
# @return [UserBindingInstance] UserBindingInstance
|
257
255
|
def initialize(version, payload, service_sid: nil, user_sid: nil, sid: nil)
|
258
256
|
super(version)
|
@@ -313,13 +311,13 @@ module Twilio
|
|
313
311
|
end
|
314
312
|
|
315
313
|
##
|
316
|
-
# @return [Time] The
|
314
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
317
315
|
def date_created
|
318
316
|
@properties['date_created']
|
319
317
|
end
|
320
318
|
|
321
319
|
##
|
322
|
-
# @return [Time] The
|
320
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
|
323
321
|
def date_updated
|
324
322
|
@properties['date_updated']
|
325
323
|
end
|
@@ -337,7 +335,7 @@ module Twilio
|
|
337
335
|
end
|
338
336
|
|
339
337
|
##
|
340
|
-
# @return [String] The SID of the User
|
338
|
+
# @return [String] The SID of the User with the binding
|
341
339
|
def user_sid
|
342
340
|
@properties['user_sid']
|
343
341
|
end
|
@@ -375,7 +373,7 @@ module Twilio
|
|
375
373
|
|
376
374
|
##
|
377
375
|
# Deletes the UserBindingInstance
|
378
|
-
# @return [Boolean] true if delete succeeds,
|
376
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
379
377
|
def delete
|
380
378
|
context.delete
|
381
379
|
end
|
@@ -17,8 +17,8 @@ module Twilio
|
|
17
17
|
# Initialize the UserChannelList
|
18
18
|
# @param [Version] version Version that contains the resource
|
19
19
|
# @param [String] service_sid The SID of the
|
20
|
-
# [Service](https://www.twilio.com/docs/chat/rest/services) the
|
21
|
-
# associated with.
|
20
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) the User Channel
|
21
|
+
# resource is associated with.
|
22
22
|
# @param [String] user_sid The SID of the
|
23
23
|
# [User](https://www.twilio.com/docs/chat/rest/users) the User Channel belongs to.
|
24
24
|
# @return [UserChannelList] UserChannelList
|
@@ -162,9 +162,11 @@ module Twilio
|
|
162
162
|
# Channel resource from.
|
163
163
|
# @param [String] user_sid The SID of the
|
164
164
|
# [User](https://www.twilio.com/docs/chat/rest/users) to fetch the User Channel
|
165
|
-
# resource from.
|
165
|
+
# resource from. This value can be either the `sid` or the `identity` of the User
|
166
|
+
# resource.
|
166
167
|
# @param [String] channel_sid The SID of the
|
167
168
|
# [Channel](https://www.twilio.com/docs/chat/channels) that has the User Channel
|
169
|
+
# to fetch. This value can be either the `sid` or the `unique_name` of the Channel
|
168
170
|
# to fetch.
|
169
171
|
# @return [UserChannelContext] UserChannelContext
|
170
172
|
def initialize(version, service_sid, user_sid, channel_sid)
|
@@ -240,12 +242,13 @@ module Twilio
|
|
240
242
|
# @param [Version] version Version that contains the resource
|
241
243
|
# @param [Hash] payload payload that contains response from Twilio
|
242
244
|
# @param [String] service_sid The SID of the
|
243
|
-
# [Service](https://www.twilio.com/docs/chat/rest/services) the
|
244
|
-
# associated with.
|
245
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) the User Channel
|
246
|
+
# resource is associated with.
|
245
247
|
# @param [String] user_sid The SID of the
|
246
248
|
# [User](https://www.twilio.com/docs/chat/rest/users) the User Channel belongs to.
|
247
249
|
# @param [String] channel_sid The SID of the
|
248
250
|
# [Channel](https://www.twilio.com/docs/chat/channels) that has the User Channel
|
251
|
+
# to fetch. This value can be either the `sid` or the `unique_name` of the Channel
|
249
252
|
# to fetch.
|
250
253
|
# @return [UserChannelInstance] UserChannelInstance
|
251
254
|
def initialize(version, payload, service_sid: nil, user_sid: nil, channel_sid: nil)
|
@@ -298,7 +298,7 @@ module Twilio
|
|
298
298
|
|
299
299
|
##
|
300
300
|
# Deletes the ServiceInstance
|
301
|
-
# @return [Boolean] true if delete succeeds,
|
301
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
302
302
|
def delete
|
303
303
|
@version.delete('delete', @uri)
|
304
304
|
end
|
@@ -590,7 +590,7 @@ module Twilio
|
|
590
590
|
|
591
591
|
##
|
592
592
|
# Deletes the ServiceInstance
|
593
|
-
# @return [Boolean] true if delete succeeds,
|
593
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
594
594
|
def delete
|
595
595
|
context.delete
|
596
596
|
end
|
@@ -206,7 +206,7 @@ module Twilio
|
|
206
206
|
|
207
207
|
##
|
208
208
|
# Deletes the AlphaSenderInstance
|
209
|
-
# @return [Boolean] true if delete succeeds,
|
209
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
210
210
|
def delete
|
211
211
|
@version.delete('delete', @uri)
|
212
212
|
end
|
@@ -325,7 +325,7 @@ module Twilio
|
|
325
325
|
|
326
326
|
##
|
327
327
|
# Deletes the AlphaSenderInstance
|
328
|
-
# @return [Boolean] true if delete succeeds,
|
328
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
329
329
|
def delete
|
330
330
|
context.delete
|
331
331
|
end
|
@@ -184,7 +184,7 @@ module Twilio
|
|
184
184
|
|
185
185
|
##
|
186
186
|
# Deletes the PhoneNumberInstance
|
187
|
-
# @return [Boolean] true if delete succeeds,
|
187
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
188
188
|
def delete
|
189
189
|
@version.delete('delete', @uri)
|
190
190
|
end
|
@@ -322,7 +322,7 @@ module Twilio
|
|
322
322
|
|
323
323
|
##
|
324
324
|
# Deletes the PhoneNumberInstance
|
325
|
-
# @return [Boolean] true if delete succeeds,
|
325
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
326
326
|
def delete
|
327
327
|
context.delete
|
328
328
|
end
|
@@ -189,7 +189,7 @@ module Twilio
|
|
189
189
|
|
190
190
|
##
|
191
191
|
# Deletes the ShortCodeInstance
|
192
|
-
# @return [Boolean] true if delete succeeds,
|
192
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
193
193
|
def delete
|
194
194
|
@version.delete('delete', @uri)
|
195
195
|
end
|
@@ -325,7 +325,7 @@ module Twilio
|
|
325
325
|
|
326
326
|
##
|
327
327
|
# Deletes the ShortCodeInstance
|
328
|
-
# @return [Boolean] true if delete succeeds,
|
328
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
329
329
|
def delete
|
330
330
|
context.delete
|
331
331
|
end
|
@@ -218,7 +218,7 @@ module Twilio
|
|
218
218
|
|
219
219
|
##
|
220
220
|
# Deletes the SessionInstance
|
221
|
-
# @return [Boolean] true if delete succeeds,
|
221
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
222
222
|
def delete
|
223
223
|
@version.delete('delete', @uri)
|
224
224
|
end
|
@@ -441,7 +441,7 @@ module Twilio
|
|
441
441
|
|
442
442
|
##
|
443
443
|
# Deletes the SessionInstance
|
444
|
-
# @return [Boolean] true if delete succeeds,
|
444
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
445
445
|
def delete
|
446
446
|
context.delete
|
447
447
|
end
|
@@ -245,7 +245,7 @@ module Twilio
|
|
245
245
|
|
246
246
|
##
|
247
247
|
# Deletes the MessageInstance
|
248
|
-
# @return [Boolean] true if delete succeeds,
|
248
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
249
249
|
def delete
|
250
250
|
@version.delete('delete', @uri)
|
251
251
|
end
|
@@ -415,7 +415,7 @@ module Twilio
|
|
415
415
|
|
416
416
|
##
|
417
417
|
# Deletes the MessageInstance
|
418
|
-
# @return [Boolean] true if delete succeeds,
|
418
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
419
419
|
def delete
|
420
420
|
context.delete
|
421
421
|
end
|
@@ -268,7 +268,7 @@ module Twilio
|
|
268
268
|
|
269
269
|
##
|
270
270
|
# Deletes the ParticipantInstance
|
271
|
-
# @return [Boolean] true if delete succeeds,
|
271
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
272
272
|
def delete
|
273
273
|
@version.delete('delete', @uri)
|
274
274
|
end
|
@@ -439,7 +439,7 @@ module Twilio
|
|
439
439
|
|
440
440
|
##
|
441
441
|
# Deletes the ParticipantInstance
|
442
|
-
# @return [Boolean] true if delete succeeds,
|
442
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
443
443
|
def delete
|
444
444
|
context.delete
|
445
445
|
end
|
@@ -270,7 +270,7 @@ module Twilio
|
|
270
270
|
|
271
271
|
##
|
272
272
|
# Deletes the WebhookInstance
|
273
|
-
# @return [Boolean] true if delete succeeds,
|
273
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
274
274
|
def delete
|
275
275
|
@version.delete('delete', @uri)
|
276
276
|
end
|
@@ -422,7 +422,7 @@ module Twilio
|
|
422
422
|
|
423
423
|
##
|
424
424
|
# Deletes the WebhookInstance
|
425
|
-
# @return [Boolean] true if delete succeeds,
|
425
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
426
426
|
def delete
|
427
427
|
context.delete
|
428
428
|
end
|
@@ -222,7 +222,7 @@ module Twilio
|
|
222
222
|
|
223
223
|
##
|
224
224
|
# Deletes the AlertInstance
|
225
|
-
# @return [Boolean] true if delete succeeds,
|
225
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
226
226
|
def delete
|
227
227
|
@version.delete('delete', @uri)
|
228
228
|
end
|
@@ -400,7 +400,7 @@ module Twilio
|
|
400
400
|
|
401
401
|
##
|
402
402
|
# Deletes the AlertInstance
|
403
|
-
# @return [Boolean] true if delete succeeds,
|
403
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
404
404
|
def delete
|
405
405
|
context.delete
|
406
406
|
end
|
@@ -257,7 +257,7 @@ module Twilio
|
|
257
257
|
|
258
258
|
##
|
259
259
|
# Deletes the CredentialInstance
|
260
|
-
# @return [Boolean] true if delete succeeds,
|
260
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
261
261
|
def delete
|
262
262
|
@version.delete('delete', @uri)
|
263
263
|
end
|
@@ -404,7 +404,7 @@ module Twilio
|
|
404
404
|
|
405
405
|
##
|
406
406
|
# Deletes the CredentialInstance
|
407
|
-
# @return [Boolean] true if delete succeeds,
|
407
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
408
408
|
def delete
|
409
409
|
context.delete
|
410
410
|
end
|
@@ -236,7 +236,7 @@ module Twilio
|
|
236
236
|
|
237
237
|
##
|
238
238
|
# Deletes the ServiceInstance
|
239
|
-
# @return [Boolean] true if delete succeeds,
|
239
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
240
240
|
def delete
|
241
241
|
@version.delete('delete', @uri)
|
242
242
|
end
|
@@ -522,7 +522,7 @@ module Twilio
|
|
522
522
|
|
523
523
|
##
|
524
524
|
# Deletes the ServiceInstance
|
525
|
-
# @return [Boolean] true if delete succeeds,
|
525
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
526
526
|
def delete
|
527
527
|
context.delete
|
528
528
|
end
|
@@ -282,7 +282,7 @@ module Twilio
|
|
282
282
|
|
283
283
|
##
|
284
284
|
# Deletes the BindingInstance
|
285
|
-
# @return [Boolean] true if delete succeeds,
|
285
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
286
286
|
def delete
|
287
287
|
@version.delete('delete', @uri)
|
288
288
|
end
|
@@ -445,7 +445,7 @@ module Twilio
|
|
445
445
|
|
446
446
|
##
|
447
447
|
# Deletes the BindingInstance
|
448
|
-
# @return [Boolean] true if delete succeeds,
|
448
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
449
449
|
def delete
|
450
450
|
context.delete
|
451
451
|
end
|
@@ -203,7 +203,7 @@ module Twilio
|
|
203
203
|
|
204
204
|
##
|
205
205
|
# Deletes the FleetInstance
|
206
|
-
# @return [Boolean] true if delete succeeds,
|
206
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
207
207
|
def delete
|
208
208
|
@version.delete('delete', @uri)
|
209
209
|
end
|
@@ -422,7 +422,7 @@ module Twilio
|
|
422
422
|
|
423
423
|
##
|
424
424
|
# Deletes the FleetInstance
|
425
|
-
# @return [Boolean] true if delete succeeds,
|
425
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
426
426
|
def delete
|
427
427
|
context.delete
|
428
428
|
end
|
@@ -216,7 +216,7 @@ module Twilio
|
|
216
216
|
|
217
217
|
##
|
218
218
|
# Deletes the CertificateInstance
|
219
|
-
# @return [Boolean] true if delete succeeds,
|
219
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
220
220
|
def delete
|
221
221
|
@version.delete('delete', @uri)
|
222
222
|
end
|
@@ -362,7 +362,7 @@ module Twilio
|
|
362
362
|
|
363
363
|
##
|
364
364
|
# Deletes the CertificateInstance
|
365
|
-
# @return [Boolean] true if delete succeeds,
|
365
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
366
366
|
def delete
|
367
367
|
context.delete
|
368
368
|
end
|
@@ -204,7 +204,7 @@ module Twilio
|
|
204
204
|
|
205
205
|
##
|
206
206
|
# Deletes the DeploymentInstance
|
207
|
-
# @return [Boolean] true if delete succeeds,
|
207
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
208
208
|
def delete
|
209
209
|
@version.delete('delete', @uri)
|
210
210
|
end
|
@@ -344,7 +344,7 @@ module Twilio
|
|
344
344
|
|
345
345
|
##
|
346
346
|
# Deletes the DeploymentInstance
|
347
|
-
# @return [Boolean] true if delete succeeds,
|
347
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
348
348
|
def delete
|
349
349
|
context.delete
|
350
350
|
end
|
@@ -222,7 +222,7 @@ module Twilio
|
|
222
222
|
|
223
223
|
##
|
224
224
|
# Deletes the DeviceInstance
|
225
|
-
# @return [Boolean] true if delete succeeds,
|
225
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
226
226
|
def delete
|
227
227
|
@version.delete('delete', @uri)
|
228
228
|
end
|
@@ -397,7 +397,7 @@ module Twilio
|
|
397
397
|
|
398
398
|
##
|
399
399
|
# Deletes the DeviceInstance
|
400
|
-
# @return [Boolean] true if delete succeeds,
|
400
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
401
401
|
def delete
|
402
402
|
context.delete
|
403
403
|
end
|