twilio-ruby 5.0.0.rc16 → 5.0.0.rc17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHORS.md +1 -0
  3. data/CHANGES.md +1 -1
  4. data/README.md +2 -2
  5. data/lib/twilio-ruby/jwt/access_token.rb +23 -1
  6. data/lib/twilio-ruby/rest/api.rb +2 -2
  7. data/lib/twilio-ruby/rest/api/v2010.rb +2 -2
  8. data/lib/twilio-ruby/rest/api/v2010/account.rb +19 -11
  9. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +29 -5
  10. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +5 -5
  11. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +25 -0
  12. data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +406 -0
  13. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +2 -6
  14. data/lib/twilio-ruby/rest/{notifications.rb → chat.rb} +6 -6
  15. data/lib/twilio-ruby/rest/{notifications → chat}/v1.rb +3 -3
  16. data/lib/twilio-ruby/rest/{notifications → chat}/v1/credential.rb +5 -5
  17. data/lib/twilio-ruby/rest/chat/v1/service.rb +501 -0
  18. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +468 -0
  19. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +351 -0
  20. data/lib/twilio-ruby/rest/{api/v2010/account/sms/sms_message.rb → chat/v1/service/channel/message.rb} +120 -168
  21. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +373 -0
  22. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +378 -0
  23. data/lib/twilio-ruby/rest/client.rb +19 -8
  24. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +3 -1
  25. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +2 -6
  26. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +5 -1
  27. data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +5 -0
  28. data/lib/twilio-ruby/rest/notify.rb +44 -0
  29. data/lib/twilio-ruby/rest/notify/v1.rb +44 -0
  30. data/lib/twilio-ruby/rest/notify/v1/credential.rb +375 -0
  31. data/lib/twilio-ruby/rest/{notifications → notify}/v1/service.rb +5 -5
  32. data/lib/twilio-ruby/rest/{notifications → notify}/v1/service/binding.rb +5 -5
  33. data/lib/twilio-ruby/rest/{notifications → notify}/v1/service/notification.rb +4 -4
  34. data/lib/twilio-ruby/rest/preview.rb +11 -0
  35. data/lib/twilio-ruby/rest/preview/sync.rb +35 -0
  36. data/lib/twilio-ruby/rest/preview/sync/service.rb +458 -0
  37. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +376 -0
  38. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +375 -0
  39. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +409 -0
  40. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +375 -0
  41. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +411 -0
  42. data/lib/twilio-ruby/rest/preview/wireless/device.rb +6 -2
  43. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +55 -3
  44. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +29 -6
  45. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +294 -0
  46. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +32 -0
  47. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +374 -0
  48. data/lib/twilio-ruby/version.rb +1 -1
  49. data/spec/integration/api/v2010/account/conference/participant_spec.rb +6 -6
  50. data/spec/integration/api/v2010/account/recording_spec.rb +10 -1
  51. data/spec/integration/api/v2010/account/{sms/short_code_spec.rb → short_code_spec.rb} +0 -7
  52. data/spec/integration/api/v2010/account/sip/credential_list/credential_spec.rb +3 -7
  53. data/spec/integration/chat/v1/credential_spec.rb +223 -0
  54. data/spec/integration/chat/v1/service/channel/member_spec.rb +213 -0
  55. data/spec/integration/chat/v1/service/channel/message_spec.rb +100 -0
  56. data/spec/integration/chat/v1/service/channel_spec.rb +259 -0
  57. data/spec/integration/chat/v1/service/role_spec.rb +263 -0
  58. data/spec/integration/chat/v1/service/user_spec.rb +242 -0
  59. data/spec/integration/chat/v1/service_spec.rb +263 -0
  60. data/spec/integration/ip_messaging/v1/service/role_spec.rb +2 -3
  61. data/spec/integration/ip_messaging/v1/service/user_spec.rb +2 -3
  62. data/spec/integration/lookups/v1/phone_number_spec.rb +5 -0
  63. data/spec/integration/{notifications → notify}/v1/credential_spec.rb +24 -24
  64. data/spec/integration/{notifications → notify}/v1/service/binding_spec.rb +29 -29
  65. data/spec/integration/{notifications → notify}/v1/service/notification_spec.rb +5 -5
  66. data/spec/integration/{notifications → notify}/v1/service_spec.rb +32 -32
  67. data/spec/integration/preview/sync/service/document_spec.rb +92 -0
  68. data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +100 -0
  69. data/spec/integration/preview/sync/service/sync_list_spec.rb +73 -0
  70. data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +101 -0
  71. data/spec/integration/preview/sync/service/sync_map_spec.rb +73 -0
  72. data/spec/integration/preview/sync/service_spec.rb +84 -0
  73. data/spec/integration/taskrouter/v1/workspace/task_channel_spec.rb +127 -0
  74. data/spec/integration/taskrouter/v1/workspace/task_spec.rb +8 -0
  75. data/spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb +201 -0
  76. data/spec/integration/taskrouter/v1/workspace/workflow_spec.rb +2 -3
  77. data/spec/integration/taskrouter/v1/workspace_spec.rb +8 -0
  78. data/spec/jwt/access_token_spec.rb +27 -0
  79. metadata +84 -42
  80. data/lib/twilio-ruby/rest/api/v2010/account/sms.rb +0 -134
  81. data/lib/twilio-ruby/rest/api/v2010/account/sms/short_code.rb +0 -408
  82. data/spec/integration/api/v2010/account/sms/sms_message_spec.rb +0 -275
  83. data/spec/integration/api/v2010/account/sms_spec.rb +0 -10
