twilio-ruby 5.27.0 → 5.27.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +5 -5
  2. data/.dockerignore +1 -0
  3. data/CHANGES.md +13 -0
  4. data/CONTRIBUTING.md +2 -0
  5. data/Dockerfile +2 -2
  6. data/README.md +2 -2
  7. data/lib/twilio-ruby/http/http_client.rb +1 -1
  8. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +18 -18
  9. data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +9 -9
  10. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +9 -9
  11. data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +5 -5
  12. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +10 -1
  13. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +1 -1
  14. data/lib/twilio-ruby/rest/fax/v1/fax.rb +12 -12
  15. data/lib/twilio-ruby/rest/flex_api.rb +6 -3
  16. data/lib/twilio-ruby/rest/flex_api/v1.rb +3 -3
  17. data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +23 -23
  18. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +39 -37
  19. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +102 -96
  20. data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +20 -20
  21. data/lib/twilio-ruby/rest/messaging.rb +3 -2
  22. data/lib/twilio-ruby/rest/messaging/v1.rb +2 -3
  23. data/lib/twilio-ruby/rest/messaging/v1/service.rb +124 -91
  24. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +22 -18
  25. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +22 -16
  26. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +18 -20
  27. data/lib/twilio-ruby/rest/messaging/v1/session.rb +48 -44
  28. data/lib/twilio-ruby/rest/messaging/v1/session/message.rb +46 -48
  29. data/lib/twilio-ruby/rest/messaging/v1/session/participant.rb +55 -62
  30. data/lib/twilio-ruby/rest/messaging/v1/session/webhook.rb +61 -65
  31. data/lib/twilio-ruby/rest/messaging/v1/webhook.rb +30 -36
  32. data/lib/twilio-ruby/rest/monitor.rb +4 -2
  33. data/lib/twilio-ruby/rest/monitor/v1.rb +2 -2
  34. data/lib/twilio-ruby/rest/monitor/v1/alert.rb +45 -57
  35. data/lib/twilio-ruby/rest/monitor/v1/event.rb +47 -50
  36. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +8 -8
  37. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +3 -3
  38. data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +6 -6
  39. data/lib/twilio-ruby/rest/preview/trusted_comms/device.rb +1 -1
  40. data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +55 -55
  41. data/lib/twilio-ruby/rest/pricing/v2/voice.rb +2 -2
  42. data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +4 -4
  43. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +1 -1
  44. data/lib/twilio-ruby/rest/serverless.rb +2 -1
  45. data/lib/twilio-ruby/rest/serverless/v1.rb +1 -2
  46. data/lib/twilio-ruby/rest/serverless/v1/service.rb +27 -28
  47. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +22 -22
  48. data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +22 -22
  49. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +25 -24
  50. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +26 -24
  51. data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +21 -24
  52. data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +31 -31
  53. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +35 -35
  54. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +22 -22
  55. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +22 -22
  56. data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +12 -12
  57. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +7 -4
  58. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +6 -3
  59. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +15 -9
  60. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +6 -3
  61. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +15 -9
  62. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +9 -6
  63. data/lib/twilio-ruby/rest/taskrouter.rb +2 -1
  64. data/lib/twilio-ruby/rest/taskrouter/v1.rb +1 -1
  65. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +102 -95
  66. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +52 -44
  67. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +90 -81
  68. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +152 -136
  69. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +35 -29
  70. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +96 -89
  71. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +61 -61
  72. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +27 -21
  73. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +46 -46
  74. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +57 -64
  75. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +98 -79
  76. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +41 -39
  77. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +39 -33
  78. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +32 -31
  79. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +16 -11
  80. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +42 -42
  81. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +75 -72
  82. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +59 -51
  83. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +24 -18
  84. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +54 -46
  85. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +48 -46
  86. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +17 -17
  87. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +44 -42
  88. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +24 -18
  89. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +3 -3
  90. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +1 -2
  91. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +1 -2
  92. data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +12 -12
  93. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +6 -6
  94. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +6 -6
  95. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +2 -1
  96. data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +2 -1
  97. data/lib/twilio-ruby/rest/video.rb +8 -8
  98. data/lib/twilio-ruby/rest/video/v1.rb +4 -7
  99. data/lib/twilio-ruby/rest/video/v1/composition.rb +89 -98
  100. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +224 -195
  101. data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +34 -34
  102. data/lib/twilio-ruby/rest/video/v1/recording.rb +53 -55
  103. data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +32 -32
  104. data/lib/twilio-ruby/rest/video/v1/room.rb +71 -61
  105. data/lib/twilio-ruby/rest/video/v1/room/recording.rb +45 -33
  106. data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +56 -57
  107. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +25 -22
  108. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +10 -10
  109. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb +24 -23
  110. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +1 -1
  111. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +5 -5
  112. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +2 -2
  113. data/lib/twilio-ruby/version.rb +1 -1
  114. data/spec/integration/conversations/v1/conversation/message_spec.rb +58 -0
  115. 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 unique ID of the Workspace that this Activity
