twilio-ruby 6.9.0 → 6.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +12 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/http/http_client.rb +3 -2
  5. data/lib/twilio-ruby/rest/client.rb +0 -5
  6. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +27 -27
  7. data/lib/twilio-ruby/rest/preview/sync/service.rb +27 -27
  8. data/lib/twilio-ruby/rest/preview.rb +1 -11
  9. data/lib/twilio-ruby/rest/preview_base.rb +0 -5
  10. data/lib/twilio-ruby/version.rb +1 -1
  11. metadata +2 -35
  12. data/lib/twilio-ruby/rest/autopilot/v1/assistant/defaults.rb +0 -241
  13. data/lib/twilio-ruby/rest/autopilot/v1/assistant/dialogue.rb +0 -217
  14. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +0 -389
  15. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +0 -435
  16. data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +0 -409
  17. data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +0 -473
  18. data/lib/twilio-ruby/rest/autopilot/v1/assistant/style_sheet.rb +0 -241
  19. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +0 -373
  20. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +0 -436
  21. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb +0 -253
  22. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +0 -226
  23. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +0 -525
  24. data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +0 -433
  25. data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +0 -683
  26. data/lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb +0 -207
  27. data/lib/twilio-ruby/rest/autopilot/v1.rb +0 -55
  28. data/lib/twilio-ruby/rest/autopilot.rb +0 -22
  29. data/lib/twilio-ruby/rest/autopilot_base.rb +0 -38
  30. data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_fallback_actions.rb +0 -241
  31. data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_initiation_actions.rb +0 -241
  32. data/lib/twilio-ruby/rest/preview/understand/assistant/dialogue.rb +0 -217
  33. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +0 -389
  34. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +0 -435
  35. data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +0 -409
  36. data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +0 -463
  37. data/lib/twilio-ruby/rest/preview/understand/assistant/style_sheet.rb +0 -241
  38. data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +0 -373
  39. data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +0 -436
  40. data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_actions.rb +0 -253
  41. data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb +0 -226
  42. data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +0 -525
  43. data/lib/twilio-ruby/rest/preview/understand/assistant.rb +0 -663
  44. data/lib/twilio-ruby/rest/preview/understand.rb +0 -49