@@ -262,6 +262,7 @@ module Twilio
262
262
  # Dependents
263
263
  @statistics = nil
264
264
  @reservations = nil
265
+ @worker_channels = nil
265
266
  end
266
267
 
267
268
  ##
@@ -353,6 +354,30 @@ module Twilio
353
354
  @reservations
354
355
  end
355
356
 
357
+ ##
358
+ # Access the worker_channels
359
+ # @return [WorkerChannelList] WorkerChannelList
360
+ def worker_channels(sid=:unset)
361
+ if sid != :unset
362
+ return WorkerChannelContext.new(
363
+ @version,
364
+ @solution[:workspace_sid],
365
+ @solution[:sid],
366
+ sid,
367
+ )
368
+ end
369
+
370
+ unless @worker_channels
371
+ @worker_channels = WorkerChannelList.new(
372
+ @version,
373
+ workspace_sid: @solution[:workspace_sid],
374
+ worker_sid: @solution[:sid],
375
+ )
376
+ end
377
+
378
+ @worker_channels
379
+ end
380
+
356
381
  ##
357
382
  # Provide a user friendly representation
358
383
  def to_s
@@ -497,6 +522,13 @@ module Twilio
497
522
  context.reservations
498
523
  end
499
524
 
525
+ ##
526
+ # Access the worker_channels
527
+ # @return [worker_channels] worker_channels
528
+ def worker_channels
529
+ context.worker_channels
530
+ end
531
+
500
532
  ##
501
533
  # Provide a user friendly representation
502
534
  def to_s
