twilio-ruby 5.0.0.rc9 → 5.0.0.rc10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +2 -9
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +13 -24
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +12 -23
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +6 -15
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +2 -9
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +2 -9
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +2 -9
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +9 -18
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +15 -23
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +8 -15
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +9 -18
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +9 -18
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +20 -28
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +15 -24
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +7 -16
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +10 -20
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +2 -10
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +2 -10
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +2 -10
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +12 -23
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +324 -0
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +4 -9
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +9 -18
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +23 -29
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +145 -0
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +145 -0
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +7 -16
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +12 -21
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +13 -23
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +13 -24
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +9 -18
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +8 -17
- data/lib/twilio-ruby/rest/api/v2010/account/sandbox.rb +8 -15
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +324 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +16 -27
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +14 -24
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +11 -21
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +11 -21
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +23 -31
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +16 -27
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +14 -24
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +1 -8
- data/lib/twilio-ruby/rest/api/v2010/account/sms/short_code.rb +10 -20
- data/lib/twilio-ruby/rest/api/v2010/account/sms/sms_message.rb +13 -23
- data/lib/twilio-ruby/rest/api/v2010/account/sms.rb +1 -7
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +2 -7
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +7 -16
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +1 -8
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +1 -8
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +1 -8
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +1 -8
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +1 -8
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +1 -8
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +1 -8
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +1 -8
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +1 -8
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +12 -23
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +1 -6
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +2 -7
- data/lib/twilio-ruby/rest/api/v2010/account.rb +131 -38
- data/lib/twilio-ruby/rest/api/v2010.rb +17 -1
- data/lib/twilio-ruby/rest/api.rb +16 -0
- data/lib/twilio-ruby/rest/client.rb +16 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +13 -28
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +11 -21
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +62 -20
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +17 -28
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +12 -23
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +23 -25
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +13 -24
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +1 -1
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +5 -12
- data/lib/twilio-ruby/rest/lookups/v1.rb +1 -1
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +5 -14
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +4 -13
- data/lib/twilio-ruby/rest/monitor/v1.rb +1 -1
- data/lib/twilio-ruby/rest/notifications/v1/credential.rb +13 -28
- data/lib/twilio-ruby/rest/notifications/v1/service/binding.rb +8 -18
- data/lib/twilio-ruby/rest/notifications/v1/service/notification.rb +8 -8
- data/lib/twilio-ruby/rest/notifications/v1/service.rb +10 -21
- data/lib/twilio-ruby/rest/notifications/v1.rb +1 -1
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +4 -14
- data/lib/twilio-ruby/rest/preview/wireless/device/usage.rb +6 -13
- data/lib/twilio-ruby/rest/preview/wireless/device.rb +8 -19
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +4 -13
- data/lib/twilio-ruby/rest/preview/wireless.rb +1 -1
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +4 -13
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +0 -5
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +4 -13
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +0 -5
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +4 -13
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +4 -10
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +0 -6
- data/lib/twilio-ruby/rest/pricing/v1.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +13 -23
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +6 -15
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +13 -23
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +13 -24
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +8 -15
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +1 -8
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +13 -24
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +8 -15
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +6 -13
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +13 -24
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +8 -15
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +13 -24
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +6 -13
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +15 -26
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +1 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +8 -18
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +8 -18
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +12 -23
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +8 -18
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +12 -23
- data/lib/twilio-ruby/rest/trunking/v1.rb +1 -1
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/key_spec.rb +178 -0
- data/spec/integration/api/v2010/account/message_spec.rb +2 -3
- data/spec/integration/api/v2010/account/new_key_spec.rb +45 -0
- data/spec/integration/api/v2010/account/new_signing_key_spec.rb +45 -0
- data/spec/integration/api/v2010/account/signing_key_spec.rb +178 -0
- data/spec/integration/api/v2010/account/sip/ip_access_control_list/ip_address_spec.rb +3 -7
- data/spec/integration/ip_messaging/v1/credential_spec.rb +5 -10
- data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +37 -0
- data/spec/integration/ip_messaging/v1/service/channel_spec.rb +3 -7
- data/spec/integration/ip_messaging/v1/service/user_spec.rb +3 -6
- data/spec/integration/notifications/v1/credential_spec.rb +5 -10
- data/spec/integration/notifications/v1/service/notification_spec.rb +1 -0
- data/spec/integration/preview/wireless/device_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb +3 -6
- metadata +15 -3
@@ -18,7 +18,6 @@ module Twilio
|
|
18
18
|
# conference
|
19
19
|
# @param [String] conference_sid A 34 character string that identifies the
|
20
20
|
# conference this participant is in
|
21
|
-
|
22
21
|
# @return [ParticipantList] ParticipantList
|
23
22
|
def initialize(version, account_sid: nil, conference_sid: nil)
|
24
23
|
super(version)
|
@@ -42,7 +41,6 @@ module Twilio
|
|
42
41
|
# the default value of 50 records. If no page_size is defined
|
43
42
|
# but a limit is defined, stream() will attempt to read the
|
44
43
|
# limit with the most efficient page size, i.e. min(limit, 1000)
|
45
|
-
|
46
44
|
# @return [Array] Array of up to limit results
|
47
45
|
def list(muted: nil, limit: nil, page_size: nil)
|
48
46
|
self.stream(
|
@@ -63,7 +61,6 @@ module Twilio
|
|
63
61
|
# the default value of 50 records. If no page_size is defined
|
64
62
|
# but a limit is defined, stream() will attempt to read the
|
65
63
|
# limit with the most efficient page size, i.e. min(limit, 1000)
|
66
|
-
|
67
64
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
68
65
|
def stream(muted: nil, limit: nil, page_size: nil)
|
69
66
|
limits = @version.read_limits(limit, page_size)
|
@@ -106,7 +103,6 @@ module Twilio
|
|
106
103
|
# @param [String] page_token PageToken provided by the API
|
107
104
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
108
105
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
109
|
-
|
110
106
|
# @return [Page] Page of ParticipantInstance
|
111
107
|
def page(muted: nil, page_token: nil, page_number: nil, page_size: nil)
|
112
108
|
params = {
|
@@ -140,7 +136,6 @@ module Twilio
|
|
140
136
|
# conference
|
141
137
|
# @param [String] conference_sid A 34 character string that identifies the
|
142
138
|
# conference this participant is in
|
143
|
-
|
144
139
|
# @return [ParticipantPage] ParticipantPage
|
145
140
|
def initialize(version, response, solution)
|
146
141
|
super(version, response)
|
@@ -152,14 +147,13 @@ module Twilio
|
|
152
147
|
##
|
153
148
|
# Build an instance of ParticipantInstance
|
154
149
|
# @param [Hash] payload Payload response from the API
|
155
|
-
|
156
150
|
# @return [ParticipantInstance] ParticipantInstance
|
157
151
|
def get_instance(payload)
|
158
152
|
return ParticipantInstance.new(
|
159
153
|
@version,
|
160
154
|
payload,
|
161
|
-
account_sid: @solution[
|
162
|
-
conference_sid: @solution[
|
155
|
+
account_sid: @solution[:account_sid],
|
156
|
+
conference_sid: @solution[:conference_sid],
|
163
157
|
)
|
164
158
|
end
|
165
159
|
|
@@ -178,7 +172,6 @@ module Twilio
|
|
178
172
|
# @param [String] conference_sid The string that uniquely identifies the
|
179
173
|
# conference this participant is in
|
180
174
|
# @param [String] call_sid The call_sid
|
181
|
-
|
182
175
|
# @return [ParticipantContext] ParticipantContext
|
183
176
|
def initialize(version, account_sid, conference_sid, call_sid)
|
184
177
|
super(version)
|
@@ -207,16 +200,15 @@ module Twilio
|
|
207
200
|
return ParticipantInstance.new(
|
208
201
|
@version,
|
209
202
|
payload,
|
210
|
-
account_sid: @solution[
|
211
|
-
conference_sid: @solution[
|
212
|
-
call_sid: @solution[
|
203
|
+
account_sid: @solution[:account_sid],
|
204
|
+
conference_sid: @solution[:conference_sid],
|
205
|
+
call_sid: @solution[:call_sid],
|
213
206
|
)
|
214
207
|
end
|
215
208
|
|
216
209
|
##
|
217
210
|
# Update the ParticipantInstance
|
218
211
|
# @param [Boolean] muted Indicates if the participant should be muted
|
219
|
-
|
220
212
|
# @return [ParticipantInstance] Updated ParticipantInstance
|
221
213
|
def update(muted: nil)
|
222
214
|
data = {
|
@@ -232,9 +224,9 @@ module Twilio
|
|
232
224
|
return ParticipantInstance.new(
|
233
225
|
@version,
|
234
226
|
payload,
|
235
|
-
account_sid: @solution[
|
236
|
-
conference_sid: @solution[
|
237
|
-
call_sid: @solution[
|
227
|
+
account_sid: @solution[:account_sid],
|
228
|
+
conference_sid: @solution[:conference_sid],
|
229
|
+
call_sid: @solution[:call_sid],
|
238
230
|
)
|
239
231
|
end
|
240
232
|
|
@@ -263,7 +255,6 @@ module Twilio
|
|
263
255
|
# @param [String] conference_sid A 34 character string that identifies the
|
264
256
|
# conference this participant is in
|
265
257
|
# @param [String] call_sid The call_sid
|
266
|
-
|
267
258
|
# @return [ParticipantInstance] ParticipantInstance
|
268
259
|
def initialize(version, payload, account_sid: nil, conference_sid: nil, call_sid: nil)
|
269
260
|
super(version)
|
@@ -294,7 +285,6 @@ module Twilio
|
|
294
285
|
# Generate an instance context for the instance, the context is capable of
|
295
286
|
# performing various actions. All instance actions are proxied to the context
|
296
287
|
# @param [Version] version Version that contains the resource
|
297
|
-
|
298
288
|
# @return [ParticipantContext] ParticipantContext for this ParticipantInstance
|
299
289
|
def context
|
300
290
|
unless @instance_context
|
@@ -348,30 +338,31 @@ module Twilio
|
|
348
338
|
# Fetch a ParticipantInstance
|
349
339
|
# @return [ParticipantInstance] Fetched ParticipantInstance
|
350
340
|
def fetch
|
351
|
-
|
341
|
+
context.fetch
|
352
342
|
end
|
353
343
|
|
354
344
|
##
|
355
345
|
# Update the ParticipantInstance
|
356
346
|
# @param [Boolean] muted Indicates if the participant should be muted
|
357
|
-
|
358
347
|
# @return [ParticipantInstance] Updated ParticipantInstance
|
359
348
|
def update(muted: nil)
|
360
|
-
|
349
|
+
context.update(
|
350
|
+
muted: muted,
|
351
|
+
)
|
361
352
|
end
|
362
353
|
|
363
354
|
##
|
364
355
|
# Deletes the ParticipantInstance
|
365
356
|
# @return [Boolean] true if delete succeeds, true otherwise
|
366
357
|
def delete
|
367
|
-
|
358
|
+
context.delete
|
368
359
|
end
|
369
360
|
|
370
361
|
##
|
371
362
|
# Provide a user friendly representation
|
372
363
|
def to_s
|
373
|
-
|
374
|
-
"<Twilio.Api.V2010.ParticipantInstance #{
|
364
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
365
|
+
"<Twilio.Api.V2010.ParticipantInstance #{values}>"
|
375
366
|
end
|
376
367
|
end
|
377
368
|
end
|
@@ -15,7 +15,6 @@ module Twilio
|
|
15
15
|
# @param [Version] version Version that contains the resource
|
16
16
|
# @param [String] account_sid The unique id of the Account] responsible for
|
17
17
|
# creating this conference.
|
18
|
-
|
19
18
|
# @return [ConferenceList] ConferenceList
|
20
19
|
def initialize(version, account_sid: nil)
|
21
20
|
super(version)
|
@@ -47,7 +46,6 @@ module Twilio
|
|
47
46
|
# the default value of 50 records. If no page_size is defined
|
48
47
|
# but a limit is defined, stream() will attempt to read the
|
49
48
|
# limit with the most efficient page size, i.e. min(limit, 1000)
|
50
|
-
|
51
49
|
# @return [Array] Array of up to limit results
|
52
50
|
def list(date_created_before: nil, date_created: nil, date_created_after: nil, date_updated_before: nil, date_updated: nil, date_updated_after: nil, friendly_name: nil, status: nil, limit: nil, page_size: nil)
|
53
51
|
self.stream(
|
@@ -84,7 +82,6 @@ module Twilio
|
|
84
82
|
# the default value of 50 records. If no page_size is defined
|
85
83
|
# but a limit is defined, stream() will attempt to read the
|
86
84
|
# limit with the most efficient page size, i.e. min(limit, 1000)
|
87
|
-
|
88
85
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
89
86
|
def stream(date_created_before: nil, date_created: nil, date_created_after: nil, date_updated_before: nil, date_updated: nil, date_updated_after: nil, friendly_name: nil, status: nil, limit: nil, page_size: nil)
|
90
87
|
limits = @version.read_limits(limit, page_size)
|
@@ -152,7 +149,6 @@ module Twilio
|
|
152
149
|
# @param [String] page_token PageToken provided by the API
|
153
150
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
154
151
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
155
|
-
|
156
152
|
# @return [Page] Page of ConferenceInstance
|
157
153
|
def page(date_created_before: nil, date_created: nil, date_created_after: nil, date_updated_before: nil, date_updated: nil, date_updated_after: nil, friendly_name: nil, status: nil, page_token: nil, page_number: nil, page_size: nil)
|
158
154
|
params = {
|
@@ -191,7 +187,6 @@ module Twilio
|
|
191
187
|
# @param [Hash] solution Path solution for the resource
|
192
188
|
# @param [String] account_sid The unique id of the Account] responsible for
|
193
189
|
# creating this conference.
|
194
|
-
|
195
190
|
# @return [ConferencePage] ConferencePage
|
196
191
|
def initialize(version, response, solution)
|
197
192
|
super(version, response)
|
@@ -203,13 +198,12 @@ module Twilio
|
|
203
198
|
##
|
204
199
|
# Build an instance of ConferenceInstance
|
205
200
|
# @param [Hash] payload Payload response from the API
|
206
|
-
|
207
201
|
# @return [ConferenceInstance] ConferenceInstance
|
208
202
|
def get_instance(payload)
|
209
203
|
return ConferenceInstance.new(
|
210
204
|
@version,
|
211
205
|
payload,
|
212
|
-
account_sid: @solution[
|
206
|
+
account_sid: @solution[:account_sid],
|
213
207
|
)
|
214
208
|
end
|
215
209
|
|
@@ -226,7 +220,6 @@ module Twilio
|
|
226
220
|
# @param [Version] version Version that contains the resource
|
227
221
|
# @param [String] account_sid The account_sid
|
228
222
|
# @param [String] sid The conference Sid that uniquely identifies this resource
|
229
|
-
|
230
223
|
# @return [ConferenceContext] ConferenceContext
|
231
224
|
def initialize(version, account_sid, sid)
|
232
225
|
super(version)
|
@@ -257,8 +250,8 @@ module Twilio
|
|
257
250
|
return ConferenceInstance.new(
|
258
251
|
@version,
|
259
252
|
payload,
|
260
|
-
account_sid: @solution[
|
261
|
-
sid: @solution[
|
253
|
+
account_sid: @solution[:account_sid],
|
254
|
+
sid: @solution[:sid],
|
262
255
|
)
|
263
256
|
end
|
264
257
|
|
@@ -302,7 +295,6 @@ module Twilio
|
|
302
295
|
# @param [String] account_sid The unique id of the Account] responsible for
|
303
296
|
# creating this conference.
|
304
297
|
# @param [String] sid The conference Sid that uniquely identifies this resource
|
305
|
-
|
306
298
|
# @return [ConferenceInstance] ConferenceInstance
|
307
299
|
def initialize(version, payload, account_sid: nil, sid: nil)
|
308
300
|
super(version)
|
@@ -331,7 +323,6 @@ module Twilio
|
|
331
323
|
# Generate an instance context for the instance, the context is capable of
|
332
324
|
# performing various actions. All instance actions are proxied to the context
|
333
325
|
# @param [Version] version Version that contains the resource
|
334
|
-
|
335
326
|
# @return [ConferenceContext] ConferenceContext for this ConferenceInstance
|
336
327
|
def context
|
337
328
|
unless @instance_context
|
@@ -380,21 +371,21 @@ module Twilio
|
|
380
371
|
# Fetch a ConferenceInstance
|
381
372
|
# @return [ConferenceInstance] Fetched ConferenceInstance
|
382
373
|
def fetch
|
383
|
-
|
374
|
+
context.fetch
|
384
375
|
end
|
385
376
|
|
386
377
|
##
|
387
378
|
# Access the participants
|
388
379
|
# @return [participants] participants
|
389
380
|
def participants
|
390
|
-
|
381
|
+
context.participants
|
391
382
|
end
|
392
383
|
|
393
384
|
##
|
394
385
|
# Provide a user friendly representation
|
395
386
|
def to_s
|
396
|
-
|
397
|
-
"<Twilio.Api.V2010.ConferenceInstance #{
|
387
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
388
|
+
"<Twilio.Api.V2010.ConferenceInstance #{values}>"
|
398
389
|
end
|
399
390
|
end
|
400
391
|
end
|
@@ -15,7 +15,6 @@ module Twilio
|
|
15
15
|
# @param [Version] version Version that contains the resource
|
16
16
|
# @param [String] account_sid The unique id of the Account that created this
|
17
17
|
# ConnectApp.
|
18
|
-
|
19
18
|
# @return [ConnectAppList] ConnectAppList
|
20
19
|
def initialize(version, account_sid: nil)
|
21
20
|
super(version)
|
@@ -37,7 +36,6 @@ module Twilio
|
|
37
36
|
# the default value of 50 records. If no page_size is defined
|
38
37
|
# but a limit is defined, stream() will attempt to read the
|
39
38
|
# limit with the most efficient page size, i.e. min(limit, 1000)
|
40
|
-
|
41
39
|
# @return [Array] Array of up to limit results
|
42
40
|
def list(limit: nil, page_size: nil)
|
43
41
|
self.stream(
|
@@ -56,7 +54,6 @@ module Twilio
|
|
56
54
|
# the default value of 50 records. If no page_size is defined
|
57
55
|
# but a limit is defined, stream() will attempt to read the
|
58
56
|
# limit with the most efficient page size, i.e. min(limit, 1000)
|
59
|
-
|
60
57
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
61
58
|
def stream(limit: nil, page_size: nil)
|
62
59
|
limits = @version.read_limits(limit, page_size)
|
@@ -96,7 +93,6 @@ module Twilio
|
|
96
93
|
# @param [String] page_token PageToken provided by the API
|
97
94
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
98
95
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
99
|
-
|
100
96
|
# @return [Page] Page of ConnectAppInstance
|
101
97
|
def page(page_token: nil, page_number: nil, page_size: nil)
|
102
98
|
params = {
|
@@ -127,7 +123,6 @@ module Twilio
|
|
127
123
|
# @param [Hash] solution Path solution for the resource
|
128
124
|
# @param [String] account_sid The unique id of the Account that created this
|
129
125
|
# ConnectApp.
|
130
|
-
|
131
126
|
# @return [ConnectAppPage] ConnectAppPage
|
132
127
|
def initialize(version, response, solution)
|
133
128
|
super(version, response)
|
@@ -139,13 +134,12 @@ module Twilio
|
|
139
134
|
##
|
140
135
|
# Build an instance of ConnectAppInstance
|
141
136
|
# @param [Hash] payload Payload response from the API
|
142
|
-
|
143
137
|
# @return [ConnectAppInstance] ConnectAppInstance
|
144
138
|
def get_instance(payload)
|
145
139
|
return ConnectAppInstance.new(
|
146
140
|
@version,
|
147
141
|
payload,
|
148
|
-
account_sid: @solution[
|
142
|
+
account_sid: @solution[:account_sid],
|
149
143
|
)
|
150
144
|
end
|
151
145
|
|
@@ -162,7 +156,6 @@ module Twilio
|
|
162
156
|
# @param [Version] version Version that contains the resource
|
163
157
|
# @param [String] account_sid The account_sid
|
164
158
|
# @param [String] sid The connect-app Sid that uniquely identifies this resource
|
165
|
-
|
166
159
|
# @return [ConnectAppContext] ConnectAppContext
|
167
160
|
def initialize(version, account_sid, sid)
|
168
161
|
super(version)
|
@@ -190,8 +183,8 @@ module Twilio
|
|
190
183
|
return ConnectAppInstance.new(
|
191
184
|
@version,
|
192
185
|
payload,
|
193
|
-
account_sid: @solution[
|
194
|
-
sid: @solution[
|
186
|
+
account_sid: @solution[:account_sid],
|
187
|
+
sid: @solution[:sid],
|
195
188
|
)
|
196
189
|
end
|
197
190
|
|
@@ -212,7 +205,6 @@ module Twilio
|
|
212
205
|
# information about this Connect App.
|
213
206
|
# @param [connect_app.Permission] permissions The set of permissions that your
|
214
207
|
# ConnectApp requests.
|
215
|
-
|
216
208
|
# @return [ConnectAppInstance] Updated ConnectAppInstance
|
217
209
|
def update(authorize_redirect_url: nil, company_name: nil, deauthorize_callback_method: nil, deauthorize_callback_url: nil, description: nil, friendly_name: nil, homepage_url: nil, permissions: nil)
|
218
210
|
data = {
|
@@ -235,8 +227,8 @@ module Twilio
|
|
235
227
|
return ConnectAppInstance.new(
|
236
228
|
@version,
|
237
229
|
payload,
|
238
|
-
account_sid: @solution[
|
239
|
-
sid: @solution[
|
230
|
+
account_sid: @solution[:account_sid],
|
231
|
+
sid: @solution[:sid],
|
240
232
|
)
|
241
233
|
end
|
242
234
|
|
@@ -256,7 +248,6 @@ module Twilio
|
|
256
248
|
# @param [String] account_sid The unique id of the Account that created this
|
257
249
|
# ConnectApp.
|
258
250
|
# @param [String] sid The connect-app Sid that uniquely identifies this resource
|
259
|
-
|
260
251
|
# @return [ConnectAppInstance] ConnectAppInstance
|
261
252
|
def initialize(version, payload, account_sid: nil, sid: nil)
|
262
253
|
super(version)
|
@@ -288,7 +279,6 @@ module Twilio
|
|
288
279
|
# Generate an instance context for the instance, the context is capable of
|
289
280
|
# performing various actions. All instance actions are proxied to the context
|
290
281
|
# @param [Version] version Version that contains the resource
|
291
|
-
|
292
282
|
# @return [ConnectAppContext] ConnectAppContext for this ConnectAppInstance
|
293
283
|
def context
|
294
284
|
unless @instance_context
|
@@ -349,7 +339,7 @@ module Twilio
|
|
349
339
|
# Fetch a ConnectAppInstance
|
350
340
|
# @return [ConnectAppInstance] Fetched ConnectAppInstance
|
351
341
|
def fetch
|
352
|
-
|
342
|
+
context.fetch
|
353
343
|
end
|
354
344
|
|
355
345
|
##
|
@@ -369,10 +359,10 @@ module Twilio
|
|
369
359
|
# information about this Connect App.
|
370
360
|
# @param [connect_app.Permission] permissions The set of permissions that your
|
371
361
|
# ConnectApp requests.
|
372
|
-
|
373
362
|
# @return [ConnectAppInstance] Updated ConnectAppInstance
|
374
363
|
def update(authorize_redirect_url: nil, company_name: nil, deauthorize_callback_method: nil, deauthorize_callback_url: nil, description: nil, friendly_name: nil, homepage_url: nil, permissions: nil)
|
375
|
-
|
364
|
+
context.update(
|
365
|
+
authorize_redirect_url: authorize_redirect_url,
|
376
366
|
company_name: company_name,
|
377
367
|
deauthorize_callback_method: deauthorize_callback_method,
|
378
368
|
deauthorize_callback_url: deauthorize_callback_url,
|
@@ -386,8 +376,8 @@ module Twilio
|
|
386
376
|
##
|
387
377
|
# Provide a user friendly representation
|
388
378
|
def to_s
|
389
|
-
|
390
|
-
"<Twilio.Api.V2010.ConnectAppInstance #{
|
379
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
380
|
+
"<Twilio.Api.V2010.ConnectAppInstance #{values}>"
|
391
381
|
end
|
392
382
|
end
|
393
383
|
end
|
@@ -16,7 +16,6 @@ module Twilio
|
|
16
16
|
# @param [Version] version Version that contains the resource
|
17
17
|
# @param [String] owner_account_sid A 34 character string that uniquely identifies
|
18
18
|
# this resource.
|
19
|
-
|
20
19
|
# @return [LocalList] LocalList
|
21
20
|
def initialize(version, owner_account_sid: nil)
|
22
21
|
super(version)
|
@@ -41,7 +40,6 @@ module Twilio
|
|
41
40
|
# the default value of 50 records. If no page_size is defined
|
42
41
|
# but a limit is defined, stream() will attempt to read the
|
43
42
|
# limit with the most efficient page size, i.e. min(limit, 1000)
|
44
|
-
|
45
43
|
# @return [Array] Array of up to limit results
|
46
44
|
def list(beta: nil, friendly_name: nil, phone_number: nil, limit: nil, page_size: nil)
|
47
45
|
self.stream(
|
@@ -66,7 +64,6 @@ module Twilio
|
|
66
64
|
# the default value of 50 records. If no page_size is defined
|
67
65
|
# but a limit is defined, stream() will attempt to read the
|
68
66
|
# limit with the most efficient page size, i.e. min(limit, 1000)
|
69
|
-
|
70
67
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
71
68
|
def stream(beta: nil, friendly_name: nil, phone_number: nil, limit: nil, page_size: nil)
|
72
69
|
limits = @version.read_limits(limit, page_size)
|
@@ -115,7 +112,6 @@ module Twilio
|
|
115
112
|
# @param [String] page_token PageToken provided by the API
|
116
113
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
117
114
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
118
|
-
|
119
115
|
# @return [Page] Page of LocalInstance
|
120
116
|
def page(beta: nil, friendly_name: nil, phone_number: nil, page_token: nil, page_number: nil, page_size: nil)
|
121
117
|
params = {
|
@@ -153,7 +149,6 @@ module Twilio
|
|
153
149
|
# @param [String] voice_fallback_url The voice_fallback_url
|
154
150
|
# @param [String] voice_method The voice_method
|
155
151
|
# @param [String] voice_url The voice_url
|
156
|
-
|
157
152
|
# @return [LocalInstance] Newly created LocalInstance
|
158
153
|
def create(phone_number: nil, api_version: nil, friendly_name: nil, sms_application_sid: nil, sms_fallback_method: nil, sms_fallback_url: nil, sms_method: nil, sms_url: nil, status_callback: nil, status_callback_method: nil, voice_application_sid: nil, voice_caller_id_lookup: nil, voice_fallback_method: nil, voice_fallback_url: nil, voice_method: nil, voice_url: nil)
|
159
154
|
data = {
|
@@ -184,7 +179,7 @@ module Twilio
|
|
184
179
|
return LocalInstance.new(
|
185
180
|
@version,
|
186
181
|
payload,
|
187
|
-
owner_account_sid: @solution[
|
182
|
+
owner_account_sid: @solution[:owner_account_sid],
|
188
183
|
)
|
189
184
|
end
|
190
185
|
|
@@ -203,7 +198,6 @@ module Twilio
|
|
203
198
|
# @param [Hash] solution Path solution for the resource
|
204
199
|
# @param [String] owner_account_sid A 34 character string that uniquely identifies
|
205
200
|
# this resource.
|
206
|
-
|
207
201
|
# @return [LocalPage] LocalPage
|
208
202
|
def initialize(version, response, solution)
|
209
203
|
super(version, response)
|
@@ -215,13 +209,12 @@ module Twilio
|
|
215
209
|
##
|
216
210
|
# Build an instance of LocalInstance
|
217
211
|
# @param [Hash] payload Payload response from the API
|
218
|
-
|
219
212
|
# @return [LocalInstance] LocalInstance
|
220
213
|
def get_instance(payload)
|
221
214
|
return LocalInstance.new(
|
222
215
|
@version,
|
223
216
|
payload,
|
224
|
-
owner_account_sid: @solution[
|
217
|
+
owner_account_sid: @solution[:owner_account_sid],
|
225
218
|
)
|
226
219
|
end
|
227
220
|
|
@@ -239,7 +232,6 @@ module Twilio
|
|
239
232
|
# @param [Hash] payload payload that contains response from Twilio
|
240
233
|
# @param [String] owner_account_sid A 34 character string that uniquely identifies
|
241
234
|
# this resource.
|
242
|
-
|
243
235
|
# @return [LocalInstance] LocalInstance
|
244
236
|
def initialize(version, payload, owner_account_sid: nil)
|
245
237
|
super(version)
|