twilio-ruby 5.72.1 → 5.73.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +25 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +22 -16
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +8 -1
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +2 -2
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service.rb +4 -4
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +2 -2
- data/lib/twilio-ruby/rest/client.rb +7 -0
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +1 -1
- data/lib/twilio-ruby/rest/events/v1/schema/version.rb +1 -1
- data/lib/twilio-ruby/rest/events/v1/schema.rb +1 -1
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v1/room.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +4 -4
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +1 -1
- data/lib/twilio-ruby/rest/media/v1/media_recording.rb +2 -2
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +1 -1
- data/lib/twilio-ruby/rest/oauth/v1/oauth.rb +162 -0
- data/lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb +242 -0
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +157 -0
- data/lib/twilio-ruby/rest/oauth/v1/user_info.rb +193 -0
- data/lib/twilio-ruby/rest/oauth/v1.rb +56 -0
- data/lib/twilio-ruby/rest/oauth.rb +62 -0
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +2 -2
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +1 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb +2 -2
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/settings_update.rb +240 -0
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +4 -4
- data/lib/twilio-ruby/rest/supersim/v1.rb +7 -0
- data/lib/twilio-ruby/rest/supersim.rb +6 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +3 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +12 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +5 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +3 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +6 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +13 -13
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +13 -13
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +3 -3
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +1 -9
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +1 -7
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +0 -8
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +0 -8
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +0 -6
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +0 -8
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +0 -8
- data/lib/twilio-ruby/rest/verify/v2/service.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/template.rb +7 -0
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +4 -4
- data/lib/twilio-ruby/rest/video/v1/composition.rb +3 -3
- data/lib/twilio-ruby/rest/video/v1/recording.rb +2 -2
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +2 -2
- data/lib/twilio-ruby/rest/video/v1/room.rb +4 -4
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +2 -2
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +1 -1
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +3 -3
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +2 -2
- data/lib/twilio-ruby/twiml/voice_response.rb +6 -4
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +9 -2
@@ -240,13 +240,13 @@ module Twilio
|
|
240
240
|
'failure_reason' => payload['failure_reason'],
|
241
241
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
242
242
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
243
|
-
'verification_attempts' => payload['verification_attempts'].to_i,
|
243
|
+
'verification_attempts' => payload['verification_attempts'] == nil ? payload['verification_attempts'] : payload['verification_attempts'].to_i,
|
244
244
|
'email' => payload['email'],
|
245
245
|
'cc_emails' => payload['cc_emails'],
|
246
246
|
'verification_type' => payload['verification_type'],
|
247
247
|
'verification_document_sid' => payload['verification_document_sid'],
|
248
248
|
'extension' => payload['extension'],
|
249
|
-
'call_delay' => payload['call_delay'].to_i,
|
249
|
+
'call_delay' => payload['call_delay'] == nil ? payload['call_delay'] : payload['call_delay'].to_i,
|
250
250
|
'verification_code' => payload['verification_code'],
|
251
251
|
'verification_call_sids' => payload['verification_call_sids'],
|
252
252
|
}
|
@@ -394,14 +394,14 @@ module Twilio
|
|
394
394
|
'failure_reason' => payload['failure_reason'],
|
395
395
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
396
396
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
397
|
-
'verification_attempts' => payload['verification_attempts'].to_i,
|
397
|
+
'verification_attempts' => payload['verification_attempts'] == nil ? payload['verification_attempts'] : payload['verification_attempts'].to_i,
|
398
398
|
'email' => payload['email'],
|
399
399
|
'cc_emails' => payload['cc_emails'],
|
400
400
|
'url' => payload['url'],
|
401
401
|
'verification_type' => payload['verification_type'],
|
402
402
|
'verification_document_sid' => payload['verification_document_sid'],
|
403
403
|
'extension' => payload['extension'],
|
404
|
-
'call_delay' => payload['call_delay'].to_i,
|
404
|
+
'call_delay' => payload['call_delay'] == nil ? payload['call_delay'] : payload['call_delay'].to_i,
|
405
405
|
'verification_code' => payload['verification_code'],
|
406
406
|
'verification_call_sids' => payload['verification_call_sids'],
|
407
407
|
}
|
@@ -275,7 +275,7 @@ module Twilio
|
|
275
275
|
|
276
276
|
# Marshaled Properties
|
277
277
|
@properties = {
|
278
|
-
'index' => payload['index'].to_i,
|
278
|
+
'index' => payload['index'] == nil ? payload['index'] : payload['index'].to_i,
|
279
279
|
'account_sid' => payload['account_sid'],
|
280
280
|
'service_sid' => payload['service_sid'],
|
281
281
|
'list_sid' => payload['list_sid'],
|
@@ -135,8 +135,8 @@ module Twilio
|
|
135
135
|
'account_sid' => payload['account_sid'],
|
136
136
|
'assistant_sid' => payload['assistant_sid'],
|
137
137
|
'task_sid' => payload['task_sid'],
|
138
|
-
'samples_count' => payload['samples_count'].to_i,
|
139
|
-
'fields_count' => payload['fields_count'].to_i,
|
138
|
+
'samples_count' => payload['samples_count'] == nil ? payload['samples_count'] : payload['samples_count'].to_i,
|
139
|
+
'fields_count' => payload['fields_count'] == nil ? payload['fields_count'] : payload['fields_count'].to_i,
|
140
140
|
'url' => payload['url'],
|
141
141
|
}
|
142
142
|
|
@@ -255,7 +255,7 @@ module Twilio
|
|
255
255
|
'friendly_name' => payload['friendly_name'],
|
256
256
|
'data_enabled' => payload['data_enabled'],
|
257
257
|
'data_metering' => payload['data_metering'],
|
258
|
-
'data_limit' => payload['data_limit'].to_i,
|
258
|
+
'data_limit' => payload['data_limit'] == nil ? payload['data_limit'] : payload['data_limit'].to_i,
|
259
259
|
'messaging_enabled' => payload['messaging_enabled'],
|
260
260
|
'voice_enabled' => payload['voice_enabled'],
|
261
261
|
'national_roaming_enabled' => payload['national_roaming_enabled'],
|
@@ -273,7 +273,7 @@ module Twilio
|
|
273
273
|
'capabilities' => payload['capabilities'],
|
274
274
|
'url' => payload['url'],
|
275
275
|
'is_reserved' => payload['is_reserved'],
|
276
|
-
'in_use' => payload['in_use'].to_i,
|
276
|
+
'in_use' => payload['in_use'] == nil ? payload['in_use'] : payload['in_use'].to_i,
|
277
277
|
}
|
278
278
|
|
279
279
|
# Context
|
@@ -355,7 +355,7 @@ module Twilio
|
|
355
355
|
'unique_name' => payload['unique_name'],
|
356
356
|
'status' => payload['status'],
|
357
357
|
'closed_reason' => payload['closed_reason'],
|
358
|
-
'ttl' => payload['ttl'].to_i,
|
358
|
+
'ttl' => payload['ttl'] == nil ? payload['ttl'] : payload['ttl'].to_i,
|
359
359
|
'mode' => payload['mode'],
|
360
360
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
361
361
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
@@ -386,7 +386,7 @@ module Twilio
|
|
386
386
|
'account_sid' => payload['account_sid'],
|
387
387
|
'chat_instance_sid' => payload['chat_instance_sid'],
|
388
388
|
'callback_url' => payload['callback_url'],
|
389
|
-
'default_ttl' => payload['default_ttl'].to_i,
|
389
|
+
'default_ttl' => payload['default_ttl'] == nil ? payload['default_ttl'] : payload['default_ttl'].to_i,
|
390
390
|
'number_selection_behavior' => payload['number_selection_behavior'],
|
391
391
|
'geo_match_level' => payload['geo_match_level'],
|
392
392
|
'intercept_callback_url' => payload['intercept_callback_url'],
|
@@ -240,7 +240,7 @@ module Twilio
|
|
240
240
|
'account_sid' => payload['account_sid'],
|
241
241
|
'friendly_name' => payload['friendly_name'],
|
242
242
|
'status' => payload['status'],
|
243
|
-
'version' => payload['version'].to_i,
|
243
|
+
'version' => payload['version'] == nil ? payload['version'] : payload['version'].to_i,
|
244
244
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
245
245
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
246
246
|
'url' => payload['url'],
|
@@ -202,7 +202,7 @@ module Twilio
|
|
202
202
|
'friendly_name' => payload['friendly_name'],
|
203
203
|
'definition' => payload['definition'],
|
204
204
|
'status' => payload['status'],
|
205
|
-
'revision' => payload['revision'].to_i,
|
205
|
+
'revision' => payload['revision'] == nil ? payload['revision'] : payload['revision'].to_i,
|
206
206
|
'commit_message' => payload['commit_message'],
|
207
207
|
'valid' => payload['valid'],
|
208
208
|
'errors' => payload['errors'],
|
@@ -292,7 +292,7 @@ module Twilio
|
|
292
292
|
'friendly_name' => payload['friendly_name'],
|
293
293
|
'definition' => payload['definition'],
|
294
294
|
'status' => payload['status'],
|
295
|
-
'revision' => payload['revision'].to_i,
|
295
|
+
'revision' => payload['revision'] == nil ? payload['revision'] : payload['revision'].to_i,
|
296
296
|
'commit_message' => payload['commit_message'],
|
297
297
|
'valid' => payload['valid'],
|
298
298
|
'errors' => payload['errors'],
|
@@ -311,7 +311,7 @@ module Twilio
|
|
311
311
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
312
312
|
'url' => payload['url'],
|
313
313
|
'data_enabled' => payload['data_enabled'],
|
314
|
-
'data_limit' => payload['data_limit'].to_i,
|
314
|
+
'data_limit' => payload['data_limit'] == nil ? payload['data_limit'] : payload['data_limit'].to_i,
|
315
315
|
'data_metering' => payload['data_metering'],
|
316
316
|
'sms_commands_enabled' => payload['sms_commands_enabled'],
|
317
317
|
'sms_commands_url' => payload['sms_commands_url'],
|
@@ -287,7 +287,7 @@ module Twilio
|
|
287
287
|
'status' => payload['status'],
|
288
288
|
'direction' => payload['direction'],
|
289
289
|
'device_ip' => payload['device_ip'],
|
290
|
-
'device_port' => payload['device_port'].to_i,
|
290
|
+
'device_port' => payload['device_port'] == nil ? payload['device_port'] : payload['device_port'].to_i,
|
291
291
|
'payload_type' => payload['payload_type'],
|
292
292
|
'payload' => payload['payload'],
|
293
293
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
@@ -0,0 +1,240 @@
|
|
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 Supersim < 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 SettingsUpdateList < ListResource
|
16
|
+
##
|
17
|
+
# Initialize the SettingsUpdateList
|
18
|
+
# @param [Version] version Version that contains the resource
|
19
|
+
# @return [SettingsUpdateList] SettingsUpdateList
|
20
|
+
def initialize(version)
|
21
|
+
super(version)
|
22
|
+
|
23
|
+
# Path Solution
|
24
|
+
@solution = {}
|
25
|
+
@uri = "/SettingsUpdates"
|
26
|
+
end
|
27
|
+
|
28
|
+
##
|
29
|
+
# Lists SettingsUpdateInstance records from the API as a list.
|
30
|
+
# Unlike stream(), this operation is eager and will load `limit` records into
|
31
|
+
# memory before returning.
|
32
|
+
# @param [String] sim Filter the Settings Updates by a Super SIM's SID or
|
33
|
+
# UniqueName.
|
34
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
35
|
+
# guarantees to never return more than limit. Default is no limit
|
36
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
37
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
38
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
39
|
+
# efficient page size, i.e. min(limit, 1000)
|
40
|
+
# @return [Array] Array of up to limit results
|
41
|
+
def list(sim: :unset, limit: nil, page_size: nil)
|
42
|
+
self.stream(sim: sim, limit: limit, page_size: page_size).entries
|
43
|
+
end
|
44
|
+
|
45
|
+
##
|
46
|
+
# Streams SettingsUpdateInstance records from the API as an Enumerable.
|
47
|
+
# This operation lazily loads records as efficiently as possible until the limit
|
48
|
+
# is reached.
|
49
|
+
# @param [String] sim Filter the Settings Updates by a Super SIM's SID or
|
50
|
+
# UniqueName.
|
51
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
52
|
+
# guarantees to never return more than limit. Default is no limit.
|
53
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
54
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
55
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
56
|
+
# efficient page size, i.e. min(limit, 1000)
|
57
|
+
# @return [Enumerable] Enumerable that will yield up to limit results
|
58
|
+
def stream(sim: :unset, limit: nil, page_size: nil)
|
59
|
+
limits = @version.read_limits(limit, page_size)
|
60
|
+
|
61
|
+
page = self.page(sim: sim, page_size: limits[:page_size], )
|
62
|
+
|
63
|
+
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
64
|
+
end
|
65
|
+
|
66
|
+
##
|
67
|
+
# When passed a block, yields SettingsUpdateInstance records from the API.
|
68
|
+
# This operation lazily loads records as efficiently as possible until the limit
|
69
|
+
# is reached.
|
70
|
+
def each
|
71
|
+
limits = @version.read_limits
|
72
|
+
|
73
|
+
page = self.page(page_size: limits[:page_size], )
|
74
|
+
|
75
|
+
@version.stream(page,
|
76
|
+
limit: limits[:limit],
|
77
|
+
page_limit: limits[:page_limit]).each {|x| yield x}
|
78
|
+
end
|
79
|
+
|
80
|
+
##
|
81
|
+
# Retrieve a single page of SettingsUpdateInstance records from the API.
|
82
|
+
# Request is executed immediately.
|
83
|
+
# @param [String] sim Filter the Settings Updates by a Super SIM's SID or
|
84
|
+
# UniqueName.
|
85
|
+
# @param [String] page_token PageToken provided by the API
|
86
|
+
# @param [Integer] page_number Page Number, this value is simply for client state
|
87
|
+
# @param [Integer] page_size Number of records to return, defaults to 50
|
88
|
+
# @return [Page] Page of SettingsUpdateInstance
|
89
|
+
def page(sim: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
90
|
+
params = Twilio::Values.of({
|
91
|
+
'Sim' => sim,
|
92
|
+
'PageToken' => page_token,
|
93
|
+
'Page' => page_number,
|
94
|
+
'PageSize' => page_size,
|
95
|
+
})
|
96
|
+
|
97
|
+
response = @version.page('GET', @uri, params: params)
|
98
|
+
|
99
|
+
SettingsUpdatePage.new(@version, response, @solution)
|
100
|
+
end
|
101
|
+
|
102
|
+
##
|
103
|
+
# Retrieve a single page of SettingsUpdateInstance records from the API.
|
104
|
+
# Request is executed immediately.
|
105
|
+
# @param [String] target_url API-generated URL for the requested results page
|
106
|
+
# @return [Page] Page of SettingsUpdateInstance
|
107
|
+
def get_page(target_url)
|
108
|
+
response = @version.domain.request(
|
109
|
+
'GET',
|
110
|
+
target_url
|
111
|
+
)
|
112
|
+
SettingsUpdatePage.new(@version, response, @solution)
|
113
|
+
end
|
114
|
+
|
115
|
+
##
|
116
|
+
# Provide a user friendly representation
|
117
|
+
def to_s
|
118
|
+
'#<Twilio.Supersim.V1.SettingsUpdateList>'
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
##
|
123
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
124
|
+
class SettingsUpdatePage < Page
|
125
|
+
##
|
126
|
+
# Initialize the SettingsUpdatePage
|
127
|
+
# @param [Version] version Version that contains the resource
|
128
|
+
# @param [Response] response Response from the API
|
129
|
+
# @param [Hash] solution Path solution for the resource
|
130
|
+
# @return [SettingsUpdatePage] SettingsUpdatePage
|
131
|
+
def initialize(version, response, solution)
|
132
|
+
super(version, response)
|
133
|
+
|
134
|
+
# Path Solution
|
135
|
+
@solution = solution
|
136
|
+
end
|
137
|
+
|
138
|
+
##
|
139
|
+
# Build an instance of SettingsUpdateInstance
|
140
|
+
# @param [Hash] payload Payload response from the API
|
141
|
+
# @return [SettingsUpdateInstance] SettingsUpdateInstance
|
142
|
+
def get_instance(payload)
|
143
|
+
SettingsUpdateInstance.new(@version, payload, )
|
144
|
+
end
|
145
|
+
|
146
|
+
##
|
147
|
+
# Provide a user friendly representation
|
148
|
+
def to_s
|
149
|
+
'<Twilio.Supersim.V1.SettingsUpdatePage>'
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
##
|
154
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
155
|
+
class SettingsUpdateInstance < InstanceResource
|
156
|
+
##
|
157
|
+
# Initialize the SettingsUpdateInstance
|
158
|
+
# @param [Version] version Version that contains the resource
|
159
|
+
# @param [Hash] payload payload that contains response from Twilio
|
160
|
+
# @return [SettingsUpdateInstance] SettingsUpdateInstance
|
161
|
+
def initialize(version, payload)
|
162
|
+
super(version)
|
163
|
+
|
164
|
+
# Marshaled Properties
|
165
|
+
@properties = {
|
166
|
+
'sid' => payload['sid'],
|
167
|
+
'iccid' => payload['iccid'],
|
168
|
+
'sim_sid' => payload['sim_sid'],
|
169
|
+
'status' => payload['status'],
|
170
|
+
'packages' => payload['packages'],
|
171
|
+
'date_completed' => Twilio.deserialize_iso8601_datetime(payload['date_completed']),
|
172
|
+
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
173
|
+
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
174
|
+
}
|
175
|
+
end
|
176
|
+
|
177
|
+
##
|
178
|
+
# @return [String] The unique identifier of this Settings Update
|
179
|
+
def sid
|
180
|
+
@properties['sid']
|
181
|
+
end
|
182
|
+
|
183
|
+
##
|
184
|
+
# @return [String] The ICCID associated with the SIM
|
185
|
+
def iccid
|
186
|
+
@properties['iccid']
|
187
|
+
end
|
188
|
+
|
189
|
+
##
|
190
|
+
# @return [String] The SID of the Super SIM to which this Settings Update was applied
|
191
|
+
def sim_sid
|
192
|
+
@properties['sim_sid']
|
193
|
+
end
|
194
|
+
|
195
|
+
##
|
196
|
+
# @return [settings_update.Status] The Status of this Settings Update
|
197
|
+
def status
|
198
|
+
@properties['status']
|
199
|
+
end
|
200
|
+
|
201
|
+
##
|
202
|
+
# @return [Array[Hash]] Array containing the different Settings Packages that will be applied to the SIM after the update completes
|
203
|
+
def packages
|
204
|
+
@properties['packages']
|
205
|
+
end
|
206
|
+
|
207
|
+
##
|
208
|
+
# @return [Time] The time when the update successfully completed and the new settings were applied to the SIM
|
209
|
+
def date_completed
|
210
|
+
@properties['date_completed']
|
211
|
+
end
|
212
|
+
|
213
|
+
##
|
214
|
+
# @return [Time] The date this Settings Update was created
|
215
|
+
def date_created
|
216
|
+
@properties['date_created']
|
217
|
+
end
|
218
|
+
|
219
|
+
##
|
220
|
+
# @return [Time] The date this Settings Update was last updated
|
221
|
+
def date_updated
|
222
|
+
@properties['date_updated']
|
223
|
+
end
|
224
|
+
|
225
|
+
##
|
226
|
+
# Provide a user friendly representation
|
227
|
+
def to_s
|
228
|
+
"<Twilio.Supersim.V1.SettingsUpdateInstance>"
|
229
|
+
end
|
230
|
+
|
231
|
+
##
|
232
|
+
# Provide a detailed, user friendly representation
|
233
|
+
def inspect
|
234
|
+
"<Twilio.Supersim.V1.SettingsUpdateInstance>"
|
235
|
+
end
|
236
|
+
end
|
237
|
+
end
|
238
|
+
end
|
239
|
+
end
|
240
|
+
end
|
@@ -260,10 +260,10 @@ module Twilio
|
|
260
260
|
'fleet_sid' => payload['fleet_sid'],
|
261
261
|
'iso_country' => payload['iso_country'],
|
262
262
|
'period' => payload['period'],
|
263
|
-
'data_upload' => payload['data_upload'].to_i,
|
264
|
-
'data_download' => payload['data_download'].to_i,
|
265
|
-
'data_total' => payload['data_total'].to_i,
|
266
|
-
'data_total_billed' => payload['data_total_billed'].to_f,
|
263
|
+
'data_upload' => payload['data_upload'] == nil ? payload['data_upload'] : payload['data_upload'].to_i,
|
264
|
+
'data_download' => payload['data_download'] == nil ? payload['data_download'] : payload['data_download'].to_i,
|
265
|
+
'data_total' => payload['data_total'] == nil ? payload['data_total'] : payload['data_total'].to_i,
|
266
|
+
'data_total_billed' => payload['data_total_billed'] == nil ? payload['data_total_billed'] : payload['data_total_billed'].to_f,
|
267
267
|
'billed_unit' => payload['billed_unit'],
|
268
268
|
}
|
269
269
|
end
|
@@ -20,6 +20,7 @@ module Twilio
|
|
20
20
|
@ip_commands = nil
|
21
21
|
@networks = nil
|
22
22
|
@network_access_profiles = nil
|
23
|
+
@settings_updates = nil
|
23
24
|
@sims = nil
|
24
25
|
@sms_commands = nil
|
25
26
|
@usage_records = nil
|
@@ -100,6 +101,12 @@ module Twilio
|
|
100
101
|
end
|
101
102
|
end
|
102
103
|
|
104
|
+
##
|
105
|
+
# @return [Twilio::REST::Supersim::V1::SettingsUpdateContext]
|
106
|
+
def settings_updates
|
107
|
+
@settings_updates ||= SettingsUpdateList.new self
|
108
|
+
end
|
109
|
+
|
103
110
|
##
|
104
111
|
# @param [String] sid The SID of the Sim resource to fetch.
|
105
112
|
# @return [Twilio::REST::Supersim::V1::SimContext] if sid was passed.
|
@@ -73,6 +73,12 @@ module Twilio
|
|
73
73
|
self.v1.network_access_profiles(sid)
|
74
74
|
end
|
75
75
|
|
76
|
+
##
|
77
|
+
# @return [Twilio::REST::Supersim::V1::SettingsUpdateInstance]
|
78
|
+
def settings_updates
|
79
|
+
self.v1.settings_updates()
|
80
|
+
end
|
81
|
+
|
76
82
|
##
|
77
83
|
# @param [String] sid The unique string that identifies the Sim resource.
|
78
84
|
# @return [Twilio::REST::Supersim::V1::SimInstance] if sid was passed.
|
@@ -328,7 +328,7 @@ module Twilio
|
|
328
328
|
|
329
329
|
# Marshaled Properties
|
330
330
|
@properties = {
|
331
|
-
'index' => payload['index'].to_i,
|
331
|
+
'index' => payload['index'] == nil ? payload['index'] : payload['index'].to_i,
|
332
332
|
'account_sid' => payload['account_sid'],
|
333
333
|
'service_sid' => payload['service_sid'],
|
334
334
|
'list_sid' => payload['list_sid'],
|
@@ -372,7 +372,7 @@ module Twilio
|
|
372
372
|
'reachability_webhooks_enabled' => payload['reachability_webhooks_enabled'],
|
373
373
|
'acl_enabled' => payload['acl_enabled'],
|
374
374
|
'reachability_debouncing_enabled' => payload['reachability_debouncing_enabled'],
|
375
|
-
'reachability_debouncing_window' => payload['reachability_debouncing_window'].to_i,
|
375
|
+
'reachability_debouncing_window' => payload['reachability_debouncing_window'] == nil ? payload['reachability_debouncing_window'] : payload['reachability_debouncing_window'].to_i,
|
376
376
|
'links' => payload['links'],
|
377
377
|
}
|
378
378
|
|
@@ -313,7 +313,7 @@ module Twilio
|
|
313
313
|
'description' => payload['description'],
|
314
314
|
'event_data' => payload['event_data'],
|
315
315
|
'event_date' => Twilio.deserialize_iso8601_datetime(payload['event_date']),
|
316
|
-
'event_date_ms' => payload['event_date_ms'].to_i,
|
316
|
+
'event_date_ms' => payload['event_date_ms'] == nil ? payload['event_date_ms'] : payload['event_date_ms'].to_i,
|
317
317
|
'event_type' => payload['event_type'],
|
318
318
|
'resource_sid' => payload['resource_sid'],
|
319
319
|
'resource_type' => payload['resource_type'],
|
@@ -423,21 +423,21 @@ module Twilio
|
|
423
423
|
# Marshaled Properties
|
424
424
|
@properties = {
|
425
425
|
'account_sid' => payload['account_sid'],
|
426
|
-
'age' => payload['age'].to_i,
|
426
|
+
'age' => payload['age'] == nil ? payload['age'] : payload['age'].to_i,
|
427
427
|
'assignment_status' => payload['assignment_status'],
|
428
428
|
'attributes' => payload['attributes'],
|
429
429
|
'addons' => payload['addons'],
|
430
430
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
431
431
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
432
432
|
'task_queue_entered_date' => Twilio.deserialize_iso8601_datetime(payload['task_queue_entered_date']),
|
433
|
-
'priority' => payload['priority'].to_i,
|
433
|
+
'priority' => payload['priority'] == nil ? payload['priority'] : payload['priority'].to_i,
|
434
434
|
'reason' => payload['reason'],
|
435
435
|
'sid' => payload['sid'],
|
436
436
|
'task_queue_sid' => payload['task_queue_sid'],
|
437
437
|
'task_queue_friendly_name' => payload['task_queue_friendly_name'],
|
438
438
|
'task_channel_sid' => payload['task_channel_sid'],
|
439
439
|
'task_channel_unique_name' => payload['task_channel_unique_name'],
|
440
|
-
'timeout' => payload['timeout'].to_i,
|
440
|
+
'timeout' => payload['timeout'] == nil ? payload['timeout'] : payload['timeout'].to_i,
|
441
441
|
'workflow_sid' => payload['workflow_sid'],
|
442
442
|
'workflow_friendly_name' => payload['workflow_friendly_name'],
|
443
443
|
'workspace_sid' => payload['workspace_sid'],
|
data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb
CHANGED
@@ -155,25 +155,25 @@ module Twilio
|
|
155
155
|
# Marshaled Properties
|
156
156
|
@properties = {
|
157
157
|
'account_sid' => payload['account_sid'],
|
158
|
-
'avg_task_acceptance_time' => payload['avg_task_acceptance_time'].to_i,
|
158
|
+
'avg_task_acceptance_time' => payload['avg_task_acceptance_time'] == nil ? payload['avg_task_acceptance_time'] : payload['avg_task_acceptance_time'].to_i,
|
159
159
|
'start_time' => Twilio.deserialize_iso8601_datetime(payload['start_time']),
|
160
160
|
'end_time' => Twilio.deserialize_iso8601_datetime(payload['end_time']),
|
161
|
-
'reservations_created' => payload['reservations_created'].to_i,
|
162
|
-
'reservations_accepted' => payload['reservations_accepted'].to_i,
|
163
|
-
'reservations_rejected' => payload['reservations_rejected'].to_i,
|
164
|
-
'reservations_timed_out' => payload['reservations_timed_out'].to_i,
|
165
|
-
'reservations_canceled' => payload['reservations_canceled'].to_i,
|
166
|
-
'reservations_rescinded' => payload['reservations_rescinded'].to_i,
|
161
|
+
'reservations_created' => payload['reservations_created'] == nil ? payload['reservations_created'] : payload['reservations_created'].to_i,
|
162
|
+
'reservations_accepted' => payload['reservations_accepted'] == nil ? payload['reservations_accepted'] : payload['reservations_accepted'].to_i,
|
163
|
+
'reservations_rejected' => payload['reservations_rejected'] == nil ? payload['reservations_rejected'] : payload['reservations_rejected'].to_i,
|
164
|
+
'reservations_timed_out' => payload['reservations_timed_out'] == nil ? payload['reservations_timed_out'] : payload['reservations_timed_out'].to_i,
|
165
|
+
'reservations_canceled' => payload['reservations_canceled'] == nil ? payload['reservations_canceled'] : payload['reservations_canceled'].to_i,
|
166
|
+
'reservations_rescinded' => payload['reservations_rescinded'] == nil ? payload['reservations_rescinded'] : payload['reservations_rescinded'].to_i,
|
167
167
|
'split_by_wait_time' => payload['split_by_wait_time'],
|
168
168
|
'task_queue_sid' => payload['task_queue_sid'],
|
169
169
|
'wait_duration_until_accepted' => payload['wait_duration_until_accepted'],
|
170
170
|
'wait_duration_until_canceled' => payload['wait_duration_until_canceled'],
|
171
171
|
'wait_duration_in_queue_until_accepted' => payload['wait_duration_in_queue_until_accepted'],
|
172
|
-
'tasks_canceled' => payload['tasks_canceled'].to_i,
|
173
|
-
'tasks_completed' => payload['tasks_completed'].to_i,
|
174
|
-
'tasks_deleted' => payload['tasks_deleted'].to_i,
|
175
|
-
'tasks_entered' => payload['tasks_entered'].to_i,
|
176
|
-
'tasks_moved' => payload['tasks_moved'].to_i,
|
172
|
+
'tasks_canceled' => payload['tasks_canceled'] == nil ? payload['tasks_canceled'] : payload['tasks_canceled'].to_i,
|
173
|
+
'tasks_completed' => payload['tasks_completed'] == nil ? payload['tasks_completed'] : payload['tasks_completed'].to_i,
|
174
|
+
'tasks_deleted' => payload['tasks_deleted'] == nil ? payload['tasks_deleted'] : payload['tasks_deleted'].to_i,
|
175
|
+
'tasks_entered' => payload['tasks_entered'] == nil ? payload['tasks_entered'] : payload['tasks_entered'].to_i,
|
176
|
+
'tasks_moved' => payload['tasks_moved'] == nil ? payload['tasks_moved'] : payload['tasks_moved'].to_i,
|
177
177
|
'workspace_sid' => payload['workspace_sid'],
|
178
178
|
'url' => payload['url'],
|
179
179
|
}
|
data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb
CHANGED
@@ -137,16 +137,16 @@ module Twilio
|
|
137
137
|
@properties = {
|
138
138
|
'account_sid' => payload['account_sid'],
|
139
139
|
'activity_statistics' => payload['activity_statistics'],
|
140
|
-
'longest_task_waiting_age' => payload['longest_task_waiting_age'].to_i,
|
140
|
+
'longest_task_waiting_age' => payload['longest_task_waiting_age'] == nil ? payload['longest_task_waiting_age'] : payload['longest_task_waiting_age'].to_i,
|
141
141
|
'longest_task_waiting_sid' => payload['longest_task_waiting_sid'],
|
142
|
-
'longest_relative_task_age_in_queue' => payload['longest_relative_task_age_in_queue'].to_i,
|
142
|
+
'longest_relative_task_age_in_queue' => payload['longest_relative_task_age_in_queue'] == nil ? payload['longest_relative_task_age_in_queue'] : payload['longest_relative_task_age_in_queue'].to_i,
|
143
143
|
'longest_relative_task_sid_in_queue' => payload['longest_relative_task_sid_in_queue'],
|
144
144
|
'task_queue_sid' => payload['task_queue_sid'],
|
145
145
|
'tasks_by_priority' => payload['tasks_by_priority'],
|
146
146
|
'tasks_by_status' => payload['tasks_by_status'],
|
147
|
-
'total_available_workers' => payload['total_available_workers'].to_i,
|
148
|
-
'total_eligible_workers' => payload['total_eligible_workers'].to_i,
|
149
|
-
'total_tasks' => payload['total_tasks'].to_i,
|
147
|
+
'total_available_workers' => payload['total_available_workers'] == nil ? payload['total_available_workers'] : payload['total_available_workers'].to_i,
|
148
|
+
'total_eligible_workers' => payload['total_eligible_workers'] == nil ? payload['total_eligible_workers'] : payload['total_eligible_workers'].to_i,
|
149
|
+
'total_tasks' => payload['total_tasks'] == nil ? payload['total_tasks'] : payload['total_tasks'].to_i,
|
150
150
|
'workspace_sid' => payload['workspace_sid'],
|
151
151
|
'url' => payload['url'],
|
152
152
|
}
|
@@ -368,7 +368,7 @@ module Twilio
|
|
368
368
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
369
369
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
370
370
|
'friendly_name' => payload['friendly_name'],
|
371
|
-
'max_reserved_workers' => payload['max_reserved_workers'].to_i,
|
371
|
+
'max_reserved_workers' => payload['max_reserved_workers'] == nil ? payload['max_reserved_workers'] : payload['max_reserved_workers'].to_i,
|
372
372
|
'reservation_activity_sid' => payload['reservation_activity_sid'],
|
373
373
|
'reservation_activity_name' => payload['reservation_activity_name'],
|
374
374
|
'sid' => payload['sid'],
|
@@ -239,10 +239,10 @@ module Twilio
|
|
239
239
|
# Marshaled Properties
|
240
240
|
@properties = {
|
241
241
|
'account_sid' => payload['account_sid'],
|
242
|
-
'assigned_tasks' => payload['assigned_tasks'].to_i,
|
242
|
+
'assigned_tasks' => payload['assigned_tasks'] == nil ? payload['assigned_tasks'] : payload['assigned_tasks'].to_i,
|
243
243
|
'available' => payload['available'],
|
244
|
-
'available_capacity_percentage' => payload['available_capacity_percentage'].to_i,
|
245
|
-
'configured_capacity' => payload['configured_capacity'].to_i,
|
244
|
+
'available_capacity_percentage' => payload['available_capacity_percentage'] == nil ? payload['available_capacity_percentage'] : payload['available_capacity_percentage'].to_i,
|
245
|
+
'configured_capacity' => payload['configured_capacity'] == nil ? payload['configured_capacity'] : payload['configured_capacity'].to_i,
|
246
246
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
247
247
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
248
248
|
'sid' => payload['sid'],
|
@@ -135,12 +135,12 @@ module Twilio
|
|
135
135
|
'start_time' => Twilio.deserialize_iso8601_datetime(payload['start_time']),
|
136
136
|
'end_time' => Twilio.deserialize_iso8601_datetime(payload['end_time']),
|
137
137
|
'activity_durations' => payload['activity_durations'],
|
138
|
-
'reservations_created' => payload['reservations_created'].to_i,
|
139
|
-
'reservations_accepted' => payload['reservations_accepted'].to_i,
|
140
|
-
'reservations_rejected' => payload['reservations_rejected'].to_i,
|
141
|
-
'reservations_timed_out' => payload['reservations_timed_out'].to_i,
|
142
|
-
'reservations_canceled' => payload['reservations_canceled'].to_i,
|
143
|
-
'reservations_rescinded' => payload['reservations_rescinded'].to_i,
|
138
|
+
'reservations_created' => payload['reservations_created'] == nil ? payload['reservations_created'] : payload['reservations_created'].to_i,
|
139
|
+
'reservations_accepted' => payload['reservations_accepted'] == nil ? payload['reservations_accepted'] : payload['reservations_accepted'].to_i,
|
140
|
+
'reservations_rejected' => payload['reservations_rejected'] == nil ? payload['reservations_rejected'] : payload['reservations_rejected'].to_i,
|
141
|
+
'reservations_timed_out' => payload['reservations_timed_out'] == nil ? payload['reservations_timed_out'] : payload['reservations_timed_out'].to_i,
|
142
|
+
'reservations_canceled' => payload['reservations_canceled'] == nil ? payload['reservations_canceled'] : payload['reservations_canceled'].to_i,
|
143
|
+
'reservations_rescinded' => payload['reservations_rescinded'] == nil ? payload['reservations_rescinded'] : payload['reservations_rescinded'].to_i,
|
144
144
|
'workspace_sid' => payload['workspace_sid'],
|
145
145
|
'url' => payload['url'],
|
146
146
|
}
|
@@ -121,7 +121,7 @@ module Twilio
|
|
121
121
|
@properties = {
|
122
122
|
'account_sid' => payload['account_sid'],
|
123
123
|
'activity_statistics' => payload['activity_statistics'],
|
124
|
-
'total_workers' => payload['total_workers'].to_i,
|
124
|
+
'total_workers' => payload['total_workers'] == nil ? payload['total_workers'] : payload['total_workers'].to_i,
|
125
125
|
'workspace_sid' => payload['workspace_sid'],
|
126
126
|
'url' => payload['url'],
|
127
127
|
}
|