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
|
@@ -315,7 +315,7 @@ module Twilio
|
|
|
315
315
|
|
|
316
316
|
##
|
|
317
317
|
# Deletes the TaskQueueInstance
|
|
318
|
-
# @return [Boolean] true if delete succeeds,
|
|
318
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
319
319
|
def delete
|
|
320
320
|
@version.delete('delete', @uri)
|
|
321
321
|
end
|
|
@@ -536,7 +536,7 @@ module Twilio
|
|
|
536
536
|
|
|
537
537
|
##
|
|
538
538
|
# Deletes the TaskQueueInstance
|
|
539
|
-
# @return [Boolean] true if delete succeeds,
|
|
539
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
540
540
|
def delete
|
|
541
541
|
context.delete
|
|
542
542
|
end
|
|
@@ -330,7 +330,7 @@ module Twilio
|
|
|
330
330
|
|
|
331
331
|
##
|
|
332
332
|
# Deletes the WorkerInstance
|
|
333
|
-
# @return [Boolean] true if delete succeeds,
|
|
333
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
334
334
|
def delete
|
|
335
335
|
@version.delete('delete', @uri)
|
|
336
336
|
end
|
|
@@ -566,7 +566,7 @@ module Twilio
|
|
|
566
566
|
|
|
567
567
|
##
|
|
568
568
|
# Deletes the WorkerInstance
|
|
569
|
-
# @return [Boolean] true if delete succeeds,
|
|
569
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
570
570
|
def delete
|
|
571
571
|
context.delete
|
|
572
572
|
end
|
|
@@ -272,7 +272,7 @@ module Twilio
|
|
|
272
272
|
|
|
273
273
|
##
|
|
274
274
|
# Deletes the WorkflowInstance
|
|
275
|
-
# @return [Boolean] true if delete succeeds,
|
|
275
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
276
276
|
def delete
|
|
277
277
|
@version.delete('delete', @uri)
|
|
278
278
|
end
|
|
@@ -476,7 +476,7 @@ module Twilio
|
|
|
476
476
|
|
|
477
477
|
##
|
|
478
478
|
# Deletes the WorkflowInstance
|
|
479
|
-
# @return [Boolean] true if delete succeeds,
|
|
479
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
480
480
|
def delete
|
|
481
481
|
context.delete
|
|
482
482
|
end
|
|
@@ -235,7 +235,7 @@ module Twilio
|
|
|
235
235
|
|
|
236
236
|
##
|
|
237
237
|
# Deletes the TrunkInstance
|
|
238
|
-
# @return [Boolean] true if delete succeeds,
|
|
238
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
239
239
|
def delete
|
|
240
240
|
@version.delete('delete', @uri)
|
|
241
241
|
end
|
|
@@ -542,7 +542,7 @@ module Twilio
|
|
|
542
542
|
|
|
543
543
|
##
|
|
544
544
|
# Deletes the TrunkInstance
|
|
545
|
-
# @return [Boolean] true if delete succeeds,
|
|
545
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
546
546
|
def delete
|
|
547
547
|
context.delete
|
|
548
548
|
end
|
|
@@ -203,7 +203,7 @@ module Twilio
|
|
|
203
203
|
|
|
204
204
|
##
|
|
205
205
|
# Deletes the CredentialListInstance
|
|
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
|
|
@@ -314,7 +314,7 @@ module Twilio
|
|
|
314
314
|
|
|
315
315
|
##
|
|
316
316
|
# Deletes the CredentialListInstance
|
|
317
|
-
# @return [Boolean] true if delete succeeds,
|
|
317
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
318
318
|
def delete
|
|
319
319
|
context.delete
|
|
320
320
|
end
|
|
@@ -201,7 +201,7 @@ module Twilio
|
|
|
201
201
|
|
|
202
202
|
##
|
|
203
203
|
# Deletes the IpAccessControlListInstance
|
|
204
|
-
# @return [Boolean] true if delete succeeds,
|
|
204
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
205
205
|
def delete
|
|
206
206
|
@version.delete('delete', @uri)
|
|
207
207
|
end
|
|
@@ -311,7 +311,7 @@ module Twilio
|
|
|
311
311
|
|
|
312
312
|
##
|
|
313
313
|
# Deletes the IpAccessControlListInstance
|
|
314
|
-
# @return [Boolean] true if delete succeeds,
|
|
314
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
315
315
|
def delete
|
|
316
316
|
context.delete
|
|
317
317
|
end
|
|
@@ -216,7 +216,7 @@ module Twilio
|
|
|
216
216
|
|
|
217
217
|
##
|
|
218
218
|
# Deletes the OriginationUrlInstance
|
|
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
|
|
@@ -392,7 +392,7 @@ module Twilio
|
|
|
392
392
|
|
|
393
393
|
##
|
|
394
394
|
# Deletes the OriginationUrlInstance
|
|
395
|
-
# @return [Boolean] true if delete succeeds,
|
|
395
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
396
396
|
def delete
|
|
397
397
|
context.delete
|
|
398
398
|
end
|
|
@@ -199,7 +199,7 @@ module Twilio
|
|
|
199
199
|
|
|
200
200
|
##
|
|
201
201
|
# Deletes the PhoneNumberInstance
|
|
202
|
-
# @return [Boolean] true if delete succeeds,
|
|
202
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
203
203
|
def delete
|
|
204
204
|
@version.delete('delete', @uri)
|
|
205
205
|
end
|
|
@@ -445,7 +445,7 @@ module Twilio
|
|
|
445
445
|
|
|
446
446
|
##
|
|
447
447
|
# Deletes the PhoneNumberInstance
|
|
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 TerminatingSipDomainInstance
|
|
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
|
|
@@ -392,7 +392,7 @@ module Twilio
|
|
|
392
392
|
|
|
393
393
|
##
|
|
394
394
|
# Deletes the TerminatingSipDomainInstance
|
|
395
|
-
# @return [Boolean] true if delete succeeds,
|
|
395
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
396
396
|
def delete
|
|
397
397
|
context.delete
|
|
398
398
|
end
|
|
@@ -224,7 +224,7 @@ module Twilio
|
|
|
224
224
|
|
|
225
225
|
##
|
|
226
226
|
# Deletes the ServiceInstance
|
|
227
|
-
# @return [Boolean] true if delete succeeds,
|
|
227
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
228
228
|
def delete
|
|
229
229
|
@version.delete('delete', @uri)
|
|
230
230
|
end
|
|
@@ -481,7 +481,7 @@ module Twilio
|
|
|
481
481
|
|
|
482
482
|
##
|
|
483
483
|
# Deletes the ServiceInstance
|
|
484
|
-
# @return [Boolean] true if delete succeeds,
|
|
484
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
485
485
|
def delete
|
|
486
486
|
context.delete
|
|
487
487
|
end
|
|
@@ -239,7 +239,7 @@ module Twilio
|
|
|
239
239
|
|
|
240
240
|
##
|
|
241
241
|
# Deletes the MessagingConfigurationInstance
|
|
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
|
|
@@ -369,7 +369,7 @@ module Twilio
|
|
|
369
369
|
|
|
370
370
|
##
|
|
371
371
|
# Deletes the MessagingConfigurationInstance
|
|
372
|
-
# @return [Boolean] true if delete succeeds,
|
|
372
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
373
373
|
def delete
|
|
374
374
|
context.delete
|
|
375
375
|
end
|
|
@@ -225,7 +225,7 @@ module Twilio
|
|
|
225
225
|
|
|
226
226
|
##
|
|
227
227
|
# Deletes the RateLimitInstance
|
|
228
|
-
# @return [Boolean] true if delete succeeds,
|
|
228
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
229
229
|
def delete
|
|
230
230
|
@version.delete('delete', @uri)
|
|
231
231
|
end
|
|
@@ -361,7 +361,7 @@ module Twilio
|
|
|
361
361
|
end
|
|
362
362
|
|
|
363
363
|
##
|
|
364
|
-
# @return [String] The
|
|
364
|
+
# @return [String] The URLs of related resources
|
|
365
365
|
def links
|
|
366
366
|
@properties['links']
|
|
367
367
|
end
|
|
@@ -383,7 +383,7 @@ module Twilio
|
|
|
383
383
|
|
|
384
384
|
##
|
|
385
385
|
# Deletes the RateLimitInstance
|
|
386
|
-
# @return [Boolean] true if delete succeeds,
|
|
386
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
387
387
|
def delete
|
|
388
388
|
context.delete
|
|
389
389
|
end
|
|
@@ -249,7 +249,7 @@ module Twilio
|
|
|
249
249
|
|
|
250
250
|
##
|
|
251
251
|
# Deletes the BucketInstance
|
|
252
|
-
# @return [Boolean] true if delete succeeds,
|
|
252
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
253
253
|
def delete
|
|
254
254
|
@version.delete('delete', @uri)
|
|
255
255
|
end
|
|
@@ -397,7 +397,7 @@ module Twilio
|
|
|
397
397
|
|
|
398
398
|
##
|
|
399
399
|
# Deletes the BucketInstance
|
|
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
|
|
@@ -307,7 +307,7 @@ module Twilio
|
|
|
307
307
|
|
|
308
308
|
##
|
|
309
309
|
# Deletes the CompositionInstance
|
|
310
|
-
# @return [Boolean] true if delete succeeds,
|
|
310
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
311
311
|
def delete
|
|
312
312
|
@version.delete('delete', @uri)
|
|
313
313
|
end
|
|
@@ -495,7 +495,7 @@ module Twilio
|
|
|
495
495
|
|
|
496
496
|
##
|
|
497
497
|
# Deletes the CompositionInstance
|
|
498
|
-
# @return [Boolean] true if delete succeeds,
|
|
498
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
499
499
|
def delete
|
|
500
500
|
context.delete
|
|
501
501
|
end
|
|
@@ -316,7 +316,7 @@ module Twilio
|
|
|
316
316
|
|
|
317
317
|
##
|
|
318
318
|
# Deletes the CompositionHookInstance
|
|
319
|
-
# @return [Boolean] true if delete succeeds,
|
|
319
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
320
320
|
def delete
|
|
321
321
|
@version.delete('delete', @uri)
|
|
322
322
|
end
|
|
@@ -555,7 +555,7 @@ module Twilio
|
|
|
555
555
|
|
|
556
556
|
##
|
|
557
557
|
# Deletes the CompositionHookInstance
|
|
558
|
-
# @return [Boolean] true if delete succeeds,
|
|
558
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
559
559
|
def delete
|
|
560
560
|
context.delete
|
|
561
561
|
end
|
|
@@ -235,7 +235,7 @@ module Twilio
|
|
|
235
235
|
|
|
236
236
|
##
|
|
237
237
|
# Deletes the RecordingInstance
|
|
238
|
-
# @return [Boolean] true if delete succeeds,
|
|
238
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
239
239
|
def delete
|
|
240
240
|
@version.delete('delete', @uri)
|
|
241
241
|
end
|
|
@@ -400,7 +400,7 @@ module Twilio
|
|
|
400
400
|
|
|
401
401
|
##
|
|
402
402
|
# Deletes the RecordingInstance
|
|
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
|
|
@@ -204,7 +204,7 @@ module Twilio
|
|
|
204
204
|
|
|
205
205
|
##
|
|
206
206
|
# Deletes the RoomRecordingInstance
|
|
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
|
|
@@ -376,7 +376,7 @@ module Twilio
|
|
|
376
376
|
|
|
377
377
|
##
|
|
378
378
|
# Deletes the RoomRecordingInstance
|
|
379
|
-
# @return [Boolean] true if delete succeeds,
|
|
379
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
380
380
|
def delete
|
|
381
381
|
context.delete
|
|
382
382
|
end
|
|
@@ -29,7 +29,7 @@ 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 Command
|
|
33
33
|
# resource.
|
|
34
34
|
# @return [Twilio::REST::Wireless::V1::CommandInstance] if sid was passed.
|
|
35
35
|
# @return [Twilio::REST::Wireless::V1::CommandList]
|
|
@@ -38,7 +38,7 @@ module Twilio
|
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
##
|
|
41
|
-
# @param [String] sid
|
|
41
|
+
# @param [String] sid The unique string that we created to identify the RatePlan
|
|
42
42
|
# resource.
|
|
43
43
|
# @return [Twilio::REST::Wireless::V1::RatePlanInstance] if sid was passed.
|
|
44
44
|
# @return [Twilio::REST::Wireless::V1::RatePlanList]
|
|
@@ -53,7 +53,7 @@ module Twilio
|
|
|
53
53
|
end
|
|
54
54
|
|
|
55
55
|
##
|
|
56
|
-
# @param [String] sid
|
|
56
|
+
# @param [String] sid The unique string that we created to identify the Sim
|
|
57
57
|
# resource.
|
|
58
58
|
# @return [Twilio::REST::Wireless::V1::SimInstance] if sid was passed.
|
|
59
59
|
# @return [Twilio::REST::Wireless::V1::SimList]
|
|
@@ -22,8 +22,7 @@ module Twilio
|
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
##
|
|
25
|
-
# @param [String] sid
|
|
26
|
-
# resource.
|
|
25
|
+
# @param [String] sid The SID of the Command resource to fetch.
|
|
27
26
|
# @return [Twilio::REST::Wireless::V1::CommandContext] if sid was passed.
|
|
28
27
|
# @return [Twilio::REST::Wireless::V1::CommandList]
|
|
29
28
|
def commands(sid=:unset)
|
|
@@ -37,8 +36,7 @@ module Twilio
|
|
|
37
36
|
end
|
|
38
37
|
|
|
39
38
|
##
|
|
40
|
-
# @param [String] sid
|
|
41
|
-
# resource.
|
|
39
|
+
# @param [String] sid The SID of the RatePlan resource to fetch.
|
|
42
40
|
# @return [Twilio::REST::Wireless::V1::RatePlanContext] if sid was passed.
|
|
43
41
|
# @return [Twilio::REST::Wireless::V1::RatePlanList]
|
|
44
42
|
def rate_plans(sid=:unset)
|
|
@@ -58,8 +56,7 @@ module Twilio
|
|
|
58
56
|
end
|
|
59
57
|
|
|
60
58
|
##
|
|
61
|
-
# @param [String] sid
|
|
62
|
-
# resource.
|
|
59
|
+
# @param [String] sid The SID of the Sim resource to fetch.
|
|
63
60
|
# @return [Twilio::REST::Wireless::V1::SimContext] if sid was passed.
|
|
64
61
|
# @return [Twilio::REST::Wireless::V1::SimList]
|
|
65
62
|
def sims(sid=:unset)
|
|
@@ -27,12 +27,14 @@ module Twilio
|
|
|
27
27
|
# Lists CommandInstance records from the API as a list.
|
|
28
28
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
29
29
|
# memory before returning.
|
|
30
|
-
# @param [String] sim
|
|
31
|
-
#
|
|
30
|
+
# @param [String] sim The `sid` or `unique_name` of the [Sim
|
|
31
|
+
# resources](https://www.twilio.com/docs/wireless/api/sim) to read.
|
|
32
|
+
# @param [command.Status] status The status of the resources to read. Can be:
|
|
33
|
+
# `queued`, `sent`, `delivered`, `received`, or `failed`.
|
|
32
34
|
# @param [command.Direction] direction Only return Commands with this direction
|
|
33
35
|
# value.
|
|
34
36
|
# @param [command.Transport] transport Only return Commands with this transport
|
|
35
|
-
# value.
|
|
37
|
+
# value. Can be: `sms` or `ip`.
|
|
36
38
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
37
39
|
# guarantees to never return more than limit. Default is no limit
|
|
38
40
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -55,12 +57,14 @@ module Twilio
|
|
|
55
57
|
# Streams CommandInstance records from the API as an Enumerable.
|
|
56
58
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
57
59
|
# is reached.
|
|
58
|
-
# @param [String] sim
|
|
59
|
-
#
|
|
60
|
+
# @param [String] sim The `sid` or `unique_name` of the [Sim
|
|
61
|
+
# resources](https://www.twilio.com/docs/wireless/api/sim) to read.
|
|
62
|
+
# @param [command.Status] status The status of the resources to read. Can be:
|
|
63
|
+
# `queued`, `sent`, `delivered`, `received`, or `failed`.
|
|
60
64
|
# @param [command.Direction] direction Only return Commands with this direction
|
|
61
65
|
# value.
|
|
62
66
|
# @param [command.Transport] transport Only return Commands with this transport
|
|
63
|
-
# value.
|
|
67
|
+
# value. Can be: `sms` or `ip`.
|
|
64
68
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
65
69
|
# guarantees to never return more than limit. Default is no limit.
|
|
66
70
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -99,12 +103,14 @@ module Twilio
|
|
|
99
103
|
##
|
|
100
104
|
# Retrieve a single page of CommandInstance records from the API.
|
|
101
105
|
# Request is executed immediately.
|
|
102
|
-
# @param [String] sim
|
|
103
|
-
#
|
|
106
|
+
# @param [String] sim The `sid` or `unique_name` of the [Sim
|
|
107
|
+
# resources](https://www.twilio.com/docs/wireless/api/sim) to read.
|
|
108
|
+
# @param [command.Status] status The status of the resources to read. Can be:
|
|
109
|
+
# `queued`, `sent`, `delivered`, `received`, or `failed`.
|
|
104
110
|
# @param [command.Direction] direction Only return Commands with this direction
|
|
105
111
|
# value.
|
|
106
112
|
# @param [command.Transport] transport Only return Commands with this transport
|
|
107
|
-
# value.
|
|
113
|
+
# value. Can be: `sms` or `ip`.
|
|
108
114
|
# @param [String] page_token PageToken provided by the API
|
|
109
115
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
110
116
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
@@ -143,31 +149,29 @@ module Twilio
|
|
|
143
149
|
##
|
|
144
150
|
# Retrieve a single page of CommandInstance records from the API.
|
|
145
151
|
# Request is executed immediately.
|
|
146
|
-
# @param [String] command The message body of the Command
|
|
147
|
-
# Base64 encoded byte string in binary mode.
|
|
148
|
-
# @param [String] sim The
|
|
149
|
-
# [SIM](https://www.twilio.com/docs/
|
|
150
|
-
#
|
|
151
|
-
#
|
|
152
|
-
#
|
|
153
|
-
#
|
|
154
|
-
#
|
|
155
|
-
#
|
|
156
|
-
#
|
|
157
|
-
#
|
|
158
|
-
#
|
|
159
|
-
#
|
|
160
|
-
#
|
|
161
|
-
#
|
|
162
|
-
#
|
|
163
|
-
#
|
|
164
|
-
#
|
|
165
|
-
#
|
|
166
|
-
# the
|
|
167
|
-
#
|
|
168
|
-
#
|
|
169
|
-
# receipt, the Command state transitions to 'delivered' once the server has
|
|
170
|
-
# received a delivery receipt from the device. Defaults to true.
|
|
152
|
+
# @param [String] command The message body of the Command. Can be plain text in
|
|
153
|
+
# text mode or a Base64 encoded byte string in binary mode.
|
|
154
|
+
# @param [String] sim The `sid` or `unique_name` of the
|
|
155
|
+
# [SIM](https://www.twilio.com/docs/wireless/api/sim) to send the Command to.
|
|
156
|
+
# @param [String] callback_method The HTTP method we use to call `callback_url`.
|
|
157
|
+
# Can be: `POST` or `GET`, and the default is `POST`.
|
|
158
|
+
# @param [String] callback_url The URL we call using the `callback_url` when the
|
|
159
|
+
# Command has finished sending, whether the command was delivered or it failed.
|
|
160
|
+
# @param [command.CommandMode] command_mode The mode to use when sending the SMS
|
|
161
|
+
# message. Can be: `text` or `binary`. The default SMS mode is `text`.
|
|
162
|
+
# @param [String] include_sid Whether to include the SID of the command in the
|
|
163
|
+
# message body. Can be: `none`, `start`, or `end`, and the default behavior is
|
|
164
|
+
# `none`. When sending a Command to a SIM in text mode, we can automatically
|
|
165
|
+
# include the SID of the Command in the message body, which could be used to
|
|
166
|
+
# ensure that the device does not process the same Command more than once. A
|
|
167
|
+
# value of `start` will prepend the message with the Command SID, and `end` will
|
|
168
|
+
# append it to the end, separating the Command SID from the message body with a
|
|
169
|
+
# space. The length of the Command SID is included in the 160 character limit so
|
|
170
|
+
# the SMS body must be 128 characters or less before the Command SID is included.
|
|
171
|
+
# @param [Boolean] delivery_receipt_requested Whether to request delivery receipt
|
|
172
|
+
# from the recipient. For Commands that request delivery receipt, the Command
|
|
173
|
+
# state transitions to 'delivered' once the server has received a delivery receipt
|
|
174
|
+
# from the device. The default value is `true`.
|
|
171
175
|
# @return [CommandInstance] Newly created CommandInstance
|
|
172
176
|
def create(command: nil, sim: :unset, callback_method: :unset, callback_url: :unset, command_mode: :unset, include_sid: :unset, delivery_receipt_requested: :unset)
|
|
173
177
|
data = Twilio::Values.of({
|
|
@@ -229,8 +233,7 @@ module Twilio
|
|
|
229
233
|
##
|
|
230
234
|
# Initialize the CommandContext
|
|
231
235
|
# @param [Version] version Version that contains the resource
|
|
232
|
-
# @param [String] sid
|
|
233
|
-
# resource.
|
|
236
|
+
# @param [String] sid The SID of the Command resource to fetch.
|
|
234
237
|
# @return [CommandContext] CommandContext
|
|
235
238
|
def initialize(version, sid)
|
|
236
239
|
super(version)
|
|
@@ -257,7 +260,7 @@ module Twilio
|
|
|
257
260
|
|
|
258
261
|
##
|
|
259
262
|
# Deletes the CommandInstance
|
|
260
|
-
# @return [Boolean] true if delete succeeds,
|
|
263
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
261
264
|
def delete
|
|
262
265
|
@version.delete('delete', @uri)
|
|
263
266
|
end
|
|
@@ -282,8 +285,7 @@ module Twilio
|
|
|
282
285
|
# Initialize the CommandInstance
|
|
283
286
|
# @param [Version] version Version that contains the resource
|
|
284
287
|
# @param [Hash] payload payload that contains response from Twilio
|
|
285
|
-
# @param [String] sid
|
|
286
|
-
# resource.
|
|
288
|
+
# @param [String] sid The SID of the Command resource to fetch.
|
|
287
289
|
# @return [CommandInstance] CommandInstance
|
|
288
290
|
def initialize(version, payload, sid: nil)
|
|
289
291
|
super(version)
|
|
@@ -321,73 +323,73 @@ module Twilio
|
|
|
321
323
|
end
|
|
322
324
|
|
|
323
325
|
##
|
|
324
|
-
# @return [String]
|
|
326
|
+
# @return [String] The unique string that identifies the resource
|
|
325
327
|
def sid
|
|
326
328
|
@properties['sid']
|
|
327
329
|
end
|
|
328
330
|
|
|
329
331
|
##
|
|
330
|
-
# @return [String] The
|
|
332
|
+
# @return [String] The SID of the Account that created the resource
|
|
331
333
|
def account_sid
|
|
332
334
|
@properties['account_sid']
|
|
333
335
|
end
|
|
334
336
|
|
|
335
337
|
##
|
|
336
|
-
# @return [String] The
|
|
338
|
+
# @return [String] The SID of the Sim resource that the Command was sent to or from
|
|
337
339
|
def sim_sid
|
|
338
340
|
@properties['sim_sid']
|
|
339
341
|
end
|
|
340
342
|
|
|
341
343
|
##
|
|
342
|
-
# @return [String] The message being sent to or from the SIM
|
|
344
|
+
# @return [String] The message being sent to or from the SIM
|
|
343
345
|
def command
|
|
344
346
|
@properties['command']
|
|
345
347
|
end
|
|
346
348
|
|
|
347
349
|
##
|
|
348
|
-
# @return [command.CommandMode]
|
|
350
|
+
# @return [command.CommandMode] The mode used to send the SMS message
|
|
349
351
|
def command_mode
|
|
350
352
|
@properties['command_mode']
|
|
351
353
|
end
|
|
352
354
|
|
|
353
355
|
##
|
|
354
|
-
# @return [command.Transport] The transport
|
|
356
|
+
# @return [command.Transport] The type of transport used
|
|
355
357
|
def transport
|
|
356
358
|
@properties['transport']
|
|
357
359
|
end
|
|
358
360
|
|
|
359
361
|
##
|
|
360
|
-
# @return [Boolean]
|
|
362
|
+
# @return [Boolean] Whether to request a delivery receipt
|
|
361
363
|
def delivery_receipt_requested
|
|
362
364
|
@properties['delivery_receipt_requested']
|
|
363
365
|
end
|
|
364
366
|
|
|
365
367
|
##
|
|
366
|
-
# @return [command.Status]
|
|
368
|
+
# @return [command.Status] The status of the Command
|
|
367
369
|
def status
|
|
368
370
|
@properties['status']
|
|
369
371
|
end
|
|
370
372
|
|
|
371
373
|
##
|
|
372
|
-
# @return [command.Direction] The direction of the Command
|
|
374
|
+
# @return [command.Direction] The direction of the Command
|
|
373
375
|
def direction
|
|
374
376
|
@properties['direction']
|
|
375
377
|
end
|
|
376
378
|
|
|
377
379
|
##
|
|
378
|
-
# @return [Time] The
|
|
380
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
|
379
381
|
def date_created
|
|
380
382
|
@properties['date_created']
|
|
381
383
|
end
|
|
382
384
|
|
|
383
385
|
##
|
|
384
|
-
# @return [Time] The
|
|
386
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was last updated format
|
|
385
387
|
def date_updated
|
|
386
388
|
@properties['date_updated']
|
|
387
389
|
end
|
|
388
390
|
|
|
389
391
|
##
|
|
390
|
-
# @return [String] The URL
|
|
392
|
+
# @return [String] The absolute URL of the resource
|
|
391
393
|
def url
|
|
392
394
|
@properties['url']
|
|
393
395
|
end
|
|
@@ -401,7 +403,7 @@ module Twilio
|
|
|
401
403
|
|
|
402
404
|
##
|
|
403
405
|
# Deletes the CommandInstance
|
|
404
|
-
# @return [Boolean] true if delete succeeds,
|
|
406
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
405
407
|
def delete
|
|
406
408
|
context.delete
|
|
407
409
|
end
|