diracx-client 0.0.1a46__tar.gz → 0.0.1a48__tar.gz
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.
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/PKG-INFO +1 -1
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/_generated/aio/operations/_operations.py +255 -112
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/_generated/models/__init__.py +16 -8
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/_generated/models/_enums.py +3 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/_generated/models/_models.py +396 -77
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/_generated/operations/_operations.py +265 -143
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/patches/jobs/common.py +1 -1
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/.gitignore +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/README.md +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/pyproject.toml +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/_diracx_client_importer.pth +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/_client_importer.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/__init__.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/_generated/__init__.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/_generated/_client.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/_generated/_configuration.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/_generated/_patch.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/_generated/_serialization.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/_generated/_utils/__init__.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/_generated/_utils/serialization.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/_generated/_utils/utils.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/_generated/_vendor.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/_generated/aio/__init__.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/_generated/aio/_client.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/_generated/aio/_configuration.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/_generated/aio/_patch.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/_generated/aio/_vendor.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/_generated/aio/operations/__init__.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/_generated/aio/operations/_patch.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/_generated/models/_patch.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/_generated/operations/__init__.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/_generated/operations/_patch.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/_generated/py.typed +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/aio.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/models.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/patches/auth/aio.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/patches/auth/common.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/patches/auth/sync.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/patches/client/aio.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/patches/client/common.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/patches/client/sync.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/patches/jobs/aio.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/patches/jobs/sync.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/patches/utils.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/py.typed +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/sync.py +0 -0
- {diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/tests/test_auth.py +0 -0
@@ -45,7 +45,6 @@ from ...operations._operations import (
|
|
45
45
|
build_jobs_get_sandbox_file_request,
|
46
46
|
build_jobs_initiate_sandbox_upload_request,
|
47
47
|
build_jobs_patch_metadata_request,
|
48
|
-
build_jobs_remove_jobs_request,
|
49
48
|
build_jobs_reschedule_jobs_request,
|
50
49
|
build_jobs_search_request,
|
51
50
|
build_jobs_set_job_statuses_request,
|
@@ -1186,56 +1185,6 @@ class JobsOperations:
|
|
1186
1185
|
|
1187
1186
|
return deserialized # type: ignore
|
1188
1187
|
|
1189
|
-
@distributed_trace_async
|
1190
|
-
async def unassign_bulk_jobs_sandboxes(self, *, jobs_ids: List[int], **kwargs: Any) -> Any:
|
1191
|
-
"""Unassign Bulk Jobs Sandboxes.
|
1192
|
-
|
1193
|
-
Delete bulk jobs sandbox mapping.
|
1194
|
-
|
1195
|
-
:keyword jobs_ids: Required.
|
1196
|
-
:paramtype jobs_ids: list[int]
|
1197
|
-
:return: any
|
1198
|
-
:rtype: any
|
1199
|
-
:raises ~azure.core.exceptions.HttpResponseError:
|
1200
|
-
"""
|
1201
|
-
error_map: MutableMapping = {
|
1202
|
-
401: ClientAuthenticationError,
|
1203
|
-
404: ResourceNotFoundError,
|
1204
|
-
409: ResourceExistsError,
|
1205
|
-
304: ResourceNotModifiedError,
|
1206
|
-
}
|
1207
|
-
error_map.update(kwargs.pop("error_map", {}) or {})
|
1208
|
-
|
1209
|
-
_headers = kwargs.pop("headers", {}) or {}
|
1210
|
-
_params = kwargs.pop("params", {}) or {}
|
1211
|
-
|
1212
|
-
cls: ClsType[Any] = kwargs.pop("cls", None)
|
1213
|
-
|
1214
|
-
_request = build_jobs_unassign_bulk_jobs_sandboxes_request(
|
1215
|
-
jobs_ids=jobs_ids,
|
1216
|
-
headers=_headers,
|
1217
|
-
params=_params,
|
1218
|
-
)
|
1219
|
-
_request.url = self._client.format_url(_request.url)
|
1220
|
-
|
1221
|
-
_stream = False
|
1222
|
-
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
1223
|
-
_request, stream=_stream, **kwargs
|
1224
|
-
)
|
1225
|
-
|
1226
|
-
response = pipeline_response.http_response
|
1227
|
-
|
1228
|
-
if response.status_code not in [200]:
|
1229
|
-
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
1230
|
-
raise HttpResponseError(response=response)
|
1231
|
-
|
1232
|
-
deserialized = self._deserialize("object", pipeline_response.http_response)
|
1233
|
-
|
1234
|
-
if cls:
|
1235
|
-
return cls(pipeline_response, deserialized, {}) # type: ignore
|
1236
|
-
|
1237
|
-
return deserialized # type: ignore
|
1238
|
-
|
1239
1188
|
@distributed_trace_async
|
1240
1189
|
async def get_job_sandboxes(self, job_id: int, **kwargs: Any) -> Dict[str, List[Any]]:
|
1241
1190
|
"""Get Job Sandboxes.
|
@@ -1448,21 +1397,54 @@ class JobsOperations:
|
|
1448
1397
|
|
1449
1398
|
return deserialized # type: ignore
|
1450
1399
|
|
1451
|
-
@
|
1452
|
-
async def
|
1453
|
-
""
|
1400
|
+
@overload
|
1401
|
+
async def unassign_bulk_jobs_sandboxes(
|
1402
|
+
self, body: _models.BodyJobsUnassignBulkJobsSandboxes, *, content_type: str = "application/json", **kwargs: Any
|
1403
|
+
) -> None:
|
1404
|
+
"""Unassign Bulk Jobs Sandboxes.
|
1454
1405
|
|
1455
|
-
|
1406
|
+
Delete bulk jobs sandbox mapping.
|
1456
1407
|
|
1457
|
-
|
1458
|
-
|
1459
|
-
|
1460
|
-
|
1408
|
+
:param body: Required.
|
1409
|
+
:type body: ~_generated.models.BodyJobsUnassignBulkJobsSandboxes
|
1410
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
1411
|
+
Default value is "application/json".
|
1412
|
+
:paramtype content_type: str
|
1413
|
+
:return: None
|
1414
|
+
:rtype: None
|
1415
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
1416
|
+
"""
|
1461
1417
|
|
1462
|
-
|
1463
|
-
|
1464
|
-
:
|
1465
|
-
|
1418
|
+
@overload
|
1419
|
+
async def unassign_bulk_jobs_sandboxes(
|
1420
|
+
self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
|
1421
|
+
) -> None:
|
1422
|
+
"""Unassign Bulk Jobs Sandboxes.
|
1423
|
+
|
1424
|
+
Delete bulk jobs sandbox mapping.
|
1425
|
+
|
1426
|
+
:param body: Required.
|
1427
|
+
:type body: IO[bytes]
|
1428
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
1429
|
+
Default value is "application/json".
|
1430
|
+
:paramtype content_type: str
|
1431
|
+
:return: None
|
1432
|
+
:rtype: None
|
1433
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
1434
|
+
"""
|
1435
|
+
|
1436
|
+
@distributed_trace_async
|
1437
|
+
async def unassign_bulk_jobs_sandboxes(
|
1438
|
+
self, body: Union[_models.BodyJobsUnassignBulkJobsSandboxes, IO[bytes]], **kwargs: Any
|
1439
|
+
) -> None:
|
1440
|
+
"""Unassign Bulk Jobs Sandboxes.
|
1441
|
+
|
1442
|
+
Delete bulk jobs sandbox mapping.
|
1443
|
+
|
1444
|
+
:param body: Is either a BodyJobsUnassignBulkJobsSandboxes type or a IO[bytes] type. Required.
|
1445
|
+
:type body: ~_generated.models.BodyJobsUnassignBulkJobsSandboxes or IO[bytes]
|
1446
|
+
:return: None
|
1447
|
+
:rtype: None
|
1466
1448
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1467
1449
|
"""
|
1468
1450
|
error_map: MutableMapping = {
|
@@ -1473,13 +1455,24 @@ class JobsOperations:
|
|
1473
1455
|
}
|
1474
1456
|
error_map.update(kwargs.pop("error_map", {}) or {})
|
1475
1457
|
|
1476
|
-
_headers = kwargs.pop("headers", {}) or {}
|
1458
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
1477
1459
|
_params = kwargs.pop("params", {}) or {}
|
1478
1460
|
|
1479
|
-
|
1461
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
1462
|
+
cls: ClsType[None] = kwargs.pop("cls", None)
|
1463
|
+
|
1464
|
+
content_type = content_type or "application/json"
|
1465
|
+
_json = None
|
1466
|
+
_content = None
|
1467
|
+
if isinstance(body, (IOBase, bytes)):
|
1468
|
+
_content = body
|
1469
|
+
else:
|
1470
|
+
_json = self._serialize.body(body, "BodyJobsUnassignBulkJobsSandboxes")
|
1480
1471
|
|
1481
|
-
_request =
|
1482
|
-
|
1472
|
+
_request = build_jobs_unassign_bulk_jobs_sandboxes_request(
|
1473
|
+
content_type=content_type,
|
1474
|
+
json=_json,
|
1475
|
+
content=_content,
|
1483
1476
|
headers=_headers,
|
1484
1477
|
params=_params,
|
1485
1478
|
)
|
@@ -1492,16 +1485,12 @@ class JobsOperations:
|
|
1492
1485
|
|
1493
1486
|
response = pipeline_response.http_response
|
1494
1487
|
|
1495
|
-
if response.status_code not in [
|
1488
|
+
if response.status_code not in [204]:
|
1496
1489
|
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
1497
1490
|
raise HttpResponseError(response=response)
|
1498
1491
|
|
1499
|
-
deserialized = self._deserialize("object", pipeline_response.http_response)
|
1500
|
-
|
1501
1492
|
if cls:
|
1502
|
-
return cls(pipeline_response,
|
1503
|
-
|
1504
|
-
return deserialized # type: ignore
|
1493
|
+
return cls(pipeline_response, None, {}) # type: ignore
|
1505
1494
|
|
1506
1495
|
@overload
|
1507
1496
|
async def set_job_statuses(
|
@@ -1514,7 +1503,15 @@ class JobsOperations:
|
|
1514
1503
|
) -> _models.SetJobStatusReturn:
|
1515
1504
|
"""Set Job Statuses.
|
1516
1505
|
|
1517
|
-
Set
|
1506
|
+
Set the status of a job or a list of jobs.
|
1507
|
+
|
1508
|
+
Body parameters:
|
1509
|
+
|
1510
|
+
|
1511
|
+
* ``Status``\\ : The new status of the job.
|
1512
|
+
* ``MinorStatus``\\ : The minor status of the job.
|
1513
|
+
* ``ApplicationStatus``\\ : The application-specific status of the job.
|
1514
|
+
* ``Source``\\ : The source of the status update (default is "Unknown").
|
1518
1515
|
|
1519
1516
|
:param body: Required.
|
1520
1517
|
:type body: dict[str, dict[str, ~_generated.models.JobStatusUpdate]]
|
@@ -1534,7 +1531,15 @@ class JobsOperations:
|
|
1534
1531
|
) -> _models.SetJobStatusReturn:
|
1535
1532
|
"""Set Job Statuses.
|
1536
1533
|
|
1537
|
-
Set
|
1534
|
+
Set the status of a job or a list of jobs.
|
1535
|
+
|
1536
|
+
Body parameters:
|
1537
|
+
|
1538
|
+
|
1539
|
+
* ``Status``\\ : The new status of the job.
|
1540
|
+
* ``MinorStatus``\\ : The minor status of the job.
|
1541
|
+
* ``ApplicationStatus``\\ : The application-specific status of the job.
|
1542
|
+
* ``Source``\\ : The source of the status update (default is "Unknown").
|
1538
1543
|
|
1539
1544
|
:param body: Required.
|
1540
1545
|
:type body: IO[bytes]
|
@@ -1558,7 +1563,15 @@ class JobsOperations:
|
|
1558
1563
|
) -> _models.SetJobStatusReturn:
|
1559
1564
|
"""Set Job Statuses.
|
1560
1565
|
|
1561
|
-
Set
|
1566
|
+
Set the status of a job or a list of jobs.
|
1567
|
+
|
1568
|
+
Body parameters:
|
1569
|
+
|
1570
|
+
|
1571
|
+
* ``Status``\\ : The new status of the job.
|
1572
|
+
* ``MinorStatus``\\ : The minor status of the job.
|
1573
|
+
* ``ApplicationStatus``\\ : The application-specific status of the job.
|
1574
|
+
* ``Source``\\ : The source of the status update (default is "Unknown").
|
1562
1575
|
|
1563
1576
|
:param body: Is either a {str: {str: JobStatusUpdate}} type or a IO[bytes] type. Required.
|
1564
1577
|
:type body: dict[str, dict[str, ~_generated.models.JobStatusUpdate]] or IO[bytes]
|
@@ -1735,14 +1748,79 @@ class JobsOperations:
|
|
1735
1748
|
|
1736
1749
|
return deserialized # type: ignore
|
1737
1750
|
|
1751
|
+
@overload
|
1752
|
+
async def reschedule_jobs(
|
1753
|
+
self,
|
1754
|
+
body: _models.BodyJobsRescheduleJobs,
|
1755
|
+
*,
|
1756
|
+
reset_jobs: bool = False,
|
1757
|
+
content_type: str = "application/json",
|
1758
|
+
**kwargs: Any
|
1759
|
+
) -> Dict[str, Any]:
|
1760
|
+
"""Reschedule Jobs.
|
1761
|
+
|
1762
|
+
Reschedule a list of killed or failed jobs.
|
1763
|
+
|
1764
|
+
Body parameters:
|
1765
|
+
|
1766
|
+
|
1767
|
+
* ``job_ids``\\ : List of job IDs to reschedule.
|
1768
|
+
* ``reset_jobs``\\ : If True, reset the count of reschedules for the jobs.
|
1769
|
+
|
1770
|
+
:param body: Required.
|
1771
|
+
:type body: ~_generated.models.BodyJobsRescheduleJobs
|
1772
|
+
:keyword reset_jobs: Default value is False.
|
1773
|
+
:paramtype reset_jobs: bool
|
1774
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
1775
|
+
Default value is "application/json".
|
1776
|
+
:paramtype content_type: str
|
1777
|
+
:return: dict mapping str to any
|
1778
|
+
:rtype: dict[str, any]
|
1779
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
1780
|
+
"""
|
1781
|
+
|
1782
|
+
@overload
|
1783
|
+
async def reschedule_jobs(
|
1784
|
+
self, body: IO[bytes], *, reset_jobs: bool = False, content_type: str = "application/json", **kwargs: Any
|
1785
|
+
) -> Dict[str, Any]:
|
1786
|
+
"""Reschedule Jobs.
|
1787
|
+
|
1788
|
+
Reschedule a list of killed or failed jobs.
|
1789
|
+
|
1790
|
+
Body parameters:
|
1791
|
+
|
1792
|
+
|
1793
|
+
* ``job_ids``\\ : List of job IDs to reschedule.
|
1794
|
+
* ``reset_jobs``\\ : If True, reset the count of reschedules for the jobs.
|
1795
|
+
|
1796
|
+
:param body: Required.
|
1797
|
+
:type body: IO[bytes]
|
1798
|
+
:keyword reset_jobs: Default value is False.
|
1799
|
+
:paramtype reset_jobs: bool
|
1800
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
1801
|
+
Default value is "application/json".
|
1802
|
+
:paramtype content_type: str
|
1803
|
+
:return: dict mapping str to any
|
1804
|
+
:rtype: dict[str, any]
|
1805
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
1806
|
+
"""
|
1807
|
+
|
1738
1808
|
@distributed_trace_async
|
1739
|
-
async def reschedule_jobs(
|
1809
|
+
async def reschedule_jobs(
|
1810
|
+
self, body: Union[_models.BodyJobsRescheduleJobs, IO[bytes]], *, reset_jobs: bool = False, **kwargs: Any
|
1811
|
+
) -> Dict[str, Any]:
|
1740
1812
|
"""Reschedule Jobs.
|
1741
1813
|
|
1742
|
-
Reschedule
|
1814
|
+
Reschedule a list of killed or failed jobs.
|
1815
|
+
|
1816
|
+
Body parameters:
|
1743
1817
|
|
1744
|
-
|
1745
|
-
|
1818
|
+
|
1819
|
+
* ``job_ids``\\ : List of job IDs to reschedule.
|
1820
|
+
* ``reset_jobs``\\ : If True, reset the count of reschedules for the jobs.
|
1821
|
+
|
1822
|
+
:param body: Is either a BodyJobsRescheduleJobs type or a IO[bytes] type. Required.
|
1823
|
+
:type body: ~_generated.models.BodyJobsRescheduleJobs or IO[bytes]
|
1746
1824
|
:keyword reset_jobs: Default value is False.
|
1747
1825
|
:paramtype reset_jobs: bool
|
1748
1826
|
:return: dict mapping str to any
|
@@ -1757,14 +1835,25 @@ class JobsOperations:
|
|
1757
1835
|
}
|
1758
1836
|
error_map.update(kwargs.pop("error_map", {}) or {})
|
1759
1837
|
|
1760
|
-
_headers = kwargs.pop("headers", {}) or {}
|
1838
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
1761
1839
|
_params = kwargs.pop("params", {}) or {}
|
1762
1840
|
|
1841
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
1763
1842
|
cls: ClsType[Dict[str, Any]] = kwargs.pop("cls", None)
|
1764
1843
|
|
1844
|
+
content_type = content_type or "application/json"
|
1845
|
+
_json = None
|
1846
|
+
_content = None
|
1847
|
+
if isinstance(body, (IOBase, bytes)):
|
1848
|
+
_content = body
|
1849
|
+
else:
|
1850
|
+
_json = self._serialize.body(body, "BodyJobsRescheduleJobs")
|
1851
|
+
|
1765
1852
|
_request = build_jobs_reschedule_jobs_request(
|
1766
|
-
job_ids=job_ids,
|
1767
1853
|
reset_jobs=reset_jobs,
|
1854
|
+
content_type=content_type,
|
1855
|
+
json=_json,
|
1856
|
+
content=_content,
|
1768
1857
|
headers=_headers,
|
1769
1858
|
params=_params,
|
1770
1859
|
)
|
@@ -1790,14 +1879,15 @@ class JobsOperations:
|
|
1790
1879
|
|
1791
1880
|
@overload
|
1792
1881
|
async def patch_metadata(
|
1793
|
-
self, body: Dict[str,
|
1882
|
+
self, body: Dict[str, _models.JobMetaData], *, content_type: str = "application/json", **kwargs: Any
|
1794
1883
|
) -> None:
|
1795
1884
|
"""Patch Metadata.
|
1796
1885
|
|
1797
|
-
|
1886
|
+
Update job metadata such as UserPriority, HeartBeatTime, JobType, etc.
|
1887
|
+
The argument are all the attributes/parameters of a job (except the ID).
|
1798
1888
|
|
1799
1889
|
:param body: Required.
|
1800
|
-
:type body: dict[str,
|
1890
|
+
:type body: dict[str, ~_generated.models.JobMetaData]
|
1801
1891
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
1802
1892
|
Default value is "application/json".
|
1803
1893
|
:paramtype content_type: str
|
@@ -1810,7 +1900,8 @@ class JobsOperations:
|
|
1810
1900
|
async def patch_metadata(self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None:
|
1811
1901
|
"""Patch Metadata.
|
1812
1902
|
|
1813
|
-
|
1903
|
+
Update job metadata such as UserPriority, HeartBeatTime, JobType, etc.
|
1904
|
+
The argument are all the attributes/parameters of a job (except the ID).
|
1814
1905
|
|
1815
1906
|
:param body: Required.
|
1816
1907
|
:type body: IO[bytes]
|
@@ -1823,13 +1914,14 @@ class JobsOperations:
|
|
1823
1914
|
"""
|
1824
1915
|
|
1825
1916
|
@distributed_trace_async
|
1826
|
-
async def patch_metadata(self, body: Union[Dict[str,
|
1917
|
+
async def patch_metadata(self, body: Union[Dict[str, _models.JobMetaData], IO[bytes]], **kwargs: Any) -> None:
|
1827
1918
|
"""Patch Metadata.
|
1828
1919
|
|
1829
|
-
|
1920
|
+
Update job metadata such as UserPriority, HeartBeatTime, JobType, etc.
|
1921
|
+
The argument are all the attributes/parameters of a job (except the ID).
|
1830
1922
|
|
1831
|
-
:param body: Is either a {str:
|
1832
|
-
:type body: dict[str,
|
1923
|
+
:param body: Is either a {str: JobMetaData} type or a IO[bytes] type. Required.
|
1924
|
+
:type body: dict[str, ~_generated.models.JobMetaData] or IO[bytes]
|
1833
1925
|
:return: None
|
1834
1926
|
:rtype: None
|
1835
1927
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -1854,7 +1946,7 @@ class JobsOperations:
|
|
1854
1946
|
if isinstance(body, (IOBase, bytes)):
|
1855
1947
|
_content = body
|
1856
1948
|
else:
|
1857
|
-
_json = self._serialize.body(body, "{
|
1949
|
+
_json = self._serialize.body(body, "{JobMetaData}")
|
1858
1950
|
|
1859
1951
|
_request = build_jobs_patch_metadata_request(
|
1860
1952
|
content_type=content_type,
|
@@ -1882,7 +1974,7 @@ class JobsOperations:
|
|
1882
1974
|
@overload
|
1883
1975
|
async def search(
|
1884
1976
|
self,
|
1885
|
-
body: Optional[_models.
|
1977
|
+
body: Optional[_models.SearchParams] = None,
|
1886
1978
|
*,
|
1887
1979
|
page: int = 1,
|
1888
1980
|
per_page: int = 100,
|
@@ -1891,12 +1983,21 @@ class JobsOperations:
|
|
1891
1983
|
) -> List[Dict[str, Any]]:
|
1892
1984
|
"""Search.
|
1893
1985
|
|
1894
|
-
|
1986
|
+
Creates a search query to the job database. This search can be based on
|
1987
|
+
different parameters, such as jobID, status, owner, etc.
|
1895
1988
|
|
1896
|
-
**
|
1989
|
+
**Possibilities**
|
1990
|
+
|
1991
|
+
|
1992
|
+
* Use ``search`` to filter jobs based on various parameters (optional).
|
1993
|
+
* Use ``parameters`` to specify which job parameters to return (optional).
|
1994
|
+
* Use ``sort`` to order the results based on specific parameters (optional).
|
1995
|
+
|
1996
|
+
By default, the search will return all jobs the user has access to, and all the fields
|
1997
|
+
of the job will be returned.
|
1897
1998
|
|
1898
1999
|
:param body: Default value is None.
|
1899
|
-
:type body: ~_generated.models.
|
2000
|
+
:type body: ~_generated.models.SearchParams
|
1900
2001
|
:keyword page: Default value is 1.
|
1901
2002
|
:paramtype page: int
|
1902
2003
|
:keyword per_page: Default value is 100.
|
@@ -1921,9 +2022,18 @@ class JobsOperations:
|
|
1921
2022
|
) -> List[Dict[str, Any]]:
|
1922
2023
|
"""Search.
|
1923
2024
|
|
1924
|
-
|
2025
|
+
Creates a search query to the job database. This search can be based on
|
2026
|
+
different parameters, such as jobID, status, owner, etc.
|
2027
|
+
|
2028
|
+
**Possibilities**
|
2029
|
+
|
2030
|
+
|
2031
|
+
* Use ``search`` to filter jobs based on various parameters (optional).
|
2032
|
+
* Use ``parameters`` to specify which job parameters to return (optional).
|
2033
|
+
* Use ``sort`` to order the results based on specific parameters (optional).
|
1925
2034
|
|
1926
|
-
|
2035
|
+
By default, the search will return all jobs the user has access to, and all the fields
|
2036
|
+
of the job will be returned.
|
1927
2037
|
|
1928
2038
|
:param body: Default value is None.
|
1929
2039
|
:type body: IO[bytes]
|
@@ -1942,7 +2052,7 @@ class JobsOperations:
|
|
1942
2052
|
@distributed_trace_async
|
1943
2053
|
async def search(
|
1944
2054
|
self,
|
1945
|
-
body: Optional[Union[_models.
|
2055
|
+
body: Optional[Union[_models.SearchParams, IO[bytes]]] = None,
|
1946
2056
|
*,
|
1947
2057
|
page: int = 1,
|
1948
2058
|
per_page: int = 100,
|
@@ -1950,12 +2060,21 @@ class JobsOperations:
|
|
1950
2060
|
) -> List[Dict[str, Any]]:
|
1951
2061
|
"""Search.
|
1952
2062
|
|
1953
|
-
|
2063
|
+
Creates a search query to the job database. This search can be based on
|
2064
|
+
different parameters, such as jobID, status, owner, etc.
|
1954
2065
|
|
1955
|
-
**
|
2066
|
+
**Possibilities**
|
1956
2067
|
|
1957
|
-
|
1958
|
-
|
2068
|
+
|
2069
|
+
* Use ``search`` to filter jobs based on various parameters (optional).
|
2070
|
+
* Use ``parameters`` to specify which job parameters to return (optional).
|
2071
|
+
* Use ``sort`` to order the results based on specific parameters (optional).
|
2072
|
+
|
2073
|
+
By default, the search will return all jobs the user has access to, and all the fields
|
2074
|
+
of the job will be returned.
|
2075
|
+
|
2076
|
+
:param body: Is either a SearchParams type or a IO[bytes] type. Default value is None.
|
2077
|
+
:type body: ~_generated.models.SearchParams or IO[bytes]
|
1959
2078
|
:keyword page: Default value is 1.
|
1960
2079
|
:paramtype page: int
|
1961
2080
|
:keyword per_page: Default value is 100.
|
@@ -1985,7 +2104,7 @@ class JobsOperations:
|
|
1985
2104
|
_content = body
|
1986
2105
|
else:
|
1987
2106
|
if body is not None:
|
1988
|
-
_json = self._serialize.body(body, "
|
2107
|
+
_json = self._serialize.body(body, "SearchParams")
|
1989
2108
|
else:
|
1990
2109
|
_json = None
|
1991
2110
|
|
@@ -2024,14 +2143,22 @@ class JobsOperations:
|
|
2024
2143
|
|
2025
2144
|
@overload
|
2026
2145
|
async def summary(
|
2027
|
-
self, body: _models.
|
2146
|
+
self, body: _models.SummaryParams, *, content_type: str = "application/json", **kwargs: Any
|
2028
2147
|
) -> Any:
|
2029
2148
|
"""Summary.
|
2030
2149
|
|
2031
|
-
|
2150
|
+
Group jobs by a specific list of parameters. Returns an array of n-uplets, where each n-uplet
|
2151
|
+
contains the
|
2152
|
+
values of the grouping parameters and the number of jobs that match those values.
|
2153
|
+
|
2154
|
+
Body parameters:
|
2155
|
+
|
2156
|
+
|
2157
|
+
* ``grouping``\\ : List of parameters to group the jobs by.
|
2158
|
+
* ``search``\\ : List of search parameters to filter the jobs by (optional).
|
2032
2159
|
|
2033
2160
|
:param body: Required.
|
2034
|
-
:type body: ~_generated.models.
|
2161
|
+
:type body: ~_generated.models.SummaryParams
|
2035
2162
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
2036
2163
|
Default value is "application/json".
|
2037
2164
|
:paramtype content_type: str
|
@@ -2044,7 +2171,15 @@ class JobsOperations:
|
|
2044
2171
|
async def summary(self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> Any:
|
2045
2172
|
"""Summary.
|
2046
2173
|
|
2047
|
-
|
2174
|
+
Group jobs by a specific list of parameters. Returns an array of n-uplets, where each n-uplet
|
2175
|
+
contains the
|
2176
|
+
values of the grouping parameters and the number of jobs that match those values.
|
2177
|
+
|
2178
|
+
Body parameters:
|
2179
|
+
|
2180
|
+
|
2181
|
+
* ``grouping``\\ : List of parameters to group the jobs by.
|
2182
|
+
* ``search``\\ : List of search parameters to filter the jobs by (optional).
|
2048
2183
|
|
2049
2184
|
:param body: Required.
|
2050
2185
|
:type body: IO[bytes]
|
@@ -2057,13 +2192,21 @@ class JobsOperations:
|
|
2057
2192
|
"""
|
2058
2193
|
|
2059
2194
|
@distributed_trace_async
|
2060
|
-
async def summary(self, body: Union[_models.
|
2195
|
+
async def summary(self, body: Union[_models.SummaryParams, IO[bytes]], **kwargs: Any) -> Any:
|
2061
2196
|
"""Summary.
|
2062
2197
|
|
2063
|
-
|
2198
|
+
Group jobs by a specific list of parameters. Returns an array of n-uplets, where each n-uplet
|
2199
|
+
contains the
|
2200
|
+
values of the grouping parameters and the number of jobs that match those values.
|
2201
|
+
|
2202
|
+
Body parameters:
|
2203
|
+
|
2204
|
+
|
2205
|
+
* ``grouping``\\ : List of parameters to group the jobs by.
|
2206
|
+
* ``search``\\ : List of search parameters to filter the jobs by (optional).
|
2064
2207
|
|
2065
|
-
:param body: Is either a
|
2066
|
-
:type body: ~_generated.models.
|
2208
|
+
:param body: Is either a SummaryParams type or a IO[bytes] type. Required.
|
2209
|
+
:type body: ~_generated.models.SummaryParams or IO[bytes]
|
2067
2210
|
:return: any
|
2068
2211
|
:rtype: any
|
2069
2212
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -2088,7 +2231,7 @@ class JobsOperations:
|
|
2088
2231
|
if isinstance(body, (IOBase, bytes)):
|
2089
2232
|
_content = body
|
2090
2233
|
else:
|
2091
|
-
_json = self._serialize.body(body, "
|
2234
|
+
_json = self._serialize.body(body, "SummaryParams")
|
2092
2235
|
|
2093
2236
|
_request = build_jobs_summary_request(
|
2094
2237
|
content_type=content_type,
|
{diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/_generated/models/__init__.py
RENAMED
@@ -14,17 +14,17 @@ if TYPE_CHECKING:
|
|
14
14
|
from ._models import ( # type: ignore
|
15
15
|
BodyAuthGetOidcToken,
|
16
16
|
BodyAuthGetOidcTokenGrantType,
|
17
|
+
BodyJobsRescheduleJobs,
|
18
|
+
BodyJobsUnassignBulkJobsSandboxes,
|
17
19
|
GroupInfo,
|
18
20
|
HTTPValidationError,
|
19
21
|
HeartbeatData,
|
20
22
|
InitiateDeviceFlowResponse,
|
21
23
|
InsertedJob,
|
22
24
|
JobCommand,
|
23
|
-
|
24
|
-
|
25
|
+
JobMetaData,
|
26
|
+
JobMetaDataAccountedFlag,
|
25
27
|
JobStatusUpdate,
|
26
|
-
JobSummaryParams,
|
27
|
-
JobSummaryParamsSearchItem,
|
28
28
|
Metadata,
|
29
29
|
OpenIDConfiguration,
|
30
30
|
SandboxDownloadResponse,
|
@@ -32,9 +32,13 @@ from ._models import ( # type: ignore
|
|
32
32
|
SandboxUploadResponse,
|
33
33
|
ScalarSearchSpec,
|
34
34
|
ScalarSearchSpecValue,
|
35
|
+
SearchParams,
|
36
|
+
SearchParamsSearchItem,
|
35
37
|
SetJobStatusReturn,
|
36
38
|
SetJobStatusReturnSuccess,
|
37
39
|
SortSpec,
|
40
|
+
SummaryParams,
|
41
|
+
SummaryParamsSearchItem,
|
38
42
|
SupportInfo,
|
39
43
|
TokenResponse,
|
40
44
|
UserInfoResponse,
|
@@ -61,17 +65,17 @@ from ._patch import patch_sdk as _patch_sdk
|
|
61
65
|
__all__ = [
|
62
66
|
"BodyAuthGetOidcToken",
|
63
67
|
"BodyAuthGetOidcTokenGrantType",
|
68
|
+
"BodyJobsRescheduleJobs",
|
69
|
+
"BodyJobsUnassignBulkJobsSandboxes",
|
64
70
|
"GroupInfo",
|
65
71
|
"HTTPValidationError",
|
66
72
|
"HeartbeatData",
|
67
73
|
"InitiateDeviceFlowResponse",
|
68
74
|
"InsertedJob",
|
69
75
|
"JobCommand",
|
70
|
-
"
|
71
|
-
"
|
76
|
+
"JobMetaData",
|
77
|
+
"JobMetaDataAccountedFlag",
|
72
78
|
"JobStatusUpdate",
|
73
|
-
"JobSummaryParams",
|
74
|
-
"JobSummaryParamsSearchItem",
|
75
79
|
"Metadata",
|
76
80
|
"OpenIDConfiguration",
|
77
81
|
"SandboxDownloadResponse",
|
@@ -79,9 +83,13 @@ __all__ = [
|
|
79
83
|
"SandboxUploadResponse",
|
80
84
|
"ScalarSearchSpec",
|
81
85
|
"ScalarSearchSpecValue",
|
86
|
+
"SearchParams",
|
87
|
+
"SearchParamsSearchItem",
|
82
88
|
"SetJobStatusReturn",
|
83
89
|
"SetJobStatusReturnSuccess",
|
84
90
|
"SortSpec",
|
91
|
+
"SummaryParams",
|
92
|
+
"SummaryParamsSearchItem",
|
85
93
|
"SupportInfo",
|
86
94
|
"TokenResponse",
|
87
95
|
"UserInfoResponse",
|
{diracx_client-0.0.1a46 → diracx_client-0.0.1a48}/src/diracx/client/_generated/models/_enums.py
RENAMED
@@ -38,6 +38,7 @@ class SandboxFormat(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
38
38
|
"""SandboxFormat."""
|
39
39
|
|
40
40
|
TAR_BZ2 = "tar.bz2"
|
41
|
+
TAR_ZST = "tar.zst"
|
41
42
|
|
42
43
|
|
43
44
|
class SandboxType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
@@ -55,6 +56,8 @@ class ScalarSearchOperator(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
55
56
|
GT = "gt"
|
56
57
|
LT = "lt"
|
57
58
|
LIKE = "like"
|
59
|
+
NOT_LIKE = "not like"
|
60
|
+
REGEX = "regex"
|
58
61
|
|
59
62
|
|
60
63
|
class SortDirection(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|