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
@@ -18,10 +18,10 @@ module Twilio
18
18
  ##
19
19
  # Initialize the LogList
20
20
  # @param [Version] version Version that contains the resource
21
- # @param [String] service_sid The unique SID identifier of the Service for this
22
- # Log.
23
- # @param [String] environment_sid The unique SID identifier of the Environment in
24
- # which this Log occurred.
21
+ # @param [String] service_sid The SID of the Service that the Log resource is
22
+ # associated with.
23
+ # @param [String] environment_sid The SID of the environment in which the log
24
+ # occurred.
25
25
  # @return [LogList] LogList
26
26
  def initialize(version, service_sid: nil, environment_sid: nil)
27
27
  super(version)
@@ -35,8 +35,8 @@ module Twilio
35
35
  # Lists LogInstance records from the API as a list.
36
36
  # Unlike stream(), this operation is eager and will load `limit` records into
37
37
  # memory before returning.
38
- # @param [String] function_sid The unique SID identifier of the Function whose
39
- # invocation produced this Log.
38
+ # @param [String] function_sid The SID of the function whose invocation produced
39
+ # the Log resources to read.
40
40
  # @param [Integer] limit Upper limit for the number of records to return. stream()
41
41
  # guarantees to never return more than limit. Default is no limit
42
42
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -52,8 +52,8 @@ module Twilio
52
52
  # Streams LogInstance records from the API as an Enumerable.
53
53
  # This operation lazily loads records as efficiently as possible until the limit
54
54
  # is reached.
55
- # @param [String] function_sid The unique SID identifier of the Function whose
56
- # invocation produced this Log.
55
+ # @param [String] function_sid The SID of the function whose invocation produced
56
+ # the Log resources to read.
57
57
  # @param [Integer] limit Upper limit for the number of records to return. stream()
58
58
  # guarantees to never return more than limit. Default is no limit.
59
59
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -86,8 +86,8 @@ module Twilio
86
86
  ##
87
87
  # Retrieve a single page of LogInstance records from the API.
88
88
  # Request is executed immediately.
89
- # @param [String] function_sid The unique SID identifier of the Function whose
90
- # invocation produced this Log.
89
+ # @param [String] function_sid The SID of the function whose invocation produced
90
+ # the Log resources to read.
91
91
  # @param [String] page_token PageToken provided by the API
92
92
  # @param [Integer] page_number Page Number, this value is simply for client state
93
93
  # @param [Integer] page_size Number of records to return, defaults to 50
@@ -169,11 +169,11 @@ module Twilio
169
169
  ##
170
170
  # Initialize the LogContext
171
171
  # @param [Version] version Version that contains the resource
172
- # @param [String] service_sid The unique SID identifier of the Service for this
173
- # Log.
174
- # @param [String] environment_sid The unique SID identifier of the Environment in
175
- # which this Log occurred.
176
- # @param [String] sid The unique SID identifier of this Log.
172
+ # @param [String] service_sid The SID of the Service to fetch the Log resource
173
+ # from.
174
+ # @param [String] environment_sid The SID of the environment with the Log resource
175
+ # to fetch.
176
+ # @param [String] sid The SID of the Log resource to fetch.
177
177
  # @return [LogContext] LogContext
178
178
  def initialize(version, service_sid, environment_sid, sid)
179
179
  super(version)
@@ -226,11 +226,11 @@ module Twilio
226
226
  # Initialize the LogInstance
227
227
  # @param [Version] version Version that contains the resource
228
228
  # @param [Hash] payload payload that contains response from Twilio
229
- # @param [String] service_sid The unique SID identifier of the Service for this
230
- # Log.
231
- # @param [String] environment_sid The unique SID identifier of the Environment in
232
- # which this Log occurred.
233
- # @param [String] sid The unique SID identifier of this Log.
229
+ # @param [String] service_sid The SID of the Service that the Log resource is
230
+ # associated with.
231
+ # @param [String] environment_sid The SID of the environment in which the log
232
+ # occurred.
233
+ # @param [String] sid The SID of the Log resource to fetch.
234
234
  # @return [LogInstance] LogInstance
