twilio-ruby 5.0.0.rc21 → 5.0.0.rc22
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/Makefile +3 -0
- data/lib/twilio-ruby.rb +7 -3
- data/lib/twilio-ruby/framework/domain.rb +5 -1
- data/lib/twilio-ruby/framework/page.rb +4 -4
- data/lib/twilio-ruby/framework/serialize.rb +3 -2
- data/lib/twilio-ruby/framework/values.rb +7 -0
- data/lib/twilio-ruby/framework/version.rb +4 -6
- data/lib/twilio-ruby/jwt/access_token.rb +160 -134
- data/lib/twilio-ruby/jwt/client_capability.rb +98 -0
- data/lib/twilio-ruby/jwt/jwt.rb +56 -0
- data/lib/twilio-ruby/jwt/task_router.rb +108 -139
- data/lib/twilio-ruby/rest/accounts.rb +1 -1
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +1 -1
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +30 -17
- data/lib/twilio-ruby/rest/api.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account.rb +31 -18
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +32 -19
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +18 -5
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +32 -19
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +20 -7
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +20 -7
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +20 -7
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +20 -7
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +20 -7
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +33 -20
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +13 -13
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +8 -8
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +23 -10
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +23 -10
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +27 -14
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +32 -19
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +25 -12
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +32 -19
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +24 -11
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +20 -7
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +24 -11
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +24 -11
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +24 -11
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +26 -13
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +30 -17
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +23 -10
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +23 -10
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +28 -15
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +30 -17
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +23 -10
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +23 -10
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +21 -8
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +21 -8
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +21 -8
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +27 -14
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +26 -13
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +27 -14
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +29 -16
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +30 -17
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +24 -11
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +24 -11
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +27 -14
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +29 -16
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +21 -8
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +20 -7
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +20 -7
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +20 -7
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +20 -7
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +20 -7
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +20 -7
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +20 -7
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +20 -7
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +20 -7
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +32 -19
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +5 -5
- data/lib/twilio-ruby/rest/chat.rb +4 -4
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +30 -17
- data/lib/twilio-ruby/rest/chat/v1/service.rb +29 -16
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +32 -19
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +27 -14
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +32 -19
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +32 -19
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +27 -14
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +30 -17
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +18 -5
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +30 -17
- data/lib/twilio-ruby/rest/chat/v2/service.rb +29 -16
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +32 -19
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +27 -14
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +32 -19
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +32 -19
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +27 -14
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +30 -17
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +18 -5
- data/lib/twilio-ruby/rest/fax.rb +2 -2
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +32 -19
- data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +21 -8
- data/lib/twilio-ruby/rest/ip_messaging.rb +4 -4
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +30 -17
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +29 -16
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +32 -19
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +27 -14
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +32 -19
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +32 -19
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +27 -14
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +30 -17
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +18 -5
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +30 -17
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +29 -16
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +32 -19
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +27 -14
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +32 -19
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +32 -19
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +27 -14
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +30 -17
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +18 -5
- data/lib/twilio-ruby/rest/lookups.rb +2 -2
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +6 -6
- data/lib/twilio-ruby/rest/messaging.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +30 -17
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +24 -11
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +24 -11
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +24 -11
- data/lib/twilio-ruby/rest/monitor.rb +4 -4
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +23 -10
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +22 -9
- data/lib/twilio-ruby/rest/notify.rb +4 -4
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +30 -17
- data/lib/twilio-ruby/rest/notify/v1/service.rb +32 -19
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +27 -14
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +5 -5
- data/lib/twilio-ruby/rest/notify/v1/service/segment.rb +18 -5
- data/lib/twilio-ruby/rest/notify/v1/service/user.rb +27 -14
- data/lib/twilio-ruby/rest/notify/v1/service/user/segment_memberships.rb +7 -7
- data/lib/twilio-ruby/rest/notify/v1/service/user/user_binding.rb +27 -14
- data/lib/twilio-ruby/rest/preview.rb +18 -18
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +3 -3
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +18 -5
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +8 -8
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +32 -19
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +20 -7
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +20 -7
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +30 -17
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +23 -10
- data/lib/twilio-ruby/rest/preview/proxy/service.rb +30 -17
- data/lib/twilio-ruby/rest/preview/proxy/service/phone_number.rb +24 -11
- data/lib/twilio-ruby/rest/preview/proxy/service/session.rb +32 -19
- data/lib/twilio-ruby/rest/preview/proxy/service/session/interaction.rb +22 -9
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant.rb +32 -19
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant/message_interaction.rb +24 -11
- data/lib/twilio-ruby/rest/preview/proxy/service/short_code.rb +24 -11
- data/lib/twilio-ruby/rest/preview/sync/service.rb +30 -17
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +28 -15
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +24 -11
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +25 -12
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +29 -16
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +24 -11
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +25 -12
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +29 -16
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +24 -11
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +26 -13
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +30 -17
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +28 -15
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +6 -6
- data/lib/twilio-ruby/rest/pricing.rb +3 -3
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +1 -1
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +20 -7
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +20 -7
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +1 -1
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +20 -7
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +3 -3
- data/lib/twilio-ruby/rest/sync.rb +2 -2
- data/lib/twilio-ruby/rest/sync/v1/service.rb +30 -17
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +28 -15
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +24 -11
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +25 -12
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +29 -16
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +24 -11
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +25 -12
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +29 -16
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +24 -11
- data/lib/twilio-ruby/rest/taskrouter.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +33 -20
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +32 -19
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +22 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +32 -19
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +27 -14
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +20 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +33 -20
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +6 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +20 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +33 -20
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +27 -14
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +25 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +6 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +6 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +33 -20
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +6 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +6 -6
- data/lib/twilio-ruby/rest/trunking.rb +2 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +30 -17
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +24 -11
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +24 -11
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +29 -16
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +24 -11
- data/lib/twilio-ruby/rest/video.rb +4 -4
- data/lib/twilio-ruby/rest/video/v1/recording.rb +23 -10
- data/lib/twilio-ruby/rest/video/v1/room.rb +29 -16
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +20 -7
- data/lib/twilio-ruby/rest/wireless.rb +6 -6
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +26 -13
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +30 -17
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +27 -14
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +20 -7
- data/lib/twilio-ruby/twiml/messaging_response.rb +147 -0
- data/lib/twilio-ruby/twiml/twiml.rb +77 -0
- data/lib/twilio-ruby/twiml/voice_response.rb +925 -0
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/holodeck/hologram.rb +0 -1
- data/spec/jwt/access_token_spec.rb +126 -182
- data/spec/jwt/client_capability_spec.rb +104 -0
- data/spec/jwt/task_router_spec.rb +164 -97
- data/spec/twiml/messaging_response_spec.rb +62 -0
- data/spec/twiml/voice_response_spec.rb +452 -0
- data/twilio-ruby.gemspec +4 -2
- metadata +36 -23
- data/lib/twilio-ruby/compatibility/v2010/account/call/feedback.rb +0 -15
- data/lib/twilio-ruby/compatibility/v2010/account/queue/member.rb +0 -23
- data/lib/twilio-ruby/jwt/capability.rb +0 -64
- data/lib/twilio-ruby/twiml/response.rb +0 -16
- data/spec/jwt/capability_spec.rb +0 -186
- data/spec/jwt/task_router_taskqueue_spec.rb +0 -111
- data/spec/jwt/task_router_worker_spec.rb +0 -146
- data/spec/jwt/task_router_workspace_spec.rb +0 -110
- data/spec/twiml/twiml_response_spec.rb +0 -47
@@ -95,18 +95,31 @@ module Twilio
|
|
95
95
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
96
96
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
97
97
|
# @return [Page] Page of DomainInstance
|
98
|
-
def page(page_token:
|
99
|
-
params = {
|
98
|
+
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
99
|
+
params = Twilio::Values.of({
|
100
100
|
'PageToken' => page_token,
|
101
101
|
'Page' => page_number,
|
102
102
|
'PageSize' => page_size,
|
103
|
-
}
|
103
|
+
})
|
104
104
|
response = @version.page(
|
105
105
|
'GET',
|
106
106
|
@uri,
|
107
107
|
params
|
108
108
|
)
|
109
|
-
|
109
|
+
DomainPage.new(@version, response, @solution)
|
110
|
+
end
|
111
|
+
|
112
|
+
##
|
113
|
+
# Retrieve a single page of DomainInstance records from the API.
|
114
|
+
# Request is executed immediately.
|
115
|
+
# @param [String] target_url API-generated URL for the requested results page
|
116
|
+
# @return [Page] Page of DomainInstance
|
117
|
+
def get_page(target_url)
|
118
|
+
response = @version.domain.request(
|
119
|
+
'GET',
|
120
|
+
target_url
|
121
|
+
)
|
122
|
+
DomainPage.new(@version, response, @solution)
|
110
123
|
end
|
111
124
|
|
112
125
|
##
|
@@ -129,8 +142,8 @@ module Twilio
|
|
129
142
|
# pass status parameters
|
130
143
|
# @param [String] voice_status_callback_method The voice_status_callback_method
|
131
144
|
# @return [DomainInstance] Newly created DomainInstance
|
132
|
-
def create(domain_name: nil, friendly_name:
|
133
|
-
data = {
|
145
|
+
def create(domain_name: nil, friendly_name: :unset, auth_type: :unset, voice_url: :unset, voice_method: :unset, voice_fallback_url: :unset, voice_fallback_method: :unset, voice_status_callback_url: :unset, voice_status_callback_method: :unset)
|
146
|
+
data = Twilio::Values.of({
|
134
147
|
'DomainName' => domain_name,
|
135
148
|
'FriendlyName' => friendly_name,
|
136
149
|
'AuthType' => auth_type,
|
@@ -140,7 +153,7 @@ module Twilio
|
|
140
153
|
'VoiceFallbackMethod' => voice_fallback_method,
|
141
154
|
'VoiceStatusCallbackUrl' => voice_status_callback_url,
|
142
155
|
'VoiceStatusCallbackMethod' => voice_status_callback_method,
|
143
|
-
}
|
156
|
+
})
|
144
157
|
|
145
158
|
payload = @version.create(
|
146
159
|
'POST',
|
@@ -148,7 +161,7 @@ module Twilio
|
|
148
161
|
data: data
|
149
162
|
)
|
150
163
|
|
151
|
-
|
164
|
+
DomainInstance.new(
|
152
165
|
@version,
|
153
166
|
payload,
|
154
167
|
account_sid: @solution[:account_sid],
|
@@ -183,7 +196,7 @@ module Twilio
|
|
183
196
|
# @param [Hash] payload Payload response from the API
|
184
197
|
# @return [DomainInstance] DomainInstance
|
185
198
|
def get_instance(payload)
|
186
|
-
|
199
|
+
DomainInstance.new(
|
187
200
|
@version,
|
188
201
|
payload,
|
189
202
|
account_sid: @solution[:account_sid],
|
@@ -223,7 +236,7 @@ module Twilio
|
|
223
236
|
# Fetch a DomainInstance
|
224
237
|
# @return [DomainInstance] Fetched DomainInstance
|
225
238
|
def fetch
|
226
|
-
params = {}
|
239
|
+
params = Twilio::Values.of({})
|
227
240
|
|
228
241
|
payload = @version.fetch(
|
229
242
|
'GET',
|
@@ -231,7 +244,7 @@ module Twilio
|
|
231
244
|
params,
|
232
245
|
)
|
233
246
|
|
234
|
-
|
247
|
+
DomainInstance.new(
|
235
248
|
@version,
|
236
249
|
payload,
|
237
250
|
account_sid: @solution[:account_sid],
|
@@ -251,8 +264,8 @@ module Twilio
|
|
251
264
|
# @param [String] voice_status_callback_url The voice_status_callback_url
|
252
265
|
# @param [String] voice_url The voice_url
|
253
266
|
# @return [DomainInstance] Updated DomainInstance
|
254
|
-
def update(auth_type:
|
255
|
-
data = {
|
267
|
+
def update(auth_type: :unset, friendly_name: :unset, voice_fallback_method: :unset, voice_fallback_url: :unset, voice_method: :unset, voice_status_callback_method: :unset, voice_status_callback_url: :unset, voice_url: :unset)
|
268
|
+
data = Twilio::Values.of({
|
256
269
|
'AuthType' => auth_type,
|
257
270
|
'FriendlyName' => friendly_name,
|
258
271
|
'VoiceFallbackMethod' => voice_fallback_method,
|
@@ -261,7 +274,7 @@ module Twilio
|
|
261
274
|
'VoiceStatusCallbackMethod' => voice_status_callback_method,
|
262
275
|
'VoiceStatusCallbackUrl' => voice_status_callback_url,
|
263
276
|
'VoiceUrl' => voice_url,
|
264
|
-
}
|
277
|
+
})
|
265
278
|
|
266
279
|
payload = @version.update(
|
267
280
|
'POST',
|
@@ -269,7 +282,7 @@ module Twilio
|
|
269
282
|
data: data,
|
270
283
|
)
|
271
284
|
|
272
|
-
|
285
|
+
DomainInstance.new(
|
273
286
|
@version,
|
274
287
|
payload,
|
275
288
|
account_sid: @solution[:account_sid],
|
@@ -281,7 +294,7 @@ module Twilio
|
|
281
294
|
# Deletes the DomainInstance
|
282
295
|
# @return [Boolean] true if delete succeeds, true otherwise
|
283
296
|
def delete
|
284
|
-
|
297
|
+
@version.delete('delete', @uri)
|
285
298
|
end
|
286
299
|
|
287
300
|
##
|
@@ -479,7 +492,7 @@ module Twilio
|
|
479
492
|
# @param [String] voice_status_callback_url The voice_status_callback_url
|
480
493
|
# @param [String] voice_url The voice_url
|
481
494
|
# @return [DomainInstance] Updated DomainInstance
|
482
|
-
def update(auth_type:
|
495
|
+
def update(auth_type: :unset, friendly_name: :unset, voice_fallback_method: :unset, voice_fallback_url: :unset, voice_method: :unset, voice_status_callback_method: :unset, voice_status_callback_url: :unset, voice_url: :unset)
|
483
496
|
context.update(
|
484
497
|
auth_type: auth_type,
|
485
498
|
friendly_name: friendly_name,
|
@@ -36,9 +36,9 @@ module Twilio
|
|
36
36
|
# @param [String] credential_list_sid The credential_list_sid
|
37
37
|
# @return [CredentialListMappingInstance] Newly created CredentialListMappingInstance
|
38
38
|
def create(credential_list_sid: nil)
|
39
|
-
data = {
|
39
|
+
data = Twilio::Values.of({
|
40
40
|
'CredentialListSid' => credential_list_sid,
|
41
|
-
}
|
41
|
+
})
|
42
42
|
|
43
43
|
payload = @version.create(
|
44
44
|
'POST',
|
@@ -46,7 +46,7 @@ module Twilio
|
|
46
46
|
data: data
|
47
47
|
)
|
48
48
|
|
49
|
-
|
49
|
+
CredentialListMappingInstance.new(
|
50
50
|
@version,
|
51
51
|
payload,
|
52
52
|
account_sid: @solution[:account_sid],
|
@@ -122,18 +122,31 @@ module Twilio
|
|
122
122
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
123
123
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
124
124
|
# @return [Page] Page of CredentialListMappingInstance
|
125
|
-
def page(page_token:
|
126
|
-
params = {
|
125
|
+
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
126
|
+
params = Twilio::Values.of({
|
127
127
|
'PageToken' => page_token,
|
128
128
|
'Page' => page_number,
|
129
129
|
'PageSize' => page_size,
|
130
|
-
}
|
130
|
+
})
|
131
131
|
response = @version.page(
|
132
132
|
'GET',
|
133
133
|
@uri,
|
134
134
|
params
|
135
135
|
)
|
136
|
-
|
136
|
+
CredentialListMappingPage.new(@version, response, @solution)
|
137
|
+
end
|
138
|
+
|
139
|
+
##
|
140
|
+
# Retrieve a single page of CredentialListMappingInstance records from the API.
|
141
|
+
# Request is executed immediately.
|
142
|
+
# @param [String] target_url API-generated URL for the requested results page
|
143
|
+
# @return [Page] Page of CredentialListMappingInstance
|
144
|
+
def get_page(target_url)
|
145
|
+
response = @version.domain.request(
|
146
|
+
'GET',
|
147
|
+
target_url
|
148
|
+
)
|
149
|
+
CredentialListMappingPage.new(@version, response, @solution)
|
137
150
|
end
|
138
151
|
|
139
152
|
##
|
@@ -165,7 +178,7 @@ module Twilio
|
|
165
178
|
# @param [Hash] payload Payload response from the API
|
166
179
|
# @return [CredentialListMappingInstance] CredentialListMappingInstance
|
167
180
|
def get_instance(payload)
|
168
|
-
|
181
|
+
CredentialListMappingInstance.new(
|
169
182
|
@version,
|
170
183
|
payload,
|
171
184
|
account_sid: @solution[:account_sid],
|
@@ -204,7 +217,7 @@ module Twilio
|
|
204
217
|
# Fetch a CredentialListMappingInstance
|
205
218
|
# @return [CredentialListMappingInstance] Fetched CredentialListMappingInstance
|
206
219
|
def fetch
|
207
|
-
params = {}
|
220
|
+
params = Twilio::Values.of({})
|
208
221
|
|
209
222
|
payload = @version.fetch(
|
210
223
|
'GET',
|
@@ -212,7 +225,7 @@ module Twilio
|
|
212
225
|
params,
|
213
226
|
)
|
214
227
|
|
215
|
-
|
228
|
+
CredentialListMappingInstance.new(
|
216
229
|
@version,
|
217
230
|
payload,
|
218
231
|
account_sid: @solution[:account_sid],
|
@@ -225,7 +238,7 @@ module Twilio
|
|
225
238
|
# Deletes the CredentialListMappingInstance
|
226
239
|
# @return [Boolean] true if delete succeeds, true otherwise
|
227
240
|
def delete
|
228
|
-
|
241
|
+
@version.delete('delete', @uri)
|
229
242
|
end
|
230
243
|
|
231
244
|
##
|
@@ -36,9 +36,9 @@ module Twilio
|
|
36
36
|
# @param [String] ip_access_control_list_sid The ip_access_control_list_sid
|
37
37
|
# @return [IpAccessControlListMappingInstance] Newly created IpAccessControlListMappingInstance
|
38
38
|
def create(ip_access_control_list_sid: nil)
|
39
|
-
data = {
|
39
|
+
data = Twilio::Values.of({
|
40
40
|
'IpAccessControlListSid' => ip_access_control_list_sid,
|
41
|
-
}
|
41
|
+
})
|
42
42
|
|
43
43
|
payload = @version.create(
|
44
44
|
'POST',
|
@@ -46,7 +46,7 @@ module Twilio
|
|
46
46
|
data: data
|
47
47
|
)
|
48
48
|
|
49
|
-
|
49
|
+
IpAccessControlListMappingInstance.new(
|
50
50
|
@version,
|
51
51
|
payload,
|
52
52
|
account_sid: @solution[:account_sid],
|
@@ -122,18 +122,31 @@ module Twilio
|
|
122
122
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
123
123
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
124
124
|
# @return [Page] Page of IpAccessControlListMappingInstance
|
125
|
-
def page(page_token:
|
126
|
-
params = {
|
125
|
+
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
126
|
+
params = Twilio::Values.of({
|
127
127
|
'PageToken' => page_token,
|
128
128
|
'Page' => page_number,
|
129
129
|
'PageSize' => page_size,
|
130
|
-
}
|
130
|
+
})
|
131
131
|
response = @version.page(
|
132
132
|
'GET',
|
133
133
|
@uri,
|
134
134
|
params
|
135
135
|
)
|
136
|
-
|
136
|
+
IpAccessControlListMappingPage.new(@version, response, @solution)
|
137
|
+
end
|
138
|
+
|
139
|
+
##
|
140
|
+
# Retrieve a single page of IpAccessControlListMappingInstance records from the API.
|
141
|
+
# Request is executed immediately.
|
142
|
+
# @param [String] target_url API-generated URL for the requested results page
|
143
|
+
# @return [Page] Page of IpAccessControlListMappingInstance
|
144
|
+
def get_page(target_url)
|
145
|
+
response = @version.domain.request(
|
146
|
+
'GET',
|
147
|
+
target_url
|
148
|
+
)
|
149
|
+
IpAccessControlListMappingPage.new(@version, response, @solution)
|
137
150
|
end
|
138
151
|
|
139
152
|
##
|
@@ -165,7 +178,7 @@ module Twilio
|
|
165
178
|
# @param [Hash] payload Payload response from the API
|
166
179
|
# @return [IpAccessControlListMappingInstance] IpAccessControlListMappingInstance
|
167
180
|
def get_instance(payload)
|
168
|
-
|
181
|
+
IpAccessControlListMappingInstance.new(
|
169
182
|
@version,
|
170
183
|
payload,
|
171
184
|
account_sid: @solution[:account_sid],
|
@@ -204,7 +217,7 @@ module Twilio
|
|
204
217
|
# Fetch a IpAccessControlListMappingInstance
|
205
218
|
# @return [IpAccessControlListMappingInstance] Fetched IpAccessControlListMappingInstance
|
206
219
|
def fetch
|
207
|
-
params = {}
|
220
|
+
params = Twilio::Values.of({})
|
208
221
|
|
209
222
|
payload = @version.fetch(
|
210
223
|
'GET',
|
@@ -212,7 +225,7 @@ module Twilio
|
|
212
225
|
params,
|
213
226
|
)
|
214
227
|
|
215
|
-
|
228
|
+
IpAccessControlListMappingInstance.new(
|
216
229
|
@version,
|
217
230
|
payload,
|
218
231
|
account_sid: @solution[:account_sid],
|
@@ -225,7 +238,7 @@ module Twilio
|
|
225
238
|
# Deletes the IpAccessControlListMappingInstance
|
226
239
|
# @return [Boolean] true if delete succeeds, true otherwise
|
227
240
|
def delete
|
228
|
-
|
241
|
+
@version.delete('delete', @uri)
|
229
242
|
end
|
230
243
|
|
231
244
|
##
|
@@ -95,18 +95,31 @@ module Twilio
|
|
95
95
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
96
96
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
97
97
|
# @return [Page] Page of IpAccessControlListInstance
|
98
|
-
def page(page_token:
|
99
|
-
params = {
|
98
|
+
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
99
|
+
params = Twilio::Values.of({
|
100
100
|
'PageToken' => page_token,
|
101
101
|
'Page' => page_number,
|
102
102
|
'PageSize' => page_size,
|
103
|
-
}
|
103
|
+
})
|
104
104
|
response = @version.page(
|
105
105
|
'GET',
|
106
106
|
@uri,
|
107
107
|
params
|
108
108
|
)
|
109
|
-
|
109
|
+
IpAccessControlListPage.new(@version, response, @solution)
|
110
|
+
end
|
111
|
+
|
112
|
+
##
|
113
|
+
# Retrieve a single page of IpAccessControlListInstance records from the API.
|
114
|
+
# Request is executed immediately.
|
115
|
+
# @param [String] target_url API-generated URL for the requested results page
|
116
|
+
# @return [Page] Page of IpAccessControlListInstance
|
117
|
+
def get_page(target_url)
|
118
|
+
response = @version.domain.request(
|
119
|
+
'GET',
|
120
|
+
target_url
|
121
|
+
)
|
122
|
+
IpAccessControlListPage.new(@version, response, @solution)
|
110
123
|
end
|
111
124
|
|
112
125
|
##
|
@@ -116,9 +129,9 @@ module Twilio
|
|
116
129
|
# characters long.
|
117
130
|
# @return [IpAccessControlListInstance] Newly created IpAccessControlListInstance
|
118
131
|
def create(friendly_name: nil)
|
119
|
-
data = {
|
132
|
+
data = Twilio::Values.of({
|
120
133
|
'FriendlyName' => friendly_name,
|
121
|
-
}
|
134
|
+
})
|
122
135
|
|
123
136
|
payload = @version.create(
|
124
137
|
'POST',
|
@@ -126,7 +139,7 @@ module Twilio
|
|
126
139
|
data: data
|
127
140
|
)
|
128
141
|
|
129
|
-
|
142
|
+
IpAccessControlListInstance.new(
|
130
143
|
@version,
|
131
144
|
payload,
|
132
145
|
account_sid: @solution[:account_sid],
|
@@ -161,7 +174,7 @@ module Twilio
|
|
161
174
|
# @param [Hash] payload Payload response from the API
|
162
175
|
# @return [IpAccessControlListInstance] IpAccessControlListInstance
|
163
176
|
def get_instance(payload)
|
164
|
-
|
177
|
+
IpAccessControlListInstance.new(
|
165
178
|
@version,
|
166
179
|
payload,
|
167
180
|
account_sid: @solution[:account_sid],
|
@@ -201,7 +214,7 @@ module Twilio
|
|
201
214
|
# Fetch a IpAccessControlListInstance
|
202
215
|
# @return [IpAccessControlListInstance] Fetched IpAccessControlListInstance
|
203
216
|
def fetch
|
204
|
-
params = {}
|
217
|
+
params = Twilio::Values.of({})
|
205
218
|
|
206
219
|
payload = @version.fetch(
|
207
220
|
'GET',
|
@@ -209,7 +222,7 @@ module Twilio
|
|
209
222
|
params,
|
210
223
|
)
|
211
224
|
|
212
|
-
|
225
|
+
IpAccessControlListInstance.new(
|
213
226
|
@version,
|
214
227
|
payload,
|
215
228
|
account_sid: @solution[:account_sid],
|
@@ -223,9 +236,9 @@ module Twilio
|
|
223
236
|
# characters long.
|
224
237
|
# @return [IpAccessControlListInstance] Updated IpAccessControlListInstance
|
225
238
|
def update(friendly_name: nil)
|
226
|
-
data = {
|
239
|
+
data = Twilio::Values.of({
|
227
240
|
'FriendlyName' => friendly_name,
|
228
|
-
}
|
241
|
+
})
|
229
242
|
|
230
243
|
payload = @version.update(
|
231
244
|
'POST',
|
@@ -233,7 +246,7 @@ module Twilio
|
|
233
246
|
data: data,
|
234
247
|
)
|
235
248
|
|
236
|
-
|
249
|
+
IpAccessControlListInstance.new(
|
237
250
|
@version,
|
238
251
|
payload,
|
239
252
|
account_sid: @solution[:account_sid],
|
@@ -245,7 +258,7 @@ module Twilio
|
|
245
258
|
# Deletes the IpAccessControlListInstance
|
246
259
|
# @return [Boolean] true if delete succeeds, true otherwise
|
247
260
|
def delete
|
248
|
-
|
261
|
+
@version.delete('delete', @uri)
|
249
262
|
end
|
250
263
|
|
251
264
|
##
|
@@ -97,18 +97,31 @@ module Twilio
|
|
97
97
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
98
98
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
99
99
|
# @return [Page] Page of IpAddressInstance
|
100
|
-
def page(page_token:
|
101
|
-
params = {
|
100
|
+
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
101
|
+
params = Twilio::Values.of({
|
102
102
|
'PageToken' => page_token,
|
103
103
|
'Page' => page_number,
|
104
104
|
'PageSize' => page_size,
|
105
|
-
}
|
105
|
+
})
|
106
106
|
response = @version.page(
|
107
107
|
'GET',
|
108
108
|
@uri,
|
109
109
|
params
|
110
110
|
)
|
111
|
-
|
111
|
+
IpAddressPage.new(@version, response, @solution)
|
112
|
+
end
|
113
|
+
|
114
|
+
##
|
115
|
+
# Retrieve a single page of IpAddressInstance records from the API.
|
116
|
+
# Request is executed immediately.
|
117
|
+
# @param [String] target_url API-generated URL for the requested results page
|
118
|
+
# @return [Page] Page of IpAddressInstance
|
119
|
+
def get_page(target_url)
|
120
|
+
response = @version.domain.request(
|
121
|
+
'GET',
|
122
|
+
target_url
|
123
|
+
)
|
124
|
+
IpAddressPage.new(@version, response, @solution)
|
112
125
|
end
|
113
126
|
|
114
127
|
##
|
@@ -118,10 +131,10 @@ module Twilio
|
|
118
131
|
# @param [String] ip_address The ip_address
|
119
132
|
# @return [IpAddressInstance] Newly created IpAddressInstance
|
120
133
|
def create(friendly_name: nil, ip_address: nil)
|
121
|
-
data = {
|
134
|
+
data = Twilio::Values.of({
|
122
135
|
'FriendlyName' => friendly_name,
|
123
136
|
'IpAddress' => ip_address,
|
124
|
-
}
|
137
|
+
})
|
125
138
|
|
126
139
|
payload = @version.create(
|
127
140
|
'POST',
|
@@ -129,7 +142,7 @@ module Twilio
|
|
129
142
|
data: data
|
130
143
|
)
|
131
144
|
|
132
|
-
|
145
|
+
IpAddressInstance.new(
|
133
146
|
@version,
|
134
147
|
payload,
|
135
148
|
account_sid: @solution[:account_sid],
|
@@ -165,7 +178,7 @@ module Twilio
|
|
165
178
|
# @param [Hash] payload Payload response from the API
|
166
179
|
# @return [IpAddressInstance] IpAddressInstance
|
167
180
|
def get_instance(payload)
|
168
|
-
|
181
|
+
IpAddressInstance.new(
|
169
182
|
@version,
|
170
183
|
payload,
|
171
184
|
account_sid: @solution[:account_sid],
|
@@ -204,7 +217,7 @@ module Twilio
|
|
204
217
|
# Fetch a IpAddressInstance
|
205
218
|
# @return [IpAddressInstance] Fetched IpAddressInstance
|
206
219
|
def fetch
|
207
|
-
params = {}
|
220
|
+
params = Twilio::Values.of({})
|
208
221
|
|
209
222
|
payload = @version.fetch(
|
210
223
|
'GET',
|
@@ -212,7 +225,7 @@ module Twilio
|
|
212
225
|
params,
|
213
226
|
)
|
214
227
|
|
215
|
-
|
228
|
+
IpAddressInstance.new(
|
216
229
|
@version,
|
217
230
|
payload,
|
218
231
|
account_sid: @solution[:account_sid],
|
@@ -226,11 +239,11 @@ module Twilio
|
|
226
239
|
# @param [String] ip_address The ip_address
|
227
240
|
# @param [String] friendly_name The friendly_name
|
228
241
|
# @return [IpAddressInstance] Updated IpAddressInstance
|
229
|
-
def update(ip_address:
|
230
|
-
data = {
|
242
|
+
def update(ip_address: :unset, friendly_name: :unset)
|
243
|
+
data = Twilio::Values.of({
|
231
244
|
'IpAddress' => ip_address,
|
232
245
|
'FriendlyName' => friendly_name,
|
233
|
-
}
|
246
|
+
})
|
234
247
|
|
235
248
|
payload = @version.update(
|
236
249
|
'POST',
|
@@ -238,7 +251,7 @@ module Twilio
|
|
238
251
|
data: data,
|
239
252
|
)
|
240
253
|
|
241
|
-
|
254
|
+
IpAddressInstance.new(
|
242
255
|
@version,
|
243
256
|
payload,
|
244
257
|
account_sid: @solution[:account_sid],
|
@@ -251,7 +264,7 @@ module Twilio
|
|
251
264
|
# Deletes the IpAddressInstance
|
252
265
|
# @return [Boolean] true if delete succeeds, true otherwise
|
253
266
|
def delete
|
254
|
-
|
267
|
+
@version.delete('delete', @uri)
|
255
268
|
end
|
256
269
|
|
257
270
|
##
|
@@ -356,7 +369,7 @@ module Twilio
|
|
356
369
|
# @param [String] ip_address The ip_address
|
357
370
|
# @param [String] friendly_name The friendly_name
|
358
371
|
# @return [IpAddressInstance] Updated IpAddressInstance
|
359
|
-
def update(ip_address:
|
372
|
+
def update(ip_address: :unset, friendly_name: :unset)
|
360
373
|
context.update(
|
361
374
|
ip_address: ip_address,
|
362
375
|
friendly_name: friendly_name,
|