twilio-ruby 6.8.0 → 6.8.2
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 +41 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/client.rb +0 -5
- data/lib/twilio-ruby/rest/{oauth/v1/oauth.rb → flex_api/v1/provisioning_status.rb} +39 -37
- data/lib/twilio-ruby/rest/flex_api/v1.rb +6 -0
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +1 -1
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +31 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +154 -0
- data/lib/twilio-ruby/rest/trusthub/v1.rb +6 -0
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +4 -1
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +4 -10
- data/lib/twilio-ruby/rest/oauth/v1/device_code.rb +0 -171
- data/lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb +0 -262
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +0 -179
- data/lib/twilio-ruby/rest/oauth/v1/user_info.rb +0 -213
- data/lib/twilio-ruby/rest/oauth/v1.rb +0 -64
- data/lib/twilio-ruby/rest/oauth.rb +0 -33
- data/lib/twilio-ruby/rest/oauth_base.rb +0 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f65014678404b1e02f90c80ab33784138e47f307
|
4
|
+
data.tar.gz: 76d0c8217c4c5a5ba2b12705082615178482ecf2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca776d1afec063d1e8275792eee9b6d613460210841dacba412c144ddb8ad8ef637e08a6a0d8dfa3d7457c223cb2e4a2018775974612e51aea39055705290a64
|
7
|
+
data.tar.gz: e9d7fe8dd97f7416bce97a14edf553ec931aa601067f8f5414bec6870d66e784769ebde946c542d6c7258b21cf2a1c64790a0023a59dbcea5d9e25f9c46da3fc
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,47 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2023-11-17] Version 6.8.2
|
5
|
+
--------------------------
|
6
|
+
**Library - Chore**
|
7
|
+
- [PR #687](https://github.com/twilio/twilio-ruby/pull/687): remove more oauth refrences. Thanks to [@KobeBrooks](https://github.com/KobeBrooks)!
|
8
|
+
|
9
|
+
**Api**
|
10
|
+
- Update documentation to reflect RiskCheck GA
|
11
|
+
|
12
|
+
**Messaging**
|
13
|
+
- Add tollfree edit_allowed and edit_reason fields
|
14
|
+
- Update Phone Number, Short Code, Alpha Sender, US A2P and Channel Sender documentation
|
15
|
+
|
16
|
+
**Taskrouter**
|
17
|
+
- Add container attribute to task_queue_bulk_real_time_statistics endpoint
|
18
|
+
|
19
|
+
**Trusthub**
|
20
|
+
- Rename did to tollfree_phone_number in compliance_tollfree_inquiry.json
|
21
|
+
- Add new optional field notification_email to compliance_tollfree_inquiry.json
|
22
|
+
|
23
|
+
**Verify**
|
24
|
+
- Add `Tags` optional parameter on Verification creation.
|
25
|
+
|
26
|
+
|
27
|
+
[2023-11-06] Version 6.8.1
|
28
|
+
--------------------------
|
29
|
+
**Flex**
|
30
|
+
- Adding `provisioning_status` for Email Manager
|
31
|
+
|
32
|
+
**Intelligence**
|
33
|
+
- Add text-generation operator (for example conversation summary) results to existing OperatorResults collection.
|
34
|
+
|
35
|
+
**Messaging**
|
36
|
+
- Add DELETE support to Tollfree Verification resource
|
37
|
+
|
38
|
+
**Serverless**
|
39
|
+
- Add node18 as a valid Build runtime
|
40
|
+
|
41
|
+
**Verify**
|
42
|
+
- Update Verify TOTP maturity to GA.
|
43
|
+
|
44
|
+
|
4
45
|
[2023-10-19] Version 6.8.0
|
5
46
|
--------------------------
|
6
47
|
**Library - Chore**
|
data/README.md
CHANGED
@@ -39,13 +39,13 @@ This library supports the following Ruby implementations:
|
|
39
39
|
To install using [Bundler][bundler] grab the latest stable version:
|
40
40
|
|
41
41
|
```ruby
|
42
|
-
gem 'twilio-ruby', '~> 6.8.
|
42
|
+
gem 'twilio-ruby', '~> 6.8.2'
|
43
43
|
```
|
44
44
|
|
45
45
|
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
|
46
46
|
|
47
47
|
```bash
|
48
|
-
gem install twilio-ruby -v 6.8.
|
48
|
+
gem install twilio-ruby -v 6.8.2
|
49
49
|
```
|
50
50
|
|
51
51
|
To build and install the development branch yourself from the latest source:
|
@@ -117,11 +117,6 @@ module Twilio
|
|
117
117
|
@numbers ||= Numbers.new self
|
118
118
|
end
|
119
119
|
##
|
120
|
-
# Access the Oauth Twilio Domain
|
121
|
-
def oauth
|
122
|
-
@oauth ||= Oauth.new self
|
123
|
-
end
|
124
|
-
##
|
125
120
|
# Access the Preview Twilio Domain
|
126
121
|
def preview
|
127
122
|
@preview ||= Preview.new self
|
@@ -4,7 +4,7 @@
|
|
4
4
|
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
5
|
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
6
|
#
|
7
|
-
# Twilio -
|
7
|
+
# Twilio - Flex
|
8
8
|
# This is the public Twilio REST API.
|
9
9
|
#
|
10
10
|
# NOTE: This class is auto generated by OpenAPI Generator.
|
@@ -15,13 +15,13 @@
|
|
15
15
|
|
16
16
|
module Twilio
|
17
17
|
module REST
|
18
|
-
class
|
18
|
+
class FlexApi < FlexApiBase
|
19
19
|
class V1 < Version
|
20
|
-
class
|
20
|
+
class ProvisioningStatusList < ListResource
|
21
21
|
##
|
22
|
-
# Initialize the
|
22
|
+
# Initialize the ProvisioningStatusList
|
23
23
|
# @param [Version] version Version that contains the resource
|
24
|
-
# @return [
|
24
|
+
# @return [ProvisioningStatusList] ProvisioningStatusList
|
25
25
|
def initialize(version)
|
26
26
|
super(version)
|
27
27
|
# Path Solution
|
@@ -34,32 +34,34 @@ module Twilio
|
|
34
34
|
|
35
35
|
# Provide a user friendly representation
|
36
36
|
def to_s
|
37
|
-
'#<Twilio.
|
37
|
+
'#<Twilio.FlexApi.V1.ProvisioningStatusList>'
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
41
|
|
42
|
-
|
42
|
+
##
|
43
|
+
#PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
44
|
+
class ProvisioningStatusContext < InstanceContext
|
43
45
|
##
|
44
|
-
# Initialize the
|
46
|
+
# Initialize the ProvisioningStatusContext
|
45
47
|
# @param [Version] version Version that contains the resource
|
46
|
-
# @return [
|
48
|
+
# @return [ProvisioningStatusContext] ProvisioningStatusContext
|
47
49
|
def initialize(version)
|
48
50
|
super(version)
|
49
51
|
|
50
52
|
# Path Solution
|
51
53
|
@solution = { }
|
52
|
-
@uri = "/
|
54
|
+
@uri = "/account/provision/status"
|
53
55
|
|
54
56
|
|
55
57
|
end
|
56
58
|
##
|
57
|
-
# Fetch the
|
58
|
-
# @return [
|
59
|
+
# Fetch the ProvisioningStatusInstance
|
60
|
+
# @return [ProvisioningStatusInstance] Fetched ProvisioningStatusInstance
|
59
61
|
def fetch
|
60
62
|
|
61
63
|
payload = @version.fetch('GET', @uri)
|
62
|
-
|
64
|
+
ProvisioningStatusInstance.new(
|
63
65
|
@version,
|
64
66
|
payload,
|
65
67
|
)
|
@@ -70,24 +72,24 @@ module Twilio
|
|
70
72
|
# Provide a user friendly representation
|
71
73
|
def to_s
|
72
74
|
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
73
|
-
"#<Twilio.
|
75
|
+
"#<Twilio.FlexApi.V1.ProvisioningStatusContext #{context}>"
|
74
76
|
end
|
75
77
|
|
76
78
|
##
|
77
79
|
# Provide a detailed, user friendly representation
|
78
80
|
def inspect
|
79
81
|
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
80
|
-
"#<Twilio.
|
82
|
+
"#<Twilio.FlexApi.V1.ProvisioningStatusContext #{context}>"
|
81
83
|
end
|
82
84
|
end
|
83
85
|
|
84
|
-
class
|
86
|
+
class ProvisioningStatusPage < Page
|
85
87
|
##
|
86
|
-
# Initialize the
|
88
|
+
# Initialize the ProvisioningStatusPage
|
87
89
|
# @param [Version] version Version that contains the resource
|
88
90
|
# @param [Response] response Response from the API
|
89
91
|
# @param [Hash] solution Path solution for the resource
|
90
|
-
# @return [
|
92
|
+
# @return [ProvisioningStatusPage] ProvisioningStatusPage
|
91
93
|
def initialize(version, response, solution)
|
92
94
|
super(version, response)
|
93
95
|
|
@@ -96,35 +98,35 @@ module Twilio
|
|
96
98
|
end
|
97
99
|
|
98
100
|
##
|
99
|
-
# Build an instance of
|
101
|
+
# Build an instance of ProvisioningStatusInstance
|
100
102
|
# @param [Hash] payload Payload response from the API
|
101
|
-
# @return [
|
103
|
+
# @return [ProvisioningStatusInstance] ProvisioningStatusInstance
|
102
104
|
def get_instance(payload)
|
103
|
-
|
105
|
+
ProvisioningStatusInstance.new(@version, payload)
|
104
106
|
end
|
105
107
|
|
106
108
|
##
|
107
109
|
# Provide a user friendly representation
|
108
110
|
def to_s
|
109
|
-
'<Twilio.
|
111
|
+
'<Twilio.FlexApi.V1.ProvisioningStatusPage>'
|
110
112
|
end
|
111
113
|
end
|
112
|
-
class
|
114
|
+
class ProvisioningStatusInstance < InstanceResource
|
113
115
|
##
|
114
|
-
# Initialize the
|
116
|
+
# Initialize the ProvisioningStatusInstance
|
115
117
|
# @param [Version] version Version that contains the resource
|
116
118
|
# @param [Hash] payload payload that contains response from Twilio
|
117
119
|
# @param [String] account_sid The SID of the
|
118
|
-
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this
|
120
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this ProvisioningStatus
|
119
121
|
# resource.
|
120
122
|
# @param [String] sid The SID of the Call resource to fetch.
|
121
|
-
# @return [
|
123
|
+
# @return [ProvisioningStatusInstance] ProvisioningStatusInstance
|
122
124
|
def initialize(version, payload )
|
123
125
|
super(version)
|
124
126
|
|
125
127
|
# Marshaled Properties
|
126
128
|
@properties = {
|
127
|
-
'
|
129
|
+
'status' => payload['status'],
|
128
130
|
'url' => payload['url'],
|
129
131
|
}
|
130
132
|
|
@@ -136,29 +138,29 @@ module Twilio
|
|
136
138
|
##
|
137
139
|
# Generate an instance context for the instance, the context is capable of
|
138
140
|
# performing various actions. All instance actions are proxied to the context
|
139
|
-
# @return [
|
141
|
+
# @return [ProvisioningStatusContext] CallContext for this CallInstance
|
140
142
|
def context
|
141
143
|
unless @instance_context
|
142
|
-
@instance_context =
|
144
|
+
@instance_context = ProvisioningStatusContext.new(@version )
|
143
145
|
end
|
144
146
|
@instance_context
|
145
147
|
end
|
146
148
|
|
147
149
|
##
|
148
|
-
# @return [
|
149
|
-
def
|
150
|
-
@properties['
|
150
|
+
# @return [Status]
|
151
|
+
def status
|
152
|
+
@properties['status']
|
151
153
|
end
|
152
154
|
|
153
155
|
##
|
154
|
-
# @return [String]
|
156
|
+
# @return [String] The absolute URL of the resource.
|
155
157
|
def url
|
156
158
|
@properties['url']
|
157
159
|
end
|
158
160
|
|
159
161
|
##
|
160
|
-
# Fetch the
|
161
|
-
# @return [
|
162
|
+
# Fetch the ProvisioningStatusInstance
|
163
|
+
# @return [ProvisioningStatusInstance] Fetched ProvisioningStatusInstance
|
162
164
|
def fetch
|
163
165
|
|
164
166
|
context.fetch
|
@@ -168,14 +170,14 @@ module Twilio
|
|
168
170
|
# Provide a user friendly representation
|
169
171
|
def to_s
|
170
172
|
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
171
|
-
"<Twilio.
|
173
|
+
"<Twilio.FlexApi.V1.ProvisioningStatusInstance #{values}>"
|
172
174
|
end
|
173
175
|
|
174
176
|
##
|
175
177
|
# Provide a detailed, user friendly representation
|
176
178
|
def inspect
|
177
179
|
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
178
|
-
"<Twilio.
|
180
|
+
"<Twilio.FlexApi.V1.ProvisioningStatusInstance #{values}>"
|
179
181
|
end
|
180
182
|
end
|
181
183
|
|
@@ -36,6 +36,7 @@ module Twilio
|
|
36
36
|
@insights_settings_comment = nil
|
37
37
|
@insights_user_roles = nil
|
38
38
|
@interaction = nil
|
39
|
+
@provisioning_status = nil
|
39
40
|
@web_channel = nil
|
40
41
|
end
|
41
42
|
|
@@ -178,6 +179,11 @@ module Twilio
|
|
178
179
|
end
|
179
180
|
end
|
180
181
|
##
|
182
|
+
# @return [Twilio::REST::FlexApi::V1::provisioningStatusContext]
|
183
|
+
def provisioning_status
|
184
|
+
@provisioning_status ||= ProvisioningStatusContext.new self
|
185
|
+
end
|
186
|
+
##
|
181
187
|
# @param [String] sid The SID of the WebChannel resource to fetch.
|
182
188
|
# @return [Twilio::REST::FlexApi::V1::WebChannelContext] if sid was passed.
|
183
189
|
# @return [Twilio::REST::FlexApi::V1::WebChannelList]
|
@@ -240,6 +240,7 @@ module Twilio
|
|
240
240
|
'predicted_probability' => payload['predicted_probability'],
|
241
241
|
'label_probabilities' => payload['label_probabilities'],
|
242
242
|
'extract_results' => payload['extract_results'],
|
243
|
+
'text_generation_results' => payload['text_generation_results'],
|
243
244
|
'transcript_sid' => payload['transcript_sid'],
|
244
245
|
'url' => payload['url'],
|
245
246
|
}
|
@@ -332,6 +333,12 @@ module Twilio
|
|
332
333
|
@properties['extract_results']
|
333
334
|
end
|
334
335
|
|
336
|
+
##
|
337
|
+
# @return [Hash] Output of a text generation operator for example Conversation Sumamary.
|
338
|
+
def text_generation_results
|
339
|
+
@properties['text_generation_results']
|
340
|
+
end
|
341
|
+
|
335
342
|
##
|
336
343
|
# @return [String] A 34 character string that uniquely identifies this Transcript.
|
337
344
|
def transcript_sid
|
@@ -237,6 +237,14 @@ module Twilio
|
|
237
237
|
|
238
238
|
|
239
239
|
end
|
240
|
+
##
|
241
|
+
# Delete the TollfreeVerificationInstance
|
242
|
+
# @return [Boolean] True if delete succeeds, false otherwise
|
243
|
+
def delete
|
244
|
+
|
245
|
+
@version.delete('DELETE', @uri)
|
246
|
+
end
|
247
|
+
|
240
248
|
##
|
241
249
|
# Fetch the TollfreeVerificationInstance
|
242
250
|
# @return [TollfreeVerificationInstance] Fetched TollfreeVerificationInstance
|
@@ -272,6 +280,7 @@ module Twilio
|
|
272
280
|
# @param [String] business_contact_last_name The last name of the contact for the business or organization using the Tollfree number.
|
273
281
|
# @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number.
|
274
282
|
# @param [String] business_contact_phone The phone number of the contact for the business or organization using the Tollfree number.
|
283
|
+
# @param [String] edit_reason Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'.
|
275
284
|
# @return [TollfreeVerificationInstance] Updated TollfreeVerificationInstance
|
276
285
|
def update(
|
277
286
|
business_name: :unset,
|
@@ -293,7 +302,8 @@ module Twilio
|
|
293
302
|
business_contact_first_name: :unset,
|
294
303
|
business_contact_last_name: :unset,
|
295
304
|
business_contact_email: :unset,
|
296
|
-
business_contact_phone: :unset
|
305
|
+
business_contact_phone: :unset,
|
306
|
+
edit_reason: :unset
|
297
307
|
)
|
298
308
|
|
299
309
|
data = Twilio::Values.of({
|
@@ -317,6 +327,7 @@ module Twilio
|
|
317
327
|
'BusinessContactLastName' => business_contact_last_name,
|
318
328
|
'BusinessContactEmail' => business_contact_email,
|
319
329
|
'BusinessContactPhone' => business_contact_phone,
|
330
|
+
'EditReason' => edit_reason,
|
320
331
|
})
|
321
332
|
|
322
333
|
payload = @version.update('POST', @uri, data: data)
|
@@ -419,6 +430,7 @@ module Twilio
|
|
419
430
|
'rejection_reason' => payload['rejection_reason'],
|
420
431
|
'error_code' => payload['error_code'] == nil ? payload['error_code'] : payload['error_code'].to_i,
|
421
432
|
'edit_expiration' => Twilio.deserialize_iso8601_datetime(payload['edit_expiration']),
|
433
|
+
'edit_allowed' => payload['edit_allowed'],
|
422
434
|
'resource_links' => payload['resource_links'],
|
423
435
|
'external_reference_id' => payload['external_reference_id'],
|
424
436
|
}
|
@@ -637,6 +649,12 @@ module Twilio
|
|
637
649
|
@properties['edit_expiration']
|
638
650
|
end
|
639
651
|
|
652
|
+
##
|
653
|
+
# @return [Boolean] If a rejected verification is allowed to be edited/resubmitted. Some rejection reasons allow editing and some do not.
|
654
|
+
def edit_allowed
|
655
|
+
@properties['edit_allowed']
|
656
|
+
end
|
657
|
+
|
640
658
|
##
|
641
659
|
# @return [Hash] The URLs of the documents associated with the Tollfree Verification resource.
|
642
660
|
def resource_links
|
@@ -649,6 +667,14 @@ module Twilio
|
|
649
667
|
@properties['external_reference_id']
|
650
668
|
end
|
651
669
|
|
670
|
+
##
|
671
|
+
# Delete the TollfreeVerificationInstance
|
672
|
+
# @return [Boolean] True if delete succeeds, false otherwise
|
673
|
+
def delete
|
674
|
+
|
675
|
+
context.delete
|
676
|
+
end
|
677
|
+
|
652
678
|
##
|
653
679
|
# Fetch the TollfreeVerificationInstance
|
654
680
|
# @return [TollfreeVerificationInstance] Fetched TollfreeVerificationInstance
|
@@ -679,6 +705,7 @@ module Twilio
|
|
679
705
|
# @param [String] business_contact_last_name The last name of the contact for the business or organization using the Tollfree number.
|
680
706
|
# @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number.
|
681
707
|
# @param [String] business_contact_phone The phone number of the contact for the business or organization using the Tollfree number.
|
708
|
+
# @param [String] edit_reason Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'.
|
682
709
|
# @return [TollfreeVerificationInstance] Updated TollfreeVerificationInstance
|
683
710
|
def update(
|
684
711
|
business_name: :unset,
|
@@ -700,7 +727,8 @@ module Twilio
|
|
700
727
|
business_contact_first_name: :unset,
|
701
728
|
business_contact_last_name: :unset,
|
702
729
|
business_contact_email: :unset,
|
703
|
-
business_contact_phone: :unset
|
730
|
+
business_contact_phone: :unset,
|
731
|
+
edit_reason: :unset
|
704
732
|
)
|
705
733
|
|
706
734
|
context.update(
|
@@ -724,6 +752,7 @@ module Twilio
|
|
724
752
|
business_contact_last_name: business_contact_last_name,
|
725
753
|
business_contact_email: business_contact_email,
|
726
754
|
business_contact_phone: business_contact_phone,
|
755
|
+
edit_reason: edit_reason,
|
727
756
|
)
|
728
757
|
end
|
729
758
|
|
@@ -79,7 +79,7 @@ module Twilio
|
|
79
79
|
# @param [String] task_queue_name The `friendly_name` of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this friendly name.
|
80
80
|
# @param [String] evaluate_task_attributes The attributes of the Tasks to read. Returns the Tasks that match the attributes specified in this parameter.
|
81
81
|
# @param [String] ordering How to order the returned Task resources. By default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `DateCreated`, `Priority`, or `VirtualStartTime` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Pairings of sort orders can be specified in a comma-separated list such as `Priority:desc,DateCreated:asc`, which returns the Tasks in descending Priority order and ascending DateCreated Order. The only ordering pairing not allowed is DateCreated and VirtualStartTime.
|
82
|
-
# @param [Boolean] has_addons Whether to read Tasks with
|
82
|
+
# @param [Boolean] has_addons Whether to read Tasks with Add-ons. If `true`, returns only Tasks with Add-ons. If `false`, returns only Tasks without Add-ons.
|
83
83
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
84
84
|
# guarantees to never return more than limit. Default is no limit
|
85
85
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -115,7 +115,7 @@ module Twilio
|
|
115
115
|
# @param [String] task_queue_name The `friendly_name` of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this friendly name.
|
116
116
|
# @param [String] evaluate_task_attributes The attributes of the Tasks to read. Returns the Tasks that match the attributes specified in this parameter.
|
117
117
|
# @param [String] ordering How to order the returned Task resources. By default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `DateCreated`, `Priority`, or `VirtualStartTime` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Pairings of sort orders can be specified in a comma-separated list such as `Priority:desc,DateCreated:asc`, which returns the Tasks in descending Priority order and ascending DateCreated Order. The only ordering pairing not allowed is DateCreated and VirtualStartTime.
|
118
|
-
# @param [Boolean] has_addons Whether to read Tasks with
|
118
|
+
# @param [Boolean] has_addons Whether to read Tasks with Add-ons. If `true`, returns only Tasks with Add-ons. If `false`, returns only Tasks without Add-ons.
|
119
119
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
120
120
|
# guarantees to never return more than limit. Default is no limit
|
121
121
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -166,7 +166,7 @@ module Twilio
|
|
166
166
|
# @param [String] task_queue_name The `friendly_name` of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this friendly name.
|
167
167
|
# @param [String] evaluate_task_attributes The attributes of the Tasks to read. Returns the Tasks that match the attributes specified in this parameter.
|
168
168
|
# @param [String] ordering How to order the returned Task resources. By default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `DateCreated`, `Priority`, or `VirtualStartTime` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Pairings of sort orders can be specified in a comma-separated list such as `Priority:desc,DateCreated:asc`, which returns the Tasks in descending Priority order and ascending DateCreated Order. The only ordering pairing not allowed is DateCreated and VirtualStartTime.
|
169
|
-
# @param [Boolean] has_addons Whether to read Tasks with
|
169
|
+
# @param [Boolean] has_addons Whether to read Tasks with Add-ons. If `true`, returns only Tasks with Add-ons. If `false`, returns only Tasks without Add-ons.
|
170
170
|
# @param [String] page_token PageToken provided by the API
|
171
171
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
172
172
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
@@ -440,7 +440,7 @@ module Twilio
|
|
440
440
|
end
|
441
441
|
|
442
442
|
##
|
443
|
-
# @return [String] An object that contains the [
|
443
|
+
# @return [String] An object that contains the [Add-on](https://www.twilio.com/docs/add-ons) data for all installed Add-ons.
|
444
444
|
def addons
|
445
445
|
@properties['addons']
|
446
446
|
end
|
@@ -31,6 +31,7 @@ module Twilio
|
|
31
31
|
@uri = "/Workspaces/#{@solution[:workspace_sid]}/TaskQueues"
|
32
32
|
# Components
|
33
33
|
@statistics = nil
|
34
|
+
@bulk_real_time_statistics = nil
|
34
35
|
end
|
35
36
|
##
|
36
37
|
# Create the TaskQueueInstance
|
@@ -184,6 +185,13 @@ module Twilio
|
|
184
185
|
def statistics
|
185
186
|
@statistics ||= TaskQueuesStatisticsList.new(@version, workspace_sid: @solution[:workspace_sid] )
|
186
187
|
end
|
188
|
+
##
|
189
|
+
# Access the bulk_real_time_statistics
|
190
|
+
# @return [TaskQueueBulkRealTimeStatisticsList]
|
191
|
+
# @return [TaskQueueBulkRealTimeStatisticsContext]
|
192
|
+
def bulk_real_time_statistics
|
193
|
+
@bulk_real_time_statistics ||= TaskQueueBulkRealTimeStatisticsList.new(@version, workspace_sid: @solution[:workspace_sid] )
|
194
|
+
end
|
187
195
|
|
188
196
|
# Provide a user friendly representation
|
189
197
|
def to_s
|