twilio-ruby 5.0.0.rc26 → 5.0.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 +21 -0
- data/.rubocop_todo.yml +187 -0
- data/.travis.yml +13 -0
- data/CHANGES.md +4 -0
- data/Gemfile +2 -2
- data/Makefile +8 -1
- data/Rakefile +3 -7
- data/examples/examples.rb +12 -10
- data/examples/{print-call-log.rb → print_call_log.rb} +4 -4
- data/lib/rack/twilio_webhook_authentication.rb +2 -3
- data/lib/twilio-ruby/framework/domain.rb +2 -6
- data/lib/twilio-ruby/framework/error.rb +0 -1
- data/lib/twilio-ruby/framework/helper.rb +1 -1
- data/lib/twilio-ruby/framework/page.rb +23 -25
- data/lib/twilio-ruby/framework/resource.rb +2 -2
- data/lib/twilio-ruby/framework/serialize.rb +5 -12
- data/lib/twilio-ruby/framework/twilio_response.rb +1 -1
- data/lib/twilio-ruby/framework/values.rb +2 -2
- data/lib/twilio-ruby/framework/version.rb +19 -37
- data/lib/twilio-ruby/http/http_client.rb +5 -6
- data/lib/twilio-ruby/jwt/access_token.rb +27 -41
- data/lib/twilio-ruby/jwt/client_capability.rb +11 -16
- data/lib/twilio-ruby/jwt/jwt.rb +7 -13
- data/lib/twilio-ruby/jwt/task_router.rb +40 -38
- data/lib/twilio-ruby/rest/accounts.rb +2 -0
- data/lib/twilio-ruby/rest/accounts/v1.rb +2 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +2 -2
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +12 -7
- data/lib/twilio-ruby/rest/api.rb +96 -0
- data/lib/twilio-ruby/rest/api/v2010.rb +5 -0
- data/lib/twilio-ruby/rest/api/v2010/account.rb +66 -56
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +30 -13
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +22 -8
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +40 -11
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +20 -9
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +16 -15
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +26 -28
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +26 -28
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +26 -28
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +64 -34
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +12 -4
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +28 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +37 -16
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +25 -15
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +28 -27
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +28 -19
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +22 -9
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +62 -58
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +52 -12
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +52 -12
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +52 -12
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +8 -9
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +47 -20
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +12 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +17 -17
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +10 -2
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +10 -2
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +37 -16
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +14 -13
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +20 -10
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +10 -10
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +37 -21
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +22 -13
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +22 -13
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +26 -9
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +24 -13
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +8 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +8 -10
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +16 -11
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +14 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +36 -13
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +14 -10
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +14 -10
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +16 -11
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +16 -9
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +14 -2
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +26 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +4 -6
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +44 -33
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +28 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +28 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +28 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +28 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +28 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +28 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +28 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +28 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +32 -15
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +10 -1
- data/lib/twilio-ruby/rest/chat.rb +8 -0
- data/lib/twilio-ruby/rest/chat/v1.rb +8 -0
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +16 -7
- data/lib/twilio-ruby/rest/chat/v1/service.rb +48 -13
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +34 -15
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +20 -10
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +22 -10
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +26 -10
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +18 -8
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +30 -10
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +16 -8
- data/lib/twilio-ruby/rest/chat/v2.rb +8 -0
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +16 -7
- data/lib/twilio-ruby/rest/chat/v2/service.rb +46 -13
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +34 -15
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +20 -10
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +22 -10
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +26 -10
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +18 -8
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +30 -10
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +16 -8
- data/lib/twilio-ruby/rest/client.rb +94 -45
- data/lib/twilio-ruby/rest/ip_messaging.rb +8 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +8 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +16 -7
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +48 -13
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +34 -15
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +20 -10
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +22 -10
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +26 -10
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +18 -8
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +30 -10
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +16 -8
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +8 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +16 -7
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +46 -13
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +34 -15
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +20 -10
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +22 -10
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +26 -10
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +18 -8
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +30 -10
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +16 -8
- data/lib/twilio-ruby/rest/lookups.rb +4 -0
- data/lib/twilio-ruby/rest/lookups/v1.rb +9 -5
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +14 -1
- data/lib/twilio-ruby/rest/monitor.rb +8 -0
- data/lib/twilio-ruby/rest/monitor/v1.rb +8 -0
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +34 -10
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +28 -13
- data/lib/twilio-ruby/rest/pricing.rb +6 -0
- data/lib/twilio-ruby/rest/pricing/v1.rb +6 -0
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +8 -2
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +12 -7
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +8 -2
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +10 -7
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +10 -4
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +12 -7
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +14 -1
- data/lib/twilio-ruby/rest/taskrouter.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +46 -24
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +16 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +30 -17
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +42 -19
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +22 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +16 -8
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +34 -15
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +12 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +10 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +34 -23
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +22 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +28 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +10 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +10 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +28 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +12 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +10 -2
- data/lib/twilio-ruby/rest/trunking.rb +4 -0
- data/lib/twilio-ruby/rest/trunking/v1.rb +4 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +36 -15
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +14 -8
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +14 -8
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +22 -8
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +52 -8
- data/lib/twilio-ruby/rest/video.rb +8 -0
- data/lib/twilio-ruby/rest/video/v1.rb +8 -0
- data/lib/twilio-ruby/rest/video/v1/recording.rb +26 -12
- data/lib/twilio-ruby/rest/video/v1/room.rb +34 -13
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +28 -12
- data/lib/twilio-ruby/security/request_validator.rb +1 -2
- data/lib/twilio-ruby/twiml/messaging_response.rb +7 -19
- data/lib/twilio-ruby/twiml/twiml.rb +8 -14
- data/lib/twilio-ruby/twiml/voice_response.rb +157 -169
- data/lib/twilio-ruby/util.rb +1 -1
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/framework/serialize_spec.rb +17 -30
- data/spec/holodeck/holodeck.rb +6 -6
- data/spec/jwt/access_token_spec.rb +0 -6
- data/spec/jwt/client_capability_spec.rb +3 -3
- data/spec/jwt/task_router_spec.rb +16 -21
- data/spec/rack/twilio_webhook_authentication_spec.rb +12 -16
- data/spec/spec_helper.rb +2 -2
- data/spec/support/fakeweb.rb +1 -1
- data/spec/twiml/voice_response_spec.rb +33 -20
- data/twilio-ruby.gemspec +7 -3
- metadata +21 -193
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +0 -420
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +0 -345
- data/lib/twilio-ruby/rest/fax.rb +0 -40
- data/lib/twilio-ruby/rest/fax/v1.rb +0 -37
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +0 -520
- data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +0 -321
- data/lib/twilio-ruby/rest/messaging.rb +0 -40
- data/lib/twilio-ruby/rest/messaging/v1.rb +0 -37
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +0 -604
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +0 -344
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +0 -349
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +0 -349
- data/lib/twilio-ruby/rest/notify.rb +0 -44
- data/lib/twilio-ruby/rest/notify/v1.rb +0 -48
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +0 -394
- data/lib/twilio-ruby/rest/notify/v1/service.rb +0 -611
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +0 -414
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +0 -249
- data/lib/twilio-ruby/rest/notify/v1/service/segment.rb +0 -219
- data/lib/twilio-ruby/rest/notify/v1/service/user.rb +0 -437
- data/lib/twilio-ruby/rest/notify/v1/service/user/segment_memberships.rb +0 -247
- data/lib/twilio-ruby/rest/notify/v1/service/user/user_binding.rb +0 -418
- data/lib/twilio-ruby/rest/preview.rb +0 -107
- data/lib/twilio-ruby/rest/preview/bulk_exports.rb +0 -48
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +0 -198
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +0 -209
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +0 -232
- data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +0 -37
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +0 -539
- data/lib/twilio-ruby/rest/preview/marketplace.rb +0 -48
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +0 -326
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +0 -297
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +0 -427
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +0 -335
- data/lib/twilio-ruby/rest/preview/proxy.rb +0 -37
- data/lib/twilio-ruby/rest/preview/proxy/service.rb +0 -489
- data/lib/twilio-ruby/rest/preview/proxy/service/phone_number.rb +0 -349
- data/lib/twilio-ruby/rest/preview/proxy/service/session.rb +0 -525
- data/lib/twilio-ruby/rest/preview/proxy/service/session/interaction.rb +0 -406
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant.rb +0 -495
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant/message_interaction.rb +0 -422
- data/lib/twilio-ruby/rest/preview/proxy/service/short_code.rb +0 -349
- data/lib/twilio-ruby/rest/preview/sync.rb +0 -37
- data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -491
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +0 -431
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -390
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +0 -426
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -422
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -390
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +0 -426
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -424
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -390
- data/lib/twilio-ruby/rest/preview/wireless.rb +0 -59
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +0 -371
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +0 -414
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +0 -512
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +0 -220
- data/lib/twilio-ruby/rest/sync.rb +0 -40
- data/lib/twilio-ruby/rest/sync/v1.rb +0 -37
- data/lib/twilio-ruby/rest/sync/v1/service.rb +0 -491
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +0 -431
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +0 -390
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +0 -426
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +0 -422
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +0 -390
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +0 -426
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +0 -424
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +0 -390
- data/lib/twilio-ruby/rest/wireless.rb +0 -48
- data/lib/twilio-ruby/rest/wireless/v1.rb +0 -59
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +0 -357
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +0 -427
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +0 -516
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +0 -235
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb +0 -135
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +0 -223
- data/spec/integration/fax/v1/fax/fax_media_spec.rb +0 -126
- data/spec/integration/fax/v1/fax_spec.rb +0 -272
- data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +0 -170
- data/spec/integration/messaging/v1/service/phone_number_spec.rb +0 -201
- data/spec/integration/messaging/v1/service/short_code_spec.rb +0 -173
- data/spec/integration/messaging/v1/service_spec.rb +0 -263
- data/spec/integration/notify/v1/credential_spec.rb +0 -223
- data/spec/integration/notify/v1/service/binding_spec.rb +0 -227
- data/spec/integration/notify/v1/service/notification_spec.rb +0 -97
- data/spec/integration/notify/v1/service/segment_spec.rb +0 -84
- data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +0 -118
- data/spec/integration/notify/v1/service/user/user_binding_spec.rb +0 -269
- data/spec/integration/notify/v1/service/user_spec.rb +0 -213
- data/spec/integration/notify/v1/service_spec.rb +0 -280
- data/spec/integration/preview/bulk_exports/export/day_spec.rb +0 -56
- data/spec/integration/preview/bulk_exports/export_configuration_spec.rb +0 -79
- data/spec/integration/preview/bulk_exports/export_spec.rb +0 -43
- data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +0 -276
- data/spec/integration/preview/marketplace/available_add_on/available_add_on_extension_spec.rb +0 -121
- data/spec/integration/preview/marketplace/available_add_on_spec.rb +0 -142
- data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +0 -164
- data/spec/integration/preview/marketplace/installed_add_on_spec.rb +0 -252
- data/spec/integration/preview/proxy/service/phone_number_spec.rb +0 -173
- data/spec/integration/preview/proxy/service/session/interaction_spec.rb +0 -104
- data/spec/integration/preview/proxy/service/session/participant/message_interaction_spec.rb +0 -164
- data/spec/integration/preview/proxy/service/session/participant_spec.rb +0 -226
- data/spec/integration/preview/proxy/service/session_spec.rb +0 -216
- data/spec/integration/preview/proxy/service/short_code_spec.rb +0 -173
- data/spec/integration/preview/proxy/service_spec.rb +0 -200
- data/spec/integration/preview/sync/service/document/document_permission_spec.rb +0 -206
- data/spec/integration/preview/sync/service/document_spec.rb +0 -254
- data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +0 -256
- data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +0 -206
- data/spec/integration/preview/sync/service/sync_list_spec.rb +0 -207
- data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +0 -257
- data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +0 -206
- data/spec/integration/preview/sync/service/sync_map_spec.rb +0 -207
- data/spec/integration/preview/sync/service_spec.rb +0 -244
- data/spec/integration/preview/wireless/command_spec.rb +0 -169
- data/spec/integration/preview/wireless/rate_plan_spec.rb +0 -260
- data/spec/integration/preview/wireless/sim/usage_spec.rb +0 -49
- data/spec/integration/preview/wireless/sim_spec.rb +0 -208
- data/spec/integration/sync/v1/service/document/document_permission_spec.rb +0 -206
- data/spec/integration/sync/v1/service/document_spec.rb +0 -254
- data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +0 -256
- data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +0 -206
- data/spec/integration/sync/v1/service/sync_list_spec.rb +0 -207
- data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +0 -257
- data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +0 -206
- data/spec/integration/sync/v1/service/sync_map_spec.rb +0 -207
- data/spec/integration/sync/v1/service_spec.rb +0 -244
- data/spec/integration/wireless/v1/command_spec.rb +0 -166
- data/spec/integration/wireless/v1/rate_plan_spec.rb +0 -268
- data/spec/integration/wireless/v1/sim/usage_record_spec.rb +0 -65
- data/spec/integration/wireless/v1/sim_spec.rb +0 -208
|
@@ -70,12 +70,6 @@ module Twilio
|
|
|
70
70
|
# When passed a block, yields IpAccessControlListInstance records from the API.
|
|
71
71
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
72
72
|
# is reached.
|
|
73
|
-
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
74
|
-
# guarantees to never return more than limit. Default is no limit
|
|
75
|
-
# @param [Integer] page_size Number of records to fetch per request, when not set will use
|
|
76
|
-
# the default value of 50 records. If no page_size is defined
|
|
77
|
-
# but a limit is defined, stream() will attempt to read the
|
|
78
|
-
# limit with the most efficient page size, i.e. min(limit, 1000)
|
|
79
73
|
def each
|
|
80
74
|
limits = @version.read_limits
|
|
81
75
|
|
|
@@ -159,8 +153,6 @@ module Twilio
|
|
|
159
153
|
# @param [Version] version Version that contains the resource
|
|
160
154
|
# @param [Response] response Response from the API
|
|
161
155
|
# @param [Hash] solution Path solution for the resource
|
|
162
|
-
# @param [String] account_sid A 34 character string that uniquely identifies this
|
|
163
|
-
# resource.
|
|
164
156
|
# @return [IpAccessControlListPage] IpAccessControlListPage
|
|
165
157
|
def initialize(version, response, solution)
|
|
166
158
|
super(version, response)
|
|
@@ -263,8 +255,8 @@ module Twilio
|
|
|
263
255
|
|
|
264
256
|
##
|
|
265
257
|
# Access the ip_addresses
|
|
266
|
-
# @return [IpAddressList]
|
|
267
|
-
# @return [IpAddressContext] if
|
|
258
|
+
# @return [IpAddressList]
|
|
259
|
+
# @return [IpAddressContext] if sid was passed.
|
|
268
260
|
def ip_addresses(sid=:unset)
|
|
269
261
|
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
270
262
|
|
|
@@ -331,7 +323,6 @@ module Twilio
|
|
|
331
323
|
##
|
|
332
324
|
# Generate an instance context for the instance, the context is capable of
|
|
333
325
|
# performing various actions. All instance actions are proxied to the context
|
|
334
|
-
# @param [Version] version Version that contains the resource
|
|
335
326
|
# @return [IpAccessControlListContext] IpAccessControlListContext for this IpAccessControlListInstance
|
|
336
327
|
def context
|
|
337
328
|
unless @instance_context
|
|
@@ -344,30 +335,44 @@ module Twilio
|
|
|
344
335
|
@instance_context
|
|
345
336
|
end
|
|
346
337
|
|
|
338
|
+
##
|
|
339
|
+
# @return [String] A string that uniquely identifies this resource
|
|
347
340
|
def sid
|
|
348
341
|
@properties['sid']
|
|
349
342
|
end
|
|
350
343
|
|
|
344
|
+
##
|
|
345
|
+
# @return [String] The unique sid that identifies this account
|
|
351
346
|
def account_sid
|
|
352
347
|
@properties['account_sid']
|
|
353
348
|
end
|
|
354
349
|
|
|
350
|
+
##
|
|
351
|
+
# @return [String] A human readable description of this resource
|
|
355
352
|
def friendly_name
|
|
356
353
|
@properties['friendly_name']
|
|
357
354
|
end
|
|
358
355
|
|
|
356
|
+
##
|
|
357
|
+
# @return [Time] The date this resource was created
|
|
359
358
|
def date_created
|
|
360
359
|
@properties['date_created']
|
|
361
360
|
end
|
|
362
361
|
|
|
362
|
+
##
|
|
363
|
+
# @return [Time] The date this resource was last updated
|
|
363
364
|
def date_updated
|
|
364
365
|
@properties['date_updated']
|
|
365
366
|
end
|
|
366
367
|
|
|
368
|
+
##
|
|
369
|
+
# @return [String] The subresource_uris
|
|
367
370
|
def subresource_uris
|
|
368
371
|
@properties['subresource_uris']
|
|
369
372
|
end
|
|
370
373
|
|
|
374
|
+
##
|
|
375
|
+
# @return [String] The URI for this resource
|
|
371
376
|
def uri
|
|
372
377
|
@properties['uri']
|
|
373
378
|
end
|
|
@@ -72,12 +72,6 @@ module Twilio
|
|
|
72
72
|
# When passed a block, yields IpAddressInstance records from the API.
|
|
73
73
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
74
74
|
# is reached.
|
|
75
|
-
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
76
|
-
# guarantees to never return more than limit. Default is no limit
|
|
77
|
-
# @param [Integer] page_size Number of records to fetch per request, when not set will use
|
|
78
|
-
# the default value of 50 records. If no page_size is defined
|
|
79
|
-
# but a limit is defined, stream() will attempt to read the
|
|
80
|
-
# limit with the most efficient page size, i.e. min(limit, 1000)
|
|
81
75
|
def each
|
|
82
76
|
limits = @version.read_limits
|
|
83
77
|
|
|
@@ -163,8 +157,6 @@ module Twilio
|
|
|
163
157
|
# @param [Version] version Version that contains the resource
|
|
164
158
|
# @param [Response] response Response from the API
|
|
165
159
|
# @param [Hash] solution Path solution for the resource
|
|
166
|
-
# @param [String] account_sid The account_sid
|
|
167
|
-
# @param [String] ip_access_control_list_sid The ip_access_control_list_sid
|
|
168
160
|
# @return [IpAddressPage] IpAddressPage
|
|
169
161
|
def initialize(version, response, solution)
|
|
170
162
|
super(version, response)
|
|
@@ -311,7 +303,6 @@ module Twilio
|
|
|
311
303
|
##
|
|
312
304
|
# Generate an instance context for the instance, the context is capable of
|
|
313
305
|
# performing various actions. All instance actions are proxied to the context
|
|
314
|
-
# @param [Version] version Version that contains the resource
|
|
315
306
|
# @return [IpAddressContext] IpAddressContext for this IpAddressInstance
|
|
316
307
|
def context
|
|
317
308
|
unless @instance_context
|
|
@@ -325,34 +316,50 @@ module Twilio
|
|
|
325
316
|
@instance_context
|
|
326
317
|
end
|
|
327
318
|
|
|
319
|
+
##
|
|
320
|
+
# @return [String] The sid
|
|
328
321
|
def sid
|
|
329
322
|
@properties['sid']
|
|
330
323
|
end
|
|
331
324
|
|
|
325
|
+
##
|
|
326
|
+
# @return [String] The account_sid
|
|
332
327
|
def account_sid
|
|
333
328
|
@properties['account_sid']
|
|
334
329
|
end
|
|
335
330
|
|
|
331
|
+
##
|
|
332
|
+
# @return [String] The friendly_name
|
|
336
333
|
def friendly_name
|
|
337
334
|
@properties['friendly_name']
|
|
338
335
|
end
|
|
339
336
|
|
|
337
|
+
##
|
|
338
|
+
# @return [String] The ip_address
|
|
340
339
|
def ip_address
|
|
341
340
|
@properties['ip_address']
|
|
342
341
|
end
|
|
343
342
|
|
|
343
|
+
##
|
|
344
|
+
# @return [String] The ip_access_control_list_sid
|
|
344
345
|
def ip_access_control_list_sid
|
|
345
346
|
@properties['ip_access_control_list_sid']
|
|
346
347
|
end
|
|
347
348
|
|
|
349
|
+
##
|
|
350
|
+
# @return [Time] The date_created
|
|
348
351
|
def date_created
|
|
349
352
|
@properties['date_created']
|
|
350
353
|
end
|
|
351
354
|
|
|
355
|
+
##
|
|
356
|
+
# @return [Time] The date_updated
|
|
352
357
|
def date_updated
|
|
353
358
|
@properties['date_updated']
|
|
354
359
|
end
|
|
355
360
|
|
|
361
|
+
##
|
|
362
|
+
# @return [String] The uri
|
|
356
363
|
def uri
|
|
357
364
|
@properties['uri']
|
|
358
365
|
end
|
|
@@ -63,8 +63,6 @@ module Twilio
|
|
|
63
63
|
# @param [Version] version Version that contains the resource
|
|
64
64
|
# @param [Response] response Response from the API
|
|
65
65
|
# @param [Hash] solution Path solution for the resource
|
|
66
|
-
# @param [String] account_sid The unique id of the Account that created this
|
|
67
|
-
# Token.
|
|
68
66
|
# @return [TokenPage] TokenPage
|
|
69
67
|
def initialize(version, response, solution)
|
|
70
68
|
super(version, response)
|
|
@@ -115,30 +113,44 @@ module Twilio
|
|
|
115
113
|
}
|
|
116
114
|
end
|
|
117
115
|
|
|
116
|
+
##
|
|
117
|
+
# @return [String] The unique sid that identifies this account
|
|
118
118
|
def account_sid
|
|
119
119
|
@properties['account_sid']
|
|
120
120
|
end
|
|
121
121
|
|
|
122
|
+
##
|
|
123
|
+
# @return [Time] The date this resource was created
|
|
122
124
|
def date_created
|
|
123
125
|
@properties['date_created']
|
|
124
126
|
end
|
|
125
127
|
|
|
128
|
+
##
|
|
129
|
+
# @return [Time] The date this resource was last updated
|
|
126
130
|
def date_updated
|
|
127
131
|
@properties['date_updated']
|
|
128
132
|
end
|
|
129
133
|
|
|
134
|
+
##
|
|
135
|
+
# @return [String] An array representing the ephemeral credentials
|
|
130
136
|
def ice_servers
|
|
131
137
|
@properties['ice_servers']
|
|
132
138
|
end
|
|
133
139
|
|
|
140
|
+
##
|
|
141
|
+
# @return [String] The temporary password used for authenticating
|
|
134
142
|
def password
|
|
135
143
|
@properties['password']
|
|
136
144
|
end
|
|
137
145
|
|
|
146
|
+
##
|
|
147
|
+
# @return [String] The duration in seconds the credentials are valid
|
|
138
148
|
def ttl
|
|
139
149
|
@properties['ttl']
|
|
140
150
|
end
|
|
141
151
|
|
|
152
|
+
##
|
|
153
|
+
# @return [String] The temporary username that uniquely identifies a Token.
|
|
142
154
|
def username
|
|
143
155
|
@properties['username']
|
|
144
156
|
end
|
|
@@ -69,12 +69,6 @@ module Twilio
|
|
|
69
69
|
# When passed a block, yields TranscriptionInstance records from the API.
|
|
70
70
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
71
71
|
# is reached.
|
|
72
|
-
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
73
|
-
# guarantees to never return more than limit. Default is no limit
|
|
74
|
-
# @param [Integer] page_size Number of records to fetch per request, when not set will use
|
|
75
|
-
# the default value of 50 records. If no page_size is defined
|
|
76
|
-
# but a limit is defined, stream() will attempt to read the
|
|
77
|
-
# limit with the most efficient page size, i.e. min(limit, 1000)
|
|
78
72
|
def each
|
|
79
73
|
limits = @version.read_limits
|
|
80
74
|
|
|
@@ -134,8 +128,6 @@ module Twilio
|
|
|
134
128
|
# @param [Version] version Version that contains the resource
|
|
135
129
|
# @param [Response] response Response from the API
|
|
136
130
|
# @param [Hash] solution Path solution for the resource
|
|
137
|
-
# @param [String] account_sid The unique id of the Account responsible for this
|
|
138
|
-
# transcription.
|
|
139
131
|
# @return [TranscriptionPage] TranscriptionPage
|
|
140
132
|
def initialize(version, response, solution)
|
|
141
133
|
super(version, response)
|
|
@@ -256,7 +248,6 @@ module Twilio
|
|
|
256
248
|
##
|
|
257
249
|
# Generate an instance context for the instance, the context is capable of
|
|
258
250
|
# performing various actions. All instance actions are proxied to the context
|
|
259
|
-
# @param [Version] version Version that contains the resource
|
|
260
251
|
# @return [TranscriptionContext] TranscriptionContext for this TranscriptionInstance
|
|
261
252
|
def context
|
|
262
253
|
unless @instance_context
|
|
@@ -269,54 +260,80 @@ module Twilio
|
|
|
269
260
|
@instance_context
|
|
270
261
|
end
|
|
271
262
|
|
|
263
|
+
##
|
|
264
|
+
# @return [String] The unique sid that identifies this account
|
|
272
265
|
def account_sid
|
|
273
266
|
@properties['account_sid']
|
|
274
267
|
end
|
|
275
268
|
|
|
269
|
+
##
|
|
270
|
+
# @return [String] The api_version
|
|
276
271
|
def api_version
|
|
277
272
|
@properties['api_version']
|
|
278
273
|
end
|
|
279
274
|
|
|
275
|
+
##
|
|
276
|
+
# @return [Time] The date this resource was created
|
|
280
277
|
def date_created
|
|
281
278
|
@properties['date_created']
|
|
282
279
|
end
|
|
283
280
|
|
|
281
|
+
##
|
|
282
|
+
# @return [Time] The date this resource was last updated
|
|
284
283
|
def date_updated
|
|
285
284
|
@properties['date_updated']
|
|
286
285
|
end
|
|
287
286
|
|
|
287
|
+
##
|
|
288
|
+
# @return [String] The duration of the transcribed audio, in seconds.
|
|
288
289
|
def duration
|
|
289
290
|
@properties['duration']
|
|
290
291
|
end
|
|
291
292
|
|
|
293
|
+
##
|
|
294
|
+
# @return [String] The charge for this transcription
|
|
292
295
|
def price
|
|
293
296
|
@properties['price']
|
|
294
297
|
end
|
|
295
298
|
|
|
299
|
+
##
|
|
300
|
+
# @return [String] The currency in which Price is measured
|
|
296
301
|
def price_unit
|
|
297
302
|
@properties['price_unit']
|
|
298
303
|
end
|
|
299
304
|
|
|
305
|
+
##
|
|
306
|
+
# @return [String] The string that uniquely identifies the recording
|
|
300
307
|
def recording_sid
|
|
301
308
|
@properties['recording_sid']
|
|
302
309
|
end
|
|
303
310
|
|
|
311
|
+
##
|
|
312
|
+
# @return [String] A string that uniquely identifies this transcription
|
|
304
313
|
def sid
|
|
305
314
|
@properties['sid']
|
|
306
315
|
end
|
|
307
316
|
|
|
317
|
+
##
|
|
318
|
+
# @return [transcription.Status] The status of the transcription
|
|
308
319
|
def status
|
|
309
320
|
@properties['status']
|
|
310
321
|
end
|
|
311
322
|
|
|
323
|
+
##
|
|
324
|
+
# @return [String] The text content of the transcription.
|
|
312
325
|
def transcription_text
|
|
313
326
|
@properties['transcription_text']
|
|
314
327
|
end
|
|
315
328
|
|
|
329
|
+
##
|
|
330
|
+
# @return [String] The type
|
|
316
331
|
def type
|
|
317
332
|
@properties['type']
|
|
318
333
|
end
|
|
319
334
|
|
|
335
|
+
##
|
|
336
|
+
# @return [String] The URI for this resource
|
|
320
337
|
def uri
|
|
321
338
|
@properties['uri']
|
|
322
339
|
end
|
|
@@ -31,8 +31,8 @@ module Twilio
|
|
|
31
31
|
|
|
32
32
|
##
|
|
33
33
|
# Access the records
|
|
34
|
-
# @return [RecordList]
|
|
35
|
-
# @return [RecordContext]
|
|
34
|
+
# @return [RecordList]
|
|
35
|
+
# @return [RecordContext]
|
|
36
36
|
def records
|
|
37
37
|
@records ||= RecordList.new(
|
|
38
38
|
@version,
|
|
@@ -43,8 +43,8 @@ module Twilio
|
|
|
43
43
|
##
|
|
44
44
|
# Access the triggers
|
|
45
45
|
# @param [String] sid The usage-trigger Sid that uniquely identifies this resource
|
|
46
|
-
# @return [TriggerList]
|
|
47
|
-
# @return [TriggerContext] if
|
|
46
|
+
# @return [TriggerList]
|
|
47
|
+
# @return [TriggerContext] if sid was passed.
|
|
48
48
|
def triggers(sid=:unset)
|
|
49
49
|
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
50
50
|
|
|
@@ -75,8 +75,6 @@ module Twilio
|
|
|
75
75
|
# @param [Version] version Version that contains the resource
|
|
76
76
|
# @param [Response] response Response from the API
|
|
77
77
|
# @param [Hash] solution Path solution for the resource
|
|
78
|
-
# @param [String] account_sid A 34 character string that uniquely identifies this
|
|
79
|
-
# resource.
|
|
80
78
|
# @return [UsagePage] UsagePage
|
|
81
79
|
def initialize(version, response, solution)
|
|
82
80
|
super(version, response)
|
|
@@ -104,21 +104,6 @@ module Twilio
|
|
|
104
104
|
# When passed a block, yields RecordInstance records from the API.
|
|
105
105
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
106
106
|
# is reached.
|
|
107
|
-
# @param [yesterday.Category] category Only include usage of a given category
|
|
108
|
-
# @param [Date] start_date Only include usage that has occurred on or after this
|
|
109
|
-
# date. Format is YYYY-MM-DD in GTM. As a convenience, you can also specify
|
|
110
|
-
# offsets to today, for example, StartDate=-30days, which will make StartDate 30
|
|
111
|
-
# days before today
|
|
112
|
-
# @param [Date] end_date Only include usage that has occurred on or after this
|
|
113
|
-
# date. Format is YYYY-MM-DD in GTM. As a convenience, you can also specify
|
|
114
|
-
# offsets to today, for example, EndDate=+30days, which will make EndDate 30 days
|
|
115
|
-
# from today
|
|
116
|
-
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
117
|
-
# guarantees to never return more than limit. Default is no limit
|
|
118
|
-
# @param [Integer] page_size Number of records to fetch per request, when not set will use
|
|
119
|
-
# the default value of 50 records. If no page_size is defined
|
|
120
|
-
# but a limit is defined, stream() will attempt to read the
|
|
121
|
-
# limit with the most efficient page size, i.e. min(limit, 1000)
|
|
122
107
|
def each
|
|
123
108
|
limits = @version.read_limits
|
|
124
109
|
|
|
@@ -179,8 +164,8 @@ module Twilio
|
|
|
179
164
|
|
|
180
165
|
##
|
|
181
166
|
# Access the all_time
|
|
182
|
-
# @return [AllTimeList]
|
|
183
|
-
# @return [AllTimeContext]
|
|
167
|
+
# @return [AllTimeList]
|
|
168
|
+
# @return [AllTimeContext]
|
|
184
169
|
def all_time
|
|
185
170
|
@all_time ||= AllTimeList.new(
|
|
186
171
|
@version,
|
|
@@ -190,8 +175,8 @@ module Twilio
|
|
|
190
175
|
|
|
191
176
|
##
|
|
192
177
|
# Access the daily
|
|
193
|
-
# @return [DailyList]
|
|
194
|
-
# @return [DailyContext]
|
|
178
|
+
# @return [DailyList]
|
|
179
|
+
# @return [DailyContext]
|
|
195
180
|
def daily
|
|
196
181
|
@daily ||= DailyList.new(
|
|
197
182
|
@version,
|
|
@@ -201,8 +186,8 @@ module Twilio
|
|
|
201
186
|
|
|
202
187
|
##
|
|
203
188
|
# Access the last_month
|
|
204
|
-
# @return [LastMonthList]
|
|
205
|
-
# @return [LastMonthContext]
|
|
189
|
+
# @return [LastMonthList]
|
|
190
|
+
# @return [LastMonthContext]
|
|
206
191
|
def last_month
|
|
207
192
|
@last_month ||= LastMonthList.new(
|
|
208
193
|
@version,
|
|
@@ -212,8 +197,8 @@ module Twilio
|
|
|
212
197
|
|
|
213
198
|
##
|
|
214
199
|
# Access the monthly
|
|
215
|
-
# @return [MonthlyList]
|
|
216
|
-
# @return [MonthlyContext]
|
|
200
|
+
# @return [MonthlyList]
|
|
201
|
+
# @return [MonthlyContext]
|
|
217
202
|
def monthly
|
|
218
203
|
@monthly ||= MonthlyList.new(
|
|
219
204
|
@version,
|
|
@@ -223,8 +208,8 @@ module Twilio
|
|
|
223
208
|
|
|
224
209
|
##
|
|
225
210
|
# Access the this_month
|
|
226
|
-
# @return [ThisMonthList]
|
|
227
|
-
# @return [ThisMonthContext]
|
|
211
|
+
# @return [ThisMonthList]
|
|
212
|
+
# @return [ThisMonthContext]
|
|
228
213
|
def this_month
|
|
229
214
|
@this_month ||= ThisMonthList.new(
|
|
230
215
|
@version,
|
|
@@ -234,8 +219,8 @@ module Twilio
|
|
|
234
219
|
|
|
235
220
|
##
|
|
236
221
|
# Access the today
|
|
237
|
-
# @return [TodayList]
|
|
238
|
-
# @return [TodayContext]
|
|
222
|
+
# @return [TodayList]
|
|
223
|
+
# @return [TodayContext]
|
|
239
224
|
def today
|
|
240
225
|
@today ||= TodayList.new(
|
|
241
226
|
@version,
|
|
@@ -245,8 +230,8 @@ module Twilio
|
|
|
245
230
|
|
|
246
231
|
##
|
|
247
232
|
# Access the yearly
|
|
248
|
-
# @return [YearlyList]
|
|
249
|
-
# @return [YearlyContext]
|
|
233
|
+
# @return [YearlyList]
|
|
234
|
+
# @return [YearlyContext]
|
|
250
235
|
def yearly
|
|
251
236
|
@yearly ||= YearlyList.new(
|
|
252
237
|
@version,
|
|
@@ -256,8 +241,8 @@ module Twilio
|
|
|
256
241
|
|
|
257
242
|
##
|
|
258
243
|
# Access the yesterday
|
|
259
|
-
# @return [YesterdayList]
|
|
260
|
-
# @return [YesterdayContext]
|
|
244
|
+
# @return [YesterdayList]
|
|
245
|
+
# @return [YesterdayContext]
|
|
261
246
|
def yesterday
|
|
262
247
|
@yesterday ||= YesterdayList.new(
|
|
263
248
|
@version,
|
|
@@ -278,8 +263,6 @@ module Twilio
|
|
|
278
263
|
# @param [Version] version Version that contains the resource
|
|
279
264
|
# @param [Response] response Response from the API
|
|
280
265
|
# @param [Hash] solution Path solution for the resource
|
|
281
|
-
# @param [String] account_sid A 34 character string that uniquely identifies this
|
|
282
|
-
# resource.
|
|
283
266
|
# @return [RecordPage] RecordPage
|
|
284
267
|
def initialize(version, response, solution)
|
|
285
268
|
super(version, response)
|
|
@@ -337,58 +320,86 @@ module Twilio
|
|
|
337
320
|
}
|
|
338
321
|
end
|
|
339
322
|
|
|
323
|
+
##
|
|
324
|
+
# @return [String] The Account that accrued the usage
|
|
340
325
|
def account_sid
|
|
341
326
|
@properties['account_sid']
|
|
342
327
|
end
|
|
343
328
|
|
|
329
|
+
##
|
|
330
|
+
# @return [String] The api_version
|
|
344
331
|
def api_version
|
|
345
332
|
@properties['api_version']
|
|
346
333
|
end
|
|
347
334
|
|
|
335
|
+
##
|
|
336
|
+
# @return [yesterday.Category] The category of usage
|
|
348
337
|
def category
|
|
349
338
|
@properties['category']
|
|
350
339
|
end
|
|
351
340
|
|
|
341
|
+
##
|
|
342
|
+
# @return [String] The number of usage events (e.g. the number of calls).
|
|
352
343
|
def count
|
|
353
344
|
@properties['count']
|
|
354
345
|
end
|
|
355
346
|
|
|
347
|
+
##
|
|
348
|
+
# @return [String] The unit in which `Count` is measured
|
|
356
349
|
def count_unit
|
|
357
350
|
@properties['count_unit']
|
|
358
351
|
end
|
|
359
352
|
|
|
353
|
+
##
|
|
354
|
+
# @return [String] A human-readable description of the usage category.
|
|
360
355
|
def description
|
|
361
356
|
@properties['description']
|
|
362
357
|
end
|
|
363
358
|
|
|
359
|
+
##
|
|
360
|
+
# @return [Date] The last date usage is included in this record
|
|
364
361
|
def end_date
|
|
365
362
|
@properties['end_date']
|
|
366
363
|
end
|
|
367
364
|
|
|
365
|
+
##
|
|
366
|
+
# @return [String] The total price of the usage
|
|
368
367
|
def price
|
|
369
368
|
@properties['price']
|
|
370
369
|
end
|
|
371
370
|
|
|
371
|
+
##
|
|
372
|
+
# @return [String] The currency in which `Price` is measured
|
|
372
373
|
def price_unit
|
|
373
374
|
@properties['price_unit']
|
|
374
375
|
end
|
|
375
376
|
|
|
377
|
+
##
|
|
378
|
+
# @return [Date] The first date usage is included in this record
|
|
376
379
|
def start_date
|
|
377
380
|
@properties['start_date']
|
|
378
381
|
end
|
|
379
382
|
|
|
383
|
+
##
|
|
384
|
+
# @return [String] Subresources Uris for this UsageRecord
|
|
380
385
|
def subresource_uris
|
|
381
386
|
@properties['subresource_uris']
|
|
382
387
|
end
|
|
383
388
|
|
|
389
|
+
##
|
|
390
|
+
# @return [String] The URI for this resource
|
|
384
391
|
def uri
|
|
385
392
|
@properties['uri']
|
|
386
393
|
end
|
|
387
394
|
|
|
395
|
+
##
|
|
396
|
+
# @return [String] The amount of usage
|
|
388
397
|
def usage
|
|
389
398
|
@properties['usage']
|
|
390
399
|
end
|
|
391
400
|
|
|
401
|
+
##
|
|
402
|
+
# @return [String] The units in which `Usage` is measured
|
|
392
403
|
def usage_unit
|
|
393
404
|
@properties['usage_unit']
|
|
394
405
|
end
|