twilio-ruby 5.11.2 → 5.12.0
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 +20 -0
 - data/Makefile +2 -0
 - data/README.md +2 -2
 - data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +13 -6
 - data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +10 -4
 - data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +18 -6
 - data/lib/twilio-ruby/rest/chat/v2/service/user.rb +7 -3
 - data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +13 -6
 - data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +10 -4
 - data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +18 -6
 - data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +7 -3
 - data/lib/twilio-ruby/rest/notify/v1/service.rb +0 -46
 - data/lib/twilio-ruby/rest/preview.rb +13 -20
 - data/lib/twilio-ruby/rest/preview/marketplace.rb +13 -13
 - data/lib/twilio-ruby/rest/preview/understand/assistant/intent.rb +16 -0
 - data/lib/twilio-ruby/rest/preview/understand/assistant/intent/intent_statistics.rb +226 -0
 - data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +1 -1
 - data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +102 -50
 - data/lib/twilio-ruby/rest/video.rb +9 -9
 - data/lib/twilio-ruby/rest/video/v1.rb +16 -16
 - data/lib/twilio-ruby/twiml/voice_response.rb +42 -0
 - data/lib/twilio-ruby/version.rb +1 -1
 - data/spec/integration/chat/v2/service/channel/message_spec.rb +1 -1
 - data/spec/integration/ip_messaging/v2/service/channel/message_spec.rb +1 -1
 - data/spec/integration/preview/understand/assistant/intent/intent_statistics_spec.rb +50 -0
 - data/spec/integration/preview/understand/assistant/intent_spec.rb +8 -4
 - data/spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb +31 -0
 - metadata +6 -37
 - data/lib/twilio-ruby/rest/notify/v1/service/segment.rb +0 -225
 - data/lib/twilio-ruby/rest/notify/v1/service/user.rb +0 -438
 - data/lib/twilio-ruby/rest/notify/v1/service/user/segment_memberships.rb +0 -262
 - data/lib/twilio-ruby/rest/notify/v1/service/user/user_binding.rb +0 -438
 - data/lib/twilio-ruby/rest/preview/proxy.rb +0 -43
 - data/lib/twilio-ruby/rest/preview/proxy/service.rb +0 -464
 - data/lib/twilio-ruby/rest/preview/proxy/service/phone_number.rb +0 -347
 - data/lib/twilio-ruby/rest/preview/proxy/service/session.rb +0 -497
 - data/lib/twilio-ruby/rest/preview/proxy/service/session/interaction.rb +0 -437
 - data/lib/twilio-ruby/rest/preview/proxy/service/session/participant.rb +0 -514
 - data/lib/twilio-ruby/rest/preview/proxy/service/session/participant/message_interaction.rb +0 -455
 - data/lib/twilio-ruby/rest/preview/proxy/service/short_code.rb +0 -342
 - data/spec/integration/notify/v1/service/segment_spec.rb +0 -86
 - data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +0 -118
 - data/spec/integration/notify/v1/service/user/user_binding_spec.rb +0 -268
 - data/spec/integration/notify/v1/service/user_spec.rb +0 -213
 - data/spec/integration/preview/proxy/service/phone_number_spec.rb +0 -173
 - data/spec/integration/preview/proxy/service/session/interaction_spec.rb +0 -106
 - data/spec/integration/preview/proxy/service/session/participant/message_interaction_spec.rb +0 -166
 - data/spec/integration/preview/proxy/service/session/participant_spec.rb +0 -226
 - data/spec/integration/preview/proxy/service/session_spec.rb +0 -218
 - data/spec/integration/preview/proxy/service/short_code_spec.rb +0 -173
 - data/spec/integration/preview/proxy/service_spec.rb +0 -202
 
| 
         @@ -28,15 +28,6 @@ module Twilio 
     | 
|
| 
       28 
28 
     | 
    
         
             
                    @v1 ||= V1.new self
         
     | 
| 
       29 
29 
     | 
    
         
             
                  end
         
     | 
| 
       30 
30 
     | 
    
         | 
| 
       31 
     | 
    
         
            -
                  ##
         
     | 
| 
       32 
     | 
    
         
            -
                  # @param [String] sid `CJxx…xx` A system-generated 34-character string that
         
     | 
| 
       33 
     | 
    
         
            -
                  #   uniquely identifies this Composition.
         
     | 
| 
       34 
     | 
    
         
            -
                  # @return [Twilio::REST::Video::V1::CompositionInstance] if sid was passed.
         
     | 
| 
       35 
     | 
    
         
            -
                  # @return [Twilio::REST::Video::V1::CompositionList]
         
     | 
| 
       36 
     | 
    
         
            -
                  def compositions(sid=:unset)
         
     | 
| 
       37 
     | 
    
         
            -
                    self.v1.compositions(sid)
         
     | 
| 
       38 
     | 
    
         
            -
                  end
         
     | 
| 
       39 
     | 
    
         
            -
             
     | 
| 
       40 
31 
     | 
    
         
             
                  ##
         
     | 
| 
       41 
32 
     | 
    
         
             
                  # @return [Twilio::REST::Video::V1::CompositionSettingsInstance]
         
     | 
| 
       42 
33 
     | 
    
         
             
                  def composition_settings
         
     | 
| 
         @@ -58,6 +49,15 @@ module Twilio 
     | 
|
| 
       58 
49 
     | 
    
         
             
                    self.v1.recording_settings()
         
     | 
| 
       59 
50 
     | 
    
         
             
                  end
         
     | 
| 
       60 
51 
     | 
    
         | 
| 
      
 52 
     | 
    
         
            +
                  ##
         
     | 
| 
      
 53 
     | 
    
         
            +
                  # @param [String] sid `CJxx…xx` A system-generated 34-character string that
         
     | 
| 
      
 54 
     | 
    
         
            +
                  #   uniquely identifies this Composition.
         
     | 
| 
      
 55 
     | 
    
         
            +
                  # @return [Twilio::REST::Video::V1::CompositionInstance] if sid was passed.
         
     | 
| 
      
 56 
     | 
    
         
            +
                  # @return [Twilio::REST::Video::V1::CompositionList]
         
     | 
| 
      
 57 
     | 
    
         
            +
                  def compositions(sid=:unset)
         
     | 
| 
      
 58 
     | 
    
         
            +
                    self.v1.compositions(sid)
         
     | 
| 
      
 59 
     | 
    
         
            +
                  end
         
     | 
| 
      
 60 
     | 
    
         
            +
             
     | 
| 
       61 
61 
     | 
    
         
             
                  ##
         
     | 
| 
       62 
62 
     | 
    
         
             
                  # @param [String] sid A system-generated 34-character string that uniquely
         
     | 
| 
       63 
63 
     | 
    
         
             
                  #   identifies this resource.
         
     | 
| 
         @@ -15,28 +15,13 @@ module Twilio 
     | 
|
| 
       15 
15 
     | 
    
         
             
                    def initialize(domain)
         
     | 
| 
       16 
16 
     | 
    
         
             
                      super
         
     | 
| 
       17 
17 
     | 
    
         
             
                      @version = 'v1'
         
     | 
| 
       18 
     | 
    
         
            -
                      @compositions = nil
         
     | 
| 
       19 
18 
     | 
    
         
             
                      @composition_settings = nil
         
     | 
| 
       20 
19 
     | 
    
         
             
                      @recordings = nil
         
     | 
| 
       21 
20 
     | 
    
         
             
                      @recording_settings = nil
         
     | 
| 
      
 21 
     | 
    
         
            +
                      @compositions = nil
         
     | 
