twilio-ruby 5.22.1 → 5.22.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +12 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +7 -0
  5. data/lib/twilio-ruby/rest/autopilot.rb +1 -1
  6. data/lib/twilio-ruby/rest/autopilot/v1.rb +2 -2
  7. data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +55 -61
  8. data/lib/twilio-ruby/rest/autopilot/v1/assistant/defaults.rb +17 -9
  9. data/lib/twilio-ruby/rest/autopilot/v1/assistant/dialogue.rb +18 -10
  10. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +37 -28
  11. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +39 -32
  12. data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +37 -27
  13. data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +58 -53
  14. data/lib/twilio-ruby/rest/autopilot/v1/assistant/style_sheet.rb +15 -9
  15. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +53 -43
  16. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +38 -25
  17. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +56 -50
  18. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb +27 -15
  19. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +24 -18
  20. data/lib/twilio-ruby/rest/client.rb +39 -39
  21. data/lib/twilio-ruby/rest/notify.rb +4 -2
  22. data/lib/twilio-ruby/rest/notify/v1.rb +4 -2
  23. data/lib/twilio-ruby/rest/notify/v1/credential.rb +47 -42
  24. data/lib/twilio-ruby/rest/notify/v1/service.rb +118 -103
  25. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +74 -63
  26. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +108 -111
  27. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +7 -0
  28. data/lib/twilio-ruby/rest/trunking.rb +2 -2
  29. data/lib/twilio-ruby/rest/trunking/v1.rb +2 -2
  30. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +82 -82
  31. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +19 -14
  32. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +16 -15
  33. data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +51 -50
  34. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +41 -32
  35. data/lib/twilio-ruby/rest/trunking/v1/trunk/terminating_sip_domain.rb +30 -31
  36. data/lib/twilio-ruby/twiml/voice_response.rb +3 -2
  37. data/lib/twilio-ruby/version.rb +1 -1
  38. data/spec/integration/api/v2010/account/address_spec.rb +4 -0
  39. data/spec/integration/proxy/v1/service/phone_number_spec.rb +8 -4
  40. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b096695ddd4583d0d7bf4ad95ab76eace6192901f7bedf56dc31b4dde2a0de8
4
- data.tar.gz: 6bb2df3607d10000291bcbff5975a37a35f3dddc918759184d1b1b69eed5e11a
3
+ metadata.gz: 56c51ed3f9392178845971a918ef139df4926ab742750847b18bb3ddc87e2c18
4
+ data.tar.gz: 0eb51f9090ed807d69c0b692635ea7f5e1ea80d749d18b861f1fc3bec4c785d9
5
5
  SHA512:
6
- metadata.gz: 264cfd07318d76751f33c2ac6381260e86ee7cab59b92eb1148caa1bc5c957aa0fe4b9b424d26f80938d23269f32bbfa19f891ea5564c2eb33b4e4dc43880b23
7
- data.tar.gz: 17b4e305842552e83726da94c85a5368152356a8abcc525d2218e520f022f98d084dcb78d41db71fd64388a3b95f908135374e3182623dacd28ee7b3a4d4dcf4
6
+ metadata.gz: 72b79f4bca642b5b3f214b4272120ea8b7553eedad68de78b04510a978668628b0bae8d73623c8062f7963aa3998eae00184f64ee74df21bc1d2c228b63fc59a
7
+ data.tar.gz: c9c494717aac88547f909dd574c8be9f48221533b5a2fd666e0399fe4a53952d56a500c4bf7904ac9810fb649cdfc97d45fd93d38ebd7432978c1a6aa1654732
data/CHANGES.md CHANGED
@@ -1,6 +1,18 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2019-04-24] Version 5.22.2
5
+ ----------------------------
6
+ **Api**
7
+ - Add `verified` property to Addresses
8
+
9
+ **Numbers**
10
+ - Add API for Identites and documents
11
+
12
+ **Proxy**
13
+ - Add in use count on number instance
14
+
15
+
4
16
  [2019-04-12] Version 5.22.1
