uipath 2.0.45__py3-none-any.whl → 2.0.47__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.
- uipath/_services/buckets_service.py +16 -6
- uipath/models/__init__.py +2 -0
- uipath/models/buckets.py +27 -0
- {uipath-2.0.45.dist-info → uipath-2.0.47.dist-info}/METADATA +1 -1
- {uipath-2.0.45.dist-info → uipath-2.0.47.dist-info}/RECORD +8 -7
- {uipath-2.0.45.dist-info → uipath-2.0.47.dist-info}/WHEEL +0 -0
- {uipath-2.0.45.dist-info → uipath-2.0.47.dist-info}/entry_points.txt +0 -0
- {uipath-2.0.45.dist-info → uipath-2.0.47.dist-info}/licenses/LICENSE +0 -0
|
@@ -6,6 +6,7 @@ from .._config import Config
|
|
|
6
6
|
from .._execution_context import ExecutionContext
|
|
7
7
|
from .._folder_context import FolderContext
|
|
8
8
|
from .._utils import Endpoint, RequestSpec, header_folder, infer_bindings
|
|
9
|
+
from ..models import Bucket
|
|
9
10
|
from ..tracing._traced import traced
|
|
10
11
|
from ._base_service import BaseService
|
|
11
12
|
|
|
@@ -355,7 +356,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
355
356
|
key: Optional[str] = None,
|
|
356
357
|
folder_key: Optional[str] = None,
|
|
357
358
|
folder_path: Optional[str] = None,
|
|
358
|
-
) ->
|
|
359
|
+
) -> Bucket:
|
|
359
360
|
"""Retrieve bucket information by its name.
|
|
360
361
|
|
|
361
362
|
Args:
|
|
@@ -391,9 +392,13 @@ class BucketsService(FolderContext, BaseService):
|
|
|
391
392
|
headers=spec.headers,
|
|
392
393
|
)
|
|
393
394
|
except Exception as e:
|
|
394
|
-
raise Exception(f"Bucket with name {name} not found") from e
|
|
395
|
-
|
|
396
|
-
|
|
395
|
+
raise Exception(f"Bucket with name '{name}' not found") from e
|
|
396
|
+
try:
|
|
397
|
+
return Bucket.model_validate(response.json()["value"][0])
|
|
398
|
+
except KeyError as e:
|
|
399
|
+
raise Exception(
|
|
400
|
+
f"Error while deserializing bucket with name '{name}'"
|
|
401
|
+
) from e
|
|
397
402
|
|
|
398
403
|
@infer_bindings()
|
|
399
404
|
@traced(name="buckets_retrieve", run_type="uipath")
|
|
@@ -404,7 +409,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
404
409
|
key: Optional[str] = None,
|
|
405
410
|
folder_key: Optional[str] = None,
|
|
406
411
|
folder_path: Optional[str] = None,
|
|
407
|
-
) ->
|
|
412
|
+
) -> Bucket:
|
|
408
413
|
"""Asynchronously retrieve bucket information by its name.
|
|
409
414
|
|
|
410
415
|
Args:
|
|
@@ -443,7 +448,12 @@ class BucketsService(FolderContext, BaseService):
|
|
|
443
448
|
except Exception as e:
|
|
444
449
|
raise Exception(f"Bucket with name {name} not found") from e
|
|
445
450
|
|
|
446
|
-
|
|
451
|
+
try:
|
|
452
|
+
return Bucket.model_validate(response.json()["value"][0])
|
|
453
|
+
except KeyError as e:
|
|
454
|
+
raise Exception(
|
|
455
|
+
f"Error while deserializing bucket with name '{name}'"
|
|
456
|
+
) from e
|
|
447
457
|
|
|
448
458
|
@property
|
|
449
459
|
def custom_headers(self) -> Dict[str, str]:
|
uipath/models/__init__.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from .action_schema import ActionSchema
|
|
2
2
|
from .actions import Action
|
|
3
3
|
from .assets import UserAsset
|
|
4
|
+
from .buckets import Bucket
|
|
4
5
|
from .connections import Connection, ConnectionToken
|
|
5
6
|
from .context_grounding import ContextGroundingQueryResponse
|
|
6
7
|
from .context_grounding_index import ContextGroundingIndex
|
|
@@ -44,4 +45,5 @@ __all__ = [
|
|
|
44
45
|
"IngestionInProgressException",
|
|
45
46
|
"BaseUrlMissingError",
|
|
46
47
|
"SecretMissingError",
|
|
48
|
+
"Bucket",
|
|
47
49
|
]
|
uipath/models/buckets.py
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from typing import List, Optional
|
|
2
|
+
|
|
3
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Bucket(BaseModel):
|
|
7
|
+
model_config = ConfigDict(
|
|
8
|
+
validate_by_name=True,
|
|
9
|
+
validate_by_alias=True,
|
|
10
|
+
use_enum_values=True,
|
|
11
|
+
arbitrary_types_allowed=True,
|
|
12
|
+
extra="allow",
|
|
13
|
+
)
|
|
14
|
+
name: str = Field(alias="Name")
|
|
15
|
+
description: Optional[str] = Field(default=None, alias="Description")
|
|
16
|
+
identifier: str = Field(alias="Identifier")
|
|
17
|
+
storageProvider: Optional[str] = Field(default=None, alias="StorageProvider")
|
|
18
|
+
storageParameters: Optional[str] = Field(default=None, alias="StorageParameters")
|
|
19
|
+
storageContainer: Optional[str] = Field(default=None, alias="StorageContainer")
|
|
20
|
+
options: Optional[str] = Field(default=None, alias="Options")
|
|
21
|
+
credentialStoreId: Optional[str] = Field(default=None, alias="CredentialStoreId")
|
|
22
|
+
externalName: Optional[str] = Field(default=None, alias="ExternalName")
|
|
23
|
+
password: Optional[str] = Field(default=None, alias="Password")
|
|
24
|
+
foldersCount: Optional[int] = Field(default=None, alias="FoldersCount")
|
|
25
|
+
encrypted: Optional[bool] = Field(default=None, alias="Encrypted")
|
|
26
|
+
id: Optional[int] = Field(default=None, alias="Id")
|
|
27
|
+
tags: Optional[List[str]] = Field(default=None, alias="Tags")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: uipath
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.47
|
|
4
4
|
Summary: Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools.
|
|
5
5
|
Project-URL: Homepage, https://uipath.com
|
|
6
6
|
Project-URL: Repository, https://github.com/UiPath/uipath-python
|
|
@@ -44,7 +44,7 @@ uipath/_services/_base_service.py,sha256=i4f-4rkORhEIa6EWiSBUGlfFftAqKrRdjcV7fCG
|
|
|
44
44
|
uipath/_services/actions_service.py,sha256=DaWXbbLHVC-bVtxhMBm3Zfhx6IP8s9mviOTgK5g_CAQ,15883
|
|
45
45
|
uipath/_services/api_client.py,sha256=1hYLc_90dQzCGnqqirEHpPqvL3Gkv2sSKoeOV_iTmlk,2903
|
|
46
46
|
uipath/_services/assets_service.py,sha256=TXuL8dHCVLHb3AC2QixrwGz0Rjs70GHKTKg-S20sA_U,11115
|
|
47
|
-
uipath/_services/buckets_service.py,sha256=
|
|
47
|
+
uipath/_services/buckets_service.py,sha256=eQgnc97A2iEFqZKDyp0b_udpRIWXPBGUbY7r9BMb-tg,17876
|
|
48
48
|
uipath/_services/connections_service.py,sha256=qh-HNL_GJsyPUD0wSJZRF8ZdrTE9l4HrIilmXGK6dDk,4581
|
|
49
49
|
uipath/_services/context_grounding_service.py,sha256=wRYPnpTFeZunS88OggRZ9qRaILHKdoEP_6VUCaF-Xw0,24097
|
|
50
50
|
uipath/_services/folder_service.py,sha256=HtsBoBejvMuIZ-9gocAG9B8uKOFsAAD4WUozta-isXk,1673
|
|
@@ -61,10 +61,11 @@ uipath/_utils/_request_override.py,sha256=_vibG78vEDWS3JKg2cJ5l6tpoBMLChUOauiqL1
|
|
|
61
61
|
uipath/_utils/_request_spec.py,sha256=iCtBLqtbWUpFG5g1wtIZBzSupKsfaRLiQFoFc_4B70Q,747
|
|
62
62
|
uipath/_utils/_user_agent.py,sha256=pVJkFYacGwaQBomfwWVAvBQgdBUo62e4n3-fLIajWUU,563
|
|
63
63
|
uipath/_utils/constants.py,sha256=xW-gbRasjdOwSj2rke4wfRCml69710oUaDNJcwFAZug,775
|
|
64
|
-
uipath/models/__init__.py,sha256=
|
|
64
|
+
uipath/models/__init__.py,sha256=tQF2CbEjmB_1sqL1lJrtVe3K2o8F0LKzzoXKiUUBqxc,1178
|
|
65
65
|
uipath/models/action_schema.py,sha256=lKDhP7Eix23fFvfQrqqNmSOiPyyNF6tiRpUu0VZIn_M,714
|
|
66
66
|
uipath/models/actions.py,sha256=ekSH4YUQR4KPOH-heBm9yOgOfirndx0In4_S4VYWeEU,2993
|
|
67
67
|
uipath/models/assets.py,sha256=8ZPImmJ-1u5KqdR1UBgZnGjSBW-Nr81Ruq_5Uav417A,1841
|
|
68
|
+
uipath/models/buckets.py,sha256=DVKTilKy4WV0rdzEGhfZX3JTONLtBrQ0VErQeZTuiHQ,1278
|
|
68
69
|
uipath/models/connections.py,sha256=perIqW99YEg_0yWZPdpZlmNpZcwY_toR1wkqDUBdAN0,2014
|
|
69
70
|
uipath/models/context_grounding.py,sha256=S9PeOlFlw7VxzzJVR_Fs28OObW3MLHUPCFqNgkEz24k,1315
|
|
70
71
|
uipath/models/context_grounding_index.py,sha256=0ADlH8fC10qIbakgwU89pRVawzJ36TiSDKIqOhUdhuA,2580
|
|
@@ -79,8 +80,8 @@ uipath/tracing/__init__.py,sha256=GimSzv6qkCOlHOG1WtjYKJsZqcXpA28IgoXfR33JhiA,13
|
|
|
79
80
|
uipath/tracing/_otel_exporters.py,sha256=x0PDPmDKJcxashsuehVsSsqBCzRr6WsNFaq_3_HS5F0,3014
|
|
80
81
|
uipath/tracing/_traced.py,sha256=GFxOp73jk0vGTN_H7YZOOsEl9rVLaEhXGztMiYKIA-8,16634
|
|
81
82
|
uipath/tracing/_utils.py,sha256=5SwsTGpHkIouXBndw-u8eCLnN4p7LM8DsTCCuf2jJgs,10165
|
|
82
|
-
uipath-2.0.
|
|
83
|
-
uipath-2.0.
|
|
84
|
-
uipath-2.0.
|
|
85
|
-
uipath-2.0.
|
|
86
|
-
uipath-2.0.
|
|
83
|
+
uipath-2.0.47.dist-info/METADATA,sha256=f9Q8XVUkulk-iOkX4GZ77ZyO1Cj39bKwZSY6ZNTJpwA,6254
|
|
84
|
+
uipath-2.0.47.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
85
|
+
uipath-2.0.47.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
|
|
86
|
+
uipath-2.0.47.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
|
|
87
|
+
uipath-2.0.47.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|