twilio-ruby 5.73.3 → 5.73.4
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 +16 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +195 -0
- data/lib/twilio-ruby/rest/content/v1/content.rb +18 -9
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +156 -0
- data/lib/twilio-ruby/rest/flex_api/v1.rb +7 -0
- data/lib/twilio-ruby/rest/flex_api.rb +6 -0
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +81 -6
- 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.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/preview.rb +0 -33
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +6 -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
@@ -0,0 +1,257 @@
|
|
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 Messaging < Domain
|
12
|
+
class V1 < Version
|
13
|
+
##
|
14
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
15
|
+
class DomainCertsList < ListResource
|
16
|
+
##
|
17
|
+
# Initialize the DomainCertsList
|
18
|
+
# @param [Version] version Version that contains the resource
|
19
|
+
# @return [DomainCertsList] DomainCertsList
|
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.Messaging.V1.DomainCertsList>'
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
##
|
35
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
36
|
+
class DomainCertsPage < Page
|
37
|
+
##
|
38
|
+
# Initialize the DomainCertsPage
|
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 [DomainCertsPage] DomainCertsPage
|
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 DomainCertsInstance
|
52
|
+
# @param [Hash] payload Payload response from the API
|
53
|
+
# @return [DomainCertsInstance] DomainCertsInstance
|
54
|
+
def get_instance(payload)
|
55
|
+
DomainCertsInstance.new(@version, payload, )
|
56
|
+
end
|
57
|
+
|
58
|
+
##
|
59
|
+
# Provide a user friendly representation
|
60
|
+
def to_s
|
61
|
+
'<Twilio.Messaging.V1.DomainCertsPage>'
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
##
|
66
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
67
|
+
class DomainCertsContext < InstanceContext
|
68
|
+
##
|
69
|
+
# Initialize the DomainCertsContext
|
70
|
+
# @param [Version] version Version that contains the resource
|
71
|
+
# @param [String] domain_sid Unique string used to identify the domain that this
|
72
|
+
# certificate should be associated with.
|
73
|
+
# @return [DomainCertsContext] DomainCertsContext
|
74
|
+
def initialize(version, domain_sid)
|
75
|
+
super(version)
|
76
|
+
|
77
|
+
# Path Solution
|
78
|
+
@solution = {domain_sid: domain_sid, }
|
79
|
+
@uri = "/LinkShortening/Domains/#{@solution[:domain_sid]}/Certificate"
|
80
|
+
end
|
81
|
+
|
82
|
+
##
|
83
|
+
# Update the DomainCertsInstance
|
84
|
+
# @param [String] tls_cert Contains the full TLS certificate and private for this
|
85
|
+
# domain in PEM format: https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail.
|
86
|
+
# Twilio uses this information to process HTTPS traffic sent to your domain.
|
87
|
+
# @return [DomainCertsInstance] Updated DomainCertsInstance
|
88
|
+
def update(tls_cert: nil)
|
89
|
+
data = Twilio::Values.of({'TlsCert' => tls_cert, })
|
90
|
+
|
91
|
+
payload = @version.update('POST', @uri, data: data)
|
92
|
+
|
93
|
+
DomainCertsInstance.new(@version, payload, domain_sid: @solution[:domain_sid], )
|
94
|
+
end
|
95
|
+
|
96
|
+
##
|
97
|
+
# Fetch the DomainCertsInstance
|
98
|
+
# @return [DomainCertsInstance] Fetched DomainCertsInstance
|
99
|
+
def fetch
|
100
|
+
payload = @version.fetch('GET', @uri)
|
101
|
+
|
102
|
+
DomainCertsInstance.new(@version, payload, domain_sid: @solution[:domain_sid], )
|
103
|
+
end
|
104
|
+
|
105
|
+
##
|
106
|
+
# Delete the DomainCertsInstance
|
107
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
108
|
+
def delete
|
109
|
+
@version.delete('DELETE', @uri)
|
110
|
+
end
|
111
|
+
|
112
|
+
##
|
113
|
+
# Provide a user friendly representation
|
114
|
+
def to_s
|
115
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
116
|
+
"#<Twilio.Messaging.V1.DomainCertsContext #{context}>"
|
117
|
+
end
|
118
|
+
|
119
|
+
##
|
120
|
+
# Provide a detailed, user friendly representation
|
121
|
+
def inspect
|
122
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
123
|
+
"#<Twilio.Messaging.V1.DomainCertsContext #{context}>"
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
##
|
128
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
129
|
+
class DomainCertsInstance < InstanceResource
|
130
|
+
##
|
131
|
+
# Initialize the DomainCertsInstance
|
132
|
+
# @param [Version] version Version that contains the resource
|
133
|
+
# @param [Hash] payload payload that contains response from Twilio
|
134
|
+
# @param [String] domain_sid Unique string used to identify the domain that this
|
135
|
+
# certificate should be associated with.
|
136
|
+
# @return [DomainCertsInstance] DomainCertsInstance
|
137
|
+
def initialize(version, payload, domain_sid: nil)
|
138
|
+
super(version)
|
139
|
+
|
140
|
+
# Marshaled Properties
|
141
|
+
@properties = {
|
142
|
+
'domain_sid' => payload['domain_sid'],
|
143
|
+
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
144
|
+
'date_expires' => Twilio.deserialize_iso8601_datetime(payload['date_expires']),
|
145
|
+
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
146
|
+
'domain_name' => payload['domain_name'],
|
147
|
+
'certificate_sid' => payload['certificate_sid'],
|
148
|
+
'url' => payload['url'],
|
149
|
+
'validated' => payload['validated'],
|
150
|
+
}
|
151
|
+
|
152
|
+
# Context
|
153
|
+
@instance_context = nil
|
154
|
+
@params = {'domain_sid' => domain_sid || @properties['domain_sid'], }
|
155
|
+
end
|
156
|
+
|
157
|
+
##
|
158
|
+
# Generate an instance context for the instance, the context is capable of
|
159
|
+
# performing various actions. All instance actions are proxied to the context
|
160
|
+
# @return [DomainCertsContext] DomainCertsContext for this DomainCertsInstance
|
161
|
+
def context
|
162
|
+
unless @instance_context
|
163
|
+
@instance_context = DomainCertsContext.new(@version, @params['domain_sid'], )
|
164
|
+
end
|
165
|
+
@instance_context
|
166
|
+
end
|
167
|
+
|
168
|
+
##
|
169
|
+
# @return [String] The unique string that we created to identify the Domain resource.
|
170
|
+
def domain_sid
|
171
|
+
@properties['domain_sid']
|
172
|
+
end
|
173
|
+
|
174
|
+
##
|
175
|
+
# @return [Time] Date that this Domain was last updated.
|
176
|
+
def date_updated
|
177
|
+
@properties['date_updated']
|
178
|
+
end
|
179
|
+
|
180
|
+
##
|
181
|
+
# @return [Time] Expiration date for your private certificate.
|
182
|
+
def date_expires
|
183
|
+
@properties['date_expires']
|
184
|
+
end
|
185
|
+
|
186
|
+
##
|
187
|
+
# @return [Time] Date this Domain SID was created.
|
188
|
+
def date_created
|
189
|
+
@properties['date_created']
|
190
|
+
end
|
191
|
+
|
192
|
+
##
|
193
|
+
# @return [String] Full url path for this domain.
|
194
|
+
def domain_name
|
195
|
+
@properties['domain_name']
|
196
|
+
end
|
197
|
+
|
198
|
+
##
|
199
|
+
# @return [String] The unique string that we created to identify this Certificate resource.
|
200
|
+
def certificate_sid
|
201
|
+
@properties['certificate_sid']
|
202
|
+
end
|
203
|
+
|
204
|
+
##
|
205
|
+
# @return [String] The url
|
206
|
+
def url
|
207
|
+
@properties['url']
|
208
|
+
end
|
209
|
+
|
210
|
+
##
|
211
|
+
# @return [Boolean] Certificate validation field
|
212
|
+
def validated
|
213
|
+
@properties['validated']
|
214
|
+
end
|
215
|
+
|
216
|
+
##
|
217
|
+
# Update the DomainCertsInstance
|
218
|
+
# @param [String] tls_cert Contains the full TLS certificate and private for this
|
219
|
+
# domain in PEM format: https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail.
|
220
|
+
# Twilio uses this information to process HTTPS traffic sent to your domain.
|
221
|
+
# @return [DomainCertsInstance] Updated DomainCertsInstance
|
222
|
+
def update(tls_cert: nil)
|
223
|
+
context.update(tls_cert: tls_cert, )
|
224
|
+
end
|
225
|
+
|
226
|
+
##
|
227
|
+
# Fetch the DomainCertsInstance
|
228
|
+
# @return [DomainCertsInstance] Fetched DomainCertsInstance
|
229
|
+
def fetch
|
230
|
+
context.fetch
|
231
|
+
end
|
232
|
+
|
233
|
+
##
|
234
|
+
# Delete the DomainCertsInstance
|
235
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
236
|
+
def delete
|
237
|
+
context.delete
|
238
|
+
end
|
239
|
+
|
240
|
+
##
|
241
|
+
# Provide a user friendly representation
|
242
|
+
def to_s
|
243
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
244
|
+
"<Twilio.Messaging.V1.DomainCertsInstance #{values}>"
|
245
|
+
end
|
246
|
+
|
247
|
+
##
|
248
|
+
# Provide a detailed, user friendly representation
|
249
|
+
def inspect
|
250
|
+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
251
|
+
"<Twilio.Messaging.V1.DomainCertsInstance #{values}>"
|
252
|
+
end
|
253
|
+
end
|
254
|
+
end
|
255
|
+
end
|
256
|
+
end
|
257
|
+
end
|
@@ -0,0 +1,267 @@
|
|
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 Messaging < Domain
|
12
|
+
class V1 < Version
|
13
|
+
##
|
14
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
15
|
+
class DomainConfigList < ListResource
|
16
|
+
##
|
17
|
+
# Initialize the DomainConfigList
|
18
|
+
# @param [Version] version Version that contains the resource
|
19
|
+
# @return [DomainConfigList] DomainConfigList
|
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.Messaging.V1.DomainConfigList>'
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
##
|
35
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
36
|
+
class DomainConfigPage < Page
|
37
|
+
##
|
38
|
+
# Initialize the DomainConfigPage
|
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 [DomainConfigPage] DomainConfigPage
|
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 DomainConfigInstance
|
52
|
+
# @param [Hash] payload Payload response from the API
|
53
|
+
# @return [DomainConfigInstance] DomainConfigInstance
|
54
|
+
def get_instance(payload)
|
55
|
+
DomainConfigInstance.new(@version, payload, )
|
56
|
+
end
|
57
|
+
|
58
|
+
##
|
59
|
+
# Provide a user friendly representation
|
60
|
+
def to_s
|
61
|
+
'<Twilio.Messaging.V1.DomainConfigPage>'
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
##
|
66
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
67
|
+
class DomainConfigContext < InstanceContext
|
68
|
+
##
|
69
|
+
# Initialize the DomainConfigContext
|
70
|
+
# @param [Version] version Version that contains the resource
|
71
|
+
# @param [String] domain_sid Unique string used to identify the domain that this
|
72
|
+
# config should be associated with.
|
73
|
+
# @return [DomainConfigContext] DomainConfigContext
|
74
|
+
def initialize(version, domain_sid)
|
75
|
+
super(version)
|
76
|
+
|
77
|
+
# Path Solution
|
78
|
+
@solution = {domain_sid: domain_sid, }
|
79
|
+
@uri = "/LinkShortening/Domains/#{@solution[:domain_sid]}/Config"
|
80
|
+
end
|
81
|
+
|
82
|
+
##
|
83
|
+
# Update the DomainConfigInstance
|
84
|
+
# @param [Array[String]] messaging_service_sids A list of messagingServiceSids
|
85
|
+
# (with prefix MG)
|
86
|
+
# @param [String] fallback_url Any requests we receive to this domain that do not
|
87
|
+
# match an existing shortened message will be redirected to the fallback url.
|
88
|
+
# These will likely be either expired messages, random misdirected traffic, or
|
89
|
+
# intentional scraping.
|
90
|
+
# @param [String] callback_url URL to receive click events to your webhook
|
91
|
+
# whenever the recipients click on the shortened links
|
92
|
+
# @param [String] messaging_service_sids_action An action type for
|
93
|
+
# messaging_service_sids operation (ADD, DELETE, REPLACE)
|
94
|
+
# @return [DomainConfigInstance] Updated DomainConfigInstance
|
95
|
+
def update(messaging_service_sids: nil, fallback_url: :unset, callback_url: :unset, messaging_service_sids_action: :unset)
|
96
|
+
data = Twilio::Values.of({
|
97
|
+
'MessagingServiceSids' => Twilio.serialize_list(messaging_service_sids) { |e| e },
|
98
|
+
'FallbackUrl' => fallback_url,
|
99
|
+
'CallbackUrl' => callback_url,
|
100
|
+
'MessagingServiceSidsAction' => messaging_service_sids_action,
|
101
|
+
})
|
102
|
+
|
103
|
+
payload = @version.update('POST', @uri, data: data)
|
104
|
+
|
105
|
+
DomainConfigInstance.new(@version, payload, domain_sid: @solution[:domain_sid], )
|
106
|
+
end
|
107
|
+
|
108
|
+
##
|
109
|
+
# Fetch the DomainConfigInstance
|
110
|
+
# @return [DomainConfigInstance] Fetched DomainConfigInstance
|
111
|
+
def fetch
|
112
|
+
payload = @version.fetch('GET', @uri)
|
113
|
+
|
114
|
+
DomainConfigInstance.new(@version, payload, domain_sid: @solution[:domain_sid], )
|
115
|
+
end
|
116
|
+
|
117
|
+
##
|
118
|
+
# Provide a user friendly representation
|
119
|
+
def to_s
|
120
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
121
|
+
"#<Twilio.Messaging.V1.DomainConfigContext #{context}>"
|
122
|
+
end
|
123
|
+
|
124
|
+
##
|
125
|
+
# Provide a detailed, user friendly representation
|
126
|
+
def inspect
|
127
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
128
|
+
"#<Twilio.Messaging.V1.DomainConfigContext #{context}>"
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
##
|
133
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
134
|
+
class DomainConfigInstance < InstanceResource
|
135
|
+
##
|
136
|
+
# Initialize the DomainConfigInstance
|
137
|
+
# @param [Version] version Version that contains the resource
|
138
|
+
# @param [Hash] payload payload that contains response from Twilio
|
139
|
+
# @param [String] domain_sid Unique string used to identify the domain that this
|
140
|
+
# config should be associated with.
|
141
|
+
# @return [DomainConfigInstance] DomainConfigInstance
|
142
|
+
def initialize(version, payload, domain_sid: nil)
|
143
|
+
super(version)
|
144
|
+
|
145
|
+
# Marshaled Properties
|
146
|
+
@properties = {
|
147
|
+
'domain_sid' => payload['domain_sid'],
|
148
|
+
'config_sid' => payload['config_sid'],
|
149
|
+
'messaging_service_sids' => payload['messaging_service_sids'],
|
150
|
+
'fallback_url' => payload['fallback_url'],
|
151
|
+
'callback_url' => payload['callback_url'],
|
152
|
+
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
153
|
+
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
154
|
+
'url' => payload['url'],
|
155
|
+
}
|
156
|
+
|
157
|
+
# Context
|
158
|
+
@instance_context = nil
|
159
|
+
@params = {'domain_sid' => domain_sid || @properties['domain_sid'], }
|
160
|
+
end
|
161
|
+
|
162
|
+
##
|
163
|
+
# Generate an instance context for the instance, the context is capable of
|
164
|
+
# performing various actions. All instance actions are proxied to the context
|
165
|
+
# @return [DomainConfigContext] DomainConfigContext for this DomainConfigInstance
|
166
|
+
def context
|
167
|
+
unless @instance_context
|
168
|
+
@instance_context = DomainConfigContext.new(@version, @params['domain_sid'], )
|
169
|
+
end
|
170
|
+
@instance_context
|
171
|
+
end
|
172
|
+
|
173
|
+
##
|
174
|
+
# @return [String] The unique string that we created to identify the Domain resource.
|
175
|
+
def domain_sid
|
176
|
+
@properties['domain_sid']
|
177
|
+
end
|
178
|
+
|
179
|
+
##
|
180
|
+
# @return [String] The unique string that we created to identify the Domain config (prefix ZK).
|
181
|
+
def config_sid
|
182
|
+
@properties['config_sid']
|
183
|
+
end
|
184
|
+
|
185
|
+
##
|
186
|
+
# @return [Array[String]] A list of messagingServiceSids (with prefix MG).
|
187
|
+
def messaging_service_sids
|
188
|
+
@properties['messaging_service_sids']
|
189
|
+
end
|
190
|
+
|
191
|
+
##
|
192
|
+
# @return [String] We will redirect requests to urls we are unable to identify to this url.
|
193
|
+
def fallback_url
|
194
|
+
@properties['fallback_url']
|
195
|
+
end
|
196
|
+
|
197
|
+
##
|
198
|
+
# @return [String] URL to receive click events to your webhook whenever the recipients click on the shortened links.
|
199
|
+
def callback_url
|
200
|
+
@properties['callback_url']
|
201
|
+
end
|
202
|
+
|
203
|
+
##
|
204
|
+
# @return [Time] Date this Domain Config was created.
|
205
|
+
def date_created
|
206
|
+
@properties['date_created']
|
207
|
+
end
|
208
|
+
|
209
|
+
##
|
210
|
+
# @return [Time] Date that this Domain Config was last updated.
|
211
|
+
def date_updated
|
212
|
+
@properties['date_updated']
|
213
|
+
end
|
214
|
+
|
215
|
+
##
|
216
|
+
# @return [String] The url
|
217
|
+
def url
|
218
|
+
@properties['url']
|
219
|
+
end
|
220
|
+
|
221
|
+
##
|
222
|
+
# Update the DomainConfigInstance
|
223
|
+
# @param [Array[String]] messaging_service_sids A list of messagingServiceSids
|
224
|
+
# (with prefix MG)
|
225
|
+
# @param [String] fallback_url Any requests we receive to this domain that do not
|
226
|
+
# match an existing shortened message will be redirected to the fallback url.
|
227
|
+
# These will likely be either expired messages, random misdirected traffic, or
|
228
|
+
# intentional scraping.
|
229
|
+
# @param [String] callback_url URL to receive click events to your webhook
|
230
|
+
# whenever the recipients click on the shortened links
|
231
|
+
# @param [String] messaging_service_sids_action An action type for
|
232
|
+
# messaging_service_sids operation (ADD, DELETE, REPLACE)
|
233
|
+
# @return [DomainConfigInstance] Updated DomainConfigInstance
|
234
|
+
def update(messaging_service_sids: nil, fallback_url: :unset, callback_url: :unset, messaging_service_sids_action: :unset)
|
235
|
+
context.update(
|
236
|
+
messaging_service_sids: messaging_service_sids,
|
237
|
+
fallback_url: fallback_url,
|
238
|
+
callback_url: callback_url,
|
239
|
+
messaging_service_sids_action: messaging_service_sids_action,
|
240
|
+
)
|
241
|
+
end
|
242
|
+
|
243
|
+
##
|
244
|
+
# Fetch the DomainConfigInstance
|
245
|
+
# @return [DomainConfigInstance] Fetched DomainConfigInstance
|
246
|
+
def fetch
|
247
|
+
context.fetch
|
248
|
+
end
|
249
|
+
|
250
|
+
##
|
251
|
+
# Provide a user friendly representation
|
252
|
+
def to_s
|
253
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
254
|
+
"<Twilio.Messaging.V1.DomainConfigInstance #{values}>"
|
255
|
+
end
|
256
|
+
|
257
|
+
##
|
258
|
+
# Provide a detailed, user friendly representation
|
259
|
+
def inspect
|
260
|
+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
261
|
+
"<Twilio.Messaging.V1.DomainConfigInstance #{values}>"
|
262
|
+
end
|
263
|
+
end
|
264
|
+
end
|
265
|
+
end
|
266
|
+
end
|
267
|
+
end
|
@@ -17,6 +17,8 @@ module Twilio
|
|
17
17
|
@version = 'v1'
|
18
18
|
@brand_registrations = nil
|
19
19
|
@deactivations = nil
|
20
|
+
@domain_certs = nil
|
21
|
+
@domain_config = nil
|
20
22
|
@external_campaign = nil
|
21
23
|
@services = nil
|
22
24
|
@tollfree_verifications = nil
|
@@ -44,6 +46,38 @@ module Twilio
|
|
44
46
|
@deactivations ||= DeactivationsContext.new self
|
45
47
|
end
|
46
48
|
|
49
|
+
##
|
50
|
+
# @param [String] domain_sid Unique string used to identify the domain that this
|
51
|
+
# certificate should be associated with.
|
52
|
+
# @return [Twilio::REST::Messaging::V1::DomainCertsContext] if domain_sid was passed.
|
53
|
+
# @return [Twilio::REST::Messaging::V1::DomainCertsList]
|
54
|
+
def domain_certs(domain_sid=:unset)
|
55
|
+
if domain_sid.nil?
|
56
|
+
raise ArgumentError, 'domain_sid cannot be nil'
|
57
|
+
end
|
58
|
+
if domain_sid == :unset
|
59
|
+
@domain_certs ||= DomainCertsList.new self
|
60
|
+
else
|
61
|
+
DomainCertsContext.new(self, domain_sid)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
##
|
66
|
+
# @param [String] domain_sid Unique string used to identify the domain that this
|
67
|
+
# config should be associated with.
|
68
|
+
# @return [Twilio::REST::Messaging::V1::DomainConfigContext] if domain_sid was passed.
|
69
|
+
# @return [Twilio::REST::Messaging::V1::DomainConfigList]
|
70
|
+
def domain_config(domain_sid=:unset)
|
71
|
+
if domain_sid.nil?
|
72
|
+
raise ArgumentError, 'domain_sid cannot be nil'
|
73
|
+
end
|
74
|
+
if domain_sid == :unset
|
75
|
+
@domain_config ||= DomainConfigList.new self
|
76
|
+
else
|
77
|
+
DomainConfigContext.new(self, domain_sid)
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
47
81
|
##
|
48
82
|
# @return [Twilio::REST::Messaging::V1::ExternalCampaignContext]
|
49
83
|
def external_campaign
|
@@ -42,6 +42,24 @@ module Twilio
|
|
42
42
|
self.v1.deactivations()
|
43
43
|
end
|
44
44
|
|
45
|
+
##
|
46
|
+
# @param [String] domain_sid The unique string that we created to identify the
|
47
|
+
# Domain resource.
|
48
|
+
# @return [Twilio::REST::Messaging::V1::DomainCertsInstance] if domain_sid was passed.
|
49
|
+
# @return [Twilio::REST::Messaging::V1::DomainCertsList]
|
50
|
+
def domain_certs(domain_sid=:unset)
|
51
|
+
self.v1.domain_certs(domain_sid)
|
52
|
+
end
|
53
|
+
|
54
|
+
##
|
55
|
+
# @param [String] domain_sid The unique string that we created to identify the
|
56
|
+
# Domain resource.
|
57
|
+
# @return [Twilio::REST::Messaging::V1::DomainConfigInstance] if domain_sid was passed.
|
58
|
+
# @return [Twilio::REST::Messaging::V1::DomainConfigList]
|
59
|
+
def domain_config(domain_sid=:unset)
|
60
|
+
self.v1.domain_config(domain_sid)
|
61
|
+
end
|
62
|
+
|
45
63
|
##
|
46
64
|
# @return [Twilio::REST::Messaging::V1::ExternalCampaignInstance]
|
47
65
|
def external_campaign
|
@@ -226,6 +226,7 @@ module Twilio
|
|
226
226
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
227
227
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
228
228
|
'url' => payload['url'],
|
229
|
+
'links' => payload['links'],
|
229
230
|
}
|
230
231
|
|
231
232
|
# Context
|
@@ -292,6 +293,12 @@ module Twilio
|
|
292
293
|
@properties['url']
|
293
294
|
end
|
294
295
|
|
296
|
+
##
|
297
|
+
# @return [String] The absolute URLs of related resources
|
298
|
+
def links
|
299
|
+
@properties['links']
|
300
|
+
end
|
301
|
+
|
295
302
|
##
|
296
303
|
# Fetch the DeviceInstance
|
297
304
|
# @return [DeviceInstance] Fetched DeviceInstance
|
@@ -25,7 +25,6 @@ module Twilio
|
|
25
25
|
@sync = nil
|
26
26
|
@understand = nil
|
27
27
|
@wireless = nil
|
28
|
-
@trusted_comms = nil
|
29
28
|
end
|
30
29
|
|
31
30
|
##
|
@@ -64,12 +63,6 @@ module Twilio
|
|
64
63
|
@wireless ||= Wireless.new self
|
65
64
|
end
|
66
65
|
|
67
|
-
##
|
68
|
-
# Version trusted_comms of preview
|
69
|
-
def trusted_comms
|
70
|
-
@trusted_comms ||= TrustedComms.new self
|
71
|
-
end
|
72
|
-
|
73
66
|
##
|
74
67
|
# @param [String] sid Contains a 34 character string that uniquely identifies this
|
75
68
|
# Fleet resource.
|
@@ -157,32 +150,6 @@ module Twilio
|
|
157
150
|
self.wireless.sims(sid)
|
158
151
|
end
|
159
152
|
|
160
|
-
##
|
161
|
-
# @param [String] sid The unique SID identifier of the Branded Channel.
|
162
|
-
# @return [Twilio::REST::Preview::TrustedComms::BrandedChannelInstance] if sid was passed.
|
163
|
-
# @return [Twilio::REST::Preview::TrustedComms::BrandedChannelList]
|
164
|
-
def branded_channels(sid=:unset)
|
165
|
-
self.trusted_comms.branded_channels(sid)
|
166
|
-
end
|
167
|
-
|
168
|
-
##
|
169
|
-
# @return [Twilio::REST::Preview::TrustedComms::BrandsInformationInstance]
|
170
|
-
def brands_information
|
171
|
-
self.trusted_comms.brands_information()
|
172
|
-
end
|
173
|
-
|
174
|
-
##
|
175
|
-
# @return [Twilio::REST::Preview::TrustedComms::CpsInstance]
|
176
|
-
def cps
|
177
|
-
self.trusted_comms.cps()
|
178
|
-
end
|
179
|
-
|
180
|
-
##
|
181
|
-
# @return [Twilio::REST::Preview::TrustedComms::CurrentCallInstance]
|
182
|
-
def current_calls
|
183
|
-
self.trusted_comms.current_calls()
|
184
|
-
end
|
185
|
-
|
186
153
|
##
|
187
154
|
# Provide a user friendly representation
|
188
155
|
def to_s
|
data/lib/twilio-ruby/version.rb
CHANGED