Skip to content

Commit 5dd03dd

Browse files
committed
chore: preview pr
1 parent 35a568b commit 5dd03dd

3 files changed

Lines changed: 80 additions & 0 deletions

File tree

twilio/rest/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
from twilio.rest.knowledge import Knowledge
3434
from twilio.rest.lookups import Lookups
3535
from twilio.rest.marketplace import Marketplace
36+
from twilio.rest.memory import Memory
3637
from twilio.rest.messaging import Messaging
3738
from twilio.rest.monitor import Monitor
3839
from twilio.rest.notify import Notify
@@ -147,6 +148,7 @@ def __init__(
147148
self._knowledge: Optional["Knowledge"] = None
148149
self._lookups: Optional["Lookups"] = None
149150
self._marketplace: Optional["Marketplace"] = None
151+
self._memory: Optional["Memory"] = None
150152
self._messaging: Optional["Messaging"] = None
151153
self._monitor: Optional["Monitor"] = None
152154
self._notify: Optional["Notify"] = None

twilio/rest/memory/MemoryBase.py

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
r"""
2+
This code was generated by
3+
___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4+
| | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5+
| |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6+
7+
NOTE: This class is auto generated by OpenAPI Generator.
8+
https://openapi-generator.tech
9+
Do not edit the class manually.
10+
"""
11+
12+
from typing import Optional
13+
14+
from twilio.base.domain import Domain
15+
from twilio.rest import Client
16+
from twilio.rest.memory.v1 import V1
17+
18+
19+
class MemoryBase(Domain):
20+
def __init__(self, twilio: Client):
21+
"""
22+
Initialize the Marketplace Domain
23+
24+
:returns: Domain for Marketplace
25+
"""
26+
super().__init__(twilio, "https://memory.twilio.com")
27+
self._v1: Optional[V1] = None
28+
29+
@property
30+
def v1(self) -> V1:
31+
"""
32+
:returns: Versions v1 of Marketplace
33+
"""
34+
if self._v1 is None:
35+
self._v1 = V1(self)
36+
return self._v1
37+
38+
def __repr__(self) -> str:
39+
"""
40+
Provide a friendly representation
41+
:returns: Machine friendly representation
42+
"""
43+
return "<Twilio.Memory>"

twilio/rest/memory/__init__.py

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
from twilio.rest.memory.MemoryBase import MemoryBase
2+
3+
4+
class Memory(MemoryBase):
5+
6+
def bulk(self):
7+
return self.v1.bulk
8+
9+
def conversation_summary(self):
10+
return self.v1.conversation_summaries
11+
12+
def event(self):
13+
return self.v1.events
14+
15+
def identifier(self):
16+
return self.v1.identifiers
17+
18+
def identify_resolution_setting(self):
19+
return self.v1.identity_resolution_settings
20+
21+
def import_(self):
22+
return self.v1.import_
23+
24+
def lookup(self):
25+
return self.v1.lookup
26+
27+
def observation(self):
28+
return self.v1.observations
29+
30+
def profile(self):
31+
return self.v1.profiles
32+
33+
def recall(self):
34+
return self.v1.recall
35+

0 commit comments

Comments
 (0)