|
| 1 | +## |
| 2 | +# This code was generated by |
| 3 | +# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ |
| 4 | +# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ |
| 5 | +# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ |
| 6 | +# |
| 7 | +# Twilio - Assistants |
| 8 | +# This is the public Twilio REST API. |
| 9 | +# |
| 10 | +# NOTE: This class is auto generated by OpenAPI Generator. |
| 11 | +# https://openapi-generator.tech |
| 12 | +# Do not edit the class manually. |
| 13 | +# |
| 14 | + |
| 15 | +module Twilio |
| 16 | + module REST |
| 17 | + class Assistants |
| 18 | + class V1 < Version |
| 19 | + ## |
| 20 | + # Initialize the V1 version of Assistants |
| 21 | + def initialize(domain) |
| 22 | + super |
| 23 | + @version = 'v1' |
| 24 | + @assistants = nil |
| 25 | + @knowledge = nil |
| 26 | + @policies = nil |
| 27 | + @sessions = nil |
| 28 | + @tools = nil |
| 29 | + end |
| 30 | + |
| 31 | + ## |
| 32 | + # @param [String] id |
| 33 | + # @return [Twilio::REST::Assistants::V1::AssistantContext] if id was passed. |
| 34 | + # @return [Twilio::REST::Assistants::V1::AssistantList] |
| 35 | + def assistants(id=:unset) |
| 36 | + if id.nil? |
| 37 | + raise ArgumentError, 'id cannot be nil' |
| 38 | + end |
| 39 | + if id == :unset |
| 40 | + @assistants ||= AssistantList.new self |
| 41 | + else |
| 42 | + AssistantContext.new(self, id) |
| 43 | + end |
| 44 | + end |
| 45 | + ## |
| 46 | + # @param [String] id |
| 47 | + # @return [Twilio::REST::Assistants::V1::KnowledgeContext] if id was passed. |
| 48 | + # @return [Twilio::REST::Assistants::V1::KnowledgeList] |
| 49 | + def knowledge(id=:unset) |
| 50 | + if id.nil? |
| 51 | + raise ArgumentError, 'id cannot be nil' |
| 52 | + end |
| 53 | + if id == :unset |
| 54 | + @knowledge ||= KnowledgeList.new self |
| 55 | + else |
| 56 | + KnowledgeContext.new(self, id) |
| 57 | + end |
| 58 | + end |
| 59 | + ## |
| 60 | + # @return [Twilio::REST::Assistants::V1::PolicyList] |
| 61 | + def policies |
| 62 | + @policies ||= PolicyList.new self |
| 63 | + end |
| 64 | + ## |
| 65 | + # @param [String] id |
| 66 | + # @return [Twilio::REST::Assistants::V1::SessionContext] if id was passed. |
| 67 | + # @return [Twilio::REST::Assistants::V1::SessionList] |
| 68 | + def sessions(id=:unset) |
| 69 | + if id.nil? |
| 70 | + raise ArgumentError, 'id cannot be nil' |
| 71 | + end |
| 72 | + if id == :unset |
| 73 | + @sessions ||= SessionList.new self |
| 74 | + else |
| 75 | + SessionContext.new(self, id) |
| 76 | + end |
| 77 | + end |
| 78 | + ## |
| 79 | + # @param [String] id |
| 80 | + # @return [Twilio::REST::Assistants::V1::ToolContext] if id was passed. |
| 81 | + # @return [Twilio::REST::Assistants::V1::ToolList] |
| 82 | + def tools(id=:unset) |
| 83 | + if id.nil? |
| 84 | + raise ArgumentError, 'id cannot be nil' |
| 85 | + end |
| 86 | + if id == :unset |
| 87 | + @tools ||= ToolList.new self |
| 88 | + else |
| 89 | + ToolContext.new(self, id) |
| 90 | + end |
| 91 | + end |
| 92 | + ## |
| 93 | + # Provide a user friendly representation |
| 94 | + def to_s |
| 95 | + '<Twilio::REST::Assistants::V1>'; |
| 96 | + end |
| 97 | + end |
| 98 | + end |
| 99 | + end |
| 100 | +end |
0 commit comments