twilio-ruby 5.74.3 → 5.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +34 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +3 -3
- data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +240 -0
- data/lib/twilio-ruby/rest/content/v1.rb +7 -0
- data/lib/twilio-ruby/rest/content.rb +6 -0
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +258 -17
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +216 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +10 -3
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +95 -1
- data/lib/twilio-ruby/rest/flex_api/v1.rb +19 -3
- data/lib/twilio-ruby/rest/flex_api.rb +11 -3
- data/lib/twilio-ruby/rest/messaging/v1/domain_cert.rb +4 -4
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +226 -0
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +218 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +41 -0
- data/lib/twilio-ruby/rest/messaging.rb +18 -0
- data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +21 -1
- data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +20 -0
- data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +192 -0
- data/lib/twilio-ruby/rest/microvisor/v1/app.rb +25 -0
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +25 -0
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +25 -0
- data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +21 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +0 -23
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +3 -2
- data/lib/twilio-ruby/version.rb +1 -1
- data/twilio-ruby.gemspec +1 -1
- metadata +11 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue_bulk_real_time_statistics.rb +0 -149
@@ -19,7 +19,9 @@ module Twilio
|
|
19
19
|
@deactivations = nil
|
20
20
|
@domain_certs = nil
|
21
21
|
@domain_config = nil
|
22
|
+
@domain_config_messaging_service = nil
|
22
23
|
@external_campaign = nil
|
24
|
+
@linkshortening_messaging_service = nil
|
23
25
|
@services = nil
|
24
26
|
@tollfree_verifications = nil
|
25
27
|
@usecases = nil
|
@@ -78,12 +80,51 @@ module Twilio
|
|
78
80
|
end
|
79
81
|
end
|
80
82
|
|
83
|
+
##
|
84
|
+
# @param [String] messaging_service_sid Unique string used to identify the
|
85
|
+
# Messaging service that this domain should be associated with.
|
86
|
+
# @return [Twilio::REST::Messaging::V1::DomainConfigMessagingServiceContext] if messaging_service_sid was passed.
|
87
|
+
# @return [Twilio::REST::Messaging::V1::DomainConfigMessagingServiceList]
|
88
|
+
def domain_config_messaging_service(messaging_service_sid=:unset)
|
89
|
+
if messaging_service_sid.nil?
|
90
|
+
raise ArgumentError, 'messaging_service_sid cannot be nil'
|
91
|
+
end
|
92
|
+
if messaging_service_sid == :unset
|
93
|
+
@domain_config_messaging_service ||= DomainConfigMessagingServiceList.new self
|
94
|
+
else
|
95
|
+
DomainConfigMessagingServiceContext.new(self, messaging_service_sid)
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
81
99
|
##
|
82
100
|
# @return [Twilio::REST::Messaging::V1::ExternalCampaignContext]
|
83
101
|
def external_campaign
|
84
102
|
@external_campaign ||= ExternalCampaignList.new self
|
85
103
|
end
|
86
104
|
|
105
|
+
##
|
106
|
+
# @param [String] domain_sid The domain SID to dissociate from a messaging
|
107
|
+
# service. With URL shortening enabled, links in messages sent with the associated
|
108
|
+
# messaging service will be shortened to the provided domain
|
109
|
+
# @param [String] messaging_service_sid A messaging service SID to dissociate from
|
110
|
+
# a domain. With URL shortening enabled, links in messages sent with the provided
|
111
|
+
# messaging service will be shortened to the associated domain
|
112
|
+
# @return [Twilio::REST::Messaging::V1::LinkshorteningMessagingServiceContext] if messaging_service_sid was passed.
|
113
|
+
# @return [Twilio::REST::Messaging::V1::LinkshorteningMessagingServiceList]
|
114
|
+
def linkshortening_messaging_service(domain_sid=:unset, messaging_service_sid=:unset)
|
115
|
+
if domain_sid.nil?
|
116
|
+
raise ArgumentError, 'domain_sid cannot be nil'
|
117
|
+
end
|
118
|
+
if messaging_service_sid.nil?
|
119
|
+
raise ArgumentError, 'messaging_service_sid cannot be nil'
|
120
|
+
end
|
121
|
+
if domain_sid == :unset && messaging_service_sid == :unset
|
122
|
+
@linkshortening_messaging_service ||= LinkshorteningMessagingServiceList.new self
|
123
|
+
else
|
124
|
+
LinkshorteningMessagingServiceContext.new(self, domain_sid, messaging_service_sid)
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
87
128
|
##
|
88
129
|
# @param [String] sid The SID of the Service resource to fetch.
|
89
130
|
# @return [Twilio::REST::Messaging::V1::ServiceContext] if sid was passed.
|
@@ -60,12 +60,30 @@ module Twilio
|
|
60
60
|
self.v1.domain_config(domain_sid)
|
61
61
|
end
|
62
62
|
|
63
|
+
##
|
64
|
+
# @param [String] messaging_service_sid The unique string that identifies the
|
65
|
+
# messaging service
|
66
|
+
# @return [Twilio::REST::Messaging::V1::DomainConfigMessagingServiceInstance] if messaging_service_sid was passed.
|
67
|
+
# @return [Twilio::REST::Messaging::V1::DomainConfigMessagingServiceList]
|
68
|
+
def domain_config_messaging_service(messaging_service_sid=:unset)
|
69
|
+
self.v1.domain_config_messaging_service(messaging_service_sid)
|
70
|
+
end
|
71
|
+
|
63
72
|
##
|
64
73
|
# @return [Twilio::REST::Messaging::V1::ExternalCampaignInstance]
|
65
74
|
def external_campaign
|
66
75
|
self.v1.external_campaign()
|
67
76
|
end
|
68
77
|
|
78
|
+
##
|
79
|
+
# @param [String] messaging_service_sid The unique string that identifies the
|
80
|
+
# messaging service
|
81
|
+
# @return [Twilio::REST::Messaging::V1::LinkshorteningMessagingServiceInstance] if messaging_service_sid was passed.
|
82
|
+
# @return [Twilio::REST::Messaging::V1::LinkshorteningMessagingServiceList]
|
83
|
+
def linkshortening_messaging_service(domain_sid=:unset, messaging_service_sid=:unset)
|
84
|
+
self.v1.linkshortening_messaging_service(domain_sid, messaging_service_sid)
|
85
|
+
end
|
86
|
+
|
69
87
|
##
|
70
88
|
# @param [String] sid The unique string that we created to identify the Service
|
71
89
|
# resource.
|
@@ -108,7 +108,7 @@ module Twilio
|
|
108
108
|
##
|
109
109
|
# Create the AccountConfigInstance
|
110
110
|
# @param [String] key The config key; up to 100 characters.
|
111
|
-
# @param [String] value The config value;
|
111
|
+
# @param [String] value The config value; up to 4096 characters.
|
112
112
|
# @return [AccountConfigInstance] Created AccountConfigInstance
|
113
113
|
def create(key: nil, value: nil)
|
114
114
|
data = Twilio::Values.of({'Key' => key, 'Value' => value, })
|
@@ -181,6 +181,18 @@ module Twilio
|
|
181
181
|
AccountConfigInstance.new(@version, payload, key: @solution[:key], )
|
182
182
|
end
|
183
183
|
|
184
|
+
##
|
185
|
+
# Update the AccountConfigInstance
|
186
|
+
# @param [String] value The config value; up to 4096 characters.
|
187
|
+
# @return [AccountConfigInstance] Updated AccountConfigInstance
|
188
|
+
def update(value: nil)
|
189
|
+
data = Twilio::Values.of({'Value' => value, })
|
190
|
+
|
191
|
+
payload = @version.update('POST', @uri, data: data)
|
192
|
+
|
193
|
+
AccountConfigInstance.new(@version, payload, key: @solution[:key], )
|
194
|
+
end
|
195
|
+
|
184
196
|
##
|
185
197
|
# Delete the AccountConfigInstance
|
186
198
|
# @return [Boolean] true if delete succeeds, false otherwise
|
@@ -270,6 +282,14 @@ module Twilio
|
|
270
282
|
context.fetch
|
271
283
|
end
|
272
284
|
|
285
|
+
##
|
286
|
+
# Update the AccountConfigInstance
|
287
|
+
# @param [String] value The config value; up to 4096 characters.
|
288
|
+
# @return [AccountConfigInstance] Updated AccountConfigInstance
|
289
|
+
def update(value: nil)
|
290
|
+
context.update(value: value, )
|
291
|
+
end
|
292
|
+
|
273
293
|
##
|
274
294
|
# Delete the AccountConfigInstance
|
275
295
|
# @return [Boolean] true if delete succeeds, false otherwise
|
@@ -181,6 +181,18 @@ module Twilio
|
|
181
181
|
AccountSecretInstance.new(@version, payload, key: @solution[:key], )
|
182
182
|
end
|
183
183
|
|
184
|
+
##
|
185
|
+
# Update the AccountSecretInstance
|
186
|
+
# @param [String] value The secret value; up to 4096 characters.
|
187
|
+
# @return [AccountSecretInstance] Updated AccountSecretInstance
|
188
|
+
def update(value: nil)
|
189
|
+
data = Twilio::Values.of({'Value' => value, })
|
190
|
+
|
191
|
+
payload = @version.update('POST', @uri, data: data)
|
192
|
+
|
193
|
+
AccountSecretInstance.new(@version, payload, key: @solution[:key], )
|
194
|
+
end
|
195
|
+
|
184
196
|
##
|
185
197
|
# Delete the AccountSecretInstance
|
186
198
|
# @return [Boolean] true if delete succeeds, false otherwise
|
@@ -263,6 +275,14 @@ module Twilio
|
|
263
275
|
context.fetch
|
264
276
|
end
|
265
277
|
|
278
|
+
##
|
279
|
+
# Update the AccountSecretInstance
|
280
|
+
# @param [String] value The secret value; up to 4096 characters.
|
281
|
+
# @return [AccountSecretInstance] Updated AccountSecretInstance
|
282
|
+
def update(value: nil)
|
283
|
+
context.update(value: value, )
|
284
|
+
end
|
285
|
+
|
266
286
|
##
|
267
287
|
# Delete the AccountSecretInstance
|
268
288
|
# @return [Boolean] true if delete succeeds, false otherwise
|
@@ -0,0 +1,192 @@
|
|
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 Microvisor < Domain
|
12
|
+
class V1 < Version
|
13
|
+
class AppContext < InstanceContext
|
14
|
+
##
|
15
|
+
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
16
|
+
class AppManifestList < ListResource
|
17
|
+
##
|
18
|
+
# Initialize the AppManifestList
|
19
|
+
# @param [Version] version Version that contains the resource
|
20
|
+
# @param [String] app_sid A 34-character string that uniquely identifies this App.
|
21
|
+
# @return [AppManifestList] AppManifestList
|
22
|
+
def initialize(version, app_sid: nil)
|
23
|
+
super(version)
|
24
|
+
|
25
|
+
# Path Solution
|
26
|
+
@solution = {app_sid: app_sid}
|
27
|
+
end
|
28
|
+
|
29
|
+
##
|
30
|
+
# Provide a user friendly representation
|
31
|
+
def to_s
|
32
|
+
'#<Twilio.Microvisor.V1.AppManifestList>'
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
##
|
37
|
+
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
38
|
+
class AppManifestPage < Page
|
39
|
+
##
|
40
|
+
# Initialize the AppManifestPage
|
41
|
+
# @param [Version] version Version that contains the resource
|
42
|
+
# @param [Response] response Response from the API
|
43
|
+
# @param [Hash] solution Path solution for the resource
|
44
|
+
# @return [AppManifestPage] AppManifestPage
|
45
|
+
def initialize(version, response, solution)
|
46
|
+
super(version, response)
|
47
|
+
|
48
|
+
# Path Solution
|
49
|
+
@solution = solution
|
50
|
+
end
|
51
|
+
|
52
|
+
##
|
53
|
+
# Build an instance of AppManifestInstance
|
54
|
+
# @param [Hash] payload Payload response from the API
|
55
|
+
# @return [AppManifestInstance] AppManifestInstance
|
56
|
+
def get_instance(payload)
|
57
|
+
AppManifestInstance.new(@version, payload, app_sid: @solution[:app_sid], )
|
58
|
+
end
|
59
|
+
|
60
|
+
##
|
61
|
+
# Provide a user friendly representation
|
62
|
+
def to_s
|
63
|
+
'<Twilio.Microvisor.V1.AppManifestPage>'
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
##
|
68
|
+
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
69
|
+
class AppManifestContext < InstanceContext
|
70
|
+
##
|
71
|
+
# Initialize the AppManifestContext
|
72
|
+
# @param [Version] version Version that contains the resource
|
73
|
+
# @param [String] app_sid A 34-character string that uniquely identifies this App.
|
74
|
+
# @return [AppManifestContext] AppManifestContext
|
75
|
+
def initialize(version, app_sid)
|
76
|
+
super(version)
|
77
|
+
|
78
|
+
# Path Solution
|
79
|
+
@solution = {app_sid: app_sid, }
|
80
|
+
@uri = "/Apps/#{@solution[:app_sid]}/Manifest"
|
81
|
+
end
|
82
|
+
|
83
|
+
##
|
84
|
+
# Fetch the AppManifestInstance
|
85
|
+
# @return [AppManifestInstance] Fetched AppManifestInstance
|
86
|
+
def fetch
|
87
|
+
payload = @version.fetch('GET', @uri)
|
88
|
+
|
89
|
+
AppManifestInstance.new(@version, payload, app_sid: @solution[:app_sid], )
|
90
|
+
end
|
91
|
+
|
92
|
+
##
|
93
|
+
# Provide a user friendly representation
|
94
|
+
def to_s
|
95
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
96
|
+
"#<Twilio.Microvisor.V1.AppManifestContext #{context}>"
|
97
|
+
end
|
98
|
+
|
99
|
+
##
|
100
|
+
# Provide a detailed, user friendly representation
|
101
|
+
def inspect
|
102
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
103
|
+
"#<Twilio.Microvisor.V1.AppManifestContext #{context}>"
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
##
|
108
|
+
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
109
|
+
class AppManifestInstance < InstanceResource
|
110
|
+
##
|
111
|
+
# Initialize the AppManifestInstance
|
112
|
+
# @param [Version] version Version that contains the resource
|
113
|
+
# @param [Hash] payload payload that contains response from Twilio
|
114
|
+
# @param [String] app_sid A 34-character string that uniquely identifies this App.
|
115
|
+
# @return [AppManifestInstance] AppManifestInstance
|
116
|
+
def initialize(version, payload, app_sid: nil)
|
117
|
+
super(version)
|
118
|
+
|
119
|
+
# Marshaled Properties
|
120
|
+
@properties = {
|
121
|
+
'app_sid' => payload['app_sid'],
|
122
|
+
'hash' => payload['hash'],
|
123
|
+
'encoded_bytes' => payload['encoded_bytes'],
|
124
|
+
'url' => payload['url'],
|
125
|
+
}
|
126
|
+
|
127
|
+
# Context
|
128
|
+
@instance_context = nil
|
129
|
+
@params = {'app_sid' => app_sid, }
|
130
|
+
end
|
131
|
+
|
132
|
+
##
|
133
|
+
# Generate an instance context for the instance, the context is capable of
|
134
|
+
# performing various actions. All instance actions are proxied to the context
|
135
|
+
# @return [AppManifestContext] AppManifestContext for this AppManifestInstance
|
136
|
+
def context
|
137
|
+
unless @instance_context
|
138
|
+
@instance_context = AppManifestContext.new(@version, @params['app_sid'], )
|
139
|
+
end
|
140
|
+
@instance_context
|
141
|
+
end
|
142
|
+
|
143
|
+
##
|
144
|
+
# @return [String] A string that uniquely identifies this App.
|
145
|
+
def app_sid
|
146
|
+
@properties['app_sid']
|
147
|
+
end
|
148
|
+
|
149
|
+
##
|
150
|
+
# @return [String] App manifest hash represented as hash_algorithm:hash_value.
|
151
|
+
def hash
|
152
|
+
@properties['hash']
|
153
|
+
end
|
154
|
+
|
155
|
+
##
|
156
|
+
# @return [String] The base-64 encoded manifest
|
157
|
+
def encoded_bytes
|
158
|
+
@properties['encoded_bytes']
|
159
|
+
end
|
160
|
+
|
161
|
+
##
|
162
|
+
# @return [String] The absolute URL of this Manifest.
|
163
|
+
def url
|
164
|
+
@properties['url']
|
165
|
+
end
|
166
|
+
|
167
|
+
##
|
168
|
+
# Fetch the AppManifestInstance
|
169
|
+
# @return [AppManifestInstance] Fetched AppManifestInstance
|
170
|
+
def fetch
|
171
|
+
context.fetch
|
172
|
+
end
|
173
|
+
|
174
|
+
##
|
175
|
+
# Provide a user friendly representation
|
176
|
+
def to_s
|
177
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
178
|
+
"<Twilio.Microvisor.V1.AppManifestInstance #{values}>"
|
179
|
+
end
|
180
|
+
|
181
|
+
##
|
182
|
+
# Provide a detailed, user friendly representation
|
183
|
+
def inspect
|
184
|
+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
185
|
+
"<Twilio.Microvisor.V1.AppManifestInstance #{values}>"
|
186
|
+
end
|
187
|
+
end
|
188
|
+
end
|
189
|
+
end
|
190
|
+
end
|
191
|
+
end
|
192
|
+
end
|
@@ -157,6 +157,9 @@ module Twilio
|
|
157
157
|
# Path Solution
|
158
158
|
@solution = {sid: sid, }
|
159
159
|
@uri = "/Apps/#{@solution[:sid]}"
|
160
|
+
|
161
|
+
# Dependents
|
162
|
+
@app_manifests = nil
|
160
163
|
end
|
161
164
|
|
162
165
|
##
|
@@ -175,6 +178,14 @@ module Twilio
|
|
175
178
|
@version.delete('DELETE', @uri)
|
176
179
|
end
|
177
180
|
|
181
|
+
##
|
182
|
+
# Access the app_manifests
|
183
|
+
# @return [AppManifestList]
|
184
|
+
# @return [AppManifestContext]
|
185
|
+
def app_manifests
|
186
|
+
AppManifestContext.new(@version, @solution[:sid], )
|
187
|
+
end
|
188
|
+
|
178
189
|
##
|
179
190
|
# Provide a user friendly representation
|
180
191
|
def to_s
|
@@ -211,6 +222,7 @@ module Twilio
|
|
211
222
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
212
223
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
213
224
|
'url' => payload['url'],
|
225
|
+
'links' => payload['links'],
|
214
226
|
}
|
215
227
|
|
216
228
|
# Context
|
@@ -271,6 +283,12 @@ module Twilio
|
|
271
283
|
@properties['url']
|
272
284
|
end
|
273
285
|
|
286
|
+
##
|
287
|
+
# @return [String] The links
|
288
|
+
def links
|
289
|
+
@properties['links']
|
290
|
+
end
|
291
|
+
|
274
292
|
##
|
275
293
|
# Fetch the AppInstance
|
276
294
|
# @return [AppInstance] Fetched AppInstance
|
@@ -285,6 +303,13 @@ module Twilio
|
|
285
303
|
context.delete
|
286
304
|
end
|
287
305
|
|
306
|
+
##
|
307
|
+
# Access the app_manifests
|
308
|
+
# @return [app_manifests] app_manifests
|
309
|
+
def app_manifests
|
310
|
+
context.app_manifests
|
311
|
+
end
|
312
|
+
|
288
313
|
##
|
289
314
|
# Provide a user friendly representation
|
290
315
|
def to_s
|
@@ -191,6 +191,23 @@ module Twilio
|
|
191
191
|
)
|
192
192
|
end
|
193
193
|
|
194
|
+
##
|
195
|
+
# Update the DeviceConfigInstance
|
196
|
+
# @param [String] value The config value; up to 4096 characters.
|
197
|
+
# @return [DeviceConfigInstance] Updated DeviceConfigInstance
|
198
|
+
def update(value: nil)
|
199
|
+
data = Twilio::Values.of({'Value' => value, })
|
200
|
+
|
201
|
+
payload = @version.update('POST', @uri, data: data)
|
202
|
+
|
203
|
+
DeviceConfigInstance.new(
|
204
|
+
@version,
|
205
|
+
payload,
|
206
|
+
device_sid: @solution[:device_sid],
|
207
|
+
key: @solution[:key],
|
208
|
+
)
|
209
|
+
end
|
210
|
+
|
194
211
|
##
|
195
212
|
# Delete the DeviceConfigInstance
|
196
213
|
# @return [Boolean] true if delete succeeds, false otherwise
|
@@ -289,6 +306,14 @@ module Twilio
|
|
289
306
|
context.fetch
|
290
307
|
end
|
291
308
|
|
309
|
+
##
|
310
|
+
# Update the DeviceConfigInstance
|
311
|
+
# @param [String] value The config value; up to 4096 characters.
|
312
|
+
# @return [DeviceConfigInstance] Updated DeviceConfigInstance
|
313
|
+
def update(value: nil)
|
314
|
+
context.update(value: value, )
|
315
|
+
end
|
316
|
+
|
292
317
|
##
|
293
318
|
# Delete the DeviceConfigInstance
|
294
319
|
# @return [Boolean] true if delete succeeds, false otherwise
|
@@ -191,6 +191,23 @@ module Twilio
|
|
191
191
|
)
|
192
192
|
end
|
193
193
|
|
194
|
+
##
|
195
|
+
# Update the DeviceSecretInstance
|
196
|
+
# @param [String] value The secret value; up to 4096 characters.
|
197
|
+
# @return [DeviceSecretInstance] Updated DeviceSecretInstance
|
198
|
+
def update(value: nil)
|
199
|
+
data = Twilio::Values.of({'Value' => value, })
|
200
|
+
|
201
|
+
payload = @version.update('POST', @uri, data: data)
|
202
|
+
|
203
|
+
DeviceSecretInstance.new(
|
204
|
+
@version,
|
205
|
+
payload,
|
206
|
+
device_sid: @solution[:device_sid],
|
207
|
+
key: @solution[:key],
|
208
|
+
)
|
209
|
+
end
|
210
|
+
|
194
211
|
##
|
195
212
|
# Delete the DeviceSecretInstance
|
196
213
|
# @return [Boolean] true if delete succeeds, false otherwise
|
@@ -282,6 +299,14 @@ module Twilio
|
|
282
299
|
context.fetch
|
283
300
|
end
|
284
301
|
|
302
|
+
##
|
303
|
+
# Update the DeviceSecretInstance
|
304
|
+
# @param [String] value The secret value; up to 4096 characters.
|
305
|
+
# @return [DeviceSecretInstance] Updated DeviceSecretInstance
|
306
|
+
def update(value: nil)
|
307
|
+
context.update(value: value, )
|
308
|
+
end
|
309
|
+
|
285
310
|
##
|
286
311
|
# Delete the DeviceSecretInstance
|
287
312
|
# @return [Boolean] true if delete succeeds, false otherwise
|
@@ -33,12 +33,18 @@ module Twilio
|
|
33
33
|
# resource changes from `reserving` to `available`.
|
34
34
|
# @param [String] callback_method The HTTP method we should use to call
|
35
35
|
# `callback_url`. Can be: `GET` or `POST` and the default is POST.
|
36
|
+
# @param [Boolean] generate_matching_id When set to `true`, a value for `Eid` does
|
37
|
+
# not need to be provided. Instead, when the eSIM profile is reserved, a matching
|
38
|
+
# ID will be generated and returned via the `matching_id` property. This
|
39
|
+
# identifies the specific eSIM profile that can be used by any capable device to
|
40
|
+
# claim and download the profile.
|
36
41
|
# @param [String] eid Identifier of the eUICC that will claim the eSIM Profile.
|
37
42
|
# @return [EsimProfileInstance] Created EsimProfileInstance
|
38
|
-
def create(callback_url: :unset, callback_method: :unset, eid: :unset)
|
43
|
+
def create(callback_url: :unset, callback_method: :unset, generate_matching_id: :unset, eid: :unset)
|
39
44
|
data = Twilio::Values.of({
|
40
45
|
'CallbackUrl' => callback_url,
|
41
46
|
'CallbackMethod' => callback_method,
|
47
|
+
'GenerateMatchingId' => generate_matching_id,
|
42
48
|
'Eid' => eid,
|
43
49
|
})
|
44
50
|
|
@@ -250,6 +256,8 @@ module Twilio
|
|
250
256
|
'status' => payload['status'],
|
251
257
|
'eid' => payload['eid'],
|
252
258
|
'smdp_plus_address' => payload['smdp_plus_address'],
|
259
|
+
'matching_id' => payload['matching_id'],
|
260
|
+
'activation_code' => payload['activation_code'],
|
253
261
|
'error_code' => payload['error_code'],
|
254
262
|
'error_message' => payload['error_message'],
|
255
263
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
@@ -315,6 +323,18 @@ module Twilio
|
|
315
323
|
@properties['smdp_plus_address']
|
316
324
|
end
|
317
325
|
|
326
|
+
##
|
327
|
+
# @return [String] Unique identifier of the eSIM profile that be used to identify and download the eSIM profile
|
328
|
+
def matching_id
|
329
|
+
@properties['matching_id']
|
330
|
+
end
|
331
|
+
|
332
|
+
##
|
333
|
+
# @return [String] Combined machine-readable activation code for acquiring an eSIM Profile with the Activation Code download method
|
334
|
+
def activation_code
|
335
|
+
@properties['activation_code']
|
336
|
+
end
|
337
|
+
|
318
338
|
##
|
319
339
|
# @return [String] Code indicating the failure if the download of the SIM Profile failed and the eSIM Profile is in `failed` state
|
320
340
|
def error_code
|
@@ -220,7 +220,6 @@ module Twilio
|
|
220
220
|
@real_time_statistics = nil
|
221
221
|
@cumulative_statistics = nil
|
222
222
|
@task_channels = nil
|
223
|
-
@bulk_real_time_statistics = nil
|
224
223
|
end
|
225
224
|
|
226
225
|
##
|
@@ -440,21 +439,6 @@ module Twilio
|
|
440
439
|
@task_channels
|
441
440
|
end
|
442
441
|
|
443
|
-
##
|
444
|
-
# Access the bulk_real_time_statistics
|
445
|
-
# @return [TaskQueueBulkRealTimeStatisticsList]
|
446
|
-
# @return [TaskQueueBulkRealTimeStatisticsContext]
|
447
|
-
def bulk_real_time_statistics
|
448
|
-
unless @bulk_real_time_statistics
|
449
|
-
@bulk_real_time_statistics = TaskQueueBulkRealTimeStatisticsList.new(
|
450
|
-
@version,
|
451
|
-
workspace_sid: @solution[:sid],
|
452
|
-
)
|
453
|
-
end
|
454
|
-
|
455
|
-
@bulk_real_time_statistics
|
456
|
-
end
|
457
|
-
|
458
442
|
##
|
459
443
|
# Provide a user friendly representation
|
460
444
|
def to_s
|
@@ -736,13 +720,6 @@ module Twilio
|
|
736
720
|
context.task_channels
|
737
721
|
end
|
738
722
|
|
739
|
-
##
|
740
|
-
# Access the bulk_real_time_statistics
|
741
|
-
# @return [bulk_real_time_statistics] bulk_real_time_statistics
|
742
|
-
def bulk_real_time_statistics
|
743
|
-
context.bulk_real_time_statistics
|
744
|
-
end
|
745
|
-
|
746
723
|
##
|
747
724
|
# Provide a user friendly representation
|
748
725
|
def to_s
|
@@ -74,8 +74,9 @@ module Twilio
|
|
74
74
|
# @param [String] template_custom_substitutions A stringified JSON object in which
|
75
75
|
# the keys are the template's special variables and the values are the variables
|
76
76
|
# substitutions.
|
77
|
-
# @param [String] device_ip
|
78
|
-
# has to be a valid IPv4 or IPv6
|
77
|
+
# @param [String] device_ip Strongly encouraged if using the auto channel. The IP
|
78
|
+
# address of the client's device. If provided, it has to be a valid IPv4 or IPv6
|
79
|
+
# address.
|
79
80
|
# @return [VerificationInstance] Created VerificationInstance
|
80
81
|
def create(to: nil, channel: nil, custom_friendly_name: :unset, custom_message: :unset, send_digits: :unset, locale: :unset, custom_code: :unset, amount: :unset, payee: :unset, rate_limits: :unset, channel_configuration: :unset, app_hash: :unset, template_sid: :unset, template_custom_substitutions: :unset, device_ip: :unset)
|
81
82
|
data = Twilio::Values.of({
|
data/lib/twilio-ruby/version.rb
CHANGED
data/twilio-ruby.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.extra_rdoc_files = ['README.md', 'LICENSE']
|
25
25
|
spec.rdoc_options = ['--line-numbers', '--inline-source', '--title', 'twilio-ruby', '--main', 'README.md']
|
26
26
|
|
27
|
-
spec.add_dependency('jwt', '>= 1.5', '
|
27
|
+
spec.add_dependency('jwt', '>= 1.5', '< 3.0')
|
28
28
|
spec.add_dependency('nokogiri', '>= 1.6', '< 2.0')
|
29
29
|
spec.add_dependency('faraday', '>= 0.9', '< 3.0')
|
30
30
|
# Workaround for RBX <= 2.2.1, should be fixed in next version
|