diracx-client 0.0.1a33__py3-none-any.whl → 0.0.1a35__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.
- _diracx_client_importer.pth +1 -0
- diracx/_client_importer.py +384 -0
- diracx/client/__init__.py +12 -4
- diracx/client/{generated → _generated}/__init__.py +1 -1
- diracx/client/{generated → _generated}/_client.py +5 -5
- diracx/client/{generated → _generated}/_configuration.py +1 -1
- diracx/client/{generated/aio → _generated}/_patch.py +4 -5
- diracx/client/{generated → _generated}/_serialization.py +1 -1
- diracx/client/{generated/aio → _generated}/_vendor.py +1 -1
- diracx/client/{generated → _generated}/aio/__init__.py +1 -1
- diracx/client/{generated → _generated}/aio/_client.py +5 -5
- diracx/client/{generated → _generated}/aio/_configuration.py +1 -1
- diracx/client/{generated → _generated/aio}/_patch.py +4 -9
- diracx/client/{generated → _generated/aio}/_vendor.py +1 -1
- diracx/client/{generated → _generated}/aio/operations/__init__.py +1 -1
- diracx/client/{generated → _generated}/aio/operations/_operations.py +158 -28
- diracx/client/_generated/aio/operations/_patch.py +26 -0
- diracx/client/{generated → _generated}/models/__init__.py +11 -1
- diracx/client/{generated → _generated}/models/_enums.py +1 -1
- diracx/client/{generated → _generated}/models/_models.py +152 -39
- diracx/client/{generated → _generated}/models/_patch.py +15 -12
- diracx/client/{generated → _generated}/operations/__init__.py +1 -1
- diracx/client/{generated → _generated}/operations/_operations.py +178 -28
- diracx/client/_generated/operations/_patch.py +26 -0
- diracx/client/aio.py +12 -2
- diracx/client/models.py +3 -6
- diracx/client/patches/auth/aio.py +45 -0
- diracx/client/patches/auth/common.py +56 -0
- diracx/client/patches/auth/sync.py +41 -0
- diracx/client/patches/{aio/utils.py → client/aio.py} +22 -40
- diracx/client/patches/client/common.py +196 -0
- diracx/client/patches/client/sync.py +141 -0
- diracx/client/patches/jobs/aio.py +34 -0
- diracx/client/patches/jobs/common.py +85 -0
- diracx/client/patches/jobs/sync.py +34 -0
- diracx/client/py.typed +0 -1
- diracx/client/sync.py +13 -0
- {diracx_client-0.0.1a33.dist-info → diracx_client-0.0.1a35.dist-info}/METADATA +3 -4
- diracx_client-0.0.1a35.dist-info/RECORD +42 -0
- {diracx_client-0.0.1a33.dist-info → diracx_client-0.0.1a35.dist-info}/WHEEL +1 -2
- diracx/client/extensions.py +0 -90
- diracx/client/generated/aio/operations/_patch.py +0 -126
- diracx/client/generated/operations/_patch.py +0 -129
- diracx/client/patches/__init__.py +0 -19
- diracx/client/patches/aio/__init__.py +0 -18
- diracx_client-0.0.1a33.dist-info/RECORD +0 -36
- diracx_client-0.0.1a33.dist-info/entry_points.txt +0 -3
- diracx_client-0.0.1a33.dist-info/top_level.txt +0 -1
- /diracx/client/{generated → _generated}/py.typed +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
# pylint: disable=too-many-lines
|
2
2
|
# coding=utf-8
|
3
3
|
# --------------------------------------------------------------------------
|
4
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.32.
|
4
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.32.2)
|
5
5
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
6
6
|
# --------------------------------------------------------------------------
|
7
7
|
from io import IOBase
|
@@ -36,6 +36,7 @@ from ...operations._operations import (
|
|
36
36
|
build_auth_revoke_refresh_token_request,
|
37
37
|
build_auth_userinfo_request,
|
38
38
|
build_config_serve_config_request,
|
39
|
+
build_jobs_add_heartbeat_request,
|
39
40
|
build_jobs_assign_sandbox_to_job_request,
|
40
41
|
build_jobs_get_job_sandbox_request,
|
41
42
|
build_jobs_get_job_sandboxes_request,
|
@@ -72,7 +73,7 @@ class WellKnownOperations:
|
|
72
73
|
**DO NOT** instantiate this class directly.
|
73
74
|
|
74
75
|
Instead, you should access the following operations through
|
75
|
-
:class:`~
|
76
|
+
:class:`~_generated.aio.Dirac`'s
|
76
77
|
:attr:`well_known` attribute.
|
77
78
|
"""
|
78
79
|
|
@@ -102,7 +103,7 @@ class WellKnownOperations:
|
|
102
103
|
OpenID Connect discovery endpoint.
|
103
104
|
|
104
105
|
:return: OpenIDConfiguration
|
105
|
-
:rtype: ~
|
106
|
+
:rtype: ~_generated.models.OpenIDConfiguration
|
106
107
|
:raises ~azure.core.exceptions.HttpResponseError:
|
107
108
|
"""
|
108
109
|
error_map: MutableMapping = {
|
@@ -155,7 +156,7 @@ class WellKnownOperations:
|
|
155
156
|
Get metadata about the dirac installation.
|
156
157
|
|
157
158
|
:return: Metadata
|
158
|
-
:rtype: ~
|
159
|
+
:rtype: ~_generated.models.Metadata
|
159
160
|
:raises ~azure.core.exceptions.HttpResponseError:
|
160
161
|
"""
|
161
162
|
error_map: MutableMapping = {
|
@@ -206,7 +207,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
206
207
|
**DO NOT** instantiate this class directly.
|
207
208
|
|
208
209
|
Instead, you should access the following operations through
|
209
|
-
:class:`~
|
210
|
+
:class:`~_generated.aio.Dirac`'s
|
210
211
|
:attr:`auth` attribute.
|
211
212
|
"""
|
212
213
|
|
@@ -269,7 +270,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
269
270
|
:keyword scope: Required.
|
270
271
|
:paramtype scope: str
|
271
272
|
:return: InitiateDeviceFlowResponse
|
272
|
-
:rtype: ~
|
273
|
+
:rtype: ~_generated.models.InitiateDeviceFlowResponse
|
273
274
|
:raises ~azure.core.exceptions.HttpResponseError:
|
274
275
|
"""
|
275
276
|
error_map: MutableMapping = {
|
@@ -604,7 +605,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
604
605
|
Get information about the user's identity.
|
605
606
|
|
606
607
|
:return: UserInfoResponse
|
607
|
-
:rtype: ~
|
608
|
+
:rtype: ~_generated.models.UserInfoResponse
|
608
609
|
:raises ~azure.core.exceptions.HttpResponseError:
|
609
610
|
"""
|
610
611
|
error_map: MutableMapping = {
|
@@ -830,7 +831,7 @@ class ConfigOperations:
|
|
830
831
|
**DO NOT** instantiate this class directly.
|
831
832
|
|
832
833
|
Instead, you should access the following operations through
|
833
|
-
:class:`~
|
834
|
+
:class:`~_generated.aio.Dirac`'s
|
834
835
|
:attr:`config` attribute.
|
835
836
|
"""
|
836
837
|
|
@@ -937,7 +938,7 @@ class JobsOperations:
|
|
937
938
|
**DO NOT** instantiate this class directly.
|
938
939
|
|
939
940
|
Instead, you should access the following operations through
|
940
|
-
:class:`~
|
941
|
+
:class:`~_generated.aio.Dirac`'s
|
941
942
|
:attr:`jobs` attribute.
|
942
943
|
"""
|
943
944
|
|
@@ -977,12 +978,12 @@ class JobsOperations:
|
|
977
978
|
should be used to upload the sandbox to the storage backend.
|
978
979
|
|
979
980
|
:param body: Required.
|
980
|
-
:type body: ~
|
981
|
+
:type body: ~_generated.models.SandboxInfo
|
981
982
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
982
983
|
Default value is "application/json".
|
983
984
|
:paramtype content_type: str
|
984
985
|
:return: SandboxUploadResponse
|
985
|
-
:rtype: ~
|
986
|
+
:rtype: ~_generated.models.SandboxUploadResponse
|
986
987
|
:raises ~azure.core.exceptions.HttpResponseError:
|
987
988
|
"""
|
988
989
|
|
@@ -1006,7 +1007,7 @@ class JobsOperations:
|
|
1006
1007
|
Default value is "application/json".
|
1007
1008
|
:paramtype content_type: str
|
1008
1009
|
:return: SandboxUploadResponse
|
1009
|
-
:rtype: ~
|
1010
|
+
:rtype: ~_generated.models.SandboxUploadResponse
|
1010
1011
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1011
1012
|
"""
|
1012
1013
|
|
@@ -1025,9 +1026,9 @@ class JobsOperations:
|
|
1025
1026
|
should be used to upload the sandbox to the storage backend.
|
1026
1027
|
|
1027
1028
|
:param body: Is either a SandboxInfo type or a IO[bytes] type. Required.
|
1028
|
-
:type body: ~
|
1029
|
+
:type body: ~_generated.models.SandboxInfo or IO[bytes]
|
1029
1030
|
:return: SandboxUploadResponse
|
1030
|
-
:rtype: ~
|
1031
|
+
:rtype: ~_generated.models.SandboxUploadResponse
|
1031
1032
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1032
1033
|
"""
|
1033
1034
|
error_map: MutableMapping = {
|
@@ -1104,7 +1105,7 @@ class JobsOperations:
|
|
1104
1105
|
:keyword pfn: Required.
|
1105
1106
|
:paramtype pfn: str
|
1106
1107
|
:return: SandboxDownloadResponse
|
1107
|
-
:rtype: ~
|
1108
|
+
:rtype: ~_generated.models.SandboxDownloadResponse
|
1108
1109
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1109
1110
|
"""
|
1110
1111
|
error_map: MutableMapping = {
|
@@ -1328,7 +1329,7 @@ class JobsOperations:
|
|
1328
1329
|
:param job_id: Required.
|
1329
1330
|
:type job_id: int
|
1330
1331
|
:param sandbox_type: Known values are: "input" and "output". Required.
|
1331
|
-
:type sandbox_type: str or ~
|
1332
|
+
:type sandbox_type: str or ~_generated.models.SandboxType
|
1332
1333
|
:return: list of any
|
1333
1334
|
:rtype: list[any]
|
1334
1335
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -1512,14 +1513,14 @@ class JobsOperations:
|
|
1512
1513
|
Set Job Statuses.
|
1513
1514
|
|
1514
1515
|
:param body: Required.
|
1515
|
-
:type body: dict[str, dict[str, ~
|
1516
|
+
:type body: dict[str, dict[str, ~_generated.models.JobStatusUpdate]]
|
1516
1517
|
:keyword force: Default value is False.
|
1517
1518
|
:paramtype force: bool
|
1518
1519
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
1519
1520
|
Default value is "application/json".
|
1520
1521
|
:paramtype content_type: str
|
1521
1522
|
:return: SetJobStatusReturn
|
1522
|
-
:rtype: ~
|
1523
|
+
:rtype: ~_generated.models.SetJobStatusReturn
|
1523
1524
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1524
1525
|
"""
|
1525
1526
|
|
@@ -1544,7 +1545,7 @@ class JobsOperations:
|
|
1544
1545
|
Default value is "application/json".
|
1545
1546
|
:paramtype content_type: str
|
1546
1547
|
:return: SetJobStatusReturn
|
1547
|
-
:rtype: ~
|
1548
|
+
:rtype: ~_generated.models.SetJobStatusReturn
|
1548
1549
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1549
1550
|
"""
|
1550
1551
|
|
@@ -1561,11 +1562,11 @@ class JobsOperations:
|
|
1561
1562
|
Set Job Statuses.
|
1562
1563
|
|
1563
1564
|
:param body: Is either a {str: {str: JobStatusUpdate}} type or a IO[bytes] type. Required.
|
1564
|
-
:type body: dict[str, dict[str, ~
|
1565
|
+
:type body: dict[str, dict[str, ~_generated.models.JobStatusUpdate]] or IO[bytes]
|
1565
1566
|
:keyword force: Default value is False.
|
1566
1567
|
:paramtype force: bool
|
1567
1568
|
:return: SetJobStatusReturn
|
1568
|
-
:rtype: ~
|
1569
|
+
:rtype: ~_generated.models.SetJobStatusReturn
|
1569
1570
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1570
1571
|
"""
|
1571
1572
|
error_map: MutableMapping = {
|
@@ -1626,6 +1627,135 @@ class JobsOperations:
|
|
1626
1627
|
|
1627
1628
|
return deserialized # type: ignore
|
1628
1629
|
|
1630
|
+
@overload
|
1631
|
+
async def add_heartbeat(
|
1632
|
+
self,
|
1633
|
+
body: Dict[str, _models.HeartbeatData],
|
1634
|
+
*,
|
1635
|
+
content_type: str = "application/json",
|
1636
|
+
**kwargs: Any,
|
1637
|
+
) -> List[_models.JobCommand]:
|
1638
|
+
"""Add Heartbeat.
|
1639
|
+
|
1640
|
+
Register a heartbeat from the job.
|
1641
|
+
|
1642
|
+
This endpoint is used by the JobAgent to send heartbeats to the WMS and to
|
1643
|
+
receive job commands from the WMS. It also results in stalled jobs being
|
1644
|
+
restored to the RUNNING status.
|
1645
|
+
|
1646
|
+
The ``data`` parameter and return value are mappings keyed by job ID.
|
1647
|
+
|
1648
|
+
:param body: Required.
|
1649
|
+
:type body: dict[str, ~_generated.models.HeartbeatData]
|
1650
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
1651
|
+
Default value is "application/json".
|
1652
|
+
:paramtype content_type: str
|
1653
|
+
:return: list of JobCommand
|
1654
|
+
:rtype: list[~_generated.models.JobCommand]
|
1655
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
1656
|
+
"""
|
1657
|
+
|
1658
|
+
@overload
|
1659
|
+
async def add_heartbeat(
|
1660
|
+
self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
|
1661
|
+
) -> List[_models.JobCommand]:
|
1662
|
+
"""Add Heartbeat.
|
1663
|
+
|
1664
|
+
Register a heartbeat from the job.
|
1665
|
+
|
1666
|
+
This endpoint is used by the JobAgent to send heartbeats to the WMS and to
|
1667
|
+
receive job commands from the WMS. It also results in stalled jobs being
|
1668
|
+
restored to the RUNNING status.
|
1669
|
+
|
1670
|
+
The ``data`` parameter and return value are mappings keyed by job ID.
|
1671
|
+
|
1672
|
+
:param body: Required.
|
1673
|
+
:type body: IO[bytes]
|
1674
|
+
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
1675
|
+
Default value is "application/json".
|
1676
|
+
:paramtype content_type: str
|
1677
|
+
:return: list of JobCommand
|
1678
|
+
:rtype: list[~_generated.models.JobCommand]
|
1679
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
1680
|
+
"""
|
1681
|
+
|
1682
|
+
@distributed_trace_async
|
1683
|
+
async def add_heartbeat(
|
1684
|
+
self, body: Union[Dict[str, _models.HeartbeatData], IO[bytes]], **kwargs: Any
|
1685
|
+
) -> List[_models.JobCommand]:
|
1686
|
+
"""Add Heartbeat.
|
1687
|
+
|
1688
|
+
Register a heartbeat from the job.
|
1689
|
+
|
1690
|
+
This endpoint is used by the JobAgent to send heartbeats to the WMS and to
|
1691
|
+
receive job commands from the WMS. It also results in stalled jobs being
|
1692
|
+
restored to the RUNNING status.
|
1693
|
+
|
1694
|
+
The ``data`` parameter and return value are mappings keyed by job ID.
|
1695
|
+
|
1696
|
+
:param body: Is either a {str: HeartbeatData} type or a IO[bytes] type. Required.
|
1697
|
+
:type body: dict[str, ~_generated.models.HeartbeatData] or IO[bytes]
|
1698
|
+
:return: list of JobCommand
|
1699
|
+
:rtype: list[~_generated.models.JobCommand]
|
1700
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
1701
|
+
"""
|
1702
|
+
error_map: MutableMapping = {
|
1703
|
+
401: ClientAuthenticationError,
|
1704
|
+
404: ResourceNotFoundError,
|
1705
|
+
409: ResourceExistsError,
|
1706
|
+
304: ResourceNotModifiedError,
|
1707
|
+
}
|
1708
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
1709
|
+
|
1710
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
1711
|
+
_params = kwargs.pop("params", {}) or {}
|
1712
|
+
|
1713
|
+
content_type: Optional[str] = kwargs.pop(
|
1714
|
+
"content_type", _headers.pop("Content-Type", None)
|
1715
|
+
)
|
1716
|
+
cls: ClsType[List[_models.JobCommand]] = kwargs.pop("cls", None)
|
1717
|
+
|
1718
|
+
content_type = content_type or "application/json"
|
1719
|
+
_json = None
|
1720
|
+
_content = None
|
1721
|
+
if isinstance(body, (IOBase, bytes)):
|
1722
|
+
_content = body
|
1723
|
+
else:
|
1724
|
+
_json = self._serialize.body(body, "{HeartbeatData}")
|
1725
|
+
|
1726
|
+
_request = build_jobs_add_heartbeat_request(
|
1727
|
+
content_type=content_type,
|
1728
|
+
json=_json,
|
1729
|
+
content=_content,
|
1730
|
+
headers=_headers,
|
1731
|
+
params=_params,
|
1732
|
+
)
|
1733
|
+
_request.url = self._client.format_url(_request.url)
|
1734
|
+
|
1735
|
+
_stream = False
|
1736
|
+
pipeline_response: PipelineResponse = (
|
1737
|
+
await self._client._pipeline.run( # pylint: disable=protected-access
|
1738
|
+
_request, stream=_stream, **kwargs
|
1739
|
+
)
|
1740
|
+
)
|
1741
|
+
|
1742
|
+
response = pipeline_response.http_response
|
1743
|
+
|
1744
|
+
if response.status_code not in [200]:
|
1745
|
+
map_error(
|
1746
|
+
status_code=response.status_code, response=response, error_map=error_map
|
1747
|
+
)
|
1748
|
+
raise HttpResponseError(response=response)
|
1749
|
+
|
1750
|
+
deserialized = self._deserialize(
|
1751
|
+
"[JobCommand]", pipeline_response.http_response
|
1752
|
+
)
|
1753
|
+
|
1754
|
+
if cls:
|
1755
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
1756
|
+
|
1757
|
+
return deserialized # type: ignore
|
1758
|
+
|
1629
1759
|
@distributed_trace_async
|
1630
1760
|
async def reschedule_jobs(
|
1631
1761
|
self, *, job_ids: List[int], reset_jobs: bool = False, **kwargs: Any
|
@@ -1807,7 +1937,7 @@ class JobsOperations:
|
|
1807
1937
|
**TODO: Add more docs**.
|
1808
1938
|
|
1809
1939
|
:param body: Default value is None.
|
1810
|
-
:type body: ~
|
1940
|
+
:type body: ~_generated.models.JobSearchParams
|
1811
1941
|
:keyword page: Default value is 1.
|
1812
1942
|
:paramtype page: int
|
1813
1943
|
:keyword per_page: Default value is 100.
|
@@ -1866,7 +1996,7 @@ class JobsOperations:
|
|
1866
1996
|
**TODO: Add more docs**.
|
1867
1997
|
|
1868
1998
|
:param body: Is either a JobSearchParams type or a IO[bytes] type. Default value is None.
|
1869
|
-
:type body: ~
|
1999
|
+
:type body: ~_generated.models.JobSearchParams or IO[bytes]
|
1870
2000
|
:keyword page: Default value is 1.
|
1871
2001
|
:paramtype page: int
|
1872
2002
|
:keyword per_page: Default value is 100.
|
@@ -1954,7 +2084,7 @@ class JobsOperations:
|
|
1954
2084
|
Show information suitable for plotting.
|
1955
2085
|
|
1956
2086
|
:param body: Required.
|
1957
|
-
:type body: ~
|
2087
|
+
:type body: ~_generated.models.JobSummaryParams
|
1958
2088
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
1959
2089
|
Default value is "application/json".
|
1960
2090
|
:paramtype content_type: str
|
@@ -1990,7 +2120,7 @@ class JobsOperations:
|
|
1990
2120
|
Show information suitable for plotting.
|
1991
2121
|
|
1992
2122
|
:param body: Is either a JobSummaryParams type or a IO[bytes] type. Required.
|
1993
|
-
:type body: ~
|
2123
|
+
:type body: ~_generated.models.JobSummaryParams or IO[bytes]
|
1994
2124
|
:return: any
|
1995
2125
|
:rtype: any
|
1996
2126
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -2064,7 +2194,7 @@ class JobsOperations:
|
|
2064
2194
|
Default value is "application/json".
|
2065
2195
|
:paramtype content_type: str
|
2066
2196
|
:return: list of InsertedJob
|
2067
|
-
:rtype: list[~
|
2197
|
+
:rtype: list[~_generated.models.InsertedJob]
|
2068
2198
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2069
2199
|
"""
|
2070
2200
|
|
@@ -2082,7 +2212,7 @@ class JobsOperations:
|
|
2082
2212
|
Default value is "application/json".
|
2083
2213
|
:paramtype content_type: str
|
2084
2214
|
:return: list of InsertedJob
|
2085
|
-
:rtype: list[~
|
2215
|
+
:rtype: list[~_generated.models.InsertedJob]
|
2086
2216
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2087
2217
|
"""
|
2088
2218
|
|
@@ -2097,7 +2227,7 @@ class JobsOperations:
|
|
2097
2227
|
:param body: Is either a [str] type or a IO[bytes] type. Required.
|
2098
2228
|
:type body: list[str] or IO[bytes]
|
2099
2229
|
:return: list of InsertedJob
|
2100
|
-
:rtype: list[~
|
2230
|
+
:rtype: list[~_generated.models.InsertedJob]
|
2101
2231
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2102
2232
|
"""
|
2103
2233
|
error_map: MutableMapping = {
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# ------------------------------------
|
2
|
+
# Copyright (c) Microsoft Corporation.
|
3
|
+
# Licensed under the MIT License.
|
4
|
+
# ------------------------------------
|
5
|
+
"""Customize generated code here.
|
6
|
+
|
7
|
+
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
|
8
|
+
"""
|
9
|
+
from __future__ import annotations
|
10
|
+
|
11
|
+
__all__ = [
|
12
|
+
"AuthOperations",
|
13
|
+
"JobsOperations",
|
14
|
+
] # Add all objects you want publicly available to users at this package level
|
15
|
+
|
16
|
+
from ....patches.auth.aio import AuthOperations
|
17
|
+
from ....patches.jobs.aio import JobsOperations
|
18
|
+
|
19
|
+
|
20
|
+
def patch_sdk():
|
21
|
+
"""Do not remove from this file.
|
22
|
+
|
23
|
+
`patch_sdk` is a last resort escape hatch that allows you to do customizations
|
24
|
+
you can't accomplish using the techniques described in
|
25
|
+
https://aka.ms/azsdk/python/dpcodegen/python/customize
|
26
|
+
"""
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.32.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.32.2)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
6
|
# pylint: disable=wrong-import-position
|
@@ -16,8 +16,10 @@ from ._models import ( # type: ignore
|
|
16
16
|
BodyAuthGetOidcTokenGrantType,
|
17
17
|
GroupInfo,
|
18
18
|
HTTPValidationError,
|
19
|
+
HeartbeatData,
|
19
20
|
InitiateDeviceFlowResponse,
|
20
21
|
InsertedJob,
|
22
|
+
JobCommand,
|
21
23
|
JobSearchParams,
|
22
24
|
JobSearchParamsSearchItem,
|
23
25
|
JobStatusUpdate,
|
@@ -61,8 +63,10 @@ __all__ = [
|
|
61
63
|
"BodyAuthGetOidcTokenGrantType",
|
62
64
|
"GroupInfo",
|
63
65
|
"HTTPValidationError",
|
66
|
+
"HeartbeatData",
|
64
67
|
"InitiateDeviceFlowResponse",
|
65
68
|
"InsertedJob",
|
69
|
+
"JobCommand",
|
66
70
|
"JobSearchParams",
|
67
71
|
"JobSearchParamsSearchItem",
|
68
72
|
"JobStatusUpdate",
|
@@ -96,3 +100,9 @@ __all__ = [
|
|
96
100
|
]
|
97
101
|
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
|
98
102
|
_patch_sdk()
|
103
|
+
if TYPE_CHECKING:
|
104
|
+
__all__.extend(
|
105
|
+
[
|
106
|
+
"DeviceFlowErrorResponse",
|
107
|
+
]
|
108
|
+
)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.32.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.32.2)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
6
|
|