19
- # belongs to.
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 Filter by an Activity's friendly name
34
- # @param [String] available Filter by activities that are available or
35
- # unavailable. (Note: This can be 'true', '1'' or 'yes' to indicate a true value.
36
- # All other values will represent false)
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 Filter by an Activity's friendly name
58
- # @param [String] available Filter by activities that are available or
59
- # unavailable. (Note: This can be 'true', '1'' or 'yes' to indicate a true value.
60
- # All other values will represent false)
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 Filter by an Activity's friendly name
94
- # @param [String] available Filter by activities that are available or
95
- # unavailable. (Note: This can be 'true', '1'' or 'yes' to indicate a true value.
96
- # All other values will represent false)
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 human-readable name for the Activity, such as
134
- # 'On Call', 'Break', 'Email', etc. Must be unique in this Workspace. These names
135
- # will be used to calculate and expose statistics about workers, and give you
136
- # visibility into the state of each of your workers.
137
- # @param [Boolean] available Boolean value indicating whether the worker should be
138
- # eligible to receive a Task when they occupy this Activity. For example, a call
139
- # center might have an activity named 'On Call' with an availability set to
140
- # 'false'. Note: This can be 'true', '1' or 'yes' to indicate a true value. All
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 workspace_sid
196
- # @param [String] sid The sid
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 human-readable name for the Activity, such as
229
- # 'on-call', 'break', 'email', etc. These names will be used to calculate and
230
- # expose statistics about workers, and give you visibility into the state of each
231
- # of your workers.
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 unique ID of the Workspace that this Activity
278
- # belongs to.
279
- # @param [String] sid The sid
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 unique ID of the Account that owns this Activity.
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] Filter by activities that are available or unavailable.
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 this Activity was created.
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 this Activity was updated.
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] Filter by an Activity's friendly name
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 ID for this Activity.
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 unique ID of the Workspace that this Activity belongs to.
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 url
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 human-readable name for the Activity, such as
370
- # 'on-call', 'break', 'email', etc. These names will be used to calculate and
371
- # expose statistics about workers, and give you visibility into the state of each
372
- # of your workers.
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 workspace_sid
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 Filter events by an end date. This is helpful for
33
- # defining a range of events to capture. Input is a GMT ISO 8601 Timestamp.
34
- # @param [String] event_type Filter events by those of a certain event type
35
- # @param [String] minutes Filter events by up to 'x' minutes in the past. This is
36
- # helpful for events for the last 15 minutes, 240 minutes (4 hours), and 480
37
- # minutes (8 hours) to see trends. Defaults to 15 minutes.
38
- # @param [String] reservation_sid Filter events by those pertaining to a
39
- # particular reservation
40
- # @param [Time] start_date Filter events by a start date. This is helpful for
41
- # defining a range of events to capture. Input is a GMT ISO 8601 Timestamp.
42
- # @param [String] task_queue_sid Filter events by those pertaining to a particular
43
- # queue
44
- # @param [String] task_sid Filter events by those pertaining to a particular task
45
- # @param [String] worker_sid Filter events by those pertaining to a particular
46
- # worker
47
- # @param [String] workflow_sid Filter events by those pertaining to a particular
48
- # workflow
49
- # @param [String] task_channel Filter events by those pertaining to a particular
50
- # task channel
51
- # @param [String] sid Filter events by those pertaining to a particular event
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 Filter events by an end date. This is helpful for
82
- # defining a range of events to capture. Input is a GMT ISO 8601 Timestamp.
83
- # @param [String] event_type Filter events by those of a certain event type
84
- # @param [String] minutes Filter events by up to 'x' minutes in the past. This is
85
- # helpful for events for the last 15 minutes, 240 minutes (4 hours), and 480
86
- # minutes (8 hours) to see trends. Defaults to 15 minutes.
87
- # @param [String] reservation_sid Filter events by those pertaining to a
88
- # particular reservation
89
- # @param [Time] start_date Filter events by a start date. This is helpful for
90
- # defining a range of events to capture. Input is a GMT ISO 8601 Timestamp.
91
- # @param [String] task_queue_sid Filter events by those pertaining to a particular
92
- # queue
93
- # @param [String] task_sid Filter events by those pertaining to a particular task
94
- # @param [String] worker_sid Filter events by those pertaining to a particular
95
- # worker
96
- # @param [String] workflow_sid Filter events by those pertaining to a particular
97
- # workflow
98
- # @param [String] task_channel Filter events by those pertaining to a particular
99
- # task channel
100
- # @param [String] sid Filter events by those pertaining to a particular event
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 Filter events by an end date. This is helpful for
147
- # defining a range of events to capture. Input is a GMT ISO 8601 Timestamp.
148
- # @param [String] event_type Filter events by those of a certain event type
149
- # @param [String] minutes Filter events by up to 'x' minutes in the past. This is
150
- # helpful for events for the last 15 minutes, 240 minutes (4 hours), and 480
151
- # minutes (8 hours) to see trends. Defaults to 15 minutes.
152
- # @param [String] reservation_sid Filter events by those pertaining to a
153
- # particular reservation
154
- # @param [Time] start_date Filter events by a start date. This is helpful for
155
- # defining a range of events to capture. Input is a GMT ISO 8601 Timestamp.
156
- # @param [String] task_queue_sid Filter events by those pertaining to a particular
157
- # queue
158
- # @param [String] task_sid Filter events by those pertaining to a particular task
159
- # @param [String] worker_sid Filter events by those pertaining to a particular
160
- # worker
161
- # @param [String] workflow_sid Filter events by those pertaining to a particular
162
- # workflow
163
- # @param [String] task_channel Filter events by those pertaining to a particular
164
- # task channel
165
- # @param [String] sid Filter events by those pertaining to a particular event
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 workspace_sid
249
- # @param [String] sid The sid
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 workspace_sid
295
- # @param [String] sid The sid
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 account owning this event
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 actor_sid
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 actor_type
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 actor_url
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 this specific event.
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 this event was sent
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 this event was sent in ms
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] An identifier for this event
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 sid of the object this event is most relevant to
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 this event is most relevant to
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 resource_url
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 sid
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] The source
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 source_ip_address
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 url
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 workspace_sid
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