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
|
# Initialize the BindingList
|
|
17
17
|
# @param [Version] version Version that contains the resource
|
|
18
18
|
# @param [String] service_sid The SID of the
|
|
19
|
-
# [Service](https://www.twilio.com/docs/chat/rest/services) the resource
|
|
20
|
-
# associated with.
|
|
19
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) the Binding resource
|
|
20
|
+
# is associated with.
|
|
21
21
|
# @return [BindingList] BindingList
|
|
22
22
|
def initialize(version, service_sid: nil)
|
|
23
23
|
super(version)
|
|
@@ -35,7 +35,7 @@ module Twilio
|
|
|
35
35
|
# Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push
|
|
36
36
|
# notification
|
|
37
37
|
# configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
|
|
38
|
-
# for more
|
|
38
|
+
# for more info.
|
|
39
39
|
# @param [String] identity The
|
|
40
40
|
# [User](https://www.twilio.com/docs/chat/rest/users)'s `identity` value of the
|
|
41
41
|
# resources to read. See [access
|
|
@@ -64,7 +64,7 @@ module Twilio
|
|
|
64
64
|
# Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push
|
|
65
65
|
# notification
|
|
66
66
|
# configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
|
|
67
|
-
# for more
|
|
67
|
+
# for more info.
|
|
68
68
|
# @param [String] identity The
|
|
69
69
|
# [User](https://www.twilio.com/docs/chat/rest/users)'s `identity` value of the
|
|
70
70
|
# resources to read. See [access
|
|
@@ -105,7 +105,7 @@ module Twilio
|
|
|
105
105
|
# Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push
|
|
106
106
|
# notification
|
|
107
107
|
# configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
|
|
108
|
-
# for more
|
|
108
|
+
# for more info.
|
|
109
109
|
# @param [String] identity The
|
|
110
110
|
# [User](https://www.twilio.com/docs/chat/rest/users)'s `identity` value of the
|
|
111
111
|
# resources to read. See [access
|
|
@@ -184,10 +184,9 @@ module Twilio
|
|
|
184
184
|
# Initialize the BindingContext
|
|
185
185
|
# @param [Version] version Version that contains the resource
|
|
186
186
|
# @param [String] service_sid The SID of the
|
|
187
|
-
# [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the
|
|
188
|
-
# from.
|
|
189
|
-
# @param [String] sid The
|
|
190
|
-
# Binding resource to fetch.
|
|
187
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the Binding
|
|
188
|
+
# resource from.
|
|
189
|
+
# @param [String] sid The SID of the Binding resource to fetch.
|
|
191
190
|
# @return [BindingContext] BindingContext
|
|
192
191
|
def initialize(version, service_sid, sid)
|
|
193
192
|
super(version)
|
|
@@ -214,7 +213,7 @@ module Twilio
|
|
|
214
213
|
|
|
215
214
|
##
|
|
216
215
|
# Deletes the BindingInstance
|
|
217
|
-
# @return [Boolean] true if delete succeeds,
|
|
216
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
218
217
|
def delete
|
|
219
218
|
@version.delete('delete', @uri)
|
|
220
219
|
end
|
|
@@ -240,10 +239,9 @@ module Twilio
|
|
|
240
239
|
# @param [Version] version Version that contains the resource
|
|
241
240
|
# @param [Hash] payload payload that contains response from Twilio
|
|
242
241
|
# @param [String] service_sid The SID of the
|
|
243
|
-
# [Service](https://www.twilio.com/docs/chat/rest/services) the resource
|
|
244
|
-
# associated with.
|
|
245
|
-
# @param [String] sid The
|
|
246
|
-
# Binding resource to fetch.
|
|
242
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) the Binding resource
|
|
243
|
+
# is associated with.
|
|
244
|
+
# @param [String] sid The SID of the Binding resource to fetch.
|
|
247
245
|
# @return [BindingInstance] BindingInstance
|
|
248
246
|
def initialize(version, payload, service_sid: nil, sid: nil)
|
|
249
247
|
super(version)
|
|
@@ -293,19 +291,19 @@ module Twilio
|
|
|
293
291
|
end
|
|
294
292
|
|
|
295
293
|
##
|
|
296
|
-
# @return [String] The SID of the Service that the resource is associated with
|
|
294
|
+
# @return [String] The SID of the Service that the Binding resource is associated with
|
|
297
295
|
def service_sid
|
|
298
296
|
@properties['service_sid']
|
|
299
297
|
end
|
|
300
298
|
|
|
301
299
|
##
|
|
302
|
-
# @return [Time] The
|
|
300
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
|
303
301
|
def date_created
|
|
304
302
|
@properties['date_created']
|
|
305
303
|
end
|
|
306
304
|
|
|
307
305
|
##
|
|
308
|
-
# @return [Time] The
|
|
306
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
|
|
309
307
|
def date_updated
|
|
310
308
|
@properties['date_updated']
|
|
311
309
|
end
|
|
@@ -347,7 +345,7 @@ module Twilio
|
|
|
347
345
|
end
|
|
348
346
|
|
|
349
347
|
##
|
|
350
|
-
# @return [String] The absolute URLs of the
|
|
348
|
+
# @return [String] The absolute URLs of the Binding's User
|
|
351
349
|
def links
|
|
352
350
|
@properties['links']
|
|
353
351
|
end
|
|
@@ -361,7 +359,7 @@ module Twilio
|
|
|
361
359
|
|
|
362
360
|
##
|
|
363
361
|
# Deletes the BindingInstance
|
|
364
|
-
# @return [Boolean] true if delete succeeds,
|
|
362
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
365
363
|
def delete
|
|
366
364
|
context.delete
|
|
367
365
|
end
|
|
@@ -16,8 +16,8 @@ module Twilio
|
|
|
16
16
|
# Initialize the ChannelList
|
|
17
17
|
# @param [Version] version Version that contains the resource
|
|
18
18
|
# @param [String] service_sid The SID of the
|
|
19
|
-
# [Service](https://www.twilio.com/docs/chat/rest/services) the resource
|
|
20
|
-
# associated with.
|
|
19
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) the Channel resource
|
|
20
|
+
# is associated with.
|
|
21
21
|
# @return [ChannelList] ChannelList
|
|
22
22
|
def initialize(version, service_sid: nil)
|
|
23
23
|
super(version)
|
|
@@ -34,21 +34,21 @@ module Twilio
|
|
|
34
34
|
# the new resource. It can be up to 64 characters long.
|
|
35
35
|
# @param [String] unique_name An application-defined string that uniquely
|
|
36
36
|
# identifies the resource. It can be used to address the resource in place of the
|
|
37
|
-
# resource's `sid` in the URL. This value must be 64 characters or less in
|
|
38
|
-
# and be unique within the Service.
|
|
37
|
+
# Channel resource's `sid` in the URL. This value must be 64 characters or less in
|
|
38
|
+
# length and be unique within the Service.
|
|
39
39
|
# @param [String] attributes A valid JSON string that contains
|
|
40
40
|
# application-specific data.
|
|
41
41
|
# @param [channel.ChannelType] type The visibility of the channel. Can be:
|
|
42
42
|
# `public` or `private` and defaults to `public`.
|
|
43
43
|
# @param [Time] date_created The date, specified in [ISO
|
|
44
44
|
# 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource
|
|
45
|
-
# as the date it was created. The default is the current time set by the
|
|
46
|
-
# service. Note that this should only be used in cases where a Channel is
|
|
47
|
-
# recreated from a backup/separate source.
|
|
45
|
+
# as the date it was created. The default value is the current time set by the
|
|
46
|
+
# Chat service. Note that this should only be used in cases where a Channel is
|
|
47
|
+
# being recreated from a backup/separate source.
|
|
48
48
|
# @param [Time] date_updated The date, specified in [ISO
|
|
49
49
|
# 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource
|
|
50
|
-
# as the date it was last updated. The default value is `null`.
|
|
51
|
-
# should only be used in cases where a Channel is being recreated from a
|
|
50
|
+
# as the date it was last updated. The default value is `null`. Note that this
|
|
51
|
+
# parameter should only be used in cases where a Channel is being recreated from a
|
|
52
52
|
# backup/separate source and where a Message was previously updated.
|
|
53
53
|
# @param [String] created_by The `identity` of the User that created the channel.
|
|
54
54
|
# Default is: `system`.
|
|
@@ -203,10 +203,10 @@ module Twilio
|
|
|
203
203
|
# Initialize the ChannelContext
|
|
204
204
|
# @param [Version] version Version that contains the resource
|
|
205
205
|
# @param [String] service_sid The SID of the
|
|
206
|
-
# [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the
|
|
207
|
-
# from.
|
|
208
|
-
# @param [String] sid The
|
|
209
|
-
# Channel resource to fetch.
|
|
206
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the Channel
|
|
207
|
+
# resource from.
|
|
208
|
+
# @param [String] sid The SID of the Channel resource to fetch. This value can be
|
|
209
|
+
# either the `sid` or the `unique_name` of the Channel resource to fetch.
|
|
210
210
|
# @return [ChannelContext] ChannelContext
|
|
211
211
|
def initialize(version, service_sid, sid)
|
|
212
212
|
super(version)
|
|
@@ -239,7 +239,7 @@ module Twilio
|
|
|
239
239
|
|
|
240
240
|
##
|
|
241
241
|
# Deletes the ChannelInstance
|
|
242
|
-
# @return [Boolean] true if delete succeeds,
|
|
242
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
243
243
|
def delete
|
|
244
244
|
@version.delete('delete', @uri)
|
|
245
245
|
end
|
|
@@ -256,7 +256,9 @@ module Twilio
|
|
|
256
256
|
# application-specific data.
|
|
257
257
|
# @param [Time] date_created The date, specified in [ISO
|
|
258
258
|
# 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource
|
|
259
|
-
# as the date it was created.
|
|
259
|
+
# as the date it was created. The default value is the current time set by the
|
|
260
|
+
# Chat service. Note that this should only be used in cases where a Channel is
|
|
261
|
+
# being recreated from a backup/separate source.
|
|
260
262
|
# @param [Time] date_updated The date, specified in [ISO
|
|
261
263
|
# 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource
|
|
262
264
|
# as the date it was last updated.
|
|
@@ -391,10 +393,10 @@ module Twilio
|
|
|
391
393
|
# @param [Version] version Version that contains the resource
|
|
392
394
|
# @param [Hash] payload payload that contains response from Twilio
|
|
393
395
|
# @param [String] service_sid The SID of the
|
|
394
|
-
# [Service](https://www.twilio.com/docs/chat/rest/services) the resource
|
|
395
|
-
# associated with.
|
|
396
|
-
# @param [String] sid The
|
|
397
|
-
# Channel resource to fetch.
|
|
396
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) the Channel resource
|
|
397
|
+
# is associated with.
|
|
398
|
+
# @param [String] sid The SID of the Channel resource to fetch. This value can be
|
|
399
|
+
# either the `sid` or the `unique_name` of the Channel resource to fetch.
|
|
398
400
|
# @return [ChannelInstance] ChannelInstance
|
|
399
401
|
def initialize(version, payload, service_sid: nil, sid: nil)
|
|
400
402
|
super(version)
|
|
@@ -476,13 +478,13 @@ module Twilio
|
|
|
476
478
|
end
|
|
477
479
|
|
|
478
480
|
##
|
|
479
|
-
# @return [Time] The
|
|
481
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
|
480
482
|
def date_created
|
|
481
483
|
@properties['date_created']
|
|
482
484
|
end
|
|
483
485
|
|
|
484
486
|
##
|
|
485
|
-
# @return [Time] The
|
|
487
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
|
|
486
488
|
def date_updated
|
|
487
489
|
@properties['date_updated']
|
|
488
490
|
end
|
|
@@ -500,7 +502,7 @@ module Twilio
|
|
|
500
502
|
end
|
|
501
503
|
|
|
502
504
|
##
|
|
503
|
-
# @return [String] The number of Messages in the Channel
|
|
505
|
+
# @return [String] The number of Messages that have been passed in the Channel
|
|
504
506
|
def messages_count
|
|
505
507
|
@properties['messages_count']
|
|
506
508
|
end
|
|
@@ -526,7 +528,7 @@ module Twilio
|
|
|
526
528
|
|
|
527
529
|
##
|
|
528
530
|
# Deletes the ChannelInstance
|
|
529
|
-
# @return [Boolean] true if delete succeeds,
|
|
531
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
530
532
|
def delete
|
|
531
533
|
context.delete
|
|
532
534
|
end
|
|
@@ -543,7 +545,9 @@ module Twilio
|
|
|
543
545
|
# application-specific data.
|
|
544
546
|
# @param [Time] date_created The date, specified in [ISO
|
|
545
547
|
# 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource
|
|
546
|
-
# as the date it was created.
|
|
548
|
+
# as the date it was created. The default value is the current time set by the
|
|
549
|
+
# Chat service. Note that this should only be used in cases where a Channel is
|
|
550
|
+
# being recreated from a backup/separate source.
|
|
547
551
|
# @param [Time] date_updated The date, specified in [ISO
|
|
548
552
|
# 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource
|
|
549
553
|
# as the date it was last updated.
|
|
@@ -17,10 +17,11 @@ module Twilio
|
|
|
17
17
|
# Initialize the InviteList
|
|
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 resource is
|
|
20
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) the Invite resource is
|
|
21
21
|
# associated with.
|
|
22
22
|
# @param [String] channel_sid The SID of the
|
|
23
|
-
# [Channel](https://www.twilio.com/docs/chat/channels) the resource belongs
|
|
23
|
+
# [Channel](https://www.twilio.com/docs/chat/channels) the Invite resource belongs
|
|
24
|
+
# to.
|
|
24
25
|
# @return [InviteList] InviteList
|
|
25
26
|
def initialize(version, service_sid: nil, channel_sid: nil)
|
|
26
27
|
super(version)
|
|
@@ -198,13 +199,13 @@ module Twilio
|
|
|
198
199
|
# Initialize the InviteContext
|
|
199
200
|
# @param [Version] version Version that contains the resource
|
|
200
201
|
# @param [String] service_sid The SID of the
|
|
201
|
-
# [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the
|
|
202
|
-
# from.
|
|
202
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the Invite
|
|
203
|
+
# resource from.
|
|
203
204
|
# @param [String] channel_sid The SID of the
|
|
204
|
-
# [Channel](https://www.twilio.com/docs/chat/channels) the resource to
|
|
205
|
-
# belongs to.
|
|
206
|
-
#
|
|
207
|
-
#
|
|
205
|
+
# [Channel](https://www.twilio.com/docs/chat/channels) the Invite resource to
|
|
206
|
+
# fetch belongs to. This value can be the Channel resource's `sid` or
|
|
207
|
+
# `unique_name`.
|
|
208
|
+
# @param [String] sid The SID of the Invite resource to fetch.
|
|
208
209
|
# @return [InviteContext] InviteContext
|
|
209
210
|
def initialize(version, service_sid, channel_sid, sid)
|
|
210
211
|
super(version)
|
|
@@ -237,7 +238,7 @@ module Twilio
|
|
|
237
238
|
|
|
238
239
|
##
|
|
239
240
|
# Deletes the InviteInstance
|
|
240
|
-
# @return [Boolean] true if delete succeeds,
|
|
241
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
241
242
|
def delete
|
|
242
243
|
@version.delete('delete', @uri)
|
|
243
244
|
end
|
|
@@ -263,12 +264,12 @@ module Twilio
|
|
|
263
264
|
# @param [Version] version Version that contains the resource
|
|
264
265
|
# @param [Hash] payload payload that contains response from Twilio
|
|
265
266
|
# @param [String] service_sid The SID of the
|
|
266
|
-
# [Service](https://www.twilio.com/docs/chat/rest/services) the resource is
|
|
267
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) the Invite resource is
|
|
267
268
|
# associated with.
|
|
268
269
|
# @param [String] channel_sid The SID of the
|
|
269
|
-
# [Channel](https://www.twilio.com/docs/chat/channels) the resource belongs
|
|
270
|
-
#
|
|
271
|
-
#
|
|
270
|
+
# [Channel](https://www.twilio.com/docs/chat/channels) the Invite resource belongs
|
|
271
|
+
# to.
|
|
272
|
+
# @param [String] sid The SID of the Invite resource to fetch.
|
|
272
273
|
# @return [InviteInstance] InviteInstance
|
|
273
274
|
def initialize(version, payload, service_sid: nil, channel_sid: nil, sid: nil)
|
|
274
275
|
super(version)
|
|
@@ -343,13 +344,13 @@ module Twilio
|
|
|
343
344
|
end
|
|
344
345
|
|
|
345
346
|
##
|
|
346
|
-
# @return [Time] The
|
|
347
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
|
347
348
|
def date_created
|
|
348
349
|
@properties['date_created']
|
|
349
350
|
end
|
|
350
351
|
|
|
351
352
|
##
|
|
352
|
-
# @return [Time] The
|
|
353
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
|
|
353
354
|
def date_updated
|
|
354
355
|
@properties['date_updated']
|
|
355
356
|
end
|
|
@@ -381,7 +382,7 @@ module Twilio
|
|
|
381
382
|
|
|
382
383
|
##
|
|
383
384
|
# Deletes the InviteInstance
|
|
384
|
-
# @return [Boolean] true if delete succeeds,
|
|
385
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
385
386
|
def delete
|
|
386
387
|
context.delete
|
|
387
388
|
end
|
|
@@ -17,10 +17,11 @@ module Twilio
|
|
|
17
17
|
# Initialize the MemberList
|
|
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 resource is
|
|
20
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) the Member resource is
|
|
21
21
|
# associated with.
|
|
22
|
-
# @param [String] channel_sid The
|
|
23
|
-
# [Channel](https://www.twilio.com/docs/chat/channels)
|
|
22
|
+
# @param [String] channel_sid The SID of the
|
|
23
|
+
# [Channel](https://www.twilio.com/docs/chat/channels) the Member resource belongs
|
|
24
|
+
# to.
|
|
24
25
|
# @return [MemberList] MemberList
|
|
25
26
|
def initialize(version, service_sid: nil, channel_sid: nil)
|
|
26
27
|
super(version)
|
|
@@ -36,7 +37,7 @@ module Twilio
|
|
|
36
37
|
# @param [String] identity The `identity` value that uniquely identifies the new
|
|
37
38
|
# resource's [User](https://www.twilio.com/docs/chat/rest/users) within the
|
|
38
39
|
# [Service](https://www.twilio.com/docs/chat/rest/services). See [access
|
|
39
|
-
# tokens](https://www.twilio.com/docs/chat/create-tokens) for more
|
|
40
|
+
# tokens](https://www.twilio.com/docs/chat/create-tokens) for more info.
|
|
40
41
|
# @param [String] role_sid The SID of the
|
|
41
42
|
# [Role](https://www.twilio.com/docs/chat/rest/roles) to assign to the member. The
|
|
42
43
|
# default roles are those specified on the
|
|
@@ -46,8 +47,8 @@ module Twilio
|
|
|
46
47
|
# [Channel](https://www.twilio.com/docs/chat/channels) that the Member has read.
|
|
47
48
|
# This parameter should only be used when recreating a Member from a
|
|
48
49
|
# backup/separate source.
|
|
49
|
-
# @param [Time] last_consumption_timestamp The ISO
|
|
50
|
-
#
|
|
50
|
+
# @param [Time] last_consumption_timestamp The [ISO
|
|
51
|
+
# 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last
|
|
51
52
|
# [Message](https://www.twilio.com/docs/chat/rest/messages) read event for the
|
|
52
53
|
# Member within the [Channel](https://www.twilio.com/docs/chat/channels).
|
|
53
54
|
# @param [Time] date_created The date, specified in [ISO
|
|
@@ -57,7 +58,7 @@ module Twilio
|
|
|
57
58
|
# being recreated from a backup/separate source.
|
|
58
59
|
# @param [Time] date_updated The date, specified in [ISO
|
|
59
60
|
# 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource
|
|
60
|
-
# as the date it was last updated. The default value is `null`.
|
|
61
|
+
# as the date it was last updated. The default value is `null`. Note that this
|
|
61
62
|
# parameter should only be used when a Member is being recreated from a
|
|
62
63
|
# backup/separate source and where a Member was previously updated.
|
|
63
64
|
# @param [String] attributes A valid JSON string that contains
|
|
@@ -94,7 +95,7 @@ module Twilio
|
|
|
94
95
|
# memory before returning.
|
|
95
96
|
# @param [String] identity The
|
|
96
97
|
# [User](https://www.twilio.com/docs/chat/rest/users)'s `identity` value of the
|
|
97
|
-
# resources to read. See [access
|
|
98
|
+
# Member resources to read. See [access
|
|
98
99
|
# tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
|
|
99
100
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
100
101
|
# guarantees to never return more than limit. Default is no limit
|
|
@@ -113,7 +114,7 @@ module Twilio
|
|
|
113
114
|
# is reached.
|
|
114
115
|
# @param [String] identity The
|
|
115
116
|
# [User](https://www.twilio.com/docs/chat/rest/users)'s `identity` value of the
|
|
116
|
-
# resources to read. See [access
|
|
117
|
+
# Member resources to read. See [access
|
|
117
118
|
# tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
|
|
118
119
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
119
120
|
# guarantees to never return more than limit. Default is no limit.
|
|
@@ -149,7 +150,7 @@ module Twilio
|
|
|
149
150
|
# Request is executed immediately.
|
|
150
151
|
# @param [String] identity The
|
|
151
152
|
# [User](https://www.twilio.com/docs/chat/rest/users)'s `identity` value of the
|
|
152
|
-
# resources to read. See [access
|
|
153
|
+
# Member resources to read. See [access
|
|
153
154
|
# tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
|
|
154
155
|
# @param [String] page_token PageToken provided by the API
|
|
155
156
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
@@ -229,13 +230,14 @@ module Twilio
|
|
|
229
230
|
# Initialize the MemberContext
|
|
230
231
|
# @param [Version] version Version that contains the resource
|
|
231
232
|
# @param [String] service_sid The SID of the
|
|
232
|
-
# [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the
|
|
233
|
-
# from.
|
|
234
|
-
# @param [String] channel_sid The
|
|
235
|
-
# [Channel](https://www.twilio.com/docs/chat/channels) the
|
|
236
|
-
# to.
|
|
237
|
-
#
|
|
238
|
-
#
|
|
233
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the Member
|
|
234
|
+
# resource from.
|
|
235
|
+
# @param [String] channel_sid The SID of the
|
|
236
|
+
# [Channel](https://www.twilio.com/docs/chat/channels) the Member resource to
|
|
237
|
+
# fetch belongs to. This value can be the Channel resource's `sid` or
|
|
238
|
+
# `unique_name`.
|
|
239
|
+
# @param [String] sid The SID of the Member resource to fetch. This value can be
|
|
240
|
+
# either the Member's `sid` or its `identity` value.
|
|
239
241
|
# @return [MemberContext] MemberContext
|
|
240
242
|
def initialize(version, service_sid, channel_sid, sid)
|
|
241
243
|
super(version)
|
|
@@ -268,7 +270,7 @@ module Twilio
|
|
|
268
270
|
|
|
269
271
|
##
|
|
270
272
|
# Deletes the MemberInstance
|
|
271
|
-
# @return [Boolean] true if delete succeeds,
|
|
273
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
272
274
|
def delete
|
|
273
275
|
@version.delete('delete', @uri)
|
|
274
276
|
end
|
|
@@ -282,20 +284,18 @@ module Twilio
|
|
|
282
284
|
# @param [String] last_consumed_message_index The index of the last
|
|
283
285
|
# [Message](https://www.twilio.com/docs/chat/rest/messages) that the Member has
|
|
284
286
|
# read within the [Channel](https://www.twilio.com/docs/chat/channels).
|
|
285
|
-
# @param [Time] last_consumption_timestamp The ISO
|
|
286
|
-
#
|
|
287
|
+
# @param [Time] last_consumption_timestamp The [ISO
|
|
288
|
+
# 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last
|
|
287
289
|
# [Message](https://www.twilio.com/docs/chat/rest/messages) read event for the
|
|
288
290
|
# Member within the [Channel](https://www.twilio.com/docs/chat/channels).
|
|
289
291
|
# @param [Time] date_created The date, specified in [ISO
|
|
290
292
|
# 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource
|
|
291
|
-
# as the date it was created. The default is the current time set by the
|
|
292
|
-
# service. Note that this parameter should only be used when a Member is
|
|
293
|
-
# recreated from a backup/separate source.
|
|
293
|
+
# as the date it was created. The default value is the current time set by the
|
|
294
|
+
# Chat service. Note that this parameter should only be used when a Member is
|
|
295
|
+
# being recreated from a backup/separate source.
|
|
294
296
|
# @param [Time] date_updated The date, specified in [ISO
|
|
295
297
|
# 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource
|
|
296
|
-
# as the date it was last updated.
|
|
297
|
-
# when a Member is being recreated from a backup/separate source and where a
|
|
298
|
-
# Member was previously updated.
|
|
298
|
+
# as the date it was last updated.
|
|
299
299
|
# @param [String] attributes A valid JSON string that contains
|
|
300
300
|
# application-specific data.
|
|
301
301
|
# @return [MemberInstance] Updated MemberInstance
|
|
@@ -345,12 +345,13 @@ module Twilio
|
|
|
345
345
|
# @param [Version] version Version that contains the resource
|
|
346
346
|
# @param [Hash] payload payload that contains response from Twilio
|
|
347
347
|
# @param [String] service_sid The SID of the
|
|
348
|
-
# [Service](https://www.twilio.com/docs/chat/rest/services) the resource is
|
|
348
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) the Member resource is
|
|
349
349
|
# associated with.
|
|
350
|
-
# @param [String] channel_sid The
|
|
351
|
-
# [Channel](https://www.twilio.com/docs/chat/channels)
|
|
352
|
-
#
|
|
353
|
-
#
|
|
350
|
+
# @param [String] channel_sid The SID of the
|
|
351
|
+
# [Channel](https://www.twilio.com/docs/chat/channels) the Member resource belongs
|
|
352
|
+
# to.
|
|
353
|
+
# @param [String] sid The SID of the Member resource to fetch. This value can be
|
|
354
|
+
# either the Member's `sid` or its `identity` value.
|
|
354
355
|
# @return [MemberInstance] MemberInstance
|
|
355
356
|
def initialize(version, payload, service_sid: nil, channel_sid: nil, sid: nil)
|
|
356
357
|
super(version)
|
|
@@ -409,7 +410,7 @@ module Twilio
|
|
|
409
410
|
end
|
|
410
411
|
|
|
411
412
|
##
|
|
412
|
-
# @return [String] The
|
|
413
|
+
# @return [String] The SID of the Channel for the member
|
|
413
414
|
def channel_sid
|
|
414
415
|
@properties['channel_sid']
|
|
415
416
|
end
|
|
@@ -427,13 +428,13 @@ module Twilio
|
|
|
427
428
|
end
|
|
428
429
|
|
|
429
430
|
##
|
|
430
|
-
# @return [Time] The
|
|
431
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
|
431
432
|
def date_created
|
|
432
433
|
@properties['date_created']
|
|
433
434
|
end
|
|
434
435
|
|
|
435
436
|
##
|
|
436
|
-
# @return [Time] The
|
|
437
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
|
|
437
438
|
def date_updated
|
|
438
439
|
@properties['date_updated']
|
|
439
440
|
end
|
|
@@ -451,7 +452,7 @@ module Twilio
|
|
|
451
452
|
end
|
|
452
453
|
|
|
453
454
|
##
|
|
454
|
-
# @return [Time] The ISO 8601 based timestamp string that represents the
|
|
455
|
+
# @return [Time] The ISO 8601 based timestamp string that represents the datetime of the last Message read event for the Member within the Channel
|
|
455
456
|
def last_consumption_timestamp
|
|
456
457
|
@properties['last_consumption_timestamp']
|
|
457
458
|
end
|
|
@@ -477,7 +478,7 @@ module Twilio
|
|
|
477
478
|
|
|
478
479
|
##
|
|
479
480
|
# Deletes the MemberInstance
|
|
480
|
-
# @return [Boolean] true if delete succeeds,
|
|
481
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
481
482
|
def delete
|
|
482
483
|
context.delete
|
|
483
484
|
end
|
|
@@ -491,20 +492,18 @@ module Twilio
|
|
|
491
492
|
# @param [String] last_consumed_message_index The index of the last
|
|
492
493
|
# [Message](https://www.twilio.com/docs/chat/rest/messages) that the Member has
|
|
493
494
|
# read within the [Channel](https://www.twilio.com/docs/chat/channels).
|
|
494
|
-
# @param [Time] last_consumption_timestamp The ISO
|
|
495
|
-
#
|
|
495
|
+
# @param [Time] last_consumption_timestamp The [ISO
|
|
496
|
+
# 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last
|
|
496
497
|
# [Message](https://www.twilio.com/docs/chat/rest/messages) read event for the
|
|
497
498
|
# Member within the [Channel](https://www.twilio.com/docs/chat/channels).
|
|
498
499
|
# @param [Time] date_created The date, specified in [ISO
|
|
499
500
|
# 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource
|
|
500
|
-
# as the date it was created. The default is the current time set by the
|
|
501
|
-
# service. Note that this parameter should only be used when a Member is
|
|
502
|
-
# recreated from a backup/separate source.
|
|
501
|
+
# as the date it was created. The default value is the current time set by the
|
|
502
|
+
# Chat service. Note that this parameter should only be used when a Member is
|
|
503
|
+
# being recreated from a backup/separate source.
|
|
503
504
|
# @param [Time] date_updated The date, specified in [ISO
|
|
504
505
|
# 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource
|
|
505
|
-
# as the date it was last updated.
|
|
506
|
-
# when a Member is being recreated from a backup/separate source and where a
|
|
507
|
-
# Member was previously updated.
|
|
506
|
+
# as the date it was last updated.
|
|
508
507
|
# @param [String] attributes A valid JSON string that contains
|
|
509
508
|
# application-specific data.
|
|
510
509
|
# @return [MemberInstance] Updated MemberInstance
|