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
 
| 
         @@ -18,8 +18,12 @@ module Twilio 
     | 
|
| 
       18 
18 
     | 
    
         
             
                          ##
         
     | 
| 
       19 
19 
     | 
    
         
             
                          # Initialize the FieldList
         
     | 
| 
       20 
20 
     | 
    
         
             
                          # @param [Version] version Version that contains the resource
         
     | 
| 
       21 
     | 
    
         
            -
                          # @param [String] assistant_sid The  
     | 
| 
       22 
     | 
    
         
            -
                          # 
     | 
| 
      
 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 Task associated with the resource.
         
     | 
| 
      
 24 
     | 
    
         
            +
                          # @param [String] task_sid The SID of the
         
     | 
| 
      
 25 
     | 
    
         
            +
                          #   [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with
         
     | 
| 
      
 26 
     | 
    
         
            +
                          #   this Field.
         
     | 
| 
       23 
27 
     | 
    
         
             
                          # @return [FieldList] FieldList
         
     | 
| 
       24 
28 
     | 
    
         
             
                          def initialize(version, assistant_sid: nil, task_sid: nil)
         
     | 
| 
       25 
29 
     | 
    
         
             
                            super(version)
         
     | 
| 
         @@ -114,12 +118,13 @@ module Twilio 
     | 
|
| 
       114 
118 
     | 
    
         
             
                          ##
         
     | 
| 
       115 
119 
     | 
    
         
             
                          # Retrieve a single page of FieldInstance records from the API.
         
     | 
| 
       116 
120 
     | 
    
         
             
                          # Request is executed immediately.
         
     | 
| 
       117 
     | 
    
         
            -
                          # @param [String] field_type The Field Type of  
     | 
| 
       118 
     | 
    
         
            -
                          #    
     | 
| 
       119 
     | 
    
         
            -
                          #    
     | 
| 
       120 
     | 
    
         
            -
                          # 
     | 
| 
       121 
     | 
    
         
            -
                          #  
     | 
| 
       122 
     | 
    
         
            -
                          #    
     | 
| 
      
 121 
     | 
    
         
            +
                          # @param [String] field_type The Field Type of the new field. Can be: a [Built-in
         
     | 
| 
      
 122 
     | 
    
         
            +
                          #   Field Type](https://www.twilio.com/docs/assistant/api/built-in-field-types), the
         
     | 
| 
      
 123 
     | 
    
         
            +
                          #   `unique_name`, or the `sid` of a custom Field Type.
         
     | 
| 
      
 124 
     | 
    
         
            +
                          # @param [String] unique_name An application-defined string that uniquely
         
     | 
| 
      
 125 
     | 
    
         
            +
                          #   identifies the new resource. This value must be a unique string of no more than
         
     | 
| 
      
 126 
     | 
    
         
            +
                          #   64 characters. It can be used as an alternative to the `sid` in the URL path to
         
     | 
| 
      
 127 
     | 
    
         
            +
                          #   address the resource.
         
     | 
| 
       123 
128 
     | 
    
         
             
                          # @return [FieldInstance] Newly created FieldInstance
         
     | 
| 
       124 
129 
     | 
    
         
             
                          def create(field_type: nil, unique_name: nil)
         
     | 
| 
       125 
130 
     | 
    
         
             
                            data = Twilio::Values.of({'FieldType' => field_type, 'UniqueName' => unique_name, })
         
     | 
| 
         @@ -187,10 +192,14 @@ module Twilio 
     | 
|
| 
       187 
192 
     | 
    
         
             
                          ##
         
     | 
| 
       188 
193 
     | 
    
         
             
                          # Initialize the FieldContext
         
     | 
| 
       189 
194 
     | 
    
         
             
                          # @param [Version] version Version that contains the resource
         
     | 
| 
       190 
     | 
    
         
            -
                          # @param [String] assistant_sid The  
     | 
| 
       191 
     | 
    
         
            -
                          # 
     | 
| 
       192 
     | 
    
         
            -
                          #  
     | 
| 
       193 
     | 
    
         
            -
                          # 
     | 
| 
      
 195 
     | 
    
         
            +
                          # @param [String] assistant_sid The SID of the
         
     | 
| 
      
 196 
     | 
    
         
            +
                          #   [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the
         
     | 
| 
      
 197 
     | 
    
         
            +
                          #   parent of the Task associated with the resource to fetch.
         
     | 
| 
      
 198 
     | 
    
         
            +
                          # @param [String] task_sid The SID of the
         
     | 
| 
      
 199 
     | 
    
         
            +
                          #   [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with
         
     | 
| 
      
 200 
     | 
    
         
            +
                          #   the Field resource to fetch.
         
     | 
| 
      
 201 
     | 
    
         
            +
                          # @param [String] sid The Twilio-provided string that uniquely identifies the
         
     | 
| 
      
 202 
     | 
    
         
            +
                          #   Field resource to fetch.
         
     | 
| 
       194 
203 
     | 
    
         
             
                          # @return [FieldContext] FieldContext
         
     | 
| 
       195 
204 
     | 
    
         
             
                          def initialize(version, assistant_sid, task_sid, sid)
         
     | 
| 
       196 
205 
     | 
    
         
             
                            super(version)
         
     | 
| 
         @@ -250,10 +259,14 @@ module Twilio 
     | 
|
| 
       250 
259 
     | 
    
         
             
                          # Initialize the FieldInstance
         
     | 
| 
       251 
260 
     | 
    
         
             
                          # @param [Version] version Version that contains the resource
         
     | 
| 
       252 
