twilio-ruby 5.36.0 → 5.37.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +37 -0
  3. data/README.md +9 -3
  4. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +6 -4
  5. data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +12 -12
  6. data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +12 -3
  7. data/lib/twilio-ruby/rest/notify/v1/service.rb +20 -1
  8. data/lib/twilio-ruby/rest/preview.rb +6 -0
  9. data/lib/twilio-ruby/rest/preview/trusted_comms.rb +7 -0
  10. data/lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb +193 -0
  11. data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb +2 -5
  12. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +26 -22
  13. data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +24 -0
  14. data/lib/twilio-ruby/rest/verify/v2/service/entity/access_token.rb +141 -0
  15. data/lib/twilio-ruby/version.rb +1 -1
  16. data/spec/integration/api/v2010/account/conference/participant_spec.rb +117 -0
  17. data/spec/integration/api/v2010/account/outgoing_caller_id_spec.rb +8 -14
  18. data/spec/integration/api/v2010/account/validation_request_spec.rb +1 -1
  19. data/spec/integration/autopilot/v1/assistant/query_spec.rb +4 -4
  20. data/spec/integration/preview/trusted_comms/brands_information_spec.rb +44 -0
  21. data/spec/integration/preview/trusted_comms/business/brand/branded_channel/channel_spec.rb +3 -3
  22. data/spec/integration/supersim/v1/fleet_spec.rb +4 -3
  23. data/spec/integration/supersim/v1/sim_spec.rb +78 -6
  24. data/spec/integration/verify/v2/service/entity/access_token_spec.rb +46 -0
  25. data/spec/integration/verify/v2/service/entity_spec.rb +6 -3
  26. metadata +8 -2
@@ -41,12 +41,9 @@ module Twilio
41
41
  # Request is executed immediately.
42
42
  # @param [String] phone_number_sid The unique SID identifier of the Phone Number
43
43
  # of the Phone number to be assigned to the Branded Channel.
44
- # @param [String] phone_number The phone number given in [E.164
45
- # format](https://www.twilio.com/docs/glossary/what-e164) to assign to the Branded
46
- # Channel. It must be a Twilio number that from your account.
47
44
  # @return [ChannelInstance] Newly created ChannelInstance
48
- def create(phone_number_sid: nil, phone_number: nil)
49
- data = Twilio::Values.of({'PhoneNumberSid' => phone_number_sid, 'PhoneNumber' => phone_number, })
45
+ def create(phone_number_sid: nil)
46
+ data = Twilio::Values.of({'PhoneNumberSid' => phone_number_sid, })
50
47
 
