twilio-ruby 5.58.3 → 5.59.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/.travis.yml +1 -0
- data/CHANGES.md +36 -0
- data/README.md +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +667 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +27 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +10 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +18 -2
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +7 -0
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +36 -36
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +188 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +188 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +40 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +7 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +7 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +23 -11
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +19 -3
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +7 -5
- data/lib/twilio-ruby/rest/verify/v2/{verification_template.rb → template.rb} +25 -25
- data/lib/twilio-ruby/rest/verify/v2.rb +4 -4
- data/lib/twilio-ruby/rest/verify.rb +3 -3
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +7 -4
@@ -10,11 +10,11 @@ module Twilio
|
|
10
10
|
module REST
|
11
11
|
class Verify < Domain
|
12
12
|
class V2 < Version
|
13
|
-
class
|
13
|
+
class TemplateList < ListResource
|
14
14
|
##
|
15
|
-
# Initialize the
|
15
|
+
# Initialize the TemplateList
|
16
16
|
# @param [Version] version Version that contains the resource
|
17
|
-
# @return [
|
17
|
+
# @return [TemplateList] TemplateList
|
18
18
|
def initialize(version)
|
19
19
|
super(version)
|
20
20
|
|
@@ -24,7 +24,7 @@ module Twilio
|
|
24
24
|
end
|
25
25
|
|
26
26
|
##
|
27
|
-
# Lists
|
27
|
+
# Lists TemplateInstance records from the API as a list.
|
28
28
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
29
29
|
# memory before returning.
|
30
30
|
# @param [String] friendly_name String filter used to query templates with a given
|
@@ -41,7 +41,7 @@ module Twilio
|
|
41
41
|
end
|
42
42
|
|
43
43
|
##
|
44
|
-
# Streams
|
44
|
+
# Streams TemplateInstance records from the API as an Enumerable.
|
45
45
|
# This operation lazily loads records as efficiently as possible until the limit
|
46
46
|
# is reached.
|
47
47
|
# @param [String] friendly_name String filter used to query templates with a given
|
@@ -62,7 +62,7 @@ module Twilio
|
|
62
62
|
end
|
63
63
|
|
64
64
|
##
|
65
|
-
# When passed a block, yields
|
65
|
+
# When passed a block, yields TemplateInstance records from the API.
|
66
66
|
# This operation lazily loads records as efficiently as possible until the limit
|
67
67
|
# is reached.
|
68
68
|
def each
|
@@ -76,14 +76,14 @@ module Twilio
|
|
76
76
|
end
|
77
77
|
|
78
78
|
##
|
79
|
-
# Retrieve a single page of
|
79
|
+
# Retrieve a single page of TemplateInstance records from the API.
|
80
80
|
# Request is executed immediately.
|
81
81
|
# @param [String] friendly_name String filter used to query templates with a given
|
82
82
|
# friendly name
|
83
83
|
# @param [String] page_token PageToken provided by the API
|
84
84
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
85
85
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
86
|
-
# @return [Page] Page of
|
86
|
+
# @return [Page] Page of TemplateInstance
|
87
87
|
def page(friendly_name: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
88
88
|
params = Twilio::Values.of({
|
89
89
|
'FriendlyName' => friendly_name,
|
@@ -94,36 +94,36 @@ module Twilio
|
|
94
94
|
|
95
95
|
response = @version.page('GET', @uri, params: params)
|
96
96
|
|
97
|
-
|
97
|
+
TemplatePage.new(@version, response, @solution)
|
98
98
|
end
|
99
99
|
|
100
100
|
##
|
101
|
-
# Retrieve a single page of
|
101
|
+
# Retrieve a single page of TemplateInstance records from the API.
|
102
102
|
# Request is executed immediately.
|
103
103
|
# @param [String] target_url API-generated URL for the requested results page
|
104
|
-
# @return [Page] Page of
|
104
|
+
# @return [Page] Page of TemplateInstance
|
105
105
|
def get_page(target_url)
|
106
106
|
response = @version.domain.request(
|
107
107
|
'GET',
|
108
108
|
target_url
|
109
109
|
)
|
110
|
-
|
110
|
+
TemplatePage.new(@version, response, @solution)
|
111
111
|
end
|
112
112
|
|
113
113
|
##
|
114
114
|
# Provide a user friendly representation
|
115
115
|
def to_s
|
116
|
-
'#<Twilio.Verify.V2.
|
116
|
+
'#<Twilio.Verify.V2.TemplateList>'
|
117
117
|
end
|
118
118
|
end
|
119
119
|
|
120
|
-
class
|
120
|
+
class TemplatePage < Page
|
121
121
|
##
|
122
|
-
# Initialize the
|
122
|
+
# Initialize the TemplatePage
|
123
123
|
# @param [Version] version Version that contains the resource
|
124
124
|
# @param [Response] response Response from the API
|
125
125
|
# @param [Hash] solution Path solution for the resource
|
126
|
-
# @return [
|
126
|
+
# @return [TemplatePage] TemplatePage
|
127
127
|
def initialize(version, response, solution)
|
128
128
|
super(version, response)
|
129
129
|
|
@@ -132,26 +132,26 @@ module Twilio
|
|
132
132
|
end
|
133
133
|
|
134
134
|
##
|
135
|
-
# Build an instance of
|
135
|
+
# Build an instance of TemplateInstance
|
136
136
|
# @param [Hash] payload Payload response from the API
|
137
|
-
# @return [
|
137
|
+
# @return [TemplateInstance] TemplateInstance
|
138
138
|
def get_instance(payload)
|
139
|
-
|
139
|
+
TemplateInstance.new(@version, payload, )
|
140
140
|
end
|
141
141
|
|
142
142
|
##
|
143
143
|
# Provide a user friendly representation
|
144
144
|
def to_s
|
145
|
-
'<Twilio.Verify.V2.
|
145
|
+
'<Twilio.Verify.V2.TemplatePage>'
|
146
146
|
end
|
147
147
|
end
|
148
148
|
|
149
|
-
class
|
149
|
+
class TemplateInstance < InstanceResource
|
150
150
|
##
|
151
|
-
# Initialize the
|
151
|
+
# Initialize the TemplateInstance
|
152
152
|
# @param [Version] version Version that contains the resource
|
153
153
|
# @param [Hash] payload payload that contains response from Twilio
|
154
|
-
# @return [
|
154
|
+
# @return [TemplateInstance] TemplateInstance
|
155
155
|
def initialize(version, payload)
|
156
156
|
super(version)
|
157
157
|
|
@@ -191,13 +191,13 @@ module Twilio
|
|
191
191
|
##
|
192
192
|
# Provide a user friendly representation
|
193
193
|
def to_s
|
194
|
-
"<Twilio.Verify.V2.
|
194
|
+
"<Twilio.Verify.V2.TemplateInstance>"
|
195
195
|
end
|
196
196
|
|
197
197
|
##
|
198
198
|
# Provide a detailed, user friendly representation
|
199
199
|
def inspect
|
200
|
-
"<Twilio.Verify.V2.
|
200
|
+
"<Twilio.Verify.V2.TemplateInstance>"
|
201
201
|
end
|
202
202
|
end
|
203
203
|
end
|
@@ -18,7 +18,7 @@ module Twilio
|
|
18
18
|
@forms = nil
|
19
19
|
@services = nil
|
20
20
|
@verification_attempts = nil
|
21
|
-
@
|
21
|
+
@templates = nil
|
22
22
|
end
|
23
23
|
|
24
24
|
##
|
@@ -69,9 +69,9 @@ module Twilio
|
|
69
69
|
end
|
70
70
|
|
71
71
|
##
|
72
|
-
# @return [Twilio::REST::Verify::V2::
|
73
|
-
def
|
74
|
-
@
|
72
|
+
# @return [Twilio::REST::Verify::V2::TemplateContext]
|
73
|
+
def templates
|
74
|
+
@templates ||= TemplateList.new self
|
75
75
|
end
|
76
76
|
|
77
77
|
##
|
@@ -56,9 +56,9 @@ module Twilio
|
|
56
56
|
end
|
57
57
|
|
58
58
|
##
|
59
|
-
# @return [Twilio::REST::Verify::V2::
|
60
|
-
def
|
61
|
-
self.v2.
|
59
|
+
# @return [Twilio::REST::Verify::V2::TemplateInstance]
|
60
|
+
def templates
|
61
|
+
self.v2.templates()
|
62
62
|
end
|
63
63
|
|
64
64
|
##
|
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.
|
4
|
+
version: 5.59.0
|
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: 2021-
|
11
|
+
date: 2021-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -285,6 +285,7 @@ files:
|
|
285
285
|
- lib/twilio-ruby/rest/api/v2010/account/call/notification.rb
|
286
286
|
- lib/twilio-ruby/rest/api/v2010/account/call/payment.rb
|
287
287
|
- lib/twilio-ruby/rest/api/v2010/account/call/recording.rb
|
288
|
+
- lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb
|
288
289
|
- lib/twilio-ruby/rest/api/v2010/account/conference.rb
|
289
290
|
- lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb
|
290
291
|
- lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb
|
@@ -500,8 +501,10 @@ files:
|
|
500
501
|
- lib/twilio-ruby/rest/numbers/v2.rb
|
501
502
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb
|
502
503
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb
|
504
|
+
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb
|
503
505
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb
|
504
506
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb
|
507
|
+
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb
|
505
508
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb
|
506
509
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb
|
507
510
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb
|
@@ -713,8 +716,8 @@ files:
|
|
713
716
|
- lib/twilio-ruby/rest/verify/v2/service/verification.rb
|
714
717
|
- lib/twilio-ruby/rest/verify/v2/service/verification_check.rb
|
715
718
|
- lib/twilio-ruby/rest/verify/v2/service/webhook.rb
|
719
|
+
- lib/twilio-ruby/rest/verify/v2/template.rb
|
716
720
|
- lib/twilio-ruby/rest/verify/v2/verification_attempt.rb
|
717
|
-
- lib/twilio-ruby/rest/verify/v2/verification_template.rb
|
718
721
|
- lib/twilio-ruby/rest/video.rb
|
719
722
|
- lib/twilio-ruby/rest/video/v1.rb
|
720
723
|
- lib/twilio-ruby/rest/video/v1/composition.rb
|
@@ -785,7 +788,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
785
788
|
- !ruby/object:Gem::Version
|
786
789
|
version: '0'
|
787
790
|
requirements: []
|
788
|
-
rubygems_version: 3.0.
|
791
|
+
rubygems_version: 3.0.9
|
789
792
|
signing_key:
|
790
793
|
specification_version: 4
|
791
794
|
summary: The official library for communicating with the Twilio REST API, building
|