1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
from warnings import warn
from twilio.rest.video.VideoBase import VideoBase
from twilio.rest.video.v1.composition import CompositionList
from twilio.rest.video.v1.composition_hook import CompositionHookList
from twilio.rest.video.v1.composition_settings import CompositionSettingsList
from twilio.rest.video.v1.recording import RecordingList
from twilio.rest.video.v1.recording_settings import RecordingSettingsList
from twilio.rest.video.v1.room import RoomList
class Video(VideoBase):
@property
def compositions(self) -> CompositionList:
warn(
"compositions is deprecated. Use v1.compositions instead.",
DeprecationWarning,
stacklevel=2,
)
return self.v1.compositions
@property
def composition_hooks(self) -> CompositionHookList:
warn(
"composition_hooks is deprecated. Use v1.composition_hooks instead.",
DeprecationWarning,
stacklevel=2,
)
return self.v1.composition_hooks
@property
def composition_settings(self) -> CompositionSettingsList:
warn(
"composition_settings is deprecated. Use v1.composition_settings instead.",
DeprecationWarning,
stacklevel=2,
)
return self.v1.composition_settings
@property
def recordings(self) -> RecordingList:
warn(
"recordings is deprecated. Use v1.recordings instead.",
DeprecationWarning,
stacklevel=2,
)
return self.v1.recordings
@property
def recording_settings(self) -> RecordingSettingsList:
warn(
"recording_settings is deprecated. Use v1.recording_settings instead.",
DeprecationWarning,
stacklevel=2,
)
return self.v1.recording_settings
@property
def rooms(self) -> RoomList:
warn(
"rooms is deprecated. Use v1.rooms instead.",
DeprecationWarning,
stacklevel=2,
)
return self.v1.rooms
|