| 
       22 
22 
     | 
    
         
             
                      @rooms = nil
         
     | 
| 
       23 
23 
     | 
    
         
             
                    end
         
     | 
| 
       24 
24 
     | 
    
         | 
| 
       25 
     | 
    
         
            -
                    ##
         
     | 
| 
       26 
     | 
    
         
            -
                    # @param [String] sid The Composition Sid that uniquely identifies the Composition
         
     | 
| 
       27 
     | 
    
         
            -
                    #   to fetch.
         
     | 
| 
       28 
     | 
    
         
            -
                    # @return [Twilio::REST::Video::V1::CompositionContext] if sid was passed.
         
     | 
| 
       29 
     | 
    
         
            -
                    # @return [Twilio::REST::Video::V1::CompositionList]
         
     | 
| 
       30 
     | 
    
         
            -
                    def compositions(sid=:unset)
         
     | 
| 
       31 
     | 
    
         
            -
                      if sid.nil?
         
     | 
| 
       32 
     | 
    
         
            -
                        raise ArgumentError, 'sid cannot be nil'
         
     | 
| 
       33 
     | 
    
         
            -
                      elsif sid == :unset
         
     | 
| 
       34 
     | 
    
         
            -
                        @compositions ||= CompositionList.new self
         
     | 
| 
       35 
     | 
    
         
            -
                      else
         
     | 
| 
       36 
     | 
    
         
            -
                        CompositionContext.new(self, sid)
         
     | 
| 
       37 
     | 
    
         
            -
                      end
         
     | 
| 
       38 
     | 
    
         
            -
                    end
         
     | 
| 
       39 
     | 
    
         
            -
             
     | 
| 
       40 
25 
     | 
    
         
             
                    ##
         
     | 
| 
       41 
26 
     | 
    
         
             
                    # @return [Twilio::REST::Video::V1::CompositionSettingsContext]
         
     | 
| 
       42 
27 
     | 
    
         
             
                    def composition_settings
         
     | 
| 
         @@ -64,6 +49,21 @@ module Twilio 
     | 
|
| 
       64 
49 
     | 
    
         
             
                      @recording_settings ||= RecordingSettingsContext.new self
         
     | 
| 
       65 
50 
     | 
    
         
             
                    end
         
     | 
| 
       66 
51 
     | 
    
         | 
| 
      
 52 
     | 
    
         
            +
                    ##
         
     | 
| 
      
 53 
     | 
    
         
            +
                    # @param [String] sid The Composition Sid that uniquely identifies the Composition
         
     | 
| 
      
 54 
     | 
    
         
            +
                    #   to fetch.
         
     | 
| 
      
 55 
     | 
    
         
            +
                    # @return [Twilio::REST::Video::V1::CompositionContext] if sid was passed.
         
     | 
| 
      
 56 
     | 
    
         
            +
                    # @return [Twilio::REST::Video::V1::CompositionList]
         
     | 
| 
      
 57 
     | 
    
         
            +
                    def compositions(sid=:unset)
         
     | 
| 
      
 58 
     | 
    
         
            +
                      if sid.nil?
         
     | 
| 
      
 59 
     | 
    
         
            +
                        raise ArgumentError, 'sid cannot be nil'
         
     | 
| 
      
 60 
     | 
    
         
            +
                      elsif sid == :unset
         
     | 
| 
      
 61 
     | 
    
         
            +
                        @compositions ||= CompositionList.new self
         
     | 
| 
      
 62 
     | 
    
         
            +
                      else
         
     | 
| 
      
 63 
     | 
    
         
            +
                        CompositionContext.new(self, sid)
         
     | 
| 
      
 64 
     | 
    
         
            +
                      end
         
     | 
| 
      
 65 
     | 
    
         
            +
                    end
         
     | 
| 
      
 66 
     | 
    
         
            +
             
     | 
| 
       67 
67 
     | 
    
         
             
                    ##
         
     | 
| 
       68 
68 
     | 
    
         
             
                    # @param [String] sid The Room Sid or name that uniquely identifies this resource.
         
     | 
| 
       69 
69 
     | 
    
         
             
                    # @return [Twilio::REST::Video::V1::RoomContext] if sid was passed.
         
     | 
| 
         @@ -18,6 +18,18 @@ module Twilio 
     | 
|
| 
       18 
18 
     | 
    
         
             
                    yield(self) if block_given?
         
     | 
| 
       19 
19 
     | 
    
         
             
                  end
         
     | 
| 
       20 
20 
     | 
    
         | 
| 
      
 21 
     | 
    
         
            +
                  ##
         
     | 
| 
      
 22 
     | 
    
         
            +
                  # Create a new <Connect> element
         
     | 
| 
      
 23 
     | 
    
         
            +
                  # action:: Action URL
         
     | 
| 
      
 24 
     | 
    
         
            +
                  # method:: Action URL method
         
     | 
| 
      
 25 
     | 
    
         
            +
                  # keyword_args:: additional attributes
         
     | 
| 
      
 26 
     | 
    
         
            +
                  def connect(action: nil, method: nil, **keyword_args)
         
     | 
| 
      
 27 
     | 
    
         
            +
                    connect = Connect.new(action: action, method: method, **keyword_args)
         
     | 
| 
      
 28 
     | 
    
         
            +
             
     | 
| 
      
 29 
     | 
    
         
            +
                    yield(connect) if block_given?
         
     | 
| 
      
 30 
     | 
    
         
            +
                    append(connect)
         
     | 
| 
      
 31 
     | 
    
         
            +
                  end
         
     | 
| 
      
 32 
     | 
    
         
            +
             
     | 
| 
       21 
33 
     | 
    
         
             
                  ##
         
     | 
| 
       22 
34 
     | 
    
         
             
                  # Create a new <Dial> element
         
     | 
| 
       23 
35 
     | 
    
         
             
                  # number:: Phone number to dial
         
     | 
| 
         @@ -747,5 +759,35 @@ module Twilio 
     | 
|
| 
       747 
759 
     | 
    
         
             
                    yield(self) if block_given?
         
     | 
| 
       748 
760 
     | 
    
         
             
                  end
         
     | 
| 
       749 
761 
     | 
    
         
             
                end
         
     | 
| 
      
 762 
     | 
    
         
            +
             
     | 
| 
      
 763 
     | 
    
         
            +
                ##
         
     | 
| 
      
 764 
     | 
    
         
            +
                # <Connect> TwiML Verb
         
     | 
| 
      
 765 
     | 
    
         
            +
                class Connect < TwiML
         
     | 
| 
      
 766 
     | 
    
         
            +
                  def initialize(**keyword_args)
         
     | 
| 
      
 767 
     | 
    
         
            +
                    super(**keyword_args)
         
     | 
| 
      
 768 
     | 
    
         
            +
                    @name = 'Connect'
         
     | 
| 
      
 769 
     | 
    
         
            +
             
     | 
| 
      
 770 
     | 
    
         
            +
                    yield(self) if block_given?
         
     | 
| 
      
 771 
     | 
    
         
            +
                  end
         
     | 
| 
      
 772 
     | 
    
         
            +
             
     | 
| 
      
 773 
     | 
    
         
            +
                  ##
         
     | 
| 
      
 774 
     | 
    
         
            +
                  # Create a new <Room> element
         
     | 
| 
      
 775 
     | 
    
         
            +
                  # name:: Room name
         
     | 
| 
      
 776 
     | 
    
         
            +
                  # keyword_args:: additional attributes
         
     | 
