15
15
from twilio .base .page import Page
16
16
17
17
18
- class RecordingList (ListResource ):
18
+ class RoomRecordingList (ListResource ):
19
19
20
20
def __init__ (self , version , room_sid ):
21
21
"""
22
- Initialize the RecordingList
22
+ Initialize the RoomRecordingList
23
23
24
24
:param Version version: Version that contains the resource
25
25
:param room_sid: The room_sid
26
26
27
- :returns: twilio.rest.video.v1.room.recording.RecordingList
28
- :rtype: twilio.rest.video.v1.room.recording.RecordingList
27
+ :returns: twilio.rest.video.v1.room.recording.RoomRecordingList
28
+ :rtype: twilio.rest.video.v1.room.recording.RoomRecordingList
29
29
"""
30
- super (RecordingList , self ).__init__ (version )
30
+ super (RoomRecordingList , self ).__init__ (version )
31
31
32
32
# Path Solution
33
33
self ._solution = {
@@ -37,7 +37,7 @@ def __init__(self, version, room_sid):
37
37
38
38
def stream (self , limit = None , page_size = None ):
39
39
"""
40
- Streams RecordingInstance records from the API as a generator stream.
40
+ Streams RoomRecordingInstance records from the API as a generator stream.
41
41
This operation lazily loads records as efficiently as possible until the limit
42
42
is reached.
43
43
The results are returned as a generator, so this operation is memory efficient.
@@ -50,7 +50,7 @@ def stream(self, limit=None, page_size=None):
50
50
limit with the most efficient page size, i.e. min(limit, 1000)
51
51
52
52
:returns: Generator that will yield up to limit results
53
- :rtype: list[twilio.rest.video.v1.room.recording.RecordingInstance ]
53
+ :rtype: list[twilio.rest.video.v1.room.recording.RoomRecordingInstance ]
54
54
"""
55
55
limits = self ._version .read_limits (limit , page_size )
56
56
@@ -62,7 +62,7 @@ def stream(self, limit=None, page_size=None):
62
62
63
63
def list (self , limit = None , page_size = None ):
64
64
"""
65
- Lists RecordingInstance records from the API as a list.
65
+ Lists RoomRecordingInstance records from the API as a list.
66
66
Unlike stream(), this operation is eager and will load `limit` records into
67
67
memory before returning.
68
68
@@ -74,7 +74,7 @@ def list(self, limit=None, page_size=None):
74
74
with the most efficient page size, i.e. min(limit, 1000)
75
75
76
76
:returns: Generator that will yield up to limit results
77
- :rtype: list[twilio.rest.video.v1.room.recording.RecordingInstance ]
77
+ :rtype: list[twilio.rest.video.v1.room.recording.RoomRecordingInstance ]
78
78
"""
79
79
return list (self .stream (
80
80
limit = limit ,
@@ -84,15 +84,15 @@ def list(self, limit=None, page_size=None):
84
84
def page (self , page_token = values .unset , page_number = values .unset ,
85
85
page_size = values .unset ):
86
86
"""
87
- Retrieve a single page of RecordingInstance records from the API.
87
+ Retrieve a single page of RoomRecordingInstance records from the API.
88
88
Request is executed immediately
89
89
90
90
:param str page_token: PageToken provided by the API
91
91
:param int page_number: Page Number, this value is simply for client state
92
92
:param int page_size: Number of records to return, defaults to 50
93
93
94
- :returns: Page of RecordingInstance
95
- :rtype: twilio.rest.video.v1.room.recording.RecordingPage
94
+ :returns: Page of RoomRecordingInstance
95
+ :rtype: twilio.rest.video.v1.room.recording.RoomRecordingPage
96
96
"""
97
97
params = values .of ({
98
98
'PageToken' : page_token ,
@@ -106,54 +106,54 @@ def page(self, page_token=values.unset, page_number=values.unset,
106
106
params = params ,
107
107
)
108
108
109
- return RecordingPage (self ._version , response , self ._solution )
109
+ return RoomRecordingPage (self ._version , response , self ._solution )
110
110
111
111
def get_page (self , target_url ):
112
112
"""
113
- Retrieve a specific page of RecordingInstance records from the API.
113
+ Retrieve a specific page of RoomRecordingInstance records from the API.
114
114
Request is executed immediately
115
115
116
116
:param str target_url: API-generated URL for the requested results page
117
117
118
- :returns: Page of RecordingInstance
119
- :rtype: twilio.rest.video.v1.room.recording.RecordingPage
118
+ :returns: Page of RoomRecordingInstance
119
+ :rtype: twilio.rest.video.v1.room.recording.RoomRecordingPage
120
120
"""
121
121
resource_url = self ._version .absolute_url (self ._uri )
122
122
if not target_url .startswith (resource_url ):
123
- raise TwilioException ('Invalid target_url for RecordingInstance resource.' )
123
+ raise TwilioException ('Invalid target_url for RoomRecordingInstance resource.' )
124
124
125
125
response = self ._version .domain .twilio .request (
126
126
'GET' ,
127
127
target_url ,
128
128
)
129
129
130
- return RecordingPage (self ._version , response , self ._solution )
130
+ return RoomRecordingPage (self ._version , response , self ._solution )
131
131
132
132
def get (self , sid ):
133
133
"""
134
- Constructs a RecordingContext
134
+ Constructs a RoomRecordingContext
135
135
136
136
:param sid: The sid
137
137
138
- :returns: twilio.rest.video.v1.room.recording.RecordingContext
139
- :rtype: twilio.rest.video.v1.room.recording.RecordingContext
138
+ :returns: twilio.rest.video.v1.room.recording.RoomRecordingContext
139
+ :rtype: twilio.rest.video.v1.room.recording.RoomRecordingContext
140
140
"""
141
- return RecordingContext (
141
+ return RoomRecordingContext (
142
142
self ._version ,
143
143
room_sid = self ._solution ['room_sid' ],
144
144
sid = sid ,
145
145
)
146
146
147
147
def __call__ (self , sid ):
148
148
"""
149
- Constructs a RecordingContext
149
+ Constructs a RoomRecordingContext
150
150
151
151
:param sid: The sid
152
152
153
- :returns: twilio.rest.video.v1.room.recording.RecordingContext
154
- :rtype: twilio.rest.video.v1.room.recording.RecordingContext
153
+ :returns: twilio.rest.video.v1.room.recording.RoomRecordingContext
154
+ :rtype: twilio.rest.video.v1.room.recording.RoomRecordingContext
155
155
"""
156
- return RecordingContext (
156
+ return RoomRecordingContext (
157
157
self ._version ,
158
158
room_sid = self ._solution ['room_sid' ],
159
159
sid = sid ,
@@ -166,37 +166,37 @@ def __repr__(self):
166
166
:returns: Machine friendly representation
167
167
:rtype: str
168
168
"""
169
- return '<Twilio.Video.V1.RecordingList >'
169
+ return '<Twilio.Video.V1.RoomRecordingList >'
170
170
171
171
172
- class RecordingPage (Page ):
172
+ class RoomRecordingPage (Page ):
173
173
174
174
def __init__ (self , version , response , solution ):
175
175
"""
176
- Initialize the RecordingPage
176
+ Initialize the RoomRecordingPage
177
177
178
178
:param Version version: Version that contains the resource
179
179
:param Response response: Response from the API
180
180
:param room_sid: The room_sid
181
181
182
- :returns: twilio.rest.video.v1.room.recording.RecordingPage
183
- :rtype: twilio.rest.video.v1.room.recording.RecordingPage
182
+ :returns: twilio.rest.video.v1.room.recording.RoomRecordingPage
183
+ :rtype: twilio.rest.video.v1.room.recording.RoomRecordingPage
184
184
"""
185
- super (RecordingPage , self ).__init__ (version , response )
185
+ super (RoomRecordingPage , self ).__init__ (version , response )
186
186
187
187
# Path Solution
188
188
self ._solution = solution
189
189
190
190
def get_instance (self , payload ):
191
191
"""
192
- Build an instance of RecordingInstance
192
+ Build an instance of RoomRecordingInstance
193
193
194
194
:param dict payload: Payload response from the API
195
195
196
- :returns: twilio.rest.video.v1.room.recording.RecordingInstance
197
- :rtype: twilio.rest.video.v1.room.recording.RecordingInstance
196
+ :returns: twilio.rest.video.v1.room.recording.RoomRecordingInstance
197
+ :rtype: twilio.rest.video.v1.room.recording.RoomRecordingInstance
198
198
"""
199
- return RecordingInstance (
199
+ return RoomRecordingInstance (
200
200
self ._version ,
201
201
payload ,
202
202
room_sid = self ._solution ['room_sid' ],
@@ -209,23 +209,23 @@ def __repr__(self):
209
209
:returns: Machine friendly representation
210
210
:rtype: str
211
211
"""
212
- return '<Twilio.Video.V1.RecordingPage >'
212
+ return '<Twilio.Video.V1.RoomRecordingPage >'
213
213
214
214
215
- class RecordingContext (InstanceContext ):
215
+ class RoomRecordingContext (InstanceContext ):
216
216
217
217
def __init__ (self , version , room_sid , sid ):
218
218
"""
219
- Initialize the RecordingContext
219
+ Initialize the RoomRecordingContext
220
220
221
221
:param Version version: Version that contains the resource
222
222
:param room_sid: The room_sid
223
223
:param sid: The sid
224
224
225
- :returns: twilio.rest.video.v1.room.recording.RecordingContext
226
- :rtype: twilio.rest.video.v1.room.recording.RecordingContext
225
+ :returns: twilio.rest.video.v1.room.recording.RoomRecordingContext
226
+ :rtype: twilio.rest.video.v1.room.recording.RoomRecordingContext
227
227
"""
228
- super (RecordingContext , self ).__init__ (version )
228
+ super (RoomRecordingContext , self ).__init__ (version )
229
229
230
230
# Path Solution
231
231
self ._solution = {
@@ -236,10 +236,10 @@ def __init__(self, version, room_sid, sid):
236
236
237
237
def fetch (self ):
238
238
"""
239
- Fetch a RecordingInstance
239
+ Fetch a RoomRecordingInstance
240
240
241
- :returns: Fetched RecordingInstance
242
- :rtype: twilio.rest.video.v1.room.recording.RecordingInstance
241
+ :returns: Fetched RoomRecordingInstance
242
+ :rtype: twilio.rest.video.v1.room.recording.RoomRecordingInstance
243
243
"""
244
244
params = values .of ({})
245
245
@@ -249,7 +249,7 @@ def fetch(self):
249
249
params = params ,
250
250
)
251
251
252
- return RecordingInstance (
252
+ return RoomRecordingInstance (
253
253
self ._version ,
254
254
payload ,
255
255
room_sid = self ._solution ['room_sid' ],
@@ -264,10 +264,10 @@ def __repr__(self):
264
264
:rtype: str
265
265
"""
266
266
context = ' ' .join ('{}={}' .format (k , v ) for k , v in self ._solution .items ())
267
- return '<Twilio.Video.V1.RecordingContext {}>' .format (context )
267
+ return '<Twilio.Video.V1.RoomRecordingContext {}>' .format (context )
268
268
269
269
270
- class RecordingInstance (InstanceResource ):
270
+ class RoomRecordingInstance (InstanceResource ):
271
271
272
272
class Status (object ):
273
273
PROCESSING = "processing"
@@ -292,12 +292,12 @@ class Codec(object):
292
292
293
293
def __init__ (self , version , payload , room_sid , sid = None ):
294
294
"""
295
- Initialize the RecordingInstance
295
+ Initialize the RoomRecordingInstance
296
296
297
- :returns: twilio.rest.video.v1.room.recording.RecordingInstance
298
- :rtype: twilio.rest.video.v1.room.recording.RecordingInstance
297
+ :returns: twilio.rest.video.v1.room.recording.RoomRecordingInstance
298
+ :rtype: twilio.rest.video.v1.room.recording.RoomRecordingInstance
299
299
"""
300
- super (RecordingInstance , self ).__init__ (version )
300
+ super (RoomRecordingInstance , self ).__init__ (version )
301
301
302
302
# Marshaled Properties
303
303
self ._properties = {
@@ -330,11 +330,11 @@ def _proxy(self):
330
330
Generate an instance context for the instance, the context is capable of
331
331
performing various actions. All instance actions are proxied to the context
332
332
333
- :returns: RecordingContext for this RecordingInstance
334
- :rtype: twilio.rest.video.v1.room.recording.RecordingContext
333
+ :returns: RoomRecordingContext for this RoomRecordingInstance
334
+ :rtype: twilio.rest.video.v1.room.recording.RoomRecordingContext
335
335
"""
336
336
if self ._context is None :
337
- self ._context = RecordingContext (
337
+ self ._context = RoomRecordingContext (
338
338
self ._version ,
339
339
room_sid = self ._solution ['room_sid' ],
340
340
sid = self ._solution ['sid' ],
@@ -353,7 +353,7 @@ def account_sid(self):
353
353
def status (self ):
354
354
"""
355
355
:returns: The status
356
- :rtype: RecordingInstance .Status
356
+ :rtype: RoomRecordingInstance .Status
357
357
"""
358
358
return self ._properties ['status' ]
359
359
@@ -393,7 +393,7 @@ def size(self):
393
393
def type (self ):
394
394
"""
395
395
:returns: The type
396
- :rtype: RecordingInstance .Type
396
+ :rtype: RoomRecordingInstance .Type
397
397
"""
398
398
return self ._properties ['type' ]
399
399
@@ -409,15 +409,15 @@ def duration(self):
409
409
def container_format (self ):
410
410
"""
411
411
:returns: The container_format
412
- :rtype: RecordingInstance .Format
412
+ :rtype: RoomRecordingInstance .Format
413
413
"""
414
414
return self ._properties ['container_format' ]
415
415
416
416
@property
417
417
def codec (self ):
418
418
"""
419
419
:returns: The codec
420
- :rtype: RecordingInstance .Codec
420
+ :rtype: RoomRecordingInstance .Codec
421
421
"""
422
422
return self ._properties ['codec' ]
423
423
@@ -455,10 +455,10 @@ def links(self):
455
455
456
456
def fetch (self ):
457
457
"""
458
- Fetch a RecordingInstance
458
+ Fetch a RoomRecordingInstance
459
459
460
- :returns: Fetched RecordingInstance
461
- :rtype: twilio.rest.video.v1.room.recording.RecordingInstance
460
+ :returns: Fetched RoomRecordingInstance
461
+ :rtype: twilio.rest.video.v1.room.recording.RoomRecordingInstance
462
462
"""
463
463
return self ._proxy .fetch ()
464
464
@@ -470,4 +470,4 @@ def __repr__(self):
470
470
:rtype: str
471
471
"""
472
472
context = ' ' .join ('{}={}' .format (k , v ) for k , v in self ._solution .items ())
473
- return '<Twilio.Video.V1.RecordingInstance {}>' .format (context )
473
+ return '<Twilio.Video.V1.RoomRecordingInstance {}>' .format (context )
0 commit comments