@@ -0,0 +1,374 @@
1
+ ##
2
+ # This code was generated by
3
+ # \ / _ _ _| _ _
4
+ # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ # / /
6
+
7
+ module Twilio
8
+ module REST
9
+ class Taskrouter < Domain
10
+ class V1 < Version
11
+ class WorkspaceContext < InstanceContext
12
+ class WorkerContext < InstanceContext
13
+ class WorkerChannelList < ListResource
14
+ ##
15
+ # Initialize the WorkerChannelList
16
+ # @param [Version] version Version that contains the resource
17
+ # @param [String] workspace_sid The workspace_sid
18
+ # @param [String] worker_sid The worker_sid
19
+ # @return [WorkerChannelList] WorkerChannelList
20
+ def initialize(version, workspace_sid: nil, worker_sid: nil)
21
+ super(version)
22
+
23
+ # Path Solution
24
+ @solution = {
25
+ workspace_sid: workspace_sid,
26
+ worker_sid: worker_sid
27
+ }
28
+ @uri = "/Workspaces/#{@solution[:workspace_sid]}/Workers/#{@solution[:worker_sid]}/Channels"
29
+ end
30
+
31
+ ##
32
+ # Lists WorkerChannelInstance records from the API as a list.
33
+ # Unlike stream(), this operation is eager and will load `limit` records into
34
+ # memory before returning.
35
+ # @param [Integer] limit Upper limit for the number of records to return. stream()
36
+ # guarantees to never return more than limit. Default is no limit
37
+ # @param [Integer] page_size Number of records to fetch per request, when not set will use
38
+ # the default value of 50 records. If no page_size is defined
39
+ # but a limit is defined, stream() will attempt to read the
40
+ # limit with the most efficient page size, i.e. min(limit, 1000)
41
+ # @return [Array] Array of up to limit results
42
+ def list(limit: nil, page_size: nil)
43
+ self.stream(
44
+ limit: limit,
45
+ page_size: page_size
46
+ ).entries
47
+ end
48
+
49
+ ##
50
+ # Streams WorkerChannelInstance records from the API as an Enumerable.
51
+ # This operation lazily loads records as efficiently as possible until the limit
52
+ # is reached.
53
+ # @param [Integer] limit Upper limit for the number of records to return. stream()
54
+ # guarantees to never return more than limit. Default is no limit
55
+ # @param [Integer] page_size Number of records to fetch per request, when not set will use
56
+ # the default value of 50 records. If no page_size is defined
57
+ # but a limit is defined, stream() will attempt to read the
58
+ # limit with the most efficient page size, i.e. min(limit, 1000)
59
+ # @return [Enumerable] Enumerable that will yield up to limit results
60
+ def stream(limit: nil, page_size: nil)
61
+ limits = @version.read_limits(limit, page_size)
62
+
63
+ page = self.page(
64
+ page_size: limits[:page_size],
65
+ )
66
+
67
+ @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
68
+ end
69
+
70
+ ##
71
+ # When passed a block, yields WorkerChannelInstance records from the API.
72
+ # This operation lazily loads records as efficiently as possible until the limit
73
+ # is reached.
74
+ # @param [Integer] limit Upper limit for the number of records to return. stream()
75
+ # guarantees to never return more than limit. Default is no limit
76
+ # @param [Integer] page_size Number of records to fetch per request, when not set will use
77
+ # the default value of 50 records. If no page_size is defined
78
+ # but a limit is defined, stream() will attempt to read the
79
+ # limit with the most efficient page size, i.e. min(limit, 1000)
80
+ def each
81
+ limits = @version.read_limits
82
+
83
+ page = self.page(
84
+ page_size: limits[:page_size],
85
+ )
86
+
87
+ @version.stream(page,
88
+ limit: limits[:limit],
89
+ page_limit: limits[:page_limit]).each {|x| yield x}
90
+ end
91
+
92
+ ##
93
+ # Retrieve a single page of WorkerChannelInstance records from the API.
94
+ # Request is executed immediately.
95
+ # @param [String] page_token PageToken provided by the API
96
+ # @param [Integer] page_number Page Number, this value is simply for client state
97
+ # @param [Integer] page_size Number of records to return, defaults to 50
98
+ # @return [Page] Page of WorkerChannelInstance
99
+ def page(page_token: nil, page_number: nil, page_size: nil)
100
+ params = {
101
+ 'PageToken' => page_token,
102
+ 'Page' => page_number,
103
+ 'PageSize' => page_size,
104
+ }
105
+ response = @version.page(
106
+ 'GET',
107
+ @uri,
108
+ params
109
+ )
110
+ return WorkerChannelPage.new(@version, response, @solution)
111
+ end
112
+
113
+ ##
114
+ # Provide a user friendly representation
115
+ def to_s
116
+ '#<Twilio.Taskrouter.V1.WorkerChannelList>'
117
+ end
118
+ end
119
+
120
+ class WorkerChannelPage < Page
121
+ ##
122
+ # Initialize the WorkerChannelPage
123
+ # @param [Version] version Version that contains the resource
124
+ # @param [Response] response Response from the API
125
+ # @param [Hash] solution Path solution for the resource
126
+ # @param [String] workspace_sid The workspace_sid
127
+ # @param [String] worker_sid The worker_sid
128
+ # @return [WorkerChannelPage] WorkerChannelPage
129
+ def initialize(version, response, solution)
130
+ super(version, response)
131
+
132
+ # Path Solution
133
+ @solution = solution
134
+ end
135
+
136
+ ##
137
+ # Build an instance of WorkerChannelInstance
138
+ # @param [Hash] payload Payload response from the API
139
+ # @return [WorkerChannelInstance] WorkerChannelInstance
140
+ def get_instance(payload)
141
+ return WorkerChannelInstance.new(
142
+ @version,
143
+ payload,
144
+ workspace_sid: @solution[:workspace_sid],
145
+ worker_sid: @solution[:worker_sid],
146
+ )
147
+ end
148
+
149
+ ##
150
+ # Provide a user friendly representation
151
+ def to_s
152
+ '<Twilio.Taskrouter.V1.WorkerChannelPage>'
153
+ end
154
+ end
155
+
156
+ class WorkerChannelContext < InstanceContext
157
+ ##
158
+ # Initialize the WorkerChannelContext
159
+ # @param [Version] version Version that contains the resource
160
+ # @param [String] workspace_sid The workspace_sid
161
+ # @param [String] worker_sid The worker_sid
162
+ # @param [String] sid The sid
163
+ # @return [WorkerChannelContext] WorkerChannelContext
164
+ def initialize(version, workspace_sid, worker_sid, sid)
165
+ super(version)
166
+
167
+ # Path Solution
168
+ @solution = {
169
+ workspace_sid: workspace_sid,
170
+ worker_sid: worker_sid,
171
+ sid: sid,
172
+ }
173
+ @uri = "/Workspaces/#{@solution[:workspace_sid]}/Workers/#{@solution[:worker_sid]}/Channels/#{@solution[:sid]}"
174
+ end
175
+
176
+ ##
177
+ # Fetch a WorkerChannelInstance
178
+ # @return [WorkerChannelInstance] Fetched WorkerChannelInstance
179
+ def fetch
180
+ params = {}
181
+
182
+ payload = @version.fetch(
183
+ 'GET',
184
+ @uri,
185
+ params,
186
+ )
187
+
188
+ return WorkerChannelInstance.new(
189
+ @version,
190
+ payload,
191
+ workspace_sid: @solution[:workspace_sid],
192
+ worker_sid: @solution[:worker_sid],
193
+ sid: @solution[:sid],
194
+ )
195
+ end
196
+
197
+ ##
198
+ # Update the WorkerChannelInstance
199
+ # @param [String] capacity The capacity
200
+ # @param [Boolean] available The available
201
+ # @return [WorkerChannelInstance] Updated WorkerChannelInstance
202
+ def update(capacity: nil, available: nil)
203
+ data = {
204
+ 'Capacity' => capacity,
205
+ 'Available' => available,
206
+ }
207
+
208
+ payload = @version.update(
209
+ 'POST',
210
+ @uri,
211
+ data: data,
212
+ )
213
+
214
+ return WorkerChannelInstance.new(
215
+ @version,
216
+ payload,
217
+ workspace_sid: @solution[:workspace_sid],
218
+ worker_sid: @solution[:worker_sid],
219
+ sid: @solution[:sid],
220
+ )
221
+ end
222
+
223
+ ##
224
+ # Provide a user friendly representation
225
+ def to_s
226
+ context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
227
+ "#<Twilio.Taskrouter.V1.WorkerChannelContext #{context}>"
228
+ end
229
+ end
230
+
231
+ class WorkerChannelInstance < InstanceResource
232
+ ##
233
+ # Initialize the WorkerChannelInstance
234
+ # @param [Version] version Version that contains the resource
235
+ # @param [Hash] payload payload that contains response from Twilio
236
+ # @param [String] workspace_sid The workspace_sid
237
+ # @param [String] worker_sid The worker_sid
238
+ # @param [String] sid The sid
239
+ # @return [WorkerChannelInstance] WorkerChannelInstance
240
+ def initialize(version, payload, workspace_sid: nil, worker_sid: nil, sid: nil)
241
+ super(version)
242
+
243
+ # Marshaled Properties
244
+ @properties = {
245
+ 'account_sid' => payload['account_sid'],
246
+ 'assigned_tasks' => payload['assigned_tasks'].to_i,
247
+ 'available' => payload['available'],
248
+ 'available_capacity_percentage' => payload['available_capacity_percentage'].to_i,
249
+ 'configured_capacity' => payload['configured_capacity'].to_i,
250
+ 'date_created' => Twilio.deserialize_iso8601(payload['date_created']),
251
+ 'date_updated' => Twilio.deserialize_iso8601(payload['date_updated']),
252
+ 'sid' => payload['sid'],
253
+ 'task_channel_sid' => payload['task_channel_sid'],
254
+ 'task_channel_unique_name' => payload['task_channel_unique_name'],
255
+ 'worker_sid' => payload['worker_sid'],
256
+ 'workspace_sid' => payload['workspace_sid'],
257
+ 'links' => payload['links'],
258
+ 'url' => payload['url'],
259
+ }
260
+
261
+ # Context
262
+ @instance_context = nil
263
+ @params = {
264
+ 'workspace_sid' => workspace_sid,
265
+ 'worker_sid' => worker_sid,
266
+ 'sid' => sid || @properties['sid'],
267
+ }
268
+ end
269
+
270
+ ##
271
+ # Generate an instance context for the instance, the context is capable of
272
+ # performing various actions. All instance actions are proxied to the context
273
+ # @param [Version] version Version that contains the resource
274
+ # @return [WorkerChannelContext] WorkerChannelContext for this WorkerChannelInstance
275
+ def context
276
+ unless @instance_context
277
+ @instance_context = WorkerChannelContext.new(
278
+ @version,
279
+ @params['workspace_sid'],
280
+ @params['worker_sid'],
281
+ @params['sid'],
282
+ )
283
+ end
284
+ @instance_context
285
+ end
286
+
287
+ def account_sid
288
+ @properties['account_sid']
289
+ end
290
+
291
+ def assigned_tasks
292
+ @properties['assigned_tasks']
293
+ end
294
+
295
+ def available
296
+ @properties['available']
297
+ end
298
+
299
+ def available_capacity_percentage
300
+ @properties['available_capacity_percentage']
301
+ end
302
+
303
+ def configured_capacity
304
+ @properties['configured_capacity']
305
+ end
306
+
307
+ def date_created
308
+ @properties['date_created']
309
+ end
310
+
311
+ def date_updated
312
+ @properties['date_updated']
313
+ end
314
+
315
+ def sid
316
+ @properties['sid']
317
+ end
318
+
319
+ def task_channel_sid
320
+ @properties['task_channel_sid']
321
+ end
322
+
323
+ def task_channel_unique_name
324
+ @properties['task_channel_unique_name']
325
+ end
326
+
327
+ def worker_sid
328
+ @properties['worker_sid']
329
+ end
330
+
331
+ def workspace_sid
332
+ @properties['workspace_sid']
333
+ end
334
+
335
+ def links
336
+ @properties['links']
337
+ end
338
+
339
+ def url
340
+ @properties['url']
341
+ end
342
+
343
+ ##
344
+ # Fetch a WorkerChannelInstance
345
+ # @return [WorkerChannelInstance] Fetched WorkerChannelInstance
346
+ def fetch
347
+ context.fetch
348
+ end
349
+
350
+ ##
351
+ # Update the WorkerChannelInstance
352
+ # @param [String] capacity The capacity
353
+ # @param [Boolean] available The available
354
+ # @return [WorkerChannelInstance] Updated WorkerChannelInstance
355
+ def update(capacity: nil, available: nil)
356
+ context.update(
357
+ capacity: capacity,
358
+ available: available,
359
+ )
360
+ end
361
+
362
+ ##
363
+ # Provide a user friendly representation
364
+ def to_s
365
+ values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
366
+ "<Twilio.Taskrouter.V1.WorkerChannelInstance #{values}>"
367
+ end
368
+ end
369
+ end
370
+ end
371
+ end
372
+ end
373
+ end
374
+ end
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '5.0.0.rc16'
2
+ VERSION = '5.0.0.rc17'
3
3
  end
