fleet-python 0.2.59__py3-none-any.whl → 0.2.60__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 fleet-python might be problematic. Click here for more details.
- fleet/_async/client.py +4 -0
- fleet/_async/tasks.py +4 -2
- fleet/client.py +4 -0
- fleet/tasks.py +4 -2
- {fleet_python-0.2.59.dist-info → fleet_python-0.2.60.dist-info}/METADATA +1 -1
- {fleet_python-0.2.59.dist-info → fleet_python-0.2.60.dist-info}/RECORD +9 -9
- {fleet_python-0.2.59.dist-info → fleet_python-0.2.60.dist-info}/WHEEL +0 -0
- {fleet_python-0.2.59.dist-info → fleet_python-0.2.60.dist-info}/licenses/LICENSE +0 -0
- {fleet_python-0.2.59.dist-info → fleet_python-0.2.60.dist-info}/top_level.txt +0 -0
fleet/_async/client.py
CHANGED
|
@@ -721,12 +721,14 @@ class AsyncFleet:
|
|
|
721
721
|
self,
|
|
722
722
|
task_key: str,
|
|
723
723
|
version_id: Optional[str] = None,
|
|
724
|
+
team_id: Optional[str] = None,
|
|
724
725
|
) -> TaskResponse:
|
|
725
726
|
"""Get a task by key and optional version.
|
|
726
727
|
|
|
727
728
|
Args:
|
|
728
729
|
task_key: The key of the task to retrieve
|
|
729
730
|
version_id: Optional version ID to filter by
|
|
731
|
+
team_id: Optional team_id to filter by (admin only)
|
|
730
732
|
|
|
731
733
|
Returns:
|
|
732
734
|
TaskResponse containing the task details
|
|
@@ -734,6 +736,8 @@ class AsyncFleet:
|
|
|
734
736
|
params = {}
|
|
735
737
|
if version_id is not None:
|
|
736
738
|
params["version_id"] = version_id
|
|
739
|
+
if team_id is not None:
|
|
740
|
+
params["team_id"] = team_id
|
|
737
741
|
|
|
738
742
|
response = await self.client.request(
|
|
739
743
|
"GET", f"/v1/tasks/{task_key}", params=params
|
fleet/_async/tasks.py
CHANGED
|
@@ -389,12 +389,13 @@ async def update_task(
|
|
|
389
389
|
)
|
|
390
390
|
|
|
391
391
|
|
|
392
|
-
async def get_task(task_key: str, version_id: Optional[str] = None):
|
|
392
|
+
async def get_task(task_key: str, version_id: Optional[str] = None, team_id: Optional[str] = None):
|
|
393
393
|
"""Convenience function to get a task by key and optional version.
|
|
394
394
|
|
|
395
395
|
Args:
|
|
396
396
|
task_key: The key of the task to retrieve
|
|
397
397
|
version_id: Optional version ID to filter by
|
|
398
|
+
team_id: Optional team_id to filter by (admin only)
|
|
398
399
|
|
|
399
400
|
Returns:
|
|
400
401
|
TaskResponse containing the task details
|
|
@@ -402,11 +403,12 @@ async def get_task(task_key: str, version_id: Optional[str] = None):
|
|
|
402
403
|
Examples:
|
|
403
404
|
response = await fleet.get_task("my-task")
|
|
404
405
|
response = await fleet.get_task("my-task", version_id="v1")
|
|
406
|
+
response = await fleet.get_task("my-task", team_id="team-123")
|
|
405
407
|
"""
|
|
406
408
|
from .global_client import get_client
|
|
407
409
|
|
|
408
410
|
client = get_client()
|
|
409
|
-
return await client.get_task(task_key=task_key, version_id=version_id)
|
|
411
|
+
return await client.get_task(task_key=task_key, version_id=version_id, team_id=team_id)
|
|
410
412
|
|
|
411
413
|
|
|
412
414
|
async def import_task(task: Task, project_key: Optional[str] = None):
|
fleet/client.py
CHANGED
|
@@ -719,12 +719,14 @@ class Fleet:
|
|
|
719
719
|
self,
|
|
720
720
|
task_key: str,
|
|
721
721
|
version_id: Optional[str] = None,
|
|
722
|
+
team_id: Optional[str] = None,
|
|
722
723
|
) -> TaskResponse:
|
|
723
724
|
"""Get a task by key and optional version.
|
|
724
725
|
|
|
725
726
|
Args:
|
|
726
727
|
task_key: The key of the task to retrieve
|
|
727
728
|
version_id: Optional version ID to filter by
|
|
729
|
+
team_id: Optional team_id to filter by (admin only)
|
|
728
730
|
|
|
729
731
|
Returns:
|
|
730
732
|
TaskResponse containing the task details
|
|
@@ -732,6 +734,8 @@ class Fleet:
|
|
|
732
734
|
params = {}
|
|
733
735
|
if version_id is not None:
|
|
734
736
|
params["version_id"] = version_id
|
|
737
|
+
if team_id is not None:
|
|
738
|
+
params["team_id"] = team_id
|
|
735
739
|
|
|
736
740
|
response = self.client.request(
|
|
737
741
|
"GET", f"/v1/tasks/{task_key}", params=params
|
fleet/tasks.py
CHANGED
|
@@ -390,12 +390,13 @@ def update_task(
|
|
|
390
390
|
)
|
|
391
391
|
|
|
392
392
|
|
|
393
|
-
def get_task(task_key: str, version_id: Optional[str] = None):
|
|
393
|
+
def get_task(task_key: str, version_id: Optional[str] = None, team_id: Optional[str] = None):
|
|
394
394
|
"""Convenience function to get a task by key and optional version.
|
|
395
395
|
|
|
396
396
|
Args:
|
|
397
397
|
task_key: The key of the task to retrieve
|
|
398
398
|
version_id: Optional version ID to filter by
|
|
399
|
+
team_id: Optional team_id to filter by (admin only)
|
|
399
400
|
|
|
400
401
|
Returns:
|
|
401
402
|
TaskResponse containing the task details
|
|
@@ -403,11 +404,12 @@ def get_task(task_key: str, version_id: Optional[str] = None):
|
|
|
403
404
|
Examples:
|
|
404
405
|
response = fleet.get_task("my-task")
|
|
405
406
|
response = fleet.get_task("my-task", version_id="v1")
|
|
407
|
+
response = fleet.get_task("my-task", team_id="team-123")
|
|
406
408
|
"""
|
|
407
409
|
from .global_client import get_client
|
|
408
410
|
|
|
409
411
|
client = get_client()
|
|
410
|
-
return client.get_task(task_key=task_key, version_id=version_id)
|
|
412
|
+
return client.get_task(task_key=task_key, version_id=version_id, team_id=team_id)
|
|
411
413
|
|
|
412
414
|
|
|
413
415
|
def import_task(task: Task, project_key: Optional[str] = None):
|
|
@@ -23,20 +23,20 @@ examples/quickstart.py,sha256=1VT39IRRhemsJgxi0O0gprdpcw7HB4pYO97GAYagIcg,3788
|
|
|
23
23
|
examples/test_cdp_logging.py,sha256=AkCwQCgOTQEI8w3v0knWK_4eXMph7L9x07wj9yIYM10,2836
|
|
24
24
|
fleet/__init__.py,sha256=yC4HIcbtPAPOgI0lLri3l8nbXkNee9JOihKAc7SXYkY,4201
|
|
25
25
|
fleet/base.py,sha256=bc-340sTpq_DJs7yQ9d2pDWnmJFmA1SwDB9Lagvqtb4,9182
|
|
26
|
-
fleet/client.py,sha256
|
|
26
|
+
fleet/client.py,sha256=-bjVlA9Iw7dg9XdHVUMvXpTesxzZ_tfw8eD_1D04SW0,32057
|
|
27
27
|
fleet/config.py,sha256=uY02ZKxVoXqVDta-0IMWaYJeE1CTXF_fA9NI6QUutmU,319
|
|
28
28
|
fleet/exceptions.py,sha256=fUmPwWhnT8SR97lYsRq0kLHQHKtSh2eJS0VQ2caSzEI,5055
|
|
29
29
|
fleet/global_client.py,sha256=frrDAFNM2ywN0JHLtlm9qbE1dQpnQJsavJpb7xSR_bU,1072
|
|
30
30
|
fleet/models.py,sha256=d9eish0KO3t4VCNu8h8Q_6K1Xj-crYo5Fejtle0Ur28,13056
|
|
31
|
-
fleet/tasks.py,sha256=
|
|
31
|
+
fleet/tasks.py,sha256=DlxQu9sftsW0jxKwdIE4_DsVxv1v3t6Mf3iKSwFQM3M,16435
|
|
32
32
|
fleet/types.py,sha256=L4Y82xICf1tzyCLqhLYUgEoaIIS5h9T05TyFNHSWs3s,652
|
|
33
33
|
fleet/_async/__init__.py,sha256=Wi8Tjj-Lfnxi4cPOkAxh2lynnpEBNni6mI6Iq80uOro,8054
|
|
34
34
|
fleet/_async/base.py,sha256=oisVTQsx0M_yTmyQJc3oij63uKZ97MHz-xYFsWXxQE8,9202
|
|
35
|
-
fleet/_async/client.py,sha256=
|
|
35
|
+
fleet/_async/client.py,sha256=DWI0nUpR3eD_onAbmiPvKemcqZ7adqLJTt0qXKBOMn4,32505
|
|
36
36
|
fleet/_async/exceptions.py,sha256=fUmPwWhnT8SR97lYsRq0kLHQHKtSh2eJS0VQ2caSzEI,5055
|
|
37
37
|
fleet/_async/global_client.py,sha256=4WskpLHbsDEgWW7hXMD09W-brkp4euy8w2ZJ88594rQ,1103
|
|
38
38
|
fleet/_async/models.py,sha256=GX-sRciZDenW2O7Qx9w_ftOkJyE4ph1-92WMq6lynHE,12856
|
|
39
|
-
fleet/_async/tasks.py,sha256=
|
|
39
|
+
fleet/_async/tasks.py,sha256=VFP00oAeyGvXkVOutLmrvKuM77BGLAc9ZoCH_Z2nXmg,16463
|
|
40
40
|
fleet/_async/env/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
41
41
|
fleet/_async/env/client.py,sha256=C5WG5Ir_McXaFPZNdkQjj0w4V7xMIcw3QyVP5g-3kVk,1237
|
|
42
42
|
fleet/_async/instance/__init__.py,sha256=PtmJq8J8bh0SOQ2V55QURz5GJfobozwtQoqhaOk3_tI,515
|
|
@@ -69,10 +69,10 @@ fleet/verifiers/decorator.py,sha256=nAP3O8szXu7md_kpwpz91hGSUNEVLYjwZQZTkQlV1DM,
|
|
|
69
69
|
fleet/verifiers/parse.py,sha256=qz9AfJrTbjlg-LU-lE8Ciqi7Yt2a8-cs17FdpjTLhMk,8550
|
|
70
70
|
fleet/verifiers/sql_differ.py,sha256=TqTLWyK3uOyLbitT6HYzYEzuSFC39wcyhgk3rcm__k8,6525
|
|
71
71
|
fleet/verifiers/verifier.py,sha256=_lcxXVm8e0xRrK2gNJy9up7pW1zOkPRY5n5lQ85S8jg,14197
|
|
72
|
-
fleet_python-0.2.
|
|
72
|
+
fleet_python-0.2.60.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
73
73
|
scripts/fix_sync_imports.py,sha256=X9fWLTpiPGkSHsjyQUDepOJkxOqw1DPj7nd8wFlFqLQ,8368
|
|
74
74
|
scripts/unasync.py,sha256=vWVQxRWX8SRZO5cmzEhpvnG_REhCWXpidIGIpWmEcvI,696
|
|
75
|
-
fleet_python-0.2.
|
|
76
|
-
fleet_python-0.2.
|
|
77
|
-
fleet_python-0.2.
|
|
78
|
-
fleet_python-0.2.
|
|
75
|
+
fleet_python-0.2.60.dist-info/METADATA,sha256=V0DNVpqY8l-Q0Gq8xfOPVZGxUbRaYfmeRvU3NBkwnaY,3304
|
|
76
|
+
fleet_python-0.2.60.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
77
|
+
fleet_python-0.2.60.dist-info/top_level.txt,sha256=_3DSmTohvSDf3AIP_BYfGzhwO1ECFwuzg83X-wHCx3Y,23
|
|
78
|
+
fleet_python-0.2.60.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|