261 
     | 
    
         
             
                          # @param [Hash] payload payload that contains response from Twilio
         
     | 
| 
       253 
     | 
    
         
            -
                          # @param [String] assistant_sid The  
     | 
| 
       254 
     | 
    
         
            -
                          # 
     | 
| 
       255 
     | 
    
         
            -
                          #  
     | 
| 
       256 
     | 
    
         
            -
                          # 
     | 
| 
      
 262 
     | 
    
         
            +
                          # @param [String] assistant_sid The SID of the
         
     | 
| 
      
 263 
     | 
    
         
            +
                          #   [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the
         
     | 
| 
      
 264 
     | 
    
         
            +
                          #   parent of the Task associated with the resource.
         
     | 
| 
      
 265 
     | 
    
         
            +
                          # @param [String] task_sid The SID of the
         
     | 
| 
      
 266 
     | 
    
         
            +
                          #   [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with
         
     | 
| 
      
 267 
     | 
    
         
            +
                          #   this Field.
         
     | 
| 
      
 268 
     | 
    
         
            +
                          # @param [String] sid The Twilio-provided string that uniquely identifies the
         
     | 
| 
      
 269 
     | 
    
         
            +
                          #   Field resource to fetch.
         
     | 
| 
       257 
270 
     | 
    
         
             
                          # @return [FieldInstance] FieldInstance
         
     | 
| 
       258 
271 
     | 
    
         
             
                          def initialize(version, payload, assistant_sid: nil, task_sid: nil, sid: nil)
         
     | 
| 
       259 
272 
     | 
    
         
             
                            super(version)
         
     | 
| 
         @@ -297,55 +310,55 @@ module Twilio 
     | 
|
| 
       297 
310 
     | 
    
         
             
                          end
         
     | 
| 
       298 
311 
     | 
    
         | 
| 
       299 
312 
     | 
    
         
             
                          ##
         
     | 
| 
       300 
     | 
    
         
            -
                          # @return [String] The  
     | 
| 
      
 313 
     | 
    
         
            +
                          # @return [String] The SID of the Account that created the resource
         
     | 
| 
       301 
314 
     | 
    
         
             
                          def account_sid
         
     | 
| 
       302 
315 
     | 
    
         
             
                            @properties['account_sid']
         
     | 
| 
       303 
316 
     | 
    
         
             
                          end
         
     | 
| 
       304 
317 
     | 
    
         | 
| 
       305 
318 
     | 
    
         
             
                          ##
         
     | 
| 
       306 
     | 
    
         
            -
                          # @return [Time] The date  
     | 
| 
      
 319 
     | 
    
         
            +
                          # @return [Time] The RFC 2822 date and time in GMT when the resource was created
         
     | 
| 
       307 
320 
     | 
    
         
             
                          def date_created
         
     | 
| 
       308 
321 
     | 
    
         
             
                            @properties['date_created']
         
     | 
| 
       309 
322 
     | 
    
         
             
                          end
         
     | 
| 
       310 
323 
     | 
    
         | 
| 
       311 
324 
     | 
    
         
             
                          ##
         
     | 
| 
       312 
     | 
    
         
            -
                          # @return [Time] The date  
     | 
| 
      
 325 
     | 
    
         
            +
                          # @return [Time] The RFC 2822 date and time in GMT when the resource was last updated
         
     | 
| 
       313 
326 
     | 
    
         
             
                          def date_updated
         
     | 
| 
       314 
327 
     | 
    
         
             
                            @properties['date_updated']
         
     | 
| 
       315 
328 
     | 
    
         
             
                          end
         
     | 
| 
       316 
329 
     | 
    
         | 
| 
       317 
330 
     | 
    
         
             
                          ##
         
     | 
| 
       318 
     | 
    
         
            -
                          # @return [String] The Field Type of  
     | 
| 
      
 331 
     | 
    
         
            +
                          # @return [String] The Field Type of the field
         
     | 
| 
       319 
332 
     | 
    
         
             
                          def field_type
         
     | 
| 
       320 
333 
     | 
    
         
             
                            @properties['field_type']
         
     | 
| 
       321 
334 
     | 
    
         
             
                          end
         
     | 
| 
       322 
335 
     | 
    
         | 
| 
       323 
336 
     | 
    
         
             
                          ##
         
     | 
| 
       324 
     | 
    
         
            -
                          # @return [String] The  
     | 
| 
      
 337 
     | 
    
         
            +
                          # @return [String] The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with this Field
         
     | 
| 
       325 
338 
     | 
    
         
             
                          def task_sid
         
     | 
| 
       326 
339 
     | 
    
         
             
                            @properties['task_sid']
         
     | 
| 
       327 
340 
     | 
    
         
             
                          end
         
     | 
| 
       328 
341 
     | 
    
         | 
| 
       329 
342 
     | 
    
         
             
                          ##
         
     | 
| 
       330 
     | 
    
         
            -
                          # @return [String] The  
     | 
| 
      
 343 
     | 
    
         
            +
                          # @return [String] The SID of the Assistant that is the parent of the Task associated with the resource
         
     | 
| 
       331 
344 
     | 
    
         
             
                          def assistant_sid
         
     | 
| 
       332 
345 
     | 
    
         
             
                            @properties['assistant_sid']
         
     | 
| 
       333 
346 
     | 
    
         
             
                          end
         
     | 
| 
       334 
347 
     | 
    
         | 
| 
       335 
348 
     | 
    
         
             
                          ##
         
     | 
| 
       336 
     | 
    
         
            -
                          # @return [String]  
     | 
