@@ -36,7 +36,7 @@ def get(self, asset_id: Union[str, UUID]):
3636 asset_id='1231-12414-afasfaf-aklsajflaksjfla',
3737 )
3838
39- """
39+ """
4040 endpoint = "/assets/{}" .format (asset_id )
4141 return self .client ._api_call ("get" , endpoint )
4242
@@ -62,7 +62,7 @@ def get_children(
6262 asset_id='1231-12414-afasfaf-aklsajflaksjfla',
6363 include=['review_links','cover_asset','creator','presentation']
6464 )
65- """
65+ """
6666 endpoint = "/assets/{}/children" .format (asset_id )
6767
6868 if slim == True :
@@ -132,7 +132,7 @@ def create(
132132 filetype="video/mp4",
133133 filesize=123456
134134 )
135- """
135+ """
136136 kwargs = {
137137 "name" : name ,
138138 "type" : type ,
@@ -157,7 +157,7 @@ def create_folder(self, parent_asset_id: str, name: str = "New Folder"):
157157 parent_asset_id="123abc",
158158 name="ExampleFile.mp4",
159159 )
160- """
160+ """
161161 endpoint = "/assets/{}/children" .format (parent_asset_id )
162162 return self .client ._api_call (
163163 "post" , endpoint , payload = {"name" : name , "type" : "folder" }
@@ -180,7 +180,7 @@ def from_url(self, parent_asset_id: Union[str, UUID], name: str, url: str):
180180 type="file",
181181 url="https://"
182182 )
183- """
183+ """
184184 payload = {"name" : name , "type" : "file" , "source" : {"url" : url }}
185185
186186 endpoint = "/assets/{}/children" .format (parent_asset_id )
@@ -199,13 +199,15 @@ def update(self, asset_id: Union[str, UUID], **kwargs):
199199 Example::
200200
201201 client.assets.update("adeffee123342", name="updated_filename.mp4")
202- """
202+ """
203203 endpoint = "/assets/{}" .format (asset_id )
204204 return self .client ._api_call ("put" , endpoint , kwargs )
205205
206206 @ApiReference (operation = "#copyAsset" )
207207 def copy (
208- self , destination_folder_id : Union [str , UUID ], target_asset_id : Union [str , UUID ]
208+ self ,
209+ destination_folder_id : Union [str , UUID ],
210+ target_asset_id : Union [str , UUID ],
209211 ):
210212 """
211213 Copy an asset
@@ -216,7 +218,10 @@ def copy(
216218 Example::
217219
218220 client.assets.copy("adeffee123342", id="7ee008c5-49a2-f8b5-997d-8b64de153c30")
219- """
221+ """
222+ kwargs = {
223+ "id" : target_asset_id
224+ }
220225 endpoint = "/assets/{}/copy" .format (destination_folder_id )
221226 return self .client ._api_call ("post" , endpoint , kwargs )
222227
@@ -244,7 +249,7 @@ def bulk_copy(
244249 ],
245250 copy_comments=True
246251 )
247- """
252+ """
248253 payload = {"batch" : []}
249254
250255 if copy_comments :
@@ -271,7 +276,7 @@ def add_version(
271276 destination_id="123",
272277 next_asset_id="234"
273278 )
274- """
279+ """
275280
276281 payload = {"next_asset_id" : new_version_id }
277282
@@ -285,7 +290,7 @@ def delete(self, asset_id: Union[str, UUID]):
285290 Delete an asset
286291
287292 :param asset_id: the asset's id
288- """
293+ """
289294 endpoint = "/assets/{}" .format (asset_id )
290295 return self .client ._api_call ("delete" , endpoint )
291296
@@ -299,7 +304,7 @@ def _upload(self, asset: Dict, file: object):
299304 Example::
300305
301306 client.upload(asset, open('example.mp4'))
302- """
307+ """
303308 uploader = FrameioUploader (asset , file )
304309 uploader .upload ()
305310
@@ -318,7 +323,7 @@ def upload(
318323 Example::
319324
320325 client.assets.upload('1231-12414-afasfaf-aklsajflaksjfla', "./file.mov")
321- """
326+ """
322327
323328 # Check if destination is a project or folder
324329 # If it's a project, well then we look up its root asset ID, otherwise we use the folder id provided
@@ -374,7 +379,7 @@ def download(
374379 Example::
375380
376381 client.assets.download(asset, "~./Downloads")
377- """
382+ """
378383 downloader = FrameioDownloader (
379384 asset , download_folder , prefix , multi_part , replace
380385 )
0 commit comments