twilio-ruby 5.35.0 → 5.36.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +28 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +87 -87
  5. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +14 -0
  6. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +71 -71
  7. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +29 -29
  8. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +27 -4
  9. data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +2 -1
  10. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +7 -0
  11. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +6 -3
  12. data/lib/twilio-ruby/rest/preview/trusted_comms/business.rb +26 -0
  13. data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand.rb +239 -0
  14. data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel.rb +266 -0
  15. data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb +197 -0
  16. data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +7 -0
  17. data/lib/twilio-ruby/rest/supersim.rb +11 -1
  18. data/lib/twilio-ruby/rest/supersim/v1.rb +16 -1
  19. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +10 -1
  20. data/lib/twilio-ruby/rest/supersim/v1/network.rb +315 -0
  21. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +53 -12
  22. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +352 -0
  23. data/lib/twilio-ruby/rest/verify.rb +9 -0
  24. data/lib/twilio-ruby/rest/verify/v2.rb +16 -0
  25. data/lib/twilio-ruby/rest/verify/v2/form.rb +197 -0
  26. data/lib/twilio-ruby/rest/verify/v2/service.rb +26 -0
  27. data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +379 -0
  28. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +500 -0
  29. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor/challenge.rb +494 -0
  30. data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +8 -4
  31. data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +8 -4
  32. data/lib/twilio-ruby/version.rb +1 -1
  33. data/spec/integration/api/v2010/account/call_spec.rb +5 -5
  34. data/spec/integration/api/v2010/account/conference_spec.rb +42 -14
  35. data/spec/integration/conversations/v1/conversation/participant_spec.rb +7 -0
  36. data/spec/integration/flex_api/v1/configuration_spec.rb +3 -0
  37. data/spec/integration/preview/trusted_comms/business/brand/branded_channel/channel_spec.rb +54 -0
  38. data/spec/integration/preview/trusted_comms/business/brand/branded_channel_spec.rb +52 -0
  39. data/spec/integration/preview/trusted_comms/business/brand_spec.rb +49 -0
  40. data/spec/integration/preview/trusted_comms/business_spec.rb +1 -0
  41. data/spec/integration/serverless/v1/service/environment/log_spec.rb +1 -0
  42. data/spec/integration/supersim/v1/fleet_spec.rb +4 -0
  43. data/spec/integration/supersim/v1/network_access_profile/network_access_profile_network_spec.rb +179 -0
  44. data/spec/integration/supersim/v1/network_access_profile_spec.rb +20 -5
  45. data/spec/integration/supersim/v1/network_spec.rb +139 -0
  46. data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +13 -13
  47. data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +23 -23
  48. data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +28 -28
  49. data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +17 -17
  50. data/spec/integration/trunking/v1/trunk_spec.rb +33 -33
  51. data/spec/integration/verify/v2/form_spec.rb +48 -0
  52. data/spec/integration/verify/v2/service/entity/factor/challenge_spec.rb +353 -0
  53. data/spec/integration/verify/v2/service/entity/factor_spec.rb +298 -0
  54. data/spec/integration/verify/v2/service/entity_spec.rb +201 -0
  55. data/spec/integration/verify/v2/service_spec.rb +24 -4
  56. metadata +29 -2
@@ -280,15 +280,15 @@ module Twilio
280
280
 
281
281
  # Marshaled Properties
282
282
  @properties = {
283
+ 'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
284
+ 'current_size' => payload['current_size'].to_i,
285
+ 'friendly_name' => payload['friendly_name'],
286
+ 'uri' => payload['uri'],
283
287
  'account_sid' => payload['account_sid'],
284
288
  'average_wait_time' => payload['average_wait_time'].to_i,
285
- 'current_size' => payload['current_size'].to_i,
289
+ 'sid' => payload['sid'],
286
290
  'date_created' => Twilio.deserialize_rfc2822(payload['date_created']),
287
- 'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
288
- 'friendly_name' => payload['friendly_name'],
289
291
  'max_size' => payload['max_size'].to_i,
290
- 'sid' => payload['sid'],
291
- 'uri' => payload['uri'],
292
292
  }