| 
      
 349 
     | 
    
         
            +
                          # @return [String] The unique string that identifies the resource
         
     | 
| 
       337 
350 
     | 
    
         
             
                          def sid
         
     | 
| 
       338 
351 
     | 
    
         
             
                            @properties['sid']
         
     | 
| 
       339 
352 
     | 
    
         
             
                          end
         
     | 
| 
       340 
353 
     | 
    
         | 
| 
       341 
354 
     | 
    
         
             
                          ##
         
     | 
| 
       342 
     | 
    
         
            -
                          # @return [String]  
     | 
| 
      
 355 
     | 
    
         
            +
                          # @return [String] An application-defined string that uniquely identifies the resource
         
     | 
| 
       343 
356 
     | 
    
         
             
                          def unique_name
         
     | 
| 
       344 
357 
     | 
    
         
             
                            @properties['unique_name']
         
     | 
| 
       345 
358 
     | 
    
         
             
                          end
         
     | 
| 
       346 
359 
     | 
    
         | 
| 
       347 
360 
     | 
    
         
             
                          ##
         
     | 
| 
       348 
     | 
    
         
            -
                          # @return [String] The  
     | 
| 
      
 361 
     | 
    
         
            +
                          # @return [String] The absolute URL of the Field resource
         
     | 
| 
       349 
362 
     | 
    
         
             
                          def url
         
     | 
| 
       350 
363 
     | 
    
         
             
                            @properties['url']
         
     | 
| 
       351 
364 
     | 
    
         
             
                          end
         
     | 
| 
         @@ -18,8 +18,12 @@ module Twilio 
     | 
|
| 
       18 
18 
     | 
    
         
             
                          ##
         
     | 
| 
       19 
19 
     | 
    
         
             
                          # Initialize the SampleList
         
     | 
| 
       20 
20 
     | 
    
         
             
                          # @param [Version] version Version that contains the resource
         
     | 
| 
       21 
     | 
    
         
            -
                          # @param [String] assistant_sid The  
     | 
| 
       22 
     | 
    
         
            -
                          # 
     | 
| 
      
 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 Task associated with the resource.
         
     | 
| 
      
 24 
     | 
    
         
            +
                          # @param [String] task_sid The SID of the
         
     | 
| 
      
 25 
     | 
    
         
            +
                          #   [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the
         
     | 
| 
      
 26 
     | 
    
         
            +
                          #   resource.
         
     | 
| 
       23 
27 
     | 
    
         
             
                          # @return [SampleList] SampleList
         
     | 
| 
       24 
28 
     | 
    
         
             
                          def initialize(version, assistant_sid: nil, task_sid: nil)
         
     | 
| 
       25 
29 
     | 
    
         
             
                            super(version)
         
     | 
| 
         @@ -33,9 +37,8 @@ module Twilio 
     | 
|
| 
       33 
37 
     | 
    
         
             
                          # Lists SampleInstance records from the API as a list.
         
     | 
| 
       34 
38 
     | 
    
         
             
                          # Unlike stream(), this operation is eager and will load `limit` records into
         
     | 
| 
       35 
39 
     | 
    
         
             
                          # memory before returning.
         
     | 
| 
       36 
     | 
    
         
            -
                          # @param [String] language  
     | 
| 
       37 
     | 
    
         
            -
                          #    
     | 
| 
       38 
     | 
    
         
            -
                          #   that specifies the language used for this sample. For example: `en-US`.
         
     | 
| 
      
 40 
     | 
    
         
            +
                          # @param [String] language The [ISO
         
     | 
| 
      
 41 
     | 
    
         
            +
                          #   language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the sample. For example: `en-US`.
         
     | 
| 
       39 
42 
     | 
    
         
             
                          # @param [Integer] limit Upper limit for the number of records to return. stream()
         
     | 
| 
       40 
43 
     | 
    
         
             
                          #    guarantees to never return more than limit.  Default is no limit
         
     | 
| 
       41 
44 
     | 
    
         
             
                          # @param [Integer] page_size Number of records to fetch per request, when
         
     | 
| 
         @@ -51,9 +54,8 @@ module Twilio 
     | 
|
| 
       51 
54 
     | 
    
         
             
                          # Streams SampleInstance records from the API as an Enumerable.
         
     | 
| 
       52 
55 
     | 
    
         
             
                          # This operation lazily loads records as efficiently as possible until the limit
         
     | 
| 
       53 
56 
     | 
    
         
             
                          # is reached.
         
     | 
| 
       54 
     | 
    
         
            -
                          # @param [String] language  
     | 
| 
       55 
     | 
    
         
            -
                          #    
     | 
| 
       56 
     | 
    
         
            -
                          #   that specifies the language used for this sample. For example: `en-US`.
         
     | 
| 
      
 57 
     | 
    
         
            +
                          # @param [String] language The [ISO
         
     | 
| 
      
 58 
     | 
    
         
            +
                          #   language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the sample. For example: `en-US`.
         
     | 
| 
       57 
59 
     | 
    
         
             
                          # @param [Integer] limit Upper limit for the number of records to return. stream()
         
     | 
| 
       58 
60 
     | 
    
         
             
                          #    guarantees to never return more than limit. Default is no limit.
         
     | 
| 
       59 
61 
     | 
    
         
             
                          # @param [Integer] page_size Number of records to fetch per request, when
         
     | 
| 
         @@ -86,9 +88,8 @@ module Twilio 
     | 
|
| 
       86 
88 
     | 
    
         
             
                          ##
         
     | 
| 
       87 