| 
      
 777 
     | 
    
         
            +
                  def room(name, **keyword_args)
         
     | 
| 
      
 778 
     | 
    
         
            +
                    append(Room.new(name, **keyword_args))
         
     | 
| 
      
 779 
     | 
    
         
            +
                  end
         
     | 
| 
      
 780 
     | 
    
         
            +
                end
         
     | 
| 
      
 781 
     | 
    
         
            +
             
     | 
| 
      
 782 
     | 
    
         
            +
                ##
         
     | 
| 
      
 783 
     | 
    
         
            +
                # <Room> TwiML Noun
         
     | 
| 
      
 784 
     | 
    
         
            +
                class Room < TwiML
         
     | 
| 
      
 785 
     | 
    
         
            +
                  def initialize(name, **keyword_args)
         
     | 
| 
      
 786 
     | 
    
         
            +
                    super(**keyword_args)
         
     | 
| 
      
 787 
     | 
    
         
            +
                    @name = 'Room'
         
     | 
| 
      
 788 
     | 
    
         
            +
                    @value = name
         
     | 
| 
      
 789 
     | 
    
         
            +
                    yield(self) if block_given?
         
     | 
| 
      
 790 
     | 
    
         
            +
                  end
         
     | 
| 
      
 791 
     | 
    
         
            +
                end
         
     | 
| 
       750 
792 
     | 
    
         
             
              end
         
     | 
| 
       751 
793 
     | 
    
         
             
            end
         
     | 
    
        data/lib/twilio-ruby/version.rb
    CHANGED
    
    
| 
         @@ -0,0 +1,50 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            ##
         
     | 
| 
      
 2 
     | 
    
         
            +
            # This code was generated by
         
     | 
| 
      
 3 
     | 
    
         
            +
            # \ / _    _  _|   _  _
         
     | 
| 
      
 4 
     | 
    
         
            +
            #  | (_)\/(_)(_|\/| |(/_  v1.0.0
         
     | 
| 
      
 5 
     | 
    
         
            +
            #       /       /
         
     | 
| 
      
 6 
     | 
    
         
            +
            # 
         
     | 
| 
      
 7 
     | 
    
         
            +
            # frozen_string_literal: true
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            require 'spec_helper.rb'
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            describe 'IntentStatistics' do
         
     | 
| 
      
 12 
     | 
    
         
            +
              it "can fetch" do
         
     | 