5
17
  ----------------------------
6
18
  **Flex**
data/README.md CHANGED
@@ -27,13 +27,13 @@ in-line code documentation here in the library.
27
27
  To install using [Bundler][bundler] grab the latest stable version:
28
28
 
29
29
  ```ruby
30
- gem 'twilio-ruby', '~> 5.22.1'
30
+ gem 'twilio-ruby', '~> 5.22.2'
31
31
  ```
32
32
 
33
33
  To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
34
34
 
35
35
  ```bash
36
- gem install twilio-ruby -v 5.22.1
36
+ gem install twilio-ruby -v 5.22.2
37
37
  ```
38
38
 
39
39
  To build and install the development branch yourself from the latest source:
@@ -358,6 +358,7 @@ module Twilio
358
358
  'uri' => payload['uri'],
359
359
  'emergency_enabled' => payload['emergency_enabled'],
360
360
  'validated' => payload['validated'],
361
+ 'verified' => payload['verified'],
361
362
  }
362
363
 
363
364
  # Context
@@ -460,6 +461,12 @@ module Twilio
460
461
  @properties['validated']
461
462
  end
462
463
 
464
+ ##
465
+ # @return [Boolean] Whether the address has been verified to comply with regulation
466
+ def verified
467
+ @properties['verified']
468
+ end
469
+
463
470
  ##
464
471
  # Deletes the AddressInstance
465
472
  # @return [Boolean] true if delete succeeds, true otherwise
@@ -29,7 +29,7 @@ module Twilio
29
29
  end
30
30
 
31
31
  ##
32
- # @param [String] sid A 34-character string that uniquely identifies this
32
+ # @param [String] sid The unique string that we created to identify the Assistant
33
33
  # resource.
34
34
  # @return [Twilio::REST::Autopilot::V1::AssistantInstance] if sid was passed.
35
35
  # @return [Twilio::REST::Autopilot::V1::AssistantList]
@@ -19,8 +19,8 @@ module Twilio
19
19
  end
20
20
 
21
21
  ##
22
- # @param [String] sid A 34-character string that uniquely identifies this
23
- # resource.
22
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
23
+ # Assistant resource to fetch.
24
24
  # @return [Twilio::REST::Autopilot::V1::AssistantContext] if sid was passed.
25
25
  # @return [Twilio::REST::Autopilot::V1::AssistantList]
26
26
  def assistants(sid=:unset)
@@ -110,23 +110,21 @@ module Twilio
110
110
  ##
111
111
  # Retrieve a single page of AssistantInstance records from the API.
112
112
  # Request is executed immediately.
113
- # @param [String] friendly_name A text description for the Assistant. It is
114
- # non-unique and can be up to 255 characters long.
115
- # @param [Boolean] log_queries A boolean that specifies whether queries should be
116
- # logged for 30 days past training. If `false`, no queries will be stored. If
117
- # `true`, queries will be stored for 30 days and deleted thereafter. Defaults to
118
- # `true` if no value is provided.
119
- # @param [String] unique_name A user-provided string that uniquely identifies this
120
- # resource as an alternative to the sid. You can use the unique name in the URL
121
- # path when addressing this resource. Unique up to 64 characters long.
122
- # @param [String] callback_url The callback_url
123
- # @param [String] callback_events A space-separated list of callback events that
124
- # will trigger callbacks
125
- # @param [Hash] style_sheet A JSON object that defines the assistant [style
113
+ # @param [String] friendly_name A descriptive string that you create to describe
114
+ # the new resource. It is not unique and can be up to 255 characters long.
115
+ # @param [Boolean] log_queries Whether queries should be logged and kept after
116
+ # training. Can be: `true` or `false` and defaults to `true`. If `true`, queries
117
+ # are stored for 30 days, and then deleted. If `false`, no queries are stored.
118
+ # @param [String] unique_name An application-defined string that uniquely
119
+ # identifies the new resource. It can be used as an alternative to the `sid` in
120
+ # the URL path to address the resource. The first 64 characters must be unique.
121
+ # @param [String] callback_url Reserved.
122
+ # @param [String] callback_events Reserved.
123
+ # @param [Hash] style_sheet The JSON string that defines the Assistant's [style
126
124
  # sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet)