89 
     | 
    
         
             
                          # Retrieve a single page of SampleInstance records from the API.
         
     | 
| 
       88 
90 
     | 
    
         
             
                          # Request is executed immediately.
         
     | 
| 
       89 
     | 
    
         
            -
                          # @param [String] language  
     | 
| 
       90 
     | 
    
         
            -
                          #    
     | 
| 
       91 
     | 
    
         
            -
                          #   that specifies the language used for this sample. For example: `en-US`.
         
     | 
| 
      
 91 
     | 
    
         
            +
                          # @param [String] language The [ISO
         
     | 
| 
      
 92 
     | 
    
         
            +
                          #   language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the sample. For example: `en-US`.
         
     | 
| 
       92 
93 
     | 
    
         
             
                          # @param [String] page_token PageToken provided by the API
         
     | 
| 
       93 
94 
     | 
    
         
             
                          # @param [Integer] page_number Page Number, this value is simply for client state
         
     | 
| 
       94 
95 
     | 
    
         
             
                          # @param [Integer] page_size Number of records to return, defaults to 50
         
     | 
| 
         @@ -124,15 +125,14 @@ module Twilio 
     | 
|
| 
       124 
125 
     | 
    
         
             
                          ##
         
     | 
| 
       125 
126 
     | 
    
         
             
                          # Retrieve a single page of SampleInstance records from the API.
         
     | 
| 
       126 
127 
     | 
    
         
             
                          # Request is executed immediately.
         
     | 
| 
       127 
     | 
    
         
            -
                          # @param [String] language  
     | 
| 
       128 
     | 
    
         
            -
                          #    
     | 
| 
       129 
     | 
    
         
            -
                          # 
     | 
| 
       130 
     | 
    
         
            -
                          #  
     | 
| 
       131 
     | 
    
         
            -
                          #   task. The sample may contain [Field tag
         
     | 
| 
      
 128 
     | 
    
         
            +
                          # @param [String] language The [ISO
         
     | 
| 
      
 129 
     | 
    
         
            +
                          #   language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the new sample. For example: `en-US`.
         
     | 
| 
      
 130 
     | 
    
         
            +
                          # @param [String] tagged_text The text example of how end users might express the
         
     | 
| 
      
 131 
     | 
    
         
            +
                          #   task. The sample can contain [Field tag
         
     | 
| 
       132 
132 
     | 
    
         
             
                          #   blocks](https://www.twilio.com/docs/autopilot/api/task-sample#field-tagging).
         
     | 
| 
       133 
     | 
    
         
            -
                          # @param [String] source_channel The communication channel from which the  
     | 
| 
       134 
     | 
    
         
            -
                          #   was captured.  
     | 
| 
       135 
     | 
    
         
            -
                          #    
     | 
| 
      
 133 
     | 
    
         
            +
                          # @param [String] source_channel The communication channel from which the new
         
     | 
| 
      
 134 
     | 
    
         
            +
                          #   sample was captured. Can be: `voice`, `sms`, `chat`, `alexa`,
         
     | 
| 
      
 135 
     | 
    
         
            +
                          #   `google-assistant`, `slack`, or null if not included.
         
     | 
| 
       136 
136 
     | 
    
         
             
                          # @return [SampleInstance] Newly created SampleInstance
         
     | 
| 
       137 
137 
     | 
    
         
             
                          def create(language: nil, tagged_text: nil, source_channel: :unset)
         
     | 
| 
       138 