51
48
  payload = @version.create(
52
49
  'POST',
@@ -28,33 +28,37 @@ module Twilio
28
28
  ##
29
29
  # Retrieve a single page of FleetInstance records from the API.
30
30
  # Request is executed immediately.
31
+ # @param [String] network_access_profile The SID or unique name of the Network
32
+ # Access Profile that will control which cellular networks the Fleet's SIMs can
33
+ # connect to
31
34
  # @param [String] unique_name An application-defined string that uniquely
32
35
  # identifies the resource. It can be used in place of the resource's `sid` in the
33
36
  # URL to address the resource.
34
37
  # @param [Boolean] data_enabled Defines whether SIMs in the Fleet are capable of
35
- # using 2G/3G/4G/LTE/CAT-M/NB-IoT data connectivity
36
- # @param [String] data_limit The data_limit
38
+ # using 2G/3G/4G/LTE/CAT-M data connectivity
39
+ # @param [String] data_limit The total data usage (download and upload combined)
40
+ # in Megabytes that each Sim resource assigned to the Fleet resource can consume
41
+ # during a billing period (normally one month). Value must be between 1MB (1) and
42
+ # 2TB (2,000,000).
37
43
  # @param [Boolean] commands_enabled Defines whether SIMs in the Fleet are capable
38
- # of sending and receiving Commands via SMS.
44
+ # of sending and receiving machine-to-machine SMS via Commands.
39
45
  # @param [String] commands_url The URL that will receive a webhook when a SIM in
40
- # the Fleet originates a machine-to-machine Command. Your server should respond
41
- # with an HTTP status code in the 200 range; any response body will be ignored.
46
+ # the Fleet originates a machine-to-machine SMS via Commands. Your server should
47
+ # respond with an HTTP status code in the 200 range; any response body will be
48
+ # ignored.
42
49
  # @param [String] commands_method A string representing the HTTP method to use
43
50
  # when making a request to `commands_url`. Can be one of POST or GET. Defaults to
44
51
  # POST.
45
- # @param [String] network_access_profile The SID or unique name of the Network
46
- # Access Profile that will control which cellular network operators the Fleet's
47
- # SIMs can connect to
48
52
  # @return [FleetInstance] Newly created FleetInstance
49
- def create(unique_name: :unset, data_enabled: :unset, data_limit: :unset, commands_enabled: :unset, commands_url: :unset, commands_method: :unset, network_access_profile: :unset)
53
+ def create(network_access_profile: nil, unique_name: :unset, data_enabled: :unset, data_limit: :unset, commands_enabled: :unset, commands_url: :unset, commands_method: :unset)
50
54
  data = Twilio::Values.of({
55
+ 'NetworkAccessProfile' => network_access_profile,
51
56
  'UniqueName' => unique_name,
52
57
  'DataEnabled' => data_enabled,
53
58
  'DataLimit' => data_limit,
54
59
  'CommandsEnabled' => commands_enabled,
55
60
  'CommandsUrl' => commands_url,
56
61
  'CommandsMethod' => commands_method,
57
- 'NetworkAccessProfile' => network_access_profile,
58
62
  })
59
63
 
60
64
  payload = @version.create(
@@ -71,8 +75,8 @@ module Twilio
71
75
  # Unlike stream(), this operation is eager and will load `limit` records into
72
76
  # memory before returning.
73
77
  # @param [String] network_access_profile The SID or unique name of the Network
74
- # Access Profile that controls which cellular network operators the Fleet's SIMs
75
- # can connect to
78
+ # Access Profile that controls which cellular networks the Fleet's SIMs can
79
+ # connect to
76
80
  # @param [Integer] limit Upper limit for the number of records to return. stream()
77
81
  # guarantees to never return more than limit. Default is no limit
78
82
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -93,8 +97,8 @@ module Twilio
93
97
  # This operation lazily loads records as efficiently as possible until the limit
94
98
  # is reached.
95
99
  # @param [String] network_access_profile The SID or unique name of the Network
96
- # Access Profile that controls which cellular network operators the Fleet's SIMs
97
- # can connect to
100
+ # Access Profile that controls which cellular networks the Fleet's SIMs can
101
+ # connect to
98
102
  # @param [Integer] limit Upper limit for the number of records to return. stream()
99
103
  # guarantees to never return more than limit. Default is no limit.
100
104
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -128,8 +132,8 @@ module Twilio
128
132
  # Retrieve a single page of FleetInstance records from the API.
129
133
  # Request is executed immediately.
130
134
  # @param [String] network_access_profile The SID or unique name of the Network
131
- # Access Profile that controls which cellular network operators the Fleet's SIMs
132
- # can connect to
135
+ # Access Profile that controls which cellular networks the Fleet's SIMs can
136
+ # connect to
133
137
  # @param [String] page_token PageToken provided by the API
134
138
  # @param [Integer] page_number Page Number, this value is simply for client state
135
139
  # @param [Integer] page_size Number of records to return, defaults to 50
@@ -237,8 +241,8 @@ module Twilio
237
241
  # identifies the resource. It can be used in place of the resource's `sid` in the
238
242
  # URL to address the resource.
239
243
  # @param [String] network_access_profile The SID or unique name of the Network
240
- # Access Profile that will control which cellular network operators the Fleet's
241
- # SIMs can connect to
244
+ # Access Profile that will control which cellular networks the Fleet's SIMs can
245
+ # connect to
242
246
  # @return [FleetInstance] Updated FleetInstance
243
247
  def update(unique_name: :unset, network_access_profile: :unset)
244
248
  data = Twilio::Values.of({
@@ -370,13 +374,13 @@ module Twilio
370
374
  end
371
375
 
372
376
  ##
373
- # @return [Boolean] Defines whether SIMs in the Fleet are capable of sending and receiving Commands via SMS
377
+ # @return [Boolean] Defines whether SIMs in the Fleet are capable of sending and receiving machine-to-machine SMS via Commands
374
378
  def commands_enabled
375
379
  @properties['commands_enabled']
376
380
  end
377
381
 
378
382
  ##
379
- # @return [String] The URL that will receive a webhook when a SIM in the Fleet originates a machine-to-machine Command
383
+ # @return [String] The URL that will receive a webhook when a SIM in the Fleet originates a machine-to-machine SMS via Commands
380
384
  def commands_url
381
385
  @properties['commands_url']
382
386
  end
@@ -406,8 +410,8 @@ module Twilio
406
410
  # identifies the resource. It can be used in place of the resource's `sid` in the
407
411
  # URL to address the resource.
408
412
  # @param [String] network_access_profile The SID or unique name of the Network
409
- # Access Profile that will control which cellular network operators the Fleet's
410
- # SIMs can connect to
413
+ # Access Profile that will control which cellular networks the Fleet's SIMs can
414
+ # connect to
411
415
  # @return [FleetInstance] Updated FleetInstance
412
416
  def update(unique_name: :unset, network_access_profile: :unset)
413
417
  context.update(unique_name: unique_name, network_access_profile: network_access_profile, )
@@ -182,6 +182,7 @@ module Twilio
182
182
 
183
183
  # Dependents
184
184
  @factors = nil
185
+ @access_tokens = nil
185
186
  end
186
187
 
187
188
  ##
@@ -233,6 +234,22 @@ module Twilio
233
234
  @factors
234
235
  end
235
236
 
237
+ ##
238
+ # Access the access_tokens
239
+ # @return [AccessTokenList]
240
+ # @return [AccessTokenContext]
241
+ def access_tokens
242
+ unless @access_tokens
243
+ @access_tokens = AccessTokenList.new(
244
+ @version,
245
+ service_sid: @solution[:service_sid],
246
+ identity: @solution[:identity],
247
+ )
248
+ end
249
+
250
+ @access_tokens
251
+ end
252
+
236
253
  ##
237
254
  # Provide a user friendly representation
238
255
  def to_s
@@ -358,6 +375,13 @@ module Twilio
358
375
  context.factors
359
376
  end
360
377
 
378
+ ##
379
+ # Access the access_tokens
380
+ # @return [access_tokens] access_tokens
381
+ def access_tokens
382
+ context.access_tokens
383
+ end
384
+
361
385
  ##
362
386
  # Provide a user friendly representation
363
387
  def to_s
@@ -0,0 +1,141 @@
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 ServiceContext < InstanceContext
14
+ class EntityContext < InstanceContext
15
+ ##
16
+ # 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.
17
+ class AccessTokenList < ListResource
18
+ ##
19
+ # Initialize the AccessTokenList
20
+ # @param [Version] version Version that contains the resource
21
+ # @param [String] service_sid The unique SID identifier of the Service.
22
+ # @param [String] identity Customer unique identity for the Entity of the Service.
23
+ # This could be anything the customer wants, an email, a phone number, a Twitter
24
+ # handle, a site username, etc.
25
+ # @return [AccessTokenList] AccessTokenList
26
+ def initialize(version, service_sid: nil, identity: nil)
27
+ super(version)
28
+
29
+ # Path Solution
30
+ @solution = {service_sid: service_sid, identity: identity}
31
+ @uri = "/Services/#{@solution[:service_sid]}/Entities/#{@solution[:identity]}/AccessTokens"
32
+ end
33
+
34
+ ##
35
+ # Retrieve a single page of AccessTokenInstance records from the API.
36
+ # Request is executed immediately.
37
+ # @param [access_token.FactorTypes] factor_type The Type of this Factor. eg. push
38
+ # @return [AccessTokenInstance] Newly created AccessTokenInstance
39
+ def create(factor_type: nil)
40
+ data = Twilio::Values.of({'FactorType' => factor_type, })
41
+
42
+ payload = @version.create(
43
+ 'POST',
44
+ @uri,
45
+ data: data
46
+ )
47
+
48
+ AccessTokenInstance.new(
49
+ @version,
50
+ payload,
51
+ service_sid: @solution[:service_sid],
52
+ identity: @solution[:identity],
53
+ )
54
+ end
55
+
56
+ ##
57
+ # Provide a user friendly representation
58
+ def to_s
59
+ '#<Twilio.Verify.V2.AccessTokenList>'
60
+ end
61
+ end
62
+
63
+ ##
64
+ # 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.
65
+ class AccessTokenPage < Page
66
+ ##
67
+ # Initialize the AccessTokenPage
68
+ # @param [Version] version Version that contains the resource
69
+ # @param [Response] response Response from the API
70
+ # @param [Hash] solution Path solution for the resource
71
+ # @return [AccessTokenPage] AccessTokenPage
72
+ def initialize(version, response, solution)
73
+ super(version, response)
74
+
75
+ # Path Solution
76
+ @solution = solution
77
+ end
78
+
79
+ ##
80
+ # Build an instance of AccessTokenInstance
81
+ # @param [Hash] payload Payload response from the API
82
+ # @return [AccessTokenInstance] AccessTokenInstance
83
+ def get_instance(payload)
84
+ AccessTokenInstance.new(
85
+ @version,
86
+ payload,
87
+ service_sid: @solution[:service_sid],
88
+ identity: @solution[:identity],
89
+ )
90
+ end
91
+
92
+ ##
93
+ # Provide a user friendly representation
94
+ def to_s
95
+ '<Twilio.Verify.V2.AccessTokenPage>'
96
+ end
97
+ end
98
+
99
+ ##
100
+ # 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.
101
+ class AccessTokenInstance < InstanceResource
102
+ ##
103
+ # Initialize the AccessTokenInstance
104
+ # @param [Version] version Version that contains the resource
105
+ # @param [Hash] payload payload that contains response from Twilio
106
+ # @param [String] service_sid The unique SID identifier of the Service.
107
+ # @param [String] identity Customer unique identity for the Entity of the Service.
108
+ # This could be anything the customer wants, an email, a phone number, a Twitter
109
+ # handle, a site username, etc.
110
+ # @return [AccessTokenInstance] AccessTokenInstance
111
+ def initialize(version, payload, service_sid: nil, identity: nil)
112
+ super(version)
113
+
114
+ # Marshaled Properties
115
+ @properties = {'token' => payload['token'], }
116
+ end
117
+
118
+ ##
119
+ # @return [String] Generated access token.
120
+ def token
121
+ @properties['token']
122
+ end
123
+
124
+ ##
125
+ # Provide a user friendly representation
126
+ def to_s
127
+ "<Twilio.Verify.V2.AccessTokenInstance>"
128
+ end
129
+
130
+ ##
131
+ # Provide a detailed, user friendly representation
132
+ def inspect
133
+ "<Twilio.Verify.V2.AccessTokenInstance>"
134
+ end
135
+ end
136
+ end
137
+ end
138
+ end
139
+ end
140
+ end
141
+ end
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '5.36.0'
2
+ VERSION = '5.37.0'
3
3
  end
@@ -33,6 +33,37 @@ describe 'Participant' do
33
33
  {
34
34
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
35
35
  "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
36
+ "label": null,
37
+ "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
38
+ "date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
39
+ "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
40
+ "end_conference_on_exit": false,
41
+ "muted": false,
42
+ "hold": false,
43
+ "status": "complete",
44
+ "start_conference_on_enter": true,
45
+ "coaching": true,
46
+ "call_sid_to_coach": "CAbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
47
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
48
+ }
49
+ ]
50
+ ))
51
+
52
+ actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
53
+ .conferences('CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
54
+ .participants('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
55
+
56
+ expect(actual).to_not eq(nil)
57
+ end
58
+
59
+ it "receives fetch_by_label responses" do
60
+ @holodeck.mock(Twilio::Response.new(
61
+ 200,
62
+ %q[
63
+ {
64
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
65
+ "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
66
+ "label": "customer",
36
67
  "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
37
68
  "date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
38
69
  "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
@@ -79,6 +110,37 @@ describe 'Participant' do
79
110
  {
80
111
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
81
112
  "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
113
+ "label": null,
114
+ "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
115
+ "date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
116
+ "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
117
+ "end_conference_on_exit": false,
118
+ "muted": true,
119
+ "hold": false,
120
+ "status": "complete",
121
+ "start_conference_on_enter": true,
122
+ "coaching": false,
123
+ "call_sid_to_coach": null,
124
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
125
+ }
126
+ ]
127
+ ))
128
+
129
+ actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
130
+ .conferences('CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
131
+ .participants('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
132
+
133
+ expect(actual).to_not eq(nil)
134
+ end
135
+
136
+ it "receives mute_participant_by_label responses" do
137
+ @holodeck.mock(Twilio::Response.new(
138
+ 200,
139
+ %q[
140
+ {
141
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
142
+ "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
143
+ "label": "customer",
82
144
  "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
83
145
  "date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
84
146
  "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
@@ -108,6 +170,37 @@ describe 'Participant' do
108
170
  {
109
171
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
110
172
  "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
173
+ "label": null,
174
+ "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
175
+ "date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
176
+ "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
177
+ "end_conference_on_exit": false,
178
+ "muted": false,
179
+ "hold": false,
180
+ "status": "complete",
181
+ "start_conference_on_enter": true,
182
+ "coaching": true,
183
+ "call_sid_to_coach": "CAbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
184
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
185
+ }
186
+ ]
187
+ ))
188
+
189
+ actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
190
+ .conferences('CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
191
+ .participants('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
192
+
193
+ expect(actual).to_not eq(nil)
194
+ end
195
+
196
+ it "receives modify_participant_by_label responses" do
197
+ @holodeck.mock(Twilio::Response.new(
198
+ 200,
199
+ %q[
200
+ {
201
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
202
+ "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
203
+ "label": "customer",
111
204
  "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
112
205
  "date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
113
206
  "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
@@ -155,6 +248,7 @@ describe 'Participant' do
155
248
  {
156
249
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
157
250
  "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
251
+ "label": "customer",
158
252
  "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
159
253
  "date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
160
254
  "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
@@ -184,6 +278,7 @@ describe 'Participant' do
184
278
  {
185
279
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
186
280
  "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
281
+ "label": "customer",
187
282
  "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
188
283
  "date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
189
284
  "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
@@ -213,6 +308,7 @@ describe 'Participant' do
213
308
  {
214
309
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
215
310
  "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
311
+ "label": null,
216
312
  "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
217
313
  "date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
218
314
  "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
@@ -242,6 +338,7 @@ describe 'Participant' do
242
338
  {
243
339
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
244
340
  "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
341
+ "label": null,
245
342
  "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
246
343
  "date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
247
344
  "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
@@ -271,6 +368,7 @@ describe 'Participant' do
271
368
  {
272
369
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
273
370
  "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
371
+ "label": null,
274
372
  "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
275
373
  "date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
276
374
  "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
@@ -323,6 +421,19 @@ describe 'Participant' do
323
421
  expect(actual).to eq(true)
324
422
  end
325
423
 
424
+ it "receives delete_by_label responses" do
425
+ @holodeck.mock(Twilio::Response.new(
426
+ 204,
427
+ nil,
428
+ ))
429
+
430
+ actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
431
+ .conferences('CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
432
+ .participants('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
433
+
434
+ expect(actual).to eq(true)
435
+ end
436
+
326
437
  it "can read" do
327
438
  @holodeck.mock(Twilio::Response.new(500, ''))
328
439
 
@@ -374,6 +485,7 @@ describe 'Participant' do
374
485
  {
375
486
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
376
487
  "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
488
+ "label": null,
377
489
  "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
378
490
  "date_created": "Sat, 19 Feb 2011 21:07:19 +0000",
379
491
  "date_updated": "Sat, 19 Feb 2011 21:07:19 +0000",
@@ -389,6 +501,7 @@ describe 'Participant' do
389
501
  {
390
502
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
391
503
  "call_sid": "CAbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
504
+ "label": null,
392
505
  "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
393
506
  "date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
394
507
  "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
@@ -430,6 +543,7 @@ describe 'Participant' do
430
543
  {
431
544
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
432
545
  "call_sid": "CAcccccccccccccccccccccccccccccccc",
546
+ "label": null,
433
547
  "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
434
548
  "date_created": "Thu, 17 Feb 2011 21:07:19 +0000",
435
549
  "date_updated": "Thu, 17 Feb 2011 21:07:19 +0000",
@@ -445,6 +559,7 @@ describe 'Participant' do
445
559
  {
446
560
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
447
561
  "call_sid": "CAdddddddddddddddddddddddddddddddd",
562
+ "label": null,
448
563
  "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
449
564
  "date_created": "Wed, 16 Feb 2011 21:07:19 +0000",
450
565
  "date_updated": "Wed, 16 Feb 2011 21:07:19 +0000",
@@ -486,6 +601,7 @@ describe 'Participant' do
486
601
  {
487
602
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
488
603
  "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
604
+ "label": null,
489
605
  "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
490
606
  "date_created": "Sat, 19 Feb 2011 21:07:19 +0000",
491
607
  "date_updated": "Sat, 19 Feb 2011 21:07:19 +0000",
@@ -501,6 +617,7 @@ describe 'Participant' do
501
617
  {
502
618
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
503
619
  "call_sid": "CAbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
620
+ "label": null,
504
621
  "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
505
622
  "date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
506
623
  "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",