293
293
 
294
294
  # Context
@@ -308,15 +308,9 @@ module Twilio
308
308
  end
309
309
 
310
310
  ##
311
- # @return [String] The SID of the Account that created this resource
312
- def account_sid
313
- @properties['account_sid']
314
- end
315
-
316
- ##
317
- # @return [String] Average wait time of members in the queue
318
- def average_wait_time
319
- @properties['average_wait_time']
311
+ # @return [Time] The RFC 2822 date and time in GMT that this resource was last updated
312
+ def date_updated
313
+ @properties['date_updated']
320
314
  end
321
315
 
322
316
  ##
@@ -326,27 +320,27 @@ module Twilio
326
320
  end
327
321
 
328
322
  ##
329
- # @return [Time] The RFC 2822 date and time in GMT that this resource was created
330
- def date_created
331
- @properties['date_created']
323
+ # @return [String] A string that you assigned to describe this resource
324
+ def friendly_name
325
+ @properties['friendly_name']
332
326
  end
333
327
 
334
328
  ##
335
- # @return [Time] The RFC 2822 date and time in GMT that this resource was last updated
336
- def date_updated
337
- @properties['date_updated']
329
+ # @return [String] The URI of this resource, relative to `https://api.twilio.com`
330
+ def uri
331
+ @properties['uri']
338
332
  end
339
333
 
340
334
  ##
341
- # @return [String] A string that you assigned to describe this resource
342
- def friendly_name
343
- @properties['friendly_name']
335
+ # @return [String] The SID of the Account that created this resource
336
+ def account_sid
337
+ @properties['account_sid']
344
338
  end
345
339
 
346
340
  ##
347
- # @return [String] The max number of calls allowed in the queue
348
- def max_size
349
- @properties['max_size']
341
+ # @return [String] Average wait time of members in the queue
342
+ def average_wait_time
343
+ @properties['average_wait_time']
350
344
  end
351
345
 
352
346
  ##
@@ -356,9 +350,15 @@ module Twilio
356
350
  end
357
351
 
358
352
  ##
359
- # @return [String] The URI of this resource, relative to `https://api.twilio.com`
360
- def uri
361
- @properties['uri']
353
+ # @return [Time] The RFC 2822 date and time in GMT that this resource was created
354
+ def date_created
355
+ @properties['date_created']
356
+ end
357
+
358
+ ##
359
+ # @return [String] The max number of calls allowed in the queue
360
+ def max_size
361
+ @properties['max_size']
362
362
  end
363
363
 
364
364
  ##
@@ -53,8 +53,11 @@ module Twilio
53
53
  # @param [String] messaging_binding_projected_address The address of the Twilio
54
54
  # phone number that is used in Group MMS. Communication mask for the Chat
55
55
  # participant with Identity.
56
+ # @param [String] role_sid The SID of the
57
+ # [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the
58
+ # participant.
56
59
  # @return [ParticipantInstance] Newly created ParticipantInstance
57
- def create(identity: :unset, messaging_binding_address: :unset, messaging_binding_proxy_address: :unset, date_created: :unset, date_updated: :unset, attributes: :unset, messaging_binding_projected_address: :unset)
60
+ def create(identity: :unset, messaging_binding_address: :unset, messaging_binding_proxy_address: :unset, date_created: :unset, date_updated: :unset, attributes: :unset, messaging_binding_projected_address: :unset, role_sid: :unset)
58
61
  data = Twilio::Values.of({
59
62
  'Identity' => identity,
60
63
  'MessagingBinding.Address' => messaging_binding_address,
@@ -63,6 +66,7 @@ module Twilio
63
66
  'DateUpdated' => Twilio.serialize_iso8601_datetime(date_updated),
64
67
  'Attributes' => attributes,
65
68
  'MessagingBinding.ProjectedAddress' => messaging_binding_projected_address,
69
+ 'RoleSid' => role_sid,
66
70
  })