235
235
  def initialize(version, payload, service_sid: nil, environment_sid: nil, sid: nil)
236
236
  super(version)
@@ -276,67 +276,67 @@ module Twilio
276
276
  end
277
277
 
278
278
  ##
279
- # @return [String] Log Sid.
279
+ # @return [String] The unique string that identifies the Log resource
280
280
  def sid
281
281
  @properties['sid']
282
282
  end
283
283
 
284
284
  ##
285
- # @return [String] Account Sid.
285
+ # @return [String] The SID of the Account that created the Log resource
286
286
  def account_sid
287
287
  @properties['account_sid']
288
288
  end
289
289
 
290
290
  ##
291
- # @return [String] Service Sid.
291
+ # @return [String] The SID of the Service that the Log resource is associated with
292
292
  def service_sid
293
293
  @properties['service_sid']
294
294
  end
295
295
 
296
296
  ##
297
- # @return [String] Environment Sid.
297
+ # @return [String] The SID of the environment in which the log occurred
298
298
  def environment_sid
299
299
  @properties['environment_sid']
300
300
  end
301
301
 
302
302
  ##
303
- # @return [String] Deployment Sid.
303
+ # @return [String] The SID of the deployment that corresponds to the log
304
304
  def deployment_sid
305
305
  @properties['deployment_sid']
306
306
  end
307
307
 
308
308
  ##
309
- # @return [String] Function Sid.
309
+ # @return [String] The SID of the function whose invocation produced the log
310
310
  def function_sid
311
311
  @properties['function_sid']
312
312
  end
313
313
 
314
314
  ##
315
- # @return [String] The request_sid
315
+ # @return [String] The SID of the request associated with the log
316
316
  def request_sid
317
317
  @properties['request_sid']
318
318
  end
319
319
 
320
320
  ##
321
- # @return [log.Level] The level
321
+ # @return [log.Level] The log level
322
322
  def level
323
323
  @properties['level']
324
324
  end
325
325
 
326
326
  ##
327
- # @return [String] The message
327
+ # @return [String] The log message
328
328
  def message
329
329
  @properties['message']
330
330
  end
331
331
 
332
332
  ##
333
- # @return [Time] The date that this Log was created.
333
+ # @return [Time] The ISO 8601 date and time in GMT when the Log resource was created
334
334
  def date_created
335
335
  @properties['date_created']
336
336
  end
337
337
 
338
338
  ##
339
- # @return [String] The URL of this Log.
339
+ # @return [String] The absolute URL of the Log resource
340
340
  def url
341
341
  @properties['url']
342
342
  end
@@ -18,10 +18,10 @@ module Twilio
18
18
  ##
19
19
  # Initialize the VariableList
20
20
  # @param [Version] version Version that contains the resource
21
- # @param [String] service_sid The unique SID identifier of the Service for this
22
- # Variable.
23
- # @param [String] environment_sid The unique SID identifier of the Environment in
24
- # which this Variable exists.
21
+ # @param [String] service_sid The SID of the Service that the Variable resource is
22
+ # associated with.
23
+ # @param [String] environment_sid The SID of the environment in which the variable
24
+ # exists.
25
25
  # @return [VariableList] VariableList
26
26
  def initialize(version, service_sid: nil, environment_sid: nil)
27
27
  super(version)
@@ -116,10 +116,10 @@ module Twilio
116
116
  ##
117
117
  # Retrieve a single page of VariableInstance records from the API.
118
118
  # Request is executed immediately.
119
- # @param [String] key A string by which this Variable can be referenced, fewer
120
- # than 128 characters. Required.
121
- # @param [String] value A string that contains the actual value of this Variable,
122
- # less than 450 bytes. Required.
119
+ # @param [String] key A string by which the Variable resource can be referenced.
120
+ # Must be less than 128 characters long.
121
+ # @param [String] value A string that contains the actual value of the variable.
122
+ # Must have less than 450 bytes.
123
123
  # @return [VariableInstance] Newly created VariableInstance
