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
@@ -15,7 +15,6 @@ module Twilio
|
|
15
15
|
# @param [Version] version Version that contains the resource
|
16
16
|
# @param [String] account_sid A 34 character string that uniquely identifies this
|
17
17
|
# resource.
|
18
|
-
|
19
18
|
# @return [UsageList] UsageList
|
20
19
|
def initialize(version, account_sid: nil)
|
21
20
|
super(version)
|
@@ -43,7 +42,6 @@ module Twilio
|
|
43
42
|
##
|
44
43
|
# Access the triggers
|
45
44
|
# @param [String] sid The usage-trigger Sid that uniquely identifies this resource
|
46
|
-
|
47
45
|
# @return [TriggerList] TriggerList
|
48
46
|
def triggers(sid=:unset)
|
49
47
|
if sid != :unset
|
@@ -75,7 +73,6 @@ module Twilio
|
|
75
73
|
# @param [Hash] solution Path solution for the resource
|
76
74
|
# @param [String] account_sid A 34 character string that uniquely identifies this
|
77
75
|
# resource.
|
78
|
-
|
79
76
|
# @return [UsagePage] UsagePage
|
80
77
|
def initialize(version, response, solution)
|
81
78
|
super(version, response)
|
@@ -87,13 +84,12 @@ module Twilio
|
|
87
84
|
##
|
88
85
|
# Build an instance of UsageInstance
|
89
86
|
# @param [Hash] payload Payload response from the API
|
90
|
-
|
91
87
|
# @return [UsageInstance] UsageInstance
|
92
88
|
def get_instance(payload)
|
93
89
|
return UsageInstance.new(
|
94
90
|
@version,
|
95
91
|
payload,
|
96
|
-
account_sid: @solution[
|
92
|
+
account_sid: @solution[:account_sid],
|
97
93
|
)
|
98
94
|
end
|
99
95
|
|
@@ -111,7 +107,6 @@ module Twilio
|
|
111
107
|
# @param [Hash] payload payload that contains response from Twilio
|
112
108
|
# @param [String] account_sid A 34 character string that uniquely identifies this
|
113
109
|
# resource.
|
114
|
-
|
115
110
|
# @return [UsageInstance] UsageInstance
|
116
111
|
def initialize(version, payload, account_sid: nil)
|
117
112
|
super(version)
|
@@ -14,7 +14,6 @@ module Twilio
|
|
14
14
|
# Initialize the ValidationRequestList
|
15
15
|
# @param [Version] version Version that contains the resource
|
16
16
|
# @param [String] account_sid The account_sid
|
17
|
-
|
18
17
|
# @return [ValidationRequestList] ValidationRequestList
|
19
18
|
def initialize(version, account_sid: nil)
|
20
19
|
super(version)
|
@@ -35,7 +34,6 @@ module Twilio
|
|
35
34
|
# @param [String] extension The extension
|
36
35
|
# @param [String] status_callback The status_callback
|
37
36
|
# @param [String] status_callback_method The status_callback_method
|
38
|
-
|
39
37
|
# @return [ValidationRequestInstance] Newly created ValidationRequestInstance
|
40
38
|
def create(phone_number: nil, friendly_name: nil, call_delay: nil, extension: nil, status_callback: nil, status_callback_method: nil)
|
41
39
|
data = {
|
@@ -56,7 +54,7 @@ module Twilio
|
|
56
54
|
return ValidationRequestInstance.new(
|
57
55
|
@version,
|
58
56
|
payload,
|
59
|
-
account_sid: @solution[
|
57
|
+
account_sid: @solution[:account_sid],
|
60
58
|
)
|
61
59
|
end
|
62
60
|
|
@@ -74,7 +72,6 @@ module Twilio
|
|
74
72
|
# @param [Response] response Response from the API
|
75
73
|
# @param [Hash] solution Path solution for the resource
|
76
74
|
# @param [String] account_sid The account_sid
|
77
|
-
|
78
75
|
# @return [ValidationRequestPage] ValidationRequestPage
|
79
76
|
def initialize(version, response, solution)
|
80
77
|
super(version, response)
|
@@ -86,13 +83,12 @@ module Twilio
|
|
86
83
|
##
|
87
84
|
# Build an instance of ValidationRequestInstance
|
88
85
|
# @param [Hash] payload Payload response from the API
|
89
|
-
|
90
86
|
# @return [ValidationRequestInstance] ValidationRequestInstance
|
91
87
|
def get_instance(payload)
|
92
88
|
return ValidationRequestInstance.new(
|
93
89
|
@version,
|
94
90
|
payload,
|
95
|
-
account_sid: @solution[
|
91
|
+
account_sid: @solution[:account_sid],
|
96
92
|
)
|
97
93
|
end
|
98
94
|
|
@@ -109,7 +105,6 @@ module Twilio
|
|
109
105
|
# @param [Version] version Version that contains the resource
|
110
106
|
# @param [Hash] payload payload that contains response from Twilio
|
111
107
|
# @param [String] account_sid The account_sid
|
112
|
-
|
113
108
|
# @return [ValidationRequestInstance] ValidationRequestInstance
|
114
109
|
def initialize(version, payload, account_sid: nil)
|
115
110
|
super(version)
|
@@ -12,7 +12,6 @@ module Twilio
|
|
12
12
|
##
|
13
13
|
# Initialize the AccountList
|
14
14
|
# @param [Version] version Version that contains the resource
|
15
|
-
|
16
15
|
# @return [AccountList] AccountList
|
17
16
|
def initialize(version)
|
18
17
|
super(version)
|
@@ -27,7 +26,6 @@ module Twilio
|
|
27
26
|
# Request is executed immediately.
|
28
27
|
# @param [String] friendly_name A human readable description of the account to
|
29
28
|
# create, defaults to `SubAccount Created at {YYYY-MM-DD HH:MM meridian}`
|
30
|
-
|
31
29
|
# @return [AccountInstance] Newly created AccountInstance
|
32
30
|
def create(friendly_name: nil)
|
33
31
|
data = {
|
@@ -59,7 +57,6 @@ module Twilio
|
|
59
57
|
# the default value of 50 records. If no page_size is defined
|
60
58
|
# but a limit is defined, stream() will attempt to read the
|
61
59
|
# limit with the most efficient page size, i.e. min(limit, 1000)
|
62
|
-
|
63
60
|
# @return [Array] Array of up to limit results
|
64
61
|
def list(friendly_name: nil, status: nil, limit: nil, page_size: nil)
|
65
62
|
self.stream(
|
@@ -83,7 +80,6 @@ module Twilio
|
|
83
80
|
# the default value of 50 records. If no page_size is defined
|
84
81
|
# but a limit is defined, stream() will attempt to read the
|
85
82
|
# limit with the most efficient page size, i.e. min(limit, 1000)
|
86
|
-
|
87
83
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
88
84
|
def stream(friendly_name: nil, status: nil, limit: nil, page_size: nil)
|
89
85
|
limits = @version.read_limits(limit, page_size)
|
@@ -131,7 +127,6 @@ module Twilio
|
|
131
127
|
# @param [String] page_token PageToken provided by the API
|
132
128
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
133
129
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
134
|
-
|
135
130
|
# @return [Page] Page of AccountInstance
|
136
131
|
def page(friendly_name: nil, status: nil, page_token: nil, page_number: nil, page_size: nil)
|
137
132
|
params = {
|
@@ -162,7 +157,6 @@ module Twilio
|
|
162
157
|
# @param [Version] version Version that contains the resource
|
163
158
|
# @param [Response] response Response from the API
|
164
159
|
# @param [Hash] solution Path solution for the resource
|
165
|
-
|
166
160
|
# @return [AccountPage] AccountPage
|
167
161
|
def initialize(version, response, solution)
|
168
162
|
super(version, response)
|
@@ -174,7 +168,6 @@ module Twilio
|
|
174
168
|
##
|
175
169
|
# Build an instance of AccountInstance
|
176
170
|
# @param [Hash] payload Payload response from the API
|
177
|
-
|
178
171
|
# @return [AccountInstance] AccountInstance
|
179
172
|
def get_instance(payload)
|
180
173
|
return AccountInstance.new(
|
@@ -196,7 +189,6 @@ module Twilio
|
|
196
189
|
# @param [Version] version Version that contains the resource
|
197
190
|
# @param [String] sid The Account Sid that uniquely identifies the account to
|
198
191
|
# fetch
|
199
|
-
|
200
192
|
# @return [AccountContext] AccountContext
|
201
193
|
def initialize(version, sid)
|
202
194
|
super(version)
|
@@ -216,12 +208,16 @@ module Twilio
|
|
216
208
|
@conferences = nil
|
217
209
|
@connect_apps = nil
|
218
210
|
@incoming_phone_numbers = nil
|
211
|
+
@keys = nil
|
219
212
|
@messages = nil
|
213
|
+
@new_keys = nil
|
214
|
+
@new_signing_keys = nil
|
220
215
|
@notifications = nil
|
221
216
|
@outgoing_caller_ids = nil
|
222
217
|
@queues = nil
|
223
218
|
@recordings = nil
|
224
219
|
@sandbox = nil
|
220
|
+
@signing_keys = nil
|
225
221
|
@sip = nil
|
226
222
|
@sms = nil
|
227
223
|
@tokens = nil
|
@@ -245,7 +241,7 @@ module Twilio
|
|
245
241
|
return AccountInstance.new(
|
246
242
|
@version,
|
247
243
|
payload,
|
248
|
-
sid: @solution[
|
244
|
+
sid: @solution[:sid],
|
249
245
|
)
|
250
246
|
end
|
251
247
|
|
@@ -255,7 +251,6 @@ module Twilio
|
|
255
251
|
# Account
|
256
252
|
# @param [account.Status] status Alter the status of this account with a given
|
257
253
|
# Status
|
258
|
-
|
259
254
|
# @return [AccountInstance] Updated AccountInstance
|
260
255
|
def update(friendly_name: nil, status: nil)
|
261
256
|
data = {
|
@@ -272,7 +267,7 @@ module Twilio
|
|
272
267
|
return AccountInstance.new(
|
273
268
|
@version,
|
274
269
|
payload,
|
275
|
-
sid: @solution[
|
270
|
+
sid: @solution[:sid],
|
276
271
|
)
|
277
272
|
end
|
278
273
|
|
@@ -452,6 +447,28 @@ module Twilio
|
|
452
447
|
@incoming_phone_numbers
|
453
448
|
end
|
454
449
|
|
450
|
+
##
|
451
|
+
# Access the keys
|
452
|
+
# @return [KeyList] KeyList
|
453
|
+
def keys(sid=:unset)
|
454
|
+
if sid != :unset
|
455
|
+
return KeyContext.new(
|
456
|
+
@version,
|
457
|
+
@solution[:sid],
|
458
|
+
sid,
|
459
|
+
)
|
460
|
+
end
|
461
|
+
|
462
|
+
unless @keys
|
463
|
+
@keys = KeyList.new(
|
464
|
+
@version,
|
465
|
+
account_sid: @solution[:sid],
|
466
|
+
)
|
467
|
+
end
|
468
|
+
|
469
|
+
@keys
|
470
|
+
end
|
471
|
+
|
455
472
|
##
|
456
473
|
# Access the messages
|
457
474
|
# @return [MessageList] MessageList
|
@@ -474,6 +491,34 @@ module Twilio
|
|
474
491
|
@messages
|
475
492
|
end
|
476
493
|
|
494
|
+
##
|
495
|
+
# Access the new_keys
|
496
|
+
# @return [NewKeyList] NewKeyList
|
497
|
+
def new_keys
|
498
|
+
unless @new_keys
|
499
|
+
@new_keys = NewKeyList.new(
|
500
|
+
@version,
|
501
|
+
account_sid: @solution[:sid],
|
502
|
+
)
|
503
|
+
end
|
504
|
+
|
505
|
+
@new_keys
|
506
|
+
end
|
507
|
+
|
508
|
+
##
|
509
|
+
# Access the new_signing_keys
|
510
|
+
# @return [NewSigningKeyList] NewSigningKeyList
|
511
|
+
def new_signing_keys
|
512
|
+
unless @new_signing_keys
|
513
|
+
@new_signing_keys = NewSigningKeyList.new(
|
514
|
+
@version,
|
515
|
+
account_sid: @solution[:sid],
|
516
|
+
)
|
517
|
+
end
|
518
|
+
|
519
|
+
@new_signing_keys
|
520
|
+
end
|
521
|
+
|
477
522
|
##
|
478
523
|
# Access the notifications
|
479
524
|
# @return [NotificationList] NotificationList
|
@@ -572,6 +617,28 @@ module Twilio
|
|
572
617
|
)
|
573
618
|
end
|
574
619
|
|
620
|
+
##
|
621
|
+
# Access the signing_keys
|
622
|
+
# @return [SigningKeyList] SigningKeyList
|
623
|
+
def signing_keys(sid=:unset)
|
624
|
+
if sid != :unset
|
625
|
+
return SigningKeyContext.new(
|
626
|
+
@version,
|
627
|
+
@solution[:sid],
|
628
|
+
sid,
|
629
|
+
)
|
630
|
+
end
|
631
|
+
|
632
|
+
unless @signing_keys
|
633
|
+
@signing_keys = SigningKeyList.new(
|
634
|
+
@version,
|
635
|
+
account_sid: @solution[:sid],
|
636
|
+
)
|
637
|
+
end
|
638
|
+
|
639
|
+
@signing_keys
|
640
|
+
end
|
641
|
+
|
575
642
|
##
|
576
643
|
# Access the sip
|
577
644
|
# @return [SipList] SipList
|
@@ -679,7 +746,6 @@ module Twilio
|
|
679
746
|
# @param [Hash] payload payload that contains response from Twilio
|
680
747
|
# @param [String] sid The Account Sid that uniquely identifies the account to
|
681
748
|
# fetch
|
682
|
-
|
683
749
|
# @return [AccountInstance] AccountInstance
|
684
750
|
def initialize(version, payload, sid: nil)
|
685
751
|
super(version)
|
@@ -709,7 +775,6 @@ module Twilio
|
|
709
775
|
# Generate an instance context for the instance, the context is capable of
|
710
776
|
# performing various actions. All instance actions are proxied to the context
|
711
777
|
# @param [Version] version Version that contains the resource
|
712
|
-
|
713
778
|
# @return [AccountContext] AccountContext for this AccountInstance
|
714
779
|
def context
|
715
780
|
unless @instance_context
|
@@ -765,7 +830,7 @@ module Twilio
|
|
765
830
|
# Fetch a AccountInstance
|
766
831
|
# @return [AccountInstance] Fetched AccountInstance
|
767
832
|
def fetch
|
768
|
-
|
833
|
+
context.fetch
|
769
834
|
end
|
770
835
|
|
771
836
|
##
|
@@ -774,10 +839,10 @@ module Twilio
|
|
774
839
|
# Account
|
775
840
|
# @param [account.Status] status Alter the status of this account with a given
|
776
841
|
# Status
|
777
|
-
|
778
842
|
# @return [AccountInstance] Updated AccountInstance
|
779
843
|
def update(friendly_name: nil, status: nil)
|
780
|
-
|
844
|
+
context.update(
|
845
|
+
friendly_name: friendly_name,
|
781
846
|
status: status,
|
782
847
|
)
|
783
848
|
end
|
@@ -786,147 +851,175 @@ module Twilio
|
|
786
851
|
# Access the addresses
|
787
852
|
# @return [addresses] addresses
|
788
853
|
def addresses
|
789
|
-
|
854
|
+
context.addresses
|
790
855
|
end
|
791
856
|
|
792
857
|
##
|
793
858
|
# Access the applications
|
794
859
|
# @return [applications] applications
|
795
860
|
def applications
|
796
|
-
|
861
|
+
context.applications
|
797
862
|
end
|
798
863
|
|
799
864
|
##
|
800
865
|
# Access the authorized_connect_apps
|
801
866
|
# @return [authorized_connect_apps] authorized_connect_apps
|
802
867
|
def authorized_connect_apps
|
803
|
-
|
868
|
+
context.authorized_connect_apps
|
804
869
|
end
|
805
870
|
|
806
871
|
##
|
807
872
|
# Access the available_phone_numbers
|
808
873
|
# @return [available_phone_numbers] available_phone_numbers
|
809
874
|
def available_phone_numbers
|
810
|
-
|
875
|
+
context.available_phone_numbers
|
811
876
|
end
|
812
877
|
|
813
878
|
##
|
814
879
|
# Access the calls
|
815
880
|
# @return [calls] calls
|
816
881
|
def calls
|
817
|
-
|
882
|
+
context.calls
|
818
883
|
end
|
819
884
|
|
820
885
|
##
|
821
886
|
# Access the conferences
|
822
887
|
# @return [conferences] conferences
|
823
888
|
def conferences
|
824
|
-
|
889
|
+
context.conferences
|
825
890
|
end
|
826
891
|
|
827
892
|
##
|
828
893
|
# Access the connect_apps
|
829
894
|
# @return [connect_apps] connect_apps
|
830
895
|
def connect_apps
|
831
|
-
|
896
|
+
context.connect_apps
|
832
897
|
end
|
833
898
|
|
834
899
|
##
|
835
900
|
# Access the incoming_phone_numbers
|
836
901
|
# @return [incoming_phone_numbers] incoming_phone_numbers
|
837
902
|
def incoming_phone_numbers
|
838
|
-
|
903
|
+
context.incoming_phone_numbers
|
904
|
+
end
|
905
|
+
|
906
|
+
##
|
907
|
+
# Access the keys
|
908
|
+
# @return [keys] keys
|
909
|
+
def keys
|
910
|
+
context.keys
|
839
911
|
end
|
840
912
|
|
841
913
|
##
|
842
914
|
# Access the messages
|
843
915
|
# @return [messages] messages
|
844
916
|
def messages
|
845
|
-
|
917
|
+
context.messages
|
918
|
+
end
|
919
|
+
|
920
|
+
##
|
921
|
+
# Access the new_keys
|
922
|
+
# @return [new_keys] new_keys
|
923
|
+
def new_keys
|
924
|
+
context.new_keys
|
925
|
+
end
|
926
|
+
|
927
|
+
##
|
928
|
+
# Access the new_signing_keys
|
929
|
+
# @return [new_signing_keys] new_signing_keys
|
930
|
+
def new_signing_keys
|
931
|
+
context.new_signing_keys
|
846
932
|
end
|
847
933
|
|
848
934
|
##
|
849
935
|
# Access the notifications
|
850
936
|
# @return [notifications] notifications
|
851
937
|
def notifications
|
852
|
-
|
938
|
+
context.notifications
|
853
939
|
end
|
854
940
|
|
855
941
|
##
|
856
942
|
# Access the outgoing_caller_ids
|
857
943
|
# @return [outgoing_caller_ids] outgoing_caller_ids
|
858
944
|
def outgoing_caller_ids
|
859
|
-
|
945
|
+
context.outgoing_caller_ids
|
860
946
|
end
|
861
947
|
|
862
948
|
##
|
863
949
|
# Access the queues
|
864
950
|
# @return [queues] queues
|
865
951
|
def queues
|
866
|
-
|
952
|
+
context.queues
|
867
953
|
end
|
868
954
|
|
869
955
|
##
|
870
956
|
# Access the recordings
|
871
957
|
# @return [recordings] recordings
|
872
958
|
def recordings
|
873
|
-
|
959
|
+
context.recordings
|
874
960
|
end
|
875
961
|
|
876
962
|
##
|
877
963
|
# Access the sandbox
|
878
964
|
# @return [sandbox] sandbox
|
879
965
|
def sandbox
|
880
|
-
|
966
|
+
context.sandbox
|
967
|
+
end
|
968
|
+
|
969
|
+
##
|
970
|
+
# Access the signing_keys
|
971
|
+
# @return [signing_keys] signing_keys
|
972
|
+
def signing_keys
|
973
|
+
context.signing_keys
|
881
974
|
end
|
882
975
|
|
883
976
|
##
|
884
977
|
# Access the sip
|
885
978
|
# @return [sip] sip
|
886
979
|
def sip
|
887
|
-
|
980
|
+
context.sip
|
888
981
|
end
|
889
982
|
|
890
983
|
##
|
891
984
|
# Access the sms
|
892
985
|
# @return [sms] sms
|
893
986
|
def sms
|
894
|
-
|
987
|
+
context.sms
|
895
988
|
end
|
896
989
|
|
897
990
|
##
|
898
991
|
# Access the tokens
|
899
992
|
# @return [tokens] tokens
|
900
993
|
def tokens
|
901
|
-
|
994
|
+
context.tokens
|
902
995
|
end
|
903
996
|
|
904
997
|
##
|
905
998
|
# Access the transcriptions
|
906
999
|
# @return [transcriptions] transcriptions
|
907
1000
|
def transcriptions
|
908
|
-
|
1001
|
+
context.transcriptions
|
909
1002
|
end
|
910
1003
|
|
911
1004
|
##
|
912
1005
|
# Access the usage
|
913
1006
|
# @return [usage] usage
|
914
1007
|
def usage
|
915
|
-
|
1008
|
+
context.usage
|
916
1009
|
end
|
917
1010
|
|
918
1011
|
##
|
919
1012
|
# Access the validation_requests
|
920
1013
|
# @return [validation_requests] validation_requests
|
921
1014
|
def validation_requests
|
922
|
-
|
1015
|
+
context.validation_requests
|
923
1016
|
end
|
924
1017
|
|
925
1018
|
##
|
926
1019
|
# Provide a user friendly representation
|
927
1020
|
def to_s
|
928
|
-
|
929
|
-
"<Twilio.Api.V2010.AccountInstance #{
|
1021
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
1022
|
+
"<Twilio.Api.V2010.AccountInstance #{values}>"
|
930
1023
|
end
|
931
1024
|
end
|
932
1025
|
end
|