twilio-ruby 5.22.1 → 5.22.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +12 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +55 -61
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/defaults.rb +17 -9
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/dialogue.rb +18 -10
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +37 -28
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +39 -32
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +37 -27
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +58 -53
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/style_sheet.rb +15 -9
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +53 -43
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +38 -25
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +56 -50
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb +27 -15
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +24 -18
- data/lib/twilio-ruby/rest/client.rb +39 -39
- data/lib/twilio-ruby/rest/notify.rb +4 -2
- data/lib/twilio-ruby/rest/notify/v1.rb +4 -2
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +47 -42
- data/lib/twilio-ruby/rest/notify/v1/service.rb +118 -103
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +74 -63
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +108 -111
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +7 -0
- data/lib/twilio-ruby/rest/trunking.rb +2 -2
- data/lib/twilio-ruby/rest/trunking/v1.rb +2 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +82 -82
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +19 -14
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +16 -15
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +51 -50
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +41 -32
- data/lib/twilio-ruby/rest/trunking/v1/trunk/terminating_sip_domain.rb +30 -31
- data/lib/twilio-ruby/twiml/voice_response.rb +3 -2
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/address_spec.rb +4 -0
- data/spec/integration/proxy/v1/service/phone_number_spec.rb +8 -4
- metadata +2 -2
@@ -17,7 +17,9 @@ module Twilio
|
|
17
17
|
##
|
18
18
|
# Initialize the FieldTypeList
|
19
19
|
# @param [Version] version Version that contains the resource
|
20
|
-
# @param [String] assistant_sid The
|
20
|
+
# @param [String] assistant_sid The SID of the
|
21
|
+
# [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the
|
22
|
+
# parent of the resource.
|
21
23
|
# @return [FieldTypeList] FieldTypeList
|
22
24
|
def initialize(version, assistant_sid: nil)
|
23
25
|
super(version)
|
@@ -112,10 +114,11 @@ module Twilio
|
|
112
114
|
##
|
113
115
|
# Retrieve a single page of FieldTypeInstance records from the API.
|
114
116
|
# Request is executed immediately.
|
115
|
-
# @param [String] unique_name
|
116
|
-
# resource as an alternative to the sid
|
117
|
-
#
|
118
|
-
#
|
117
|
+
# @param [String] unique_name An application-defined string that uniquely
|
118
|
+
# identifies the new resource. It can be used as an alternative to the `sid` in
|
119
|
+
# the URL path to address the resource. The first 64 characters must be unique.
|
120
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
121
|
+
# the new resource. It is not unique and can be up to 255 characters long.
|
119
122
|
# @return [FieldTypeInstance] Newly created FieldTypeInstance
|
120
123
|
def create(unique_name: nil, friendly_name: :unset)
|
121
124
|
data = Twilio::Values.of({'UniqueName' => unique_name, 'FriendlyName' => friendly_name, })
|
@@ -173,9 +176,11 @@ module Twilio
|
|
173
176
|
##
|
174
177
|
# Initialize the FieldTypeContext
|
175
178
|
# @param [Version] version Version that contains the resource
|
176
|
-
# @param [String] assistant_sid The
|
177
|
-
#
|
178
|
-
# resource.
|
179
|
+
# @param [String] assistant_sid The SID of the
|
180
|
+
# [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the
|
181
|
+
# parent of the resource to fetch.
|
182
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
183
|
+
# FieldType resource to fetch.
|
179
184
|
# @return [FieldTypeContext] FieldTypeContext
|
180
185
|
def initialize(version, assistant_sid, sid)
|
181
186
|
super(version)
|
@@ -210,10 +215,11 @@ module Twilio
|
|
210
215
|
|
211
216
|
##
|
212
217
|
# Update the FieldTypeInstance
|
213
|
-
# @param [String] friendly_name A
|
214
|
-
# resource. It is
|
215
|
-
# @param [String] unique_name
|
216
|
-
# resource as an alternative to the sid
|
218
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
219
|
+
# the resource. It is not unique and can be up to 255 characters long.
|
220
|
+
# @param [String] unique_name An application-defined string that uniquely
|
221
|
+
# identifies the resource. It can be used as an alternative to the `sid` in the
|
222
|
+
# URL path to address the resource. The first 64 characters must be unique.
|
217
223
|
# @return [FieldTypeInstance] Updated FieldTypeInstance
|
218
224
|
def update(friendly_name: :unset, unique_name: :unset)
|
219
225
|
data = Twilio::Values.of({'FriendlyName' => friendly_name, 'UniqueName' => unique_name, })
|
@@ -283,9 +289,11 @@ module Twilio
|
|
283
289
|
# Initialize the FieldTypeInstance
|
284
290
|
# @param [Version] version Version that contains the resource
|
285
291
|
# @param [Hash] payload payload that contains response from Twilio
|
286
|
-
# @param [String] assistant_sid The
|
287
|
-
#
|
288
|
-
# resource.
|
292
|
+
# @param [String] assistant_sid The SID of the
|
293
|
+
# [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the
|
294
|
+
# parent of the resource.
|
295
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
296
|
+
# FieldType resource to fetch.
|
289
297
|
# @return [FieldTypeInstance] FieldTypeInstance
|
290
298
|
def initialize(version, payload, assistant_sid: nil, sid: nil)
|
291
299
|
super(version)
|
@@ -320,55 +328,55 @@ module Twilio
|
|
320
328
|
end
|
321
329
|
|
322
330
|
##
|
323
|
-
# @return [String] The
|
331
|
+
# @return [String] The SID of the Account that created the resource
|
324
332
|
def account_sid
|
325
333
|
@properties['account_sid']
|
326
334
|
end
|
327
335
|
|
328
336
|
##
|
329
|
-
# @return [Time] The date
|
337
|
+
# @return [Time] The RFC 2822 date and time in GMT when the resource was created
|
330
338
|
def date_created
|
331
339
|
@properties['date_created']
|
332
340
|
end
|
333
341
|
|
334
342
|
##
|
335
|
-
# @return [Time] The date
|
343
|
+
# @return [Time] The RFC 2822 date and time in GMT when the resource was last updated
|
336
344
|
def date_updated
|
337
345
|
@properties['date_updated']
|
338
346
|
end
|
339
347
|
|
340
348
|
##
|
341
|
-
# @return [String]
|
349
|
+
# @return [String] The string that you assigned to describe the resource
|
342
350
|
def friendly_name
|
343
351
|
@properties['friendly_name']
|
344
352
|
end
|
345
353
|
|
346
354
|
##
|
347
|
-
# @return [String]
|
355
|
+
# @return [String] A list of the URLs of related resources
|
348
356
|
def links
|
349
357
|
@properties['links']
|
350
358
|
end
|
351
359
|
|
352
360
|
##
|
353
|
-
# @return [String] The
|
361
|
+
# @return [String] The SID of the Assistant that is the parent of the resource
|
354
362
|
def assistant_sid
|
355
363
|
@properties['assistant_sid']
|
356
364
|
end
|
357
365
|
|
358
366
|
##
|
359
|
-
# @return [String]
|
367
|
+
# @return [String] The unique string that identifies the resource
|
360
368
|
def sid
|
361
369
|
@properties['sid']
|
362
370
|
end
|
363
371
|
|
364
372
|
##
|
365
|
-
# @return [String]
|
373
|
+
# @return [String] An application-defined string that uniquely identifies the resource
|
366
374
|
def unique_name
|
367
375
|
@properties['unique_name']
|
368
376
|
end
|
369
377
|
|
370
378
|
##
|
371
|
-
# @return [String] The
|
379
|
+
# @return [String] The absolute URL of the FieldType resource
|
372
380
|
def url
|
373
381
|
@properties['url']
|
374
382
|
end
|
@@ -382,10 +390,11 @@ module Twilio
|
|
382
390
|
|
383
391
|
##
|
384
392
|
# Update the FieldTypeInstance
|
385
|
-
# @param [String] friendly_name A
|
386
|
-
# resource. It is
|
387
|
-
# @param [String] unique_name
|
388
|
-
# resource as an alternative to the sid
|
393
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
394
|
+
# the resource. It is not unique and can be up to 255 characters long.
|
395
|
+
# @param [String] unique_name An application-defined string that uniquely
|
396
|
+
# identifies the resource. It can be used as an alternative to the `sid` in the
|
397
|
+
# URL path to address the resource. The first 64 characters must be unique.
|
389
398
|
# @return [FieldTypeInstance] Updated FieldTypeInstance
|
390
399
|
def update(friendly_name: :unset, unique_name: :unset)
|
391
400
|
context.update(friendly_name: friendly_name, unique_name: unique_name, )
|
@@ -18,9 +18,11 @@ module Twilio
|
|
18
18
|
##
|
19
19
|
# Initialize the FieldValueList
|
20
20
|
# @param [Version] version Version that contains the resource
|
21
|
-
# @param [String] assistant_sid The
|
22
|
-
#
|
23
|
-
#
|
21
|
+
# @param [String] assistant_sid The SID of the
|
22
|
+
# [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the
|
23
|
+
# parent of the FieldType associated with the resource.
|
24
|
+
# @param [String] field_type_sid The SID of the Field Type associated with the
|
25
|
+
# Field Value.
|
24
26
|
# @return [FieldValueList] FieldValueList
|
25
27
|
def initialize(version, assistant_sid: nil, field_type_sid: nil)
|
26
28
|
super(version)
|
@@ -34,8 +36,8 @@ module Twilio
|
|
34
36
|
# Lists FieldValueInstance records from the API as a list.
|
35
37
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
36
38
|
# memory before returning.
|
37
|
-
# @param [String] language
|
38
|
-
# language
|
39
|
+
# @param [String] language The [ISO
|
40
|
+
# language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) tag that specifies the language of the value. Currently supported tags: `en-US`, `nl-NL`
|
39
41
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
40
42
|
# guarantees to never return more than limit. Default is no limit
|
41
43
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -51,8 +53,8 @@ module Twilio
|
|
51
53
|
# Streams FieldValueInstance records from the API as an Enumerable.
|
52
54
|
# This operation lazily loads records as efficiently as possible until the limit
|
53
55
|
# is reached.
|
54
|
-
# @param [String] language
|
55
|
-
# language
|
56
|
+
# @param [String] language The [ISO
|
57
|
+
# language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) tag that specifies the language of the value. Currently supported tags: `en-US`, `nl-NL`
|
56
58
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
57
59
|
# guarantees to never return more than limit. Default is no limit.
|
58
60
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -85,8 +87,8 @@ module Twilio
|
|
85
87
|
##
|
86
88
|
# Retrieve a single page of FieldValueInstance records from the API.
|
87
89
|
# Request is executed immediately.
|
88
|
-
# @param [String] language
|
89
|
-
# language
|
90
|
+
# @param [String] language The [ISO
|
91
|
+
# language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) tag that specifies the language of the value. Currently supported tags: `en-US`, `nl-NL`
|
90
92
|
# @param [String] page_token PageToken provided by the API
|
91
93
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
92
94
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
@@ -122,11 +124,10 @@ module Twilio
|
|
122
124
|
##
|
123
125
|
# Retrieve a single page of FieldValueInstance records from the API.
|
124
126
|
# Request is executed immediately.
|
125
|
-
# @param [String] language
|
126
|
-
# language
|
127
|
-
# @param [String] value
|
128
|
-
#
|
129
|
-
# @param [String] synonym_of A string value that indicates which word this field
|
127
|
+
# @param [String] language The [ISO
|
128
|
+
# language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) tag that specifies the language of the value. Currently supported tags: `en-US`, `nl-NL`
|
129
|
+
# @param [String] value The Field Value data.
|
130
|
+
# @param [String] synonym_of The string value that indicates which word the field
|
130
131
|
# value is a synonym of.
|
131
132
|
# @return [FieldValueInstance] Newly created FieldValueInstance
|
132
133
|
def create(language: nil, value: nil, synonym_of: :unset)
|
@@ -195,10 +196,13 @@ module Twilio
|
|
195
196
|
##
|
196
197
|
# Initialize the FieldValueContext
|
197
198
|
# @param [Version] version Version that contains the resource
|
198
|
-
# @param [String] assistant_sid The
|
199
|
-
#
|
200
|
-
#
|
201
|
-
# @param [String]
|
199
|
+
# @param [String] assistant_sid The SID of the
|
200
|
+
# [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the
|
201
|
+
# parent of the FieldType associated with the resource to fetch.
|
202
|
+
# @param [String] field_type_sid The SID of the Field Type associated with the
|
203
|
+
# Field Value to fetch.
|
204
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
205
|
+
# FieldValue resource to fetch.
|
202
206
|
# @return [FieldValueContext] FieldValueContext
|
203
207
|
def initialize(version, assistant_sid, field_type_sid, sid)
|
204
208
|
super(version)
|
@@ -258,10 +262,13 @@ module Twilio
|
|
258
262
|
# Initialize the FieldValueInstance
|
259
263
|
# @param [Version] version Version that contains the resource
|
260
264
|
# @param [Hash] payload payload that contains response from Twilio
|
261
|
-
# @param [String] assistant_sid The
|
262
|
-
#
|
263
|
-
#
|
264
|
-
# @param [String]
|
265
|
+
# @param [String] assistant_sid The SID of the
|
266
|
+
# [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the
|
267
|
+
# parent of the FieldType associated with the resource.
|
268
|
+
# @param [String] field_type_sid The SID of the Field Type associated with the
|
269
|
+
# Field Value.
|
270
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
271
|
+
# FieldValue resource to fetch.
|
265
272
|
# @return [FieldValueInstance] FieldValueInstance
|
266
273
|
def initialize(version, payload, assistant_sid: nil, field_type_sid: nil, sid: nil)
|
267
274
|
super(version)
|
@@ -306,61 +313,61 @@ module Twilio
|
|
306
313
|
end
|
307
314
|
|
308
315
|
##
|
309
|
-
# @return [String] The
|
316
|
+
# @return [String] The SID of the Account that created the resource
|
310
317
|
def account_sid
|
311
318
|
@properties['account_sid']
|
312
319
|
end
|
313
320
|
|
314
321
|
##
|
315
|
-
# @return [Time] The date
|
322
|
+
# @return [Time] The RFC 2822 date and time in GMT when the resource was created
|
316
323
|
def date_created
|
317
324
|
@properties['date_created']
|
318
325
|
end
|
319
326
|
|
320
327
|
##
|
321
|
-
# @return [Time] The date
|
328
|
+
# @return [Time] The RFC 2822 date and time in GMT when the resource was last updated
|
322
329
|
def date_updated
|
323
330
|
@properties['date_updated']
|
324
331
|
end
|
325
332
|
|
326
333
|
##
|
327
|
-
# @return [String] The
|
334
|
+
# @return [String] The SID of the Field Type associated with the Field Value
|
328
335
|
def field_type_sid
|
329
336
|
@properties['field_type_sid']
|
330
337
|
end
|
331
338
|
|
332
339
|
##
|
333
|
-
# @return [String]
|
340
|
+
# @return [String] The ISO language-country tag that identifies the language of the value
|
334
341
|
def language
|
335
342
|
@properties['language']
|
336
343
|
end
|
337
344
|
|
338
345
|
##
|
339
|
-
# @return [String] The
|
346
|
+
# @return [String] The SID of the Assistant that is the parent of the FieldType associated with the resource
|
340
347
|
def assistant_sid
|
341
348
|
@properties['assistant_sid']
|
342
349
|
end
|
343
350
|
|
344
351
|
##
|
345
|
-
# @return [String]
|
352
|
+
# @return [String] The unique string that identifies the resource
|
346
353
|
def sid
|
347
354
|
@properties['sid']
|
348
355
|
end
|
349
356
|
|
350
357
|
##
|
351
|
-
# @return [String] The Field Value
|
358
|
+
# @return [String] The Field Value data
|
352
359
|
def value
|
353
360
|
@properties['value']
|
354
361
|
end
|
355
362
|
|
356
363
|
##
|
357
|
-
# @return [String] The
|
364
|
+
# @return [String] The absolute URL of the FieldValue resource
|
358
365
|
def url
|
359
366
|
@properties['url']
|
360
367
|
end
|
361
368
|
|
362
369
|
##
|
363
|
-
# @return [String]
|
370
|
+
# @return [String] The word for which the field value is a synonym of
|
364
371
|
def synonym_of
|
365
372
|
@properties['synonym_of']
|
366
373
|
end
|
@@ -17,7 +17,9 @@ module Twilio
|
|
17
17
|
##
|
18
18
|
# Initialize the ModelBuildList
|
19
19
|
# @param [Version] version Version that contains the resource
|
20
|
-
# @param [String] assistant_sid The
|
20
|
+
# @param [String] assistant_sid The SID of the
|
21
|
+
# [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the
|
22
|
+
# parent of the resource.
|
21
23
|
# @return [ModelBuildList] ModelBuildList
|
22
24
|
def initialize(version, assistant_sid: nil)
|
23
25
|
super(version)
|
@@ -112,10 +114,12 @@ module Twilio
|
|
112
114
|
##
|
113
115
|
# Retrieve a single page of ModelBuildInstance records from the API.
|
114
116
|
# Request is executed immediately.
|
115
|
-
# @param [String] status_callback The
|
116
|
-
#
|
117
|
-
#
|
118
|
-
#
|
117
|
+
# @param [String] status_callback The URL we should call using a POST method to
|
118
|
+
# send status information to your application.
|
119
|
+
# @param [String] unique_name An application-defined string that uniquely
|
120
|
+
# identifies the new resource. This value must be a unique string of no more than
|
121
|
+
# 64 characters. It can be used as an alternative to the `sid` in the URL path to
|
122
|
+
# address the resource.
|
119
123
|
# @return [ModelBuildInstance] Newly created ModelBuildInstance
|
120
124
|
def create(status_callback: :unset, unique_name: :unset)
|
121
125
|
data = Twilio::Values.of({'StatusCallback' => status_callback, 'UniqueName' => unique_name, })
|
@@ -173,9 +177,11 @@ module Twilio
|
|
173
177
|
##
|
174
178
|
# Initialize the ModelBuildContext
|
175
179
|
# @param [Version] version Version that contains the resource
|
176
|
-
# @param [String] assistant_sid The
|
177
|
-
#
|
178
|
-
# resource.
|
180
|
+
# @param [String] assistant_sid The SID of the
|
181
|
+
# [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the
|
182
|
+
# parent of the resource to fetch.
|
183
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
184
|
+
# ModelBuild resource to fetch.
|
179
185
|
# @return [ModelBuildContext] ModelBuildContext
|
180
186
|
def initialize(version, assistant_sid, sid)
|
181
187
|
super(version)
|
@@ -207,9 +213,10 @@ module Twilio
|
|
207
213
|
|
208
214
|
##
|
209
215
|
# Update the ModelBuildInstance
|
210
|
-
# @param [String] unique_name
|
211
|
-
# resource
|
212
|
-
#
|
216
|
+
# @param [String] unique_name An application-defined string that uniquely
|
217
|
+
# identifies the resource. This value must be a unique string of no more than 64
|
218
|
+
# characters. It can be used as an alternative to the `sid` in the URL path to
|
219
|
+
# address the resource.
|
213
220
|
# @return [ModelBuildInstance] Updated ModelBuildInstance
|
214
221
|
def update(unique_name: :unset)
|
215
222
|
data = Twilio::Values.of({'UniqueName' => unique_name, })
|
@@ -257,9 +264,11 @@ module Twilio
|
|
257
264
|
# Initialize the ModelBuildInstance
|
258
265
|
# @param [Version] version Version that contains the resource
|
259
266
|
# @param [Hash] payload payload that contains response from Twilio
|
260
|
-
# @param [String] assistant_sid The
|
261
|
-
#
|
262
|
-
# resource.
|
267
|
+
# @param [String] assistant_sid The SID of the
|
268
|
+
# [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the
|
269
|
+
# parent of the resource.
|
270
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
271
|
+
# ModelBuild resource to fetch.
|
263
272
|
# @return [ModelBuildInstance] ModelBuildInstance
|
264
273
|
def initialize(version, payload, assistant_sid: nil, sid: nil)
|
265
274
|
super(version)
|
@@ -295,61 +304,61 @@ module Twilio
|
|
295
304
|
end
|
296
305
|
|
297
306
|
##
|
298
|
-
# @return [String] The
|
307
|
+
# @return [String] The SID of the Account that created the resource
|
299
308
|
def account_sid
|
300
309
|
@properties['account_sid']
|
301
310
|
end
|
302
311
|
|
303
312
|
##
|
304
|
-
# @return [Time] The date
|
313
|
+
# @return [Time] The RFC 2822 date and time in GMT when the resource was created
|
305
314
|
def date_created
|
306
315
|
@properties['date_created']
|
307
316
|
end
|
308
317
|
|
309
318
|
##
|
310
|
-
# @return [Time] The date
|
319
|
+
# @return [Time] The RFC 2822 date and time in GMT when the resource was last updated
|
311
320
|
def date_updated
|
312
321
|
@properties['date_updated']
|
313
322
|
end
|
314
323
|
|
315
324
|
##
|
316
|
-
# @return [String] The
|
325
|
+
# @return [String] The SID of the Assistant that is the parent of the resource
|
317
326
|
def assistant_sid
|
318
327
|
@properties['assistant_sid']
|
319
328
|
end
|
320
329
|
|
321
330
|
##
|
322
|
-
# @return [String]
|
331
|
+
# @return [String] The unique string that identifies the resource
|
323
332
|
def sid
|
324
333
|
@properties['sid']
|
325
334
|
end
|
326
335
|
|
327
336
|
##
|
328
|
-
# @return [model_build.Status]
|
337
|
+
# @return [model_build.Status] The status of the model build process
|
329
338
|
def status
|
330
339
|
@properties['status']
|
331
340
|
end
|
332
341
|
|
333
342
|
##
|
334
|
-
# @return [String]
|
343
|
+
# @return [String] An application-defined string that uniquely identifies the resource
|
335
344
|
def unique_name
|
336
345
|
@properties['unique_name']
|
337
346
|
end
|
338
347
|
|
339
348
|
##
|
340
|
-
# @return [String] The
|
349
|
+
# @return [String] The absolute URL of the ModelBuild resource
|
341
350
|
def url
|
342
351
|
@properties['url']
|
343
352
|
end
|
344
353
|
|
345
354
|
##
|
346
|
-
# @return [String] The time in seconds it took to build the model
|
355
|
+
# @return [String] The time in seconds it took to build the model
|
347
356
|
def build_duration
|
348
357
|
@properties['build_duration']
|
349
358
|
end
|
350
359
|
|
351
360
|
##
|
352
|
-
# @return [String]
|
361
|
+
# @return [String] More information about why the model build failed, if `status` is `failed`
|
353
362
|
def error_code
|
354
363
|
@properties['error_code']
|
355
364
|
end
|
@@ -363,9 +372,10 @@ module Twilio
|
|
363
372
|
|
364
373
|
##
|
365
374
|
# Update the ModelBuildInstance
|
366
|
-
# @param [String] unique_name
|
367
|
-
# resource
|
368
|
-
#
|
375
|
+
# @param [String] unique_name An application-defined string that uniquely
|
376
|
+
# identifies the resource. This value must be a unique string of no more than 64
|
377
|
+
# characters. It can be used as an alternative to the `sid` in the URL path to
|
378
|
+
# address the resource.
|
369
379
|
# @return [ModelBuildInstance] Updated ModelBuildInstance
|
370
380
|
def update(unique_name: :unset)
|
371
381
|
context.update(unique_name: unique_name, )
|