124
124
  def create(key: nil, value: nil)
125
125
  data = Twilio::Values.of({'Key' => key, 'Value' => value, })
@@ -187,11 +187,11 @@ module Twilio
187
187
  ##
188
188
  # Initialize the VariableContext
189
189
  # @param [Version] version Version that contains the resource
190
- # @param [String] service_sid The unique SID identifier of the Service for this
191
- # Variable.
192
- # @param [String] environment_sid The unique SID identifier of the Environment in
193
- # which this Variable exists.
194
- # @param [String] sid The unique SID identifier of this Variable.
190
+ # @param [String] service_sid The SID of the Service to fetch the Variable
191
+ # resource from.
192
+ # @param [String] environment_sid The SID of the environment with the Variable
193
+ # resource to fetch.
194
+ # @param [String] sid The SID of the Variable resource to fetch.
195
195
  # @return [VariableContext] VariableContext
196
196
  def initialize(version, service_sid, environment_sid, sid)
197
197
  super(version)
@@ -224,10 +224,10 @@ module Twilio
224
224
 
225
225
  ##
226
226
  # Update the VariableInstance
227
- # @param [String] key A string by which this Variable can be referenced, fewer
228
- # than 128 characters. Optional.
229
- # @param [String] value A string that contains the actual value of this Variable,
230
- # less than 450 bytes. Optional.
227
+ # @param [String] key A string by which the Variable resource can be referenced.
228
+ # Must be less than 128 characters long.
229
+ # @param [String] value A string that contains the actual value of the variable.
230
+ # Must have less than 450 bytes.
231
231
  # @return [VariableInstance] Updated VariableInstance
232
232
  def update(key: :unset, value: :unset)
233
233
  data = Twilio::Values.of({'Key' => key, 'Value' => value, })
@@ -276,11 +276,11 @@ module Twilio
276
276
  # Initialize the VariableInstance
277
277
  # @param [Version] version Version that contains the resource
278
278
  # @param [Hash] payload payload that contains response from Twilio
279
- # @param [String] service_sid The unique SID identifier of the Service for this
280
- # Variable.
281
- # @param [String] environment_sid The unique SID identifier of the Environment in
282
- # which this Variable exists.
283
- # @param [String] sid The unique SID identifier of this Variable.
279
+ # @param [String] service_sid The SID of the Service that the Variable resource is
280
+ # associated with.
281
+ # @param [String] environment_sid The SID of the environment in which the variable
282
+ # exists.
283
+ # @param [String] sid The SID of the Variable resource to fetch.
284
284
  # @return [VariableInstance] VariableInstance
285
285
  def initialize(version, payload, service_sid: nil, environment_sid: nil, sid: nil)
286
286
  super(version)
@@ -324,55 +324,55 @@ module Twilio
324
324
  end
325
325
 
326
326
  ##
327
- # @return [String] Variable Sid.
327
+ # @return [String] The unique string that identifies the Variable resource
328
328
  def sid
329
329
  @properties['sid']
330
330
  end
331
331
 
332
332
  ##
333
- # @return [String] Account Sid.
333
+ # @return [String] The SID of the Account that created the Variable resource
334
334
  def account_sid
335
335
  @properties['account_sid']
336
336
  end
337
337
 
338
338
  ##
339
- # @return [String] Service Sid.
339
+ # @return [String] The SID of the Service that the Variable resource is associated with
340
340
  def service_sid
341
341
  @properties['service_sid']
342
342
  end
343
343
 
344
344
  ##
345
- # @return [String] Environment Sid.
345
+ # @return [String] The SID of the environment in which the variable exists
346
346
  def environment_sid
347
347
  @properties['environment_sid']
348
348
  end
349
349
 
350
350
  ##
351
- # @return [String] A string by which this Variable can be referenced.
351
+ # @return [String] A string by which the Variable resource can be referenced
352
352
  def key