138 
     | 
    
         
             
                            data = Twilio::Values.of({
         
     | 
| 
         @@ -204,10 +204,14 @@ module Twilio 
     | 
|
| 
       204 
204 
     | 
    
         
             
                          ##
         
     | 
| 
       205 
205 
     | 
    
         
             
                          # Initialize the SampleContext
         
     | 
| 
       206 
206 
     | 
    
         
             
                          # @param [Version] version Version that contains the resource
         
     | 
| 
       207 
     | 
    
         
            -
                          # @param [String] assistant_sid The  
     | 
| 
       208 
     | 
    
         
            -
                          # 
     | 
| 
       209 
     | 
    
         
            -
                          #  
     | 
| 
       210 
     | 
    
         
            -
                          # 
     | 
| 
      
 207 
     | 
    
         
            +
                          # @param [String] assistant_sid The SID of the
         
     | 
| 
      
 208 
     | 
    
         
            +
                          #   [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the
         
     | 
| 
      
 209 
     | 
    
         
            +
                          #   parent of the Task associated with the resource to fetch.
         
     | 
| 
      
 210 
     | 
    
         
            +
                          # @param [String] task_sid The SID of the
         
     | 
| 
      
 211 
     | 
    
         
            +
                          #   [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the
         
     | 
| 
      
 212 
     | 
    
         
            +
                          #   Sample resource to create.
         
     | 
| 
      
 213 
     | 
    
         
            +
                          # @param [String] sid The Twilio-provided string that uniquely identifies the
         
     | 
| 
      
 214 
     | 
    
         
            +
                          #   Sample resource to fetch.
         
     | 
| 
       211 
215 
     | 
    
         
             
                          # @return [SampleContext] SampleContext
         
     | 
| 
       212 
216 
     | 
    
         
             
                          def initialize(version, assistant_sid, task_sid, sid)
         
     | 
| 
       213 
217 
     | 
    
         
             
                            super(version)
         
     | 
| 
         @@ -240,15 +244,14 @@ module Twilio 
     | 
|
| 
       240 
244 
     | 
    
         | 
| 
       241 
245 
     | 
    
         
             
                          ##
         
     | 
| 
       242 
246 
     | 
    
         
             
                          # Update the SampleInstance
         
     | 
| 
       243 
     | 
    
         
            -
                          # @param [String] language  
     | 
| 
       244 
     | 
    
         
            -
                          #    
     | 
| 
       245 
     | 
    
         
            -
                          # 
     | 
| 
       246 
     | 
    
         
            -
                          #  
     | 
| 
       247 
     | 
    
         
            -
                          #   task. The sample may contain [Field tag
         
     | 
| 
      
 247 
     | 
    
         
            +
                          # @param [String] language The [ISO
         
     | 
| 
      
 248 
     | 
    
         
            +
                          #   language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the sample. For example: `en-US`.
         
     | 
| 
      
 249 
     | 
    
         
            +
                          # @param [String] tagged_text The text example of how end users might express the
         
     | 
| 
      
 250 
     | 
    
         
            +
                          #   task. The sample can contain [Field tag
         
     | 
| 
       248 
251 
     | 
    
         
             
                          #   blocks](https://www.twilio.com/docs/autopilot/api/task-sample#field-tagging).
         
     | 
| 
       249 
252 
     | 
    
         
             
                          # @param [String] source_channel The communication channel from which the sample
         
     | 
| 
       250 
     | 
    
         
            -
                          #   was captured.  
     | 
| 
       251 
     | 
    
         
            -
                          #    
     | 
| 
      
 253 
     | 
    
         
            +
                          #   was captured. Can be: `voice`, `sms`, `chat`, `alexa`, `google-assistant`,
         
     | 
| 
      
 254 
     | 
    
         
            +
                          #   `slack`, or null if not included.
         
     | 
| 
       252 
255 
     | 
    
         
             
                          # @return [SampleInstance] Updated SampleInstance
         
     | 
| 
       253 
256 
     | 
    
         
             
                          def update(language: :unset, tagged_text: :unset, source_channel: :unset)
         
     | 
| 
       254 
257 
     | 
    
         
             
                            data = Twilio::Values.of({
         
     | 
| 
         @@ -301,10 +304,14 @@ module Twilio 
     | 
|
| 
       301 
304 
     | 
    
         
             
                          # Initialize the SampleInstance
         
     | 
| 
       302 
305 
     | 
    
         
             
                          # @param [Version] version Version that contains the resource
         
     | 
| 
       303 
306 
     | 
    
         
             
                          # @param [Hash] payload payload that contains response from Twilio
         
     | 
| 
       304 
     | 
    
         
            -
                          # @param [String] assistant_sid The  
     | 
| 
       305 
     | 
    
         
            -
                          # 
     | 
| 
       306 
     | 
    
         
            -
                          #  
     | 
| 
      
 307 
     | 
    
         
            +
                          # @param [String] assistant_sid The SID of the
         
     | 
| 
      
 308 
     | 
    
         
            +
                          #   [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the
         
     | 
| 
      
 309 
     | 
    
         
            +
                          #   parent of the Task associated with the resource.
         
     | 
| 
      
 310 
     | 
    
         
            +
                          # @param [String] task_sid The SID of the
         
     | 
| 
      
 311 
     | 
    
         
            +
                          #   [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the
         
     | 
| 
       307 
312 
     | 
    
         
             
                          #   resource.
         
     | 
| 
      
 313 
     | 
    
         
            +
                          # @param [String] sid The Twilio-provided string that uniquely identifies the
         
     | 
| 
      
 314 
     | 
    
         
            +
                          #   Sample resource to fetch.
         
     | 
| 
       308 
315 
     | 
    
         
             
                          # @return [SampleInstance] SampleInstance
         
     | 
| 
       309 
316 
     | 
    
         
             
                          def initialize(version, payload, assistant_sid: nil, task_sid: nil, sid: nil)
         
     | 
| 
       310 
317 
     | 
    
         
             
                            super(version)
         
     | 
| 
         @@ -349,61 +356,61 @@ module Twilio 
     | 
|
| 
       349 
356 
     | 
    
         
             
                          end
         
     | 
| 
       350 
357 
     | 
    
         | 
| 
       351 
358 
     | 
    
         
             
                          ##
         
     | 
| 
       352 
     | 
    
         
            -
                          # @return [String] The  
     | 
| 
      
 359 
     | 
    
         
            +
                          # @return [String] The SID of the Account that created the resource
         
     | 
| 
       353 
360 
     | 
    
         
             
                          def account_sid
         
     | 
| 
       354 
361 
     | 
    
         
             
                            @properties['account_sid']
         
     | 
| 
       355 
362 
     | 
    
         
             
                          end
         
     | 
| 
       356 
363 
     | 
    
         | 
| 
       357 
364 
     | 
    
         
             
                          ##
         
     | 
| 
       358 
     | 
    
         
            -
                          # @return [Time] The date  
     | 
| 
      
 365 
     | 
    
         
            +
                          # @return [Time] The RFC 2822 date and time in GMT when the resource was created
         
     | 
| 
       359 
366 
     | 
    
         
             
                          def date_created
         
     | 
| 
       360 
367 
     | 
    
         
             
                            @properties['date_created']
         
     | 
| 
       361 
368 
     | 
    
         
             
                          end
         
     | 
| 
       362 
369 
     | 
    
         | 
| 
       363 
370 
     | 
    
         
             
                          ##
         
     | 
| 
       364 
     | 
    
         
            -
                          # @return [Time] The date  
     | 
| 
      
 371 
     | 
    
         
            +
                          # @return [Time] The RFC 2822 date and time in GMT when the resource was last updated
         
     | 
| 
       365 
372 
     | 
    
         
             
                          def date_updated
         
     | 
| 
       366 
373 
     | 
    
         
             
                            @properties['date_updated']
         
     | 
| 
       367 
374 
     | 
    
         
             
                          end
         
     | 
| 
       368 
375 
     | 
    
         | 
| 
       369 
376 
     | 
    
         
             
                          ##
         
     | 
| 
       370 
     | 
    
         
            -
                          # @return [String] The  
     | 
| 
      
 377 
     | 
    
         
            +
                          # @return [String] The SID of the Task associated with the resource
         
     | 
| 
       371 
378 
     | 
    
         
             
                          def task_sid
         
     | 
| 
       372 
379 
     | 
    
         
             
                            @properties['task_sid']
         
     | 
| 
       373 
380 
     | 
    
         
             
                          end
         
     | 
| 
       374 
381 
     | 
    
         | 
| 
       375 
382 
     | 
    
         
             
                          ##
         
     | 
| 
       376 
     | 
    
         
            -
                          # @return [String] An  
     | 
| 
      
 383 
     | 
    
         
            +
                          # @return [String] An ISO language-country string that specifies the language used for the sample
         
     | 
| 
       377 
384 
     | 
    
         
             
                          def language
         
     | 
| 
       378 
385 
     | 
    
         
             
                            @properties['language']
         
     | 
| 
       379 
386 
     | 
    
         
             
                          end
         
     | 
| 
       380 
387 
     | 
    
         | 
| 
       381 
388 
     | 
    
         
             
                          ##
         
     | 
| 
       382 
     | 
    
         
            -
                          # @return [String] The  
     | 
| 
      
 389 
     | 
    
         
            +
                          # @return [String] The SID of the Assistant that is the parent of the Task associated with the resource
         
     | 
| 
       383 
390 
     | 
    
         
             
                          def assistant_sid
         
     | 
| 
       384 
391 
     | 
    
         
             
                            @properties['assistant_sid']
         
     | 
| 
       385 
392 
     | 
    
         
             
                          end
         
     | 
| 
       386 
393 
     | 
    
         | 
| 
       387 
394 
     | 
    
         
             
                          ##
         
     | 
| 
       388 
     | 
    
         
            -
                          # @return [String]  
     | 
| 
      
 395 
     | 
    
         
            +
                          # @return [String] The unique string that identifies the resource
         
     | 
| 
       389 
396 
     | 
    
         
             
                          def sid
         
     | 
| 
       390 
397 
     | 
    
         
             
                            @properties['sid']
         
     | 
| 
       391 
398 
     | 
    
         
             
                          end
         
     | 
| 
       392 
399 
     | 
    
         | 
| 
       393 
400 
     | 
    
         
             
                          ##
         
     | 
| 
       394 
     | 
    
         
            -
                          # @return [String] The text example of how end 
     | 
| 
      
 401 
     | 
    
         
            +
                          # @return [String] The text example of how end users might express the task
         
     | 
| 
       395 
402 
     | 
    
         
             
                          def tagged_text
         
     | 
| 
       396 
403 
     | 
    
         
             
                            @properties['tagged_text']
         
     | 
| 
       397 
404 
     | 
    
         
             
                          end
         
     | 
| 
       398 
405 
     | 
    
         | 
| 
       399 
406 
     | 
    
         
             
                          ##
         
     | 
| 
       400 
     | 
    
         
            -
                          # @return [String] The  
     | 
| 
      
 407 
     | 
    
         
            +
                          # @return [String] The absolute URL of the Sample resource
         
     | 
| 
       401 
408 
     | 
    
         
             
                          def url
         
     | 
| 
       402 
409 
     | 
    
         
             
                            @properties['url']
         
     | 
| 
       403 
410 
     | 
    
         
             
                          end
         
     | 
| 
       404 
411 
     | 
    
         | 
| 
       405 
412 
     | 
    
         
             
                          ##
         
     | 
| 
       406 
     | 
    
         
            -
                          # @return [String] The communication channel from which the sample was captured 
     | 
| 
      
 413 
     | 
    
         
            +
                          # @return [String] The communication channel from which the sample was captured
         
     | 
| 
       407 
414 
     | 
    
         
             
                          def source_channel
         
     | 
| 
       408 
415 
     | 
    
         
             
                            @properties['source_channel']
         
     | 
| 
       409 
416 
     | 
    
         
             
                          end
         
     | 
| 
         @@ -417,15 +424,14 @@ module Twilio 
     | 
|
| 
       417 
424 
     | 
    
         | 
| 
       418 
425 
     | 
    
         
             
                          ##
         
     | 
| 
       419 
426 
     | 
    
         
             
                          # Update the SampleInstance
         
     | 
| 
       420 
     | 
    
         
            -
                          # @param [String] language  
     | 
| 
       421 
     | 
    
         
            -
                          #    
     | 
| 
       422 
     | 
    
         
            -
                          # 
     | 
| 
       423 
     | 
    
         
            -
                          #  
     | 
| 
       424 
     | 
    
         
            -
                          #   task. The sample may contain [Field tag
         
     | 
| 
      
 427 
     | 
    
         
            +
                          # @param [String] language The [ISO
         
     | 
| 
      
 428 
     | 
    
         
            +
                          #   language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the sample. For example: `en-US`.
         
     | 
| 
      
 429 
     | 
    
         
            +
                          # @param [String] tagged_text The text example of how end users might express the
         
     | 
| 
      
 430 
     | 
    
         
            +
                          #   task. The sample can contain [Field tag
         
     | 
| 
       425 
431 
     | 
    
         
             
                          #   blocks](https://www.twilio.com/docs/autopilot/api/task-sample#field-tagging).
         
     | 
| 
       426 
432 
     | 
    
         
             
                          # @param [String] source_channel The communication channel from which the sample
         
     | 
| 
       427 
     | 
    
         
            -
                          #   was captured.  
     | 
| 
       428 
     | 
    
         
            -
                          #    
     | 
| 
      
 433 
     | 
    
         
            +
                          #   was captured. Can be: `voice`, `sms`, `chat`, `alexa`, `google-assistant`,
         
     | 
| 
      
 434 
     | 
    
         
            +
                          #   `slack`, or null if not included.
         
     | 
| 
       429 
435 
     | 
    
         
             
                          # @return [SampleInstance] Updated SampleInstance
         
     | 
| 
       430 
436 
     | 
    
         
             
                          def update(language: :unset, tagged_text: :unset, source_channel: :unset)
         
     | 
| 
       431 
437 
     | 
    
         
             
                            context.update(language: language, tagged_text: tagged_text, source_channel: source_channel, )
         
     | 
| 
         @@ -18,8 +18,12 @@ module Twilio 
     | 
|
| 
       18 
18 
     | 
    
         
             
                          ##
         
     | 
| 
       19 
19 
     | 
    
         
             
                          # Initialize the TaskActionsList
         
     | 
| 
       20 
20 
     | 
    
         
             
                          # @param [Version] version Version that contains the resource
         
     | 
| 
       21 
     | 
    
         
            -
                          # @param [String] assistant_sid The  
     | 
| 
       22 
     | 
    
         
            -
                          # 
     | 
| 
      
 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 Task associated with the resource.
         
     | 
| 
      
 24 
     | 
    
         
            +
                          # @param [String] task_sid The SID of the
         
     | 
| 
      
 25 
     | 
    
         
            +
                          #   [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the
         
     | 
| 
      
 26 
     | 
    
         
            +
                          #   resource.
         
     | 
| 
       23 
27 
     | 
    
         
             
                          # @return [TaskActionsList] TaskActionsList
         
     | 
| 
       24 
28 
     | 
    
         
             
                          def initialize(version, assistant_sid: nil, task_sid: nil)
         
     | 
| 
       25 
29 
     | 
    
         
             
                            super(version)
         
     | 
| 
         @@ -77,8 +81,12 @@ module Twilio 
     | 
|
| 
       77 
81 
     | 
    
         
             
                          ##
         
     | 
| 
       78 
82 
     | 
    
         
             
                          # Initialize the TaskActionsContext
         
     | 
| 
       79 
83 
     | 
    
         
             
                          # @param [Version] version Version that contains the resource
         
     | 
| 
       80 
     | 
    
         
            -
                          # @param [String] assistant_sid The  
     | 
| 
       81 
     | 
    
         
            -
                          # 
     | 
| 
      
 84 
     | 
    
         
            +
                          # @param [String] assistant_sid The SID of the
         
     | 
| 
      
 85 
     | 
    
         
            +
                          #   [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the
         
     | 
| 
      
 86 
     | 
    
         
            +
                          #   parent of the Task for which the task actions to fetch were defined.
         
     | 
| 
      
 87 
     | 
    
         
            +
                          # @param [String] task_sid The SID of the
         
     | 
| 
      
 88 
     | 
    
         
            +
                          #   [Task](https://www.twilio.com/docs/autopilot/api/task) for which the task
         
     | 
| 
      
 89 
     | 
    
         
            +
                          #   actions to fetch were defined.
         
     | 
| 
       82 
90 
     | 
    
         
             
                          # @return [TaskActionsContext] TaskActionsContext
         
     | 
| 
       83 
91 
     | 
    
         
             
                          def initialize(version, assistant_sid, task_sid)
         
     | 
| 
       84 
92 
     | 
    
         
             
                            super(version)
         
     | 
| 
         @@ -110,9 +118,9 @@ module Twilio 
     | 
|
| 
       110 
118 
     | 
    
         | 
| 
       111 
119 
     | 
    
         
             
                          ##
         
     | 
| 
       112 
120 
     | 
    
         
             
                          # Update the TaskActionsInstance
         
     | 
| 
       113 
     | 
    
         
            -
                          # @param [Hash] actions The JSON
         
     | 
| 
      
 121 
     | 
    
         
            +
                          # @param [Hash] actions The JSON string that specifies the
         
     | 
| 
       114 
122 
     | 
    
         
             
                          #   [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the
         
     | 
| 
       115 
     | 
    
         
            -
                          #   Assistant how to perform  
     | 
| 
      
 123 
     | 
    
         
            +
                          #   Assistant on how to perform the task.
         
     | 
| 
       116 
124 
     | 
    
         
             
                          # @return [TaskActionsInstance] Updated TaskActionsInstance
         
     | 
| 
       117 
125 
     | 
    
         
             
                          def update(actions: :unset)
         
     | 
| 
       118 
126 
     | 
    
         
             
                            data = Twilio::Values.of({'Actions' => Twilio.serialize_object(actions), })
         
     | 
| 
         @@ -153,8 +161,12 @@ module Twilio 
     | 
|
| 
       153 
161 
     | 
    
         
             
                          # Initialize the TaskActionsInstance
         
     | 
| 
       154 
162 
     | 
    
         
             
                          # @param [Version] version Version that contains the resource
         
     | 
| 
       155 
163 
     | 
    
         
             
                          # @param [Hash] payload payload that contains response from Twilio
         
     | 
| 
       156 
     | 
    
         
            -
                          # @param [String] assistant_sid The  
     | 
| 
       157 
     | 
    
         
            -
                          # 
     | 
| 
      
 164 
     | 
    
         
            +
                          # @param [String] assistant_sid The SID of the
         
     | 
| 
      
 165 
     | 
    
         
            +
                          #   [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the
         
     | 
| 
      
 166 
     | 
    
         
            +
                          #   parent of the Task associated with the resource.
         
     | 
| 
      
 167 
     | 
    
         
            +
                          # @param [String] task_sid The SID of the
         
     | 
| 
      
 168 
     | 
    
         
            +
                          #   [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the
         
     | 
| 
      
 169 
     | 
    
         
            +
                          #   resource.
         
     | 
| 
       158 
170 
     | 
    
         
             
                          # @return [TaskActionsInstance] TaskActionsInstance
         
     | 
| 
       159 
171 
     | 
    
         
             
                          def initialize(version, payload, assistant_sid: nil, task_sid: nil)
         
     | 
| 
       160 
172 
     | 
    
         
             
                            super(version)
         
     | 
| 
         @@ -185,31 +197,31 @@ module Twilio 
     | 
|
| 
       185 
197 
     | 
    
         
             
                          end
         
     | 
| 
       186 
198 
     | 
    
         | 
| 
       187 
199 
     | 
    
         
             
                          ##
         
     | 
| 
       188 
     | 
    
         
            -
                          # @return [String] The  
     | 
| 
      
 200 
     | 
    
         
            +
                          # @return [String] The SID of the Account that created the resource
         
     | 
| 
       189 
201 
     | 
    
         
             
                          def account_sid
         
     | 
| 
       190 
202 
     | 
    
         
             
                            @properties['account_sid']
         
     | 
| 
       191 
203 
     | 
    
         
             
                          end
         
     | 
| 
       192 
204 
     | 
    
         | 
| 
       193 
205 
     | 
    
         
             
                          ##
         
     | 
| 
       194 
     | 
    
         
            -
                          # @return [String] The  
     | 
| 
      
 206 
     | 
    
         
            +
                          # @return [String] The SID of the Assistant that is the parent of the Task associated with the resource
         
     | 
| 
       195 
207 
     | 
    
         
             
                          def assistant_sid
         
     | 
| 
       196 
208 
     | 
    
         
             
                            @properties['assistant_sid']
         
     | 
| 
       197 
209 
     | 
    
         
             
                          end
         
     | 
| 
       198 
210 
     | 
    
         | 
| 
       199 
211 
     | 
    
         
             
                          ##
         
     | 
| 
       200 
     | 
    
         
            -
                          # @return [String] The  
     | 
| 
      
 212 
     | 
    
         
            +
                          # @return [String] The SID of the Task associated with the resource
         
     | 
| 
       201 
213 
     | 
    
         
             
                          def task_sid
         
     | 
| 
       202 
214 
     | 
    
         
             
                            @properties['task_sid']
         
     | 
| 
       203 
215 
     | 
    
         
             
                          end
         
     | 
| 
       204 
216 
     | 
    
         | 
| 
       205 
217 
     | 
    
         
             
                          ##
         
     | 
| 
       206 
     | 
    
         
            -
                          # @return [String] The  
     | 
| 
      
 218 
     | 
    
         
            +
                          # @return [String] The absolute URL of the TaskActions resource
         
     | 
| 
       207 
219 
     | 
    
         
             
                          def url
         
     | 
| 
       208 
220 
     | 
    
         
             
                            @properties['url']
         
     | 
| 
       209 
221 
     | 
    
         
             
                          end
         
     | 
| 
       210 
222 
     | 
    
         | 
| 
       211 
223 
     | 
    
         
             
                          ##
         
     | 
| 
       212 
     | 
    
         
            -
                          # @return [Hash] The JSON  
     | 
| 
      
 224 
     | 
    
         
            +
                          # @return [Hash] The JSON string that specifies the actions that instruct the Assistant on how to perform the task
         
     | 
| 
       213 
225 
     | 
    
         
             
                          def data
         
     | 
| 
       214 
226 
     | 
    
         
             
                            @properties['data']
         
     | 
| 
       215 
227 
     | 
    
         
             
                          end
         
     | 
| 
         @@ -223,9 +235,9 @@ module Twilio 
     | 
|
| 
       223 
235 
     | 
    
         | 
| 
       224 
236 
     | 
    
         
             
                          ##
         
     | 
| 
       225 
237 
     | 
    
         
             
                          # Update the TaskActionsInstance
         
     | 
| 
       226 
     | 
    
         
            -
                          # @param [Hash] actions The JSON
         
     | 
| 
      
 238 
     | 
    
         
            +
                          # @param [Hash] actions The JSON string that specifies the
         
     | 
| 
       227 
239 
     | 
    
         
             
                          #   [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the
         
     | 
| 
       228 
     | 
    
         
            -
                          #   Assistant how to perform  
     | 
| 
      
 240 
     | 
    
         
            +
                          #   Assistant on how to perform the task.
         
     | 
| 
       229 
241 
     | 
    
         
             
                          # @return [TaskActionsInstance] Updated TaskActionsInstance
         
     | 
| 
       230 
242 
     | 
    
         
             
                          def update(actions: :unset)
         
     | 
| 
       231 
243 
     | 
    
         
             
                            context.update(actions: actions, )
         
     |