67
71
 
68
72
  payload = @version.create(
@@ -221,12 +225,16 @@ module Twilio
221
225
  # store any data you wish. The string value must contain structurally valid JSON
222
226
  # if specified. **Note** that if the attributes are not set "{}" will be
223
227
  # returned.
228
+ # @param [String] role_sid The SID of the
229
+ # [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the
230
+ # participant.
224
231
  # @return [ParticipantInstance] Updated ParticipantInstance
225
- def update(date_created: :unset, date_updated: :unset, attributes: :unset)
232
+ def update(date_created: :unset, date_updated: :unset, attributes: :unset, role_sid: :unset)
226
233
  data = Twilio::Values.of({
227
234
  'DateCreated' => Twilio.serialize_iso8601_datetime(date_created),
228
235
  'DateUpdated' => Twilio.serialize_iso8601_datetime(date_updated),
229
236
  'Attributes' => attributes,
237
+ 'RoleSid' => role_sid,
230
238
  })
231
239
 
232
240
  payload = @version.update(
@@ -308,6 +316,7 @@ module Twilio
308
316
  'identity' => payload['identity'],
309
317
  'attributes' => payload['attributes'],
310
318
  'messaging_binding' => payload['messaging_binding'],
319
+ 'role_sid' => payload['role_sid'],
311
320
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
312
321
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
313
322
  'url' => payload['url'],
@@ -365,6 +374,12 @@ module Twilio
365
374
  @properties['messaging_binding']
366
375
  end
367
376
 
377
+ ##
378
+ # @return [String] The SID of the Role to assign to the participant
379
+ def role_sid
380
+ @properties['role_sid']
381
+ end
382
+
368
383
  ##
369
384
  # @return [Time] The date that this resource was created.
370
385
  def date_created
@@ -391,9 +406,17 @@ module Twilio
391
406
  # store any data you wish. The string value must contain structurally valid JSON
392
407
  # if specified. **Note** that if the attributes are not set "{}" will be
393
408
  # returned.
409
+ # @param [String] role_sid The SID of the
410
+ # [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the
411
+ # participant.
394
412
  # @return [ParticipantInstance] Updated ParticipantInstance
395
- def update(date_created: :unset, date_updated: :unset, attributes: :unset)
396
- context.update(date_created: date_created, date_updated: date_updated, attributes: attributes, )
413
+ def update(date_created: :unset, date_updated: :unset, attributes: :unset, role_sid: :unset)
414
+ context.update(
415
+ date_created: date_created,
416
+ date_updated: date_updated,
417
+ attributes: attributes,
418
+ role_sid: role_sid,
419
+ )
397
420
  end
398
421
 
399
422
  ##
@@ -117,7 +117,8 @@ module Twilio
117
117
  # of an SMS.
118
118
  # @param [String] chat_unique_name The chat channel's unique name.
119
119
  # @param [String] pre_engagement_data The pre-engagement data.
120
- # @param [String] task_sid The SID of the TaskRouter task.
120
+ # @param [String] task_sid The SID of the TaskRouter task. Only valid when
121
+ # integration type is `task`. `null` for integration types `studio` & `external`
121
122
  # @param [String] task_attributes The task attributes to be added for the
122
123
  # TaskRouter Task.
123
124
  # @param [Boolean] long_lived Whether to create the channel as long-lived.
@@ -161,6 +161,7 @@ module Twilio
161
161
  'runtime_domain' => payload['runtime_domain'],
162
162
  'messaging_service_instance_sid' => payload['messaging_service_instance_sid'],
163
163
  'chat_service_instance_sid' => payload['chat_service_instance_sid'],
164
+ 'flex_service_instance_sid' => payload['flex_service_instance_sid'],
164
165
  'ui_language' => payload['ui_language'],
165
166
  'ui_attributes' => payload['ui_attributes'],
166
167
  'ui_dependencies' => payload['ui_dependencies'],
@@ -296,6 +297,12 @@ module Twilio
296
297
  @properties['chat_service_instance_sid']
297
298
  end
298
299
 
300
+ ##
301
+ # @return [String] The SID of the Flex service instance
302
+ def flex_service_instance_sid
303
+ @properties['flex_service_instance_sid']
304
+ end
305
+
299
306
  ##
300
307
  # @return [String] The primary language of the Flex UI
301
308
  def ui_language
@@ -145,9 +145,10 @@ module Twilio
145
145
  # misconfigured Flex Flow and no tasks will be created.
146
146
  # @param [Boolean] long_lived When enabled, Flex will keep the chat channel active
147
147
  # so that it may be used for subsequent interactions with a contact identity.
148
+ # Defaults to `false`.
148
149
  # @param [Boolean] janitor_enabled When enabled, the Messaging Channel Janitor
149
150
  # will remove active Proxy sessions if the associated Task is deleted outside of
150
- # the Flex UI.
151
+ # the Flex UI. Defaults to `false`.
151
152
  # @param [String] integration_retry_count The number of times to retry the webhook
152
153
  # if the first attempt fails. Can be an integer between 0 and 3, inclusive, and
153
154
  # the default is 0.
@@ -279,9 +280,10 @@ module Twilio
279
280
  # misconfigured Flex Flow and no tasks will be created.
280
281
  # @param [Boolean] long_lived When enabled, Flex will keep the chat channel active
281
282
  # so that it may be used for subsequent interactions with a contact identity.
283
+ # Defaults to `false`.
282
284
  # @param [Boolean] janitor_enabled When enabled, the Messaging Channel Janitor
283
285
  # will remove active Proxy sessions if the associated Task is deleted outside of
284
- # the Flex UI.
286
+ # the Flex UI. Defaults to `false`.
285
287
  # @param [String] integration_retry_count The number of times to retry the webhook
286
288
  # if the first attempt fails. Can be an integer between 0 and 3, inclusive, and
287
289
  # the default is 0.
@@ -505,9 +507,10 @@ module Twilio
505
507
  # misconfigured Flex Flow and no tasks will be created.
506
508
  # @param [Boolean] long_lived When enabled, Flex will keep the chat channel active
507
509
  # so that it may be used for subsequent interactions with a contact identity.
510
+ # Defaults to `false`.
508
511
  # @param [Boolean] janitor_enabled When enabled, the Messaging Channel Janitor
509
512
  # will remove active Proxy sessions if the associated Task is deleted outside of
510
- # the Flex UI.
513
+ # the Flex UI. Defaults to `false`.
511
514
  # @param [String] integration_retry_count The number of times to retry the webhook
512
515
  # if the first attempt fails. Can be an integer between 0 and 3, inclusive, and
513
516
  # the default is 0.
@@ -79,6 +79,7 @@ module Twilio
79
79
  @uri = "/Businesses/#{@solution[:sid]}"
80
80
 
81
81
  # Dependents
82
+ @brands = nil
82
83
  @insights = nil
83
84
  end
84
85
 
@@ -97,6 +98,24 @@ module Twilio
97
98
  BusinessInstance.new(@version, payload, sid: @solution[:sid], )
98
99
  end
99
100
 
101
+ ##
102
+ # Access the brands
103
+ # @return [BrandList]
104
+ # @return [BrandContext] if sid was passed.
105
+ def brands(sid=:unset)
106
+ raise ArgumentError, 'sid cannot be nil' if sid.nil?
107
+
108
+ if sid != :unset
109
+ return BrandContext.new(@version, @solution[:sid], sid, )
110
+ end
111
+
112
+ unless @brands
113
+ @brands = BrandList.new(@version, business_sid: @solution[:sid], )
114
+ end
115
+
116
+ @brands
117
+ end
118
+
100
119
  ##
101
120
  # Access the insights
102
121
  # @return [InsightsList]
@@ -192,6 +211,13 @@ module Twilio
192
211
  context.fetch
193
212
  end
194
213
 
214
+ ##
215
+ # Access the brands
216
+ # @return [brands] brands
217
+ def brands
218
+ context.brands
219
+ end
220
+
195
221
  ##
196
222
  # Access the insights
197
223
  # @return [insights] insights
@@ -0,0 +1,239 @@
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
+ class BusinessContext < InstanceContext
14
+ ##
15
+ # 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.
16
+ class BrandList < ListResource
17
+ ##
18
+ # Initialize the BrandList
19
+ # @param [Version] version Version that contains the resource
20
+ # @param [String] business_sid The unique SID identifier of the Business.
21
+ # @return [BrandList] BrandList
22
+ def initialize(version, business_sid: nil)
23
+ super(version)
24
+
25
+ # Path Solution
26
+ @solution = {business_sid: business_sid}
27
+ end
28
+
29
+ ##
30
+ # Provide a user friendly representation
31
+ def to_s
32
+ '#<Twilio.Preview.TrustedComms.BrandList>'
33
+ end
34
+ end
35
+
36
+ ##
37
+ # 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.
38
+ class BrandPage < Page
39
+ ##
40
+ # Initialize the BrandPage
41
+ # @param [Version] version Version that contains the resource
42
+ # @param [Response] response Response from the API
43
+ # @param [Hash] solution Path solution for the resource
44
+ # @return [BrandPage] BrandPage
45
+ def initialize(version, response, solution)
46
+ super(version, response)
47
+
48
+ # Path Solution
49
+ @solution = solution
50
+ end
51
+
52
+ ##
53
+ # Build an instance of BrandInstance
54
+ # @param [Hash] payload Payload response from the API
55
+ # @return [BrandInstance] BrandInstance
56
+ def get_instance(payload)
57
+ BrandInstance.new(@version, payload, business_sid: @solution[:business_sid], )
58
+ end
59
+
60
+ ##
61
+ # Provide a user friendly representation
62
+ def to_s
63
+ '<Twilio.Preview.TrustedComms.BrandPage>'
64
+ end
65
+ end
66
+
67
+ ##
68
+ # 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.
69
+ class BrandContext < InstanceContext
70
+ ##
71
+ # Initialize the BrandContext
72
+ # @param [Version] version Version that contains the resource
73
+ # @param [String] business_sid The unique SID identifier of the Business.
74
+ # @param [String] sid The unique SID identifier of the Brand.
75
+ # @return [BrandContext] BrandContext
76
+ def initialize(version, business_sid, sid)
77
+ super(version)
78
+
79
+ # Path Solution
80
+ @solution = {business_sid: business_sid, sid: sid, }
81
+ @uri = "/Businesses/#{@solution[:business_sid]}/Brands/#{@solution[:sid]}"
82
+
83
+ # Dependents
84
+ @branded_channels = nil
85
+ end
86
+
87
+ ##
88
+ # Fetch a BrandInstance
89
+ # @return [BrandInstance] Fetched BrandInstance
90
+ def fetch
91
+ params = Twilio::Values.of({})
92
+
93
+ payload = @version.fetch(
94
+ 'GET',
95
+ @uri,
96
+ params,
97
+ )
98
+
99
+ BrandInstance.new(@version, payload, business_sid: @solution[:business_sid], sid: @solution[:sid], )
100
+ end
101
+
102
+ ##
103
+ # Access the branded_channels
104
+ # @return [BrandedChannelList]
105
+ # @return [BrandedChannelContext] if sid was passed.
106
+ def branded_channels(sid=:unset)
107
+ raise ArgumentError, 'sid cannot be nil' if sid.nil?
108
+
109
+ if sid != :unset
110
+ return BrandedChannelContext.new(@version, @solution[:business_sid], @solution[:sid], sid, )
111
+ end
112
+
113
+ unless @branded_channels
114
+ @branded_channels = BrandedChannelList.new(
115
+ @version,
116
+ business_sid: @solution[:business_sid],
117
+ brand_sid: @solution[:sid],
118
+ )
119
+ end
120
+
121
+ @branded_channels
122
+ end
123
+
124
+ ##
125
+ # Provide a user friendly representation
126
+ def to_s
127
+ context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
128
+ "#<Twilio.Preview.TrustedComms.BrandContext #{context}>"
129
+ end
130
+
131
+ ##
132
+ # Provide a detailed, user friendly representation
133
+ def inspect
134
+ context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
135
+ "#<Twilio.Preview.TrustedComms.BrandContext #{context}>"
136
+ end
137
+ end
138
+
139
+ ##
140
+ # 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.
141
+ class BrandInstance < InstanceResource
142
+ ##
143
+ # Initialize the BrandInstance
144
+ # @param [Version] version Version that contains the resource
145
+ # @param [Hash] payload payload that contains response from Twilio
146
+ # @param [String] business_sid The unique SID identifier of the Business.
147
+ # @param [String] sid The unique SID identifier of the Brand.
148
+ # @return [BrandInstance] BrandInstance
149
+ def initialize(version, payload, business_sid: nil, sid: nil)
150
+ super(version)
151
+
152
+ # Marshaled Properties
153
+ @properties = {
154
+ 'account_sid' => payload['account_sid'],
155
+ 'business_sid' => payload['business_sid'],
156
+ 'sid' => payload['sid'],
157
+ 'links' => payload['links'],
158
+ 'url' => payload['url'],
159
+ }
160
+
161
+ # Context
162
+ @instance_context = nil
163
+ @params = {'business_sid' => business_sid, 'sid' => sid || @properties['sid'], }
164
+ end
165
+
166
+ ##
167
+ # Generate an instance context for the instance, the context is capable of
168
+ # performing various actions. All instance actions are proxied to the context
169
+ # @return [BrandContext] BrandContext for this BrandInstance
170
+ def context
171
+ unless @instance_context
172
+ @instance_context = BrandContext.new(@version, @params['business_sid'], @params['sid'], )
173
+ end
174
+ @instance_context
175
+ end
176
+
177
+ ##
178
+ # @return [String] Account Sid.
179
+ def account_sid
180
+ @properties['account_sid']
181
+ end
182
+
183
+ ##
184
+ # @return [String] Business Sid.
185
+ def business_sid
186
+ @properties['business_sid']
187
+ end
188
+
189
+ ##
190
+ # @return [String] Brand Sid.
191
+ def sid
192
+ @properties['sid']
193
+ end
194
+
195
+ ##
196
+ # @return [String] Nested resource URLs.
197
+ def links
198
+ @properties['links']
199
+ end
200
+
201
+ ##
202
+ # @return [String] The URL of this resource.
203
+ def url
204
+ @properties['url']
205
+ end
206
+
207
+ ##
208
+ # Fetch a BrandInstance
209
+ # @return [BrandInstance] Fetched BrandInstance
210
+ def fetch
211
+ context.fetch
212
+ end
213
+
214
+ ##
215
+ # Access the branded_channels
216
+ # @return [branded_channels] branded_channels
217
+ def branded_channels
218
+ context.branded_channels
219
+ end
220
+
221
+ ##
222
+ # Provide a user friendly representation
223
+ def to_s
224
+ values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
225
+ "<Twilio.Preview.TrustedComms.BrandInstance #{values}>"
226
+ end
227
+
228
+ ##
229
+ # Provide a detailed, user friendly representation
230
+ def inspect
231
+ values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
232
+ "<Twilio.Preview.TrustedComms.BrandInstance #{values}>"
233
+ end
234
+ end
235
+ end
236
+ end
237
+ end
238
+ end
239
+ end