353
353
  @properties['key']
354
354
  end
355
355
 
356
356
  ##
357
- # @return [String] A string that contains the actual value of this Variable.
357
+ # @return [String] A string that contains the actual value of the variable
358
358
  def value
359
359
  @properties['value']
360
360
  end
361
361
 
362
362
  ##
363
- # @return [Time] The date that this Variable was created.
363
+ # @return [Time] The ISO 8601 date and time in GMT when the Variable resource was created
364
364
  def date_created
365
365
  @properties['date_created']
366
366
  end
367
367
 
368
368
  ##
369
- # @return [Time] The date that this Variable was updated.
369
+ # @return [Time] The ISO 8601 date and time in GMT when the Variable resource was last updated
370
370
  def date_updated
371
371
  @properties['date_updated']
372
372
  end
373
373
 
374
374
  ##
375
- # @return [String] The URL of this Variable.
375
+ # @return [String] The absolute URL of the Variable resource
376
376
  def url
377
377
  @properties['url']
378
378
  end
@@ -386,10 +386,10 @@ module Twilio
386
386
 
387
387
  ##
388
388
  # Update the VariableInstance
389
- # @param [String] key A string by which this Variable can be referenced, fewer
390
- # than 128 characters. Optional.
391
- # @param [String] value A string that contains the actual value of this Variable,
392
- # less than 450 bytes. Optional.
389
+ # @param [String] key A string by which the Variable resource can be referenced.
390
+ # Must be less than 128 characters long.
391
+ # @param [String] value A string that contains the actual value of the variable.
392
+ # Must have less than 450 bytes.
393
393
  # @return [VariableInstance] Updated VariableInstance
394
394
  def update(key: :unset, value: :unset)
395
395
  context.update(key: key, value: value, )
@@ -17,8 +17,8 @@ module Twilio
17
17
  ##
18
18
  # Initialize the FunctionList
19
19
  # @param [Version] version Version that contains the resource
20
- # @param [String] service_sid The unique SID identifier of the Service for this
21
- # Function.
20
+ # @param [String] service_sid The SID of the Service that the Function resource is
21
+ # associated with.
22
22
  # @return [FunctionList] FunctionList
23
23
  def initialize(version, service_sid: nil)
24
24
  super(version)
@@ -113,8 +113,8 @@ module Twilio
113
113
  ##
114
114
  # Retrieve a single page of FunctionInstance records from the API.
115
115
  # Request is executed immediately.
116
- # @param [String] friendly_name A human-readable description of this Function,
117
- # fewer than 256 characters. Required.
116
+ # @param [String] friendly_name A descriptive string that you create to describe
117
+ # the Function resource. It can be up to 255 characters long.
118
118
  # @return [FunctionInstance] Newly created FunctionInstance
119
119
  def create(friendly_name: nil)
120
120
  data = Twilio::Values.of({'FriendlyName' => friendly_name, })
@@ -172,9 +172,9 @@ module Twilio
172
172
  ##
173
173
  # Initialize the FunctionContext
174
174
  # @param [Version] version Version that contains the resource
175
- # @param [String] service_sid The unique SID identifier of the Service for this
176
- # Function.
177
- # @param [String] sid The unique SID identifier of this Function.
175
+ # @param [String] service_sid The SID of the Service to fetch the Function
176
+ # resource from.
177
+ # @param [String] sid The SID of the Function resource to fetch.
178
178
  # @return [FunctionContext] FunctionContext
179
179
  def initialize(version, service_sid, sid)
180
180
  super(version)
@@ -211,8 +211,8 @@ module Twilio
211
211
 
212
212
  ##
213
213
  # Update the FunctionInstance
214
- # @param [String] friendly_name A human-readable description of this Function,
215
- # fewer than 256 characters. Required.
214
+ # @param [String] friendly_name A descriptive string that you create to describe
215
+ # the Function resource. It can be up to 255 characters long.
216
216
  # @return [FunctionInstance] Updated FunctionInstance
217
217
  def update(friendly_name: nil)
