twilio-ruby 5.27.0 → 5.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.dockerignore +1 -0
- data/CHANGES.md +13 -0
- data/CONTRIBUTING.md +2 -0
- data/Dockerfile +2 -2
- data/README.md +2 -2
- data/lib/twilio-ruby/http/http_client.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +18 -18
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +9 -9
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +9 -9
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +5 -5
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +10 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +1 -1
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +12 -12
- data/lib/twilio-ruby/rest/flex_api.rb +6 -3
- data/lib/twilio-ruby/rest/flex_api/v1.rb +3 -3
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +23 -23
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +39 -37
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +102 -96
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +20 -20
- data/lib/twilio-ruby/rest/messaging.rb +3 -2
- data/lib/twilio-ruby/rest/messaging/v1.rb +2 -3
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +124 -91
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +22 -18
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +22 -16
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +18 -20
- data/lib/twilio-ruby/rest/messaging/v1/session.rb +48 -44
- data/lib/twilio-ruby/rest/messaging/v1/session/message.rb +46 -48
- data/lib/twilio-ruby/rest/messaging/v1/session/participant.rb +55 -62
- data/lib/twilio-ruby/rest/messaging/v1/session/webhook.rb +61 -65
- data/lib/twilio-ruby/rest/messaging/v1/webhook.rb +30 -36
- data/lib/twilio-ruby/rest/monitor.rb +4 -2
- data/lib/twilio-ruby/rest/monitor/v1.rb +2 -2
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +45 -57
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +47 -50
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +8 -8
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +3 -3
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +6 -6
- data/lib/twilio-ruby/rest/preview/trusted_comms/device.rb +1 -1
- data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +55 -55
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +4 -4
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/serverless.rb +2 -1
- data/lib/twilio-ruby/rest/serverless/v1.rb +1 -2
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +27 -28
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +22 -22
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +22 -22
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +25 -24
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +26 -24
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +21 -24
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +31 -31
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +35 -35
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +22 -22
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +22 -22
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +12 -12
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +7 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +6 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +15 -9
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +6 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +15 -9
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +9 -6
- data/lib/twilio-ruby/rest/taskrouter.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +102 -95
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +52 -44
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +90 -81
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +152 -136
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +35 -29
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +96 -89
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +61 -61
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +27 -21
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +46 -46
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +57 -64
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +98 -79
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +41 -39
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +39 -33
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +32 -31
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +16 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +42 -42
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +75 -72
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +59 -51
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +24 -18
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +54 -46
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +48 -46
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +17 -17
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +44 -42
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +24 -18
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +3 -3
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +1 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +1 -2
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +12 -12
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +6 -6
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +6 -6
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +2 -1
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +2 -1
- data/lib/twilio-ruby/rest/video.rb +8 -8
- data/lib/twilio-ruby/rest/video/v1.rb +4 -7
- data/lib/twilio-ruby/rest/video/v1/composition.rb +89 -98
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +224 -195
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +34 -34
- data/lib/twilio-ruby/rest/video/v1/recording.rb +53 -55
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +32 -32
- data/lib/twilio-ruby/rest/video/v1/room.rb +71 -61
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +45 -33
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +56 -57
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +25 -22
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +10 -10
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb +24 -23
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +5 -5
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +2 -2
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/conversations/v1/conversation/message_spec.rb +58 -0
- metadata +4 -4
|
@@ -15,8 +15,8 @@ module Twilio
|
|
|
15
15
|
##
|
|
16
16
|
# Initialize the ActivityList
|
|
17
17
|
# @param [Version] version Version that contains the resource
|
|
18
|
-
# @param [String] workspace_sid The
|
|
19
|
-
#
|
|
18
|
+
# @param [String] workspace_sid The SID of the Workspace that contains the
|
|
19
|
+
# Activity.
|
|
20
20
|
# @return [ActivityList] ActivityList
|
|
21
21
|
def initialize(version, workspace_sid: nil)
|
|
22
22
|
super(version)
|
|
@@ -30,10 +30,12 @@ module Twilio
|
|
|
30
30
|
# Lists ActivityInstance records from the API as a list.
|
|
31
31
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
32
32
|
# memory before returning.
|
|
33
|
-
# @param [String] friendly_name
|
|
34
|
-
#
|
|
35
|
-
#
|
|
36
|
-
#
|
|
33
|
+
# @param [String] friendly_name The `friendly_name` of the Activity resources to
|
|
34
|
+
# read.
|
|
35
|
+
# @param [String] available Whether return only Activity resources that are
|
|
36
|
+
# available or unavailable. A value of `true` returns only available activities.
|
|
37
|
+
# Values of '1' or `yes` also indicate `true`. All other values represent `false`
|
|
38
|
+
# and return activities that are unavailable.
|
|
37
39
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
38
40
|
# guarantees to never return more than limit. Default is no limit
|
|
39
41
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -54,10 +56,12 @@ module Twilio
|
|
|
54
56
|
# Streams ActivityInstance records from the API as an Enumerable.
|
|
55
57
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
56
58
|
# is reached.
|
|
57
|
-
# @param [String] friendly_name
|
|
58
|
-
#
|
|
59
|
-
#
|
|
60
|
-
#
|
|
59
|
+
# @param [String] friendly_name The `friendly_name` of the Activity resources to
|
|
60
|
+
# read.
|
|
61
|
+
# @param [String] available Whether return only Activity resources that are
|
|
62
|
+
# available or unavailable. A value of `true` returns only available activities.
|
|
63
|
+
# Values of '1' or `yes` also indicate `true`. All other values represent `false`
|
|
64
|
+
# and return activities that are unavailable.
|
|
61
65
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
62
66
|
# guarantees to never return more than limit. Default is no limit.
|
|
63
67
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -90,10 +94,12 @@ module Twilio
|
|
|
90
94
|
##
|
|
91
95
|
# Retrieve a single page of ActivityInstance records from the API.
|
|
92
96
|
# Request is executed immediately.
|
|
93
|
-
# @param [String] friendly_name
|
|
94
|
-
#
|
|
95
|
-
#
|
|
96
|
-
#
|
|
97
|
+
# @param [String] friendly_name The `friendly_name` of the Activity resources to
|
|
98
|
+
# read.
|
|
99
|
+
# @param [String] available Whether return only Activity resources that are
|
|
100
|
+
# available or unavailable. A value of `true` returns only available activities.
|
|
101
|
+
# Values of '1' or `yes` also indicate `true`. All other values represent `false`
|
|
102
|
+
# and return activities that are unavailable.
|
|
97
103
|
# @param [String] page_token PageToken provided by the API
|
|
98
104
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
99
105
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
@@ -130,15 +136,14 @@ module Twilio
|
|
|
130
136
|
##
|
|
131
137
|
# Retrieve a single page of ActivityInstance records from the API.
|
|
132
138
|
# Request is executed immediately.
|
|
133
|
-
# @param [String] friendly_name A
|
|
134
|
-
#
|
|
135
|
-
#
|
|
136
|
-
#
|
|
137
|
-
#
|
|
138
|
-
#
|
|
139
|
-
#
|
|
140
|
-
#
|
|
141
|
-
# other values will represent false. Defaults to false.
|
|
139
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
|
140
|
+
# the Activity resource. It can be up to 64 characters long. These names are used
|
|
141
|
+
# to calculate and expose statistics about Workers, and provide visibility into
|
|
142
|
+
# the state of each Worker. Examples of friendly names include: `on-call`,
|
|
143
|
+
# `break`, and `email`.
|
|
144
|
+
# @param [Boolean] available Whether the Worker should be eligible to receive a
|
|
145
|
+
# Task when it occupies the Activity. A value of `true`, `1`, or `yes` specifies
|
|
146
|
+
# the Activity is available. All other values specify that it is not.
|
|
142
147
|
# @return [ActivityInstance] Newly created ActivityInstance
|
|
143
148
|
def create(friendly_name: nil, available: :unset)
|
|
144
149
|
data = Twilio::Values.of({'FriendlyName' => friendly_name, 'Available' => available, })
|
|
@@ -192,8 +197,9 @@ module Twilio
|
|
|
192
197
|
##
|
|
193
198
|
# Initialize the ActivityContext
|
|
194
199
|
# @param [Version] version Version that contains the resource
|
|
195
|
-
# @param [String] workspace_sid The
|
|
196
|
-
#
|
|
200
|
+
# @param [String] workspace_sid The SID of the Workspace with the Activity
|
|
201
|
+
# resources to fetch.
|
|
202
|
+
# @param [String] sid The SID of the Activity resource to fetch.
|
|
197
203
|
# @return [ActivityContext] ActivityContext
|
|
198
204
|
def initialize(version, workspace_sid, sid)
|
|
199
205
|
super(version)
|
|
@@ -225,10 +231,11 @@ module Twilio
|
|
|
225
231
|
|
|
226
232
|
##
|
|
227
233
|
# Update the ActivityInstance
|
|
228
|
-
# @param [String] friendly_name A
|
|
229
|
-
#
|
|
230
|
-
# expose statistics about
|
|
231
|
-
# of
|
|
234
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
|
235
|
+
# the Activity resource. It can be up to 64 characters long. These names are used
|
|
236
|
+
# to calculate and expose statistics about Workers, and provide visibility into
|
|
237
|
+
# the state of each Worker. Examples of friendly names include: `on-call`,
|
|
238
|
+
# `break`, and `email`.
|
|
232
239
|
# @return [ActivityInstance] Updated ActivityInstance
|
|
233
240
|
def update(friendly_name: :unset)
|
|
234
241
|
data = Twilio::Values.of({'FriendlyName' => friendly_name, })
|
|
@@ -274,9 +281,9 @@ module Twilio
|
|
|
274
281
|
# Initialize the ActivityInstance
|
|
275
282
|
# @param [Version] version Version that contains the resource
|
|
276
283
|
# @param [Hash] payload payload that contains response from Twilio
|
|
277
|
-
# @param [String] workspace_sid The
|
|
278
|
-
#
|
|
279
|
-
# @param [String] sid The
|
|
284
|
+
# @param [String] workspace_sid The SID of the Workspace that contains the
|
|
285
|
+
# Activity.
|
|
286
|
+
# @param [String] sid The SID of the Activity resource to fetch.
|
|
280
287
|
# @return [ActivityInstance] ActivityInstance
|
|
281
288
|
def initialize(version, payload, workspace_sid: nil, sid: nil)
|
|
282
289
|
super(version)
|
|
@@ -310,49 +317,49 @@ module Twilio
|
|
|
310
317
|
end
|
|
311
318
|
|
|
312
319
|
##
|
|
313
|
-
# @return [String] The
|
|
320
|
+
# @return [String] The SID of the Account that created the resource
|
|
314
321
|
def account_sid
|
|
315
322
|
@properties['account_sid']
|
|
316
323
|
end
|
|
317
324
|
|
|
318
325
|
##
|
|
319
|
-
# @return [Boolean]
|
|
326
|
+
# @return [Boolean] Whether the Worker should be eligible to receive a Task when it occupies the Activity
|
|
320
327
|
def available
|
|
321
328
|
@properties['available']
|
|
322
329
|
end
|
|
323
330
|
|
|
324
331
|
##
|
|
325
|
-
# @return [Time] The date
|
|
332
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
|
326
333
|
def date_created
|
|
327
334
|
@properties['date_created']
|
|
328
335
|
end
|
|
329
336
|
|
|
330
337
|
##
|
|
331
|
-
# @return [Time] The date
|
|
338
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
|
|
332
339
|
def date_updated
|
|
333
340
|
@properties['date_updated']
|
|
334
341
|
end
|
|
335
342
|
|
|
336
343
|
##
|
|
337
|
-
# @return [String]
|
|
344
|
+
# @return [String] The string that you assigned to describe the Activity resource
|
|
338
345
|
def friendly_name
|
|
339
346
|
@properties['friendly_name']
|
|
340
347
|
end
|
|
341
348
|
|
|
342
349
|
##
|
|
343
|
-
# @return [String] The unique
|
|
350
|
+
# @return [String] The unique string that identifies the resource
|
|
344
351
|
def sid
|
|
345
352
|
@properties['sid']
|
|
346
353
|
end
|
|
347
354
|
|
|
348
355
|
##
|
|
349
|
-
# @return [String] The
|
|
356
|
+
# @return [String] The SID of the Workspace that contains the Activity
|
|
350
357
|
def workspace_sid
|
|
351
358
|
@properties['workspace_sid']
|
|
352
359
|
end
|
|
353
360
|
|
|
354
361
|
##
|
|
355
|
-
# @return [String] The
|
|
362
|
+
# @return [String] The absolute URL of the Activity resource
|
|
356
363
|
def url
|
|
357
364
|
@properties['url']
|
|
358
365
|
end
|
|
@@ -366,10 +373,11 @@ module Twilio
|
|
|
366
373
|
|
|
367
374
|
##
|
|
368
375
|
# Update the ActivityInstance
|
|
369
|
-
# @param [String] friendly_name A
|
|
370
|
-
#
|
|
371
|
-
# expose statistics about
|
|
372
|
-
# of
|
|
376
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
|
377
|
+
# the Activity resource. It can be up to 64 characters long. These names are used
|
|
378
|
+
# to calculate and expose statistics about Workers, and provide visibility into
|
|
379
|
+
# the state of each Worker. Examples of friendly names include: `on-call`,
|
|
380
|
+
# `break`, and `email`.
|
|
373
381
|
# @return [ActivityInstance] Updated ActivityInstance
|
|
374
382
|
def update(friendly_name: :unset)
|
|
375
383
|
context.update(friendly_name: friendly_name, )
|
|
@@ -15,7 +15,7 @@ module Twilio
|
|
|
15
15
|
##
|
|
16
16
|
# Initialize the EventList
|
|
17
17
|
# @param [Version] version Version that contains the resource
|
|
18
|
-
# @param [String] workspace_sid The
|
|
18
|
+
# @param [String] workspace_sid The SID of the Workspace that contains the Event.
|
|
19
19
|
# @return [EventList] EventList
|
|
20
20
|
def initialize(version, workspace_sid: nil)
|
|
21
21
|
super(version)
|
|
@@ -29,26 +29,29 @@ module Twilio
|
|
|
29
29
|
# Lists EventInstance records from the API as a list.
|
|
30
30
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
31
31
|
# memory before returning.
|
|
32
|
-
# @param [Time] end_date
|
|
33
|
-
#
|
|
34
|
-
#
|
|
35
|
-
# @param [String]
|
|
36
|
-
#
|
|
37
|
-
#
|
|
38
|
-
#
|
|
39
|
-
#
|
|
40
|
-
# @param [
|
|
41
|
-
#
|
|
42
|
-
# @param [
|
|
43
|
-
#
|
|
44
|
-
# @param [String]
|
|
45
|
-
#
|
|
46
|
-
#
|
|
47
|
-
#
|
|
48
|
-
#
|
|
49
|
-
#
|
|
50
|
-
#
|
|
51
|
-
#
|
|
32
|
+
# @param [Time] end_date Only include Events that occurred on or before this date,
|
|
33
|
+
# specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
34
|
+
# date-time.
|
|
35
|
+
# @param [String] event_type The type of Events to read. Returns only Events of
|
|
36
|
+
# the type specified.
|
|
37
|
+
# @param [String] minutes The period of events to read in minutes. Returns only
|
|
38
|
+
# Events that occurred since this many minutes in the past. The default is `15`
|
|
39
|
+
# minutes.
|
|
40
|
+
# @param [String] reservation_sid The SID of the Reservation with the Events to
|
|
41
|
+
# read. Returns only Events that pertain to the specified Reservation.
|
|
42
|
+
# @param [Time] start_date Only include Events from on or after this date and
|
|
43
|
+
# time, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
44
|
+
# @param [String] task_queue_sid The SID of the TaskQueue with the Events to read.
|
|
45
|
+
# Returns only the Events that pertain to the specified TaskQueue.
|
|
46
|
+
# @param [String] task_sid The SID of the Task with the Events to read. Returns
|
|
47
|
+
# only the Events that pertain to the specified Task.
|
|
48
|
+
# @param [String] worker_sid The SID of the Worker with the Events to read.
|
|
49
|
+
# Returns only the Events that pertain to the specified Worker.
|
|
50
|
+
# @param [String] workflow_sid The SID of the Workflow with the Events to read.
|
|
51
|
+
# Returns only the Events that pertain to the specified Workflow.
|
|
52
|
+
# @param [String] task_channel The TaskChannel with the Events to read. Returns
|
|
53
|
+
# only the Events that pertain to the specified TaskChannel.
|
|
54
|
+
# @param [String] sid The SID of the Event resource to read.
|
|
52
55
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
53
56
|
# guarantees to never return more than limit. Default is no limit
|
|
54
57
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -78,26 +81,29 @@ module Twilio
|
|
|
78
81
|
# Streams EventInstance records from the API as an Enumerable.
|
|
79
82
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
80
83
|
# is reached.
|
|
81
|
-
# @param [Time] end_date
|
|
82
|
-
#
|
|
83
|
-
#
|
|
84
|
-
# @param [String]
|
|
85
|
-
#
|
|
86
|
-
#
|
|
87
|
-
#
|
|
88
|
-
#
|
|
89
|
-
# @param [
|
|
90
|
-
#
|
|
91
|
-
# @param [
|
|
92
|
-
#
|
|
93
|
-
# @param [String]
|
|
94
|
-
#
|
|
95
|
-
#
|
|
96
|
-
#
|
|
97
|
-
#
|
|
98
|
-
#
|
|
99
|
-
#
|
|
100
|
-
#
|
|
84
|
+
# @param [Time] end_date Only include Events that occurred on or before this date,
|
|
85
|
+
# specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
86
|
+
# date-time.
|
|
87
|
+
# @param [String] event_type The type of Events to read. Returns only Events of
|
|
88
|
+
# the type specified.
|
|
89
|
+
# @param [String] minutes The period of events to read in minutes. Returns only
|
|
90
|
+
# Events that occurred since this many minutes in the past. The default is `15`
|
|
91
|
+
# minutes.
|
|
92
|
+
# @param [String] reservation_sid The SID of the Reservation with the Events to
|
|
93
|
+
# read. Returns only Events that pertain to the specified Reservation.
|
|
94
|
+
# @param [Time] start_date Only include Events from on or after this date and
|
|
95
|
+
# time, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
96
|
+
# @param [String] task_queue_sid The SID of the TaskQueue with the Events to read.
|
|
97
|
+
# Returns only the Events that pertain to the specified TaskQueue.
|
|
98
|
+
# @param [String] task_sid The SID of the Task with the Events to read. Returns
|
|
99
|
+
# only the Events that pertain to the specified Task.
|
|
100
|
+
# @param [String] worker_sid The SID of the Worker with the Events to read.
|
|
101
|
+
# Returns only the Events that pertain to the specified Worker.
|
|
102
|
+
# @param [String] workflow_sid The SID of the Workflow with the Events to read.
|
|
103
|
+
# Returns only the Events that pertain to the specified Workflow.
|
|
104
|
+
# @param [String] task_channel The TaskChannel with the Events to read. Returns
|
|
105
|
+
# only the Events that pertain to the specified TaskChannel.
|
|
106
|
+
# @param [String] sid The SID of the Event resource to read.
|
|
101
107
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
102
108
|
# guarantees to never return more than limit. Default is no limit.
|
|
103
109
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -143,26 +149,29 @@ module Twilio
|
|
|
143
149
|
##
|
|
144
150
|
# Retrieve a single page of EventInstance records from the API.
|
|
145
151
|
# Request is executed immediately.
|
|
146
|
-
# @param [Time] end_date
|
|
147
|
-
#
|
|
148
|
-
#
|
|
149
|
-
# @param [String]
|
|
150
|
-
#
|
|
151
|
-
#
|
|
152
|
-
#
|
|
153
|
-
#
|
|
154
|
-
# @param [
|
|
155
|
-
#
|
|
156
|
-
# @param [
|
|
157
|
-
#
|
|
158
|
-
# @param [String]
|
|
159
|
-
#
|
|
160
|
-
#
|
|
161
|
-
#
|
|
162
|
-
#
|
|
163
|
-
#
|
|
164
|
-
#
|
|
165
|
-
#
|
|
152
|
+
# @param [Time] end_date Only include Events that occurred on or before this date,
|
|
153
|
+
# specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
154
|
+
# date-time.
|
|
155
|
+
# @param [String] event_type The type of Events to read. Returns only Events of
|
|
156
|
+
# the type specified.
|
|
157
|
+
# @param [String] minutes The period of events to read in minutes. Returns only
|
|
158
|
+
# Events that occurred since this many minutes in the past. The default is `15`
|
|
159
|
+
# minutes.
|
|
160
|
+
# @param [String] reservation_sid The SID of the Reservation with the Events to
|
|
161
|
+
# read. Returns only Events that pertain to the specified Reservation.
|
|
162
|
+
# @param [Time] start_date Only include Events from on or after this date and
|
|
163
|
+
# time, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
164
|
+
# @param [String] task_queue_sid The SID of the TaskQueue with the Events to read.
|
|
165
|
+
# Returns only the Events that pertain to the specified TaskQueue.
|
|
166
|
+
# @param [String] task_sid The SID of the Task with the Events to read. Returns
|
|
167
|
+
# only the Events that pertain to the specified Task.
|
|
168
|
+
# @param [String] worker_sid The SID of the Worker with the Events to read.
|
|
169
|
+
# Returns only the Events that pertain to the specified Worker.
|
|
170
|
+
# @param [String] workflow_sid The SID of the Workflow with the Events to read.
|
|
171
|
+
# Returns only the Events that pertain to the specified Workflow.
|
|
172
|
+
# @param [String] task_channel The TaskChannel with the Events to read. Returns
|
|
173
|
+
# only the Events that pertain to the specified TaskChannel.
|
|
174
|
+
# @param [String] sid The SID of the Event resource to read.
|
|
166
175
|
# @param [String] page_token PageToken provided by the API
|
|
167
176
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
168
177
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
@@ -245,8 +254,8 @@ module Twilio
|
|
|
245
254
|
##
|
|
246
255
|
# Initialize the EventContext
|
|
247
256
|
# @param [Version] version Version that contains the resource
|
|
248
|
-
# @param [String] workspace_sid The
|
|
249
|
-
# @param [String] sid The
|
|
257
|
+
# @param [String] workspace_sid The SID of the Workspace with the Event to fetch.
|
|
258
|
+
# @param [String] sid The SID of the Event resource to fetch.
|
|
250
259
|
# @return [EventContext] EventContext
|
|
251
260
|
def initialize(version, workspace_sid, sid)
|
|
252
261
|
super(version)
|
|
@@ -291,8 +300,8 @@ module Twilio
|
|
|
291
300
|
# Initialize the EventInstance
|
|
292
301
|
# @param [Version] version Version that contains the resource
|
|
293
302
|
# @param [Hash] payload payload that contains response from Twilio
|
|
294
|
-
# @param [String] workspace_sid The
|
|
295
|
-
# @param [String] sid The
|
|
303
|
+
# @param [String] workspace_sid The SID of the Workspace that contains the Event.
|
|
304
|
+
# @param [String] sid The SID of the Event resource to fetch.
|
|
296
305
|
# @return [EventInstance] EventInstance
|
|
297
306
|
def initialize(version, payload, workspace_sid: nil, sid: nil)
|
|
298
307
|
super(version)
|
|
@@ -335,25 +344,25 @@ module Twilio
|
|
|
335
344
|
end
|
|
336
345
|
|
|
337
346
|
##
|
|
338
|
-
# @return [String] The
|
|
347
|
+
# @return [String] The SID of the Account that created the resource
|
|
339
348
|
def account_sid
|
|
340
349
|
@properties['account_sid']
|
|
341
350
|
end
|
|
342
351
|
|
|
343
352
|
##
|
|
344
|
-
# @return [String] The
|
|
353
|
+
# @return [String] The SID of the resource that triggered the event
|
|
345
354
|
def actor_sid
|
|
346
355
|
@properties['actor_sid']
|
|
347
356
|
end
|
|
348
357
|
|
|
349
358
|
##
|
|
350
|
-
# @return [String] The
|
|
359
|
+
# @return [String] The type of resource that triggered the event
|
|
351
360
|
def actor_type
|
|
352
361
|
@properties['actor_type']
|
|
353
362
|
end
|
|
354
363
|
|
|
355
364
|
##
|
|
356
|
-
# @return [String] The
|
|
365
|
+
# @return [String] The absolute URL of the resource that triggered the event
|
|
357
366
|
def actor_url
|
|
358
367
|
@properties['actor_url']
|
|
359
368
|
end
|
|
@@ -365,73 +374,73 @@ module Twilio
|
|
|
365
374
|
end
|
|
366
375
|
|
|
367
376
|
##
|
|
368
|
-
# @return [Hash] Data about
|
|
377
|
+
# @return [Hash] Data about the event
|
|
369
378
|
def event_data
|
|
370
379
|
@properties['event_data']
|
|
371
380
|
end
|
|
372
381
|
|
|
373
382
|
##
|
|
374
|
-
# @return [Time] The time
|
|
383
|
+
# @return [Time] The time the event was sent
|
|
375
384
|
def event_date
|
|
376
385
|
@properties['event_date']
|
|
377
386
|
end
|
|
378
387
|
|
|
379
388
|
##
|
|
380
|
-
# @return [String] The time
|
|
389
|
+
# @return [String] The time the event was sent in milliseconds
|
|
381
390
|
def event_date_ms
|
|
382
391
|
@properties['event_date_ms']
|
|
383
392
|
end
|
|
384
393
|
|
|
385
394
|
##
|
|
386
|
-
# @return [String]
|
|
395
|
+
# @return [String] The identifier for the event
|
|
387
396
|
def event_type
|
|
388
397
|
@properties['event_type']
|
|
389
398
|
end
|
|
390
399
|
|
|
391
400
|
##
|
|
392
|
-
# @return [String] The
|
|
401
|
+
# @return [String] The SID of the object the event is most relevant to
|
|
393
402
|
def resource_sid
|
|
394
403
|
@properties['resource_sid']
|
|
395
404
|
end
|
|
396
405
|
|
|
397
406
|
##
|
|
398
|
-
# @return [String] The type of object
|
|
407
|
+
# @return [String] The type of object the event is most relevant to
|
|
399
408
|
def resource_type
|
|
400
409
|
@properties['resource_type']
|
|
401
410
|
end
|
|
402
411
|
|
|
403
412
|
##
|
|
404
|
-
# @return [String] The
|
|
413
|
+
# @return [String] The URL of the resource the event is most relevant to
|
|
405
414
|
def resource_url
|
|
406
415
|
@properties['resource_url']
|
|
407
416
|
end
|
|
408
417
|
|
|
409
418
|
##
|
|
410
|
-
# @return [String] The
|
|
419
|
+
# @return [String] The unique string that identifies the resource
|
|
411
420
|
def sid
|
|
412
421
|
@properties['sid']
|
|
413
422
|
end
|
|
414
423
|
|
|
415
424
|
##
|
|
416
|
-
# @return [String]
|
|
425
|
+
# @return [String] Where the Event originated
|
|
417
426
|
def source
|
|
418
427
|
@properties['source']
|
|
419
428
|
end
|
|
420
429
|
|
|
421
430
|
##
|
|
422
|
-
# @return [String] The
|
|
431
|
+
# @return [String] The IP from which the Event originated
|
|
423
432
|
def source_ip_address
|
|
424
433
|
@properties['source_ip_address']
|
|
425
434
|
end
|
|
426
435
|
|
|
427
436
|
##
|
|
428
|
-
# @return [String] The
|
|
437
|
+
# @return [String] The absolute URL of the Event resource
|
|
429
438
|
def url
|
|
430
439
|
@properties['url']
|
|
431
440
|
end
|
|
432
441
|
|
|
433
442
|
##
|
|
434
|
-
# @return [String] The
|
|
443
|
+
# @return [String] The SID of the Workspace that contains the Event
|
|
435
444
|
def workspace_sid
|
|
436
445
|
@properties['workspace_sid']
|
|
437
446
|
end
|