Skip to content

Commit ee58e36

Browse files
committed
[Librarian] Regenerated @ 1b6718f23da76f150eac392860c66a26de9af713 ceb130295f80bc623f22496076e3dd57e27da2fb
1 parent 024c744 commit ee58e36

File tree

18 files changed

+3371
-56
lines changed

18 files changed

+3371
-56
lines changed

CHANGES.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
twilio-ruby changelog
22
=====================
33

4+
[2024-09-18] Version 7.3.1
5+
--------------------------
6+
**Intelligence**
7+
- Remove public from operator_type
8+
- Update operator_type to include general-availablity and deprecated
9+
10+
**Numbers**
11+
- Remove beta flag for bundle clone API
12+
13+
414
[2024-09-05] Version 7.3.0
515
--------------------------
616
**Iam**

lib/twilio-ruby/rest/assistants.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module Twilio
2+
module REST
3+
class Assistants < AssistantsBase;
4+
end
5+
end
6+
end

lib/twilio-ruby/rest/assistants/v1.rb

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
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

Comments
 (0)