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.
- 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
@@ -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
|
22
|
-
#
|
23
|
-
# @param [String] environment_sid The
|
24
|
-
#
|
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
|
39
|
-
#
|
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
|
56
|
-
#
|
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
|
90
|
-
#
|
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
|
173
|
-
#
|
174
|
-
# @param [String] environment_sid The
|
175
|
-
#
|
176
|
-
# @param [String] sid The
|
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
|
230
|
-
#
|
231
|
-
# @param [String] environment_sid The
|
232
|
-
#
|
233
|
-
# @param [String] sid The
|
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
|
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
|
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
|
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]
|
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]
|
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]
|
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
|
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
|
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
|
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
|
22
|
-
#
|
23
|
-
# @param [String] environment_sid The
|
24
|
-
#
|
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
|
120
|
-
# than 128 characters
|
121
|
-
# @param [String] value A string that contains the actual value of
|
122
|
-
# less than 450 bytes.
|
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
|
191
|
-
#
|
192
|
-
# @param [String] environment_sid The
|
193
|
-
#
|
194
|
-
# @param [String] sid The
|
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
|
228
|
-
# than 128 characters
|
229
|
-
# @param [String] value A string that contains the actual value of
|
230
|
-
# less than 450 bytes.
|
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
|
280
|
-
#
|
281
|
-
# @param [String] environment_sid The
|
282
|
-
#
|
283
|
-
# @param [String] sid The
|
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
|
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
|
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
|
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]
|
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
|
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
|
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
|
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
|
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
|
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
|
390
|
-
# than 128 characters
|
391
|
-
# @param [String] value A string that contains the actual value of
|
392
|
-
# less than 450 bytes.
|
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
|
21
|
-
#
|
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
|
117
|
-
#
|
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
|
176
|
-
#
|
177
|
-
# @param [String] sid The
|
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
|
215
|
-
#
|
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
|
274
|
-
#
|
275
|
-
# @param [String] sid The
|
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
|
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
|
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
|
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]
|
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
|
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
|
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
|
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]
|
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
|
373
|
-
#
|
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
|
22
|
-
#
|
23
|
-
# @param [String] function_sid The
|
24
|
-
#
|
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
|
166
|
-
#
|
167
|
-
# @param [String] function_sid The
|
168
|
-
#
|
169
|
-
# @param [String] sid The
|
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
|
223
|
-
#
|
224
|
-
# @param [String] function_sid The
|
225
|
-
#
|
226
|
-
# @param [String] sid The
|
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]
|
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
|
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
|
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]
|
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
|
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
|
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
|
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
|
311
|
+
# @return [String] The absolute URL of the FunctionVersion resource
|
312
312
|
def url
|
313
313
|
@properties['url']
|
314
314
|
end
|