@@ -1,683 +0,0 @@
1
- ##
2
- # This code was generated by
3
- # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
- # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
- # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
- #
7
- # Twilio - Autopilot
8
- # This is the public Twilio REST API.
9
- #
10
- # NOTE: This class is auto generated by OpenAPI Generator.
11
- # https://openapi-generator.tech
12
- # Do not edit the class manually.
13
- #
14
-
15
-
16
- module Twilio
17
- module REST
18
- class Autopilot < AutopilotBase
19
- class V1 < Version
20
- class AssistantList < ListResource
21
- ##
22
- # Initialize the AssistantList
23
- # @param [Version] version Version that contains the resource
24
- # @return [AssistantList] AssistantList
25
- def initialize(version)
26
- super(version)
27
- # Path Solution
28
- @solution = { }
29
- @uri = "/Assistants"
30
-
31
- end
32
- ##
33
- # Create the AssistantInstance
34
- # @param [String] friendly_name A descriptive string that you create to describe the new resource. It is not unique and can be up to 255 characters long.
35
- # @param [Boolean] log_queries Whether queries should be logged and kept after training. Can be: `true` or `false` and defaults to `true`. If `true`, queries are stored for 30 days, and then deleted. If `false`, no queries are stored.
36
- # @param [String] unique_name An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique.
37
- # @param [String] callback_url Reserved.
38
- # @param [String] callback_events Reserved.
39
- # @param [Object] style_sheet The JSON string that defines the Assistant's [style sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet)
40
- # @param [Object] defaults A JSON object that defines the Assistant's [default tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various scenarios, including initiation actions and fallback tasks.
41
- # @return [AssistantInstance] Created AssistantInstance
42
- def create(
43
- friendly_name: :unset,
44
- log_queries: :unset,
45
- unique_name: :unset,
46
- callback_url: :unset,
47
- callback_events: :unset,
48
- style_sheet: :unset,
49
- defaults: :unset
50
- )
51
-
52
- data = Twilio::Values.of({
53
- 'FriendlyName' => friendly_name,
54
- 'LogQueries' => log_queries,
55
- 'UniqueName' => unique_name,
56
- 'CallbackUrl' => callback_url,
57
- 'CallbackEvents' => callback_events,
58
- 'StyleSheet' => Twilio.serialize_object(style_sheet),
59
- 'Defaults' => Twilio.serialize_object(defaults),
60
- })
61
-
62
- payload = @version.create('POST', @uri, data: data)
63
- AssistantInstance.new(
64
- @version,
65
- payload,
66
- )
67
- end
68
-
69
-
70
- ##
71
- # Lists AssistantInstance records from the API as a list.
72
- # Unlike stream(), this operation is eager and will load `limit` records into
73
- # memory before returning.
74
- # @param [Integer] limit Upper limit for the number of records to return. stream()
75
- # guarantees to never return more than limit. Default is no limit
76
- # @param [Integer] page_size Number of records to fetch per request, when
77
- # not set will use the default value of 50 records. If no page_size is defined
78
- # but a limit is defined, stream() will attempt to read the limit with the most
79
- # efficient page size, i.e. min(limit, 1000)
80
- # @return [Array] Array of up to limit results
81
- def list(limit: nil, page_size: nil)
82
- self.stream(
83
- limit: limit,
84
- page_size: page_size
85
- ).entries
86
- end
87
-
88
- ##
89
- # Streams Instance records from the API as an Enumerable.
90
- # This operation lazily loads records as efficiently as possible until the limit
91
- # is reached.
92
- # @param [Integer] limit Upper limit for the number of records to return. stream()
93
- # guarantees to never return more than limit. Default is no limit
94
- # @param [Integer] page_size Number of records to fetch per request, when
95
- # not set will use the default value of 50 records. If no page_size is defined
96
- # but a limit is defined, stream() will attempt to read the limit with the most
97
- # efficient page size, i.e. min(limit, 1000)
98
- # @return [Enumerable] Enumerable that will yield up to limit results
99
- def stream(limit: nil, page_size: nil)
100
- limits = @version.read_limits(limit, page_size)
101
-
102
- page = self.page(
103
- page_size: limits[:page_size], )
104
-
105
- @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
106
- end
107
-
108
- ##
109
- # When passed a block, yields AssistantInstance records from the API.
110
- # This operation lazily loads records as efficiently as possible until the limit
111
- # is reached.
112
- def each
113
- limits = @version.read_limits
114
-
115
- page = self.page(page_size: limits[:page_size], )
116
-
117
- @version.stream(page,
118
- limit: limits[:limit],
119
- page_limit: limits[:page_limit]).each {|x| yield x}
120
- end
121
-
122
- ##
123
- # Retrieve a single page of AssistantInstance records from the API.
124
- # Request is executed immediately.
125
- # @param [String] page_token PageToken provided by the API
126
- # @param [Integer] page_number Page Number, this value is simply for client state
127
- # @param [Integer] page_size Number of records to return, defaults to 50
128
- # @return [Page] Page of AssistantInstance
129
- def page(page_token: :unset, page_number: :unset, page_size: :unset)
130
- params = Twilio::Values.of({
131
- 'PageToken' => page_token,
132
- 'Page' => page_number,
133
- 'PageSize' => page_size,
134
- })
135
-
136
- response = @version.page('GET', @uri, params: params)
137
-
138
- AssistantPage.new(@version, response, @solution)
139
- end
140
-
141
- ##
142
- # Retrieve a single page of AssistantInstance records from the API.
143
- # Request is executed immediately.
144
- # @param [String] target_url API-generated URL for the requested results page
145
- # @return [Page] Page of AssistantInstance
146
- def get_page(target_url)
147
- response = @version.domain.request(
148
- 'GET',
149
- target_url
150
- )
151
- AssistantPage.new(@version, response, @solution)
152
- end
153
-
154
-
155
-
156
- # Provide a user friendly representation
157
- def to_s
158
- '#<Twilio.Autopilot.V1.AssistantList>'
159
- end
160
- end
161
-
162
-
163
- ##
164
- #PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
165
- class AssistantContext < InstanceContext
166
- ##
167
- # Initialize the AssistantContext
168
- # @param [Version] version Version that contains the resource
169
- # @param [String] sid The Twilio-provided string that uniquely identifies the Assistant resource to update.
170
- # @return [AssistantContext] AssistantContext
171
- def initialize(version, sid)
172
- super(version)
173
-
174
- # Path Solution
175
- @solution = { sid: sid, }
176
- @uri = "/Assistants/#{@solution[:sid]}"
177
-
178
- # Dependents
179
- @tasks = nil
180
- @defaults = nil
181
- @webhooks = nil
182
- @dialogues = nil
183
- @model_builds = nil
184
- @field_types = nil
185
- @style_sheet = nil
186
- @queries = nil
187
- end
188
- ##
189
- # Delete the AssistantInstance
190
- # @return [Boolean] True if delete succeeds, false otherwise
191
- def delete
192
-
193
- @version.delete('DELETE', @uri)
194
- end
195
-
196
- ##
197
- # Fetch the AssistantInstance
198
- # @return [AssistantInstance] Fetched AssistantInstance
199
- def fetch
200
-
201
- payload = @version.fetch('GET', @uri)
202
- AssistantInstance.new(
203
- @version,
204
- payload,
205
- sid: @solution[:sid],
206
- )
207
- end
208
-
209
- ##
210
- # Update the AssistantInstance
211
- # @param [String] friendly_name A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long.
212
- # @param [Boolean] log_queries Whether queries should be logged and kept after training. Can be: `true` or `false` and defaults to `true`. If `true`, queries are stored for 30 days, and then deleted. If `false`, no queries are stored.
213
- # @param [String] unique_name An application-defined string that uniquely identifies the resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique.
214
- # @param [String] callback_url Reserved.
215
- # @param [String] callback_events Reserved.
216
- # @param [Object] style_sheet The JSON string that defines the Assistant's [style sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet)
217
- # @param [Object] defaults A JSON object that defines the Assistant's [default tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various scenarios, including initiation actions and fallback tasks.
218
- # @param [String] development_stage A string describing the state of the assistant.
219
- # @return [AssistantInstance] Updated AssistantInstance
220
- def update(
221
- friendly_name: :unset,
222
- log_queries: :unset,
223
- unique_name: :unset,
224
- callback_url: :unset,
225
- callback_events: :unset,
226
- style_sheet: :unset,
227
- defaults: :unset,
228
- development_stage: :unset
229
- )
230
-
231
- data = Twilio::Values.of({
232
- 'FriendlyName' => friendly_name,
233
- 'LogQueries' => log_queries,
234
- 'UniqueName' => unique_name,
235
- 'CallbackUrl' => callback_url,
236
- 'CallbackEvents' => callback_events,
237
- 'StyleSheet' => Twilio.serialize_object(style_sheet),
238
- 'Defaults' => Twilio.serialize_object(defaults),
239
- 'DevelopmentStage' => development_stage,
240
- })
241
-
242
- payload = @version.update('POST', @uri, data: data)
243
- AssistantInstance.new(
244
- @version,
245
- payload,
246
- sid: @solution[:sid],
247
- )
248
- end
249
-
250
- ##
251
- # Access the tasks
252
- # @return [TaskList]
253
- # @return [TaskContext] if sid was passed.
254
- def tasks(sid=:unset)
255
-
256
- raise ArgumentError, 'sid cannot be nil' if sid.nil?
257
-
258
- if sid != :unset
259
- return TaskContext.new(@version, @solution[:sid],sid )
260
- end
261
-
262
- unless @tasks
263
- @tasks = TaskList.new(
264
- @version, assistant_sid: @solution[:sid], )
265
- end
266
-
267
- @tasks
268
- end
269
- ##
270
- # Access the defaults
271
- # @return [DefaultsList]
272
- # @return [DefaultsContext]
273
- def defaults
274
- DefaultsContext.new(
275
- @version,
276
- @solution[:sid]
277
- )
278
- end
279
- ##
280
- # Access the webhooks
281
- # @return [WebhookList]
282
- # @return [WebhookContext] if sid was passed.
283
- def webhooks(sid=:unset)
284
-
285
- raise ArgumentError, 'sid cannot be nil' if sid.nil?
286
-
287
- if sid != :unset
288
- return WebhookContext.new(@version, @solution[:sid],sid )
289
- end
290
-
291
- unless @webhooks
292
- @webhooks = WebhookList.new(
293
- @version, assistant_sid: @solution[:sid], )
294
- end
295
-
296
- @webhooks
297
- end
298
- ##
299
- # Access the dialogues
300
- # @return [DialogueList]
301
- # @return [DialogueContext] if sid was passed.
302
- def dialogues(sid=:unset)
303
-
304
- raise ArgumentError, 'sid cannot be nil' if sid.nil?
305
-
306
- if sid != :unset
307
- return DialogueContext.new(@version, @solution[:sid],sid )
308
- end
309
-
310
- unless @dialogues
311
- @dialogues = DialogueList.new(
312
- @version, assistant_sid: @solution[:sid], )
313
- end
314
-
315
- @dialogues
316
- end
317
- ##
318
- # Access the model_builds
319
- # @return [ModelBuildList]
320
- # @return [ModelBuildContext] if sid was passed.
321
- def model_builds(sid=:unset)
322
-
323
- raise ArgumentError, 'sid cannot be nil' if sid.nil?
324
-
325
- if sid != :unset
326
- return ModelBuildContext.new(@version, @solution[:sid],sid )
327
- end
328
-
329
- unless @model_builds
330
- @model_builds = ModelBuildList.new(
331
- @version, assistant_sid: @solution[:sid], )
332
- end
333
-
334
- @model_builds
335
- end
336
- ##
337
- # Access the field_types
338
- # @return [FieldTypeList]
339
- # @return [FieldTypeContext] if sid was passed.
340
- def field_types(sid=:unset)
341
-
342
- raise ArgumentError, 'sid cannot be nil' if sid.nil?
343
-
344
- if sid != :unset
345
- return FieldTypeContext.new(@version, @solution[:sid],sid )
346
- end
347
-
348
- unless @field_types
349
- @field_types = FieldTypeList.new(
350
- @version, assistant_sid: @solution[:sid], )
351
- end
352
-
353
- @field_types
354
- end
355
- ##
356
- # Access the style_sheet
357
- # @return [StyleSheetList]
358
- # @return [StyleSheetContext]
359
- def style_sheet
360
- StyleSheetContext.new(
361
- @version,
362
- @solution[:sid]
363
- )
364
- end
365
- ##
366
- # Access the queries
367
- # @return [QueryList]
368
- # @return [QueryContext] if sid was passed.
369
- def queries(sid=:unset)
370
-
371
- raise ArgumentError, 'sid cannot be nil' if sid.nil?
372
-
373
- if sid != :unset
374
- return QueryContext.new(@version, @solution[:sid],sid )
375
- end
376
-
377
- unless @queries
378
- @queries = QueryList.new(
379
- @version, assistant_sid: @solution[:sid], )
380
- end
381
-
382
- @queries
383
- end
384
-
385
- ##
386
- # Provide a user friendly representation
387
- def to_s
388
- context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
389
- "#<Twilio.Autopilot.V1.AssistantContext #{context}>"
390
- end
391
-
392
- ##
393
- # Provide a detailed, user friendly representation
394
- def inspect
395
- context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
396
- "#<Twilio.Autopilot.V1.AssistantContext #{context}>"
397
- end
398
- end
399
-
400
- class AssistantPage < Page
401
- ##
402
- # Initialize the AssistantPage
403
- # @param [Version] version Version that contains the resource
404
- # @param [Response] response Response from the API
405
- # @param [Hash] solution Path solution for the resource
406
- # @return [AssistantPage] AssistantPage
407
- def initialize(version, response, solution)
408
- super(version, response)
409
-
410
- # Path Solution
411
- @solution = solution
412
- end
413
-
414
- ##
415
- # Build an instance of AssistantInstance
416
- # @param [Hash] payload Payload response from the API
417
- # @return [AssistantInstance] AssistantInstance
418
- def get_instance(payload)
419
- AssistantInstance.new(@version, payload)
420
- end
421
-
422
- ##
423
- # Provide a user friendly representation
424
- def to_s
425
- '<Twilio.Autopilot.V1.AssistantPage>'
426
- end
427
- end
428
- class AssistantInstance < InstanceResource
429
- ##
430
- # Initialize the AssistantInstance
431
- # @param [Version] version Version that contains the resource
432
- # @param [Hash] payload payload that contains response from Twilio
433
- # @param [String] account_sid The SID of the
434
- # {Account}[https://www.twilio.com/docs/iam/api/account] that created this Assistant
435
- # resource.
436
- # @param [String] sid The SID of the Call resource to fetch.
437
- # @return [AssistantInstance] AssistantInstance
438
- def initialize(version, payload , sid: nil)
439
- super(version)
440
-
441
- # Marshaled Properties
442
- @properties = {
443
- 'account_sid' => payload['account_sid'],
444
- 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
445
- 'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
446
- 'friendly_name' => payload['friendly_name'],
447
- 'latest_model_build_sid' => payload['latest_model_build_sid'],
448
- 'links' => payload['links'],
449
- 'log_queries' => payload['log_queries'],
450
- 'development_stage' => payload['development_stage'],
451
- 'needs_model_build' => payload['needs_model_build'],
452
- 'sid' => payload['sid'],
453
- 'unique_name' => payload['unique_name'],
454
- 'url' => payload['url'],
455
- 'callback_url' => payload['callback_url'],
456
- 'callback_events' => payload['callback_events'],
457
- }
458
-
459
- # Context
460
- @instance_context = nil
461
- @params = { 'sid' => sid || @properties['sid'] , }
462
- end
463
-
464
- ##
465
- # Generate an instance context for the instance, the context is capable of
466
- # performing various actions. All instance actions are proxied to the context
467
- # @return [AssistantContext] CallContext for this CallInstance
468
- def context
469
- unless @instance_context
470
- @instance_context = AssistantContext.new(@version , @params['sid'])
471
- end
472
- @instance_context
473
- end
474
-
475
- ##
476
- # @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Assistant resource.
477
- def account_sid
478
- @properties['account_sid']
479
- end
480
-
481
- ##
482
- # @return [Time] The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
483
- def date_created
484
- @properties['date_created']
485
- end
486
-
487
- ##
488
- # @return [Time] The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
489
- def date_updated
490
- @properties['date_updated']
491
- end
492
-
493
- ##
494
- # @return [String] The string that you assigned to describe the resource. It is not unique and can be up to 255 characters long.
495
- def friendly_name
496
- @properties['friendly_name']
497
- end
498
-
499
- ##
500
- # @return [String] Reserved.
501
- def latest_model_build_sid
502
- @properties['latest_model_build_sid']
503
- end
504
-
505
- ##
506
- # @return [Hash] A list of the URLs of the Assistant's related resources.
507
- def links
508
- @properties['links']
509
- end
510
-
511
- ##
512
- # @return [Boolean] Whether queries should be logged and kept after training. Can be: `true` or `false` and defaults to `true`. If `true`, queries are stored for 30 days, and then deleted. If `false`, no queries are stored.
513
- def log_queries
514
- @properties['log_queries']
515
- end
516
-
517
- ##
518
- # @return [String] A string describing the state of the assistant.
519
- def development_stage
520
- @properties['development_stage']
521
- end
522
-
523
- ##
524
- # @return [Boolean] Whether model needs to be rebuilt.
525
- def needs_model_build
526
- @properties['needs_model_build']
527
- end
528
-
529
- ##
530
- # @return [String] The unique string that we created to identify the Assistant resource.
531
- def sid
532
- @properties['sid']
533
- end
534
-
535
- ##
536
- # @return [String] An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address the resource. It can be up to 64 characters long.
537
- def unique_name
538
- @properties['unique_name']
539
- end
540
-
541
- ##
542
- # @return [String] The absolute URL of the Assistant resource.
543
- def url
544
- @properties['url']
545
- end
546
-
547
- ##
548
- # @return [String] Reserved.
549
- def callback_url
550
- @properties['callback_url']
551
- end
552
-
553
- ##
554
- # @return [String] Reserved.
555
- def callback_events
556
- @properties['callback_events']
557
- end
558
-
559
- ##
560
- # Delete the AssistantInstance
561
- # @return [Boolean] True if delete succeeds, false otherwise
562
- def delete
563
-
564
- context.delete
565
- end
566
-
567
- ##
568
- # Fetch the AssistantInstance
569
- # @return [AssistantInstance] Fetched AssistantInstance
570
- def fetch
571
-
572
- context.fetch
573
- end
574
-
575
- ##
576
- # Update the AssistantInstance
577
- # @param [String] friendly_name A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long.
578
- # @param [Boolean] log_queries Whether queries should be logged and kept after training. Can be: `true` or `false` and defaults to `true`. If `true`, queries are stored for 30 days, and then deleted. If `false`, no queries are stored.
579
- # @param [String] unique_name An application-defined string that uniquely identifies the resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique.
580
- # @param [String] callback_url Reserved.
581
- # @param [String] callback_events Reserved.
582
- # @param [Object] style_sheet The JSON string that defines the Assistant's [style sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet)
583
- # @param [Object] defaults A JSON object that defines the Assistant's [default tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various scenarios, including initiation actions and fallback tasks.
584
- # @param [String] development_stage A string describing the state of the assistant.
585
- # @return [AssistantInstance] Updated AssistantInstance
586
- def update(
587
- friendly_name: :unset,
588
- log_queries: :unset,
589
- unique_name: :unset,
590
- callback_url: :unset,
591
- callback_events: :unset,
592
- style_sheet: :unset,
593
- defaults: :unset,
594
- development_stage: :unset
595
- )
596
-
597
- context.update(
598
- friendly_name: friendly_name,
599
- log_queries: log_queries,
600
- unique_name: unique_name,
601
- callback_url: callback_url,
602
- callback_events: callback_events,
603
- style_sheet: style_sheet,
604
- defaults: defaults,
605
- development_stage: development_stage,
606
- )
607
- end
608
-
609
- ##
610
- # Access the tasks
611
- # @return [tasks] tasks
612
- def tasks
613
- context.tasks
614
- end
615
-
616
- ##
617
- # Access the defaults
618
- # @return [defaults] defaults
619
- def defaults
620
- context.defaults
621
- end
622
-
623
- ##
624
- # Access the webhooks
625
- # @return [webhooks] webhooks
626
- def webhooks
627
- context.webhooks
628
- end
629
-
630
- ##
631
- # Access the dialogues
632
- # @return [dialogues] dialogues
633
- def dialogues
634
- context.dialogues
635
- end
636
-
637
- ##
638
- # Access the model_builds
639
- # @return [model_builds] model_builds
640
- def model_builds
641
- context.model_builds
642
- end
643
-
644
- ##
645
- # Access the field_types
646
- # @return [field_types] field_types
647
- def field_types
648
- context.field_types
649
- end
650
-
651
- ##
652
- # Access the style_sheet
653
- # @return [style_sheet] style_sheet
654
- def style_sheet
655
- context.style_sheet
656
- end
657
-
658
- ##
659
- # Access the queries
660
- # @return [queries] queries
661
- def queries
662
- context.queries
663
- end
664
-
665
- ##
666
- # Provide a user friendly representation
667
- def to_s
668
- values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
669
- "<Twilio.Autopilot.V1.AssistantInstance #{values}>"
670
- end
671
-
672
- ##
673
- # Provide a detailed, user friendly representation
674
- def inspect
675
- values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
676
- "<Twilio.Autopilot.V1.AssistantInstance #{values}>"
677
- end
678
- end
679
-
680
- end
681
- end
682
- end
683
- end