@@ -36,6 +36,7 @@ describe 'Participant' do
36
36
  "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
37
37
  "end_conference_on_exit": false,
38
38
  "muted": false,
39
+ "hold": false,
39
40
  "start_conference_on_enter": true,
40
41
  "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
41
42
  }
@@ -55,17 +56,14 @@ describe 'Participant' do
55
56
  expect {
56
57
  @client.api.v2010.accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
57
58
  .conferences("CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
58
- .participants("CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update(muted: true)
59
+ .participants("CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
59
60
  }.to raise_exception(Twilio::REST::TwilioException)
60
61
 
61
- values = {
62
- 'Muted' => true,
63
- }
62
+ values = {}
64
63
  expect(
65
64
  @holodeck.has_request?(Holodeck::Request.new(
66
65
  method: 'post',
67
66
  url: 'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json',
68
- data: values,
69
67
  ))).to eq(true)
70
68
  end
71
69
 
@@ -81,6 +79,7 @@ describe 'Participant' do
81
79
  "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
82
80
  "end_conference_on_exit": false,
83
81
  "muted": false,
82
+ "hold": false,
84
83
  "start_conference_on_enter": true,
85
84
  "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
86
85
  }
@@ -89,7 +88,7 @@ describe 'Participant' do
89
88
 
90
89
  actual = @client.api.v2010.accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
91
90
  .conferences("CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
92
- .participants("CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update(muted: true)
91
+ .participants("CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
93
92
 
94
93
  expect(actual).to_not eq(nil)
95
94
  end
@@ -162,6 +161,7 @@ describe 'Participant' do
162
161
  "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
163
162
  "end_conference_on_exit": false,
164
163
  "muted": false,
164
+ "hold": false,
165
165
  "start_conference_on_enter": true,
166
166
  "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
167
167
  }