218
218
  data = Twilio::Values.of({'FriendlyName' => friendly_name, })
@@ -270,9 +270,9 @@ module Twilio
270
270
  # Initialize the FunctionInstance
271
271
  # @param [Version] version Version that contains the resource
272
272
  # @param [Hash] payload payload that contains response from Twilio
273
- # @param [String] service_sid The unique SID identifier of the Service for this
274
- # Function.
275
- # @param [String] sid The unique SID identifier of this Function.
273
+ # @param [String] service_sid The SID of the Service that the Function resource is
274
+ # associated with.
275
+ # @param [String] sid The SID of the Function resource to fetch.
276
276
  # @return [FunctionInstance] FunctionInstance
277
277
  def initialize(version, payload, service_sid: nil, sid: nil)
278
278
  super(version)
@@ -306,49 +306,49 @@ module Twilio
306
306
  end
307
307
 
308
308
  ##
309
- # @return [String] Function Sid.
309
+ # @return [String] The unique string that identifies the Function resource
310
310
  def sid
311
311
  @properties['sid']
312
312
  end
313
313
 
314
314
  ##
315
- # @return [String] Account Sid.
315
+ # @return [String] The SID of the Account that created the Function resource
316
316
  def account_sid
317
317
  @properties['account_sid']
318
318
  end
319
319
 
320
320
  ##
321
- # @return [String] Service Sid.
321
+ # @return [String] The SID of the Service that the Function resource is associated with
322
322
  def service_sid
323
323
  @properties['service_sid']
324
324
  end
325
325
 
326
326
  ##
327
- # @return [String] A human-readable description of this Function.
327
+ # @return [String] The string that you assigned to describe the Function resource
328
328
  def friendly_name
329
329
  @properties['friendly_name']
330
330
  end
331
331
 
332
332
  ##
333
- # @return [Time] The date that this Function was created.
333
+ # @return [Time] The ISO 8601 date and time in GMT when the Function resource was created
334
334
  def date_created
335
335
  @properties['date_created']
336
336
  end
337
337
 
338
338
  ##
339
- # @return [Time] The date that this Function was updated.
339
+ # @return [Time] The ISO 8601 date and time in GMT when the Function resource was last updated
340
340
  def date_updated
341
341
  @properties['date_updated']
342
342
  end
343
343
 
344
344
  ##
345
- # @return [String] The URL of this Function.
345
+ # @return [String] The absolute URL of the Function resource
346
346
  def url
347
347
  @properties['url']
348
348
  end
349
349
 
350
350
  ##
351
- # @return [String] Nested resource URLs.
351
+ # @return [String] The URLs of nested resources of the function
352
352
  def links
353
353
  @properties['links']
354
354
  end
@@ -369,8 +369,8 @@ module Twilio
369
369
 
370
370
  ##
371
371
  # Update the FunctionInstance
372
- # @param [String] friendly_name A human-readable description of this Function,
373
- # fewer than 256 characters. Required.
372
+ # @param [String] friendly_name A descriptive string that you create to describe
373
+ # the Function resource. It can be up to 255 characters long.
374
374
  # @return [FunctionInstance] Updated FunctionInstance
375
375
  def update(friendly_name: nil)
376
376
  context.update(friendly_name: friendly_name, )
@@ -18,10 +18,10 @@ module Twilio
18
18
  ##
19
19
  # Initialize the FunctionVersionList
20
20
  # @param [Version] version Version that contains the resource
21
- # @param [String] service_sid The unique SID identifier of the Service for this
22
- # Function Version.
23
- # @param [String] function_sid The unique SID identifier of the Function that is
24
- # the parent for this Function Version.
21
+ # @param [String] service_sid The SID of the Service that the FunctionVersion
22
+ # resource is associated with.
23
+ # @param [String] function_sid The SID of the function that is the parent of the
24
+ # function version.
25
25
  # @return [FunctionVersionList] FunctionVersionList
26
26
  def initialize(version, service_sid: nil, function_sid: nil)
