twilio-ruby 5.57.1 → 5.58.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.travis.yml +24 -7
- data/CHANGES.md +83 -0
- data/Gemfile +1 -0
- data/README.md +2 -2
- data/examples/examples.rb +1 -1
- data/lib/twilio-ruby/http/http_client.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +12 -3
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +11 -11
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +12 -5
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +12 -5
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +434 -0
- data/lib/twilio-ruby/rest/insights/v1.rb +7 -0
- data/lib/twilio-ruby/rest/insights.rb +6 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +54 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +9 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +6 -2
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +19 -14
- data/lib/twilio-ruby/rest/pricing/v2/country.rb +280 -0
- data/lib/twilio-ruby/rest/pricing/v2/number.rb +225 -0
- data/lib/twilio-ruby/rest/pricing/v2.rb +37 -0
- data/lib/twilio-ruby/rest/pricing.rb +19 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +30 -20
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +6 -2
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +36 -11
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +11 -9
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +8 -8
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +7 -3
- data/lib/twilio-ruby/rest/verify/v2/verification_template.rb +206 -0
- data/lib/twilio-ruby/rest/verify/v2.rb +7 -0
- data/lib/twilio-ruby/rest/verify.rb +6 -0
- data/lib/twilio-ruby/version.rb +1 -1
- data/sonar-project.properties +13 -0
- metadata +7 -2
@@ -21,7 +21,9 @@ module Twilio
|
|
21
21
|
# @param [Version] version Version that contains the resource
|
22
22
|
# @param [String] service_sid The unique SID identifier of the Service.
|
23
23
|
# @param [String] identity Customer unique identity for the Entity owner of the
|
24
|
-
# Challenge. This
|
24
|
+
# Challenge. This identifier should be immutable, not PII, length between 8 and 64
|
25
|
+
# characters, and generated by your external system, such as your user's UUID,
|
26
|
+
# GUID, or SID. It can only contain dash (-) separated alphanumeric characters.
|
25
27
|
# @param [String] challenge_sid The unique SID identifier of the Challenge.
|
26
28
|
# @return [NotificationList] NotificationList
|
27
29
|
def initialize(version, service_sid: nil, identity: nil, challenge_sid: nil)
|
@@ -106,7 +108,9 @@ module Twilio
|
|
106
108
|
# @param [Hash] payload payload that contains response from Twilio
|
107
109
|
# @param [String] service_sid The unique SID identifier of the Service.
|
108
110
|
# @param [String] identity Customer unique identity for the Entity owner of the
|
109
|
-
# Challenge. This
|
111
|
+
# Challenge. This identifier should be immutable, not PII, length between 8 and 64
|
112
|
+
# characters, and generated by your external system, such as your user's UUID,
|
113
|
+
# GUID, or SID. It can only contain dash (-) separated alphanumeric characters.
|
110
114
|
# @param [String] challenge_sid The unique SID identifier of the Challenge.
|
111
115
|
# @return [NotificationInstance] NotificationInstance
|
112
116
|
def initialize(version, payload, service_sid: nil, identity: nil, challenge_sid: nil)
|
@@ -20,7 +20,9 @@ module Twilio
|
|
20
20
|
# @param [Version] version Version that contains the resource
|
21
21
|
# @param [String] service_sid The unique SID identifier of the Service.
|
22
22
|
# @param [String] identity Customer unique identity for the Entity owner of the
|
23
|
-
# Challenge. This
|
23
|
+
# Challenge. This identifier should be immutable, not PII, length between 8 and 64
|
24
|
+
# characters, and generated by your external system, such as your user's UUID,
|
25
|
+
# GUID, or SID. It can only contain dash (-) separated alphanumeric characters.
|
24
26
|
# @return [ChallengeList] ChallengeList
|
25
27
|
def initialize(version, service_sid: nil, identity: nil)
|
26
28
|
super(version)
|
@@ -81,6 +83,9 @@ module Twilio
|
|
81
83
|
# @param [String] factor_sid The unique SID identifier of the Factor.
|
82
84
|
# @param [challenge.ChallengeStatuses] status The Status of the Challenges to
|
83
85
|
# fetch. One of `pending`, `expired`, `approved` or `denied`.
|
86
|
+
# @param [challenge.ListOrders] order The desired sort order of the Challenges
|
87
|
+
# list. One of `asc` or `desc` for ascending and descending respectively. Defaults
|
88
|
+
# to `asc`.
|
84
89
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
85
90
|
# guarantees to never return more than limit. Default is no limit
|
86
91
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -88,8 +93,14 @@ module Twilio
|
|
88
93
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
89
94
|
# efficient page size, i.e. min(limit, 1000)
|
90
95
|
# @return [Array] Array of up to limit results
|
91
|
-
def list(factor_sid: :unset, status: :unset, limit: nil, page_size: nil)
|
92
|
-
self.stream(
|
96
|
+
def list(factor_sid: :unset, status: :unset, order: :unset, limit: nil, page_size: nil)
|
97
|
+
self.stream(
|
98
|
+
factor_sid: factor_sid,
|
99
|
+
status: status,
|
100
|
+
order: order,
|
101
|
+
limit: limit,
|
102
|
+
page_size: page_size
|
103
|
+
).entries
|
93
104
|
end
|
94
105
|
|
95
106
|
##
|
@@ -99,6 +110,9 @@ module Twilio
|
|
99
110
|
# @param [String] factor_sid The unique SID identifier of the Factor.
|
100
111
|
# @param [challenge.ChallengeStatuses] status The Status of the Challenges to
|
101
112
|
# fetch. One of `pending`, `expired`, `approved` or `denied`.
|
113
|
+
# @param [challenge.ListOrders] order The desired sort order of the Challenges
|
114
|
+
# list. One of `asc` or `desc` for ascending and descending respectively. Defaults
|
115
|
+
# to `asc`.
|
102
116
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
103
117
|
# guarantees to never return more than limit. Default is no limit.
|
104
118
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -106,10 +120,15 @@ module Twilio
|
|
106
120
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
107
121
|
# efficient page size, i.e. min(limit, 1000)
|
108
122
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
109
|
-
def stream(factor_sid: :unset, status: :unset, limit: nil, page_size: nil)
|
123
|
+
def stream(factor_sid: :unset, status: :unset, order: :unset, limit: nil, page_size: nil)
|
110
124
|
limits = @version.read_limits(limit, page_size)
|
111
125
|
|
112
|
-
page = self.page(
|
126
|
+
page = self.page(
|
127
|
+
factor_sid: factor_sid,
|
128
|
+
status: status,
|
129
|
+
order: order,
|
130
|
+
page_size: limits[:page_size],
|
131
|
+
)
|
113
132
|
|
114
133
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
115
134
|
end
|
@@ -134,14 +153,18 @@ module Twilio
|
|
134
153
|
# @param [String] factor_sid The unique SID identifier of the Factor.
|
135
154
|
# @param [challenge.ChallengeStatuses] status The Status of the Challenges to
|
136
155
|
# fetch. One of `pending`, `expired`, `approved` or `denied`.
|
156
|
+
# @param [challenge.ListOrders] order The desired sort order of the Challenges
|
157
|
+
# list. One of `asc` or `desc` for ascending and descending respectively. Defaults
|
158
|
+
# to `asc`.
|
137
159
|
# @param [String] page_token PageToken provided by the API
|
138
160
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
139
161
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
140
162
|
# @return [Page] Page of ChallengeInstance
|
141
|
-
def page(factor_sid: :unset, status: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
163
|
+
def page(factor_sid: :unset, status: :unset, order: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
142
164
|
params = Twilio::Values.of({
|
143
165
|
'FactorSid' => factor_sid,
|
144
166
|
'Status' => status,
|
167
|
+
'Order' => order,
|
145
168
|
'PageToken' => page_token,
|
146
169
|
'Page' => page_number,
|
147
170
|
'PageSize' => page_size,
|
@@ -215,10 +238,10 @@ module Twilio
|
|
215
238
|
# Initialize the ChallengeContext
|
216
239
|
# @param [Version] version Version that contains the resource
|
217
240
|
# @param [String] service_sid The unique SID identifier of the Service.
|
218
|
-
# @param [String] identity
|
219
|
-
#
|
220
|
-
# external system, such as your user's UUID,
|
221
|
-
#
|
241
|
+
# @param [String] identity Customer unique identity for the Entity owner of the
|
242
|
+
# Challenges. This identifier should be immutable, not PII, length between 8 and
|
243
|
+
# 64 characters, and generated by your external system, such as your user's UUID,
|
244
|
+
# GUID, or SID. It can only contain dash (-) separated alphanumeric characters.
|
222
245
|
# @param [String] sid A 34 character string that uniquely identifies this
|
223
246
|
# Challenge.
|
224
247
|
# @return [ChallengeContext] ChallengeContext
|
@@ -310,7 +333,9 @@ module Twilio
|
|
310
333
|
# @param [Hash] payload payload that contains response from Twilio
|
311
334
|
# @param [String] service_sid The unique SID identifier of the Service.
|
312
335
|
# @param [String] identity Customer unique identity for the Entity owner of the
|
313
|
-
# Challenge. This
|
336
|
+
# Challenge. This identifier should be immutable, not PII, length between 8 and 64
|
337
|
+
# characters, and generated by your external system, such as your user's UUID,
|
338
|
+
# GUID, or SID. It can only contain dash (-) separated alphanumeric characters.
|
314
339
|
# @param [String] sid A 34 character string that uniquely identifies this
|
315
340
|
# Challenge.
|
316
341
|
# @return [ChallengeInstance] ChallengeInstance
|
@@ -19,10 +19,10 @@ module Twilio
|
|
19
19
|
# Initialize the FactorList
|
20
20
|
# @param [Version] version Version that contains the resource
|
21
21
|
# @param [String] service_sid The unique SID identifier of the Service.
|
22
|
-
# @param [String] identity
|
23
|
-
#
|
24
|
-
# external system, such as your user's UUID,
|
25
|
-
#
|
22
|
+
# @param [String] identity Customer unique identity for the Entity owner of the
|
23
|
+
# Factor. This identifier should be immutable, not PII, length between 8 and 64
|
24
|
+
# characters, and generated by your external system, such as your user's UUID,
|
25
|
+
# GUID, or SID. It can only contain dash (-) separated alphanumeric characters.
|
26
26
|
# @return [FactorList] FactorList
|
27
27
|
def initialize(version, service_sid: nil, identity: nil)
|
28
28
|
super(version)
|
@@ -163,7 +163,9 @@ module Twilio
|
|
163
163
|
# @param [Version] version Version that contains the resource
|
164
164
|
# @param [String] service_sid The unique SID identifier of the Service.
|
165
165
|
# @param [String] identity Customer unique identity for the Entity owner of the
|
166
|
-
# Factor. This
|
166
|
+
# Factor. This identifier should be immutable, not PII, length between 8 and 64
|
167
|
+
# characters, and generated by your external system, such as your user's UUID,
|
168
|
+
# GUID, or SID. It can only contain dash (-) separated alphanumeric characters.
|
167
169
|
# @param [String] sid A 34 character string that uniquely identifies this Factor.
|
168
170
|
# @return [FactorContext] FactorContext
|
169
171
|
def initialize(version, service_sid, identity, sid)
|
@@ -264,10 +266,10 @@ module Twilio
|
|
264
266
|
# @param [Version] version Version that contains the resource
|
265
267
|
# @param [Hash] payload payload that contains response from Twilio
|
266
268
|
# @param [String] service_sid The unique SID identifier of the Service.
|
267
|
-
# @param [String] identity
|
268
|
-
#
|
269
|
-
# external system, such as your user's UUID,
|
270
|
-
#
|
269
|
+
# @param [String] identity Customer unique identity for the Entity owner of the
|
270
|
+
# Factor. This identifier should be immutable, not PII, length between 8 and 64
|
271
|
+
# characters, and generated by your external system, such as your user's UUID,
|
272
|
+
# GUID, or SID. It can only contain dash (-) separated alphanumeric characters.
|
271
273
|
# @param [String] sid A 34 character string that uniquely identifies this Factor.
|
272
274
|
# @return [FactorInstance] FactorInstance
|
273
275
|
def initialize(version, payload, service_sid: nil, identity: nil, sid: nil)
|
@@ -19,10 +19,10 @@ module Twilio
|
|
19
19
|
# Initialize the NewFactorList
|
20
20
|
# @param [Version] version Version that contains the resource
|
21
21
|
# @param [String] service_sid The unique SID identifier of the Service.
|
22
|
-
# @param [String] identity
|
23
|
-
#
|
24
|
-
# external system, such as your user's UUID,
|
25
|
-
#
|
22
|
+
# @param [String] identity Customer unique identity for the Entity owner of the
|
23
|
+
# Factor. This identifier should be immutable, not PII, length between 8 and 64
|
24
|
+
# characters, and generated by your external system, such as your user's UUID,
|
25
|
+
# GUID, or SID. It can only contain dash (-) separated alphanumeric characters.
|
26
26
|
# @return [NewFactorList] NewFactorList
|
27
27
|
def initialize(version, service_sid: nil, identity: nil)
|
28
28
|
super(version)
|
@@ -175,10 +175,10 @@ module Twilio
|
|
175
175
|
# @param [Version] version Version that contains the resource
|
176
176
|
# @param [Hash] payload payload that contains response from Twilio
|
177
177
|
# @param [String] service_sid The unique SID identifier of the Service.
|
178
|
-
# @param [String] identity
|
179
|
-
#
|
180
|
-
# external system, such as your user's UUID,
|
181
|
-
#
|
178
|
+
# @param [String] identity Customer unique identity for the Entity owner of the
|
179
|
+
# Factor. This identifier should be immutable, not PII, length between 8 and 64
|
180
|
+
# characters, and generated by your external system, such as your user's UUID,
|
181
|
+
# GUID, or SID. It can only contain dash (-) separated alphanumeric characters.
|
182
182
|
# @return [NewFactorInstance] NewFactorInstance
|
183
183
|
def initialize(version, payload, service_sid: nil, identity: nil)
|
184
184
|
super(version)
|
@@ -32,7 +32,7 @@ module Twilio
|
|
32
32
|
# @param [String] identity The unique external identifier for the Entity of the
|
33
33
|
# Service. This identifier should be immutable, not PII, length between 8 and 64
|
34
34
|
# characters, and generated by your external system, such as your user's UUID,
|
35
|
-
# GUID, or SID.
|
35
|
+
# GUID, or SID. It can only contain dash (-) separated alphanumeric characters.
|
36
36
|
# @return [EntityInstance] Created EntityInstance
|
37
37
|
def create(identity: nil)
|
38
38
|
data = Twilio::Values.of({'Identity' => identity, })
|
@@ -168,7 +168,9 @@ module Twilio
|
|
168
168
|
# @param [Version] version Version that contains the resource
|
169
169
|
# @param [String] service_sid The unique SID identifier of the Service.
|
170
170
|
# @param [String] identity The unique external identifier for the Entity of the
|
171
|
-
# Service
|
171
|
+
# Service. This identifier should be immutable, not PII, length between 8 and 64
|
172
|
+
# characters, and generated by your external system, such as your user's UUID,
|
173
|
+
# GUID, or SID. It can only contain dash (-) separated alphanumeric characters.
|
172
174
|
# @return [EntityContext] EntityContext
|
173
175
|
def initialize(version, service_sid, identity)
|
174
176
|
super(version)
|
@@ -288,7 +290,9 @@ module Twilio
|
|
288
290
|
# @param [Hash] payload payload that contains response from Twilio
|
289
291
|
# @param [String] service_sid The unique SID identifier of the Service.
|
290
292
|
# @param [String] identity The unique external identifier for the Entity of the
|
291
|
-
# Service
|
293
|
+
# Service. This identifier should be immutable, not PII, length between 8 and 64
|
294
|
+
# characters, and generated by your external system, such as your user's UUID,
|
295
|
+
# GUID, or SID. It can only contain dash (-) separated alphanumeric characters.
|
292
296
|
# @return [EntityInstance] EntityInstance
|
293
297
|
def initialize(version, payload, service_sid: nil, identity: nil)
|
294
298
|
super(version)
|
@@ -0,0 +1,206 @@
|
|
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 Verify < Domain
|
12
|
+
class V2 < Version
|
13
|
+
class VerificationTemplateList < ListResource
|
14
|
+
##
|
15
|
+
# Initialize the VerificationTemplateList
|
16
|
+
# @param [Version] version Version that contains the resource
|
17
|
+
# @return [VerificationTemplateList] VerificationTemplateList
|
18
|
+
def initialize(version)
|
19
|
+
super(version)
|
20
|
+
|
21
|
+
# Path Solution
|
22
|
+
@solution = {}
|
23
|
+
@uri = "/Templates"
|
24
|
+
end
|
25
|
+
|
26
|
+
##
|
27
|
+
# Lists VerificationTemplateInstance records from the API as a list.
|
28
|
+
# Unlike stream(), this operation is eager and will load `limit` records into
|
29
|
+
# memory before returning.
|
30
|
+
# @param [String] friendly_name String filter used to query templates with a given
|
31
|
+
# friendly name
|
32
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
33
|
+
# guarantees to never return more than limit. Default is no limit
|
34
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
35
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
36
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
37
|
+
# efficient page size, i.e. min(limit, 1000)
|
38
|
+
# @return [Array] Array of up to limit results
|
39
|
+
def list(friendly_name: :unset, limit: nil, page_size: nil)
|
40
|
+
self.stream(friendly_name: friendly_name, limit: limit, page_size: page_size).entries
|
41
|
+
end
|
42
|
+
|
43
|
+
##
|
44
|
+
# Streams VerificationTemplateInstance records from the API as an Enumerable.
|
45
|
+
# This operation lazily loads records as efficiently as possible until the limit
|
46
|
+
# is reached.
|
47
|
+
# @param [String] friendly_name String filter used to query templates with a given
|
48
|
+
# friendly name
|
49
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
50
|
+
# guarantees to never return more than limit. Default is no limit.
|
51
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
52
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
53
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
54
|
+
# efficient page size, i.e. min(limit, 1000)
|
55
|
+
# @return [Enumerable] Enumerable that will yield up to limit results
|
56
|
+
def stream(friendly_name: :unset, limit: nil, page_size: nil)
|
57
|
+
limits = @version.read_limits(limit, page_size)
|
58
|
+
|
59
|
+
page = self.page(friendly_name: friendly_name, page_size: limits[:page_size], )
|
60
|
+
|
61
|
+
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
62
|
+
end
|
63
|
+
|
64
|
+
##
|
65
|
+
# When passed a block, yields VerificationTemplateInstance records from the API.
|
66
|
+
# This operation lazily loads records as efficiently as possible until the limit
|
67
|
+
# is reached.
|
68
|
+
def each
|
69
|
+
limits = @version.read_limits
|
70
|
+
|
71
|
+
page = self.page(page_size: limits[:page_size], )
|
72
|
+
|
73
|
+
@version.stream(page,
|
74
|
+
limit: limits[:limit],
|
75
|
+
page_limit: limits[:page_limit]).each {|x| yield x}
|
76
|
+
end
|
77
|
+
|
78
|
+
##
|
79
|
+
# Retrieve a single page of VerificationTemplateInstance records from the API.
|
80
|
+
# Request is executed immediately.
|
81
|
+
# @param [String] friendly_name String filter used to query templates with a given
|
82
|
+
# friendly name
|
83
|
+
# @param [String] page_token PageToken provided by the API
|
84
|
+
# @param [Integer] page_number Page Number, this value is simply for client state
|
85
|
+
# @param [Integer] page_size Number of records to return, defaults to 50
|
86
|
+
# @return [Page] Page of VerificationTemplateInstance
|
87
|
+
def page(friendly_name: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
88
|
+
params = Twilio::Values.of({
|
89
|
+
'FriendlyName' => friendly_name,
|
90
|
+
'PageToken' => page_token,
|
91
|
+
'Page' => page_number,
|
92
|
+
'PageSize' => page_size,
|
93
|
+
})
|
94
|
+
|
95
|
+
response = @version.page('GET', @uri, params: params)
|
96
|
+
|
97
|
+
VerificationTemplatePage.new(@version, response, @solution)
|
98
|
+
end
|
99
|
+
|
100
|
+
##
|
101
|
+
# Retrieve a single page of VerificationTemplateInstance records from the API.
|
102
|
+
# Request is executed immediately.
|
103
|
+
# @param [String] target_url API-generated URL for the requested results page
|
104
|
+
# @return [Page] Page of VerificationTemplateInstance
|
105
|
+
def get_page(target_url)
|
106
|
+
response = @version.domain.request(
|
107
|
+
'GET',
|
108
|
+
target_url
|
109
|
+
)
|
110
|
+
VerificationTemplatePage.new(@version, response, @solution)
|
111
|
+
end
|
112
|
+
|
113
|
+
##
|
114
|
+
# Provide a user friendly representation
|
115
|
+
def to_s
|
116
|
+
'#<Twilio.Verify.V2.VerificationTemplateList>'
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
class VerificationTemplatePage < Page
|
121
|
+
##
|
122
|
+
# Initialize the VerificationTemplatePage
|
123
|
+
# @param [Version] version Version that contains the resource
|
124
|
+
# @param [Response] response Response from the API
|
125
|
+
# @param [Hash] solution Path solution for the resource
|
126
|
+
# @return [VerificationTemplatePage] VerificationTemplatePage
|
127
|
+
def initialize(version, response, solution)
|
128
|
+
super(version, response)
|
129
|
+
|
130
|
+
# Path Solution
|
131
|
+
@solution = solution
|
132
|
+
end
|
133
|
+
|
134
|
+
##
|
135
|
+
# Build an instance of VerificationTemplateInstance
|
136
|
+
# @param [Hash] payload Payload response from the API
|
137
|
+
# @return [VerificationTemplateInstance] VerificationTemplateInstance
|
138
|
+
def get_instance(payload)
|
139
|
+
VerificationTemplateInstance.new(@version, payload, )
|
140
|
+
end
|
141
|
+
|
142
|
+
##
|
143
|
+
# Provide a user friendly representation
|
144
|
+
def to_s
|
145
|
+
'<Twilio.Verify.V2.VerificationTemplatePage>'
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
class VerificationTemplateInstance < InstanceResource
|
150
|
+
##
|
151
|
+
# Initialize the VerificationTemplateInstance
|
152
|
+
# @param [Version] version Version that contains the resource
|
153
|
+
# @param [Hash] payload payload that contains response from Twilio
|
154
|
+
# @return [VerificationTemplateInstance] VerificationTemplateInstance
|
155
|
+
def initialize(version, payload)
|
156
|
+
super(version)
|
157
|
+
|
158
|
+
# Marshaled Properties
|
159
|
+
@properties = {
|
160
|
+
'sid' => payload['sid'],
|
161
|
+
'account_sid' => payload['account_sid'],
|
162
|
+
'friendly_name' => payload['friendly_name'],
|
163
|
+
'translations' => payload['translations'],
|
164
|
+
}
|
165
|
+
end
|
166
|
+
|
167
|
+
##
|
168
|
+
# @return [String] A string that uniquely identifies this Template
|
169
|
+
def sid
|
170
|
+
@properties['sid']
|
171
|
+
end
|
172
|
+
|
173
|
+
##
|
174
|
+
# @return [String] Account Sid
|
175
|
+
def account_sid
|
176
|
+
@properties['account_sid']
|
177
|
+
end
|
178
|
+
|
179
|
+
##
|
180
|
+
# @return [String] A string to describe the verification template
|
181
|
+
def friendly_name
|
182
|
+
@properties['friendly_name']
|
183
|
+
end
|
184
|
+
|
185
|
+
##
|
186
|
+
# @return [Hash] Ojbect with the template translations.
|
187
|
+
def translations
|
188
|
+
@properties['translations']
|
189
|
+
end
|
190
|
+
|
191
|
+
##
|
192
|
+
# Provide a user friendly representation
|
193
|
+
def to_s
|
194
|
+
"<Twilio.Verify.V2.VerificationTemplateInstance>"
|
195
|
+
end
|
196
|
+
|
197
|
+
##
|
198
|
+
# Provide a detailed, user friendly representation
|
199
|
+
def inspect
|
200
|
+
"<Twilio.Verify.V2.VerificationTemplateInstance>"
|
201
|
+
end
|
202
|
+
end
|
203
|
+
end
|
204
|
+
end
|
205
|
+
end
|
206
|
+
end
|
@@ -18,6 +18,7 @@ module Twilio
|
|
18
18
|
@forms = nil
|
19
19
|
@services = nil
|
20
20
|
@verification_attempts = nil
|
21
|
+
@verification_templates = nil
|
21
22
|
end
|
22
23
|
|
23
24
|
##
|
@@ -67,6 +68,12 @@ module Twilio
|
|
67
68
|
end
|
68
69
|
end
|
69
70
|
|
71
|
+
##
|
72
|
+
# @return [Twilio::REST::Verify::V2::VerificationTemplateContext]
|
73
|
+
def verification_templates
|
74
|
+
@verification_templates ||= VerificationTemplateList.new self
|
75
|
+
end
|
76
|
+
|
70
77
|
##
|
71
78
|
# Provide a user friendly representation
|
72
79
|
def to_s
|
@@ -55,6 +55,12 @@ module Twilio
|
|
55
55
|
self.v2.verification_attempts(sid)
|
56
56
|
end
|
57
57
|
|
58
|
+
##
|
59
|
+
# @return [Twilio::REST::Verify::V2::VerificationTemplateInstance]
|
60
|
+
def verification_templates
|
61
|
+
self.v2.verification_templates()
|
62
|
+
end
|
63
|
+
|
58
64
|
##
|
59
65
|
# Provide a user friendly representation
|
60
66
|
def to_s
|
data/lib/twilio-ruby/version.rb
CHANGED
@@ -0,0 +1,13 @@
|
|
1
|
+
sonar.projectKey=twilio_twilio-ruby
|
2
|
+
sonar.projectName=twilio-ruby
|
3
|
+
sonar.organization=twilio
|
4
|
+
|
5
|
+
sonar.sources=lib/twilio-ruby
|
6
|
+
# Exclude any auto-generated source code
|
7
|
+
sonar.exclusions=lib/twilio-ruby/rest/**/*
|
8
|
+
sonar.tests=spec/
|
9
|
+
# Exclude any auto-generated integration tests
|
10
|
+
sonar.test.exclusions=spec/integration/**/*.spec.rb
|
11
|
+
|
12
|
+
# For Code Coverage analysis
|
13
|
+
sonar.ruby.coverage.reportPaths=coverage/.resultset.sonarqube.json
|
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.58.3
|
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-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -444,6 +444,7 @@ files:
|
|
444
444
|
- lib/twilio-ruby/rest/insights/v1/call/event.rb
|
445
445
|
- lib/twilio-ruby/rest/insights/v1/call/metric.rb
|
446
446
|
- lib/twilio-ruby/rest/insights/v1/call/summary.rb
|
447
|
+
- lib/twilio-ruby/rest/insights/v1/call_summaries.rb
|
447
448
|
- lib/twilio-ruby/rest/insights/v1/room.rb
|
448
449
|
- lib/twilio-ruby/rest/insights/v1/room/participant.rb
|
449
450
|
- lib/twilio-ruby/rest/ip_messaging.rb
|
@@ -574,6 +575,8 @@ files:
|
|
574
575
|
- lib/twilio-ruby/rest/pricing/v1/voice/country.rb
|
575
576
|
- lib/twilio-ruby/rest/pricing/v1/voice/number.rb
|
576
577
|
- lib/twilio-ruby/rest/pricing/v2.rb
|
578
|
+
- lib/twilio-ruby/rest/pricing/v2/country.rb
|
579
|
+
- lib/twilio-ruby/rest/pricing/v2/number.rb
|
577
580
|
- lib/twilio-ruby/rest/pricing/v2/voice.rb
|
578
581
|
- lib/twilio-ruby/rest/pricing/v2/voice/country.rb
|
579
582
|
- lib/twilio-ruby/rest/pricing/v2/voice/number.rb
|
@@ -711,6 +714,7 @@ files:
|
|
711
714
|
- lib/twilio-ruby/rest/verify/v2/service/verification_check.rb
|
712
715
|
- lib/twilio-ruby/rest/verify/v2/service/webhook.rb
|
713
716
|
- lib/twilio-ruby/rest/verify/v2/verification_attempt.rb
|
717
|
+
- lib/twilio-ruby/rest/verify/v2/verification_template.rb
|
714
718
|
- lib/twilio-ruby/rest/video.rb
|
715
719
|
- lib/twilio-ruby/rest/video/v1.rb
|
716
720
|
- lib/twilio-ruby/rest/video/v1/composition.rb
|
@@ -753,6 +757,7 @@ files:
|
|
753
757
|
- lib/twilio-ruby/util.rb
|
754
758
|
- lib/twilio-ruby/util/configuration.rb
|
755
759
|
- lib/twilio-ruby/version.rb
|
760
|
+
- sonar-project.properties
|
756
761
|
- twilio-ruby.gemspec
|
757
762
|
homepage: https://github.com/twilio/twilio-ruby
|
758
763
|
licenses:
|