| 
      
 13 
     | 
    
         
            +
                @holodeck.mock(Twilio::Response.new(500, ''))
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
                expect {
         
     | 
| 
      
 16 
     | 
    
         
            +
                  @client.preview.understand.assistants('UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
         
     | 
| 
      
 17 
     | 
    
         
            +
                                            .intents('UDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
         
     | 
| 
      
 18 
     | 
    
         
            +
                                            .statistics().fetch()
         
     | 
| 
      
 19 
     | 
    
         
            +
                }.to raise_exception(Twilio::REST::TwilioError)
         
     | 
| 
      
 20 
     | 
    
         
            +
             
     | 
| 
      
 21 
     | 
    
         
            +
                values = {}
         
     | 
| 
      
 22 
     | 
    
         
            +
                expect(
         
     | 
| 
      
 23 
     | 
    
         
            +
                @holodeck.has_request?(Holodeck::Request.new(
         
     | 
| 
      
 24 
     | 
    
         
            +
                    method: 'get',
         
     | 
| 
      
 25 
     | 
    
         
            +
                    url: 'https://preview.twilio.com/understand/Assistants/UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Intents/UDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Statistics',
         
     | 
| 
      
 26 
     | 
    
         
            +
                ))).to eq(true)
         
     | 
| 
      
 27 
     | 
    
         
            +
              end
         
     | 
| 
      
 28 
     | 
    
         
            +
             
     | 
| 
      
 29 
     | 
    
         
            +
              it "receives fetch responses" do
         
     | 
| 
      
 30 
     | 
    
         
            +
                @holodeck.mock(Twilio::Response.new(
         
     | 
| 
      
 31 
     | 
    
         
            +
                    200,
         
     | 
| 
      
 32 
     | 
    
         
            +
                  %q[
         
     | 
| 
      
 33 
     | 
    
         
            +
                  {
         
     | 
| 
      
 34 
     | 
    
         
            +
                      "url": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Statistics",
         
     | 
| 
      
 35 
     | 
    
         
            +
                      "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
         
     | 
| 
      
 36 
     | 
    
         
            +
                      "assistant_sid": "UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
         
     | 
| 
      
 37 
     | 
    
         
            +
                      "intent_sid": "UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
         
     | 
| 
      
 38 
     | 
    
         
            +
                      "samples_count": 0,
         
     | 
| 
      
 39 
     | 
    
         
            +
                      "fields_count": 0
         
     | 
| 
      
 40 
     | 
    
         
            +
                  }
         
     | 
| 
      
 41 
     | 
    
         
            +
                  ]
         
     | 
| 
      
 42 
     | 
    
         
            +
                ))
         
     | 
| 
      
 43 
     | 
    
         
            +
             
     | 
| 
      
 44 
     | 
    
         
            +
                actual = @client.preview.understand.assistants('UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
         
     | 
| 
      
 45 
     | 
    
         
            +
                                                   .intents('UDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
         
     | 
| 
      
 46 
     | 
    
         
            +
                                                   .statistics().fetch()
         
     | 
| 
      
 47 
     | 
    
         
            +
             
     | 
| 
      
 48 
     | 
    
         
            +
                expect(actual).to_not eq(nil)
         
     | 
| 
      
 49 
     | 
    
         
            +
              end
         
     | 
| 
      
 50 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -33,7 +33,8 @@ describe 'Intent' do 
     | 
|
| 
       33 
33 
     | 
    
         
             
                      "unique_name": "unique_name",
         
     | 
| 
       34 
34 
     | 
    
         
             
                      "links": {
         
     | 
| 
       35 
35 
     | 
    
         
             
                          "fields": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Fields",
         
     | 
| 
       36 
     | 
    
         
            -
                          "samples": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Samples"
         
     | 
| 
      
 36 
     | 
    
         
            +
                          "samples": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Samples",
         
     | 
| 
      
 37 
     | 
    
         
            +
                          "statistics": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Statistics"
         
     | 
| 
       37 
38 
     | 
    
         
             
                      },
         
     | 
| 
       38 
39 
     | 
    
         
             
                      "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
         
     | 
| 
       39 
40 
     | 
    
         
             
                      "friendly_name": "friendly_name",
         
     | 
| 
         @@ -112,7 +113,8 @@ describe 'Intent' do 
     | 
|
| 
       112 
113 
     | 
    
         
             
                              "unique_name": "unique_name",
         
     | 
| 
       113 
114 
     | 
    
         
             
                              "links": {
         
     | 
| 
       114 
115 
     | 
    
         
             
                                  "fields": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Fields",
         
     | 
| 
       115 
     | 
    
         
            -
                                  "samples": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Samples"
         
     | 
| 
      
 116 
     | 
    
         
            +
                                  "samples": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Samples",
         
     | 
| 
      
 117 
     | 
    
         
            +
                                  "statistics": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Statistics"
         
     | 
| 
       116 
118 
     | 
    
         
             
                              },
         
     | 
| 
       117 
119 
     | 
    
         
             
                              "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
         
     | 
| 
       118 
120 
     | 
    
         
             
                              "friendly_name": "friendly_name",
         
     | 
| 
         @@ -158,7 +160,8 @@ describe 'Intent' do 
     | 
|
| 
       158 
160 
     | 
    
         
             
                      "unique_name": "unique_name",
         
     | 
| 
       159 
161 
     | 
    
         
             
                      "links": {
         
     | 
| 
       160 
162 
     | 
    
         
             
                          "fields": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Fields",
         
     | 
| 
       161 
     | 
    
         
            -
                          "samples": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Samples"
         
     | 
| 
      
 163 
     | 
    
         
            +
                          "samples": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Samples",
         
     | 
| 
      
 164 
     | 
    
         
            +
                          "statistics": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Statistics"
         
     | 
| 
       162 
165 
     | 
    
         
             
                      },
         
     | 
| 
       163 
166 
     | 
    
         
             
                      "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
         
     | 
| 
       164 
167 
     | 
    
         
             
                      "friendly_name": "friendly_name",
         
     | 
| 
         @@ -201,7 +204,8 @@ describe 'Intent' do 
     | 
|
| 
       201 
204 
     | 
    
         
             
                      "unique_name": "unique_name",
         
     | 
| 
       202 
205 
     | 
    
         
             
                      "links": {
         
     | 
| 
       203 
206 
     | 
    
         
             
                          "fields": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Fields",
         
     | 
| 
       204 
     | 
    
         
            -
                          "samples": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Samples"
         
     | 
| 
      
 207 
     | 
    
         
            +
                          "samples": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Samples",
         
     | 
| 
      
 208 
     | 
    
         
            +
                          "statistics": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Statistics"
         
     | 
| 
       205 
209 
     | 
    
         
             
                      },
         
     | 
| 
       206 
210 
     | 
    
         
             
                      "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
         
     | 
| 
       207 
211 
     | 
    
         
             
                      "friendly_name": "friendly_name",
         
     | 
| 
         @@ -191,4 +191,35 @@ describe 'Reservation' do 
     | 
|
| 
       191 
191 
     | 
    
         | 
| 
       192 
192 
     | 
    
         
             
                expect(actual).to_not eq(nil)
         
     | 
| 
       193 
193 
     | 
    
         
             
              end
         
     | 
| 
      
 194 
     | 
    
         
            +
             
     | 
| 
      
 195 
     | 
    
         
            +
              it "receives update_supervise_instruction responses" do
         
     | 
| 
      
 196 
     | 
    
         
            +
                @holodeck.mock(Twilio::Response.new(
         
     | 
| 
      
 197 
     | 
    
         
            +
                    200,
         
     | 
| 
      
 198 
     | 
    
         
            +
                  %q[
         
     | 
| 
      
 199 
     | 
    
         
            +
                  {
         
     | 
| 
      
 200 
     | 
    
         
            +
                      "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
         
     | 
| 
      
 201 
     | 
    
         
            +
                      "date_created": "2014-05-14T10:50:02Z",
         
     | 
| 
      
 202 
     | 
    
         
            +
                      "date_updated": "2014-05-15T16:03:42Z",
         
     | 
| 
      
 203 
     | 
    
         
            +
                      "links": {
         
     | 
| 
      
 204 
     | 
    
         
            +
                          "task": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Tasks/WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
         
     | 
| 
      
 205 
     | 
    
         
            +
                          "worker": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workers/WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
         
     | 
| 
      
 206 
     | 
    
         
            +
                          "workspace": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
         
     | 
| 
      
 207 
     | 
    
         
            +
                      },
         
     | 
| 
      
 208 
     | 
    
         
            +
                      "reservation_status": "accepted",
         
     | 
| 
      
 209 
     | 
    
         
            +
                      "sid": "WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
         
     | 
| 
      
 210 
     | 
    
         
            +
                      "task_sid": "WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
         
     | 
| 
      
 211 
     | 
    
         
            +
                      "url": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Tasks/WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Reservations/WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
         
     | 
| 
      
 212 
     | 
    
         
            +
                      "worker_name": "Doug",
         
     | 
| 
      
 213 
     | 
    
         
            +
                      "worker_sid": "WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
         
     | 
| 
      
 214 
     | 
    
         
            +
                      "workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
         
     | 
| 
      
 215 
     | 
    
         
            +
                  }
         
     | 
| 
      
 216 
     | 
    
         
            +
                  ]
         
     | 
| 
      
 217 
     | 
    
         
            +
                ))
         
     | 
| 
      
 218 
     | 
    
         
            +
             
     | 
| 
      
 219 
     | 
    
         
            +
                actual = @client.taskrouter.v1.workspaces('WSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
         
     | 
| 
      
 220 
     | 
    
         
            +
                                              .tasks('WTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
         
     | 
| 
      
 221 
     | 
    
         
            +
                                              .reservations('WRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
         
     | 
| 
      
 222 
     | 
    
         
            +
             
     | 
| 
      
 223 
     | 
    
         
            +
                expect(actual).to_not eq(nil)
         
     | 
| 
      
 224 
     | 
    
         
            +
              end
         
     | 
| 
       194 
225 
     | 
    
         
             
            end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: twilio-ruby
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 5. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 5.12.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Twilio API Team
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2018- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2018-08-03 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: jwt
         
     | 
| 
         @@ -306,10 +306,6 @@ files: 
     | 
|
| 
       306 
306 
     | 
    
         
             
            - lib/twilio-ruby/rest/notify/v1/service.rb
         
     | 
| 
       307 
307 
     | 
    
         
             
            - lib/twilio-ruby/rest/notify/v1/service/binding.rb
         
     | 
| 
       308 
308 
     | 
    
         
             
            - lib/twilio-ruby/rest/notify/v1/service/notification.rb
         
     | 
| 
       309 
     | 
    
         
            -
            - lib/twilio-ruby/rest/notify/v1/service/segment.rb
         
     | 
| 
       310 
     | 
    
         
            -
            - lib/twilio-ruby/rest/notify/v1/service/user.rb
         
     | 
| 
       311 
     | 
    
         
            -
            - lib/twilio-ruby/rest/notify/v1/service/user/segment_memberships.rb
         
     | 
| 
       312 
     | 
    
         
            -
            - lib/twilio-ruby/rest/notify/v1/service/user/user_binding.rb
         
     | 
| 
       313 
309 
     | 
    
         
             
            - lib/twilio-ruby/rest/preview.rb
         
     | 
| 
       314 
310 
     | 
    
         
             
            - lib/twilio-ruby/rest/preview/acc_security.rb
         
     | 
| 
       315 
311 
     | 
    
         
             
            - lib/twilio-ruby/rest/preview/acc_security/service.rb
         
     | 
| 
         @@ -334,14 +330,6 @@ files: 
     | 
|
| 
       334 
330 
     | 
    
         
             
            - lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb
         
     | 
| 
       335 
331 
     | 
    
         
             
            - lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb
         
     | 
| 
       336 
332 
     | 
    
         
             
            - lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb
         
     | 
| 
       337 
     | 
    
         
            -
            - lib/twilio-ruby/rest/preview/proxy.rb
         
     | 
| 
       338 
     | 
    
         
            -
            - lib/twilio-ruby/rest/preview/proxy/service.rb
         
     | 
| 
       339 
     | 
    
         
            -
            - lib/twilio-ruby/rest/preview/proxy/service/phone_number.rb
         
     | 
| 
       340 
     | 
    
         
            -
            - lib/twilio-ruby/rest/preview/proxy/service/session.rb
         
     | 
| 
       341 
     | 
    
         
            -
            - lib/twilio-ruby/rest/preview/proxy/service/session/interaction.rb
         
     | 
| 
       342 
     | 
    
         
            -
            - lib/twilio-ruby/rest/preview/proxy/service/session/participant.rb
         
     | 
| 
       343 
     | 
    
         
            -
            - lib/twilio-ruby/rest/preview/proxy/service/session/participant/message_interaction.rb
         
     | 
| 
       344 
     | 
    
         
            -
            - lib/twilio-ruby/rest/preview/proxy/service/short_code.rb
         
     | 
| 
       345 
333 
     | 
    
         
             
            - lib/twilio-ruby/rest/preview/studio.rb
         
     | 
| 
       346 
334 
     | 
    
         
             
            - lib/twilio-ruby/rest/preview/studio/flow.rb
         
     | 
| 
       347 
335 
     | 
    
         
             
            - lib/twilio-ruby/rest/preview/studio/flow/engagement.rb
         
     | 
| 
         @@ -362,6 +350,7 @@ files: 
     | 
|
| 
       362 
350 
     | 
    
         
             
            - lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb
         
     | 
| 
       363 
351 
     | 
    
         
             
            - lib/twilio-ruby/rest/preview/understand/assistant/intent.rb
         
     | 
| 
       364 
352 
     | 
    
         
             
            - lib/twilio-ruby/rest/preview/understand/assistant/intent/field.rb
         
     | 
| 
      
 353 
     | 
    
         
            +
            - lib/twilio-ruby/rest/preview/understand/assistant/intent/intent_statistics.rb
         
     | 
| 
       365 
354 
     | 
    
         
             
            - lib/twilio-ruby/rest/preview/understand/assistant/intent/sample.rb
         
     | 
| 
       366 
355 
     | 
    
         
             
            - lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb
         
     | 
| 
       367 
356 
     | 
    
         
             
            - lib/twilio-ruby/rest/preview/understand/assistant/query.rb
         
     | 
| 
         @@ -606,10 +595,6 @@ files: 
     | 
|
| 
       606 
595 
     | 
    
         
             
            - spec/integration/notify/v1/credential_spec.rb
         
     | 
| 
       607 
596 
     | 
    
         
             
            - spec/integration/notify/v1/service/binding_spec.rb
         
     | 
| 
       608 
597 
     | 
    
         
             
            - spec/integration/notify/v1/service/notification_spec.rb
         
     | 
| 
       609 
     | 
    
         
            -
            - spec/integration/notify/v1/service/segment_spec.rb
         
     | 
| 
       610 
     | 
    
         
            -
            - spec/integration/notify/v1/service/user/segment_memberships_spec.rb
         
     | 
| 
       611 
     | 
    
         
            -
            - spec/integration/notify/v1/service/user/user_binding_spec.rb
         
     | 
| 
       612 
     | 
    
         
            -
            - spec/integration/notify/v1/service/user_spec.rb
         
     | 
| 
       613 
598 
     | 
    
         
             
            - spec/integration/notify/v1/service_spec.rb
         
     | 
| 
       614 
599 
     | 
    
         
             
            - spec/integration/preview/acc_security/service/verification_check_spec.rb
         
     | 
| 
       615 
600 
     | 
    
         
             
            - spec/integration/preview/acc_security/service/verification_spec.rb
         
     | 
| 
         @@ -629,13 +614,6 @@ files: 
     | 
|
| 
       629 
614 
     | 
    
         
             
            - spec/integration/preview/marketplace/available_add_on_spec.rb
         
     | 
| 
       630 
615 
     | 
    
         
             
            - spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb
         
     | 
| 
       631 
616 
     | 
    
         
             
            - spec/integration/preview/marketplace/installed_add_on_spec.rb
         
     | 
| 
       632 
     | 
    
         
            -
            - spec/integration/preview/proxy/service/phone_number_spec.rb
         
     | 
| 
       633 
     | 
    
         
            -
            - spec/integration/preview/proxy/service/session/interaction_spec.rb
         
     | 
| 
       634 
     | 
    
         
            -
            - spec/integration/preview/proxy/service/session/participant/message_interaction_spec.rb
         
     | 
| 
       635 
     | 
    
         
            -
            - spec/integration/preview/proxy/service/session/participant_spec.rb
         
     | 
| 
       636 
     | 
    
         
            -
            - spec/integration/preview/proxy/service/session_spec.rb
         
     | 
| 
       637 
     | 
    
         
            -
            - spec/integration/preview/proxy/service/short_code_spec.rb
         
     | 
| 
       638 
     | 
    
         
            -
            - spec/integration/preview/proxy/service_spec.rb
         
     | 
| 
       639 
617 
     | 
    
         
             
            - spec/integration/preview/studio/flow/engagement/step_spec.rb
         
     | 
| 
       640 
618 
     | 
    
         
             
            - spec/integration/preview/studio/flow/engagement_spec.rb
         
     | 
| 
       641 
619 
     | 
    
         
             
            - spec/integration/preview/studio/flow_spec.rb
         
     | 
| 
         @@ -651,6 +629,7 @@ files: 
     | 
|
| 
       651 
629 
     | 
    
         
             
            - spec/integration/preview/understand/assistant/field_type/field_value_spec.rb
         
     | 
| 
       652 
630 
     | 
    
         
             
            - spec/integration/preview/understand/assistant/field_type_spec.rb
         
     | 
| 
       653 
631 
     | 
    
         
             
            - spec/integration/preview/understand/assistant/intent/field_spec.rb
         
     | 
| 
      
 632 
     | 
    
         
            +
            - spec/integration/preview/understand/assistant/intent/intent_statistics_spec.rb
         
     | 
| 
       654 
633 
     | 
    
         
             
            - spec/integration/preview/understand/assistant/intent/sample_spec.rb
         
     | 
| 
       655 
634 
     | 
    
         
             
            - spec/integration/preview/understand/assistant/intent_spec.rb
         
     | 
| 
       656 
635 
     | 
    
         
             
            - spec/integration/preview/understand/assistant/model_build_spec.rb
         
     | 
| 
         @@ -779,7 +758,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       779 
758 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       780 
759 
     | 
    
         
             
            requirements: []
         
     | 
| 
       781 
760 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       782 
     | 
    
         
            -
            rubygems_version: 2. 
     | 
| 
      
 761 
     | 
    
         
            +
            rubygems_version: 2.5.1
         
     | 
| 
       783 
762 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       784 
763 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       785 
764 
     | 
    
         
             
            summary: The official library for communicating with the Twilio REST API, building
         
     | 
| 
         @@ -919,10 +898,6 @@ test_files: 
     | 
|
| 
       919 
898 
     | 
    
         
             
            - spec/integration/notify/v1/credential_spec.rb
         
     | 
| 
       920 
899 
     | 
    
         
             
            - spec/integration/notify/v1/service/binding_spec.rb
         
     | 
| 
       921 
900 
     | 
    
         
             
            - spec/integration/notify/v1/service/notification_spec.rb
         
     | 
| 
       922 
     | 
    
         
            -
            - spec/integration/notify/v1/service/segment_spec.rb
         
     | 
| 
       923 
     | 
    
         
            -
            - spec/integration/notify/v1/service/user/segment_memberships_spec.rb
         
     | 
| 
       924 
     | 
    
         
            -
            - spec/integration/notify/v1/service/user/user_binding_spec.rb
         
     | 
| 
       925 
     | 
    
         
            -
            - spec/integration/notify/v1/service/user_spec.rb
         
     | 
| 
       926 
901 
     | 
    
         
             
            - spec/integration/notify/v1/service_spec.rb
         
     | 
| 
       927 
902 
     | 
    
         
             
            - spec/integration/preview/acc_security/service/verification_check_spec.rb
         
     | 
| 
       928 
903 
     | 
    
         
             
            - spec/integration/preview/acc_security/service/verification_spec.rb
         
     | 
| 
         @@ -942,13 +917,6 @@ test_files: 
     | 
|
| 
       942 
917 
     | 
    
         
             
            - spec/integration/preview/marketplace/available_add_on_spec.rb
         
     | 
| 
       943 
918 
     | 
    
         
             
            - spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb
         
     | 
| 
       944 
919 
     | 
    
         
             
            - spec/integration/preview/marketplace/installed_add_on_spec.rb
         
     | 
| 
       945 
     | 
    
         
            -
            - spec/integration/preview/proxy/service/phone_number_spec.rb
         
     | 
| 
       946 
     | 
    
         
            -
            - spec/integration/preview/proxy/service/session/interaction_spec.rb
         
     | 
| 
       947 
     | 
    
         
            -
            - spec/integration/preview/proxy/service/session/participant/message_interaction_spec.rb
         
     | 
| 
       948 
     | 
    
         
            -
            - spec/integration/preview/proxy/service/session/participant_spec.rb
         
     | 
| 
       949 
     | 
    
         
            -
            - spec/integration/preview/proxy/service/session_spec.rb
         
     | 
| 
       950 
     | 
    
         
            -
            - spec/integration/preview/proxy/service/short_code_spec.rb
         
     | 
| 
       951 
     | 
    
         
            -
            - spec/integration/preview/proxy/service_spec.rb
         
     | 
| 
       952 
920 
     | 
    
         
             
            - spec/integration/preview/studio/flow/engagement/step_spec.rb
         
     | 
| 
       953 
921 
     | 
    
         
             
            - spec/integration/preview/studio/flow/engagement_spec.rb
         
     | 
| 
       954 
922 
     | 
    
         
             
            - spec/integration/preview/studio/flow_spec.rb
         
     | 
| 
         @@ -964,6 +932,7 @@ test_files: 
     | 
|
| 
       964 
932 
     | 
    
         
             
            - spec/integration/preview/understand/assistant/field_type/field_value_spec.rb
         
     | 
| 
       965 
933 
     | 
    
         
             
            - spec/integration/preview/understand/assistant/field_type_spec.rb
         
     | 
| 
       966 
934 
     | 
    
         
             
            - spec/integration/preview/understand/assistant/intent/field_spec.rb
         
     | 
| 
      
 935 
     | 
    
         
            +
            - spec/integration/preview/understand/assistant/intent/intent_statistics_spec.rb
         
     | 
| 
       967 
936 
     | 
    
         
             
            - spec/integration/preview/understand/assistant/intent/sample_spec.rb
         
     | 
| 
       968 
937 
     | 
    
         
             
            - spec/integration/preview/understand/assistant/intent_spec.rb
         
     | 
| 
       969 
938 
     | 
    
         
             
            - spec/integration/preview/understand/assistant/model_build_spec.rb
         
     | 
| 
         @@ -1,225 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            ##
         
     | 
| 
       2 
     | 
    
         
            -
            # This code was generated by
         
     | 
| 
       3 
     | 
    
         
            -
            # \ / _    _  _|   _  _
         
     | 
| 
       4 
     | 
    
         
            -
            #  | (_)\/(_)(_|\/| |(/_  v1.0.0
         
     | 
| 
       5 
     | 
    
         
            -
            #       /       /
         
     | 
| 
       6 
     | 
    
         
            -
            # 
         
     | 
| 
       7 
     | 
    
         
            -
            # frozen_string_literal: true
         
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
     | 
    
         
            -
            module Twilio
         
     | 
| 
       10 
     | 
    
         
            -
              module REST
         
     | 
| 
       11 
     | 
    
         
            -
                class Notify < Domain
         
     | 
| 
       12 
     | 
    
         
            -
                  class V1 < Version
         
     | 
| 
       13 
     | 
    
         
            -
                    class ServiceContext < InstanceContext
         
     | 
| 
       14 
     | 
    
         
            -
                      ##
         
     | 
| 
       15 
     | 
    
         
            -
                      # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
         
     | 
| 
       16 
     | 
    
         
            -
                      class SegmentList < ListResource
         
     | 
| 
       17 
     | 
    
         
            -
                        ##
         
     | 
| 
       18 
     | 
    
         
            -
                        # Initialize the SegmentList
         
     | 
| 
       19 
     | 
    
         
            -
                        # @param [Version] version Version that contains the resource
         
     | 
| 
       20 
     | 
    
         
            -
                        # @param [String] service_sid The service_sid
         
     | 
| 
       21 
     | 
    
         
            -
                        # @return [SegmentList] SegmentList
         
     | 
| 
       22 
     | 
    
         
            -
                        def initialize(version, service_sid: nil)
         
     | 
| 
       23 
     | 
    
         
            -
                          super(version)
         
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
                          # Path Solution
         
     | 
| 
       26 
     | 
    
         
            -
                          @solution = {service_sid: service_sid}
         
     | 
| 
       27 
     | 
    
         
            -
                          @uri = "/Services/#{@solution[:service_sid]}/Segments"
         
     | 
| 
       28 
     | 
    
         
            -
                        end
         
     | 
| 
       29 
     | 
    
         
            -
             
     | 
| 
       30 
     | 
    
         
            -
                        ##
         
     | 
| 
       31 
     | 
    
         
            -
                        # Lists SegmentInstance records from the API as a list.
         
     | 
| 
       32 
     | 
    
         
            -
                        # Unlike stream(), this operation is eager and will load `limit` records into
         
     | 
| 
       33 
     | 
    
         
            -
                        # memory before returning.
         
     | 
| 
       34 
     | 
    
         
            -
                        # @param [Integer] limit Upper limit for the number of records to return. stream()
         
     | 
| 
       35 
     | 
    
         
            -
                        #    guarantees to never return more than limit.  Default is no limit
         
     | 
| 
       36 
     | 
    
         
            -
                        # @param [Integer] page_size Number of records to fetch per request, when
         
     | 
| 
       37 
     | 
    
         
            -
                        #    not set will use the default value of 50 records.  If no page_size is defined
         
     | 
| 
       38 
     | 
    
         
            -
                        #    but a limit is defined, stream() will attempt to read the limit with the most
         
     | 
| 
       39 
     | 
    
         
            -
                        #    efficient page size, i.e. min(limit, 1000)
         
     | 
| 
       40 
     | 
    
         
            -
                        # @return [Array] Array of up to limit results
         
     | 
| 
       41 
     | 
    
         
            -
                        def list(limit: nil, page_size: nil)
         
     | 
| 
       42 
     | 
    
         
            -
                          self.stream(limit: limit, page_size: page_size).entries
         
     | 
| 
       43 
     | 
    
         
            -
                        end
         
     | 
| 
       44 
     | 
    
         
            -
             
     | 
| 
       45 
     | 
    
         
            -
                        ##
         
     | 
| 
       46 
     | 
    
         
            -
                        # Streams SegmentInstance records from the API as an Enumerable.
         
     | 
| 
       47 
     | 
    
         
            -
                        # This operation lazily loads records as efficiently as possible until the limit
         
     | 
| 
       48 
     | 
    
         
            -
                        # is reached.
         
     | 
| 
       49 
     | 
    
         
            -
                        # @param [Integer] limit Upper limit for the number of records to return. stream()
         
     | 
| 
       50 
     | 
    
         
            -
                        #    guarantees to never return more than limit. Default is no limit.
         
     | 
| 
       51 
     | 
    
         
            -
                        # @param [Integer] page_size Number of records to fetch per request, when
         
     | 
| 
       52 
     | 
    
         
            -
                        #    not set will use the default value of 50 records. If no page_size is defined
         
     | 
| 
       53 
     | 
    
         
            -
                        #    but a limit is defined, stream() will attempt to read the limit with the most
         
     | 
| 
       54 
     | 
    
         
            -
                        #    efficient page size, i.e. min(limit, 1000)
         
     | 
| 
       55 
     | 
    
         
            -
                        # @return [Enumerable] Enumerable that will yield up to limit results
         
     | 
| 
       56 
     | 
    
         
            -
                        def stream(limit: nil, page_size: nil)
         
     | 
| 
       57 
     | 
    
         
            -
                          limits = @version.read_limits(limit, page_size)
         
     | 
| 
       58 
     | 
    
         
            -
             
     | 
| 
       59 
     | 
    
         
            -
                          page = self.page(page_size: limits[:page_size], )
         
     | 
| 
       60 
     | 
    
         
            -
             
     | 
| 
       61 
     | 
    
         
            -
                          @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
         
     | 
| 
       62 
     | 
    
         
            -
                        end
         
     | 
| 
       63 
     | 
    
         
            -
             
     | 
| 
       64 
     | 
    
         
            -
                        ##
         
     | 
| 
       65 
     | 
    
         
            -
                        # When passed a block, yields SegmentInstance records from the API.
         
     | 
| 
       66 
     | 
    
         
            -
                        # This operation lazily loads records as efficiently as possible until the limit
         
     | 
| 
       67 
     | 
    
         
            -
                        # is reached.
         
     | 
| 
       68 
     | 
    
         
            -
                        def each
         
     | 
| 
       69 
     | 
    
         
            -
                          limits = @version.read_limits
         
     | 
| 
       70 
     | 
    
         
            -
             
     | 
| 
       71 
     | 
    
         
            -
                          page = self.page(page_size: limits[:page_size], )
         
     | 
| 
       72 
     | 
    
         
            -
             
     | 
| 
       73 
     | 
    
         
            -
                          @version.stream(page,
         
     | 
| 
       74 
     | 
    
         
            -
                                          limit: limits[:limit],
         
     | 
| 
       75 
     | 
    
         
            -
                                          page_limit: limits[:page_limit]).each {|x| yield x}
         
     | 
| 
       76 
     | 
    
         
            -
                        end
         
     | 
| 
       77 
     | 
    
         
            -
             
     | 
| 
       78 
     | 
    
         
            -
                        ##
         
     | 
| 
       79 
     | 
    
         
            -
                        # Retrieve a single page of SegmentInstance records from the API.
         
     | 
| 
       80 
     | 
    
         
            -
                        # Request is executed immediately.
         
     | 
| 
       81 
     | 
    
         
            -
                        # @param [String] page_token PageToken provided by the API
         
     | 
| 
       82 
     | 
    
         
            -
                        # @param [Integer] page_number Page Number, this value is simply for client state
         
     | 
| 
       83 
     | 
    
         
            -
                        # @param [Integer] page_size Number of records to return, defaults to 50
         
     | 
| 
       84 
     | 
    
         
            -
                        # @return [Page] Page of SegmentInstance
         
     | 
| 
       85 
     | 
    
         
            -
                        def page(page_token: :unset, page_number: :unset, page_size: :unset)
         
     | 
| 
       86 
     | 
    
         
            -
                          params = Twilio::Values.of({
         
     | 
| 
       87 
     | 
    
         
            -
                              'PageToken' => page_token,
         
     | 
| 
       88 
     | 
    
         
            -
                              'Page' => page_number,
         
     | 
| 
       89 
     | 
    
         
            -
                              'PageSize' => page_size,
         
     | 
| 
       90 
     | 
    
         
            -
                          })
         
     | 
| 
       91 
     | 
    
         
            -
                          response = @version.page(
         
     | 
| 
       92 
     | 
    
         
            -
                              'GET',
         
     | 
| 
       93 
     | 
    
         
            -
                              @uri,
         
     | 
| 
       94 
     | 
    
         
            -
                              params
         
     | 
| 
       95 
     | 
    
         
            -
                          )
         
     | 
| 
       96 
     | 
    
         
            -
                          SegmentPage.new(@version, response, @solution)
         
     | 
| 
       97 
     | 
    
         
            -
                        end
         
     | 
| 
       98 
     | 
    
         
            -
             
     | 
| 
       99 
     | 
    
         
            -
                        ##
         
     | 
| 
       100 
     | 
    
         
            -
                        # Retrieve a single page of SegmentInstance records from the API.
         
     | 
| 
       101 
     | 
    
         
            -
                        # Request is executed immediately.
         
     | 
| 
       102 
     | 
    
         
            -
                        # @param [String] target_url API-generated URL for the requested results page
         
     | 
| 
       103 
     | 
    
         
            -
                        # @return [Page] Page of SegmentInstance
         
     | 
| 
       104 
     | 
    
         
            -
                        def get_page(target_url)
         
     | 
| 
       105 
     | 
    
         
            -
                          response = @version.domain.request(
         
     | 
| 
       106 
     | 
    
         
            -
                              'GET',
         
     | 
| 
       107 
     | 
    
         
            -
                              target_url
         
     | 
| 
       108 
     | 
    
         
            -
                          )
         
     | 
| 
       109 
     | 
    
         
            -
                          SegmentPage.new(@version, response, @solution)
         
     | 
| 
       110 
     | 
    
         
            -
                        end
         
     | 
| 
       111 
     | 
    
         
            -
             
     | 
| 
       112 
     | 
    
         
            -
                        ##
         
     | 
| 
       113 
     | 
    
         
            -
                        # Provide a user friendly representation
         
     | 
| 
       114 
     | 
    
         
            -
                        def to_s
         
     | 
| 
       115 
     | 
    
         
            -
                          '#<Twilio.Notify.V1.SegmentList>'
         
     | 
| 
       116 
     | 
    
         
            -
                        end
         
     | 
| 
       117 
     | 
    
         
            -
                      end
         
     | 
| 
       118 
     | 
    
         
            -
             
     | 
| 
       119 
     | 
    
         
            -
                      ##
         
     | 
| 
       120 
     | 
    
         
            -
                      # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
         
     | 
| 
       121 
     | 
    
         
            -
                      class SegmentPage < Page
         
     | 
| 
       122 
     | 
    
         
            -
                        ##
         
     | 
| 
       123 
     | 
    
         
            -
                        # Initialize the SegmentPage
         
     | 
| 
       124 
     | 
    
         
            -
                        # @param [Version] version Version that contains the resource
         
     | 
| 
       125 
     | 
    
         
            -
                        # @param [Response] response Response from the API
         
     | 
| 
       126 
     | 
    
         
            -
                        # @param [Hash] solution Path solution for the resource
         
     | 
| 
       127 
     | 
    
         
            -
                        # @return [SegmentPage] SegmentPage
         
     | 
| 
       128 
     | 
    
         
            -
                        def initialize(version, response, solution)
         
     | 
| 
       129 
     | 
    
         
            -
                          super(version, response)
         
     | 
| 
       130 
     | 
    
         
            -
             
     | 
| 
       131 
     | 
    
         
            -
                          # Path Solution
         
     | 
| 
       132 
     | 
    
         
            -
                          @solution = solution
         
     | 
| 
       133 
     | 
    
         
            -
                        end
         
     | 
| 
       134 
     | 
    
         
            -
             
     | 
| 
       135 
     | 
    
         
            -
                        ##
         
     | 
| 
       136 
     | 
    
         
            -
                        # Build an instance of SegmentInstance
         
     | 
| 
       137 
     | 
    
         
            -
                        # @param [Hash] payload Payload response from the API
         
     | 
| 
       138 
     | 
    
         
            -
                        # @return [SegmentInstance] SegmentInstance
         
     | 
| 
       139 
     | 
    
         
            -
                        def get_instance(payload)
         
     | 
| 
       140 
     | 
    
         
            -
                          SegmentInstance.new(@version, payload, service_sid: @solution[:service_sid], )
         
     | 
| 
       141 
     | 
    
         
            -
                        end
         
     | 
| 
       142 
     | 
    
         
            -
             
     | 
| 
       143 
     | 
    
         
            -
                        ##
         
     | 
| 
       144 
     | 
    
         
            -
                        # Provide a user friendly representation
         
     | 
| 
       145 
     | 
    
         
            -
                        def to_s
         
     | 
| 
       146 
     | 
    
         
            -
                          '<Twilio.Notify.V1.SegmentPage>'
         
     | 
| 
       147 
     | 
    
         
            -
                        end
         
     | 
| 
       148 
     | 
    
         
            -
                      end
         
     | 
| 
       149 
     | 
    
         
            -
             
     | 
| 
       150 
     | 
    
         
            -
                      ##
         
     | 
| 
       151 
     | 
    
         
            -
                      # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
         
     | 
| 
       152 
     | 
    
         
            -
                      class SegmentInstance < InstanceResource
         
     | 
| 
       153 
     | 
    
         
            -
                        ##
         
     | 
| 
       154 
     | 
    
         
            -
                        # Initialize the SegmentInstance
         
     | 
| 
       155 
     | 
    
         
            -
                        # @param [Version] version Version that contains the resource
         
     | 
| 
       156 
     | 
    
         
            -
                        # @param [Hash] payload payload that contains response from Twilio
         
     | 
| 
       157 
     | 
    
         
            -
                        # @param [String] service_sid The service_sid
         
     | 
| 
       158 
     | 
    
         
            -
                        # @return [SegmentInstance] SegmentInstance
         
     | 
| 
       159 
     | 
    
         
            -
                        def initialize(version, payload, service_sid: nil)
         
     | 
| 
       160 
     | 
    
         
            -
                          super(version)
         
     | 
| 
       161 
     | 
    
         
            -
             
     | 
| 
       162 
     | 
    
         
            -
                          # Marshaled Properties
         
     | 
| 
       163 
     | 
    
         
            -
                          @properties = {
         
     | 
| 
       164 
     | 
    
         
            -
                              'sid' => payload['sid'],
         
     | 
| 
       165 
     | 
    
         
            -
                              'account_sid' => payload['account_sid'],
         
     | 
| 
       166 
     | 
    
         
            -
                              'service_sid' => payload['service_sid'],
         
     | 
| 
       167 
     | 
    
         
            -
                              'unique_name' => payload['unique_name'],
         
     | 
| 
       168 
     | 
    
         
            -
                              'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
         
     | 
| 
       169 
     | 
    
         
            -
                              'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
         
     | 
| 
       170 
     | 
    
         
            -
                          }
         
     | 
| 
       171 
     | 
    
         
            -
                        end
         
     | 
| 
       172 
     | 
    
         
            -
             
     | 
| 
       173 
     | 
    
         
            -
                        ##
         
     | 
| 
       174 
     | 
    
         
            -
                        # @return [String] The sid
         
     | 
| 
       175 
     | 
    
         
            -
                        def sid
         
     | 
| 
       176 
     | 
    
         
            -
                          @properties['sid']
         
     | 
| 
       177 
     | 
    
         
            -
                        end
         
     | 
| 
       178 
     | 
    
         
            -
             
     | 
| 
       179 
     | 
    
         
            -
                        ##
         
     | 
| 
       180 
     | 
    
         
            -
                        # @return [String] The account_sid
         
     | 
| 
       181 
     | 
    
         
            -
                        def account_sid
         
     | 
| 
       182 
     | 
    
         
            -
                          @properties['account_sid']
         
     | 
| 
       183 
     | 
    
         
            -
                        end
         
     | 
| 
       184 
     | 
    
         
            -
             
     | 
| 
       185 
     | 
    
         
            -
                        ##
         
     | 
| 
       186 
     | 
    
         
            -
                        # @return [String] The service_sid
         
     | 
| 
       187 
     | 
    
         
            -
                        def service_sid
         
     | 
| 
       188 
     | 
    
         
            -
                          @properties['service_sid']
         
     | 
| 
       189 
     | 
    
         
            -
                        end
         
     | 
| 
       190 
     | 
    
         
            -
             
     | 
| 
       191 
     | 
    
         
            -
                        ##
         
     | 
| 
       192 
     | 
    
         
            -
                        # @return [String] The unique_name
         
     | 
| 
       193 
     | 
    
         
            -
                        def unique_name
         
     | 
| 
       194 
     | 
    
         
            -
                          @properties['unique_name']
         
     | 
| 
       195 
     | 
    
         
            -
                        end
         
     | 
| 
       196 
     | 
    
         
            -
             
     | 
| 
       197 
     | 
    
         
            -
                        ##
         
     | 
| 
       198 
     | 
    
         
            -
                        # @return [Time] The date_created
         
     | 
| 
       199 
     | 
    
         
            -
                        def date_created
         
     | 
| 
       200 
     | 
    
         
            -
                          @properties['date_created']
         
     | 
| 
       201 
     | 
    
         
            -
                        end
         
     | 
| 
       202 
     | 
    
         
            -
             
     | 
| 
       203 
     | 
    
         
            -
                        ##
         
     | 
| 
       204 
     | 
    
         
            -
                        # @return [Time] The date_updated
         
     | 
| 
       205 
     | 
    
         
            -
                        def date_updated
         
     | 
| 
       206 
     | 
    
         
            -
                          @properties['date_updated']
         
     | 
| 
       207 
     | 
    
         
            -
                        end
         
     | 
| 
       208 
     | 
    
         
            -
             
     | 
| 
       209 
     | 
    
         
            -
                        ##
         
     | 
| 
       210 
     | 
    
         
            -
                        # Provide a user friendly representation
         
     | 
| 
       211 
     | 
    
         
            -
                        def to_s
         
     | 
| 
       212 
     | 
    
         
            -
                          "<Twilio.Notify.V1.SegmentInstance>"
         
     | 
| 
       213 
     | 
    
         
            -
                        end
         
     | 
| 
       214 
     | 
    
         
            -
             
     | 
| 
       215 
     | 
    
         
            -
                        ##
         
     | 
| 
       216 
     | 
    
         
            -
                        # Provide a detailed, user friendly representation
         
     | 
| 
       217 
     | 
    
         
            -
                        def inspect
         
     | 
| 
       218 
     | 
    
         
            -
                          "<Twilio.Notify.V1.SegmentInstance>"
         
     | 
| 
       219 
     | 
    
         
            -
                        end
         
     | 
| 
       220 
     | 
    
         
            -
                      end
         
     | 
| 
       221 
     | 
    
         
            -
                    end
         
     | 
| 
       222 
     | 
    
         
            -
                  end
         
     | 
| 
       223 
     | 
    
         
            -
                end
         
     | 
| 
       224 
     | 
    
         
            -
              end
         
     | 
| 
       225 
     | 
    
         
            -
            end
         
     |