27
27
  super(version)
@@ -162,11 +162,11 @@ module Twilio
162
162
  ##
163
163
  # Initialize the FunctionVersionContext
164
164
  # @param [Version] version Version that contains the resource
165
- # @param [String] service_sid The unique SID identifier of the Service for this
166
- # Function Version.
167
- # @param [String] function_sid The unique SID identifier of the Function that is
168
- # the parent for this Function Version.
169
- # @param [String] sid The unique SID identifier of this Function Version.
165
+ # @param [String] service_sid The SID of the Service to fetch the FunctionVersion
166
+ # resource from.
167
+ # @param [String] function_sid The SID of the function that is the parent of the
168
+ # FunctionVersion resource to fetch.
169
+ # @param [String] sid The SID of the FunctionVersion resource to fetch.
170
170
  # @return [FunctionVersionContext] FunctionVersionContext
171
171
  def initialize(version, service_sid, function_sid, sid)
172
172
  super(version)
@@ -219,11 +219,11 @@ module Twilio
219
219
  # Initialize the FunctionVersionInstance
220
220
  # @param [Version] version Version that contains the resource
221
221
  # @param [Hash] payload payload that contains response from Twilio
222
- # @param [String] service_sid The unique SID identifier of the Service for this
223
- # Function Version.
224
- # @param [String] function_sid The unique SID identifier of the Function that is
225
- # the parent for this Function Version.
226
- # @param [String] sid The unique SID identifier of this Function Version.
222
+ # @param [String] service_sid The SID of the Service that the FunctionVersion
223
+ # resource is associated with.
224
+ # @param [String] function_sid The SID of the function that is the parent of the
225
+ # function version.
226
+ # @param [String] sid The SID of the FunctionVersion resource to fetch.
227
227
  # @return [FunctionVersionInstance] FunctionVersionInstance
228
228
  def initialize(version, payload, service_sid: nil, function_sid: nil, sid: nil)
229
229
  super(version)
@@ -266,49 +266,49 @@ module Twilio
266
266
  end
267
267
 
268
268
  ##
269
- # @return [String] Function Version Sid.
269
+ # @return [String] The unique string that identifies the FunctionVersion resource
270
270
  def sid
271
271
  @properties['sid']
272
272
  end
273
273
 
274
274
  ##
275
- # @return [String] Account Sid.
275
+ # @return [String] The SID of the Account that created the FunctionVersion resource
276
276
  def account_sid
277
277
  @properties['account_sid']
278
278
  end
279
279
 
280
280
  ##
281
- # @return [String] Service Sid.
281
+ # @return [String] The SID of the Service that the FunctionVersion resource is associated with
282
282
  def service_sid
283
283
  @properties['service_sid']
284
284
  end
285
285
 
286
286
  ##
287
- # @return [String] Function Sid.
287
+ # @return [String] The SID of the function that is the parent of the function version
288
288
  def function_sid
289
289
  @properties['function_sid']
290
290
  end
291
291
 
292
292
  ##
293
- # @return [String] The URL-friendly string by which this Function Version can be referenced.
293
+ # @return [String] The URL-friendly string by which the function version can be referenced
294
294
  def path
295
295
  @properties['path']
296
296
  end
297
297
 
298
298
  ##
299
- # @return [function_version.Visibility] The access control which determines how the Function Version can be accessed.
299
+ # @return [function_version.Visibility] The access control that determines how the function version can be accessed
300
300
  def visibility
301
301
  @properties['visibility']
302
302
  end
303
303
 
304
304
  ##
305
- # @return [Time] The date that this Function Version was created.
305
+ # @return [Time] The ISO 8601 date and time in GMT when the FunctionVersion resource was created
306
306
  def date_created
307
307
  @properties['date_created']
308
308
  end
309
309
 
310
310
  ##
311
- # @return [String] The URL of this Function Version.
311
+ # @return [String] The absolute URL of the FunctionVersion resource
312
312
  def url
313
313
  @properties['url']
314
314
  end