twilio-ruby 5.70.0 → 5.70.1
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/CHANGES.md +12 -0
- data/Makefile +1 -1
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +3 -3
- data/lib/twilio-ruby/rest/client.rb +14 -0
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +4 -5
- data/lib/twilio-ruby/rest/microvisor/v1/app.rb +305 -0
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +332 -0
- data/lib/twilio-ruby/rest/microvisor/v1.rb +60 -0
- data/lib/twilio-ruby/rest/microvisor.rb +54 -0
- data/lib/twilio-ruby/rest/preview.rb +0 -25
- data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +261 -0
- data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +253 -0
- data/lib/twilio-ruby/rest/routes/v2/trunk.rb +261 -0
- data/lib/twilio-ruby/rest/routes/v2.rb +76 -0
- data/lib/twilio-ruby/rest/routes.rb +62 -0
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +16 -6
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +3 -3
- data/lib/twilio-ruby/security/request_validator.rb +1 -1
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +11 -8
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +0 -294
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +0 -275
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb +0 -249
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +0 -251
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +0 -234
- data/lib/twilio-ruby/rest/preview/bulk_exports.rb +0 -62
@@ -0,0 +1,261 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
module Twilio
|
10
|
+
module REST
|
11
|
+
class Routes < Domain
|
12
|
+
class V2 < Version
|
13
|
+
class TrunkList < ListResource
|
14
|
+
##
|
15
|
+
# Initialize the TrunkList
|
16
|
+
# @param [Version] version Version that contains the resource
|
17
|
+
# @return [TrunkList] TrunkList
|
18
|
+
def initialize(version)
|
19
|
+
super(version)
|
20
|
+
|
21
|
+
# Path Solution
|
22
|
+
@solution = {}
|
23
|
+
end
|
24
|
+
|
25
|
+
##
|
26
|
+
# Provide a user friendly representation
|
27
|
+
def to_s
|
28
|
+
'#<Twilio.Routes.V2.TrunkList>'
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
class TrunkPage < Page
|
33
|
+
##
|
34
|
+
# Initialize the TrunkPage
|
35
|
+
# @param [Version] version Version that contains the resource
|
36
|
+
# @param [Response] response Response from the API
|
37
|
+
# @param [Hash] solution Path solution for the resource
|
38
|
+
# @return [TrunkPage] TrunkPage
|
39
|
+
def initialize(version, response, solution)
|
40
|
+
super(version, response)
|
41
|
+
|
42
|
+
# Path Solution
|
43
|
+
@solution = solution
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# Build an instance of TrunkInstance
|
48
|
+
# @param [Hash] payload Payload response from the API
|
49
|
+
# @return [TrunkInstance] TrunkInstance
|
50
|
+
def get_instance(payload)
|
51
|
+
TrunkInstance.new(@version, payload, )
|
52
|
+
end
|
53
|
+
|
54
|
+
##
|
55
|
+
# Provide a user friendly representation
|
56
|
+
def to_s
|
57
|
+
'<Twilio.Routes.V2.TrunkPage>'
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
class TrunkContext < InstanceContext
|
62
|
+
##
|
63
|
+
# Initialize the TrunkContext
|
64
|
+
# @param [Version] version Version that contains the resource
|
65
|
+
# @param [String] sip_trunk_domain The absolute URL of the SIP Trunk
|
66
|
+
# @return [TrunkContext] TrunkContext
|
67
|
+
def initialize(version, sip_trunk_domain)
|
68
|
+
super(version)
|
69
|
+
|
70
|
+
# Path Solution
|
71
|
+
@solution = {sip_trunk_domain: sip_trunk_domain, }
|
72
|
+
@uri = "/Trunks/#{@solution[:sip_trunk_domain]}"
|
73
|
+
end
|
74
|
+
|
75
|
+
##
|
76
|
+
# Create the TrunkInstance
|
77
|
+
# @param [String] voice_region The Inbound Processing Region used for this SIP
|
78
|
+
# Trunk for voice
|
79
|
+
# @param [String] friendly_name A human readable description of this resource, up
|
80
|
+
# to 64 characters.
|
81
|
+
# @return [TrunkInstance] Created TrunkInstance
|
82
|
+
def create(voice_region: :unset, friendly_name: :unset)
|
83
|
+
data = Twilio::Values.of({'VoiceRegion' => voice_region, 'FriendlyName' => friendly_name, })
|
84
|
+
|
85
|
+
payload = @version.create('POST', @uri, data: data)
|
86
|
+
|
87
|
+
TrunkInstance.new(@version, payload, sip_trunk_domain: @solution[:sip_trunk_domain], )
|
88
|
+
end
|
89
|
+
|
90
|
+
##
|
91
|
+
# Update the TrunkInstance
|
92
|
+
# @param [String] voice_region The Inbound Processing Region used for this SIP
|
93
|
+
# Trunk for voice
|
94
|
+
# @param [String] friendly_name A human readable description of this resource, up
|
95
|
+
# to 64 characters.
|
96
|
+
# @return [TrunkInstance] Updated TrunkInstance
|
97
|
+
def update(voice_region: :unset, friendly_name: :unset)
|
98
|
+
data = Twilio::Values.of({'VoiceRegion' => voice_region, 'FriendlyName' => friendly_name, })
|
99
|
+
|
100
|
+
payload = @version.update('POST', @uri, data: data)
|
101
|
+
|
102
|
+
TrunkInstance.new(@version, payload, sip_trunk_domain: @solution[:sip_trunk_domain], )
|
103
|
+
end
|
104
|
+
|
105
|
+
##
|
106
|
+
# Fetch the TrunkInstance
|
107
|
+
# @return [TrunkInstance] Fetched TrunkInstance
|
108
|
+
def fetch
|
109
|
+
payload = @version.fetch('GET', @uri)
|
110
|
+
|
111
|
+
TrunkInstance.new(@version, payload, sip_trunk_domain: @solution[:sip_trunk_domain], )
|
112
|
+
end
|
113
|
+
|
114
|
+
##
|
115
|
+
# Provide a user friendly representation
|
116
|
+
def to_s
|
117
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
118
|
+
"#<Twilio.Routes.V2.TrunkContext #{context}>"
|
119
|
+
end
|
120
|
+
|
121
|
+
##
|
122
|
+
# Provide a detailed, user friendly representation
|
123
|
+
def inspect
|
124
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
125
|
+
"#<Twilio.Routes.V2.TrunkContext #{context}>"
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
class TrunkInstance < InstanceResource
|
130
|
+
##
|
131
|
+
# Initialize the TrunkInstance
|
132
|
+
# @param [Version] version Version that contains the resource
|
133
|
+
# @param [Hash] payload payload that contains response from Twilio
|
134
|
+
# @param [String] sip_trunk_domain The absolute URL of the SIP Trunk
|
135
|
+
# @return [TrunkInstance] TrunkInstance
|
136
|
+
def initialize(version, payload, sip_trunk_domain: nil)
|
137
|
+
super(version)
|
138
|
+
|
139
|
+
# Marshaled Properties
|
140
|
+
@properties = {
|
141
|
+
'sip_trunk_domain' => payload['sip_trunk_domain'],
|
142
|
+
'url' => payload['url'],
|
143
|
+
'sid' => payload['sid'],
|
144
|
+
'account_sid' => payload['account_sid'],
|
145
|
+
'friendly_name' => payload['friendly_name'],
|
146
|
+
'voice_region' => payload['voice_region'],
|
147
|
+
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
148
|
+
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
149
|
+
}
|
150
|
+
|
151
|
+
# Context
|
152
|
+
@instance_context = nil
|
153
|
+
@params = {'sip_trunk_domain' => sip_trunk_domain || @properties['sip_trunk_domain'], }
|
154
|
+
end
|
155
|
+
|
156
|
+
##
|
157
|
+
# Generate an instance context for the instance, the context is capable of
|
158
|
+
# performing various actions. All instance actions are proxied to the context
|
159
|
+
# @return [TrunkContext] TrunkContext for this TrunkInstance
|
160
|
+
def context
|
161
|
+
unless @instance_context
|
162
|
+
@instance_context = TrunkContext.new(@version, @params['sip_trunk_domain'], )
|
163
|
+
end
|
164
|
+
@instance_context
|
165
|
+
end
|
166
|
+
|
167
|
+
##
|
168
|
+
# @return [String] The SIP Trunk
|
169
|
+
def sip_trunk_domain
|
170
|
+
@properties['sip_trunk_domain']
|
171
|
+
end
|
172
|
+
|
173
|
+
##
|
174
|
+
# @return [String] The absolute URL of the resource
|
175
|
+
def url
|
176
|
+
@properties['url']
|
177
|
+
end
|
178
|
+
|
179
|
+
##
|
180
|
+
# @return [String] A string that uniquely identifies the Inbound Processing Region assignments for this SIP Trunk.
|
181
|
+
def sid
|
182
|
+
@properties['sid']
|
183
|
+
end
|
184
|
+
|
185
|
+
##
|
186
|
+
# @return [String] Account Sid.
|
187
|
+
def account_sid
|
188
|
+
@properties['account_sid']
|
189
|
+
end
|
190
|
+
|
191
|
+
##
|
192
|
+
# @return [String] A human readable description of the Inbound Processing Region assignments for this SIP Trunk.
|
193
|
+
def friendly_name
|
194
|
+
@properties['friendly_name']
|
195
|
+
end
|
196
|
+
|
197
|
+
##
|
198
|
+
# @return [String] The Inbound Processing Region used for this SIP Trunk for voice.
|
199
|
+
def voice_region
|
200
|
+
@properties['voice_region']
|
201
|
+
end
|
202
|
+
|
203
|
+
##
|
204
|
+
# @return [Time] The date that this SIP Trunk was assigned an Inbound Processing Region.
|
205
|
+
def date_created
|
206
|
+
@properties['date_created']
|
207
|
+
end
|
208
|
+
|
209
|
+
##
|
210
|
+
# @return [Time] The date that the Inbound Processing Region was updated for this SIP Trunk.
|
211
|
+
def date_updated
|
212
|
+
@properties['date_updated']
|
213
|
+
end
|
214
|
+
|
215
|
+
##
|
216
|
+
# Create the TrunkInstance
|
217
|
+
# @param [String] voice_region The Inbound Processing Region used for this SIP
|
218
|
+
# Trunk for voice
|
219
|
+
# @param [String] friendly_name A human readable description of this resource, up
|
220
|
+
# to 64 characters.
|
221
|
+
# @return [TrunkInstance] Created TrunkInstance
|
222
|
+
def create(voice_region: :unset, friendly_name: :unset)
|
223
|
+
context.create(voice_region: voice_region, friendly_name: friendly_name, )
|
224
|
+
end
|
225
|
+
|
226
|
+
##
|
227
|
+
# Update the TrunkInstance
|
228
|
+
# @param [String] voice_region The Inbound Processing Region used for this SIP
|
229
|
+
# Trunk for voice
|
230
|
+
# @param [String] friendly_name A human readable description of this resource, up
|
231
|
+
# to 64 characters.
|
232
|
+
# @return [TrunkInstance] Updated TrunkInstance
|
233
|
+
def update(voice_region: :unset, friendly_name: :unset)
|
234
|
+
context.update(voice_region: voice_region, friendly_name: friendly_name, )
|
235
|
+
end
|
236
|
+
|
237
|
+
##
|
238
|
+
# Fetch the TrunkInstance
|
239
|
+
# @return [TrunkInstance] Fetched TrunkInstance
|
240
|
+
def fetch
|
241
|
+
context.fetch
|
242
|
+
end
|
243
|
+
|
244
|
+
##
|
245
|
+
# Provide a user friendly representation
|
246
|
+
def to_s
|
247
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
248
|
+
"<Twilio.Routes.V2.TrunkInstance #{values}>"
|
249
|
+
end
|
250
|
+
|
251
|
+
##
|
252
|
+
# Provide a detailed, user friendly representation
|
253
|
+
def inspect
|
254
|
+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
255
|
+
"<Twilio.Routes.V2.TrunkInstance #{values}>"
|
256
|
+
end
|
257
|
+
end
|
258
|
+
end
|
259
|
+
end
|
260
|
+
end
|
261
|
+
end
|
@@ -0,0 +1,76 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
module Twilio
|
10
|
+
module REST
|
11
|
+
class Routes
|
12
|
+
class V2 < Version
|
13
|
+
##
|
14
|
+
# Initialize the V2 version of Routes
|
15
|
+
def initialize(domain)
|
16
|
+
super
|
17
|
+
@version = 'v2'
|
18
|
+
@phone_numbers = nil
|
19
|
+
@sip_domains = nil
|
20
|
+
@trunks = nil
|
21
|
+
end
|
22
|
+
|
23
|
+
##
|
24
|
+
# @param [String] phone_number The phone number in E.164 format
|
25
|
+
# @return [Twilio::REST::Routes::V2::PhoneNumberContext] if phone_number was passed.
|
26
|
+
# @return [Twilio::REST::Routes::V2::PhoneNumberList]
|
27
|
+
def phone_numbers(phone_number=:unset)
|
28
|
+
if phone_number.nil?
|
29
|
+
raise ArgumentError, 'phone_number cannot be nil'
|
30
|
+
end
|
31
|
+
if phone_number == :unset
|
32
|
+
@phone_numbers ||= PhoneNumberList.new self
|
33
|
+
else
|
34
|
+
PhoneNumberContext.new(self, phone_number)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
##
|
39
|
+
# @param [String] sip_domain The sip_domain
|
40
|
+
# @return [Twilio::REST::Routes::V2::SipDomainContext] if sip_domain was passed.
|
41
|
+
# @return [Twilio::REST::Routes::V2::SipDomainList]
|
42
|
+
def sip_domains(sip_domain=:unset)
|
43
|
+
if sip_domain.nil?
|
44
|
+
raise ArgumentError, 'sip_domain cannot be nil'
|
45
|
+
end
|
46
|
+
if sip_domain == :unset
|
47
|
+
@sip_domains ||= SipDomainList.new self
|
48
|
+
else
|
49
|
+
SipDomainContext.new(self, sip_domain)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
##
|
54
|
+
# @param [String] sip_trunk_domain The absolute URL of the SIP Trunk
|
55
|
+
# @return [Twilio::REST::Routes::V2::TrunkContext] if sip_trunk_domain was passed.
|
56
|
+
# @return [Twilio::REST::Routes::V2::TrunkList]
|
57
|
+
def trunks(sip_trunk_domain=:unset)
|
58
|
+
if sip_trunk_domain.nil?
|
59
|
+
raise ArgumentError, 'sip_trunk_domain cannot be nil'
|
60
|
+
end
|
61
|
+
if sip_trunk_domain == :unset
|
62
|
+
@trunks ||= TrunkList.new self
|
63
|
+
else
|
64
|
+
TrunkContext.new(self, sip_trunk_domain)
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
##
|
69
|
+
# Provide a user friendly representation
|
70
|
+
def to_s
|
71
|
+
'<Twilio::REST::Routes::V2>'
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
module Twilio
|
10
|
+
module REST
|
11
|
+
class Routes < Domain
|
12
|
+
##
|
13
|
+
# Initialize the Routes Domain
|
14
|
+
def initialize(twilio)
|
15
|
+
super
|
16
|
+
|
17
|
+
@base_url = 'https://routes.twilio.com'
|
18
|
+
@host = 'routes.twilio.com'
|
19
|
+
@port = 443
|
20
|
+
|
21
|
+
# Versions
|
22
|
+
@v2 = nil
|
23
|
+
end
|
24
|
+
|
25
|
+
##
|
26
|
+
# Version v2 of routes
|
27
|
+
def v2
|
28
|
+
@v2 ||= V2.new self
|
29
|
+
end
|
30
|
+
|
31
|
+
##
|
32
|
+
# @param [String] phone_number The phone number in E.164 format
|
33
|
+
# @return [Twilio::REST::Routes::V2::PhoneNumberInstance] if phone_number was passed.
|
34
|
+
# @return [Twilio::REST::Routes::V2::PhoneNumberList]
|
35
|
+
def phone_numbers(phone_number=:unset)
|
36
|
+
self.v2.phone_numbers(phone_number)
|
37
|
+
end
|
38
|
+
|
39
|
+
##
|
40
|
+
# @param [String] sip_domain The sip_domain
|
41
|
+
# @return [Twilio::REST::Routes::V2::SipDomainInstance] if sip_domain was passed.
|
42
|
+
# @return [Twilio::REST::Routes::V2::SipDomainList]
|
43
|
+
def sip_domains(sip_domain=:unset)
|
44
|
+
self.v2.sip_domains(sip_domain)
|
45
|
+
end
|
46
|
+
|
47
|
+
##
|
48
|
+
# @param [String] sip_trunk_domain The absolute URL of the SIP Trunk
|
49
|
+
# @return [Twilio::REST::Routes::V2::TrunkInstance] if sip_trunk_domain was passed.
|
50
|
+
# @return [Twilio::REST::Routes::V2::TrunkList]
|
51
|
+
def trunks(sip_trunk_domain=:unset)
|
52
|
+
self.v2.trunks(sip_trunk_domain)
|
53
|
+
end
|
54
|
+
|
55
|
+
##
|
56
|
+
# Provide a user friendly representation
|
57
|
+
def to_s
|
58
|
+
'#<Twilio::REST::Routes>'
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
@@ -36,9 +36,9 @@ module Twilio
|
|
36
36
|
# @param [Boolean] data_enabled Defines whether SIMs in the Fleet are capable of
|
37
37
|
# using 2G/3G/4G/LTE/CAT-M data connectivity. Defaults to `true`.
|
38
38
|
# @param [String] data_limit The total data usage (download and upload combined)
|
39
|
-
# in Megabytes that each
|
40
|
-
#
|
41
|
-
#
|
39
|
+
# in Megabytes that each Super SIM assigned to the Fleet can consume during a
|
40
|
+
# billing period (normally one month). Value must be between 1MB (1) and 2TB
|
41
|
+
# (2,000,000). Defaults to 1GB (1,000).
|
42
42
|
# @param [String] ip_commands_url The URL that will receive a webhook when a Super
|
43
43
|
# SIM in the Fleet is used to send an IP Command from your device to a special IP
|
44
44
|
# address. Your server should respond with an HTTP status code in the 200 range;
|
@@ -254,8 +254,12 @@ module Twilio
|
|
254
254
|
# @param [String] sms_commands_method A string representing the HTTP method to use
|
255
255
|
# when making a request to `sms_commands_url`. Can be one of `POST` or `GET`.
|
256
256
|
# Defaults to `POST`.
|
257
|
+
# @param [String] data_limit The total data usage (download and upload combined)
|
258
|
+
# in Megabytes that each Super SIM assigned to the Fleet can consume during a
|
259
|
+
# billing period (normally one month). Value must be between 1MB (1) and 2TB
|
260
|
+
# (2,000,000). Defaults to 1GB (1,000).
|
257
261
|
# @return [FleetInstance] Updated FleetInstance
|
258
|
-
def update(unique_name: :unset, network_access_profile: :unset, ip_commands_url: :unset, ip_commands_method: :unset, sms_commands_url: :unset, sms_commands_method: :unset)
|
262
|
+
def update(unique_name: :unset, network_access_profile: :unset, ip_commands_url: :unset, ip_commands_method: :unset, sms_commands_url: :unset, sms_commands_method: :unset, data_limit: :unset)
|
259
263
|
data = Twilio::Values.of({
|
260
264
|
'UniqueName' => unique_name,
|
261
265
|
'NetworkAccessProfile' => network_access_profile,
|
@@ -263,6 +267,7 @@ module Twilio
|
|
263
267
|
'IpCommandsMethod' => ip_commands_method,
|
264
268
|
'SmsCommandsUrl' => sms_commands_url,
|
265
269
|
'SmsCommandsMethod' => sms_commands_method,
|
270
|
+
'DataLimit' => data_limit,
|
266
271
|
})
|
267
272
|
|
268
273
|
payload = @version.update('POST', @uri, data: data)
|
@@ -375,7 +380,7 @@ module Twilio
|
|
375
380
|
end
|
376
381
|
|
377
382
|
##
|
378
|
-
# @return [String] The total data usage (download and upload combined) in Megabytes that each
|
383
|
+
# @return [String] The total data usage (download and upload combined) in Megabytes that each Super SIM assigned to the Fleet can consume
|
379
384
|
def data_limit
|
380
385
|
@properties['data_limit']
|
381
386
|
end
|
@@ -451,8 +456,12 @@ module Twilio
|
|
451
456
|
# @param [String] sms_commands_method A string representing the HTTP method to use
|
452
457
|
# when making a request to `sms_commands_url`. Can be one of `POST` or `GET`.
|
453
458
|
# Defaults to `POST`.
|
459
|
+
# @param [String] data_limit The total data usage (download and upload combined)
|
460
|
+
# in Megabytes that each Super SIM assigned to the Fleet can consume during a
|
461
|
+
# billing period (normally one month). Value must be between 1MB (1) and 2TB
|
462
|
+
# (2,000,000). Defaults to 1GB (1,000).
|
454
463
|
# @return [FleetInstance] Updated FleetInstance
|
455
|
-
def update(unique_name: :unset, network_access_profile: :unset, ip_commands_url: :unset, ip_commands_method: :unset, sms_commands_url: :unset, sms_commands_method: :unset)
|
464
|
+
def update(unique_name: :unset, network_access_profile: :unset, ip_commands_url: :unset, ip_commands_method: :unset, sms_commands_url: :unset, sms_commands_method: :unset, data_limit: :unset)
|
456
465
|
context.update(
|
457
466
|
unique_name: unique_name,
|
458
467
|
network_access_profile: network_access_profile,
|
@@ -460,6 +469,7 @@ module Twilio
|
|
460
469
|
ip_commands_method: ip_commands_method,
|
461
470
|
sms_commands_url: sms_commands_url,
|
462
471
|
sms_commands_method: sms_commands_method,
|
472
|
+
data_limit: data_limit,
|
463
473
|
)
|
464
474
|
end
|
465
475
|
|
@@ -32,9 +32,9 @@ module Twilio
|
|
32
32
|
# @param [String] to The phone number or
|
33
33
|
# {email}[https://www.twilio.com/docs/verify/email] to verify. Phone numbers must
|
34
34
|
# be in {E.164 format}[https://www.twilio.com/docs/glossary/what-e164].
|
35
|
-
# @param [String] channel The verification method to use.
|
36
|
-
# {`email`}[https://www.twilio.com/docs/verify/email], `sms`, `whatsapp`
|
37
|
-
# `
|
35
|
+
# @param [String] channel The verification method to use. One of:
|
36
|
+
# {`email`}[https://www.twilio.com/docs/verify/email], `sms`, `whatsapp`, `call`,
|
37
|
+
# or `sna`.
|
38
38
|
# @param [String] custom_friendly_name A custom user defined friendly name that
|
39
39
|
# overwrites the existing one in the verification message
|
40
40
|
# @param [String] custom_message The text of a custom message to use for the
|
@@ -32,7 +32,7 @@ module Twilio
|
|
32
32
|
valid_body = true # default succeed, since body not always provided
|
33
33
|
params_hash = body_or_hash(params)
|
34
34
|
unless params_hash.is_a? Enumerable
|
35
|
-
body_hash = URI.decode_www_form(parsed_url.query).to_h['bodySHA256']
|
35
|
+
body_hash = URI.decode_www_form(parsed_url.query || '').to_h['bodySHA256']
|
36
36
|
params_hash = build_hash_for(params)
|
37
37
|
valid_body = !(params_hash.nil? || body_hash.nil?) && secure_compare(params_hash, body_hash)
|
38
38
|
params_hash = {}
|
data/lib/twilio-ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twilio-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.70.
|
4
|
+
version: 5.70.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Twilio API Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -492,6 +492,10 @@ files:
|
|
492
492
|
- lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb
|
493
493
|
- lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb
|
494
494
|
- lib/twilio-ruby/rest/messaging/v1/usecase.rb
|
495
|
+
- lib/twilio-ruby/rest/microvisor.rb
|
496
|
+
- lib/twilio-ruby/rest/microvisor/v1.rb
|
497
|
+
- lib/twilio-ruby/rest/microvisor/v1/app.rb
|
498
|
+
- lib/twilio-ruby/rest/microvisor/v1/device.rb
|
495
499
|
- lib/twilio-ruby/rest/monitor.rb
|
496
500
|
- lib/twilio-ruby/rest/monitor/v1.rb
|
497
501
|
- lib/twilio-ruby/rest/monitor/v1/alert.rb
|
@@ -516,12 +520,6 @@ files:
|
|
516
520
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb
|
517
521
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb
|
518
522
|
- lib/twilio-ruby/rest/preview.rb
|
519
|
-
- lib/twilio-ruby/rest/preview/bulk_exports.rb
|
520
|
-
- lib/twilio-ruby/rest/preview/bulk_exports/export.rb
|
521
|
-
- lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb
|
522
|
-
- lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb
|
523
|
-
- lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb
|
524
|
-
- lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb
|
525
523
|
- lib/twilio-ruby/rest/preview/deployed_devices.rb
|
526
524
|
- lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb
|
527
525
|
- lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb
|
@@ -597,6 +595,11 @@ files:
|
|
597
595
|
- lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb
|
598
596
|
- lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb
|
599
597
|
- lib/twilio-ruby/rest/proxy/v1/service/short_code.rb
|
598
|
+
- lib/twilio-ruby/rest/routes.rb
|
599
|
+
- lib/twilio-ruby/rest/routes/v2.rb
|
600
|
+
- lib/twilio-ruby/rest/routes/v2/phone_number.rb
|
601
|
+
- lib/twilio-ruby/rest/routes/v2/sip_domain.rb
|
602
|
+
- lib/twilio-ruby/rest/routes/v2/trunk.rb
|
600
603
|
- lib/twilio-ruby/rest/serverless.rb
|
601
604
|
- lib/twilio-ruby/rest/serverless/v1.rb
|
602
605
|
- lib/twilio-ruby/rest/serverless/v1/service.rb
|