127
- # @param [Hash] defaults A JSON object that defines the assistant's [default
125
+ # @param [Hash] defaults A JSON object that defines the Assistant's [default
128
126
  # tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various
129
- # scenarios, including initation actions and fallback tasks.
127
+ # scenarios, including initiation actions and fallback tasks.
130
128
  # @return [AssistantInstance] Newly created AssistantInstance
131
129
  def create(friendly_name: :unset, log_queries: :unset, unique_name: :unset, callback_url: :unset, callback_events: :unset, style_sheet: :unset, defaults: :unset)
132
130
  data = Twilio::Values.of({
@@ -192,8 +190,8 @@ module Twilio
192
190
  ##
193
191
  # Initialize the AssistantContext
194
192
  # @param [Version] version Version that contains the resource
195
- # @param [String] sid A 34-character string that uniquely identifies this
196
- # resource.
193
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
194
+ # Assistant resource to fetch.
197
195
  # @return [AssistantContext] AssistantContext
198
196
  def initialize(version, sid)
199
197
  super(version)
@@ -229,23 +227,21 @@ module Twilio
229
227
 
230
228
  ##
231
229
  # Update the AssistantInstance
232
- # @param [String] friendly_name A text description for the Assistant. It is
233
- # non-unique and can be up to 255 characters long.
234
- # @param [Boolean] log_queries A boolean that specifies whether queries should be
235
- # logged for 30 days past training. If `false`, no queries will be stored. If
236
- # `true`, queries will be stored for 30 days and deleted thereafter. Defaults to
237
- # `true` if no value is provided.
238
- # @param [String] unique_name A user-provided string that uniquely identifies this
239
- # resource as an alternative to the sid. You can use the unique name in the URL
240
- # path when addressing this resource. Unique up to 64 characters long.
241
- # @param [String] callback_url The callback_url
242
- # @param [String] callback_events A space-separated list of callback events that
243
- # will trigger callbacks
244
- # @param [Hash] style_sheet A JSON object that defines the assistant [style
230
+ # @param [String] friendly_name A descriptive string that you create to describe
231
+ # the resource. It is not unique and can be up to 255 characters long.
232
+ # @param [Boolean] log_queries Whether queries should be logged and kept after
233
+ # training. Can be: `true` or `false` and defaults to `true`. If `true`, queries
234
+ # are stored for 30 days, and then deleted. If `false`, no queries are stored.
235
+ # @param [String] unique_name An application-defined string that uniquely
236
+ # identifies the resource. It can be used as an alternative to the `sid` in the
237
+ # URL path to address the resource. The first 64 characters must be unique.
238
+ # @param [String] callback_url Reserved.
239
+ # @param [String] callback_events Reserved.
240
+ # @param [Hash] style_sheet The JSON string that defines the Assistant's [style
245
241
  # sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet)
246
- # @param [Hash] defaults A JSON object that defines the assistant's [default
242
+ # @param [Hash] defaults A JSON object that defines the Assistant's [default
247
243
  # tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various
248
- # scenarios, including initation actions and fallback tasks.
244
+ # scenarios, including initiation actions and fallback tasks.
249
245
  # @return [AssistantInstance] Updated AssistantInstance
250
246
  def update(friendly_name: :unset, log_queries: :unset, unique_name: :unset, callback_url: :unset, callback_events: :unset, style_sheet: :unset, defaults: :unset)
251
247
  data = Twilio::Values.of({
@@ -402,8 +398,8 @@ module Twilio
402
398
  # Initialize the AssistantInstance
403
399
  # @param [Version] version Version that contains the resource
404
400
  # @param [Hash] payload payload that contains response from Twilio
405
- # @param [String] sid A 34-character string that uniquely identifies this
406
- # resource.
401
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
402
+ # Assistant resource to fetch.
407
403
  # @return [AssistantInstance] AssistantInstance
408
404
  def initialize(version, payload, sid: nil)
409
405
  super(version)
@@ -441,73 +437,73 @@ module Twilio
441
437
  end
442
438
 
443
439
  ##
444
- # @return [String] The unique ID of the Account that created this Assistant.
440
+ # @return [String] The SID of the Account that created the resource
445
441
  def account_sid
446
442
  @properties['account_sid']
447
443
  end
448
444
 
449
445
  ##
450
- # @return [Time] The date that this resource was created
446
+ # @return [Time] The RFC 2822 date and time in GMT when the resource was created
451
447
  def date_created
452
448
  @properties['date_created']
453
449
  end
454
450
 
455
451
  ##
456
- # @return [Time] The date that this resource was last updated
452
+ # @return [Time] The RFC 2822 date and time in GMT when the resource was last updated
457
453
  def date_updated
458
454
  @properties['date_updated']
459
455
  end
460
456
 
461
457
  ##
462
- # @return [String] A text description for the Assistant. It is non-unique and can be up to 255 characters long.
458
+ # @return [String] The string that you assigned to describe the resource
463
459
  def friendly_name
464
460
  @properties['friendly_name']
465
461
  end
466
462
 
467
463
  ##
468
- # @return [String] The latest_model_build_sid
464
+ # @return [String] Reserved
469
465
  def latest_model_build_sid
470
466
  @properties['latest_model_build_sid']
471
467
  end
472
468
 
473
469
  ##
474
- # @return [String] The links
470
+ # @return [String] A list of the URLs of the Assistant's related resources
475
471
  def links
476
472
  @properties['links']
477
473
  end
478
474
 
479
475
  ##
480
- # @return [Boolean] A boolean that specifies whether queries should be logged for 30 days past training. If `false`, no queries will be stored. If `true`, queries will be stored for 30 days and deleted thereafter.
476
+ # @return [Boolean] Whether queries should be logged and kept after training
481
477
  def log_queries
482
478
  @properties['log_queries']
483
479
  end
484
480
 
485
481
  ##
486
- # @return [String] A 34-character string that uniquely identifies this resource.
482
+ # @return [String] The unique string that identifies the resource
487
483
  def sid
488
484
  @properties['sid']
489
485
  end
490
486
 
491
487
  ##
492
- # @return [String] A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long.
488
+ # @return [String] An application-defined string that uniquely identifies the resource
493
489
  def unique_name
494
490
  @properties['unique_name']
495
491
  end
496
492
 
497
493
  ##
498
- # @return [String] The url
494
+ # @return [String] The absolute URL of the Assistant resource
499
495
  def url
500
496
  @properties['url']
501
497
  end
502
498
 
503
499
  ##
504
- # @return [String] The callback_url
500
+ # @return [String] Reserved
505
501
  def callback_url
506
502
  @properties['callback_url']
507
503
  end
508
504
 
509
505
  ##
510
- # @return [String] The callback_events
506
+ # @return [String] Reserved
511
507
  def callback_events
512
508
  @properties['callback_events']
513
509
  end
@@ -521,23 +517,21 @@ module Twilio
521
517
 
522
518
  ##
523
519
  # Update the AssistantInstance
524
- # @param [String] friendly_name A text description for the Assistant. It is
525
- # non-unique and can be up to 255 characters long.
526
- # @param [Boolean] log_queries A boolean that specifies whether queries should be
527
- # logged for 30 days past training. If `false`, no queries will be stored. If
528
- # `true`, queries will be stored for 30 days and deleted thereafter. Defaults to
529
- # `true` if no value is provided.
530
- # @param [String] unique_name A user-provided string that uniquely identifies this
531
- # resource as an alternative to the sid. You can use the unique name in the URL
532
- # path when addressing this resource. Unique up to 64 characters long.
533
- # @param [String] callback_url The callback_url
534
- # @param [String] callback_events A space-separated list of callback events that
535
- # will trigger callbacks
536
- # @param [Hash] style_sheet A JSON object that defines the assistant [style
520
+ # @param [String] friendly_name A descriptive string that you create to describe
521
+ # the resource. It is not unique and can be up to 255 characters long.
522
+ # @param [Boolean] log_queries Whether queries should be logged and kept after
523
+ # training. Can be: `true` or `false` and defaults to `true`. If `true`, queries
524
+ # are stored for 30 days, and then deleted. If `false`, no queries are stored.
525
+ # @param [String] unique_name An application-defined string that uniquely
526
+ # identifies the resource. It can be used as an alternative to the `sid` in the
527
+ # URL path to address the resource. The first 64 characters must be unique.
528
+ # @param [String] callback_url Reserved.
529
+ # @param [String] callback_events Reserved.
530
+ # @param [Hash] style_sheet The JSON string that defines the Assistant's [style
537
531
  # sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet)
538
- # @param [Hash] defaults A JSON object that defines the assistant's [default
532
+ # @param [Hash] defaults A JSON object that defines the Assistant's [default
539
533
  # tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various
540
- # scenarios, including initation actions and fallback tasks.
534
+ # scenarios, including initiation actions and fallback tasks.
541
535
  # @return [AssistantInstance] Updated AssistantInstance
542
536
  def update(friendly_name: :unset, log_queries: :unset, unique_name: :unset, callback_url: :unset, callback_events: :unset, style_sheet: :unset, defaults: :unset)
543
537
  context.update(
@@ -17,7 +17,9 @@ module Twilio
17
17
  ##
18
18
  # Initialize the DefaultsList
19
19
  # @param [Version] version Version that contains the resource
20
- # @param [String] assistant_sid The assistant_sid
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 [DefaultsList] DefaultsList
22
24
  def initialize(version, assistant_sid: nil)
23
25
  super(version)
@@ -70,7 +72,9 @@ module Twilio
70
72
  ##
71
73
  # Initialize the DefaultsContext
72
74
  # @param [Version] version Version that contains the resource
73
- # @param [String] assistant_sid The assistant_sid
75
+ # @param [String] assistant_sid The SID of the
76
+ # [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the
77
+ # parent of the resource to fetch.
74
78
  # @return [DefaultsContext] DefaultsContext
75
79
  def initialize(version, assistant_sid)
76
80
  super(version)
@@ -97,7 +101,8 @@ module Twilio
97
101
 
98
102
  ##
99
103
  # Update the DefaultsInstance
100
- # @param [Hash] defaults The defaults
104
+ # @param [Hash] defaults A JSON string that describes the default task links for
105
+ # the `assistant_initiation`, `collect`, and `fallback` situations.
101
106
  # @return [DefaultsInstance] Updated DefaultsInstance
102
107
  def update(defaults: :unset)
103
108
  data = Twilio::Values.of({'Defaults' => Twilio.serialize_object(defaults), })
@@ -133,7 +138,9 @@ module Twilio
133
138
  # Initialize the DefaultsInstance
134
139
  # @param [Version] version Version that contains the resource
135
140
  # @param [Hash] payload payload that contains response from Twilio
136
- # @param [String] assistant_sid The assistant_sid
141
+ # @param [String] assistant_sid The SID of the
142
+ # [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the
143
+ # parent of the resource.
137
144
  # @return [DefaultsInstance] DefaultsInstance
138
145
  def initialize(version, payload, assistant_sid: nil)
139
146
  super(version)
@@ -163,25 +170,25 @@ module Twilio
163
170
  end
164
171
 
165
172
  ##
166
- # @return [String] The account_sid
173
+ # @return [String] The SID of the Account that created the resource
167
174
  def account_sid
168
175
  @properties['account_sid']
169
176
  end
170
177
 
171
178
  ##
172
- # @return [String] The assistant_sid
179
+ # @return [String] The SID of the Assistant that is the parent of the resource
173
180
  def assistant_sid
174
181
  @properties['assistant_sid']
175
182
  end
176
183
 
177
184
  ##
178
- # @return [String] The url
185
+ # @return [String] The absolute URL of the Defaults resource
179
186
  def url
180
187
  @properties['url']
181
188
  end
182
189
 
183
190
  ##
184
- # @return [Hash] The data
191
+ # @return [Hash] The JSON string that describes the default task links
185
192
  def data
186
193
  @properties['data']
187
194
  end
@@ -195,7 +202,8 @@ module Twilio
195
202
 
196
203
  ##
197
204
  # Update the DefaultsInstance
198
- # @param [Hash] defaults The defaults
205
+ # @param [Hash] defaults A JSON string that describes the default task links for
206
+ # the `assistant_initiation`, `collect`, and `fallback` situations.
199
207
  # @return [DefaultsInstance] Updated DefaultsInstance
200
208
  def update(defaults: :unset)
201
209
  context.update(defaults: defaults, )
@@ -17,7 +17,9 @@ module Twilio
17
17
  ##
18
18
  # Initialize the DialogueList
19
19
  # @param [Version] version Version that contains the resource
20
- # @param [String] assistant_sid The unique ID of the parent Assistant.
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 [DialogueList] DialogueList
22
24
  def initialize(version, assistant_sid: nil)
23
25
  super(version)
@@ -70,8 +72,11 @@ module Twilio
70
72
  ##
71
73
  # Initialize the DialogueContext
72
74
  # @param [Version] version Version that contains the resource
73
- # @param [String] assistant_sid The assistant_sid
74
- # @param [String] sid The sid
75
+ # @param [String] assistant_sid The SID of the
76
+ # [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the
77
+ # parent of the resource to fetch.
78
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
79
+ # Dialogue resource to fetch.
75
80
  # @return [DialogueContext] DialogueContext
76
81
  def initialize(version, assistant_sid, sid)
77
82
  super(version)
@@ -123,8 +128,11 @@ module Twilio
123
128
  # Initialize the DialogueInstance
124
129
  # @param [Version] version Version that contains the resource
125
130
  # @param [Hash] payload payload that contains response from Twilio
126
- # @param [String] assistant_sid The unique ID of the parent Assistant.
127
- # @param [String] sid The sid
131
+ # @param [String] assistant_sid The SID of the
132
+ # [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the
133
+ # parent of the resource.
134
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
135
+ # Dialogue resource to fetch.
128
136
  # @return [DialogueInstance] DialogueInstance
129
137
  def initialize(version, payload, assistant_sid: nil, sid: nil)
130
138
  super(version)
@@ -155,31 +163,31 @@ module Twilio
155
163
  end
156
164
 
157
165
  ##
158
- # @return [String] The unique ID of the Account that created this Field.
166
+ # @return [String] The SID of the Account that created the resource
159
167
  def account_sid
160
168
  @properties['account_sid']
161
169
  end
162
170
 
163
171
  ##
164
- # @return [String] The unique ID of the parent Assistant.
172
+ # @return [String] The SID of the Assistant that is the parent of the resource
165
173
  def assistant_sid
166
174
  @properties['assistant_sid']
167
175
  end
168
176
 
169
177
  ##
170
- # @return [String] The unique ID of the Dialogue
178
+ # @return [String] The unique string that identifies the resource
171
179
  def sid
172
180
  @properties['sid']
173
181
  end
174
182
 
175
183
  ##
176
- # @return [Hash] The dialogue session object as json
184
+ # @return [Hash] The JSON string that describes the dialogue session object
177
185
  def data
178
186
  @properties['data']
179
187
  end
180
188
 
181
189
  ##
182
- # @return [String] The url
190
+ # @return [String] The absolute URL of the Dialogue resource
183
191
  def url
184
192
  @properties['url']
185
193
  end