twilio-ruby 5.65.1 → 5.66.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 +28 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +10 -10
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +275 -0
- data/lib/twilio-ruby/rest/chat/v3.rb +48 -0
- data/lib/twilio-ruby/rest/chat.rb +16 -0
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +7 -0
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb +236 -0
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +330 -0
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +377 -0
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +233 -0
- data/lib/twilio-ruby/rest/flex_api/v1.rb +16 -0
- data/lib/twilio-ruby/rest/flex_api.rb +9 -0
- data/lib/twilio-ruby/rest/insights/v1/annotation.rb +271 -0
- data/lib/twilio-ruby/rest/insights/v1.rb +16 -0
- data/lib/twilio-ruby/rest/insights.rb +8 -0
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +1 -1
- data/lib/twilio-ruby/rest/media/v1/media_recording.rb +26 -5
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +14 -1
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +3 -55
- data/lib/twilio-ruby/rest/supersim/v1.rb +0 -16
- data/lib/twilio-ruby/rest/supersim.rb +0 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +6 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +4 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +4 -2
- data/lib/twilio-ruby/rest/video/v1/composition.rb +14 -0
- data/lib/twilio-ruby/rest/video/v1/recording.rb +14 -0
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +9 -3
- data/lib/twilio-ruby/rest/supersim/v1/command.rb +0 -368
@@ -0,0 +1,271 @@
|
|
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 Insights < Domain
|
12
|
+
class V1 < Version
|
13
|
+
class AnnotationList < ListResource
|
14
|
+
##
|
15
|
+
# Initialize the AnnotationList
|
16
|
+
# @param [Version] version Version that contains the resource
|
17
|
+
# @return [AnnotationList] AnnotationList
|
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.Insights.V1.AnnotationList>'
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
class AnnotationPage < Page
|
33
|
+
##
|
34
|
+
# Initialize the AnnotationPage
|
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 [AnnotationPage] AnnotationPage
|
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 AnnotationInstance
|
48
|
+
# @param [Hash] payload Payload response from the API
|
49
|
+
# @return [AnnotationInstance] AnnotationInstance
|
50
|
+
def get_instance(payload)
|
51
|
+
AnnotationInstance.new(@version, payload, )
|
52
|
+
end
|
53
|
+
|
54
|
+
##
|
55
|
+
# Provide a user friendly representation
|
56
|
+
def to_s
|
57
|
+
'<Twilio.Insights.V1.AnnotationPage>'
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
class AnnotationContext < InstanceContext
|
62
|
+
##
|
63
|
+
# Initialize the AnnotationContext
|
64
|
+
# @param [Version] version Version that contains the resource
|
65
|
+
# @param [String] call_sid The call_sid
|
66
|
+
# @return [AnnotationContext] AnnotationContext
|
67
|
+
def initialize(version, call_sid)
|
68
|
+
super(version)
|
69
|
+
|
70
|
+
# Path Solution
|
71
|
+
@solution = {call_sid: call_sid, }
|
72
|
+
@uri = "/Voice/#{@solution[:call_sid]}/Annotation"
|
73
|
+
end
|
74
|
+
|
75
|
+
##
|
76
|
+
# Update the AnnotationInstance
|
77
|
+
# @param [annotation.AnsweredBy] answered_by The answered_by
|
78
|
+
# @param [annotation.ConnectivityIssue] connectivity_issue The connectivity_issue
|
79
|
+
# @param [String] quality_issues The quality_issues
|
80
|
+
# @param [Boolean] spam The spam
|
81
|
+
# @param [String] call_score The call_score
|
82
|
+
# @param [String] comment The comment
|
83
|
+
# @param [String] incident The incident
|
84
|
+
# @return [AnnotationInstance] Updated AnnotationInstance
|
85
|
+
def update(answered_by: :unset, connectivity_issue: :unset, quality_issues: :unset, spam: :unset, call_score: :unset, comment: :unset, incident: :unset)
|
86
|
+
data = Twilio::Values.of({
|
87
|
+
'AnsweredBy' => answered_by,
|
88
|
+
'ConnectivityIssue' => connectivity_issue,
|
89
|
+
'QualityIssues' => quality_issues,
|
90
|
+
'Spam' => spam,
|
91
|
+
'CallScore' => call_score,
|
92
|
+
'Comment' => comment,
|
93
|
+
'Incident' => incident,
|
94
|
+
})
|
95
|
+
|
96
|
+
payload = @version.update('POST', @uri, data: data)
|
97
|
+
|
98
|
+
AnnotationInstance.new(@version, payload, call_sid: @solution[:call_sid], )
|
99
|
+
end
|
100
|
+
|
101
|
+
##
|
102
|
+
# Fetch the AnnotationInstance
|
103
|
+
# @return [AnnotationInstance] Fetched AnnotationInstance
|
104
|
+
def fetch
|
105
|
+
payload = @version.fetch('GET', @uri)
|
106
|
+
|
107
|
+
AnnotationInstance.new(@version, payload, call_sid: @solution[:call_sid], )
|
108
|
+
end
|
109
|
+
|
110
|
+
##
|
111
|
+
# Provide a user friendly representation
|
112
|
+
def to_s
|
113
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
114
|
+
"#<Twilio.Insights.V1.AnnotationContext #{context}>"
|
115
|
+
end
|
116
|
+
|
117
|
+
##
|
118
|
+
# Provide a detailed, user friendly representation
|
119
|
+
def inspect
|
120
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
121
|
+
"#<Twilio.Insights.V1.AnnotationContext #{context}>"
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
class AnnotationInstance < InstanceResource
|
126
|
+
##
|
127
|
+
# Initialize the AnnotationInstance
|
128
|
+
# @param [Version] version Version that contains the resource
|
129
|
+
# @param [Hash] payload payload that contains response from Twilio
|
130
|
+
# @param [String] call_sid The call_sid
|
131
|
+
# @return [AnnotationInstance] AnnotationInstance
|
132
|
+
def initialize(version, payload, call_sid: nil)
|
133
|
+
super(version)
|
134
|
+
|
135
|
+
# Marshaled Properties
|
136
|
+
@properties = {
|
137
|
+
'call_sid' => payload['call_sid'],
|
138
|
+
'account_sid' => payload['account_sid'],
|
139
|
+
'answered_by' => payload['answered_by'],
|
140
|
+
'connectivity_issue' => payload['connectivity_issue'],
|
141
|
+
'quality_issues' => payload['quality_issues'],
|
142
|
+
'spam' => payload['spam'],
|
143
|
+
'call_score' => payload['call_score'] == nil ? payload['call_score'] : payload['call_score'].to_i,
|
144
|
+
'comment' => payload['comment'],
|
145
|
+
'incident' => payload['incident'],
|
146
|
+
'url' => payload['url'],
|
147
|
+
}
|
148
|
+
|
149
|
+
# Context
|
150
|
+
@instance_context = nil
|
151
|
+
@params = {'call_sid' => call_sid || @properties['call_sid'], }
|
152
|
+
end
|
153
|
+
|
154
|
+
##
|
155
|
+
# Generate an instance context for the instance, the context is capable of
|
156
|
+
# performing various actions. All instance actions are proxied to the context
|
157
|
+
# @return [AnnotationContext] AnnotationContext for this AnnotationInstance
|
158
|
+
def context
|
159
|
+
unless @instance_context
|
160
|
+
@instance_context = AnnotationContext.new(@version, @params['call_sid'], )
|
161
|
+
end
|
162
|
+
@instance_context
|
163
|
+
end
|
164
|
+
|
165
|
+
##
|
166
|
+
# @return [String] The call_sid
|
167
|
+
def call_sid
|
168
|
+
@properties['call_sid']
|
169
|
+
end
|
170
|
+
|
171
|
+
##
|
172
|
+
# @return [String] The account_sid
|
173
|
+
def account_sid
|
174
|
+
@properties['account_sid']
|
175
|
+
end
|
176
|
+
|
177
|
+
##
|
178
|
+
# @return [annotation.AnsweredBy] The answered_by
|
179
|
+
def answered_by
|
180
|
+
@properties['answered_by']
|
181
|
+
end
|
182
|
+
|
183
|
+
##
|
184
|
+
# @return [annotation.ConnectivityIssue] The connectivity_issue
|
185
|
+
def connectivity_issue
|
186
|
+
@properties['connectivity_issue']
|
187
|
+
end
|
188
|
+
|
189
|
+
##
|
190
|
+
# @return [Array[String]] The quality_issues
|
191
|
+
def quality_issues
|
192
|
+
@properties['quality_issues']
|
193
|
+
end
|
194
|
+
|
195
|
+
##
|
196
|
+
# @return [Boolean] The spam
|
197
|
+
def spam
|
198
|
+
@properties['spam']
|
199
|
+
end
|
200
|
+
|
201
|
+
##
|
202
|
+
# @return [String] The call_score
|
203
|
+
def call_score
|
204
|
+
@properties['call_score']
|
205
|
+
end
|
206
|
+
|
207
|
+
##
|
208
|
+
# @return [String] The comment
|
209
|
+
def comment
|
210
|
+
@properties['comment']
|
211
|
+
end
|
212
|
+
|
213
|
+
##
|
214
|
+
# @return [String] The incident
|
215
|
+
def incident
|
216
|
+
@properties['incident']
|
217
|
+
end
|
218
|
+
|
219
|
+
##
|
220
|
+
# @return [String] The url
|
221
|
+
def url
|
222
|
+
@properties['url']
|
223
|
+
end
|
224
|
+
|
225
|
+
##
|
226
|
+
# Update the AnnotationInstance
|
227
|
+
# @param [annotation.AnsweredBy] answered_by The answered_by
|
228
|
+
# @param [annotation.ConnectivityIssue] connectivity_issue The connectivity_issue
|
229
|
+
# @param [String] quality_issues The quality_issues
|
230
|
+
# @param [Boolean] spam The spam
|
231
|
+
# @param [String] call_score The call_score
|
232
|
+
# @param [String] comment The comment
|
233
|
+
# @param [String] incident The incident
|
234
|
+
# @return [AnnotationInstance] Updated AnnotationInstance
|
235
|
+
def update(answered_by: :unset, connectivity_issue: :unset, quality_issues: :unset, spam: :unset, call_score: :unset, comment: :unset, incident: :unset)
|
236
|
+
context.update(
|
237
|
+
answered_by: answered_by,
|
238
|
+
connectivity_issue: connectivity_issue,
|
239
|
+
quality_issues: quality_issues,
|
240
|
+
spam: spam,
|
241
|
+
call_score: call_score,
|
242
|
+
comment: comment,
|
243
|
+
incident: incident,
|
244
|
+
)
|
245
|
+
end
|
246
|
+
|
247
|
+
##
|
248
|
+
# Fetch the AnnotationInstance
|
249
|
+
# @return [AnnotationInstance] Fetched AnnotationInstance
|
250
|
+
def fetch
|
251
|
+
context.fetch
|
252
|
+
end
|
253
|
+
|
254
|
+
##
|
255
|
+
# Provide a user friendly representation
|
256
|
+
def to_s
|
257
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
258
|
+
"<Twilio.Insights.V1.AnnotationInstance #{values}>"
|
259
|
+
end
|
260
|
+
|
261
|
+
##
|
262
|
+
# Provide a detailed, user friendly representation
|
263
|
+
def inspect
|
264
|
+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
265
|
+
"<Twilio.Insights.V1.AnnotationInstance #{values}>"
|
266
|
+
end
|
267
|
+
end
|
268
|
+
end
|
269
|
+
end
|
270
|
+
end
|
271
|
+
end
|
@@ -16,6 +16,7 @@ module Twilio
|
|
16
16
|
super
|
17
17
|
@version = 'v1'
|
18
18
|
@settings = nil
|
19
|
+
@annotation = nil
|
19
20
|
@calls = nil
|
20
21
|
@call_summaries = nil
|
21
22
|
@conferences = nil
|
@@ -28,6 +29,21 @@ module Twilio
|
|
28
29
|
@settings ||= SettingContext.new self
|
29
30
|
end
|
30
31
|
|
32
|
+
##
|
33
|
+
# @param [String] call_sid The call_sid
|
34
|
+
# @return [Twilio::REST::Insights::V1::AnnotationContext] if call_sid was passed.
|
35
|
+
# @return [Twilio::REST::Insights::V1::AnnotationList]
|
36
|
+
def annotation(call_sid=:unset)
|
37
|
+
if call_sid.nil?
|
38
|
+
raise ArgumentError, 'call_sid cannot be nil'
|
39
|
+
end
|
40
|
+
if call_sid == :unset
|
41
|
+
@annotation ||= AnnotationList.new self
|
42
|
+
else
|
43
|
+
AnnotationContext.new(self, call_sid)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
31
47
|
##
|
32
48
|
# @param [String] sid The sid
|
33
49
|
# @return [Twilio::REST::Insights::V1::CallContext] if sid was passed.
|
@@ -34,6 +34,14 @@ module Twilio
|
|
34
34
|
self.v1.settings()
|
35
35
|
end
|
36
36
|
|
37
|
+
##
|
38
|
+
# @param [String] call_sid The call_sid
|
39
|
+
# @return [Twilio::REST::Insights::V1::AnnotationInstance] if call_sid was passed.
|
40
|
+
# @return [Twilio::REST::Insights::V1::AnnotationList]
|
41
|
+
def annotation(call_sid=:unset)
|
42
|
+
self.v1.annotation(call_sid)
|
43
|
+
end
|
44
|
+
|
37
45
|
##
|
38
46
|
# @param [String] sid The sid
|
39
47
|
# @return [Twilio::REST::Insights::V1::CallInstance] if sid was passed.
|
@@ -34,6 +34,8 @@ module Twilio
|
|
34
34
|
# the default.
|
35
35
|
# @param [media_recording.Status] status Status to filter by, with possible values
|
36
36
|
# `processing`, `completed`, `deleted`, or `failed`.
|
37
|
+
# @param [String] processor_sid SID of a MediaProcessor to filter by.
|
38
|
+
# @param [String] source_sid SID of a MediaRecording source to filter by.
|
37
39
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
38
40
|
# guarantees to never return more than limit. Default is no limit
|
39
41
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -41,8 +43,15 @@ module Twilio
|
|
41
43
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
42
44
|
# efficient page size, i.e. min(limit, 1000)
|
43
45
|
# @return [Array] Array of up to limit results
|
44
|
-
def list(order: :unset, status: :unset, limit: nil, page_size: nil)
|
45
|
-
self.stream(
|
46
|
+
def list(order: :unset, status: :unset, processor_sid: :unset, source_sid: :unset, limit: nil, page_size: nil)
|
47
|
+
self.stream(
|
48
|
+
order: order,
|
49
|
+
status: status,
|
50
|
+
processor_sid: processor_sid,
|
51
|
+
source_sid: source_sid,
|
52
|
+
limit: limit,
|
53
|
+
page_size: page_size
|
54
|
+
).entries
|
46
55
|
end
|
47
56
|
|
48
57
|
##
|
@@ -54,6 +63,8 @@ module Twilio
|
|
54
63
|
# the default.
|
55
64
|
# @param [media_recording.Status] status Status to filter by, with possible values
|
56
65
|
# `processing`, `completed`, `deleted`, or `failed`.
|
66
|
+
# @param [String] processor_sid SID of a MediaProcessor to filter by.
|
67
|
+
# @param [String] source_sid SID of a MediaRecording source to filter by.
|
57
68
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
58
69
|
# guarantees to never return more than limit. Default is no limit.
|
59
70
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -61,10 +72,16 @@ module Twilio
|
|
61
72
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
62
73
|
# efficient page size, i.e. min(limit, 1000)
|
63
74
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
64
|
-
def stream(order: :unset, status: :unset, limit: nil, page_size: nil)
|
75
|
+
def stream(order: :unset, status: :unset, processor_sid: :unset, source_sid: :unset, limit: nil, page_size: nil)
|
65
76
|
limits = @version.read_limits(limit, page_size)
|
66
77
|
|
67
|
-
page = self.page(
|
78
|
+
page = self.page(
|
79
|
+
order: order,
|
80
|
+
status: status,
|
81
|
+
processor_sid: processor_sid,
|
82
|
+
source_sid: source_sid,
|
83
|
+
page_size: limits[:page_size],
|
84
|
+
)
|
68
85
|
|
69
86
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
70
87
|
end
|
@@ -91,14 +108,18 @@ module Twilio
|
|
91
108
|
# the default.
|
92
109
|
# @param [media_recording.Status] status Status to filter by, with possible values
|
93
110
|
# `processing`, `completed`, `deleted`, or `failed`.
|
111
|
+
# @param [String] processor_sid SID of a MediaProcessor to filter by.
|
112
|
+
# @param [String] source_sid SID of a MediaRecording source to filter by.
|
94
113
|
# @param [String] page_token PageToken provided by the API
|
95
114
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
96
115
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
97
116
|
# @return [Page] Page of MediaRecordingInstance
|
98
|
-
def page(order: :unset, status: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
117
|
+
def page(order: :unset, status: :unset, processor_sid: :unset, source_sid: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
99
118
|
params = Twilio::Values.of({
|
100
119
|
'Order' => order,
|
101
120
|
'Status' => status,
|
121
|
+
'ProcessorSid' => processor_sid,
|
122
|
+
'SourceSid' => source_sid,
|
102
123
|
'PageToken' => page_token,
|
103
124
|
'Page' => page_number,
|
104
125
|
'PageSize' => page_size,
|
@@ -32,12 +32,18 @@ module Twilio
|
|
32
32
|
# Callbacks}[/docs/live/status-callbacks] for more details.
|
33
33
|
# @param [String] status_callback_method The HTTP method Twilio should use to call
|
34
34
|
# the `status_callback` URL. Can be `POST` or `GET` and the default is `POST`.
|
35
|
+
# @param [String] max_duration The maximum time, in seconds, that the
|
36
|
+
# PlayerStreamer can run before automatically ends. The default value is 300
|
37
|
+
# seconds, and the maximum value is 90000 seconds. Once this maximum duration is
|
38
|
+
# reached, Twilio will end the PlayerStreamer, regardless of whether media is
|
39
|
+
# still streaming.
|
35
40
|
# @return [PlayerStreamerInstance] Created PlayerStreamerInstance
|
36
|
-
def create(video: :unset, status_callback: :unset, status_callback_method: :unset)
|
41
|
+
def create(video: :unset, status_callback: :unset, status_callback_method: :unset, max_duration: :unset)
|
37
42
|
data = Twilio::Values.of({
|
38
43
|
'Video' => video,
|
39
44
|
'StatusCallback' => status_callback,
|
40
45
|
'StatusCallbackMethod' => status_callback_method,
|
46
|
+
'MaxDuration' => max_duration,
|
41
47
|
})
|
42
48
|
|
43
49
|
payload = @version.create('POST', @uri, data: data)
|
@@ -263,6 +269,7 @@ module Twilio
|
|
263
269
|
'status_callback' => payload['status_callback'],
|
264
270
|
'status_callback_method' => payload['status_callback_method'],
|
265
271
|
'ended_reason' => payload['ended_reason'],
|
272
|
+
'max_duration' => payload['max_duration'].to_i,
|
266
273
|
}
|
267
274
|
|
268
275
|
# Context
|
@@ -347,6 +354,12 @@ module Twilio
|
|
347
354
|
@properties['ended_reason']
|
348
355
|
end
|
349
356
|
|
357
|
+
##
|
358
|
+
# @return [String] Maximum PlayerStreamer duration in seconds
|
359
|
+
def max_duration
|
360
|
+
@properties['max_duration']
|
361
|
+
end
|
362
|
+
|
350
363
|
##
|
351
364
|
# Fetch the PlayerStreamerInstance
|
352
365
|
# @return [PlayerStreamerInstance] Fetched PlayerStreamerInstance
|
@@ -39,16 +39,6 @@ module Twilio
|
|
39
39
|
# in Megabytes that each Sim resource assigned to the Fleet resource can consume
|
40
40
|
# during a billing period (normally one month). Value must be between 1MB (1) and
|
41
41
|
# 2TB (2,000,000). Defaults to 1GB (1,000).
|
42
|
-
# @param [Boolean] commands_enabled Deprecated. Use `sms_commands_enabled`
|
43
|
-
# instead. Defines whether SIMs in the Fleet are capable of sending and receiving
|
44
|
-
# machine-to-machine SMS via Commands. Defaults to `true`.
|
45
|
-
# @param [String] commands_url Deprecated. Use `sms_commands_url` instead. The URL
|
46
|
-
# that will receive a webhook when a Super SIM in the Fleet is used to send an SMS
|
47
|
-
# from your device to the Commands number. Your server should respond with an HTTP
|
48
|
-
# status code in the 200 range; any response body will be ignored.
|
49
|
-
# @param [String] commands_method Deprecated. Use `sms_commands_method` instead. A
|
50
|
-
# string representing the HTTP method to use when making a request to
|
51
|
-
# `commands_url`. Can be one of `POST` or `GET`. Defaults to `POST`.
|
52
42
|
# @param [String] ip_commands_url The URL that will receive a webhook when a Super
|
53
43
|
# SIM in the Fleet is used to send an IP Command from your device to a special IP
|
54
44
|
# address. Your server should respond with an HTTP status code in the 200 range;
|
@@ -67,15 +57,12 @@ module Twilio
|
|
67
57
|
# when making a request to `sms_commands_url`. Can be one of `POST` or `GET`.
|
68
58
|
# Defaults to `POST`.
|
69
59
|
# @return [FleetInstance] Created FleetInstance
|
70
|
-
def create(network_access_profile: nil, unique_name: :unset, data_enabled: :unset, data_limit: :unset,
|
60
|
+
def create(network_access_profile: nil, unique_name: :unset, data_enabled: :unset, data_limit: :unset, ip_commands_url: :unset, ip_commands_method: :unset, sms_commands_enabled: :unset, sms_commands_url: :unset, sms_commands_method: :unset)
|
71
61
|
data = Twilio::Values.of({
|
72
62
|
'NetworkAccessProfile' => network_access_profile,
|
73
63
|
'UniqueName' => unique_name,
|
74
64
|
'DataEnabled' => data_enabled,
|
75
65
|
'DataLimit' => data_limit,
|
76
|
-
'CommandsEnabled' => commands_enabled,
|
77
|
-
'CommandsUrl' => commands_url,
|
78
|
-
'CommandsMethod' => commands_method,
|
79
66
|
'IpCommandsUrl' => ip_commands_url,
|
80
67
|
'IpCommandsMethod' => ip_commands_method,
|
81
68
|
'SmsCommandsEnabled' => sms_commands_enabled,
|
@@ -253,13 +240,6 @@ module Twilio
|
|
253
240
|
# @param [String] network_access_profile The SID or unique name of the Network
|
254
241
|
# Access Profile that will control which cellular networks the Fleet's SIMs can
|
255
242
|
# connect to.
|
256
|
-
# @param [String] commands_url Deprecated. Use `sms_commands_url` instead. The URL
|
257
|
-
# that will receive a webhook when a Super SIM in the Fleet is used to send an SMS
|
258
|
-
# from your device to the Commands number. Your server should respond with an HTTP
|
259
|
-
# status code in the 200 range; any response body will be ignored.
|
260
|
-
# @param [String] commands_method Deprecated. Use `sms_commands_method` instead. A
|
261
|
-
# string representing the HTTP method to use when making a request to
|
262
|
-
# `commands_url`. Can be one of `POST` or `GET`. Defaults to `POST`.
|
263
243
|
# @param [String] ip_commands_url The URL that will receive a webhook when a Super
|
264
244
|
# SIM in the Fleet is used to send an IP Command from your device to a special IP
|
265
245
|
# address. Your server should respond with an HTTP status code in the 200 range;
|
@@ -275,12 +255,10 @@ module Twilio
|
|
275
255
|
# when making a request to `sms_commands_url`. Can be one of `POST` or `GET`.
|
276
256
|
# Defaults to `POST`.
|
277
257
|
# @return [FleetInstance] Updated FleetInstance
|
278
|
-
def update(unique_name: :unset, network_access_profile: :unset,
|
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)
|
279
259
|
data = Twilio::Values.of({
|
280
260
|
'UniqueName' => unique_name,
|
281
261
|
'NetworkAccessProfile' => network_access_profile,
|
282
|
-
'CommandsUrl' => commands_url,
|
283
|
-
'CommandsMethod' => commands_method,
|
284
262
|
'IpCommandsUrl' => ip_commands_url,
|
285
263
|
'IpCommandsMethod' => ip_commands_method,
|
286
264
|
'SmsCommandsUrl' => sms_commands_url,
|
@@ -330,9 +308,6 @@ module Twilio
|
|
330
308
|
'data_enabled' => payload['data_enabled'],
|
331
309
|
'data_limit' => payload['data_limit'].to_i,
|
332
310
|
'data_metering' => payload['data_metering'],
|
333
|
-
'commands_enabled' => payload['commands_enabled'],
|
334
|
-
'commands_url' => payload['commands_url'],
|
335
|
-
'commands_method' => payload['commands_method'],
|
336
311
|
'sms_commands_enabled' => payload['sms_commands_enabled'],
|
337
312
|
'sms_commands_url' => payload['sms_commands_url'],
|
338
313
|
'sms_commands_method' => payload['sms_commands_method'],
|
@@ -411,24 +386,6 @@ module Twilio
|
|
411
386
|
@properties['data_metering']
|
412
387
|
end
|
413
388
|
|
414
|
-
##
|
415
|
-
# @return [Boolean] Deprecated
|
416
|
-
def commands_enabled
|
417
|
-
@properties['commands_enabled']
|
418
|
-
end
|
419
|
-
|
420
|
-
##
|
421
|
-
# @return [String] Deprecated
|
422
|
-
def commands_url
|
423
|
-
@properties['commands_url']
|
424
|
-
end
|
425
|
-
|
426
|
-
##
|
427
|
-
# @return [String] Deprecated
|
428
|
-
def commands_method
|
429
|
-
@properties['commands_method']
|
430
|
-
end
|
431
|
-
|
432
389
|
##
|
433
390
|
# @return [Boolean] Defines whether SIMs in the Fleet are capable of sending and receiving machine-to-machine SMS via Commands
|
434
391
|
def sms_commands_enabled
|
@@ -480,13 +437,6 @@ module Twilio
|
|
480
437
|
# @param [String] network_access_profile The SID or unique name of the Network
|
481
438
|
# Access Profile that will control which cellular networks the Fleet's SIMs can
|
482
439
|
# connect to.
|
483
|
-
# @param [String] commands_url Deprecated. Use `sms_commands_url` instead. The URL
|
484
|
-
# that will receive a webhook when a Super SIM in the Fleet is used to send an SMS
|
485
|
-
# from your device to the Commands number. Your server should respond with an HTTP
|
486
|
-
# status code in the 200 range; any response body will be ignored.
|
487
|
-
# @param [String] commands_method Deprecated. Use `sms_commands_method` instead. A
|
488
|
-
# string representing the HTTP method to use when making a request to
|
489
|
-
# `commands_url`. Can be one of `POST` or `GET`. Defaults to `POST`.
|
490
440
|
# @param [String] ip_commands_url The URL that will receive a webhook when a Super
|
491
441
|
# SIM in the Fleet is used to send an IP Command from your device to a special IP
|
492
442
|
# address. Your server should respond with an HTTP status code in the 200 range;
|
@@ -502,12 +452,10 @@ module Twilio
|
|
502
452
|
# when making a request to `sms_commands_url`. Can be one of `POST` or `GET`.
|
503
453
|
# Defaults to `POST`.
|
504
454
|
# @return [FleetInstance] Updated FleetInstance
|
505
|
-
def update(unique_name: :unset, network_access_profile: :unset,
|
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)
|
506
456
|
context.update(
|
507
457
|
unique_name: unique_name,
|
508
458
|
network_access_profile: network_access_profile,
|
509
|
-
commands_url: commands_url,
|
510
|
-
commands_method: commands_method,
|
511
459
|
ip_commands_url: ip_commands_url,
|
512
460
|
ip_commands_method: ip_commands_method,
|
513
461
|
sms_commands_url: sms_commands_url,
|
@@ -15,7 +15,6 @@ module Twilio
|
|
15
15
|
def initialize(domain)
|
16
16
|
super
|
17
17
|
@version = 'v1'
|
18
|
-
@commands = nil
|
19
18
|
@esim_profiles = nil
|
20
19
|
@fleets = nil
|
21
20
|
@ip_commands = nil
|
@@ -26,21 +25,6 @@ module Twilio
|
|
26
25
|
@usage_records = nil
|
27
26
|
end
|
28
27
|
|
29
|
-
##
|
30
|
-
# @param [String] sid The SID of the Command resource to fetch.
|
31
|
-
# @return [Twilio::REST::Supersim::V1::CommandContext] if sid was passed.
|
32
|
-
# @return [Twilio::REST::Supersim::V1::CommandList]
|
33
|
-
def commands(sid=:unset)
|
34
|
-
if sid.nil?
|
35
|
-
raise ArgumentError, 'sid cannot be nil'
|
36
|
-
end
|
37
|
-
if sid == :unset
|
38
|
-
@commands ||= CommandList.new self
|
39
|
-
else
|
40
|
-
CommandContext.new(self, sid)
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
28
|
##
|
45
29
|
# @param [String] sid The SID of the eSIM Profile resource to fetch.
|
46
30
|
# @return [Twilio::REST::Supersim::V1::EsimProfileContext] if sid was passed.
|
@@ -28,15 +28,6 @@ module Twilio
|
|
28
28
|
@v1 ||= V1.new self
|
29
29
|
end
|
30
30
|
|
31
|
-
##
|
32
|
-
# @param [String] sid The unique string that we created to identify the Command
|
33
|
-
# resource.
|
34
|
-
# @return [Twilio::REST::Supersim::V1::CommandInstance] if sid was passed.
|
35
|
-
# @return [Twilio::REST::Supersim::V1::CommandList]
|
36
|
-
def commands(sid=:unset)
|
37
|
-
self.v1.commands(sid)
|
38
|
-
end
|
39
|
-
|
40
31
|
##
|
41
32
|
# @param [String] sid The unique string that we created to identify the eSIM
|
42
33
|
# Profile resource.
|
data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb
CHANGED
@@ -101,7 +101,9 @@ module Twilio
|
|
101
101
|
# @param [String] split_by_wait_time A comma separated list of values that
|
102
102
|
# describes the thresholds, in seconds, to calculate statistics on. For each
|
103
103
|
# threshold specified, the number of Tasks canceled and reservations accepted
|
104
|
-
# above and below the specified thresholds in seconds are computed.
|
104
|
+
# above and below the specified thresholds in seconds are computed. TaskRouter
|
105
|
+
# will calculate statistics on up to 10,000 Tasks/Reservations for any given
|
106
|
+
# threshold.
|
105
107
|
# @return [TaskQueueCumulativeStatisticsInstance] Fetched TaskQueueCumulativeStatisticsInstance
|
106
108
|
def fetch(end_date: :unset, minutes: :unset, start_date: :unset, task_channel: :unset, split_by_wait_time: :unset)
|
107
109
|
params = Twilio::Values.of({
|
@@ -343,7 +345,9 @@ module Twilio
|
|
343
345
|
# @param [String] split_by_wait_time A comma separated list of values that
|
344
346
|
# describes the thresholds, in seconds, to calculate statistics on. For each
|
345
347
|
# threshold specified, the number of Tasks canceled and reservations accepted
|
346
|
-
# above and below the specified thresholds in seconds are computed.
|
348
|
+
# above and below the specified thresholds in seconds are computed. TaskRouter
|
349
|
+
# will calculate statistics on up to 10,000 Tasks/Reservations for any given
|
350
|
+
# threshold.
|
347
351
|
# @return [TaskQueueCumulativeStatisticsInstance] Fetched TaskQueueCumulativeStatisticsInstance
|
348
352
|
def fetch(end_date: :unset, minutes: :unset, start_date: :unset, task_channel: :unset, split_by_wait_time: :unset)
|
349
353
|
context.fetch(
|
data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb
CHANGED
@@ -105,7 +105,8 @@ module Twilio
|
|
105
105
|
# above and below the specified thresholds in seconds are computed. For example,
|
106
106
|
# `5,30` would show splits of Tasks that were canceled or accepted before and
|
107
107
|
# after 5 seconds and before and after 30 seconds. This can be used to show short
|
108
|
-
# abandoned Tasks or Tasks that failed to meet an SLA.
|
108
|
+
# abandoned Tasks or Tasks that failed to meet an SLA. TaskRouter will calculate
|
109
|
+
# statistics on up to 10,000 Tasks for any given threshold.
|
109
110
|
# @return [WorkflowCumulativeStatisticsInstance] Fetched WorkflowCumulativeStatisticsInstance
|
110
111
|
def fetch(end_date: :unset, minutes: :unset, start_date: :unset, task_channel: :unset, split_by_wait_time: :unset)
|
111
112
|
params = Twilio::Values.of({
|
@@ -351,7 +352,8 @@ module Twilio
|
|
351
352
|
# above and below the specified thresholds in seconds are computed. For example,
|
352
353
|
# `5,30` would show splits of Tasks that were canceled or accepted before and
|
353
354
|
# after 5 seconds and before and after 30 seconds. This can be used to show short
|
354
|
-
# abandoned Tasks or Tasks that failed to meet an SLA.
|
355
|
+
# abandoned Tasks or Tasks that failed to meet an SLA. TaskRouter will calculate
|
356
|
+
# statistics on up to 10,000 Tasks for any given threshold.
|
355
357
|
# @return [WorkflowCumulativeStatisticsInstance] Fetched WorkflowCumulativeStatisticsInstance
|
356
358
|
def fetch(end_date: :unset, minutes: :unset, start_date: :unset, task_channel: :unset, split_by_wait_time: :unset)
|
357
359
|
context.fetch(
|