twilio-ruby 5.72.1 → 5.73.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/pr-lint.yml +8 -2
- data/.github/workflows/test-and-deploy.yml +3 -3
- data/CHANGES.md +89 -0
- data/LICENSE +1 -1
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +160 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +251 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +59 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +22 -16
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +17 -1
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +2 -2
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service.rb +4 -4
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +2 -2
- data/lib/twilio-ruby/rest/client.rb +14 -0
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +195 -0
- data/lib/twilio-ruby/rest/content/v1/content.rb +346 -0
- data/lib/twilio-ruby/rest/content/v1.rb +45 -0
- data/lib/twilio-ruby/rest/content.rb +47 -0
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +1 -1
- data/lib/twilio-ruby/rest/events/v1/schema/version.rb +1 -1
- data/lib/twilio-ruby/rest/events/v1/schema.rb +1 -1
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +156 -0
- data/lib/twilio-ruby/rest/flex_api/v1/good_data.rb +190 -0
- data/lib/twilio-ruby/rest/flex_api/v1/user_roles.rb +166 -0
- data/lib/twilio-ruby/rest/flex_api/v1.rb +21 -0
- data/lib/twilio-ruby/rest/flex_api.rb +18 -0
- data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +7 -0
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +7 -0
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v1/room.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +4 -4
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +81 -6
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +1 -1
- data/lib/twilio-ruby/rest/media/v1/media_recording.rb +2 -2
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/domain_cert.rb +257 -0
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +267 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +71 -1
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1.rb +34 -0
- data/lib/twilio-ruby/rest/messaging.rb +18 -0
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +7 -0
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +1 -1
- data/lib/twilio-ruby/rest/oauth/v1/oauth.rb +162 -0
- data/lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb +242 -0
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +157 -0
- data/lib/twilio-ruby/rest/oauth/v1/user_info.rb +193 -0
- data/lib/twilio-ruby/rest/oauth/v1.rb +56 -0
- data/lib/twilio-ruby/rest/oauth.rb +62 -0
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +2 -2
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +1 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb +2 -2
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +1 -1
- data/lib/twilio-ruby/rest/preview.rb +0 -33
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +1 -14
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +5 -46
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/settings_update.rb +240 -0
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +4 -4
- data/lib/twilio-ruby/rest/supersim/v1.rb +7 -0
- data/lib/twilio-ruby/rest/supersim.rb +6 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +18 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +3 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +12 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +5 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +10 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +3 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +6 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +9 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +13 -13
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +13 -13
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +3 -3
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +1 -9
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +1 -7
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +0 -8
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +0 -8
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +0 -6
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +0 -8
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +0 -8
- data/lib/twilio-ruby/rest/verify/v2/service.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/template.rb +7 -0
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +4 -4
- data/lib/twilio-ruby/rest/video/v1/composition.rb +3 -3
- data/lib/twilio-ruby/rest/video/v1/recording.rb +2 -2
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +2 -2
- data/lib/twilio-ruby/rest/video/v1/room.rb +4 -4
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +2 -2
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +1 -1
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +3 -3
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +2 -2
- data/lib/twilio-ruby/twiml/voice_response.rb +10 -6
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +20 -8
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb +0 -165
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_channel.rb +0 -225
- data/lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb +0 -195
- data/lib/twilio-ruby/rest/preview/trusted_comms/cps.rb +0 -186
- data/lib/twilio-ruby/rest/preview/trusted_comms/current_call.rb +0 -277
- data/lib/twilio-ruby/rest/preview/trusted_comms.rb +0 -65
@@ -1,225 +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 Preview < Domain
|
12
|
-
class TrustedComms < 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.
|
15
|
-
class BrandedChannelList < ListResource
|
16
|
-
##
|
17
|
-
# Initialize the BrandedChannelList
|
18
|
-
# @param [Version] version Version that contains the resource
|
19
|
-
# @return [BrandedChannelList] BrandedChannelList
|
20
|
-
def initialize(version)
|
21
|
-
super(version)
|
22
|
-
|
23
|
-
# Path Solution
|
24
|
-
@solution = {}
|
25
|
-
end
|
26
|
-
|
27
|
-
##
|
28
|
-
# Provide a user friendly representation
|
29
|
-
def to_s
|
30
|
-
'#<Twilio.Preview.TrustedComms.BrandedChannelList>'
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
##
|
35
|
-
# 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.
|
36
|
-
class BrandedChannelPage < Page
|
37
|
-
##
|
38
|
-
# Initialize the BrandedChannelPage
|
39
|
-
# @param [Version] version Version that contains the resource
|
40
|
-
# @param [Response] response Response from the API
|
41
|
-
# @param [Hash] solution Path solution for the resource
|
42
|
-
# @return [BrandedChannelPage] BrandedChannelPage
|
43
|
-
def initialize(version, response, solution)
|
44
|
-
super(version, response)
|
45
|
-
|
46
|
-
# Path Solution
|
47
|
-
@solution = solution
|
48
|
-
end
|
49
|
-
|
50
|
-
##
|
51
|
-
# Build an instance of BrandedChannelInstance
|
52
|
-
# @param [Hash] payload Payload response from the API
|
53
|
-
# @return [BrandedChannelInstance] BrandedChannelInstance
|
54
|
-
def get_instance(payload)
|
55
|
-
BrandedChannelInstance.new(@version, payload, )
|
56
|
-
end
|
57
|
-
|
58
|
-
##
|
59
|
-
# Provide a user friendly representation
|
60
|
-
def to_s
|
61
|
-
'<Twilio.Preview.TrustedComms.BrandedChannelPage>'
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
##
|
66
|
-
# 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.
|
67
|
-
class BrandedChannelContext < InstanceContext
|
68
|
-
##
|
69
|
-
# Initialize the BrandedChannelContext
|
70
|
-
# @param [Version] version Version that contains the resource
|
71
|
-
# @param [String] sid The unique SID identifier of the Branded Channel.
|
72
|
-
# @return [BrandedChannelContext] BrandedChannelContext
|
73
|
-
def initialize(version, sid)
|
74
|
-
super(version)
|
75
|
-
|
76
|
-
# Path Solution
|
77
|
-
@solution = {sid: sid, }
|
78
|
-
@uri = "/BrandedChannels/#{@solution[:sid]}"
|
79
|
-
|
80
|
-
# Dependents
|
81
|
-
@channels = nil
|
82
|
-
end
|
83
|
-
|
84
|
-
##
|
85
|
-
# Fetch the BrandedChannelInstance
|
86
|
-
# @return [BrandedChannelInstance] Fetched BrandedChannelInstance
|
87
|
-
def fetch
|
88
|
-
payload = @version.fetch('GET', @uri)
|
89
|
-
|
90
|
-
BrandedChannelInstance.new(@version, payload, sid: @solution[:sid], )
|
91
|
-
end
|
92
|
-
|
93
|
-
##
|
94
|
-
# Access the channels
|
95
|
-
# @return [ChannelList]
|
96
|
-
# @return [ChannelContext]
|
97
|
-
def channels
|
98
|
-
unless @channels
|
99
|
-
@channels = ChannelList.new(@version, branded_channel_sid: @solution[:sid], )
|
100
|
-
end
|
101
|
-
|
102
|
-
@channels
|
103
|
-
end
|
104
|
-
|
105
|
-
##
|
106
|
-
# Provide a user friendly representation
|
107
|
-
def to_s
|
108
|
-
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
109
|
-
"#<Twilio.Preview.TrustedComms.BrandedChannelContext #{context}>"
|
110
|
-
end
|
111
|
-
|
112
|
-
##
|
113
|
-
# Provide a detailed, user friendly representation
|
114
|
-
def inspect
|
115
|
-
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
116
|
-
"#<Twilio.Preview.TrustedComms.BrandedChannelContext #{context}>"
|
117
|
-
end
|
118
|
-
end
|
119
|
-
|
120
|
-
##
|
121
|
-
# 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.
|
122
|
-
class BrandedChannelInstance < InstanceResource
|
123
|
-
##
|
124
|
-
# Initialize the BrandedChannelInstance
|
125
|
-
# @param [Version] version Version that contains the resource
|
126
|
-
# @param [Hash] payload payload that contains response from Twilio
|
127
|
-
# @param [String] sid The unique SID identifier of the Branded Channel.
|
128
|
-
# @return [BrandedChannelInstance] BrandedChannelInstance
|
129
|
-
def initialize(version, payload, sid: nil)
|
130
|
-
super(version)
|
131
|
-
|
132
|
-
# Marshaled Properties
|
133
|
-
@properties = {
|
134
|
-
'account_sid' => payload['account_sid'],
|
135
|
-
'business_sid' => payload['business_sid'],
|
136
|
-
'brand_sid' => payload['brand_sid'],
|
137
|
-
'sid' => payload['sid'],
|
138
|
-
'links' => payload['links'],
|
139
|
-
'url' => payload['url'],
|
140
|
-
}
|
141
|
-
|
142
|
-
# Context
|
143
|
-
@instance_context = nil
|
144
|
-
@params = {'sid' => sid || @properties['sid'], }
|
145
|
-
end
|
146
|
-
|
147
|
-
##
|
148
|
-
# Generate an instance context for the instance, the context is capable of
|
149
|
-
# performing various actions. All instance actions are proxied to the context
|
150
|
-
# @return [BrandedChannelContext] BrandedChannelContext for this BrandedChannelInstance
|
151
|
-
def context
|
152
|
-
unless @instance_context
|
153
|
-
@instance_context = BrandedChannelContext.new(@version, @params['sid'], )
|
154
|
-
end
|
155
|
-
@instance_context
|
156
|
-
end
|
157
|
-
|
158
|
-
##
|
159
|
-
# @return [String] Account Sid.
|
160
|
-
def account_sid
|
161
|
-
@properties['account_sid']
|
162
|
-
end
|
163
|
-
|
164
|
-
##
|
165
|
-
# @return [String] Business Sid.
|
166
|
-
def business_sid
|
167
|
-
@properties['business_sid']
|
168
|
-
end
|
169
|
-
|
170
|
-
##
|
171
|
-
# @return [String] Brand Sid.
|
172
|
-
def brand_sid
|
173
|
-
@properties['brand_sid']
|
174
|
-
end
|
175
|
-
|
176
|
-
##
|
177
|
-
# @return [String] Branded Channel Sid.
|
178
|
-
def sid
|
179
|
-
@properties['sid']
|
180
|
-
end
|
181
|
-
|
182
|
-
##
|
183
|
-
# @return [String] Nested resource URLs.
|
184
|
-
def links
|
185
|
-
@properties['links']
|
186
|
-
end
|
187
|
-
|
188
|
-
##
|
189
|
-
# @return [String] The URL of this resource.
|
190
|
-
def url
|
191
|
-
@properties['url']
|
192
|
-
end
|
193
|
-
|
194
|
-
##
|
195
|
-
# Fetch the BrandedChannelInstance
|
196
|
-
# @return [BrandedChannelInstance] Fetched BrandedChannelInstance
|
197
|
-
def fetch
|
198
|
-
context.fetch
|
199
|
-
end
|
200
|
-
|
201
|
-
##
|
202
|
-
# Access the channels
|
203
|
-
# @return [channels] channels
|
204
|
-
def channels
|
205
|
-
context.channels
|
206
|
-
end
|
207
|
-
|
208
|
-
##
|
209
|
-
# Provide a user friendly representation
|
210
|
-
def to_s
|
211
|
-
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
212
|
-
"<Twilio.Preview.TrustedComms.BrandedChannelInstance #{values}>"
|
213
|
-
end
|
214
|
-
|
215
|
-
##
|
216
|
-
# Provide a detailed, user friendly representation
|
217
|
-
def inspect
|
218
|
-
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
219
|
-
"<Twilio.Preview.TrustedComms.BrandedChannelInstance #{values}>"
|
220
|
-
end
|
221
|
-
end
|
222
|
-
end
|
223
|
-
end
|
224
|
-
end
|
225
|
-
end
|
@@ -1,195 +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 Preview < Domain
|
12
|
-
class TrustedComms < 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.
|
15
|
-
class BrandsInformationList < ListResource
|
16
|
-
##
|
17
|
-
# Initialize the BrandsInformationList
|
18
|
-
# @param [Version] version Version that contains the resource
|
19
|
-
# @return [BrandsInformationList] BrandsInformationList
|
20
|
-
def initialize(version)
|
21
|
-
super(version)
|
22
|
-
|
23
|
-
# Path Solution
|
24
|
-
@solution = {}
|
25
|
-
end
|
26
|
-
|
27
|
-
##
|
28
|
-
# Provide a user friendly representation
|
29
|
-
def to_s
|
30
|
-
'#<Twilio.Preview.TrustedComms.BrandsInformationList>'
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
##
|
35
|
-
# 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.
|
36
|
-
class BrandsInformationPage < Page
|
37
|
-
##
|
38
|
-
# Initialize the BrandsInformationPage
|
39
|
-
# @param [Version] version Version that contains the resource
|
40
|
-
# @param [Response] response Response from the API
|
41
|
-
# @param [Hash] solution Path solution for the resource
|
42
|
-
# @return [BrandsInformationPage] BrandsInformationPage
|
43
|
-
def initialize(version, response, solution)
|
44
|
-
super(version, response)
|
45
|
-
|
46
|
-
# Path Solution
|
47
|
-
@solution = solution
|
48
|
-
end
|
49
|
-
|
50
|
-
##
|
51
|
-
# Build an instance of BrandsInformationInstance
|
52
|
-
# @param [Hash] payload Payload response from the API
|
53
|
-
# @return [BrandsInformationInstance] BrandsInformationInstance
|
54
|
-
def get_instance(payload)
|
55
|
-
BrandsInformationInstance.new(@version, payload, )
|
56
|
-
end
|
57
|
-
|
58
|
-
##
|
59
|
-
# Provide a user friendly representation
|
60
|
-
def to_s
|
61
|
-
'<Twilio.Preview.TrustedComms.BrandsInformationPage>'
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
##
|
66
|
-
# 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.
|
67
|
-
class BrandsInformationContext < InstanceContext
|
68
|
-
##
|
69
|
-
# Initialize the BrandsInformationContext
|
70
|
-
# @param [Version] version Version that contains the resource
|
71
|
-
# @return [BrandsInformationContext] BrandsInformationContext
|
72
|
-
def initialize(version)
|
73
|
-
super(version)
|
74
|
-
|
75
|
-
# Path Solution
|
76
|
-
@solution = {}
|
77
|
-
@uri = "/BrandsInformation"
|
78
|
-
end
|
79
|
-
|
80
|
-
##
|
81
|
-
# Fetch the BrandsInformationInstance
|
82
|
-
# @param [String] if_none_match Standard `If-None-Match` HTTP header. For more
|
83
|
-
# information visit:
|
84
|
-
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match.
|
85
|
-
# @return [BrandsInformationInstance] Fetched BrandsInformationInstance
|
86
|
-
def fetch(if_none_match: :unset)
|
87
|
-
headers = Twilio::Values.of({'If-None-Match' => if_none_match, })
|
88
|
-
|
89
|
-
payload = @version.fetch('GET', @uri, headers: headers)
|
90
|
-
|
91
|
-
BrandsInformationInstance.new(@version, payload, )
|
92
|
-
end
|
93
|
-
|
94
|
-
##
|
95
|
-
# Provide a user friendly representation
|
96
|
-
def to_s
|
97
|
-
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
98
|
-
"#<Twilio.Preview.TrustedComms.BrandsInformationContext #{context}>"
|
99
|
-
end
|
100
|
-
|
101
|
-
##
|
102
|
-
# Provide a detailed, user friendly representation
|
103
|
-
def inspect
|
104
|
-
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
105
|
-
"#<Twilio.Preview.TrustedComms.BrandsInformationContext #{context}>"
|
106
|
-
end
|
107
|
-
end
|
108
|
-
|
109
|
-
##
|
110
|
-
# 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.
|
111
|
-
class BrandsInformationInstance < InstanceResource
|
112
|
-
##
|
113
|
-
# Initialize the BrandsInformationInstance
|
114
|
-
# @param [Version] version Version that contains the resource
|
115
|
-
# @param [Hash] payload payload that contains response from Twilio
|
116
|
-
# @return [BrandsInformationInstance] BrandsInformationInstance
|
117
|
-
def initialize(version, payload)
|
118
|
-
super(version)
|
119
|
-
|
120
|
-
# Marshaled Properties
|
121
|
-
@properties = {
|
122
|
-
'update_time' => Twilio.deserialize_iso8601_datetime(payload['update_time']),
|
123
|
-
'file_link' => payload['file_link'],
|
124
|
-
'file_link_ttl_in_seconds' => payload['file_link_ttl_in_seconds'],
|
125
|
-
'url' => payload['url'],
|
126
|
-
}
|
127
|
-
|
128
|
-
# Context
|
129
|
-
@instance_context = nil
|
130
|
-
@params = {}
|
131
|
-
end
|
132
|
-
|
133
|
-
##
|
134
|
-
# Generate an instance context for the instance, the context is capable of
|
135
|
-
# performing various actions. All instance actions are proxied to the context
|
136
|
-
# @return [BrandsInformationContext] BrandsInformationContext for this BrandsInformationInstance
|
137
|
-
def context
|
138
|
-
unless @instance_context
|
139
|
-
@instance_context = BrandsInformationContext.new(@version, )
|
140
|
-
end
|
141
|
-
@instance_context
|
142
|
-
end
|
143
|
-
|
144
|
-
##
|
145
|
-
# @return [Time] Creation time of the information retrieved
|
146
|
-
def update_time
|
147
|
-
@properties['update_time']
|
148
|
-
end
|
149
|
-
|
150
|
-
##
|
151
|
-
# @return [String] The URL to the brands information
|
152
|
-
def file_link
|
153
|
-
@properties['file_link']
|
154
|
-
end
|
155
|
-
|
156
|
-
##
|
157
|
-
# @return [String] How long will be the `file_link` valid
|
158
|
-
def file_link_ttl_in_seconds
|
159
|
-
@properties['file_link_ttl_in_seconds']
|
160
|
-
end
|
161
|
-
|
162
|
-
##
|
163
|
-
# @return [String] The URL of this resource
|
164
|
-
def url
|
165
|
-
@properties['url']
|
166
|
-
end
|
167
|
-
|
168
|
-
##
|
169
|
-
# Fetch the BrandsInformationInstance
|
170
|
-
# @param [String] if_none_match Standard `If-None-Match` HTTP header. For more
|
171
|
-
# information visit:
|
172
|
-
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match.
|
173
|
-
# @return [BrandsInformationInstance] Fetched BrandsInformationInstance
|
174
|
-
def fetch(if_none_match: :unset)
|
175
|
-
context.fetch(if_none_match: if_none_match, )
|
176
|
-
end
|
177
|
-
|
178
|
-
##
|
179
|
-
# Provide a user friendly representation
|
180
|
-
def to_s
|
181
|
-
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
182
|
-
"<Twilio.Preview.TrustedComms.BrandsInformationInstance #{values}>"
|
183
|
-
end
|
184
|
-
|
185
|
-
##
|
186
|
-
# Provide a detailed, user friendly representation
|
187
|
-
def inspect
|
188
|
-
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
189
|
-
"<Twilio.Preview.TrustedComms.BrandsInformationInstance #{values}>"
|
190
|
-
end
|
191
|
-
end
|
192
|
-
end
|
193
|
-
end
|
194
|
-
end
|
195
|
-
end
|
@@ -1,186 +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 Preview < Domain
|
12
|
-
class TrustedComms < 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.
|
15
|
-
class CpsList < ListResource
|
16
|
-
##
|
17
|
-
# Initialize the CpsList
|
18
|
-
# @param [Version] version Version that contains the resource
|
19
|
-
# @return [CpsList] CpsList
|
20
|
-
def initialize(version)
|
21
|
-
super(version)
|
22
|
-
|
23
|
-
# Path Solution
|
24
|
-
@solution = {}
|
25
|
-
end
|
26
|
-
|
27
|
-
##
|
28
|
-
# Provide a user friendly representation
|
29
|
-
def to_s
|
30
|
-
'#<Twilio.Preview.TrustedComms.CpsList>'
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
##
|
35
|
-
# 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.
|
36
|
-
class CpsPage < Page
|
37
|
-
##
|
38
|
-
# Initialize the CpsPage
|
39
|
-
# @param [Version] version Version that contains the resource
|
40
|
-
# @param [Response] response Response from the API
|
41
|
-
# @param [Hash] solution Path solution for the resource
|
42
|
-
# @return [CpsPage] CpsPage
|
43
|
-
def initialize(version, response, solution)
|
44
|
-
super(version, response)
|
45
|
-
|
46
|
-
# Path Solution
|
47
|
-
@solution = solution
|
48
|
-
end
|
49
|
-
|
50
|
-
##
|
51
|
-
# Build an instance of CpsInstance
|
52
|
-
# @param [Hash] payload Payload response from the API
|
53
|
-
# @return [CpsInstance] CpsInstance
|
54
|
-
def get_instance(payload)
|
55
|
-
CpsInstance.new(@version, payload, )
|
56
|
-
end
|
57
|
-
|
58
|
-
##
|
59
|
-
# Provide a user friendly representation
|
60
|
-
def to_s
|
61
|
-
'<Twilio.Preview.TrustedComms.CpsPage>'
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
##
|
66
|
-
# 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.
|
67
|
-
class CpsContext < InstanceContext
|
68
|
-
##
|
69
|
-
# Initialize the CpsContext
|
70
|
-
# @param [Version] version Version that contains the resource
|
71
|
-
# @return [CpsContext] CpsContext
|
72
|
-
def initialize(version)
|
73
|
-
super(version)
|
74
|
-
|
75
|
-
# Path Solution
|
76
|
-
@solution = {}
|
77
|
-
@uri = "/CPS"
|
78
|
-
end
|
79
|
-
|
80
|
-
##
|
81
|
-
# Fetch the CpsInstance
|
82
|
-
# @param [String] x_xcnam_sensitive_phone_number Phone number used to retrieve its
|
83
|
-
# corresponding CPS.
|
84
|
-
# @return [CpsInstance] Fetched CpsInstance
|
85
|
-
def fetch(x_xcnam_sensitive_phone_number: :unset)
|
86
|
-
headers = Twilio::Values.of({'X-Xcnam-Sensitive-Phone-Number' => x_xcnam_sensitive_phone_number, })
|
87
|
-
|
88
|
-
payload = @version.fetch('GET', @uri, headers: headers)
|
89
|
-
|
90
|
-
CpsInstance.new(@version, payload, )
|
91
|
-
end
|
92
|
-
|
93
|
-
##
|
94
|
-
# Provide a user friendly representation
|
95
|
-
def to_s
|
96
|
-
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
97
|
-
"#<Twilio.Preview.TrustedComms.CpsContext #{context}>"
|
98
|
-
end
|
99
|
-
|
100
|
-
##
|
101
|
-
# Provide a detailed, user friendly representation
|
102
|
-
def inspect
|
103
|
-
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
104
|
-
"#<Twilio.Preview.TrustedComms.CpsContext #{context}>"
|
105
|
-
end
|
106
|
-
end
|
107
|
-
|
108
|
-
##
|
109
|
-
# 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.
|
110
|
-
class CpsInstance < InstanceResource
|
111
|
-
##
|
112
|
-
# Initialize the CpsInstance
|
113
|
-
# @param [Version] version Version that contains the resource
|
114
|
-
# @param [Hash] payload payload that contains response from Twilio
|
115
|
-
# @return [CpsInstance] CpsInstance
|
116
|
-
def initialize(version, payload)
|
117
|
-
super(version)
|
118
|
-
|
119
|
-
# Marshaled Properties
|
120
|
-
@properties = {
|
121
|
-
'cps_url' => payload['cps_url'],
|
122
|
-
'phone_number' => payload['phone_number'],
|
123
|
-
'url' => payload['url'],
|
124
|
-
}
|
125
|
-
|
126
|
-
# Context
|
127
|
-
@instance_context = nil
|
128
|
-
@params = {}
|
129
|
-
end
|
130
|
-
|
131
|
-
##
|
132
|
-
# Generate an instance context for the instance, the context is capable of
|
133
|
-
# performing various actions. All instance actions are proxied to the context
|
134
|
-
# @return [CpsContext] CpsContext for this CpsInstance
|
135
|
-
def context
|
136
|
-
unless @instance_context
|
137
|
-
@instance_context = CpsContext.new(@version, )
|
138
|
-
end
|
139
|
-
@instance_context
|
140
|
-
end
|
141
|
-
|
142
|
-
##
|
143
|
-
# @return [String] CPS URL of the phone number.
|
144
|
-
def cps_url
|
145
|
-
@properties['cps_url']
|
146
|
-
end
|
147
|
-
|
148
|
-
##
|
149
|
-
# @return [String] Phone number passed.
|
150
|
-
def phone_number
|
151
|
-
@properties['phone_number']
|
152
|
-
end
|
153
|
-
|
154
|
-
##
|
155
|
-
# @return [String] The URL of this resource.
|
156
|
-
def url
|
157
|
-
@properties['url']
|
158
|
-
end
|
159
|
-
|
160
|
-
##
|
161
|
-
# Fetch the CpsInstance
|
162
|
-
# @param [String] x_xcnam_sensitive_phone_number Phone number used to retrieve its
|
163
|
-
# corresponding CPS.
|
164
|
-
# @return [CpsInstance] Fetched CpsInstance
|
165
|
-
def fetch(x_xcnam_sensitive_phone_number: :unset)
|
166
|
-
context.fetch(x_xcnam_sensitive_phone_number: x_xcnam_sensitive_phone_number, )
|
167
|
-
end
|
168
|
-
|
169
|
-
##
|
170
|
-
# Provide a user friendly representation
|
171
|
-
def to_s
|
172
|
-
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
173
|
-
"<Twilio.Preview.TrustedComms.CpsInstance #{values}>"
|
174
|
-
end
|
175
|
-
|
176
|
-
##
|
177
|
-
# Provide a detailed, user friendly representation
|
178
|
-
def inspect
|
179
|
-
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
180
|
-
"<Twilio.Preview.TrustedComms.CpsInstance #{values}>"
|
181
|
-
end
|
182
|
-
end
|
183
|
-
end
|
184
|
-
end
|
185
|
-
end
|
186
|
-
end
|