uipath 2.1.131__py3-none-any.whl → 2.1.133__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of uipath might be problematic. Click here for more details.

@@ -221,3 +221,343 @@ The `uipath.json` file is automatically generated by `uipath init` and defines y
221
221
  - The `jsonSchema` must match your Pydantic models exactly
222
222
  - Re-run `uipath init --infer-bindings` instead of manual edits when possible
223
223
 
224
+
225
+ ## Service Commands Reference
226
+
227
+ The UiPath CLI provides commands for interacting with UiPath platform services. These commands allow you to manage buckets, assets, jobs, and other resources.
228
+
229
+ ### `uipath buckets`
230
+
231
+ Manage UiPath storage buckets and files.
232
+
233
+ Buckets are cloud storage containers for files used by automation processes.
234
+
235
+ 
236
+ Bucket Operations:
237
+ list - List all buckets
238
+ create - Create a new bucket
239
+ delete - Delete a bucket
240
+ retrieve - Get bucket details
241
+ exists - Check if bucket exists
242
+
243
+ 
244
+ File Operations (use 'buckets files' subcommand):
245
+ files list - List files in a bucket
246
+ files search - Search files using glob patterns
247
+ files upload - Upload a file to a bucket
248
+ files download - Download a file from a bucket
249
+ files delete - Delete a file from a bucket
250
+ files exists - Check if a file exists
251
+
252
+ 
253
+ Examples:
254
+ 
255
+ # Bucket operations with explicit folder
256
+ uipath buckets list --folder-path "Shared"
257
+ uipath buckets create my-bucket --description "Data storage"
258
+ uipath buckets exists my-bucket
259
+ uipath buckets delete my-bucket --confirm
260
+ 
261
+ # Using environment variable for folder context
262
+ export UIPATH_FOLDER_PATH="Shared"
263
+ uipath buckets list
264
+ uipath buckets create my-bucket --description "Data storage"
265
+ 
266
+ # File operations
267
+ uipath buckets files list my-bucket
268
+ uipath buckets files search my-bucket "*.pdf"
269
+ uipath buckets files upload my-bucket ./data.csv remote/data.csv
270
+ uipath buckets files download my-bucket data.csv ./local.csv
271
+ uipath buckets files delete my-bucket old-data.csv --confirm
272
+ uipath buckets files exists my-bucket data.csv
273
+
274
+
275
+ **Subcommands:**
276
+
277
+ **`uipath buckets create`**
278
+
279
+ Create a new Bucket.
280
+
281
+ Examples:
282
+ uipath buckets create my-resource
283
+ uipath buckets create my-resource --folder-path Shared
284
+
285
+
286
+ Arguments:
287
+ - `name` (required): N/A
288
+
289
+ Options:
290
+ - `--description`: Bucket description
291
+ - `--folder-path`: Folder path (e.g., "Shared"). Can also be set via UIPATH_FOLDER_PATH environment variable. (default: `Sentinel.UNSET`)
292
+ - `--folder-key`: Folder key (UUID) (default: `Sentinel.UNSET`)
293
+ - `--format`: Output format (overrides global) (default: `Sentinel.UNSET`)
294
+ - `--output`, `-o`: Output file (overrides global) (default: `Sentinel.UNSET`)
295
+
296
+ **`uipath buckets delete`**
297
+
298
+ Delete a bucket.
299
+
300
+ 
301
+ Examples:
302
+ uipath buckets delete my-bucket --confirm
303
+ uipath buckets delete my-bucket --dry-run
304
+
305
+
306
+ Arguments:
307
+ - `name` (required): N/A
308
+
309
+ Options:
310
+ - `--confirm`: Skip confirmation prompt
311
+ - `--dry-run`: Show what would be deleted without deleting
312
+ - `--folder-path`: Folder path (e.g., "Shared"). Can also be set via UIPATH_FOLDER_PATH environment variable. (default: `Sentinel.UNSET`)
313
+ - `--folder-key`: Folder key (UUID) (default: `Sentinel.UNSET`)
314
+ - `--format`: Output format (overrides global) (default: `Sentinel.UNSET`)
315
+ - `--output`, `-o`: Output file (overrides global) (default: `Sentinel.UNSET`)
316
+
317
+ **`uipath buckets exists`**
318
+
319
+ Check if a Bucket exists.
320
+
321
+ Examples:
322
+ uipath buckets exists my-resource
323
+ uipath buckets exists my-resource --folder-path Shared
324
+
325
+
326
+ Arguments:
327
+ - `name` (required): N/A
328
+
329
+ Options:
330
+ - `--folder-path`: Folder path (e.g., "Shared"). Can also be set via UIPATH_FOLDER_PATH environment variable. (default: `Sentinel.UNSET`)
331
+ - `--folder-key`: Folder key (UUID) (default: `Sentinel.UNSET`)
332
+ - `--format`: Output format (overrides global) (default: `Sentinel.UNSET`)
333
+ - `--output`, `-o`: Output file (overrides global) (default: `Sentinel.UNSET`)
334
+
335
+ #### `uipath buckets files`
336
+
337
+ Manage files within buckets.
338
+
339
+ 
340
+ Examples:
341
+ 
342
+ # List files in a bucket
343
+ uipath buckets files list my-bucket
344
+ 
345
+ # Search for files with glob pattern
346
+ uipath buckets files search my-bucket "*.pdf"
347
+ 
348
+ # Upload a file
349
+ uipath buckets files upload my-bucket ./data.csv remote/data.csv
350
+ 
351
+ # Download a file
352
+ uipath buckets files download my-bucket data.csv ./local.csv
353
+ 
354
+ # Delete a file
355
+ uipath buckets files delete my-bucket old-data.csv --confirm
356
+ 
357
+ # Check if file exists
358
+ uipath buckets files exists my-bucket data.csv
359
+
360
+
361
+ **`uipath buckets files delete`**
362
+
363
+ Delete a file from a bucket.
364
+
365
+ 
366
+ Arguments:
367
+ BUCKET_NAME: Name of the bucket
368
+ FILE_PATH: Path to file in bucket
369
+
370
+ 
371
+ Examples:
372
+ uipath buckets files delete my-bucket old-data.csv --confirm
373
+ uipath buckets files delete reports archive/old.pdf --dry-run
374
+
375
+
376
+ Arguments:
377
+ - `bucket_name` (required): N/A
378
+ - `file_path` (required): N/A
379
+
380
+ Options:
381
+ - `--confirm`: Skip confirmation prompt
382
+ - `--dry-run`: Show what would be deleted
383
+ - `--folder-path`: Folder path (e.g., "Shared"). Can also be set via UIPATH_FOLDER_PATH environment variable. (default: `Sentinel.UNSET`)
384
+ - `--folder-key`: Folder key (UUID) (default: `Sentinel.UNSET`)
385
+ - `--format`: Output format (overrides global) (default: `Sentinel.UNSET`)
386
+ - `--output`, `-o`: Output file (overrides global) (default: `Sentinel.UNSET`)
387
+
388
+ **`uipath buckets files download`**
389
+
390
+ Download a file from a bucket.
391
+
392
+ 
393
+ Arguments:
394
+ BUCKET_NAME: Name of the bucket
395
+ REMOTE_PATH: Path to file in bucket
396
+ LOCAL_PATH: Local destination path
397
+
398
+ 
399
+ Examples:
400
+ uipath buckets files download my-bucket data.csv ./downloads/data.csv
401
+ uipath buckets files download reports monthly/report.pdf ./report.pdf
402
+
403
+
404
+ Arguments:
405
+ - `bucket_name` (required): N/A
406
+ - `remote_path` (required): N/A
407
+ - `local_path` (required): N/A
408
+
409
+ Options:
410
+ - `--folder-path`: Folder path (e.g., "Shared"). Can also be set via UIPATH_FOLDER_PATH environment variable. (default: `Sentinel.UNSET`)
411
+ - `--folder-key`: Folder key (UUID) (default: `Sentinel.UNSET`)
412
+ - `--format`: Output format (overrides global) (default: `Sentinel.UNSET`)
413
+ - `--output`, `-o`: Output file (overrides global) (default: `Sentinel.UNSET`)
414
+
415
+ **`uipath buckets files exists`**
416
+
417
+ Check if a file exists in a bucket.
418
+
419
+ 
420
+ Arguments:
421
+ BUCKET_NAME: Name of the bucket
422
+ FILE_PATH: Path to file in bucket
423
+
424
+ 
425
+ Examples:
426
+ uipath buckets files exists my-bucket data.csv
427
+ uipath buckets files exists reports monthly/report.pdf
428
+
429
+
430
+ Arguments:
431
+ - `bucket_name` (required): N/A
432
+ - `file_path` (required): N/A
433
+
434
+ Options:
435
+ - `--folder-path`: Folder path (e.g., "Shared"). Can also be set via UIPATH_FOLDER_PATH environment variable. (default: `Sentinel.UNSET`)
436
+ - `--folder-key`: Folder key (UUID) (default: `Sentinel.UNSET`)
437
+ - `--format`: Output format (overrides global) (default: `Sentinel.UNSET`)
438
+ - `--output`, `-o`: Output file (overrides global) (default: `Sentinel.UNSET`)
439
+
440
+ **`uipath buckets files list`**
441
+
442
+ List files in a bucket.
443
+
444
+ 
445
+ Arguments:
446
+ BUCKET_NAME: Name of the bucket
447
+
448
+ 
449
+ Examples:
450
+ uipath buckets files list my-bucket
451
+ uipath buckets files list my-bucket --prefix "data/"
452
+ uipath buckets files list reports --limit 10 --format json
453
+ uipath buckets files list my-bucket --all
454
+
455
+
456
+ Arguments:
457
+ - `bucket_name` (required): N/A
458
+
459
+ Options:
460
+ - `--prefix`: Filter files by prefix (default: ``)
461
+ - `--limit`: Maximum number of files to return (default: `Sentinel.UNSET`)
462
+ - `--offset`: Number of files to skip (default: `0`)
463
+ - `--all`: Fetch all files (auto-paginate)
464
+ - `--folder-path`: Folder path (e.g., "Shared"). Can also be set via UIPATH_FOLDER_PATH environment variable. (default: `Sentinel.UNSET`)
465
+ - `--folder-key`: Folder key (UUID) (default: `Sentinel.UNSET`)
466
+ - `--format`: Output format (overrides global) (default: `Sentinel.UNSET`)
467
+ - `--output`, `-o`: Output file (overrides global) (default: `Sentinel.UNSET`)
468
+
469
+ **`uipath buckets files search`**
470
+
471
+ Search for files using glob patterns.
472
+
473
+ Uses the GetFiles API which supports glob patterns like *.pdf or data_*.csv.
474
+
475
+ 
476
+ Arguments:
477
+ BUCKET_NAME: Name of the bucket
478
+ PATTERN: Glob pattern to match files (e.g., "*.pdf", "data_*.csv")
479
+
480
+ 
481
+ Examples:
482
+ uipath buckets files search my-bucket "*.pdf"
483
+ uipath buckets files search reports "*.csv" --recursive
484
+ uipath buckets files search my-bucket "data_*.json" --prefix "archive/"
485
+
486
+
487
+ Arguments:
488
+ - `bucket_name` (required): N/A
489
+ - `pattern` (required): N/A
490
+
491
+ Options:
492
+ - `--prefix`: Directory path to search in (default: ``)
493
+ - `--recursive`: Search subdirectories recursively
494
+ - `--limit`: Maximum number of files to return (default: `Sentinel.UNSET`)
495
+ - `--folder-path`: Folder path (e.g., "Shared"). Can also be set via UIPATH_FOLDER_PATH environment variable. (default: `Sentinel.UNSET`)
496
+ - `--folder-key`: Folder key (UUID) (default: `Sentinel.UNSET`)
497
+ - `--format`: Output format (overrides global) (default: `Sentinel.UNSET`)
498
+ - `--output`, `-o`: Output file (overrides global) (default: `Sentinel.UNSET`)
499
+
500
+ **`uipath buckets files upload`**
501
+
502
+ Upload a file to a bucket.
503
+
504
+ 
505
+ Arguments:
506
+ BUCKET_NAME: Name of the bucket
507
+ LOCAL_PATH: Local file to upload
508
+ REMOTE_PATH: Destination path in bucket
509
+
510
+ 
511
+ Examples:
512
+ uipath buckets files upload my-bucket ./data.csv remote/data.csv
513
+ uipath buckets files upload reports ./report.pdf monthly/report.pdf
514
+
515
+
516
+ Arguments:
517
+ - `bucket_name` (required): N/A
518
+ - `local_path` (required): N/A
519
+ - `remote_path` (required): N/A
520
+
521
+ Options:
522
+ - `--folder-path`: Folder path (e.g., "Shared"). Can also be set via UIPATH_FOLDER_PATH environment variable. (default: `Sentinel.UNSET`)
523
+ - `--folder-key`: Folder key (UUID) (default: `Sentinel.UNSET`)
524
+ - `--format`: Output format (overrides global) (default: `Sentinel.UNSET`)
525
+ - `--output`, `-o`: Output file (overrides global) (default: `Sentinel.UNSET`)
526
+
527
+ **`uipath buckets list`**
528
+
529
+ List all Buckets.
530
+
531
+ Examples:
532
+ uipath buckets list
533
+ uipath buckets list --folder-path Shared
534
+
535
+
536
+ Options:
537
+ - `--limit`: Maximum number of items to return (default: `Sentinel.UNSET`)
538
+ - `--offset`: Number of items to skip (default: `0`)
539
+ - `--folder-path`: Folder path (e.g., "Shared"). Can also be set via UIPATH_FOLDER_PATH environment variable. (default: `Sentinel.UNSET`)
540
+ - `--folder-key`: Folder key (UUID) (default: `Sentinel.UNSET`)
541
+ - `--format`: Output format (overrides global) (default: `Sentinel.UNSET`)
542
+ - `--output`, `-o`: Output file (overrides global) (default: `Sentinel.UNSET`)
543
+
544
+ **`uipath buckets retrieve`**
545
+
546
+ Retrieve a bucket by name or key.
547
+
548
+ 
549
+ Examples:
550
+ uipath buckets retrieve --name "my-bucket"
551
+ uipath buckets retrieve --key "abc-123-def-456" --format json
552
+
553
+
554
+ Options:
555
+ - `--name`: Bucket name (default: `Sentinel.UNSET`)
556
+ - `--key`: Bucket key (UUID) (default: `Sentinel.UNSET`)
557
+ - `--folder-path`: Folder path (e.g., "Shared"). Can also be set via UIPATH_FOLDER_PATH environment variable. (default: `Sentinel.UNSET`)
558
+ - `--folder-key`: Folder key (UUID) (default: `Sentinel.UNSET`)
559
+ - `--format`: Output format (overrides global) (default: `Sentinel.UNSET`)
560
+ - `--output`, `-o`: Output file (overrides global) (default: `Sentinel.UNSET`)
561
+
562
+ ---
563
+
@@ -106,11 +106,17 @@ sdk.buckets.create(name: str, description: Optional[str]=None, identifier: Optio
106
106
  # Async version of create().
107
107
  sdk.buckets.create_async(name: str, description: Optional[str]=None, identifier: Optional[str]=None, folder_path: Optional[str]=None, folder_key: Optional[str]=None) -> uipath.models.buckets.Bucket
108
108
 
109
+ # Delete a bucket.
110
+ sdk.buckets.delete(name: Optional[str]=None, key: Optional[str]=None, folder_path: Optional[str]=None, folder_key: Optional[str]=None) -> None
111
+
112
+ # Async version of delete().
113
+ sdk.buckets.delete_async(name: Optional[str]=None, key: Optional[str]=None, folder_path: Optional[str]=None, folder_key: Optional[str]=None) -> None
114
+
109
115
  # Delete a file from a bucket.
110
- sdk.buckets.delete(name: Optional[str]=None, key: Optional[str]=None, blob_file_path: str, folder_key: Optional[str]=None, folder_path: Optional[str]=None) -> None
116
+ sdk.buckets.delete_file(name: Optional[str]=None, key: Optional[str]=None, blob_file_path: str, folder_key: Optional[str]=None, folder_path: Optional[str]=None) -> None
111
117
 
112
118
  # Delete a file from a bucket asynchronously.
113
- sdk.buckets.delete_async(name: Optional[str]=None, key: Optional[str]=None, blob_file_path: str, folder_key: Optional[str]=None, folder_path: Optional[str]=None) -> None
119
+ sdk.buckets.delete_file_async(name: Optional[str]=None, key: Optional[str]=None, blob_file_path: str, folder_key: Optional[str]=None, folder_path: Optional[str]=None) -> None
114
120
 
115
121
  # Download a file from a bucket.
116
122
  sdk.buckets.download(name: Optional[str]=None, key: Optional[str]=None, blob_file_path: str, destination_path: str, folder_key: Optional[str]=None, folder_path: Optional[str]=None) -> None
@@ -124,6 +130,12 @@ sdk.buckets.exists(name: str, folder_key: Optional[str]=None, folder_path: Optio
124
130
  # Async version of exists().
125
131
  sdk.buckets.exists_async(name: str, folder_key: Optional[str]=None, folder_path: Optional[str]=None) -> bool
126
132
 
133
+ # Check if a file exists in a bucket.
134
+ sdk.buckets.exists_file(name: Optional[str]=None, key: Optional[str]=None, blob_file_path: str, folder_key: Optional[str]=None, folder_path: Optional[str]=None) -> bool
135
+
136
+ # Async version of exists_file().
137
+ sdk.buckets.exists_file_async(name: Optional[str]=None, key: Optional[str]=None, blob_file_path: str, folder_key: Optional[str]=None, folder_path: Optional[str]=None) -> bool
138
+
127
139
  # Get files using OData GetFiles API (Studio-compatible).
128
140
  sdk.buckets.get_files(name: Optional[str]=None, key: Optional[str]=None, prefix: str="", recursive: bool=False, file_name_glob: Optional[str]=None, folder_key: Optional[str]=None, folder_path: Optional[str]=None) -> typing.Iterator[uipath.models.buckets.BucketFile]
129
141
 
@@ -258,6 +258,62 @@ class BucketsService(FolderContext, BaseService):
258
258
  bucket = Bucket.model_validate(response)
259
259
  return bucket
260
260
 
261
+ @traced(name="buckets_delete", run_type="uipath")
262
+ @infer_bindings(resource_type="bucket")
263
+ def delete(
264
+ self,
265
+ *,
266
+ name: Optional[str] = None,
267
+ key: Optional[str] = None,
268
+ folder_path: Optional[str] = None,
269
+ folder_key: Optional[str] = None,
270
+ ) -> None:
271
+ """Delete a bucket.
272
+
273
+ Args:
274
+ name: Bucket name
275
+ key: Bucket identifier (UUID)
276
+ folder_path: Folder path
277
+ folder_key: Folder key
278
+
279
+ Raises:
280
+ LookupError: If bucket is not found
281
+
282
+ Examples:
283
+ >>> sdk.buckets.delete(name="old-storage")
284
+ >>> sdk.buckets.delete(key="abc-123-def")
285
+ """
286
+ bucket = self.retrieve(
287
+ name=name, key=key, folder_key=folder_key, folder_path=folder_path
288
+ )
289
+
290
+ self.request(
291
+ "DELETE",
292
+ url=f"/orchestrator_/odata/Buckets({bucket.id})",
293
+ headers={**self.folder_headers},
294
+ )
295
+
296
+ @traced(name="buckets_delete", run_type="uipath")
297
+ @infer_bindings(resource_type="bucket")
298
+ async def delete_async(
299
+ self,
300
+ *,
301
+ name: Optional[str] = None,
302
+ key: Optional[str] = None,
303
+ folder_path: Optional[str] = None,
304
+ folder_key: Optional[str] = None,
305
+ ) -> None:
306
+ """Async version of delete()."""
307
+ bucket = await self.retrieve_async(
308
+ name=name, key=key, folder_key=folder_key, folder_path=folder_path
309
+ )
310
+
311
+ await self.request_async(
312
+ "DELETE",
313
+ url=f"/orchestrator_/odata/Buckets({bucket.id})",
314
+ headers={**self.folder_headers},
315
+ )
316
+
261
317
  @traced(name="buckets_download", run_type="uipath")
262
318
  @infer_bindings(resource_type="bucket")
263
319
  def download(
@@ -845,9 +901,116 @@ class BucketsService(FolderContext, BaseService):
845
901
  if not continuation_token:
846
902
  break
847
903
 
848
- @traced(name="buckets_delete", run_type="uipath")
904
+ @traced(name="buckets_exists_file", run_type="uipath")
849
905
  @infer_bindings(resource_type="bucket")
850
- def delete(
906
+ def exists_file(
907
+ self,
908
+ *,
909
+ name: Optional[str] = None,
910
+ key: Optional[str] = None,
911
+ blob_file_path: str,
912
+ folder_key: Optional[str] = None,
913
+ folder_path: Optional[str] = None,
914
+ ) -> bool:
915
+ """Check if a file exists in a bucket.
916
+
917
+ Args:
918
+ name: Bucket name
919
+ key: Bucket identifier
920
+ blob_file_path: Path to the file in the bucket (cannot be empty)
921
+ folder_key: Folder key
922
+ folder_path: Folder path
923
+
924
+ Returns:
925
+ bool: True if file exists, False otherwise
926
+
927
+ Note:
928
+ This method uses short-circuit iteration to stop at the first match,
929
+ making it memory-efficient even for large buckets. It will raise
930
+ LookupError if the bucket itself doesn't exist.
931
+
932
+ Raises:
933
+ ValueError: If blob_file_path is empty or whitespace-only
934
+ LookupError: If bucket is not found
935
+
936
+ Examples:
937
+ >>> if sdk.buckets.exists_file(name="my-storage", blob_file_path="data/file.csv"):
938
+ ... print("File exists")
939
+ >>> # Check in specific folder
940
+ >>> exists = sdk.buckets.exists_file(
941
+ ... name="my-storage",
942
+ ... blob_file_path="reports/2024/summary.pdf",
943
+ ... folder_path="Production"
944
+ ... )
945
+ """
946
+ if not blob_file_path or not blob_file_path.strip():
947
+ raise ValueError("blob_file_path cannot be empty or whitespace-only")
948
+
949
+ normalized_target = (
950
+ blob_file_path if blob_file_path.startswith("/") else f"/{blob_file_path}"
951
+ )
952
+ for file in self.list_files(
953
+ name=name,
954
+ key=key,
955
+ prefix=blob_file_path,
956
+ folder_key=folder_key,
957
+ folder_path=folder_path,
958
+ ):
959
+ if file.path == normalized_target:
960
+ return True
961
+ return False
962
+
963
+ @traced(name="buckets_exists_file", run_type="uipath")
964
+ @infer_bindings(resource_type="bucket")
965
+ async def exists_file_async(
966
+ self,
967
+ *,
968
+ name: Optional[str] = None,
969
+ key: Optional[str] = None,
970
+ blob_file_path: str,
971
+ folder_key: Optional[str] = None,
972
+ folder_path: Optional[str] = None,
973
+ ) -> bool:
974
+ """Async version of exists_file().
975
+
976
+ Args:
977
+ name: Bucket name
978
+ key: Bucket identifier
979
+ blob_file_path: Path to the file in the bucket (cannot be empty)
980
+ folder_key: Folder key
981
+ folder_path: Folder path
982
+
983
+ Returns:
984
+ bool: True if file exists, False otherwise
985
+
986
+ Raises:
987
+ ValueError: If blob_file_path is empty or whitespace-only
988
+ LookupError: If bucket is not found
989
+
990
+ Examples:
991
+ >>> if await sdk.buckets.exists_file_async(name="my-storage", blob_file_path="data/file.csv"):
992
+ ... print("File exists")
993
+ """
994
+ if not blob_file_path or not blob_file_path.strip():
995
+ raise ValueError("blob_file_path cannot be empty or whitespace-only")
996
+
997
+ normalized_target = (
998
+ blob_file_path if blob_file_path.startswith("/") else f"/{blob_file_path}"
999
+ )
1000
+ async for file in self.list_files_async(
1001
+ name=name,
1002
+ key=key,
1003
+ prefix=blob_file_path,
1004
+ folder_key=folder_key,
1005
+ folder_path=folder_path,
1006
+ ):
1007
+ if file.path == normalized_target:
1008
+ return True
1009
+ return False
1010
+
1011
+ @traced(name="buckets_delete_file", run_type="uipath")
1012
+ @infer_bindings(resource_type="bucket")
1013
+ def delete_file(
851
1014
  self,
852
1015
  *,
853
1016
  name: Optional[str] = None,
@@ -866,7 +1029,7 @@ class BucketsService(FolderContext, BaseService):
866
1029
  folder_path: Folder path
867
1030
 
868
1031
  Examples:
869
- >>> sdk.buckets.delete(name="my-storage", blob_file_path="data/file.txt")
1032
+ >>> sdk.buckets.delete_file(name="my-storage", blob_file_path="data/file.txt")
870
1033
  """
871
1034
  bucket = self.retrieve(
872
1035
  name=name, key=key, folder_key=folder_key, folder_path=folder_path
@@ -881,9 +1044,9 @@ class BucketsService(FolderContext, BaseService):
881
1044
  headers=spec.headers,
882
1045
  )
883
1046
 
884
- @traced(name="buckets_delete", run_type="uipath")
1047
+ @traced(name="buckets_delete_file", run_type="uipath")
885
1048
  @infer_bindings(resource_type="bucket")
886
- async def delete_async(
1049
+ async def delete_file_async(
887
1050
  self,
888
1051
  *,
889
1052
  name: Optional[str] = None,
@@ -902,7 +1065,7 @@ class BucketsService(FolderContext, BaseService):
902
1065
  folder_path: Folder path
903
1066
 
904
1067
  Examples:
905
- >>> await sdk.buckets.delete_async(name="my-storage", blob_file_path="data/file.txt")
1068
+ >>> await sdk.buckets.delete_file_async(name="my-storage", blob_file_path="data/file.txt")
906
1069
  """
907
1070
  bucket = await self.retrieve_async(
908
1071
  name=name, key=key, folder_key=folder_key, folder_path=folder_path