twilio-ruby 5.74.3 → 5.74.5
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 +19 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +258 -17
- 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 +12 -3
- data/lib/twilio-ruby/rest/flex_api.rb +5 -3
- 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/version.rb +1 -1
- metadata +3 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue_bulk_real_time_statistics.rb +0 -149
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7018019e5270ca1565d431219da291876017fc73
|
4
|
+
data.tar.gz: c821fa40d85a91e7ca3947bda93dd7e1ab0d8528
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f80521099336899dcbec4975deff99dc40d24e8b2f4eccab23554a234e73b1bc046a693a0c030d2a9e496f539f0817f446d32afb7dfe9f1389dc266213e76af5
|
7
|
+
data.tar.gz: f9f78b1cb2eb9c737f82c86adf2e492e7012740ccba69a653ab0236c2a8a9832d916b6699358da0703f41caeaf4213405ab8629ab39aace9b26ab55a6f7a644b
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,25 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2023-03-09] Version 5.74.5
|
5
|
+
---------------------------
|
6
|
+
**Api**
|
7
|
+
- Add new categories for whatsapp template
|
8
|
+
|
9
|
+
**Lookups**
|
10
|
+
- Remove `validation_results` from the `default_output_properties`
|
11
|
+
|
12
|
+
**Supersim**
|
13
|
+
- Add ESimProfile's `matching_id` and `activation_code` parameters to libraries
|
14
|
+
|
15
|
+
|
16
|
+
[2023-02-22] Version 5.74.4
|
17
|
+
---------------------------
|
18
|
+
**Api**
|
19
|
+
- Remove `scheduled_for` property from message resource
|
20
|
+
- Add `scheduled_for` property to message resource
|
21
|
+
|
22
|
+
|
4
23
|
[2023-02-08] Version 5.74.3
|
5
24
|
---------------------------
|
6
25
|
**Lookups**
|
data/README.md
CHANGED
@@ -34,13 +34,13 @@ This library supports the following Ruby implementations:
|
|
34
34
|
To install using [Bundler][bundler] grab the latest stable version:
|
35
35
|
|
36
36
|
```ruby
|
37
|
-
gem 'twilio-ruby', '~> 5.74.
|
37
|
+
gem 'twilio-ruby', '~> 5.74.5'
|
38
38
|
```
|
39
39
|
|
40
40
|
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
|
41
41
|
|
42
42
|
```bash
|
43
|
-
gem install twilio-ruby -v 5.74.
|
43
|
+
gem install twilio-ruby -v 5.74.5
|
44
44
|
```
|
45
45
|
|
46
46
|
To build and install the development branch yourself from the latest source:
|
@@ -396,7 +396,7 @@ module Twilio
|
|
396
396
|
end
|
397
397
|
|
398
398
|
##
|
399
|
-
# @return [String] A string that you assigned to describe this conference room
|
399
|
+
# @return [String] A string that you assigned to describe this conference room. Max length is 128 characters.
|
400
400
|
def friendly_name
|
401
401
|
@properties['friendly_name']
|
402
402
|
end
|
@@ -10,6 +10,8 @@ module Twilio
|
|
10
10
|
module REST
|
11
11
|
class FlexApi < Domain
|
12
12
|
class V1 < Version
|
13
|
+
##
|
14
|
+
# 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.
|
13
15
|
class AssessmentsList < ListResource
|
14
16
|
##
|
15
17
|
# Initialize the AssessmentsList
|
@@ -20,6 +22,133 @@ module Twilio
|
|
20
22
|
|
21
23
|
# Path Solution
|
22
24
|
@solution = {}
|
25
|
+
@uri = "/Insights/QM/Assessments"
|
26
|
+
end
|
27
|
+
|
28
|
+
##
|
29
|
+
# Create the AssessmentsInstance
|
30
|
+
# @param [String] category_id The id of the category
|
31
|
+
# @param [String] category_name The name of the category
|
32
|
+
# @param [String] segment_id Segment Id of the conversation
|
33
|
+
# @param [String] user_name Name of the user assessing conversation
|
34
|
+
# @param [String] user_email Email of the user assessing conversation
|
35
|
+
# @param [String] agent_id The id of the Agent
|
36
|
+
# @param [String] offset The offset of the conversation.
|
37
|
+
# @param [String] metric_id The question Id selected for assessment
|
38
|
+
# @param [String] metric_name The question name of the assessment
|
39
|
+
# @param [String] answer_text The answer text selected by user
|
40
|
+
# @param [String] answer_id The id of the answer selected by user
|
41
|
+
# @param [String] questionnaire_id Questionnaire Id of the associated question
|
42
|
+
# @param [String] token The Token HTTP request header
|
43
|
+
# @return [AssessmentsInstance] Created AssessmentsInstance
|
44
|
+
def create(category_id: nil, category_name: nil, segment_id: nil, user_name: nil, user_email: nil, agent_id: nil, offset: nil, metric_id: nil, metric_name: nil, answer_text: nil, answer_id: nil, questionnaire_id: nil, token: :unset)
|
45
|
+
data = Twilio::Values.of({
|
46
|
+
'CategoryId' => category_id,
|
47
|
+
'CategoryName' => category_name,
|
48
|
+
'SegmentId' => segment_id,
|
49
|
+
'UserName' => user_name,
|
50
|
+
'UserEmail' => user_email,
|
51
|
+
'AgentId' => agent_id,
|
52
|
+
'Offset' => offset,
|
53
|
+
'MetricId' => metric_id,
|
54
|
+
'MetricName' => metric_name,
|
55
|
+
'AnswerText' => answer_text,
|
56
|
+
'AnswerId' => answer_id,
|
57
|
+
'QuestionnaireId' => questionnaire_id,
|
58
|
+
})
|
59
|
+
headers = Twilio::Values.of({'Token' => token, })
|
60
|
+
|
61
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
62
|
+
|
63
|
+
AssessmentsInstance.new(@version, payload, )
|
64
|
+
end
|
65
|
+
|
66
|
+
##
|
67
|
+
# Lists AssessmentsInstance records from the API as a list.
|
68
|
+
# Unlike stream(), this operation is eager and will load `limit` records into
|
69
|
+
# memory before returning.
|
70
|
+
# @param [String] segment_id The id of the segment.
|
71
|
+
# @param [String] token The Token HTTP request header
|
72
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
73
|
+
# guarantees to never return more than limit. Default is no limit
|
74
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
75
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
76
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
77
|
+
# efficient page size, i.e. min(limit, 1000)
|
78
|
+
# @return [Array] Array of up to limit results
|
79
|
+
def list(segment_id: :unset, token: :unset, limit: nil, page_size: nil)
|
80
|
+
self.stream(segment_id: segment_id, token: token, limit: limit, page_size: page_size).entries
|
81
|
+
end
|
82
|
+
|
83
|
+
##
|
84
|
+
# Streams AssessmentsInstance records from the API as an Enumerable.
|
85
|
+
# This operation lazily loads records as efficiently as possible until the limit
|
86
|
+
# is reached.
|
87
|
+
# @param [String] segment_id The id of the segment.
|
88
|
+
# @param [String] token The Token HTTP request header
|
89
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
90
|
+
# guarantees to never return more than limit. Default is no limit.
|
91
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
92
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
93
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
94
|
+
# efficient page size, i.e. min(limit, 1000)
|
95
|
+
# @return [Enumerable] Enumerable that will yield up to limit results
|
96
|
+
def stream(segment_id: :unset, token: :unset, limit: nil, page_size: nil)
|
97
|
+
limits = @version.read_limits(limit, page_size)
|
98
|
+
|
99
|
+
page = self.page(segment_id: segment_id, token: token, page_size: limits[:page_size], )
|
100
|
+
|
101
|
+
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
102
|
+
end
|
103
|
+
|
104
|
+
##
|
105
|
+
# When passed a block, yields AssessmentsInstance records from the API.
|
106
|
+
# This operation lazily loads records as efficiently as possible until the limit
|
107
|
+
# is reached.
|
108
|
+
def each
|
109
|
+
limits = @version.read_limits
|
110
|
+
|
111
|
+
page = self.page(page_size: limits[:page_size], )
|
112
|
+
|
113
|
+
@version.stream(page,
|
114
|
+
limit: limits[:limit],
|
115
|
+
page_limit: limits[:page_limit]).each {|x| yield x}
|
116
|
+
end
|
117
|
+
|
118
|
+
##
|
119
|
+
# Retrieve a single page of AssessmentsInstance records from the API.
|
120
|
+
# Request is executed immediately.
|
121
|
+
# @param [String] segment_id The id of the segment.
|
122
|
+
# @param [String] token The Token HTTP request header
|
123
|
+
# @param [String] page_token PageToken provided by the API
|
124
|
+
# @param [Integer] page_number Page Number, this value is simply for client state
|
125
|
+
# @param [Integer] page_size Number of records to return, defaults to 50
|
126
|
+
# @return [Page] Page of AssessmentsInstance
|
127
|
+
def page(segment_id: :unset, token: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
128
|
+
params = Twilio::Values.of({
|
129
|
+
'SegmentId' => segment_id,
|
130
|
+
'PageToken' => page_token,
|
131
|
+
'Page' => page_number,
|
132
|
+
'PageSize' => page_size,
|
133
|
+
})
|
134
|
+
headers = Twilio::Values.of({'Token' => token, })
|
135
|
+
|
136
|
+
response = @version.page('GET', @uri, params: params, headers: headers)
|
137
|
+
|
138
|
+
AssessmentsPage.new(@version, response, @solution)
|
139
|
+
end
|
140
|
+
|
141
|
+
##
|
142
|
+
# Retrieve a single page of AssessmentsInstance records from the API.
|
143
|
+
# Request is executed immediately.
|
144
|
+
# @param [String] target_url API-generated URL for the requested results page
|
145
|
+
# @return [Page] Page of AssessmentsInstance
|
146
|
+
def get_page(target_url)
|
147
|
+
response = @version.domain.request(
|
148
|
+
'GET',
|
149
|
+
target_url
|
150
|
+
)
|
151
|
+
AssessmentsPage.new(@version, response, @solution)
|
23
152
|
end
|
24
153
|
|
25
154
|
##
|
@@ -29,6 +158,8 @@ module Twilio
|
|
29
158
|
end
|
30
159
|
end
|
31
160
|
|
161
|
+
##
|
162
|
+
# 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.
|
32
163
|
class AssessmentsPage < Page
|
33
164
|
##
|
34
165
|
# Initialize the AssessmentsPage
|
@@ -58,26 +189,36 @@ module Twilio
|
|
58
189
|
end
|
59
190
|
end
|
60
191
|
|
192
|
+
##
|
193
|
+
# 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.
|
61
194
|
class AssessmentsContext < InstanceContext
|
62
195
|
##
|
63
196
|
# Initialize the AssessmentsContext
|
64
197
|
# @param [Version] version Version that contains the resource
|
198
|
+
# @param [String] assessment_id The id of the assessment to be modified
|
65
199
|
# @return [AssessmentsContext] AssessmentsContext
|
66
|
-
def initialize(version)
|
200
|
+
def initialize(version, assessment_id)
|
67
201
|
super(version)
|
68
202
|
|
69
203
|
# Path Solution
|
70
|
-
@solution = {}
|
71
|
-
@uri = "/
|
204
|
+
@solution = {assessment_id: assessment_id, }
|
205
|
+
@uri = "/Insights/QM/Assessments/#{@solution[:assessment_id]}"
|
72
206
|
end
|
73
207
|
|
74
208
|
##
|
75
|
-
#
|
76
|
-
# @
|
77
|
-
|
78
|
-
|
209
|
+
# Update the AssessmentsInstance
|
210
|
+
# @param [String] offset The offset of the conversation
|
211
|
+
# @param [String] answer_text The answer text selected by user
|
212
|
+
# @param [String] answer_id The id of the answer selected by user
|
213
|
+
# @param [String] token The Token HTTP request header
|
214
|
+
# @return [AssessmentsInstance] Updated AssessmentsInstance
|
215
|
+
def update(offset: nil, answer_text: nil, answer_id: nil, token: :unset)
|
216
|
+
data = Twilio::Values.of({'Offset' => offset, 'AnswerText' => answer_text, 'AnswerId' => answer_id, })
|
217
|
+
headers = Twilio::Values.of({'Token' => token, })
|
79
218
|
|
80
|
-
|
219
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
220
|
+
|
221
|
+
AssessmentsInstance.new(@version, payload, assessment_id: @solution[:assessment_id], )
|
81
222
|
end
|
82
223
|
|
83
224
|
##
|
@@ -95,21 +236,39 @@ module Twilio
|
|
95
236
|
end
|
96
237
|
end
|
97
238
|
|
239
|
+
##
|
240
|
+
# 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.
|
98
241
|
class AssessmentsInstance < InstanceResource
|
99
242
|
##
|
100
243
|
# Initialize the AssessmentsInstance
|
101
244
|
# @param [Version] version Version that contains the resource
|
102
245
|
# @param [Hash] payload payload that contains response from Twilio
|
246
|
+
# @param [String] assessment_id The id of the assessment to be modified
|
103
247
|
# @return [AssessmentsInstance] AssessmentsInstance
|
104
|
-
def initialize(version, payload)
|
248
|
+
def initialize(version, payload, assessment_id: nil)
|
105
249
|
super(version)
|
106
250
|
|
107
251
|
# Marshaled Properties
|
108
|
-
@properties = {
|
252
|
+
@properties = {
|
253
|
+
'account_sid' => payload['account_sid'],
|
254
|
+
'assessment_id' => payload['assessment_id'],
|
255
|
+
'offset' => payload['offset'] == nil ? payload['offset'] : payload['offset'].to_f,
|
256
|
+
'report' => payload['report'],
|
257
|
+
'weight' => payload['weight'] == nil ? payload['weight'] : payload['weight'].to_f,
|
258
|
+
'agent_id' => payload['agent_id'],
|
259
|
+
'segment_id' => payload['segment_id'],
|
260
|
+
'user_name' => payload['user_name'],
|
261
|
+
'user_email' => payload['user_email'],
|
262
|
+
'answer_text' => payload['answer_text'],
|
263
|
+
'answer_id' => payload['answer_id'],
|
264
|
+
'assessment' => payload['assessment'],
|
265
|
+
'timestamp' => payload['timestamp'] == nil ? payload['timestamp'] : payload['timestamp'].to_f,
|
266
|
+
'url' => payload['url'],
|
267
|
+
}
|
109
268
|
|
110
269
|
# Context
|
111
270
|
@instance_context = nil
|
112
|
-
@params = {}
|
271
|
+
@params = {'assessment_id' => assessment_id || @properties['assessment_id'], }
|
113
272
|
end
|
114
273
|
|
115
274
|
##
|
@@ -118,22 +277,104 @@ module Twilio
|
|
118
277
|
# @return [AssessmentsContext] AssessmentsContext for this AssessmentsInstance
|
119
278
|
def context
|
120
279
|
unless @instance_context
|
121
|
-
@instance_context = AssessmentsContext.new(@version, )
|
280
|
+
@instance_context = AssessmentsContext.new(@version, @params['assessment_id'], )
|
122
281
|
end
|
123
282
|
@instance_context
|
124
283
|
end
|
125
284
|
|
126
285
|
##
|
127
|
-
# @return [String]
|
286
|
+
# @return [String] Account Sid.
|
287
|
+
def account_sid
|
288
|
+
@properties['account_sid']
|
289
|
+
end
|
290
|
+
|
291
|
+
##
|
292
|
+
# @return [String] Assessment id
|
293
|
+
def assessment_id
|
294
|
+
@properties['assessment_id']
|
295
|
+
end
|
296
|
+
|
297
|
+
##
|
298
|
+
# @return [String] offset
|
299
|
+
def offset
|
300
|
+
@properties['offset']
|
301
|
+
end
|
302
|
+
|
303
|
+
##
|
304
|
+
# @return [Boolean] Part of assessment report
|
305
|
+
def report
|
306
|
+
@properties['report']
|
307
|
+
end
|
308
|
+
|
309
|
+
##
|
310
|
+
# @return [String] The weightage
|
311
|
+
def weight
|
312
|
+
@properties['weight']
|
313
|
+
end
|
314
|
+
|
315
|
+
##
|
316
|
+
# @return [String] AgentID
|
317
|
+
def agent_id
|
318
|
+
@properties['agent_id']
|
319
|
+
end
|
320
|
+
|
321
|
+
##
|
322
|
+
# @return [String] Segment Id
|
323
|
+
def segment_id
|
324
|
+
@properties['segment_id']
|
325
|
+
end
|
326
|
+
|
327
|
+
##
|
328
|
+
# @return [String] The user name.
|
329
|
+
def user_name
|
330
|
+
@properties['user_name']
|
331
|
+
end
|
332
|
+
|
333
|
+
##
|
334
|
+
# @return [String] The user email id.
|
335
|
+
def user_email
|
336
|
+
@properties['user_email']
|
337
|
+
end
|
338
|
+
|
339
|
+
##
|
340
|
+
# @return [String] Answer text
|
341
|
+
def answer_text
|
342
|
+
@properties['answer_text']
|
343
|
+
end
|
344
|
+
|
345
|
+
##
|
346
|
+
# @return [String] Answer Id
|
347
|
+
def answer_id
|
348
|
+
@properties['answer_id']
|
349
|
+
end
|
350
|
+
|
351
|
+
##
|
352
|
+
# @return [Hash] Assessment Details
|
353
|
+
def assessment
|
354
|
+
@properties['assessment']
|
355
|
+
end
|
356
|
+
|
357
|
+
##
|
358
|
+
# @return [String] The timestamp
|
359
|
+
def timestamp
|
360
|
+
@properties['timestamp']
|
361
|
+
end
|
362
|
+
|
363
|
+
##
|
364
|
+
# @return [String] The url
|
128
365
|
def url
|
129
366
|
@properties['url']
|
130
367
|
end
|
131
368
|
|
132
369
|
##
|
133
|
-
#
|
134
|
-
# @
|
135
|
-
|
136
|
-
|
370
|
+
# Update the AssessmentsInstance
|
371
|
+
# @param [String] offset The offset of the conversation
|
372
|
+
# @param [String] answer_text The answer text selected by user
|
373
|
+
# @param [String] answer_id The id of the answer selected by user
|
374
|
+
# @param [String] token The Token HTTP request header
|
375
|
+
# @return [AssessmentsInstance] Updated AssessmentsInstance
|
376
|
+
def update(offset: nil, answer_text: nil, answer_id: nil, token: :unset)
|
377
|
+
context.update(offset: offset, answer_text: answer_text, answer_id: answer_id, token: token, )
|
137
378
|
end
|
138
379
|
|
139
380
|
##
|
@@ -29,18 +29,18 @@ module Twilio
|
|
29
29
|
# Create the InsightsQuestionnairesQuestionInstance
|
30
30
|
# @param [String] category_id The ID of the category
|
31
31
|
# @param [String] question The question.
|
32
|
-
# @param [String] description The description for the question.
|
33
32
|
# @param [String] answer_set_id The answer_set for the question.
|
34
33
|
# @param [Boolean] allow_na The flag to enable for disable NA for answer.
|
34
|
+
# @param [String] description The description for the question.
|
35
35
|
# @param [String] token The Token HTTP request header
|
36
36
|
# @return [InsightsQuestionnairesQuestionInstance] Created InsightsQuestionnairesQuestionInstance
|
37
|
-
def create(category_id: nil, question: nil,
|
37
|
+
def create(category_id: nil, question: nil, answer_set_id: nil, allow_na: nil, description: :unset, token: :unset)
|
38
38
|
data = Twilio::Values.of({
|
39
39
|
'CategoryId' => category_id,
|
40
40
|
'Question' => question,
|
41
|
-
'Description' => description,
|
42
41
|
'AnswerSetId' => answer_set_id,
|
43
42
|
'AllowNa' => allow_na,
|
43
|
+
'Description' => description,
|
44
44
|
})
|
45
45
|
headers = Twilio::Values.of({'Token' => token, })
|
46
46
|
|
@@ -262,6 +262,7 @@ module Twilio
|
|
262
262
|
'answer_set_id' => payload['answer_set_id'],
|
263
263
|
'allow_na' => payload['allow_na'],
|
264
264
|
'usage' => payload['usage'] == nil ? payload['usage'] : payload['usage'].to_i,
|
265
|
+
'answer_set' => payload['answer_set'],
|
265
266
|
'url' => payload['url'],
|
266
267
|
}
|
267
268
|
|
@@ -329,6 +330,12 @@ module Twilio
|
|
329
330
|
@properties['usage']
|
330
331
|
end
|
331
332
|
|
333
|
+
##
|
334
|
+
# @return [Hash] Question's Answer set
|
335
|
+
def answer_set
|
336
|
+
@properties['answer_set']
|
337
|
+
end
|
338
|
+
|
332
339
|
##
|
333
340
|
# @return [String] The url
|
334
341
|
def url
|
@@ -22,6 +22,100 @@ module Twilio
|
|
22
22
|
|
23
23
|
# Path Solution
|
24
24
|
@solution = {}
|
25
|
+
@uri = "/Insights/Segments"
|
26
|
+
end
|
27
|
+
|
28
|
+
##
|
29
|
+
# Lists InsightsSegmentsInstance records from the API as a list.
|
30
|
+
# Unlike stream(), this operation is eager and will load `limit` records into
|
31
|
+
# memory before returning.
|
32
|
+
# @param [Array[String]] reservation_id The list of reservation Ids
|
33
|
+
# @param [String] token The Token HTTP request header
|
34
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
35
|
+
# guarantees to never return more than limit. Default is no limit
|
36
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
37
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
38
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
39
|
+
# efficient page size, i.e. min(limit, 1000)
|
40
|
+
# @return [Array] Array of up to limit results
|
41
|
+
def list(reservation_id: :unset, token: :unset, limit: nil, page_size: nil)
|
42
|
+
self.stream(
|
43
|
+
reservation_id: reservation_id,
|
44
|
+
token: token,
|
45
|
+
limit: limit,
|
46
|
+
page_size: page_size
|
47
|
+
).entries
|
48
|
+
end
|
49
|
+
|
50
|
+
##
|
51
|
+
# Streams InsightsSegmentsInstance records from the API as an Enumerable.
|
52
|
+
# This operation lazily loads records as efficiently as possible until the limit
|
53
|
+
# is reached.
|
54
|
+
# @param [Array[String]] reservation_id The list of reservation Ids
|
55
|
+
# @param [String] token The Token HTTP request header
|
56
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
57
|
+
# guarantees to never return more than limit. Default is no limit.
|
58
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
59
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
60
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
61
|
+
# efficient page size, i.e. min(limit, 1000)
|
62
|
+
# @return [Enumerable] Enumerable that will yield up to limit results
|
63
|
+
def stream(reservation_id: :unset, token: :unset, limit: nil, page_size: nil)
|
64
|
+
limits = @version.read_limits(limit, page_size)
|
65
|
+
|
66
|
+
page = self.page(reservation_id: reservation_id, token: token, page_size: limits[:page_size], )
|
67
|
+
|
68
|
+
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
69
|
+
end
|
70
|
+
|
71
|
+
##
|
72
|
+
# When passed a block, yields InsightsSegmentsInstance records from the API.
|
73
|
+
# This operation lazily loads records as efficiently as possible until the limit
|
74
|
+
# is reached.
|
75
|
+
def each
|
76
|
+
limits = @version.read_limits
|
77
|
+
|
78
|
+
page = self.page(page_size: limits[:page_size], )
|
79
|
+
|
80
|
+
@version.stream(page,
|
81
|
+
limit: limits[:limit],
|
82
|
+
page_limit: limits[:page_limit]).each {|x| yield x}
|
83
|
+
end
|
84
|
+
|
85
|
+
##
|
86
|
+
# Retrieve a single page of InsightsSegmentsInstance records from the API.
|
87
|
+
# Request is executed immediately.
|
88
|
+
# @param [Array[String]] reservation_id The list of reservation Ids
|
89
|
+
# @param [String] token The Token HTTP request header
|
90
|
+
# @param [String] page_token PageToken provided by the API
|
91
|
+
# @param [Integer] page_number Page Number, this value is simply for client state
|
92
|
+
# @param [Integer] page_size Number of records to return, defaults to 50
|
93
|
+
# @return [Page] Page of InsightsSegmentsInstance
|
94
|
+
def page(reservation_id: :unset, token: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
95
|
+
params = Twilio::Values.of({
|
96
|
+
'ReservationId' => Twilio.serialize_list(reservation_id) { |e| e },
|
97
|
+
'PageToken' => page_token,
|
98
|
+
'Page' => page_number,
|
99
|
+
'PageSize' => page_size,
|
100
|
+
})
|
101
|
+
headers = Twilio::Values.of({'Token' => token, })
|
102
|
+
|
103
|
+
response = @version.page('GET', @uri, params: params, headers: headers)
|
104
|
+
|
105
|
+
InsightsSegmentsPage.new(@version, response, @solution)
|
106
|
+
end
|
107
|
+
|
108
|
+
##
|
109
|
+
# Retrieve a single page of InsightsSegmentsInstance records from the API.
|
110
|
+
# Request is executed immediately.
|
111
|
+
# @param [String] target_url API-generated URL for the requested results page
|
112
|
+
# @return [Page] Page of InsightsSegmentsInstance
|
113
|
+
def get_page(target_url)
|
114
|
+
response = @version.domain.request(
|
115
|
+
'GET',
|
116
|
+
target_url
|
117
|
+
)
|
118
|
+
InsightsSegmentsPage.new(@version, response, @solution)
|
25
119
|
end
|
26
120
|
|
27
121
|
##
|
@@ -268,7 +362,7 @@ module Twilio
|
|
268
362
|
end
|
269
363
|
|
270
364
|
##
|
271
|
-
# @return [
|
365
|
+
# @return [Hash] The media identifiers of the conversation.
|
272
366
|
def media
|
273
367
|
@properties['media']
|
274
368
|
end
|
@@ -69,9 +69,18 @@ module Twilio
|
|
69
69
|
end
|
70
70
|
|
71
71
|
##
|
72
|
-
# @
|
73
|
-
|
74
|
-
|
72
|
+
# @param [String] assessment_id The id of the assessment to be modified
|
73
|
+
# @return [Twilio::REST::Flex_api::V1::AssessmentsContext] if assessment_id was passed.
|
74
|
+
# @return [Twilio::REST::Flex_api::V1::AssessmentsList]
|
75
|
+
def assessments(assessment_id=:unset)
|
76
|
+
if assessment_id.nil?
|
77
|
+
raise ArgumentError, 'assessment_id cannot be nil'
|
78
|
+
end
|
79
|
+
if assessment_id == :unset
|
80
|
+
@assessments ||= AssessmentsList.new self
|
81
|
+
else
|
82
|
+
AssessmentsContext.new(self, assessment_id)
|
83
|
+
end
|
75
84
|
end
|
76
85
|
|
77
86
|
##
|
@@ -60,9 +60,11 @@ module Twilio
|
|
60
60
|
end
|
61
61
|
|
62
62
|
##
|
63
|
-
# @
|
64
|
-
|
65
|
-
|
63
|
+
# @param [String] assessment_id The unique id of the assessment
|
64
|
+
# @return [Twilio::REST::Flex_api::V1::AssessmentsInstance] if assessment_id was passed.
|
65
|
+
# @return [Twilio::REST::Flex_api::V1::AssessmentsList]
|
66
|
+
def assessments(assessment_id=:unset)
|
67
|
+
self.v1.assessments(assessment_id)
|
66
68
|
end
|
67
69
|
|
68
70
|
##
|
@@ -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
|
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.74.
|
4
|
+
version: 5.74.5
|
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: 2023-
|
11
|
+
date: 2023-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -519,6 +519,7 @@ files:
|
|
519
519
|
- lib/twilio-ruby/rest/microvisor/v1/account_config.rb
|
520
520
|
- lib/twilio-ruby/rest/microvisor/v1/account_secret.rb
|
521
521
|
- lib/twilio-ruby/rest/microvisor/v1/app.rb
|
522
|
+
- lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb
|
522
523
|
- lib/twilio-ruby/rest/microvisor/v1/device.rb
|
523
524
|
- lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb
|
524
525
|
- lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb
|
@@ -701,7 +702,6 @@ files:
|
|
701
702
|
- lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb
|
702
703
|
- lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb
|
703
704
|
- lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb
|
704
|
-
- lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue_bulk_real_time_statistics.rb
|
705
705
|
- lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb
|
706
706
|
- lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb
|
707
707
|
- lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb
|
@@ -1,149 +0,0 @@
|
|
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 Taskrouter < Domain
|
12
|
-
class V1 < Version
|
13
|
-
class WorkspaceContext < InstanceContext
|
14
|
-
class TaskQueueBulkRealTimeStatisticsList < ListResource
|
15
|
-
##
|
16
|
-
# Initialize the TaskQueueBulkRealTimeStatisticsList
|
17
|
-
# @param [Version] version Version that contains the resource
|
18
|
-
# @param [String] workspace_sid The SID of the Workspace that contains the
|
19
|
-
# TaskQueue.
|
20
|
-
# @return [TaskQueueBulkRealTimeStatisticsList] TaskQueueBulkRealTimeStatisticsList
|
21
|
-
def initialize(version, workspace_sid: nil)
|
22
|
-
super(version)
|
23
|
-
|
24
|
-
# Path Solution
|
25
|
-
@solution = {workspace_sid: workspace_sid}
|
26
|
-
@uri = "/Workspaces/#{@solution[:workspace_sid]}/TaskQueues/RealTimeStatistics"
|
27
|
-
end
|
28
|
-
|
29
|
-
##
|
30
|
-
# Create the TaskQueueBulkRealTimeStatisticsInstance
|
31
|
-
# @return [TaskQueueBulkRealTimeStatisticsInstance] Created TaskQueueBulkRealTimeStatisticsInstance
|
32
|
-
def create
|
33
|
-
payload = @version.create('POST', @uri)
|
34
|
-
|
35
|
-
TaskQueueBulkRealTimeStatisticsInstance.new(
|
36
|
-
@version,
|
37
|
-
payload,
|
38
|
-
workspace_sid: @solution[:workspace_sid],
|
39
|
-
)
|
40
|
-
end
|
41
|
-
|
42
|
-
##
|
43
|
-
# Provide a user friendly representation
|
44
|
-
def to_s
|
45
|
-
'#<Twilio.Taskrouter.V1.TaskQueueBulkRealTimeStatisticsList>'
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
|
-
class TaskQueueBulkRealTimeStatisticsPage < Page
|
50
|
-
##
|
51
|
-
# Initialize the TaskQueueBulkRealTimeStatisticsPage
|
52
|
-
# @param [Version] version Version that contains the resource
|
53
|
-
# @param [Response] response Response from the API
|
54
|
-
# @param [Hash] solution Path solution for the resource
|
55
|
-
# @return [TaskQueueBulkRealTimeStatisticsPage] TaskQueueBulkRealTimeStatisticsPage
|
56
|
-
def initialize(version, response, solution)
|
57
|
-
super(version, response)
|
58
|
-
|
59
|
-
# Path Solution
|
60
|
-
@solution = solution
|
61
|
-
end
|
62
|
-
|
63
|
-
##
|
64
|
-
# Build an instance of TaskQueueBulkRealTimeStatisticsInstance
|
65
|
-
# @param [Hash] payload Payload response from the API
|
66
|
-
# @return [TaskQueueBulkRealTimeStatisticsInstance] TaskQueueBulkRealTimeStatisticsInstance
|
67
|
-
def get_instance(payload)
|
68
|
-
TaskQueueBulkRealTimeStatisticsInstance.new(
|
69
|
-
@version,
|
70
|
-
payload,
|
71
|
-
workspace_sid: @solution[:workspace_sid],
|
72
|
-
)
|
73
|
-
end
|
74
|
-
|
75
|
-
##
|
76
|
-
# Provide a user friendly representation
|
77
|
-
def to_s
|
78
|
-
'<Twilio.Taskrouter.V1.TaskQueueBulkRealTimeStatisticsPage>'
|
79
|
-
end
|
80
|
-
end
|
81
|
-
|
82
|
-
class TaskQueueBulkRealTimeStatisticsInstance < InstanceResource
|
83
|
-
##
|
84
|
-
# Initialize the TaskQueueBulkRealTimeStatisticsInstance
|
85
|
-
# @param [Version] version Version that contains the resource
|
86
|
-
# @param [Hash] payload payload that contains response from Twilio
|
87
|
-
# @param [String] workspace_sid The SID of the Workspace that contains the
|
88
|
-
# TaskQueue.
|
89
|
-
# @return [TaskQueueBulkRealTimeStatisticsInstance] TaskQueueBulkRealTimeStatisticsInstance
|
90
|
-
def initialize(version, payload, workspace_sid: nil)
|
91
|
-
super(version)
|
92
|
-
|
93
|
-
# Marshaled Properties
|
94
|
-
@properties = {
|
95
|
-
'account_sid' => payload['account_sid'],
|
96
|
-
'workspace_sid' => payload['workspace_sid'],
|
97
|
-
'task_queue_data' => payload['task_queue_data'],
|
98
|
-
'task_queue_response_count' => payload['task_queue_response_count'] == nil ? payload['task_queue_response_count'] : payload['task_queue_response_count'].to_i,
|
99
|
-
'url' => payload['url'],
|
100
|
-
}
|
101
|
-
end
|
102
|
-
|
103
|
-
##
|
104
|
-
# @return [String] The SID of the Account that created the resource
|
105
|
-
def account_sid
|
106
|
-
@properties['account_sid']
|
107
|
-
end
|
108
|
-
|
109
|
-
##
|
110
|
-
# @return [String] The SID of the Workspace that contains the TaskQueue
|
111
|
-
def workspace_sid
|
112
|
-
@properties['workspace_sid']
|
113
|
-
end
|
114
|
-
|
115
|
-
##
|
116
|
-
# @return [Hash] Task Queue data grouped by task_queue_sid
|
117
|
-
def task_queue_data
|
118
|
-
@properties['task_queue_data']
|
119
|
-
end
|
120
|
-
|
121
|
-
##
|
122
|
-
# @return [String] The number of TaskQueue statistics received
|
123
|
-
def task_queue_response_count
|
124
|
-
@properties['task_queue_response_count']
|
125
|
-
end
|
126
|
-
|
127
|
-
##
|
128
|
-
# @return [String] The absolute URL of the TaskQueue statistics resource
|
129
|
-
def url
|
130
|
-
@properties['url']
|
131
|
-
end
|
132
|
-
|
133
|
-
##
|
134
|
-
# Provide a user friendly representation
|
135
|
-
def to_s
|
136
|
-
"<Twilio.Taskrouter.V1.TaskQueueBulkRealTimeStatisticsInstance>"
|
137
|
-
end
|
138
|
-
|
139
|
-
##
|
140
|
-
# Provide a detailed, user friendly representation
|
141
|
-
def inspect
|
142
|
-
"<Twilio.Taskrouter.V1.TaskQueueBulkRealTimeStatisticsInstance>"
|
143
|
-
end
|
144
|
-
end
|
145
|
-
end
|
146
|
-
end
|
147
|
-
end
|
148
|
-
end
|
149
|
-
end
|